]> git.saurik.com Git - wxWidgets.git/blame - configure
Remove rules for building resource files on wxMac
[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.
e0d84535 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.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'
e0d84535
RL
273PACKAGE_VERSION='2.6.0'
274PACKAGE_STRING='wxWidgets 2.6.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"
52ada004 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP 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 RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP 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 AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_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_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_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_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL 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
e0d84535 797\`configure' configures wxWidgets 2.6.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
e0d84535 863 short | recursive ) echo "Configuration of wxWidgets 2.6.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
9f45f08e 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
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
a848cd7e
SC
1032 --enable-metafiles use wxMetaFile (Windows only)
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
1035 --enable-palette use wxPalette class
1036 --enable-image use wxImage class
1037 --enable-gif use gif images (GIF file format)
1038 --enable-pcx use pcx images (PCX file format)
1039 --enable-iff use iff images (IFF file format)
1040 --enable-pnm use pnm images (PNM file format)
1041 --enable-xpm use xpm images (XPM file format)
1042 --enable-icocur use Windows ICO and CUR formats
77ffb593 1043 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1044 --enable-vendor=VENDOR vendor name (win32 DLL only)
1045 --disable-largefile omit support for large files
1046 --disable-gtktest do not try to compile and run a test GTK+ program
1047 --disable-gtktest Do not try to compile and run a test GTK program
1048 --disable-sdltest Do not try to compile and run a test SDL program
1049 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1050 --disable-precomp-headers
1051 don't use precompiled headers even if compiler can
a848cd7e
SC
1052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1056 --with-gtk use GTK+
1057 --with-motif use Motif/Lesstif
1058 --with-mac use Mac OS X
1059 --with-cocoa use Cocoa
1060 --with-wine use Wine
1061 --with-msw use MS-Windows
1062 --with-pm use OS/2 Presentation Manager
1063 --with-mgl use SciTech MGL
1064 --with-microwin use MicroWindows
1065 --with-x11 use X11
1066 --with-libpng use libpng (PNG image format)
1067 --with-libjpeg use libjpeg (JPEG file format)
1068 --with-libtiff use libtiff (TIFF file format)
1069 --with-libxpm use libxpm (XPM file format)
1070 --with-libmspack use libmspack (CHM help files loading)
1071 --with-sdl use SDL for audio on Unix
d51253e8 1072 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1073 --with-opengl use OpenGL (or Mesa)
1074 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1075 --with-regex enable support for wxRegEx class
1076 --with-zlib use zlib for LZW compression
1077 --with-odbc use the IODBC and wxODBC classes
1078 --with-expat enable XML support using expat parser
ceec2216 1079 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1080 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1081 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082 --with-x use the X Window System
1083 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1084 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1085 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1087 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1088
1089Some influential environment variables:
dcc1b6ad
VS
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CPP C preprocessor
1097 CXX C++ compiler command
1098 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
a848cd7e
SC
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
77ffb593 1104Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1105_ACEOF
1106fi
1107
1108if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1110 ac_popdir=`pwd`
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1113 ac_builddir=.
1114
1115if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119else
1120 ac_dir_suffix= ac_top_builddir=
1121fi
1122
1123case $srcdir in
1124 .) # No --srcdir option. We are building in place.
1125 ac_srcdir=.
1126 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=.
1128 else
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 fi ;;
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1134 *) # Relative path.
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137esac
ac1cb8d3
VS
1138
1139# Do not use `cd foo && pwd` to compute absolute paths, because
1140# the directories may not exist.
1141case `pwd` in
1142.) ac_abs_builddir="$ac_dir";;
1143*)
1144 case "$ac_dir" in
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_builddir=${ac_top_builddir}.;;
1152*)
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_srcdir=$ac_srcdir;;
1161*)
1162 case $ac_srcdir in
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_srcdir=$ac_top_srcdir;;
1170*)
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 esac;;
1176esac
a848cd7e
SC
1177
1178 cd $ac_dir
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1181 echo
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1184 echo
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1187 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1188 echo
1189 $ac_configure --help
1190 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi
9dd0f6c2 1193 cd "$ac_popdir"
a848cd7e
SC
1194 done
1195fi
1196
1197test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then
1199 cat <<\_ACEOF
e0d84535 1200wxWidgets configure 2.6.0
ac1cb8d3 1201generated by GNU Autoconf 2.59
a848cd7e 1202
ac1cb8d3 1203Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1204This configure script is free software; the Free Software Foundation
1205gives unlimited permission to copy, distribute and modify it.
1206_ACEOF
1207 exit 0
1208fi
1209exec 5>config.log
1210cat >&5 <<_ACEOF
1211This file contains any messages produced by compilers while
1212running configure, to aid debugging if configure makes a mistake.
1213
e0d84535 1214It was created by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 1215generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1216
1217 $ $0 $@
1218
1219_ACEOF
1220{
1221cat <<_ASUNAME
1222## --------- ##
1223## Platform. ##
1224## --------- ##
1225
1226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234
1235/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242
1243_ASUNAME
1244
1245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251done
1252
1253} >&5
1254
1255cat >&5 <<_ACEOF
1256
1257
1258## ----------- ##
1259## Core tests. ##
1260## ----------- ##
1261
1262_ACEOF
1263
1264
1265# Keep a trace of the command line.
1266# Strip out --no-create and --no-recursion so they do not pile up.
1267# Strip out --silent because we don't want to record it for future runs.
1268# Also quote any args containing shell meta-characters.
1269# Make two passes to allow for proper duplicate-argument suppression.
1270ac_configure_args=
1271ac_configure_args0=
1272ac_configure_args1=
1273ac_sep=
1274ac_must_keep_next=false
1275for ac_pass in 1 2
1276do
1277 for ac_arg
1278 do
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 2)
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
ac1cb8d3 1292 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1293 else
ac1cb8d3
VS
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1302 ;;
1303 -* ) ac_must_keep_next=true ;;
1304 esac
a848cd7e
SC
1305 fi
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1309 ;;
1310 esac
1311 done
1312done
1313$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316# When interrupted or exit'd, cleanup temporary files, and complete
1317# config.log. We remove comments because anyway the quotes in there
1318# would cause problems or look ugly.
1319# WARNING: Be sure not to use single quotes in there, as some shells,
1320# such as our DU 5.0 friend, will then `close' the trap.
1321trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1323 {
1324 echo
1325
1326 cat <<\_ASBOX
1327## ---------------- ##
1328## Cache variables. ##
1329## ---------------- ##
1330_ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1333{
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
ac1cb8d3
VS
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1340 ;;
1341 *)
1342 sed -n \
ac1cb8d3 1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1344 ;;
1345 esac;
1346}
1347 echo
1348
1349 cat <<\_ASBOX
1350## ----------------- ##
1351## Output variables. ##
1352## ----------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364## ------------- ##
1365## Output files. ##
1366## ------------- ##
1367_ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1370 do
1371 eval ac_val=$`echo $ac_var`
ac1cb8d3 1372 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1373 done | sort
1374 echo
1375 fi
1376
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379## ----------- ##
1380## confdefs.h. ##
1381## ----------- ##
1382_ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1386 fi
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
ac1cb8d3 1391 rm -f core *.core &&
a848cd7e
SC
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1394 ' 0
1395for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397done
1398ac_signal=0
1399
1400# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401rm -rf conftest* confdefs.h
1402# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403echo >confdefs.h
1404
1405# Predefined preprocessor variables.
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_NAME "$PACKAGE_NAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_VERSION "$PACKAGE_VERSION"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_STRING "$PACKAGE_STRING"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429_ACEOF
1430
1431
1432# Let the site file select an alternate cache file if it wants to.
1433# Prefer explicitly selected file to automatically selected ones.
1434if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 else
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 fi
1440fi
1441for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1446 . "$ac_site_file"
1447 fi
1448done
1449
1450if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455echo "$as_me: loading cache $cache_file" >&6;}
1456 case $cache_file in
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1459 esac
1460 fi
1461else
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463echo "$as_me: creating cache $cache_file" >&6;}
1464 >$cache_file
1465fi
1466
1467# Check that the precious variables saved in the cache have kept the same
1468# value.
1469ac_cache_corrupted=false
1470for ac_var in `(set) 2>&1 |
ac1cb8d3 1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1477 set,)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,set)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,);;
1486 *)
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1489echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1491echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1493echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1494 ac_cache_corrupted=:
a848cd7e
SC
1495 fi;;
1496 esac
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1499 case $ac_new_val in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1503 esac
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507 esac
1508 fi
1509done
1510if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517
1518ac_ext=c
1519ac_cpp='$CPP $CPPFLAGS'
1520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553ac_aux_dir=
1554for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1567 fi
1568done
1569if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1573fi
1574ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578# Make sure we can run config.sub.
1579$ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584echo "$as_me:$LINENO: checking build system type" >&5
1585echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_build_alias=$build_alias
1590test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601fi
1602echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603echo "${ECHO_T}$ac_cv_build" >&6
1604build=$ac_cv_build
1605build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610echo "$as_me:$LINENO: checking host system type" >&5
1611echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 ac_cv_host_alias=$host_alias
1616test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623fi
1624echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625echo "${ECHO_T}$ac_cv_host" >&6
1626host=$ac_cv_host
1627host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632echo "$as_me:$LINENO: checking target system type" >&5
1633echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634if test "${ac_cv_target+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_target_alias=$target_alias
1638test "x$ac_cv_target_alias" = "x" &&
1639 ac_cv_target_alias=$ac_cv_host_alias
1640ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647echo "${ECHO_T}$ac_cv_target" >&6
1648target=$ac_cv_target
1649target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654# The aliases save the names the user supplied, while $host etc.
1655# will get canonicalized.
1656test -n "$target_alias" &&
1657 test "$program_prefix$program_suffix$program_transform_name" = \
1658 NONENONEs,x,x, &&
1659 program_prefix=${target_alias}-
1660
1661
1662
ceec2216 1663wx_major_version_number=2
e0d84535
RL
1664wx_minor_version_number=6
1665wx_release_number=0
1666wx_subrelease_number=0
a848cd7e 1667
ceec2216
RL
1668WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669WX_VERSION=$WX_RELEASE.$wx_release_number
1670WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1671
ceec2216 1672WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1673
e0d84535 1674WX_CURRENT=0
a848cd7e 1675WX_REVISION=0
e0d84535 1676WX_AGE=0
a848cd7e
SC
1677
1678
1679
1680USE_UNIX=1
1681USE_OS2=0
1682USE_WIN32=0
1683USE_DOS=0
1684USE_BEOS=0
1685USE_MAC=0
1686
1687USE_AIX=
1688USE_BSD= USE_DARWIN= USE_FREEBSD=
1689USE_GNU= USE_HPUX=
1690USE_LINUX=
1691USE_NETBSD=
1692USE_OPENBSD=
1693USE_OSF= USE_SGI=
1694USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695USE_ULTRIX=
1696USE_UNIXWARE=
1697
1698USE_ALPHA=
1699
1700NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704DEFAULT_wxUSE_COCOA=0
1705DEFAULT_wxUSE_GTK=0
1706DEFAULT_wxUSE_MAC=0
1707DEFAULT_wxUSE_MGL=0
1708DEFAULT_wxUSE_MICROWIN=0
1709DEFAULT_wxUSE_MOTIF=0
1710DEFAULT_wxUSE_MSW=0
1711DEFAULT_wxUSE_PM=0
1712DEFAULT_wxUSE_X11=0
1713
1714DEFAULT_DEFAULT_wxUSE_COCOA=0
1715DEFAULT_DEFAULT_wxUSE_GTK=0
1716DEFAULT_DEFAULT_wxUSE_MAC=0
1717DEFAULT_DEFAULT_wxUSE_MGL=0
1718DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_DEFAULT_wxUSE_MSW=0
1721DEFAULT_DEFAULT_wxUSE_PM=0
1722DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724PROGRAM_EXT=
1725SO_SUFFIX=so
1726SAMPLES_RPATH_FLAG=
1727SAMPLES_RPATH_POSTLINK=
1728
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
1930 RESCOMP=windres
1931 DEFAULT_DEFAULT_wxUSE_MSW=1
1932 ;;
1933
1934 *-pc-msdosdjgpp )
1935 USE_UNIX=0
1936 USE_DOS=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __DOS__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_MGL=1
1943 LIBS="$LIBS -lstdc++"
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
1975 ;;
1976
1977 powerpc-*-darwin* )
1978 USE_BSD=1
1979 USE_DARWIN=1
1980 SO_SUFFIX=dylib
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __DARWIN__ 1
a848cd7e
SC
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
1994 ;;
1e9e8aba
DE
1995 powerpc-apple-macos* )
1996 USE_UNIX=0
1997 ac_cv_c_bigendian=yes
1998 SO_SUFFIX=shlib
1999 DEFAULT_DEFAULT_wxUSE_MAC=1
2000 ;;
a848cd7e
SC
2001
2002 *-*-beos* )
2003 USE_BEOS=1
2004 cat >>confdefs.h <<\_ACEOF
2005#define __BEOS__ 1
2006_ACEOF
2007
2008 ;;
2009
2010 *)
2011 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2012echo "$as_me: error: unknown system type ${host}." >&2;}
2013 { (exit 1); exit 1; }; }
2014esac
2015
2016
2017
2018
2019 wx_arg_cache_file="configarg.cache"
2020 echo "loading argument cache $wx_arg_cache_file"
2021 rm -f ${wx_arg_cache_file}.tmp
2022 touch ${wx_arg_cache_file}.tmp
2023 touch ${wx_arg_cache_file}
2024
2025
2026DEBUG_CONFIGURE=0
2027if test $DEBUG_CONFIGURE = 1; then
2028 DEFAULT_wxUSE_UNIVERSAL=no
2029 DEFAULT_wxUSE_STL=no
2030
2031 DEFAULT_wxUSE_NANOX=no
2032
2033 DEFAULT_wxUSE_THREADS=yes
2034
2035 DEFAULT_wxUSE_SHARED=yes
2036 DEFAULT_wxUSE_OPTIMISE=no
2037 DEFAULT_wxUSE_PROFILE=no
2038 DEFAULT_wxUSE_NO_DEPS=no
2039 DEFAULT_wxUSE_NO_RTTI=no
2040 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2041 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2042 DEFAULT_wxUSE_PERMISSIVE=no
2043 DEFAULT_wxUSE_DEBUG_FLAG=yes
2044 DEFAULT_wxUSE_DEBUG_INFO=yes
2045 DEFAULT_wxUSE_DEBUG_GDB=yes
2046 DEFAULT_wxUSE_MEM_TRACING=no
2047 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2048 DEFAULT_wxUSE_DMALLOC=no
2049 DEFAULT_wxUSE_APPLE_IEEE=no
2050
2051 DEFAULT_wxUSE_EXCEPTIONS=no
2052 DEFAULT_wxUSE_LOG=yes
2053 DEFAULT_wxUSE_LOGWINDOW=no
2054 DEFAULT_wxUSE_LOGGUI=no
2055 DEFAULT_wxUSE_LOGDIALOG=no
2056
2057 DEFAULT_wxUSE_GUI=yes
2058 DEFAULT_wxUSE_CONTROLS=no
2059
2060 DEFAULT_wxUSE_REGEX=no
2061 DEFAULT_wxUSE_XML=no
2062 DEFAULT_wxUSE_EXPAT=no
2063 DEFAULT_wxUSE_ZLIB=no
2064 DEFAULT_wxUSE_LIBPNG=no
2065 DEFAULT_wxUSE_LIBJPEG=no
2066 DEFAULT_wxUSE_LIBTIFF=no
2067 DEFAULT_wxUSE_LIBXPM=no
2068 DEFAULT_wxUSE_LIBMSPACK=no
2069 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2070 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2071 DEFAULT_wxUSE_ODBC=no
2072 DEFAULT_wxUSE_OPENGL=no
2073
2074 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2075 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2076 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2077 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2078 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2079 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2080 DEFAULT_wxUSE_CMDLINE_PARSER=no
2081 DEFAULT_wxUSE_DATETIME=no
2082 DEFAULT_wxUSE_TIMER=no
2083 DEFAULT_wxUSE_STOPWATCH=no
2084 DEFAULT_wxUSE_FILE=no
2085 DEFAULT_wxUSE_FFILE=no
07158944 2086 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2087 DEFAULT_wxUSE_TEXTBUFFER=no
2088 DEFAULT_wxUSE_TEXTFILE=no
2089 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2090 DEFAULT_wxUSE_MEDIACTRL=no
2091 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2092 DEFAULT_wxUSE_INTL=no
2093 DEFAULT_wxUSE_CONFIG=no
2094 DEFAULT_wxUSE_FONTMAP=no
2095 DEFAULT_wxUSE_STREAMS=no
2096 DEFAULT_wxUSE_SOCKETS=no
2097 DEFAULT_wxUSE_OLE=no
2098 DEFAULT_wxUSE_DATAOBJ=no
2099 DEFAULT_wxUSE_DIALUP_MANAGER=no
2100 DEFAULT_wxUSE_JOYSTICK=no
2101 DEFAULT_wxUSE_DYNLIB_CLASS=no
2102 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2103 DEFAULT_wxUSE_LONGLONG=no
2104 DEFAULT_wxUSE_GEOMETRY=no
2105
2106 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2107 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2108 DEFAULT_wxUSE_POSTSCRIPT=no
2109
2110 DEFAULT_wxUSE_CLIPBOARD=no
2111 DEFAULT_wxUSE_TOOLTIPS=no
2112 DEFAULT_wxUSE_DRAG_AND_DROP=no
2113 DEFAULT_wxUSE_DRAGIMAGE=no
2114 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2115 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2116
8a7b1113 2117 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2118 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2119 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2120 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2121
2122 DEFAULT_wxUSE_RESOURCES=no
2123 DEFAULT_wxUSE_CONSTRAINTS=no
2124 DEFAULT_wxUSE_IPC=no
2125 DEFAULT_wxUSE_HELP=no
2126 DEFAULT_wxUSE_MS_HTML_HELP=no
2127 DEFAULT_wxUSE_WXHTML_HELP=no
2128 DEFAULT_wxUSE_TREELAYOUT=no
2129 DEFAULT_wxUSE_METAFILE=no
2130 DEFAULT_wxUSE_MIMETYPE=no
2131 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2132 DEFAULT_wxUSE_PROTOCOL=no
2133 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2134 DEFAULT_wxUSE_PROTOCOL_FTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FILE=no
2136 DEFAULT_wxUSE_URL=no
2137
2138 DEFAULT_wxUSE_COMMONDLGS=no
2139 DEFAULT_wxUSE_CHOICEDLG=no
2140 DEFAULT_wxUSE_COLOURDLG=no
2141 DEFAULT_wxUSE_DIRDLG=no
2142 DEFAULT_wxUSE_FILEDLG=no
2143 DEFAULT_wxUSE_FINDREPLDLG=no
2144 DEFAULT_wxUSE_FONTDLG=no
2145 DEFAULT_wxUSE_MSGDLG=no
2146 DEFAULT_wxUSE_NUMBERDLG=no
2147 DEFAULT_wxUSE_TEXTDLG=no
2148 DEFAULT_wxUSE_SPLASH=no
2149 DEFAULT_wxUSE_STARTUP_TIPS=no
2150 DEFAULT_wxUSE_PROGRESSDLG=no
2151 DEFAULT_wxUSE_WIZARDDLG=no
2152
2153 DEFAULT_wxUSE_MENUS=no
2154 DEFAULT_wxUSE_MINIFRAME=no
2155 DEFAULT_wxUSE_HTML=no
9a8f0513 2156 DEFAULT_wxUSE_XRC=no
646b6ec1 2157 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2158 DEFAULT_wxUSE_FILESYSTEM=no
2159 DEFAULT_wxUSE_FS_INET=no
2160 DEFAULT_wxUSE_FS_ZIP=no
2161 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2162 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2163 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2164 DEFAULT_wxUSE_VALIDATORS=no
2165
2166 DEFAULT_wxUSE_ACCEL=no
2167 DEFAULT_wxUSE_BUTTON=no
2168 DEFAULT_wxUSE_BMPBUTTON=no
2169 DEFAULT_wxUSE_CALCTRL=no
2170 DEFAULT_wxUSE_CARET=no
2171 DEFAULT_wxUSE_CHECKBOX=no
2172 DEFAULT_wxUSE_CHECKLST=no
2173 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2174 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2175 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2176 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2177 DEFAULT_wxUSE_DISPLAY=no
2178 DEFAULT_wxUSE_GAUGE=no
2179 DEFAULT_wxUSE_GRID=no
2180 DEFAULT_wxUSE_IMAGLIST=no
2181 DEFAULT_wxUSE_LISTBOOK=no
2182 DEFAULT_wxUSE_LISTBOX=no
2183 DEFAULT_wxUSE_LISTCTRL=no
2184 DEFAULT_wxUSE_NOTEBOOK=no
2185 DEFAULT_wxUSE_RADIOBOX=no
2186 DEFAULT_wxUSE_RADIOBTN=no
2187 DEFAULT_wxUSE_SASH=no
2188 DEFAULT_wxUSE_SCROLLBAR=no
2189 DEFAULT_wxUSE_SLIDER=no
2190 DEFAULT_wxUSE_SPINBTN=no
2191 DEFAULT_wxUSE_SPINCTRL=no
2192 DEFAULT_wxUSE_SPLITTER=no
2193 DEFAULT_wxUSE_STATBMP=no
2194 DEFAULT_wxUSE_STATBOX=no
2195 DEFAULT_wxUSE_STATLINE=no
2196 DEFAULT_wxUSE_STATTEXT=no
2197 DEFAULT_wxUSE_STATUSBAR=yes
2198 DEFAULT_wxUSE_TABDIALOG=no
2199 DEFAULT_wxUSE_TEXTCTRL=no
2200 DEFAULT_wxUSE_TOGGLEBTN=no
2201 DEFAULT_wxUSE_TOOLBAR=no
2202 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2203 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2204 DEFAULT_wxUSE_TREECTRL=no
2205 DEFAULT_wxUSE_POPUPWIN=no
2206 DEFAULT_wxUSE_TIPWINDOW=no
2207
2208 DEFAULT_wxUSE_UNICODE=no
2209 DEFAULT_wxUSE_UNICODE_MSLU=no
2210 DEFAULT_wxUSE_WCSRTOMBS=no
2211
2212 DEFAULT_wxUSE_PALETTE=no
2213 DEFAULT_wxUSE_IMAGE=no
2214 DEFAULT_wxUSE_GIF=no
2215 DEFAULT_wxUSE_PCX=no
2216 DEFAULT_wxUSE_PNM=no
2217 DEFAULT_wxUSE_IFF=no
2218 DEFAULT_wxUSE_XPM=no
2219 DEFAULT_wxUSE_ICO_CUR=no
2220 DEFAULT_wxUSE_ACCESSIBILITY=no
2221
2222 DEFAULT_wxUSE_MONOLITHIC=no
2223 DEFAULT_wxUSE_PLUGINS=no
2224 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2225else
2226 DEFAULT_wxUSE_UNIVERSAL=no
2227 DEFAULT_wxUSE_STL=no
2228
2229 DEFAULT_wxUSE_NANOX=no
2230
2231 DEFAULT_wxUSE_THREADS=yes
2232
2233 DEFAULT_wxUSE_SHARED=yes
2234 DEFAULT_wxUSE_OPTIMISE=yes
2235 DEFAULT_wxUSE_PROFILE=no
2236 DEFAULT_wxUSE_NO_DEPS=no
2237 DEFAULT_wxUSE_NO_RTTI=no
2238 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2239 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2240 DEFAULT_wxUSE_PERMISSIVE=no
2241 DEFAULT_wxUSE_DEBUG_FLAG=no
2242 DEFAULT_wxUSE_DEBUG_INFO=no
2243 DEFAULT_wxUSE_DEBUG_GDB=no
2244 DEFAULT_wxUSE_MEM_TRACING=no
2245 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2246 DEFAULT_wxUSE_DMALLOC=no
2247 DEFAULT_wxUSE_APPLE_IEEE=yes
2248
2249 DEFAULT_wxUSE_EXCEPTIONS=yes
2250 DEFAULT_wxUSE_LOG=yes
2251 DEFAULT_wxUSE_LOGWINDOW=yes
2252 DEFAULT_wxUSE_LOGGUI=yes
2253 DEFAULT_wxUSE_LOGDIALOG=yes
2254
2255 DEFAULT_wxUSE_GUI=yes
2256
2257 DEFAULT_wxUSE_REGEX=yes
2258 DEFAULT_wxUSE_XML=yes
2259 DEFAULT_wxUSE_EXPAT=yes
2260 DEFAULT_wxUSE_ZLIB=yes
2261 DEFAULT_wxUSE_LIBPNG=yes
2262 DEFAULT_wxUSE_LIBJPEG=yes
2263 DEFAULT_wxUSE_LIBTIFF=yes
2264 DEFAULT_wxUSE_LIBXPM=yes
2265 DEFAULT_wxUSE_LIBMSPACK=yes
2266 DEFAULT_wxUSE_LIBSDL=no
52ada004 2267 DEFAULT_wxUSE_LIBGNOMEPRINT=yes
a848cd7e 2268 DEFAULT_wxUSE_ODBC=no
52ada004 2269 DEFAULT_wxUSE_OPENGL=yes
a848cd7e
SC
2270
2271 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2272 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2273 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2274 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
52ada004
RL
2275 DEFAULT_wxUSE_STD_IOSTREAM=yes
2276 DEFAULT_wxUSE_STD_STRING=yes
a848cd7e
SC
2277 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2278 DEFAULT_wxUSE_DATETIME=yes
2279 DEFAULT_wxUSE_TIMER=yes
2280 DEFAULT_wxUSE_STOPWATCH=yes
2281 DEFAULT_wxUSE_FILE=yes
2282 DEFAULT_wxUSE_FFILE=yes
07158944 2283 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_TEXTBUFFER=yes
2285 DEFAULT_wxUSE_TEXTFILE=yes
2286 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2287 DEFAULT_wxUSE_MEDIACTRL=no
2288 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2289 DEFAULT_wxUSE_INTL=yes
2290 DEFAULT_wxUSE_CONFIG=yes
2291 DEFAULT_wxUSE_FONTMAP=yes
2292 DEFAULT_wxUSE_STREAMS=yes
2293 DEFAULT_wxUSE_SOCKETS=yes
2294 DEFAULT_wxUSE_OLE=yes
2295 DEFAULT_wxUSE_DATAOBJ=yes
2296 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297 DEFAULT_wxUSE_JOYSTICK=yes
2298 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300 DEFAULT_wxUSE_LONGLONG=yes
2301 DEFAULT_wxUSE_GEOMETRY=yes
2302
2303 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305 DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307 DEFAULT_wxUSE_CLIPBOARD=yes
2308 DEFAULT_wxUSE_TOOLTIPS=yes
2309 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310 DEFAULT_wxUSE_DRAGIMAGE=yes
2311 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2312 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2313
8a7b1113 2314 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319 DEFAULT_wxUSE_RESOURCES=no
2320 DEFAULT_wxUSE_CONSTRAINTS=yes
2321 DEFAULT_wxUSE_IPC=yes
2322 DEFAULT_wxUSE_HELP=yes
2323 DEFAULT_wxUSE_MS_HTML_HELP=yes
2324 DEFAULT_wxUSE_WXHTML_HELP=yes
2325 DEFAULT_wxUSE_TREELAYOUT=yes
2326 DEFAULT_wxUSE_METAFILE=yes
2327 DEFAULT_wxUSE_MIMETYPE=yes
2328 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329 DEFAULT_wxUSE_PROTOCOL=yes
2330 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333 DEFAULT_wxUSE_URL=yes
2334
2335 DEFAULT_wxUSE_COMMONDLGS=yes
2336 DEFAULT_wxUSE_CHOICEDLG=yes
2337 DEFAULT_wxUSE_COLOURDLG=yes
2338 DEFAULT_wxUSE_DIRDLG=yes
2339 DEFAULT_wxUSE_FILEDLG=yes
2340 DEFAULT_wxUSE_FINDREPLDLG=yes
2341 DEFAULT_wxUSE_FONTDLG=yes
2342 DEFAULT_wxUSE_MSGDLG=yes
2343 DEFAULT_wxUSE_NUMBERDLG=yes
2344 DEFAULT_wxUSE_TEXTDLG=yes
2345 DEFAULT_wxUSE_SPLASH=yes
2346 DEFAULT_wxUSE_STARTUP_TIPS=yes
2347 DEFAULT_wxUSE_PROGRESSDLG=yes
2348 DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350 DEFAULT_wxUSE_MENUS=yes
2351 DEFAULT_wxUSE_MINIFRAME=yes
2352 DEFAULT_wxUSE_HTML=yes
9a8f0513 2353 DEFAULT_wxUSE_XRC=yes
646b6ec1 2354 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_FILESYSTEM=yes
2356 DEFAULT_wxUSE_FS_INET=yes
2357 DEFAULT_wxUSE_FS_ZIP=yes
2358 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2359 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2360 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_VALIDATORS=yes
2362
2363 DEFAULT_wxUSE_ACCEL=yes
2364 DEFAULT_wxUSE_BUTTON=yes
2365 DEFAULT_wxUSE_BMPBUTTON=yes
2366 DEFAULT_wxUSE_CALCTRL=yes
2367 DEFAULT_wxUSE_CARET=yes
2368 DEFAULT_wxUSE_CHECKBOX=yes
2369 DEFAULT_wxUSE_CHECKLST=yes
2370 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2371 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2372 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2373 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_DISPLAY=yes
2375 DEFAULT_wxUSE_GAUGE=yes
2376 DEFAULT_wxUSE_GRID=yes
2377 DEFAULT_wxUSE_IMAGLIST=yes
2378 DEFAULT_wxUSE_LISTBOOK=yes
2379 DEFAULT_wxUSE_LISTBOX=yes
2380 DEFAULT_wxUSE_LISTCTRL=yes
2381 DEFAULT_wxUSE_NOTEBOOK=yes
2382 DEFAULT_wxUSE_RADIOBOX=yes
2383 DEFAULT_wxUSE_RADIOBTN=yes
2384 DEFAULT_wxUSE_SASH=yes
2385 DEFAULT_wxUSE_SCROLLBAR=yes
2386 DEFAULT_wxUSE_SLIDER=yes
2387 DEFAULT_wxUSE_SPINBTN=yes
2388 DEFAULT_wxUSE_SPINCTRL=yes
2389 DEFAULT_wxUSE_SPLITTER=yes
2390 DEFAULT_wxUSE_STATBMP=yes
2391 DEFAULT_wxUSE_STATBOX=yes
2392 DEFAULT_wxUSE_STATLINE=yes
2393 DEFAULT_wxUSE_STATTEXT=yes
2394 DEFAULT_wxUSE_STATUSBAR=yes
2395 DEFAULT_wxUSE_TABDIALOG=no
2396 DEFAULT_wxUSE_TEXTCTRL=yes
2397 DEFAULT_wxUSE_TOGGLEBTN=yes
2398 DEFAULT_wxUSE_TOOLBAR=yes
2399 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401 DEFAULT_wxUSE_TREECTRL=yes
2402 DEFAULT_wxUSE_POPUPWIN=yes
2403 DEFAULT_wxUSE_TIPWINDOW=yes
2404
78de529b 2405 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2406 DEFAULT_wxUSE_UNICODE_MSLU=yes
2407 DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409 DEFAULT_wxUSE_PALETTE=yes
2410 DEFAULT_wxUSE_IMAGE=yes
2411 DEFAULT_wxUSE_GIF=yes
2412 DEFAULT_wxUSE_PCX=yes
2413 DEFAULT_wxUSE_IFF=no
2414 DEFAULT_wxUSE_PNM=yes
2415 DEFAULT_wxUSE_XPM=yes
2416 DEFAULT_wxUSE_ICO_CUR=yes
2417 DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419 DEFAULT_wxUSE_MONOLITHIC=no
2420 DEFAULT_wxUSE_PLUGINS=no
2421 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2422
2423 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2424fi
2425
2426
2427
2428for toolkit in `echo $ALL_TOOLKITS`; do
2429 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2430 if test "x$LINE" != "x" ; then
2431 has_toolkit_in_cache=1
2432 eval "DEFAULT_$LINE"
2433 eval "CACHE_$toolkit=1"
2434 fi
2435done
2436
2437
2438
2439 enablestring=
2440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2441echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2442 no_cache=0
2443 # Check whether --enable-gui or --disable-gui was given.
2444if test "${enable_gui+set}" = set; then
2445 enableval="$enable_gui"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_gui='wxUSE_GUI=yes'
2449 else
2450 ac_cv_use_gui='wxUSE_GUI=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2463
2464fi;
2465
2466 eval "$ac_cv_use_gui"
2467 if test "$no_cache" != 1; then
2468 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2469 fi
2470
2471 if test "$wxUSE_GUI" = yes; then
2472 echo "$as_me:$LINENO: result: yes" >&5
2473echo "${ECHO_T}yes" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477 fi
2478
2479
2480 enablestring=
2481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2482echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2483 no_cache=0
2484 # Check whether --enable-monolithic or --disable-monolithic was given.
2485if test "${enable_monolithic+set}" = set; then
2486 enableval="$enable_monolithic"
2487
2488 if test "$enableval" = yes; then
2489 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2490 else
2491 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2492 fi
2493
2494else
2495
2496 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2504
2505fi;
2506
2507 eval "$ac_cv_use_monolithic"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_MONOLITHIC" = yes; then
2513 echo "$as_me:$LINENO: result: yes" >&5
2514echo "${ECHO_T}yes" >&6
2515 else
2516 echo "$as_me:$LINENO: result: no" >&5
2517echo "${ECHO_T}no" >&6
2518 fi
2519
2520
2521 enablestring=
2522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2523echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2524 no_cache=0
2525 # Check whether --enable-plugins or --disable-plugins was given.
2526if test "${enable_plugins+set}" = set; then
2527 enableval="$enable_plugins"
2528
2529 if test "$enableval" = yes; then
2530 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2531 else
2532 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2533 fi
2534
2535else
2536
2537 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
2544 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2545
2546fi;
2547
2548 eval "$ac_cv_use_plugins"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PLUGINS" = yes; then
2554 echo "$as_me:$LINENO: result: yes" >&5
2555echo "${ECHO_T}yes" >&6
2556 else
2557 echo "$as_me:$LINENO: result: no" >&5
2558echo "${ECHO_T}no" >&6
2559 fi
2560
2561
2562if test "$wxUSE_GUI" = "yes"; then
2563
2564
2565 enablestring=
2566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2567echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2568 no_cache=0
2569 # Check whether --enable-universal or --disable-universal was given.
2570if test "${enable_universal+set}" = set; then
2571 enableval="$enable_universal"
2572
2573 if test "$enableval" = yes; then
2574 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2575 else
2576 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2577 fi
2578
2579else
2580
2581 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2582 if test "x$LINE" != x ; then
2583 eval "DEFAULT_$LINE"
2584 else
2585 no_cache=1
2586 fi
2587
2588 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2589
2590fi;
2591
2592 eval "$ac_cv_use_universal"
2593 if test "$no_cache" != 1; then
2594 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2595 fi
2596
2597 if test "$wxUSE_UNIVERSAL" = yes; then
2598 echo "$as_me:$LINENO: result: yes" >&5
2599echo "${ECHO_T}yes" >&6
2600 else
2601 echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6
2603 fi
2604
2605
2606# Check whether --with-gtk or --without-gtk was given.
2607if test "${with_gtk+set}" = set; then
2608 withval="$with_gtk"
2609 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-motif or --without-motif was given.
2613if test "${with_motif+set}" = set; then
2614 withval="$with_motif"
2615 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-mac or --without-mac was given.
2619if test "${with_mac+set}" = set; then
2620 withval="$with_mac"
c228d3a4 2621 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2622fi;
2623
2624# Check whether --with-cocoa or --without-cocoa was given.
2625if test "${with_cocoa+set}" = set; then
2626 withval="$with_cocoa"
c228d3a4 2627 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2628fi;
2629
2630# Check whether --with-wine or --without-wine was given.
2631if test "${with_wine+set}" = set; then
2632 withval="$with_wine"
2633 wxUSE_WINE="$withval" CACHE_WINE=1
2634fi;
2635
2636# Check whether --with-msw or --without-msw was given.
2637if test "${with_msw+set}" = set; then
2638 withval="$with_msw"
2639 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-pm or --without-pm was given.
2643if test "${with_pm+set}" = set; then
2644 withval="$with_pm"
2645 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-mgl or --without-mgl was given.
2649if test "${with_mgl+set}" = set; then
2650 withval="$with_mgl"
2651 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-microwin or --without-microwin was given.
2655if test "${with_microwin+set}" = set; then
2656 withval="$with_microwin"
2657 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-x11 or --without-x11 was given.
2661if test "${with_x11+set}" = set; then
2662 withval="$with_x11"
2663 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666 enablestring=
2667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2668echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2669 no_cache=0
2670 # Check whether --enable-nanox or --disable-nanox was given.
2671if test "${enable_nanox+set}" = set; then
2672 enableval="$enable_nanox"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_nanox='wxUSE_NANOX=yes'
2676 else
2677 ac_cv_use_nanox='wxUSE_NANOX=no'
2678 fi
2679
2680else
2681
2682 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2690
2691fi;
2692
2693 eval "$ac_cv_use_nanox"
2694 if test "$no_cache" != 1; then
2695 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2696 fi
2697
2698 if test "$wxUSE_NANOX" = yes; then
2699 echo "$as_me:$LINENO: result: yes" >&5
2700echo "${ECHO_T}yes" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6
2704 fi
2705
2706
2707
2708 enablestring=
2709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2710echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2711 no_cache=0
2712 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2713if test "${enable_gtk2+set}" = set; then
2714 enableval="$enable_gtk2"
2715
2716 if test "$enableval" = yes; then
2717 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2718 else
2719 ac_cv_use_gtk2='wxUSE_GTK2=no'
2720 fi
2721
2722else
2723
2724 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
2731 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2732
2733fi;
2734
2735 eval "$ac_cv_use_gtk2"
2736 if test "$no_cache" != 1; then
2737 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2738 fi
2739
2740 if test "$wxUSE_GTK2" = yes; then
2741 echo "$as_me:$LINENO: result: yes" >&5
2742echo "${ECHO_T}yes" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
2746 fi
2747
2748
2749 enablestring=
2750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2751echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2752 no_cache=0
2753 # Check whether --enable-gpe or --disable-gpe was given.
2754if test "${enable_gpe+set}" = set; then
2755 enableval="$enable_gpe"
2756
2757 if test "$enableval" = yes; then
2758 ac_cv_use_gpe='wxUSE_GPE=yes'
2759 else
2760 ac_cv_use_gpe='wxUSE_GPE=no'
2761 fi
2762
2763else
2764
2765 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2766 if test "x$LINE" != x ; then
2767 eval "DEFAULT_$LINE"
2768 else
2769 no_cache=1
2770 fi
2771
2772 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2773
2774fi;
2775
2776 eval "$ac_cv_use_gpe"
2777 if test "$no_cache" != 1; then
2778 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2779 fi
2780
2781 if test "$wxUSE_GPE" = yes; then
2782 echo "$as_me:$LINENO: result: yes" >&5
2783echo "${ECHO_T}yes" >&6
2784 else
2785 echo "$as_me:$LINENO: result: no" >&5
2786echo "${ECHO_T}no" >&6
2787 fi
2788
2789
2790
2791 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2792echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2793 no_cache=0
2794
2795# Check whether --with-libpng or --without-libpng was given.
2796if test "${with_libpng+set}" = set; then
2797 withval="$with_libpng"
2798
2799 if test "$withval" = yes; then
2800 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2801 elif test "$withval" = no; then
2802 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2803 elif test "$withval" = sys; then
2804 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2805 elif test "$withval" = builtin; then
2806 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2807 else
2808 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2809echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2810 { (exit 1); exit 1; }; }
2811 fi
2812
2813else
2814
2815 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2816 if test "x$LINE" != x ; then
2817 eval "DEFAULT_$LINE"
2818 else
2819 no_cache=1
2820 fi
2821
2822 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2823
2824fi;
2825
2826 eval "$ac_cv_use_libpng"
2827 if test "$no_cache" != 1; then
2828 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2829 fi
2830
2831 if test "$wxUSE_LIBPNG" = yes; then
2832 echo "$as_me:$LINENO: result: yes" >&5
2833echo "${ECHO_T}yes" >&6
2834 elif test "$wxUSE_LIBPNG" = no; then
2835 echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837 elif test "$wxUSE_LIBPNG" = sys; then
2838 echo "$as_me:$LINENO: result: system version" >&5
2839echo "${ECHO_T}system version" >&6
2840 elif test "$wxUSE_LIBPNG" = builtin; then
2841 echo "$as_me:$LINENO: result: builtin version" >&5
2842echo "${ECHO_T}builtin version" >&6
2843 else
2844 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2845echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2846 { (exit 1); exit 1; }; }
2847 fi
2848
2849
2850 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2851echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2852 no_cache=0
2853
2854# Check whether --with-libjpeg or --without-libjpeg was given.
2855if test "${with_libjpeg+set}" = set; then
2856 withval="$with_libjpeg"
2857
2858 if test "$withval" = yes; then
2859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2860 elif test "$withval" = no; then
2861 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2862 elif test "$withval" = sys; then
2863 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2864 elif test "$withval" = builtin; then
2865 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2866 else
2867 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2868echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2869 { (exit 1); exit 1; }; }
2870 fi
2871
2872else
2873
2874 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2875 if test "x$LINE" != x ; then
2876 eval "DEFAULT_$LINE"
2877 else
2878 no_cache=1
2879 fi
2880
2881 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2882
2883fi;
2884
2885 eval "$ac_cv_use_libjpeg"
2886 if test "$no_cache" != 1; then
2887 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2888 fi
2889
2890 if test "$wxUSE_LIBJPEG" = yes; then
2891 echo "$as_me:$LINENO: result: yes" >&5
2892echo "${ECHO_T}yes" >&6
2893 elif test "$wxUSE_LIBJPEG" = no; then
2894 echo "$as_me:$LINENO: result: no" >&5
2895echo "${ECHO_T}no" >&6
2896 elif test "$wxUSE_LIBJPEG" = sys; then
2897 echo "$as_me:$LINENO: result: system version" >&5
2898echo "${ECHO_T}system version" >&6
2899 elif test "$wxUSE_LIBJPEG" = builtin; then
2900 echo "$as_me:$LINENO: result: builtin version" >&5
2901echo "${ECHO_T}builtin version" >&6
2902 else
2903 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2904echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907
2908
2909 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2910echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2911 no_cache=0
2912
2913# Check whether --with-libtiff or --without-libtiff was given.
2914if test "${with_libtiff+set}" = set; then
2915 withval="$with_libtiff"
2916
2917 if test "$withval" = yes; then
2918 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2919 elif test "$withval" = no; then
2920 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2921 elif test "$withval" = sys; then
2922 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2923 elif test "$withval" = builtin; then
2924 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2925 else
2926 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2927echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2928 { (exit 1); exit 1; }; }
2929 fi
2930
2931else
2932
2933 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2941
2942fi;
2943
2944 eval "$ac_cv_use_libtiff"
2945 if test "$no_cache" != 1; then
2946 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2947 fi
2948
2949 if test "$wxUSE_LIBTIFF" = yes; then
2950 echo "$as_me:$LINENO: result: yes" >&5
2951echo "${ECHO_T}yes" >&6
2952 elif test "$wxUSE_LIBTIFF" = no; then
2953 echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
2955 elif test "$wxUSE_LIBTIFF" = sys; then
2956 echo "$as_me:$LINENO: result: system version" >&5
2957echo "${ECHO_T}system version" >&6
2958 elif test "$wxUSE_LIBTIFF" = builtin; then
2959 echo "$as_me:$LINENO: result: builtin version" >&5
2960echo "${ECHO_T}builtin version" >&6
2961 else
2962 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2963echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966
2967
2968 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2969echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2970 no_cache=0
2971
2972# Check whether --with-libxpm or --without-libxpm was given.
2973if test "${with_libxpm+set}" = set; then
2974 withval="$with_libxpm"
2975
2976 if test "$withval" = yes; then
2977 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2978 elif test "$withval" = no; then
2979 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2980 elif test "$withval" = sys; then
2981 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2982 elif test "$withval" = builtin; then
2983 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2984 else
2985 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2986echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2987 { (exit 1); exit 1; }; }
2988 fi
2989
2990else
2991
2992 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2993 if test "x$LINE" != x ; then
2994 eval "DEFAULT_$LINE"
2995 else
2996 no_cache=1
2997 fi
2998
2999 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3000
3001fi;
3002
3003 eval "$ac_cv_use_libxpm"
3004 if test "$no_cache" != 1; then
3005 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3006 fi
3007
3008 if test "$wxUSE_LIBXPM" = yes; then
3009 echo "$as_me:$LINENO: result: yes" >&5
3010echo "${ECHO_T}yes" >&6
3011 elif test "$wxUSE_LIBXPM" = no; then
3012 echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
3014 elif test "$wxUSE_LIBXPM" = sys; then
3015 echo "$as_me:$LINENO: result: system version" >&5
3016echo "${ECHO_T}system version" >&6
3017 elif test "$wxUSE_LIBXPM" = builtin; then
3018 echo "$as_me:$LINENO: result: builtin version" >&5
3019echo "${ECHO_T}builtin version" >&6
3020 else
3021 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3022echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3023 { (exit 1); exit 1; }; }
3024 fi
3025
3026
3027 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3028echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3029 no_cache=0
3030
3031# Check whether --with-libmspack or --without-libmspack was given.
3032if test "${with_libmspack+set}" = set; then
3033 withval="$with_libmspack"
3034
3035 if test "$withval" = yes; then
3036 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3037 else
3038 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3039 fi
3040
3041else
3042
3043 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3044 if test "x$LINE" != x ; then
3045 eval "DEFAULT_$LINE"
3046 else
3047 no_cache=1
3048 fi
3049
3050 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3051
3052fi;
3053
3054 eval "$ac_cv_use_libmspack"
3055 if test "$no_cache" != 1; then
3056 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3057 fi
3058
3059 if test "$wxUSE_LIBMSPACK" = yes; then
3060 echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
3065 fi
3066
3067
3068 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3069echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3070 no_cache=0
3071
3072# Check whether --with-sdl or --without-sdl was given.
3073if test "${with_sdl+set}" = set; then
3074 withval="$with_sdl"
3075
3076 if test "$withval" = yes; then
3077 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3078 else
3079 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3080 fi
3081
3082else
3083
3084 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3085 if test "x$LINE" != x ; then
3086 eval "DEFAULT_$LINE"
3087 else
3088 no_cache=1
3089 fi
3090
3091 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3092
3093fi;
3094
3095 eval "$ac_cv_use_sdl"
3096 if test "$no_cache" != 1; then
3097 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3098 fi
3099
3100 if test "$wxUSE_LIBSDL" = yes; then
3101 echo "$as_me:$LINENO: result: yes" >&5
3102echo "${ECHO_T}yes" >&6
3103 else
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106 fi
3107
3108
d1c38808
VZ
3109 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3110echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3111 no_cache=0
3112
3113# Check whether --with-gnomeprint or --without-gnomeprint was given.
3114if test "${with_gnomeprint+set}" = set; then
3115 withval="$with_gnomeprint"
3116
3117 if test "$withval" = yes; then
3118 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3119 else
3120 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3121 fi
3122
3123else
3124
3125 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3126 if test "x$LINE" != x ; then
3127 eval "DEFAULT_$LINE"
3128 else
3129 no_cache=1
3130 fi
3131
3132 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3133
3134fi;
3135
3136 eval "$ac_cv_use_gnomeprint"
3137 if test "$no_cache" != 1; then
3138 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3139 fi
3140
3141 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3142 echo "$as_me:$LINENO: result: yes" >&5
3143echo "${ECHO_T}yes" >&6
3144 else
3145 echo "$as_me:$LINENO: result: no" >&5
3146echo "${ECHO_T}no" >&6
3147 fi
3148
3149
a848cd7e
SC
3150 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3151echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3152 no_cache=0
3153
3154# Check whether --with-opengl or --without-opengl was given.
3155if test "${with_opengl+set}" = set; then
3156 withval="$with_opengl"
3157
3158 if test "$withval" = yes; then
3159 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3160 else
3161 ac_cv_use_opengl='wxUSE_OPENGL=no'
3162 fi
3163
3164else
3165
3166 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3174
3175fi;
3176
3177 eval "$ac_cv_use_opengl"
3178 if test "$no_cache" != 1; then
3179 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3180 fi
3181
3182 if test "$wxUSE_OPENGL" = yes; then
3183 echo "$as_me:$LINENO: result: yes" >&5
3184echo "${ECHO_T}yes" >&6
3185 else
3186 echo "$as_me:$LINENO: result: no" >&5
3187echo "${ECHO_T}no" >&6
3188 fi
3189
3190
3191fi
3192
3193
3194 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3195echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3196 no_cache=0
3197
3198# Check whether --with-dmalloc or --without-dmalloc was given.
3199if test "${with_dmalloc+set}" = set; then
3200 withval="$with_dmalloc"
3201
3202 if test "$withval" = yes; then
3203 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3204 else
3205 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3218
3219fi;
3220
3221 eval "$ac_cv_use_dmalloc"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_DMALLOC" = yes; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232 fi
3233
3234
3235 echo "$as_me:$LINENO: checking for --with-regex" >&5
3236echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3237 no_cache=0
3238
3239# Check whether --with-regex or --without-regex was given.
3240if test "${with_regex+set}" = set; then
3241 withval="$with_regex"
3242
3243 if test "$withval" = yes; then
3244 ac_cv_use_regex='wxUSE_REGEX=yes'
3245 elif test "$withval" = no; then
3246 ac_cv_use_regex='wxUSE_REGEX=no'
3247 elif test "$withval" = sys; then
3248 ac_cv_use_regex='wxUSE_REGEX=sys'
3249 elif test "$withval" = builtin; then
3250 ac_cv_use_regex='wxUSE_REGEX=builtin'
3251 else
3252 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3253echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3254 { (exit 1); exit 1; }; }
3255 fi
3256
3257else
3258
3259 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3267
3268fi;
3269
3270 eval "$ac_cv_use_regex"
3271 if test "$no_cache" != 1; then
3272 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3273 fi
3274
3275 if test "$wxUSE_REGEX" = yes; then
3276 echo "$as_me:$LINENO: result: yes" >&5
3277echo "${ECHO_T}yes" >&6
3278 elif test "$wxUSE_REGEX" = no; then
3279 echo "$as_me:$LINENO: result: no" >&5
3280echo "${ECHO_T}no" >&6
3281 elif test "$wxUSE_REGEX" = sys; then
3282 echo "$as_me:$LINENO: result: system version" >&5
3283echo "${ECHO_T}system version" >&6
3284 elif test "$wxUSE_REGEX" = builtin; then
3285 echo "$as_me:$LINENO: result: builtin version" >&5
3286echo "${ECHO_T}builtin version" >&6
3287 else
3288 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3289echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3290 { (exit 1); exit 1; }; }
3291 fi
3292
3293
3294 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3295echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3296 no_cache=0
3297
3298# Check whether --with-zlib or --without-zlib was given.
3299if test "${with_zlib+set}" = set; then
3300 withval="$with_zlib"
3301
3302 if test "$withval" = yes; then
3303 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3304 elif test "$withval" = no; then
3305 ac_cv_use_zlib='wxUSE_ZLIB=no'
3306 elif test "$withval" = sys; then
3307 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3308 elif test "$withval" = builtin; then
3309 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3310 else
3311 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3312echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3313 { (exit 1); exit 1; }; }
3314 fi
3315
3316else
3317
3318 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3319 if test "x$LINE" != x ; then
3320 eval "DEFAULT_$LINE"
3321 else
3322 no_cache=1
3323 fi
3324
3325 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3326
3327fi;
3328
3329 eval "$ac_cv_use_zlib"
3330 if test "$no_cache" != 1; then
3331 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3332 fi
3333
3334 if test "$wxUSE_ZLIB" = yes; then
3335 echo "$as_me:$LINENO: result: yes" >&5
3336echo "${ECHO_T}yes" >&6
3337 elif test "$wxUSE_ZLIB" = no; then
3338 echo "$as_me:$LINENO: result: no" >&5
3339echo "${ECHO_T}no" >&6
3340 elif test "$wxUSE_ZLIB" = sys; then
3341 echo "$as_me:$LINENO: result: system version" >&5
3342echo "${ECHO_T}system version" >&6
3343 elif test "$wxUSE_ZLIB" = builtin; then
3344 echo "$as_me:$LINENO: result: builtin version" >&5
3345echo "${ECHO_T}builtin version" >&6
3346 else
3347 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3348echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351
3352
3353 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3354echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3355 no_cache=0
3356
3357# Check whether --with-odbc or --without-odbc was given.
3358if test "${with_odbc+set}" = set; then
3359 withval="$with_odbc"
3360
3361 if test "$withval" = yes; then
3362 ac_cv_use_odbc='wxUSE_ODBC=yes'
3363 elif test "$withval" = no; then
3364 ac_cv_use_odbc='wxUSE_ODBC=no'
3365 elif test "$withval" = sys; then
3366 ac_cv_use_odbc='wxUSE_ODBC=sys'
3367 elif test "$withval" = builtin; then
3368 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3369 else
3370 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3371echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3372 { (exit 1); exit 1; }; }
3373 fi
3374
3375else
3376
3377 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3378 if test "x$LINE" != x ; then
3379 eval "DEFAULT_$LINE"
3380 else
3381 no_cache=1
3382 fi
3383
3384 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3385
3386fi;
3387
3388 eval "$ac_cv_use_odbc"
3389 if test "$no_cache" != 1; then
3390 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3391 fi
3392
3393 if test "$wxUSE_ODBC" = yes; then
3394 echo "$as_me:$LINENO: result: yes" >&5
3395echo "${ECHO_T}yes" >&6
3396 elif test "$wxUSE_ODBC" = no; then
3397 echo "$as_me:$LINENO: result: no" >&5
3398echo "${ECHO_T}no" >&6
3399 elif test "$wxUSE_ODBC" = sys; then
3400 echo "$as_me:$LINENO: result: system version" >&5
3401echo "${ECHO_T}system version" >&6
3402 elif test "$wxUSE_ODBC" = builtin; then
3403 echo "$as_me:$LINENO: result: builtin version" >&5
3404echo "${ECHO_T}builtin version" >&6
3405 else
3406 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3407echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3408 { (exit 1); exit 1; }; }
3409 fi
3410
3411
3412 echo "$as_me:$LINENO: checking for --with-expat" >&5
3413echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3414 no_cache=0
3415
3416# Check whether --with-expat or --without-expat was given.
3417if test "${with_expat+set}" = set; then
3418 withval="$with_expat"
3419
3420 if test "$withval" = yes; then
3421 ac_cv_use_expat='wxUSE_EXPAT=yes'
3422 elif test "$withval" = no; then
3423 ac_cv_use_expat='wxUSE_EXPAT=no'
3424 elif test "$withval" = sys; then
3425 ac_cv_use_expat='wxUSE_EXPAT=sys'
3426 elif test "$withval" = builtin; then
3427 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3428 else
3429 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3430echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3431 { (exit 1); exit 1; }; }
3432 fi
3433
3434else
3435
3436 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3437 if test "x$LINE" != x ; then
3438 eval "DEFAULT_$LINE"
3439 else
3440 no_cache=1
3441 fi
3442
3443 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3444
3445fi;
3446
3447 eval "$ac_cv_use_expat"
3448 if test "$no_cache" != 1; then
3449 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3450 fi
3451
3452 if test "$wxUSE_EXPAT" = yes; then
3453 echo "$as_me:$LINENO: result: yes" >&5
3454echo "${ECHO_T}yes" >&6
3455 elif test "$wxUSE_EXPAT" = no; then
3456 echo "$as_me:$LINENO: result: no" >&5
3457echo "${ECHO_T}no" >&6
3458 elif test "$wxUSE_EXPAT" = sys; then
3459 echo "$as_me:$LINENO: result: system version" >&5
3460echo "${ECHO_T}system version" >&6
3461 elif test "$wxUSE_EXPAT" = builtin; then
3462 echo "$as_me:$LINENO: result: builtin version" >&5
3463echo "${ECHO_T}builtin version" >&6
3464 else
3465 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3466echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3467 { (exit 1); exit 1; }; }
3468 fi
3469
3470
3471
3472
3473 enablestring=
3474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3475echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3476 no_cache=0
3477 # Check whether --enable-shared or --disable-shared was given.
3478if test "${enable_shared+set}" = set; then
3479 enableval="$enable_shared"
3480
3481 if test "$enableval" = yes; then
3482 ac_cv_use_shared='wxUSE_SHARED=yes'
3483 else
3484 ac_cv_use_shared='wxUSE_SHARED=no'
3485 fi
3486
3487else
3488
3489 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3490 if test "x$LINE" != x ; then
3491 eval "DEFAULT_$LINE"
3492 else
3493 no_cache=1
3494 fi
3495
3496 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3497
3498fi;
3499
3500 eval "$ac_cv_use_shared"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_SHARED" = yes; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507echo "${ECHO_T}yes" >&6
3508 else
3509 echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511 fi
3512
3513
3514 enablestring=
3515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3516echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3517 no_cache=0
3518 # Check whether --enable-optimise or --disable-optimise was given.
3519if test "${enable_optimise+set}" = set; then
3520 enableval="$enable_optimise"
3521
3522 if test "$enableval" = yes; then
3523 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3524 else
3525 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3526 fi
3527
3528else
3529
3530 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3531 if test "x$LINE" != x ; then
3532 eval "DEFAULT_$LINE"
3533 else
3534 no_cache=1
3535 fi
3536
3537 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3538
3539fi;
3540
3541 eval "$ac_cv_use_optimise"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_OPTIMISE" = yes; then
3547 echo "$as_me:$LINENO: result: yes" >&5
3548echo "${ECHO_T}yes" >&6
3549 else
3550 echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552 fi
3553
3554
3555 enablestring=
3556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3557echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3558 no_cache=0
3559 # Check whether --enable-debug or --disable-debug was given.
3560if test "${enable_debug+set}" = set; then
3561 enableval="$enable_debug"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_debug='wxUSE_DEBUG=yes'
3565 else
3566 ac_cv_use_debug='wxUSE_DEBUG=no'
3567 fi
3568
3569else
3570
3571 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3579
3580fi;
3581
3582 eval "$ac_cv_use_debug"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_DEBUG" = yes; then
3588 echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
3590 else
3591 echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
3593 fi
3594
3595
3596 enablestring=
3597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3598echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3599 no_cache=0
3600 # Check whether --enable-stl or --disable-stl was given.
3601if test "${enable_stl+set}" = set; then
3602 enableval="$enable_stl"
3603
3604 if test "$enableval" = yes; then
3605 ac_cv_use_stl='wxUSE_STL=yes'
3606 else
3607 ac_cv_use_stl='wxUSE_STL=no'
3608 fi
3609
3610else
3611
3612 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3613 if test "x$LINE" != x ; then
3614 eval "DEFAULT_$LINE"
3615 else
3616 no_cache=1
3617 fi
3618
3619 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3620
3621fi;
3622
3623 eval "$ac_cv_use_stl"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_STL" = yes; then
3629 echo "$as_me:$LINENO: result: yes" >&5
3630echo "${ECHO_T}yes" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633echo "${ECHO_T}no" >&6
3634 fi
3635
3636if test "$USE_OS2" = "1"; then
69120ee4 3637 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3638
3639 enablestring=
3640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3641echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3642 no_cache=0
3643 # Check whether --enable-omf or --disable-omf was given.
3644if test "${enable_omf+set}" = set; then
3645 enableval="$enable_omf"
3646
3647 if test "$enableval" = yes; then
3648 ac_cv_use_omf='wxUSE_OMF=yes'
3649 else
3650 ac_cv_use_omf='wxUSE_OMF=no'
3651 fi
3652
3653else
3654
3655 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3656 if test "x$LINE" != x ; then
3657 eval "DEFAULT_$LINE"
3658 else
3659 no_cache=1
3660 fi
3661
3662 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3663
3664fi;
3665
3666 eval "$ac_cv_use_omf"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_OMF" = yes; then
3672 echo "$as_me:$LINENO: result: yes" >&5
3673echo "${ECHO_T}yes" >&6
3674 else
3675 echo "$as_me:$LINENO: result: no" >&5
3676echo "${ECHO_T}no" >&6
3677 fi
3678
3679fi
3680
3681if test "$wxUSE_DEBUG" = "yes"; then
3682 DEFAULT_wxUSE_DEBUG_FLAG=yes
3683 DEFAULT_wxUSE_DEBUG_INFO=yes
3684 BUILD=debug
3685elif test "$wxUSE_DEBUG" = "no"; then
3686 DEFAULT_wxUSE_DEBUG_FLAG=no
3687 DEFAULT_wxUSE_DEBUG_INFO=no
3688 BUILD=release
3689fi
3690
3691
3692 enablestring=
3693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3694echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3695 no_cache=0
3696 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3697if test "${enable_debug_flag+set}" = set; then
3698 enableval="$enable_debug_flag"
3699
3700 if test "$enableval" = yes; then
3701 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3702 else
3703 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3704 fi
3705
3706else
3707
3708 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3709 if test "x$LINE" != x ; then
3710 eval "DEFAULT_$LINE"
3711 else
3712 no_cache=1
3713 fi
3714
3715 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3716
3717fi;
3718
3719 eval "$ac_cv_use_debug_flag"
3720 if test "$no_cache" != 1; then
3721 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3722 fi
3723
3724 if test "$wxUSE_DEBUG_FLAG" = yes; then
3725 echo "$as_me:$LINENO: result: yes" >&5
3726echo "${ECHO_T}yes" >&6
3727 else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730 fi
3731
3732
3733 enablestring=
3734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3735echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3736 no_cache=0
3737 # Check whether --enable-debug_info or --disable-debug_info was given.
3738if test "${enable_debug_info+set}" = set; then
3739 enableval="$enable_debug_info"
3740
3741 if test "$enableval" = yes; then
3742 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3743 else
3744 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3745 fi
3746
3747else
3748
3749 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3750 if test "x$LINE" != x ; then
3751 eval "DEFAULT_$LINE"
3752 else
3753 no_cache=1
3754 fi
3755
3756 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3757
3758fi;
3759
3760 eval "$ac_cv_use_debug_info"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_DEBUG_INFO" = yes; then
3766 echo "$as_me:$LINENO: result: yes" >&5
3767echo "${ECHO_T}yes" >&6
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770echo "${ECHO_T}no" >&6
3771 fi
3772
3773
3774 enablestring=
3775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3776echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3777 no_cache=0
3778 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3779if test "${enable_debug_gdb+set}" = set; then
3780 enableval="$enable_debug_gdb"
3781
3782 if test "$enableval" = yes; then
3783 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3784 else
3785 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3786 fi
3787
3788else
3789
3790 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3791 if test "x$LINE" != x ; then
3792 eval "DEFAULT_$LINE"
3793 else
3794 no_cache=1
3795 fi
3796
3797 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3798
3799fi;
3800
3801 eval "$ac_cv_use_debug_gdb"
3802 if test "$no_cache" != 1; then
3803 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3804 fi
3805
3806 if test "$wxUSE_DEBUG_GDB" = yes; then
3807 echo "$as_me:$LINENO: result: yes" >&5
3808echo "${ECHO_T}yes" >&6
3809 else
3810 echo "$as_me:$LINENO: result: no" >&5
3811echo "${ECHO_T}no" >&6
3812 fi
3813
3814
3815 enablestring=
3816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3817echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3818 no_cache=0
3819 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3820if test "${enable_debug_cntxt+set}" = set; then
3821 enableval="$enable_debug_cntxt"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3825 else
3826 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3827 fi
3828
3829else
3830
3831 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3839
3840fi;
3841
3842 eval "$ac_cv_use_debug_cntxt"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3848 echo "$as_me:$LINENO: result: yes" >&5
3849echo "${ECHO_T}yes" >&6
3850 else
3851 echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
3853 fi
3854
3855
3856 enablestring=
3857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3858echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3859 no_cache=0
3860 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3861if test "${enable_mem_tracing+set}" = set; then
3862 enableval="$enable_mem_tracing"
3863
3864 if test "$enableval" = yes; then
3865 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3866 else
3867 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3868 fi
3869
3870else
3871
3872 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3873 if test "x$LINE" != x ; then
3874 eval "DEFAULT_$LINE"
3875 else
3876 no_cache=1
3877 fi
3878
3879 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3880
3881fi;
3882
3883 eval "$ac_cv_use_mem_tracing"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_MEM_TRACING" = yes; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890echo "${ECHO_T}yes" >&6
3891 else
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894 fi
3895
3896
3897 enablestring=
3898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3899echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3900 no_cache=0
3901 # Check whether --enable-profile or --disable-profile was given.
3902if test "${enable_profile+set}" = set; then
3903 enableval="$enable_profile"
3904
3905 if test "$enableval" = yes; then
3906 ac_cv_use_profile='wxUSE_PROFILE=yes'
3907 else
3908 ac_cv_use_profile='wxUSE_PROFILE=no'
3909 fi
3910
3911else
3912
3913 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3921
3922fi;
3923
3924 eval "$ac_cv_use_profile"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_PROFILE" = yes; then
3930 echo "$as_me:$LINENO: result: yes" >&5
3931echo "${ECHO_T}yes" >&6
3932 else
3933 echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
3935 fi
3936
3937
3938 enablestring=
3939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3940echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3941 no_cache=0
3942 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3943if test "${enable_no_rtti+set}" = set; then
3944 enableval="$enable_no_rtti"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3948 else
3949 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3950 fi
3951
3952else
3953
3954 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3962
3963fi;
3964
3965 eval "$ac_cv_use_no_rtti"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_NO_RTTI" = yes; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973 else
3974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
3976 fi
3977
3978
3979 enablestring=
3980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3981echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3982 no_cache=0
3983 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3984if test "${enable_no_exceptions+set}" = set; then
3985 enableval="$enable_no_exceptions"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3989 else
3990 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3991 fi
3992
3993else
3994
3995 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4003
4004fi;
4005
4006 eval "$ac_cv_use_no_exceptions"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4012 echo "$as_me:$LINENO: result: yes" >&5
4013echo "${ECHO_T}yes" >&6
4014 else
4015 echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6
4017 fi
4018
4019
4020 enablestring=
4021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4022echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4023 no_cache=0
4024 # Check whether --enable-permissive or --disable-permissive was given.
4025if test "${enable_permissive+set}" = set; then
4026 enableval="$enable_permissive"
4027
4028 if test "$enableval" = yes; then
4029 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4030 else
4031 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4032 fi
4033
4034else
4035
4036 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4037 if test "x$LINE" != x ; then
4038 eval "DEFAULT_$LINE"
4039 else
4040 no_cache=1
4041 fi
4042
4043 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4044
4045fi;
4046
4047 eval "$ac_cv_use_permissive"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$wxUSE_PERMISSIVE" = yes; then
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058 fi
4059
4060
4061 enablestring=
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4063echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4064 no_cache=0
4065 # Check whether --enable-no_deps or --disable-no_deps was given.
4066if test "${enable_no_deps+set}" = set; then
4067 enableval="$enable_no_deps"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4071 else
4072 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4073 fi
4074
4075else
4076
4077 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4085
4086fi;
4087
4088 eval "$ac_cv_use_no_deps"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_NO_DEPS" = yes; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
4099 fi
4100
4101
4102
4103 enablestring=
4104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4105echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4106 no_cache=0
4107 # Check whether --enable-compat22 or --disable-compat22 was given.
4108if test "${enable_compat22+set}" = set; then
4109 enableval="$enable_compat22"
4110
4111 if test "$enableval" = yes; then
4112 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4113 else
4114 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4115 fi
4116
4117else
4118
4119 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4120 if test "x$LINE" != x ; then
4121 eval "DEFAULT_$LINE"
4122 else
4123 no_cache=1
4124 fi
4125
4126 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4127
4128fi;
4129
4130 eval "$ac_cv_use_compat22"
4131 if test "$no_cache" != 1; then
4132 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4133 fi
4134
4135 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4136 echo "$as_me:$LINENO: result: yes" >&5
4137echo "${ECHO_T}yes" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141 fi
4142
4143
4144 enablestring=disable
4145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4146echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4147 no_cache=0
4148 # Check whether --enable-compat24 or --disable-compat24 was given.
4149if test "${enable_compat24+set}" = set; then
4150 enableval="$enable_compat24"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4154 else
4155 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4156 fi
4157
4158else
4159
4160 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4168
4169fi;
4170
4171 eval "$ac_cv_use_compat24"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4177 echo "$as_me:$LINENO: result: yes" >&5
4178echo "${ECHO_T}yes" >&6
4179 else
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
4182 fi
4183
4184
ffa0583f
RL
4185
4186 enablestring=
4187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4188echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4189 no_cache=0
4190 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4191if test "${enable_rpath+set}" = set; then
4192 enableval="$enable_rpath"
ffa0583f
RL
4193
4194 if test "$enableval" = yes; then
4195 ac_cv_use_rpath='wxUSE_RPATH=yes'
4196 else
4197 ac_cv_use_rpath='wxUSE_RPATH=no'
4198 fi
4199
4200else
4201
4202 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4203 if test "x$LINE" != x ; then
4204 eval "DEFAULT_$LINE"
4205 else
4206 no_cache=1
4207 fi
4208
4209 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4210
a848cd7e
SC
4211fi;
4212
ffa0583f
RL
4213 eval "$ac_cv_use_rpath"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_RPATH" = yes; then
4219 echo "$as_me:$LINENO: result: yes" >&5
4220echo "${ECHO_T}yes" >&6
4221 else
4222 echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6
4224 fi
4225
a848cd7e
SC
4226
4227
4228
4229
4230 enablestring=
4231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4232echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4233 no_cache=0
4234 # Check whether --enable-intl or --disable-intl was given.
4235if test "${enable_intl+set}" = set; then
4236 enableval="$enable_intl"
4237
4238 if test "$enableval" = yes; then
4239 ac_cv_use_intl='wxUSE_INTL=yes'
4240 else
4241 ac_cv_use_intl='wxUSE_INTL=no'
4242 fi
4243
4244else
4245
4246 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4254
4255fi;
4256
4257 eval "$ac_cv_use_intl"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_INTL" = yes; then
4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268 fi
4269
4270
4271 enablestring=
4272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4273echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4274 no_cache=0
4275 # Check whether --enable-config or --disable-config was given.
4276if test "${enable_config+set}" = set; then
4277 enableval="$enable_config"
4278
4279 if test "$enableval" = yes; then
4280 ac_cv_use_config='wxUSE_CONFIG=yes'
4281 else
4282 ac_cv_use_config='wxUSE_CONFIG=no'
4283 fi
4284
4285else
4286
4287 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4295
4296fi;
4297
4298 eval "$ac_cv_use_config"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_CONFIG" = yes; then
4304 echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
4306 else
4307 echo "$as_me:$LINENO: result: no" >&5
4308echo "${ECHO_T}no" >&6
4309 fi
4310
4311
4312
4313 enablestring=
4314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4315echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4316 no_cache=0
4317 # Check whether --enable-protocols or --disable-protocols was given.
4318if test "${enable_protocols+set}" = set; then
4319 enableval="$enable_protocols"
4320
4321 if test "$enableval" = yes; then
4322 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4323 else
4324 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4325 fi
4326
4327else
4328
4329 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4330 if test "x$LINE" != x ; then
4331 eval "DEFAULT_$LINE"
4332 else
4333 no_cache=1
4334 fi
4335
4336 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4337
4338fi;
4339
4340 eval "$ac_cv_use_protocols"
4341 if test "$no_cache" != 1; then
4342 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4343 fi
4344
4345 if test "$wxUSE_PROTOCOL" = yes; then
4346 echo "$as_me:$LINENO: result: yes" >&5
4347echo "${ECHO_T}yes" >&6
4348 else
4349 echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
4351 fi
4352
4353
4354 enablestring=
4355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4356echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4357 no_cache=0
4358 # Check whether --enable-ftp or --disable-ftp was given.
4359if test "${enable_ftp+set}" = set; then
4360 enableval="$enable_ftp"
4361
4362 if test "$enableval" = yes; then
4363 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4364 else
4365 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4366 fi
4367
4368else
4369
4370 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4371 if test "x$LINE" != x ; then
4372 eval "DEFAULT_$LINE"
4373 else
4374 no_cache=1
4375 fi
4376
4377 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4378
4379fi;
4380
4381 eval "$ac_cv_use_ftp"
4382 if test "$no_cache" != 1; then
4383 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4384 fi
4385
4386 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4387 echo "$as_me:$LINENO: result: yes" >&5
4388echo "${ECHO_T}yes" >&6
4389 else
4390 echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6
4392 fi
4393
4394
4395 enablestring=
4396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4397echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4398 no_cache=0
4399 # Check whether --enable-http or --disable-http was given.
4400if test "${enable_http+set}" = set; then
4401 enableval="$enable_http"
4402
4403 if test "$enableval" = yes; then
4404 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4405 else
4406 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4407 fi
4408
4409else
4410
4411 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4412 if test "x$LINE" != x ; then
4413 eval "DEFAULT_$LINE"
4414 else
4415 no_cache=1
4416 fi
4417
4418 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4419
4420fi;
4421
4422 eval "$ac_cv_use_http"
4423 if test "$no_cache" != 1; then
4424 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4425 fi
4426
4427 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4428 echo "$as_me:$LINENO: result: yes" >&5
4429echo "${ECHO_T}yes" >&6
4430 else
4431 echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6
4433 fi
4434
4435
4436 enablestring=
4437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4438echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4439 no_cache=0
4440 # Check whether --enable-fileproto or --disable-fileproto was given.
4441if test "${enable_fileproto+set}" = set; then
4442 enableval="$enable_fileproto"
4443
4444 if test "$enableval" = yes; then
4445 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4446 else
4447 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4448 fi
4449
4450else
4451
4452 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4460
4461fi;
4462
4463 eval "$ac_cv_use_fileproto"
4464 if test "$no_cache" != 1; then
4465 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4466 fi
4467
4468 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4469 echo "$as_me:$LINENO: result: yes" >&5
4470echo "${ECHO_T}yes" >&6
4471 else
4472 echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
4474 fi
4475
4476
4477 enablestring=
4478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4479echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4480 no_cache=0
4481 # Check whether --enable-sockets or --disable-sockets was given.
4482if test "${enable_sockets+set}" = set; then
4483 enableval="$enable_sockets"
4484
4485 if test "$enableval" = yes; then
4486 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4487 else
4488 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4489 fi
4490
4491else
4492
4493 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4494 if test "x$LINE" != x ; then
4495 eval "DEFAULT_$LINE"
4496 else
4497 no_cache=1
4498 fi
4499
4500 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4501
4502fi;
4503
4504 eval "$ac_cv_use_sockets"
4505 if test "$no_cache" != 1; then
4506 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4507 fi
4508
4509 if test "$wxUSE_SOCKETS" = yes; then
4510 echo "$as_me:$LINENO: result: yes" >&5
4511echo "${ECHO_T}yes" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515 fi
4516
4517
4518 enablestring=
4519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4520echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4521 no_cache=0
4522 # Check whether --enable-ole or --disable-ole was given.
4523if test "${enable_ole+set}" = set; then
4524 enableval="$enable_ole"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_ole='wxUSE_OLE=yes'
4528 else
4529 ac_cv_use_ole='wxUSE_OLE=no'
4530 fi
4531
4532else
4533
4534 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4542
4543fi;
4544
4545 eval "$ac_cv_use_ole"
4546 if test "$no_cache" != 1; then
4547 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4548 fi
4549
4550 if test "$wxUSE_OLE" = yes; then
4551 echo "$as_me:$LINENO: result: yes" >&5
4552echo "${ECHO_T}yes" >&6
4553 else
4554 echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6
4556 fi
4557
4558
4559 enablestring=
4560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4561echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4562 no_cache=0
4563 # Check whether --enable-dataobj or --disable-dataobj was given.
4564if test "${enable_dataobj+set}" = set; then
4565 enableval="$enable_dataobj"
4566
4567 if test "$enableval" = yes; then
4568 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4569 else
4570 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4571 fi
4572
4573else
4574
4575 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
4582 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4583
4584fi;
4585
4586 eval "$ac_cv_use_dataobj"
4587 if test "$no_cache" != 1; then
4588 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4589 fi
4590
4591 if test "$wxUSE_DATAOBJ" = yes; then
4592 echo "$as_me:$LINENO: result: yes" >&5
4593echo "${ECHO_T}yes" >&6
4594 else
4595 echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6
4597 fi
4598
4599
4600
4601 enablestring=
4602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4603echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4604 no_cache=0
4605 # Check whether --enable-ipc or --disable-ipc was given.
4606if test "${enable_ipc+set}" = set; then
4607 enableval="$enable_ipc"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_ipc='wxUSE_IPC=yes'
4611 else
4612 ac_cv_use_ipc='wxUSE_IPC=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4625
4626fi;
4627
4628 eval "$ac_cv_use_ipc"
4629 if test "$no_cache" != 1; then
4630 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4631 fi
4632
4633 if test "$wxUSE_IPC" = yes; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
4639 fi
4640
4641
4642
4643 enablestring=
4644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4645echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4646 no_cache=0
4647 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4648if test "${enable_apple_ieee+set}" = set; then
4649 enableval="$enable_apple_ieee"
4650
4651 if test "$enableval" = yes; then
4652 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4653 else
4654 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4655 fi
4656
4657else
4658
4659 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4660 if test "x$LINE" != x ; then
4661 eval "DEFAULT_$LINE"
4662 else
4663 no_cache=1
4664 fi
4665
4666 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4667
4668fi;
4669
4670 eval "$ac_cv_use_apple_ieee"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_APPLE_IEEE" = yes; then
4676 echo "$as_me:$LINENO: result: yes" >&5
4677echo "${ECHO_T}yes" >&6
4678 else
4679 echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6
4681 fi
4682
4683
81f90336
MW
4684 enablestring=
4685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4686echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4687 no_cache=0
4688 # Check whether --enable-arcstream or --disable-arcstream was given.
4689if test "${enable_arcstream+set}" = set; then
4690 enableval="$enable_arcstream"
4691
4692 if test "$enableval" = yes; then
9e8e867f 4693 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4694 else
9e8e867f 4695 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4696 fi
4697
4698else
4699
9e8e867f 4700 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
9e8e867f 4707 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4708
4709fi;
4710
4711 eval "$ac_cv_use_arcstream"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4714 fi
4715
9e8e867f 4716 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4717 echo "$as_me:$LINENO: result: yes" >&5
4718echo "${ECHO_T}yes" >&6
4719 else
4720 echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6
4722 fi
4723
4724
a848cd7e 4725 enablestring=
36b6448c
VZ
4726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4727echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4728 no_cache=0
36b6448c
VZ
4729 # Check whether --enable-backtrace or --disable-backtrace was given.
4730if test "${enable_backtrace+set}" = set; then
4731 enableval="$enable_backtrace"
a848cd7e
SC
4732
4733 if test "$enableval" = yes; then
36b6448c 4734 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4735 else
36b6448c 4736 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4737 fi
4738
4739else
4740
36b6448c 4741 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4742 if test "x$LINE" != x ; then
4743 eval "DEFAULT_$LINE"
4744 else
4745 no_cache=1
4746 fi
4747
36b6448c 4748 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4749
4750fi;
4751
36b6448c 4752 eval "$ac_cv_use_backtrace"
a848cd7e 4753 if test "$no_cache" != 1; then
36b6448c 4754 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4755 fi
4756
36b6448c 4757 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4758 echo "$as_me:$LINENO: result: yes" >&5
4759echo "${ECHO_T}yes" >&6
4760 else
4761 echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763 fi
4764
4765
eaff0f0d 4766 enablestring=
36b6448c
VZ
4767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4768echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4769 no_cache=0
36b6448c
VZ
4770 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4771if test "${enable_catch_segvs+set}" = set; then
4772 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4773
4774 if test "$enableval" = yes; then
36b6448c 4775 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4776 else
36b6448c 4777 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4778 fi
4779
4780else
4781
36b6448c 4782 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4783 if test "x$LINE" != x ; then
4784 eval "DEFAULT_$LINE"
4785 else
4786 no_cache=1
4787 fi
4788
36b6448c 4789 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4790
4791fi;
4792
36b6448c 4793 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4794 if test "$no_cache" != 1; then
36b6448c 4795 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4796 fi
4797
36b6448c 4798 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4799 echo "$as_me:$LINENO: result: yes" >&5
4800echo "${ECHO_T}yes" >&6
4801 else
4802 echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6
4804 fi
4805
4806
a848cd7e
SC
4807 enablestring=
4808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4809echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4810 no_cache=0
4811 # Check whether --enable-cmdline or --disable-cmdline was given.
4812if test "${enable_cmdline+set}" = set; then
4813 enableval="$enable_cmdline"
4814
4815 if test "$enableval" = yes; then
4816 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4817 else
4818 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4819 fi
4820
4821else
4822
4823 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
4830 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4831
4832fi;
4833
4834 eval "$ac_cv_use_cmdline"
4835 if test "$no_cache" != 1; then
4836 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4837 fi
4838
4839 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4840 echo "$as_me:$LINENO: result: yes" >&5
4841echo "${ECHO_T}yes" >&6
4842 else
4843 echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6
4845 fi
4846
4847
4848 enablestring=
4849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4850echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4851 no_cache=0
4852 # Check whether --enable-datetime or --disable-datetime was given.
4853if test "${enable_datetime+set}" = set; then
4854 enableval="$enable_datetime"
4855
4856 if test "$enableval" = yes; then
4857 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4858 else
4859 ac_cv_use_datetime='wxUSE_DATETIME=no'
4860 fi
4861
4862else
4863
4864 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4865 if test "x$LINE" != x ; then
4866 eval "DEFAULT_$LINE"
4867 else
4868 no_cache=1
4869 fi
4870
4871 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4872
4873fi;
4874
4875 eval "$ac_cv_use_datetime"
4876 if test "$no_cache" != 1; then
4877 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4878 fi
4879
4880 if test "$wxUSE_DATETIME" = yes; then
4881 echo "$as_me:$LINENO: result: yes" >&5
4882echo "${ECHO_T}yes" >&6
4883 else
4884 echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
4886 fi
4887
4888
36b6448c
VZ
4889 enablestring=
4890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4891echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4892 no_cache=0
4893 # Check whether --enable-debugreport or --disable-debugreport was given.
4894if test "${enable_debugreport+set}" = set; then
4895 enableval="$enable_debugreport"
4896
4897 if test "$enableval" = yes; then
4898 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4899 else
4900 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4901 fi
4902
4903else
4904
4905 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4906 if test "x$LINE" != x ; then
4907 eval "DEFAULT_$LINE"
4908 else
4909 no_cache=1
4910 fi
4911
4912 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4913
4914fi;
4915
4916 eval "$ac_cv_use_debugreport"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_DEBUGREPORT" = yes; then
4922 echo "$as_me:$LINENO: result: yes" >&5
4923echo "${ECHO_T}yes" >&6
4924 else
4925 echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6
4927 fi
4928
4929
a848cd7e
SC
4930 enablestring=
4931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4932echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4933 no_cache=0
4934 # Check whether --enable-dialupman or --disable-dialupman was given.
4935if test "${enable_dialupman+set}" = set; then
4936 enableval="$enable_dialupman"
4937
4938 if test "$enableval" = yes; then
4939 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4940 else
4941 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4942 fi
4943
4944else
4945
4946 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4947 if test "x$LINE" != x ; then
4948 eval "DEFAULT_$LINE"
4949 else
4950 no_cache=1
4951 fi
4952
4953 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4954
4955fi;
4956
4957 eval "$ac_cv_use_dialupman"
4958 if test "$no_cache" != 1; then
4959 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4960 fi
4961
4962 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4963 echo "$as_me:$LINENO: result: yes" >&5
4964echo "${ECHO_T}yes" >&6
4965 else
4966 echo "$as_me:$LINENO: result: no" >&5
4967echo "${ECHO_T}no" >&6
4968 fi
4969
4970
4971 enablestring=
4972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4973echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4974 no_cache=0
4975 # Check whether --enable-dynlib or --disable-dynlib was given.
4976if test "${enable_dynlib+set}" = set; then
4977 enableval="$enable_dynlib"
4978
4979 if test "$enableval" = yes; then
4980 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4981 else
4982 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4983 fi
4984
4985else
4986
4987 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4995
4996fi;
4997
4998 eval "$ac_cv_use_dynlib"
4999 if test "$no_cache" != 1; then
5000 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5001 fi
5002
5003 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5004 echo "$as_me:$LINENO: result: yes" >&5
5005echo "${ECHO_T}yes" >&6
5006 else
5007 echo "$as_me:$LINENO: result: no" >&5
5008echo "${ECHO_T}no" >&6
5009 fi
5010
5011
5012 enablestring=
5013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5014echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5015 no_cache=0
5016 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5017if test "${enable_dynamicloader+set}" = set; then
5018 enableval="$enable_dynamicloader"
5019
5020 if test "$enableval" = yes; then
5021 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5022 else
5023 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5024 fi
5025
5026else
5027
5028 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5029 if test "x$LINE" != x ; then
5030 eval "DEFAULT_$LINE"
5031 else
5032 no_cache=1
5033 fi
5034
5035 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5036
5037fi;
5038
5039 eval "$ac_cv_use_dynamicloader"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5045 echo "$as_me:$LINENO: result: yes" >&5
5046echo "${ECHO_T}yes" >&6
5047 else
5048 echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6
5050 fi
5051
5052
5053 enablestring=
5054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5055echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5056 no_cache=0
5057 # Check whether --enable-exceptions or --disable-exceptions was given.
5058if test "${enable_exceptions+set}" = set; then
5059 enableval="$enable_exceptions"
5060
5061 if test "$enableval" = yes; then
5062 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5063 else
5064 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5065 fi
5066
5067else
5068
5069 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5070 if test "x$LINE" != x ; then
5071 eval "DEFAULT_$LINE"
5072 else
5073 no_cache=1
5074 fi
5075
5076 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5077
5078fi;
5079
5080 eval "$ac_cv_use_exceptions"
5081 if test "$no_cache" != 1; then
5082 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5083 fi
5084
5085 if test "$wxUSE_EXCEPTIONS" = yes; then
5086 echo "$as_me:$LINENO: result: yes" >&5
5087echo "${ECHO_T}yes" >&6
5088 else
5089 echo "$as_me:$LINENO: result: no" >&5
5090echo "${ECHO_T}no" >&6
5091 fi
5092
5093
5094 enablestring=
5095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5096echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5097 no_cache=0
5098 # Check whether --enable-ffile or --disable-ffile was given.
5099if test "${enable_ffile+set}" = set; then
5100 enableval="$enable_ffile"
5101
5102 if test "$enableval" = yes; then
5103 ac_cv_use_ffile='wxUSE_FFILE=yes'
5104 else
5105 ac_cv_use_ffile='wxUSE_FFILE=no'
5106 fi
5107
5108else
5109
5110 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5111 if test "x$LINE" != x ; then
5112 eval "DEFAULT_$LINE"
5113 else
5114 no_cache=1
5115 fi
5116
5117 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5118
5119fi;
5120
5121 eval "$ac_cv_use_ffile"
5122 if test "$no_cache" != 1; then
5123 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5124 fi
5125
5126 if test "$wxUSE_FFILE" = yes; then
5127 echo "$as_me:$LINENO: result: yes" >&5
5128echo "${ECHO_T}yes" >&6
5129 else
5130 echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6
5132 fi
5133
5134
5135 enablestring=
5136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5137echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5138 no_cache=0
5139 # Check whether --enable-file or --disable-file was given.
5140if test "${enable_file+set}" = set; then
5141 enableval="$enable_file"
5142
5143 if test "$enableval" = yes; then
5144 ac_cv_use_file='wxUSE_FILE=yes'
5145 else
5146 ac_cv_use_file='wxUSE_FILE=no'
5147 fi
5148
5149else
5150
5151 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
5158 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5159
5160fi;
5161
5162 eval "$ac_cv_use_file"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_FILE" = yes; then
5168 echo "$as_me:$LINENO: result: yes" >&5
5169echo "${ECHO_T}yes" >&6
5170 else
5171 echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173 fi
5174
5175
5176 enablestring=
5177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5178echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5179 no_cache=0
5180 # Check whether --enable-filesystem or --disable-filesystem was given.
5181if test "${enable_filesystem+set}" = set; then
5182 enableval="$enable_filesystem"
5183
5184 if test "$enableval" = yes; then
5185 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5186 else
5187 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5188 fi
5189
5190else
5191
5192 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5193 if test "x$LINE" != x ; then
5194 eval "DEFAULT_$LINE"
5195 else
5196 no_cache=1
5197 fi
5198
5199 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5200
5201fi;
5202
5203 eval "$ac_cv_use_filesystem"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_FILESYSTEM" = yes; then
5209 echo "$as_me:$LINENO: result: yes" >&5
5210echo "${ECHO_T}yes" >&6
5211 else
5212 echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214 fi
5215
5216
5217 enablestring=
5218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5219echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5220 no_cache=0
5221 # Check whether --enable-fontmap or --disable-fontmap was given.
5222if test "${enable_fontmap+set}" = set; then
5223 enableval="$enable_fontmap"
5224
5225 if test "$enableval" = yes; then
5226 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5227 else
5228 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5229 fi
5230
5231else
5232
5233 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5234 if test "x$LINE" != x ; then
5235 eval "DEFAULT_$LINE"
5236 else
5237 no_cache=1
5238 fi
5239
5240 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5241
5242fi;
5243
5244 eval "$ac_cv_use_fontmap"
5245 if test "$no_cache" != 1; then
5246 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5247 fi
5248
5249 if test "$wxUSE_FONTMAP" = yes; then
5250 echo "$as_me:$LINENO: result: yes" >&5
5251echo "${ECHO_T}yes" >&6
5252 else
5253 echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
5255 fi
5256
5257
5258 enablestring=
5259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5260echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5261 no_cache=0
5262 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5263if test "${enable_fs_inet+set}" = set; then
5264 enableval="$enable_fs_inet"
5265
5266 if test "$enableval" = yes; then
5267 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5268 else
5269 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5270 fi
5271
5272else
5273
5274 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5275 if test "x$LINE" != x ; then
5276 eval "DEFAULT_$LINE"
5277 else
5278 no_cache=1
5279 fi
5280
5281 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5282
5283fi;
5284
5285 eval "$ac_cv_use_fs_inet"
5286 if test "$no_cache" != 1; then
5287 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5288 fi
5289
5290 if test "$wxUSE_FS_INET" = yes; then
5291 echo "$as_me:$LINENO: result: yes" >&5
5292echo "${ECHO_T}yes" >&6
5293 else
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296 fi
5297
5298
5299 enablestring=
5300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5301echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5302 no_cache=0
5303 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5304if test "${enable_fs_zip+set}" = set; then
5305 enableval="$enable_fs_zip"
5306
5307 if test "$enableval" = yes; then
5308 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5309 else
5310 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5311 fi
5312
5313else
5314
5315 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5316 if test "x$LINE" != x ; then
5317 eval "DEFAULT_$LINE"
5318 else
5319 no_cache=1
5320 fi
5321
5322 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5323
5324fi;
5325
5326 eval "$ac_cv_use_fs_zip"
5327 if test "$no_cache" != 1; then
5328 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5329 fi
5330
5331 if test "$wxUSE_FS_ZIP" = yes; then
5332 echo "$as_me:$LINENO: result: yes" >&5
5333echo "${ECHO_T}yes" >&6
5334 else
5335 echo "$as_me:$LINENO: result: no" >&5
5336echo "${ECHO_T}no" >&6
5337 fi
5338
5339
5340 enablestring=
5341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5342echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5343 no_cache=0
5344 # Check whether --enable-geometry or --disable-geometry was given.
5345if test "${enable_geometry+set}" = set; then
5346 enableval="$enable_geometry"
5347
5348 if test "$enableval" = yes; then
5349 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5350 else
5351 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5352 fi
5353
5354else
5355
5356 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5357 if test "x$LINE" != x ; then
5358 eval "DEFAULT_$LINE"
5359 else
5360 no_cache=1
5361 fi
5362
5363 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5364
5365fi;
5366
5367 eval "$ac_cv_use_geometry"
5368 if test "$no_cache" != 1; then
5369 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5370 fi
5371
5372 if test "$wxUSE_GEOMETRY" = yes; then
5373 echo "$as_me:$LINENO: result: yes" >&5
5374echo "${ECHO_T}yes" >&6
5375 else
5376 echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6
5378 fi
5379
5380
5381 enablestring=
5382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5383echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5384 no_cache=0
5385 # Check whether --enable-log or --disable-log was given.
5386if test "${enable_log+set}" = set; then
5387 enableval="$enable_log"
5388
5389 if test "$enableval" = yes; then
5390 ac_cv_use_log='wxUSE_LOG=yes'
5391 else
5392 ac_cv_use_log='wxUSE_LOG=no'
5393 fi
5394
5395else
5396
5397 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5398 if test "x$LINE" != x ; then
5399 eval "DEFAULT_$LINE"
5400 else
5401 no_cache=1
5402 fi
5403
5404 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5405
5406fi;
5407
5408 eval "$ac_cv_use_log"
5409 if test "$no_cache" != 1; then
5410 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5411 fi
5412
5413 if test "$wxUSE_LOG" = yes; then
5414 echo "$as_me:$LINENO: result: yes" >&5
5415echo "${ECHO_T}yes" >&6
5416 else
5417 echo "$as_me:$LINENO: result: no" >&5
5418echo "${ECHO_T}no" >&6
5419 fi
5420
5421
5422 enablestring=
5423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5424echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5425 no_cache=0
5426 # Check whether --enable-longlong or --disable-longlong was given.
5427if test "${enable_longlong+set}" = set; then
5428 enableval="$enable_longlong"
5429
5430 if test "$enableval" = yes; then
5431 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5432 else
5433 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5434 fi
5435
5436else
5437
5438 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5439 if test "x$LINE" != x ; then
5440 eval "DEFAULT_$LINE"
5441 else
5442 no_cache=1
5443 fi
5444
5445 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5446
5447fi;
5448
5449 eval "$ac_cv_use_longlong"
5450 if test "$no_cache" != 1; then
5451 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5452 fi
5453
5454 if test "$wxUSE_LONGLONG" = yes; then
5455 echo "$as_me:$LINENO: result: yes" >&5
5456echo "${ECHO_T}yes" >&6
5457 else
5458 echo "$as_me:$LINENO: result: no" >&5
5459echo "${ECHO_T}no" >&6
5460 fi
5461
5462
5463 enablestring=
5464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5465echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5466 no_cache=0
5467 # Check whether --enable-mimetype or --disable-mimetype was given.
5468if test "${enable_mimetype+set}" = set; then
5469 enableval="$enable_mimetype"
5470
5471 if test "$enableval" = yes; then
5472 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5473 else
5474 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5475 fi
5476
5477else
5478
5479 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5480 if test "x$LINE" != x ; then
5481 eval "DEFAULT_$LINE"
5482 else
5483 no_cache=1
5484 fi
5485
5486 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5487
5488fi;
5489
5490 eval "$ac_cv_use_mimetype"
5491 if test "$no_cache" != 1; then
5492 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5493 fi
5494
5495 if test "$wxUSE_MIMETYPE" = yes; then
5496 echo "$as_me:$LINENO: result: yes" >&5
5497echo "${ECHO_T}yes" >&6
5498 else
5499 echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501 fi
5502
5503
5504 enablestring=
5505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5506echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5507 no_cache=0
5508 # Check whether --enable-mslu or --disable-mslu was given.
5509if test "${enable_mslu+set}" = set; then
5510 enableval="$enable_mslu"
5511
5512 if test "$enableval" = yes; then
5513 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5514 else
5515 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5516 fi
5517
5518else
5519
5520 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5521 if test "x$LINE" != x ; then
5522 eval "DEFAULT_$LINE"
5523 else
5524 no_cache=1
5525 fi
5526
5527 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5528
5529fi;
5530
5531 eval "$ac_cv_use_mslu"
5532 if test "$no_cache" != 1; then
5533 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5534 fi
5535
5536 if test "$wxUSE_UNICODE_MSLU" = yes; then
5537 echo "$as_me:$LINENO: result: yes" >&5
5538echo "${ECHO_T}yes" >&6
5539 else
5540 echo "$as_me:$LINENO: result: no" >&5
5541echo "${ECHO_T}no" >&6
5542 fi
5543
5544
5545 enablestring=
5546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5547echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5548 no_cache=0
5549 # Check whether --enable-snglinst or --disable-snglinst was given.
5550if test "${enable_snglinst+set}" = set; then
5551 enableval="$enable_snglinst"
5552
5553 if test "$enableval" = yes; then
5554 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5555 else
5556 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5557 fi
5558
5559else
5560
5561 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5562 if test "x$LINE" != x ; then
5563 eval "DEFAULT_$LINE"
5564 else
5565 no_cache=1
5566 fi
5567
5568 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5569
5570fi;
5571
5572 eval "$ac_cv_use_snglinst"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5578 echo "$as_me:$LINENO: result: yes" >&5
5579echo "${ECHO_T}yes" >&6
5580 else
5581 echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
5583 fi
5584
5585
5586 enablestring=
07158944
VZ
5587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5588echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5589 no_cache=0
07158944
VZ
5590 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5591if test "${enable_std_iostreams+set}" = set; then
5592 enableval="$enable_std_iostreams"
a848cd7e
SC
5593
5594 if test "$enableval" = yes; then
07158944 5595 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5596 else
07158944 5597 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5598 fi
5599
5600else
5601
07158944 5602 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5603 if test "x$LINE" != x ; then
5604 eval "DEFAULT_$LINE"
5605 else
5606 no_cache=1
5607 fi
5608
07158944 5609 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5610
5611fi;
5612
07158944 5613 eval "$ac_cv_use_std_iostreams"
a848cd7e 5614 if test "$no_cache" != 1; then
07158944 5615 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5616 fi
5617
07158944 5618 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5619 echo "$as_me:$LINENO: result: yes" >&5
5620echo "${ECHO_T}yes" >&6
5621 else
5622 echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
5624 fi
5625
5626
59746b65
MW
5627 enablestring=
5628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5629echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5630 no_cache=0
5631 # Check whether --enable-std_string or --disable-std_string was given.
5632if test "${enable_std_string+set}" = set; then
5633 enableval="$enable_std_string"
5634
5635 if test "$enableval" = yes; then
5636 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5637 else
5638 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5639 fi
5640
5641else
5642
5643 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5644 if test "x$LINE" != x ; then
5645 eval "DEFAULT_$LINE"
5646 else
5647 no_cache=1
5648 fi
5649
5650 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5651
5652fi;
5653
5654 eval "$ac_cv_use_std_string"
5655 if test "$no_cache" != 1; then
5656 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5657 fi
5658
5659 if test "$wxUSE_STD_STRING" = yes; then
5660 echo "$as_me:$LINENO: result: yes" >&5
5661echo "${ECHO_T}yes" >&6
5662 else
5663 echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6
5665 fi
5666
5667
a848cd7e 5668 enablestring=
07158944
VZ
5669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5670echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5671 no_cache=0
07158944
VZ
5672 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5673if test "${enable_stdpaths+set}" = set; then
5674 enableval="$enable_stdpaths"
a848cd7e
SC
5675
5676 if test "$enableval" = yes; then
07158944 5677 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5678 else
07158944 5679 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5680 fi
5681
5682else
5683
07158944 5684 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5685 if test "x$LINE" != x ; then
5686 eval "DEFAULT_$LINE"
5687 else
5688 no_cache=1
5689 fi
5690
07158944 5691 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5692
5693fi;
5694
07158944 5695 eval "$ac_cv_use_stdpaths"
a848cd7e 5696 if test "$no_cache" != 1; then
07158944 5697 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5698 fi
5699
07158944 5700 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5701 echo "$as_me:$LINENO: result: yes" >&5
5702echo "${ECHO_T}yes" >&6
5703 else
5704 echo "$as_me:$LINENO: result: no" >&5
5705echo "${ECHO_T}no" >&6
5706 fi
5707
5708
5709 enablestring=
5710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5711echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5712 no_cache=0
5713 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5714if test "${enable_stopwatch+set}" = set; then
5715 enableval="$enable_stopwatch"
5716
5717 if test "$enableval" = yes; then
5718 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5719 else
5720 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5721 fi
5722
5723else
5724
5725 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5733
5734fi;
5735
5736 eval "$ac_cv_use_stopwatch"
5737 if test "$no_cache" != 1; then
5738 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5739 fi
5740
5741 if test "$wxUSE_STOPWATCH" = yes; then
5742 echo "$as_me:$LINENO: result: yes" >&5
5743echo "${ECHO_T}yes" >&6
5744 else
5745 echo "$as_me:$LINENO: result: no" >&5
5746echo "${ECHO_T}no" >&6
5747 fi
5748
5749
07158944
VZ
5750 enablestring=
5751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5752echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5753 no_cache=0
5754 # Check whether --enable-streams or --disable-streams was given.
5755if test "${enable_streams+set}" = set; then
5756 enableval="$enable_streams"
5757
5758 if test "$enableval" = yes; then
5759 ac_cv_use_streams='wxUSE_STREAMS=yes'
5760 else
5761 ac_cv_use_streams='wxUSE_STREAMS=no'
5762 fi
5763
5764else
5765
5766 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5767 if test "x$LINE" != x ; then
5768 eval "DEFAULT_$LINE"
5769 else
5770 no_cache=1
5771 fi
5772
5773 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5774
5775fi;
5776
5777 eval "$ac_cv_use_streams"
5778 if test "$no_cache" != 1; then
5779 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5780 fi
5781
5782 if test "$wxUSE_STREAMS" = yes; then
5783 echo "$as_me:$LINENO: result: yes" >&5
5784echo "${ECHO_T}yes" >&6
5785 else
5786 echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6
5788 fi
5789
5790
a848cd7e
SC
5791 enablestring=
5792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5793echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5794 no_cache=0
5795 # Check whether --enable-system_options or --disable-system_options was given.
5796if test "${enable_system_options+set}" = set; then
5797 enableval="$enable_system_options"
5798
5799 if test "$enableval" = yes; then
5800 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5801 else
5802 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5803 fi
5804
5805else
5806
5807 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5815
5816fi;
5817
5818 eval "$ac_cv_use_system_options"
5819 if test "$no_cache" != 1; then
5820 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5821 fi
5822
5823 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5824 echo "$as_me:$LINENO: result: yes" >&5
5825echo "${ECHO_T}yes" >&6
5826 else
5827 echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
5829 fi
5830
5831
5832 enablestring=
5833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5834echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5835 no_cache=0
5836 # Check whether --enable-textbuf or --disable-textbuf was given.
5837if test "${enable_textbuf+set}" = set; then
5838 enableval="$enable_textbuf"
5839
5840 if test "$enableval" = yes; then
5841 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5842 else
5843 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5844 fi
5845
5846else
5847
5848 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5849 if test "x$LINE" != x ; then
5850 eval "DEFAULT_$LINE"
5851 else
5852 no_cache=1
5853 fi
5854
5855 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5856
5857fi;
5858
5859 eval "$ac_cv_use_textbuf"
5860 if test "$no_cache" != 1; then
5861 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5862 fi
5863
5864 if test "$wxUSE_TEXTBUFFER" = yes; then
5865 echo "$as_me:$LINENO: result: yes" >&5
5866echo "${ECHO_T}yes" >&6
5867 else
5868 echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
5870 fi
5871
5872
5873 enablestring=
5874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5875echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5876 no_cache=0
5877 # Check whether --enable-textfile or --disable-textfile was given.
5878if test "${enable_textfile+set}" = set; then
5879 enableval="$enable_textfile"
5880
5881 if test "$enableval" = yes; then
5882 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5883 else
5884 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5885 fi
5886
5887else
5888
5889 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5897
5898fi;
5899
5900 eval "$ac_cv_use_textfile"
5901 if test "$no_cache" != 1; then
5902 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5903 fi
5904
5905 if test "$wxUSE_TEXTFILE" = yes; then
5906 echo "$as_me:$LINENO: result: yes" >&5
5907echo "${ECHO_T}yes" >&6
5908 else
5909 echo "$as_me:$LINENO: result: no" >&5
5910echo "${ECHO_T}no" >&6
5911 fi
5912
5913
5914 enablestring=
5915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5916echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5917 no_cache=0
5918 # Check whether --enable-timer or --disable-timer was given.
5919if test "${enable_timer+set}" = set; then
5920 enableval="$enable_timer"
5921
5922 if test "$enableval" = yes; then
5923 ac_cv_use_timer='wxUSE_TIMER=yes'
5924 else
5925 ac_cv_use_timer='wxUSE_TIMER=no'
5926 fi
5927
5928else
5929
5930 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5931 if test "x$LINE" != x ; then
5932 eval "DEFAULT_$LINE"
5933 else
5934 no_cache=1
5935 fi
5936
5937 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5938
5939fi;
5940
5941 eval "$ac_cv_use_timer"
5942 if test "$no_cache" != 1; then
5943 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5944 fi
5945
5946 if test "$wxUSE_TIMER" = yes; then
5947 echo "$as_me:$LINENO: result: yes" >&5
5948echo "${ECHO_T}yes" >&6
5949 else
5950 echo "$as_me:$LINENO: result: no" >&5
5951echo "${ECHO_T}no" >&6
5952 fi
5953
5954
5955 enablestring=
5956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5957echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5958 no_cache=0
5959 # Check whether --enable-unicode or --disable-unicode was given.
5960if test "${enable_unicode+set}" = set; then
5961 enableval="$enable_unicode"
5962
5963 if test "$enableval" = yes; then
5964 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5965 else
5966 ac_cv_use_unicode='wxUSE_UNICODE=no'
5967 fi
5968
5969else
5970
5971 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
5978 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5979
5980fi;
5981
5982 eval "$ac_cv_use_unicode"
5983 if test "$no_cache" != 1; then
5984 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5985 fi
5986
5987 if test "$wxUSE_UNICODE" = yes; then
5988 echo "$as_me:$LINENO: result: yes" >&5
5989echo "${ECHO_T}yes" >&6
5990 else
5991 echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6
5993 fi
5994
5995
5996 enablestring=
5997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5998echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5999 no_cache=0
6000 # Check whether --enable-sound or --disable-sound was given.
6001if test "${enable_sound+set}" = set; then
6002 enableval="$enable_sound"
6003
6004 if test "$enableval" = yes; then
6005 ac_cv_use_sound='wxUSE_SOUND=yes'
6006 else
6007 ac_cv_use_sound='wxUSE_SOUND=no'
6008 fi
6009
6010else
6011
6012 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6013 if test "x$LINE" != x ; then
6014 eval "DEFAULT_$LINE"
6015 else
6016 no_cache=1
6017 fi
6018
6019 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6020
6021fi;
6022
6023 eval "$ac_cv_use_sound"
6024 if test "$no_cache" != 1; then
6025 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6026 fi
6027
6028 if test "$wxUSE_SOUND" = yes; then
6029 echo "$as_me:$LINENO: result: yes" >&5
6030echo "${ECHO_T}yes" >&6
6031 else
6032 echo "$as_me:$LINENO: result: no" >&5
6033echo "${ECHO_T}no" >&6
6034 fi
6035
6036
3b57de8b
RL
6037 enablestring=
6038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6039echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6040 no_cache=0
6041 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6042if test "${enable_mediactrl+set}" = set; then
6043 enableval="$enable_mediactrl"
6044
6045 if test "$enableval" = yes; then
6046 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6047 else
6048 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6049 fi
6050
6051else
6052
6053 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6054 if test "x$LINE" != x ; then
6055 eval "DEFAULT_$LINE"
6056 else
6057 no_cache=1
6058 fi
6059
6060 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6061
6062fi;
6063
6064 eval "$ac_cv_use_mediactrl"
6065 if test "$no_cache" != 1; then
6066 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6067 fi
6068
6069 if test "$wxUSE_MEDIACTRL" = yes; then
6070 echo "$as_me:$LINENO: result: yes" >&5
6071echo "${ECHO_T}yes" >&6
6072 else
6073 echo "$as_me:$LINENO: result: no" >&5
6074echo "${ECHO_T}no" >&6
6075 fi
6076
6077
a848cd7e
SC
6078 enablestring=
6079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6080echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6081 no_cache=0
6082 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6083if test "${enable_wxprintfv+set}" = set; then
6084 enableval="$enable_wxprintfv"
6085
6086 if test "$enableval" = yes; then
6087 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6088 else
6089 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6090 fi
6091
6092else
6093
6094 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6095 if test "x$LINE" != x ; then
6096 eval "DEFAULT_$LINE"
6097 else
6098 no_cache=1
6099 fi
6100
6101 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6102
6103fi;
6104
6105 eval "$ac_cv_use_wxprintfv"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6111 echo "$as_me:$LINENO: result: yes" >&5
6112echo "${ECHO_T}yes" >&6
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6
6116 fi
6117
6118
6119 enablestring=
6120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6121echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6122 no_cache=0
6123 # Check whether --enable-zipstream or --disable-zipstream was given.
6124if test "${enable_zipstream+set}" = set; then
6125 enableval="$enable_zipstream"
6126
6127 if test "$enableval" = yes; then
6128 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6129 else
6130 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6131 fi
6132
6133else
6134
6135 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6136 if test "x$LINE" != x ; then
6137 eval "DEFAULT_$LINE"
6138 else
6139 no_cache=1
6140 fi
6141
6142 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6143
6144fi;
6145
6146 eval "$ac_cv_use_zipstream"
6147 if test "$no_cache" != 1; then
6148 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6149 fi
6150
6151 if test "$wxUSE_ZIPSTREAM" = yes; then
6152 echo "$as_me:$LINENO: result: yes" >&5
6153echo "${ECHO_T}yes" >&6
6154 else
6155 echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6
6157 fi
6158
6159
a848cd7e
SC
6160
6161 enablestring=
6162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6163echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6164 no_cache=0
6165 # Check whether --enable-url or --disable-url was given.
6166if test "${enable_url+set}" = set; then
6167 enableval="$enable_url"
6168
6169 if test "$enableval" = yes; then
6170 ac_cv_use_url='wxUSE_URL=yes'
6171 else
6172 ac_cv_use_url='wxUSE_URL=no'
6173 fi
6174
6175else
6176
6177 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6178 if test "x$LINE" != x ; then
6179 eval "DEFAULT_$LINE"
6180 else
6181 no_cache=1
6182 fi
6183
6184 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6185
6186fi;
6187
6188 eval "$ac_cv_use_url"
6189 if test "$no_cache" != 1; then
6190 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6191 fi
6192
6193 if test "$wxUSE_URL" = yes; then
6194 echo "$as_me:$LINENO: result: yes" >&5
6195echo "${ECHO_T}yes" >&6
6196 else
6197 echo "$as_me:$LINENO: result: no" >&5
6198echo "${ECHO_T}no" >&6
6199 fi
6200
6201
6202 enablestring=
6203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6204echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6205 no_cache=0
6206 # Check whether --enable-protocol or --disable-protocol was given.
6207if test "${enable_protocol+set}" = set; then
6208 enableval="$enable_protocol"
6209
6210 if test "$enableval" = yes; then
6211 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6212 else
6213 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6214 fi
6215
6216else
6217
6218 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6219 if test "x$LINE" != x ; then
6220 eval "DEFAULT_$LINE"
6221 else
6222 no_cache=1
6223 fi
6224
6225 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6226
6227fi;
6228
6229 eval "$ac_cv_use_protocol"
6230 if test "$no_cache" != 1; then
6231 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6232 fi
6233
6234 if test "$wxUSE_PROTOCOL" = yes; then
6235 echo "$as_me:$LINENO: result: yes" >&5
6236echo "${ECHO_T}yes" >&6
6237 else
6238 echo "$as_me:$LINENO: result: no" >&5
6239echo "${ECHO_T}no" >&6
6240 fi
6241
6242
6243 enablestring=
6244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6245echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6246 no_cache=0
6247 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6248if test "${enable_protocol_http+set}" = set; then
6249 enableval="$enable_protocol_http"
6250
6251 if test "$enableval" = yes; then
6252 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6253 else
6254 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6255 fi
6256
6257else
6258
6259 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6260 if test "x$LINE" != x ; then
6261 eval "DEFAULT_$LINE"
6262 else
6263 no_cache=1
6264 fi
6265
6266 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6267
6268fi;
6269
6270 eval "$ac_cv_use_protocol_http"
6271 if test "$no_cache" != 1; then
6272 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6273 fi
6274
6275 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6276 echo "$as_me:$LINENO: result: yes" >&5
6277echo "${ECHO_T}yes" >&6
6278 else
6279 echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6
6281 fi
6282
6283
6284 enablestring=
6285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6286echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6287 no_cache=0
6288 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6289if test "${enable_protocol_ftp+set}" = set; then
6290 enableval="$enable_protocol_ftp"
6291
6292 if test "$enableval" = yes; then
6293 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6294 else
6295 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6296 fi
6297
6298else
6299
6300 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6301 if test "x$LINE" != x ; then
6302 eval "DEFAULT_$LINE"
6303 else
6304 no_cache=1
6305 fi
6306
6307 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6308
6309fi;
6310
6311 eval "$ac_cv_use_protocol_ftp"
6312 if test "$no_cache" != 1; then
6313 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6314 fi
6315
6316 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6317 echo "$as_me:$LINENO: result: yes" >&5
6318echo "${ECHO_T}yes" >&6
6319 else
6320 echo "$as_me:$LINENO: result: no" >&5
6321echo "${ECHO_T}no" >&6
6322 fi
6323
6324
6325 enablestring=
6326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6327echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6328 no_cache=0
6329 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6330if test "${enable_protocol_file+set}" = set; then
6331 enableval="$enable_protocol_file"
6332
6333 if test "$enableval" = yes; then
6334 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6335 else
6336 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6337 fi
6338
6339else
6340
6341 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6342 if test "x$LINE" != x ; then
6343 eval "DEFAULT_$LINE"
6344 else
6345 no_cache=1
6346 fi
6347
6348 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6349
6350fi;
6351
6352 eval "$ac_cv_use_protocol_file"
6353 if test "$no_cache" != 1; then
6354 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6355 fi
6356
6357 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6358 echo "$as_me:$LINENO: result: yes" >&5
6359echo "${ECHO_T}yes" >&6
6360 else
6361 echo "$as_me:$LINENO: result: no" >&5
6362echo "${ECHO_T}no" >&6
6363 fi
6364
6365
6366
6367
6368
6369 enablestring=
6370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6371echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6372 no_cache=0
6373 # Check whether --enable-threads or --disable-threads was given.
6374if test "${enable_threads+set}" = set; then
6375 enableval="$enable_threads"
6376
6377 if test "$enableval" = yes; then
6378 ac_cv_use_threads='wxUSE_THREADS=yes'
6379 else
6380 ac_cv_use_threads='wxUSE_THREADS=no'
6381 fi
6382
6383else
6384
6385 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6386 if test "x$LINE" != x ; then
6387 eval "DEFAULT_$LINE"
6388 else
6389 no_cache=1
6390 fi
6391
6392 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6393
6394fi;
6395
6396 eval "$ac_cv_use_threads"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_THREADS" = yes; then
6402 echo "$as_me:$LINENO: result: yes" >&5
6403echo "${ECHO_T}yes" >&6
6404 else
6405 echo "$as_me:$LINENO: result: no" >&5
6406echo "${ECHO_T}no" >&6
6407 fi
6408
6409
6410if test "$wxUSE_GUI" = "yes"; then
6411
6412
6413
6414 enablestring=
6415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6416echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6417 no_cache=0
6418 # Check whether --enable-docview or --disable-docview was given.
6419if test "${enable_docview+set}" = set; then
6420 enableval="$enable_docview"
6421
6422 if test "$enableval" = yes; then
6423 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6424 else
6425 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6426 fi
6427
6428else
6429
6430 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6431 if test "x$LINE" != x ; then
6432 eval "DEFAULT_$LINE"
6433 else
6434 no_cache=1
6435 fi
6436
6437 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6438
6439fi;
6440
6441 eval "$ac_cv_use_docview"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6447 echo "$as_me:$LINENO: result: yes" >&5
6448echo "${ECHO_T}yes" >&6
6449 else
6450 echo "$as_me:$LINENO: result: no" >&5
6451echo "${ECHO_T}no" >&6
6452 fi
6453
6454
6455 enablestring=
6456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6457echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6458 no_cache=0
6459 # Check whether --enable-help or --disable-help was given.
6460if test "${enable_help+set}" = set; then
6461 enableval="$enable_help"
6462
6463 if test "$enableval" = yes; then
6464 ac_cv_use_help='wxUSE_HELP=yes'
6465 else
6466 ac_cv_use_help='wxUSE_HELP=no'
6467 fi
6468
6469else
6470
6471 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6472 if test "x$LINE" != x ; then
6473 eval "DEFAULT_$LINE"
6474 else
6475 no_cache=1
6476 fi
6477
6478 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6479
6480fi;
6481
6482 eval "$ac_cv_use_help"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_HELP" = yes; then
6488 echo "$as_me:$LINENO: result: yes" >&5
6489echo "${ECHO_T}yes" >&6
6490 else
6491 echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6
6493 fi
6494
6495
6496 enablestring=
6497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6498echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6499 no_cache=0
6500 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6501if test "${enable_mshtmlhelp+set}" = set; then
6502 enableval="$enable_mshtmlhelp"
6503
6504 if test "$enableval" = yes; then
6505 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6506 else
6507 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6508 fi
6509
6510else
6511
6512 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6513 if test "x$LINE" != x ; then
6514 eval "DEFAULT_$LINE"
6515 else
6516 no_cache=1
6517 fi
6518
6519 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6520
6521fi;
6522
6523 eval "$ac_cv_use_mshtmlhelp"
6524 if test "$no_cache" != 1; then
6525 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6526 fi
6527
6528 if test "$wxUSE_MS_HTML_HELP" = yes; then
6529 echo "$as_me:$LINENO: result: yes" >&5
6530echo "${ECHO_T}yes" >&6
6531 else
6532 echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534 fi
6535
6536
6537 enablestring=
6538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6539echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6540 no_cache=0
6541 # Check whether --enable-html or --disable-html was given.
6542if test "${enable_html+set}" = set; then
6543 enableval="$enable_html"
6544
6545 if test "$enableval" = yes; then
6546 ac_cv_use_html='wxUSE_HTML=yes'
6547 else
6548 ac_cv_use_html='wxUSE_HTML=no'
6549 fi
6550
6551else
6552
6553 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6554 if test "x$LINE" != x ; then
6555 eval "DEFAULT_$LINE"
6556 else
6557 no_cache=1
6558 fi
6559
6560 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6561
6562fi;
6563
6564 eval "$ac_cv_use_html"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_HTML" = yes; then
6570 echo "$as_me:$LINENO: result: yes" >&5
6571echo "${ECHO_T}yes" >&6
6572 else
6573 echo "$as_me:$LINENO: result: no" >&5
6574echo "${ECHO_T}no" >&6
6575 fi
6576
6577
6578 enablestring=
6579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6580echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6581 no_cache=0
6582 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6583if test "${enable_htmlhelp+set}" = set; then
6584 enableval="$enable_htmlhelp"
6585
6586 if test "$enableval" = yes; then
6587 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6588 else
6589 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6590 fi
6591
6592else
6593
6594 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6595 if test "x$LINE" != x ; then
6596 eval "DEFAULT_$LINE"
6597 else
6598 no_cache=1
6599 fi
6600
6601 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6602
6603fi;
6604
6605 eval "$ac_cv_use_htmlhelp"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_WXHTML_HELP" = yes; then
6611 echo "$as_me:$LINENO: result: yes" >&5
6612echo "${ECHO_T}yes" >&6
6613 else
6614 echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6
6616 fi
6617
6618
9a8f0513
VS
6619 enablestring=
6620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6621echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6622 no_cache=0
6623 # Check whether --enable-xrc or --disable-xrc was given.
6624if test "${enable_xrc+set}" = set; then
6625 enableval="$enable_xrc"
6626
6627 if test "$enableval" = yes; then
6628 ac_cv_use_xrc='wxUSE_XRC=yes'
6629 else
6630 ac_cv_use_xrc='wxUSE_XRC=no'
6631 fi
6632
6633else
6634
6635 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6636 if test "x$LINE" != x ; then
6637 eval "DEFAULT_$LINE"
6638 else
6639 no_cache=1
6640 fi
6641
6642 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6643
6644fi;
6645
6646 eval "$ac_cv_use_xrc"
6647 if test "$no_cache" != 1; then
6648 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6649 fi
6650
6651 if test "$wxUSE_XRC" = yes; then
6652 echo "$as_me:$LINENO: result: yes" >&5
6653echo "${ECHO_T}yes" >&6
6654 else
6655 echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6
6657 fi
6658
6659
a848cd7e
SC
6660 enablestring=
6661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6662echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6663 no_cache=0
6664 # Check whether --enable-constraints or --disable-constraints was given.
6665if test "${enable_constraints+set}" = set; then
6666 enableval="$enable_constraints"
6667
6668 if test "$enableval" = yes; then
6669 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6670 else
6671 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6672 fi
6673
6674else
6675
6676 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6677 if test "x$LINE" != x ; then
6678 eval "DEFAULT_$LINE"
6679 else
6680 no_cache=1
6681 fi
6682
6683 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6684
6685fi;
6686
6687 eval "$ac_cv_use_constraints"
6688 if test "$no_cache" != 1; then
6689 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6690 fi
6691
6692 if test "$wxUSE_CONSTRAINTS" = yes; then
6693 echo "$as_me:$LINENO: result: yes" >&5
6694echo "${ECHO_T}yes" >&6
6695 else
6696 echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6
6698 fi
6699
6700
6701 enablestring=
6702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6703echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6704 no_cache=0
6705 # Check whether --enable-printarch or --disable-printarch was given.
6706if test "${enable_printarch+set}" = set; then
6707 enableval="$enable_printarch"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6711 else
6712 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6713 fi
6714
6715else
6716
6717 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6725
6726fi;
6727
6728 eval "$ac_cv_use_printarch"
6729 if test "$no_cache" != 1; then
6730 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6731 fi
6732
6733 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6734 echo "$as_me:$LINENO: result: yes" >&5
6735echo "${ECHO_T}yes" >&6
6736 else
6737 echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6
6739 fi
6740
6741
6742 enablestring=
6743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6744echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6745 no_cache=0
6746 # Check whether --enable-mdi or --disable-mdi was given.
6747if test "${enable_mdi+set}" = set; then
6748 enableval="$enable_mdi"
6749
6750 if test "$enableval" = yes; then
8a7b1113 6751 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6752 else
8a7b1113 6753 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6754 fi
6755
6756else
6757
8a7b1113 6758 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6759 if test "x$LINE" != x ; then
6760 eval "DEFAULT_$LINE"
6761 else
6762 no_cache=1
6763 fi
6764
8a7b1113 6765 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6766
6767fi;
6768
6769 eval "$ac_cv_use_mdi"
6770 if test "$no_cache" != 1; then
6771 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6772 fi
6773
8a7b1113
VZ
6774 if test "$wxUSE_MDI" = yes; then
6775 echo "$as_me:$LINENO: result: yes" >&5
6776echo "${ECHO_T}yes" >&6
6777 else
6778 echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6
6780 fi
6781
6782
6783 enablestring=
6784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6785echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6786 no_cache=0
6787 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6788if test "${enable_mdidoc+set}" = set; then
6789 enableval="$enable_mdidoc"
6790
6791 if test "$enableval" = yes; then
6792 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6793 else
6794 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6795 fi
6796
6797else
6798
6799 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6800 if test "x$LINE" != x ; then
6801 eval "DEFAULT_$LINE"
6802 else
6803 no_cache=1
6804 fi
6805
6806 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6807
6808fi;
6809
6810 eval "$ac_cv_use_mdidoc"
6811 if test "$no_cache" != 1; then
6812 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6813 fi
6814
a848cd7e
SC
6815 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6816 echo "$as_me:$LINENO: result: yes" >&5
6817echo "${ECHO_T}yes" >&6
6818 else
6819 echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6
6821 fi
6822
6823
6824 enablestring=
6825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6826echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6827 no_cache=0
6828 # Check whether --enable-loggui or --disable-loggui was given.
6829if test "${enable_loggui+set}" = set; then
6830 enableval="$enable_loggui"
6831
6832 if test "$enableval" = yes; then
6833 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6834 else
6835 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6836 fi
6837
6838else
6839
6840 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6841 if test "x$LINE" != x ; then
6842 eval "DEFAULT_$LINE"
6843 else
6844 no_cache=1
6845 fi
6846
6847 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6848
6849fi;
6850
6851 eval "$ac_cv_use_loggui"
6852 if test "$no_cache" != 1; then
6853 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6854 fi
6855
6856 if test "$wxUSE_LOGGUI" = yes; then
6857 echo "$as_me:$LINENO: result: yes" >&5
6858echo "${ECHO_T}yes" >&6
6859 else
6860 echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6
6862 fi
6863
6864
6865 enablestring=
6866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6867echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6868 no_cache=0
6869 # Check whether --enable-logwin or --disable-logwin was given.
6870if test "${enable_logwin+set}" = set; then
6871 enableval="$enable_logwin"
6872
6873 if test "$enableval" = yes; then
6874 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6875 else
6876 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6877 fi
6878
6879else
6880
6881 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6882 if test "x$LINE" != x ; then
6883 eval "DEFAULT_$LINE"
6884 else
6885 no_cache=1
6886 fi
6887
6888 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6889
6890fi;
6891
6892 eval "$ac_cv_use_logwin"
6893 if test "$no_cache" != 1; then
6894 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6895 fi
6896
6897 if test "$wxUSE_LOGWINDOW" = yes; then
6898 echo "$as_me:$LINENO: result: yes" >&5
6899echo "${ECHO_T}yes" >&6
6900 else
6901 echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6
6903 fi
6904
6905
6906 enablestring=
6907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6908echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6909 no_cache=0
6910 # Check whether --enable-logdialog or --disable-logdialog was given.
6911if test "${enable_logdialog+set}" = set; then
6912 enableval="$enable_logdialog"
6913
6914 if test "$enableval" = yes; then
6915 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6916 else
6917 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6918 fi
6919
6920else
6921
6922 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6923 if test "x$LINE" != x ; then
6924 eval "DEFAULT_$LINE"
6925 else
6926 no_cache=1
6927 fi
6928
6929 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6930
6931fi;
6932
6933 eval "$ac_cv_use_logdialog"
6934 if test "$no_cache" != 1; then
6935 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6936 fi
6937
6938 if test "$wxUSE_LOGDIALOG" = yes; then
6939 echo "$as_me:$LINENO: result: yes" >&5
6940echo "${ECHO_T}yes" >&6
6941 else
6942 echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6
6944 fi
6945
6946
646b6ec1
VS
6947 enablestring=
6948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6949echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6950 no_cache=0
6951 # Check whether --enable-webkit or --disable-webkit was given.
6952if test "${enable_webkit+set}" = set; then
6953 enableval="$enable_webkit"
6954
6955 if test "$enableval" = yes; then
6956 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6957 else
6958 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6959 fi
6960
6961else
6962
6963 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6964 if test "x$LINE" != x ; then
6965 eval "DEFAULT_$LINE"
6966 else
6967 no_cache=1
6968 fi
6969
6970 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6971
6972fi;
6973
6974 eval "$ac_cv_use_webkit"
6975 if test "$no_cache" != 1; then
6976 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6977 fi
6978
6979 if test "$wxUSE_WEBKIT" = yes; then
6980 echo "$as_me:$LINENO: result: yes" >&5
6981echo "${ECHO_T}yes" >&6
6982 else
6983 echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6
6985 fi
6986
6987
a848cd7e
SC
6988
6989 enablestring=
6990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6991echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6992 no_cache=0
6993 # Check whether --enable-postscript or --disable-postscript was given.
6994if test "${enable_postscript+set}" = set; then
6995 enableval="$enable_postscript"
6996
6997 if test "$enableval" = yes; then
6998 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6999 else
7000 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7001 fi
7002
7003else
7004
7005 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7006 if test "x$LINE" != x ; then
7007 eval "DEFAULT_$LINE"
7008 else
7009 no_cache=1
7010 fi
7011
7012 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7013
7014fi;
7015
7016 eval "$ac_cv_use_postscript"
7017 if test "$no_cache" != 1; then
7018 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7019 fi
7020
7021 if test "$wxUSE_POSTSCRIPT" = yes; then
7022 echo "$as_me:$LINENO: result: yes" >&5
7023echo "${ECHO_T}yes" >&6
7024 else
7025 echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6
7027 fi
7028
7029
7030
7031
7032
7033 enablestring=
7034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7035echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7036 no_cache=0
7037 # Check whether --enable-prologio or --disable-prologio was given.
7038if test "${enable_prologio+set}" = set; then
7039 enableval="$enable_prologio"
7040
7041 if test "$enableval" = yes; then
7042 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7043 else
7044 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7045 fi
7046
7047else
7048
7049 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7050 if test "x$LINE" != x ; then
7051 eval "DEFAULT_$LINE"
7052 else
7053 no_cache=1
7054 fi
7055
7056 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7057
7058fi;
7059
7060 eval "$ac_cv_use_prologio"
7061 if test "$no_cache" != 1; then
7062 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7063 fi
7064
7065 if test "$wxUSE_PROLOGIO" = yes; then
7066 echo "$as_me:$LINENO: result: yes" >&5
7067echo "${ECHO_T}yes" >&6
7068 else
7069 echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6
7071 fi
7072
7073
7074 enablestring=
7075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7076echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7077 no_cache=0
7078 # Check whether --enable-resources or --disable-resources was given.
7079if test "${enable_resources+set}" = set; then
7080 enableval="$enable_resources"
7081
7082 if test "$enableval" = yes; then
7083 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7084 else
7085 ac_cv_use_resources='wxUSE_RESOURCES=no'
7086 fi
7087
7088else
7089
7090 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7091 if test "x$LINE" != x ; then
7092 eval "DEFAULT_$LINE"
7093 else
7094 no_cache=1
7095 fi
7096
7097 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7098
7099fi;
7100
7101 eval "$ac_cv_use_resources"
7102 if test "$no_cache" != 1; then
7103 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7104 fi
7105
7106 if test "$wxUSE_RESOURCES" = yes; then
7107 echo "$as_me:$LINENO: result: yes" >&5
7108echo "${ECHO_T}yes" >&6
7109 else
7110 echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6
7112 fi
7113
7114
7115
7116
7117 enablestring=
7118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7119echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7120 no_cache=0
7121 # Check whether --enable-clipboard or --disable-clipboard was given.
7122if test "${enable_clipboard+set}" = set; then
7123 enableval="$enable_clipboard"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7127 else
7128 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7129 fi
7130
7131else
7132
7133 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7141
7142fi;
7143
7144 eval "$ac_cv_use_clipboard"
7145 if test "$no_cache" != 1; then
7146 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7147 fi
7148
7149 if test "$wxUSE_CLIPBOARD" = yes; then
7150 echo "$as_me:$LINENO: result: yes" >&5
7151echo "${ECHO_T}yes" >&6
7152 else
7153 echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6
7155 fi
7156
7157
7158 enablestring=
7159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7160echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7161 no_cache=0
7162 # Check whether --enable-dnd or --disable-dnd was given.
7163if test "${enable_dnd+set}" = set; then
7164 enableval="$enable_dnd"
7165
7166 if test "$enableval" = yes; then
7167 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7168 else
7169 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7170 fi
7171
7172else
7173
7174 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7175 if test "x$LINE" != x ; then
7176 eval "DEFAULT_$LINE"
7177 else
7178 no_cache=1
7179 fi
7180
7181 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7182
7183fi;
7184
7185 eval "$ac_cv_use_dnd"
7186 if test "$no_cache" != 1; then
7187 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7188 fi
7189
7190 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7191 echo "$as_me:$LINENO: result: yes" >&5
7192echo "${ECHO_T}yes" >&6
7193 else
7194 echo "$as_me:$LINENO: result: no" >&5
7195echo "${ECHO_T}no" >&6
7196 fi
7197
7198
7199 enablestring=
7200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7201echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7202 no_cache=0
7203 # Check whether --enable-metafile or --disable-metafile was given.
7204if test "${enable_metafile+set}" = set; then
7205 enableval="$enable_metafile"
7206
7207 if test "$enableval" = yes; then
7208 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7209 else
7210 ac_cv_use_metafile='wxUSE_METAFILE=no'
7211 fi
7212
7213else
7214
7215 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7216 if test "x$LINE" != x ; then
7217 eval "DEFAULT_$LINE"
7218 else
7219 no_cache=1
7220 fi
7221
7222 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7223
7224fi;
7225
7226 eval "$ac_cv_use_metafile"
7227 if test "$no_cache" != 1; then
7228 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7229 fi
7230
7231 if test "$wxUSE_METAFILE" = yes; then
7232 echo "$as_me:$LINENO: result: yes" >&5
7233echo "${ECHO_T}yes" >&6
7234 else
7235 echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6
7237 fi
7238
7239
7240
7241
7242
7243 enablestring=
7244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7245echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7246 no_cache=0
7247 # Check whether --enable-controls or --disable-controls was given.
7248if test "${enable_controls+set}" = set; then
7249 enableval="$enable_controls"
7250
7251 if test "$enableval" = yes; then
7252 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7253 else
7254 ac_cv_use_controls='wxUSE_CONTROLS=no'
7255 fi
7256
7257else
7258
7259 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7260 if test "x$LINE" != x ; then
7261 eval "DEFAULT_$LINE"
7262 else
7263 no_cache=1
7264 fi
7265
7266 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7267
7268fi;
7269
7270 eval "$ac_cv_use_controls"
7271 if test "$no_cache" != 1; then
7272 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7273 fi
7274
7275 if test "$wxUSE_CONTROLS" = yes; then
7276 echo "$as_me:$LINENO: result: yes" >&5
7277echo "${ECHO_T}yes" >&6
7278 else
7279 echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6
7281 fi
7282
7283
7284if test "$wxUSE_CONTROLS" = "yes"; then
7285 DEFAULT_wxUSE_ACCEL=yes
7286 DEFAULT_wxUSE_BMPBUTTON=yes
7287 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7288 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7289 DEFAULT_wxUSE_CARET=yes
7290 DEFAULT_wxUSE_COMBOBOX=yes
7291 DEFAULT_wxUSE_CHECKBOX=yes
7292 DEFAULT_wxUSE_CHECKLISTBOX=yes
7293 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7294 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7295 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7296 DEFAULT_wxUSE_GAUGE=yes
7297 DEFAULT_wxUSE_GRID=yes
7298 DEFAULT_wxUSE_IMAGLIST=yes
7299 DEFAULT_wxUSE_LISTBOOK=yes
7300 DEFAULT_wxUSE_LISTBOX=yes
7301 DEFAULT_wxUSE_LISTCTRL=yes
7302 DEFAULT_wxUSE_NOTEBOOK=yes
7303 DEFAULT_wxUSE_RADIOBOX=yes
7304 DEFAULT_wxUSE_RADIOBTN=yes
7305 DEFAULT_wxUSE_SASH=yes
7306 DEFAULT_wxUSE_SCROLLBAR=yes
7307 DEFAULT_wxUSE_SLIDER=yes
7308 DEFAULT_wxUSE_SPINBTN=yes
7309 DEFAULT_wxUSE_SPINCTRL=yes
7310 DEFAULT_wxUSE_SPLITTER=yes
7311 DEFAULT_wxUSE_STATBMP=yes
7312 DEFAULT_wxUSE_STATBOX=yes
7313 DEFAULT_wxUSE_STATLINE=yes
7314 DEFAULT_wxUSE_STATUSBAR=yes
7315 DEFAULT_wxUSE_TAB_DIALOG=yes
7316 DEFAULT_wxUSE_TOGGLEBTN=yes
7317 DEFAULT_wxUSE_TOOLBAR=yes
7318 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7319 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7320 DEFAULT_wxUSE_TOOLTIPS=yes
7321 DEFAULT_wxUSE_TREECTRL=yes
7322 DEFAULT_wxUSE_POPUPWIN=yes
7323 DEFAULT_wxUSE_TIPWINDOW=yes
7324elif test "$wxUSE_CONTROLS" = "no"; then
7325 DEFAULT_wxUSE_ACCEL=no
7326 DEFAULT_wxUSE_BMPBUTTON=no
7327 DEFAULT_wxUSE_BUTTON=no
7328 DEFAULT_wxUSE_CALCTRL=no
7329 DEFAULT_wxUSE_CARET=no
7330 DEFAULT_wxUSE_COMBOBOX=no
7331 DEFAULT_wxUSE_CHECKBOX=no
7332 DEFAULT_wxUSE_CHECKLISTBOX=no
7333 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7334 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7335 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7336 DEFAULT_wxUSE_GAUGE=no
7337 DEFAULT_wxUSE_GRID=no
7338 DEFAULT_wxUSE_IMAGLIST=no
7339 DEFAULT_wxUSE_LISTBOOK=no
7340 DEFAULT_wxUSE_LISTBOX=no
7341 DEFAULT_wxUSE_LISTCTRL=no
7342 DEFAULT_wxUSE_NOTEBOOK=no
7343 DEFAULT_wxUSE_RADIOBOX=no
7344 DEFAULT_wxUSE_RADIOBTN=no
7345 DEFAULT_wxUSE_SASH=no
7346 DEFAULT_wxUSE_SCROLLBAR=no
7347 DEFAULT_wxUSE_SLIDER=no
7348 DEFAULT_wxUSE_SPINBTN=no
7349 DEFAULT_wxUSE_SPINCTRL=no
7350 DEFAULT_wxUSE_SPLITTER=no
7351 DEFAULT_wxUSE_STATBMP=no
7352 DEFAULT_wxUSE_STATBOX=no
7353 DEFAULT_wxUSE_STATLINE=no
7354 DEFAULT_wxUSE_STATUSBAR=no
7355 DEFAULT_wxUSE_TAB_DIALOG=no
7356 DEFAULT_wxUSE_TOGGLEBTN=no
7357 DEFAULT_wxUSE_TOOLBAR=no
7358 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7359 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7360 DEFAULT_wxUSE_TOOLTIPS=no
7361 DEFAULT_wxUSE_TREECTRL=no
7362 DEFAULT_wxUSE_POPUPWIN=no
7363 DEFAULT_wxUSE_TIPWINDOW=no
7364fi
7365
a848cd7e
SC
7366
7367 enablestring=
7368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7369echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7370 no_cache=0
7371 # Check whether --enable-accel or --disable-accel was given.
7372if test "${enable_accel+set}" = set; then
7373 enableval="$enable_accel"
7374
7375 if test "$enableval" = yes; then
7376 ac_cv_use_accel='wxUSE_ACCEL=yes'
7377 else
7378 ac_cv_use_accel='wxUSE_ACCEL=no'
7379 fi
7380
7381else
7382
7383 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7384 if test "x$LINE" != x ; then
7385 eval "DEFAULT_$LINE"
7386 else
7387 no_cache=1
7388 fi
7389
7390 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7391
7392fi;
7393
7394 eval "$ac_cv_use_accel"
7395 if test "$no_cache" != 1; then
7396 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7397 fi
7398
7399 if test "$wxUSE_ACCEL" = yes; then
7400 echo "$as_me:$LINENO: result: yes" >&5
7401echo "${ECHO_T}yes" >&6
7402 else
7403 echo "$as_me:$LINENO: result: no" >&5
7404echo "${ECHO_T}no" >&6
7405 fi
7406
7407
7408 enablestring=
7409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7410echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7411 no_cache=0
7412 # Check whether --enable-button or --disable-button was given.
7413if test "${enable_button+set}" = set; then
7414 enableval="$enable_button"
7415
7416 if test "$enableval" = yes; then
7417 ac_cv_use_button='wxUSE_BUTTON=yes'
7418 else
7419 ac_cv_use_button='wxUSE_BUTTON=no'
7420 fi
7421
7422else
7423
7424 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7432
7433fi;
7434
7435 eval "$ac_cv_use_button"
7436 if test "$no_cache" != 1; then
7437 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7438 fi
7439
7440 if test "$wxUSE_BUTTON" = yes; then
7441 echo "$as_me:$LINENO: result: yes" >&5
7442echo "${ECHO_T}yes" >&6
7443 else
7444 echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6
7446 fi
7447
7448
7449 enablestring=
7450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7451echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7452 no_cache=0
7453 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7454if test "${enable_bmpbutton+set}" = set; then
7455 enableval="$enable_bmpbutton"
7456
7457 if test "$enableval" = yes; then
7458 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7459 else
7460 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7461 fi
7462
7463else
7464
7465 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7466 if test "x$LINE" != x ; then
7467 eval "DEFAULT_$LINE"
7468 else
7469 no_cache=1
7470 fi
7471
7472 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7473
7474fi;
7475
7476 eval "$ac_cv_use_bmpbutton"
7477 if test "$no_cache" != 1; then
7478 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7479 fi
7480
7481 if test "$wxUSE_BMPBUTTON" = yes; then
7482 echo "$as_me:$LINENO: result: yes" >&5
7483echo "${ECHO_T}yes" >&6
7484 else
7485 echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6
7487 fi
7488
7489
7490 enablestring=
7491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7492echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7493 no_cache=0
7494 # Check whether --enable-calendar or --disable-calendar was given.
7495if test "${enable_calendar+set}" = set; then
7496 enableval="$enable_calendar"
7497
7498 if test "$enableval" = yes; then
7499 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7500 else
7501 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7502 fi
7503
7504else
7505
7506 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7514
7515fi;
7516
7517 eval "$ac_cv_use_calendar"
7518 if test "$no_cache" != 1; then
7519 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7520 fi
7521
7522 if test "$wxUSE_CALCTRL" = yes; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524echo "${ECHO_T}yes" >&6
7525 else
7526 echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6
7528 fi
7529
7530
7531 enablestring=
7532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7533echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7534 no_cache=0
7535 # Check whether --enable-caret or --disable-caret was given.
7536if test "${enable_caret+set}" = set; then
7537 enableval="$enable_caret"
7538
7539 if test "$enableval" = yes; then
7540 ac_cv_use_caret='wxUSE_CARET=yes'
7541 else
7542 ac_cv_use_caret='wxUSE_CARET=no'
7543 fi
7544
7545else
7546
7547 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7548 if test "x$LINE" != x ; then
7549 eval "DEFAULT_$LINE"
7550 else
7551 no_cache=1
7552 fi
7553
7554 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7555
7556fi;
7557
7558 eval "$ac_cv_use_caret"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_CARET" = yes; then
7564 echo "$as_me:$LINENO: result: yes" >&5
7565echo "${ECHO_T}yes" >&6
7566 else
7567 echo "$as_me:$LINENO: result: no" >&5
7568echo "${ECHO_T}no" >&6
7569 fi
7570
7571
7572 enablestring=
7573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7574echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7575 no_cache=0
7576 # Check whether --enable-checkbox or --disable-checkbox was given.
7577if test "${enable_checkbox+set}" = set; then
7578 enableval="$enable_checkbox"
7579
7580 if test "$enableval" = yes; then
7581 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7582 else
7583 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7584 fi
7585
7586else
7587
7588 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7589 if test "x$LINE" != x ; then
7590 eval "DEFAULT_$LINE"
7591 else
7592 no_cache=1
7593 fi
7594
7595 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7596
7597fi;
7598
7599 eval "$ac_cv_use_checkbox"
7600 if test "$no_cache" != 1; then
7601 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7602 fi
7603
7604 if test "$wxUSE_CHECKBOX" = yes; then
7605 echo "$as_me:$LINENO: result: yes" >&5
7606echo "${ECHO_T}yes" >&6
7607 else
7608 echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6
7610 fi
7611
7612
7613 enablestring=
7614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7615echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7616 no_cache=0
7617 # Check whether --enable-checklst or --disable-checklst was given.
7618if test "${enable_checklst+set}" = set; then
7619 enableval="$enable_checklst"
7620
7621 if test "$enableval" = yes; then
7622 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7623 else
7624 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7625 fi
7626
7627else
7628
7629 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7630 if test "x$LINE" != x ; then
7631 eval "DEFAULT_$LINE"
7632 else
7633 no_cache=1
7634 fi
7635
7636 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7637
7638fi;
7639
7640 eval "$ac_cv_use_checklst"
7641 if test "$no_cache" != 1; then
7642 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7643 fi
7644
7645 if test "$wxUSE_CHECKLST" = yes; then
7646 echo "$as_me:$LINENO: result: yes" >&5
7647echo "${ECHO_T}yes" >&6
7648 else
7649 echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6
7651 fi
7652
7653
7654 enablestring=
7655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7656echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7657 no_cache=0
7658 # Check whether --enable-choice or --disable-choice was given.
7659if test "${enable_choice+set}" = set; then
7660 enableval="$enable_choice"
7661
7662 if test "$enableval" = yes; then
7663 ac_cv_use_choice='wxUSE_CHOICE=yes'
7664 else
7665 ac_cv_use_choice='wxUSE_CHOICE=no'
7666 fi
7667
7668else
7669
7670 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7671 if test "x$LINE" != x ; then
7672 eval "DEFAULT_$LINE"
7673 else
7674 no_cache=1
7675 fi
7676
7677 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7678
7679fi;
7680
7681 eval "$ac_cv_use_choice"
7682 if test "$no_cache" != 1; then
7683 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7684 fi
7685
7686 if test "$wxUSE_CHOICE" = yes; then
7687 echo "$as_me:$LINENO: result: yes" >&5
7688echo "${ECHO_T}yes" >&6
7689 else
7690 echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6
7692 fi
7693
7694
92bbdbcd
WS
7695 enablestring=
7696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7697echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7698 no_cache=0
7699 # Check whether --enable-choicebook or --disable-choicebook was given.
7700if test "${enable_choicebook+set}" = set; then
7701 enableval="$enable_choicebook"
7702
7703 if test "$enableval" = yes; then
7704 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7705 else
7706 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7707 fi
7708
7709else
7710
7711 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7712 if test "x$LINE" != x ; then
7713 eval "DEFAULT_$LINE"
7714 else
7715 no_cache=1
7716 fi
7717
7718 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7719
7720fi;
7721
7722 eval "$ac_cv_use_choicebook"
7723 if test "$no_cache" != 1; then
7724 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7725 fi
7726
7727 if test "$wxUSE_CHOICEBOOK" = yes; then
7728 echo "$as_me:$LINENO: result: yes" >&5
7729echo "${ECHO_T}yes" >&6
7730 else
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
7733 fi
7734
7735
a848cd7e
SC
7736 enablestring=
7737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7738echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7739 no_cache=0
7740 # Check whether --enable-combobox or --disable-combobox was given.
7741if test "${enable_combobox+set}" = set; then
7742 enableval="$enable_combobox"
7743
7744 if test "$enableval" = yes; then
7745 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7746 else
7747 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7748 fi
7749
7750else
7751
7752 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7753 if test "x$LINE" != x ; then
7754 eval "DEFAULT_$LINE"
7755 else
7756 no_cache=1
7757 fi
7758
7759 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7760
7761fi;
7762
7763 eval "$ac_cv_use_combobox"
7764 if test "$no_cache" != 1; then
7765 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7766 fi
7767
7768 if test "$wxUSE_COMBOBOX" = yes; then
7769 echo "$as_me:$LINENO: result: yes" >&5
7770echo "${ECHO_T}yes" >&6
7771 else
7772 echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6
7774 fi
7775
7776
da98e9be
VZ
7777 enablestring=
7778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7779echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7780 no_cache=0
7781 # Check whether --enable-datepick or --disable-datepick was given.
7782if test "${enable_datepick+set}" = set; then
7783 enableval="$enable_datepick"
7784
7785 if test "$enableval" = yes; then
7786 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7787 else
7788 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7789 fi
7790
7791else
7792
7793 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7794 if test "x$LINE" != x ; then
7795 eval "DEFAULT_$LINE"
7796 else
7797 no_cache=1
7798 fi
7799
7800 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7801
7802fi;
7803
7804 eval "$ac_cv_use_datepick"
7805 if test "$no_cache" != 1; then
7806 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7807 fi
7808
7809 if test "$wxUSE_DATEPICKCTRL" = yes; then
7810 echo "$as_me:$LINENO: result: yes" >&5
7811echo "${ECHO_T}yes" >&6
7812 else
7813 echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6
7815 fi
7816
7817
a848cd7e
SC
7818 enablestring=
7819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7820echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7821 no_cache=0
7822 # Check whether --enable-display or --disable-display was given.
7823if test "${enable_display+set}" = set; then
7824 enableval="$enable_display"
7825
7826 if test "$enableval" = yes; then
7827 ac_cv_use_display='wxUSE_DISPLAY=yes'
7828 else
7829 ac_cv_use_display='wxUSE_DISPLAY=no'
7830 fi
7831
7832else
7833
7834 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7835 if test "x$LINE" != x ; then
7836 eval "DEFAULT_$LINE"
7837 else
7838 no_cache=1
7839 fi
7840
7841 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7842
7843fi;
7844
7845 eval "$ac_cv_use_display"
7846 if test "$no_cache" != 1; then
7847 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7848 fi
7849
7850 if test "$wxUSE_DISPLAY" = yes; then
7851 echo "$as_me:$LINENO: result: yes" >&5
7852echo "${ECHO_T}yes" >&6
7853 else
7854 echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6
7856 fi
7857
7858
7859 enablestring=
7860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7861echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7862 no_cache=0
7863 # Check whether --enable-gauge or --disable-gauge was given.
7864if test "${enable_gauge+set}" = set; then
7865 enableval="$enable_gauge"
7866
7867 if test "$enableval" = yes; then
7868 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7869 else
7870 ac_cv_use_gauge='wxUSE_GAUGE=no'
7871 fi
7872
7873else
7874
7875 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7876 if test "x$LINE" != x ; then
7877 eval "DEFAULT_$LINE"
7878 else
7879 no_cache=1
7880 fi
7881
7882 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7883
7884fi;
7885
7886 eval "$ac_cv_use_gauge"
7887 if test "$no_cache" != 1; then
7888 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7889 fi
7890
7891 if test "$wxUSE_GAUGE" = yes; then
7892 echo "$as_me:$LINENO: result: yes" >&5
7893echo "${ECHO_T}yes" >&6
7894 else
7895 echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6
7897 fi
7898
7899
7900 enablestring=
7901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7902echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7903 no_cache=0
7904 # Check whether --enable-grid or --disable-grid was given.
7905if test "${enable_grid+set}" = set; then
7906 enableval="$enable_grid"
7907
7908 if test "$enableval" = yes; then
7909 ac_cv_use_grid='wxUSE_GRID=yes'
7910 else
7911 ac_cv_use_grid='wxUSE_GRID=no'
7912 fi
7913
7914else
7915
7916 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7917 if test "x$LINE" != x ; then
7918 eval "DEFAULT_$LINE"
7919 else
7920 no_cache=1
7921 fi
7922
7923 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7924
7925fi;
7926
7927 eval "$ac_cv_use_grid"
7928 if test "$no_cache" != 1; then
7929 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7930 fi
7931
7932 if test "$wxUSE_GRID" = yes; then
7933 echo "$as_me:$LINENO: result: yes" >&5
7934echo "${ECHO_T}yes" >&6
7935 else
7936 echo "$as_me:$LINENO: result: no" >&5
7937echo "${ECHO_T}no" >&6
7938 fi
7939
7940
7941 enablestring=
7942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7943echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7944 no_cache=0
7945 # Check whether --enable-imaglist or --disable-imaglist was given.
7946if test "${enable_imaglist+set}" = set; then
7947 enableval="$enable_imaglist"
7948
7949 if test "$enableval" = yes; then
7950 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7951 else
7952 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7953 fi
7954
7955else
7956
7957 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7958 if test "x$LINE" != x ; then
7959 eval "DEFAULT_$LINE"
7960 else
7961 no_cache=1
7962 fi
7963
7964 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7965
7966fi;
7967
7968 eval "$ac_cv_use_imaglist"
7969 if test "$no_cache" != 1; then
7970 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7971 fi
7972
7973 if test "$wxUSE_IMAGLIST" = yes; then
7974 echo "$as_me:$LINENO: result: yes" >&5
7975echo "${ECHO_T}yes" >&6
7976 else
7977 echo "$as_me:$LINENO: result: no" >&5
7978echo "${ECHO_T}no" >&6
7979 fi
7980
7981
7982 enablestring=
7983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7984echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7985 no_cache=0
7986 # Check whether --enable-listbook or --disable-listbook was given.
7987if test "${enable_listbook+set}" = set; then
7988 enableval="$enable_listbook"
7989
7990 if test "$enableval" = yes; then
7991 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7992 else
7993 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7994 fi
7995
7996else
7997
7998 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7999 if test "x$LINE" != x ; then
8000 eval "DEFAULT_$LINE"
8001 else
8002 no_cache=1
8003 fi
8004
8005 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8006
8007fi;
8008
8009 eval "$ac_cv_use_listbook"
8010 if test "$no_cache" != 1; then
8011 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8012 fi
8013
8014 if test "$wxUSE_LISTBOOK" = yes; then
8015 echo "$as_me:$LINENO: result: yes" >&5
8016echo "${ECHO_T}yes" >&6
8017 else
8018 echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6
8020 fi
8021
8022
8023 enablestring=
8024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8025echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8026 no_cache=0
8027 # Check whether --enable-listbox or --disable-listbox was given.
8028if test "${enable_listbox+set}" = set; then
8029 enableval="$enable_listbox"
8030
8031 if test "$enableval" = yes; then
8032 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8033 else
8034 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8035 fi
8036
8037else
8038
8039 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8040 if test "x$LINE" != x ; then
8041 eval "DEFAULT_$LINE"
8042 else
8043 no_cache=1
8044 fi
8045
8046 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8047
8048fi;
8049
8050 eval "$ac_cv_use_listbox"
8051 if test "$no_cache" != 1; then
8052 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8053 fi
8054
8055 if test "$wxUSE_LISTBOX" = yes; then
8056 echo "$as_me:$LINENO: result: yes" >&5
8057echo "${ECHO_T}yes" >&6
8058 else
8059 echo "$as_me:$LINENO: result: no" >&5
8060echo "${ECHO_T}no" >&6
8061 fi
8062
8063
8064 enablestring=
8065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8066echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8067 no_cache=0
8068 # Check whether --enable-listctrl or --disable-listctrl was given.
8069if test "${enable_listctrl+set}" = set; then
8070 enableval="$enable_listctrl"
8071
8072 if test "$enableval" = yes; then
8073 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8074 else
8075 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8076 fi
8077
8078else
8079
8080 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8081 if test "x$LINE" != x ; then
8082 eval "DEFAULT_$LINE"
8083 else
8084 no_cache=1
8085 fi
8086
8087 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8088
8089fi;
8090
8091 eval "$ac_cv_use_listctrl"
8092 if test "$no_cache" != 1; then
8093 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8094 fi
8095
8096 if test "$wxUSE_LISTCTRL" = yes; then
8097 echo "$as_me:$LINENO: result: yes" >&5
8098echo "${ECHO_T}yes" >&6
8099 else
8100 echo "$as_me:$LINENO: result: no" >&5
8101echo "${ECHO_T}no" >&6
8102 fi
8103
8104
8105 enablestring=
8106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8107echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8108 no_cache=0
8109 # Check whether --enable-notebook or --disable-notebook was given.
8110if test "${enable_notebook+set}" = set; then
8111 enableval="$enable_notebook"
8112
8113 if test "$enableval" = yes; then
8114 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8115 else
8116 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8117 fi
8118
8119else
8120
8121 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8122 if test "x$LINE" != x ; then
8123 eval "DEFAULT_$LINE"
8124 else
8125 no_cache=1
8126 fi
8127
8128 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8129
8130fi;
8131
8132 eval "$ac_cv_use_notebook"
8133 if test "$no_cache" != 1; then
8134 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8135 fi
8136
8137 if test "$wxUSE_NOTEBOOK" = yes; then
8138 echo "$as_me:$LINENO: result: yes" >&5
8139echo "${ECHO_T}yes" >&6
8140 else
8141 echo "$as_me:$LINENO: result: no" >&5
8142echo "${ECHO_T}no" >&6
8143 fi
8144
8145
8146 enablestring=
8147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8148echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8149 no_cache=0
8150 # Check whether --enable-radiobox or --disable-radiobox was given.
8151if test "${enable_radiobox+set}" = set; then
8152 enableval="$enable_radiobox"
8153
8154 if test "$enableval" = yes; then
8155 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8156 else
8157 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8158 fi
8159
8160else
8161
8162 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8163 if test "x$LINE" != x ; then
8164 eval "DEFAULT_$LINE"
8165 else
8166 no_cache=1
8167 fi
8168
8169 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8170
8171fi;
8172
8173 eval "$ac_cv_use_radiobox"
8174 if test "$no_cache" != 1; then
8175 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8176 fi
8177
8178 if test "$wxUSE_RADIOBOX" = yes; then
8179 echo "$as_me:$LINENO: result: yes" >&5
8180echo "${ECHO_T}yes" >&6
8181 else
8182 echo "$as_me:$LINENO: result: no" >&5
8183echo "${ECHO_T}no" >&6
8184 fi
8185
8186
8187 enablestring=
8188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8189echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8190 no_cache=0
8191 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8192if test "${enable_radiobtn+set}" = set; then
8193 enableval="$enable_radiobtn"
8194
8195 if test "$enableval" = yes; then
8196 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8197 else
8198 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8199 fi
8200
8201else
8202
8203 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8204 if test "x$LINE" != x ; then
8205 eval "DEFAULT_$LINE"
8206 else
8207 no_cache=1
8208 fi
8209
8210 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8211
8212fi;
8213
8214 eval "$ac_cv_use_radiobtn"
8215 if test "$no_cache" != 1; then
8216 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8217 fi
8218
8219 if test "$wxUSE_RADIOBTN" = yes; then
8220 echo "$as_me:$LINENO: result: yes" >&5
8221echo "${ECHO_T}yes" >&6
8222 else
8223 echo "$as_me:$LINENO: result: no" >&5
8224echo "${ECHO_T}no" >&6
8225 fi
8226
8227
8228 enablestring=
8229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8230echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8231 no_cache=0
8232 # Check whether --enable-sash or --disable-sash was given.
8233if test "${enable_sash+set}" = set; then
8234 enableval="$enable_sash"
8235
8236 if test "$enableval" = yes; then
8237 ac_cv_use_sash='wxUSE_SASH=yes'
8238 else
8239 ac_cv_use_sash='wxUSE_SASH=no'
8240 fi
8241
8242else
8243
8244 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8245 if test "x$LINE" != x ; then
8246 eval "DEFAULT_$LINE"
8247 else
8248 no_cache=1
8249 fi
8250
8251 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8252
8253fi;
8254
8255 eval "$ac_cv_use_sash"
8256 if test "$no_cache" != 1; then
8257 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8258 fi
8259
8260 if test "$wxUSE_SASH" = yes; then
8261 echo "$as_me:$LINENO: result: yes" >&5
8262echo "${ECHO_T}yes" >&6
8263 else
8264 echo "$as_me:$LINENO: result: no" >&5
8265echo "${ECHO_T}no" >&6
8266 fi
8267
8268
8269 enablestring=
8270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8271echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8272 no_cache=0
8273 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8274if test "${enable_scrollbar+set}" = set; then
8275 enableval="$enable_scrollbar"
8276
8277 if test "$enableval" = yes; then
8278 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8279 else
8280 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8281 fi
8282
8283else
8284
8285 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8286 if test "x$LINE" != x ; then
8287 eval "DEFAULT_$LINE"
8288 else
8289 no_cache=1
8290 fi
8291
8292 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8293
8294fi;
8295
8296 eval "$ac_cv_use_scrollbar"
8297 if test "$no_cache" != 1; then
8298 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8299 fi
8300
8301 if test "$wxUSE_SCROLLBAR" = yes; then
8302 echo "$as_me:$LINENO: result: yes" >&5
8303echo "${ECHO_T}yes" >&6
8304 else
8305 echo "$as_me:$LINENO: result: no" >&5
8306echo "${ECHO_T}no" >&6
8307 fi
8308
8309
8310 enablestring=
8311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8312echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8313 no_cache=0
8314 # Check whether --enable-slider or --disable-slider was given.
8315if test "${enable_slider+set}" = set; then
8316 enableval="$enable_slider"
8317
8318 if test "$enableval" = yes; then
8319 ac_cv_use_slider='wxUSE_SLIDER=yes'
8320 else
8321 ac_cv_use_slider='wxUSE_SLIDER=no'
8322 fi
8323
8324else
8325
8326 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8327 if test "x$LINE" != x ; then
8328 eval "DEFAULT_$LINE"
8329 else
8330 no_cache=1
8331 fi
8332
8333 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8334
8335fi;
8336
8337 eval "$ac_cv_use_slider"
8338 if test "$no_cache" != 1; then
8339 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8340 fi
8341
8342 if test "$wxUSE_SLIDER" = yes; then
8343 echo "$as_me:$LINENO: result: yes" >&5
8344echo "${ECHO_T}yes" >&6
8345 else
8346 echo "$as_me:$LINENO: result: no" >&5
8347echo "${ECHO_T}no" >&6
8348 fi
8349
8350
8351 enablestring=
8352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8353echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8354 no_cache=0
8355 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8356if test "${enable_spinbtn+set}" = set; then
8357 enableval="$enable_spinbtn"
8358
8359 if test "$enableval" = yes; then
8360 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8361 else
8362 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8363 fi
8364
8365else
8366
8367 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8368 if test "x$LINE" != x ; then
8369 eval "DEFAULT_$LINE"
8370 else
8371 no_cache=1
8372 fi
8373
8374 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8375
8376fi;
8377
8378 eval "$ac_cv_use_spinbtn"
8379 if test "$no_cache" != 1; then
8380 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8381 fi
8382
8383 if test "$wxUSE_SPINBTN" = yes; then
8384 echo "$as_me:$LINENO: result: yes" >&5
8385echo "${ECHO_T}yes" >&6
8386 else
8387 echo "$as_me:$LINENO: result: no" >&5
8388echo "${ECHO_T}no" >&6
8389 fi
8390
8391
8392 enablestring=
8393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8394echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8395 no_cache=0
8396 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8397if test "${enable_spinctrl+set}" = set; then
8398 enableval="$enable_spinctrl"
8399
8400 if test "$enableval" = yes; then
8401 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8402 else
8403 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8404 fi
8405
8406else
8407
8408 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8409 if test "x$LINE" != x ; then
8410 eval "DEFAULT_$LINE"
8411 else
8412 no_cache=1
8413 fi
8414
8415 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8416
8417fi;
8418
8419 eval "$ac_cv_use_spinctrl"
8420 if test "$no_cache" != 1; then
8421 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8422 fi
8423
8424 if test "$wxUSE_SPINCTRL" = yes; then
8425 echo "$as_me:$LINENO: result: yes" >&5
8426echo "${ECHO_T}yes" >&6
8427 else
8428 echo "$as_me:$LINENO: result: no" >&5
8429echo "${ECHO_T}no" >&6
8430 fi
8431
8432
8433 enablestring=
8434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8435echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8436 no_cache=0
8437 # Check whether --enable-splitter or --disable-splitter was given.
8438if test "${enable_splitter+set}" = set; then
8439 enableval="$enable_splitter"
8440
8441 if test "$enableval" = yes; then
8442 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8443 else
8444 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8445 fi
8446
8447else
8448
8449 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8450 if test "x$LINE" != x ; then
8451 eval "DEFAULT_$LINE"
8452 else
8453 no_cache=1
8454 fi
8455
8456 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8457
8458fi;
8459
8460 eval "$ac_cv_use_splitter"
8461 if test "$no_cache" != 1; then
8462 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8463 fi
8464
8465 if test "$wxUSE_SPLITTER" = yes; then
8466 echo "$as_me:$LINENO: result: yes" >&5
8467echo "${ECHO_T}yes" >&6
8468 else
8469 echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6
8471 fi
8472
8473
8474 enablestring=
8475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8476echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8477 no_cache=0
8478 # Check whether --enable-statbmp or --disable-statbmp was given.
8479if test "${enable_statbmp+set}" = set; then
8480 enableval="$enable_statbmp"
8481
8482 if test "$enableval" = yes; then
8483 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8484 else
8485 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8486 fi
8487
8488else
8489
8490 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8491 if test "x$LINE" != x ; then
8492 eval "DEFAULT_$LINE"
8493 else
8494 no_cache=1
8495 fi
8496
8497 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8498
8499fi;
8500
8501 eval "$ac_cv_use_statbmp"
8502 if test "$no_cache" != 1; then
8503 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8504 fi
8505
8506 if test "$wxUSE_STATBMP" = yes; then
8507 echo "$as_me:$LINENO: result: yes" >&5
8508echo "${ECHO_T}yes" >&6
8509 else
8510 echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6
8512 fi
8513
8514
8515 enablestring=
8516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8517echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8518 no_cache=0
8519 # Check whether --enable-statbox or --disable-statbox was given.
8520if test "${enable_statbox+set}" = set; then
8521 enableval="$enable_statbox"
8522
8523 if test "$enableval" = yes; then
8524 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8525 else
8526 ac_cv_use_statbox='wxUSE_STATBOX=no'
8527 fi
8528
8529else
8530
8531 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8532 if test "x$LINE" != x ; then
8533 eval "DEFAULT_$LINE"
8534 else
8535 no_cache=1
8536 fi
8537
8538 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8539
8540fi;
8541
8542 eval "$ac_cv_use_statbox"
8543 if test "$no_cache" != 1; then
8544 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8545 fi
8546
8547 if test "$wxUSE_STATBOX" = yes; then
8548 echo "$as_me:$LINENO: result: yes" >&5
8549echo "${ECHO_T}yes" >&6
8550 else
8551 echo "$as_me:$LINENO: result: no" >&5
8552echo "${ECHO_T}no" >&6
8553 fi
8554
8555
8556 enablestring=
8557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8558echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8559 no_cache=0
8560 # Check whether --enable-statline or --disable-statline was given.
8561if test "${enable_statline+set}" = set; then
8562 enableval="$enable_statline"
8563
8564 if test "$enableval" = yes; then
8565 ac_cv_use_statline='wxUSE_STATLINE=yes'
8566 else
8567 ac_cv_use_statline='wxUSE_STATLINE=no'
8568 fi
8569
8570else
8571
8572 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8573 if test "x$LINE" != x ; then
8574 eval "DEFAULT_$LINE"
8575 else
8576 no_cache=1
8577 fi
8578
8579 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8580
8581fi;
8582
8583 eval "$ac_cv_use_statline"
8584 if test "$no_cache" != 1; then
8585 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8586 fi
8587
8588 if test "$wxUSE_STATLINE" = yes; then
8589 echo "$as_me:$LINENO: result: yes" >&5
8590echo "${ECHO_T}yes" >&6
8591 else
8592 echo "$as_me:$LINENO: result: no" >&5
8593echo "${ECHO_T}no" >&6
8594 fi
8595
8596
8597 enablestring=
8598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8599echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8600 no_cache=0
8601 # Check whether --enable-stattext or --disable-stattext was given.
8602if test "${enable_stattext+set}" = set; then
8603 enableval="$enable_stattext"
8604
8605 if test "$enableval" = yes; then
8606 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8607 else
8608 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8609 fi
8610
8611else
8612
8613 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8614 if test "x$LINE" != x ; then
8615 eval "DEFAULT_$LINE"
8616 else
8617 no_cache=1
8618 fi
8619
8620 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8621
8622fi;
8623
8624 eval "$ac_cv_use_stattext"
8625 if test "$no_cache" != 1; then
8626 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8627 fi
8628
8629 if test "$wxUSE_STATTEXT" = yes; then
8630 echo "$as_me:$LINENO: result: yes" >&5
8631echo "${ECHO_T}yes" >&6
8632 else
8633 echo "$as_me:$LINENO: result: no" >&5
8634echo "${ECHO_T}no" >&6
8635 fi
8636
8637
8638 enablestring=
8639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8640echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8641 no_cache=0
8642 # Check whether --enable-statusbar or --disable-statusbar was given.
8643if test "${enable_statusbar+set}" = set; then
8644 enableval="$enable_statusbar"
8645
8646 if test "$enableval" = yes; then
8647 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8648 else
8649 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8650 fi
8651
8652else
8653
8654 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8655 if test "x$LINE" != x ; then
8656 eval "DEFAULT_$LINE"
8657 else
8658 no_cache=1
8659 fi
8660
8661 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8662
8663fi;
8664
8665 eval "$ac_cv_use_statusbar"
8666 if test "$no_cache" != 1; then
8667 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8668 fi
8669
8670 if test "$wxUSE_STATUSBAR" = yes; then
8671 echo "$as_me:$LINENO: result: yes" >&5
8672echo "${ECHO_T}yes" >&6
8673 else
8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
8676 fi
8677
8678
8679 enablestring=
8680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8681echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8682 no_cache=0
8683 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8684if test "${enable_tabdialog+set}" = set; then
8685 enableval="$enable_tabdialog"
8686
8687 if test "$enableval" = yes; then
8688 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8689 else
8690 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8691 fi
8692
8693else
8694
8695 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8696 if test "x$LINE" != x ; then
8697 eval "DEFAULT_$LINE"
8698 else
8699 no_cache=1
8700 fi
8701
8702 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8703
8704fi;
8705
8706 eval "$ac_cv_use_tabdialog"
8707 if test "$no_cache" != 1; then
8708 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8709 fi
8710
8711 if test "$wxUSE_TABDIALOG" = yes; then
8712 echo "$as_me:$LINENO: result: yes" >&5
8713echo "${ECHO_T}yes" >&6
8714 else
8715 echo "$as_me:$LINENO: result: no" >&5
8716echo "${ECHO_T}no" >&6
8717 fi
8718
8719
8720 enablestring=
8721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8722echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8723 no_cache=0
8724 # Check whether --enable-textctrl or --disable-textctrl was given.
8725if test "${enable_textctrl+set}" = set; then
8726 enableval="$enable_textctrl"
8727
8728 if test "$enableval" = yes; then
8729 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8730 else
8731 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8732 fi
8733
8734else
8735
8736 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8737 if test "x$LINE" != x ; then
8738 eval "DEFAULT_$LINE"
8739 else
8740 no_cache=1
8741 fi
8742
8743 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8744
8745fi;
8746
8747 eval "$ac_cv_use_textctrl"
8748 if test "$no_cache" != 1; then
8749 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8750 fi
8751
8752 if test "$wxUSE_TEXTCTRL" = yes; then
8753 echo "$as_me:$LINENO: result: yes" >&5
8754echo "${ECHO_T}yes" >&6
8755 else
8756 echo "$as_me:$LINENO: result: no" >&5
8757echo "${ECHO_T}no" >&6
8758 fi
8759
8760
8761 enablestring=
8762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8763echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8764 no_cache=0
8765 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8766if test "${enable_togglebtn+set}" = set; then
8767 enableval="$enable_togglebtn"
8768
8769 if test "$enableval" = yes; then
8770 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8771 else
8772 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8773 fi
8774
8775else
8776
8777 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8778 if test "x$LINE" != x ; then
8779 eval "DEFAULT_$LINE"
8780 else
8781 no_cache=1
8782 fi
8783
8784 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8785
8786fi;
8787
8788 eval "$ac_cv_use_togglebtn"
8789 if test "$no_cache" != 1; then
8790 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8791 fi
8792
8793 if test "$wxUSE_TOGGLEBTN" = yes; then
8794 echo "$as_me:$LINENO: result: yes" >&5
8795echo "${ECHO_T}yes" >&6
8796 else
8797 echo "$as_me:$LINENO: result: no" >&5
8798echo "${ECHO_T}no" >&6
8799 fi
8800
8801
8802 enablestring=
8803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8804echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8805 no_cache=0
8806 # Check whether --enable-toolbar or --disable-toolbar was given.
8807if test "${enable_toolbar+set}" = set; then
8808 enableval="$enable_toolbar"
8809
8810 if test "$enableval" = yes; then
8811 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8812 else
8813 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8814 fi
8815
8816else
8817
8818 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8819 if test "x$LINE" != x ; then
8820 eval "DEFAULT_$LINE"
8821 else
8822 no_cache=1
8823 fi
8824
8825 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8826
8827fi;
8828
8829 eval "$ac_cv_use_toolbar"
8830 if test "$no_cache" != 1; then
8831 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8832 fi
8833
8834 if test "$wxUSE_TOOLBAR" = yes; then
8835 echo "$as_me:$LINENO: result: yes" >&5
8836echo "${ECHO_T}yes" >&6
8837 else
8838 echo "$as_me:$LINENO: result: no" >&5
8839echo "${ECHO_T}no" >&6
8840 fi
8841
8842
8843 enablestring=
8844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8845echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8846 no_cache=0
8847 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8848if test "${enable_tbarnative+set}" = set; then
8849 enableval="$enable_tbarnative"
8850
8851 if test "$enableval" = yes; then
8852 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8853 else
8854 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8855 fi
8856
8857else
8858
8859 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8860 if test "x$LINE" != x ; then
8861 eval "DEFAULT_$LINE"
8862 else
8863 no_cache=1
8864 fi
8865
8866 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8867
8868fi;
8869
8870 eval "$ac_cv_use_tbarnative"
8871 if test "$no_cache" != 1; then
8872 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8873 fi
8874
8875 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8876 echo "$as_me:$LINENO: result: yes" >&5
8877echo "${ECHO_T}yes" >&6
8878 else
8879 echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
8881 fi
8882
8883
8884 enablestring=
8885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8886echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8887 no_cache=0
8888 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8889if test "${enable_tbarsmpl+set}" = set; then
8890 enableval="$enable_tbarsmpl"
8891
8892 if test "$enableval" = yes; then
8893 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8894 else
8895 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8896 fi
8897
8898else
8899
8900 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8901 if test "x$LINE" != x ; then
8902 eval "DEFAULT_$LINE"
8903 else
8904 no_cache=1
8905 fi
8906
8907 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8908
8909fi;
8910
8911 eval "$ac_cv_use_tbarsmpl"
8912 if test "$no_cache" != 1; then
8913 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8914 fi
8915
8916 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8917 echo "$as_me:$LINENO: result: yes" >&5
8918echo "${ECHO_T}yes" >&6
8919 else
8920 echo "$as_me:$LINENO: result: no" >&5
8921echo "${ECHO_T}no" >&6
8922 fi
8923
8924
8925 enablestring=
8926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8927echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8928 no_cache=0
8929 # Check whether --enable-treectrl or --disable-treectrl was given.
8930if test "${enable_treectrl+set}" = set; then
8931 enableval="$enable_treectrl"
8932
8933 if test "$enableval" = yes; then
8934 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8935 else
8936 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8937 fi
8938
8939else
8940
8941 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8942 if test "x$LINE" != x ; then
8943 eval "DEFAULT_$LINE"
8944 else
8945 no_cache=1
8946 fi
8947
8948 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8949
8950fi;
8951
8952 eval "$ac_cv_use_treectrl"
8953 if test "$no_cache" != 1; then
8954 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8955 fi
8956
8957 if test "$wxUSE_TREECTRL" = yes; then
8958 echo "$as_me:$LINENO: result: yes" >&5
8959echo "${ECHO_T}yes" >&6
8960 else
8961 echo "$as_me:$LINENO: result: no" >&5
8962echo "${ECHO_T}no" >&6
8963 fi
8964
8965
8966 enablestring=
8967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8968echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8969 no_cache=0
8970 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8971if test "${enable_tipwindow+set}" = set; then
8972 enableval="$enable_tipwindow"
8973
8974 if test "$enableval" = yes; then
8975 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8976 else
8977 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8978 fi
8979
8980else
8981
8982 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8983 if test "x$LINE" != x ; then
8984 eval "DEFAULT_$LINE"
8985 else
8986 no_cache=1
8987 fi
8988
8989 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8990
8991fi;
8992
8993 eval "$ac_cv_use_tipwindow"
8994 if test "$no_cache" != 1; then
8995 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8996 fi
8997
8998 if test "$wxUSE_TIPWINDOW" = yes; then
8999 echo "$as_me:$LINENO: result: yes" >&5
9000echo "${ECHO_T}yes" >&6
9001 else
9002 echo "$as_me:$LINENO: result: no" >&5
9003echo "${ECHO_T}no" >&6
9004 fi
9005
9006
9007 enablestring=
9008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9009echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9010 no_cache=0
9011 # Check whether --enable-popupwin or --disable-popupwin was given.
9012if test "${enable_popupwin+set}" = set; then
9013 enableval="$enable_popupwin"
9014
9015 if test "$enableval" = yes; then
9016 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9017 else
9018 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9019 fi
9020
9021else
9022
9023 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9024 if test "x$LINE" != x ; then
9025 eval "DEFAULT_$LINE"
9026 else
9027 no_cache=1
9028 fi
9029
9030 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9031
9032fi;
9033
9034 eval "$ac_cv_use_popupwin"
9035 if test "$no_cache" != 1; then
9036 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9037 fi
9038
9039 if test "$wxUSE_POPUPWIN" = yes; then
9040 echo "$as_me:$LINENO: result: yes" >&5
9041echo "${ECHO_T}yes" >&6
9042 else
9043 echo "$as_me:$LINENO: result: no" >&5
9044echo "${ECHO_T}no" >&6
9045 fi
9046
9047
9048
9049
9050 enablestring=
9051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9052echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9053 no_cache=0
9054 # Check whether --enable-commondlg or --disable-commondlg was given.
9055if test "${enable_commondlg+set}" = set; then
9056 enableval="$enable_commondlg"
9057
9058 if test "$enableval" = yes; then
9059 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9060 else
9061 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9062 fi
9063
9064else
9065
9066 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9067 if test "x$LINE" != x ; then
9068 eval "DEFAULT_$LINE"
9069 else
9070 no_cache=1
9071 fi
9072
9073 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9074
9075fi;
9076
9077 eval "$ac_cv_use_commondlg"
9078 if test "$no_cache" != 1; then
9079 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9080 fi
9081
9082 if test "$wxUSE_COMMONDLGS" = yes; then
9083 echo "$as_me:$LINENO: result: yes" >&5
9084echo "${ECHO_T}yes" >&6
9085 else
9086 echo "$as_me:$LINENO: result: no" >&5
9087echo "${ECHO_T}no" >&6
9088 fi
9089
9090
9091 enablestring=
9092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9093echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9094 no_cache=0
9095 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9096if test "${enable_choicedlg+set}" = set; then
9097 enableval="$enable_choicedlg"
9098
9099 if test "$enableval" = yes; then
9100 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9101 else
9102 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9103 fi
9104
9105else
9106
9107 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9108 if test "x$LINE" != x ; then
9109 eval "DEFAULT_$LINE"
9110 else
9111 no_cache=1
9112 fi
9113
9114 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9115
9116fi;
9117
9118 eval "$ac_cv_use_choicedlg"
9119 if test "$no_cache" != 1; then
9120 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9121 fi
9122
9123 if test "$wxUSE_CHOICEDLG" = yes; then
9124 echo "$as_me:$LINENO: result: yes" >&5
9125echo "${ECHO_T}yes" >&6
9126 else
9127 echo "$as_me:$LINENO: result: no" >&5
9128echo "${ECHO_T}no" >&6
9129 fi
9130
9131
9132 enablestring=
9133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9134echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9135 no_cache=0
9136 # Check whether --enable-coldlg or --disable-coldlg was given.
9137if test "${enable_coldlg+set}" = set; then
9138 enableval="$enable_coldlg"
9139
9140 if test "$enableval" = yes; then
9141 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9142 else
9143 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9144 fi
9145
9146else
9147
9148 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9149 if test "x$LINE" != x ; then
9150 eval "DEFAULT_$LINE"
9151 else
9152 no_cache=1
9153 fi
9154
9155 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9156
9157fi;
9158
9159 eval "$ac_cv_use_coldlg"
9160 if test "$no_cache" != 1; then
9161 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9162 fi
9163
9164 if test "$wxUSE_COLOURDLG" = yes; then
9165 echo "$as_me:$LINENO: result: yes" >&5
9166echo "${ECHO_T}yes" >&6
9167 else
9168 echo "$as_me:$LINENO: result: no" >&5
9169echo "${ECHO_T}no" >&6
9170 fi
9171
9172
9173 enablestring=
9174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9175echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9176 no_cache=0
9177 # Check whether --enable-filedlg or --disable-filedlg was given.
9178if test "${enable_filedlg+set}" = set; then
9179 enableval="$enable_filedlg"
9180
9181 if test "$enableval" = yes; then
9182 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9183 else
9184 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9185 fi
9186
9187else
9188
9189 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9190 if test "x$LINE" != x ; then
9191 eval "DEFAULT_$LINE"
9192 else
9193 no_cache=1
9194 fi
9195
9196 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9197
9198fi;
9199
9200 eval "$ac_cv_use_filedlg"
9201 if test "$no_cache" != 1; then
9202 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9203 fi
9204
9205 if test "$wxUSE_FILEDLG" = yes; then
9206 echo "$as_me:$LINENO: result: yes" >&5
9207echo "${ECHO_T}yes" >&6
9208 else
9209 echo "$as_me:$LINENO: result: no" >&5
9210echo "${ECHO_T}no" >&6
9211 fi
9212
9213
9214 enablestring=
9215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9216echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9217 no_cache=0
9218 # Check whether --enable-finddlg or --disable-finddlg was given.
9219if test "${enable_finddlg+set}" = set; then
9220 enableval="$enable_finddlg"
9221
9222 if test "$enableval" = yes; then
9223 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9224 else
9225 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9226 fi
9227
9228else
9229
9230 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9231 if test "x$LINE" != x ; then
9232 eval "DEFAULT_$LINE"
9233 else
9234 no_cache=1
9235 fi
9236
9237 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9238
9239fi;
9240
9241 eval "$ac_cv_use_finddlg"
9242 if test "$no_cache" != 1; then
9243 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9244 fi
9245
9246 if test "$wxUSE_FINDREPLDLG" = yes; then
9247 echo "$as_me:$LINENO: result: yes" >&5
9248echo "${ECHO_T}yes" >&6
9249 else
9250 echo "$as_me:$LINENO: result: no" >&5
9251echo "${ECHO_T}no" >&6
9252 fi
9253
9254
9255 enablestring=
9256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9257echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9258 no_cache=0
9259 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9260if test "${enable_fontdlg+set}" = set; then
9261 enableval="$enable_fontdlg"
9262
9263 if test "$enableval" = yes; then
9264 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9265 else
9266 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9267 fi
9268
9269else
9270
9271 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9272 if test "x$LINE" != x ; then
9273 eval "DEFAULT_$LINE"
9274 else
9275 no_cache=1
9276 fi
9277
9278 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9279
9280fi;
9281
9282 eval "$ac_cv_use_fontdlg"
9283 if test "$no_cache" != 1; then
9284 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9285 fi
9286
9287 if test "$wxUSE_FONTDLG" = yes; then
9288 echo "$as_me:$LINENO: result: yes" >&5
9289echo "${ECHO_T}yes" >&6
9290 else
9291 echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6
9293 fi
9294
9295
9296 enablestring=
9297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9298echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9299 no_cache=0
9300 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9301if test "${enable_dirdlg+set}" = set; then
9302 enableval="$enable_dirdlg"
9303
9304 if test "$enableval" = yes; then
9305 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9306 else
9307 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9308 fi
9309
9310else
9311
9312 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9313 if test "x$LINE" != x ; then
9314 eval "DEFAULT_$LINE"
9315 else
9316 no_cache=1
9317 fi
9318
9319 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9320
9321fi;
9322
9323 eval "$ac_cv_use_dirdlg"
9324 if test "$no_cache" != 1; then
9325 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9326 fi
9327
9328 if test "$wxUSE_DIRDLG" = yes; then
9329 echo "$as_me:$LINENO: result: yes" >&5
9330echo "${ECHO_T}yes" >&6
9331 else
9332 echo "$as_me:$LINENO: result: no" >&5
9333echo "${ECHO_T}no" >&6
9334 fi
9335
9336
9337 enablestring=
9338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9339echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9340 no_cache=0
9341 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9342if test "${enable_msgdlg+set}" = set; then
9343 enableval="$enable_msgdlg"
9344
9345 if test "$enableval" = yes; then
9346 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9347 else
9348 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9349 fi
9350
9351else
9352
9353 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9354 if test "x$LINE" != x ; then
9355 eval "DEFAULT_$LINE"
9356 else
9357 no_cache=1
9358 fi
9359
9360 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9361
9362fi;
9363
9364 eval "$ac_cv_use_msgdlg"
9365 if test "$no_cache" != 1; then
9366 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9367 fi
9368
9369 if test "$wxUSE_MSGDLG" = yes; then
9370 echo "$as_me:$LINENO: result: yes" >&5
9371echo "${ECHO_T}yes" >&6
9372 else
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
9375 fi
9376
9377
9378 enablestring=
9379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9380echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9381 no_cache=0
9382 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9383if test "${enable_numberdlg+set}" = set; then
9384 enableval="$enable_numberdlg"
9385
9386 if test "$enableval" = yes; then
9387 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9388 else
9389 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9390 fi
9391
9392else
9393
9394 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9395 if test "x$LINE" != x ; then
9396 eval "DEFAULT_$LINE"
9397 else
9398 no_cache=1
9399 fi
9400
9401 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9402
9403fi;
9404
9405 eval "$ac_cv_use_numberdlg"
9406 if test "$no_cache" != 1; then
9407 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9408 fi
9409
9410 if test "$wxUSE_NUMBERDLG" = yes; then
9411 echo "$as_me:$LINENO: result: yes" >&5
9412echo "${ECHO_T}yes" >&6
9413 else
9414 echo "$as_me:$LINENO: result: no" >&5
9415echo "${ECHO_T}no" >&6
9416 fi
9417
9418
9419 enablestring=
9420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9421echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9422 no_cache=0
9423 # Check whether --enable-splash or --disable-splash was given.
9424if test "${enable_splash+set}" = set; then
9425 enableval="$enable_splash"
9426
9427 if test "$enableval" = yes; then
9428 ac_cv_use_splash='wxUSE_SPLASH=yes'
9429 else
9430 ac_cv_use_splash='wxUSE_SPLASH=no'
9431 fi
9432
9433else
9434
9435 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9436 if test "x$LINE" != x ; then
9437 eval "DEFAULT_$LINE"
9438 else
9439 no_cache=1
9440 fi
9441
9442 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9443
9444fi;
9445
9446 eval "$ac_cv_use_splash"
9447 if test "$no_cache" != 1; then
9448 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9449 fi
9450
9451 if test "$wxUSE_SPLASH" = yes; then
9452 echo "$as_me:$LINENO: result: yes" >&5
9453echo "${ECHO_T}yes" >&6
9454 else
9455 echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
9457 fi
9458
9459
9460 enablestring=
9461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9462echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9463 no_cache=0
9464 # Check whether --enable-textdlg or --disable-textdlg was given.
9465if test "${enable_textdlg+set}" = set; then
9466 enableval="$enable_textdlg"
9467
9468 if test "$enableval" = yes; then
9469 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9470 else
9471 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9472 fi
9473
9474else
9475
9476 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9477 if test "x$LINE" != x ; then
9478 eval "DEFAULT_$LINE"
9479 else
9480 no_cache=1
9481 fi
9482
9483 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9484
9485fi;
9486
9487 eval "$ac_cv_use_textdlg"
9488 if test "$no_cache" != 1; then
9489 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9490 fi
9491
9492 if test "$wxUSE_TEXTDLG" = yes; then
9493 echo "$as_me:$LINENO: result: yes" >&5
9494echo "${ECHO_T}yes" >&6
9495 else
9496 echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
9498 fi
9499
9500
9501 enablestring=
9502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9503echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9504 no_cache=0
9505 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9506if test "${enable_tipdlg+set}" = set; then
9507 enableval="$enable_tipdlg"
9508
9509 if test "$enableval" = yes; then
9510 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9511 else
9512 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9513 fi
9514
9515else
9516
9517 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9518 if test "x$LINE" != x ; then
9519 eval "DEFAULT_$LINE"
9520 else
9521 no_cache=1
9522 fi
9523
9524 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9525
9526fi;
9527
9528 eval "$ac_cv_use_tipdlg"
9529 if test "$no_cache" != 1; then
9530 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9531 fi
9532
9533 if test "$wxUSE_STARTUP_TIPS" = yes; then
9534 echo "$as_me:$LINENO: result: yes" >&5
9535echo "${ECHO_T}yes" >&6
9536 else
9537 echo "$as_me:$LINENO: result: no" >&5
9538echo "${ECHO_T}no" >&6
9539 fi
9540
9541
9542 enablestring=
9543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9544echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9545 no_cache=0
9546 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9547if test "${enable_progressdlg+set}" = set; then
9548 enableval="$enable_progressdlg"
9549
9550 if test "$enableval" = yes; then
9551 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9552 else
9553 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9554 fi
9555
9556else
9557
9558 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9559 if test "x$LINE" != x ; then
9560 eval "DEFAULT_$LINE"
9561 else
9562 no_cache=1
9563 fi
9564
9565 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9566
9567fi;
9568
9569 eval "$ac_cv_use_progressdlg"
9570 if test "$no_cache" != 1; then
9571 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9572 fi
9573
9574 if test "$wxUSE_PROGRESSDLG" = yes; then
9575 echo "$as_me:$LINENO: result: yes" >&5
9576echo "${ECHO_T}yes" >&6
9577 else
9578 echo "$as_me:$LINENO: result: no" >&5
9579echo "${ECHO_T}no" >&6
9580 fi
9581
9582
9583 enablestring=
9584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9585echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9586 no_cache=0
9587 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9588if test "${enable_wizarddlg+set}" = set; then
9589 enableval="$enable_wizarddlg"
9590
9591 if test "$enableval" = yes; then
9592 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9593 else
9594 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9595 fi
9596
9597else
9598
9599 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9600 if test "x$LINE" != x ; then
9601 eval "DEFAULT_$LINE"
9602 else
9603 no_cache=1
9604 fi
9605
9606 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9607
9608fi;
9609
9610 eval "$ac_cv_use_wizarddlg"
9611 if test "$no_cache" != 1; then
9612 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9613 fi
9614
9615 if test "$wxUSE_WIZARDDLG" = yes; then
9616 echo "$as_me:$LINENO: result: yes" >&5
9617echo "${ECHO_T}yes" >&6
9618 else
9619 echo "$as_me:$LINENO: result: no" >&5
9620echo "${ECHO_T}no" >&6
9621 fi
9622
9623
9624
9625
9626 enablestring=
9627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9628echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9629 no_cache=0
9630 # Check whether --enable-menus or --disable-menus was given.
9631if test "${enable_menus+set}" = set; then
9632 enableval="$enable_menus"
9633
9634 if test "$enableval" = yes; then
9635 ac_cv_use_menus='wxUSE_MENUS=yes'
9636 else
9637 ac_cv_use_menus='wxUSE_MENUS=no'
9638 fi
9639
9640else
9641
9642 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9643 if test "x$LINE" != x ; then
9644 eval "DEFAULT_$LINE"
9645 else
9646 no_cache=1
9647 fi
9648
9649 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9650
9651fi;
9652
9653 eval "$ac_cv_use_menus"
9654 if test "$no_cache" != 1; then
9655 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9656 fi
9657
9658 if test "$wxUSE_MENUS" = yes; then
9659 echo "$as_me:$LINENO: result: yes" >&5
9660echo "${ECHO_T}yes" >&6
9661 else
9662 echo "$as_me:$LINENO: result: no" >&5
9663echo "${ECHO_T}no" >&6
9664 fi
9665
9666
9667 enablestring=
9668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9669echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9670 no_cache=0
9671 # Check whether --enable-miniframe or --disable-miniframe was given.
9672if test "${enable_miniframe+set}" = set; then
9673 enableval="$enable_miniframe"
9674
9675 if test "$enableval" = yes; then
9676 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9677 else
9678 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9679 fi
9680
9681else
9682
9683 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9684 if test "x$LINE" != x ; then
9685 eval "DEFAULT_$LINE"
9686 else
9687 no_cache=1
9688 fi
9689
9690 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9691
9692fi;
9693
9694 eval "$ac_cv_use_miniframe"
9695 if test "$no_cache" != 1; then
9696 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9697 fi
9698
9699 if test "$wxUSE_MINIFRAME" = yes; then
9700 echo "$as_me:$LINENO: result: yes" >&5
9701echo "${ECHO_T}yes" >&6
9702 else
9703 echo "$as_me:$LINENO: result: no" >&5
9704echo "${ECHO_T}no" >&6
9705 fi
9706
9707
9708 enablestring=
9709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9710echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9711 no_cache=0
9712 # Check whether --enable-tooltips or --disable-tooltips was given.
9713if test "${enable_tooltips+set}" = set; then
9714 enableval="$enable_tooltips"
9715
9716 if test "$enableval" = yes; then
9717 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9718 else
9719 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9720 fi
9721
9722else
9723
9724 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9725 if test "x$LINE" != x ; then
9726 eval "DEFAULT_$LINE"
9727 else
9728 no_cache=1
9729 fi
9730
9731 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9732
9733fi;
9734
9735 eval "$ac_cv_use_tooltips"
9736 if test "$no_cache" != 1; then
9737 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9738 fi
9739
9740 if test "$wxUSE_TOOLTIPS" = yes; then
9741 echo "$as_me:$LINENO: result: yes" >&5
9742echo "${ECHO_T}yes" >&6
9743 else
9744 echo "$as_me:$LINENO: result: no" >&5
9745echo "${ECHO_T}no" >&6
9746 fi
9747
9748
9749 enablestring=
9750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9751echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9752 no_cache=0
9753 # Check whether --enable-splines or --disable-splines was given.
9754if test "${enable_splines+set}" = set; then
9755 enableval="$enable_splines"
9756
9757 if test "$enableval" = yes; then
9758 ac_cv_use_splines='wxUSE_SPLINES=yes'
9759 else
9760 ac_cv_use_splines='wxUSE_SPLINES=no'
9761 fi
9762
9763else
9764
9765 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9766 if test "x$LINE" != x ; then
9767 eval "DEFAULT_$LINE"
9768 else
9769 no_cache=1
9770 fi
9771
9772 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9773
9774fi;
9775
9776 eval "$ac_cv_use_splines"
9777 if test "$no_cache" != 1; then
9778 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9779 fi
9780
9781 if test "$wxUSE_SPLINES" = yes; then
9782 echo "$as_me:$LINENO: result: yes" >&5
9783echo "${ECHO_T}yes" >&6
9784 else
9785 echo "$as_me:$LINENO: result: no" >&5
9786echo "${ECHO_T}no" >&6
9787 fi
9788
9789
fbe2ca43
SN
9790 enablestring=
9791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9792echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9793 no_cache=0
9794 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9795if test "${enable_mousewheel+set}" = set; then
9796 enableval="$enable_mousewheel"
9797
9798 if test "$enableval" = yes; then
9799 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9800 else
9801 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9802 fi
9803
9804else
9805
9806 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9807 if test "x$LINE" != x ; then
9808 eval "DEFAULT_$LINE"
9809 else
9810 no_cache=1
9811 fi
9812
9813 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9814
9815fi;
9816
9817 eval "$ac_cv_use_mousewheel"
9818 if test "$no_cache" != 1; then
9819 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9820 fi
9821
9822 if test "$wxUSE_MOUSEWHEEL" = yes; then
9823 echo "$as_me:$LINENO: result: yes" >&5
9824echo "${ECHO_T}yes" >&6
9825 else
9826 echo "$as_me:$LINENO: result: no" >&5
9827echo "${ECHO_T}no" >&6
9828 fi
9829
9830
a848cd7e
SC
9831 enablestring=
9832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9833echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9834 no_cache=0
9835 # Check whether --enable-validators or --disable-validators was given.
9836if test "${enable_validators+set}" = set; then
9837 enableval="$enable_validators"
9838
9839 if test "$enableval" = yes; then
9840 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9841 else
9842 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9843 fi
9844
9845else
9846
9847 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9848 if test "x$LINE" != x ; then
9849 eval "DEFAULT_$LINE"
9850 else
9851 no_cache=1
9852 fi
9853
9854 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9855
9856fi;
9857
9858 eval "$ac_cv_use_validators"
9859 if test "$no_cache" != 1; then
9860 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9861 fi
9862
9863 if test "$wxUSE_VALIDATORS" = yes; then
9864 echo "$as_me:$LINENO: result: yes" >&5
9865echo "${ECHO_T}yes" >&6
9866 else
9867 echo "$as_me:$LINENO: result: no" >&5
9868echo "${ECHO_T}no" >&6
9869 fi
9870
9871
9872 enablestring=
9873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9874echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9875 no_cache=0
9876 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9877if test "${enable_busyinfo+set}" = set; then
9878 enableval="$enable_busyinfo"
9879
9880 if test "$enableval" = yes; then
9881 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9882 else
9883 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9884 fi
9885
9886else
9887
9888 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9889 if test "x$LINE" != x ; then
9890 eval "DEFAULT_$LINE"
9891 else
9892 no_cache=1
9893 fi
9894
9895 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9896
9897fi;
9898
9899 eval "$ac_cv_use_busyinfo"
9900 if test "$no_cache" != 1; then
9901 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9902 fi
9903
9904 if test "$wxUSE_BUSYINFO" = yes; then
9905 echo "$as_me:$LINENO: result: yes" >&5
9906echo "${ECHO_T}yes" >&6
9907 else
9908 echo "$as_me:$LINENO: result: no" >&5
9909echo "${ECHO_T}no" >&6
9910 fi
9911
9912
9913 enablestring=
9914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9915echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9916 no_cache=0
9917 # Check whether --enable-joystick or --disable-joystick was given.
9918if test "${enable_joystick+set}" = set; then
9919 enableval="$enable_joystick"
9920
9921 if test "$enableval" = yes; then
9922 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9923 else
9924 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9925 fi
9926
9927else
9928
9929 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9930 if test "x$LINE" != x ; then
9931 eval "DEFAULT_$LINE"
9932 else
9933 no_cache=1
9934 fi
9935
9936 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9937
9938fi;
9939
9940 eval "$ac_cv_use_joystick"
9941 if test "$no_cache" != 1; then
9942 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9943 fi
9944
9945 if test "$wxUSE_JOYSTICK" = yes; then
9946 echo "$as_me:$LINENO: result: yes" >&5
9947echo "${ECHO_T}yes" >&6
9948 else
9949 echo "$as_me:$LINENO: result: no" >&5
9950echo "${ECHO_T}no" >&6
9951 fi
9952
9953
9954 enablestring=
9955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9956echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9957 no_cache=0
9958 # Check whether --enable-metafile or --disable-metafile was given.
9959if test "${enable_metafile+set}" = set; then
9960 enableval="$enable_metafile"
9961
9962 if test "$enableval" = yes; then
9963 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9964 else
9965 ac_cv_use_metafile='wxUSE_METAFILE=no'
9966 fi
9967
9968else
9969
9970 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9971 if test "x$LINE" != x ; then
9972 eval "DEFAULT_$LINE"
9973 else
9974 no_cache=1
9975 fi
9976
9977 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9978
9979fi;
9980
9981 eval "$ac_cv_use_metafile"
9982 if test "$no_cache" != 1; then
9983 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9984 fi
9985
9986 if test "$wxUSE_METAFILE" = yes; then
9987 echo "$as_me:$LINENO: result: yes" >&5
9988echo "${ECHO_T}yes" >&6
9989 else
9990 echo "$as_me:$LINENO: result: no" >&5
9991echo "${ECHO_T}no" >&6
9992 fi
9993
9994
9995 enablestring=
9996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9997echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9998 no_cache=0
9999 # Check whether --enable-dragimage or --disable-dragimage was given.
10000if test "${enable_dragimage+set}" = set; then
10001 enableval="$enable_dragimage"
10002
10003 if test "$enableval" = yes; then
10004 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10005 else
10006 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10007 fi
10008
10009else
10010
10011 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10012 if test "x$LINE" != x ; then
10013 eval "DEFAULT_$LINE"
10014 else
10015 no_cache=1
10016 fi
10017
10018 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10019
10020fi;
10021
10022 eval "$ac_cv_use_dragimage"
10023 if test "$no_cache" != 1; then
10024 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10025 fi
10026
10027 if test "$wxUSE_DRAGIMAGE" = yes; then
10028 echo "$as_me:$LINENO: result: yes" >&5
10029echo "${ECHO_T}yes" >&6
10030 else
10031 echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
10033 fi
10034
10035
10036 enablestring=
10037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10038echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10039 no_cache=0
10040 # Check whether --enable-accessibility or --disable-accessibility was given.
10041if test "${enable_accessibility+set}" = set; then
10042 enableval="$enable_accessibility"
10043
10044 if test "$enableval" = yes; then
10045 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10046 else
10047 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10048 fi
10049
10050else
10051
10052 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10053 if test "x$LINE" != x ; then
10054 eval "DEFAULT_$LINE"
10055 else
10056 no_cache=1
10057 fi
10058
10059 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10060
10061fi;
10062
10063 eval "$ac_cv_use_accessibility"
10064 if test "$no_cache" != 1; then
10065 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10066 fi
10067
10068 if test "$wxUSE_ACCESSIBILITY" = yes; then
10069 echo "$as_me:$LINENO: result: yes" >&5
10070echo "${ECHO_T}yes" >&6
10071 else
10072 echo "$as_me:$LINENO: result: no" >&5
10073echo "${ECHO_T}no" >&6
10074 fi
10075
10076
10077
10078
10079 enablestring=
10080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10081echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10082 no_cache=0
10083 # Check whether --enable-palette or --disable-palette was given.
10084if test "${enable_palette+set}" = set; then
10085 enableval="$enable_palette"
10086
10087 if test "$enableval" = yes; then
10088 ac_cv_use_palette='wxUSE_PALETTE=yes'
10089 else
10090 ac_cv_use_palette='wxUSE_PALETTE=no'
10091 fi
10092
10093else
10094
10095 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10096 if test "x$LINE" != x ; then
10097 eval "DEFAULT_$LINE"
10098 else
10099 no_cache=1
10100 fi
10101
10102 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10103
10104fi;
10105
10106 eval "$ac_cv_use_palette"
10107 if test "$no_cache" != 1; then
10108 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10109 fi
10110
10111 if test "$wxUSE_PALETTE" = yes; then
10112 echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6
10114 else
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
10117 fi
10118
10119
10120 enablestring=
10121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10122echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10123 no_cache=0
10124 # Check whether --enable-image or --disable-image was given.
10125if test "${enable_image+set}" = set; then
10126 enableval="$enable_image"
10127
10128 if test "$enableval" = yes; then
10129 ac_cv_use_image='wxUSE_IMAGE=yes'
10130 else
10131 ac_cv_use_image='wxUSE_IMAGE=no'
10132 fi
10133
10134else
10135
10136 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10137 if test "x$LINE" != x ; then
10138 eval "DEFAULT_$LINE"
10139 else
10140 no_cache=1
10141 fi
10142
10143 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10144
10145fi;
10146
10147 eval "$ac_cv_use_image"
10148 if test "$no_cache" != 1; then
10149 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10150 fi
10151
10152 if test "$wxUSE_IMAGE" = yes; then
10153 echo "$as_me:$LINENO: result: yes" >&5
10154echo "${ECHO_T}yes" >&6
10155 else
10156 echo "$as_me:$LINENO: result: no" >&5
10157echo "${ECHO_T}no" >&6
10158 fi
10159
10160
10161 enablestring=
10162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10163echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10164 no_cache=0
10165 # Check whether --enable-gif or --disable-gif was given.
10166if test "${enable_gif+set}" = set; then
10167 enableval="$enable_gif"
10168
10169 if test "$enableval" = yes; then
10170 ac_cv_use_gif='wxUSE_GIF=yes'
10171 else
10172 ac_cv_use_gif='wxUSE_GIF=no'
10173 fi
10174
10175else
10176
10177 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10178 if test "x$LINE" != x ; then
10179 eval "DEFAULT_$LINE"
10180 else
10181 no_cache=1
10182 fi
10183
10184 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10185
10186fi;
10187
10188 eval "$ac_cv_use_gif"
10189 if test "$no_cache" != 1; then
10190 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10191 fi
10192
10193 if test "$wxUSE_GIF" = yes; then
10194 echo "$as_me:$LINENO: result: yes" >&5
10195echo "${ECHO_T}yes" >&6
10196 else
10197 echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6
10199 fi
10200
10201
10202 enablestring=
10203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10204echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10205 no_cache=0
10206 # Check whether --enable-pcx or --disable-pcx was given.
10207if test "${enable_pcx+set}" = set; then
10208 enableval="$enable_pcx"
10209
10210 if test "$enableval" = yes; then
10211 ac_cv_use_pcx='wxUSE_PCX=yes'
10212 else
10213 ac_cv_use_pcx='wxUSE_PCX=no'
10214 fi
10215
10216else
10217
10218 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10219 if test "x$LINE" != x ; then
10220 eval "DEFAULT_$LINE"
10221 else
10222 no_cache=1
10223 fi
10224
10225 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10226
10227fi;
10228
10229 eval "$ac_cv_use_pcx"
10230 if test "$no_cache" != 1; then
10231 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10232 fi
10233
10234 if test "$wxUSE_PCX" = yes; then
10235 echo "$as_me:$LINENO: result: yes" >&5
10236echo "${ECHO_T}yes" >&6
10237 else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240 fi
10241
10242
10243 enablestring=
10244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10245echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10246 no_cache=0
10247 # Check whether --enable-iff or --disable-iff was given.
10248if test "${enable_iff+set}" = set; then
10249 enableval="$enable_iff"
10250
10251 if test "$enableval" = yes; then
10252 ac_cv_use_iff='wxUSE_IFF=yes'
10253 else
10254 ac_cv_use_iff='wxUSE_IFF=no'
10255 fi
10256
10257else
10258
10259 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10260 if test "x$LINE" != x ; then
10261 eval "DEFAULT_$LINE"
10262 else
10263 no_cache=1
10264 fi
10265
10266 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10267
10268fi;
10269
10270 eval "$ac_cv_use_iff"
10271 if test "$no_cache" != 1; then
10272 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10273 fi
10274
10275 if test "$wxUSE_IFF" = yes; then
10276 echo "$as_me:$LINENO: result: yes" >&5
10277echo "${ECHO_T}yes" >&6
10278 else
10279 echo "$as_me:$LINENO: result: no" >&5
10280echo "${ECHO_T}no" >&6
10281 fi
10282
10283
10284 enablestring=
10285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10286echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10287 no_cache=0
10288 # Check whether --enable-pnm or --disable-pnm was given.
10289if test "${enable_pnm+set}" = set; then
10290 enableval="$enable_pnm"
10291
10292 if test "$enableval" = yes; then
10293 ac_cv_use_pnm='wxUSE_PNM=yes'
10294 else
10295 ac_cv_use_pnm='wxUSE_PNM=no'
10296 fi
10297
10298else
10299
10300 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10301 if test "x$LINE" != x ; then
10302 eval "DEFAULT_$LINE"
10303 else
10304 no_cache=1
10305 fi
10306
10307 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10308
10309fi;
10310
10311 eval "$ac_cv_use_pnm"
10312 if test "$no_cache" != 1; then
10313 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10314 fi
10315
10316 if test "$wxUSE_PNM" = yes; then
10317 echo "$as_me:$LINENO: result: yes" >&5
10318echo "${ECHO_T}yes" >&6
10319 else
10320 echo "$as_me:$LINENO: result: no" >&5
10321echo "${ECHO_T}no" >&6
10322 fi
10323
10324
10325 enablestring=
10326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10327echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10328 no_cache=0
10329 # Check whether --enable-xpm or --disable-xpm was given.
10330if test "${enable_xpm+set}" = set; then
10331 enableval="$enable_xpm"
10332
10333 if test "$enableval" = yes; then
10334 ac_cv_use_xpm='wxUSE_XPM=yes'
10335 else
10336 ac_cv_use_xpm='wxUSE_XPM=no'
10337 fi
10338
10339else
10340
10341 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10342 if test "x$LINE" != x ; then
10343 eval "DEFAULT_$LINE"
10344 else
10345 no_cache=1
10346 fi
10347
10348 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10349
10350fi;
10351
10352 eval "$ac_cv_use_xpm"
10353 if test "$no_cache" != 1; then
10354 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10355 fi
10356
10357 if test "$wxUSE_XPM" = yes; then
10358 echo "$as_me:$LINENO: result: yes" >&5
10359echo "${ECHO_T}yes" >&6
10360 else
10361 echo "$as_me:$LINENO: result: no" >&5
10362echo "${ECHO_T}no" >&6
10363 fi
10364
10365
10366 enablestring=
10367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10368echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10369 no_cache=0
10370 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10371if test "${enable_ico_cur+set}" = set; then
10372 enableval="$enable_ico_cur"
10373
10374 if test "$enableval" = yes; then
10375 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10376 else
10377 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10378 fi
10379
10380else
10381
10382 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10383 if test "x$LINE" != x ; then
10384 eval "DEFAULT_$LINE"
10385 else
10386 no_cache=1
10387 fi
10388
10389 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10390
10391fi;
10392
10393 eval "$ac_cv_use_ico_cur"
10394 if test "$no_cache" != 1; then
10395 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10396 fi
10397
10398 if test "$wxUSE_ICO_CUR" = yes; then
10399 echo "$as_me:$LINENO: result: yes" >&5
10400echo "${ECHO_T}yes" >&6
10401 else
10402 echo "$as_me:$LINENO: result: no" >&5
10403echo "${ECHO_T}no" >&6
10404 fi
10405
10406
10407fi
10408
10409
10410
ceec2216
RL
10411# Check whether --with-flavour or --without-flavour was given.
10412if test "${with_flavour+set}" = set; then
10413 withval="$with_flavour"
10414 WX_FLAVOUR="$withval"
10415fi;
10416
10417
10418
a848cd7e
SC
10419 enablestring=
10420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10421echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10422 no_cache=0
10423 # Check whether --enable-official_build or --disable-official_build was given.
10424if test "${enable_official_build+set}" = set; then
10425 enableval="$enable_official_build"
10426
10427 if test "$enableval" = yes; then
10428 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10429 else
10430 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10431 fi
10432
10433else
10434
10435 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10436 if test "x$LINE" != x ; then
10437 eval "DEFAULT_$LINE"
10438 else
10439 no_cache=1
10440 fi
10441
10442 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10443
10444fi;
10445
10446 eval "$ac_cv_use_official_build"
10447 if test "$no_cache" != 1; then
10448 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10449 fi
10450
10451 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10452 echo "$as_me:$LINENO: result: yes" >&5
10453echo "${ECHO_T}yes" >&6
10454 else
10455 echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
10457 fi
10458
10459# Check whether --enable-vendor or --disable-vendor was given.
10460if test "${enable_vendor+set}" = set; then
10461 enableval="$enable_vendor"
10462 VENDOR="$enableval"
10463fi;
10464if test "x$VENDOR" = "x"; then
10465 VENDOR="custom"
10466fi
10467
a848cd7e
SC
10468
10469
10470
10471 echo "saving argument cache $wx_arg_cache_file"
10472 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10473
10474
10475
10476echo "$as_me:$LINENO: checking for toolkit" >&5
10477echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10478
10479# In Wine, we need to default to MSW, not GTK or MOTIF
10480if test "$wxUSE_WINE" = "yes"; then
10481 DEFAULT_DEFAULT_wxUSE_GTK=0
10482 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10483 DEFAULT_DEFAULT_wxUSE_MSW=1
10484 wxUSE_SHARED=no
10485fi
10486
10487if test "$wxUSE_GUI" = "yes"; then
10488
10489 if test "$USE_BEOS" = 1; then
10490 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10491echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10492 { (exit 1); exit 1; }; }
10493 fi
10494
10495 if test "$TOOLKIT_GIVEN" = 1; then
10496 for toolkit in `echo $ALL_TOOLKITS`; do
10497 var=wxUSE_$toolkit
10498 eval "value=\$${var}"
10499 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10500 done
10501 else
10502 for toolkit in `echo $ALL_TOOLKITS`; do
10503 if test "$has_toolkit_in_cache" != 1; then
10504 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10505 else
10506 var=DEFAULT_wxUSE_$toolkit
10507 fi
10508 eval "wxUSE_$toolkit=\$${var}"
10509 done
10510 fi
10511
10512 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10513 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10514 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10515
10516 case "${host}" in
10517 *-pc-os2_emx | *-pc-os2-emx )
10518 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10519 esac
10520
10521 case "$NUM_TOOLKITS" in
10522 1)
10523 ;;
10524 0)
10525 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10526echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10527 { (exit 1); exit 1; }; }
10528 ;;
10529 *)
10530 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10531echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10532 { (exit 1); exit 1; }; }
10533 esac
10534
10535 for toolkit in `echo $ALL_TOOLKITS`; do
10536 var=wxUSE_$toolkit
10537 eval "value=\$${var}"
10538 if test "x$value" != x; then
10539 cache_var=CACHE_$toolkit
10540 eval "cache=\$${cache_var}"
10541 if test "$cache" = 1; then
10542 echo "$var=$value" >> ${wx_arg_cache_file}
10543 fi
10544 if test "$value" = 1; then
10545 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10546 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10547echo "${ECHO_T}$toolkit_echo" >&6
10548 fi
10549 fi
10550 done
10551else
10552 if test "x$host_alias" != "x"; then
10553 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10554echo "${ECHO_T}base ($host_alias hosted) only" >&6
10555 else
10556 echo "$as_me:$LINENO: result: base only" >&5
10557echo "${ECHO_T}base only" >&6
10558 fi
10559fi
10560
10561wants_win32=0
10562doesnt_want_win32=0
10563case "${host}" in
10564 *-*-cygwin*)
10565 if test "$wxUSE_MSW" = 1 ; then
10566 wants_win32=1
10567 else
10568 doesnt_want_win32=1
10569 fi
10570 ;;
10571 *-*-mingw*)
10572 wants_win32=1
10573 ;;
10574esac
10575
10576if test "$wxUSE_WINE" = "yes"; then
10577 wants_win32=1
10578 CC=winegcc
10579 CXX=wineg++
10580 RESCOMP=wrc
10581 LDFLAGS_GUI="-mwindows"
10582fi
10583
10584if test "$wants_win32" = 1 ; then
10585 USE_UNIX=0
10586 USE_WIN32=1
10587 cat >>confdefs.h <<\_ACEOF
10588#define __WIN32__ 1
10589_ACEOF
10590
10591 cat >>confdefs.h <<\_ACEOF
10592#define __WIN95__ 1
10593_ACEOF
10594
10595 cat >>confdefs.h <<\_ACEOF
10596#define __WINDOWS__ 1
10597_ACEOF
10598
10599 cat >>confdefs.h <<\_ACEOF
10600#define __GNUWIN32__ 1
10601_ACEOF
10602
10603 cat >>confdefs.h <<\_ACEOF
10604#define STRICT 1
10605_ACEOF
10606
10607 cat >>confdefs.h <<\_ACEOF
10608#define WINVER 0x0400
10609_ACEOF
10610
10611fi
10612if test "$doesnt_want_win32" = 1 ; then
10613 USE_UNIX=1
10614 USE_WIN32=0
10615fi
10616
10617if test "$USE_UNIX" = 1 ; then
10618 wxUSE_UNIX=yes
10619 cat >>confdefs.h <<\_ACEOF
10620#define __UNIX__ 1
10621_ACEOF
10622
10623fi
10624
10625
10626cat >confcache <<\_ACEOF
10627# This file is a shell script that caches the results of configure
10628# tests run on this system so they can be shared between configure
10629# scripts and configure runs, see configure's option --config-cache.
10630# It is not useful on other systems. If it contains results you don't
10631# want to keep, you may remove or edit it.
10632#
10633# config.status only pays attention to the cache file if you give it
10634# the --recheck option to rerun configure.
10635#
10636# `ac_cv_env_foo' variables (set or unset) will be overridden when
10637# loading this file, other *unset* `ac_cv_foo' will be assigned the
10638# following values.
10639
10640_ACEOF
10641
10642# The following way of writing the cache mishandles newlines in values,
10643# but we know of no workaround that is simple, portable, and efficient.
10644# So, don't put newlines in cache variables' values.
10645# Ultrix sh set writes to stderr and can't be redirected directly,
10646# and sets the high bit in the cache file unless we assign to the vars.
10647{
10648 (set) 2>&1 |
10649 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10650 *ac_space=\ *)
10651 # `set' does not quote correctly, so add quotes (double-quote
10652 # substitution turns \\\\ into \\, and sed turns \\ into \).
10653 sed -n \
ac1cb8d3
VS
10654 "s/'/'\\\\''/g;
10655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10656 ;;
10657 *)
10658 # `set' quotes correctly as required by POSIX, so do not add quotes.
10659 sed -n \
ac1cb8d3 10660 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10661 ;;
10662 esac;
10663} |
10664 sed '
10665 t clear
10666 : clear
10667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10668 t end
10669 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10670 : end' >>confcache
10671if diff $cache_file confcache >/dev/null 2>&1; then :; else
10672 if test -w $cache_file; then
10673 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10674 cat confcache >$cache_file
10675 else
10676 echo "not updating unwritable cache $cache_file"
10677 fi
10678fi
10679rm -f confcache
10680
10681if test "$build" != "$host" ; then
1e9e8aba 10682 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10683 CC=$host_alias-gcc
10684 CXX=$host_alias-c++
10685 AR=$host_alias-ar
10686 RANLIB=$host_alias-ranlib
10687 DLLTOOL=$host_alias-dlltool
10688 RESCOMP=$host_alias-windres
a848cd7e 10689 STRIP=$host_alias-strip
1e9e8aba
DE
10690 elif test "x$CC" '!=' "x"; then
10691 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10692 else
10693 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10694echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10695 { (exit 1); exit 1; }; }
10696 fi
10697fi
10698
10699CFLAGS=${CFLAGS:=}
6dcfc289
DE
10700
10701
10702 ac_ext=c
a848cd7e
SC
10703ac_cpp='$CPP $CPPFLAGS'
10704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707if test -n "$ac_tool_prefix"; then
10708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10709set dummy ${ac_tool_prefix}gcc; ac_word=$2
10710echo "$as_me:$LINENO: checking for $ac_word" >&5
10711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10712if test "${ac_cv_prog_CC+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715 if test -n "$CC"; then
10716 ac_cv_prog_CC="$CC" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729done
10730done
10731
10732fi
10733fi
10734CC=$ac_cv_prog_CC
10735if test -n "$CC"; then
10736 echo "$as_me:$LINENO: result: $CC" >&5
10737echo "${ECHO_T}$CC" >&6
10738else
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741fi
10742
10743fi
10744if test -z "$ac_cv_prog_CC"; then
10745 ac_ct_CC=$CC
10746 # Extract the first word of "gcc", so it can be a program name with args.
10747set dummy gcc; ac_word=$2
10748echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 if test -n "$ac_ct_CC"; then
10754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_ac_ct_CC="gcc"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770fi
10771fi
10772ac_ct_CC=$ac_cv_prog_ac_ct_CC
10773if test -n "$ac_ct_CC"; then
10774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10775echo "${ECHO_T}$ac_ct_CC" >&6
10776else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781 CC=$ac_ct_CC
10782else
10783 CC="$ac_cv_prog_CC"
10784fi
10785
10786if test -z "$CC"; then
10787 if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10789set dummy ${ac_tool_prefix}cc; ac_word=$2
10790echo "$as_me:$LINENO: checking for $ac_word" >&5
10791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792if test "${ac_cv_prog_CC+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 if test -n "$CC"; then
10796 ac_cv_prog_CC="$CC" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_CC="${ac_tool_prefix}cc"
10806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810done
10811
10812fi
10813fi
10814CC=$ac_cv_prog_CC
10815if test -n "$CC"; then
10816 echo "$as_me:$LINENO: result: $CC" >&5
10817echo "${ECHO_T}$CC" >&6
10818else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821fi
10822
10823fi
10824if test -z "$ac_cv_prog_CC"; then
10825 ac_ct_CC=$CC
10826 # Extract the first word of "cc", so it can be a program name with args.
10827set dummy cc; ac_word=$2
10828echo "$as_me:$LINENO: checking for $ac_word" >&5
10829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833 if test -n "$ac_ct_CC"; then
10834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_ac_ct_CC="cc"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847done
10848done
10849
10850fi
10851fi
10852ac_ct_CC=$ac_cv_prog_ac_ct_CC
10853if test -n "$ac_ct_CC"; then
10854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10855echo "${ECHO_T}$ac_ct_CC" >&6
10856else
10857 echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
10859fi
10860
10861 CC=$ac_ct_CC
10862else
10863 CC="$ac_cv_prog_CC"
10864fi
10865
10866fi
10867if test -z "$CC"; then
10868 # Extract the first word of "cc", so it can be a program name with args.
10869set dummy cc; ac_word=$2
10870echo "$as_me:$LINENO: checking for $ac_word" >&5
10871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10872if test "${ac_cv_prog_CC+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875 if test -n "$CC"; then
10876 ac_cv_prog_CC="$CC" # Let the user override the test.
10877else
10878 ac_prog_rejected=no
10879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880for as_dir in $PATH
10881do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10887 ac_prog_rejected=yes
10888 continue
10889 fi
10890 ac_cv_prog_CC="cc"
10891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895done
10896
10897if test $ac_prog_rejected = yes; then
10898 # We found a bogon in the path, so make sure we never use it.
10899 set dummy $ac_cv_prog_CC
10900 shift
10901 if test $# != 0; then
10902 # We chose a different compiler from the bogus one.
10903 # However, it has the same basename, so the bogon will be chosen
10904 # first if we set CC to just the basename; use the full file name.
10905 shift
10906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10907 fi
10908fi
10909fi
10910fi
10911CC=$ac_cv_prog_CC
10912if test -n "$CC"; then
10913 echo "$as_me:$LINENO: result: $CC" >&5
10914echo "${ECHO_T}$CC" >&6
10915else
10916 echo "$as_me:$LINENO: result: no" >&5
10917echo "${ECHO_T}no" >&6
10918fi
10919
10920fi
10921if test -z "$CC"; then
10922 if test -n "$ac_tool_prefix"; then
10923 for ac_prog in cl
10924 do
10925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10927echo "$as_me:$LINENO: checking for $ac_word" >&5
10928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10929if test "${ac_cv_prog_CC+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932 if test -n "$CC"; then
10933 ac_cv_prog_CC="$CC" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946done
10947done
10948
10949fi
10950fi
10951CC=$ac_cv_prog_CC
10952if test -n "$CC"; then
10953 echo "$as_me:$LINENO: result: $CC" >&5
10954echo "${ECHO_T}$CC" >&6
10955else
10956 echo "$as_me:$LINENO: result: no" >&5
10957echo "${ECHO_T}no" >&6
10958fi
10959
10960 test -n "$CC" && break
10961 done
10962fi
10963if test -z "$CC"; then
10964 ac_ct_CC=$CC
10965 for ac_prog in cl
10966do
10967 # Extract the first word of "$ac_prog", so it can be a program name with args.
10968set dummy $ac_prog; ac_word=$2
10969echo "$as_me:$LINENO: checking for $ac_word" >&5
10970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10971if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973else
10974 if test -n "$ac_ct_CC"; then
10975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_prog_ac_ct_CC="$ac_prog"
10985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988done
10989done
10990
10991fi
10992fi
10993ac_ct_CC=$ac_cv_prog_ac_ct_CC
10994if test -n "$ac_ct_CC"; then
10995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10996echo "${ECHO_T}$ac_ct_CC" >&6
10997else
10998 echo "$as_me:$LINENO: result: no" >&5
10999echo "${ECHO_T}no" >&6
11000fi
11001
11002 test -n "$ac_ct_CC" && break
11003done
11004
11005 CC=$ac_ct_CC
11006fi
11007
11008fi
11009
11010
11011test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11012See \`config.log' for more details." >&5
11013echo "$as_me: error: no acceptable C compiler found in \$PATH
11014See \`config.log' for more details." >&2;}
11015 { (exit 1); exit 1; }; }
11016
11017# Provide some information about the compiler.
11018echo "$as_me:$LINENO:" \
11019 "checking for C compiler version" >&5
11020ac_compiler=`set X $ac_compile; echo $2`
11021{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11022 (eval $ac_compiler --version </dev/null >&5) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }
11026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11027 (eval $ac_compiler -v </dev/null >&5) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }
11031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11032 (eval $ac_compiler -V </dev/null >&5) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }
11036
11037cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
11043
11044int
11045main ()
11046{
11047
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052ac_clean_files_save=$ac_clean_files
11053ac_clean_files="$ac_clean_files a.out a.exe b.out"
11054# Try to create an executable without -o first, disregard a.out.
11055# It will help us diagnose broken compilers, and finding out an intuition
11056# of exeext.
ac1cb8d3
VS
11057echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11058echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11059ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11060if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11061 (eval $ac_link_default) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; then
11065 # Find the output, starting from the most likely. This scheme is
11066# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11067# resort.
11068
11069# Be careful to initialize this variable, since it used to be cached.
11070# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11071ac_cv_exeext=
11072# b.out is created by i960 compilers.
11073for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11074do
11075 test -f "$ac_file" || continue
11076 case $ac_file in
11077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11078 ;;
a848cd7e 11079 conftest.$ac_ext )
ac1cb8d3
VS
11080 # This is the source file.
11081 ;;
a848cd7e 11082 [ab].out )
ac1cb8d3
VS
11083 # We found the default executable, but exeext='' is most
11084 # certainly right.
11085 break;;
a848cd7e 11086 *.* )
ac1cb8d3
VS
11087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11088 # FIXME: I believe we export ac_cv_exeext for Libtool,
11089 # but it would be cool to find out if it's true. Does anybody
11090 # maintain Libtool? --akim.
11091 export ac_cv_exeext
11092 break;;
a848cd7e 11093 * )
ac1cb8d3 11094 break;;
a848cd7e
SC
11095 esac
11096done
11097else
11098 echo "$as_me: failed program was:" >&5
11099sed 's/^/| /' conftest.$ac_ext >&5
11100
11101{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11102See \`config.log' for more details." >&5
11103echo "$as_me: error: C compiler cannot create executables
11104See \`config.log' for more details." >&2;}
11105 { (exit 77); exit 77; }; }
11106fi
11107
11108ac_exeext=$ac_cv_exeext
11109echo "$as_me:$LINENO: result: $ac_file" >&5
11110echo "${ECHO_T}$ac_file" >&6
11111
11112# Check the compiler produces executables we can run. If not, either
11113# the compiler is broken, or we cross compile.
11114echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11115echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11116# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11117# If not cross compiling, check that we can run a simple program.
11118if test "$cross_compiling" != yes; then
11119 if { ac_try='./$ac_file'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 cross_compiling=no
11126 else
11127 if test "$cross_compiling" = maybe; then
11128 cross_compiling=yes
11129 else
11130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11131If you meant to cross compile, use \`--host'.
11132See \`config.log' for more details." >&5
11133echo "$as_me: error: cannot run C compiled programs.
11134If you meant to cross compile, use \`--host'.
11135See \`config.log' for more details." >&2;}
11136 { (exit 1); exit 1; }; }
11137 fi
11138 fi
11139fi
11140echo "$as_me:$LINENO: result: yes" >&5
11141echo "${ECHO_T}yes" >&6
11142
11143rm -f a.out a.exe conftest$ac_cv_exeext b.out
11144ac_clean_files=$ac_clean_files_save
11145# Check the compiler produces executables we can run. If not, either
11146# the compiler is broken, or we cross compile.
11147echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11148echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11149echo "$as_me:$LINENO: result: $cross_compiling" >&5
11150echo "${ECHO_T}$cross_compiling" >&6
11151
11152echo "$as_me:$LINENO: checking for suffix of executables" >&5
11153echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; then
11159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11160# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11161# work properly (i.e., refer to `conftest.exe'), while it won't with
11162# `rm'.
11163for ac_file in conftest.exe conftest conftest.*; do
11164 test -f "$ac_file" || continue
11165 case $ac_file in
11166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11168 export ac_cv_exeext
11169 break;;
a848cd7e
SC
11170 * ) break;;
11171 esac
11172done
11173else
11174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11175See \`config.log' for more details." >&5
11176echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11177See \`config.log' for more details." >&2;}
11178 { (exit 1); exit 1; }; }
11179fi
11180
11181rm -f conftest$ac_cv_exeext
11182echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11183echo "${ECHO_T}$ac_cv_exeext" >&6
11184
11185rm -f conftest.$ac_ext
11186EXEEXT=$ac_cv_exeext
11187ac_exeext=$EXEEXT
11188echo "$as_me:$LINENO: checking for suffix of object files" >&5
11189echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11190if test "${ac_cv_objext+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192else
11193 cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199
11200int
11201main ()
11202{
11203
11204 ;
11205 return 0;
11206}
11207_ACEOF
11208rm -f conftest.o conftest.obj
11209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11210 (eval $ac_compile) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; then
11214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11215 case $ac_file in
11216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11218 break;;
11219 esac
11220done
11221else
11222 echo "$as_me: failed program was:" >&5
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
11225{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11226See \`config.log' for more details." >&5
11227echo "$as_me: error: cannot compute suffix of object files: cannot compile
11228See \`config.log' for more details." >&2;}
11229 { (exit 1); exit 1; }; }
11230fi
11231
11232rm -f conftest.$ac_cv_objext conftest.$ac_ext
11233fi
11234echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11235echo "${ECHO_T}$ac_cv_objext" >&6
11236OBJEXT=$ac_cv_objext
11237ac_objext=$OBJEXT
11238echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11239echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11240if test "${ac_cv_c_compiler_gnu+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243 cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249
11250int
11251main ()
11252{
11253#ifndef __GNUC__
11254 choke me
11255#endif
11256
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11263 (eval $ac_compile) 2>conftest.er1
a848cd7e 11264 ac_status=$?
ac1cb8d3
VS
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
a848cd7e
SC
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
9dd0f6c2 11270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_compiler_gnu=yes
11283else
11284 echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
11287ac_compiler_gnu=no
11288fi
ac1cb8d3 11289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11290ac_cv_c_compiler_gnu=$ac_compiler_gnu
11291
11292fi
11293echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11294echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11295GCC=`test $ac_compiler_gnu = yes && echo yes`
11296ac_test_CFLAGS=${CFLAGS+set}
11297ac_save_CFLAGS=$CFLAGS
52ada004 11298CFLAGS="-g"
a848cd7e
SC
11299echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11300echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11301if test "${ac_cv_prog_cc_g+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11303else
11304 cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310
11311int
11312main ()
11313{
11314
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
11320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11321 (eval $ac_compile) 2>conftest.er1
a848cd7e 11322 ac_status=$?
ac1cb8d3
VS
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
a848cd7e
SC
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
9dd0f6c2 11328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_prog_cc_g=yes
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345ac_cv_prog_cc_g=no
11346fi
ac1cb8d3 11347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11348fi
11349echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11350echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11351if test "$ac_test_CFLAGS" = set; then
11352 CFLAGS=$ac_save_CFLAGS
11353elif test $ac_cv_prog_cc_g = yes; then
11354 if test "$GCC" = yes; then
11355 CFLAGS="-g -O2"
11356 else
11357 CFLAGS="-g"
11358 fi
11359else
11360 if test "$GCC" = yes; then
11361 CFLAGS="-O2"
11362 else
11363 CFLAGS=
11364 fi
11365fi
11366echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11367echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11368if test "${ac_cv_prog_cc_stdc+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 ac_cv_prog_cc_stdc=no
11372ac_save_CC=$CC
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379#include <stdarg.h>
11380#include <stdio.h>
11381#include <sys/types.h>
11382#include <sys/stat.h>
11383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11384struct buf { int x; };
11385FILE * (*rcsopen) (struct buf *, struct stat *, int);
11386static char *e (p, i)
11387 char **p;
11388 int i;
11389{
11390 return p[i];
11391}
11392static char *f (char * (*g) (char **, int), char **p, ...)
11393{
11394 char *s;
11395 va_list v;
11396 va_start (v,p);
11397 s = g (p, va_arg (v,int));
11398 va_end (v);
11399 return s;
11400}
ac1cb8d3
VS
11401
11402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11403 function prototypes and stuff, but not '\xHH' hex character constants.
11404 These don't provoke an error unfortunately, instead are silently treated
11405 as 'x'. The following induces an error, until -std1 is added to get
11406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11407 array size at least. It's necessary to write '\x00'==0 to get something
11408 that's true only with -std1. */
11409int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11410
a848cd7e
SC
11411int test (int i, double x);
11412struct s1 {int (*f) (int a);};
11413struct s2 {int (*f) (double a);};
11414int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11415int argc;
11416char **argv;
11417int
11418main ()
11419{
11420return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11421 ;
11422 return 0;
11423}
11424_ACEOF
11425# Don't try gcc -ansi; that turns off useful extensions and
11426# breaks some systems' header files.
11427# AIX -qlanglvl=ansi
11428# Ultrix and OSF/1 -std1
11429# HP-UX 10.20 and later -Ae
11430# HP-UX older versions -Aa -D_HPUX_SOURCE
11431# SVR4 -Xc -D__EXTENSIONS__
11432for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11433do
11434 CC="$ac_save_CC $ac_arg"
11435 rm -f conftest.$ac_objext
11436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11437 (eval $ac_compile) 2>conftest.er1
a848cd7e 11438 ac_status=$?
ac1cb8d3
VS
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
a848cd7e
SC
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
9dd0f6c2 11444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_prog_cc_stdc=$ac_arg
11457break
11458else
11459 echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
11462fi
ac1cb8d3 11463rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11464done
11465rm -f conftest.$ac_ext conftest.$ac_objext
11466CC=$ac_save_CC
11467
11468fi
11469
11470case "x$ac_cv_prog_cc_stdc" in
11471 x|xno)
11472 echo "$as_me:$LINENO: result: none needed" >&5
11473echo "${ECHO_T}none needed" >&6 ;;
11474 *)
11475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11476echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11477 CC="$CC $ac_cv_prog_cc_stdc" ;;
11478esac
11479
11480# Some people use a C++ compiler to compile C. Since we use `exit',
11481# in C++ we need to declare it. In case someone uses the same compiler
11482# for both compiling C and C++ we need to have the C++ compiler decide
11483# the declaration of exit, since it's the most demanding environment.
11484cat >conftest.$ac_ext <<_ACEOF
11485#ifndef __cplusplus
11486 choke me
11487#endif
11488_ACEOF
11489rm -f conftest.$ac_objext
11490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11491 (eval $ac_compile) 2>conftest.er1
a848cd7e 11492 ac_status=$?
ac1cb8d3
VS
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
a848cd7e
SC
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
9dd0f6c2 11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 for ac_declaration in \
ac1cb8d3 11511 '' \
a848cd7e
SC
11512 'extern "C" void std::exit (int) throw (); using std::exit;' \
11513 'extern "C" void std::exit (int); using std::exit;' \
11514 'extern "C" void exit (int) throw ();' \
11515 'extern "C" void exit (int);' \
11516 'void exit (int);'
11517do
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
de59c161 11524$ac_declaration
ac1cb8d3 11525#include <stdlib.h>
a848cd7e
SC
11526int
11527main ()
11528{
11529exit (42);
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext
11535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11536 (eval $ac_compile) 2>conftest.er1
a848cd7e 11537 ac_status=$?
ac1cb8d3
VS
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
a848cd7e
SC
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
9dd0f6c2 11543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 :
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560continue
11561fi
ac1cb8d3 11562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11563 cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h. */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h. */
11569$ac_declaration
11570int
11571main ()
11572{
11573exit (42);
11574 ;
11575 return 0;
11576}
11577_ACEOF
11578rm -f conftest.$ac_objext
11579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11580 (eval $ac_compile) 2>conftest.er1
a848cd7e 11581 ac_status=$?
ac1cb8d3
VS
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
a848cd7e
SC
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
9dd0f6c2 11587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 break
11600else
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604fi
ac1cb8d3 11605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11606done
11607rm -f conftest*
11608if test -n "$ac_declaration"; then
11609 echo '#ifdef __cplusplus' >>confdefs.h
11610 echo $ac_declaration >>confdefs.h
11611 echo '#endif' >>confdefs.h
11612fi
11613
11614else
11615 echo "$as_me: failed program was:" >&5
11616sed 's/^/| /' conftest.$ac_ext >&5
11617
11618fi
ac1cb8d3 11619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11620ac_ext=c
11621ac_cpp='$CPP $CPPFLAGS'
11622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11624ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625
6dcfc289 11626 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11627echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11628if test "${wx_cv_c_exto+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.$ac_objext conftest.$ac_ext.o
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.* 2>/dev/null)`; do
11653 case $ac_file in
11654 conftest.$ac_ext.o)
11655 wx_cv_c_exto="-ext o"
11656 ;;
11657 *)
11658 ;;
11659 esac
11660done
11661else
11662 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11663See \`config.log' for more details." >&5
11664echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11665See \`config.log' for more details." >&2;}
11666 { (exit 1); exit 1; }; }
11667
11668fi
11669
11670rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11671
11672fi
11673echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11674echo "${ECHO_T}$wx_cv_c_exto" >&6
11675if test "x$wx_cv_c_exto" '!=' "x"; then
11676 if test "c" = "c"; then
11677 CFLAGS="$wx_cv_c_exto $CFLAGS"
11678 fi
11679 if test "c" = "cxx"; then
11680 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11681 fi
11682fi
11683
6dcfc289
DE
11684 if test "x$wx_cv_c_exto" '!=' "x"; then
11685 unset ac_cv_prog_cc_g
11686 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11687ac_save_CFLAGS=$CFLAGS
52ada004 11688CFLAGS="-g"
480ccd21
DE
11689echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11690echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11691if test "${ac_cv_prog_cc_g+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693else
11694 cat >conftest.$ac_ext <<_ACEOF
11695/* confdefs.h. */
11696_ACEOF
11697cat confdefs.h >>conftest.$ac_ext
11698cat >>conftest.$ac_ext <<_ACEOF
11699/* end confdefs.h. */
11700
11701int
11702main ()
11703{
11704
11705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext
11710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711 (eval $ac_compile) 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
9dd0f6c2 11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; } &&
11724 { ac_try='test -s conftest.$ac_objext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 ac_cv_prog_cc_g=yes
11731else
11732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735ac_cv_prog_cc_g=no
11736fi
11737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11738fi
11739echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11740echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11741if test "$ac_test_CFLAGS" = set; then
11742 CFLAGS=$ac_save_CFLAGS
11743elif test $ac_cv_prog_cc_g = yes; then
11744 if test "$GCC" = yes; then
11745 CFLAGS="-g -O2"
11746 else
11747 CFLAGS="-g"
11748 fi
11749else
11750 if test "$GCC" = yes; then
11751 CFLAGS="-O2"
11752 else
11753 CFLAGS=
11754 fi
11755fi
6dcfc289
DE
11756 fi
11757 ac_ext=c
95986553
DE
11758ac_cpp='$CPP $CPPFLAGS'
11759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761ac_compiler_gnu=$ac_cv_c_compiler_gnu
11762
11763echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11764echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11765if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
11768 cat >conftest.$ac_ext <<_ACEOF
11769/* confdefs.h. */
11770_ACEOF
11771cat confdefs.h >>conftest.$ac_ext
11772cat >>conftest.$ac_ext <<_ACEOF
11773/* end confdefs.h. */
11774
11775int
11776main ()
11777{
11778#ifndef __MWERKS__
11779 choke me
11780#endif
11781
11782 ;
11783 return 0;
11784}
11785_ACEOF
11786rm -f conftest.$ac_objext
11787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
9dd0f6c2 11795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 bakefile_compiler_mwerks=yes
11808else
11809 echo "$as_me: failed program was:" >&5
11810sed 's/^/| /' conftest.$ac_ext >&5
11811
11812bakefile_compiler_mwerks=no
11813fi
11814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11816
11817fi
11818echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11819echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11820
0e6fa1d9 11821MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11822ac_ext=c
11823ac_cpp='$CPP $CPPFLAGS'
11824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11826ac_compiler_gnu=$ac_cv_c_compiler_gnu
11827
11828
6dcfc289 11829 ac_ext=c
9273ffba
DE
11830ac_cpp='$CPP $CPPFLAGS'
11831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834
11835echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11836echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11837if test "${wx_cv_c_compiler_xlc+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 cat >conftest.$ac_ext <<_ACEOF
11841/* confdefs.h. */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h. */
11846
11847int
11848main ()
11849{
11850#ifndef __xlC__
11851 choke me
11852#endif
11853
11854 ;
11855 return 0;
11856}
11857_ACEOF
11858rm -f conftest.$ac_objext
11859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860 (eval $ac_compile) 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
9dd0f6c2 11867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 wx_compiler_xlc=yes
11880else
11881 echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
11883
11884wx_compiler_xlc=no
11885fi
11886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11887 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11888
11889fi
11890echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11891echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11892
0e6fa1d9 11893XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11894ac_ext=c
11895ac_cpp='$CPP $CPPFLAGS'
11896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898ac_compiler_gnu=$ac_cv_c_compiler_gnu
11899
11900
a848cd7e 11901
6dcfc289 11902
a848cd7e
SC
11903ac_ext=c
11904ac_cpp='$CPP $CPPFLAGS'
11905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907ac_compiler_gnu=$ac_cv_c_compiler_gnu
11908echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11909echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11910# On Suns, sometimes $CPP names a directory.
11911if test -n "$CPP" && test -d "$CPP"; then
11912 CPP=
11913fi
11914if test -z "$CPP"; then
11915 if test "${ac_cv_prog_CPP+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917else
11918 # Double quotes because CPP needs to be expanded
11919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11920 do
11921 ac_preproc_ok=false
11922for ac_c_preproc_warn_flag in '' yes
11923do
11924 # Use a header file that comes with gcc, so configuring glibc
11925 # with a fresh cross-compiler works.
11926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927 # <limits.h> exists even on freestanding compilers.
11928 # On the NeXT, cc -E runs the code through the compiler's parser,
11929 # not just through cpp. "Syntax error" is here to catch this case.
11930 cat >conftest.$ac_ext <<_ACEOF
11931/* confdefs.h. */
11932_ACEOF
11933cat confdefs.h >>conftest.$ac_ext
11934cat >>conftest.$ac_ext <<_ACEOF
11935/* end confdefs.h. */
11936#ifdef __STDC__
11937# include <limits.h>
11938#else
11939# include <assert.h>
11940#endif
ac1cb8d3 11941 Syntax error
a848cd7e
SC
11942_ACEOF
11943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } >/dev/null; then
11951 if test -s conftest.err; then
11952 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11954 else
11955 ac_cpp_err=
11956 fi
11957else
11958 ac_cpp_err=yes
11959fi
11960if test -z "$ac_cpp_err"; then
11961 :
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 # Broken: fails on valid input.
11967continue
11968fi
11969rm -f conftest.err conftest.$ac_ext
11970
11971 # OK, works on sane cases. Now check whether non-existent headers
11972 # can be detected and how.
11973 cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979#include <ac_nonexistent.h>
11980_ACEOF
11981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } >/dev/null; then
11989 if test -s conftest.err; then
11990 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11992 else
11993 ac_cpp_err=
11994 fi
11995else
11996 ac_cpp_err=yes
11997fi
11998if test -z "$ac_cpp_err"; then
11999 # Broken: success on invalid input.
12000continue
12001else
12002 echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 # Passes both tests.
12006ac_preproc_ok=:
12007break
12008fi
12009rm -f conftest.err conftest.$ac_ext
12010
12011done
12012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12013rm -f conftest.err conftest.$ac_ext
12014if $ac_preproc_ok; then
12015 break
12016fi
12017
12018 done
12019 ac_cv_prog_CPP=$CPP
12020
12021fi
12022 CPP=$ac_cv_prog_CPP
12023else
12024 ac_cv_prog_CPP=$CPP
12025fi
12026echo "$as_me:$LINENO: result: $CPP" >&5
12027echo "${ECHO_T}$CPP" >&6
12028ac_preproc_ok=false
12029for ac_c_preproc_warn_flag in '' yes
12030do
12031 # Use a header file that comes with gcc, so configuring glibc
12032 # with a fresh cross-compiler works.
12033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034 # <limits.h> exists even on freestanding compilers.
12035 # On the NeXT, cc -E runs the code through the compiler's parser,
12036 # not just through cpp. "Syntax error" is here to catch this case.
12037 cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043#ifdef __STDC__
12044# include <limits.h>
12045#else
12046# include <assert.h>
12047#endif
ac1cb8d3 12048 Syntax error
a848cd7e
SC
12049_ACEOF
12050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } >/dev/null; then
12058 if test -s conftest.err; then
12059 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12061 else
12062 ac_cpp_err=
12063 fi
12064else
12065 ac_cpp_err=yes
12066fi
12067if test -z "$ac_cpp_err"; then
12068 :
12069else
12070 echo "$as_me: failed program was:" >&5
12071sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 # Broken: fails on valid input.
12074continue
12075fi
12076rm -f conftest.err conftest.$ac_ext
12077
12078 # OK, works on sane cases. Now check whether non-existent headers
12079 # can be detected and how.
12080 cat >conftest.$ac_ext <<_ACEOF
12081/* confdefs.h. */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h. */
12086#include <ac_nonexistent.h>
12087_ACEOF
12088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12090 ac_status=$?
12091 grep -v '^ *+' conftest.er1 >conftest.err
12092 rm -f conftest.er1
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } >/dev/null; then
12096 if test -s conftest.err; then
12097 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12099 else
12100 ac_cpp_err=
12101 fi
12102else
12103 ac_cpp_err=yes
12104fi
12105if test -z "$ac_cpp_err"; then
12106 # Broken: success on invalid input.
12107continue
12108else
12109 echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 # Passes both tests.
12113ac_preproc_ok=:
12114break
12115fi
12116rm -f conftest.err conftest.$ac_ext
12117
12118done
12119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12120rm -f conftest.err conftest.$ac_ext
12121if $ac_preproc_ok; then
12122 :
12123else
12124 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12125See \`config.log' for more details." >&5
12126echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12127See \`config.log' for more details." >&2;}
12128 { (exit 1); exit 1; }; }
12129fi
12130
12131ac_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
12138echo "$as_me:$LINENO: checking for egrep" >&5
12139echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12140if test "${ac_cv_prog_egrep+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12144 then ac_cv_prog_egrep='grep -E'
12145 else ac_cv_prog_egrep='egrep'
12146 fi
12147fi
12148echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12149echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12150 EGREP=$ac_cv_prog_egrep
12151
12152
12153if test $ac_cv_c_compiler_gnu = yes; then
12154 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12155echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12156if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158else
12159 ac_pattern="Autoconf.*'x'"
12160 cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166#include <sgtty.h>
12167Autoconf TIOCGETP
12168_ACEOF
12169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12171 ac_cv_prog_gcc_traditional=yes
12172else
12173 ac_cv_prog_gcc_traditional=no
12174fi
12175rm -f conftest*
12176
12177
12178 if test $ac_cv_prog_gcc_traditional = no; then
12179 cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185#include <termio.h>
12186Autoconf TCGETA
12187_ACEOF
12188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12190 ac_cv_prog_gcc_traditional=yes
12191fi
12192rm -f conftest*
12193
12194 fi
12195fi
12196echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12197echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12198 if test $ac_cv_prog_gcc_traditional = yes; then
12199 CC="$CC -traditional"
12200 fi
12201fi
12202
12203
12204
12205
12206ac_ext=cc
12207ac_cpp='$CXXCPP $CPPFLAGS'
12208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12211
12212
12213CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12214
12215
12216 ac_ext=cc
a848cd7e
SC
12217ac_cpp='$CXXCPP $CPPFLAGS'
12218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12221if test -n "$ac_tool_prefix"; then
12222 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12223 do
12224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12226echo "$as_me:$LINENO: checking for $ac_word" >&5
12227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12228if test "${ac_cv_prog_CXX+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 if test -n "$CXX"; then
12232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12233else
12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235for as_dir in $PATH
12236do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12244 fi
12245done
12246done
12247
12248fi
12249fi
12250CXX=$ac_cv_prog_CXX
12251if test -n "$CXX"; then
12252 echo "$as_me:$LINENO: result: $CXX" >&5
12253echo "${ECHO_T}$CXX" >&6
12254else
12255 echo "$as_me:$LINENO: result: no" >&5
12256echo "${ECHO_T}no" >&6
12257fi
12258
12259 test -n "$CXX" && break
12260 done
12261fi
12262if test -z "$CXX"; then
12263 ac_ct_CXX=$CXX
12264 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12265do
12266 # Extract the first word of "$ac_prog", so it can be a program name with args.
12267set dummy $ac_prog; ac_word=$2
12268echo "$as_me:$LINENO: checking for $ac_word" >&5
12269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272else
12273 if test -n "$ac_ct_CXX"; then
12274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12275else
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283 ac_cv_prog_ac_ct_CXX="$ac_prog"
12284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12286 fi
12287done
12288done
12289
12290fi
12291fi
12292ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12293if test -n "$ac_ct_CXX"; then
12294 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12295echo "${ECHO_T}$ac_ct_CXX" >&6
12296else
12297 echo "$as_me:$LINENO: result: no" >&5
12298echo "${ECHO_T}no" >&6
12299fi
12300
12301 test -n "$ac_ct_CXX" && break
12302done
12303test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12304
12305 CXX=$ac_ct_CXX
12306fi
12307
12308
12309# Provide some information about the compiler.
12310echo "$as_me:$LINENO:" \
12311 "checking for C++ compiler version" >&5
12312ac_compiler=`set X $ac_compile; echo $2`
12313{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12314 (eval $ac_compiler --version </dev/null >&5) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }
12318{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12319 (eval $ac_compiler -v </dev/null >&5) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }
12323{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12324 (eval $ac_compiler -V </dev/null >&5) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }
12328
12329echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12330echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12331if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333else
12334 cat >conftest.$ac_ext <<_ACEOF
12335/* confdefs.h. */
12336_ACEOF
12337cat confdefs.h >>conftest.$ac_ext
12338cat >>conftest.$ac_ext <<_ACEOF
12339/* end confdefs.h. */
12340
12341int
12342main ()
12343{
12344#ifndef __GNUC__
12345 choke me
12346#endif
12347
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12354 (eval $ac_compile) 2>conftest.er1
a848cd7e 12355 ac_status=$?
ac1cb8d3
VS
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
a848cd7e
SC
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
9dd0f6c2 12361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_compiler_gnu=yes
12374else
12375 echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378ac_compiler_gnu=no
12379fi
ac1cb8d3 12380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12381ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12382
12383fi
12384echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12385echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12386GXX=`test $ac_compiler_gnu = yes && echo yes`
12387ac_test_CXXFLAGS=${CXXFLAGS+set}
12388ac_save_CXXFLAGS=$CXXFLAGS
12389CXXFLAGS="-g"
12390echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12391echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12392if test "${ac_cv_prog_cxx_g+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394else
12395 cat >conftest.$ac_ext <<_ACEOF
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
12401
12402int
12403main ()
12404{
12405
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410rm -f conftest.$ac_objext
12411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12412 (eval $ac_compile) 2>conftest.er1
a848cd7e 12413 ac_status=$?
ac1cb8d3
VS
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
a848cd7e
SC
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
9dd0f6c2 12419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 ac_cv_prog_cxx_g=yes
12432else
12433 echo "$as_me: failed program was:" >&5
12434sed 's/^/| /' conftest.$ac_ext >&5
12435
12436ac_cv_prog_cxx_g=no
12437fi
ac1cb8d3 12438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12439fi
12440echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12441echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12442if test "$ac_test_CXXFLAGS" = set; then
12443 CXXFLAGS=$ac_save_CXXFLAGS
12444elif test $ac_cv_prog_cxx_g = yes; then
12445 if test "$GXX" = yes; then
52ada004 12446 CXXFLAGS="-g -O2"
a848cd7e 12447 else
52ada004 12448 CXXFLAGS="-g"
a848cd7e
SC
12449 fi
12450else
12451 if test "$GXX" = yes; then
12452 CXXFLAGS="-O2"
12453 else
12454 CXXFLAGS=
12455 fi
12456fi
12457for ac_declaration in \
ac1cb8d3 12458 '' \
a848cd7e
SC
12459 'extern "C" void std::exit (int) throw (); using std::exit;' \
12460 'extern "C" void std::exit (int); using std::exit;' \
12461 'extern "C" void exit (int) throw ();' \
12462 'extern "C" void exit (int);' \
12463 'void exit (int);'
12464do
12465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
de59c161 12471$ac_declaration
ac1cb8d3 12472#include <stdlib.h>
a848cd7e
SC
12473int
12474main ()
12475{
12476exit (42);
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12483 (eval $ac_compile) 2>conftest.er1
a848cd7e 12484 ac_status=$?
ac1cb8d3
VS
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
a848cd7e
SC
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
9dd0f6c2 12490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 :
12503else
12504 echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507continue
12508fi
ac1cb8d3 12509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12510 cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h. */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h. */
12516$ac_declaration
12517int
12518main ()
12519{
12520exit (42);
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
12526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12527 (eval $ac_compile) 2>conftest.er1
a848cd7e 12528 ac_status=$?
ac1cb8d3
VS
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
a848cd7e
SC
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
9dd0f6c2 12534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 break
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551fi
ac1cb8d3 12552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12553done
12554rm -f conftest*
12555if test -n "$ac_declaration"; then
12556 echo '#ifdef __cplusplus' >>confdefs.h
12557 echo $ac_declaration >>confdefs.h
12558 echo '#endif' >>confdefs.h
12559fi
12560
12561ac_ext=cc
12562ac_cpp='$CXXCPP $CPPFLAGS'
12563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12566
6dcfc289 12567 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12568echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12569if test "${wx_cv_cxx_exto+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571else
12572 cat >conftest.$ac_ext <<_ACEOF
12573/* confdefs.h. */
12574_ACEOF
12575cat confdefs.h >>conftest.$ac_ext
12576cat >>conftest.$ac_ext <<_ACEOF
12577/* end confdefs.h. */
12578
12579int
12580main ()
12581{
12582
12583 ;
12584 return 0;
12585}
12586_ACEOF
12587rm -f conftest.$ac_objext conftest.$ac_ext.o
12588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; then
12593 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12594 case $ac_file in
12595 conftest.$ac_ext.o)
12596 wx_cv_cxx_exto="-ext o"
12597 ;;
12598 *)
12599 ;;
12600 esac
12601done
12602else
12603 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12604See \`config.log' for more details." >&5
12605echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12606See \`config.log' for more details." >&2;}
12607 { (exit 1); exit 1; }; }
12608
12609fi
12610
12611rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12612
12613fi
12614echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12615echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12616if test "x$wx_cv_cxx_exto" '!=' "x"; then
12617 if test "cxx" = "c"; then
12618 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12619 fi
12620 if test "cxx" = "cxx"; then
12621 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12622 fi
12623fi
12624
6dcfc289
DE
12625 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12626 unset ac_cv_prog_cxx_g
12627 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12628ac_save_CXXFLAGS=$CXXFLAGS
12629CXXFLAGS="-g"
12630echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12631echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12632if test "${ac_cv_prog_cxx_g+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634else
12635 cat >conftest.$ac_ext <<_ACEOF
12636/* confdefs.h. */
12637_ACEOF
12638cat confdefs.h >>conftest.$ac_ext
12639cat >>conftest.$ac_ext <<_ACEOF
12640/* end confdefs.h. */
12641
12642int
12643main ()
12644{
12645
12646 ;
12647 return 0;
12648}
12649_ACEOF
12650rm -f conftest.$ac_objext
12651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
9dd0f6c2 12659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest.$ac_objext'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 ac_cv_prog_cxx_g=yes
12672else
12673 echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
12676ac_cv_prog_cxx_g=no
12677fi
12678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679fi
12680echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12681echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12682if test "$ac_test_CXXFLAGS" = set; then
12683 CXXFLAGS=$ac_save_CXXFLAGS
12684elif test $ac_cv_prog_cxx_g = yes; then
12685 if test "$GXX" = yes; then
52ada004 12686 CXXFLAGS="-g -O2"
480ccd21 12687 else
52ada004 12688 CXXFLAGS="-g"
480ccd21
DE
12689 fi
12690else
12691 if test "$GXX" = yes; then
12692 CXXFLAGS="-O2"
12693 else
12694 CXXFLAGS=
12695 fi
12696fi
6dcfc289
DE
12697 fi
12698 ac_ext=cc
95986553
DE
12699ac_cpp='$CXXCPP $CPPFLAGS'
12700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12703
12704echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12705echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12706if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
12709 cat >conftest.$ac_ext <<_ACEOF
12710/* confdefs.h. */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h. */
12715
12716int
12717main ()
12718{
12719#ifndef __MWERKS__
12720 choke me
12721#endif
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
9dd0f6c2 12736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest.$ac_objext'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 bakefile_compiler_mwerks=yes
12749else
12750 echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753bakefile_compiler_mwerks=no
12754fi
12755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12756 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12757
12758fi
12759echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12760echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12761
0e6fa1d9 12762MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12763ac_ext=cc
12764ac_cpp='$CXXCPP $CPPFLAGS'
12765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12768
12769
6dcfc289 12770 ac_ext=cc
9273ffba
DE
12771ac_cpp='$CXXCPP $CPPFLAGS'
12772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12775
12776echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12777echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12778if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 cat >conftest.$ac_ext <<_ACEOF
12782/* confdefs.h. */
12783_ACEOF
12784cat confdefs.h >>conftest.$ac_ext
12785cat >>conftest.$ac_ext <<_ACEOF
12786/* end confdefs.h. */
12787
12788int
12789main ()
12790{
12791#ifndef __xlC__
12792 choke me
12793#endif
12794
12795 ;
12796 return 0;
12797}
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
9dd0f6c2 12808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 wx_compiler_xlc=yes
12821else
12822 echo "$as_me: failed program was:" >&5
12823sed 's/^/| /' conftest.$ac_ext >&5
12824
12825wx_compiler_xlc=no
12826fi
12827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12829
12830fi
12831echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12832echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12833
0e6fa1d9 12834XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12835ac_ext=cc
12836ac_cpp='$CXXCPP $CPPFLAGS'
12837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12840
12841
95986553 12842
6dcfc289 12843
a848cd7e
SC
12844ac_ext=c
12845ac_cpp='$CPP $CPPFLAGS'
12846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850
a848cd7e
SC
12851if test -n "$ac_tool_prefix"; then
12852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12853set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12854echo "$as_me:$LINENO: checking for $ac_word" >&5
12855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12856if test "${ac_cv_prog_RANLIB+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859 if test -n "$RANLIB"; then
12860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12861else
12862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863for as_dir in $PATH
12864do
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12872 fi
12873done
12874done
12875
12876fi
12877fi
12878RANLIB=$ac_cv_prog_RANLIB
12879if test -n "$RANLIB"; then
12880 echo "$as_me:$LINENO: result: $RANLIB" >&5
12881echo "${ECHO_T}$RANLIB" >&6
12882else
12883 echo "$as_me:$LINENO: result: no" >&5
12884echo "${ECHO_T}no" >&6
12885fi
12886
12887fi
12888if test -z "$ac_cv_prog_RANLIB"; then
12889 ac_ct_RANLIB=$RANLIB
12890 # Extract the first word of "ranlib", so it can be a program name with args.
12891set dummy ranlib; ac_word=$2
12892echo "$as_me:$LINENO: checking for $ac_word" >&5
12893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 if test -n "$ac_ct_RANLIB"; then
12898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12899else
12900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907 ac_cv_prog_ac_ct_RANLIB="ranlib"
12908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 break 2
12910 fi
12911done
12912done
12913
12914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12915fi
12916fi
12917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12918if test -n "$ac_ct_RANLIB"; then
12919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12920echo "${ECHO_T}$ac_ct_RANLIB" >&6
12921else
12922 echo "$as_me:$LINENO: result: no" >&5
12923echo "${ECHO_T}no" >&6
12924fi
12925
12926 RANLIB=$ac_ct_RANLIB
12927else
12928 RANLIB="$ac_cv_prog_RANLIB"
12929fi
12930
12931
12932# Extract the first word of "ar", so it can be a program name with args.
12933set dummy ar; ac_word=$2
12934echo "$as_me:$LINENO: checking for $ac_word" >&5
12935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12936if test "${ac_cv_prog_AR+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 if test -n "$AR"; then
12940 ac_cv_prog_AR="$AR" # Let the user override the test.
12941else
12942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943for as_dir in $PATH
12944do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12949 ac_cv_prog_AR="ar"
12950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12952 fi
12953done
12954done
12955
12956fi
12957fi
12958AR=$ac_cv_prog_AR
12959if test -n "$AR"; then
12960 echo "$as_me:$LINENO: result: $AR" >&5
12961echo "${ECHO_T}$AR" >&6
12962else
12963 echo "$as_me:$LINENO: result: no" >&5
12964echo "${ECHO_T}no" >&6
12965fi
12966
12967if test "x$AR" = "x" ; then
77ffb593
JS
12968 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12969echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12970 { (exit 1); exit 1; }; }
12971fi
12972
12973# Find a good install program. We prefer a C program (faster),
12974# so one script is as good as another. But avoid the broken or
12975# incompatible versions:
12976# SysV /etc/install, /usr/sbin/install
12977# SunOS /usr/etc/install
12978# IRIX /sbin/install
12979# AIX /bin/install
12980# AmigaOS /C/install, which installs bootblocks on floppy discs
12981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12984# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12985# ./install, which can be erroneously created by make from ./install.sh.
12986echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12988if test -z "$INSTALL"; then
12989if test "${ac_cv_path_install+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991else
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 # Account for people who put trailing slashes in PATH elements.
12998case $as_dir/ in
12999 ./ | .// | /cC/* | \
13000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13002 /usr/ucb/* ) ;;
13003 *)
13004 # OSF1 and SCO ODT 3.0 have their own names for install.
13005 # Don't use installbsd from OSF since it installs stuff as root
13006 # by default.
13007 for ac_prog in ginstall scoinst install; do
13008 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13009 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13010 if test $ac_prog = install &&
13011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13012 # AIX install. It has an incompatible calling convention.
13013 :
13014 elif test $ac_prog = install &&
13015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13016 # program-specific install script used by HP pwplus--don't use.
13017 :
13018 else
13019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13020 break 3
13021 fi
13022 fi
a848cd7e
SC
13023 done
13024 done
13025 ;;
13026esac
13027done
13028
13029
13030fi
13031 if test "${ac_cv_path_install+set}" = set; then
13032 INSTALL=$ac_cv_path_install
13033 else
13034 # As a last resort, use the slow shell script. We don't cache a
13035 # path for INSTALL within a source directory, because that will
13036 # break other packages using the cache if that directory is
13037 # removed, or if the path is relative.
13038 INSTALL=$ac_install_sh
13039 fi
13040fi
13041echo "$as_me:$LINENO: result: $INSTALL" >&5
13042echo "${ECHO_T}$INSTALL" >&6
13043
13044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13045# It thinks the first close brace ends the variable substitution.
13046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13047
13048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13049
13050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13051
13052
13053case ${INSTALL} in
13054 /* ) # Absolute
13055 ;;
13056 ?:* ) # Drive letter, considered as absolute.
13057 ;;
13058 *)
13059 INSTALL=`pwd`/${INSTALL} ;;
13060esac
13061
a848cd7e
SC
13062
13063case "${host}" in
13064
13065 powerpc-*-darwin* )
13066 INSTALL_PROGRAM="cp -fp"
13067 INSTALL_DATA="cp -fp"
13068 ;;
13069 *)
13070 ;;
13071esac
13072
13073# Extract the first word of "strip", so it can be a program name with args.
13074set dummy strip; ac_word=$2
13075echo "$as_me:$LINENO: checking for $ac_word" >&5
13076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13077if test "${ac_cv_prog_STRIP+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080 if test -n "$STRIP"; then
13081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13082else
13083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084for as_dir in $PATH
13085do
13086 IFS=$as_save_IFS
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_prog_STRIP="strip"
13091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13092 break 2
13093 fi
13094done
13095done
13096
13097 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13098fi
13099fi
13100STRIP=$ac_cv_prog_STRIP
13101if test -n "$STRIP"; then
13102 echo "$as_me:$LINENO: result: $STRIP" >&5
13103echo "${ECHO_T}$STRIP" >&6
13104else
13105 echo "$as_me:$LINENO: result: no" >&5
13106echo "${ECHO_T}no" >&6
13107fi
13108
13109
13110echo "$as_me:$LINENO: checking if make is GNU make" >&5
13111echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13112if test "${wx_cv_prog_makeisgnu+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
13115
13116 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13117 egrep -s GNU > /dev/null); then
13118 wx_cv_prog_makeisgnu="yes"
13119 else
13120 wx_cv_prog_makeisgnu="no"
13121 fi
13122
13123fi
13124echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13125echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13126
13127if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13128 IF_GNU_MAKE=""
13129else
13130 IF_GNU_MAKE="#"
13131fi
13132
13133
13134
13135if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13136echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13137echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13138if test "${wx_cv_prog_makevpath+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140else
13141
13142cat - << EOF > confMake
13143check : file
13144 cp \$? \$@
13145 cp \$? final_file
13146EOF
13147
13148if test ! -d sub ; then
13149 mkdir sub
13150fi
13151echo dummy > sub/file
13152${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13153RESULT=$?
13154rm -f sub/file check final_file confMake
13155rmdir sub
13156if test "$RESULT" = 0; then
13157 wx_cv_prog_makevpath="yes"
13158else
13159 wx_cv_prog_makevpath="no"
13160fi
13161
13162fi
13163echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13164echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13165
13166if test "x$wx_cv_prog_makevpath" != "xyes"; then
13167{ { echo "$as_me:$LINENO: error:
13168You need a make-utility that is able to use the variable
13169VPATH correctly.
13170If your version of make does not support VPATH correctly,
13171please install GNU-make (possibly as gmake), and start
13172configure with the following command:
13173export MAKE=gmake; ./configure for sh-type shells
13174setenv MAKE gmake; ./configure for csh-type shells
13175Also please do remember to use gmake in this case every time
13176you are trying to compile.
13177" >&5
13178echo "$as_me: error:
13179You need a make-utility that is able to use the variable
13180VPATH correctly.
13181If your version of make does not support VPATH correctly,
13182please install GNU-make (possibly as gmake), and start
13183configure with the following command:
13184export MAKE=gmake; ./configure for sh-type shells
13185setenv MAKE gmake; ./configure for csh-type shells
13186Also please do remember to use gmake in this case every time
13187you are trying to compile.
13188" >&2;}
13189 { (exit 1); exit 1; }; }
13190fi fi
13191echo "$as_me:$LINENO: checking whether ln -s works" >&5
13192echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13193LN_S=$as_ln_s
13194if test "$LN_S" = "ln -s"; then
13195 echo "$as_me:$LINENO: result: yes" >&5
13196echo "${ECHO_T}yes" >&6
13197else
13198 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13199echo "${ECHO_T}no, using $LN_S" >&6
13200fi
13201
13202
13203
9273ffba
DE
13204if test "x$XLCXX" = "xyes"; then
13205 CXXFLAGS="$CXXFLAGS -qunique"
13206fi
13207
13208
4d7ec9f1
DE
13209case "${host}" in
13210 powerpc-*-darwin* )
13211 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13212echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13213 cat >conftest.$ac_ext <<_ACEOF
13214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
13219
13220int
13221main ()
13222{
13223#ifndef __POWERPC__
13224 choke me for lack of PowerPC
13225#endif
13226
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231rm -f conftest.$ac_objext
13232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
9dd0f6c2 13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest.$ac_objext'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 echo "$as_me:$LINENO: result: yes" >&5
13253echo "${ECHO_T}yes" >&6
13254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258echo "$as_me:$LINENO: result: no" >&5
13259echo "${ECHO_T}no" >&6
13260 cat >>confdefs.h <<\_ACEOF
13261#define __POWERPC__ 1
13262_ACEOF
13263
13264
13265fi
13266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13268echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13269 cat >conftest.$ac_ext <<_ACEOF
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
13274/* end confdefs.h. */
13275#include <CoreFoundation/CFBase.h>
13276
13277int
13278main ()
13279{
13280
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285rm -f conftest.$ac_objext
13286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
9dd0f6c2 13294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try='test -s conftest.$ac_objext'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 echo "$as_me:$LINENO: result: yes" >&5
13307echo "${ECHO_T}yes" >&6
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312echo "$as_me:$LINENO: result: no" >&5
13313echo "${ECHO_T}no" >&6
13314 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13315echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13316 cat >conftest.$ac_ext <<_ACEOF
13317/* confdefs.h. */
13318_ACEOF
13319cat confdefs.h >>conftest.$ac_ext
13320cat >>conftest.$ac_ext <<_ACEOF
13321/* end confdefs.h. */
13322#define __CF_USE_FRAMEWORK_INCLUDES__
13323#include <CoreFoundation/CFBase.h>
13324
13325int
13326main ()
13327{
13328
13329 ;
13330 return 0;
13331}
13332_ACEOF
13333rm -f conftest.$ac_objext
13334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
9dd0f6c2 13342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; } &&
13348 { ac_try='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 echo "$as_me:$LINENO: result: yes" >&5
13355echo "${ECHO_T}yes" >&6
13356 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13357else
13358 echo "$as_me: failed program was:" >&5
13359sed 's/^/| /' conftest.$ac_ext >&5
13360
13361{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13362See \`config.log' for more details." >&5
13363echo "$as_me: error: no. CoreFoundation not available.
13364See \`config.log' for more details." >&2;}
13365 { (exit 1); exit 1; }; }
13366
13367fi
13368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13369
13370
13371fi
13372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373 ;;
13374esac
13375
a848cd7e
SC
13376case "${host}" in
13377 *-pc-os2_emx | *-pc-os2-emx )
13378 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13379 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13380echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13381if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383else
13384 ac_check_lib_save_LIBS=$LIBS
13385LIBS="-lcExt $LIBS"
13386cat >conftest.$ac_ext <<_ACEOF
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392
13393/* Override any gcc2 internal prototype to avoid an error. */
13394#ifdef __cplusplus
13395extern "C"
13396#endif
13397/* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13399char drand48 ();
13400int
13401main ()
13402{
13403drand48 ();
13404 ;
13405 return 0;
13406}
13407_ACEOF
13408rm -f conftest.$ac_objext conftest$ac_exeext
13409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13410 (eval $ac_link) 2>conftest.er1
a848cd7e 13411 ac_status=$?
ac1cb8d3
VS
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
a848cd7e
SC
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
9dd0f6c2 13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_lib_cExt_drand48=yes
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434ac_cv_lib_cExt_drand48=no
13435fi
ac1cb8d3
VS
13436rm -f conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13438LIBS=$ac_check_lib_save_LIBS
13439fi
13440echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13441echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13442if test $ac_cv_lib_cExt_drand48 = yes; then
13443 LIBS="$LIBS -lcExt"
13444fi
13445
13446 else
13447 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13448 fi
69120ee4
VZ
13449 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13450echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13451if test "${wx_cv_gccversion+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454
391a765e
VS
13455 if test "$cross_compiling" = yes; then
13456 wx_cv_gccversion="EMX2"
13457
13458else
13459 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465
391a765e 13466 #include <stdio.h>
a848cd7e 13467
391a765e
VS
13468 int main()
13469 {
13470 FILE *f=fopen("conftestval", "w");
13471 if (!f) exit(1);
13472 fprintf(f,
a848cd7e 13473 #if (__GNUC__ < 3)
391a765e
VS
13474 "EMX2"
13475 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13476 "EMX3"
13477 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13478 "Innotek5"
13479 #else
13480 "Innotek6"
a848cd7e 13481 #endif
391a765e
VS
13482 );
13483 exit(0);
13484 }
a848cd7e 13485
a848cd7e 13486_ACEOF
391a765e
VS
13487rm -f conftest$ac_exeext
13488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
ac1cb8d3
VS
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
391a765e 13498 wx_cv_gccversion=`cat conftestval`
a848cd7e 13499else
391a765e
VS
13500 echo "$as_me: program exited with status $ac_status" >&5
13501echo "$as_me: failed program was:" >&5
a848cd7e
SC
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
391a765e
VS
13504( exit $ac_status )
13505wx_cv_gccversion="EMX2"
a848cd7e 13506fi
391a765e 13507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13508fi
a848cd7e
SC
13509
13510fi
13511echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13512echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13513 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13514 LIBS="$LIBS -lstdcpp"
13515 LDFLAGS="$LDFLAGS -Zsysv-signals"
13516 else
391a765e 13517 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13518 LIBS="$LIBS -lstdcxx"
13519 LDFLAGS="$LDFLAGS -Zsysv-signals"
13520 else
13521 LIBS="$LIBS -lstdc++"
13522 fi
13523 fi
94acd38e
DE
13524 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13525 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13526echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13527 wxUSE_OMF=yes
2da0c077 13528 enable_omf=yes
a848cd7e
SC
13529 fi
13530 ;;
13531 *)
13532
13533
13534
13535 ac_ext=cc
13536ac_cpp='$CXXCPP $CPPFLAGS'
13537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13540
13541
95986553 13542 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13543echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13544if test "${ac_cv_string_strcasecmp+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547
13548 cat >conftest.$ac_ext <<_ACEOF
13549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
13554
13555 #include <string.h>
13556
13557int
13558main ()
13559{
13560
13561 strcasecmp("foo", "bar");
13562
13563 ;
13564 return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext conftest$ac_exeext
13568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13569 (eval $ac_link) 2>conftest.er1
a848cd7e 13570 ac_status=$?
ac1cb8d3
VS
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
a848cd7e
SC
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
9dd0f6c2 13576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_string_strcasecmp=yes
13589else
13590 echo "$as_me: failed program was:" >&5
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
13593ac_cv_string_strcasecmp=no
13594
13595fi
ac1cb8d3
VS
13596rm -f conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13598
13599fi
13600echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13601echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13602
13603 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13604 cat >>confdefs.h <<\_ACEOF
13605#define HAVE_STRCASECMP_IN_STRING_H 1
13606_ACEOF
13607
13608 else
13609 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13610echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13611if test "${ac_cv_strings_strcasecmp+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614
13615 cat >conftest.$ac_ext <<_ACEOF
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
13621
13622 #include <strings.h>
13623
13624int
13625main ()
13626{
13627
13628 strcasecmp("foo", "bar");
13629
13630 ;
13631 return 0;
13632}
13633_ACEOF
13634rm -f conftest.$ac_objext conftest$ac_exeext
13635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13636 (eval $ac_link) 2>conftest.er1
a848cd7e 13637 ac_status=$?
ac1cb8d3
VS
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
a848cd7e
SC
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
9dd0f6c2 13643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_cv_strings_strcasecmp=yes
13656else
13657 echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
13660ac_cv_strings_strcasecmp=no
13661
13662fi
ac1cb8d3
VS
13663rm -f conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13665
13666fi
13667echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13668echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13669
0c3c69fc 13670 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13671 cat >>confdefs.h <<\_ACEOF
13672#define HAVE_STRCASECMP_IN_STRINGS_H 1
13673_ACEOF
13674
13675 else
13676 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13677echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13678 { (exit 1); exit 1; }; }
13679 fi
13680 fi
13681
13682 ac_ext=c
13683ac_cpp='$CPP $CPPFLAGS'
13684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687
13688 ;;
13689esac
13690
13691
13692echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13693echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13694if test "${ac_cv_header_stdc+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
13697 cat >conftest.$ac_ext <<_ACEOF
13698/* confdefs.h. */
13699_ACEOF
13700cat confdefs.h >>conftest.$ac_ext
13701cat >>conftest.$ac_ext <<_ACEOF
13702/* end confdefs.h. */
13703#include <stdlib.h>
13704#include <stdarg.h>
13705#include <string.h>
13706#include <float.h>
13707
13708int
13709main ()
13710{
13711
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13718 (eval $ac_compile) 2>conftest.er1
a848cd7e 13719 ac_status=$?
ac1cb8d3
VS
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
a848cd7e
SC
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
9dd0f6c2 13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_header_stdc=yes
13738else
13739 echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742ac_cv_header_stdc=no
13743fi
ac1cb8d3 13744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13745
13746if test $ac_cv_header_stdc = yes; then
13747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13748 cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754#include <string.h>
13755
13756_ACEOF
13757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13758 $EGREP "memchr" >/dev/null 2>&1; then
13759 :
13760else
13761 ac_cv_header_stdc=no
13762fi
13763rm -f conftest*
13764
13765fi
13766
13767if test $ac_cv_header_stdc = yes; then
13768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13769 cat >conftest.$ac_ext <<_ACEOF
13770/* confdefs.h. */
13771_ACEOF
13772cat confdefs.h >>conftest.$ac_ext
13773cat >>conftest.$ac_ext <<_ACEOF
13774/* end confdefs.h. */
13775#include <stdlib.h>
13776
13777_ACEOF
13778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779 $EGREP "free" >/dev/null 2>&1; then
13780 :
13781else
13782 ac_cv_header_stdc=no
13783fi
13784rm -f conftest*
13785
13786fi
13787
13788if test $ac_cv_header_stdc = yes; then
13789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13790 if test "$cross_compiling" = yes; then
13791 :
13792else
13793 cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799#include <ctype.h>
13800#if ((' ' & 0x0FF) == 0x020)
13801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13803#else
13804# define ISLOWER(c) \
ac1cb8d3
VS
13805 (('a' <= (c) && (c) <= 'i') \
13806 || ('j' <= (c) && (c) <= 'r') \
13807 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13809#endif
13810
13811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13812int
13813main ()
13814{
13815 int i;
13816 for (i = 0; i < 256; i++)
13817 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13818 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13819 exit(2);
13820 exit (0);
13821}
13822_ACEOF
13823rm -f conftest$ac_exeext
13824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13825 (eval $ac_link) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 :
13835else
13836 echo "$as_me: program exited with status $ac_status" >&5
13837echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840( exit $ac_status )
13841ac_cv_header_stdc=no
13842fi
ac1cb8d3 13843rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13844fi
13845fi
13846fi
13847echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13848echo "${ECHO_T}$ac_cv_header_stdc" >&6
13849if test $ac_cv_header_stdc = yes; then
13850
13851cat >>confdefs.h <<\_ACEOF
13852#define STDC_HEADERS 1
13853_ACEOF
13854
13855fi
13856
13857# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13868 inttypes.h stdint.h unistd.h
a848cd7e
SC
13869do
13870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871echo "$as_me:$LINENO: checking for $ac_header" >&5
13872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13873if eval "test \"\${$as_ac_Header+set}\" = set"; then
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$ac_includes_default
13883
13884#include <$ac_header>
13885_ACEOF
13886rm -f conftest.$ac_objext
13887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13888 (eval $ac_compile) 2>conftest.er1
a848cd7e 13889 ac_status=$?
ac1cb8d3
VS
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
a848cd7e
SC
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
9dd0f6c2 13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 eval "$as_ac_Header=yes"
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
13912eval "$as_ac_Header=no"
13913fi
ac1cb8d3 13914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13915fi
13916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13918if test `eval echo '${'$as_ac_Header'}'` = yes; then
13919 cat >>confdefs.h <<_ACEOF
13920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13921_ACEOF
13922
13923fi
13924
13925done
13926
13927
13928
13929for ac_header in stdlib.h
13930do
13931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13932if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo "$as_me:$LINENO: checking for $ac_header" >&5
13934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13935if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937fi
13938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13940else
13941 # Is the header compilable?
13942echo "$as_me:$LINENO: checking $ac_header usability" >&5
13943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13944cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
13950$ac_includes_default
13951#include <$ac_header>
13952_ACEOF
13953rm -f conftest.$ac_objext
13954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13955 (eval $ac_compile) 2>conftest.er1
a848cd7e 13956 ac_status=$?
ac1cb8d3
VS
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
a848cd7e
SC
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
9dd0f6c2 13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_header_compiler=yes
13975else
13976 echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979ac_header_compiler=no
13980fi
ac1cb8d3 13981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13982echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13983echo "${ECHO_T}$ac_header_compiler" >&6
13984
13985# Is the header present?
13986echo "$as_me:$LINENO: checking $ac_header presence" >&5
13987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13988cat >conftest.$ac_ext <<_ACEOF
13989/* confdefs.h. */
13990_ACEOF
13991cat confdefs.h >>conftest.$ac_ext
13992cat >>conftest.$ac_ext <<_ACEOF
13993/* end confdefs.h. */
13994#include <$ac_header>
13995_ACEOF
13996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13998 ac_status=$?
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } >/dev/null; then
14004 if test -s conftest.err; then
14005 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14007 else
14008 ac_cpp_err=
14009 fi
14010else
14011 ac_cpp_err=yes
14012fi
14013if test -z "$ac_cpp_err"; then
14014 ac_header_preproc=yes
14015else
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 ac_header_preproc=no
14020fi
14021rm -f conftest.err conftest.$ac_ext
14022echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023echo "${ECHO_T}$ac_header_preproc" >&6
14024
14025# So? What about this header?
ac1cb8d3
VS
14026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027 yes:no: )
a848cd7e
SC
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14032 ac_header_preproc=yes
a848cd7e 14033 ;;
ac1cb8d3 14034 no:yes:* )
a848cd7e
SC
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14042echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14047 (
14048 cat <<\_ASBOX
ac1cb8d3
VS
14049## ----------------------------------------- ##
14050## Report this to wx-dev@lists.wxwidgets.org ##
14051## ----------------------------------------- ##
a848cd7e
SC
14052_ASBOX
14053 ) |
14054 sed "s/^/$as_me: WARNING: /" >&2
14055 ;;
14056esac
14057echo "$as_me:$LINENO: checking for $ac_header" >&5
14058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14059if eval "test \"\${$as_ac_Header+set}\" = set"; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061else
ac1cb8d3 14062 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14063fi
14064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14066
14067fi
14068if test `eval echo '${'$as_ac_Header'}'` = yes; then
14069 cat >>confdefs.h <<_ACEOF
14070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14071_ACEOF
14072
14073fi
14074
14075done
14076
14077
14078for ac_header in malloc.h
14079do
14080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo "$as_me:$LINENO: checking for $ac_header" >&5
14083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14084if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086fi
14087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14089else
14090 # Is the header compilable?
14091echo "$as_me:$LINENO: checking $ac_header usability" >&5
14092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14093cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099$ac_includes_default
14100#include <$ac_header>
14101_ACEOF
14102rm -f conftest.$ac_objext
14103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14104 (eval $ac_compile) 2>conftest.er1
a848cd7e 14105 ac_status=$?
ac1cb8d3
VS
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
a848cd7e
SC
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
9dd0f6c2 14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_header_compiler=yes
14124else
14125 echo "$as_me: failed program was:" >&5
14126sed 's/^/| /' conftest.$ac_ext >&5
14127
14128ac_header_compiler=no
14129fi
ac1cb8d3 14130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14132echo "${ECHO_T}$ac_header_compiler" >&6
14133
14134# Is the header present?
14135echo "$as_me:$LINENO: checking $ac_header presence" >&5
14136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14137cat >conftest.$ac_ext <<_ACEOF
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
14143#include <$ac_header>
14144_ACEOF
14145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } >/dev/null; then
14153 if test -s conftest.err; then
14154 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14156 else
14157 ac_cpp_err=
14158 fi
14159else
14160 ac_cpp_err=yes
14161fi
14162if test -z "$ac_cpp_err"; then
14163 ac_header_preproc=yes
14164else
14165 echo "$as_me: failed program was:" >&5
14166sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 ac_header_preproc=no
14169fi
14170rm -f conftest.err conftest.$ac_ext
14171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172echo "${ECHO_T}$ac_header_preproc" >&6
14173
14174# So? What about this header?
ac1cb8d3
VS
14175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176 yes:no: )
a848cd7e
SC
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14181 ac_header_preproc=yes
a848cd7e 14182 ;;
ac1cb8d3 14183 no:yes:* )
a848cd7e
SC
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14196 (
14197 cat <<\_ASBOX
ac1cb8d3
VS
14198## ----------------------------------------- ##
14199## Report this to wx-dev@lists.wxwidgets.org ##
14200## ----------------------------------------- ##
a848cd7e
SC
14201_ASBOX
14202 ) |
14203 sed "s/^/$as_me: WARNING: /" >&2
14204 ;;
14205esac
14206echo "$as_me:$LINENO: checking for $ac_header" >&5
14207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14208if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210else
ac1cb8d3 14211 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14212fi
14213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14215
14216fi
14217if test `eval echo '${'$as_ac_Header'}'` = yes; then
14218 cat >>confdefs.h <<_ACEOF
14219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220_ACEOF
14221
14222fi
14223
14224done
14225
14226
14227for ac_header in unistd.h
14228do
14229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14230if eval "test \"\${$as_ac_Header+set}\" = set"; then
14231 echo "$as_me:$LINENO: checking for $ac_header" >&5
14232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14233if eval "test \"\${$as_ac_Header+set}\" = set"; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235fi
14236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14238else
14239 # Is the header compilable?
14240echo "$as_me:$LINENO: checking $ac_header usability" >&5
14241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14242cat >conftest.$ac_ext <<_ACEOF
14243/* confdefs.h. */
14244_ACEOF
14245cat confdefs.h >>conftest.$ac_ext
14246cat >>conftest.$ac_ext <<_ACEOF
14247/* end confdefs.h. */
14248$ac_includes_default
14249#include <$ac_header>
14250_ACEOF
14251rm -f conftest.$ac_objext
14252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14253 (eval $ac_compile) 2>conftest.er1
a848cd7e 14254 ac_status=$?
ac1cb8d3
VS
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
a848cd7e
SC
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
9dd0f6c2 14260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_header_compiler=yes
14273else
14274 echo "$as_me: failed program was:" >&5
14275sed 's/^/| /' conftest.$ac_ext >&5
14276
14277ac_header_compiler=no
14278fi
ac1cb8d3 14279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281echo "${ECHO_T}$ac_header_compiler" >&6
14282
14283# Is the header present?
14284echo "$as_me:$LINENO: checking $ac_header presence" >&5
14285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14286cat >conftest.$ac_ext <<_ACEOF
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
14292#include <$ac_header>
14293_ACEOF
14294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } >/dev/null; then
14302 if test -s conftest.err; then
14303 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14305 else
14306 ac_cpp_err=
14307 fi
14308else
14309 ac_cpp_err=yes
14310fi
14311if test -z "$ac_cpp_err"; then
14312 ac_header_preproc=yes
14313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317 ac_header_preproc=no
14318fi
14319rm -f conftest.err conftest.$ac_ext
14320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14321echo "${ECHO_T}$ac_header_preproc" >&6
14322
14323# So? What about this header?
ac1cb8d3
VS
14324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14325 yes:no: )
a848cd7e
SC
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14330 ac_header_preproc=yes
a848cd7e 14331 ;;
ac1cb8d3 14332 no:yes:* )
a848cd7e
SC
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14345 (
14346 cat <<\_ASBOX
ac1cb8d3
VS
14347## ----------------------------------------- ##
14348## Report this to wx-dev@lists.wxwidgets.org ##
14349## ----------------------------------------- ##
a848cd7e
SC
14350_ASBOX
14351 ) |
14352 sed "s/^/$as_me: WARNING: /" >&2
14353 ;;
14354esac
14355echo "$as_me:$LINENO: checking for $ac_header" >&5
14356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14357if eval "test \"\${$as_ac_Header+set}\" = set"; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359else
ac1cb8d3 14360 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14361fi
14362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14364
14365fi
14366if test `eval echo '${'$as_ac_Header'}'` = yes; then
14367 cat >>confdefs.h <<_ACEOF
14368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14369_ACEOF
14370
14371fi
14372
14373done
14374
14375
14376for ac_header in wchar.h
14377do
14378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14379if eval "test \"\${$as_ac_Header+set}\" = set"; then
14380 echo "$as_me:$LINENO: checking for $ac_header" >&5
14381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14382if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384fi
14385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14387else
14388 # Is the header compilable?
14389echo "$as_me:$LINENO: checking $ac_header usability" >&5
14390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397$ac_includes_default
14398#include <$ac_header>
14399_ACEOF
14400rm -f conftest.$ac_objext
14401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14402 (eval $ac_compile) 2>conftest.er1
a848cd7e 14403 ac_status=$?
ac1cb8d3
VS
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
a848cd7e
SC
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
9dd0f6c2 14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_header_compiler=yes
14422else
14423 echo "$as_me: failed program was:" >&5
14424sed 's/^/| /' conftest.$ac_ext >&5
14425
14426ac_header_compiler=no
14427fi
ac1cb8d3 14428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430echo "${ECHO_T}$ac_header_compiler" >&6
14431
14432# Is the header present?
14433echo "$as_me:$LINENO: checking $ac_header presence" >&5
14434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14435cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h. */
14441#include <$ac_header>
14442_ACEOF
14443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } >/dev/null; then
14451 if test -s conftest.err; then
14452 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14454 else
14455 ac_cpp_err=
14456 fi
14457else
14458 ac_cpp_err=yes
14459fi
14460if test -z "$ac_cpp_err"; then
14461 ac_header_preproc=yes
14462else
14463 echo "$as_me: failed program was:" >&5
14464sed 's/^/| /' conftest.$ac_ext >&5
14465
14466 ac_header_preproc=no
14467fi
14468rm -f conftest.err conftest.$ac_ext
14469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14470echo "${ECHO_T}$ac_header_preproc" >&6
14471
14472# So? What about this header?
ac1cb8d3
VS
14473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14474 yes:no: )
a848cd7e
SC
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14479 ac_header_preproc=yes
a848cd7e 14480 ;;
ac1cb8d3 14481 no:yes:* )
a848cd7e
SC
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14494 (
14495 cat <<\_ASBOX
ac1cb8d3
VS
14496## ----------------------------------------- ##
14497## Report this to wx-dev@lists.wxwidgets.org ##
14498## ----------------------------------------- ##
a848cd7e
SC
14499_ASBOX
14500 ) |
14501 sed "s/^/$as_me: WARNING: /" >&2
14502 ;;
14503esac
14504echo "$as_me:$LINENO: checking for $ac_header" >&5
14505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14506if eval "test \"\${$as_ac_Header+set}\" = set"; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
ac1cb8d3 14509 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14510fi
14511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14513
14514fi
14515if test `eval echo '${'$as_ac_Header'}'` = yes; then
14516 cat >>confdefs.h <<_ACEOF
14517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14518_ACEOF
14519
14520fi
14521
14522done
14523
14524
14525if test "$ac_cv_header_wchar_h" != "yes"; then
14526
14527for ac_header in wcstr.h
14528do
14529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14530if eval "test \"\${$as_ac_Header+set}\" = set"; then
14531 echo "$as_me:$LINENO: checking for $ac_header" >&5
14532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14533if eval "test \"\${$as_ac_Header+set}\" = set"; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535fi
14536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14538else
14539 # Is the header compilable?
14540echo "$as_me:$LINENO: checking $ac_header usability" >&5
14541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14542cat >conftest.$ac_ext <<_ACEOF
14543/* confdefs.h. */
14544_ACEOF
14545cat confdefs.h >>conftest.$ac_ext
14546cat >>conftest.$ac_ext <<_ACEOF
14547/* end confdefs.h. */
14548$ac_includes_default
14549#include <$ac_header>
14550_ACEOF
14551rm -f conftest.$ac_objext
14552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14553 (eval $ac_compile) 2>conftest.er1
a848cd7e 14554 ac_status=$?
ac1cb8d3
VS
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
a848cd7e
SC
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
9dd0f6c2 14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_header_compiler=yes
14573else
14574 echo "$as_me: failed program was:" >&5
14575sed 's/^/| /' conftest.$ac_ext >&5
14576
14577ac_header_compiler=no
14578fi
ac1cb8d3 14579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14581echo "${ECHO_T}$ac_header_compiler" >&6
14582
14583# Is the header present?
14584echo "$as_me:$LINENO: checking $ac_header presence" >&5
14585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14586cat >conftest.$ac_ext <<_ACEOF
14587/* confdefs.h. */
14588_ACEOF
14589cat confdefs.h >>conftest.$ac_ext
14590cat >>conftest.$ac_ext <<_ACEOF
14591/* end confdefs.h. */
14592#include <$ac_header>
14593_ACEOF
14594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14596 ac_status=$?
14597 grep -v '^ *+' conftest.er1 >conftest.err
14598 rm -f conftest.er1
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } >/dev/null; then
14602 if test -s conftest.err; then
14603 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14605 else
14606 ac_cpp_err=
14607 fi
14608else
14609 ac_cpp_err=yes
14610fi
14611if test -z "$ac_cpp_err"; then
14612 ac_header_preproc=yes
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 ac_header_preproc=no
14618fi
14619rm -f conftest.err conftest.$ac_ext
14620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14621echo "${ECHO_T}$ac_header_preproc" >&6
14622
14623# So? What about this header?
ac1cb8d3
VS
14624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14625 yes:no: )
a848cd7e
SC
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14630 ac_header_preproc=yes
a848cd7e 14631 ;;
ac1cb8d3 14632 no:yes:* )
a848cd7e
SC
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14645 (
14646 cat <<\_ASBOX
ac1cb8d3
VS
14647## ----------------------------------------- ##
14648## Report this to wx-dev@lists.wxwidgets.org ##
14649## ----------------------------------------- ##
a848cd7e
SC
14650_ASBOX
14651 ) |
14652 sed "s/^/$as_me: WARNING: /" >&2
14653 ;;
14654esac
14655echo "$as_me:$LINENO: checking for $ac_header" >&5
14656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14657if eval "test \"\${$as_ac_Header+set}\" = set"; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14659else
ac1cb8d3 14660 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14661fi
14662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14664
14665fi
14666if test `eval echo '${'$as_ac_Header'}'` = yes; then
14667 cat >>confdefs.h <<_ACEOF
14668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14669_ACEOF
14670
14671fi
14672
14673done
14674
14675fi
14676
14677
14678for ac_header in fnmatch.h
14679do
14680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14681if eval "test \"\${$as_ac_Header+set}\" = set"; then
14682 echo "$as_me:$LINENO: checking for $ac_header" >&5
14683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14684if eval "test \"\${$as_ac_Header+set}\" = set"; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686fi
14687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14689else
14690 # Is the header compilable?
14691echo "$as_me:$LINENO: checking $ac_header usability" >&5
14692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14693cat >conftest.$ac_ext <<_ACEOF
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699$ac_includes_default
14700#include <$ac_header>
14701_ACEOF
14702rm -f conftest.$ac_objext
14703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14704 (eval $ac_compile) 2>conftest.er1
a848cd7e 14705 ac_status=$?
ac1cb8d3
VS
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
a848cd7e
SC
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
9dd0f6c2 14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14724else
14725 echo "$as_me: failed program was:" >&5
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
14728ac_header_compiler=no
14729fi
ac1cb8d3 14730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732echo "${ECHO_T}$ac_header_compiler" >&6
14733
14734# Is the header present?
14735echo "$as_me:$LINENO: checking $ac_header presence" >&5
14736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14737cat >conftest.$ac_ext <<_ACEOF
14738/* confdefs.h. */
14739_ACEOF
14740cat confdefs.h >>conftest.$ac_ext
14741cat >>conftest.$ac_ext <<_ACEOF
14742/* end confdefs.h. */
14743#include <$ac_header>
14744_ACEOF
14745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14756 else
14757 ac_cpp_err=
14758 fi
14759else
14760 ac_cpp_err=yes
14761fi
14762if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_preproc=no
14769fi
14770rm -f conftest.err conftest.$ac_ext
14771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772echo "${ECHO_T}$ac_header_preproc" >&6
14773
14774# So? What about this header?
ac1cb8d3
VS
14775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776 yes:no: )
a848cd7e
SC
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc=yes
a848cd7e 14782 ;;
ac1cb8d3 14783 no:yes:* )
a848cd7e
SC
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14796 (
14797 cat <<\_ASBOX
ac1cb8d3
VS
14798## ----------------------------------------- ##
14799## Report this to wx-dev@lists.wxwidgets.org ##
14800## ----------------------------------------- ##
a848cd7e
SC
14801_ASBOX
14802 ) |
14803 sed "s/^/$as_me: WARNING: /" >&2
14804 ;;
14805esac
14806echo "$as_me:$LINENO: checking for $ac_header" >&5
14807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810else
ac1cb8d3 14811 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14812fi
14813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14815
14816fi
14817if test `eval echo '${'$as_ac_Header'}'` = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820_ACEOF
14821
14822fi
14823
14824done
14825
14826
14827if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14828
14829for ac_func in fnmatch
14830do
14831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14832echo "$as_me:$LINENO: checking for $ac_func" >&5
14833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14834if eval "test \"\${$as_ac_var+set}\" = set"; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836else
14837 cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
ac1cb8d3
VS
14843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14845#define $ac_func innocuous_$ac_func
14846
a848cd7e
SC
14847/* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char $ac_func (); below.
14849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14851
a848cd7e
SC
14852#ifdef __STDC__
14853# include <limits.h>
14854#else
14855# include <assert.h>
14856#endif
ac1cb8d3
VS
14857
14858#undef $ac_func
14859
a848cd7e
SC
14860/* Override any gcc2 internal prototype to avoid an error. */
14861#ifdef __cplusplus
14862extern "C"
14863{
14864#endif
14865/* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14867char $ac_func ();
14868/* The GNU C library defines this for functions which it implements
14869 to always fail with ENOSYS. Some functions are actually named
14870 something starting with __ and the normal name is an alias. */
14871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14872choke me
14873#else
14874char (*f) () = $ac_func;
14875#endif
14876#ifdef __cplusplus
14877}
14878#endif
14879
14880int
14881main ()
14882{
14883return f != $ac_func;
14884 ;
14885 return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext conftest$ac_exeext
14889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14890 (eval $ac_link) 2>conftest.er1
a848cd7e 14891 ac_status=$?
ac1cb8d3
VS
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
a848cd7e
SC
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
9dd0f6c2 14897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 eval "$as_ac_var=yes"
14910else
14911 echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914eval "$as_ac_var=no"
14915fi
ac1cb8d3
VS
14916rm -f conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14918fi
14919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14921if test `eval echo '${'$as_ac_var'}'` = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14924_ACEOF
14925
14926fi
14927done
14928
14929fi
14930
14931
14932for ac_header in langinfo.h
14933do
14934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935if eval "test \"\${$as_ac_Header+set}\" = set"; then
14936 echo "$as_me:$LINENO: checking for $ac_header" >&5
14937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14938if eval "test \"\${$as_ac_Header+set}\" = set"; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940fi
14941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14943else
14944 # Is the header compilable?
14945echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14947cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953$ac_includes_default
14954#include <$ac_header>
14955_ACEOF
14956rm -f conftest.$ac_objext
14957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14958 (eval $ac_compile) 2>conftest.er1
a848cd7e 14959 ac_status=$?
ac1cb8d3
VS
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -f conftest.er1
14962 cat conftest.err >&5
a848cd7e
SC
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
9dd0f6c2 14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_header_compiler=yes
14978else
14979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982ac_header_compiler=no
14983fi
ac1cb8d3 14984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14986echo "${ECHO_T}$ac_header_compiler" >&6
14987
14988# Is the header present?
14989echo "$as_me:$LINENO: checking $ac_header presence" >&5
14990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14991cat >conftest.$ac_ext <<_ACEOF
14992/* confdefs.h. */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h. */
14997#include <$ac_header>
14998_ACEOF
14999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } >/dev/null; then
15007 if test -s conftest.err; then
15008 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15010 else
15011 ac_cpp_err=
15012 fi
15013else
15014 ac_cpp_err=yes
15015fi
15016if test -z "$ac_cpp_err"; then
15017 ac_header_preproc=yes
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_preproc=no
15023fi
15024rm -f conftest.err conftest.$ac_ext
15025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15026echo "${ECHO_T}$ac_header_preproc" >&6
15027
15028# So? What about this header?
ac1cb8d3
VS
15029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030 yes:no: )
a848cd7e
SC
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15035 ac_header_preproc=yes
a848cd7e 15036 ;;
ac1cb8d3 15037 no:yes:* )
a848cd7e
SC
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15050 (
15051 cat <<\_ASBOX
ac1cb8d3
VS
15052## ----------------------------------------- ##
15053## Report this to wx-dev@lists.wxwidgets.org ##
15054## ----------------------------------------- ##
a848cd7e
SC
15055_ASBOX
15056 ) |
15057 sed "s/^/$as_me: WARNING: /" >&2
15058 ;;
15059esac
15060echo "$as_me:$LINENO: checking for $ac_header" >&5
15061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15062if eval "test \"\${$as_ac_Header+set}\" = set"; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064else
ac1cb8d3 15065 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15066fi
15067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15069
15070fi
15071if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072 cat >>confdefs.h <<_ACEOF
15073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15074_ACEOF
15075
15076fi
15077
15078done
15079
15080
15081case "${host}" in
15082 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15083 if test $ac_cv_header_langinfo_h = "yes" \
15084 -a \( "$wx_cv_gccversion" = "EMX2" \
15085 -o "$wx_cv_gccversion" = "EMX3" \
15086 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15087 LIBS="$LIBS -lintl"
15088 fi
15089 ;;
15090esac
15091
15092if test "$wxUSE_GUI" = "yes"; then
15093 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15094
15095for ac_header in X11/Xlib.h
15096do
15097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15098if eval "test \"\${$as_ac_Header+set}\" = set"; then
15099 echo "$as_me:$LINENO: checking for $ac_header" >&5
15100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15101if eval "test \"\${$as_ac_Header+set}\" = set"; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15103fi
15104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15106else
15107 # Is the header compilable?
15108echo "$as_me:$LINENO: checking $ac_header usability" >&5
15109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15110cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117#include <$ac_header>
15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15121 (eval $ac_compile) 2>conftest.er1
a848cd7e 15122 ac_status=$?
ac1cb8d3
VS
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
a848cd7e
SC
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
9dd0f6c2 15128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_header_compiler=yes
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145ac_header_compiler=no
15146fi
ac1cb8d3 15147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149echo "${ECHO_T}$ac_header_compiler" >&6
15150
15151# Is the header present?
15152echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15154cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160#include <$ac_header>
15161_ACEOF
15162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } >/dev/null; then
15170 if test -s conftest.err; then
15171 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15173 else
15174 ac_cpp_err=
15175 fi
15176else
15177 ac_cpp_err=yes
15178fi
15179if test -z "$ac_cpp_err"; then
15180 ac_header_preproc=yes
15181else
15182 echo "$as_me: failed program was:" >&5
15183sed 's/^/| /' conftest.$ac_ext >&5
15184
15185 ac_header_preproc=no
15186fi
15187rm -f conftest.err conftest.$ac_ext
15188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15189echo "${ECHO_T}$ac_header_preproc" >&6
15190
15191# So? What about this header?
ac1cb8d3
VS
15192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15193 yes:no: )
a848cd7e
SC
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15198 ac_header_preproc=yes
a848cd7e 15199 ;;
ac1cb8d3 15200 no:yes:* )
a848cd7e
SC
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15213 (
15214 cat <<\_ASBOX
ac1cb8d3
VS
15215## ----------------------------------------- ##
15216## Report this to wx-dev@lists.wxwidgets.org ##
15217## ----------------------------------------- ##
a848cd7e
SC
15218_ASBOX
15219 ) |
15220 sed "s/^/$as_me: WARNING: /" >&2
15221 ;;
15222esac
15223echo "$as_me:$LINENO: checking for $ac_header" >&5
15224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15225if eval "test \"\${$as_ac_Header+set}\" = set"; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227else
ac1cb8d3 15228 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15229fi
15230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15232
15233fi
15234if test `eval echo '${'$as_ac_Header'}'` = yes; then
15235 cat >>confdefs.h <<_ACEOF
15236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15237_ACEOF
15238
15239fi
15240
15241done
15242
15243
15244for ac_header in X11/XKBlib.h
15245do
15246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15247echo "$as_me:$LINENO: checking for $ac_header" >&5
15248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15249if eval "test \"\${$as_ac_Header+set}\" = set"; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252 cat >conftest.$ac_ext <<_ACEOF
15253/* confdefs.h. */
15254_ACEOF
15255cat confdefs.h >>conftest.$ac_ext
15256cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */
15258
15259 #if HAVE_X11_XLIB_H
15260 #include <X11/Xlib.h>
15261 #endif
15262
15263
15264#include <$ac_header>
15265_ACEOF
15266rm -f conftest.$ac_objext
15267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15268 (eval $ac_compile) 2>conftest.er1
a848cd7e 15269 ac_status=$?
ac1cb8d3
VS
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
a848cd7e
SC
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
9dd0f6c2 15275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 eval "$as_ac_Header=yes"
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292eval "$as_ac_Header=no"
15293fi
ac1cb8d3 15294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15295fi
15296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15298if test `eval echo '${'$as_ac_Header'}'` = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301_ACEOF
15302
15303fi
15304
15305done
15306
15307 fi
15308fi
15309
15310
15311echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15312echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15313if test "${ac_cv_c_const+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322
15323int
15324main ()
15325{
15326/* FIXME: Include the comments suggested by Paul. */
15327#ifndef __cplusplus
15328 /* Ultrix mips cc rejects this. */
15329 typedef int charset[2];
15330 const charset x;
15331 /* SunOS 4.1.1 cc rejects this. */
15332 char const *const *ccp;
15333 char **p;
15334 /* NEC SVR4.0.2 mips cc rejects this. */
15335 struct point {int x, y;};
15336 static struct point const zero = {0,0};
15337 /* AIX XL C 1.02.0.0 rejects this.
15338 It does not let you subtract one const X* pointer from another in
15339 an arm of an if-expression whose if-part is not a constant
15340 expression */
15341 const char *g = "string";
15342 ccp = &g + (g ? g-g : 0);
15343 /* HPUX 7.0 cc rejects these. */
15344 ++ccp;
15345 p = (char**) ccp;
15346 ccp = (char const *const *) p;
15347 { /* SCO 3.2v4 cc rejects this. */
15348 char *t;
15349 char const *s = 0 ? (char *) 0 : (char const *) 0;
15350
15351 *t++ = 0;
15352 }
15353 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15354 int x[] = {25, 17};
15355 const int *foo = &x[0];
15356 ++foo;
15357 }
15358 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15359 typedef const int *iptr;
15360 iptr p = 0;
15361 ++p;
15362 }
15363 { /* AIX XL C 1.02.0.0 rejects this saying
15364 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15365 struct s { int j; const int *ap[3]; };
15366 struct s *b; b->j = 5;
15367 }
15368 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15369 const int foo = 10;
15370 }
15371#endif
15372
15373 ;
15374 return 0;
15375}
15376_ACEOF
15377rm -f conftest.$ac_objext
15378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15379 (eval $ac_compile) 2>conftest.er1
a848cd7e 15380 ac_status=$?
ac1cb8d3
VS
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
a848cd7e
SC
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
9dd0f6c2 15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_c_const=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_cv_c_const=no
15404fi
ac1cb8d3 15405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15406fi
15407echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15408echo "${ECHO_T}$ac_cv_c_const" >&6
15409if test $ac_cv_c_const = no; then
15410
15411cat >>confdefs.h <<\_ACEOF
15412#define const
15413_ACEOF
15414
15415fi
15416
15417echo "$as_me:$LINENO: checking for inline" >&5
15418echo $ECHO_N "checking for inline... $ECHO_C" >&6
15419if test "${ac_cv_c_inline+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421else
15422 ac_cv_c_inline=no
15423for ac_kw in inline __inline__ __inline; do
15424 cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430#ifndef __cplusplus
15431typedef int foo_t;
15432static $ac_kw foo_t static_foo () {return 0; }
15433$ac_kw foo_t foo () {return 0; }
15434#endif
15435
15436_ACEOF
15437rm -f conftest.$ac_objext
15438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15439 (eval $ac_compile) 2>conftest.er1
a848cd7e 15440 ac_status=$?
ac1cb8d3
VS
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
a848cd7e
SC
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
9dd0f6c2 15446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_c_inline=$ac_kw; break
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463fi
ac1cb8d3 15464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15465done
15466
15467fi
15468echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15469echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15470
15471
a848cd7e
SC
15472case $ac_cv_c_inline in
15473 inline | yes) ;;
ac1cb8d3
VS
15474 *)
15475 case $ac_cv_c_inline in
15476 no) ac_val=;;
15477 *) ac_val=$ac_cv_c_inline;;
15478 esac
15479 cat >>confdefs.h <<_ACEOF
15480#ifndef __cplusplus
15481#define inline $ac_val
15482#endif
de59c161 15483_ACEOF
ac1cb8d3 15484 ;;
a848cd7e
SC
15485esac
15486
15487
15488echo "$as_me:$LINENO: checking for char" >&5
15489echo $ECHO_N "checking for char... $ECHO_C" >&6
15490if test "${ac_cv_type_char+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492else
15493 cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499$ac_includes_default
15500int
15501main ()
15502{
15503if ((char *) 0)
15504 return 0;
15505if (sizeof (char))
15506 return 0;
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest.$ac_objext
15512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15513 (eval $ac_compile) 2>conftest.er1
a848cd7e 15514 ac_status=$?
ac1cb8d3
VS
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
a848cd7e
SC
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
9dd0f6c2 15520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_type_char=yes
15533else
15534 echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537ac_cv_type_char=no
15538fi
ac1cb8d3 15539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15540fi
15541echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15542echo "${ECHO_T}$ac_cv_type_char" >&6
15543
15544echo "$as_me:$LINENO: checking size of char" >&5
15545echo $ECHO_N "checking size of char... $ECHO_C" >&6
15546if test "${ac_cv_sizeof_char+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15548else
15549 if test "$ac_cv_type_char" = yes; then
15550 # The cast to unsigned long works around a bug in the HP C Compiler
15551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553 # This bug is HP SR number 8606223364.
15554 if test "$cross_compiling" = yes; then
15555 # Depending upon the size, compute the lo and hi bounds.
15556cat >conftest.$ac_ext <<_ACEOF
15557/* confdefs.h. */
15558_ACEOF
15559cat confdefs.h >>conftest.$ac_ext
15560cat >>conftest.$ac_ext <<_ACEOF
15561/* end confdefs.h. */
15562$ac_includes_default
15563int
15564main ()
15565{
15566static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15567test_array [0] = 0
15568
15569 ;
15570 return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext
15574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15575 (eval $ac_compile) 2>conftest.er1
a848cd7e 15576 ac_status=$?
ac1cb8d3
VS
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
a848cd7e
SC
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
9dd0f6c2 15582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } &&
15588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_lo=0 ac_mid=0
15595 while :; do
15596 cat >conftest.$ac_ext <<_ACEOF
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602$ac_includes_default
15603int
15604main ()
15605{
15606static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15607test_array [0] = 0
15608
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15615 (eval $ac_compile) 2>conftest.er1
a848cd7e 15616 ac_status=$?
ac1cb8d3
VS
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
a848cd7e
SC
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
9dd0f6c2 15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_hi=$ac_mid; break
15635else
15636 echo "$as_me: failed program was:" >&5
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15640 if test $ac_lo -le $ac_mid; then
15641 ac_lo= ac_hi=
15642 break
15643 fi
15644 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15645fi
ac1cb8d3 15646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15647 done
15648else
15649 echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652cat >conftest.$ac_ext <<_ACEOF
15653/* confdefs.h. */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h. */
15658$ac_includes_default
15659int
15660main ()
15661{
15662static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15663test_array [0] = 0
15664
15665 ;
15666 return 0;
15667}
15668_ACEOF
15669rm -f conftest.$ac_objext
15670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15671 (eval $ac_compile) 2>conftest.er1
a848cd7e 15672 ac_status=$?
ac1cb8d3
VS
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
a848cd7e
SC
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
9dd0f6c2 15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_hi=-1 ac_mid=-1
15691 while :; do
15692 cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
15698$ac_includes_default
15699int
15700main ()
15701{
15702static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15703test_array [0] = 0
15704
15705 ;
15706 return 0;
15707}
15708_ACEOF
15709rm -f conftest.$ac_objext
15710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15711 (eval $ac_compile) 2>conftest.er1
a848cd7e 15712 ac_status=$?
ac1cb8d3
VS
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
a848cd7e
SC
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
9dd0f6c2 15718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_lo=$ac_mid; break
15731else
15732 echo "$as_me: failed program was:" >&5
15733sed 's/^/| /' conftest.$ac_ext >&5
15734
15735ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15736 if test $ac_mid -le $ac_hi; then
15737 ac_lo= ac_hi=
15738 break
15739 fi
15740 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15741fi
ac1cb8d3 15742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15743 done
15744else
15745 echo "$as_me: failed program was:" >&5
15746sed 's/^/| /' conftest.$ac_ext >&5
15747
15748ac_lo= ac_hi=
15749fi
ac1cb8d3 15750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15751fi
ac1cb8d3 15752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15753# Binary search between lo and hi bounds.
15754while test "x$ac_lo" != "x$ac_hi"; do
15755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15756 cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h. */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h. */
15762$ac_includes_default
15763int
15764main ()
15765{
15766static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15767test_array [0] = 0
15768
15769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext
15774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15775 (eval $ac_compile) 2>conftest.er1
a848cd7e 15776 ac_status=$?
ac1cb8d3
VS
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
a848cd7e
SC
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
9dd0f6c2 15782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15794 ac_hi=$ac_mid
15795else
15796 echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
15799ac_lo=`expr '(' $ac_mid ')' + 1`
15800fi
ac1cb8d3 15801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15802done
15803case $ac_lo in
15804?*) ac_cv_sizeof_char=$ac_lo;;
15805'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15806See \`config.log' for more details." >&5
15807echo "$as_me: error: cannot compute sizeof (char), 77
15808See \`config.log' for more details." >&2;}
15809 { (exit 1); exit 1; }; } ;;
15810esac
15811else
15812 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15813 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15814echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15815 { (exit 1); exit 1; }; }
15816else
15817 cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
15823$ac_includes_default
15824long longval () { return (long) (sizeof (char)); }
15825unsigned long ulongval () { return (long) (sizeof (char)); }
15826#include <stdio.h>
15827#include <stdlib.h>
15828int
15829main ()
15830{
15831
15832 FILE *f = fopen ("conftest.val", "w");
15833 if (! f)
15834 exit (1);
15835 if (((long) (sizeof (char))) < 0)
15836 {
15837 long i = longval ();
15838 if (i != ((long) (sizeof (char))))
15839 exit (1);
15840 fprintf (f, "%ld\n", i);
15841 }
15842 else
15843 {
15844 unsigned long i = ulongval ();
15845 if (i != ((long) (sizeof (char))))
15846 exit (1);
15847 fprintf (f, "%lu\n", i);
15848 }
15849 exit (ferror (f) || fclose (f) != 0);
15850
15851 ;
15852 return 0;
15853}
15854_ACEOF
15855rm -f conftest$ac_exeext
15856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_sizeof_char=`cat conftest.val`
15867else
15868 echo "$as_me: program exited with status $ac_status" >&5
15869echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872( exit $ac_status )
15873{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15874See \`config.log' for more details." >&5
15875echo "$as_me: error: cannot compute sizeof (char), 77
15876See \`config.log' for more details." >&2;}
15877 { (exit 1); exit 1; }; }
15878fi
ac1cb8d3 15879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15880fi
15881fi
15882rm -f conftest.val
15883else
15884 ac_cv_sizeof_char=0
15885fi
15886fi
15887echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15888echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15889cat >>confdefs.h <<_ACEOF
15890#define SIZEOF_CHAR $ac_cv_sizeof_char
15891_ACEOF
15892
15893
15894echo "$as_me:$LINENO: checking for short" >&5
15895echo $ECHO_N "checking for short... $ECHO_C" >&6
15896if test "${ac_cv_type_short+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898else
15899 cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
15905$ac_includes_default
15906int
15907main ()
15908{
15909if ((short *) 0)
15910 return 0;
15911if (sizeof (short))
15912 return 0;
15913 ;
15914 return 0;
15915}
15916_ACEOF
15917rm -f conftest.$ac_objext
15918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15919 (eval $ac_compile) 2>conftest.er1
a848cd7e 15920 ac_status=$?
ac1cb8d3
VS
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
a848cd7e
SC
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
9dd0f6c2 15926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } &&
15932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 ac_cv_type_short=yes
15939else
15940 echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943ac_cv_type_short=no
15944fi
ac1cb8d3 15945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15946fi
15947echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15948echo "${ECHO_T}$ac_cv_type_short" >&6
15949
15950echo "$as_me:$LINENO: checking size of short" >&5
15951echo $ECHO_N "checking size of short... $ECHO_C" >&6
15952if test "${ac_cv_sizeof_short+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954else
15955 if test "$ac_cv_type_short" = yes; then
15956 # The cast to unsigned long works around a bug in the HP C Compiler
15957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15959 # This bug is HP SR number 8606223364.
15960 if test "$cross_compiling" = yes; then
15961 # Depending upon the size, compute the lo and hi bounds.
15962cat >conftest.$ac_ext <<_ACEOF
15963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
15968$ac_includes_default
15969int
15970main ()
15971{
15972static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15973test_array [0] = 0
15974
15975 ;
15976 return 0;
15977}
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15981 (eval $ac_compile) 2>conftest.er1
a848cd7e 15982 ac_status=$?
ac1cb8d3
VS
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
a848cd7e
SC
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
9dd0f6c2 15988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_lo=0 ac_mid=0
16001 while :; do
16002 cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008$ac_includes_default
16009int
16010main ()
16011{
16012static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16013test_array [0] = 0
16014
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext
16020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16021 (eval $ac_compile) 2>conftest.er1
a848cd7e 16022 ac_status=$?
ac1cb8d3
VS
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
a848cd7e
SC
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
9dd0f6c2 16028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_hi=$ac_mid; break
16041else
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16046 if test $ac_lo -le $ac_mid; then
16047 ac_lo= ac_hi=
16048 break
16049 fi
16050 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16051fi
ac1cb8d3 16052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16053 done
16054else
16055 echo "$as_me: failed program was:" >&5
16056sed 's/^/| /' conftest.$ac_ext >&5
16057
16058cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064$ac_includes_default
16065int
16066main ()
16067{
16068static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16069test_array [0] = 0
16070
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16077 (eval $ac_compile) 2>conftest.er1
a848cd7e 16078 ac_status=$?
ac1cb8d3
VS
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
a848cd7e
SC
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
9dd0f6c2 16084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_hi=-1 ac_mid=-1
16097 while :; do
16098 cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105int
16106main ()
16107{
16108static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16109test_array [0] = 0
16110
16111 ;
16112 return 0;
16113}
16114_ACEOF
16115rm -f conftest.$ac_objext
16116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16117 (eval $ac_compile) 2>conftest.er1
a848cd7e 16118 ac_status=$?
ac1cb8d3
VS
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
a848cd7e
SC
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
9dd0f6c2 16124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_lo=$ac_mid; break
16137else
16138 echo "$as_me: failed program was:" >&5
16139sed 's/^/| /' conftest.$ac_ext >&5
16140
16141ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16142 if test $ac_mid -le $ac_hi; then
16143 ac_lo= ac_hi=
16144 break
16145 fi
16146 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16147fi
ac1cb8d3 16148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16149 done
16150else
16151 echo "$as_me: failed program was:" >&5
16152sed 's/^/| /' conftest.$ac_ext >&5
16153
16154ac_lo= ac_hi=
16155fi
ac1cb8d3 16156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16157fi
ac1cb8d3 16158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16159# Binary search between lo and hi bounds.
16160while test "x$ac_lo" != "x$ac_hi"; do
16161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16162 cat >conftest.$ac_ext <<_ACEOF
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168$ac_includes_default
16169int
16170main ()
16171{
16172static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16173test_array [0] = 0
16174
16175 ;
16176 return 0;
16177}
16178_ACEOF
16179rm -f conftest.$ac_objext
16180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16181 (eval $ac_compile) 2>conftest.er1
a848cd7e 16182 ac_status=$?
ac1cb8d3
VS
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
a848cd7e
SC
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
9dd0f6c2 16188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_hi=$ac_mid
16201else
16202 echo "$as_me: failed program was:" >&5
16203sed 's/^/| /' conftest.$ac_ext >&5
16204
16205ac_lo=`expr '(' $ac_mid ')' + 1`
16206fi
ac1cb8d3 16207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16208done
16209case $ac_lo in
16210?*) ac_cv_sizeof_short=$ac_lo;;
16211'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16212See \`config.log' for more details." >&5
16213echo "$as_me: error: cannot compute sizeof (short), 77
16214See \`config.log' for more details." >&2;}
16215 { (exit 1); exit 1; }; } ;;
16216esac
16217else
16218 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16219 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16220echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16221 { (exit 1); exit 1; }; }
16222else
16223 cat >conftest.$ac_ext <<_ACEOF
16224/* confdefs.h. */
16225_ACEOF
16226cat confdefs.h >>conftest.$ac_ext
16227cat >>conftest.$ac_ext <<_ACEOF
16228/* end confdefs.h. */
16229$ac_includes_default
16230long longval () { return (long) (sizeof (short)); }
16231unsigned long ulongval () { return (long) (sizeof (short)); }
16232#include <stdio.h>
16233#include <stdlib.h>
16234int
16235main ()
16236{
16237
16238 FILE *f = fopen ("conftest.val", "w");
16239 if (! f)
16240 exit (1);
16241 if (((long) (sizeof (short))) < 0)
16242 {
16243 long i = longval ();
16244 if (i != ((long) (sizeof (short))))
16245 exit (1);
16246 fprintf (f, "%ld\n", i);
16247 }
16248 else
16249 {
16250 unsigned long i = ulongval ();
16251 if (i != ((long) (sizeof (short))))
16252 exit (1);
16253 fprintf (f, "%lu\n", i);
16254 }
16255 exit (ferror (f) || fclose (f) != 0);
16256
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest$ac_exeext
16262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263 (eval $ac_link) 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_sizeof_short=`cat conftest.val`
16273else
16274 echo "$as_me: program exited with status $ac_status" >&5
16275echo "$as_me: failed program was:" >&5
16276sed 's/^/| /' conftest.$ac_ext >&5
16277
16278( exit $ac_status )
16279{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16280See \`config.log' for more details." >&5
16281echo "$as_me: error: cannot compute sizeof (short), 77
16282See \`config.log' for more details." >&2;}
16283 { (exit 1); exit 1; }; }
16284fi
ac1cb8d3 16285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16286fi
16287fi
16288rm -f conftest.val
16289else
16290 ac_cv_sizeof_short=0
16291fi
16292fi
16293echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16294echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16295cat >>confdefs.h <<_ACEOF
16296#define SIZEOF_SHORT $ac_cv_sizeof_short
16297_ACEOF
16298
16299
16300echo "$as_me:$LINENO: checking for void *" >&5
16301echo $ECHO_N "checking for void *... $ECHO_C" >&6
16302if test "${ac_cv_type_void_p+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305 cat >conftest.$ac_ext <<_ACEOF
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311$ac_includes_default
16312int
16313main ()
16314{
16315if ((void * *) 0)
16316 return 0;
16317if (sizeof (void *))
16318 return 0;
16319 ;
16320 return 0;
16321}
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16325 (eval $ac_compile) 2>conftest.er1
a848cd7e 16326 ac_status=$?
ac1cb8d3
VS
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
a848cd7e
SC
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
9dd0f6c2 16332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 ac_cv_type_void_p=yes
16345else
16346 echo "$as_me: failed program was:" >&5
16347sed 's/^/| /' conftest.$ac_ext >&5
16348
16349ac_cv_type_void_p=no
16350fi
ac1cb8d3 16351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16352fi
16353echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16354echo "${ECHO_T}$ac_cv_type_void_p" >&6
16355
16356echo "$as_me:$LINENO: checking size of void *" >&5
16357echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16358if test "${ac_cv_sizeof_void_p+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360else
16361 if test "$ac_cv_type_void_p" = yes; then
16362 # The cast to unsigned long works around a bug in the HP C Compiler
16363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16365 # This bug is HP SR number 8606223364.
16366 if test "$cross_compiling" = yes; then
16367 # Depending upon the size, compute the lo and hi bounds.
16368cat >conftest.$ac_ext <<_ACEOF
16369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
16373/* end confdefs.h. */
16374$ac_includes_default
16375int
16376main ()
16377{
16378static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16379test_array [0] = 0
16380
16381 ;
16382 return 0;
16383}
16384_ACEOF
16385rm -f conftest.$ac_objext
16386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16387 (eval $ac_compile) 2>conftest.er1
a848cd7e 16388 ac_status=$?
ac1cb8d3
VS
16389 grep -v '^ *+' conftest.er1 >conftest.err
16390 rm -f conftest.er1
16391 cat conftest.err >&5
a848cd7e
SC
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } &&
9dd0f6c2 16394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_lo=0 ac_mid=0
16407 while :; do
16408 cat >conftest.$ac_ext <<_ACEOF
16409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
16413/* end confdefs.h. */
16414$ac_includes_default
16415int
16416main ()
16417{
16418static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16419test_array [0] = 0
16420
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16427 (eval $ac_compile) 2>conftest.er1
a848cd7e 16428 ac_status=$?
ac1cb8d3
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
a848cd7e
SC
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
9dd0f6c2 16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_hi=$ac_mid; break
16447else
16448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16452 if test $ac_lo -le $ac_mid; then
16453 ac_lo= ac_hi=
16454 break
16455 fi
16456 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16457fi
ac1cb8d3 16458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16459 done
16460else
16461 echo "$as_me: failed program was:" >&5
16462sed 's/^/| /' conftest.$ac_ext >&5
16463
16464cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471int
16472main ()
16473{
16474static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16475test_array [0] = 0
16476
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext
16482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16483 (eval $ac_compile) 2>conftest.er1
a848cd7e 16484 ac_status=$?
ac1cb8d3
VS
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
a848cd7e
SC
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
9dd0f6c2 16490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_hi=-1 ac_mid=-1
16503 while :; do
16504 cat >conftest.$ac_ext <<_ACEOF
16505/* confdefs.h. */
16506_ACEOF
16507cat confdefs.h >>conftest.$ac_ext
16508cat >>conftest.$ac_ext <<_ACEOF
16509/* end confdefs.h. */
16510$ac_includes_default
16511int
16512main ()
16513{
16514static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16515test_array [0] = 0
16516
16517 ;
16518 return 0;
16519}
16520_ACEOF
16521rm -f conftest.$ac_objext
16522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16523 (eval $ac_compile) 2>conftest.er1
a848cd7e 16524 ac_status=$?
ac1cb8d3
VS
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
a848cd7e
SC
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
9dd0f6c2 16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_lo=$ac_mid; break
16543else
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
16547ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16548 if test $ac_mid -le $ac_hi; then
16549 ac_lo= ac_hi=
16550 break
16551 fi
16552 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16553fi
ac1cb8d3 16554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16555 done
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560ac_lo= ac_hi=
16561fi
ac1cb8d3 16562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16563fi
ac1cb8d3 16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16565# Binary search between lo and hi bounds.
16566while test "x$ac_lo" != "x$ac_hi"; do
16567 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16568 cat >conftest.$ac_ext <<_ACEOF
16569/* confdefs.h. */
16570_ACEOF
16571cat confdefs.h >>conftest.$ac_ext
16572cat >>conftest.$ac_ext <<_ACEOF
16573/* end confdefs.h. */
16574$ac_includes_default
16575int
16576main ()
16577{
16578static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16579test_array [0] = 0
16580
16581 ;
16582 return 0;
16583}
16584_ACEOF
16585rm -f conftest.$ac_objext
16586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16587 (eval $ac_compile) 2>conftest.er1
a848cd7e 16588 ac_status=$?
ac1cb8d3
VS
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
a848cd7e
SC
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
9dd0f6c2 16594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; }; then
16606 ac_hi=$ac_mid
16607else
16608 echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611ac_lo=`expr '(' $ac_mid ')' + 1`
16612fi
ac1cb8d3 16613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16614done
16615case $ac_lo in
16616?*) ac_cv_sizeof_void_p=$ac_lo;;
16617'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16618See \`config.log' for more details." >&5
16619echo "$as_me: error: cannot compute sizeof (void *), 77
16620See \`config.log' for more details." >&2;}
16621 { (exit 1); exit 1; }; } ;;
16622esac
16623else
16624 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16625 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16626echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16627 { (exit 1); exit 1; }; }
16628else
16629 cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
16635$ac_includes_default
16636long longval () { return (long) (sizeof (void *)); }
16637unsigned long ulongval () { return (long) (sizeof (void *)); }
16638#include <stdio.h>
16639#include <stdlib.h>
16640int
16641main ()
16642{
16643
16644 FILE *f = fopen ("conftest.val", "w");
16645 if (! f)
16646 exit (1);
16647 if (((long) (sizeof (void *))) < 0)
16648 {
16649 long i = longval ();
16650 if (i != ((long) (sizeof (void *))))
16651 exit (1);
16652 fprintf (f, "%ld\n", i);
16653 }
16654 else
16655 {
16656 unsigned long i = ulongval ();
16657 if (i != ((long) (sizeof (void *))))
16658 exit (1);
16659 fprintf (f, "%lu\n", i);
16660 }
16661 exit (ferror (f) || fclose (f) != 0);
16662
16663 ;
16664 return 0;
16665}
16666_ACEOF
16667rm -f conftest$ac_exeext
16668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_sizeof_void_p=`cat conftest.val`
16679else
16680 echo "$as_me: program exited with status $ac_status" >&5
16681echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684( exit $ac_status )
16685{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16686See \`config.log' for more details." >&5
16687echo "$as_me: error: cannot compute sizeof (void *), 77
16688See \`config.log' for more details." >&2;}
16689 { (exit 1); exit 1; }; }
16690fi
ac1cb8d3 16691rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16692fi
16693fi
16694rm -f conftest.val
16695else
16696 ac_cv_sizeof_void_p=0
16697fi
16698fi
16699echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16700echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16701cat >>confdefs.h <<_ACEOF
16702#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16703_ACEOF
16704
16705
16706echo "$as_me:$LINENO: checking for int" >&5
16707echo $ECHO_N "checking for int... $ECHO_C" >&6
16708if test "${ac_cv_type_int+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710else
16711 cat >conftest.$ac_ext <<_ACEOF
16712/* confdefs.h. */
16713_ACEOF
16714cat confdefs.h >>conftest.$ac_ext
16715cat >>conftest.$ac_ext <<_ACEOF
16716/* end confdefs.h. */
16717$ac_includes_default
16718int
16719main ()
16720{
16721if ((int *) 0)
16722 return 0;
16723if (sizeof (int))
16724 return 0;
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext
16730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16731 (eval $ac_compile) 2>conftest.er1
a848cd7e 16732 ac_status=$?
ac1cb8d3
VS
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
a848cd7e
SC
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
9dd0f6c2 16738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_cv_type_int=yes
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755ac_cv_type_int=no
16756fi
ac1cb8d3 16757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16758fi
16759echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16760echo "${ECHO_T}$ac_cv_type_int" >&6
16761
16762echo "$as_me:$LINENO: checking size of int" >&5
16763echo $ECHO_N "checking size of int... $ECHO_C" >&6
16764if test "${ac_cv_sizeof_int+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766else
16767 if test "$ac_cv_type_int" = yes; then
16768 # The cast to unsigned long works around a bug in the HP C Compiler
16769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16771 # This bug is HP SR number 8606223364.
16772 if test "$cross_compiling" = yes; then
16773 # Depending upon the size, compute the lo and hi bounds.
16774cat >conftest.$ac_ext <<_ACEOF
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780$ac_includes_default
16781int
16782main ()
16783{
16784static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16785test_array [0] = 0
16786
16787 ;
16788 return 0;
16789}
16790_ACEOF
16791rm -f conftest.$ac_objext
16792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16793 (eval $ac_compile) 2>conftest.er1
a848cd7e 16794 ac_status=$?
ac1cb8d3
VS
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
a848cd7e
SC
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
9dd0f6c2 16800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_lo=0 ac_mid=0
16813 while :; do
16814 cat >conftest.$ac_ext <<_ACEOF
16815/* confdefs.h. */
16816_ACEOF
16817cat confdefs.h >>conftest.$ac_ext
16818cat >>conftest.$ac_ext <<_ACEOF
16819/* end confdefs.h. */
16820$ac_includes_default
16821int
16822main ()
16823{
16824static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16825test_array [0] = 0
16826
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16833 (eval $ac_compile) 2>conftest.er1
a848cd7e 16834 ac_status=$?
ac1cb8d3
VS
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
a848cd7e
SC
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
9dd0f6c2 16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_hi=$ac_mid; break
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16858 if test $ac_lo -le $ac_mid; then
16859 ac_lo= ac_hi=
16860 break
16861 fi
16862 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16863fi
ac1cb8d3 16864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16865 done
16866else
16867 echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876$ac_includes_default
16877int
16878main ()
16879{
16880static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16881test_array [0] = 0
16882
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext
16888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16889 (eval $ac_compile) 2>conftest.er1
a848cd7e 16890 ac_status=$?
ac1cb8d3
VS
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
a848cd7e
SC
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
9dd0f6c2 16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_hi=-1 ac_mid=-1
16909 while :; do
16910 cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916$ac_includes_default
16917int
16918main ()
16919{
16920static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16921test_array [0] = 0
16922
16923 ;
16924 return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext
16928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16929 (eval $ac_compile) 2>conftest.er1
a848cd7e 16930 ac_status=$?
ac1cb8d3
VS
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
a848cd7e
SC
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
9dd0f6c2 16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_lo=$ac_mid; break
16949else
16950 echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16954 if test $ac_mid -le $ac_hi; then
16955 ac_lo= ac_hi=
16956 break
16957 fi
16958 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16959fi
ac1cb8d3 16960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16961 done
16962else
16963 echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966ac_lo= ac_hi=
16967fi
ac1cb8d3 16968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16969fi
ac1cb8d3 16970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16971# Binary search between lo and hi bounds.
16972while test "x$ac_lo" != "x$ac_hi"; do
16973 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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$ac_includes_default
16981int
16982main ()
16983{
16984static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16985test_array [0] = 0
16986
16987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext
16992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16993 (eval $ac_compile) 2>conftest.er1
a848cd7e 16994 ac_status=$?
ac1cb8d3
VS
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
a848cd7e
SC
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
9dd0f6c2 17000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_hi=$ac_mid
17013else
17014 echo "$as_me: failed program was:" >&5
17015sed 's/^/| /' conftest.$ac_ext >&5
17016
17017ac_lo=`expr '(' $ac_mid ')' + 1`
17018fi
ac1cb8d3 17019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17020done
17021case $ac_lo in
17022?*) ac_cv_sizeof_int=$ac_lo;;
17023'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17024See \`config.log' for more details." >&5
17025echo "$as_me: error: cannot compute sizeof (int), 77
17026See \`config.log' for more details." >&2;}
17027 { (exit 1); exit 1; }; } ;;
17028esac
17029else
17030 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17031 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17032echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17033 { (exit 1); exit 1; }; }
17034else
17035 cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041$ac_includes_default
17042long longval () { return (long) (sizeof (int)); }
17043unsigned long ulongval () { return (long) (sizeof (int)); }
17044#include <stdio.h>
17045#include <stdlib.h>
17046int
17047main ()
17048{
17049
17050 FILE *f = fopen ("conftest.val", "w");
17051 if (! f)
17052 exit (1);
17053 if (((long) (sizeof (int))) < 0)
17054 {
17055 long i = longval ();
17056 if (i != ((long) (sizeof (int))))
17057 exit (1);
17058 fprintf (f, "%ld\n", i);
17059 }
17060 else
17061 {
17062 unsigned long i = ulongval ();
17063 if (i != ((long) (sizeof (int))))
17064 exit (1);
17065 fprintf (f, "%lu\n", i);
17066 }
17067 exit (ferror (f) || fclose (f) != 0);
17068
17069 ;
17070 return 0;
17071}
17072_ACEOF
17073rm -f conftest$ac_exeext
17074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075 (eval $ac_link) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_cv_sizeof_int=`cat conftest.val`
17085else
17086 echo "$as_me: program exited with status $ac_status" >&5
17087echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090( exit $ac_status )
17091{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17092See \`config.log' for more details." >&5
17093echo "$as_me: error: cannot compute sizeof (int), 77
17094See \`config.log' for more details." >&2;}
17095 { (exit 1); exit 1; }; }
17096fi
ac1cb8d3 17097rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17098fi
17099fi
17100rm -f conftest.val
17101else
17102 ac_cv_sizeof_int=0
17103fi
17104fi
17105echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17106echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17107cat >>confdefs.h <<_ACEOF
17108#define SIZEOF_INT $ac_cv_sizeof_int
17109_ACEOF
17110
17111
17112echo "$as_me:$LINENO: checking for long" >&5
17113echo $ECHO_N "checking for long... $ECHO_C" >&6
17114if test "${ac_cv_type_long+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116else
17117 cat >conftest.$ac_ext <<_ACEOF
17118/* confdefs.h. */
17119_ACEOF
17120cat confdefs.h >>conftest.$ac_ext
17121cat >>conftest.$ac_ext <<_ACEOF
17122/* end confdefs.h. */
17123$ac_includes_default
17124int
17125main ()
17126{
17127if ((long *) 0)
17128 return 0;
17129if (sizeof (long))
17130 return 0;
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext
17136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17137 (eval $ac_compile) 2>conftest.er1
a848cd7e 17138 ac_status=$?
ac1cb8d3
VS
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
a848cd7e
SC
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
9dd0f6c2 17144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_type_long=yes
17157else
17158 echo "$as_me: failed program was:" >&5
17159sed 's/^/| /' conftest.$ac_ext >&5
17160
17161ac_cv_type_long=no
17162fi
ac1cb8d3 17163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17164fi
17165echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17166echo "${ECHO_T}$ac_cv_type_long" >&6
17167
17168echo "$as_me:$LINENO: checking size of long" >&5
17169echo $ECHO_N "checking size of long... $ECHO_C" >&6
17170if test "${ac_cv_sizeof_long+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
17173 if test "$ac_cv_type_long" = yes; then
17174 # The cast to unsigned long works around a bug in the HP C Compiler
17175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17177 # This bug is HP SR number 8606223364.
17178 if test "$cross_compiling" = yes; then
17179 # Depending upon the size, compute the lo and hi bounds.
17180cat >conftest.$ac_ext <<_ACEOF
17181/* confdefs.h. */
17182_ACEOF
17183cat confdefs.h >>conftest.$ac_ext
17184cat >>conftest.$ac_ext <<_ACEOF
17185/* end confdefs.h. */
17186$ac_includes_default
17187int
17188main ()
17189{
17190static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17191test_array [0] = 0
17192
17193 ;
17194 return 0;
17195}
17196_ACEOF
17197rm -f conftest.$ac_objext
17198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17199 (eval $ac_compile) 2>conftest.er1
a848cd7e 17200 ac_status=$?
ac1cb8d3
VS
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
a848cd7e
SC
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
9dd0f6c2 17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_lo=0 ac_mid=0
17219 while :; do
17220 cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226$ac_includes_default
17227int
17228main ()
17229{
17230static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17231test_array [0] = 0
17232
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext
17238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17239 (eval $ac_compile) 2>conftest.er1
a848cd7e 17240 ac_status=$?
ac1cb8d3
VS
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
a848cd7e
SC
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
9dd0f6c2 17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_hi=$ac_mid; break
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17264 if test $ac_lo -le $ac_mid; then
17265 ac_lo= ac_hi=
17266 break
17267 fi
17268 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17269fi
ac1cb8d3 17270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17271 done
17272else
17273 echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276cat >conftest.$ac_ext <<_ACEOF
17277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
17282$ac_includes_default
17283int
17284main ()
17285{
17286static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17287test_array [0] = 0
17288
17289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext
17294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17295 (eval $ac_compile) 2>conftest.er1
a848cd7e 17296 ac_status=$?
ac1cb8d3
VS
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
a848cd7e
SC
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
9dd0f6c2 17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_hi=-1 ac_mid=-1
17315 while :; do
17316 cat >conftest.$ac_ext <<_ACEOF
17317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
17322$ac_includes_default
17323int
17324main ()
17325{
17326static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17327test_array [0] = 0
17328
17329 ;
17330 return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext
17334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17335 (eval $ac_compile) 2>conftest.er1
a848cd7e 17336 ac_status=$?
ac1cb8d3
VS
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
a848cd7e
SC
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
9dd0f6c2 17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_lo=$ac_mid; break
17355else
17356 echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17360 if test $ac_mid -le $ac_hi; then
17361 ac_lo= ac_hi=
17362 break
17363 fi
17364 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17365fi
ac1cb8d3 17366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17367 done
17368else
17369 echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372ac_lo= ac_hi=
17373fi
ac1cb8d3 17374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17375fi
ac1cb8d3 17376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17377# Binary search between lo and hi bounds.
17378while test "x$ac_lo" != "x$ac_hi"; do
17379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17380 cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
17386$ac_includes_default
17387int
17388main ()
17389{
17390static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17391test_array [0] = 0
17392
17393 ;
17394 return 0;
17395}
17396_ACEOF
17397rm -f conftest.$ac_objext
17398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17399 (eval $ac_compile) 2>conftest.er1
a848cd7e 17400 ac_status=$?
ac1cb8d3
VS
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
a848cd7e
SC
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
9dd0f6c2 17406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; } &&
17412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 ac_hi=$ac_mid
17419else
17420 echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423ac_lo=`expr '(' $ac_mid ')' + 1`
17424fi
ac1cb8d3 17425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17426done
17427case $ac_lo in
17428?*) ac_cv_sizeof_long=$ac_lo;;
17429'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17430See \`config.log' for more details." >&5
17431echo "$as_me: error: cannot compute sizeof (long), 77
17432See \`config.log' for more details." >&2;}
17433 { (exit 1); exit 1; }; } ;;
17434esac
17435else
17436 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17437 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17438echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17439 { (exit 1); exit 1; }; }
17440else
17441 cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447$ac_includes_default
17448long longval () { return (long) (sizeof (long)); }
17449unsigned long ulongval () { return (long) (sizeof (long)); }
17450#include <stdio.h>
17451#include <stdlib.h>
17452int
17453main ()
17454{
17455
17456 FILE *f = fopen ("conftest.val", "w");
17457 if (! f)
17458 exit (1);
17459 if (((long) (sizeof (long))) < 0)
17460 {
17461 long i = longval ();
17462 if (i != ((long) (sizeof (long))))
17463 exit (1);
17464 fprintf (f, "%ld\n", i);
17465 }
17466 else
17467 {
17468 unsigned long i = ulongval ();
17469 if (i != ((long) (sizeof (long))))
17470 exit (1);
17471 fprintf (f, "%lu\n", i);
17472 }
17473 exit (ferror (f) || fclose (f) != 0);
17474
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479rm -f conftest$ac_exeext
17480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_sizeof_long=`cat conftest.val`
17491else
17492 echo "$as_me: program exited with status $ac_status" >&5
17493echo "$as_me: failed program was:" >&5
17494sed 's/^/| /' conftest.$ac_ext >&5
17495
17496( exit $ac_status )
17497{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17498See \`config.log' for more details." >&5
17499echo "$as_me: error: cannot compute sizeof (long), 77
17500See \`config.log' for more details." >&2;}
17501 { (exit 1); exit 1; }; }
17502fi
ac1cb8d3 17503rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17504fi
17505fi
17506rm -f conftest.val
17507else
17508 ac_cv_sizeof_long=0
17509fi
17510fi
17511echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17512echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17513cat >>confdefs.h <<_ACEOF
17514#define SIZEOF_LONG $ac_cv_sizeof_long
17515_ACEOF
17516
17517
17518echo "$as_me:$LINENO: checking for size_t" >&5
17519echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17520if test "${ac_cv_type_size_t+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 cat >conftest.$ac_ext <<_ACEOF
17524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
17529$ac_includes_default
17530int
17531main ()
17532{
17533if ((size_t *) 0)
17534 return 0;
17535if (sizeof (size_t))
17536 return 0;
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext
17542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17543 (eval $ac_compile) 2>conftest.er1
a848cd7e 17544 ac_status=$?
ac1cb8d3
VS
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
a848cd7e
SC
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
9dd0f6c2 17550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 ac_cv_type_size_t=yes
17563else
17564 echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567ac_cv_type_size_t=no
17568fi
ac1cb8d3 17569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17570fi
17571echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17572echo "${ECHO_T}$ac_cv_type_size_t" >&6
17573
17574echo "$as_me:$LINENO: checking size of size_t" >&5
17575echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17576if test "${ac_cv_sizeof_size_t+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17578else
17579 if test "$ac_cv_type_size_t" = yes; then
17580 # The cast to unsigned long works around a bug in the HP C Compiler
17581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17583 # This bug is HP SR number 8606223364.
17584 if test "$cross_compiling" = yes; then
17585 # Depending upon the size, compute the lo and hi bounds.
17586cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592$ac_includes_default
17593int
17594main ()
17595{
17596static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17597test_array [0] = 0
17598
17599 ;
17600 return 0;
17601}
17602_ACEOF
17603rm -f conftest.$ac_objext
17604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17605 (eval $ac_compile) 2>conftest.er1
a848cd7e 17606 ac_status=$?
ac1cb8d3
VS
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
a848cd7e
SC
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
9dd0f6c2 17612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_lo=0 ac_mid=0
17625 while :; do
17626 cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632$ac_includes_default
17633int
17634main ()
17635{
17636static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17637test_array [0] = 0
17638
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17645 (eval $ac_compile) 2>conftest.er1
a848cd7e 17646 ac_status=$?
ac1cb8d3
VS
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
a848cd7e
SC
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
9dd0f6c2 17652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_hi=$ac_mid; break
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17670 if test $ac_lo -le $ac_mid; then
17671 ac_lo= ac_hi=
17672 break
17673 fi
17674 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17675fi
ac1cb8d3 17676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17677 done
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689int
17690main ()
17691{
17692static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17693test_array [0] = 0
17694
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17701 (eval $ac_compile) 2>conftest.er1
a848cd7e 17702 ac_status=$?
ac1cb8d3
VS
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
a848cd7e
SC
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
9dd0f6c2 17708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_hi=-1 ac_mid=-1
17721 while :; do
17722 cat >conftest.$ac_ext <<_ACEOF
17723/* confdefs.h. */
17724_ACEOF
17725cat confdefs.h >>conftest.$ac_ext
17726cat >>conftest.$ac_ext <<_ACEOF
17727/* end confdefs.h. */
17728$ac_includes_default
17729int
17730main ()
17731{
17732static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17733test_array [0] = 0
17734
17735 ;
17736 return 0;
17737}
17738_ACEOF
17739rm -f conftest.$ac_objext
17740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17741 (eval $ac_compile) 2>conftest.er1
a848cd7e 17742 ac_status=$?
ac1cb8d3
VS
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
a848cd7e
SC
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
9dd0f6c2 17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 ac_lo=$ac_mid; break
17761else
17762 echo "$as_me: failed program was:" >&5
17763sed 's/^/| /' conftest.$ac_ext >&5
17764
17765ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17766 if test $ac_mid -le $ac_hi; then
17767 ac_lo= ac_hi=
17768 break
17769 fi
17770 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17771fi
ac1cb8d3 17772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17773 done
17774else
17775 echo "$as_me: failed program was:" >&5
17776sed 's/^/| /' conftest.$ac_ext >&5
17777
17778ac_lo= ac_hi=
17779fi
ac1cb8d3 17780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17781fi
ac1cb8d3 17782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17783# Binary search between lo and hi bounds.
17784while test "x$ac_lo" != "x$ac_hi"; do
17785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17786 cat >conftest.$ac_ext <<_ACEOF
17787/* confdefs.h. */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h. */
17792$ac_includes_default
17793int
17794main ()
17795{
17796static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17797test_array [0] = 0
17798
17799 ;
17800 return 0;
17801}
17802_ACEOF
17803rm -f conftest.$ac_objext
17804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17805 (eval $ac_compile) 2>conftest.er1
a848cd7e 17806 ac_status=$?
ac1cb8d3
VS
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
a848cd7e
SC
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
9dd0f6c2 17812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_hi=$ac_mid
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829ac_lo=`expr '(' $ac_mid ')' + 1`
17830fi
ac1cb8d3 17831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17832done
17833case $ac_lo in
17834?*) ac_cv_sizeof_size_t=$ac_lo;;
17835'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17836See \`config.log' for more details." >&5
17837echo "$as_me: error: cannot compute sizeof (size_t), 77
17838See \`config.log' for more details." >&2;}
17839 { (exit 1); exit 1; }; } ;;
17840esac
17841else
17842 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17843 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17844echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17845 { (exit 1); exit 1; }; }
17846else
17847 cat >conftest.$ac_ext <<_ACEOF
17848/* confdefs.h. */
17849_ACEOF
17850cat confdefs.h >>conftest.$ac_ext
17851cat >>conftest.$ac_ext <<_ACEOF
17852/* end confdefs.h. */
17853$ac_includes_default
17854long longval () { return (long) (sizeof (size_t)); }
17855unsigned long ulongval () { return (long) (sizeof (size_t)); }
17856#include <stdio.h>
17857#include <stdlib.h>
17858int
17859main ()
17860{
17861
17862 FILE *f = fopen ("conftest.val", "w");
17863 if (! f)
17864 exit (1);
17865 if (((long) (sizeof (size_t))) < 0)
17866 {
17867 long i = longval ();
17868 if (i != ((long) (sizeof (size_t))))
17869 exit (1);
17870 fprintf (f, "%ld\n", i);
17871 }
17872 else
17873 {
17874 unsigned long i = ulongval ();
17875 if (i != ((long) (sizeof (size_t))))
17876 exit (1);
17877 fprintf (f, "%lu\n", i);
17878 }
17879 exit (ferror (f) || fclose (f) != 0);
17880
17881 ;
17882 return 0;
17883}
17884_ACEOF
17885rm -f conftest$ac_exeext
17886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17887 (eval $ac_link) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_sizeof_size_t=`cat conftest.val`
17897else
17898 echo "$as_me: program exited with status $ac_status" >&5
17899echo "$as_me: failed program was:" >&5
17900sed 's/^/| /' conftest.$ac_ext >&5
17901
17902( exit $ac_status )
17903{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17904See \`config.log' for more details." >&5
17905echo "$as_me: error: cannot compute sizeof (size_t), 77
17906See \`config.log' for more details." >&2;}
17907 { (exit 1); exit 1; }; }
17908fi
ac1cb8d3 17909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17910fi
17911fi
17912rm -f conftest.val
17913else
17914 ac_cv_sizeof_size_t=0
17915fi
17916fi
17917echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17918echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17919cat >>confdefs.h <<_ACEOF
17920#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17921_ACEOF
17922
17923
17924
17925case "${host}" in
17926 arm-*-linux* )
17927 echo "$as_me:$LINENO: checking for long long" >&5
17928echo $ECHO_N "checking for long long... $ECHO_C" >&6
17929if test "${ac_cv_type_long_long+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931else
17932 cat >conftest.$ac_ext <<_ACEOF
17933/* confdefs.h. */
17934_ACEOF
17935cat confdefs.h >>conftest.$ac_ext
17936cat >>conftest.$ac_ext <<_ACEOF
17937/* end confdefs.h. */
17938$ac_includes_default
17939int
17940main ()
17941{
17942if ((long long *) 0)
17943 return 0;
17944if (sizeof (long long))
17945 return 0;
17946 ;
17947 return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext
17951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17952 (eval $ac_compile) 2>conftest.er1
a848cd7e 17953 ac_status=$?
ac1cb8d3
VS
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
a848cd7e
SC
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
9dd0f6c2 17959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 ac_cv_type_long_long=yes
17972else
17973 echo "$as_me: failed program was:" >&5
17974sed 's/^/| /' conftest.$ac_ext >&5
17975
17976ac_cv_type_long_long=no
17977fi
ac1cb8d3 17978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17979fi
17980echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17981echo "${ECHO_T}$ac_cv_type_long_long" >&6
17982
17983echo "$as_me:$LINENO: checking size of long long" >&5
17984echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17985if test "${ac_cv_sizeof_long_long+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988 if test "$ac_cv_type_long_long" = yes; then
17989 # The cast to unsigned long works around a bug in the HP C Compiler
17990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17992 # This bug is HP SR number 8606223364.
17993 if test "$cross_compiling" = yes; then
17994 # Depending upon the size, compute the lo and hi bounds.
17995cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001$ac_includes_default
18002int
18003main ()
18004{
18005static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18006test_array [0] = 0
18007
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext
18013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18014 (eval $ac_compile) 2>conftest.er1
a848cd7e 18015 ac_status=$?
ac1cb8d3
VS
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
a848cd7e
SC
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
9dd0f6c2 18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033 ac_lo=0 ac_mid=0
18034 while :; do
18035 cat >conftest.$ac_ext <<_ACEOF
18036/* confdefs.h. */
18037_ACEOF
18038cat confdefs.h >>conftest.$ac_ext
18039cat >>conftest.$ac_ext <<_ACEOF
18040/* end confdefs.h. */
18041$ac_includes_default
18042int
18043main ()
18044{
18045static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18046test_array [0] = 0
18047
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18054 (eval $ac_compile) 2>conftest.er1
a848cd7e 18055 ac_status=$?
ac1cb8d3
VS
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
a848cd7e
SC
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
9dd0f6c2 18061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_hi=$ac_mid; break
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18079 if test $ac_lo -le $ac_mid; then
18080 ac_lo= ac_hi=
18081 break
18082 fi
18083 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18084fi
ac1cb8d3 18085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18086 done
18087else
18088 echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
18091cat >conftest.$ac_ext <<_ACEOF
18092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
18096/* end confdefs.h. */
18097$ac_includes_default
18098int
18099main ()
18100{
18101static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18102test_array [0] = 0
18103
18104 ;
18105 return 0;
18106}
18107_ACEOF
18108rm -f conftest.$ac_objext
18109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18110 (eval $ac_compile) 2>conftest.er1
a848cd7e 18111 ac_status=$?
ac1cb8d3
VS
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
a848cd7e
SC
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
9dd0f6c2 18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_hi=-1 ac_mid=-1
18130 while :; do
18131 cat >conftest.$ac_ext <<_ACEOF
18132/* confdefs.h. */
18133_ACEOF
18134cat confdefs.h >>conftest.$ac_ext
18135cat >>conftest.$ac_ext <<_ACEOF
18136/* end confdefs.h. */
18137$ac_includes_default
18138int
18139main ()
18140{
18141static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18142test_array [0] = 0
18143
18144 ;
18145 return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext
18149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18150 (eval $ac_compile) 2>conftest.er1
a848cd7e 18151 ac_status=$?
ac1cb8d3
VS
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
a848cd7e
SC
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
9dd0f6c2 18157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_lo=$ac_mid; break
18170else
18171 echo "$as_me: failed program was:" >&5
18172sed 's/^/| /' conftest.$ac_ext >&5
18173
18174ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18175 if test $ac_mid -le $ac_hi; then
18176 ac_lo= ac_hi=
18177 break
18178 fi
18179 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18180fi
ac1cb8d3 18181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18182 done
18183else
18184 echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187ac_lo= ac_hi=
18188fi
ac1cb8d3 18189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18190fi
ac1cb8d3 18191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18192# Binary search between lo and hi bounds.
18193while test "x$ac_lo" != "x$ac_hi"; do
18194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18195 cat >conftest.$ac_ext <<_ACEOF
18196/* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
18200/* end confdefs.h. */
18201$ac_includes_default
18202int
18203main ()
18204{
18205static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18206test_array [0] = 0
18207
18208 ;
18209 return 0;
18210}
18211_ACEOF
18212rm -f conftest.$ac_objext
18213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18214 (eval $ac_compile) 2>conftest.er1
a848cd7e 18215 ac_status=$?
ac1cb8d3
VS
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
a848cd7e
SC
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
9dd0f6c2 18221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 ac_hi=$ac_mid
18234else
18235 echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238ac_lo=`expr '(' $ac_mid ')' + 1`
18239fi
ac1cb8d3 18240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18241done
18242case $ac_lo in
18243?*) ac_cv_sizeof_long_long=$ac_lo;;
18244'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18245See \`config.log' for more details." >&5
18246echo "$as_me: error: cannot compute sizeof (long long), 77
18247See \`config.log' for more details." >&2;}
18248 { (exit 1); exit 1; }; } ;;
18249esac
18250else
18251 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18252 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18253echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18254 { (exit 1); exit 1; }; }
18255else
18256 cat >conftest.$ac_ext <<_ACEOF
18257/* confdefs.h. */
18258_ACEOF
18259cat confdefs.h >>conftest.$ac_ext
18260cat >>conftest.$ac_ext <<_ACEOF
18261/* end confdefs.h. */
18262$ac_includes_default
18263long longval () { return (long) (sizeof (long long)); }
18264unsigned long ulongval () { return (long) (sizeof (long long)); }
18265#include <stdio.h>
18266#include <stdlib.h>
18267int
18268main ()
18269{
18270
18271 FILE *f = fopen ("conftest.val", "w");
18272 if (! f)
18273 exit (1);
18274 if (((long) (sizeof (long long))) < 0)
18275 {
18276 long i = longval ();
18277 if (i != ((long) (sizeof (long long))))
18278 exit (1);
18279 fprintf (f, "%ld\n", i);
18280 }
18281 else
18282 {
18283 unsigned long i = ulongval ();
18284 if (i != ((long) (sizeof (long long))))
18285 exit (1);
18286 fprintf (f, "%lu\n", i);
18287 }
18288 exit (ferror (f) || fclose (f) != 0);
18289
18290 ;
18291 return 0;
18292}
18293_ACEOF
18294rm -f conftest$ac_exeext
18295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296 (eval $ac_link) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; }; then
18305 ac_cv_sizeof_long_long=`cat conftest.val`
18306else
18307 echo "$as_me: program exited with status $ac_status" >&5
18308echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
18311( exit $ac_status )
18312{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18313See \`config.log' for more details." >&5
18314echo "$as_me: error: cannot compute sizeof (long long), 77
18315See \`config.log' for more details." >&2;}
18316 { (exit 1); exit 1; }; }
18317fi
ac1cb8d3 18318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18319fi
18320fi
18321rm -f conftest.val
18322else
18323 ac_cv_sizeof_long_long=0
18324fi
18325fi
18326echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18327echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18328cat >>confdefs.h <<_ACEOF
18329#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18330_ACEOF
18331
18332
18333 ;;
18334 *-hp-hpux* )
18335 echo "$as_me:$LINENO: checking for long long" >&5
18336echo $ECHO_N "checking for long long... $ECHO_C" >&6
18337if test "${ac_cv_type_long_long+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339else
18340 cat >conftest.$ac_ext <<_ACEOF
18341/* confdefs.h. */
18342_ACEOF
18343cat confdefs.h >>conftest.$ac_ext
18344cat >>conftest.$ac_ext <<_ACEOF
18345/* end confdefs.h. */
18346$ac_includes_default
18347int
18348main ()
18349{
18350if ((long long *) 0)
18351 return 0;
18352if (sizeof (long long))
18353 return 0;
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest.$ac_objext
18359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18360 (eval $ac_compile) 2>conftest.er1
a848cd7e 18361 ac_status=$?
ac1cb8d3
VS
18362 grep -v '^ *+' conftest.er1 >conftest.err
18363 rm -f conftest.er1
18364 cat conftest.err >&5
a848cd7e
SC
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
9dd0f6c2 18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 ac_cv_type_long_long=yes
18380else
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384ac_cv_type_long_long=no
18385fi
ac1cb8d3 18386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18387fi
18388echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18389echo "${ECHO_T}$ac_cv_type_long_long" >&6
18390
18391echo "$as_me:$LINENO: checking size of long long" >&5
18392echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18393if test "${ac_cv_sizeof_long_long+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18395else
18396 if test "$ac_cv_type_long_long" = yes; then
18397 # The cast to unsigned long works around a bug in the HP C Compiler
18398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18400 # This bug is HP SR number 8606223364.
18401 if test "$cross_compiling" = yes; then
18402 # Depending upon the size, compute the lo and hi bounds.
18403cat >conftest.$ac_ext <<_ACEOF
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
18409$ac_includes_default
18410int
18411main ()
18412{
18413static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18414test_array [0] = 0
18415
18416 ;
18417 return 0;
18418}
18419_ACEOF
18420rm -f conftest.$ac_objext
18421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18422 (eval $ac_compile) 2>conftest.er1
a848cd7e 18423 ac_status=$?
ac1cb8d3
VS
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
a848cd7e
SC
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
9dd0f6c2 18429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_lo=0 ac_mid=0
18442 while :; do
18443 cat >conftest.$ac_ext <<_ACEOF
18444/* confdefs.h. */
18445_ACEOF
18446cat confdefs.h >>conftest.$ac_ext
18447cat >>conftest.$ac_ext <<_ACEOF
18448/* end confdefs.h. */
18449$ac_includes_default
18450int
18451main ()
18452{
18453static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18454test_array [0] = 0
18455
18456 ;
18457 return 0;
18458}
18459_ACEOF
18460rm -f conftest.$ac_objext
18461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18462 (eval $ac_compile) 2>conftest.er1
a848cd7e 18463 ac_status=$?
ac1cb8d3
VS
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
a848cd7e
SC
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
9dd0f6c2 18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ac_hi=$ac_mid; break
18482else
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18487 if test $ac_lo -le $ac_mid; then
18488 ac_lo= ac_hi=
18489 break
18490 fi
18491 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18492fi
ac1cb8d3 18493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18494 done
18495else
18496 echo "$as_me: failed program was:" >&5
18497sed 's/^/| /' conftest.$ac_ext >&5
18498
18499cat >conftest.$ac_ext <<_ACEOF
18500/* confdefs.h. */
18501_ACEOF
18502cat confdefs.h >>conftest.$ac_ext
18503cat >>conftest.$ac_ext <<_ACEOF
18504/* end confdefs.h. */
18505$ac_includes_default
18506int
18507main ()
18508{
18509static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18510test_array [0] = 0
18511
18512 ;
18513 return 0;
18514}
18515_ACEOF
18516rm -f conftest.$ac_objext
18517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18518 (eval $ac_compile) 2>conftest.er1
a848cd7e 18519 ac_status=$?
ac1cb8d3
VS
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
a848cd7e
SC
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
9dd0f6c2 18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_hi=-1 ac_mid=-1
18538 while :; do
18539 cat >conftest.$ac_ext <<_ACEOF
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
18544/* end confdefs.h. */
18545$ac_includes_default
18546int
18547main ()
18548{
18549static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18550test_array [0] = 0
18551
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556rm -f conftest.$ac_objext
18557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18558 (eval $ac_compile) 2>conftest.er1
a848cd7e 18559 ac_status=$?
ac1cb8d3
VS
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
a848cd7e
SC
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
9dd0f6c2 18565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 ac_lo=$ac_mid; break
18578else
18579 echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18583 if test $ac_mid -le $ac_hi; then
18584 ac_lo= ac_hi=
18585 break
18586 fi
18587 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18588fi
ac1cb8d3 18589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18590 done
18591else
18592 echo "$as_me: failed program was:" >&5
18593sed 's/^/| /' conftest.$ac_ext >&5
18594
18595ac_lo= ac_hi=
18596fi
ac1cb8d3 18597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18598fi
ac1cb8d3 18599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18600# Binary search between lo and hi bounds.
18601while test "x$ac_lo" != "x$ac_hi"; do
18602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18603 cat >conftest.$ac_ext <<_ACEOF
18604/* confdefs.h. */
18605_ACEOF
18606cat confdefs.h >>conftest.$ac_ext
18607cat >>conftest.$ac_ext <<_ACEOF
18608/* end confdefs.h. */
18609$ac_includes_default
18610int
18611main ()
18612{
18613static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18614test_array [0] = 0
18615
18616 ;
18617 return 0;
18618}
18619_ACEOF
18620rm -f conftest.$ac_objext
18621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18622 (eval $ac_compile) 2>conftest.er1
a848cd7e 18623 ac_status=$?
ac1cb8d3
VS
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
a848cd7e
SC
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
9dd0f6c2 18629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_hi=$ac_mid
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646ac_lo=`expr '(' $ac_mid ')' + 1`
18647fi
ac1cb8d3 18648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18649done
18650case $ac_lo in
18651?*) ac_cv_sizeof_long_long=$ac_lo;;
18652'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18653See \`config.log' for more details." >&5
18654echo "$as_me: error: cannot compute sizeof (long long), 77
18655See \`config.log' for more details." >&2;}
18656 { (exit 1); exit 1; }; } ;;
18657esac
18658else
18659 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18660 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18661echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18662 { (exit 1); exit 1; }; }
18663else
18664 cat >conftest.$ac_ext <<_ACEOF
18665/* confdefs.h. */
18666_ACEOF
18667cat confdefs.h >>conftest.$ac_ext
18668cat >>conftest.$ac_ext <<_ACEOF
18669/* end confdefs.h. */
18670$ac_includes_default
18671long longval () { return (long) (sizeof (long long)); }
18672unsigned long ulongval () { return (long) (sizeof (long long)); }
18673#include <stdio.h>
18674#include <stdlib.h>
18675int
18676main ()
18677{
18678
18679 FILE *f = fopen ("conftest.val", "w");
18680 if (! f)
18681 exit (1);
18682 if (((long) (sizeof (long long))) < 0)
18683 {
18684 long i = longval ();
18685 if (i != ((long) (sizeof (long long))))
18686 exit (1);
18687 fprintf (f, "%ld\n", i);
18688 }
18689 else
18690 {
18691 unsigned long i = ulongval ();
18692 if (i != ((long) (sizeof (long long))))
18693 exit (1);
18694 fprintf (f, "%lu\n", i);
18695 }
18696 exit (ferror (f) || fclose (f) != 0);
18697
18698 ;
18699 return 0;
18700}
18701_ACEOF
18702rm -f conftest$ac_exeext
18703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18704 (eval $ac_link) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_cv_sizeof_long_long=`cat conftest.val`
18714else
18715 echo "$as_me: program exited with status $ac_status" >&5
18716echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719( exit $ac_status )
18720{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18721See \`config.log' for more details." >&5
18722echo "$as_me: error: cannot compute sizeof (long long), 77
18723See \`config.log' for more details." >&2;}
18724 { (exit 1); exit 1; }; }
18725fi
ac1cb8d3 18726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18727fi
18728fi
18729rm -f conftest.val
18730else
18731 ac_cv_sizeof_long_long=0
18732fi
18733fi
18734echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18735echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18736cat >>confdefs.h <<_ACEOF
18737#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18738_ACEOF
18739
18740
18741 if test "$ac_cv_sizeof_long_long" != "0"; then
18742 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18743 fi
18744 ;;
18745 * )
18746 echo "$as_me:$LINENO: checking for long long" >&5
18747echo $ECHO_N "checking for long long... $ECHO_C" >&6
18748if test "${ac_cv_type_long_long+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
18757$ac_includes_default
18758int
18759main ()
18760{
18761if ((long long *) 0)
18762 return 0;
18763if (sizeof (long long))
18764 return 0;
18765 ;
18766 return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext
18770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18771 (eval $ac_compile) 2>conftest.er1
a848cd7e 18772 ac_status=$?
ac1cb8d3
VS
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
a848cd7e
SC
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
9dd0f6c2 18778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_type_long_long=yes
18791else
18792 echo "$as_me: failed program was:" >&5
18793sed 's/^/| /' conftest.$ac_ext >&5
18794
18795ac_cv_type_long_long=no
18796fi
ac1cb8d3 18797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18798fi
18799echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18800echo "${ECHO_T}$ac_cv_type_long_long" >&6
18801
18802echo "$as_me:$LINENO: checking size of long long" >&5
18803echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18804if test "${ac_cv_sizeof_long_long+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806else
18807 if test "$ac_cv_type_long_long" = yes; then
18808 # The cast to unsigned long works around a bug in the HP C Compiler
18809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18811 # This bug is HP SR number 8606223364.
18812 if test "$cross_compiling" = yes; then
18813 # Depending upon the size, compute the lo and hi bounds.
18814cat >conftest.$ac_ext <<_ACEOF
18815/* confdefs.h. */
18816_ACEOF
18817cat confdefs.h >>conftest.$ac_ext
18818cat >>conftest.$ac_ext <<_ACEOF
18819/* end confdefs.h. */
18820$ac_includes_default
18821int
18822main ()
18823{
18824static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18825test_array [0] = 0
18826
18827 ;
18828 return 0;
18829}
18830_ACEOF
18831rm -f conftest.$ac_objext
18832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18833 (eval $ac_compile) 2>conftest.er1
a848cd7e 18834 ac_status=$?
ac1cb8d3
VS
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
a848cd7e
SC
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
9dd0f6c2 18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_lo=0 ac_mid=0
18853 while :; do
18854 cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
18860$ac_includes_default
18861int
18862main ()
18863{
18864static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18865test_array [0] = 0
18866
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18873 (eval $ac_compile) 2>conftest.er1
a848cd7e 18874 ac_status=$?
ac1cb8d3
VS
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
a848cd7e
SC
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
9dd0f6c2 18880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_hi=$ac_mid; break
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18898 if test $ac_lo -le $ac_mid; then
18899 ac_lo= ac_hi=
18900 break
18901 fi
18902 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18903fi
ac1cb8d3 18904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18905 done
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910cat >conftest.$ac_ext <<_ACEOF
18911/* confdefs.h. */
18912_ACEOF
18913cat confdefs.h >>conftest.$ac_ext
18914cat >>conftest.$ac_ext <<_ACEOF
18915/* end confdefs.h. */
18916$ac_includes_default
18917int
18918main ()
18919{
18920static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18921test_array [0] = 0
18922
18923 ;
18924 return 0;
18925}
18926_ACEOF
18927rm -f conftest.$ac_objext
18928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18929 (eval $ac_compile) 2>conftest.er1
a848cd7e 18930 ac_status=$?
ac1cb8d3
VS
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
a848cd7e
SC
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
9dd0f6c2 18936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_hi=-1 ac_mid=-1
18949 while :; do
18950 cat >conftest.$ac_ext <<_ACEOF
18951/* confdefs.h. */
18952_ACEOF
18953cat confdefs.h >>conftest.$ac_ext
18954cat >>conftest.$ac_ext <<_ACEOF
18955/* end confdefs.h. */
18956$ac_includes_default
18957int
18958main ()
18959{
18960static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18961test_array [0] = 0
18962
18963 ;
18964 return 0;
18965}
18966_ACEOF
18967rm -f conftest.$ac_objext
18968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18969 (eval $ac_compile) 2>conftest.er1
a848cd7e 18970 ac_status=$?
ac1cb8d3
VS
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
a848cd7e
SC
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
9dd0f6c2 18976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; } &&
18982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; }; then
18988 ac_lo=$ac_mid; break
18989else
18990 echo "$as_me: failed program was:" >&5
18991sed 's/^/| /' conftest.$ac_ext >&5
18992
18993ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18994 if test $ac_mid -le $ac_hi; then
18995 ac_lo= ac_hi=
18996 break
18997 fi
18998 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18999fi
ac1cb8d3 19000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19001 done
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006ac_lo= ac_hi=
19007fi
ac1cb8d3 19008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19009fi
ac1cb8d3 19010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19011# Binary search between lo and hi bounds.
19012while test "x$ac_lo" != "x$ac_hi"; do
19013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19014 cat >conftest.$ac_ext <<_ACEOF
19015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
19020$ac_includes_default
19021int
19022main ()
19023{
19024static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19025test_array [0] = 0
19026
19027 ;
19028 return 0;
19029}
19030_ACEOF
19031rm -f conftest.$ac_objext
19032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19033 (eval $ac_compile) 2>conftest.er1
a848cd7e 19034 ac_status=$?
ac1cb8d3
VS
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
a848cd7e
SC
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
9dd0f6c2 19040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_hi=$ac_mid
19053else
19054 echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057ac_lo=`expr '(' $ac_mid ')' + 1`
19058fi
ac1cb8d3 19059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19060done
19061case $ac_lo in
19062?*) ac_cv_sizeof_long_long=$ac_lo;;
19063'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19064See \`config.log' for more details." >&5
19065echo "$as_me: error: cannot compute sizeof (long long), 77
19066See \`config.log' for more details." >&2;}
19067 { (exit 1); exit 1; }; } ;;
19068esac
19069else
19070 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19071 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19072echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19073 { (exit 1); exit 1; }; }
19074else
19075 cat >conftest.$ac_ext <<_ACEOF
19076/* confdefs.h. */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h. */
19081$ac_includes_default
19082long longval () { return (long) (sizeof (long long)); }
19083unsigned long ulongval () { return (long) (sizeof (long long)); }
19084#include <stdio.h>
19085#include <stdlib.h>
19086int
19087main ()
19088{
19089
19090 FILE *f = fopen ("conftest.val", "w");
19091 if (! f)
19092 exit (1);
19093 if (((long) (sizeof (long long))) < 0)
19094 {
19095 long i = longval ();
19096 if (i != ((long) (sizeof (long long))))
19097 exit (1);
19098 fprintf (f, "%ld\n", i);
19099 }
19100 else
19101 {
19102 unsigned long i = ulongval ();
19103 if (i != ((long) (sizeof (long long))))
19104 exit (1);
19105 fprintf (f, "%lu\n", i);
19106 }
19107 exit (ferror (f) || fclose (f) != 0);
19108
19109 ;
19110 return 0;
19111}
19112_ACEOF
19113rm -f conftest$ac_exeext
19114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115 (eval $ac_link) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_sizeof_long_long=`cat conftest.val`
19125else
19126 echo "$as_me: program exited with status $ac_status" >&5
19127echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130( exit $ac_status )
19131{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19132See \`config.log' for more details." >&5
19133echo "$as_me: error: cannot compute sizeof (long long), 77
19134See \`config.log' for more details." >&2;}
19135 { (exit 1); exit 1; }; }
19136fi
ac1cb8d3 19137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19138fi
19139fi
19140rm -f conftest.val
19141else
19142 ac_cv_sizeof_long_long=0
19143fi
19144fi
19145echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19146echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19147cat >>confdefs.h <<_ACEOF
19148#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19149_ACEOF
19150
19151
19152esac
19153
238ecede
MW
19154echo "$as_me:$LINENO: checking for wchar_t" >&5
19155echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19156if test "${ac_cv_type_wchar_t+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19158else
19159 cat >conftest.$ac_ext <<_ACEOF
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
19165
19166 /* DJGPP only has fake wchar_t: */
19167 #ifdef __DJGPP__
19168 # error "fake wchar_t"
19169 #endif
19170 #ifdef HAVE_WCHAR_H
19171 # ifdef __CYGWIN__
19172 # include <stddef.h>
19173 # endif
19174 # include <wchar.h>
19175 #endif
19176 #ifdef HAVE_STDLIB_H
19177 # include <stdlib.h>
19178 #endif
19179 #include <stdio.h>
19180
19181
19182
19183int
19184main ()
19185{
19186if ((wchar_t *) 0)
19187 return 0;
19188if (sizeof (wchar_t))
19189 return 0;
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest.$ac_objext
19195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196 (eval $ac_compile) 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
9dd0f6c2 19203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_cv_type_wchar_t=yes
19216else
19217 echo "$as_me: failed program was:" >&5
19218sed 's/^/| /' conftest.$ac_ext >&5
19219
19220ac_cv_type_wchar_t=no
19221fi
19222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19223fi
19224echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19225echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19226
a848cd7e
SC
19227echo "$as_me:$LINENO: checking size of wchar_t" >&5
19228echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19229if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
238ecede
MW
19232 if test "$ac_cv_type_wchar_t" = yes; then
19233 # The cast to unsigned long works around a bug in the HP C Compiler
19234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19236 # This bug is HP SR number 8606223364.
19237 if test "$cross_compiling" = yes; then
19238 # Depending upon the size, compute the lo and hi bounds.
19239cat >conftest.$ac_ext <<_ACEOF
19240/* confdefs.h. */
19241_ACEOF
19242cat confdefs.h >>conftest.$ac_ext
19243cat >>conftest.$ac_ext <<_ACEOF
19244/* end confdefs.h. */
19245
19246 /* DJGPP only has fake wchar_t: */
19247 #ifdef __DJGPP__
19248 # error "fake wchar_t"
19249 #endif
19250 #ifdef HAVE_WCHAR_H
19251 # ifdef __CYGWIN__
19252 # include <stddef.h>
19253 # endif
19254 # include <wchar.h>
19255 #endif
19256 #ifdef HAVE_STDLIB_H
19257 # include <stdlib.h>
19258 #endif
19259 #include <stdio.h>
19260
19261
19262
19263int
19264main ()
19265{
19266static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19267test_array [0] = 0
19268
19269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
9dd0f6c2 19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_lo=0 ac_mid=0
19295 while :; do
19296 cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h. */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */
19302
19303 /* DJGPP only has fake wchar_t: */
19304 #ifdef __DJGPP__
19305 # error "fake wchar_t"
19306 #endif
19307 #ifdef HAVE_WCHAR_H
19308 # ifdef __CYGWIN__
19309 # include <stddef.h>
19310 # endif
19311 # include <wchar.h>
19312 #endif
19313 #ifdef HAVE_STDLIB_H
19314 # include <stdlib.h>
19315 #endif
19316 #include <stdio.h>
19317
19318
19319
19320int
19321main ()
19322{
19323static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19324test_array [0] = 0
19325
19326 ;
19327 return 0;
19328}
19329_ACEOF
19330rm -f conftest.$ac_objext
19331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19332 (eval $ac_compile) 2>conftest.er1
19333 ac_status=$?
19334 grep -v '^ *+' conftest.er1 >conftest.err
19335 rm -f conftest.er1
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } &&
9dd0f6c2 19339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest.$ac_objext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_hi=$ac_mid; break
19352else
19353 echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356ac_lo=`expr $ac_mid + 1`
19357 if test $ac_lo -le $ac_mid; then
19358 ac_lo= ac_hi=
19359 break
19360 fi
19361 ac_mid=`expr 2 '*' $ac_mid + 1`
19362fi
19363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19364 done
19365else
19366 echo "$as_me: failed program was:" >&5
19367sed 's/^/| /' conftest.$ac_ext >&5
19368
19369cat >conftest.$ac_ext <<_ACEOF
19370/* confdefs.h. */
19371_ACEOF
19372cat confdefs.h >>conftest.$ac_ext
19373cat >>conftest.$ac_ext <<_ACEOF
19374/* end confdefs.h. */
19375
19376 /* DJGPP only has fake wchar_t: */
19377 #ifdef __DJGPP__
19378 # error "fake wchar_t"
19379 #endif
19380 #ifdef HAVE_WCHAR_H
19381 # ifdef __CYGWIN__
19382 # include <stddef.h>
19383 # endif
19384 # include <wchar.h>
19385 #endif
19386 #ifdef HAVE_STDLIB_H
19387 # include <stdlib.h>
19388 #endif
19389 #include <stdio.h>
19390
19391
19392
19393int
19394main ()
19395{
19396static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19397test_array [0] = 0
19398
19399 ;
19400 return 0;
19401}
19402_ACEOF
19403rm -f conftest.$ac_objext
19404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405 (eval $ac_compile) 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
9dd0f6c2 19412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
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); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_hi=-1 ac_mid=-1
19425 while :; do
19426 cat >conftest.$ac_ext <<_ACEOF
19427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
19432
19433 /* DJGPP only has fake wchar_t: */
19434 #ifdef __DJGPP__
19435 # error "fake wchar_t"
19436 #endif
19437 #ifdef HAVE_WCHAR_H
19438 # ifdef __CYGWIN__
19439 # include <stddef.h>
19440 # endif
19441 # include <wchar.h>
19442 #endif
19443 #ifdef HAVE_STDLIB_H
19444 # include <stdlib.h>
19445 #endif
19446 #include <stdio.h>
19447
19448
19449
19450int
19451main ()
19452{
19453static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19454test_array [0] = 0
19455
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
9dd0f6c2 19469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_lo=$ac_mid; break
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486ac_hi=`expr '(' $ac_mid ')' - 1`
19487 if test $ac_mid -le $ac_hi; then
19488 ac_lo= ac_hi=
19489 break
19490 fi
19491 ac_mid=`expr 2 '*' $ac_mid`
19492fi
19493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494 done
19495else
19496 echo "$as_me: failed program was:" >&5
19497sed 's/^/| /' conftest.$ac_ext >&5
19498
19499ac_lo= ac_hi=
19500fi
19501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502fi
19503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504# Binary search between lo and hi bounds.
19505while test "x$ac_lo" != "x$ac_hi"; do
19506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19507 cat >conftest.$ac_ext <<_ACEOF
19508/* confdefs.h. */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h. */
19513
19514 /* DJGPP only has fake wchar_t: */
19515 #ifdef __DJGPP__
19516 # error "fake wchar_t"
19517 #endif
19518 #ifdef HAVE_WCHAR_H
19519 # ifdef __CYGWIN__
19520 # include <stddef.h>
19521 # endif
19522 # include <wchar.h>
19523 #endif
19524 #ifdef HAVE_STDLIB_H
19525 # include <stdlib.h>
19526 #endif
19527 #include <stdio.h>
a848cd7e 19528
a848cd7e 19529
a848cd7e 19530
238ecede
MW
19531int
19532main ()
19533{
19534static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19535test_array [0] = 0
a848cd7e 19536
238ecede
MW
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext
19542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543 (eval $ac_compile) 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
9dd0f6c2 19550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_hi=$ac_mid
19563else
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567ac_lo=`expr '(' $ac_mid ')' + 1`
19568fi
19569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570done
19571case $ac_lo in
19572?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19573'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19574See \`config.log' for more details." >&5
19575echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19576See \`config.log' for more details." >&2;}
19577 { (exit 1); exit 1; }; } ;;
19578esac
19579else
19580 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19581 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19582echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19583 { (exit 1); exit 1; }; }
a848cd7e
SC
19584else
19585 cat >conftest.$ac_ext <<_ACEOF
19586/* confdefs.h. */
19587_ACEOF
19588cat confdefs.h >>conftest.$ac_ext
19589cat >>conftest.$ac_ext <<_ACEOF
19590/* end confdefs.h. */
19591
238ecede
MW
19592 /* DJGPP only has fake wchar_t: */
19593 #ifdef __DJGPP__
19594 # error "fake wchar_t"
19595 #endif
19596 #ifdef HAVE_WCHAR_H
19597 # ifdef __CYGWIN__
19598 # include <stddef.h>
19599 # endif
19600 # include <wchar.h>
19601 #endif
19602 #ifdef HAVE_STDLIB_H
19603 # include <stdlib.h>
19604 #endif
19605 #include <stdio.h>
19606
19607
19608
19609long longval () { return (long) (sizeof (wchar_t)); }
19610unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19611#include <stdio.h>
19612#include <stdlib.h>
19613int
19614main ()
19615{
a848cd7e 19616
238ecede
MW
19617 FILE *f = fopen ("conftest.val", "w");
19618 if (! f)
19619 exit (1);
19620 if (((long) (sizeof (wchar_t))) < 0)
19621 {
19622 long i = longval ();
19623 if (i != ((long) (sizeof (wchar_t))))
19624 exit (1);
19625 fprintf (f, "%ld\n", i);
19626 }
19627 else
19628 {
19629 unsigned long i = ulongval ();
19630 if (i != ((long) (sizeof (wchar_t))))
19631 exit (1);
19632 fprintf (f, "%lu\n", i);
19633 }
19634 exit (ferror (f) || fclose (f) != 0);
19635
19636 ;
19637 return 0;
19638}
a848cd7e
SC
19639_ACEOF
19640rm -f conftest$ac_exeext
19641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19642 (eval $ac_link) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
238ecede 19651 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19652else
19653 echo "$as_me: program exited with status $ac_status" >&5
19654echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657( exit $ac_status )
238ecede
MW
19658{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19659See \`config.log' for more details." >&5
19660echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19661See \`config.log' for more details." >&2;}
19662 { (exit 1); exit 1; }; }
a848cd7e 19663fi
ac1cb8d3 19664rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19665fi
a848cd7e 19666fi
238ecede
MW
19667rm -f conftest.val
19668else
19669 ac_cv_sizeof_wchar_t=0
19670fi
19671fi
19672echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19673echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19674cat >>confdefs.h <<_ACEOF
238ecede 19675#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19676_ACEOF
19677
19678
238ecede 19679
ba3d13e1
VZ
19680echo "$as_me:$LINENO: checking for va_copy" >&5
19681echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19682if test "${wx_cv_func_va_copy+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684else
19685
19686 cat >conftest.$ac_ext <<_ACEOF
19687
19688 #include <stdarg.h>
19689 void foo(char *f, ...)
19690 {
19691 va_list ap1, ap2;
19692 va_start(ap1, f);
19693 va_copy(ap2, ap1);
19694 va_end(ap2);
19695 va_end(ap1);
19696 }
5886b072
VZ
19697 int main()
19698 {
b902e639
VZ
19699 foo("hi", 17);
19700 return 0;
5886b072 19701 }
ba3d13e1
VZ
19702_ACEOF
19703rm -f conftest.$ac_objext conftest$ac_exeext
19704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
9dd0f6c2 19712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest$ac_exeext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 wx_cv_func_va_copy=yes
19725else
19726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729wx_cv_func_va_copy=no
19730
19731fi
19732rm -f conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19734
19735
19736fi
19737echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19738echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19739
19740if test $wx_cv_func_va_copy = "yes"; then
19741 cat >>confdefs.h <<\_ACEOF
19742#define HAVE_VA_COPY 1
19743_ACEOF
19744
19745else
19746 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19747echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19748if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750else
19751
19752 if test "$cross_compiling" = yes; then
19753 wx_cv_type_va_list_lvalue=yes
19754
19755else
19756 cat >conftest.$ac_ext <<_ACEOF
19757
19758 #include <stdarg.h>
19759 int foo(char *f, ...)
19760 {
19761 va_list ap1, ap2;
19762 va_start(ap1, f);
19763 ap2 = ap1;
19764 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19765 return 1;
19766 va_end(ap2);
19767 va_end(ap1);
19768 return 0;
19769 }
19770 int main()
19771 {
19772 return foo("hi", 17);
19773 }
19774_ACEOF
19775rm -f conftest$ac_exeext
19776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777 (eval $ac_link) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 wx_cv_type_va_list_lvalue=yes
19787else
19788 echo "$as_me: program exited with status $ac_status" >&5
19789echo "$as_me: failed program was:" >&5
19790sed 's/^/| /' conftest.$ac_ext >&5
19791
19792( exit $ac_status )
19793wx_cv_type_va_list_lvalue=no
19794fi
19795rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19796fi
19797
19798
19799fi
19800echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19801echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19802
19803 if test $wx_cv_type_va_list_lvalue != "yes"; then
19804 cat >>confdefs.h <<\_ACEOF
19805#define VA_LIST_IS_ARRAY 1
19806_ACEOF
19807
19808 fi
19809fi
19810
a848cd7e
SC
19811# Check whether --enable-largefile or --disable-largefile was given.
19812if test "${enable_largefile+set}" = set; then
19813 enableval="$enable_largefile"
19814
19815fi;
19816if test "$enable_largefile" != no; then
19817 wx_largefile=no
19818
19819 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19820echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19821if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823else
19824
19825 cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
19831#define _FILE_OFFSET_BITS 64
19832 #include <sys/types.h>
19833int
19834main ()
19835{
19836typedef struct {
19837 unsigned int field: sizeof(off_t) == 8;
19838} wxlf;
19839
19840 ;
19841 return 0;
19842}
19843_ACEOF
19844rm -f conftest.$ac_objext
19845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19846 (eval $ac_compile) 2>conftest.er1
a848cd7e 19847 ac_status=$?
ac1cb8d3
VS
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
a848cd7e
SC
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
9dd0f6c2 19853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; }; then
19865 ac_cv_sys_file_offset_bits=64
19866else
19867 echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870ac_cv_sys_file_offset_bits=no
19871fi
ac1cb8d3 19872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19873
19874
19875fi
19876echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19877echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19878
19879 if test "$ac_cv_sys_file_offset_bits" != no; then
19880 wx_largefile=yes
19881 cat >>confdefs.h <<_ACEOF
19882#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19883_ACEOF
19884
19885 fi
19886
19887 if test "x$wx_largefile" != "xyes"; then
19888
19889 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19890echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19891if test "${ac_cv_sys_large_files+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893else
19894
19895 cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h. */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h. */
19901#define _LARGE_FILES 1
19902 #include <sys/types.h>
19903int
19904main ()
19905{
19906typedef struct {
19907 unsigned int field: sizeof(off_t) == 8;
19908} wxlf;
19909
19910 ;
19911 return 0;
19912}
19913_ACEOF
19914rm -f conftest.$ac_objext
19915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19916 (eval $ac_compile) 2>conftest.er1
a848cd7e 19917 ac_status=$?
ac1cb8d3
VS
19918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
a848cd7e
SC
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
9dd0f6c2 19923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; } &&
19929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_cv_sys_large_files=1
19936else
19937 echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940ac_cv_sys_large_files=no
19941fi
ac1cb8d3 19942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19943
19944
19945fi
19946echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19947echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19948
19949 if test "$ac_cv_sys_large_files" != no; then
19950 wx_largefile=yes
19951 cat >>confdefs.h <<_ACEOF
19952#define _LARGE_FILES $ac_cv_sys_large_files
19953_ACEOF
19954
19955 fi
19956
19957 fi
19958
19959 echo "$as_me:$LINENO: checking if large file support is available" >&5
19960echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19961 if test "x$wx_largefile" = "xyes"; then
19962 cat >>confdefs.h <<\_ACEOF
19963#define HAVE_LARGEFILE_SUPPORT 1
19964_ACEOF
19965
19966 fi
19967 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19968echo "${ECHO_T}$wx_largefile" >&6
19969fi
19970
5b674b9d
DE
19971
19972if test "x$wx_largefile" = "xyes"; then
19973 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19974 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19975 else
19976 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19977 fi
19978 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19979echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19980if test "${ac_cv_sys_largefile_source+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982else
19983 while :; do
19984 ac_cv_sys_largefile_source=no
19985 cat >conftest.$ac_ext <<_ACEOF
19986/* confdefs.h. */
19987_ACEOF
19988cat confdefs.h >>conftest.$ac_ext
19989cat >>conftest.$ac_ext <<_ACEOF
19990/* end confdefs.h. */
19991#include <stdio.h>
19992int
19993main ()
19994{
19995return !fseeko;
19996 ;
19997 return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002 (eval $ac_compile) 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
9dd0f6c2 20009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; } &&
20015 { ac_try='test -s conftest.$ac_objext'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
20021 break
20022else
20023 echo "$as_me: failed program was:" >&5
20024sed 's/^/| /' conftest.$ac_ext >&5
20025
20026fi
20027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028 cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h. */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h. */
20034#define _LARGEFILE_SOURCE 1
20035#include <stdio.h>
20036int
20037main ()
20038{
20039return !fseeko;
20040 ;
20041 return 0;
20042}
20043_ACEOF
20044rm -f conftest.$ac_objext
20045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046 (eval $ac_compile) 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
9dd0f6c2 20053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest.$ac_objext'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_cv_sys_largefile_source=1; break
20066else
20067 echo "$as_me: failed program was:" >&5
20068sed 's/^/| /' conftest.$ac_ext >&5
20069
20070fi
20071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20072 break
20073done
20074fi
20075echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20076echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20077if test "$ac_cv_sys_largefile_source" != no; then
20078
20079cat >>confdefs.h <<_ACEOF
20080#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20081_ACEOF
20082
20083fi
20084rm -f conftest*
20085
20086# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20087# in glibc 2.1.3, but that breaks too many other things.
20088# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20089echo "$as_me:$LINENO: checking for fseeko" >&5
20090echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20091if test "${ac_cv_func_fseeko+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093else
20094 cat >conftest.$ac_ext <<_ACEOF
20095/* confdefs.h. */
20096_ACEOF
20097cat confdefs.h >>conftest.$ac_ext
20098cat >>conftest.$ac_ext <<_ACEOF
20099/* end confdefs.h. */
20100#include <stdio.h>
20101int
20102main ()
20103{
20104return fseeko && fseeko (stdin, 0, 0);
20105 ;
20106 return 0;
20107}
20108_ACEOF
20109rm -f conftest.$ac_objext conftest$ac_exeext
20110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20111 (eval $ac_link) 2>conftest.er1
20112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
9dd0f6c2 20118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest$ac_exeext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_cv_func_fseeko=yes
20131else
20132 echo "$as_me: failed program was:" >&5
20133sed 's/^/| /' conftest.$ac_ext >&5
20134
20135ac_cv_func_fseeko=no
20136fi
20137rm -f conftest.err conftest.$ac_objext \
20138 conftest$ac_exeext conftest.$ac_ext
20139fi
20140echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20141echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20142if test $ac_cv_func_fseeko = yes; then
20143
20144cat >>confdefs.h <<\_ACEOF
20145#define HAVE_FSEEKO 1
20146_ACEOF
20147
20148fi
20149
5b674b9d
DE
20150 if test "$ac_cv_sys_largefile_source" != no; then
20151 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20152 fi
20153 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20154fi
20155
20156echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20157echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20158if test "${ac_cv_c_bigendian+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160else
20161 ac_cv_c_bigendian=unknown
20162# See if sys/param.h defines the BYTE_ORDER macro.
20163cat >conftest.$ac_ext <<_ACEOF
20164/* confdefs.h. */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h. */
20169#include <sys/types.h>
20170#include <sys/param.h>
20171int
20172main ()
20173{
20174
20175#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20176 bogus endian macros
20177#endif
20178 ;
20179 return 0;
20180}
20181_ACEOF
20182rm -f conftest.$ac_objext
20183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20184 (eval $ac_compile) 2>conftest.er1
a848cd7e 20185 ac_status=$?
ac1cb8d3
VS
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
a848cd7e
SC
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
9dd0f6c2 20191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 # It does; now see whether it defined to BIG_ENDIAN or not.
20204cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210#include <sys/types.h>
20211#include <sys/param.h>
20212int
20213main ()
20214{
20215
20216#if BYTE_ORDER != BIG_ENDIAN
20217 not big endian
20218#endif
20219 ;
20220 return 0;
20221}
20222_ACEOF
20223rm -f conftest.$ac_objext
20224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20225 (eval $ac_compile) 2>conftest.er1
a848cd7e 20226 ac_status=$?
ac1cb8d3
VS
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
a848cd7e
SC
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } &&
9dd0f6c2 20232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_c_bigendian=yes
20245else
20246 echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
20249ac_cv_c_bigendian=no
20250fi
ac1cb8d3 20251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20252else
20253 echo "$as_me: failed program was:" >&5
20254sed 's/^/| /' conftest.$ac_ext >&5
20255
20256fi
ac1cb8d3 20257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20258if test $ac_cv_c_bigendian = unknown; then
20259if test "$cross_compiling" = yes; then
20260 ac_cv_c_bigendian=unknown
20261else
20262 cat >conftest.$ac_ext <<_ACEOF
20263/* confdefs.h. */
20264_ACEOF
20265cat confdefs.h >>conftest.$ac_ext
20266cat >>conftest.$ac_ext <<_ACEOF
20267/* end confdefs.h. */
20268main () {
20269 /* Are we little or big endian? From Harbison&Steele. */
20270 union
20271 {
20272 long l;
20273 char c[sizeof (long)];
20274 } u;
20275 u.l = 1;
20276 exit (u.c[sizeof (long) - 1] == 1);
20277}
20278_ACEOF
20279rm -f conftest$ac_exeext
20280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20281 (eval $ac_link) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286 (eval $ac_try) 2>&5
20287 ac_status=$?
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; }; then
20290 ac_cv_c_bigendian=no
20291else
20292 echo "$as_me: program exited with status $ac_status" >&5
20293echo "$as_me: failed program was:" >&5
20294sed 's/^/| /' conftest.$ac_ext >&5
20295
20296( exit $ac_status )
20297ac_cv_c_bigendian=yes
20298fi
ac1cb8d3 20299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20300fi
20301fi
20302fi
20303echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20304echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20305if test $ac_cv_c_bigendian = unknown; then
20306 { 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
20307echo "$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;}
20308fi
20309if test $ac_cv_c_bigendian = yes; then
20310 cat >>confdefs.h <<\_ACEOF
20311#define WORDS_BIGENDIAN 1
20312_ACEOF
20313
20314fi
20315
20316
20317ac_ext=cc
20318ac_cpp='$CXXCPP $CPPFLAGS'
20319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20322echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20323echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20324if test -z "$CXXCPP"; then
20325 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 # Double quotes because CXXCPP needs to be expanded
20329 for CXXCPP in "$CXX -E" "/lib/cpp"
20330 do
20331 ac_preproc_ok=false
20332for ac_cxx_preproc_warn_flag in '' yes
20333do
20334 # Use a header file that comes with gcc, so configuring glibc
20335 # with a fresh cross-compiler works.
20336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20337 # <limits.h> exists even on freestanding compilers.
20338 # On the NeXT, cc -E runs the code through the compiler's parser,
20339 # not just through cpp. "Syntax error" is here to catch this case.
20340 cat >conftest.$ac_ext <<_ACEOF
20341/* confdefs.h. */
20342_ACEOF
20343cat confdefs.h >>conftest.$ac_ext
20344cat >>conftest.$ac_ext <<_ACEOF
20345/* end confdefs.h. */
20346#ifdef __STDC__
20347# include <limits.h>
20348#else
20349# include <assert.h>
20350#endif
ac1cb8d3 20351 Syntax error
a848cd7e
SC
20352_ACEOF
20353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } >/dev/null; then
20361 if test -s conftest.err; then
20362 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20363 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20364 else
20365 ac_cpp_err=
20366 fi
20367else
20368 ac_cpp_err=yes
20369fi
20370if test -z "$ac_cpp_err"; then
20371 :
20372else
20373 echo "$as_me: failed program was:" >&5
20374sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 # Broken: fails on valid input.
20377continue
20378fi
20379rm -f conftest.err conftest.$ac_ext
20380
20381 # OK, works on sane cases. Now check whether non-existent headers
20382 # can be detected and how.
20383 cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h. */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h. */
20389#include <ac_nonexistent.h>
20390_ACEOF
20391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } >/dev/null; then
20399 if test -s conftest.err; then
20400 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20401 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20402 else
20403 ac_cpp_err=
20404 fi
20405else
20406 ac_cpp_err=yes
20407fi
20408if test -z "$ac_cpp_err"; then
20409 # Broken: success on invalid input.
20410continue
20411else
20412 echo "$as_me: failed program was:" >&5
20413sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 # Passes both tests.
20416ac_preproc_ok=:
20417break
20418fi
20419rm -f conftest.err conftest.$ac_ext
20420
20421done
20422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20423rm -f conftest.err conftest.$ac_ext
20424if $ac_preproc_ok; then
20425 break
20426fi
20427
20428 done
20429 ac_cv_prog_CXXCPP=$CXXCPP
20430
20431fi
20432 CXXCPP=$ac_cv_prog_CXXCPP
20433else
20434 ac_cv_prog_CXXCPP=$CXXCPP
20435fi
20436echo "$as_me:$LINENO: result: $CXXCPP" >&5
20437echo "${ECHO_T}$CXXCPP" >&6
20438ac_preproc_ok=false
20439for ac_cxx_preproc_warn_flag in '' yes
20440do
20441 # Use a header file that comes with gcc, so configuring glibc
20442 # with a fresh cross-compiler works.
20443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20444 # <limits.h> exists even on freestanding compilers.
20445 # On the NeXT, cc -E runs the code through the compiler's parser,
20446 # not just through cpp. "Syntax error" is here to catch this case.
20447 cat >conftest.$ac_ext <<_ACEOF
20448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
20453#ifdef __STDC__
20454# include <limits.h>
20455#else
20456# include <assert.h>
20457#endif
ac1cb8d3 20458 Syntax error
a848cd7e
SC
20459_ACEOF
20460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } >/dev/null; then
20468 if test -s conftest.err; then
20469 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20471 else
20472 ac_cpp_err=
20473 fi
20474else
20475 ac_cpp_err=yes
20476fi
20477if test -z "$ac_cpp_err"; then
20478 :
20479else
20480 echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 # Broken: fails on valid input.
20484continue
20485fi
20486rm -f conftest.err conftest.$ac_ext
20487
20488 # OK, works on sane cases. Now check whether non-existent headers
20489 # can be detected and how.
20490 cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h. */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h. */
20496#include <ac_nonexistent.h>
20497_ACEOF
20498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } >/dev/null; then
20506 if test -s conftest.err; then
20507 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20508 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20509 else
20510 ac_cpp_err=
20511 fi
20512else
20513 ac_cpp_err=yes
20514fi
20515if test -z "$ac_cpp_err"; then
20516 # Broken: success on invalid input.
20517continue
20518else
20519 echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
20522 # Passes both tests.
20523ac_preproc_ok=:
20524break
20525fi
20526rm -f conftest.err conftest.$ac_ext
20527
20528done
20529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20530rm -f conftest.err conftest.$ac_ext
20531if $ac_preproc_ok; then
20532 :
20533else
20534 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20535See \`config.log' for more details." >&5
20536echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20537See \`config.log' for more details." >&2;}
20538 { (exit 1); exit 1; }; }
20539fi
20540
20541ac_ext=cc
20542ac_cpp='$CXXCPP $CPPFLAGS'
20543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20546
20547
20548
20549
20550
20551 ac_ext=cc
20552ac_cpp='$CXXCPP $CPPFLAGS'
20553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20556
20557
20558
20559for ac_header in iostream
20560do
20561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20562if eval "test \"\${$as_ac_Header+set}\" = set"; then
20563 echo "$as_me:$LINENO: checking for $ac_header" >&5
20564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20565if eval "test \"\${$as_ac_Header+set}\" = set"; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567fi
20568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20570else
20571 # Is the header compilable?
20572echo "$as_me:$LINENO: checking $ac_header usability" >&5
20573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20574cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
20580$ac_includes_default
20581#include <$ac_header>
20582_ACEOF
20583rm -f conftest.$ac_objext
20584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20585 (eval $ac_compile) 2>conftest.er1
a848cd7e 20586 ac_status=$?
ac1cb8d3
VS
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
a848cd7e
SC
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
9dd0f6c2 20592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; } &&
20598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_header_compiler=yes
20605else
20606 echo "$as_me: failed program was:" >&5
20607sed 's/^/| /' conftest.$ac_ext >&5
20608
20609ac_header_compiler=no
20610fi
ac1cb8d3 20611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20613echo "${ECHO_T}$ac_header_compiler" >&6
20614
20615# Is the header present?
20616echo "$as_me:$LINENO: checking $ac_header presence" >&5
20617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20618cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
20624#include <$ac_header>
20625_ACEOF
20626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } >/dev/null; then
20634 if test -s conftest.err; then
20635 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20636 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20637 else
20638 ac_cpp_err=
20639 fi
20640else
20641 ac_cpp_err=yes
20642fi
20643if test -z "$ac_cpp_err"; then
20644 ac_header_preproc=yes
20645else
20646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ac_header_preproc=no
20650fi
20651rm -f conftest.err conftest.$ac_ext
20652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20653echo "${ECHO_T}$ac_header_preproc" >&6
20654
20655# So? What about this header?
ac1cb8d3
VS
20656case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20657 yes:no: )
a848cd7e
SC
20658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20662 ac_header_preproc=yes
a848cd7e 20663 ;;
ac1cb8d3 20664 no:yes:* )
a848cd7e
SC
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20677 (
20678 cat <<\_ASBOX
ac1cb8d3
VS
20679## ----------------------------------------- ##
20680## Report this to wx-dev@lists.wxwidgets.org ##
20681## ----------------------------------------- ##
a848cd7e
SC
20682_ASBOX
20683 ) |
20684 sed "s/^/$as_me: WARNING: /" >&2
20685 ;;
20686esac
20687echo "$as_me:$LINENO: checking for $ac_header" >&5
20688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20689if eval "test \"\${$as_ac_Header+set}\" = set"; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691else
ac1cb8d3 20692 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20693fi
20694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20696
20697fi
20698if test `eval echo '${'$as_ac_Header'}'` = yes; then
20699 cat >>confdefs.h <<_ACEOF
20700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20701_ACEOF
20702
20703fi
20704
20705done
20706
20707
20708 if test "$ac_cv_header_iostream" = "yes" ; then
20709 :
20710 else
20711 cat >>confdefs.h <<\_ACEOF
20712#define wxUSE_IOSTREAMH 1
20713_ACEOF
20714
20715 fi
20716
20717 ac_ext=c
20718ac_cpp='$CPP $CPPFLAGS'
20719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721ac_compiler_gnu=$ac_cv_c_compiler_gnu
20722
20723
20724
20725
20726 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20727echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20728if test "${wx_cv_cpp_bool+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730else
20731
20732
20733
20734 ac_ext=cc
20735ac_cpp='$CXXCPP $CPPFLAGS'
20736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20739
20740
20741 cat >conftest.$ac_ext <<_ACEOF
20742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
20747
20748
20749int
20750main ()
20751{
20752
20753 bool b = true;
20754
20755 return 0;
20756
20757 ;
20758 return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20763 (eval $ac_compile) 2>conftest.er1
a848cd7e 20764 ac_status=$?
ac1cb8d3
VS
20765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
a848cd7e
SC
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
9dd0f6c2 20770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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
20783 wx_cv_cpp_bool=yes
20784
20785else
20786 echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789
20790 wx_cv_cpp_bool=no
20791
20792
20793fi
ac1cb8d3 20794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20795
20796 ac_ext=c
20797ac_cpp='$CPP $CPPFLAGS'
20798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800ac_compiler_gnu=$ac_cv_c_compiler_gnu
20801
20802
20803fi
20804echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20805echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20806
20807 if test "$wx_cv_cpp_bool" = "yes"; then
20808 cat >>confdefs.h <<\_ACEOF
20809#define HAVE_BOOL 1
20810_ACEOF
20811
20812 fi
20813
20814
20815
20816 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20817echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20818if test "${wx_cv_explicit+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20820else
20821
20822
20823
20824 ac_ext=cc
20825ac_cpp='$CXXCPP $CPPFLAGS'
20826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20829
20830
20831 cat >conftest.$ac_ext <<_ACEOF
20832/* confdefs.h. */
20833_ACEOF
20834cat confdefs.h >>conftest.$ac_ext
20835cat >>conftest.$ac_ext <<_ACEOF
20836/* end confdefs.h. */
20837
20838 class Foo { public: explicit Foo(int) {} };
20839
20840int
20841main ()
20842{
20843
20844 return 0;
20845
20846 ;
20847 return 0;
20848}
20849_ACEOF
20850rm -f conftest.$ac_objext
20851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20852 (eval $ac_compile) 2>conftest.er1
a848cd7e 20853 ac_status=$?
ac1cb8d3
VS
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
a848cd7e
SC
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
9dd0f6c2 20859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; } &&
20865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867 (eval $ac_try) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
20871
20872 cat >conftest.$ac_ext <<_ACEOF
20873/* confdefs.h. */
20874_ACEOF
20875cat confdefs.h >>conftest.$ac_ext
20876cat >>conftest.$ac_ext <<_ACEOF
20877/* end confdefs.h. */
20878
20879 class Foo { public: explicit Foo(int) {} };
20880 static void TakeFoo(const Foo& foo) { }
20881
20882int
20883main ()
20884{
20885
20886 TakeFoo(17);
20887 return 0;
20888
20889 ;
20890 return 0;
20891}
20892_ACEOF
20893rm -f conftest.$ac_objext
20894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20895 (eval $ac_compile) 2>conftest.er1
a848cd7e 20896 ac_status=$?
ac1cb8d3
VS
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
a848cd7e
SC
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
9dd0f6c2 20902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; } &&
20908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 wx_cv_explicit=no
20915else
20916 echo "$as_me: failed program was:" >&5
20917sed 's/^/| /' conftest.$ac_ext >&5
20918
20919wx_cv_explicit=yes
20920
20921fi
ac1cb8d3 20922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20923
20924else
20925 echo "$as_me: failed program was:" >&5
20926sed 's/^/| /' conftest.$ac_ext >&5
20927
20928wx_cv_explicit=no
20929
20930fi
ac1cb8d3 20931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20932
20933 ac_ext=c
20934ac_cpp='$CPP $CPPFLAGS'
20935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938
20939
20940fi
20941echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20942echo "${ECHO_T}$wx_cv_explicit" >&6
20943
20944 if test "$wx_cv_explicit" = "yes"; then
20945 cat >>confdefs.h <<\_ACEOF
20946#define HAVE_EXPLICIT 1
20947_ACEOF
20948
20949 fi
20950
20951
20952echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20953echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20954if test "${ac_cv_cxx_const_cast+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956else
20957
20958
20959 ac_ext=cc
20960ac_cpp='$CXXCPP $CPPFLAGS'
20961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20964
20965 cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h. */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h. */
20971
20972int
20973main ()
20974{
20975int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20976 ;
20977 return 0;
20978}
20979_ACEOF
20980rm -f conftest.$ac_objext
20981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20982 (eval $ac_compile) 2>conftest.er1
a848cd7e 20983 ac_status=$?
ac1cb8d3
VS
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
a848cd7e
SC
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
9dd0f6c2 20989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; } &&
20995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001 ac_cv_cxx_const_cast=yes
21002else
21003 echo "$as_me: failed program was:" >&5
21004sed 's/^/| /' conftest.$ac_ext >&5
21005
21006ac_cv_cxx_const_cast=no
21007fi
ac1cb8d3 21008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21009 ac_ext=c
21010ac_cpp='$CPP $CPPFLAGS'
21011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016fi
21017echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21018echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21019if test "$ac_cv_cxx_const_cast" = yes; then
21020
21021cat >>confdefs.h <<\_ACEOF
21022#define HAVE_CONST_CAST
21023_ACEOF
21024
21025fi
21026
7714864e
RL
21027echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21028echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21029if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21031else
21032
21033
21034 ac_ext=cc
21035ac_cpp='$CXXCPP $CPPFLAGS'
21036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21039
21040 cat >conftest.$ac_ext <<_ACEOF
21041/* confdefs.h. */
21042_ACEOF
21043cat confdefs.h >>conftest.$ac_ext
21044cat >>conftest.$ac_ext <<_ACEOF
21045/* end confdefs.h. */
21046#include <typeinfo>
21047class Base { public : Base () {} virtual void f () = 0;};
21048class Derived : public Base { public : Derived () {} virtual void f () {} };
21049class Unrelated { public : Unrelated () {} };
21050int g (Unrelated&) { return 0; }
21051int
21052main ()
21053{
21054
21055Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21056 ;
21057 return 0;
21058}
21059_ACEOF
21060rm -f conftest.$ac_objext
21061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21062 (eval $ac_compile) 2>conftest.er1
21063 ac_status=$?
21064 grep -v '^ *+' conftest.er1 >conftest.err
21065 rm -f conftest.er1
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
9dd0f6c2 21069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 ac_cv_cxx_reinterpret_cast=yes
21082else
21083 echo "$as_me: failed program was:" >&5
21084sed 's/^/| /' conftest.$ac_ext >&5
21085
21086ac_cv_cxx_reinterpret_cast=no
21087fi
21088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21089 ac_ext=c
21090ac_cpp='$CPP $CPPFLAGS'
21091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094
21095
21096fi
21097echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21098echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21099if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21100
21101cat >>confdefs.h <<\_ACEOF
21102#define HAVE_REINTERPRET_CAST
21103_ACEOF
21104
21105fi
21106
a848cd7e
SC
21107echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21108echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21109if test "${ac_cv_cxx_static_cast+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111else
21112
21113
21114 ac_ext=cc
21115ac_cpp='$CXXCPP $CPPFLAGS'
21116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21119
21120 cat >conftest.$ac_ext <<_ACEOF
21121/* confdefs.h. */
21122_ACEOF
21123cat confdefs.h >>conftest.$ac_ext
21124cat >>conftest.$ac_ext <<_ACEOF
21125/* end confdefs.h. */
21126#include <typeinfo>
21127class Base { public : Base () {} virtual void f () = 0; };
21128class Derived : public Base { public : Derived () {} virtual void f () {} };
21129int g (Derived&) { return 0; }
21130int
21131main ()
21132{
21133
21134Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21135 ;
21136 return 0;
21137}
21138_ACEOF
21139rm -f conftest.$ac_objext
21140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21141 (eval $ac_compile) 2>conftest.er1
a848cd7e 21142 ac_status=$?
ac1cb8d3
VS
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
a848cd7e
SC
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
9dd0f6c2 21148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; } &&
21154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ac_cv_cxx_static_cast=yes
21161else
21162 echo "$as_me: failed program was:" >&5
21163sed 's/^/| /' conftest.$ac_ext >&5
21164
21165ac_cv_cxx_static_cast=no
21166fi
ac1cb8d3 21167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21168 ac_ext=c
21169ac_cpp='$CPP $CPPFLAGS'
21170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173
21174
21175fi
21176echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21177echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21178if test "$ac_cv_cxx_static_cast" = yes; then
21179
21180cat >>confdefs.h <<\_ACEOF
21181#define HAVE_STATIC_CAST
21182_ACEOF
21183
21184fi
21185
21186
0a08f02a
MB
21187if test "$wxUSE_UNICODE" = "yes" -a \
21188 \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then
a848cd7e
SC
21189 ac_ext=cc
21190ac_cpp='$CXXCPP $CPPFLAGS'
21191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21194
21195
0a08f02a
MB
21196 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21197echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
a848cd7e
SC
21198 cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h. */
21204#include <string>
a848cd7e
SC
21205int
21206main ()
21207{
0a08f02a 21208std::wstring foo;
a848cd7e
SC
21209 ;
21210 return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21215 (eval $ac_compile) 2>conftest.er1
a848cd7e 21216 ac_status=$?
ac1cb8d3
VS
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
a848cd7e
SC
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
9dd0f6c2 21222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 echo "$as_me:$LINENO: result: yes" >&5
21235echo "${ECHO_T}yes" >&6
0a08f02a
MB
21236 cat >>confdefs.h <<\_ACEOF
21237#define HAVE_STD_WSTRING 1
21238_ACEOF
21239
a848cd7e
SC
21240else
21241 echo "$as_me: failed program was:" >&5
21242sed 's/^/| /' conftest.$ac_ext >&5
21243
21244echo "$as_me:$LINENO: result: no" >&5
21245echo "${ECHO_T}no" >&6
0a08f02a
MB
21246 echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5
21247echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6
21248 cat >conftest.$ac_ext <<_ACEOF
21249/* confdefs.h. */
21250_ACEOF
21251cat confdefs.h >>conftest.$ac_ext
21252cat >>conftest.$ac_ext <<_ACEOF
21253/* end confdefs.h. */
21254
21255 #ifdef HAVE_WCHAR_H
21256 # ifdef __CYGWIN__
21257 # include <stddef.h>
21258 # endif
21259 # include <wchar.h>
21260 #endif
21261 #ifdef HAVE_STDLIB_H
21262 # include <stdlib.h>
21263 #endif
21264 #include <stdio.h>
21265 #include <string>
21266
21267int
21268main ()
21269{
21270std::basic_string<wchar_t> foo;
21271 const wchar_t* dummy = foo.c_str();
21272 ;
21273 return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278 (eval $ac_compile) 2>conftest.er1
21279 ac_status=$?
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; } &&
21291 { ac_try='test -s conftest.$ac_objext'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 echo "$as_me:$LINENO: result: yes" >&5
21298echo "${ECHO_T}yes" >&6
21299else
21300 echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303echo "$as_me:$LINENO: result: no" >&5
21304echo "${ECHO_T}no" >&6
21305 { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5
21306echo "$as_me: error: Can't compile without unicode string class" >&2;}
a848cd7e 21307 { (exit 1); exit 1; }; }
0a08f02a 21308
a848cd7e 21309fi
ac1cb8d3 21310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21311
0a08f02a
MB
21312fi
21313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21314
21315 ac_ext=c
21316ac_cpp='$CPP $CPPFLAGS'
21317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320
21321fi
21322
21323if test "$wxUSE_STL" = "yes"; then
21324 ac_ext=cc
21325ac_cpp='$CXXCPP $CPPFLAGS'
21326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21329
21330
21331 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21332echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21333 cat >conftest.$ac_ext <<_ACEOF
21334/* confdefs.h. */
21335_ACEOF
21336cat confdefs.h >>conftest.$ac_ext
21337cat >>conftest.$ac_ext <<_ACEOF
21338/* end confdefs.h. */
21339#include <string>
0a08f02a
MB
21340 #include <functional>
21341 #include <algorithm>
21342 #include <vector>
21343 #include <list>
a848cd7e
SC
21344int
21345main ()
21346{
0a08f02a
MB
21347std::vector<int> moo;
21348 std::list<int> foo;
21349 std::vector<int>::iterator it =
21350 std::find_if(moo.begin(), moo.end(),
21351 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21352 ;
21353 return 0;
21354}
21355_ACEOF
21356rm -f conftest.$ac_objext
21357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21358 (eval $ac_compile) 2>conftest.er1
a848cd7e 21359 ac_status=$?
ac1cb8d3
VS
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
a848cd7e
SC
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } &&
9dd0f6c2 21365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; } &&
21371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 echo "$as_me:$LINENO: result: yes" >&5
21378echo "${ECHO_T}yes" >&6
a848cd7e
SC
21379else
21380 echo "$as_me: failed program was:" >&5
21381sed 's/^/| /' conftest.$ac_ext >&5
21382
21383echo "$as_me:$LINENO: result: no" >&5
21384echo "${ECHO_T}no" >&6
0a08f02a
MB
21385 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21386echo "$as_me: error: Basic STL functionality missing" >&2;}
21387 { (exit 1); exit 1; }; }
a848cd7e 21388fi
ac1cb8d3 21389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21390
21391 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21392echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21393 cat >conftest.$ac_ext <<_ACEOF
21394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
21399#include <string>
21400int
21401main ()
21402{
21403std::string foo, bar;
21404 foo.compare(bar);
21405 foo.compare(1, 1, bar);
21406 foo.compare(1, 1, bar, 1, 1);
21407 foo.compare("");
21408 foo.compare(1, 1, "");
21409 foo.compare(1, 1, "", 2);
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext
21415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21416 (eval $ac_compile) 2>conftest.er1
a848cd7e 21417 ac_status=$?
ac1cb8d3
VS
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
a848cd7e
SC
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
9dd0f6c2 21423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; } &&
21429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 echo "$as_me:$LINENO: result: yes" >&5
21436echo "${ECHO_T}yes" >&6
21437 cat >>confdefs.h <<\_ACEOF
21438#define HAVE_STD_STRING_COMPARE 1
21439_ACEOF
21440
21441else
21442 echo "$as_me: failed program was:" >&5
21443sed 's/^/| /' conftest.$ac_ext >&5
21444
21445echo "$as_me:$LINENO: result: no" >&5
21446echo "${ECHO_T}no" >&6
21447fi
ac1cb8d3 21448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21449
21450 if test "${ac_cv_header_hash_map+set}" = set; then
21451 echo "$as_me:$LINENO: checking for hash_map" >&5
21452echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21453if test "${ac_cv_header_hash_map+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455fi
21456echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21457echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21458else
21459 # Is the header compilable?
21460echo "$as_me:$LINENO: checking hash_map usability" >&5
21461echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21462cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468$ac_includes_default
21469#include <hash_map>
21470_ACEOF
21471rm -f conftest.$ac_objext
21472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21473 (eval $ac_compile) 2>conftest.er1
bdcade0a 21474 ac_status=$?
ac1cb8d3
VS
21475 grep -v '^ *+' conftest.er1 >conftest.err
21476 rm -f conftest.er1
21477 cat conftest.err >&5
bdcade0a
MB
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } &&
9dd0f6c2 21480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; } &&
21486 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 ac_header_compiler=yes
21493else
21494 echo "$as_me: failed program was:" >&5
21495sed 's/^/| /' conftest.$ac_ext >&5
21496
21497ac_header_compiler=no
21498fi
ac1cb8d3 21499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21501echo "${ECHO_T}$ac_header_compiler" >&6
21502
21503# Is the header present?
21504echo "$as_me:$LINENO: checking hash_map presence" >&5
21505echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21506cat >conftest.$ac_ext <<_ACEOF
21507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
21512#include <hash_map>
21513_ACEOF
21514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21516 ac_status=$?
21517 grep -v '^ *+' conftest.er1 >conftest.err
21518 rm -f conftest.er1
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } >/dev/null; then
21522 if test -s conftest.err; then
21523 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21525 else
21526 ac_cpp_err=
21527 fi
21528else
21529 ac_cpp_err=yes
21530fi
21531if test -z "$ac_cpp_err"; then
21532 ac_header_preproc=yes
21533else
21534 echo "$as_me: failed program was:" >&5
21535sed 's/^/| /' conftest.$ac_ext >&5
21536
21537 ac_header_preproc=no
21538fi
21539rm -f conftest.err conftest.$ac_ext
21540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21541echo "${ECHO_T}$ac_header_preproc" >&6
21542
21543# So? What about this header?
ac1cb8d3
VS
21544case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21545 yes:no: )
bdcade0a
MB
21546 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21547echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21548 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21549echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21550 ac_header_preproc=yes
bdcade0a 21551 ;;
ac1cb8d3 21552 no:yes:* )
bdcade0a
MB
21553 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21554echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21555 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21556echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21558echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21560echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21561 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21562echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21563 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21564echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21565 (
21566 cat <<\_ASBOX
ac1cb8d3
VS
21567## ----------------------------------------- ##
21568## Report this to wx-dev@lists.wxwidgets.org ##
21569## ----------------------------------------- ##
bdcade0a
MB
21570_ASBOX
21571 ) |
21572 sed "s/^/$as_me: WARNING: /" >&2
21573 ;;
21574esac
21575echo "$as_me:$LINENO: checking for hash_map" >&5
21576echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21577if test "${ac_cv_header_hash_map+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21579else
21580 ac_cv_header_hash_map=$ac_header_preproc
21581fi
21582echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21583echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21584
21585fi
21586if test $ac_cv_header_hash_map = yes; then
21587 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21588echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21589 cat >conftest.$ac_ext <<_ACEOF
21590/* confdefs.h. */
21591_ACEOF
21592cat confdefs.h >>conftest.$ac_ext
21593cat >>conftest.$ac_ext <<_ACEOF
21594/* end confdefs.h. */
21595#include <hash_map>
21596 #include <hash_set>
21597int
21598main ()
21599{
21600std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21601 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21602 ;
21603 return 0;
21604}
21605_ACEOF
21606rm -f conftest.$ac_objext
21607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21608 (eval $ac_compile) 2>conftest.er1
bdcade0a 21609 ac_status=$?
ac1cb8d3
VS
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
bdcade0a
MB
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } &&
9dd0f6c2 21615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; } &&
21621 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; }; then
21627 echo "$as_me:$LINENO: result: yes" >&5
21628echo "${ECHO_T}yes" >&6
21629 cat >>confdefs.h <<\_ACEOF
21630#define HAVE_HASH_MAP 1
21631_ACEOF
21632
21633 cat >>confdefs.h <<\_ACEOF
21634#define HAVE_STD_HASH_MAP 1
21635_ACEOF
21636
21637else
21638 echo "$as_me: failed program was:" >&5
21639sed 's/^/| /' conftest.$ac_ext >&5
21640
21641echo "$as_me:$LINENO: result: no" >&5
21642echo "${ECHO_T}no" >&6
21643fi
ac1cb8d3 21644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21645
21646fi
21647
21648
21649
21650 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21651 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21652echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21653if test "${ac_cv_header_ext_hash_map+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21655fi
21656echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21657echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21658else
21659 # Is the header compilable?
21660echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21661echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21662cat >conftest.$ac_ext <<_ACEOF
21663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
21668$ac_includes_default
21669#include <ext/hash_map>
21670_ACEOF
21671rm -f conftest.$ac_objext
21672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21673 (eval $ac_compile) 2>conftest.er1
bdcade0a 21674 ac_status=$?
ac1cb8d3
VS
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
bdcade0a
MB
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
9dd0f6c2 21680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
21686 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_header_compiler=yes
21693else
21694 echo "$as_me: failed program was:" >&5
21695sed 's/^/| /' conftest.$ac_ext >&5
21696
21697ac_header_compiler=no
21698fi
ac1cb8d3 21699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21700echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21701echo "${ECHO_T}$ac_header_compiler" >&6
21702
21703# Is the header present?
21704echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21705echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21706cat >conftest.$ac_ext <<_ACEOF
21707/* confdefs.h. */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h. */
21712#include <ext/hash_map>
21713_ACEOF
21714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21716 ac_status=$?
21717 grep -v '^ *+' conftest.er1 >conftest.err
21718 rm -f conftest.er1
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } >/dev/null; then
21722 if test -s conftest.err; then
21723 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21724 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21725 else
21726 ac_cpp_err=
21727 fi
21728else
21729 ac_cpp_err=yes
21730fi
21731if test -z "$ac_cpp_err"; then
21732 ac_header_preproc=yes
21733else
21734 echo "$as_me: failed program was:" >&5
21735sed 's/^/| /' conftest.$ac_ext >&5
21736
21737 ac_header_preproc=no
21738fi
21739rm -f conftest.err conftest.$ac_ext
21740echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21741echo "${ECHO_T}$ac_header_preproc" >&6
21742
21743# So? What about this header?
ac1cb8d3
VS
21744case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21745 yes:no: )
bdcade0a
MB
21746 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21747echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21748 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21749echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21750 ac_header_preproc=yes
bdcade0a 21751 ;;
ac1cb8d3 21752 no:yes:* )
bdcade0a
MB
21753 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21754echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21755 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21756echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21758echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21760echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21761 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21762echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21763 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21764echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21765 (
21766 cat <<\_ASBOX
ac1cb8d3
VS
21767## ----------------------------------------- ##
21768## Report this to wx-dev@lists.wxwidgets.org ##
21769## ----------------------------------------- ##
bdcade0a
MB
21770_ASBOX
21771 ) |
21772 sed "s/^/$as_me: WARNING: /" >&2
21773 ;;
21774esac
21775echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21776echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21777if test "${ac_cv_header_ext_hash_map+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
21780 ac_cv_header_ext_hash_map=$ac_header_preproc
21781fi
21782echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21783echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21784
21785fi
21786if test $ac_cv_header_ext_hash_map = yes; then
21787 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21788echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21789 cat >conftest.$ac_ext <<_ACEOF
21790/* confdefs.h. */
21791_ACEOF
21792cat confdefs.h >>conftest.$ac_ext
21793cat >>conftest.$ac_ext <<_ACEOF
21794/* end confdefs.h. */
21795#include <ext/hash_map>
21796 #include <ext/hash_set>
21797int
21798main ()
21799{
21800__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21801 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21802 ;
21803 return 0;
21804}
21805_ACEOF
21806rm -f conftest.$ac_objext
21807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21808 (eval $ac_compile) 2>conftest.er1
bdcade0a 21809 ac_status=$?
ac1cb8d3
VS
21810 grep -v '^ *+' conftest.er1 >conftest.err
21811 rm -f conftest.er1
21812 cat conftest.err >&5
bdcade0a
MB
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } &&
9dd0f6c2 21815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 echo "$as_me:$LINENO: result: yes" >&5
21828echo "${ECHO_T}yes" >&6
21829 cat >>confdefs.h <<\_ACEOF
21830#define HAVE_EXT_HASH_MAP 1
21831_ACEOF
21832
21833 cat >>confdefs.h <<\_ACEOF
21834#define HAVE_GNU_CXX_HASH_MAP 1
21835_ACEOF
21836
21837else
21838 echo "$as_me: failed program was:" >&5
21839sed 's/^/| /' conftest.$ac_ext >&5
21840
21841echo "$as_me:$LINENO: result: no" >&5
21842echo "${ECHO_T}no" >&6
21843fi
ac1cb8d3 21844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21845
21846fi
21847
21848
a848cd7e
SC
21849
21850 ac_ext=c
21851ac_cpp='$CPP $CPPFLAGS'
21852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21854ac_compiler_gnu=$ac_cv_c_compiler_gnu
21855
21856fi
21857
21858
21859SEARCH_INCLUDE="\
21860 /usr/local/include \
21861 \
21862 /usr/Motif-2.1/include \
21863 /usr/Motif-1.2/include \
21864 /usr/include/Motif1.2 \
21865 /opt/xpm/include/X11 \
21866 /opt/GBxpm/include/ \
21867 /opt/GBxpm/X11/include/ \
21868 \
21869 /usr/dt/include \
21870 /usr/openwin/include \
21871 \
21872 /usr/include/Xm \
21873 \
21874 /usr/X11R6/include \
21875 /usr/X11R6.4/include \
21876 /usr/X11R5/include \
21877 /usr/X11R4/include \
21878 \
21879 /usr/include/X11R6 \
21880 /usr/include/X11R5 \
21881 /usr/include/X11R4 \
21882 \
21883 /usr/local/X11R6/include \
21884 /usr/local/X11R5/include \
21885 /usr/local/X11R4/include \
21886 \
21887 /usr/local/include/X11R6 \
21888 /usr/local/include/X11R5 \
21889 /usr/local/include/X11R4 \
21890 \
21891 /usr/X11/include \
21892 /usr/include/X11 \
21893 /usr/local/X11/include \
21894 /usr/local/include/X11 \
21895 \
21896 /usr/X386/include \
21897 /usr/x386/include \
21898 /usr/XFree86/include/X11 \
21899 \
21900 X:/XFree86/include \
21901 X:/XFree86/include/X11 \
21902 \
21903 /usr/include/gtk \
21904 /usr/local/include/gtk \
21905 /usr/include/glib \
21906 /usr/local/include/glib \
21907 \
21908 /usr/include/qt \
21909 /usr/local/include/qt \
21910 \
21911 /usr/local/arm/3.3.2/include \
21912 \
21913 /usr/include/windows \
21914 /usr/include/wine \
21915 /usr/local/include/wine \
21916 \
21917 /usr/unsupported/include \
21918 /usr/athena/include \
21919 /usr/local/x11r5/include \
21920 /usr/lpp/Xamples/include \
21921 \
21922 /usr/openwin/share/include"
21923
07158944 21924SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21925
21926
21927cat >confcache <<\_ACEOF
21928# This file is a shell script that caches the results of configure
21929# tests run on this system so they can be shared between configure
21930# scripts and configure runs, see configure's option --config-cache.
21931# It is not useful on other systems. If it contains results you don't
21932# want to keep, you may remove or edit it.
21933#
21934# config.status only pays attention to the cache file if you give it
21935# the --recheck option to rerun configure.
21936#
21937# `ac_cv_env_foo' variables (set or unset) will be overridden when
21938# loading this file, other *unset* `ac_cv_foo' will be assigned the
21939# following values.
21940
21941_ACEOF
21942
21943# The following way of writing the cache mishandles newlines in values,
21944# but we know of no workaround that is simple, portable, and efficient.
21945# So, don't put newlines in cache variables' values.
21946# Ultrix sh set writes to stderr and can't be redirected directly,
21947# and sets the high bit in the cache file unless we assign to the vars.
21948{
21949 (set) 2>&1 |
21950 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21951 *ac_space=\ *)
21952 # `set' does not quote correctly, so add quotes (double-quote
21953 # substitution turns \\\\ into \\, and sed turns \\ into \).
21954 sed -n \
ac1cb8d3
VS
21955 "s/'/'\\\\''/g;
21956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21957 ;;
21958 *)
21959 # `set' quotes correctly as required by POSIX, so do not add quotes.
21960 sed -n \
ac1cb8d3 21961 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21962 ;;
21963 esac;
21964} |
21965 sed '
21966 t clear
21967 : clear
21968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21969 t end
21970 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21971 : end' >>confcache
21972if diff $cache_file confcache >/dev/null 2>&1; then :; else
21973 if test -w $cache_file; then
21974 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21975 cat confcache >$cache_file
21976 else
21977 echo "not updating unwritable cache $cache_file"
21978 fi
21979fi
21980rm -f confcache
21981
21982if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21983 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21984echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21985if test "${wx_cv_lib_glibc21+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21987else
21988
21989 cat >conftest.$ac_ext <<_ACEOF
21990/* confdefs.h. */
21991_ACEOF
21992cat confdefs.h >>conftest.$ac_ext
21993cat >>conftest.$ac_ext <<_ACEOF
21994/* end confdefs.h. */
21995#include <features.h>
21996int
21997main ()
21998{
21999
22000 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22001 #error not glibc2.1
22002 #endif
22003
22004 ;
22005 return 0;
22006}
22007_ACEOF
22008rm -f conftest.$ac_objext
22009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22010 (eval $ac_compile) 2>conftest.er1
a848cd7e 22011 ac_status=$?
ac1cb8d3
VS
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
a848cd7e
SC
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } &&
9dd0f6c2 22017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029
22030 wx_cv_lib_glibc21=yes
22031
22032else
22033 echo "$as_me: failed program was:" >&5
22034sed 's/^/| /' conftest.$ac_ext >&5
22035
22036
22037 wx_cv_lib_glibc21=no
22038
22039
22040fi
ac1cb8d3 22041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22042
22043fi
22044echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22045echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22046 if test "$wx_cv_lib_glibc21" = "yes"; then
22047 cat >>confdefs.h <<\_ACEOF
22048#define wxHAVE_GLIBC2 1
22049_ACEOF
22050
22051 fi
22052fi
22053
22054if test "x$wx_cv_lib_glibc21" = "xyes"; then
22055 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22056 cat >>confdefs.h <<\_ACEOF
22057#define _GNU_SOURCE 1
22058_ACEOF
22059
22060 fi
22061fi
22062
22063
22064
22065if test "$wxUSE_REGEX" != "no"; then
22066 cat >>confdefs.h <<\_ACEOF
22067#define wxUSE_REGEX 1
22068_ACEOF
22069
22070
22071 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22072 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22073echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22074 wxUSE_REGEX=builtin
22075 fi
22076
22077 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22078 if test "${ac_cv_header_regex_h+set}" = set; then
22079 echo "$as_me:$LINENO: checking for regex.h" >&5
22080echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22081if test "${ac_cv_header_regex_h+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083fi
22084echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22085echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22086else
22087 # Is the header compilable?
22088echo "$as_me:$LINENO: checking regex.h usability" >&5
22089echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22090cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22096$ac_includes_default
22097#include <regex.h>
22098_ACEOF
22099rm -f conftest.$ac_objext
22100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22101 (eval $ac_compile) 2>conftest.er1
a848cd7e 22102 ac_status=$?
ac1cb8d3
VS
22103 grep -v '^ *+' conftest.er1 >conftest.err
22104 rm -f conftest.er1
22105 cat conftest.err >&5
a848cd7e
SC
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } &&
9dd0f6c2 22108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; } &&
22114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; }; then
22120 ac_header_compiler=yes
22121else
22122 echo "$as_me: failed program was:" >&5
22123sed 's/^/| /' conftest.$ac_ext >&5
22124
22125ac_header_compiler=no
22126fi
ac1cb8d3 22127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22129echo "${ECHO_T}$ac_header_compiler" >&6
22130
22131# Is the header present?
22132echo "$as_me:$LINENO: checking regex.h presence" >&5
22133echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22134cat >conftest.$ac_ext <<_ACEOF
22135/* confdefs.h. */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h. */
22140#include <regex.h>
22141_ACEOF
22142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22144 ac_status=$?
22145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } >/dev/null; then
22150 if test -s conftest.err; then
22151 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22153 else
22154 ac_cpp_err=
22155 fi
22156else
22157 ac_cpp_err=yes
22158fi
22159if test -z "$ac_cpp_err"; then
22160 ac_header_preproc=yes
22161else
22162 echo "$as_me: failed program was:" >&5
22163sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_header_preproc=no
22166fi
22167rm -f conftest.err conftest.$ac_ext
22168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22169echo "${ECHO_T}$ac_header_preproc" >&6
22170
22171# So? What about this header?
ac1cb8d3
VS
22172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22173 yes:no: )
a848cd7e
SC
22174 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22175echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22176 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22177echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22178 ac_header_preproc=yes
a848cd7e 22179 ;;
ac1cb8d3 22180 no:yes:* )
a848cd7e
SC
22181 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22182echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22183 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22184echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22186echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22188echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22189 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22190echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22191 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22192echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22193 (
22194 cat <<\_ASBOX
ac1cb8d3
VS
22195## ----------------------------------------- ##
22196## Report this to wx-dev@lists.wxwidgets.org ##
22197## ----------------------------------------- ##
a848cd7e
SC
22198_ASBOX
22199 ) |
22200 sed "s/^/$as_me: WARNING: /" >&2
22201 ;;
22202esac
22203echo "$as_me:$LINENO: checking for regex.h" >&5
22204echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22205if test "${ac_cv_header_regex_h+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207else
22208 ac_cv_header_regex_h=$ac_header_preproc
22209fi
22210echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22211echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22212
22213fi
22214if test $ac_cv_header_regex_h = yes; then
22215
22216for ac_func in regcomp
22217do
22218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22219echo "$as_me:$LINENO: checking for $ac_func" >&5
22220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22221if eval "test \"\${$as_ac_var+set}\" = set"; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223else
22224 cat >conftest.$ac_ext <<_ACEOF
22225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
ac1cb8d3
VS
22230/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22232#define $ac_func innocuous_$ac_func
22233
a848cd7e
SC
22234/* System header to define __stub macros and hopefully few prototypes,
22235 which can conflict with char $ac_func (); below.
22236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22237 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22238
a848cd7e
SC
22239#ifdef __STDC__
22240# include <limits.h>
22241#else
22242# include <assert.h>
22243#endif
ac1cb8d3
VS
22244
22245#undef $ac_func
22246
a848cd7e
SC
22247/* Override any gcc2 internal prototype to avoid an error. */
22248#ifdef __cplusplus
22249extern "C"
22250{
22251#endif
22252/* We use char because int might match the return type of a gcc2
22253 builtin and then its argument prototype would still apply. */
22254char $ac_func ();
22255/* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22259choke me
22260#else
22261char (*f) () = $ac_func;
22262#endif
22263#ifdef __cplusplus
22264}
22265#endif
22266
22267int
22268main ()
22269{
22270return f != $ac_func;
22271 ;
22272 return 0;
22273}
22274_ACEOF
22275rm -f conftest.$ac_objext conftest$ac_exeext
22276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22277 (eval $ac_link) 2>conftest.er1
a848cd7e 22278 ac_status=$?
ac1cb8d3
VS
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
a848cd7e
SC
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } &&
9dd0f6c2 22284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 eval "$as_ac_var=yes"
22297else
22298 echo "$as_me: failed program was:" >&5
22299sed 's/^/| /' conftest.$ac_ext >&5
22300
22301eval "$as_ac_var=no"
22302fi
ac1cb8d3
VS
22303rm -f conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22305fi
22306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22307echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22308if test `eval echo '${'$as_ac_var'}'` = yes; then
22309 cat >>confdefs.h <<_ACEOF
22310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22311_ACEOF
22312
22313fi
22314done
22315
22316fi
22317
22318
22319
22320 if test "x$ac_cv_func_regcomp" != "xyes"; then
22321 if test "$wxUSE_REGEX" = "sys" ; then
22322 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22323echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22324 { (exit 1); exit 1; }; }
22325 else
22326 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22327echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22328 wxUSE_REGEX=builtin
22329 fi
22330 else
22331 wxUSE_REGEX=sys
22332 cat >>confdefs.h <<\_ACEOF
22333#define WX_NO_REGEX_ADVANCED 1
22334_ACEOF
22335
22336 fi
22337 fi
22338fi
22339
22340
22341ZLIB_LINK=
22342if test "$wxUSE_ZLIB" != "no" ; then
22343 cat >>confdefs.h <<\_ACEOF
22344#define wxUSE_ZLIB 1
22345_ACEOF
22346
22347
22348 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22349 if test "$USE_DARWIN" = 1; then
22350 system_zlib_h_ok="yes"
22351 else
22352 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22353echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22354if test "${ac_cv_header_zlib_h+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22356else
22357 if test "$cross_compiling" = yes; then
22358 unset ac_cv_header_zlib_h
22359
22360else
22361 cat >conftest.$ac_ext <<_ACEOF
22362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
22367
22368 #include <zlib.h>
22369 #include <stdio.h>
22370
22371 int main()
22372 {
22373 FILE *f=fopen("conftestval", "w");
22374 if (!f) exit(1);
22375 fprintf(f, "%s",
22376 ZLIB_VERSION[0] == '1' &&
22377 (ZLIB_VERSION[2] > '1' ||
22378 (ZLIB_VERSION[2] == '1' &&
22379 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22380 exit(0);
22381 }
22382
22383_ACEOF
22384rm -f conftest$ac_exeext
22385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22386 (eval $ac_link) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 ac_cv_header_zlib_h=`cat conftestval`
22396else
22397 echo "$as_me: program exited with status $ac_status" >&5
22398echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401( exit $ac_status )
22402ac_cv_header_zlib_h=no
22403fi
ac1cb8d3 22404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22405fi
22406
22407fi
22408echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22409echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22410 if test "${ac_cv_header_zlib_h+set}" = set; then
22411 echo "$as_me:$LINENO: checking for zlib.h" >&5
22412echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22413if test "${ac_cv_header_zlib_h+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22415fi
22416echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22417echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22418else
22419 # Is the header compilable?
22420echo "$as_me:$LINENO: checking zlib.h usability" >&5
22421echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22422cat >conftest.$ac_ext <<_ACEOF
22423/* confdefs.h. */
22424_ACEOF
22425cat confdefs.h >>conftest.$ac_ext
22426cat >>conftest.$ac_ext <<_ACEOF
22427/* end confdefs.h. */
22428$ac_includes_default
22429#include <zlib.h>
22430_ACEOF
22431rm -f conftest.$ac_objext
22432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22433 (eval $ac_compile) 2>conftest.er1
a848cd7e 22434 ac_status=$?
ac1cb8d3
VS
22435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
a848cd7e
SC
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } &&
9dd0f6c2 22440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; } &&
22446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448 (eval $ac_try) 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; }; then
22452 ac_header_compiler=yes
22453else
22454 echo "$as_me: failed program was:" >&5
22455sed 's/^/| /' conftest.$ac_ext >&5
22456
22457ac_header_compiler=no
22458fi
ac1cb8d3 22459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22461echo "${ECHO_T}$ac_header_compiler" >&6
22462
22463# Is the header present?
22464echo "$as_me:$LINENO: checking zlib.h presence" >&5
22465echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22466cat >conftest.$ac_ext <<_ACEOF
22467/* confdefs.h. */
22468_ACEOF
22469cat confdefs.h >>conftest.$ac_ext
22470cat >>conftest.$ac_ext <<_ACEOF
22471/* end confdefs.h. */
22472#include <zlib.h>
22473_ACEOF
22474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22476 ac_status=$?
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } >/dev/null; then
22482 if test -s conftest.err; then
22483 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22485 else
22486 ac_cpp_err=
22487 fi
22488else
22489 ac_cpp_err=yes
22490fi
22491if test -z "$ac_cpp_err"; then
22492 ac_header_preproc=yes
22493else
22494 echo "$as_me: failed program was:" >&5
22495sed 's/^/| /' conftest.$ac_ext >&5
22496
22497 ac_header_preproc=no
22498fi
22499rm -f conftest.err conftest.$ac_ext
22500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22501echo "${ECHO_T}$ac_header_preproc" >&6
22502
22503# So? What about this header?
ac1cb8d3
VS
22504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22505 yes:no: )
a848cd7e
SC
22506 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22507echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22508 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22509echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22510 ac_header_preproc=yes
a848cd7e 22511 ;;
ac1cb8d3 22512 no:yes:* )
a848cd7e
SC
22513 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22514echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22515 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22516echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22518echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22520echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22521 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22522echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22523 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22524echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22525 (
22526 cat <<\_ASBOX
ac1cb8d3
VS
22527## ----------------------------------------- ##
22528## Report this to wx-dev@lists.wxwidgets.org ##
22529## ----------------------------------------- ##
a848cd7e
SC
22530_ASBOX
22531 ) |
22532 sed "s/^/$as_me: WARNING: /" >&2
22533 ;;
22534esac
22535echo "$as_me:$LINENO: checking for zlib.h" >&5
22536echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22537if test "${ac_cv_header_zlib_h+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22539else
22540 ac_cv_header_zlib_h=$ac_header_preproc
22541fi
22542echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22543echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22544
22545fi
22546
22547
22548
22549 system_zlib_h_ok=$ac_cv_header_zlib_h
22550 fi
22551
22552 if test "$system_zlib_h_ok" = "yes"; then
22553 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22554echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22555if test "${ac_cv_lib_z_deflate+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557else
22558 ac_check_lib_save_LIBS=$LIBS
22559LIBS="-lz $LIBS"
22560cat >conftest.$ac_ext <<_ACEOF
22561/* confdefs.h. */
22562_ACEOF
22563cat confdefs.h >>conftest.$ac_ext
22564cat >>conftest.$ac_ext <<_ACEOF
22565/* end confdefs.h. */
22566
22567/* Override any gcc2 internal prototype to avoid an error. */
22568#ifdef __cplusplus
22569extern "C"
22570#endif
22571/* We use char because int might match the return type of a gcc2
22572 builtin and then its argument prototype would still apply. */
22573char deflate ();
22574int
22575main ()
22576{
22577deflate ();
22578 ;
22579 return 0;
22580}
22581_ACEOF
22582rm -f conftest.$ac_objext conftest$ac_exeext
22583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22584 (eval $ac_link) 2>conftest.er1
a848cd7e 22585 ac_status=$?
ac1cb8d3
VS
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
a848cd7e
SC
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } &&
9dd0f6c2 22591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593 (eval $ac_try) 2>&5
22594 ac_status=$?
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); }; } &&
22597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; }; then
22603 ac_cv_lib_z_deflate=yes
22604else
22605 echo "$as_me: failed program was:" >&5
22606sed 's/^/| /' conftest.$ac_ext >&5
22607
22608ac_cv_lib_z_deflate=no
22609fi
ac1cb8d3
VS
22610rm -f conftest.err conftest.$ac_objext \
22611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22612LIBS=$ac_check_lib_save_LIBS
22613fi
22614echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22615echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22616if test $ac_cv_lib_z_deflate = yes; then
22617 ZLIB_LINK=" -lz"
22618fi
22619
22620 fi
22621
22622 if test "x$ZLIB_LINK" = "x" ; then
22623 if test "$wxUSE_ZLIB" = "sys" ; then
22624 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22625echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22626 { (exit 1); exit 1; }; }
22627 else
22628 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22629echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22630 wxUSE_ZLIB=builtin
22631 fi
22632 else
22633 wxUSE_ZLIB=sys
22634 fi
22635 fi
22636fi
22637
22638
22639PNG_LINK=
22640if test "$wxUSE_LIBPNG" != "no" ; then
22641 cat >>confdefs.h <<\_ACEOF
22642#define wxUSE_LIBPNG 1
22643_ACEOF
22644
22645
22646 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22647 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22648echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22649 wxUSE_LIBPNG=sys
22650 fi
22651
22652 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22653 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22654echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22655 wxUSE_LIBPNG=builtin
22656 fi
22657
22658 if test "$wxUSE_MGL" != 1 ; then
22659 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22660 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22661echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22662if test "${ac_cv_header_png_h+set}" = set; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22664else
22665 if test "$cross_compiling" = yes; then
22666 unset ac_cv_header_png_h
22667
22668else
22669 cat >conftest.$ac_ext <<_ACEOF
22670/* confdefs.h. */
22671_ACEOF
22672cat confdefs.h >>conftest.$ac_ext
22673cat >>conftest.$ac_ext <<_ACEOF
22674/* end confdefs.h. */
22675
22676 #include <png.h>
22677 #include <stdio.h>
22678
22679 int main()
22680 {
22681 FILE *f=fopen("conftestval", "w");
22682 if (!f) exit(1);
22683 fprintf(f, "%s",
22684 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22685 exit(0);
22686 }
22687
22688_ACEOF
22689rm -f conftest$ac_exeext
22690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22691 (eval $ac_link) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22697 ac_status=$?
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; }; then
22700 ac_cv_header_png_h=`cat conftestval`
22701else
22702 echo "$as_me: program exited with status $ac_status" >&5
22703echo "$as_me: failed program was:" >&5
22704sed 's/^/| /' conftest.$ac_ext >&5
22705
22706( exit $ac_status )
22707ac_cv_header_png_h=no
22708fi
ac1cb8d3 22709rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22710fi
22711
22712fi
22713echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22714echo "${ECHO_T}$ac_cv_header_png_h" >&6
22715 if test "${ac_cv_header_png_h+set}" = set; then
22716 echo "$as_me:$LINENO: checking for png.h" >&5
22717echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22718if test "${ac_cv_header_png_h+set}" = set; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22720fi
22721echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22722echo "${ECHO_T}$ac_cv_header_png_h" >&6
22723else
22724 # Is the header compilable?
22725echo "$as_me:$LINENO: checking png.h usability" >&5
22726echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22727cat >conftest.$ac_ext <<_ACEOF
22728/* confdefs.h. */
22729_ACEOF
22730cat confdefs.h >>conftest.$ac_ext
22731cat >>conftest.$ac_ext <<_ACEOF
22732/* end confdefs.h. */
22733$ac_includes_default
22734#include <png.h>
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); } &&
9dd0f6c2 22745 { ac_try='test -z "$ac_c_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 ac_header_compiler=yes
22758else
22759 echo "$as_me: failed program was:" >&5
22760sed 's/^/| /' conftest.$ac_ext >&5
22761
22762ac_header_compiler=no
22763fi
ac1cb8d3 22764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22766echo "${ECHO_T}$ac_header_compiler" >&6
22767
22768# Is the header present?
22769echo "$as_me:$LINENO: checking png.h presence" >&5
22770echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22771cat >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#include <png.h>
22778_ACEOF
22779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } >/dev/null; then
22787 if test -s conftest.err; then
22788 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22790 else
22791 ac_cpp_err=
22792 fi
22793else
22794 ac_cpp_err=yes
22795fi
22796if test -z "$ac_cpp_err"; then
22797 ac_header_preproc=yes
22798else
22799 echo "$as_me: failed program was:" >&5
22800sed 's/^/| /' conftest.$ac_ext >&5
22801
22802 ac_header_preproc=no
22803fi
22804rm -f conftest.err conftest.$ac_ext
22805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22806echo "${ECHO_T}$ac_header_preproc" >&6
22807
22808# So? What about this header?
ac1cb8d3
VS
22809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22810 yes:no: )
a848cd7e
SC
22811 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22812echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22813 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22814echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22815 ac_header_preproc=yes
a848cd7e 22816 ;;
ac1cb8d3 22817 no:yes:* )
a848cd7e
SC
22818 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22819echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22820 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22821echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22823echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22824 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22825echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22826 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22827echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22828 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22829echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22830 (
22831 cat <<\_ASBOX
ac1cb8d3
VS
22832## ----------------------------------------- ##
22833## Report this to wx-dev@lists.wxwidgets.org ##
22834## ----------------------------------------- ##
a848cd7e
SC
22835_ASBOX
22836 ) |
22837 sed "s/^/$as_me: WARNING: /" >&2
22838 ;;
22839esac
22840echo "$as_me:$LINENO: checking for png.h" >&5
22841echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22842if test "${ac_cv_header_png_h+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22844else
22845 ac_cv_header_png_h=$ac_header_preproc
22846fi
22847echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22848echo "${ECHO_T}$ac_cv_header_png_h" >&6
22849
22850fi
22851
22852
22853
22854 if test "$ac_cv_header_png_h" = "yes"; then
22855 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22856echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22857if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22859else
22860 ac_check_lib_save_LIBS=$LIBS
22861LIBS="-lpng -lz -lm $LIBS"
22862cat >conftest.$ac_ext <<_ACEOF
22863/* confdefs.h. */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h. */
22868
22869/* Override any gcc2 internal prototype to avoid an error. */
22870#ifdef __cplusplus
22871extern "C"
22872#endif
22873/* We use char because int might match the return type of a gcc2
22874 builtin and then its argument prototype would still apply. */
22875char png_check_sig ();
22876int
22877main ()
22878{
22879png_check_sig ();
22880 ;
22881 return 0;
22882}
22883_ACEOF
22884rm -f conftest.$ac_objext conftest$ac_exeext
22885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22886 (eval $ac_link) 2>conftest.er1
a848cd7e 22887 ac_status=$?
ac1cb8d3
VS
22888 grep -v '^ *+' conftest.er1 >conftest.err
22889 rm -f conftest.er1
22890 cat conftest.err >&5
a848cd7e
SC
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } &&
9dd0f6c2 22893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 (eval $ac_try) 2>&5
22896 ac_status=$?
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; } &&
22899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22901 (eval $ac_try) 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; }; then
22905 ac_cv_lib_png_png_check_sig=yes
22906else
22907 echo "$as_me: failed program was:" >&5
22908sed 's/^/| /' conftest.$ac_ext >&5
22909
22910ac_cv_lib_png_png_check_sig=no
22911fi
ac1cb8d3
VS
22912rm -f conftest.err conftest.$ac_objext \
22913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22914LIBS=$ac_check_lib_save_LIBS
22915fi
22916echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22917echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22918if test $ac_cv_lib_png_png_check_sig = yes; then
22919 PNG_LINK=" -lpng -lz"
22920fi
22921
22922 fi
22923
22924 if test "x$PNG_LINK" = "x" ; then
22925 if test "$wxUSE_LIBPNG" = "sys" ; then
22926 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22927echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22928 { (exit 1); exit 1; }; }
22929 else
22930 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22931echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22932 wxUSE_LIBPNG=builtin
22933 fi
22934 else
22935 wxUSE_LIBPNG=sys
22936 fi
22937 fi
22938 fi
22939
22940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22941fi
22942
22943
22944JPEG_LINK=
22945if test "$wxUSE_LIBJPEG" != "no" ; then
22946 cat >>confdefs.h <<\_ACEOF
22947#define wxUSE_LIBJPEG 1
22948_ACEOF
22949
22950
22951 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22952 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22953echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22954 wxUSE_LIBJPEG=sys
22955 fi
22956
22957 if test "$wxUSE_MGL" != 1 ; then
22958 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22959 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22960echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22961 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
22963else
22964 cat >conftest.$ac_ext <<_ACEOF
22965/* confdefs.h. */
22966_ACEOF
22967cat confdefs.h >>conftest.$ac_ext
22968cat >>conftest.$ac_ext <<_ACEOF
22969/* end confdefs.h. */
22970
22971 #undef HAVE_STDLIB_H
22972 #include <stdio.h>
22973 #include <jpeglib.h>
22974
22975int
22976main ()
22977{
22978
22979
22980 ;
22981 return 0;
22982}
22983_ACEOF
22984rm -f conftest.$ac_objext
22985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22986 (eval $ac_compile) 2>conftest.er1
a848cd7e 22987 ac_status=$?
ac1cb8d3
VS
22988 grep -v '^ *+' conftest.er1 >conftest.err
22989 rm -f conftest.er1
22990 cat conftest.err >&5
a848cd7e
SC
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } &&
9dd0f6c2 22993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; } &&
22999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; }; then
23005 ac_cv_header_jpeglib_h=yes
23006else
23007 echo "$as_me: failed program was:" >&5
23008sed 's/^/| /' conftest.$ac_ext >&5
23009
23010ac_cv_header_jpeglib_h=no
23011
23012fi
ac1cb8d3 23013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23014
23015fi
23016
23017 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23018echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23019
23020 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23021 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23022echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23023if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23024 echo $ECHO_N "(cached) $ECHO_C" >&6
23025else
23026 ac_check_lib_save_LIBS=$LIBS
23027LIBS="-ljpeg $LIBS"
23028cat >conftest.$ac_ext <<_ACEOF
23029/* confdefs.h. */
23030_ACEOF
23031cat confdefs.h >>conftest.$ac_ext
23032cat >>conftest.$ac_ext <<_ACEOF
23033/* end confdefs.h. */
23034
23035/* Override any gcc2 internal prototype to avoid an error. */
23036#ifdef __cplusplus
23037extern "C"
23038#endif
23039/* We use char because int might match the return type of a gcc2
23040 builtin and then its argument prototype would still apply. */
23041char jpeg_read_header ();
23042int
23043main ()
23044{
23045jpeg_read_header ();
23046 ;
23047 return 0;
23048}
23049_ACEOF
23050rm -f conftest.$ac_objext conftest$ac_exeext
23051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23052 (eval $ac_link) 2>conftest.er1
a848cd7e 23053 ac_status=$?
ac1cb8d3
VS
23054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
a848cd7e
SC
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } &&
9dd0f6c2 23059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061 (eval $ac_try) 2>&5
23062 ac_status=$?
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; } &&
23065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067 (eval $ac_try) 2>&5
23068 ac_status=$?
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; }; then
23071 ac_cv_lib_jpeg_jpeg_read_header=yes
23072else
23073 echo "$as_me: failed program was:" >&5
23074sed 's/^/| /' conftest.$ac_ext >&5
23075
23076ac_cv_lib_jpeg_jpeg_read_header=no
23077fi
ac1cb8d3
VS
23078rm -f conftest.err conftest.$ac_objext \
23079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23080LIBS=$ac_check_lib_save_LIBS
23081fi
23082echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23083echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23084if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23085 JPEG_LINK=" -ljpeg"
23086fi
23087
23088 fi
23089
23090 if test "x$JPEG_LINK" = "x" ; then
23091 if test "$wxUSE_LIBJPEG" = "sys" ; then
23092 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23093echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23094 { (exit 1); exit 1; }; }
23095 else
23096 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23097echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23098 wxUSE_LIBJPEG=builtin
23099 fi
23100 else
23101 wxUSE_LIBJPEG=sys
23102 fi
23103 fi
23104 fi
23105fi
23106
23107
23108TIFF_LINK=
23109TIFF_PREREQ_LINKS=-lm
23110if test "$wxUSE_LIBTIFF" != "no" ; then
23111 cat >>confdefs.h <<\_ACEOF
23112#define wxUSE_LIBTIFF 1
23113_ACEOF
23114
23115
23116 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23117 if test "$wxUSE_LIBJPEG" = "sys"; then
23118 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23119 fi
23120 if test "$wxUSE_ZLIB" = "sys"; then
23121 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23122 fi
23123 if test "${ac_cv_header_tiffio_h+set}" = set; then
23124 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23125echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23126if test "${ac_cv_header_tiffio_h+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128fi
23129echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23130echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23131else
23132 # Is the header compilable?
23133echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23134echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23135cat >conftest.$ac_ext <<_ACEOF
23136/* confdefs.h. */
23137_ACEOF
23138cat confdefs.h >>conftest.$ac_ext
23139cat >>conftest.$ac_ext <<_ACEOF
23140/* end confdefs.h. */
23141$ac_includes_default
23142#include <tiffio.h>
23143_ACEOF
23144rm -f conftest.$ac_objext
23145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23146 (eval $ac_compile) 2>conftest.er1
a848cd7e 23147 ac_status=$?
ac1cb8d3
VS
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
a848cd7e
SC
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
9dd0f6c2 23153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
23159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23165 ac_header_compiler=yes
23166else
23167 echo "$as_me: failed program was:" >&5
23168sed 's/^/| /' conftest.$ac_ext >&5
23169
23170ac_header_compiler=no
23171fi
ac1cb8d3 23172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23173echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23174echo "${ECHO_T}$ac_header_compiler" >&6
23175
23176# Is the header present?
23177echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23178echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23179cat >conftest.$ac_ext <<_ACEOF
23180/* confdefs.h. */
23181_ACEOF
23182cat confdefs.h >>conftest.$ac_ext
23183cat >>conftest.$ac_ext <<_ACEOF
23184/* end confdefs.h. */
23185#include <tiffio.h>
23186_ACEOF
23187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23189 ac_status=$?
23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } >/dev/null; then
23195 if test -s conftest.err; then
23196 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23198 else
23199 ac_cpp_err=
23200 fi
23201else
23202 ac_cpp_err=yes
23203fi
23204if test -z "$ac_cpp_err"; then
23205 ac_header_preproc=yes
23206else
23207 echo "$as_me: failed program was:" >&5
23208sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 ac_header_preproc=no
23211fi
23212rm -f conftest.err conftest.$ac_ext
23213echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23214echo "${ECHO_T}$ac_header_preproc" >&6
23215
23216# So? What about this header?
ac1cb8d3
VS
23217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23218 yes:no: )
a848cd7e
SC
23219 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23220echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23221 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23222echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23223 ac_header_preproc=yes
a848cd7e 23224 ;;
ac1cb8d3 23225 no:yes:* )
a848cd7e
SC
23226 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23227echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23228 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23229echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23230 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23231echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23232 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23233echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23234 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23235echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23236 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23237echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23238 (
23239 cat <<\_ASBOX
ac1cb8d3
VS
23240## ----------------------------------------- ##
23241## Report this to wx-dev@lists.wxwidgets.org ##
23242## ----------------------------------------- ##
a848cd7e
SC
23243_ASBOX
23244 ) |
23245 sed "s/^/$as_me: WARNING: /" >&2
23246 ;;
23247esac
23248echo "$as_me:$LINENO: checking for tiffio.h" >&5
23249echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23250if test "${ac_cv_header_tiffio_h+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252else
23253 ac_cv_header_tiffio_h=$ac_header_preproc
23254fi
23255echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23256echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23257
23258fi
23259if test $ac_cv_header_tiffio_h = yes; then
23260
23261 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23262echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23263if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23265else
23266 ac_check_lib_save_LIBS=$LIBS
23267LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23268cat >conftest.$ac_ext <<_ACEOF
23269/* confdefs.h. */
23270_ACEOF
23271cat confdefs.h >>conftest.$ac_ext
23272cat >>conftest.$ac_ext <<_ACEOF
23273/* end confdefs.h. */
23274
23275/* Override any gcc2 internal prototype to avoid an error. */
23276#ifdef __cplusplus
23277extern "C"
23278#endif
23279/* We use char because int might match the return type of a gcc2
23280 builtin and then its argument prototype would still apply. */
23281char TIFFError ();
23282int
23283main ()
23284{
23285TIFFError ();
23286 ;
23287 return 0;
23288}
23289_ACEOF
23290rm -f conftest.$ac_objext conftest$ac_exeext
23291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23292 (eval $ac_link) 2>conftest.er1
a848cd7e 23293 ac_status=$?
ac1cb8d3
VS
23294 grep -v '^ *+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23296 cat conftest.err >&5
a848cd7e
SC
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } &&
9dd0f6c2 23299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; } &&
23305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23308 ac_status=$?
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 ac_cv_lib_tiff_TIFFError=yes
23312else
23313 echo "$as_me: failed program was:" >&5
23314sed 's/^/| /' conftest.$ac_ext >&5
23315
23316ac_cv_lib_tiff_TIFFError=no
23317fi
ac1cb8d3
VS
23318rm -f conftest.err conftest.$ac_objext \
23319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23320LIBS=$ac_check_lib_save_LIBS
23321fi
23322echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23323echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23324if test $ac_cv_lib_tiff_TIFFError = yes; then
23325 TIFF_LINK=" -ltiff"
23326fi
23327
23328
23329
23330fi
23331
23332
23333
23334 if test "x$TIFF_LINK" = "x" ; then
23335 if test "$wxUSE_LIBTIFF" = "sys" ; then
23336 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23337echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23338 { (exit 1); exit 1; }; }
23339 else
23340 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23341echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23342 wxUSE_LIBTIFF=builtin
23343 fi
23344 else
23345 wxUSE_LIBTIFF=sys
23346 fi
23347 fi
23348fi
23349
23350
23351if test "$wxUSE_EXPAT" != "no"; then
23352 wxUSE_XML=yes
23353 cat >>confdefs.h <<\_ACEOF
23354#define wxUSE_EXPAT 1
23355_ACEOF
23356
23357 cat >>confdefs.h <<\_ACEOF
23358#define wxUSE_XML 1
23359_ACEOF
23360
23361
23362 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23363 if test "${ac_cv_header_expat_h+set}" = set; then
23364 echo "$as_me:$LINENO: checking for expat.h" >&5
23365echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23366if test "${ac_cv_header_expat_h+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23368fi
23369echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23370echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23371else
23372 # Is the header compilable?
23373echo "$as_me:$LINENO: checking expat.h usability" >&5
23374echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23375cat >conftest.$ac_ext <<_ACEOF
23376/* confdefs.h. */
23377_ACEOF
23378cat confdefs.h >>conftest.$ac_ext
23379cat >>conftest.$ac_ext <<_ACEOF
23380/* end confdefs.h. */
23381$ac_includes_default
23382#include <expat.h>
23383_ACEOF
23384rm -f conftest.$ac_objext
23385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23386 (eval $ac_compile) 2>conftest.er1
a848cd7e 23387 ac_status=$?
ac1cb8d3
VS
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
a848cd7e
SC
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
9dd0f6c2 23393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; }; then
23405 ac_header_compiler=yes
23406else
23407 echo "$as_me: failed program was:" >&5
23408sed 's/^/| /' conftest.$ac_ext >&5
23409
23410ac_header_compiler=no
23411fi
ac1cb8d3 23412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23414echo "${ECHO_T}$ac_header_compiler" >&6
23415
23416# Is the header present?
23417echo "$as_me:$LINENO: checking expat.h presence" >&5
23418echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23419cat >conftest.$ac_ext <<_ACEOF
23420/* confdefs.h. */
23421_ACEOF
23422cat confdefs.h >>conftest.$ac_ext
23423cat >>conftest.$ac_ext <<_ACEOF
23424/* end confdefs.h. */
23425#include <expat.h>
23426_ACEOF
23427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23429 ac_status=$?
23430 grep -v '^ *+' conftest.er1 >conftest.err
23431 rm -f conftest.er1
23432 cat conftest.err >&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); } >/dev/null; then
23435 if test -s conftest.err; then
23436 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23438 else
23439 ac_cpp_err=
23440 fi
23441else
23442 ac_cpp_err=yes
23443fi
23444if test -z "$ac_cpp_err"; then
23445 ac_header_preproc=yes
23446else
23447 echo "$as_me: failed program was:" >&5
23448sed 's/^/| /' conftest.$ac_ext >&5
23449
23450 ac_header_preproc=no
23451fi
23452rm -f conftest.err conftest.$ac_ext
23453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23454echo "${ECHO_T}$ac_header_preproc" >&6
23455
23456# So? What about this header?
ac1cb8d3
VS
23457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23458 yes:no: )
a848cd7e
SC
23459 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23460echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23461 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23462echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23463 ac_header_preproc=yes
a848cd7e 23464 ;;
ac1cb8d3 23465 no:yes:* )
a848cd7e
SC
23466 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23467echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23468 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23469echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23470 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23471echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23472 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23473echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23474 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23475echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23476 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23477echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23478 (
23479 cat <<\_ASBOX
ac1cb8d3
VS
23480## ----------------------------------------- ##
23481## Report this to wx-dev@lists.wxwidgets.org ##
23482## ----------------------------------------- ##
a848cd7e
SC
23483_ASBOX
23484 ) |
23485 sed "s/^/$as_me: WARNING: /" >&2
23486 ;;
23487esac
23488echo "$as_me:$LINENO: checking for expat.h" >&5
23489echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23490if test "${ac_cv_header_expat_h+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492else
23493 ac_cv_header_expat_h=$ac_header_preproc
23494fi
23495echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23496echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23497
23498fi
23499if test $ac_cv_header_expat_h = yes; then
23500 found_expat_h=1
23501fi
23502
23503
23504 if test "x$found_expat_h" = "x1"; then
23505 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23506echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23507if test "${wx_cv_expat_is_not_broken+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23509else
23510
23511
23512
23513 ac_ext=cc
23514ac_cpp='$CXXCPP $CPPFLAGS'
23515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23518
23519 cat >conftest.$ac_ext <<_ACEOF
23520/* confdefs.h. */
23521_ACEOF
23522cat confdefs.h >>conftest.$ac_ext
23523cat >>conftest.$ac_ext <<_ACEOF
23524/* end confdefs.h. */
23525#include <expat.h>
23526int
23527main ()
23528{
23529
23530 ;
23531 return 0;
23532}
23533_ACEOF
23534rm -f conftest.$ac_objext
23535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23536 (eval $ac_compile) 2>conftest.er1
a848cd7e 23537 ac_status=$?
ac1cb8d3
VS
23538 grep -v '^ *+' conftest.er1 >conftest.err
23539 rm -f conftest.er1
23540 cat conftest.err >&5
a848cd7e
SC
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } &&
9dd0f6c2 23543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; } &&
23549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551 (eval $ac_try) 2>&5
23552 ac_status=$?
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23555 wx_cv_expat_is_not_broken=yes
23556else
23557 echo "$as_me: failed program was:" >&5
23558sed 's/^/| /' conftest.$ac_ext >&5
23559
23560wx_cv_expat_is_not_broken=no
23561
23562fi
ac1cb8d3 23563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23564 ac_ext=c
23565ac_cpp='$CPP $CPPFLAGS'
23566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23568ac_compiler_gnu=$ac_cv_c_compiler_gnu
23569
23570
23571
23572fi
23573echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23574echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23575 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23576 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23577echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23578if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
23580else
23581 ac_check_lib_save_LIBS=$LIBS
23582LIBS="-lexpat $LIBS"
23583cat >conftest.$ac_ext <<_ACEOF
23584/* confdefs.h. */
23585_ACEOF
23586cat confdefs.h >>conftest.$ac_ext
23587cat >>conftest.$ac_ext <<_ACEOF
23588/* end confdefs.h. */
23589
23590/* Override any gcc2 internal prototype to avoid an error. */
23591#ifdef __cplusplus
23592extern "C"
23593#endif
23594/* We use char because int might match the return type of a gcc2
23595 builtin and then its argument prototype would still apply. */
23596char XML_ParserCreate ();
23597int
23598main ()
23599{
23600XML_ParserCreate ();
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext conftest$ac_exeext
23606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23607 (eval $ac_link) 2>conftest.er1
a848cd7e 23608 ac_status=$?
ac1cb8d3
VS
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
a848cd7e
SC
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
9dd0f6c2 23614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; } &&
23620 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23623 ac_status=$?
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; }; then
23626 ac_cv_lib_expat_XML_ParserCreate=yes
23627else
23628 echo "$as_me: failed program was:" >&5
23629sed 's/^/| /' conftest.$ac_ext >&5
23630
23631ac_cv_lib_expat_XML_ParserCreate=no
23632fi
ac1cb8d3
VS
23633rm -f conftest.err conftest.$ac_objext \
23634 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23635LIBS=$ac_check_lib_save_LIBS
23636fi
23637echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23638echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23639if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23640 EXPAT_LINK=" -lexpat"
23641fi
23642
23643 fi
23644 fi
23645 if test "x$EXPAT_LINK" = "x" ; then
23646 if test "$wxUSE_EXPAT" = "sys" ; then
23647 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23648echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23649 { (exit 1); exit 1; }; }
23650 else
23651 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23652echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23653 wxUSE_EXPAT=builtin
23654 fi
23655 else
23656 wxUSE_EXPAT=sys
23657 fi
23658 fi
23659 if test "$wxUSE_EXPAT" = "builtin" ; then
23660
23661
23662subdirs="$subdirs src/expat"
23663
23664 fi
23665fi
23666
23667
23668
23669if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23670 if test "${ac_cv_header_mspack_h+set}" = set; then
23671 echo "$as_me:$LINENO: checking for mspack.h" >&5
23672echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23673if test "${ac_cv_header_mspack_h+set}" = set; then
23674 echo $ECHO_N "(cached) $ECHO_C" >&6
23675fi
23676echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23677echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23678else
23679 # Is the header compilable?
23680echo "$as_me:$LINENO: checking mspack.h usability" >&5
23681echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23682cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h. */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h. */
23688$ac_includes_default
23689#include <mspack.h>
23690_ACEOF
23691rm -f conftest.$ac_objext
23692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23693 (eval $ac_compile) 2>conftest.er1
a848cd7e 23694 ac_status=$?
ac1cb8d3
VS
23695 grep -v '^ *+' conftest.er1 >conftest.err
23696 rm -f conftest.er1
23697 cat conftest.err >&5
a848cd7e
SC
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } &&
9dd0f6c2 23700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23702 (eval $ac_try) 2>&5
23703 ac_status=$?
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); }; } &&
23706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23708 (eval $ac_try) 2>&5
23709 ac_status=$?
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); }; }; then
23712 ac_header_compiler=yes
23713else
23714 echo "$as_me: failed program was:" >&5
23715sed 's/^/| /' conftest.$ac_ext >&5
23716
23717ac_header_compiler=no
23718fi
ac1cb8d3 23719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23721echo "${ECHO_T}$ac_header_compiler" >&6
23722
23723# Is the header present?
23724echo "$as_me:$LINENO: checking mspack.h presence" >&5
23725echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23726cat >conftest.$ac_ext <<_ACEOF
23727/* confdefs.h. */
23728_ACEOF
23729cat confdefs.h >>conftest.$ac_ext
23730cat >>conftest.$ac_ext <<_ACEOF
23731/* end confdefs.h. */
23732#include <mspack.h>
23733_ACEOF
23734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23736 ac_status=$?
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } >/dev/null; then
23742 if test -s conftest.err; then
23743 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23745 else
23746 ac_cpp_err=
23747 fi
23748else
23749 ac_cpp_err=yes
23750fi
23751if test -z "$ac_cpp_err"; then
23752 ac_header_preproc=yes
23753else
23754 echo "$as_me: failed program was:" >&5
23755sed 's/^/| /' conftest.$ac_ext >&5
23756
23757 ac_header_preproc=no
23758fi
23759rm -f conftest.err conftest.$ac_ext
23760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23761echo "${ECHO_T}$ac_header_preproc" >&6
23762
23763# So? What about this header?
ac1cb8d3
VS
23764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23765 yes:no: )
a848cd7e
SC
23766 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23767echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23768 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23769echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23770 ac_header_preproc=yes
a848cd7e 23771 ;;
ac1cb8d3 23772 no:yes:* )
a848cd7e
SC
23773 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23774echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23775 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23776echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23777 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23778echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23779 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23780echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23781 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23782echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23783 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23784echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23785 (
23786 cat <<\_ASBOX
ac1cb8d3
VS
23787## ----------------------------------------- ##
23788## Report this to wx-dev@lists.wxwidgets.org ##
23789## ----------------------------------------- ##
a848cd7e
SC
23790_ASBOX
23791 ) |
23792 sed "s/^/$as_me: WARNING: /" >&2
23793 ;;
23794esac
23795echo "$as_me:$LINENO: checking for mspack.h" >&5
23796echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23797if test "${ac_cv_header_mspack_h+set}" = set; then
23798 echo $ECHO_N "(cached) $ECHO_C" >&6
23799else
23800 ac_cv_header_mspack_h=$ac_header_preproc
23801fi
23802echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23803echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23804
23805fi
23806if test $ac_cv_header_mspack_h = yes; then
23807 found_mspack_h=1
23808fi
23809
23810
23811 if test "x$found_mspack_h" = "x1"; then
23812 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23813echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23814if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23816else
23817 ac_check_lib_save_LIBS=$LIBS
23818LIBS="-lmspack $LIBS"
23819cat >conftest.$ac_ext <<_ACEOF
23820/* confdefs.h. */
23821_ACEOF
23822cat confdefs.h >>conftest.$ac_ext
23823cat >>conftest.$ac_ext <<_ACEOF
23824/* end confdefs.h. */
23825
23826/* Override any gcc2 internal prototype to avoid an error. */
23827#ifdef __cplusplus
23828extern "C"
23829#endif
23830/* We use char because int might match the return type of a gcc2
23831 builtin and then its argument prototype would still apply. */
23832char mspack_create_chm_decompressor ();
23833int
23834main ()
23835{
23836mspack_create_chm_decompressor ();
23837 ;
23838 return 0;
23839}
23840_ACEOF
23841rm -f conftest.$ac_objext conftest$ac_exeext
23842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23843 (eval $ac_link) 2>conftest.er1
a848cd7e 23844 ac_status=$?
ac1cb8d3
VS
23845 grep -v '^ *+' conftest.er1 >conftest.err
23846 rm -f conftest.er1
23847 cat conftest.err >&5
a848cd7e
SC
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } &&
9dd0f6c2 23850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852 (eval $ac_try) 2>&5
23853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; } &&
23856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858 (eval $ac_try) 2>&5
23859 ac_status=$?
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; }; then
23862 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23863else
23864 echo "$as_me: failed program was:" >&5
23865sed 's/^/| /' conftest.$ac_ext >&5
23866
23867ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23868fi
ac1cb8d3
VS
23869rm -f conftest.err conftest.$ac_objext \
23870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23871LIBS=$ac_check_lib_save_LIBS
23872fi
23873echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23874echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23875if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23876 MSPACK_LINK=" -lmspack"
23877fi
23878
23879 fi
23880 if test "x$MSPACK_LINK" = "x" ; then
23881 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23882 fi
23883fi
23884
23885if test "$wxUSE_LIBMSPACK" != "no"; then
23886 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23887#define wxUSE_LIBMSPACK 1
23888_ACEOF
23889
a848cd7e
SC
23890fi
23891
23892
23893
23894AFMINSTALL=
23895WIN32INSTALL=
23896
23897TOOLKIT=
23898TOOLKIT_INCLUDE=
23899WIDGET_SET=
23900
23901if test "$USE_WIN32" = 1 ; then
23902
23903for ac_header in w32api.h
23904do
23905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23906if eval "test \"\${$as_ac_Header+set}\" = set"; then
23907 echo "$as_me:$LINENO: checking for $ac_header" >&5
23908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23909if eval "test \"\${$as_ac_Header+set}\" = set"; then
23910 echo $ECHO_N "(cached) $ECHO_C" >&6
23911fi
23912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23914else
23915 # Is the header compilable?
23916echo "$as_me:$LINENO: checking $ac_header usability" >&5
23917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23918cat >conftest.$ac_ext <<_ACEOF
23919/* confdefs.h. */
23920_ACEOF
23921cat confdefs.h >>conftest.$ac_ext
23922cat >>conftest.$ac_ext <<_ACEOF
23923/* end confdefs.h. */
23924$ac_includes_default
23925#include <$ac_header>
23926_ACEOF
23927rm -f conftest.$ac_objext
23928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23929 (eval $ac_compile) 2>conftest.er1
a848cd7e 23930 ac_status=$?
ac1cb8d3
VS
23931 grep -v '^ *+' conftest.er1 >conftest.err
23932 rm -f conftest.er1
23933 cat conftest.err >&5
a848cd7e
SC
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } &&
9dd0f6c2 23936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; } &&
23942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23944 (eval $ac_try) 2>&5
23945 ac_status=$?
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); }; }; then
23948 ac_header_compiler=yes
23949else
23950 echo "$as_me: failed program was:" >&5
23951sed 's/^/| /' conftest.$ac_ext >&5
23952
23953ac_header_compiler=no
23954fi
ac1cb8d3 23955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23957echo "${ECHO_T}$ac_header_compiler" >&6
23958
23959# Is the header present?
23960echo "$as_me:$LINENO: checking $ac_header presence" >&5
23961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23962cat >conftest.$ac_ext <<_ACEOF
23963/* confdefs.h. */
23964_ACEOF
23965cat confdefs.h >>conftest.$ac_ext
23966cat >>conftest.$ac_ext <<_ACEOF
23967/* end confdefs.h. */
23968#include <$ac_header>
23969_ACEOF
23970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23972 ac_status=$?
23973 grep -v '^ *+' conftest.er1 >conftest.err
23974 rm -f conftest.er1
23975 cat conftest.err >&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); } >/dev/null; then
23978 if test -s conftest.err; then
23979 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23981 else
23982 ac_cpp_err=
23983 fi
23984else
23985 ac_cpp_err=yes
23986fi
23987if test -z "$ac_cpp_err"; then
23988 ac_header_preproc=yes
23989else
23990 echo "$as_me: failed program was:" >&5
23991sed 's/^/| /' conftest.$ac_ext >&5
23992
23993 ac_header_preproc=no
23994fi
23995rm -f conftest.err conftest.$ac_ext
23996echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23997echo "${ECHO_T}$ac_header_preproc" >&6
23998
23999# So? What about this header?
ac1cb8d3
VS
24000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24001 yes:no: )
a848cd7e
SC
24002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24006 ac_header_preproc=yes
a848cd7e 24007 ;;
ac1cb8d3 24008 no:yes:* )
a848cd7e
SC
24009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24021 (
24022 cat <<\_ASBOX
ac1cb8d3
VS
24023## ----------------------------------------- ##
24024## Report this to wx-dev@lists.wxwidgets.org ##
24025## ----------------------------------------- ##
a848cd7e
SC
24026_ASBOX
24027 ) |
24028 sed "s/^/$as_me: WARNING: /" >&2
24029 ;;
24030esac
24031echo "$as_me:$LINENO: checking for $ac_header" >&5
24032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24033if eval "test \"\${$as_ac_Header+set}\" = set"; then
24034 echo $ECHO_N "(cached) $ECHO_C" >&6
24035else
ac1cb8d3 24036 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24037fi
24038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24040
24041fi
24042if test `eval echo '${'$as_ac_Header'}'` = yes; then
24043 cat >>confdefs.h <<_ACEOF
24044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24045_ACEOF
24046
24047fi
24048
24049done
24050
24051 if test "${ac_cv_header_windows_h+set}" = set; then
24052 echo "$as_me:$LINENO: checking for windows.h" >&5
24053echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24054if test "${ac_cv_header_windows_h+set}" = set; then
24055 echo $ECHO_N "(cached) $ECHO_C" >&6
24056fi
24057echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24058echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24059else
24060 # Is the header compilable?
24061echo "$as_me:$LINENO: checking windows.h usability" >&5
24062echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24063cat >conftest.$ac_ext <<_ACEOF
24064/* confdefs.h. */
24065_ACEOF
24066cat confdefs.h >>conftest.$ac_ext
24067cat >>conftest.$ac_ext <<_ACEOF
24068/* end confdefs.h. */
24069$ac_includes_default
24070#include <windows.h>
24071_ACEOF
24072rm -f conftest.$ac_objext
24073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24074 (eval $ac_compile) 2>conftest.er1
a848cd7e 24075 ac_status=$?
ac1cb8d3
VS
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
a848cd7e
SC
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
9dd0f6c2 24081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; } &&
24087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; }; then
24093 ac_header_compiler=yes
24094else
24095 echo "$as_me: failed program was:" >&5
24096sed 's/^/| /' conftest.$ac_ext >&5
24097
24098ac_header_compiler=no
24099fi
ac1cb8d3 24100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24102echo "${ECHO_T}$ac_header_compiler" >&6
24103
24104# Is the header present?
24105echo "$as_me:$LINENO: checking windows.h presence" >&5
24106echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24107cat >conftest.$ac_ext <<_ACEOF
24108/* confdefs.h. */
24109_ACEOF
24110cat confdefs.h >>conftest.$ac_ext
24111cat >>conftest.$ac_ext <<_ACEOF
24112/* end confdefs.h. */
24113#include <windows.h>
24114_ACEOF
24115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24117 ac_status=$?
24118 grep -v '^ *+' conftest.er1 >conftest.err
24119 rm -f conftest.er1
24120 cat conftest.err >&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } >/dev/null; then
24123 if test -s conftest.err; then
24124 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24126 else
24127 ac_cpp_err=
24128 fi
24129else
24130 ac_cpp_err=yes
24131fi
24132if test -z "$ac_cpp_err"; then
24133 ac_header_preproc=yes
24134else
24135 echo "$as_me: failed program was:" >&5
24136sed 's/^/| /' conftest.$ac_ext >&5
24137
24138 ac_header_preproc=no
24139fi
24140rm -f conftest.err conftest.$ac_ext
24141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24142echo "${ECHO_T}$ac_header_preproc" >&6
24143
24144# So? What about this header?
ac1cb8d3
VS
24145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24146 yes:no: )
a848cd7e
SC
24147 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24148echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24149 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24150echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24151 ac_header_preproc=yes
a848cd7e 24152 ;;
ac1cb8d3 24153 no:yes:* )
a848cd7e
SC
24154 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24155echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24156 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24157echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24158 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24159echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24160 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24161echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24162 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24163echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24164 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24165echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24166 (
24167 cat <<\_ASBOX
ac1cb8d3
VS
24168## ----------------------------------------- ##
24169## Report this to wx-dev@lists.wxwidgets.org ##
24170## ----------------------------------------- ##
a848cd7e
SC
24171_ASBOX
24172 ) |
24173 sed "s/^/$as_me: WARNING: /" >&2
24174 ;;
24175esac
24176echo "$as_me:$LINENO: checking for windows.h" >&5
24177echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24178if test "${ac_cv_header_windows_h+set}" = set; then
24179 echo $ECHO_N "(cached) $ECHO_C" >&6
24180else
24181 ac_cv_header_windows_h=$ac_header_preproc
24182fi
24183echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24184echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24185
24186fi
24187if test $ac_cv_header_windows_h = yes; then
24188 :
24189else
24190
24191 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24192echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24193 { (exit 1); exit 1; }; }
24194
24195fi
24196
24197
24198
24199 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24200
24201 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24202 LIBS="$LIBS -loleacc"
24203 fi
24204
24205 case "${host}" in
24206 *-*-cygwin* )
24207 LIBS="$LIBS -lkernel32 -luser32"
24208 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24209 esac
24210
24211 if test "$wxUSE_ODBC" = "sys" ; then
24212 wxUSE_ODBC = "yes"
24213 fi
24214 if test "$wxUSE_ODBC" = "yes" ; then
24215 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24216 cat >>confdefs.h <<\_ACEOF
24217#define wxUSE_ODBC 1
24218_ACEOF
24219
24220 fi
24221
24222 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24223 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24224
24225 WIN32INSTALL=win32install
24226fi
24227
24228if test "$wxUSE_GUI" = "yes"; then
24229 USE_GUI=1
24230
24231 GUI_TK_LIBRARY=
24232
24233 WXGTK12=
24234 WXGTK127=
24235 WXGTK20=
24236 WXGPE=
24237
207bc66c
RN
24238 if test "$wxUSE_COCOA" = 1 ; then
24239 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24240 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24241echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24242 wxUSE_PRINTING_ARCHITECTURE=no
24243 fi
24244 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24245 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24246echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24247 wxUSE_DRAG_AND_DROP=no
24248 fi
24249 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24250 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24251echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24252 wxUSE_DRAGIMAGE=no
24253 fi
24254 fi
24255
a848cd7e
SC
24256 if test "$wxUSE_MSW" = 1 ; then
24257 TOOLKIT=MSW
24258 GUIDIST=MSW_DIST
24259
ceec2216 24260 case "${host}" in
a848cd7e
SC
24261 *-*-mingw32* )
24262 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24263 esac
24264 fi
24265
24266 if test "$wxUSE_GTK" = 1; then
24267 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24268echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24269
24270 gtk_version_cached=1
24271 if test "${wx_cv_lib_gtk+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273else
24274
24275 gtk_version_cached=0
24276 echo "$as_me:$LINENO: result: " >&5
24277echo "${ECHO_T}" >&6
24278
24279 GTK_MODULES=
24280 if test "$wxUSE_THREADS" = "yes"; then
24281 GTK_MODULES=gthread
24282 fi
24283
24284 wx_cv_lib_gtk=
24285 if test "x$wxUSE_GTK2" = "xyes"; then
24286 # Check whether --enable-gtktest or --disable-gtktest was given.
24287if test "${enable_gtktest+set}" = set; then
24288 enableval="$enable_gtktest"
24289
24290else
24291 enable_gtktest=yes
24292fi;
24293
24294 pkg_config_args=gtk+-2.0
24295 for module in . $GTK_MODULES
24296 do
24297 case "$module" in
24298 gthread)
24299 pkg_config_args="$pkg_config_args gthread-2.0"
24300 ;;
24301 esac
24302 done
24303
24304 no_gtk=""
24305
24306 # Extract the first word of "pkg-config", so it can be a program name with args.
24307set dummy pkg-config; ac_word=$2
24308echo "$as_me:$LINENO: checking for $ac_word" >&5
24309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24310if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24311 echo $ECHO_N "(cached) $ECHO_C" >&6
24312else
24313 case $PKG_CONFIG in
24314 [\\/]* | ?:[\\/]*)
24315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24316 ;;
24317 *)
24318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24319for as_dir in $PATH
24320do
24321 IFS=$as_save_IFS
24322 test -z "$as_dir" && as_dir=.
24323 for ac_exec_ext in '' $ac_executable_extensions; do
24324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24325 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24327 break 2
24328 fi
24329done
24330done
24331
24332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24333 ;;
24334esac
24335fi
24336PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24337
24338if test -n "$PKG_CONFIG"; then
24339 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24340echo "${ECHO_T}$PKG_CONFIG" >&6
24341else
24342 echo "$as_me:$LINENO: result: no" >&5
24343echo "${ECHO_T}no" >&6
24344fi
24345
24346
24347 if test x$PKG_CONFIG != xno ; then
24348 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24349 :
24350 else
c2218763 24351 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24352 no_gtk=yes
24353 PKG_CONFIG=no
24354 fi
24355 else
24356 no_gtk=yes
24357 fi
24358
24359 min_gtk_version=2.0.0
24360 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24361echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24362
24363 if test x$PKG_CONFIG != xno ; then
24364 ## don't try to run the test against uninstalled libtool libs
24365 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24366 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24367 enable_gtktest=no
24368 fi
24369
24370 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24371 :
24372 else
24373 no_gtk=yes
24374 fi
24375 fi
24376
24377 if test x"$no_gtk" = x ; then
24378 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24379 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24380 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24382 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24383 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24384 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24385 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24386 if test "x$enable_gtktest" = "xyes" ; then
24387 ac_save_CFLAGS="$CFLAGS"
24388 ac_save_LIBS="$LIBS"
24389 CFLAGS="$CFLAGS $GTK_CFLAGS"
24390 LIBS="$GTK_LIBS $LIBS"
24391 rm -f conf.gtktest
24392 if test "$cross_compiling" = yes; then
24393 echo $ac_n "cross compiling; assumed OK... $ac_c"
24394else
24395 cat >conftest.$ac_ext <<_ACEOF
24396/* confdefs.h. */
24397_ACEOF
24398cat confdefs.h >>conftest.$ac_ext
24399cat >>conftest.$ac_ext <<_ACEOF
24400/* end confdefs.h. */
24401
24402#include <gtk/gtk.h>
24403#include <stdio.h>
24404#include <stdlib.h>
24405
24406int
24407main ()
24408{
24409 int major, minor, micro;
24410 char *tmp_version;
24411
24412 system ("touch conf.gtktest");
24413
24414 /* HP/UX 9 (%@#!) writes to sscanf strings */
24415 tmp_version = g_strdup("$min_gtk_version");
24416 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24417 printf("%s, bad version string\n", "$min_gtk_version");
24418 exit(1);
24419 }
24420
24421 if ((gtk_major_version != $gtk_config_major_version) ||
24422 (gtk_minor_version != $gtk_config_minor_version) ||
24423 (gtk_micro_version != $gtk_config_micro_version))
24424 {
24425 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24426 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24427 gtk_major_version, gtk_minor_version, gtk_micro_version);
24428 printf ("*** was found! If pkg-config was correct, then it is best\n");
24429 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24430 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24431 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24432 printf("*** required on your system.\n");
24433 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24434 printf("*** to point to the correct configuration files\n");
24435 }
24436 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24437 (gtk_minor_version != GTK_MINOR_VERSION) ||
24438 (gtk_micro_version != GTK_MICRO_VERSION))
24439 {
24440 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24441 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24442 printf("*** library (version %d.%d.%d)\n",
24443 gtk_major_version, gtk_minor_version, gtk_micro_version);
24444 }
24445 else
24446 {
24447 if ((gtk_major_version > major) ||
24448 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24449 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24450 {
24451 return 0;
24452 }
24453 else
24454 {
24455 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24456 gtk_major_version, gtk_minor_version, gtk_micro_version);
24457 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24458 major, minor, micro);
24459 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24460 printf("***\n");
24461 printf("*** If you have already installed a sufficiently new version, this error\n");
24462 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24463 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24464 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24465 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24466 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24467 printf("*** so that the correct libraries are found at run-time))\n");
24468 }
24469 }
24470 return 1;
24471}
24472
24473_ACEOF
24474rm -f conftest$ac_exeext
24475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24476 (eval $ac_link) 2>&5
24477 ac_status=$?
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; }; then
24485 :
24486else
24487 echo "$as_me: program exited with status $ac_status" >&5
24488echo "$as_me: failed program was:" >&5
24489sed 's/^/| /' conftest.$ac_ext >&5
24490
24491( exit $ac_status )
24492no_gtk=yes
24493fi
ac1cb8d3 24494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24495fi
24496 CFLAGS="$ac_save_CFLAGS"
24497 LIBS="$ac_save_LIBS"
24498 fi
24499 fi
24500 if test "x$no_gtk" = x ; then
24501 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24502echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24503 wx_cv_lib_gtk=2.0
24504 else
24505 echo "$as_me:$LINENO: result: no" >&5
24506echo "${ECHO_T}no" >&6
24507 if test "$PKG_CONFIG" = "no" ; then
24508 echo "*** A new enough version of pkg-config was not found."
24509 echo "*** See http://pkgconfig.sourceforge.net"
24510 else
24511 if test -f conf.gtktest ; then
24512 :
24513 else
24514 echo "*** Could not run GTK+ test program, checking why..."
24515 ac_save_CFLAGS="$CFLAGS"
24516 ac_save_LIBS="$LIBS"
24517 CFLAGS="$CFLAGS $GTK_CFLAGS"
24518 LIBS="$LIBS $GTK_LIBS"
24519 cat >conftest.$ac_ext <<_ACEOF
24520/* confdefs.h. */
24521_ACEOF
24522cat confdefs.h >>conftest.$ac_ext
24523cat >>conftest.$ac_ext <<_ACEOF
24524/* end confdefs.h. */
24525
24526#include <gtk/gtk.h>
24527#include <stdio.h>
24528
24529int
24530main ()
24531{
24532 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24533 ;
24534 return 0;
24535}
24536_ACEOF
24537rm -f conftest.$ac_objext conftest$ac_exeext
24538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24539 (eval $ac_link) 2>conftest.er1
a848cd7e 24540 ac_status=$?
ac1cb8d3
VS
24541 grep -v '^ *+' conftest.er1 >conftest.err
24542 rm -f conftest.er1
24543 cat conftest.err >&5
a848cd7e
SC
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } &&
9dd0f6c2 24546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; } &&
24552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; }; then
24558 echo "*** The test program compiled, but did not run. This usually means"
24559 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24560 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24561 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24562 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24563 echo "*** is required on your system"
24564 echo "***"
24565 echo "*** If you have an old version installed, it is best to remove it, although"
24566 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24567else
24568 echo "$as_me: failed program was:" >&5
24569sed 's/^/| /' conftest.$ac_ext >&5
24570
24571 echo "*** The test program failed to compile or link. See the file config.log for the"
24572 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24573fi
ac1cb8d3
VS
24574rm -f conftest.err conftest.$ac_objext \
24575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24576 CFLAGS="$ac_save_CFLAGS"
24577 LIBS="$ac_save_LIBS"
24578 fi
24579 fi
24580 GTK_CFLAGS=""
24581 GTK_LIBS=""
24582 :
24583 fi
24584
24585
24586 rm -f conf.gtktest
24587
24588 else
24589
24590# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24591if test "${with_gtk_prefix+set}" = set; then
24592 withval="$with_gtk_prefix"
24593 gtk_config_prefix="$withval"
24594else
24595 gtk_config_prefix=""
24596fi;
24597
24598# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24599if test "${with_gtk_exec_prefix+set}" = set; then
24600 withval="$with_gtk_exec_prefix"
24601 gtk_config_exec_prefix="$withval"
24602else
24603 gtk_config_exec_prefix=""
24604fi;
24605# Check whether --enable-gtktest or --disable-gtktest was given.
24606if test "${enable_gtktest+set}" = set; then
24607 enableval="$enable_gtktest"
24608
24609else
24610 enable_gtktest=yes
24611fi;
24612
24613 for module in . $GTK_MODULES
24614 do
24615 case "$module" in
24616 gthread)
24617 gtk_config_args="$gtk_config_args gthread"
24618 ;;
24619 esac
24620 done
24621
24622 if test x$gtk_config_exec_prefix != x ; then
24623 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24624 if test x${GTK_CONFIG+set} != xset ; then
24625 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24626 fi
24627 fi
24628 if test x$gtk_config_prefix != x ; then
24629 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24630 if test x${GTK_CONFIG+set} != xset ; then
24631 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24632 fi
24633 fi
24634
24635 # Extract the first word of "gtk-config", so it can be a program name with args.
24636set dummy gtk-config; ac_word=$2
24637echo "$as_me:$LINENO: checking for $ac_word" >&5
24638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24639if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24640 echo $ECHO_N "(cached) $ECHO_C" >&6
24641else
24642 case $GTK_CONFIG in
24643 [\\/]* | ?:[\\/]*)
24644 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24645 ;;
24646 *)
24647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24648for as_dir in $PATH
24649do
24650 IFS=$as_save_IFS
24651 test -z "$as_dir" && as_dir=.
24652 for ac_exec_ext in '' $ac_executable_extensions; do
24653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24654 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24656 break 2
24657 fi
24658done
24659done
24660
24661 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24662 ;;
24663esac
24664fi
24665GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24666
24667if test -n "$GTK_CONFIG"; then
24668 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24669echo "${ECHO_T}$GTK_CONFIG" >&6
24670else
24671 echo "$as_me:$LINENO: result: no" >&5
24672echo "${ECHO_T}no" >&6
24673fi
24674
24675 min_gtk_version=1.2.7
24676 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24677echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24678 no_gtk=""
24679 if test "$GTK_CONFIG" = "no" ; then
24680 no_gtk=yes
24681 else
24682 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24683 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24684 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24686 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24688 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24689 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24690 if test "x$enable_gtktest" = "xyes" ; then
24691 ac_save_CFLAGS="$CFLAGS"
24692 ac_save_LIBS="$LIBS"
24693 CFLAGS="$CFLAGS $GTK_CFLAGS"
24694 LIBS="$GTK_LIBS $LIBS"
24695 rm -f conf.gtktest
24696 if test "$cross_compiling" = yes; then
24697 echo $ac_n "cross compiling; assumed OK... $ac_c"
24698else
24699 cat >conftest.$ac_ext <<_ACEOF
24700/* confdefs.h. */
24701_ACEOF
24702cat confdefs.h >>conftest.$ac_ext
24703cat >>conftest.$ac_ext <<_ACEOF
24704/* end confdefs.h. */
24705
24706#include <gtk/gtk.h>
24707#include <stdio.h>
24708#include <stdlib.h>
24709
24710int
24711main ()
24712{
24713 int major, minor, micro;
24714 char *tmp_version;
24715
24716 system ("touch conf.gtktest");
24717
24718 /* HP/UX 9 (%@#!) writes to sscanf strings */
24719 tmp_version = g_strdup("$min_gtk_version");
24720 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24721 printf("%s, bad version string\n", "$min_gtk_version");
24722 exit(1);
24723 }
24724
24725 if ((gtk_major_version != $gtk_config_major_version) ||
24726 (gtk_minor_version != $gtk_config_minor_version) ||
24727 (gtk_micro_version != $gtk_config_micro_version))
24728 {
24729 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24730 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24731 gtk_major_version, gtk_minor_version, gtk_micro_version);
24732 printf ("*** was found! If gtk-config was correct, then it is best\n");
24733 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24734 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24735 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24736 printf("*** required on your system.\n");
24737 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24738 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24739 printf("*** before re-running configure\n");
24740 }
24741#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24742 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24743 (gtk_minor_version != GTK_MINOR_VERSION) ||
24744 (gtk_micro_version != GTK_MICRO_VERSION))
24745 {
24746 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24747 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24748 printf("*** library (version %d.%d.%d)\n",
24749 gtk_major_version, gtk_minor_version, gtk_micro_version);
24750 }
24751#endif /* defined (GTK_MAJOR_VERSION) ... */
24752 else
24753 {
24754 if ((gtk_major_version > major) ||
24755 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24756 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24757 {
24758 return 0;
24759 }
24760 else
24761 {
24762 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24763 gtk_major_version, gtk_minor_version, gtk_micro_version);
24764 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24765 major, minor, micro);
24766 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24767 printf("***\n");
24768 printf("*** If you have already installed a sufficiently new version, this error\n");
24769 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24770 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24771 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24772 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24773 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24774 printf("*** so that the correct libraries are found at run-time))\n");
24775 }
24776 }
24777 return 1;
24778}
24779
24780_ACEOF
24781rm -f conftest$ac_exeext
24782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24783 (eval $ac_link) 2>&5
24784 ac_status=$?
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
24792 :
24793else
24794 echo "$as_me: program exited with status $ac_status" >&5
24795echo "$as_me: failed program was:" >&5
24796sed 's/^/| /' conftest.$ac_ext >&5
24797
24798( exit $ac_status )
24799no_gtk=yes
24800fi
ac1cb8d3 24801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24802fi
24803 CFLAGS="$ac_save_CFLAGS"
24804 LIBS="$ac_save_LIBS"
24805 fi
24806 fi
24807 if test "x$no_gtk" = x ; then
24808 echo "$as_me:$LINENO: result: yes" >&5
24809echo "${ECHO_T}yes" >&6
24810 wx_cv_lib_gtk=1.2.7
24811 else
24812 echo "$as_me:$LINENO: result: no" >&5
24813echo "${ECHO_T}no" >&6
24814 if test "$GTK_CONFIG" = "no" ; then
24815 echo "*** The gtk-config script installed by GTK could not be found"
24816 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24817 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24818 echo "*** full path to gtk-config."
24819 else
24820 if test -f conf.gtktest ; then
24821 :
24822 else
24823 echo "*** Could not run GTK test program, checking why..."
24824 CFLAGS="$CFLAGS $GTK_CFLAGS"
24825 LIBS="$LIBS $GTK_LIBS"
24826 cat >conftest.$ac_ext <<_ACEOF
24827/* confdefs.h. */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h. */
24832
24833#include <gtk/gtk.h>
24834#include <stdio.h>
24835
24836int
24837main ()
24838{
24839 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24840 ;
24841 return 0;
24842}
24843_ACEOF
24844rm -f conftest.$ac_objext conftest$ac_exeext
24845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24846 (eval $ac_link) 2>conftest.er1
a848cd7e 24847 ac_status=$?
ac1cb8d3
VS
24848 grep -v '^ *+' conftest.er1 >conftest.err
24849 rm -f conftest.er1
24850 cat conftest.err >&5
a848cd7e
SC
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); } &&
9dd0f6c2 24853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; } &&
24859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865 echo "*** The test program compiled, but did not run. This usually means"
24866 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24867 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24868 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24869 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24870 echo "*** is required on your system"
24871 echo "***"
24872 echo "*** If you have an old version installed, it is best to remove it, although"
24873 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24874 echo "***"
24875 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24876 echo "*** came with the system with the command"
24877 echo "***"
24878 echo "*** rpm --erase --nodeps gtk gtk-devel"
24879else
24880 echo "$as_me: failed program was:" >&5
24881sed 's/^/| /' conftest.$ac_ext >&5
24882
24883 echo "*** The test program failed to compile or link. See the file config.log for the"
24884 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24885 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24886 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24887fi
ac1cb8d3
VS
24888rm -f conftest.err conftest.$ac_objext \
24889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24890 CFLAGS="$ac_save_CFLAGS"
24891 LIBS="$ac_save_LIBS"
24892 fi
24893 fi
24894 GTK_CFLAGS=""
24895 GTK_LIBS=""
24896 :
24897 fi
24898
24899
24900 rm -f conf.gtktest
24901
24902
24903 if test -z "$wx_cv_lib_gtk"; then
24904
24905# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24906if test "${with_gtk_prefix+set}" = set; then
24907 withval="$with_gtk_prefix"
24908 gtk_config_prefix="$withval"
24909else
24910 gtk_config_prefix=""
24911fi;
24912
24913# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24914if test "${with_gtk_exec_prefix+set}" = set; then
24915 withval="$with_gtk_exec_prefix"
24916 gtk_config_exec_prefix="$withval"
24917else
24918 gtk_config_exec_prefix=""
24919fi;
24920# Check whether --enable-gtktest or --disable-gtktest was given.
24921if test "${enable_gtktest+set}" = set; then
24922 enableval="$enable_gtktest"
24923
24924else
24925 enable_gtktest=yes
24926fi;
24927
24928 for module in . $GTK_MODULES
24929 do
24930 case "$module" in
24931 gthread)
24932 gtk_config_args="$gtk_config_args gthread"
24933 ;;
24934 esac
24935 done
24936
24937 if test x$gtk_config_exec_prefix != x ; then
24938 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24939 if test x${GTK_CONFIG+set} != xset ; then
24940 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24941 fi
24942 fi
24943 if test x$gtk_config_prefix != x ; then
24944 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24945 if test x${GTK_CONFIG+set} != xset ; then
24946 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24947 fi
24948 fi
24949
24950 # Extract the first word of "gtk-config", so it can be a program name with args.
24951set dummy gtk-config; ac_word=$2
24952echo "$as_me:$LINENO: checking for $ac_word" >&5
24953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24954if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24956else
24957 case $GTK_CONFIG in
24958 [\\/]* | ?:[\\/]*)
24959 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24960 ;;
24961 *)
24962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24963for as_dir in $PATH
24964do
24965 IFS=$as_save_IFS
24966 test -z "$as_dir" && as_dir=.
24967 for ac_exec_ext in '' $ac_executable_extensions; do
24968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24969 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24971 break 2
24972 fi
24973done
24974done
24975
24976 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24977 ;;
24978esac
24979fi
24980GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24981
24982if test -n "$GTK_CONFIG"; then
24983 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24984echo "${ECHO_T}$GTK_CONFIG" >&6
24985else
24986 echo "$as_me:$LINENO: result: no" >&5
24987echo "${ECHO_T}no" >&6
24988fi
24989
24990 min_gtk_version=1.2.3
24991 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24992echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24993 no_gtk=""
24994 if test "$GTK_CONFIG" = "no" ; then
24995 no_gtk=yes
24996 else
24997 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24998 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24999 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25000 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25001 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25002 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25003 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25005 if test "x$enable_gtktest" = "xyes" ; then
25006 ac_save_CFLAGS="$CFLAGS"
25007 ac_save_LIBS="$LIBS"
25008 CFLAGS="$CFLAGS $GTK_CFLAGS"
25009 LIBS="$GTK_LIBS $LIBS"
25010 rm -f conf.gtktest
25011 if test "$cross_compiling" = yes; then
25012 echo $ac_n "cross compiling; assumed OK... $ac_c"
25013else
25014 cat >conftest.$ac_ext <<_ACEOF
25015/* confdefs.h. */
25016_ACEOF
25017cat confdefs.h >>conftest.$ac_ext
25018cat >>conftest.$ac_ext <<_ACEOF
25019/* end confdefs.h. */
25020
25021#include <gtk/gtk.h>
25022#include <stdio.h>
25023#include <stdlib.h>
25024
25025int
25026main ()
25027{
25028 int major, minor, micro;
25029 char *tmp_version;
25030
25031 system ("touch conf.gtktest");
25032
25033 /* HP/UX 9 (%@#!) writes to sscanf strings */
25034 tmp_version = g_strdup("$min_gtk_version");
25035 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25036 printf("%s, bad version string\n", "$min_gtk_version");
25037 exit(1);
25038 }
25039
25040 if ((gtk_major_version != $gtk_config_major_version) ||
25041 (gtk_minor_version != $gtk_config_minor_version) ||
25042 (gtk_micro_version != $gtk_config_micro_version))
25043 {
25044 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25045 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25046 gtk_major_version, gtk_minor_version, gtk_micro_version);
25047 printf ("*** was found! If gtk-config was correct, then it is best\n");
25048 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25049 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25050 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25051 printf("*** required on your system.\n");
25052 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25053 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25054 printf("*** before re-running configure\n");
25055 }
25056#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25057 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25058 (gtk_minor_version != GTK_MINOR_VERSION) ||
25059 (gtk_micro_version != GTK_MICRO_VERSION))
25060 {
25061 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25062 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25063 printf("*** library (version %d.%d.%d)\n",
25064 gtk_major_version, gtk_minor_version, gtk_micro_version);
25065 }
25066#endif /* defined (GTK_MAJOR_VERSION) ... */
25067 else
25068 {
25069 if ((gtk_major_version > major) ||
25070 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25071 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25072 {
25073 return 0;
25074 }
25075 else
25076 {
25077 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25078 gtk_major_version, gtk_minor_version, gtk_micro_version);
25079 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25080 major, minor, micro);
25081 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25082 printf("***\n");
25083 printf("*** If you have already installed a sufficiently new version, this error\n");
25084 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25085 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25086 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25087 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25088 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25089 printf("*** so that the correct libraries are found at run-time))\n");
25090 }
25091 }
25092 return 1;
25093}
25094
25095_ACEOF
25096rm -f conftest$ac_exeext
25097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25098 (eval $ac_link) 2>&5
25099 ac_status=$?
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; }; then
25107 :
25108else
25109 echo "$as_me: program exited with status $ac_status" >&5
25110echo "$as_me: failed program was:" >&5
25111sed 's/^/| /' conftest.$ac_ext >&5
25112
25113( exit $ac_status )
25114no_gtk=yes
25115fi
ac1cb8d3 25116rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25117fi
25118 CFLAGS="$ac_save_CFLAGS"
25119 LIBS="$ac_save_LIBS"
25120 fi
25121 fi
25122 if test "x$no_gtk" = x ; then
25123 echo "$as_me:$LINENO: result: yes" >&5
25124echo "${ECHO_T}yes" >&6
25125 wx_cv_lib_gtk=1.2.3
25126 else
25127 echo "$as_me:$LINENO: result: no" >&5
25128echo "${ECHO_T}no" >&6
25129 if test "$GTK_CONFIG" = "no" ; then
25130 echo "*** The gtk-config script installed by GTK could not be found"
25131 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25132 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25133 echo "*** full path to gtk-config."
25134 else
25135 if test -f conf.gtktest ; then
25136 :
25137 else
25138 echo "*** Could not run GTK test program, checking why..."
25139 CFLAGS="$CFLAGS $GTK_CFLAGS"
25140 LIBS="$LIBS $GTK_LIBS"
25141 cat >conftest.$ac_ext <<_ACEOF
25142/* confdefs.h. */
25143_ACEOF
25144cat confdefs.h >>conftest.$ac_ext
25145cat >>conftest.$ac_ext <<_ACEOF
25146/* end confdefs.h. */
25147
25148#include <gtk/gtk.h>
25149#include <stdio.h>
25150
25151int
25152main ()
25153{
25154 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25155 ;
25156 return 0;
25157}
25158_ACEOF
25159rm -f conftest.$ac_objext conftest$ac_exeext
25160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25161 (eval $ac_link) 2>conftest.er1
a848cd7e 25162 ac_status=$?
ac1cb8d3
VS
25163 grep -v '^ *+' conftest.er1 >conftest.err
25164 rm -f conftest.er1
25165 cat conftest.err >&5
a848cd7e
SC
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); } &&
9dd0f6c2 25168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; } &&
25174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; }; then
25180 echo "*** The test program compiled, but did not run. This usually means"
25181 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25182 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25183 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25184 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25185 echo "*** is required on your system"
25186 echo "***"
25187 echo "*** If you have an old version installed, it is best to remove it, although"
25188 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25189 echo "***"
25190 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25191 echo "*** came with the system with the command"
25192 echo "***"
25193 echo "*** rpm --erase --nodeps gtk gtk-devel"
25194else
25195 echo "$as_me: failed program was:" >&5
25196sed 's/^/| /' conftest.$ac_ext >&5
25197
25198 echo "*** The test program failed to compile or link. See the file config.log for the"
25199 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25200 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25201 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25202fi
ac1cb8d3
VS
25203rm -f conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25205 CFLAGS="$ac_save_CFLAGS"
25206 LIBS="$ac_save_LIBS"
25207 fi
25208 fi
25209 GTK_CFLAGS=""
25210 GTK_LIBS=""
25211 :
25212 fi
25213
25214
25215 rm -f conf.gtktest
25216
25217 fi
25218 fi
25219
25220 if test -z "$wx_cv_lib_gtk"; then
25221 wx_cv_lib_gtk=none
25222 else
25223 wx_cv_cflags_gtk=$GTK_CFLAGS
25224 wx_cv_libs_gtk=$GTK_LIBS
25225 fi
25226
25227
25228fi
25229
25230
25231 if test "$gtk_version_cached" = 1; then
25232 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25233echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25234 fi
25235
25236 case "$wx_cv_lib_gtk" in
25237 2.0) WXGTK20=1
25238 TOOLKIT_VERSION=2
25239 ;;
25240 1.2.7) WXGTK127=1
25241 WXGTK12=1
25242 ;;
25243 1.2.3) WXGTK12=1
25244 ;;
25245 *) { { echo "$as_me:$LINENO: error:
25246Please check that gtk-config is in path, the directory
25247where GTK+ libraries are installed (returned by
25248'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25249equivalent variable and GTK+ is version 1.2.3 or above.
25250 " >&5
25251echo "$as_me: error:
25252Please check that gtk-config is in path, the directory
25253where GTK+ libraries are installed (returned by
25254'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25255equivalent variable and GTK+ is version 1.2.3 or above.
25256 " >&2;}
25257 { (exit 1); exit 1; }; }
25258 ;;
25259 esac
25260
25261 if test "$WXGTK20" = 1; then
304205f1
VS
25262 save_CFLAGS="$CFLAGS"
25263 save_LIBS="$LIBS"
9d271838
VZ
25264 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25265 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25266
9755e73b 25267
304205f1
VS
25268for ac_func in pango_font_family_is_monospace
25269do
25270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25271echo "$as_me:$LINENO: checking for $ac_func" >&5
25272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25273if eval "test \"\${$as_ac_var+set}\" = set"; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25275else
25276 cat >conftest.$ac_ext <<_ACEOF
25277/* confdefs.h. */
25278_ACEOF
25279cat confdefs.h >>conftest.$ac_ext
25280cat >>conftest.$ac_ext <<_ACEOF
25281/* end confdefs.h. */
25282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25284#define $ac_func innocuous_$ac_func
25285
25286/* System header to define __stub macros and hopefully few prototypes,
25287 which can conflict with char $ac_func (); below.
25288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25289 <limits.h> exists even on freestanding compilers. */
25290
25291#ifdef __STDC__
25292# include <limits.h>
25293#else
25294# include <assert.h>
25295#endif
25296
25297#undef $ac_func
25298
25299/* Override any gcc2 internal prototype to avoid an error. */
25300#ifdef __cplusplus
25301extern "C"
25302{
25303#endif
25304/* We use char because int might match the return type of a gcc2
25305 builtin and then its argument prototype would still apply. */
25306char $ac_func ();
25307/* The GNU C library defines this for functions which it implements
25308 to always fail with ENOSYS. Some functions are actually named
25309 something starting with __ and the normal name is an alias. */
25310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25311choke me
25312#else
25313char (*f) () = $ac_func;
25314#endif
25315#ifdef __cplusplus
25316}
25317#endif
25318
25319int
25320main ()
25321{
25322return f != $ac_func;
25323 ;
25324 return 0;
25325}
25326_ACEOF
25327rm -f conftest.$ac_objext conftest$ac_exeext
25328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25329 (eval $ac_link) 2>conftest.er1
25330 ac_status=$?
25331 grep -v '^ *+' conftest.er1 >conftest.err
25332 rm -f conftest.er1
25333 cat conftest.err >&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } &&
9dd0f6c2 25336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; } &&
25342 { ac_try='test -s conftest$ac_exeext'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; }; then
25348 eval "$as_ac_var=yes"
25349else
25350 echo "$as_me: failed program was:" >&5
25351sed 's/^/| /' conftest.$ac_ext >&5
25352
25353eval "$as_ac_var=no"
25354fi
25355rm -f conftest.err conftest.$ac_objext \
25356 conftest$ac_exeext conftest.$ac_ext
25357fi
25358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25360if test `eval echo '${'$as_ac_var'}'` = yes; then
25361 cat >>confdefs.h <<_ACEOF
25362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25363_ACEOF
25364
25365fi
25366done
25367
9755e73b
VS
25368
25369 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25370echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25371 cat >conftest.$ac_ext <<_ACEOF
25372/* confdefs.h. */
25373_ACEOF
25374cat confdefs.h >>conftest.$ac_ext
25375cat >>conftest.$ac_ext <<_ACEOF
25376/* end confdefs.h. */
25377
25378 #include <gtk/gtk.h>
25379
25380int
25381main ()
25382{
25383
25384 #if !GTK_CHECK_VERSION(2,4,0)
25385 #error "Not GTK+ 2.4"
25386 #endif
25387
25388 ;
25389 return 0;
25390}
25391_ACEOF
25392rm -f conftest.$ac_objext
25393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25394 (eval $ac_compile) 2>conftest.er1
25395 ac_status=$?
25396 grep -v '^ *+' conftest.er1 >conftest.err
25397 rm -f conftest.er1
25398 cat conftest.err >&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } &&
9dd0f6c2 25401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; } &&
25407 { ac_try='test -s conftest.$ac_objext'
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25410 ac_status=$?
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; }; then
25413
25414 cat >>confdefs.h <<\_ACEOF
25415#define __WXGTK24__ 1
25416_ACEOF
25417
25418 echo "$as_me:$LINENO: result: yes" >&5
25419echo "${ECHO_T}yes" >&6
25420
25421else
25422 echo "$as_me: failed program was:" >&5
25423sed 's/^/| /' conftest.$ac_ext >&5
25424
25425
25426 echo "$as_me:$LINENO: result: no" >&5
25427echo "${ECHO_T}no" >&6
25428
25429fi
25430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25431
304205f1
VS
25432 CFLAGS="$save_CFLAGS"
25433 LIBS="$save_LIBS"
a848cd7e
SC
25434 else
25435 if test "$wxUSE_UNICODE" = "yes"; then
25436 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25437echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25438 wxUSE_UNICODE=no
25439 fi
25440 fi
25441
25442 if test "$USE_DARWIN" != 1; then
25443
25444for ac_func in poll
25445do
25446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25447echo "$as_me:$LINENO: checking for $ac_func" >&5
25448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25449if eval "test \"\${$as_ac_var+set}\" = set"; then
25450 echo $ECHO_N "(cached) $ECHO_C" >&6
25451else
25452 cat >conftest.$ac_ext <<_ACEOF
25453/* confdefs.h. */
25454_ACEOF
25455cat confdefs.h >>conftest.$ac_ext
25456cat >>conftest.$ac_ext <<_ACEOF
25457/* end confdefs.h. */
ac1cb8d3
VS
25458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25460#define $ac_func innocuous_$ac_func
25461
a848cd7e
SC
25462/* System header to define __stub macros and hopefully few prototypes,
25463 which can conflict with char $ac_func (); below.
25464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25465 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25466
a848cd7e
SC
25467#ifdef __STDC__
25468# include <limits.h>
25469#else
25470# include <assert.h>
25471#endif
ac1cb8d3
VS
25472
25473#undef $ac_func
25474
a848cd7e
SC
25475/* Override any gcc2 internal prototype to avoid an error. */
25476#ifdef __cplusplus
25477extern "C"
25478{
25479#endif
25480/* We use char because int might match the return type of a gcc2
25481 builtin and then its argument prototype would still apply. */
25482char $ac_func ();
25483/* The GNU C library defines this for functions which it implements
25484 to always fail with ENOSYS. Some functions are actually named
25485 something starting with __ and the normal name is an alias. */
25486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25487choke me
25488#else
25489char (*f) () = $ac_func;
25490#endif
25491#ifdef __cplusplus
25492}
25493#endif
25494
25495int
25496main ()
25497{
25498return f != $ac_func;
25499 ;
25500 return 0;
25501}
25502_ACEOF
25503rm -f conftest.$ac_objext conftest$ac_exeext
25504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25505 (eval $ac_link) 2>conftest.er1
a848cd7e 25506 ac_status=$?
ac1cb8d3
VS
25507 grep -v '^ *+' conftest.er1 >conftest.err
25508 rm -f conftest.er1
25509 cat conftest.err >&5
a848cd7e
SC
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } &&
9dd0f6c2 25512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25515 ac_status=$?
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; } &&
25518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; }; then
25524 eval "$as_ac_var=yes"
25525else
25526 echo "$as_me: failed program was:" >&5
25527sed 's/^/| /' conftest.$ac_ext >&5
25528
25529eval "$as_ac_var=no"
25530fi
ac1cb8d3
VS
25531rm -f conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25533fi
25534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25535echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25536if test `eval echo '${'$as_ac_var'}'` = yes; then
25537 cat >>confdefs.h <<_ACEOF
25538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25539_ACEOF
25540
25541fi
25542done
25543
25544 fi
25545
25546 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25547 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25548
25549 AFMINSTALL=afminstall
25550 TOOLKIT=GTK
25551 GUIDIST=GTK_DIST
25552
25553 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25554echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25555if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25556 echo $ECHO_N "(cached) $ECHO_C" >&6
25557else
25558 ac_check_lib_save_LIBS=$LIBS
25559LIBS="-lgdk $LIBS"
25560cat >conftest.$ac_ext <<_ACEOF
25561/* confdefs.h. */
25562_ACEOF
25563cat confdefs.h >>conftest.$ac_ext
25564cat >>conftest.$ac_ext <<_ACEOF
25565/* end confdefs.h. */
25566
25567/* Override any gcc2 internal prototype to avoid an error. */
25568#ifdef __cplusplus
25569extern "C"
25570#endif
25571/* We use char because int might match the return type of a gcc2
25572 builtin and then its argument prototype would still apply. */
25573char gdk_im_open ();
25574int
25575main ()
25576{
25577gdk_im_open ();
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582rm -f conftest.$ac_objext conftest$ac_exeext
25583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25584 (eval $ac_link) 2>conftest.er1
a848cd7e 25585 ac_status=$?
ac1cb8d3
VS
25586 grep -v '^ *+' conftest.er1 >conftest.err
25587 rm -f conftest.er1
25588 cat conftest.err >&5
a848cd7e
SC
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } &&
9dd0f6c2 25591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; } &&
25597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599 (eval $ac_try) 2>&5
25600 ac_status=$?
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); }; }; then
25603 ac_cv_lib_gdk_gdk_im_open=yes
25604else
25605 echo "$as_me: failed program was:" >&5
25606sed 's/^/| /' conftest.$ac_ext >&5
25607
25608ac_cv_lib_gdk_gdk_im_open=no
25609fi
ac1cb8d3
VS
25610rm -f conftest.err conftest.$ac_objext \
25611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25612LIBS=$ac_check_lib_save_LIBS
25613fi
25614echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25615echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25616if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25617 cat >>confdefs.h <<\_ACEOF
25618#define HAVE_XIM 1
25619_ACEOF
25620
25621fi
25622
25623
25624
25625 if test "$wxUSE_GPE" = "yes"; then
25626 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25627echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25628
25629ac_find_libraries=
25630for ac_dir in $SEARCH_LIB /usr/lib;
25631 do
25632 for ac_extension in a so sl dylib; do
25633 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25634 ac_find_libraries=$ac_dir
25635 break 2
25636 fi
25637 done
25638 done
25639
25640 if test "$ac_find_libraries" != "" ; then
25641
25642 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25643 result=$?
25644 if test $result = 0; then
25645 ac_path_to_link=""
25646 else
25647 ac_path_to_link=" -L$ac_find_libraries"
25648 fi
25649
25650 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25651 WXGPE=1
25652 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25653echo "${ECHO_T}found at $ac_find_libraries" >&6
25654 else
25655 echo "$as_me:$LINENO: result: not found" >&5
25656echo "${ECHO_T}not found" >&6
25657 fi
25658
25659 fi
25660 fi
25661
25662 if test "$wxUSE_MGL" = 1; then
25663 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25664echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25665 if test "x$MGL_ROOT" = x ; then
25666 echo "$as_me:$LINENO: result: not found" >&5
25667echo "${ECHO_T}not found" >&6
25668 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25669echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25670 { (exit 1); exit 1; }; }
25671 else
25672 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25673echo "${ECHO_T}$MGL_ROOT" >&6
25674 fi
25675
25676 echo "$as_me:$LINENO: checking for libmgl location" >&5
25677echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25678 case "${host}" in
25679 *-*-linux* )
25680 if test "x$wxUSE_SHARED" = xyes ; then
25681 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25682 else
25683 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25684 fi
25685 ;;
25686 *-pc-msdosdjgpp )
25687 mgl_os_candidates="dos32/dj2"
25688 ;;
25689 *)
25690 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25691echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25692 { (exit 1); exit 1; }; }
25693 esac
25694
25695 mgl_lib_type=""
25696 mgl_os=""
25697
25698 for mgl_os_i in $mgl_os_candidates ; do
25699 if test "x$mgl_os" = x ; then
25700 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25701 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25702 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25703 mgl_lib_type=debug
25704 mgl_os=$mgl_os_i
25705 fi
25706 fi
25707 if test "x$mgl_lib_type" = x ; then
25708 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25709 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25710 mgl_lib_type=release
25711 mgl_os=$mgl_os_i
25712 fi
25713 fi
25714 fi
25715 done
25716
25717 if test "x$mgl_os" = x ; then
25718 echo "$as_me:$LINENO: result: not found" >&5
25719echo "${ECHO_T}not found" >&6
25720 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25721echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25722 { (exit 1); exit 1; }; }
25723 fi
25724 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25725echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25726
25727 wxUSE_UNIVERSAL="yes"
25728
25729 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25730 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25731
25732 AFMINSTALL=afminstall
25733 TOOLKIT=MGL
25734 GUIDIST=MGL_DIST
25735 fi
25736
25737 if test "$wxUSE_MICROWIN" = 1; then
25738 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25739echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25740 if test "x$MICROWINDOWS" = x ; then
25741 echo "$as_me:$LINENO: result: not found" >&5
25742echo "${ECHO_T}not found" >&6
25743 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25744echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25745 { (exit 1); exit 1; }; }
25746 else
25747 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25748echo "${ECHO_T}$MICROWINDOWS" >&6
25749 fi
25750
25751 if test -f $MICROWINDOWS/lib/libmwin.a; then
25752 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25753echo "${ECHO_T}MicroWindows' libraries found." >&6
25754 else
25755 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25756echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25757 { (exit 1); exit 1; }; }
25758 fi
25759
25760 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25761 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25762
25763 wxUSE_UNIVERSAL="yes"
25764
25765 AFMINSTALL=afminstall
25766 TOOLKIT=MICROWIN
25767 GUIDIST=MICROWIN_DIST
25768
25769 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25770 fi
25771
74b84332 25772 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25773
25774if test "x$ac_path_x_has_been_run" != xyes; then
25775 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25776echo $ECHO_N "checking for X... $ECHO_C" >&6
25777
9dd0f6c2 25778ac_path_x_has_been_run=yes
a848cd7e
SC
25779
25780# Check whether --with-x or --without-x was given.
25781if test "${with_x+set}" = set; then
25782 withval="$with_x"
25783
25784fi;
25785# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25786if test "x$with_x" = xno; then
25787 # The user explicitly disabled X.
25788 have_x=disabled
25789else
25790 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25791 # Both variables are already set.
25792 have_x=yes
25793 else
25794 if test "${ac_cv_have_x+set}" = set; then
25795 echo $ECHO_N "(cached) $ECHO_C" >&6
25796else
25797 # One or both of the vars are not set, and there is no cached value.
25798ac_x_includes=no ac_x_libraries=no
25799rm -fr conftest.dir
25800if mkdir conftest.dir; then
25801 cd conftest.dir
25802 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25803 cat >Imakefile <<'_ACEOF'
25804acfindx:
25805 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25806_ACEOF
25807 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25809 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25810 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25811 for ac_extension in a so sl; do
25812 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25813 test -f $ac_im_libdir/libX11.$ac_extension; then
25814 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25815 fi
25816 done
25817 # Screen out bogus values from the imake configuration. They are
25818 # bogus both because they are the default anyway, and because
25819 # using them would break gcc on systems where it needs fixed includes.
25820 case $ac_im_incroot in
25821 /usr/include) ;;
25822 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25823 esac
25824 case $ac_im_usrlibdir in
25825 /usr/lib | /lib) ;;
25826 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25827 esac
25828 fi
25829 cd ..
25830 rm -fr conftest.dir
25831fi
25832
25833# Standard set of common directories for X headers.
25834# Check X11 before X11Rn because it is often a symlink to the current release.
25835ac_x_header_dirs='
25836/usr/X11/include
25837/usr/X11R6/include
25838/usr/X11R5/include
25839/usr/X11R4/include
25840
25841/usr/include/X11
25842/usr/include/X11R6
25843/usr/include/X11R5
25844/usr/include/X11R4
25845
25846/usr/local/X11/include
25847/usr/local/X11R6/include
25848/usr/local/X11R5/include
25849/usr/local/X11R4/include
25850
25851/usr/local/include/X11
25852/usr/local/include/X11R6
25853/usr/local/include/X11R5
25854/usr/local/include/X11R4
25855
25856/usr/X386/include
25857/usr/x386/include
25858/usr/XFree86/include/X11
25859
25860/usr/include
25861/usr/local/include
25862/usr/unsupported/include
25863/usr/athena/include
25864/usr/local/x11r5/include
25865/usr/lpp/Xamples/include
25866
25867/usr/openwin/include
25868/usr/openwin/share/include'
25869
25870if test "$ac_x_includes" = no; then
9dd0f6c2 25871 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25872 # First, try using that file with no special directory specified.
25873 cat >conftest.$ac_ext <<_ACEOF
25874/* confdefs.h. */
25875_ACEOF
25876cat confdefs.h >>conftest.$ac_ext
25877cat >>conftest.$ac_ext <<_ACEOF
25878/* end confdefs.h. */
25879#include <X11/Intrinsic.h>
25880_ACEOF
25881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25883 ac_status=$?
25884 grep -v '^ *+' conftest.er1 >conftest.err
25885 rm -f conftest.er1
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } >/dev/null; then
25889 if test -s conftest.err; then
25890 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25892 else
25893 ac_cpp_err=
25894 fi
25895else
25896 ac_cpp_err=yes
25897fi
25898if test -z "$ac_cpp_err"; then
25899 # We can compile using X headers with no special include directory.
25900ac_x_includes=
25901else
25902 echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
25905 for ac_dir in $ac_x_header_dirs; do
25906 if test -r "$ac_dir/X11/Intrinsic.h"; then
25907 ac_x_includes=$ac_dir
25908 break
25909 fi
25910done
25911fi
25912rm -f conftest.err conftest.$ac_ext
25913fi # $ac_x_includes = no
25914
25915if test "$ac_x_libraries" = no; then
25916 # Check for the libraries.
25917 # See if we find them without any special options.
25918 # Don't add to $LIBS permanently.
25919 ac_save_LIBS=$LIBS
25920 LIBS="-lXt $LIBS"
25921 cat >conftest.$ac_ext <<_ACEOF
25922/* confdefs.h. */
25923_ACEOF
25924cat confdefs.h >>conftest.$ac_ext
25925cat >>conftest.$ac_ext <<_ACEOF
25926/* end confdefs.h. */
25927#include <X11/Intrinsic.h>
25928int
25929main ()
25930{
25931XtMalloc (0)
25932 ;
25933 return 0;
25934}
25935_ACEOF
25936rm -f conftest.$ac_objext conftest$ac_exeext
25937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25938 (eval $ac_link) 2>conftest.er1
a848cd7e 25939 ac_status=$?
ac1cb8d3
VS
25940 grep -v '^ *+' conftest.er1 >conftest.err
25941 rm -f conftest.er1
25942 cat conftest.err >&5
a848cd7e
SC
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } &&
9dd0f6c2 25945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; } &&
25951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25953 (eval $ac_try) 2>&5
25954 ac_status=$?
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); }; }; then
25957 LIBS=$ac_save_LIBS
25958# We can link X programs with no special library path.
25959ac_x_libraries=
25960else
25961 echo "$as_me: failed program was:" >&5
25962sed 's/^/| /' conftest.$ac_ext >&5
25963
25964LIBS=$ac_save_LIBS
25965for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25966do
25967 # Don't even attempt the hair of trying to link an X program!
25968 for ac_extension in a so sl; do
25969 if test -r $ac_dir/libXt.$ac_extension; then
25970 ac_x_libraries=$ac_dir
25971 break 2
25972 fi
25973 done
25974done
25975fi
ac1cb8d3
VS
25976rm -f conftest.err conftest.$ac_objext \
25977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25978fi # $ac_x_libraries = no
25979
25980if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25981 # Didn't find X anywhere. Cache the known absence of X.
25982 ac_cv_have_x="have_x=no"
25983else
25984 # Record where we found X for the cache.
25985 ac_cv_have_x="have_x=yes \
ac1cb8d3 25986 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25987fi
25988fi
25989
25990 fi
25991 eval "$ac_cv_have_x"
25992fi # $with_x != no
25993
25994if test "$have_x" != yes; then
25995 echo "$as_me:$LINENO: result: $have_x" >&5
25996echo "${ECHO_T}$have_x" >&6
25997 no_x=yes
25998else
25999 # If each of the values was on the command line, it overrides each guess.
26000 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26001 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26002 # Update the cache value to reflect the command line values.
26003 ac_cv_have_x="have_x=yes \
26004 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
26005 # It might be that x_includes is empty (headers are found in the
26006 # standard search path. Then output the corresponding message
26007 ac_out_x_includes=$x_includes
26008 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26009 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26010echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26011fi
26012
9dd0f6c2 26013fi
a848cd7e
SC
26014if test "$no_x" = yes; then
26015 # Not all programs may use this symbol, but it does not hurt to define it.
26016
26017cat >>confdefs.h <<\_ACEOF
26018#define X_DISPLAY_MISSING 1
26019_ACEOF
26020
26021 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26022else
26023 if test -n "$x_includes"; then
26024 X_CFLAGS="$X_CFLAGS -I$x_includes"
26025 fi
26026
26027 # It would also be nice to do this for all -L options, not just this one.
26028 if test -n "$x_libraries"; then
26029 X_LIBS="$X_LIBS -L$x_libraries"
26030 # For Solaris; some versions of Sun CC require a space after -R and
26031 # others require no space. Words are not sufficient . . . .
26032 case `(uname -sr) 2>/dev/null` in
26033 "SunOS 5"*)
26034 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26035echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26036 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26037 cat >conftest.$ac_ext <<_ACEOF
26038/* confdefs.h. */
26039_ACEOF
26040cat confdefs.h >>conftest.$ac_ext
26041cat >>conftest.$ac_ext <<_ACEOF
26042/* end confdefs.h. */
26043
26044int
26045main ()
26046{
26047
26048 ;
26049 return 0;
26050}
26051_ACEOF
26052rm -f conftest.$ac_objext conftest$ac_exeext
26053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26054 (eval $ac_link) 2>conftest.er1
a848cd7e 26055 ac_status=$?
ac1cb8d3
VS
26056 grep -v '^ *+' conftest.er1 >conftest.err
26057 rm -f conftest.er1
26058 cat conftest.err >&5
a848cd7e
SC
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } &&
9dd0f6c2 26061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; } &&
26067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ac_R_nospace=yes
26074else
26075 echo "$as_me: failed program was:" >&5
26076sed 's/^/| /' conftest.$ac_ext >&5
26077
26078ac_R_nospace=no
26079fi
ac1cb8d3
VS
26080rm -f conftest.err conftest.$ac_objext \
26081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26082 if test $ac_R_nospace = yes; then
26083 echo "$as_me:$LINENO: result: no" >&5
26084echo "${ECHO_T}no" >&6
26085 X_LIBS="$X_LIBS -R$x_libraries"
26086 else
26087 LIBS="$ac_xsave_LIBS -R $x_libraries"
26088 cat >conftest.$ac_ext <<_ACEOF
26089/* confdefs.h. */
26090_ACEOF
26091cat confdefs.h >>conftest.$ac_ext
26092cat >>conftest.$ac_ext <<_ACEOF
26093/* end confdefs.h. */
26094
26095int
26096main ()
26097{
26098
26099 ;
26100 return 0;
26101}
26102_ACEOF
26103rm -f conftest.$ac_objext conftest$ac_exeext
26104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26105 (eval $ac_link) 2>conftest.er1
a848cd7e 26106 ac_status=$?
ac1cb8d3
VS
26107 grep -v '^ *+' conftest.er1 >conftest.err
26108 rm -f conftest.er1
26109 cat conftest.err >&5
a848cd7e
SC
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } &&
9dd0f6c2 26112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; } &&
26118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120 (eval $ac_try) 2>&5
26121 ac_status=$?
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); }; }; then
26124 ac_R_space=yes
26125else
26126 echo "$as_me: failed program was:" >&5
26127sed 's/^/| /' conftest.$ac_ext >&5
26128
26129ac_R_space=no
26130fi
ac1cb8d3
VS
26131rm -f conftest.err conftest.$ac_objext \
26132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26133 if test $ac_R_space = yes; then
26134 echo "$as_me:$LINENO: result: yes" >&5
26135echo "${ECHO_T}yes" >&6
26136 X_LIBS="$X_LIBS -R $x_libraries"
26137 else
26138 echo "$as_me:$LINENO: result: neither works" >&5
26139echo "${ECHO_T}neither works" >&6
26140 fi
26141 fi
26142 LIBS=$ac_xsave_LIBS
26143 esac
26144 fi
26145
26146 # Check for system-dependent libraries X programs must link with.
26147 # Do this before checking for the system-independent R6 libraries
26148 # (-lICE), since we may need -lsocket or whatever for X linking.
26149
26150 if test "$ISC" = yes; then
26151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26152 else
26153 # Martyn Johnson says this is needed for Ultrix, if the X
26154 # libraries were built with DECnet support. And Karl Berry says
26155 # the Alpha needs dnet_stub (dnet does not exist).
26156 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26157 cat >conftest.$ac_ext <<_ACEOF
26158/* confdefs.h. */
26159_ACEOF
26160cat confdefs.h >>conftest.$ac_ext
26161cat >>conftest.$ac_ext <<_ACEOF
26162/* end confdefs.h. */
26163
26164/* Override any gcc2 internal prototype to avoid an error. */
26165#ifdef __cplusplus
26166extern "C"
26167#endif
26168/* We use char because int might match the return type of a gcc2
26169 builtin and then its argument prototype would still apply. */
26170char XOpenDisplay ();
26171int
26172main ()
26173{
26174XOpenDisplay ();
26175 ;
26176 return 0;
26177}
26178_ACEOF
26179rm -f conftest.$ac_objext conftest$ac_exeext
26180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26181 (eval $ac_link) 2>conftest.er1
a848cd7e 26182 ac_status=$?
ac1cb8d3
VS
26183 grep -v '^ *+' conftest.er1 >conftest.err
26184 rm -f conftest.er1
26185 cat conftest.err >&5
a848cd7e
SC
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } &&
9dd0f6c2 26188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; } &&
26194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 :
26201else
26202 echo "$as_me: failed program was:" >&5
26203sed 's/^/| /' conftest.$ac_ext >&5
26204
26205echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26206echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26207if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26208 echo $ECHO_N "(cached) $ECHO_C" >&6
26209else
26210 ac_check_lib_save_LIBS=$LIBS
26211LIBS="-ldnet $LIBS"
26212cat >conftest.$ac_ext <<_ACEOF
26213/* confdefs.h. */
26214_ACEOF
26215cat confdefs.h >>conftest.$ac_ext
26216cat >>conftest.$ac_ext <<_ACEOF
26217/* end confdefs.h. */
26218
26219/* Override any gcc2 internal prototype to avoid an error. */
26220#ifdef __cplusplus
26221extern "C"
26222#endif
26223/* We use char because int might match the return type of a gcc2
26224 builtin and then its argument prototype would still apply. */
26225char dnet_ntoa ();
26226int
26227main ()
26228{
26229dnet_ntoa ();
26230 ;
26231 return 0;
26232}
26233_ACEOF
26234rm -f conftest.$ac_objext conftest$ac_exeext
26235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26236 (eval $ac_link) 2>conftest.er1
a848cd7e 26237 ac_status=$?
ac1cb8d3
VS
26238 grep -v '^ *+' conftest.er1 >conftest.err
26239 rm -f conftest.er1
26240 cat conftest.err >&5
a848cd7e
SC
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } &&
9dd0f6c2 26243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 ac_cv_lib_dnet_dnet_ntoa=yes
26256else
26257 echo "$as_me: failed program was:" >&5
26258sed 's/^/| /' conftest.$ac_ext >&5
26259
26260ac_cv_lib_dnet_dnet_ntoa=no
26261fi
ac1cb8d3
VS
26262rm -f conftest.err conftest.$ac_objext \
26263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26264LIBS=$ac_check_lib_save_LIBS
26265fi
26266echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26267echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26268if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26269 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26270fi
26271
26272 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26273 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26274echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26275if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26276 echo $ECHO_N "(cached) $ECHO_C" >&6
26277else
26278 ac_check_lib_save_LIBS=$LIBS
26279LIBS="-ldnet_stub $LIBS"
26280cat >conftest.$ac_ext <<_ACEOF
26281/* confdefs.h. */
26282_ACEOF
26283cat confdefs.h >>conftest.$ac_ext
26284cat >>conftest.$ac_ext <<_ACEOF
26285/* end confdefs.h. */
26286
26287/* Override any gcc2 internal prototype to avoid an error. */
26288#ifdef __cplusplus
26289extern "C"
26290#endif
26291/* We use char because int might match the return type of a gcc2
26292 builtin and then its argument prototype would still apply. */
26293char dnet_ntoa ();
26294int
26295main ()
26296{
26297dnet_ntoa ();
26298 ;
26299 return 0;
26300}
26301_ACEOF
26302rm -f conftest.$ac_objext conftest$ac_exeext
26303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26304 (eval $ac_link) 2>conftest.er1
a848cd7e 26305 ac_status=$?
ac1cb8d3
VS
26306 grep -v '^ *+' conftest.er1 >conftest.err
26307 rm -f conftest.er1
26308 cat conftest.err >&5
a848cd7e
SC
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); } &&
9dd0f6c2 26311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; } &&
26317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; }; then
26323 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26324else
26325 echo "$as_me: failed program was:" >&5
26326sed 's/^/| /' conftest.$ac_ext >&5
26327
26328ac_cv_lib_dnet_stub_dnet_ntoa=no
26329fi
ac1cb8d3
VS
26330rm -f conftest.err conftest.$ac_objext \
26331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26332LIBS=$ac_check_lib_save_LIBS
26333fi
26334echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26335echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26336if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26337 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26338fi
26339
26340 fi
26341fi
ac1cb8d3
VS
26342rm -f conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26344 LIBS="$ac_xsave_LIBS"
26345
26346 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26347 # to get the SysV transport functions.
26348 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26349 # needs -lnsl.
26350 # The nsl library prevents programs from opening the X display
26351 # on Irix 5.2, according to T.E. Dickey.
26352 # The functions gethostbyname, getservbyname, and inet_addr are
26353 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26354 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26355echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26356if test "${ac_cv_func_gethostbyname+set}" = set; then
26357 echo $ECHO_N "(cached) $ECHO_C" >&6
26358else
26359 cat >conftest.$ac_ext <<_ACEOF
26360/* confdefs.h. */
26361_ACEOF
26362cat confdefs.h >>conftest.$ac_ext
26363cat >>conftest.$ac_ext <<_ACEOF
26364/* end confdefs.h. */
ac1cb8d3
VS
26365/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26367#define gethostbyname innocuous_gethostbyname
26368
a848cd7e
SC
26369/* System header to define __stub macros and hopefully few prototypes,
26370 which can conflict with char gethostbyname (); below.
26371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26372 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26373
a848cd7e
SC
26374#ifdef __STDC__
26375# include <limits.h>
26376#else
26377# include <assert.h>
26378#endif
ac1cb8d3
VS
26379
26380#undef gethostbyname
26381
a848cd7e
SC
26382/* Override any gcc2 internal prototype to avoid an error. */
26383#ifdef __cplusplus
26384extern "C"
26385{
26386#endif
26387/* We use char because int might match the return type of a gcc2
26388 builtin and then its argument prototype would still apply. */
26389char gethostbyname ();
26390/* The GNU C library defines this for functions which it implements
26391 to always fail with ENOSYS. Some functions are actually named
26392 something starting with __ and the normal name is an alias. */
26393#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26394choke me
26395#else
26396char (*f) () = gethostbyname;
26397#endif
26398#ifdef __cplusplus
26399}
26400#endif
26401
26402int
26403main ()
26404{
26405return f != gethostbyname;
26406 ;
26407 return 0;
26408}
26409_ACEOF
26410rm -f conftest.$ac_objext conftest$ac_exeext
26411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26412 (eval $ac_link) 2>conftest.er1
a848cd7e 26413 ac_status=$?
ac1cb8d3
VS
26414 grep -v '^ *+' conftest.er1 >conftest.err
26415 rm -f conftest.er1
26416 cat conftest.err >&5
a848cd7e
SC
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
9dd0f6c2 26419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; } &&
26425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; }; then
26431 ac_cv_func_gethostbyname=yes
26432else
26433 echo "$as_me: failed program was:" >&5
26434sed 's/^/| /' conftest.$ac_ext >&5
26435
26436ac_cv_func_gethostbyname=no
26437fi
ac1cb8d3
VS
26438rm -f conftest.err conftest.$ac_objext \
26439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26440fi
26441echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26442echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26443
26444 if test $ac_cv_func_gethostbyname = no; then
26445 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26446echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26447if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26448 echo $ECHO_N "(cached) $ECHO_C" >&6
26449else
26450 ac_check_lib_save_LIBS=$LIBS
26451LIBS="-lnsl $LIBS"
26452cat >conftest.$ac_ext <<_ACEOF
26453/* confdefs.h. */
26454_ACEOF
26455cat confdefs.h >>conftest.$ac_ext
26456cat >>conftest.$ac_ext <<_ACEOF
26457/* end confdefs.h. */
26458
26459/* Override any gcc2 internal prototype to avoid an error. */
26460#ifdef __cplusplus
26461extern "C"
26462#endif
26463/* We use char because int might match the return type of a gcc2
26464 builtin and then its argument prototype would still apply. */
26465char gethostbyname ();
26466int
26467main ()
26468{
26469gethostbyname ();
26470 ;
26471 return 0;
26472}
26473_ACEOF
26474rm -f conftest.$ac_objext conftest$ac_exeext
26475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26476 (eval $ac_link) 2>conftest.er1
26477 ac_status=$?
26478 grep -v '^ *+' conftest.er1 >conftest.err
26479 rm -f conftest.er1
26480 cat conftest.err >&5
26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482 (exit $ac_status); } &&
9dd0f6c2 26483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26485 (eval $ac_try) 2>&5
26486 ac_status=$?
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); }; } &&
26489 { ac_try='test -s conftest$ac_exeext'
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26492 ac_status=$?
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; }; then
26495 ac_cv_lib_nsl_gethostbyname=yes
26496else
26497 echo "$as_me: failed program was:" >&5
26498sed 's/^/| /' conftest.$ac_ext >&5
26499
26500ac_cv_lib_nsl_gethostbyname=no
26501fi
26502rm -f conftest.err conftest.$ac_objext \
26503 conftest$ac_exeext conftest.$ac_ext
26504LIBS=$ac_check_lib_save_LIBS
26505fi
26506echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26507echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26508if test $ac_cv_lib_nsl_gethostbyname = yes; then
26509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26510fi
26511
26512 if test $ac_cv_lib_nsl_gethostbyname = no; then
26513 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26514echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26515if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26517else
26518 ac_check_lib_save_LIBS=$LIBS
26519LIBS="-lbsd $LIBS"
26520cat >conftest.$ac_ext <<_ACEOF
26521/* confdefs.h. */
26522_ACEOF
26523cat confdefs.h >>conftest.$ac_ext
26524cat >>conftest.$ac_ext <<_ACEOF
26525/* end confdefs.h. */
26526
26527/* Override any gcc2 internal prototype to avoid an error. */
26528#ifdef __cplusplus
26529extern "C"
26530#endif
26531/* We use char because int might match the return type of a gcc2
26532 builtin and then its argument prototype would still apply. */
26533char gethostbyname ();
26534int
26535main ()
26536{
26537gethostbyname ();
26538 ;
26539 return 0;
26540}
26541_ACEOF
26542rm -f conftest.$ac_objext conftest$ac_exeext
26543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26544 (eval $ac_link) 2>conftest.er1
a848cd7e 26545 ac_status=$?
ac1cb8d3
VS
26546 grep -v '^ *+' conftest.er1 >conftest.err
26547 rm -f conftest.er1
26548 cat conftest.err >&5
a848cd7e
SC
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } &&
9dd0f6c2 26551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563 ac_cv_lib_bsd_gethostbyname=yes
26564else
26565 echo "$as_me: failed program was:" >&5
26566sed 's/^/| /' conftest.$ac_ext >&5
26567
26568ac_cv_lib_bsd_gethostbyname=no
26569fi
ac1cb8d3
VS
26570rm -f conftest.err conftest.$ac_objext \
26571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26572LIBS=$ac_check_lib_save_LIBS
26573fi
26574echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26575echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26576if test $ac_cv_lib_bsd_gethostbyname = yes; then
26577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26578fi
26579
26580 fi
26581 fi
26582
26583 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26584 # socket/setsockopt and other routines are undefined under SCO ODT
26585 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26586 # on later versions), says Simon Leinen: it contains gethostby*
26587 # variants that don't use the name server (or something). -lsocket
26588 # must be given before -lnsl if both are needed. We assume that
26589 # if connect needs -lnsl, so does gethostbyname.
26590 echo "$as_me:$LINENO: checking for connect" >&5
26591echo $ECHO_N "checking for connect... $ECHO_C" >&6
26592if test "${ac_cv_func_connect+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26594else
26595 cat >conftest.$ac_ext <<_ACEOF
26596/* confdefs.h. */
26597_ACEOF
26598cat confdefs.h >>conftest.$ac_ext
26599cat >>conftest.$ac_ext <<_ACEOF
26600/* end confdefs.h. */
ac1cb8d3
VS
26601/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26603#define connect innocuous_connect
26604
a848cd7e
SC
26605/* System header to define __stub macros and hopefully few prototypes,
26606 which can conflict with char connect (); below.
26607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26608 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26609
a848cd7e
SC
26610#ifdef __STDC__
26611# include <limits.h>
26612#else
26613# include <assert.h>
26614#endif
ac1cb8d3
VS
26615
26616#undef connect
26617
a848cd7e
SC
26618/* Override any gcc2 internal prototype to avoid an error. */
26619#ifdef __cplusplus
26620extern "C"
26621{
26622#endif
26623/* We use char because int might match the return type of a gcc2
26624 builtin and then its argument prototype would still apply. */
26625char connect ();
26626/* The GNU C library defines this for functions which it implements
26627 to always fail with ENOSYS. Some functions are actually named
26628 something starting with __ and the normal name is an alias. */
26629#if defined (__stub_connect) || defined (__stub___connect)
26630choke me
26631#else
26632char (*f) () = connect;
26633#endif
26634#ifdef __cplusplus
26635}
26636#endif
26637
26638int
26639main ()
26640{
26641return f != connect;
26642 ;
26643 return 0;
26644}
26645_ACEOF
26646rm -f conftest.$ac_objext conftest$ac_exeext
26647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26648 (eval $ac_link) 2>conftest.er1
a848cd7e 26649 ac_status=$?
ac1cb8d3
VS
26650 grep -v '^ *+' conftest.er1 >conftest.err
26651 rm -f conftest.er1
26652 cat conftest.err >&5
a848cd7e
SC
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } &&
9dd0f6c2 26655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26657 (eval $ac_try) 2>&5
26658 ac_status=$?
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); }; } &&
26661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663 (eval $ac_try) 2>&5
26664 ac_status=$?
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; }; then
26667 ac_cv_func_connect=yes
26668else
26669 echo "$as_me: failed program was:" >&5
26670sed 's/^/| /' conftest.$ac_ext >&5
26671
26672ac_cv_func_connect=no
26673fi
ac1cb8d3
VS
26674rm -f conftest.err conftest.$ac_objext \
26675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26676fi
26677echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26678echo "${ECHO_T}$ac_cv_func_connect" >&6
26679
26680 if test $ac_cv_func_connect = no; then
26681 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26682echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26683if test "${ac_cv_lib_socket_connect+set}" = set; then
26684 echo $ECHO_N "(cached) $ECHO_C" >&6
26685else
26686 ac_check_lib_save_LIBS=$LIBS
26687LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26688cat >conftest.$ac_ext <<_ACEOF
26689/* confdefs.h. */
26690_ACEOF
26691cat confdefs.h >>conftest.$ac_ext
26692cat >>conftest.$ac_ext <<_ACEOF
26693/* end confdefs.h. */
26694
26695/* Override any gcc2 internal prototype to avoid an error. */
26696#ifdef __cplusplus
26697extern "C"
26698#endif
26699/* We use char because int might match the return type of a gcc2
26700 builtin and then its argument prototype would still apply. */
26701char connect ();
26702int
26703main ()
26704{
26705connect ();
26706 ;
26707 return 0;
26708}
26709_ACEOF
26710rm -f conftest.$ac_objext conftest$ac_exeext
26711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26712 (eval $ac_link) 2>conftest.er1
a848cd7e 26713 ac_status=$?
ac1cb8d3
VS
26714 grep -v '^ *+' conftest.er1 >conftest.err
26715 rm -f conftest.er1
26716 cat conftest.err >&5
a848cd7e
SC
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); } &&
9dd0f6c2 26719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721 (eval $ac_try) 2>&5
26722 ac_status=$?
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; } &&
26725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727 (eval $ac_try) 2>&5
26728 ac_status=$?
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; }; then
26731 ac_cv_lib_socket_connect=yes
26732else
26733 echo "$as_me: failed program was:" >&5
26734sed 's/^/| /' conftest.$ac_ext >&5
26735
26736ac_cv_lib_socket_connect=no
26737fi
ac1cb8d3
VS
26738rm -f conftest.err conftest.$ac_objext \
26739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26740LIBS=$ac_check_lib_save_LIBS
26741fi
26742echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26743echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26744if test $ac_cv_lib_socket_connect = yes; then
26745 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26746fi
26747
26748 fi
26749
26750 # Guillermo Gomez says -lposix is necessary on A/UX.
26751 echo "$as_me:$LINENO: checking for remove" >&5
26752echo $ECHO_N "checking for remove... $ECHO_C" >&6
26753if test "${ac_cv_func_remove+set}" = set; then
26754 echo $ECHO_N "(cached) $ECHO_C" >&6
26755else
26756 cat >conftest.$ac_ext <<_ACEOF
26757/* confdefs.h. */
26758_ACEOF
26759cat confdefs.h >>conftest.$ac_ext
26760cat >>conftest.$ac_ext <<_ACEOF
26761/* end confdefs.h. */
ac1cb8d3
VS
26762/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26764#define remove innocuous_remove
26765
a848cd7e
SC
26766/* System header to define __stub macros and hopefully few prototypes,
26767 which can conflict with char remove (); below.
26768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26769 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26770
a848cd7e
SC
26771#ifdef __STDC__
26772# include <limits.h>
26773#else
26774# include <assert.h>
26775#endif
ac1cb8d3
VS
26776
26777#undef remove
26778
a848cd7e
SC
26779/* Override any gcc2 internal prototype to avoid an error. */
26780#ifdef __cplusplus
26781extern "C"
26782{
26783#endif
26784/* We use char because int might match the return type of a gcc2
26785 builtin and then its argument prototype would still apply. */
26786char remove ();
26787/* The GNU C library defines this for functions which it implements
26788 to always fail with ENOSYS. Some functions are actually named
26789 something starting with __ and the normal name is an alias. */
26790#if defined (__stub_remove) || defined (__stub___remove)
26791choke me
26792#else
26793char (*f) () = remove;
26794#endif
26795#ifdef __cplusplus
26796}
26797#endif
26798
26799int
26800main ()
26801{
26802return f != remove;
26803 ;
26804 return 0;
26805}
26806_ACEOF
26807rm -f conftest.$ac_objext conftest$ac_exeext
26808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26809 (eval $ac_link) 2>conftest.er1
a848cd7e 26810 ac_status=$?
ac1cb8d3
VS
26811 grep -v '^ *+' conftest.er1 >conftest.err
26812 rm -f conftest.er1
26813 cat conftest.err >&5
a848cd7e
SC
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } &&
9dd0f6c2 26816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26819 ac_status=$?
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; } &&
26822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; }; then
26828 ac_cv_func_remove=yes
26829else
26830 echo "$as_me: failed program was:" >&5
26831sed 's/^/| /' conftest.$ac_ext >&5
26832
26833ac_cv_func_remove=no
26834fi
ac1cb8d3
VS
26835rm -f conftest.err conftest.$ac_objext \
26836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26837fi
26838echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26839echo "${ECHO_T}$ac_cv_func_remove" >&6
26840
26841 if test $ac_cv_func_remove = no; then
26842 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26843echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26844if test "${ac_cv_lib_posix_remove+set}" = set; then
26845 echo $ECHO_N "(cached) $ECHO_C" >&6
26846else
26847 ac_check_lib_save_LIBS=$LIBS
26848LIBS="-lposix $LIBS"
26849cat >conftest.$ac_ext <<_ACEOF
26850/* confdefs.h. */
26851_ACEOF
26852cat confdefs.h >>conftest.$ac_ext
26853cat >>conftest.$ac_ext <<_ACEOF
26854/* end confdefs.h. */
26855
26856/* Override any gcc2 internal prototype to avoid an error. */
26857#ifdef __cplusplus
26858extern "C"
26859#endif
26860/* We use char because int might match the return type of a gcc2
26861 builtin and then its argument prototype would still apply. */
26862char remove ();
26863int
26864main ()
26865{
26866remove ();
26867 ;
26868 return 0;
26869}
26870_ACEOF
26871rm -f conftest.$ac_objext conftest$ac_exeext
26872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26873 (eval $ac_link) 2>conftest.er1
a848cd7e 26874 ac_status=$?
ac1cb8d3
VS
26875 grep -v '^ *+' conftest.er1 >conftest.err
26876 rm -f conftest.er1
26877 cat conftest.err >&5
a848cd7e
SC
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); } &&
9dd0f6c2 26880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26883 ac_status=$?
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; } &&
26886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_lib_posix_remove=yes
26893else
26894 echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
26897ac_cv_lib_posix_remove=no
26898fi
ac1cb8d3
VS
26899rm -f conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26901LIBS=$ac_check_lib_save_LIBS
26902fi
26903echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26904echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26905if test $ac_cv_lib_posix_remove = yes; then
26906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26907fi
26908
26909 fi
26910
26911 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26912 echo "$as_me:$LINENO: checking for shmat" >&5
26913echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26914if test "${ac_cv_func_shmat+set}" = set; then
26915 echo $ECHO_N "(cached) $ECHO_C" >&6
26916else
26917 cat >conftest.$ac_ext <<_ACEOF
26918/* confdefs.h. */
26919_ACEOF
26920cat confdefs.h >>conftest.$ac_ext
26921cat >>conftest.$ac_ext <<_ACEOF
26922/* end confdefs.h. */
ac1cb8d3
VS
26923/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26925#define shmat innocuous_shmat
26926
a848cd7e
SC
26927/* System header to define __stub macros and hopefully few prototypes,
26928 which can conflict with char shmat (); below.
26929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26930 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26931
a848cd7e
SC
26932#ifdef __STDC__
26933# include <limits.h>
26934#else
26935# include <assert.h>
26936#endif
ac1cb8d3
VS
26937
26938#undef shmat
26939
a848cd7e
SC
26940/* Override any gcc2 internal prototype to avoid an error. */
26941#ifdef __cplusplus
26942extern "C"
26943{
26944#endif
26945/* We use char because int might match the return type of a gcc2
26946 builtin and then its argument prototype would still apply. */
26947char shmat ();
26948/* The GNU C library defines this for functions which it implements
26949 to always fail with ENOSYS. Some functions are actually named
26950 something starting with __ and the normal name is an alias. */
26951#if defined (__stub_shmat) || defined (__stub___shmat)
26952choke me
26953#else
26954char (*f) () = shmat;
26955#endif
26956#ifdef __cplusplus
26957}
26958#endif
26959
26960int
26961main ()
26962{
26963return f != shmat;
26964 ;
26965 return 0;
26966}
26967_ACEOF
26968rm -f conftest.$ac_objext conftest$ac_exeext
26969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26970 (eval $ac_link) 2>conftest.er1
a848cd7e 26971 ac_status=$?
ac1cb8d3
VS
26972 grep -v '^ *+' conftest.er1 >conftest.err
26973 rm -f conftest.er1
26974 cat conftest.err >&5
a848cd7e
SC
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); } &&
9dd0f6c2 26977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; } &&
26983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985 (eval $ac_try) 2>&5
26986 ac_status=$?
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); }; }; then
26989 ac_cv_func_shmat=yes
26990else
26991 echo "$as_me: failed program was:" >&5
26992sed 's/^/| /' conftest.$ac_ext >&5
26993
26994ac_cv_func_shmat=no
26995fi
ac1cb8d3
VS
26996rm -f conftest.err conftest.$ac_objext \
26997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26998fi
26999echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27000echo "${ECHO_T}$ac_cv_func_shmat" >&6
27001
27002 if test $ac_cv_func_shmat = no; then
27003 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27004echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27005if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27007else
27008 ac_check_lib_save_LIBS=$LIBS
27009LIBS="-lipc $LIBS"
27010cat >conftest.$ac_ext <<_ACEOF
27011/* confdefs.h. */
27012_ACEOF
27013cat confdefs.h >>conftest.$ac_ext
27014cat >>conftest.$ac_ext <<_ACEOF
27015/* end confdefs.h. */
27016
27017/* Override any gcc2 internal prototype to avoid an error. */
27018#ifdef __cplusplus
27019extern "C"
27020#endif
27021/* We use char because int might match the return type of a gcc2
27022 builtin and then its argument prototype would still apply. */
27023char shmat ();
27024int
27025main ()
27026{
27027shmat ();
27028 ;
27029 return 0;
27030}
27031_ACEOF
27032rm -f conftest.$ac_objext conftest$ac_exeext
27033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27034 (eval $ac_link) 2>conftest.er1
a848cd7e 27035 ac_status=$?
ac1cb8d3
VS
27036 grep -v '^ *+' conftest.er1 >conftest.err
27037 rm -f conftest.er1
27038 cat conftest.err >&5
a848cd7e
SC
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); } &&
9dd0f6c2 27041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } &&
27047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; }; then
27053 ac_cv_lib_ipc_shmat=yes
27054else
27055 echo "$as_me: failed program was:" >&5
27056sed 's/^/| /' conftest.$ac_ext >&5
27057
27058ac_cv_lib_ipc_shmat=no
27059fi
ac1cb8d3
VS
27060rm -f conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27062LIBS=$ac_check_lib_save_LIBS
27063fi
27064echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27065echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27066if test $ac_cv_lib_ipc_shmat = yes; then
27067 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27068fi
27069
27070 fi
27071 fi
27072
27073 # Check for libraries that X11R6 Xt/Xaw programs need.
27074 ac_save_LDFLAGS=$LDFLAGS
27075 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27076 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27077 # check for ICE first), but we must link in the order -lSM -lICE or
27078 # we get undefined symbols. So assume we have SM if we have ICE.
27079 # These have to be linked with before -lX11, unlike the other
27080 # libraries we check for below, so use a different variable.
27081 # John Interrante, Karl Berry
27082 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27083echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27084if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27086else
27087 ac_check_lib_save_LIBS=$LIBS
27088LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27089cat >conftest.$ac_ext <<_ACEOF
27090/* confdefs.h. */
27091_ACEOF
27092cat confdefs.h >>conftest.$ac_ext
27093cat >>conftest.$ac_ext <<_ACEOF
27094/* end confdefs.h. */
27095
27096/* Override any gcc2 internal prototype to avoid an error. */
27097#ifdef __cplusplus
27098extern "C"
27099#endif
27100/* We use char because int might match the return type of a gcc2
27101 builtin and then its argument prototype would still apply. */
27102char IceConnectionNumber ();
27103int
27104main ()
27105{
27106IceConnectionNumber ();
27107 ;
27108 return 0;
27109}
27110_ACEOF
27111rm -f conftest.$ac_objext conftest$ac_exeext
27112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27113 (eval $ac_link) 2>conftest.er1
a848cd7e 27114 ac_status=$?
ac1cb8d3
VS
27115 grep -v '^ *+' conftest.er1 >conftest.err
27116 rm -f conftest.er1
27117 cat conftest.err >&5
a848cd7e
SC
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } &&
9dd0f6c2 27120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27129 ac_status=$?
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
27132 ac_cv_lib_ICE_IceConnectionNumber=yes
27133else
27134 echo "$as_me: failed program was:" >&5
27135sed 's/^/| /' conftest.$ac_ext >&5
27136
27137ac_cv_lib_ICE_IceConnectionNumber=no
27138fi
ac1cb8d3
VS
27139rm -f conftest.err conftest.$ac_objext \
27140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27141LIBS=$ac_check_lib_save_LIBS
27142fi
27143echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27144echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27145if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27146 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27147fi
27148
27149 LDFLAGS=$ac_save_LDFLAGS
27150
27151fi
27152
27153
27154 if test "$no_x" = "yes"; then
27155 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27156echo "$as_me: error: X11 not found" >&2;}
27157 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27158 fi
27159
74b84332
VS
27160 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27161 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27162 AFMINSTALL=afminstall
27163 COMPILED_X_PROGRAM=0
27164
74b84332
VS
27165 fi
27166
27167 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27168 if test "$wxUSE_NANOX" = "yes"; then
27169 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27170echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27171 if test "x$MICROWIN" = x ; then
27172 echo "$as_me:$LINENO: result: not found" >&5
27173echo "${ECHO_T}not found" >&6
27174 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27175echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27176 { (exit 1); exit 1; }; }
27177 else
27178 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27179echo "${ECHO_T}$MICROWIN" >&6
27180 cat >>confdefs.h <<\_ACEOF
27181#define wxUSE_NANOX 1
27182_ACEOF
27183
27184 fi
27185 fi
27186
27187 if test "$wxUSE_UNICODE" = "yes"; then
27188
27189 succeeded=no
27190
27191 if test -z "$PKG_CONFIG"; then
27192 # Extract the first word of "pkg-config", so it can be a program name with args.
27193set dummy pkg-config; ac_word=$2
27194echo "$as_me:$LINENO: checking for $ac_word" >&5
27195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27196if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27197 echo $ECHO_N "(cached) $ECHO_C" >&6
27198else
27199 case $PKG_CONFIG in
27200 [\\/]* | ?:[\\/]*)
27201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27202 ;;
27203 *)
27204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27205for as_dir in $PATH
27206do
27207 IFS=$as_save_IFS
27208 test -z "$as_dir" && as_dir=.
27209 for ac_exec_ext in '' $ac_executable_extensions; do
27210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27213 break 2
27214 fi
27215done
27216done
27217
27218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27219 ;;
27220esac
27221fi
27222PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27223
27224if test -n "$PKG_CONFIG"; then
27225 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27226echo "${ECHO_T}$PKG_CONFIG" >&6
27227else
27228 echo "$as_me:$LINENO: result: no" >&5
27229echo "${ECHO_T}no" >&6
27230fi
27231
27232 fi
27233
27234 if test "$PKG_CONFIG" = "no" ; then
27235 echo "*** The pkg-config script could not be found. Make sure it is"
27236 echo "*** in your path, or set the PKG_CONFIG environment variable"
27237 echo "*** to the full path to pkg-config."
27238 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27239 else
27240 PKG_CONFIG_MIN_VERSION=0.9.0
27241 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27242 echo "$as_me:$LINENO: checking for pangox" >&5
27243echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27244
27245 if $PKG_CONFIG --exists "pangox" ; then
27246 echo "$as_me:$LINENO: result: yes" >&5
27247echo "${ECHO_T}yes" >&6
27248 succeeded=yes
27249
27250 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27251echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27252 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27253 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27254echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27255
27256 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27257echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27258 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27259 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27260echo "${ECHO_T}$PANGOX_LIBS" >&6
27261 else
27262 PANGOX_CFLAGS=""
27263 PANGOX_LIBS=""
27264 ## If we have a custom action on failure, don't print errors, but
27265 ## do set a variable so people can do so.
27266 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27267
27268 fi
27269
27270
27271
27272 else
27273 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27274 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27275 fi
27276 fi
27277
27278 if test $succeeded = yes; then
27279
27280 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27281 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27282
27283 else
27284
27285 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27286echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27287 { (exit 1); exit 1; }; }
27288
27289
27290 fi
27291
27292
27293 succeeded=no
27294
27295 if test -z "$PKG_CONFIG"; then
27296 # Extract the first word of "pkg-config", so it can be a program name with args.
27297set dummy pkg-config; ac_word=$2
27298echo "$as_me:$LINENO: checking for $ac_word" >&5
27299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27300if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27302else
27303 case $PKG_CONFIG in
27304 [\\/]* | ?:[\\/]*)
27305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27306 ;;
27307 *)
27308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27309for as_dir in $PATH
27310do
27311 IFS=$as_save_IFS
27312 test -z "$as_dir" && as_dir=.
27313 for ac_exec_ext in '' $ac_executable_extensions; do
27314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27317 break 2
27318 fi
27319done
27320done
27321
27322 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27323 ;;
27324esac
27325fi
27326PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27327
27328if test -n "$PKG_CONFIG"; then
27329 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27330echo "${ECHO_T}$PKG_CONFIG" >&6
27331else
27332 echo "$as_me:$LINENO: result: no" >&5
27333echo "${ECHO_T}no" >&6
27334fi
27335
27336 fi
27337
27338 if test "$PKG_CONFIG" = "no" ; then
27339 echo "*** The pkg-config script could not be found. Make sure it is"
27340 echo "*** in your path, or set the PKG_CONFIG environment variable"
27341 echo "*** to the full path to pkg-config."
27342 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27343 else
27344 PKG_CONFIG_MIN_VERSION=0.9.0
27345 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27346 echo "$as_me:$LINENO: checking for pangoft2" >&5
27347echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27348
27349 if $PKG_CONFIG --exists "pangoft2" ; then
27350 echo "$as_me:$LINENO: result: yes" >&5
27351echo "${ECHO_T}yes" >&6
27352 succeeded=yes
27353
27354 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27355echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27356 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27357 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27358echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27359
27360 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27361echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27362 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27363 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27364echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27365 else
27366 PANGOFT2_CFLAGS=""
27367 PANGOFT2_LIBS=""
27368 ## If we have a custom action on failure, don't print errors, but
27369 ## do set a variable so people can do so.
27370 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27371
27372 fi
27373
27374
27375
27376 else
27377 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27378 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27379 fi
27380 fi
27381
27382 if test $succeeded = yes; then
27383
27384 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27385 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27386
27387 else
27388
27389 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27390echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27391 wxUSE_PRINTING_ARCHITECTURE="no"
27392
27393
27394 fi
27395
27396
27397 succeeded=no
27398
27399 if test -z "$PKG_CONFIG"; then
27400 # Extract the first word of "pkg-config", so it can be a program name with args.
27401set dummy pkg-config; ac_word=$2
27402echo "$as_me:$LINENO: checking for $ac_word" >&5
27403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27404if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27406else
27407 case $PKG_CONFIG in
27408 [\\/]* | ?:[\\/]*)
27409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27410 ;;
27411 *)
27412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27413for as_dir in $PATH
27414do
27415 IFS=$as_save_IFS
27416 test -z "$as_dir" && as_dir=.
27417 for ac_exec_ext in '' $ac_executable_extensions; do
27418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27421 break 2
27422 fi
27423done
27424done
27425
27426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27427 ;;
27428esac
27429fi
27430PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27431
27432if test -n "$PKG_CONFIG"; then
27433 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27434echo "${ECHO_T}$PKG_CONFIG" >&6
27435else
27436 echo "$as_me:$LINENO: result: no" >&5
27437echo "${ECHO_T}no" >&6
27438fi
27439
27440 fi
27441
27442 if test "$PKG_CONFIG" = "no" ; then
27443 echo "*** The pkg-config script could not be found. Make sure it is"
27444 echo "*** in your path, or set the PKG_CONFIG environment variable"
27445 echo "*** to the full path to pkg-config."
27446 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27447 else
27448 PKG_CONFIG_MIN_VERSION=0.9.0
27449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27450 echo "$as_me:$LINENO: checking for pangoxft" >&5
27451echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27452
27453 if $PKG_CONFIG --exists "pangoxft" ; then
27454 echo "$as_me:$LINENO: result: yes" >&5
27455echo "${ECHO_T}yes" >&6
27456 succeeded=yes
27457
27458 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27459echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27460 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27461 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27462echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27463
27464 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27465echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27466 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27467 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27468echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27469 else
27470 PANGOXFT_CFLAGS=""
27471 PANGOXFT_LIBS=""
27472 ## If we have a custom action on failure, don't print errors, but
27473 ## do set a variable so people can do so.
27474 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27475
27476 fi
27477
27478
27479
27480 else
27481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27483 fi
27484 fi
27485
27486 if test $succeeded = yes; then
27487
4ae1af05
MB
27488 cat >>confdefs.h <<\_ACEOF
27489#define HAVE_PANGO_XFT 1
27490_ACEOF
27491
a848cd7e
SC
27492 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27493 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27494
27495 else
27496
27497 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27498echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27499
27500
27501 fi
27502
304205f1
VS
27503 save_CFLAGS="$CFLAGS"
27504 save_LIBS="$LIBS"
27505 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27506 LIBS="$LIBS $PANGOX_LIBS"
27507
27508for ac_func in pango_font_family_is_monospace
27509do
27510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27511echo "$as_me:$LINENO: checking for $ac_func" >&5
27512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27513if eval "test \"\${$as_ac_var+set}\" = set"; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27515else
27516 cat >conftest.$ac_ext <<_ACEOF
27517/* confdefs.h. */
27518_ACEOF
27519cat confdefs.h >>conftest.$ac_ext
27520cat >>conftest.$ac_ext <<_ACEOF
27521/* end confdefs.h. */
27522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27524#define $ac_func innocuous_$ac_func
27525
27526/* System header to define __stub macros and hopefully few prototypes,
27527 which can conflict with char $ac_func (); below.
27528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27529 <limits.h> exists even on freestanding compilers. */
27530
27531#ifdef __STDC__
27532# include <limits.h>
27533#else
27534# include <assert.h>
27535#endif
27536
27537#undef $ac_func
27538
27539/* Override any gcc2 internal prototype to avoid an error. */
27540#ifdef __cplusplus
27541extern "C"
27542{
27543#endif
27544/* We use char because int might match the return type of a gcc2
27545 builtin and then its argument prototype would still apply. */
27546char $ac_func ();
27547/* The GNU C library defines this for functions which it implements
27548 to always fail with ENOSYS. Some functions are actually named
27549 something starting with __ and the normal name is an alias. */
27550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27551choke me
27552#else
27553char (*f) () = $ac_func;
27554#endif
27555#ifdef __cplusplus
27556}
27557#endif
27558
27559int
27560main ()
27561{
27562return f != $ac_func;
27563 ;
27564 return 0;
27565}
27566_ACEOF
27567rm -f conftest.$ac_objext conftest$ac_exeext
27568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27569 (eval $ac_link) 2>conftest.er1
27570 ac_status=$?
27571 grep -v '^ *+' conftest.er1 >conftest.err
27572 rm -f conftest.er1
27573 cat conftest.err >&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); } &&
9dd0f6c2 27576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; } &&
27582 { ac_try='test -s conftest$ac_exeext'
27583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584 (eval $ac_try) 2>&5
27585 ac_status=$?
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
27588 eval "$as_ac_var=yes"
27589else
27590 echo "$as_me: failed program was:" >&5
27591sed 's/^/| /' conftest.$ac_ext >&5
27592
27593eval "$as_ac_var=no"
27594fi
27595rm -f conftest.err conftest.$ac_objext \
27596 conftest$ac_exeext conftest.$ac_ext
27597fi
27598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27600if test `eval echo '${'$as_ac_var'}'` = yes; then
27601 cat >>confdefs.h <<_ACEOF
27602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27603_ACEOF
27604
27605fi
27606done
27607
27608 CFLAGS="$save_CFLAGS"
27609 LIBS="$save_LIBS"
a848cd7e
SC
27610 fi
27611
27612 wxUSE_UNIVERSAL="yes"
27613
27614 if test "$wxUSE_NANOX" = "yes"; then
27615 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27616 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"
27617 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27618 else
27619 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27620 fi
27621
a848cd7e
SC
27622 TOOLKIT=X11
27623 GUIDIST=X11_DIST
27624 fi
27625
27626 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27627 if test "$wxUSE_UNICODE" = "yes"; then
27628 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27629echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27630 { (exit 1); exit 1; }; }
27631 fi
27632
74b84332
VS
27633 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27634echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27635
74b84332
VS
27636ac_find_includes=
27637for ac_dir in $SEARCH_INCLUDE /usr/include;
27638 do
27639 if test -f "$ac_dir/Xm/Xm.h"; then
27640 ac_find_includes=$ac_dir
27641 break
27642 fi
27643 done
a848cd7e 27644
74b84332
VS
27645 if test "$ac_find_includes" != "" ; then
27646 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27647echo "${ECHO_T}found in $ac_find_includes" >&6
27648
27649 if test "x$ac_find_includes" = "x/usr/include"; then
27650 ac_path_to_include=""
27651 else
27652 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27653 result=$?
27654 if test $result = 0; then
27655 ac_path_to_include=""
27656 else
27657 ac_path_to_include=" -I$ac_find_includes"
27658 fi
a848cd7e
SC
27659 fi
27660
74b84332
VS
27661 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27662 else
27663 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27664/* confdefs.h. */
27665_ACEOF
27666cat confdefs.h >>conftest.$ac_ext
27667cat >>conftest.$ac_ext <<_ACEOF
27668/* end confdefs.h. */
27669
74b84332
VS
27670 #include <Xm/Xm.h>
27671
a848cd7e
SC
27672int
27673main ()
27674{
27675
74b84332
VS
27676 int version;
27677 version = xmUseVersion;
27678
a848cd7e
SC
27679 ;
27680 return 0;
27681}
27682_ACEOF
74b84332
VS
27683rm -f conftest.$ac_objext
27684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27685 (eval $ac_compile) 2>conftest.er1
a848cd7e 27686 ac_status=$?
ac1cb8d3
VS
27687 grep -v '^ *+' conftest.er1 >conftest.err
27688 rm -f conftest.er1
27689 cat conftest.err >&5
a848cd7e
SC
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } &&
9dd0f6c2 27692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; } &&
74b84332 27698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700 (eval $ac_try) 2>&5
27701 ac_status=$?
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); }; }; then
74b84332
VS
27704
27705 echo "$as_me:$LINENO: result: found in default search path" >&5
27706echo "${ECHO_T}found in default search path" >&6
27707 COMPILED_X_PROGRAM=1
27708
a848cd7e
SC
27709else
27710 echo "$as_me: failed program was:" >&5
27711sed 's/^/| /' conftest.$ac_ext >&5
27712
a848cd7e 27713
74b84332
VS
27714 echo "$as_me:$LINENO: result: no" >&5
27715echo "${ECHO_T}no" >&6
27716 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27717echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27718 { (exit 1); exit 1; }; }
a848cd7e 27719
a848cd7e 27720
a848cd7e 27721fi
74b84332
VS
27722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27723 fi
27724
27725 if test "$COMPILED_X_PROGRAM" = 0; then
27726 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27727echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27728
27729ac_find_libraries=
27730for ac_dir in $SEARCH_LIB /usr/lib;
27731 do
27732 for ac_extension in a so sl dylib; do
27733 if test -f "$ac_dir/libXm.$ac_extension"; then
27734 ac_find_libraries=$ac_dir
27735 break 2
a848cd7e 27736 fi
74b84332
VS
27737 done
27738 done
a848cd7e 27739
74b84332
VS
27740 if test "$ac_find_libraries" != "" ; then
27741 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27742echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27743
74b84332
VS
27744
27745 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27746 result=$?
27747 if test $result = 0; then
27748 ac_path_to_link=""
a848cd7e 27749 else
74b84332
VS
27750 ac_path_to_link=" -L$ac_find_libraries"
27751 fi
27752
27753 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27754 else
27755 save_CFLAGS=$CFLAGS
27756 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27757
27758 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27759/* confdefs.h. */
27760_ACEOF
27761cat confdefs.h >>conftest.$ac_ext
27762cat >>conftest.$ac_ext <<_ACEOF
27763/* end confdefs.h. */
27764
74b84332
VS
27765 #include <Xm/Xm.h>
27766
a848cd7e
SC
27767int
27768main ()
27769{
74b84332
VS
27770
27771 int version;
27772 version = xmUseVersion;
27773
a848cd7e
SC
27774 ;
27775 return 0;
27776}
27777_ACEOF
74b84332
VS
27778rm -f conftest.$ac_objext
27779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27780 (eval $ac_compile) 2>conftest.er1
a848cd7e 27781 ac_status=$?
ac1cb8d3
VS
27782 grep -v '^ *+' conftest.er1 >conftest.err
27783 rm -f conftest.er1
27784 cat conftest.err >&5
a848cd7e
SC
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
9dd0f6c2 27787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; } &&
74b84332 27793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795 (eval $ac_try) 2>&5
27796 ac_status=$?
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; }; then
74b84332
VS
27799
27800 echo "$as_me:$LINENO: result: found in default search path" >&5
27801echo "${ECHO_T}found in default search path" >&6
27802 COMPILED_X_PROGRAM=1
27803
a848cd7e
SC
27804else
27805 echo "$as_me: failed program was:" >&5
27806sed 's/^/| /' conftest.$ac_ext >&5
27807
74b84332
VS
27808
27809 echo "$as_me:$LINENO: result: no" >&5
27810echo "${ECHO_T}no" >&6
27811 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27812echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27813 { (exit 1); exit 1; }; }
27814
27815
27816fi
27817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27818
27819 CFLAGS=$save_CFLAGS
27820 fi
27821 fi
27822
27823 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27824echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27825 libp_link=""
27826 libsm_ice_link=""
27827 libs_found=0
27828 for libp in "" " -lXp"; do
27829 if test "$libs_found" = "0"; then
27830 for libsm_ice in "" " -lSM -lICE"; do
27831 if test "$libs_found" = "0"; then
27832 save_LIBS="$LIBS"
27833 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27834 save_CFLAGS=$CFLAGS
27835 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27836
27837 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27838/* confdefs.h. */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h. */
27843
74b84332
VS
27844 #include <Xm/Xm.h>
27845 #include <Xm/List.h>
27846
a848cd7e
SC
27847int
27848main ()
27849{
74b84332
VS
27850
27851 XmString string = NULL;
27852 Widget w = NULL;
27853 int position = 0;
27854 XmListAddItem(w, string, position);
27855
a848cd7e
SC
27856 ;
27857 return 0;
27858}
27859_ACEOF
27860rm -f conftest.$ac_objext conftest$ac_exeext
27861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27862 (eval $ac_link) 2>conftest.er1
a848cd7e 27863 ac_status=$?
ac1cb8d3
VS
27864 grep -v '^ *+' conftest.er1 >conftest.err
27865 rm -f conftest.er1
27866 cat conftest.err >&5
a848cd7e
SC
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); } &&
9dd0f6c2 27869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; } &&
27875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877 (eval $ac_try) 2>&5
27878 ac_status=$?
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); }; }; then
27881
27882 libp_link="$libp"
27883 libsm_ice_link="$libsm_ice"
27884 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27885echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27886 libs_found=1
27887
27888else
27889 echo "$as_me: failed program was:" >&5
27890sed 's/^/| /' conftest.$ac_ext >&5
27891
27892
27893
27894fi
ac1cb8d3
VS
27895rm -f conftest.err conftest.$ac_objext \
27896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27897
27898 LIBS="$save_LIBS"
27899 CFLAGS=$save_CFLAGS
27900 fi
27901 done
27902 fi
27903 done
27904
27905 if test "$libs_found" = "0"; then
27906 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27907echo "${ECHO_T}can't find the right libraries" >&6
27908 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27909echo "$as_me: error: can't link a simple motif program" >&2;}
27910 { (exit 1); exit 1; }; }
27911 fi
27912
27913 save_CFLAGS=$CFLAGS
27914 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27915 echo "$as_me:$LINENO: checking for Motif 2" >&5
27916echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27917 cat >conftest.$ac_ext <<_ACEOF
27918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
27923
27924 #include <Xm/Xm.h>
27925
27926int
27927main ()
27928{
27929
27930 #if XmVersion < 2000
27931 #error "Not Motif 2"
27932 #endif
27933
27934 ;
27935 return 0;
27936}
27937_ACEOF
27938rm -f conftest.$ac_objext
27939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27940 (eval $ac_compile) 2>conftest.er1
a848cd7e 27941 ac_status=$?
ac1cb8d3
VS
27942 grep -v '^ *+' conftest.er1 >conftest.err
27943 rm -f conftest.er1
27944 cat conftest.err >&5
a848cd7e
SC
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
9dd0f6c2 27947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; } &&
27953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27955 (eval $ac_try) 2>&5
27956 ac_status=$?
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; }; then
27959
27960 cat >>confdefs.h <<\_ACEOF
27961#define __WXMOTIF20__ 1
27962_ACEOF
27963
27964 echo "$as_me:$LINENO: result: found" >&5
27965echo "${ECHO_T}found" >&6
27966
27967else
27968 echo "$as_me: failed program was:" >&5
27969sed 's/^/| /' conftest.$ac_ext >&5
27970
27971
27972 cat >>confdefs.h <<\_ACEOF
27973#define __WXMOTIF20__ 0
27974_ACEOF
27975
27976 echo "$as_me:$LINENO: result: not found" >&5
27977echo "${ECHO_T}not found" >&6
27978
27979fi
ac1cb8d3 27980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27981 CFLAGS=$save_CFLAGS
27982
27983 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27984 TOOLKIT=MOTIF
27985 GUIDIST=MOTIF_DIST
27986 fi
27987
74b84332 27988 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27989 if test "$wxUSE_LIBXPM" = "sys"; then
27990 echo "$as_me:$LINENO: checking for Xpm library" >&5
27991echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27992
27993ac_find_libraries=
27994for ac_dir in $SEARCH_LIB /usr/lib;
27995 do
27996 for ac_extension in a so sl dylib; do
27997 if test -f "$ac_dir/libXpm.$ac_extension"; then
27998 ac_find_libraries=$ac_dir
27999 break 2
28000 fi
28001 done
28002 done
28003
28004 if test "$ac_find_libraries" != "" ; then
28005
28006 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28007 result=$?
28008 if test $result = 0; then
28009 ac_path_to_link=""
28010 else
28011 ac_path_to_link=" -L$ac_find_libraries"
28012 fi
28013
28014 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28015 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28016echo "${ECHO_T}found at $ac_find_libraries" >&6
28017
28018 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28019echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28020if test "${wx_cv_x11_xpm_h+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28022else
28023
28024 save_CFLAGS=$CFLAGS
28025 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28026
28027 cat >conftest.$ac_ext <<_ACEOF
28028/* confdefs.h. */
28029_ACEOF
28030cat confdefs.h >>conftest.$ac_ext
28031cat >>conftest.$ac_ext <<_ACEOF
28032/* end confdefs.h. */
28033
28034 #include <X11/xpm.h>
28035
28036int
28037main ()
28038{
28039
28040 int version;
28041 version = XpmLibraryVersion();
28042
28043 ;
28044 return 0;
28045}
28046_ACEOF
28047rm -f conftest.$ac_objext
28048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28049 (eval $ac_compile) 2>conftest.er1
a848cd7e 28050 ac_status=$?
ac1cb8d3
VS
28051 grep -v '^ *+' conftest.er1 >conftest.err
28052 rm -f conftest.er1
28053 cat conftest.err >&5
a848cd7e
SC
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } &&
9dd0f6c2 28056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058 (eval $ac_try) 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; } &&
28062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064 (eval $ac_try) 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; }; then
28068 wx_cv_x11_xpm_h=yes
28069else
28070 echo "$as_me: failed program was:" >&5
28071sed 's/^/| /' conftest.$ac_ext >&5
28072
28073wx_cv_x11_xpm_h=no
28074
28075fi
ac1cb8d3 28076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28077
28078 CFLAGS=$save_CFLAGS
28079
28080
28081fi
28082echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28083echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28084
28085 if test $wx_cv_x11_xpm_h = "yes"; then
28086 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28087 cat >>confdefs.h <<\_ACEOF
28088#define wxHAVE_LIB_XPM 1
28089_ACEOF
28090
28091 else
28092 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28093echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28094 fi
28095 fi
28096
28097 fi
28098
28099 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28100echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28101if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28103else
28104 ac_check_lib_save_LIBS=$LIBS
28105LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28106cat >conftest.$ac_ext <<_ACEOF
28107/* confdefs.h. */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h. */
28112
28113/* Override any gcc2 internal prototype to avoid an error. */
28114#ifdef __cplusplus
28115extern "C"
28116#endif
28117/* We use char because int might match the return type of a gcc2
28118 builtin and then its argument prototype would still apply. */
28119char XShapeQueryExtension ();
28120int
28121main ()
28122{
28123XShapeQueryExtension ();
28124 ;
28125 return 0;
28126}
28127_ACEOF
28128rm -f conftest.$ac_objext conftest$ac_exeext
28129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28130 (eval $ac_link) 2>conftest.er1
a848cd7e 28131 ac_status=$?
ac1cb8d3
VS
28132 grep -v '^ *+' conftest.er1 >conftest.err
28133 rm -f conftest.er1
28134 cat conftest.err >&5
a848cd7e
SC
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
9dd0f6c2 28137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 ac_cv_lib_Xext_XShapeQueryExtension=yes
28150else
28151 echo "$as_me: failed program was:" >&5
28152sed 's/^/| /' conftest.$ac_ext >&5
28153
28154ac_cv_lib_Xext_XShapeQueryExtension=no
28155fi
ac1cb8d3
VS
28156rm -f conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28158LIBS=$ac_check_lib_save_LIBS
28159fi
28160echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28161echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28162if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28163
28164 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28165 wxHAVE_XEXT_LIB=1
28166
28167fi
28168
28169
28170 if test "$wxHAVE_XEXT_LIB" = 1; then
28171 save_CFLAGS="$CFLAGS"
28172 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28173
28174 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28175echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28176 cat >conftest.$ac_ext <<_ACEOF
28177/* confdefs.h. */
28178_ACEOF
28179cat confdefs.h >>conftest.$ac_ext
28180cat >>conftest.$ac_ext <<_ACEOF
28181/* end confdefs.h. */
28182
28183 #include <X11/Xlib.h>
28184 #include <X11/extensions/shape.h>
28185
28186int
28187main ()
28188{
28189
28190 int dummy1, dummy2;
28191 XShapeQueryExtension((Display*)NULL,
28192 (int*)NULL, (int*)NULL);
28193
28194 ;
28195 return 0;
28196}
28197_ACEOF
28198rm -f conftest.$ac_objext
28199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28200 (eval $ac_compile) 2>conftest.er1
a848cd7e 28201 ac_status=$?
ac1cb8d3
VS
28202 grep -v '^ *+' conftest.er1 >conftest.err
28203 rm -f conftest.er1
28204 cat conftest.err >&5
a848cd7e
SC
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } &&
9dd0f6c2 28207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; } &&
28213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215 (eval $ac_try) 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; }; then
28219
28220 cat >>confdefs.h <<\_ACEOF
28221#define HAVE_XSHAPE 1
28222_ACEOF
28223
28224 echo "$as_me:$LINENO: result: found" >&5
28225echo "${ECHO_T}found" >&6
28226
28227else
28228 echo "$as_me: failed program was:" >&5
28229sed 's/^/| /' conftest.$ac_ext >&5
28230
28231
28232 echo "$as_me:$LINENO: result: not found" >&5
28233echo "${ECHO_T}not found" >&6
28234
28235fi
ac1cb8d3 28236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28237 CFLAGS="$save_CFLAGS"
28238
28239 fi
28240 fi
28241
28242 if test "$wxUSE_MAC" = 1; then
28243 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28244echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28245 if test "$GCC" = yes; then
28246 echo "$as_me:$LINENO: result: gcc" >&5
28247echo "${ECHO_T}gcc" >&6
28248 CPPFLAGS_PASCAL="-fpascal-strings"
28249 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28250 echo "$as_me:$LINENO: result: xlc" >&5
28251echo "${ECHO_T}xlc" >&6
28252 CPPFLAGS_PASCAL="-qmacpstr"
28253 else
28254 echo "$as_me:$LINENO: result: none" >&5
28255echo "${ECHO_T}none" >&6
28256 fi
28257
1e9e8aba
DE
28258 if test "x$wxUSE_UNIX" = "xyes"; then
28259 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28260 else
28261 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28262 fi
a848cd7e 28263
a848cd7e
SC
28264 TOOLKIT=MAC
28265 GUIDIST=MACX_DIST
dd21ced8 28266 WXBASEPORT="_carbon"
a848cd7e
SC
28267 fi
28268
28269 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28270 TOOLKIT=COCOA
28271 GUIDIST=COCOA_DIST
28272 fi
28273
28274 if test "$wxUSE_PM" = 1; then
28275 TOOLKIT=PM
de59c161
RD
28276 GUIDIST=PM_DIST
28277 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28278echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28279if test "${wx_cv_spbcdata+set}" = set; then
28280 echo $ECHO_N "(cached) $ECHO_C" >&6
28281else
28282
28283 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28284/* confdefs.h. */
28285_ACEOF
28286cat confdefs.h >>conftest.$ac_ext
28287cat >>conftest.$ac_ext <<_ACEOF
28288/* end confdefs.h. */
28289
28290 #define INCL_PM
28291 #include <os2.h>
28292
28293int
28294main ()
28295{
28296
28297 SPBCDATA test;
28298
28299 ;
28300 return 0;
28301}
28302_ACEOF
28303rm -f conftest.$ac_objext
28304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28305 (eval $ac_compile) 2>conftest.er1
de59c161 28306 ac_status=$?
ac1cb8d3
VS
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
de59c161
RD
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } &&
9dd0f6c2 28312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28314 (eval $ac_try) 2>&5
28315 ac_status=$?
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); }; } &&
28318 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); }; }; then
28324 wx_cv_spbcdata=yes
28325else
28326 echo "$as_me: failed program was:" >&5
28327sed 's/^/| /' conftest.$ac_ext >&5
28328
28329wx_cv_spbcdata=no
28330
28331fi
ac1cb8d3 28332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28333
28334
28335fi
28336echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28337echo "${ECHO_T}$wx_cv_spbcdata" >&6
28338
28339 if test $wx_cv_spbcdata = "yes"; then
28340 cat >>confdefs.h <<\_ACEOF
28341#define HAVE_SPBCDATA 1
28342_ACEOF
28343
28344 fi
a848cd7e
SC
28345 fi
28346
28347 if test "$TOOLKIT" = "PM" ; then
28348 TOOLKIT_DIR="os2"
28349 else
28350 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28351 fi
28352
a848cd7e 28353 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28354 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28355 WIDGET_SET=univ
a848cd7e
SC
28356 fi
28357
28358 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28359 DISTDIR="wx\$(TOOLKIT)"
28360else
28361 USE_GUI=0
28362
28363 TOOLKIT_DIR="base"
28364
28365 if test "$USE_WIN32" = 1 ; then
a848cd7e 28366 TOOLKIT="MSW"
a848cd7e
SC
28367 fi
28368
a848cd7e
SC
28369 GUIDIST="BASE_DIST"
28370 DISTDIR="wxBase"
28371fi
28372
28373
28374
28375
28376IODBC_C_SRC=""
28377
28378
28379if test "$TOOLKIT" != "MSW" ; then
28380
28381 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28382
28383 if test "${ac_cv_header_sql_h+set}" = set; then
28384 echo "$as_me:$LINENO: checking for sql.h" >&5
28385echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28386if test "${ac_cv_header_sql_h+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28388fi
28389echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28390echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28391else
28392 # Is the header compilable?
28393echo "$as_me:$LINENO: checking sql.h usability" >&5
28394echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28395cat >conftest.$ac_ext <<_ACEOF
28396/* confdefs.h. */
28397_ACEOF
28398cat confdefs.h >>conftest.$ac_ext
28399cat >>conftest.$ac_ext <<_ACEOF
28400/* end confdefs.h. */
28401$ac_includes_default
28402#include <sql.h>
28403_ACEOF
28404rm -f conftest.$ac_objext
28405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28406 (eval $ac_compile) 2>conftest.er1
a848cd7e 28407 ac_status=$?
ac1cb8d3
VS
28408 grep -v '^ *+' conftest.er1 >conftest.err
28409 rm -f conftest.er1
28410 cat conftest.err >&5
a848cd7e
SC
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); } &&
9dd0f6c2 28413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28415 (eval $ac_try) 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28421 (eval $ac_try) 2>&5
28422 ac_status=$?
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; }; then
28425 ac_header_compiler=yes
28426else
28427 echo "$as_me: failed program was:" >&5
28428sed 's/^/| /' conftest.$ac_ext >&5
28429
28430ac_header_compiler=no
28431fi
ac1cb8d3 28432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28433echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28434echo "${ECHO_T}$ac_header_compiler" >&6
28435
28436# Is the header present?
28437echo "$as_me:$LINENO: checking sql.h presence" >&5
28438echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28439cat >conftest.$ac_ext <<_ACEOF
28440/* confdefs.h. */
28441_ACEOF
28442cat confdefs.h >>conftest.$ac_ext
28443cat >>conftest.$ac_ext <<_ACEOF
28444/* end confdefs.h. */
28445#include <sql.h>
28446_ACEOF
28447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28449 ac_status=$?
28450 grep -v '^ *+' conftest.er1 >conftest.err
28451 rm -f conftest.er1
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } >/dev/null; then
28455 if test -s conftest.err; then
28456 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28458 else
28459 ac_cpp_err=
28460 fi
28461else
28462 ac_cpp_err=yes
28463fi
28464if test -z "$ac_cpp_err"; then
28465 ac_header_preproc=yes
28466else
28467 echo "$as_me: failed program was:" >&5
28468sed 's/^/| /' conftest.$ac_ext >&5
28469
28470 ac_header_preproc=no
28471fi
28472rm -f conftest.err conftest.$ac_ext
28473echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28474echo "${ECHO_T}$ac_header_preproc" >&6
28475
28476# So? What about this header?
ac1cb8d3
VS
28477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28478 yes:no: )
a848cd7e
SC
28479 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28480echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28481 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28482echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28483 ac_header_preproc=yes
a848cd7e 28484 ;;
ac1cb8d3 28485 no:yes:* )
a848cd7e
SC
28486 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28487echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28488 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28489echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28490 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28491echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28492 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28493echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28494 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28495echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28496 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28497echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28498 (
28499 cat <<\_ASBOX
ac1cb8d3
VS
28500## ----------------------------------------- ##
28501## Report this to wx-dev@lists.wxwidgets.org ##
28502## ----------------------------------------- ##
a848cd7e
SC
28503_ASBOX
28504 ) |
28505 sed "s/^/$as_me: WARNING: /" >&2
28506 ;;
28507esac
28508echo "$as_me:$LINENO: checking for sql.h" >&5
28509echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28510if test "${ac_cv_header_sql_h+set}" = set; then
28511 echo $ECHO_N "(cached) $ECHO_C" >&6
28512else
28513 ac_cv_header_sql_h=$ac_header_preproc
28514fi
28515echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28516echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28517
28518fi
28519if test $ac_cv_header_sql_h = yes; then
28520 found_sql_h=1
28521fi
28522
28523
28524 if test "x$found_sql_h" = "x1" ; then
28525 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28526echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28527if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28529else
28530 ac_check_lib_save_LIBS=$LIBS
28531LIBS="-liodbc $LIBS"
28532cat >conftest.$ac_ext <<_ACEOF
28533/* confdefs.h. */
28534_ACEOF
28535cat confdefs.h >>conftest.$ac_ext
28536cat >>conftest.$ac_ext <<_ACEOF
28537/* end confdefs.h. */
28538
28539/* Override any gcc2 internal prototype to avoid an error. */
28540#ifdef __cplusplus
28541extern "C"
28542#endif
28543/* We use char because int might match the return type of a gcc2
28544 builtin and then its argument prototype would still apply. */
28545char SQLAllocEnv ();
28546int
28547main ()
28548{
28549SQLAllocEnv ();
28550 ;
28551 return 0;
28552}
28553_ACEOF
28554rm -f conftest.$ac_objext conftest$ac_exeext
28555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28556 (eval $ac_link) 2>conftest.er1
a848cd7e 28557 ac_status=$?
ac1cb8d3
VS
28558 grep -v '^ *+' conftest.er1 >conftest.err
28559 rm -f conftest.er1
28560 cat conftest.err >&5
a848cd7e
SC
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
9dd0f6c2 28563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28566 ac_status=$?
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; } &&
28569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28571 (eval $ac_try) 2>&5
28572 ac_status=$?
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); }; }; then
28575 ac_cv_lib_iodbc_SQLAllocEnv=yes
28576else
28577 echo "$as_me: failed program was:" >&5
28578sed 's/^/| /' conftest.$ac_ext >&5
28579
28580ac_cv_lib_iodbc_SQLAllocEnv=no
28581fi
ac1cb8d3
VS
28582rm -f conftest.err conftest.$ac_objext \
28583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28584LIBS=$ac_check_lib_save_LIBS
28585fi
28586echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28587echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28588if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28589 ODBC_LINK=" -liodbc"
28590else
28591
28592 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28593echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28594if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28595 echo $ECHO_N "(cached) $ECHO_C" >&6
28596else
28597 ac_check_lib_save_LIBS=$LIBS
28598LIBS="-lunixodbc $LIBS"
28599cat >conftest.$ac_ext <<_ACEOF
28600/* confdefs.h. */
28601_ACEOF
28602cat confdefs.h >>conftest.$ac_ext
28603cat >>conftest.$ac_ext <<_ACEOF
28604/* end confdefs.h. */
28605
28606/* Override any gcc2 internal prototype to avoid an error. */
28607#ifdef __cplusplus
28608extern "C"
28609#endif
28610/* We use char because int might match the return type of a gcc2
28611 builtin and then its argument prototype would still apply. */
28612char SQLAllocEnv ();
28613int
28614main ()
28615{
28616SQLAllocEnv ();
28617 ;
28618 return 0;
28619}
28620_ACEOF
28621rm -f conftest.$ac_objext conftest$ac_exeext
28622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28623 (eval $ac_link) 2>conftest.er1
a848cd7e 28624 ac_status=$?
ac1cb8d3
VS
28625 grep -v '^ *+' conftest.er1 >conftest.err
28626 rm -f conftest.er1
28627 cat conftest.err >&5
a848cd7e
SC
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } &&
9dd0f6c2 28630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; } &&
28636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; }; then
28642 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28643else
28644 echo "$as_me: failed program was:" >&5
28645sed 's/^/| /' conftest.$ac_ext >&5
28646
28647ac_cv_lib_unixodbc_SQLAllocEnv=no
28648fi
ac1cb8d3
VS
28649rm -f conftest.err conftest.$ac_objext \
28650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28651LIBS=$ac_check_lib_save_LIBS
28652fi
28653echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28654echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28655if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28656 ODBC_LINK=" -lunixodbc"
28657else
28658
28659 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28660echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28661if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28663else
28664 ac_check_lib_save_LIBS=$LIBS
28665LIBS="-lodbc $LIBS"
28666cat >conftest.$ac_ext <<_ACEOF
28667/* confdefs.h. */
28668_ACEOF
28669cat confdefs.h >>conftest.$ac_ext
28670cat >>conftest.$ac_ext <<_ACEOF
28671/* end confdefs.h. */
28672
28673/* Override any gcc2 internal prototype to avoid an error. */
28674#ifdef __cplusplus
28675extern "C"
28676#endif
28677/* We use char because int might match the return type of a gcc2
28678 builtin and then its argument prototype would still apply. */
28679char SQLAllocEnv ();
28680int
28681main ()
28682{
28683SQLAllocEnv ();
28684 ;
28685 return 0;
28686}
28687_ACEOF
28688rm -f conftest.$ac_objext conftest$ac_exeext
28689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28690 (eval $ac_link) 2>conftest.er1
a848cd7e 28691 ac_status=$?
ac1cb8d3
VS
28692 grep -v '^ *+' conftest.er1 >conftest.err
28693 rm -f conftest.er1
28694 cat conftest.err >&5
a848cd7e
SC
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); } &&
9dd0f6c2 28697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; } &&
28703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
28709 ac_cv_lib_odbc_SQLAllocEnv=yes
28710else
28711 echo "$as_me: failed program was:" >&5
28712sed 's/^/| /' conftest.$ac_ext >&5
28713
28714ac_cv_lib_odbc_SQLAllocEnv=no
28715fi
ac1cb8d3
VS
28716rm -f conftest.err conftest.$ac_objext \
28717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28718LIBS=$ac_check_lib_save_LIBS
28719fi
28720echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28721echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28722if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28723 ODBC_LINK=" -lodbc"
28724fi
28725
28726
28727fi
28728
28729
28730fi
28731
28732 fi
28733 if test "x$ODBC_LINK" = "x" ; then
28734 if test "$wxUSE_ODBC" = "sys" ; then
28735 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28736echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28737 { (exit 1); exit 1; }; }
28738 else
28739 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28740echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28741 wxUSE_ODBC=builtin
28742 fi
28743 else
28744 wxUSE_ODBC=sys
28745 fi
28746 fi
a848cd7e 28747
2da0c077
RD
28748 if test "$wxUSE_ODBC" = "builtin" ; then
28749 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28750#define wxUSE_BUILTIN_IODBC 1
28751_ACEOF
28752
a848cd7e
SC
28753 fi
28754fi
28755
2da0c077
RD
28756if test "$wxUSE_ODBC" != "no" ; then
28757 cat >>confdefs.h <<\_ACEOF
28758#define wxUSE_ODBC 1
28759_ACEOF
28760
28761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28762
28763 WXODBCFLAG="-D_IODBC_"
28764fi
a848cd7e 28765
01cb68df 28766
a848cd7e 28767if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28768 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28769 echo "$as_me:$LINENO: checking for Xinerama" >&5
28770echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28771
28772ac_find_libraries=
28773for ac_dir in $SEARCH_LIB /usr/lib;
28774 do
28775 for ac_extension in a so sl dylib; do
28776 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28777 ac_find_libraries=$ac_dir
28778 break 2
28779 fi
28780 done
28781 done
28782
28783 if test "$ac_find_libraries" != "" ; then
28784
28785 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28786 result=$?
28787 if test $result = 0; then
28788 ac_path_to_link=""
28789 else
28790 ac_path_to_link=" -L$ac_find_libraries"
28791 fi
28792
28793 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28794 LDFLAGS="$LDFLAGS $ac_path_to_link"
28795 fi
28796 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28797 echo "$as_me:$LINENO: result: yes" >&5
28798echo "${ECHO_T}yes" >&6
28799
28800 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28801echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28802
28803ac_find_libraries=
28804for ac_dir in $SEARCH_LIB /usr/lib;
28805 do
28806 for ac_extension in a so sl dylib; do
28807 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28808 ac_find_libraries=$ac_dir
28809 break 2
28810 fi
28811 done
28812 done
28813
28814 if test "$ac_find_libraries" != "" ; then
28815 echo "$as_me:$LINENO: result: yes" >&5
28816echo "${ECHO_T}yes" >&6
28817
28818for ac_header in X11/extensions/xf86vmode.h
28819do
28820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28821echo "$as_me:$LINENO: checking for $ac_header" >&5
28822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28823if eval "test \"\${$as_ac_Header+set}\" = set"; then
28824 echo $ECHO_N "(cached) $ECHO_C" >&6
28825else
28826 cat >conftest.$ac_ext <<_ACEOF
28827/* confdefs.h. */
28828_ACEOF
28829cat confdefs.h >>conftest.$ac_ext
28830cat >>conftest.$ac_ext <<_ACEOF
28831/* end confdefs.h. */
28832
28833 #if HAVE_X11_XLIB_H
28834 #include <X11/Xlib.h>
28835 #endif
28836
28837
28838#include <$ac_header>
28839_ACEOF
28840rm -f conftest.$ac_objext
28841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28842 (eval $ac_compile) 2>conftest.er1
a848cd7e 28843 ac_status=$?
ac1cb8d3
VS
28844 grep -v '^ *+' conftest.er1 >conftest.err
28845 rm -f conftest.er1
28846 cat conftest.err >&5
a848cd7e
SC
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } &&
9dd0f6c2 28849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28851 (eval $ac_try) 2>&5
28852 ac_status=$?
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); }; } &&
28855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28858 ac_status=$?
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; }; then
28861 eval "$as_ac_Header=yes"
28862else
28863 echo "$as_me: failed program was:" >&5
28864sed 's/^/| /' conftest.$ac_ext >&5
28865
28866eval "$as_ac_Header=no"
28867fi
ac1cb8d3 28868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28869fi
28870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28872if test `eval echo '${'$as_ac_Header'}'` = yes; then
28873 cat >>confdefs.h <<_ACEOF
28874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28875_ACEOF
28876
28877 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28878
28879fi
28880
28881done
28882
28883 else
28884 echo "$as_me:$LINENO: result: no" >&5
28885echo "${ECHO_T}no" >&6
28886 fi
28887
28888 else
28889 echo "$as_me:$LINENO: result: no" >&5
28890echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28891 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28892echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28893 wxUSE_DISPLAY="no"
28894 fi
01cb68df
RG
28895 elif test "$wxUSE_MSW" = 1; then
28896
28897
28898for ac_header in multimon.h ddraw.h
28899do
28900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28901echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28903if eval "test \"\${$as_ac_Header+set}\" = set"; then
28904 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28905else
5294a27e 28906 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28907/* confdefs.h. */
28908_ACEOF
28909cat confdefs.h >>conftest.$ac_ext
28910cat >>conftest.$ac_ext <<_ACEOF
28911/* end confdefs.h. */
5294a27e
VZ
28912#include <windows.h>
28913
01cb68df
RG
28914#include <$ac_header>
28915_ACEOF
28916rm -f conftest.$ac_objext
28917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28918 (eval $ac_compile) 2>conftest.er1
01cb68df 28919 ac_status=$?
ac1cb8d3
VS
28920 grep -v '^ *+' conftest.er1 >conftest.err
28921 rm -f conftest.er1
28922 cat conftest.err >&5
01cb68df
RG
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } &&
9dd0f6c2 28925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927 (eval $ac_try) 2>&5
28928 ac_status=$?
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; } &&
28931 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933 (eval $ac_try) 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
5294a27e 28937 eval "$as_ac_Header=yes"
01cb68df
RG
28938else
28939 echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
5294a27e 28942eval "$as_ac_Header=no"
01cb68df 28943fi
ac1cb8d3 28944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28945fi
28946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28948if test `eval echo '${'$as_ac_Header'}'` = yes; then
28949 cat >>confdefs.h <<_ACEOF
28950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28951_ACEOF
28952
28953else
28954
5294a27e
VZ
28955 wxUSE_DISPLAY="no"
28956 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28957echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28958
28959fi
28960
28961done
28962
a848cd7e
SC
28963 fi
28964fi
28965
28966
28967USE_OPENGL=0
28968if test "$wxUSE_OPENGL" = "yes"; then
28969 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28970 OPENGL_LIBS="-framework OpenGL -framework AGL"
28971 elif test "$wxUSE_MSW" = 1; then
28972 OPENGL_LIBS="-lopengl32 -lglu32"
28973 else
28974
28975
28976ac_find_includes=
28977for ac_dir in $SEARCH_INCLUDE /usr/include;
28978 do
28979 if test -f "$ac_dir/GL/gl.h"; then
28980 ac_find_includes=$ac_dir
28981 break
28982 fi
28983 done
28984
28985 if test "$ac_find_includes" != "" ; then
28986 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28987echo "${ECHO_T}found in $ac_find_includes" >&6
28988
28989 if test "x$ac_find_includes" = "x/usr/include"; then
28990 ac_path_to_include=""
28991 else
28992 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28993 result=$?
28994 if test $result = 0; then
28995 ac_path_to_include=""
28996 else
28997 ac_path_to_include=" -I$ac_find_includes"
28998 fi
28999 fi
29000
29001 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29002 fi
29003
29004 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29005 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29006echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29007if test "${ac_cv_header_GL_gl_h+set}" = set; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29009fi
29010echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29011echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29012else
29013 # Is the header compilable?
29014echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29015echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29016cat >conftest.$ac_ext <<_ACEOF
29017/* confdefs.h. */
29018_ACEOF
29019cat confdefs.h >>conftest.$ac_ext
29020cat >>conftest.$ac_ext <<_ACEOF
29021/* end confdefs.h. */
29022$ac_includes_default
29023#include <GL/gl.h>
29024_ACEOF
29025rm -f conftest.$ac_objext
29026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29027 (eval $ac_compile) 2>conftest.er1
a848cd7e 29028 ac_status=$?
ac1cb8d3
VS
29029 grep -v '^ *+' conftest.er1 >conftest.err
29030 rm -f conftest.er1
29031 cat conftest.err >&5
a848cd7e
SC
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } &&
9dd0f6c2 29034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29037 ac_status=$?
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; } &&
29040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
29046 ac_header_compiler=yes
29047else
29048 echo "$as_me: failed program was:" >&5
29049sed 's/^/| /' conftest.$ac_ext >&5
29050
29051ac_header_compiler=no
29052fi
ac1cb8d3 29053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29055echo "${ECHO_T}$ac_header_compiler" >&6
29056
29057# Is the header present?
29058echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29059echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29060cat >conftest.$ac_ext <<_ACEOF
29061/* confdefs.h. */
29062_ACEOF
29063cat confdefs.h >>conftest.$ac_ext
29064cat >>conftest.$ac_ext <<_ACEOF
29065/* end confdefs.h. */
29066#include <GL/gl.h>
29067_ACEOF
29068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29070 ac_status=$?
29071 grep -v '^ *+' conftest.er1 >conftest.err
29072 rm -f conftest.er1
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } >/dev/null; then
29076 if test -s conftest.err; then
29077 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29079 else
29080 ac_cpp_err=
29081 fi
29082else
29083 ac_cpp_err=yes
29084fi
29085if test -z "$ac_cpp_err"; then
29086 ac_header_preproc=yes
29087else
29088 echo "$as_me: failed program was:" >&5
29089sed 's/^/| /' conftest.$ac_ext >&5
29090
29091 ac_header_preproc=no
29092fi
29093rm -f conftest.err conftest.$ac_ext
29094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29095echo "${ECHO_T}$ac_header_preproc" >&6
29096
29097# So? What about this header?
ac1cb8d3
VS
29098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29099 yes:no: )
a848cd7e
SC
29100 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29101echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29102 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29103echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29104 ac_header_preproc=yes
a848cd7e 29105 ;;
ac1cb8d3 29106 no:yes:* )
a848cd7e
SC
29107 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29108echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29109 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29110echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29111 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29112echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29113 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29114echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29115 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29116echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29117 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29118echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29119 (
29120 cat <<\_ASBOX
ac1cb8d3
VS
29121## ----------------------------------------- ##
29122## Report this to wx-dev@lists.wxwidgets.org ##
29123## ----------------------------------------- ##
a848cd7e
SC
29124_ASBOX
29125 ) |
29126 sed "s/^/$as_me: WARNING: /" >&2
29127 ;;
29128esac
29129echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29130echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29131if test "${ac_cv_header_GL_gl_h+set}" = set; then
29132 echo $ECHO_N "(cached) $ECHO_C" >&6
29133else
29134 ac_cv_header_GL_gl_h=$ac_header_preproc
29135fi
29136echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29137echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29138
29139fi
29140if test $ac_cv_header_GL_gl_h = yes; then
29141
29142 found_gl=0
29143
29144 echo "$as_me:$LINENO: checking for -lGL" >&5
29145echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29146
29147ac_find_libraries=
29148for ac_dir in $SEARCH_LIB /usr/lib;
29149 do
29150 for ac_extension in a so sl dylib; do
29151 if test -f "$ac_dir/libGL.$ac_extension"; then
29152 ac_find_libraries=$ac_dir
29153 break 2
29154 fi
29155 done
29156 done
29157
29158 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29159 echo "$as_me:$LINENO: result: yes" >&5
29160echo "${ECHO_T}yes" >&6
29161
a848cd7e
SC
29162
29163 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29164 result=$?
29165 if test $result = 0; then
29166 ac_path_to_link=""
29167 else
29168 ac_path_to_link=" -L$ac_find_libraries"
29169 fi
29170
29171 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29172 LDFLAGS_GL="$ac_path_to_link"
29173 fi
29174
69120ee4
VZ
29175 echo "$as_me:$LINENO: checking for -lGLU" >&5
29176echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29177
29178ac_find_libraries=
29179for ac_dir in $SEARCH_LIB /usr/lib;
29180 do
29181 for ac_extension in a so sl dylib; do
29182 if test -f "$ac_dir/libGLU.$ac_extension"; then
29183 ac_find_libraries=$ac_dir
29184 break 2
29185 fi
29186 done
29187 done
29188
29189 if test "$ac_find_libraries" != "" ; then
29190
29191 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29192 result=$?
29193 if test $result = 0; then
29194 ac_path_to_link=""
29195 else
29196 ac_path_to_link=" -L$ac_find_libraries"
29197 fi
29198
29199 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29200 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29201 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29202 fi
29203
29204 found_gl=1
29205 OPENGL_LIBS="-lGL -lGLU"
29206 echo "$as_me:$LINENO: result: yes" >&5
29207echo "${ECHO_T}yes" >&6
69120ee4
VZ
29208 else
29209 echo "$as_me:$LINENO: result: no" >&5
29210echo "${ECHO_T}no" >&6
a848cd7e 29211 fi
69120ee4
VZ
29212 else
29213 echo "$as_me:$LINENO: result: no" >&5
29214echo "${ECHO_T}no" >&6
a848cd7e
SC
29215 fi
29216
29217 if test "$found_gl" != 1; then
a848cd7e
SC
29218 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29219echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29220
29221ac_find_libraries=
29222for ac_dir in $SEARCH_LIB /usr/lib;
29223 do
29224 for ac_extension in a so sl dylib; do
29225 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29226 ac_find_libraries=$ac_dir
29227 break 2
29228 fi
29229 done
29230 done
29231
29232 if test "$ac_find_libraries" != "" ; then
29233
29234 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29235 result=$?
29236 if test $result = 0; then
29237 ac_path_to_link=""
29238 else
29239 ac_path_to_link=" -L$ac_find_libraries"
29240 fi
29241
29242 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29243 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29244 echo "$as_me:$LINENO: result: yes" >&5
29245echo "${ECHO_T}yes" >&6
29246 else
29247 echo "$as_me:$LINENO: result: no" >&5
29248echo "${ECHO_T}no" >&6
29249 fi
29250 fi
29251
29252fi
29253
29254
29255
29256 if test "x$OPENGL_LIBS" = "x"; then
29257 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29258echo "$as_me: error: OpenGL libraries not available" >&2;}
29259 { (exit 1); exit 1; }; }
29260 fi
29261 fi
29262
29263 if test "$wxUSE_OPENGL" = "yes"; then
29264 USE_OPENGL=1
29265 cat >>confdefs.h <<\_ACEOF
29266#define wxUSE_OPENGL 1
29267_ACEOF
29268
29269 cat >>confdefs.h <<\_ACEOF
29270#define wxUSE_GLCANVAS 1
29271_ACEOF
29272
29273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29274 fi
29275fi
29276
a848cd7e
SC
29277
29278if test -n "$TOOLKIT" ; then
29279 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29280fi
29281
a848cd7e
SC
29282
29283
29284if test "$wxUSE_SHARED" = "yes"; then
29285 case "${host}" in
29286 *-pc-msdosdjgpp )
29287 wxUSE_SHARED=no
29288 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29289echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29290 ;;
29291 esac
29292fi
29293
a848cd7e 29294if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29295
29296
29297 found_versioning=no
29298
29299
29300 if test $found_versioning = no ; then
29301 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29302echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29303if test "${wx_cv_version_script+set}" = set; then
29304 echo $ECHO_N "(cached) $ECHO_C" >&6
29305else
29306
29307 echo "VER_1 { *; };" >conftest.sym
29308 echo "int main() { return 0; }" >conftest.cpp
29309
29310 if { ac_try='
29311 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29312 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; } ; then
29318 if test -s conftest.stderr ; then
29319 wx_cv_version_script=no
29320 else
29321 wx_cv_version_script=yes
29322 fi
29323 else
29324 wx_cv_version_script=no
29325 fi
29326 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29327
29328fi
29329echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29330echo "${ECHO_T}$wx_cv_version_script" >&6
29331 if test $wx_cv_version_script = yes ; then
29332 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29333 fi
29334 fi
29335
29336
29337 case "${host}" in
29338 *-*-linux* | *-*-gnu* )
29339 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29340 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29341 ;;
29342
29343 *-*-solaris2* )
29344 if test "$GCC" = yes ; then
29345 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29346
29347 saveLdflags="$LDFLAGS"
29348 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29349 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29350echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29351 cat >conftest.$ac_ext <<_ACEOF
29352/* confdefs.h. */
29353_ACEOF
29354cat confdefs.h >>conftest.$ac_ext
29355cat >>conftest.$ac_ext <<_ACEOF
29356/* end confdefs.h. */
29357
29358int
29359main ()
29360{
29361
29362 ;
29363 return 0;
29364}
29365_ACEOF
29366rm -f conftest.$ac_objext conftest$ac_exeext
29367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29368 (eval $ac_link) 2>conftest.er1
a848cd7e 29369 ac_status=$?
ac1cb8d3
VS
29370 grep -v '^ *+' conftest.er1 >conftest.err
29371 rm -f conftest.er1
29372 cat conftest.err >&5
a848cd7e
SC
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } &&
9dd0f6c2 29375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29377 (eval $ac_try) 2>&5
29378 ac_status=$?
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); }; } &&
29381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; }; then
29387
29388 echo "$as_me:$LINENO: result: yes" >&5
29389echo "${ECHO_T}yes" >&6
29390 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29391 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29392
29393else
29394 echo "$as_me: failed program was:" >&5
29395sed 's/^/| /' conftest.$ac_ext >&5
29396
29397
29398 echo "$as_me:$LINENO: result: no" >&5
29399echo "${ECHO_T}no" >&6
29400 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29401echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29402 LDFLAGS="$saveLdflags -Wl,-R,/"
29403 cat >conftest.$ac_ext <<_ACEOF
29404/* confdefs.h. */
29405_ACEOF
29406cat confdefs.h >>conftest.$ac_ext
29407cat >>conftest.$ac_ext <<_ACEOF
29408/* end confdefs.h. */
29409
29410int
29411main ()
29412{
29413
29414 ;
29415 return 0;
29416}
29417_ACEOF
29418rm -f conftest.$ac_objext conftest$ac_exeext
29419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29420 (eval $ac_link) 2>conftest.er1
a848cd7e 29421 ac_status=$?
ac1cb8d3
VS
29422 grep -v '^ *+' conftest.er1 >conftest.err
29423 rm -f conftest.er1
29424 cat conftest.err >&5
a848cd7e
SC
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } &&
9dd0f6c2 29427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; } &&
29433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; }; then
29439
ffa0583f 29440 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29441echo "${ECHO_T}yes" >&6
ffa0583f
RL
29442 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29443 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29444
a848cd7e
SC
29445else
29446 echo "$as_me: failed program was:" >&5
29447sed 's/^/| /' conftest.$ac_ext >&5
29448
29449
29450 echo "$as_me:$LINENO: result: no" >&5
29451echo "${ECHO_T}no" >&6
29452
29453fi
ac1cb8d3
VS
29454rm -f conftest.err conftest.$ac_objext \
29455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29456
29457fi
ac1cb8d3
VS
29458rm -f conftest.err conftest.$ac_objext \
29459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29460 LDFLAGS="$saveLdflags"
29461 else
a848cd7e 29462 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29463 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29464 fi
29465 ;;
29466
29467 powerpc-*-darwin* )
29468 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29469 cat <<EOF >change-install-names
29470#!/bin/sh
29471libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29472inst_cmd="install_name_tool "
29473for i in \${libnames} ; do
29474 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29475done
29476\${inst_cmd} \${3}
29477EOF
29478 chmod +x change-install-names
29479 ;;
29480
29481 *-*-cygwin* | *-*-mingw32* )
29482 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29483 ;;
29484
81f90336
MW
29485 *-*-hpux* )
29486 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29487 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29488 ;;
29489
a848cd7e 29490 esac
ceec2216 29491
ffa0583f
RL
29492 if test $wxUSE_RPATH = "no"; then
29493 SAMPLES_RPATH_FLAG=''
29494 SAMPLES_RPATH_POSTLINK=''
29495 WXCONFIG_RPATH=''
29496 fi
29497
29498 SHARED=1
29499
29500else
29501
ceec2216
RL
29502 config_linkage_component="-static"
29503 SHARED=0
ffa0583f 29504
ceec2216 29505fi
a848cd7e 29506
a848cd7e 29507
ceec2216
RL
29508UNICODE=0
29509lib_unicode_suffix=
29510WX_CHARTYPE="ansi"
29511if test "$wxUSE_UNICODE" = "yes"; then
29512 lib_unicode_suffix=u
29513 WX_CHARTYPE="unicode"
29514 UNICODE=1
a848cd7e
SC
29515fi
29516
ceec2216
RL
29517lib_debug_suffix=
29518WX_DEBUGTYPE="release"
29519DEBUG_FLAG=0
29520if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29521 lib_debug_suffix=d
29522 WX_DEBUGTYPE="debug"
29523 DEBUG_FLAG=1
29524fi
a848cd7e 29525
ceec2216
RL
29526WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29527WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29528
ceec2216
RL
29529DEBUG_INFO=0
29530if test "$wxUSE_DEBUG_INFO" = "yes"; then
29531 DEBUG_INFO=1
29532fi
a848cd7e 29533
ceec2216 29534WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29535
ceec2216 29536TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29537
ceec2216 29538TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29539
ceec2216
RL
29540if test "$cross_compiling" = "yes"; then
29541 HOST_SUFFIX="-$host_alias"
29542 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29543 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29544fi
29545
dd21ced8 29546WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29547WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29548
29549
29550
1d1af5ea
DE
29551if test "$wxUSE_COCOA" = 1; then
29552
29553
29554 ac_ext=c
29555ac_cpp='$CPP $CPPFLAGS'
29556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29558ac_compiler_gnu=$ac_cv_c_compiler_gnu
29559
29560ac_ext=m
29561
29562 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29563echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29564 cat >conftest.$ac_ext <<_ACEOF
29565/* confdefs.h. */
29566_ACEOF
29567cat confdefs.h >>conftest.$ac_ext
29568cat >>conftest.$ac_ext <<_ACEOF
29569/* end confdefs.h. */
29570#include <AppKit/NSEvent.h>
29571#include <CoreFoundation/CoreFoundation.h>
29572
29573int
29574main ()
29575{
29576
29577 ;
29578 return 0;
29579}
29580_ACEOF
29581rm -f conftest.$ac_objext
29582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29583 (eval $ac_compile) 2>conftest.er1
29584 ac_status=$?
29585 grep -v '^ *+' conftest.er1 >conftest.err
29586 rm -f conftest.er1
29587 cat conftest.err >&5
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); } &&
9dd0f6c2 29590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592 (eval $ac_try) 2>&5
29593 ac_status=$?
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; } &&
29596 { ac_try='test -s conftest.$ac_objext'
29597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29598 (eval $ac_try) 2>&5
29599 ac_status=$?
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); }; }; then
29602 echo "$as_me:$LINENO: result: no" >&5
29603echo "${ECHO_T}no" >&6
29604else
29605 echo "$as_me: failed program was:" >&5
29606sed 's/^/| /' conftest.$ac_ext >&5
29607
29608echo "$as_me:$LINENO: result: yes" >&5
29609echo "${ECHO_T}yes" >&6
29610 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29611echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29612 cat >conftest.$ac_ext <<_ACEOF
29613/* confdefs.h. */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h. */
29618#define __Point__ 1
29619#include <AppKit/NSEvent.h>
29620#include <CoreFoundation/CoreFoundation.h>
29621
29622int
29623main ()
29624{
29625
29626 ;
29627 return 0;
29628}
29629_ACEOF
29630rm -f conftest.$ac_objext
29631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29632 (eval $ac_compile) 2>conftest.er1
29633 ac_status=$?
29634 grep -v '^ *+' conftest.er1 >conftest.err
29635 rm -f conftest.er1
29636 cat conftest.err >&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } &&
9dd0f6c2 29639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29648 ac_status=$?
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; }; then
29651 echo "$as_me:$LINENO: result: yes" >&5
29652echo "${ECHO_T}yes" >&6
29653 cat >>confdefs.h <<\_ACEOF
29654#define __Point__ 1
29655_ACEOF
29656
29657
29658else
29659 echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662{ { echo "$as_me:$LINENO: error: no
29663See \`config.log' for more details." >&5
29664echo "$as_me: error: no
29665See \`config.log' for more details." >&2;}
29666 { (exit 1); exit 1; }; }
29667
29668fi
29669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29670
29671fi
29672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29673 ac_ext=c
29674ac_cpp='$CPP $CPPFLAGS'
29675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29677ac_compiler_gnu=$ac_cv_c_compiler_gnu
29678
29679fi
29680
a848cd7e 29681if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29682 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29683 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29684
a848cd7e 29685 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29686
29687 # Extract the first word of "Rez", so it can be a program name with args.
29688set dummy Rez; ac_word=$2
29689echo "$as_me:$LINENO: checking for $ac_word" >&5
29690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29691if test "${ac_cv_prog_RESCOMP+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29693else
29694 if test -n "$RESCOMP"; then
29695 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29696else
29697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29698for as_dir in $PATH
29699do
29700 IFS=$as_save_IFS
29701 test -z "$as_dir" && as_dir=.
29702 for ac_exec_ext in '' $ac_executable_extensions; do
29703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29704 ac_cv_prog_RESCOMP="Rez"
29705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29706 break 2
29707 fi
29708done
29709done
29710
29711 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29712fi
29713fi
29714RESCOMP=$ac_cv_prog_RESCOMP
29715if test -n "$RESCOMP"; then
29716 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29717echo "${ECHO_T}$RESCOMP" >&6
29718else
29719 echo "$as_me:$LINENO: result: no" >&5
29720echo "${ECHO_T}no" >&6
29721fi
29722
29723 # Extract the first word of "DeRez", so it can be a program name with args.
29724set dummy DeRez; ac_word=$2
29725echo "$as_me:$LINENO: checking for $ac_word" >&5
29726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29727if test "${ac_cv_prog_DEREZ+set}" = set; then
29728 echo $ECHO_N "(cached) $ECHO_C" >&6
29729else
29730 if test -n "$DEREZ"; then
29731 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29732else
29733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29734for as_dir in $PATH
29735do
29736 IFS=$as_save_IFS
29737 test -z "$as_dir" && as_dir=.
29738 for ac_exec_ext in '' $ac_executable_extensions; do
29739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29740 ac_cv_prog_DEREZ="DeRez"
29741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29742 break 2
29743 fi
29744done
29745done
29746
29747 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29748fi
29749fi
29750DEREZ=$ac_cv_prog_DEREZ
29751if test -n "$DEREZ"; then
29752 echo "$as_me:$LINENO: result: $DEREZ" >&5
29753echo "${ECHO_T}$DEREZ" >&6
29754else
29755 echo "$as_me:$LINENO: result: no" >&5
29756echo "${ECHO_T}no" >&6
29757fi
29758
29759 # Extract the first word of "SetFile", so it can be a program name with args.
29760set dummy SetFile; ac_word=$2
29761echo "$as_me:$LINENO: checking for $ac_word" >&5
29762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29763if test "${ac_cv_prog_SETFILE+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29765else
29766 if test -n "$SETFILE"; then
29767 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29768else
29769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29770for as_dir in $PATH
29771do
29772 IFS=$as_save_IFS
29773 test -z "$as_dir" && as_dir=.
29774 for ac_exec_ext in '' $ac_executable_extensions; do
29775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29776 ac_cv_prog_SETFILE="SetFile"
29777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29778 break 2
29779 fi
29780done
29781done
29782
29783 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29784fi
29785fi
29786SETFILE=$ac_cv_prog_SETFILE
29787if test -n "$SETFILE"; then
29788 echo "$as_me:$LINENO: result: $SETFILE" >&5
29789echo "${ECHO_T}$SETFILE" >&6
29790else
29791 echo "$as_me:$LINENO: result: no" >&5
29792echo "${ECHO_T}no" >&6
29793fi
29794
29795
29796 MACSETFILE="\$(SETFILE)"
29797
29798 if test "$wxUSE_MAC" = 1; then
29799 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29800
29801 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29802 else
29803 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29804 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29805 fi
29806else
ffa0583f
RL
29807 MACSETFILE="@true"
29808 MACRESWXCONFIG="@true"
a848cd7e
SC
29809
29810 if test "$wxUSE_PM" = 1; then
29811 MACRESCOMP="emxbind -ep"
29812 else
ffa0583f 29813 MACRESCOMP="@true"
a848cd7e
SC
29814 fi
29815fi
29816
29817
29818
29819echo "$as_me:$LINENO: checking for mode_t" >&5
29820echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29821if test "${ac_cv_type_mode_t+set}" = set; then
29822 echo $ECHO_N "(cached) $ECHO_C" >&6
29823else
29824 cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h. */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h. */
29830$ac_includes_default
29831int
29832main ()
29833{
29834if ((mode_t *) 0)
29835 return 0;
29836if (sizeof (mode_t))
29837 return 0;
29838 ;
29839 return 0;
29840}
29841_ACEOF
29842rm -f conftest.$ac_objext
29843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29844 (eval $ac_compile) 2>conftest.er1
a848cd7e 29845 ac_status=$?
ac1cb8d3
VS
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
a848cd7e
SC
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
9dd0f6c2 29851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; }; then
29863 ac_cv_type_mode_t=yes
29864else
29865 echo "$as_me: failed program was:" >&5
29866sed 's/^/| /' conftest.$ac_ext >&5
29867
29868ac_cv_type_mode_t=no
29869fi
ac1cb8d3 29870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29871fi
29872echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29873echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29874if test $ac_cv_type_mode_t = yes; then
29875 :
29876else
29877
29878cat >>confdefs.h <<_ACEOF
29879#define mode_t int
29880_ACEOF
29881
29882fi
29883
29884echo "$as_me:$LINENO: checking for off_t" >&5
29885echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29886if test "${ac_cv_type_off_t+set}" = set; then
29887 echo $ECHO_N "(cached) $ECHO_C" >&6
29888else
29889 cat >conftest.$ac_ext <<_ACEOF
29890/* confdefs.h. */
29891_ACEOF
29892cat confdefs.h >>conftest.$ac_ext
29893cat >>conftest.$ac_ext <<_ACEOF
29894/* end confdefs.h. */
29895$ac_includes_default
29896int
29897main ()
29898{
29899if ((off_t *) 0)
29900 return 0;
29901if (sizeof (off_t))
29902 return 0;
29903 ;
29904 return 0;
29905}
29906_ACEOF
29907rm -f conftest.$ac_objext
29908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29909 (eval $ac_compile) 2>conftest.er1
a848cd7e 29910 ac_status=$?
ac1cb8d3
VS
29911 grep -v '^ *+' conftest.er1 >conftest.err
29912 rm -f conftest.er1
29913 cat conftest.err >&5
a848cd7e
SC
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); } &&
9dd0f6c2 29916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; }; then
29928 ac_cv_type_off_t=yes
29929else
29930 echo "$as_me: failed program was:" >&5
29931sed 's/^/| /' conftest.$ac_ext >&5
29932
29933ac_cv_type_off_t=no
29934fi
ac1cb8d3 29935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29936fi
29937echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29938echo "${ECHO_T}$ac_cv_type_off_t" >&6
29939if test $ac_cv_type_off_t = yes; then
29940 :
29941else
29942
29943cat >>confdefs.h <<_ACEOF
29944#define off_t long
29945_ACEOF
29946
29947fi
29948
29949echo "$as_me:$LINENO: checking for pid_t" >&5
29950echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29951if test "${ac_cv_type_pid_t+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29953else
29954 cat >conftest.$ac_ext <<_ACEOF
29955/* confdefs.h. */
29956_ACEOF
29957cat confdefs.h >>conftest.$ac_ext
29958cat >>conftest.$ac_ext <<_ACEOF
29959/* end confdefs.h. */
29960$ac_includes_default
29961int
29962main ()
29963{
29964if ((pid_t *) 0)
29965 return 0;
29966if (sizeof (pid_t))
29967 return 0;
29968 ;
29969 return 0;
29970}
29971_ACEOF
29972rm -f conftest.$ac_objext
29973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29974 (eval $ac_compile) 2>conftest.er1
a848cd7e 29975 ac_status=$?
ac1cb8d3
VS
29976 grep -v '^ *+' conftest.er1 >conftest.err
29977 rm -f conftest.er1
29978 cat conftest.err >&5
a848cd7e
SC
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } &&
9dd0f6c2 29981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; } &&
29987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989 (eval $ac_try) 2>&5
29990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29993 ac_cv_type_pid_t=yes
29994else
29995 echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
29998ac_cv_type_pid_t=no
29999fi
ac1cb8d3 30000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30001fi
30002echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30003echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30004if test $ac_cv_type_pid_t = yes; then
30005 :
30006else
30007
30008cat >>confdefs.h <<_ACEOF
30009#define pid_t int
30010_ACEOF
30011
30012fi
30013
30014echo "$as_me:$LINENO: checking for size_t" >&5
30015echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30016if test "${ac_cv_type_size_t+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30018else
30019 cat >conftest.$ac_ext <<_ACEOF
30020/* confdefs.h. */
30021_ACEOF
30022cat confdefs.h >>conftest.$ac_ext
30023cat >>conftest.$ac_ext <<_ACEOF
30024/* end confdefs.h. */
30025$ac_includes_default
30026int
30027main ()
30028{
30029if ((size_t *) 0)
30030 return 0;
30031if (sizeof (size_t))
30032 return 0;
30033 ;
30034 return 0;
30035}
30036_ACEOF
30037rm -f conftest.$ac_objext
30038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30039 (eval $ac_compile) 2>conftest.er1
a848cd7e 30040 ac_status=$?
ac1cb8d3
VS
30041 grep -v '^ *+' conftest.er1 >conftest.err
30042 rm -f conftest.er1
30043 cat conftest.err >&5
a848cd7e
SC
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } &&
9dd0f6c2 30046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 (eval $ac_try) 2>&5
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; }; then
30058 ac_cv_type_size_t=yes
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
30063ac_cv_type_size_t=no
30064fi
ac1cb8d3 30065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30066fi
30067echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30068echo "${ECHO_T}$ac_cv_type_size_t" >&6
30069if test $ac_cv_type_size_t = yes; then
30070 :
30071else
30072
30073cat >>confdefs.h <<_ACEOF
30074#define size_t unsigned
30075_ACEOF
30076
30077fi
30078
30079echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30080echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30081if test "${ac_cv_type_uid_t+set}" = set; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30083else
30084 cat >conftest.$ac_ext <<_ACEOF
30085/* confdefs.h. */
30086_ACEOF
30087cat confdefs.h >>conftest.$ac_ext
30088cat >>conftest.$ac_ext <<_ACEOF
30089/* end confdefs.h. */
30090#include <sys/types.h>
30091
30092_ACEOF
30093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30094 $EGREP "uid_t" >/dev/null 2>&1; then
30095 ac_cv_type_uid_t=yes
30096else
30097 ac_cv_type_uid_t=no
30098fi
30099rm -f conftest*
30100
30101fi
30102echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30103echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30104if test $ac_cv_type_uid_t = no; then
30105
30106cat >>confdefs.h <<\_ACEOF
30107#define uid_t int
30108_ACEOF
30109
30110
30111cat >>confdefs.h <<\_ACEOF
30112#define gid_t int
30113_ACEOF
30114
30115fi
30116
30117
d51253e8
RL
30118echo "$as_me:$LINENO: checking for ssize_t" >&5
30119echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30120if test "${ac_cv_type_ssize_t+set}" = set; then
30121 echo $ECHO_N "(cached) $ECHO_C" >&6
30122else
30123 cat >conftest.$ac_ext <<_ACEOF
30124/* confdefs.h. */
30125_ACEOF
30126cat confdefs.h >>conftest.$ac_ext
30127cat >>conftest.$ac_ext <<_ACEOF
30128/* end confdefs.h. */
30129$ac_includes_default
30130int
30131main ()
30132{
30133if ((ssize_t *) 0)
30134 return 0;
30135if (sizeof (ssize_t))
30136 return 0;
30137 ;
30138 return 0;
30139}
30140_ACEOF
30141rm -f conftest.$ac_objext
30142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30143 (eval $ac_compile) 2>conftest.er1
30144 ac_status=$?
30145 grep -v '^ *+' conftest.er1 >conftest.err
30146 rm -f conftest.er1
30147 cat conftest.err >&5
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); } &&
9dd0f6c2 30150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30152 (eval $ac_try) 2>&5
30153 ac_status=$?
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; } &&
30156 { ac_try='test -s conftest.$ac_objext'
30157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30158 (eval $ac_try) 2>&5
30159 ac_status=$?
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; }; then
30162 ac_cv_type_ssize_t=yes
30163else
30164 echo "$as_me: failed program was:" >&5
30165sed 's/^/| /' conftest.$ac_ext >&5
30166
30167ac_cv_type_ssize_t=no
30168fi
30169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30170fi
30171echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30172echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30173if test $ac_cv_type_ssize_t = yes; then
30174
30175cat >>confdefs.h <<_ACEOF
30176#define HAVE_SSIZE_T 1
30177_ACEOF
30178
30179
30180fi
30181
30182
a848cd7e
SC
30183
30184
30185ac_ext=cc
30186ac_cpp='$CXXCPP $CPPFLAGS'
30187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30190
30191echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30192echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30193if test "${wx_cv_size_t_is_uint+set}" = set; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30195else
30196
30197 cat >conftest.$ac_ext <<_ACEOF
30198/* confdefs.h. */
30199_ACEOF
30200cat confdefs.h >>conftest.$ac_ext
30201cat >>conftest.$ac_ext <<_ACEOF
30202/* end confdefs.h. */
30203#include <stddef.h>
30204int
30205main ()
30206{
30207
30208 return 0; }
30209
30210 struct Foo { void foo(size_t); void foo(unsigned int); };
30211
30212 int bar() {
30213
30214 ;
30215 return 0;
30216}
30217_ACEOF
30218rm -f conftest.$ac_objext
30219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30220 (eval $ac_compile) 2>conftest.er1
a848cd7e 30221 ac_status=$?
ac1cb8d3
VS
30222 grep -v '^ *+' conftest.er1 >conftest.err
30223 rm -f conftest.er1
30224 cat conftest.err >&5
a848cd7e
SC
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); } &&
9dd0f6c2 30227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229 (eval $ac_try) 2>&5
30230 ac_status=$?
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; } &&
30233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235 (eval $ac_try) 2>&5
30236 ac_status=$?
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); }; }; then
30239 wx_cv_size_t_is_uint=no
30240else
30241 echo "$as_me: failed program was:" >&5
30242sed 's/^/| /' conftest.$ac_ext >&5
30243
30244wx_cv_size_t_is_uint=yes
30245
30246fi
ac1cb8d3 30247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30248
30249
30250fi
30251echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30252echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30253
30254if test "$wx_cv_size_t_is_uint" = "yes"; then
30255 cat >>confdefs.h <<\_ACEOF
30256#define wxSIZE_T_IS_UINT 1
30257_ACEOF
30258
30259else
30260 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30261echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30262if test "${wx_cv_size_t_is_ulong+set}" = set; then
30263 echo $ECHO_N "(cached) $ECHO_C" >&6
30264else
30265 cat >conftest.$ac_ext <<_ACEOF
30266/* confdefs.h. */
30267_ACEOF
30268cat confdefs.h >>conftest.$ac_ext
30269cat >>conftest.$ac_ext <<_ACEOF
30270/* end confdefs.h. */
30271#include <stddef.h>
30272int
30273main ()
30274{
30275
30276 return 0; }
30277
30278 struct Foo { void foo(size_t); void foo(unsigned long); };
30279
30280 int bar() {
30281
30282 ;
30283 return 0;
30284}
30285_ACEOF
30286rm -f conftest.$ac_objext
30287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30288 (eval $ac_compile) 2>conftest.er1
a848cd7e 30289 ac_status=$?
ac1cb8d3
VS
30290 grep -v '^ *+' conftest.er1 >conftest.err
30291 rm -f conftest.er1
30292 cat conftest.err >&5
a848cd7e
SC
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); } &&
9dd0f6c2 30295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30297 (eval $ac_try) 2>&5
30298 ac_status=$?
30299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300 (exit $ac_status); }; } &&
30301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30303 (eval $ac_try) 2>&5
30304 ac_status=$?
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; }; then
30307 wx_cv_size_t_is_ulong=no
30308else
30309 echo "$as_me: failed program was:" >&5
30310sed 's/^/| /' conftest.$ac_ext >&5
30311
30312wx_cv_size_t_is_ulong=yes
30313
30314fi
ac1cb8d3 30315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30316
30317fi
30318echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30319echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30320
30321 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30322 cat >>confdefs.h <<\_ACEOF
30323#define wxSIZE_T_IS_ULONG 1
30324_ACEOF
30325
30326 fi
30327fi
30328
30329ac_ext=c
30330ac_cpp='$CPP $CPPFLAGS'
30331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333ac_compiler_gnu=$ac_cv_c_compiler_gnu
30334
30335
30336
30337echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30338echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30339if test "${wx_cv_struct_pw_gecos+set}" = set; then
30340 echo $ECHO_N "(cached) $ECHO_C" >&6
30341else
30342
30343 cat >conftest.$ac_ext <<_ACEOF
30344/* confdefs.h. */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h. */
30349#include <pwd.h>
30350int
30351main ()
30352{
30353
30354 char *p;
30355 struct passwd *pw;
30356 p = pw->pw_gecos;
30357
30358 ;
30359 return 0;
30360}
30361_ACEOF
30362rm -f conftest.$ac_objext
30363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30364 (eval $ac_compile) 2>conftest.er1
a848cd7e 30365 ac_status=$?
ac1cb8d3
VS
30366 grep -v '^ *+' conftest.er1 >conftest.err
30367 rm -f conftest.er1
30368 cat conftest.err >&5
a848cd7e
SC
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } &&
9dd0f6c2 30371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30373 (eval $ac_try) 2>&5
30374 ac_status=$?
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; } &&
30377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30379 (eval $ac_try) 2>&5
30380 ac_status=$?
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; }; then
30383
30384 wx_cv_struct_pw_gecos=yes
30385
30386else
30387 echo "$as_me: failed program was:" >&5
30388sed 's/^/| /' conftest.$ac_ext >&5
30389
30390
30391 wx_cv_struct_pw_gecos=no
30392
30393
30394fi
ac1cb8d3 30395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30396
30397
30398fi
30399echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30400echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30401
30402if test "$wx_cv_struct_pw_gecos" = "yes"; then
30403 cat >>confdefs.h <<\_ACEOF
30404#define HAVE_PW_GECOS 1
30405_ACEOF
30406
30407fi
30408
30409
238ecede 30410if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30411 cat >>confdefs.h <<\_ACEOF
30412#define wxUSE_WCHAR_T 1
30413_ACEOF
30414
30415
30416 WCSLEN_FOUND=0
30417 WCHAR_LINK=
30418
30419for ac_func in wcslen
30420do
30421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30422echo "$as_me:$LINENO: checking for $ac_func" >&5
30423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30424if eval "test \"\${$as_ac_var+set}\" = set"; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30426else
30427 cat >conftest.$ac_ext <<_ACEOF
30428/* confdefs.h. */
30429_ACEOF
30430cat confdefs.h >>conftest.$ac_ext
30431cat >>conftest.$ac_ext <<_ACEOF
30432/* end confdefs.h. */
ac1cb8d3
VS
30433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30435#define $ac_func innocuous_$ac_func
30436
a848cd7e
SC
30437/* System header to define __stub macros and hopefully few prototypes,
30438 which can conflict with char $ac_func (); below.
30439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30440 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30441
a848cd7e
SC
30442#ifdef __STDC__
30443# include <limits.h>
30444#else
30445# include <assert.h>
30446#endif
ac1cb8d3
VS
30447
30448#undef $ac_func
30449
a848cd7e
SC
30450/* Override any gcc2 internal prototype to avoid an error. */
30451#ifdef __cplusplus
30452extern "C"
30453{
30454#endif
30455/* We use char because int might match the return type of a gcc2
30456 builtin and then its argument prototype would still apply. */
30457char $ac_func ();
30458/* The GNU C library defines this for functions which it implements
30459 to always fail with ENOSYS. Some functions are actually named
30460 something starting with __ and the normal name is an alias. */
30461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30462choke me
30463#else
30464char (*f) () = $ac_func;
30465#endif
30466#ifdef __cplusplus
30467}
30468#endif
30469
30470int
30471main ()
30472{
30473return f != $ac_func;
30474 ;
30475 return 0;
30476}
30477_ACEOF
30478rm -f conftest.$ac_objext conftest$ac_exeext
30479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30480 (eval $ac_link) 2>conftest.er1
a848cd7e 30481 ac_status=$?
ac1cb8d3
VS
30482 grep -v '^ *+' conftest.er1 >conftest.err
30483 rm -f conftest.er1
30484 cat conftest.err >&5
a848cd7e
SC
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); } &&
9dd0f6c2 30487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30490 ac_status=$?
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; } &&
30493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495 (eval $ac_try) 2>&5
30496 ac_status=$?
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; }; then
30499 eval "$as_ac_var=yes"
30500else
30501 echo "$as_me: failed program was:" >&5
30502sed 's/^/| /' conftest.$ac_ext >&5
30503
30504eval "$as_ac_var=no"
30505fi
ac1cb8d3
VS
30506rm -f conftest.err conftest.$ac_objext \
30507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30508fi
30509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30511if test `eval echo '${'$as_ac_var'}'` = yes; then
30512 cat >>confdefs.h <<_ACEOF
30513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30514_ACEOF
30515 WCSLEN_FOUND=1
30516fi
30517done
30518
30519
30520 if test "$WCSLEN_FOUND" = 0; then
30521 if test "$TOOLKIT" = "MSW"; then
30522 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30523echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30524if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30525 echo $ECHO_N "(cached) $ECHO_C" >&6
30526else
30527 ac_check_lib_save_LIBS=$LIBS
30528LIBS="-lmsvcrt $LIBS"
30529cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h. */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h. */
30535
30536/* Override any gcc2 internal prototype to avoid an error. */
30537#ifdef __cplusplus
30538extern "C"
30539#endif
30540/* We use char because int might match the return type of a gcc2
30541 builtin and then its argument prototype would still apply. */
30542char wcslen ();
30543int
30544main ()
30545{
30546wcslen ();
30547 ;
30548 return 0;
30549}
30550_ACEOF
30551rm -f conftest.$ac_objext conftest$ac_exeext
30552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30553 (eval $ac_link) 2>conftest.er1
a848cd7e 30554 ac_status=$?
ac1cb8d3
VS
30555 grep -v '^ *+' conftest.er1 >conftest.err
30556 rm -f conftest.er1
30557 cat conftest.err >&5
a848cd7e
SC
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); } &&
9dd0f6c2 30560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; } &&
30566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30568 (eval $ac_try) 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
30572 ac_cv_lib_msvcrt_wcslen=yes
30573else
30574 echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
30577ac_cv_lib_msvcrt_wcslen=no
30578fi
ac1cb8d3
VS
30579rm -f conftest.err conftest.$ac_objext \
30580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30581LIBS=$ac_check_lib_save_LIBS
30582fi
30583echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30584echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30585if test $ac_cv_lib_msvcrt_wcslen = yes; then
30586 WCHAR_OK=1
30587fi
30588
30589 else
30590 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30591echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30592if test "${ac_cv_lib_w_wcslen+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 ac_check_lib_save_LIBS=$LIBS
30596LIBS="-lw $LIBS"
30597cat >conftest.$ac_ext <<_ACEOF
30598/* confdefs.h. */
30599_ACEOF
30600cat confdefs.h >>conftest.$ac_ext
30601cat >>conftest.$ac_ext <<_ACEOF
30602/* end confdefs.h. */
30603
30604/* Override any gcc2 internal prototype to avoid an error. */
30605#ifdef __cplusplus
30606extern "C"
30607#endif
30608/* We use char because int might match the return type of a gcc2
30609 builtin and then its argument prototype would still apply. */
30610char wcslen ();
30611int
30612main ()
30613{
30614wcslen ();
30615 ;
30616 return 0;
30617}
30618_ACEOF
30619rm -f conftest.$ac_objext conftest$ac_exeext
30620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30621 (eval $ac_link) 2>conftest.er1
a848cd7e 30622 ac_status=$?
ac1cb8d3
VS
30623 grep -v '^ *+' conftest.er1 >conftest.err
30624 rm -f conftest.er1
30625 cat conftest.err >&5
a848cd7e
SC
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } &&
9dd0f6c2 30628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30631 ac_status=$?
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; } &&
30634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30636 (eval $ac_try) 2>&5
30637 ac_status=$?
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; }; then
30640 ac_cv_lib_w_wcslen=yes
30641else
30642 echo "$as_me: failed program was:" >&5
30643sed 's/^/| /' conftest.$ac_ext >&5
30644
30645ac_cv_lib_w_wcslen=no
30646fi
ac1cb8d3
VS
30647rm -f conftest.err conftest.$ac_objext \
30648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30649LIBS=$ac_check_lib_save_LIBS
30650fi
30651echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30652echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30653if test $ac_cv_lib_w_wcslen = yes; then
30654
30655 WCHAR_LINK=" -lw"
30656 WCSLEN_FOUND=1
30657
30658fi
30659
30660 fi
30661 fi
30662
30663 if test "$WCSLEN_FOUND" = 1; then
30664 cat >>confdefs.h <<\_ACEOF
30665#define HAVE_WCSLEN 1
30666_ACEOF
30667
30668 fi
30669
81f90336 30670 if test "$USE_HPUX" = 1; then
473276a9
VS
30671 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30672 fi
30673
a848cd7e
SC
30674
30675for ac_func in wcsrtombs
30676do
30677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30678echo "$as_me:$LINENO: checking for $ac_func" >&5
30679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30680if eval "test \"\${$as_ac_var+set}\" = set"; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30682else
30683 cat >conftest.$ac_ext <<_ACEOF
30684/* confdefs.h. */
30685_ACEOF
30686cat confdefs.h >>conftest.$ac_ext
30687cat >>conftest.$ac_ext <<_ACEOF
30688/* end confdefs.h. */
ac1cb8d3
VS
30689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30691#define $ac_func innocuous_$ac_func
30692
a848cd7e
SC
30693/* System header to define __stub macros and hopefully few prototypes,
30694 which can conflict with char $ac_func (); below.
30695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30696 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30697
a848cd7e
SC
30698#ifdef __STDC__
30699# include <limits.h>
30700#else
30701# include <assert.h>
30702#endif
ac1cb8d3
VS
30703
30704#undef $ac_func
30705
a848cd7e
SC
30706/* Override any gcc2 internal prototype to avoid an error. */
30707#ifdef __cplusplus
30708extern "C"
30709{
30710#endif
30711/* We use char because int might match the return type of a gcc2
30712 builtin and then its argument prototype would still apply. */
30713char $ac_func ();
30714/* The GNU C library defines this for functions which it implements
30715 to always fail with ENOSYS. Some functions are actually named
30716 something starting with __ and the normal name is an alias. */
30717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30718choke me
30719#else
30720char (*f) () = $ac_func;
30721#endif
30722#ifdef __cplusplus
30723}
30724#endif
30725
30726int
30727main ()
30728{
30729return f != $ac_func;
30730 ;
30731 return 0;
30732}
30733_ACEOF
30734rm -f conftest.$ac_objext conftest$ac_exeext
30735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30736 (eval $ac_link) 2>conftest.er1
a848cd7e 30737 ac_status=$?
ac1cb8d3
VS
30738 grep -v '^ *+' conftest.er1 >conftest.err
30739 rm -f conftest.er1
30740 cat conftest.err >&5
a848cd7e
SC
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } &&
9dd0f6c2 30743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; } &&
30749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30752 ac_status=$?
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30755 eval "$as_ac_var=yes"
30756else
30757 echo "$as_me: failed program was:" >&5
30758sed 's/^/| /' conftest.$ac_ext >&5
30759
30760eval "$as_ac_var=no"
30761fi
ac1cb8d3
VS
30762rm -f conftest.err conftest.$ac_objext \
30763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30764fi
30765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30767if test `eval echo '${'$as_ac_var'}'` = yes; then
30768 cat >>confdefs.h <<_ACEOF
30769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770_ACEOF
30771
30772fi
30773done
30774
30775else
30776 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30777echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30778fi
30779
30780
30781
30782ac_ext=cc
30783ac_cpp='$CXXCPP $CPPFLAGS'
30784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30787
30788
30789
30790for ac_func in vsnprintf
30791do
30792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30793echo "$as_me:$LINENO: checking for $ac_func" >&5
30794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30795if eval "test \"\${$as_ac_var+set}\" = set"; then
30796 echo $ECHO_N "(cached) $ECHO_C" >&6
30797else
30798 cat >conftest.$ac_ext <<_ACEOF
30799/* confdefs.h. */
30800_ACEOF
30801cat confdefs.h >>conftest.$ac_ext
30802cat >>conftest.$ac_ext <<_ACEOF
30803/* end confdefs.h. */
ac1cb8d3
VS
30804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30806#define $ac_func innocuous_$ac_func
30807
a848cd7e
SC
30808/* System header to define __stub macros and hopefully few prototypes,
30809 which can conflict with char $ac_func (); below.
30810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30811 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30812
a848cd7e
SC
30813#ifdef __STDC__
30814# include <limits.h>
30815#else
30816# include <assert.h>
30817#endif
ac1cb8d3
VS
30818
30819#undef $ac_func
30820
a848cd7e
SC
30821/* Override any gcc2 internal prototype to avoid an error. */
30822#ifdef __cplusplus
30823extern "C"
30824{
30825#endif
30826/* We use char because int might match the return type of a gcc2
30827 builtin and then its argument prototype would still apply. */
30828char $ac_func ();
30829/* The GNU C library defines this for functions which it implements
30830 to always fail with ENOSYS. Some functions are actually named
30831 something starting with __ and the normal name is an alias. */
30832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30833choke me
30834#else
30835char (*f) () = $ac_func;
30836#endif
30837#ifdef __cplusplus
30838}
30839#endif
30840
30841int
30842main ()
30843{
30844return f != $ac_func;
30845 ;
30846 return 0;
30847}
30848_ACEOF
30849rm -f conftest.$ac_objext conftest$ac_exeext
30850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30851 (eval $ac_link) 2>conftest.er1
a848cd7e 30852 ac_status=$?
ac1cb8d3
VS
30853 grep -v '^ *+' conftest.er1 >conftest.err
30854 rm -f conftest.er1
30855 cat conftest.err >&5
a848cd7e
SC
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } &&
9dd0f6c2 30858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30860 (eval $ac_try) 2>&5
30861 ac_status=$?
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; } &&
30864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866 (eval $ac_try) 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
30870 eval "$as_ac_var=yes"
30871else
30872 echo "$as_me: failed program was:" >&5
30873sed 's/^/| /' conftest.$ac_ext >&5
30874
30875eval "$as_ac_var=no"
30876fi
ac1cb8d3
VS
30877rm -f conftest.err conftest.$ac_objext \
30878 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30879fi
30880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30882if test `eval echo '${'$as_ac_var'}'` = yes; then
30883 cat >>confdefs.h <<_ACEOF
30884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30885_ACEOF
30886
30887fi
30888done
30889
30890
30891if test "$ac_cv_func_vsnprintf" = "yes"; then
30892 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30893echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30894if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30895 echo $ECHO_N "(cached) $ECHO_C" >&6
30896else
30897
30898 cat >conftest.$ac_ext <<_ACEOF
30899/* confdefs.h. */
30900_ACEOF
30901cat confdefs.h >>conftest.$ac_ext
30902cat >>conftest.$ac_ext <<_ACEOF
30903/* end confdefs.h. */
30904
30905 #include <stdio.h>
30906 #include <stdarg.h>
30907
30908int
30909main ()
30910{
30911
30912 char *buf;
30913 va_list ap;
30914 vsnprintf(buf, 10u, "%s", ap);
30915
30916 ;
30917 return 0;
30918}
30919_ACEOF
30920rm -f conftest.$ac_objext
30921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30922 (eval $ac_compile) 2>conftest.er1
a848cd7e 30923 ac_status=$?
ac1cb8d3
VS
30924 grep -v '^ *+' conftest.er1 >conftest.err
30925 rm -f conftest.er1
30926 cat conftest.err >&5
a848cd7e
SC
30927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928 (exit $ac_status); } &&
9dd0f6c2 30929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30931 (eval $ac_try) 2>&5
30932 ac_status=$?
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); }; } &&
30935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937 (eval $ac_try) 2>&5
30938 ac_status=$?
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; }; then
30941 wx_cv_func_vsnprintf_decl=yes
30942else
30943 echo "$as_me: failed program was:" >&5
30944sed 's/^/| /' conftest.$ac_ext >&5
30945
c122b164
DE
30946
30947 cat >conftest.$ac_ext <<_ACEOF
30948/* confdefs.h. */
30949_ACEOF
30950cat confdefs.h >>conftest.$ac_ext
30951cat >>conftest.$ac_ext <<_ACEOF
30952/* end confdefs.h. */
30953
30954 #include <stdio.h>
30955 #include <stdarg.h>
30956 using namespace std;
30957
30958int
30959main ()
30960{
30961
30962 char *buf;
30963 va_list ap;
30964 vsnprintf(buf, 10u, "%s", ap);
30965
30966 ;
30967 return 0;
30968}
30969_ACEOF
30970rm -f conftest.$ac_objext
30971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30972 (eval $ac_compile) 2>conftest.er1
30973 ac_status=$?
30974 grep -v '^ *+' conftest.er1 >conftest.err
30975 rm -f conftest.er1
30976 cat conftest.err >&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); } &&
9dd0f6c2 30979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; } &&
30985 { ac_try='test -s conftest.$ac_objext'
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 wx_cv_func_vsnprintf_decl=yes
30992else
30993 echo "$as_me: failed program was:" >&5
30994sed 's/^/| /' conftest.$ac_ext >&5
30995
a848cd7e
SC
30996wx_cv_func_vsnprintf_decl=no
30997
30998fi
ac1cb8d3 30999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31000
31001
c122b164
DE
31002fi
31003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31004
31005
a848cd7e
SC
31006fi
31007echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31008echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31009
31010 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31011 cat >>confdefs.h <<\_ACEOF
31012#define HAVE_VSNPRINTF_DECL 1
31013_ACEOF
31014
31015 fi
31016fi
31017
31018if test "$wxUSE_UNICODE" = yes; then
31019
31020
31021
fbe47c7b
VS
31022
31023
31024
31025for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31026do
31027as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31028echo "$as_me:$LINENO: checking for $ac_func" >&5
31029echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31030if eval "test \"\${$as_ac_var+set}\" = set"; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31032else
31033 cat >conftest.$ac_ext <<_ACEOF
31034/* confdefs.h. */
31035_ACEOF
31036cat confdefs.h >>conftest.$ac_ext
31037cat >>conftest.$ac_ext <<_ACEOF
31038/* end confdefs.h. */
ac1cb8d3
VS
31039/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31041#define $ac_func innocuous_$ac_func
31042
a848cd7e
SC
31043/* System header to define __stub macros and hopefully few prototypes,
31044 which can conflict with char $ac_func (); below.
31045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31046 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31047
a848cd7e
SC
31048#ifdef __STDC__
31049# include <limits.h>
31050#else
31051# include <assert.h>
31052#endif
ac1cb8d3
VS
31053
31054#undef $ac_func
31055
a848cd7e
SC
31056/* Override any gcc2 internal prototype to avoid an error. */
31057#ifdef __cplusplus
31058extern "C"
31059{
31060#endif
31061/* We use char because int might match the return type of a gcc2
31062 builtin and then its argument prototype would still apply. */
31063char $ac_func ();
31064/* The GNU C library defines this for functions which it implements
31065 to always fail with ENOSYS. Some functions are actually named
31066 something starting with __ and the normal name is an alias. */
31067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31068choke me
31069#else
31070char (*f) () = $ac_func;
31071#endif
31072#ifdef __cplusplus
31073}
31074#endif
31075
31076int
31077main ()
31078{
31079return f != $ac_func;
31080 ;
31081 return 0;
31082}
31083_ACEOF
31084rm -f conftest.$ac_objext conftest$ac_exeext
31085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31086 (eval $ac_link) 2>conftest.er1
a848cd7e 31087 ac_status=$?
ac1cb8d3
VS
31088 grep -v '^ *+' conftest.er1 >conftest.err
31089 rm -f conftest.er1
31090 cat conftest.err >&5
a848cd7e
SC
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } &&
9dd0f6c2 31093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31096 ac_status=$?
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; } &&
31099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31101 (eval $ac_try) 2>&5
31102 ac_status=$?
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; }; then
31105 eval "$as_ac_var=yes"
31106else
31107 echo "$as_me: failed program was:" >&5
31108sed 's/^/| /' conftest.$ac_ext >&5
31109
31110eval "$as_ac_var=no"
31111fi
ac1cb8d3
VS
31112rm -f conftest.err conftest.$ac_objext \
31113 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31114fi
31115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31116echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31117if test `eval echo '${'$as_ac_var'}'` = yes; then
31118 cat >>confdefs.h <<_ACEOF
31119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31120_ACEOF
31121
31122fi
31123done
31124
31125
31126 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31127echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31128 cat >conftest.$ac_ext <<_ACEOF
31129/* confdefs.h. */
31130_ACEOF
31131cat confdefs.h >>conftest.$ac_ext
31132cat >>conftest.$ac_ext <<_ACEOF
31133/* end confdefs.h. */
31134#include <wchar.h>
31135int
31136main ()
31137{
31138&_vsnwprintf;
31139 ;
31140 return 0;
31141}
31142_ACEOF
31143rm -f conftest.$ac_objext
31144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31145 (eval $ac_compile) 2>conftest.er1
a848cd7e 31146 ac_status=$?
ac1cb8d3
VS
31147 grep -v '^ *+' conftest.er1 >conftest.err
31148 rm -f conftest.er1
31149 cat conftest.err >&5
a848cd7e
SC
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); } &&
9dd0f6c2 31152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; } &&
31158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31160 (eval $ac_try) 2>&5
31161 ac_status=$?
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); }; }; then
31164 echo "$as_me:$LINENO: result: yes" >&5
31165echo "${ECHO_T}yes" >&6
31166 cat >>confdefs.h <<\_ACEOF
31167#define HAVE__VSNWPRINTF 1
31168_ACEOF
31169
31170else
31171 echo "$as_me: failed program was:" >&5
31172sed 's/^/| /' conftest.$ac_ext >&5
31173
31174echo "$as_me:$LINENO: result: no" >&5
31175echo "${ECHO_T}no" >&6
31176fi
ac1cb8d3 31177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31178fi
31179
31180ac_ext=c
31181ac_cpp='$CPP $CPPFLAGS'
31182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31184ac_compiler_gnu=$ac_cv_c_compiler_gnu
31185
31186
31187
31188
31189if test "$TOOLKIT" != "MSW"; then
31190
31191
31192
31193
31194ac_ext=cc
31195ac_cpp='$CXXCPP $CPPFLAGS'
31196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31199
31200
31201
31202
31203# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31204if test "${with_libiconv_prefix+set}" = set; then
31205 withval="$with_libiconv_prefix"
31206
31207 for dir in `echo "$withval" | tr : ' '`; do
31208 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31209 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31210 done
31211
31212fi;
31213
31214 echo "$as_me:$LINENO: checking for iconv" >&5
31215echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31216if test "${am_cv_func_iconv+set}" = set; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31218else
31219
31220 am_cv_func_iconv="no, consider installing GNU libiconv"
31221 am_cv_lib_iconv=no
31222 cat >conftest.$ac_ext <<_ACEOF
31223/* confdefs.h. */
31224_ACEOF
31225cat confdefs.h >>conftest.$ac_ext
31226cat >>conftest.$ac_ext <<_ACEOF
31227/* end confdefs.h. */
31228#include <stdlib.h>
31229#include <iconv.h>
31230int
31231main ()
31232{
31233iconv_t cd = iconv_open("","");
31234 iconv(cd,NULL,NULL,NULL,NULL);
31235 iconv_close(cd);
31236 ;
31237 return 0;
31238}
31239_ACEOF
31240rm -f conftest.$ac_objext conftest$ac_exeext
31241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31242 (eval $ac_link) 2>conftest.er1
a848cd7e 31243 ac_status=$?
ac1cb8d3
VS
31244 grep -v '^ *+' conftest.er1 >conftest.err
31245 rm -f conftest.er1
31246 cat conftest.err >&5
a848cd7e
SC
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); } &&
9dd0f6c2 31249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31251 (eval $ac_try) 2>&5
31252 ac_status=$?
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; } &&
31255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31257 (eval $ac_try) 2>&5
31258 ac_status=$?
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); }; }; then
31261 am_cv_func_iconv=yes
31262else
31263 echo "$as_me: failed program was:" >&5
31264sed 's/^/| /' conftest.$ac_ext >&5
31265
31266fi
ac1cb8d3
VS
31267rm -f conftest.err conftest.$ac_objext \
31268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31269 if test "$am_cv_func_iconv" != yes; then
31270 am_save_LIBS="$LIBS"
31271 LIBS="$LIBS -liconv"
31272 cat >conftest.$ac_ext <<_ACEOF
31273/* confdefs.h. */
31274_ACEOF
31275cat confdefs.h >>conftest.$ac_ext
31276cat >>conftest.$ac_ext <<_ACEOF
31277/* end confdefs.h. */
31278#include <stdlib.h>
31279#include <iconv.h>
31280int
31281main ()
31282{
31283iconv_t cd = iconv_open("","");
31284 iconv(cd,NULL,NULL,NULL,NULL);
31285 iconv_close(cd);
31286 ;
31287 return 0;
31288}
31289_ACEOF
31290rm -f conftest.$ac_objext conftest$ac_exeext
31291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31292 (eval $ac_link) 2>conftest.er1
a848cd7e 31293 ac_status=$?
ac1cb8d3
VS
31294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
a848cd7e
SC
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
9dd0f6c2 31299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301 (eval $ac_try) 2>&5
31302 ac_status=$?
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; } &&
31305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31307 (eval $ac_try) 2>&5
31308 ac_status=$?
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); }; }; then
31311 am_cv_lib_iconv=yes
31312 am_cv_func_iconv=yes
31313else
31314 echo "$as_me: failed program was:" >&5
31315sed 's/^/| /' conftest.$ac_ext >&5
31316
31317fi
ac1cb8d3
VS
31318rm -f conftest.err conftest.$ac_objext \
31319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31320 LIBS="$am_save_LIBS"
31321 fi
31322
31323fi
31324echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31325echo "${ECHO_T}$am_cv_func_iconv" >&6
31326 if test "$am_cv_func_iconv" = yes; then
31327
31328cat >>confdefs.h <<\_ACEOF
31329#define HAVE_ICONV 1
31330_ACEOF
31331
31332 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31333echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31334if test "${wx_cv_func_iconv_const+set}" = set; then
31335 echo $ECHO_N "(cached) $ECHO_C" >&6
31336else
31337 cat >conftest.$ac_ext <<_ACEOF
31338/* confdefs.h. */
31339_ACEOF
31340cat confdefs.h >>conftest.$ac_ext
31341cat >>conftest.$ac_ext <<_ACEOF
31342/* end confdefs.h. */
31343
31344#include <stdlib.h>
31345#include <iconv.h>
31346extern
31347#ifdef __cplusplus
31348"C"
31349#endif
31350#if defined(__STDC__) || defined(__cplusplus)
31351size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31352#else
31353size_t iconv();
31354#endif
31355
31356int
31357main ()
31358{
31359
31360 ;
31361 return 0;
31362}
31363_ACEOF
31364rm -f conftest.$ac_objext
31365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31366 (eval $ac_compile) 2>conftest.er1
a848cd7e 31367 ac_status=$?
ac1cb8d3
VS
31368 grep -v '^ *+' conftest.er1 >conftest.err
31369 rm -f conftest.er1
31370 cat conftest.err >&5
a848cd7e
SC
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } &&
9dd0f6c2 31373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375 (eval $ac_try) 2>&5
31376 ac_status=$?
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; } &&
31379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31381 (eval $ac_try) 2>&5
31382 ac_status=$?
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384 (exit $ac_status); }; }; then
31385 wx_cv_func_iconv_const="no"
31386else
31387 echo "$as_me: failed program was:" >&5
31388sed 's/^/| /' conftest.$ac_ext >&5
31389
31390wx_cv_func_iconv_const="yes"
31391
31392fi
ac1cb8d3 31393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31394
31395fi
31396echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31397echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31398
31399 iconv_const=
31400 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31401 iconv_const="const"
31402 fi
31403
31404
31405cat >>confdefs.h <<_ACEOF
31406#define ICONV_CONST $iconv_const
31407_ACEOF
31408
31409 fi
31410 LIBICONV=
31411 if test "$am_cv_lib_iconv" = yes; then
31412 LIBICONV="-liconv"
31413 fi
31414
31415
31416LIBS="$LIBICONV $LIBS"
31417ac_ext=c
31418ac_cpp='$CPP $CPPFLAGS'
31419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31421ac_compiler_gnu=$ac_cv_c_compiler_gnu
31422
31423
31424if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31425
31426for ac_func in sigaction
31427do
31428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31429echo "$as_me:$LINENO: checking for $ac_func" >&5
31430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31431if eval "test \"\${$as_ac_var+set}\" = set"; then
31432 echo $ECHO_N "(cached) $ECHO_C" >&6
31433else
31434 cat >conftest.$ac_ext <<_ACEOF
31435/* confdefs.h. */
31436_ACEOF
31437cat confdefs.h >>conftest.$ac_ext
31438cat >>conftest.$ac_ext <<_ACEOF
31439/* end confdefs.h. */
ac1cb8d3
VS
31440/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31442#define $ac_func innocuous_$ac_func
31443
a848cd7e
SC
31444/* System header to define __stub macros and hopefully few prototypes,
31445 which can conflict with char $ac_func (); below.
31446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31447 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31448
a848cd7e
SC
31449#ifdef __STDC__
31450# include <limits.h>
31451#else
31452# include <assert.h>
31453#endif
ac1cb8d3
VS
31454
31455#undef $ac_func
31456
a848cd7e
SC
31457/* Override any gcc2 internal prototype to avoid an error. */
31458#ifdef __cplusplus
31459extern "C"
31460{
31461#endif
31462/* We use char because int might match the return type of a gcc2
31463 builtin and then its argument prototype would still apply. */
31464char $ac_func ();
31465/* The GNU C library defines this for functions which it implements
31466 to always fail with ENOSYS. Some functions are actually named
31467 something starting with __ and the normal name is an alias. */
31468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31469choke me
31470#else
31471char (*f) () = $ac_func;
31472#endif
31473#ifdef __cplusplus
31474}
31475#endif
31476
31477int
31478main ()
31479{
31480return f != $ac_func;
31481 ;
31482 return 0;
31483}
31484_ACEOF
31485rm -f conftest.$ac_objext conftest$ac_exeext
31486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31487 (eval $ac_link) 2>conftest.er1
a848cd7e 31488 ac_status=$?
ac1cb8d3
VS
31489 grep -v '^ *+' conftest.er1 >conftest.err
31490 rm -f conftest.er1
31491 cat conftest.err >&5
a848cd7e
SC
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); } &&
9dd0f6c2 31494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31496 (eval $ac_try) 2>&5
31497 ac_status=$?
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); }; } &&
31500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502 (eval $ac_try) 2>&5
31503 ac_status=$?
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; }; then
31506 eval "$as_ac_var=yes"
31507else
31508 echo "$as_me: failed program was:" >&5
31509sed 's/^/| /' conftest.$ac_ext >&5
31510
31511eval "$as_ac_var=no"
31512fi
ac1cb8d3
VS
31513rm -f conftest.err conftest.$ac_objext \
31514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31515fi
31516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31518if test `eval echo '${'$as_ac_var'}'` = yes; then
31519 cat >>confdefs.h <<_ACEOF
31520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31521_ACEOF
31522
31523fi
31524done
31525
31526
31527 if test "$ac_cv_func_sigaction" = "no"; then
31528 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31529echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31530 wxUSE_ON_FATAL_EXCEPTION=no
31531 fi
31532
31533 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31534
31535
31536 ac_ext=cc
31537ac_cpp='$CXXCPP $CPPFLAGS'
31538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31541
31542
31543 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31544echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31545if test "${wx_cv_type_sa_handler+set}" = set; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31547else
31548
31549 cat >conftest.$ac_ext <<_ACEOF
31550/* confdefs.h. */
31551_ACEOF
31552cat confdefs.h >>conftest.$ac_ext
31553cat >>conftest.$ac_ext <<_ACEOF
31554/* end confdefs.h. */
31555#include <signal.h>
31556int
31557main ()
31558{
31559
31560 extern void testSigHandler(int);
31561
31562 struct sigaction sa;
31563 sa.sa_handler = testSigHandler;
31564
31565 ;
31566 return 0;
31567}
31568_ACEOF
31569rm -f conftest.$ac_objext
31570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31571 (eval $ac_compile) 2>conftest.er1
a848cd7e 31572 ac_status=$?
ac1cb8d3
VS
31573 grep -v '^ *+' conftest.er1 >conftest.err
31574 rm -f conftest.er1
31575 cat conftest.err >&5
a848cd7e
SC
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); } &&
9dd0f6c2 31578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31580 (eval $ac_try) 2>&5
31581 ac_status=$?
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; } &&
31584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31586 (eval $ac_try) 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; }; then
31590
31591 wx_cv_type_sa_handler=int
31592
31593else
31594 echo "$as_me: failed program was:" >&5
31595sed 's/^/| /' conftest.$ac_ext >&5
31596
31597
31598 wx_cv_type_sa_handler=void
31599
31600fi
ac1cb8d3 31601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31602
31603fi
31604echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31605echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31606
31607 ac_ext=c
31608ac_cpp='$CPP $CPPFLAGS'
31609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31611ac_compiler_gnu=$ac_cv_c_compiler_gnu
31612
31613
31614 cat >>confdefs.h <<_ACEOF
31615#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31616_ACEOF
31617
31618 fi
31619fi
31620
eaff0f0d
VZ
31621if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31622
31623
31624 ac_ext=cc
31625ac_cpp='$CXXCPP $CPPFLAGS'
31626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31629
31630
31631 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31632echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31633if test "${wx_cv_func_backtrace+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635else
31636
31637 cat >conftest.$ac_ext <<_ACEOF
31638/* confdefs.h. */
31639_ACEOF
31640cat confdefs.h >>conftest.$ac_ext
31641cat >>conftest.$ac_ext <<_ACEOF
31642/* end confdefs.h. */
31643#include <execinfo.h>
31644int
31645main ()
31646{
31647
31648 void *trace[1];
31649 char **messages;
31650
31651 backtrace(trace, 1);
31652 messages = backtrace_symbols(trace, 1);
31653
31654 ;
31655 return 0;
31656}
31657_ACEOF
31658rm -f conftest.$ac_objext
31659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31660 (eval $ac_compile) 2>conftest.er1
31661 ac_status=$?
31662 grep -v '^ *+' conftest.er1 >conftest.err
31663 rm -f conftest.er1
31664 cat conftest.err >&5
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); } &&
9dd0f6c2 31667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31670 ac_status=$?
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; } &&
31673 { ac_try='test -s conftest.$ac_objext'
31674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675 (eval $ac_try) 2>&5
31676 ac_status=$?
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; }; then
31679 wx_cv_func_backtrace=yes
31680else
31681 echo "$as_me: failed program was:" >&5
31682sed 's/^/| /' conftest.$ac_ext >&5
31683
31684wx_cv_func_backtrace=no
31685
31686fi
31687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31688
31689
31690fi
31691echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31692echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31693
31694
31695 if test "$wx_cv_func_backtrace" = "no"; then
31696 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31697echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31698 wxUSE_STACKWALKER=no
31699 else
31700 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31701echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31702if test "${wx_cv_func_cxa_demangle+set}" = set; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31704else
31705
31706 cat >conftest.$ac_ext <<_ACEOF
31707/* confdefs.h. */
31708_ACEOF
31709cat confdefs.h >>conftest.$ac_ext
31710cat >>conftest.$ac_ext <<_ACEOF
31711/* end confdefs.h. */
31712#include <cxxabi.h>
31713int
31714main ()
31715{
31716
31717 int rc;
31718 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31719
31720 ;
31721 return 0;
31722}
31723_ACEOF
dfe0c803
JS
31724rm -f conftest.$ac_objext conftest$ac_exeext
31725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31726 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31727 ac_status=$?
31728 grep -v '^ *+' conftest.er1 >conftest.err
31729 rm -f conftest.er1
31730 cat conftest.err >&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); } &&
9dd0f6c2 31733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31735 (eval $ac_try) 2>&5
31736 ac_status=$?
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); }; } &&
dfe0c803 31739 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31741 (eval $ac_try) 2>&5
31742 ac_status=$?
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; }; then
31745 wx_cv_func_cxa_demangle=yes
31746else
31747 echo "$as_me: failed program was:" >&5
31748sed 's/^/| /' conftest.$ac_ext >&5
31749
31750wx_cv_func_cxa_demangle=no
31751
31752fi
dfe0c803
JS
31753rm -f conftest.err conftest.$ac_objext \
31754 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31755
31756
31757fi
31758echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31759echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31760
31761 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31762 cat >>confdefs.h <<\_ACEOF
31763#define HAVE_CXA_DEMANGLE 1
31764_ACEOF
31765
31766 fi
31767 fi
31768
31769 ac_ext=c
31770ac_cpp='$CPP $CPPFLAGS'
31771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31773ac_compiler_gnu=$ac_cv_c_compiler_gnu
31774
31775fi
31776
898beab1
DE
31777if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31778 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31779echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31780 wxUSE_STACKWALKER=no
31781fi
31782
31783
a848cd7e
SC
31784
31785
31786for ac_func in mkstemp mktemp
31787do
31788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31789echo "$as_me:$LINENO: checking for $ac_func" >&5
31790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31791if eval "test \"\${$as_ac_var+set}\" = set"; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793else
31794 cat >conftest.$ac_ext <<_ACEOF
31795/* confdefs.h. */
31796_ACEOF
31797cat confdefs.h >>conftest.$ac_ext
31798cat >>conftest.$ac_ext <<_ACEOF
31799/* end confdefs.h. */
ac1cb8d3
VS
31800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31802#define $ac_func innocuous_$ac_func
31803
a848cd7e
SC
31804/* System header to define __stub macros and hopefully few prototypes,
31805 which can conflict with char $ac_func (); below.
31806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31807 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31808
a848cd7e
SC
31809#ifdef __STDC__
31810# include <limits.h>
31811#else
31812# include <assert.h>
31813#endif
ac1cb8d3
VS
31814
31815#undef $ac_func
31816
a848cd7e
SC
31817/* Override any gcc2 internal prototype to avoid an error. */
31818#ifdef __cplusplus
31819extern "C"
31820{
31821#endif
31822/* We use char because int might match the return type of a gcc2
31823 builtin and then its argument prototype would still apply. */
31824char $ac_func ();
31825/* The GNU C library defines this for functions which it implements
31826 to always fail with ENOSYS. Some functions are actually named
31827 something starting with __ and the normal name is an alias. */
31828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31829choke me
31830#else
31831char (*f) () = $ac_func;
31832#endif
31833#ifdef __cplusplus
31834}
31835#endif
31836
31837int
31838main ()
31839{
31840return f != $ac_func;
31841 ;
31842 return 0;
31843}
31844_ACEOF
31845rm -f conftest.$ac_objext conftest$ac_exeext
31846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31847 (eval $ac_link) 2>conftest.er1
a848cd7e 31848 ac_status=$?
ac1cb8d3
VS
31849 grep -v '^ *+' conftest.er1 >conftest.err
31850 rm -f conftest.er1
31851 cat conftest.err >&5
a848cd7e
SC
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); } &&
9dd0f6c2 31854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31856 (eval $ac_try) 2>&5
31857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; } &&
31860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31862 (eval $ac_try) 2>&5
31863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; }; then
31866 eval "$as_ac_var=yes"
31867else
31868 echo "$as_me: failed program was:" >&5
31869sed 's/^/| /' conftest.$ac_ext >&5
31870
31871eval "$as_ac_var=no"
31872fi
ac1cb8d3
VS
31873rm -f conftest.err conftest.$ac_objext \
31874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31875fi
31876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31878if test `eval echo '${'$as_ac_var'}'` = yes; then
31879 cat >>confdefs.h <<_ACEOF
31880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31881_ACEOF
31882 break
31883fi
31884done
31885
31886
31887echo "$as_me:$LINENO: checking for statfs" >&5
31888echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31889if test "${wx_cv_func_statfs+set}" = set; then
31890 echo $ECHO_N "(cached) $ECHO_C" >&6
31891else
31892 cat >conftest.$ac_ext <<_ACEOF
31893/* confdefs.h. */
31894_ACEOF
31895cat confdefs.h >>conftest.$ac_ext
31896cat >>conftest.$ac_ext <<_ACEOF
31897/* end confdefs.h. */
31898
31899 #if defined(__BSD__)
31900 #include <sys/param.h>
31901 #include <sys/mount.h>
31902 #else
31903 #include <sys/vfs.h>
31904 #endif
31905
31906int
31907main ()
31908{
31909
31910 long l;
31911 struct statfs fs;
31912 statfs("/", &fs);
31913 l = fs.f_bsize;
31914 l += fs.f_blocks;
31915 l += fs.f_bavail;
31916
31917 ;
31918 return 0;
31919}
31920_ACEOF
31921rm -f conftest.$ac_objext
31922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31923 (eval $ac_compile) 2>conftest.er1
a848cd7e 31924 ac_status=$?
ac1cb8d3
VS
31925 grep -v '^ *+' conftest.er1 >conftest.err
31926 rm -f conftest.er1
31927 cat conftest.err >&5
a848cd7e
SC
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); } &&
9dd0f6c2 31930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31932 (eval $ac_try) 2>&5
31933 ac_status=$?
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); }; } &&
31936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
31942
31943 wx_cv_func_statfs=yes
31944
31945else
31946 echo "$as_me: failed program was:" >&5
31947sed 's/^/| /' conftest.$ac_ext >&5
31948
31949
31950 wx_cv_func_statfs=no
31951
31952
31953fi
ac1cb8d3 31954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31955
31956fi
31957echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31958echo "${ECHO_T}$wx_cv_func_statfs" >&6
31959
31960if test "$wx_cv_func_statfs" = "yes"; then
31961 wx_cv_type_statvfs_t="struct statfs"
31962 cat >>confdefs.h <<\_ACEOF
31963#define HAVE_STATFS 1
31964_ACEOF
31965
31966else
31967 echo "$as_me:$LINENO: checking for statvfs" >&5
31968echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31969if test "${wx_cv_func_statvfs+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31971else
31972 cat >conftest.$ac_ext <<_ACEOF
31973/* confdefs.h. */
31974_ACEOF
31975cat confdefs.h >>conftest.$ac_ext
31976cat >>conftest.$ac_ext <<_ACEOF
31977/* end confdefs.h. */
31978
31979 #include <stddef.h>
31980 #include <sys/statvfs.h>
31981
31982int
31983main ()
31984{
31985
31986 statvfs("/", NULL);
31987
31988 ;
31989 return 0;
31990}
31991_ACEOF
31992rm -f conftest.$ac_objext
31993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31994 (eval $ac_compile) 2>conftest.er1
a848cd7e 31995 ac_status=$?
ac1cb8d3
VS
31996 grep -v '^ *+' conftest.er1 >conftest.err
31997 rm -f conftest.er1
31998 cat conftest.err >&5
a848cd7e
SC
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); } &&
9dd0f6c2 32001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32004 ac_status=$?
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; } &&
32007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32009 (eval $ac_try) 2>&5
32010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; }; then
32013 wx_cv_func_statvfs=yes
32014else
32015 echo "$as_me: failed program was:" >&5
32016sed 's/^/| /' conftest.$ac_ext >&5
32017
32018wx_cv_func_statvfs=no
32019
32020fi
ac1cb8d3 32021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32022
32023fi
32024echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32025echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32026
32027 if test "$wx_cv_func_statvfs" = "yes"; then
32028
32029
32030 ac_ext=cc
32031ac_cpp='$CXXCPP $CPPFLAGS'
32032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32035
32036
32037 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32038echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32039if test "${wx_cv_type_statvfs_t+set}" = set; then
32040 echo $ECHO_N "(cached) $ECHO_C" >&6
32041else
32042 cat >conftest.$ac_ext <<_ACEOF
32043/* confdefs.h. */
32044_ACEOF
32045cat confdefs.h >>conftest.$ac_ext
32046cat >>conftest.$ac_ext <<_ACEOF
32047/* end confdefs.h. */
32048
32049 #include <sys/statvfs.h>
32050
32051int
32052main ()
32053{
32054
32055 long l;
32056 statvfs_t fs;
32057 statvfs("/", &fs);
32058 l = fs.f_bsize;
32059 l += fs.f_blocks;
32060 l += fs.f_bavail;
32061
32062 ;
32063 return 0;
32064}
32065_ACEOF
32066rm -f conftest.$ac_objext
32067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32068 (eval $ac_compile) 2>conftest.er1
a848cd7e 32069 ac_status=$?
ac1cb8d3
VS
32070 grep -v '^ *+' conftest.er1 >conftest.err
32071 rm -f conftest.er1
32072 cat conftest.err >&5
a848cd7e
SC
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); } &&
9dd0f6c2 32075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32077 (eval $ac_try) 2>&5
32078 ac_status=$?
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; } &&
32081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32083 (eval $ac_try) 2>&5
32084 ac_status=$?
32085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086 (exit $ac_status); }; }; then
32087 wx_cv_type_statvfs_t=statvfs_t
32088else
32089 echo "$as_me: failed program was:" >&5
32090sed 's/^/| /' conftest.$ac_ext >&5
32091
32092
32093 cat >conftest.$ac_ext <<_ACEOF
32094/* confdefs.h. */
32095_ACEOF
32096cat confdefs.h >>conftest.$ac_ext
32097cat >>conftest.$ac_ext <<_ACEOF
32098/* end confdefs.h. */
32099
32100 #include <sys/statvfs.h>
32101
32102int
32103main ()
32104{
32105
32106 long l;
32107 struct statvfs fs;
32108 statvfs("/", &fs);
32109 l = fs.f_bsize;
32110 l += fs.f_blocks;
32111 l += fs.f_bavail;
32112
32113 ;
32114 return 0;
32115}
32116_ACEOF
32117rm -f conftest.$ac_objext
32118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32119 (eval $ac_compile) 2>conftest.er1
a848cd7e 32120 ac_status=$?
ac1cb8d3
VS
32121 grep -v '^ *+' conftest.er1 >conftest.err
32122 rm -f conftest.er1
32123 cat conftest.err >&5
a848cd7e
SC
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } &&
9dd0f6c2 32126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; } &&
32132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32134 (eval $ac_try) 2>&5
32135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); }; }; then
32138 wx_cv_type_statvfs_t="struct statvfs"
32139else
32140 echo "$as_me: failed program was:" >&5
32141sed 's/^/| /' conftest.$ac_ext >&5
32142
32143wx_cv_type_statvfs_t="unknown"
32144
32145fi
ac1cb8d3 32146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32147
32148
32149fi
ac1cb8d3 32150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32151
32152fi
32153echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32154echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32155
32156 ac_ext=c
32157ac_cpp='$CPP $CPPFLAGS'
32158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32160ac_compiler_gnu=$ac_cv_c_compiler_gnu
32161
32162
32163 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32164 cat >>confdefs.h <<\_ACEOF
32165#define HAVE_STATVFS 1
32166_ACEOF
32167
32168 fi
32169 else
32170 wx_cv_type_statvfs_t="unknown"
32171 fi
32172fi
32173
32174if test "$wx_cv_type_statvfs_t" != "unknown"; then
32175 cat >>confdefs.h <<_ACEOF
32176#define WX_STATFS_T $wx_cv_type_statvfs_t
32177_ACEOF
32178
32179else
32180 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32181echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32182fi
32183
32184if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32185
32186
32187for ac_func in fcntl flock
32188do
32189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32190echo "$as_me:$LINENO: checking for $ac_func" >&5
32191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32192if eval "test \"\${$as_ac_var+set}\" = set"; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32194else
32195 cat >conftest.$ac_ext <<_ACEOF
32196/* confdefs.h. */
32197_ACEOF
32198cat confdefs.h >>conftest.$ac_ext
32199cat >>conftest.$ac_ext <<_ACEOF
32200/* end confdefs.h. */
ac1cb8d3
VS
32201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32203#define $ac_func innocuous_$ac_func
32204
a848cd7e
SC
32205/* System header to define __stub macros and hopefully few prototypes,
32206 which can conflict with char $ac_func (); below.
32207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32208 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32209
a848cd7e
SC
32210#ifdef __STDC__
32211# include <limits.h>
32212#else
32213# include <assert.h>
32214#endif
ac1cb8d3
VS
32215
32216#undef $ac_func
32217
a848cd7e
SC
32218/* Override any gcc2 internal prototype to avoid an error. */
32219#ifdef __cplusplus
32220extern "C"
32221{
32222#endif
32223/* We use char because int might match the return type of a gcc2
32224 builtin and then its argument prototype would still apply. */
32225char $ac_func ();
32226/* The GNU C library defines this for functions which it implements
32227 to always fail with ENOSYS. Some functions are actually named
32228 something starting with __ and the normal name is an alias. */
32229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32230choke me
32231#else
32232char (*f) () = $ac_func;
32233#endif
32234#ifdef __cplusplus
32235}
32236#endif
32237
32238int
32239main ()
32240{
32241return f != $ac_func;
32242 ;
32243 return 0;
32244}
32245_ACEOF
32246rm -f conftest.$ac_objext conftest$ac_exeext
32247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32248 (eval $ac_link) 2>conftest.er1
a848cd7e 32249 ac_status=$?
ac1cb8d3
VS
32250 grep -v '^ *+' conftest.er1 >conftest.err
32251 rm -f conftest.er1
32252 cat conftest.err >&5
a848cd7e
SC
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } &&
9dd0f6c2 32255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32257 (eval $ac_try) 2>&5
32258 ac_status=$?
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; } &&
32261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32263 (eval $ac_try) 2>&5
32264 ac_status=$?
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); }; }; then
32267 eval "$as_ac_var=yes"
32268else
32269 echo "$as_me: failed program was:" >&5
32270sed 's/^/| /' conftest.$ac_ext >&5
32271
32272eval "$as_ac_var=no"
32273fi
ac1cb8d3
VS
32274rm -f conftest.err conftest.$ac_objext \
32275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32276fi
32277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32279if test `eval echo '${'$as_ac_var'}'` = yes; then
32280 cat >>confdefs.h <<_ACEOF
32281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32282_ACEOF
32283 break
32284fi
32285done
32286
32287
32288 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32289 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32290echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32291 wxUSE_SNGLINST_CHECKER=no
32292 fi
32293fi
32294
32295
32296for ac_func in timegm
32297do
32298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32299echo "$as_me:$LINENO: checking for $ac_func" >&5
32300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32301if eval "test \"\${$as_ac_var+set}\" = set"; then
32302 echo $ECHO_N "(cached) $ECHO_C" >&6
32303else
32304 cat >conftest.$ac_ext <<_ACEOF
32305/* confdefs.h. */
32306_ACEOF
32307cat confdefs.h >>conftest.$ac_ext
32308cat >>conftest.$ac_ext <<_ACEOF
32309/* end confdefs.h. */
ac1cb8d3
VS
32310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32312#define $ac_func innocuous_$ac_func
32313
a848cd7e
SC
32314/* System header to define __stub macros and hopefully few prototypes,
32315 which can conflict with char $ac_func (); below.
32316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32318
a848cd7e
SC
32319#ifdef __STDC__
32320# include <limits.h>
32321#else
32322# include <assert.h>
32323#endif
ac1cb8d3
VS
32324
32325#undef $ac_func
32326
a848cd7e
SC
32327/* Override any gcc2 internal prototype to avoid an error. */
32328#ifdef __cplusplus
32329extern "C"
32330{
32331#endif
32332/* We use char because int might match the return type of a gcc2
32333 builtin and then its argument prototype would still apply. */
32334char $ac_func ();
32335/* The GNU C library defines this for functions which it implements
32336 to always fail with ENOSYS. Some functions are actually named
32337 something starting with __ and the normal name is an alias. */
32338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32339choke me
32340#else
32341char (*f) () = $ac_func;
32342#endif
32343#ifdef __cplusplus
32344}
32345#endif
32346
32347int
32348main ()
32349{
32350return f != $ac_func;
32351 ;
32352 return 0;
32353}
32354_ACEOF
32355rm -f conftest.$ac_objext conftest$ac_exeext
32356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32357 (eval $ac_link) 2>conftest.er1
a848cd7e 32358 ac_status=$?
ac1cb8d3
VS
32359 grep -v '^ *+' conftest.er1 >conftest.err
32360 rm -f conftest.er1
32361 cat conftest.err >&5
a848cd7e
SC
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); } &&
9dd0f6c2 32364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32366 (eval $ac_try) 2>&5
32367 ac_status=$?
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; } &&
32370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32372 (eval $ac_try) 2>&5
32373 ac_status=$?
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); }; }; then
32376 eval "$as_ac_var=yes"
32377else
32378 echo "$as_me: failed program was:" >&5
32379sed 's/^/| /' conftest.$ac_ext >&5
32380
32381eval "$as_ac_var=no"
32382fi
ac1cb8d3
VS
32383rm -f conftest.err conftest.$ac_objext \
32384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32385fi
32386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32388if test `eval echo '${'$as_ac_var'}'` = yes; then
32389 cat >>confdefs.h <<_ACEOF
32390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32391_ACEOF
32392
32393fi
32394done
32395
32396
32397
32398
32399for ac_func in putenv setenv
32400do
32401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32402echo "$as_me:$LINENO: checking for $ac_func" >&5
32403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32404if eval "test \"\${$as_ac_var+set}\" = set"; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32406else
32407 cat >conftest.$ac_ext <<_ACEOF
32408/* confdefs.h. */
32409_ACEOF
32410cat confdefs.h >>conftest.$ac_ext
32411cat >>conftest.$ac_ext <<_ACEOF
32412/* end confdefs.h. */
ac1cb8d3
VS
32413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32415#define $ac_func innocuous_$ac_func
32416
a848cd7e
SC
32417/* System header to define __stub macros and hopefully few prototypes,
32418 which can conflict with char $ac_func (); below.
32419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32421
a848cd7e
SC
32422#ifdef __STDC__
32423# include <limits.h>
32424#else
32425# include <assert.h>
32426#endif
ac1cb8d3
VS
32427
32428#undef $ac_func
32429
a848cd7e
SC
32430/* Override any gcc2 internal prototype to avoid an error. */
32431#ifdef __cplusplus
32432extern "C"
32433{
32434#endif
32435/* We use char because int might match the return type of a gcc2
32436 builtin and then its argument prototype would still apply. */
32437char $ac_func ();
32438/* The GNU C library defines this for functions which it implements
32439 to always fail with ENOSYS. Some functions are actually named
32440 something starting with __ and the normal name is an alias. */
32441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32442choke me
32443#else
32444char (*f) () = $ac_func;
32445#endif
32446#ifdef __cplusplus
32447}
32448#endif
32449
32450int
32451main ()
32452{
32453return f != $ac_func;
32454 ;
32455 return 0;
32456}
32457_ACEOF
32458rm -f conftest.$ac_objext conftest$ac_exeext
32459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32460 (eval $ac_link) 2>conftest.er1
a848cd7e 32461 ac_status=$?
ac1cb8d3
VS
32462 grep -v '^ *+' conftest.er1 >conftest.err
32463 rm -f conftest.er1
32464 cat conftest.err >&5
a848cd7e
SC
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); } &&
9dd0f6c2 32467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32469 (eval $ac_try) 2>&5
32470 ac_status=$?
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; } &&
32473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475 (eval $ac_try) 2>&5
32476 ac_status=$?
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; }; then
32479 eval "$as_ac_var=yes"
32480else
32481 echo "$as_me: failed program was:" >&5
32482sed 's/^/| /' conftest.$ac_ext >&5
32483
32484eval "$as_ac_var=no"
32485fi
ac1cb8d3
VS
32486rm -f conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32488fi
32489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32491if test `eval echo '${'$as_ac_var'}'` = yes; then
32492 cat >>confdefs.h <<_ACEOF
32493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32494_ACEOF
32495 break
32496fi
32497done
32498
32499
32500HAVE_SOME_SLEEP_FUNC=0
32501if test "$USE_BEOS" = 1; then
32502 cat >>confdefs.h <<\_ACEOF
32503#define HAVE_SLEEP 1
32504_ACEOF
32505
32506 HAVE_SOME_SLEEP_FUNC=1
32507fi
32508
32509if test "$USE_DARWIN" = 1; then
32510 cat >>confdefs.h <<\_ACEOF
32511#define HAVE_USLEEP 1
32512_ACEOF
32513
32514 HAVE_SOME_SLEEP_FUNC=1
32515fi
32516
32517if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32518 POSIX4_LINK=
32519
32520for ac_func in nanosleep
32521do
32522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32523echo "$as_me:$LINENO: checking for $ac_func" >&5
32524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32525if eval "test \"\${$as_ac_var+set}\" = set"; then
32526 echo $ECHO_N "(cached) $ECHO_C" >&6
32527else
32528 cat >conftest.$ac_ext <<_ACEOF
32529/* confdefs.h. */
32530_ACEOF
32531cat confdefs.h >>conftest.$ac_ext
32532cat >>conftest.$ac_ext <<_ACEOF
32533/* end confdefs.h. */
ac1cb8d3
VS
32534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32536#define $ac_func innocuous_$ac_func
32537
a848cd7e
SC
32538/* System header to define __stub macros and hopefully few prototypes,
32539 which can conflict with char $ac_func (); below.
32540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32541 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32542
a848cd7e
SC
32543#ifdef __STDC__
32544# include <limits.h>
32545#else
32546# include <assert.h>
32547#endif
ac1cb8d3
VS
32548
32549#undef $ac_func
32550
a848cd7e
SC
32551/* Override any gcc2 internal prototype to avoid an error. */
32552#ifdef __cplusplus
32553extern "C"
32554{
32555#endif
32556/* We use char because int might match the return type of a gcc2
32557 builtin and then its argument prototype would still apply. */
32558char $ac_func ();
32559/* The GNU C library defines this for functions which it implements
32560 to always fail with ENOSYS. Some functions are actually named
32561 something starting with __ and the normal name is an alias. */
32562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32563choke me
32564#else
32565char (*f) () = $ac_func;
32566#endif
32567#ifdef __cplusplus
32568}
32569#endif
32570
32571int
32572main ()
32573{
32574return f != $ac_func;
32575 ;
32576 return 0;
32577}
32578_ACEOF
32579rm -f conftest.$ac_objext conftest$ac_exeext
32580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32581 (eval $ac_link) 2>conftest.er1
a848cd7e 32582 ac_status=$?
ac1cb8d3
VS
32583 grep -v '^ *+' conftest.er1 >conftest.err
32584 rm -f conftest.er1
32585 cat conftest.err >&5
a848cd7e
SC
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); } &&
9dd0f6c2 32588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590 (eval $ac_try) 2>&5
32591 ac_status=$?
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; } &&
32594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596 (eval $ac_try) 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; }; then
32600 eval "$as_ac_var=yes"
32601else
32602 echo "$as_me: failed program was:" >&5
32603sed 's/^/| /' conftest.$ac_ext >&5
32604
32605eval "$as_ac_var=no"
32606fi
ac1cb8d3
VS
32607rm -f conftest.err conftest.$ac_objext \
32608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32609fi
32610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32612if test `eval echo '${'$as_ac_var'}'` = yes; then
32613 cat >>confdefs.h <<_ACEOF
32614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32615_ACEOF
32616 cat >>confdefs.h <<\_ACEOF
32617#define HAVE_NANOSLEEP 1
32618_ACEOF
32619
32620else
32621
32622 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32623echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32624if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32625 echo $ECHO_N "(cached) $ECHO_C" >&6
32626else
32627 ac_check_lib_save_LIBS=$LIBS
32628LIBS="-lposix4 $LIBS"
32629cat >conftest.$ac_ext <<_ACEOF
32630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
32635
32636/* Override any gcc2 internal prototype to avoid an error. */
32637#ifdef __cplusplus
32638extern "C"
32639#endif
32640/* We use char because int might match the return type of a gcc2
32641 builtin and then its argument prototype would still apply. */
32642char nanosleep ();
32643int
32644main ()
32645{
32646nanosleep ();
32647 ;
32648 return 0;
32649}
32650_ACEOF
32651rm -f conftest.$ac_objext conftest$ac_exeext
32652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32653 (eval $ac_link) 2>conftest.er1
a848cd7e 32654 ac_status=$?
ac1cb8d3
VS
32655 grep -v '^ *+' conftest.er1 >conftest.err
32656 rm -f conftest.er1
32657 cat conftest.err >&5
a848cd7e
SC
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } &&
9dd0f6c2 32660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32663 ac_status=$?
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; } &&
32666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32669 ac_status=$?
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; }; then
32672 ac_cv_lib_posix4_nanosleep=yes
32673else
32674 echo "$as_me: failed program was:" >&5
32675sed 's/^/| /' conftest.$ac_ext >&5
32676
32677ac_cv_lib_posix4_nanosleep=no
32678fi
ac1cb8d3
VS
32679rm -f conftest.err conftest.$ac_objext \
32680 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32681LIBS=$ac_check_lib_save_LIBS
32682fi
32683echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32684echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32685if test $ac_cv_lib_posix4_nanosleep = yes; then
32686
32687 cat >>confdefs.h <<\_ACEOF
32688#define HAVE_NANOSLEEP 1
32689_ACEOF
32690
32691 POSIX4_LINK=" -lposix4"
32692
32693else
32694
32695
32696for ac_func in usleep
32697do
32698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32699echo "$as_me:$LINENO: checking for $ac_func" >&5
32700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32701if eval "test \"\${$as_ac_var+set}\" = set"; then
32702 echo $ECHO_N "(cached) $ECHO_C" >&6
32703else
32704 cat >conftest.$ac_ext <<_ACEOF
32705/* confdefs.h. */
32706_ACEOF
32707cat confdefs.h >>conftest.$ac_ext
32708cat >>conftest.$ac_ext <<_ACEOF
32709/* end confdefs.h. */
ac1cb8d3
VS
32710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32712#define $ac_func innocuous_$ac_func
32713
a848cd7e
SC
32714/* System header to define __stub macros and hopefully few prototypes,
32715 which can conflict with char $ac_func (); below.
32716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32717 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32718
a848cd7e
SC
32719#ifdef __STDC__
32720# include <limits.h>
32721#else
32722# include <assert.h>
32723#endif
ac1cb8d3
VS
32724
32725#undef $ac_func
32726
a848cd7e
SC
32727/* Override any gcc2 internal prototype to avoid an error. */
32728#ifdef __cplusplus
32729extern "C"
32730{
32731#endif
32732/* We use char because int might match the return type of a gcc2
32733 builtin and then its argument prototype would still apply. */
32734char $ac_func ();
32735/* The GNU C library defines this for functions which it implements
32736 to always fail with ENOSYS. Some functions are actually named
32737 something starting with __ and the normal name is an alias. */
32738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32739choke me
32740#else
32741char (*f) () = $ac_func;
32742#endif
32743#ifdef __cplusplus
32744}
32745#endif
32746
32747int
32748main ()
32749{
32750return f != $ac_func;
32751 ;
32752 return 0;
32753}
32754_ACEOF
32755rm -f conftest.$ac_objext conftest$ac_exeext
32756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32757 (eval $ac_link) 2>conftest.er1
a848cd7e 32758 ac_status=$?
ac1cb8d3
VS
32759 grep -v '^ *+' conftest.er1 >conftest.err
32760 rm -f conftest.er1
32761 cat conftest.err >&5
a848cd7e
SC
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } &&
9dd0f6c2 32764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32766 (eval $ac_try) 2>&5
32767 ac_status=$?
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; } &&
32770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 eval "$as_ac_var=yes"
32777else
32778 echo "$as_me: failed program was:" >&5
32779sed 's/^/| /' conftest.$ac_ext >&5
32780
32781eval "$as_ac_var=no"
32782fi
ac1cb8d3
VS
32783rm -f conftest.err conftest.$ac_objext \
32784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32785fi
32786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32788if test `eval echo '${'$as_ac_var'}'` = yes; then
32789 cat >>confdefs.h <<_ACEOF
32790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32791_ACEOF
32792 cat >>confdefs.h <<\_ACEOF
32793#define HAVE_USLEEP 1
32794_ACEOF
32795
32796else
32797 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32798echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32799
32800fi
32801done
32802
32803
32804
32805fi
32806
32807
32808
32809fi
32810done
32811
32812fi
32813
32814
32815
32816for ac_func in uname gethostname
32817do
32818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32819echo "$as_me:$LINENO: checking for $ac_func" >&5
32820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32821if eval "test \"\${$as_ac_var+set}\" = set"; then
32822 echo $ECHO_N "(cached) $ECHO_C" >&6
32823else
32824 cat >conftest.$ac_ext <<_ACEOF
32825/* confdefs.h. */
32826_ACEOF
32827cat confdefs.h >>conftest.$ac_ext
32828cat >>conftest.$ac_ext <<_ACEOF
32829/* end confdefs.h. */
ac1cb8d3
VS
32830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32832#define $ac_func innocuous_$ac_func
32833
a848cd7e
SC
32834/* System header to define __stub macros and hopefully few prototypes,
32835 which can conflict with char $ac_func (); below.
32836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32838
a848cd7e
SC
32839#ifdef __STDC__
32840# include <limits.h>
32841#else
32842# include <assert.h>
32843#endif
ac1cb8d3
VS
32844
32845#undef $ac_func
32846
a848cd7e
SC
32847/* Override any gcc2 internal prototype to avoid an error. */
32848#ifdef __cplusplus
32849extern "C"
32850{
32851#endif
32852/* We use char because int might match the return type of a gcc2
32853 builtin and then its argument prototype would still apply. */
32854char $ac_func ();
32855/* The GNU C library defines this for functions which it implements
32856 to always fail with ENOSYS. Some functions are actually named
32857 something starting with __ and the normal name is an alias. */
32858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32859choke me
32860#else
32861char (*f) () = $ac_func;
32862#endif
32863#ifdef __cplusplus
32864}
32865#endif
32866
32867int
32868main ()
32869{
32870return f != $ac_func;
32871 ;
32872 return 0;
32873}
32874_ACEOF
32875rm -f conftest.$ac_objext conftest$ac_exeext
32876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32877 (eval $ac_link) 2>conftest.er1
a848cd7e 32878 ac_status=$?
ac1cb8d3
VS
32879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
a848cd7e
SC
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
9dd0f6c2 32884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886 (eval $ac_try) 2>&5
32887 ac_status=$?
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; } &&
32890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32892 (eval $ac_try) 2>&5
32893 ac_status=$?
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); }; }; then
32896 eval "$as_ac_var=yes"
32897else
32898 echo "$as_me: failed program was:" >&5
32899sed 's/^/| /' conftest.$ac_ext >&5
32900
32901eval "$as_ac_var=no"
32902fi
ac1cb8d3
VS
32903rm -f conftest.err conftest.$ac_objext \
32904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32905fi
32906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32908if test `eval echo '${'$as_ac_var'}'` = yes; then
32909 cat >>confdefs.h <<_ACEOF
32910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32911_ACEOF
32912 break
32913fi
32914done
32915
32916
32917
32918
32919ac_ext=cc
32920ac_cpp='$CXXCPP $CPPFLAGS'
32921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32924
32925
32926
32927for ac_func in strtok_r
32928do
32929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32930echo "$as_me:$LINENO: checking for $ac_func" >&5
32931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32932if eval "test \"\${$as_ac_var+set}\" = set"; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32934else
32935 cat >conftest.$ac_ext <<_ACEOF
32936/* confdefs.h. */
32937_ACEOF
32938cat confdefs.h >>conftest.$ac_ext
32939cat >>conftest.$ac_ext <<_ACEOF
32940/* end confdefs.h. */
ac1cb8d3
VS
32941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32943#define $ac_func innocuous_$ac_func
32944
a848cd7e
SC
32945/* System header to define __stub macros and hopefully few prototypes,
32946 which can conflict with char $ac_func (); below.
32947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32948 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32949
a848cd7e
SC
32950#ifdef __STDC__
32951# include <limits.h>
32952#else
32953# include <assert.h>
32954#endif
ac1cb8d3
VS
32955
32956#undef $ac_func
32957
a848cd7e
SC
32958/* Override any gcc2 internal prototype to avoid an error. */
32959#ifdef __cplusplus
32960extern "C"
32961{
32962#endif
32963/* We use char because int might match the return type of a gcc2
32964 builtin and then its argument prototype would still apply. */
32965char $ac_func ();
32966/* The GNU C library defines this for functions which it implements
32967 to always fail with ENOSYS. Some functions are actually named
32968 something starting with __ and the normal name is an alias. */
32969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32970choke me
32971#else
32972char (*f) () = $ac_func;
32973#endif
32974#ifdef __cplusplus
32975}
32976#endif
32977
32978int
32979main ()
32980{
32981return f != $ac_func;
32982 ;
32983 return 0;
32984}
32985_ACEOF
32986rm -f conftest.$ac_objext conftest$ac_exeext
32987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32988 (eval $ac_link) 2>conftest.er1
a848cd7e 32989 ac_status=$?
ac1cb8d3
VS
32990 grep -v '^ *+' conftest.er1 >conftest.err
32991 rm -f conftest.er1
32992 cat conftest.err >&5
a848cd7e
SC
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } &&
9dd0f6c2 32995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32998 ac_status=$?
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; } &&
33001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; }; then
33007 eval "$as_ac_var=yes"
33008else
33009 echo "$as_me: failed program was:" >&5
33010sed 's/^/| /' conftest.$ac_ext >&5
33011
33012eval "$as_ac_var=no"
33013fi
ac1cb8d3
VS
33014rm -f conftest.err conftest.$ac_objext \
33015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33016fi
33017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33019if test `eval echo '${'$as_ac_var'}'` = yes; then
33020 cat >>confdefs.h <<_ACEOF
33021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33022_ACEOF
33023
33024fi
33025done
33026
33027
33028ac_ext=c
33029ac_cpp='$CPP $CPPFLAGS'
33030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33032ac_compiler_gnu=$ac_cv_c_compiler_gnu
33033
33034
33035INET_LINK=
33036
33037for ac_func in inet_addr
33038do
33039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33040echo "$as_me:$LINENO: checking for $ac_func" >&5
33041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33042if eval "test \"\${$as_ac_var+set}\" = set"; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&6
33044else
33045 cat >conftest.$ac_ext <<_ACEOF
33046/* confdefs.h. */
33047_ACEOF
33048cat confdefs.h >>conftest.$ac_ext
33049cat >>conftest.$ac_ext <<_ACEOF
33050/* end confdefs.h. */
ac1cb8d3
VS
33051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33053#define $ac_func innocuous_$ac_func
33054
a848cd7e
SC
33055/* System header to define __stub macros and hopefully few prototypes,
33056 which can conflict with char $ac_func (); below.
33057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33058 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33059
a848cd7e
SC
33060#ifdef __STDC__
33061# include <limits.h>
33062#else
33063# include <assert.h>
33064#endif
ac1cb8d3
VS
33065
33066#undef $ac_func
33067
a848cd7e
SC
33068/* Override any gcc2 internal prototype to avoid an error. */
33069#ifdef __cplusplus
33070extern "C"
33071{
33072#endif
33073/* We use char because int might match the return type of a gcc2
33074 builtin and then its argument prototype would still apply. */
33075char $ac_func ();
33076/* The GNU C library defines this for functions which it implements
33077 to always fail with ENOSYS. Some functions are actually named
33078 something starting with __ and the normal name is an alias. */
33079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33080choke me
33081#else
33082char (*f) () = $ac_func;
33083#endif
33084#ifdef __cplusplus
33085}
33086#endif
33087
33088int
33089main ()
33090{
33091return f != $ac_func;
33092 ;
33093 return 0;
33094}
33095_ACEOF
33096rm -f conftest.$ac_objext conftest$ac_exeext
33097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33098 (eval $ac_link) 2>conftest.er1
a848cd7e 33099 ac_status=$?
ac1cb8d3
VS
33100 grep -v '^ *+' conftest.er1 >conftest.err
33101 rm -f conftest.er1
33102 cat conftest.err >&5
a848cd7e
SC
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); } &&
9dd0f6c2 33105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107 (eval $ac_try) 2>&5
33108 ac_status=$?
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); }; } &&
33111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; }; then
33117 eval "$as_ac_var=yes"
33118else
33119 echo "$as_me: failed program was:" >&5
33120sed 's/^/| /' conftest.$ac_ext >&5
33121
33122eval "$as_ac_var=no"
33123fi
ac1cb8d3
VS
33124rm -f conftest.err conftest.$ac_objext \
33125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33126fi
33127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33129if test `eval echo '${'$as_ac_var'}'` = yes; then
33130 cat >>confdefs.h <<_ACEOF
33131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33132_ACEOF
33133 cat >>confdefs.h <<\_ACEOF
33134#define HAVE_INET_ADDR 1
33135_ACEOF
33136
33137else
33138
33139 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33140echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33141if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33142 echo $ECHO_N "(cached) $ECHO_C" >&6
33143else
33144 ac_check_lib_save_LIBS=$LIBS
33145LIBS="-lnsl $LIBS"
33146cat >conftest.$ac_ext <<_ACEOF
33147/* confdefs.h. */
33148_ACEOF
33149cat confdefs.h >>conftest.$ac_ext
33150cat >>conftest.$ac_ext <<_ACEOF
33151/* end confdefs.h. */
33152
33153/* Override any gcc2 internal prototype to avoid an error. */
33154#ifdef __cplusplus
33155extern "C"
33156#endif
33157/* We use char because int might match the return type of a gcc2
33158 builtin and then its argument prototype would still apply. */
33159char inet_addr ();
33160int
33161main ()
33162{
33163inet_addr ();
33164 ;
33165 return 0;
33166}
33167_ACEOF
33168rm -f conftest.$ac_objext conftest$ac_exeext
33169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33170 (eval $ac_link) 2>conftest.er1
a848cd7e 33171 ac_status=$?
ac1cb8d3
VS
33172 grep -v '^ *+' conftest.er1 >conftest.err
33173 rm -f conftest.er1
33174 cat conftest.err >&5
a848cd7e
SC
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); } &&
9dd0f6c2 33177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179 (eval $ac_try) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); }; } &&
33183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185 (eval $ac_try) 2>&5
33186 ac_status=$?
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); }; }; then
33189 ac_cv_lib_nsl_inet_addr=yes
33190else
33191 echo "$as_me: failed program was:" >&5
33192sed 's/^/| /' conftest.$ac_ext >&5
33193
33194ac_cv_lib_nsl_inet_addr=no
33195fi
ac1cb8d3
VS
33196rm -f conftest.err conftest.$ac_objext \
33197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33198LIBS=$ac_check_lib_save_LIBS
33199fi
33200echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33201echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33202if test $ac_cv_lib_nsl_inet_addr = yes; then
33203 INET_LINK="nsl"
33204else
33205
33206 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33207echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33208if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33209 echo $ECHO_N "(cached) $ECHO_C" >&6
33210else
33211 ac_check_lib_save_LIBS=$LIBS
33212LIBS="-lresolv $LIBS"
33213cat >conftest.$ac_ext <<_ACEOF
33214/* confdefs.h. */
33215_ACEOF
33216cat confdefs.h >>conftest.$ac_ext
33217cat >>conftest.$ac_ext <<_ACEOF
33218/* end confdefs.h. */
33219
33220/* Override any gcc2 internal prototype to avoid an error. */
33221#ifdef __cplusplus
33222extern "C"
33223#endif
33224/* We use char because int might match the return type of a gcc2
33225 builtin and then its argument prototype would still apply. */
33226char inet_addr ();
33227int
33228main ()
33229{
33230inet_addr ();
33231 ;
33232 return 0;
33233}
33234_ACEOF
33235rm -f conftest.$ac_objext conftest$ac_exeext
33236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33237 (eval $ac_link) 2>conftest.er1
a848cd7e 33238 ac_status=$?
ac1cb8d3
VS
33239 grep -v '^ *+' conftest.er1 >conftest.err
33240 rm -f conftest.er1
33241 cat conftest.err >&5
a848cd7e
SC
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } &&
9dd0f6c2 33244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33246 (eval $ac_try) 2>&5
33247 ac_status=$?
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; } &&
33250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252 (eval $ac_try) 2>&5
33253 ac_status=$?
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); }; }; then
33256 ac_cv_lib_resolv_inet_addr=yes
33257else
33258 echo "$as_me: failed program was:" >&5
33259sed 's/^/| /' conftest.$ac_ext >&5
33260
33261ac_cv_lib_resolv_inet_addr=no
33262fi
ac1cb8d3
VS
33263rm -f conftest.err conftest.$ac_objext \
33264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33265LIBS=$ac_check_lib_save_LIBS
33266fi
33267echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33268echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33269if test $ac_cv_lib_resolv_inet_addr = yes; then
33270 INET_LINK="resolv"
33271else
33272
33273 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33274echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33275if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33277else
33278 ac_check_lib_save_LIBS=$LIBS
33279LIBS="-lsocket $LIBS"
33280cat >conftest.$ac_ext <<_ACEOF
33281/* confdefs.h. */
33282_ACEOF
33283cat confdefs.h >>conftest.$ac_ext
33284cat >>conftest.$ac_ext <<_ACEOF
33285/* end confdefs.h. */
33286
33287/* Override any gcc2 internal prototype to avoid an error. */
33288#ifdef __cplusplus
33289extern "C"
33290#endif
33291/* We use char because int might match the return type of a gcc2
33292 builtin and then its argument prototype would still apply. */
33293char inet_addr ();
33294int
33295main ()
33296{
33297inet_addr ();
33298 ;
33299 return 0;
33300}
33301_ACEOF
33302rm -f conftest.$ac_objext conftest$ac_exeext
33303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33304 (eval $ac_link) 2>conftest.er1
a848cd7e 33305 ac_status=$?
ac1cb8d3
VS
33306 grep -v '^ *+' conftest.er1 >conftest.err
33307 rm -f conftest.er1
33308 cat conftest.err >&5
a848cd7e
SC
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); } &&
9dd0f6c2 33311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313 (eval $ac_try) 2>&5
33314 ac_status=$?
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; } &&
33317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33319 (eval $ac_try) 2>&5
33320 ac_status=$?
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); }; }; then
33323 ac_cv_lib_socket_inet_addr=yes
33324else
33325 echo "$as_me: failed program was:" >&5
33326sed 's/^/| /' conftest.$ac_ext >&5
33327
33328ac_cv_lib_socket_inet_addr=no
33329fi
ac1cb8d3
VS
33330rm -f conftest.err conftest.$ac_objext \
33331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33332LIBS=$ac_check_lib_save_LIBS
33333fi
33334echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33335echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33336if test $ac_cv_lib_socket_inet_addr = yes; then
33337 INET_LINK="socket"
33338
33339fi
33340
33341
33342
33343fi
33344
33345
33346
33347fi
33348
33349
33350
33351fi
33352done
33353
33354
33355
33356for ac_func in inet_aton
33357do
33358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33359echo "$as_me:$LINENO: checking for $ac_func" >&5
33360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33361if eval "test \"\${$as_ac_var+set}\" = set"; then
33362 echo $ECHO_N "(cached) $ECHO_C" >&6
33363else
33364 cat >conftest.$ac_ext <<_ACEOF
33365/* confdefs.h. */
33366_ACEOF
33367cat confdefs.h >>conftest.$ac_ext
33368cat >>conftest.$ac_ext <<_ACEOF
33369/* end confdefs.h. */
ac1cb8d3
VS
33370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33372#define $ac_func innocuous_$ac_func
33373
a848cd7e
SC
33374/* System header to define __stub macros and hopefully few prototypes,
33375 which can conflict with char $ac_func (); below.
33376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33377 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33378
a848cd7e
SC
33379#ifdef __STDC__
33380# include <limits.h>
33381#else
33382# include <assert.h>
33383#endif
ac1cb8d3
VS
33384
33385#undef $ac_func
33386
a848cd7e
SC
33387/* Override any gcc2 internal prototype to avoid an error. */
33388#ifdef __cplusplus
33389extern "C"
33390{
33391#endif
33392/* We use char because int might match the return type of a gcc2
33393 builtin and then its argument prototype would still apply. */
33394char $ac_func ();
33395/* The GNU C library defines this for functions which it implements
33396 to always fail with ENOSYS. Some functions are actually named
33397 something starting with __ and the normal name is an alias. */
33398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33399choke me
33400#else
33401char (*f) () = $ac_func;
33402#endif
33403#ifdef __cplusplus
33404}
33405#endif
33406
33407int
33408main ()
33409{
33410return f != $ac_func;
33411 ;
33412 return 0;
33413}
33414_ACEOF
33415rm -f conftest.$ac_objext conftest$ac_exeext
33416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33417 (eval $ac_link) 2>conftest.er1
a848cd7e 33418 ac_status=$?
ac1cb8d3
VS
33419 grep -v '^ *+' conftest.er1 >conftest.err
33420 rm -f conftest.er1
33421 cat conftest.err >&5
a848cd7e
SC
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); } &&
9dd0f6c2 33424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426 (eval $ac_try) 2>&5
33427 ac_status=$?
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); }; } &&
33430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432 (eval $ac_try) 2>&5
33433 ac_status=$?
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; }; then
33436 eval "$as_ac_var=yes"
33437else
33438 echo "$as_me: failed program was:" >&5
33439sed 's/^/| /' conftest.$ac_ext >&5
33440
33441eval "$as_ac_var=no"
33442fi
ac1cb8d3
VS
33443rm -f conftest.err conftest.$ac_objext \
33444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33445fi
33446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33448if test `eval echo '${'$as_ac_var'}'` = yes; then
33449 cat >>confdefs.h <<_ACEOF
33450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33451_ACEOF
33452 cat >>confdefs.h <<\_ACEOF
33453#define HAVE_INET_ATON 1
33454_ACEOF
33455
33456else
33457
33458 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33459echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33460echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33461if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33462 echo $ECHO_N "(cached) $ECHO_C" >&6
33463else
33464 ac_check_lib_save_LIBS=$LIBS
33465LIBS="-l$INET_LINK $LIBS"
33466cat >conftest.$ac_ext <<_ACEOF
33467/* confdefs.h. */
33468_ACEOF
33469cat confdefs.h >>conftest.$ac_ext
33470cat >>conftest.$ac_ext <<_ACEOF
33471/* end confdefs.h. */
33472
33473/* Override any gcc2 internal prototype to avoid an error. */
33474#ifdef __cplusplus
33475extern "C"
33476#endif
33477/* We use char because int might match the return type of a gcc2
33478 builtin and then its argument prototype would still apply. */
33479char inet_aton ();
33480int
33481main ()
33482{
33483inet_aton ();
33484 ;
33485 return 0;
33486}
33487_ACEOF
33488rm -f conftest.$ac_objext conftest$ac_exeext
33489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33490 (eval $ac_link) 2>conftest.er1
a848cd7e 33491 ac_status=$?
ac1cb8d3
VS
33492 grep -v '^ *+' conftest.er1 >conftest.err
33493 rm -f conftest.er1
33494 cat conftest.err >&5
a848cd7e
SC
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); } &&
9dd0f6c2 33497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33499 (eval $ac_try) 2>&5
33500 ac_status=$?
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); }; } &&
33503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33505 (eval $ac_try) 2>&5
33506 ac_status=$?
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); }; }; then
33509 eval "$as_ac_Lib=yes"
33510else
33511 echo "$as_me: failed program was:" >&5
33512sed 's/^/| /' conftest.$ac_ext >&5
33513
33514eval "$as_ac_Lib=no"
33515fi
ac1cb8d3
VS
33516rm -f conftest.err conftest.$ac_objext \
33517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33518LIBS=$ac_check_lib_save_LIBS
33519fi
33520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33521echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33522if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33523 cat >>confdefs.h <<\_ACEOF
33524#define HAVE_INET_ATON 1
33525_ACEOF
33526
33527fi
33528
33529
33530fi
33531done
33532
33533
33534if test "x$INET_LINK" != "x"; then
33535 cat >>confdefs.h <<\_ACEOF
33536#define HAVE_INET_ADDR 1
33537_ACEOF
33538
33539 INET_LINK=" -l$INET_LINK"
33540fi
33541
33542fi
33543
33544
33545
33546EXTRALIBS_ESD=
33547echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33548echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33549if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33550 echo $ECHO_N "(cached) $ECHO_C" >&6
33551else
33552 ac_check_lib_save_LIBS=$LIBS
33553LIBS="-lesd $LIBS"
33554cat >conftest.$ac_ext <<_ACEOF
33555/* confdefs.h. */
33556_ACEOF
33557cat confdefs.h >>conftest.$ac_ext
33558cat >>conftest.$ac_ext <<_ACEOF
33559/* end confdefs.h. */
33560
33561/* Override any gcc2 internal prototype to avoid an error. */
33562#ifdef __cplusplus
33563extern "C"
33564#endif
33565/* We use char because int might match the return type of a gcc2
33566 builtin and then its argument prototype would still apply. */
33567char esd_close ();
33568int
33569main ()
33570{
33571esd_close ();
33572 ;
33573 return 0;
33574}
33575_ACEOF
33576rm -f conftest.$ac_objext conftest$ac_exeext
33577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33578 (eval $ac_link) 2>conftest.er1
a848cd7e 33579 ac_status=$?
ac1cb8d3
VS
33580 grep -v '^ *+' conftest.er1 >conftest.err
33581 rm -f conftest.er1
33582 cat conftest.err >&5
a848cd7e
SC
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } &&
9dd0f6c2 33585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587 (eval $ac_try) 2>&5
33588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); }; } &&
33591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33594 ac_status=$?
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; }; then
33597 ac_cv_lib_esd_esd_close=yes
33598else
33599 echo "$as_me: failed program was:" >&5
33600sed 's/^/| /' conftest.$ac_ext >&5
33601
33602ac_cv_lib_esd_esd_close=no
33603fi
ac1cb8d3
VS
33604rm -f conftest.err conftest.$ac_objext \
33605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33606LIBS=$ac_check_lib_save_LIBS
33607fi
33608echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33609echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33610if test $ac_cv_lib_esd_esd_close = yes; then
33611
33612
33613for ac_header in esd.h
33614do
33615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33616if eval "test \"\${$as_ac_Header+set}\" = set"; then
33617 echo "$as_me:$LINENO: checking for $ac_header" >&5
33618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33619if eval "test \"\${$as_ac_Header+set}\" = set"; then
33620 echo $ECHO_N "(cached) $ECHO_C" >&6
33621fi
33622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33624else
33625 # Is the header compilable?
33626echo "$as_me:$LINENO: checking $ac_header usability" >&5
33627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33628cat >conftest.$ac_ext <<_ACEOF
33629/* confdefs.h. */
33630_ACEOF
33631cat confdefs.h >>conftest.$ac_ext
33632cat >>conftest.$ac_ext <<_ACEOF
33633/* end confdefs.h. */
33634$ac_includes_default
33635#include <$ac_header>
33636_ACEOF
33637rm -f conftest.$ac_objext
33638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33639 (eval $ac_compile) 2>conftest.er1
a848cd7e 33640 ac_status=$?
ac1cb8d3
VS
33641 grep -v '^ *+' conftest.er1 >conftest.err
33642 rm -f conftest.er1
33643 cat conftest.err >&5
a848cd7e
SC
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); } &&
9dd0f6c2 33646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648 (eval $ac_try) 2>&5
33649 ac_status=$?
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; } &&
33652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654 (eval $ac_try) 2>&5
33655 ac_status=$?
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); }; }; then
33658 ac_header_compiler=yes
33659else
33660 echo "$as_me: failed program was:" >&5
33661sed 's/^/| /' conftest.$ac_ext >&5
33662
33663ac_header_compiler=no
33664fi
ac1cb8d3 33665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33667echo "${ECHO_T}$ac_header_compiler" >&6
33668
33669# Is the header present?
33670echo "$as_me:$LINENO: checking $ac_header presence" >&5
33671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33672cat >conftest.$ac_ext <<_ACEOF
33673/* confdefs.h. */
33674_ACEOF
33675cat confdefs.h >>conftest.$ac_ext
33676cat >>conftest.$ac_ext <<_ACEOF
33677/* end confdefs.h. */
33678#include <$ac_header>
33679_ACEOF
33680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33682 ac_status=$?
33683 grep -v '^ *+' conftest.er1 >conftest.err
33684 rm -f conftest.er1
33685 cat conftest.err >&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } >/dev/null; then
33688 if test -s conftest.err; then
33689 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33691 else
33692 ac_cpp_err=
33693 fi
33694else
33695 ac_cpp_err=yes
33696fi
33697if test -z "$ac_cpp_err"; then
33698 ac_header_preproc=yes
33699else
33700 echo "$as_me: failed program was:" >&5
33701sed 's/^/| /' conftest.$ac_ext >&5
33702
33703 ac_header_preproc=no
33704fi
33705rm -f conftest.err conftest.$ac_ext
33706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33707echo "${ECHO_T}$ac_header_preproc" >&6
33708
33709# So? What about this header?
ac1cb8d3
VS
33710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33711 yes:no: )
a848cd7e
SC
33712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33716 ac_header_preproc=yes
a848cd7e 33717 ;;
ac1cb8d3 33718 no:yes:* )
a848cd7e
SC
33719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33731 (
33732 cat <<\_ASBOX
ac1cb8d3
VS
33733## ----------------------------------------- ##
33734## Report this to wx-dev@lists.wxwidgets.org ##
33735## ----------------------------------------- ##
a848cd7e
SC
33736_ASBOX
33737 ) |
33738 sed "s/^/$as_me: WARNING: /" >&2
33739 ;;
33740esac
33741echo "$as_me:$LINENO: checking for $ac_header" >&5
33742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33743if eval "test \"\${$as_ac_Header+set}\" = set"; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33745else
ac1cb8d3 33746 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33747fi
33748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33750
33751fi
33752if test `eval echo '${'$as_ac_Header'}'` = yes; then
33753 cat >>confdefs.h <<_ACEOF
33754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33755_ACEOF
33756
33757 EXTRALIBS_ESD="-lesd"
33758
33759fi
33760
33761done
33762
33763
33764fi
33765
33766
33767
33768echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33769echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33770cat >conftest.$ac_ext <<_ACEOF
33771/* confdefs.h. */
33772_ACEOF
33773cat confdefs.h >>conftest.$ac_ext
33774cat >>conftest.$ac_ext <<_ACEOF
33775/* end confdefs.h. */
33776#ifdef __linux__
33777 #include <linux/cdrom.h>
33778 #else
33779 /* For Solaris */
33780 #include <sys/cdio.h>
33781 #endif
33782
33783int
33784main ()
33785{
33786struct cdrom_tocentry entry, old_entry;
33787 ;
33788 return 0;
33789}
33790_ACEOF
33791rm -f conftest.$ac_objext
33792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33793 (eval $ac_compile) 2>conftest.er1
a848cd7e 33794 ac_status=$?
ac1cb8d3
VS
33795 grep -v '^ *+' conftest.er1 >conftest.err
33796 rm -f conftest.er1
33797 cat conftest.err >&5
a848cd7e
SC
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } &&
9dd0f6c2 33800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; } &&
33806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 echo "$as_me:$LINENO: result: yes" >&5
33813echo "${ECHO_T}yes" >&6
33814 cat >>confdefs.h <<\_ACEOF
33815#define HAVE_KNOWN_CDROM_INTERFACE 1
33816_ACEOF
33817
33818else
33819 echo "$as_me: failed program was:" >&5
33820sed 's/^/| /' conftest.$ac_ext >&5
33821
33822echo "$as_me:$LINENO: result: no" >&5
33823echo "${ECHO_T}no" >&6
33824fi
ac1cb8d3 33825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33826
33827
33828cat >confcache <<\_ACEOF
33829# This file is a shell script that caches the results of configure
33830# tests run on this system so they can be shared between configure
33831# scripts and configure runs, see configure's option --config-cache.
33832# It is not useful on other systems. If it contains results you don't
33833# want to keep, you may remove or edit it.
33834#
33835# config.status only pays attention to the cache file if you give it
33836# the --recheck option to rerun configure.
33837#
33838# `ac_cv_env_foo' variables (set or unset) will be overridden when
33839# loading this file, other *unset* `ac_cv_foo' will be assigned the
33840# following values.
33841
33842_ACEOF
33843
33844# The following way of writing the cache mishandles newlines in values,
33845# but we know of no workaround that is simple, portable, and efficient.
33846# So, don't put newlines in cache variables' values.
33847# Ultrix sh set writes to stderr and can't be redirected directly,
33848# and sets the high bit in the cache file unless we assign to the vars.
33849{
33850 (set) 2>&1 |
33851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33852 *ac_space=\ *)
33853 # `set' does not quote correctly, so add quotes (double-quote
33854 # substitution turns \\\\ into \\, and sed turns \\ into \).
33855 sed -n \
ac1cb8d3
VS
33856 "s/'/'\\\\''/g;
33857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33858 ;;
33859 *)
33860 # `set' quotes correctly as required by POSIX, so do not add quotes.
33861 sed -n \
ac1cb8d3 33862 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33863 ;;
33864 esac;
33865} |
33866 sed '
33867 t clear
33868 : clear
33869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33870 t end
33871 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33872 : end' >>confcache
33873if diff $cache_file confcache >/dev/null 2>&1; then :; else
33874 if test -w $cache_file; then
33875 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33876 cat confcache >$cache_file
33877 else
33878 echo "not updating unwritable cache $cache_file"
33879 fi
33880fi
33881rm -f confcache
33882
33883
33884CPP_MT_FLAG=
33885if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33886
33887
33888 THREADS_LINK=
33889 THREADS_CFLAGS=
33890
33891 if test "$wxUSE_THREADS" = "yes" ; then
33892 if test "$USE_BEOS" = 1; then
33893 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33894echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33895 wxUSE_THREADS="no"
33896 fi
33897 fi
33898
33899 if test "$wxUSE_THREADS" = "yes" ; then
33900
33901
33902 THREAD_OPTS="-pthread"
33903 case "${host}" in
33904 *-*-solaris2* | *-*-sunos4* )
33905 if test "x$GCC" = "xyes"; then
33906 THREAD_OPTS="-pthreads $THREAD_OPTS"
33907 else
33908 THREAD_OPTS="-mt $THREAD_OPTS"
33909 fi
33910 ;;
33911 *-*-freebsd*)
33912 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33913 ;;
33914 *-*-darwin* | *-*-cygwin* )
33915 THREAD_OPTS=""
33916 ;;
33917 *-*-aix*)
33918 THREAD_OPTS="pthreads"
33919 ;;
33920 *-hp-hpux* )
33921 if test "x$GCC" != "xyes"; then
33922 THREAD_OPTS=""
33923 fi
33924 ;;
33925
33926 *-*-irix* )
33927 if test "x$GCC" = "xyes"; then
33928 THREAD_OPTS=""
33929 fi
33930 ;;
33931
33932 *-*-*UnixWare*)
33933 if test "x$GCC" != "xyes"; then
33934 THREAD_OPTS="-Ethread"
33935 fi
33936 ;;
33937 esac
33938
33939 THREAD_OPTS="$THREAD_OPTS pthread none"
33940
33941 THREADS_OK=no
33942 for flag in $THREAD_OPTS; do
33943 case $flag in
33944 none)
33945 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33946echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33947 ;;
33948
33949 -*)
33950 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33951echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33952 THREADS_CFLAGS="$flag"
33953 ;;
33954
33955 *)
33956 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33957echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33958 THREADS_LINK="-l$flag"
33959 ;;
33960 esac
33961
33962 save_LIBS="$LIBS"
33963 save_CFLAGS="$CFLAGS"
33964 LIBS="$THREADS_LINK $LIBS"
33965 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33966
33967 cat >conftest.$ac_ext <<_ACEOF
33968/* confdefs.h. */
33969_ACEOF
33970cat confdefs.h >>conftest.$ac_ext
33971cat >>conftest.$ac_ext <<_ACEOF
33972/* end confdefs.h. */
33973#include <pthread.h>
33974int
33975main ()
33976{
33977pthread_create(0,0,0,0);
33978 ;
33979 return 0;
33980}
33981_ACEOF
33982rm -f conftest.$ac_objext conftest$ac_exeext
33983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33984 (eval $ac_link) 2>conftest.er1
a848cd7e 33985 ac_status=$?
ac1cb8d3
VS
33986 grep -v '^ *+' conftest.er1 >conftest.err
33987 rm -f conftest.er1
33988 cat conftest.err >&5
a848cd7e
SC
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); } &&
9dd0f6c2 33991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33993 (eval $ac_try) 2>&5
33994 ac_status=$?
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; } &&
33997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34000 ac_status=$?
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; }; then
34003 THREADS_OK=yes
34004else
34005 echo "$as_me: failed program was:" >&5
34006sed 's/^/| /' conftest.$ac_ext >&5
34007
34008fi
ac1cb8d3
VS
34009rm -f conftest.err conftest.$ac_objext \
34010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34011
34012 LIBS="$save_LIBS"
34013 CFLAGS="$save_CFLAGS"
34014
34015 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34016echo "${ECHO_T}$THREADS_OK" >&6
34017 if test "x$THREADS_OK" = "xyes"; then
34018 break;
34019 fi
34020
34021 THREADS_LINK=""
34022 THREADS_CFLAGS=""
34023 done
34024
34025 if test "x$THREADS_OK" != "xyes"; then
34026 wxUSE_THREADS=no
34027 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34028echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34029 else
34030 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34031 LIBS="$THREADS_LINK $LIBS"
34032
34033 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34034echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34035 flag=no
34036 case "${host}" in
34037 *-aix*)
34038 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34039 flag="-D_THREAD_SAFE"
34040 ;;
34041 *-freebsd*)
34042 flag="-D_THREAD_SAFE"
34043 ;;
34044 *-hp-hpux* )
34045 flag="-D_REENTRANT"
34046 if test "x$GCC" != "xyes"; then
34047 flag="$flag -D_RWSTD_MULTI_THREAD"
34048 fi
34049 ;;
34050 *solaris* | alpha*-osf*)
34051 flag="-D_REENTRANT"
34052 ;;
34053 esac
34054 echo "$as_me:$LINENO: result: ${flag}" >&5
34055echo "${ECHO_T}${flag}" >&6
34056 if test "x$flag" != xno; then
34057 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34058 fi
34059
34060 if test "x$THREADS_CFLAGS" != "x"; then
34061 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34062 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34063 fi
34064 fi
34065 fi
34066
34067 if test "$wxUSE_THREADS" = "yes" ; then
34068
34069for ac_func in thr_setconcurrency
34070do
34071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34072echo "$as_me:$LINENO: checking for $ac_func" >&5
34073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34074if eval "test \"\${$as_ac_var+set}\" = set"; then
34075 echo $ECHO_N "(cached) $ECHO_C" >&6
34076else
34077 cat >conftest.$ac_ext <<_ACEOF
34078/* confdefs.h. */
34079_ACEOF
34080cat confdefs.h >>conftest.$ac_ext
34081cat >>conftest.$ac_ext <<_ACEOF
34082/* end confdefs.h. */
ac1cb8d3
VS
34083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34085#define $ac_func innocuous_$ac_func
34086
a848cd7e
SC
34087/* System header to define __stub macros and hopefully few prototypes,
34088 which can conflict with char $ac_func (); below.
34089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34090 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34091
a848cd7e
SC
34092#ifdef __STDC__
34093# include <limits.h>
34094#else
34095# include <assert.h>
34096#endif
ac1cb8d3
VS
34097
34098#undef $ac_func
34099
a848cd7e
SC
34100/* Override any gcc2 internal prototype to avoid an error. */
34101#ifdef __cplusplus
34102extern "C"
34103{
34104#endif
34105/* We use char because int might match the return type of a gcc2
34106 builtin and then its argument prototype would still apply. */
34107char $ac_func ();
34108/* The GNU C library defines this for functions which it implements
34109 to always fail with ENOSYS. Some functions are actually named
34110 something starting with __ and the normal name is an alias. */
34111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34112choke me
34113#else
34114char (*f) () = $ac_func;
34115#endif
34116#ifdef __cplusplus
34117}
34118#endif
34119
34120int
34121main ()
34122{
34123return f != $ac_func;
34124 ;
34125 return 0;
34126}
34127_ACEOF
34128rm -f conftest.$ac_objext conftest$ac_exeext
34129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34130 (eval $ac_link) 2>conftest.er1
a848cd7e 34131 ac_status=$?
ac1cb8d3
VS
34132 grep -v '^ *+' conftest.er1 >conftest.err
34133 rm -f conftest.er1
34134 cat conftest.err >&5
a848cd7e
SC
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); } &&
9dd0f6c2 34137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; } &&
34143 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34145 (eval $ac_try) 2>&5
34146 ac_status=$?
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); }; }; then
34149 eval "$as_ac_var=yes"
34150else
34151 echo "$as_me: failed program was:" >&5
34152sed 's/^/| /' conftest.$ac_ext >&5
34153
34154eval "$as_ac_var=no"
34155fi
ac1cb8d3
VS
34156rm -f conftest.err conftest.$ac_objext \
34157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34158fi
34159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34160echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34161if test `eval echo '${'$as_ac_var'}'` = yes; then
34162 cat >>confdefs.h <<_ACEOF
34163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34164_ACEOF
34165
34166fi
34167done
34168
34169
34170
34171for ac_header in sched.h
34172do
34173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34174if eval "test \"\${$as_ac_Header+set}\" = set"; then
34175 echo "$as_me:$LINENO: checking for $ac_header" >&5
34176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34177if eval "test \"\${$as_ac_Header+set}\" = set"; then
34178 echo $ECHO_N "(cached) $ECHO_C" >&6
34179fi
34180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34182else
34183 # Is the header compilable?
34184echo "$as_me:$LINENO: checking $ac_header usability" >&5
34185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34186cat >conftest.$ac_ext <<_ACEOF
34187/* confdefs.h. */
34188_ACEOF
34189cat confdefs.h >>conftest.$ac_ext
34190cat >>conftest.$ac_ext <<_ACEOF
34191/* end confdefs.h. */
34192$ac_includes_default
34193#include <$ac_header>
34194_ACEOF
34195rm -f conftest.$ac_objext
34196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34197 (eval $ac_compile) 2>conftest.er1
a848cd7e 34198 ac_status=$?
ac1cb8d3
VS
34199 grep -v '^ *+' conftest.er1 >conftest.err
34200 rm -f conftest.er1
34201 cat conftest.err >&5
a848cd7e
SC
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); } &&
9dd0f6c2 34204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34206 (eval $ac_try) 2>&5
34207 ac_status=$?
34208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); }; } &&
34210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34212 (eval $ac_try) 2>&5
34213 ac_status=$?
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); }; }; then
34216 ac_header_compiler=yes
34217else
34218 echo "$as_me: failed program was:" >&5
34219sed 's/^/| /' conftest.$ac_ext >&5
34220
34221ac_header_compiler=no
34222fi
ac1cb8d3 34223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34224echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34225echo "${ECHO_T}$ac_header_compiler" >&6
34226
34227# Is the header present?
34228echo "$as_me:$LINENO: checking $ac_header presence" >&5
34229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34230cat >conftest.$ac_ext <<_ACEOF
34231/* confdefs.h. */
34232_ACEOF
34233cat confdefs.h >>conftest.$ac_ext
34234cat >>conftest.$ac_ext <<_ACEOF
34235/* end confdefs.h. */
34236#include <$ac_header>
34237_ACEOF
34238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34240 ac_status=$?
34241 grep -v '^ *+' conftest.er1 >conftest.err
34242 rm -f conftest.er1
34243 cat conftest.err >&5
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245 (exit $ac_status); } >/dev/null; then
34246 if test -s conftest.err; then
34247 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34249 else
34250 ac_cpp_err=
34251 fi
34252else
34253 ac_cpp_err=yes
34254fi
34255if test -z "$ac_cpp_err"; then
34256 ac_header_preproc=yes
34257else
34258 echo "$as_me: failed program was:" >&5
34259sed 's/^/| /' conftest.$ac_ext >&5
34260
34261 ac_header_preproc=no
34262fi
34263rm -f conftest.err conftest.$ac_ext
34264echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34265echo "${ECHO_T}$ac_header_preproc" >&6
34266
34267# So? What about this header?
ac1cb8d3
VS
34268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34269 yes:no: )
a848cd7e
SC
34270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34273echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34274 ac_header_preproc=yes
a848cd7e 34275 ;;
ac1cb8d3 34276 no:yes:* )
a848cd7e
SC
34277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34282echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34284echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34288echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34289 (
34290 cat <<\_ASBOX
ac1cb8d3
VS
34291## ----------------------------------------- ##
34292## Report this to wx-dev@lists.wxwidgets.org ##
34293## ----------------------------------------- ##
a848cd7e
SC
34294_ASBOX
34295 ) |
34296 sed "s/^/$as_me: WARNING: /" >&2
34297 ;;
34298esac
34299echo "$as_me:$LINENO: checking for $ac_header" >&5
34300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34301if eval "test \"\${$as_ac_Header+set}\" = set"; then
34302 echo $ECHO_N "(cached) $ECHO_C" >&6
34303else
ac1cb8d3 34304 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34305fi
34306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34308
34309fi
34310if test `eval echo '${'$as_ac_Header'}'` = yes; then
34311 cat >>confdefs.h <<_ACEOF
34312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34313_ACEOF
34314
34315fi
34316
34317done
34318
34319 if test "$ac_cv_header_sched_h" = "yes"; then
34320 echo "$as_me:$LINENO: checking for sched_yield" >&5
34321echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34322if test "${ac_cv_func_sched_yield+set}" = set; then
34323 echo $ECHO_N "(cached) $ECHO_C" >&6
34324else
34325 cat >conftest.$ac_ext <<_ACEOF
34326/* confdefs.h. */
34327_ACEOF
34328cat confdefs.h >>conftest.$ac_ext
34329cat >>conftest.$ac_ext <<_ACEOF
34330/* end confdefs.h. */
ac1cb8d3
VS
34331/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34333#define sched_yield innocuous_sched_yield
34334
a848cd7e
SC
34335/* System header to define __stub macros and hopefully few prototypes,
34336 which can conflict with char sched_yield (); below.
34337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34338 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34339
a848cd7e
SC
34340#ifdef __STDC__
34341# include <limits.h>
34342#else
34343# include <assert.h>
34344#endif
ac1cb8d3
VS
34345
34346#undef sched_yield
34347
a848cd7e
SC
34348/* Override any gcc2 internal prototype to avoid an error. */
34349#ifdef __cplusplus
34350extern "C"
34351{
34352#endif
34353/* We use char because int might match the return type of a gcc2
34354 builtin and then its argument prototype would still apply. */
34355char sched_yield ();
34356/* The GNU C library defines this for functions which it implements
34357 to always fail with ENOSYS. Some functions are actually named
34358 something starting with __ and the normal name is an alias. */
34359#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34360choke me
34361#else
34362char (*f) () = sched_yield;
34363#endif
34364#ifdef __cplusplus
34365}
34366#endif
34367
34368int
34369main ()
34370{
34371return f != sched_yield;
34372 ;
34373 return 0;
34374}
34375_ACEOF
34376rm -f conftest.$ac_objext conftest$ac_exeext
34377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34378 (eval $ac_link) 2>conftest.er1
a848cd7e 34379 ac_status=$?
ac1cb8d3
VS
34380 grep -v '^ *+' conftest.er1 >conftest.err
34381 rm -f conftest.er1
34382 cat conftest.err >&5
a848cd7e
SC
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
9dd0f6c2 34385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34387 (eval $ac_try) 2>&5
34388 ac_status=$?
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); }; } &&
34391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34393 (eval $ac_try) 2>&5
34394 ac_status=$?
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); }; }; then
34397 ac_cv_func_sched_yield=yes
34398else
34399 echo "$as_me: failed program was:" >&5
34400sed 's/^/| /' conftest.$ac_ext >&5
34401
34402ac_cv_func_sched_yield=no
34403fi
ac1cb8d3
VS
34404rm -f conftest.err conftest.$ac_objext \
34405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34406fi
34407echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34408echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34409if test $ac_cv_func_sched_yield = yes; then
34410 cat >>confdefs.h <<\_ACEOF
34411#define HAVE_SCHED_YIELD 1
34412_ACEOF
34413
34414else
34415
34416 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34417echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34418if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34419 echo $ECHO_N "(cached) $ECHO_C" >&6
34420else
34421 ac_check_lib_save_LIBS=$LIBS
34422LIBS="-lposix4 $LIBS"
34423cat >conftest.$ac_ext <<_ACEOF
34424/* confdefs.h. */
34425_ACEOF
34426cat confdefs.h >>conftest.$ac_ext
34427cat >>conftest.$ac_ext <<_ACEOF
34428/* end confdefs.h. */
34429
34430/* Override any gcc2 internal prototype to avoid an error. */
34431#ifdef __cplusplus
34432extern "C"
34433#endif
34434/* We use char because int might match the return type of a gcc2
34435 builtin and then its argument prototype would still apply. */
34436char sched_yield ();
34437int
34438main ()
34439{
34440sched_yield ();
34441 ;
34442 return 0;
34443}
34444_ACEOF
34445rm -f conftest.$ac_objext conftest$ac_exeext
34446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34447 (eval $ac_link) 2>conftest.er1
a848cd7e 34448 ac_status=$?
ac1cb8d3
VS
34449 grep -v '^ *+' conftest.er1 >conftest.err
34450 rm -f conftest.er1
34451 cat conftest.err >&5
a848cd7e
SC
34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453 (exit $ac_status); } &&
9dd0f6c2 34454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34456 (eval $ac_try) 2>&5
34457 ac_status=$?
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); }; } &&
34460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34462 (eval $ac_try) 2>&5
34463 ac_status=$?
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); }; }; then
34466 ac_cv_lib_posix4_sched_yield=yes
34467else
34468 echo "$as_me: failed program was:" >&5
34469sed 's/^/| /' conftest.$ac_ext >&5
34470
34471ac_cv_lib_posix4_sched_yield=no
34472fi
ac1cb8d3
VS
34473rm -f conftest.err conftest.$ac_objext \
34474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34475LIBS=$ac_check_lib_save_LIBS
34476fi
34477echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34478echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34479if test $ac_cv_lib_posix4_sched_yield = yes; then
34480 cat >>confdefs.h <<\_ACEOF
34481#define HAVE_SCHED_YIELD 1
34482_ACEOF
34483 POSIX4_LINK=" -lposix4"
34484else
34485 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34486echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34487
34488fi
34489
34490
34491
34492fi
34493
34494 fi
34495
34496 HAVE_PRIOR_FUNCS=0
34497 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34498echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34499if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34500 echo $ECHO_N "(cached) $ECHO_C" >&6
34501else
34502 cat >conftest.$ac_ext <<_ACEOF
34503/* confdefs.h. */
34504_ACEOF
34505cat confdefs.h >>conftest.$ac_ext
34506cat >>conftest.$ac_ext <<_ACEOF
34507/* end confdefs.h. */
ac1cb8d3
VS
34508/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34510#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34511
a848cd7e
SC
34512/* System header to define __stub macros and hopefully few prototypes,
34513 which can conflict with char pthread_attr_getschedpolicy (); below.
34514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34515 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34516
a848cd7e
SC
34517#ifdef __STDC__
34518# include <limits.h>
34519#else
34520# include <assert.h>
34521#endif
ac1cb8d3
VS
34522
34523#undef pthread_attr_getschedpolicy
34524
a848cd7e
SC
34525/* Override any gcc2 internal prototype to avoid an error. */
34526#ifdef __cplusplus
34527extern "C"
34528{
34529#endif
34530/* We use char because int might match the return type of a gcc2
34531 builtin and then its argument prototype would still apply. */
34532char pthread_attr_getschedpolicy ();
34533/* The GNU C library defines this for functions which it implements
34534 to always fail with ENOSYS. Some functions are actually named
34535 something starting with __ and the normal name is an alias. */
34536#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34537choke me
34538#else
34539char (*f) () = pthread_attr_getschedpolicy;
34540#endif
34541#ifdef __cplusplus
34542}
34543#endif
34544
34545int
34546main ()
34547{
34548return f != pthread_attr_getschedpolicy;
34549 ;
34550 return 0;
34551}
34552_ACEOF
34553rm -f conftest.$ac_objext conftest$ac_exeext
34554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34555 (eval $ac_link) 2>conftest.er1
a848cd7e 34556 ac_status=$?
ac1cb8d3
VS
34557 grep -v '^ *+' conftest.er1 >conftest.err
34558 rm -f conftest.er1
34559 cat conftest.err >&5
a848cd7e
SC
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); } &&
9dd0f6c2 34562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34564 (eval $ac_try) 2>&5
34565 ac_status=$?
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); }; } &&
34568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34570 (eval $ac_try) 2>&5
34571 ac_status=$?
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); }; }; then
34574 ac_cv_func_pthread_attr_getschedpolicy=yes
34575else
34576 echo "$as_me: failed program was:" >&5
34577sed 's/^/| /' conftest.$ac_ext >&5
34578
34579ac_cv_func_pthread_attr_getschedpolicy=no
34580fi
ac1cb8d3
VS
34581rm -f conftest.err conftest.$ac_objext \
34582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34583fi
34584echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34585echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34586if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34587 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34588echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34589if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34590 echo $ECHO_N "(cached) $ECHO_C" >&6
34591else
34592 cat >conftest.$ac_ext <<_ACEOF
34593/* confdefs.h. */
34594_ACEOF
34595cat confdefs.h >>conftest.$ac_ext
34596cat >>conftest.$ac_ext <<_ACEOF
34597/* end confdefs.h. */
ac1cb8d3
VS
34598/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34600#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34601
a848cd7e
SC
34602/* System header to define __stub macros and hopefully few prototypes,
34603 which can conflict with char pthread_attr_setschedparam (); below.
34604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34606
a848cd7e
SC
34607#ifdef __STDC__
34608# include <limits.h>
34609#else
34610# include <assert.h>
34611#endif
ac1cb8d3
VS
34612
34613#undef pthread_attr_setschedparam
34614
a848cd7e
SC
34615/* Override any gcc2 internal prototype to avoid an error. */
34616#ifdef __cplusplus
34617extern "C"
34618{
34619#endif
34620/* We use char because int might match the return type of a gcc2
34621 builtin and then its argument prototype would still apply. */
34622char pthread_attr_setschedparam ();
34623/* The GNU C library defines this for functions which it implements
34624 to always fail with ENOSYS. Some functions are actually named
34625 something starting with __ and the normal name is an alias. */
34626#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34627choke me
34628#else
34629char (*f) () = pthread_attr_setschedparam;
34630#endif
34631#ifdef __cplusplus
34632}
34633#endif
34634
34635int
34636main ()
34637{
34638return f != pthread_attr_setschedparam;
34639 ;
34640 return 0;
34641}
34642_ACEOF
34643rm -f conftest.$ac_objext conftest$ac_exeext
34644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34645 (eval $ac_link) 2>conftest.er1
a848cd7e 34646 ac_status=$?
ac1cb8d3
VS
34647 grep -v '^ *+' conftest.er1 >conftest.err
34648 rm -f conftest.er1
34649 cat conftest.err >&5
a848cd7e
SC
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); } &&
9dd0f6c2 34652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34654 (eval $ac_try) 2>&5
34655 ac_status=$?
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); }; } &&
34658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660 (eval $ac_try) 2>&5
34661 ac_status=$?
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); }; }; then
34664 ac_cv_func_pthread_attr_setschedparam=yes
34665else
34666 echo "$as_me: failed program was:" >&5
34667sed 's/^/| /' conftest.$ac_ext >&5
34668
34669ac_cv_func_pthread_attr_setschedparam=no
34670fi
ac1cb8d3
VS
34671rm -f conftest.err conftest.$ac_objext \
34672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34673fi
34674echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34675echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34676if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34677 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34678echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34679if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34680 echo $ECHO_N "(cached) $ECHO_C" >&6
34681else
34682 cat >conftest.$ac_ext <<_ACEOF
34683/* confdefs.h. */
34684_ACEOF
34685cat confdefs.h >>conftest.$ac_ext
34686cat >>conftest.$ac_ext <<_ACEOF
34687/* end confdefs.h. */
ac1cb8d3
VS
34688/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34690#define sched_get_priority_max innocuous_sched_get_priority_max
34691
a848cd7e
SC
34692/* System header to define __stub macros and hopefully few prototypes,
34693 which can conflict with char sched_get_priority_max (); below.
34694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34695 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34696
a848cd7e
SC
34697#ifdef __STDC__
34698# include <limits.h>
34699#else
34700# include <assert.h>
34701#endif
ac1cb8d3
VS
34702
34703#undef sched_get_priority_max
34704
a848cd7e
SC
34705/* Override any gcc2 internal prototype to avoid an error. */
34706#ifdef __cplusplus
34707extern "C"
34708{
34709#endif
34710/* We use char because int might match the return type of a gcc2
34711 builtin and then its argument prototype would still apply. */
34712char sched_get_priority_max ();
34713/* The GNU C library defines this for functions which it implements
34714 to always fail with ENOSYS. Some functions are actually named
34715 something starting with __ and the normal name is an alias. */
34716#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34717choke me
34718#else
34719char (*f) () = sched_get_priority_max;
34720#endif
34721#ifdef __cplusplus
34722}
34723#endif
34724
34725int
34726main ()
34727{
34728return f != sched_get_priority_max;
34729 ;
34730 return 0;
34731}
34732_ACEOF
34733rm -f conftest.$ac_objext conftest$ac_exeext
34734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34735 (eval $ac_link) 2>conftest.er1
a848cd7e 34736 ac_status=$?
ac1cb8d3
VS
34737 grep -v '^ *+' conftest.er1 >conftest.err
34738 rm -f conftest.er1
34739 cat conftest.err >&5
a848cd7e
SC
34740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741 (exit $ac_status); } &&
9dd0f6c2 34742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34744 (eval $ac_try) 2>&5
34745 ac_status=$?
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); }; } &&
34748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34750 (eval $ac_try) 2>&5
34751 ac_status=$?
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); }; }; then
34754 ac_cv_func_sched_get_priority_max=yes
34755else
34756 echo "$as_me: failed program was:" >&5
34757sed 's/^/| /' conftest.$ac_ext >&5
34758
34759ac_cv_func_sched_get_priority_max=no
34760fi
ac1cb8d3
VS
34761rm -f conftest.err conftest.$ac_objext \
34762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34763fi
34764echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34765echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34766if test $ac_cv_func_sched_get_priority_max = yes; then
34767 HAVE_PRIOR_FUNCS=1
34768else
34769 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34770echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34771if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34772 echo $ECHO_N "(cached) $ECHO_C" >&6
34773else
34774 ac_check_lib_save_LIBS=$LIBS
34775LIBS="-lposix4 $LIBS"
34776cat >conftest.$ac_ext <<_ACEOF
34777/* confdefs.h. */
34778_ACEOF
34779cat confdefs.h >>conftest.$ac_ext
34780cat >>conftest.$ac_ext <<_ACEOF
34781/* end confdefs.h. */
34782
34783/* Override any gcc2 internal prototype to avoid an error. */
34784#ifdef __cplusplus
34785extern "C"
34786#endif
34787/* We use char because int might match the return type of a gcc2
34788 builtin and then its argument prototype would still apply. */
34789char sched_get_priority_max ();
34790int
34791main ()
34792{
34793sched_get_priority_max ();
34794 ;
34795 return 0;
34796}
34797_ACEOF
34798rm -f conftest.$ac_objext conftest$ac_exeext
34799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34800 (eval $ac_link) 2>conftest.er1
a848cd7e 34801 ac_status=$?
ac1cb8d3
VS
34802 grep -v '^ *+' conftest.er1 >conftest.err
34803 rm -f conftest.er1
34804 cat conftest.err >&5
a848cd7e
SC
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } &&
9dd0f6c2 34807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34809 (eval $ac_try) 2>&5
34810 ac_status=$?
34811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); }; } &&
34813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34815 (eval $ac_try) 2>&5
34816 ac_status=$?
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; }; then
34819 ac_cv_lib_posix4_sched_get_priority_max=yes
34820else
34821 echo "$as_me: failed program was:" >&5
34822sed 's/^/| /' conftest.$ac_ext >&5
34823
34824ac_cv_lib_posix4_sched_get_priority_max=no
34825fi
ac1cb8d3
VS
34826rm -f conftest.err conftest.$ac_objext \
34827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34828LIBS=$ac_check_lib_save_LIBS
34829fi
34830echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34831echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34832if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34833
34834 HAVE_PRIOR_FUNCS=1
34835 POSIX4_LINK=" -lposix4"
34836
34837fi
34838
34839
34840fi
34841
34842
34843fi
34844
34845
34846fi
34847
34848
34849 if test "$HAVE_PRIOR_FUNCS" = 1; then
34850 cat >>confdefs.h <<\_ACEOF
34851#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34852_ACEOF
34853
34854 else
34855 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34856echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34857 fi
34858
34859 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34860echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34861if test "${ac_cv_func_pthread_cancel+set}" = set; then
34862 echo $ECHO_N "(cached) $ECHO_C" >&6
34863else
34864 cat >conftest.$ac_ext <<_ACEOF
34865/* confdefs.h. */
34866_ACEOF
34867cat confdefs.h >>conftest.$ac_ext
34868cat >>conftest.$ac_ext <<_ACEOF
34869/* end confdefs.h. */
ac1cb8d3
VS
34870/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34872#define pthread_cancel innocuous_pthread_cancel
34873
a848cd7e
SC
34874/* System header to define __stub macros and hopefully few prototypes,
34875 which can conflict with char pthread_cancel (); below.
34876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34877 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34878
a848cd7e
SC
34879#ifdef __STDC__
34880# include <limits.h>
34881#else
34882# include <assert.h>
34883#endif
ac1cb8d3
VS
34884
34885#undef pthread_cancel
34886
a848cd7e
SC
34887/* Override any gcc2 internal prototype to avoid an error. */
34888#ifdef __cplusplus
34889extern "C"
34890{
34891#endif
34892/* We use char because int might match the return type of a gcc2
34893 builtin and then its argument prototype would still apply. */
34894char pthread_cancel ();
34895/* The GNU C library defines this for functions which it implements
34896 to always fail with ENOSYS. Some functions are actually named
34897 something starting with __ and the normal name is an alias. */
34898#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34899choke me
34900#else
34901char (*f) () = pthread_cancel;
34902#endif
34903#ifdef __cplusplus
34904}
34905#endif
34906
34907int
34908main ()
34909{
34910return f != pthread_cancel;
34911 ;
34912 return 0;
34913}
34914_ACEOF
34915rm -f conftest.$ac_objext conftest$ac_exeext
34916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34917 (eval $ac_link) 2>conftest.er1
a848cd7e 34918 ac_status=$?
ac1cb8d3
VS
34919 grep -v '^ *+' conftest.er1 >conftest.err
34920 rm -f conftest.er1
34921 cat conftest.err >&5
a848cd7e
SC
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); } &&
9dd0f6c2 34924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34926 (eval $ac_try) 2>&5
34927 ac_status=$?
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); }; } &&
34930 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932 (eval $ac_try) 2>&5
34933 ac_status=$?
34934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935 (exit $ac_status); }; }; then
34936 ac_cv_func_pthread_cancel=yes
34937else
34938 echo "$as_me: failed program was:" >&5
34939sed 's/^/| /' conftest.$ac_ext >&5
34940
34941ac_cv_func_pthread_cancel=no
34942fi
ac1cb8d3
VS
34943rm -f conftest.err conftest.$ac_objext \
34944 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34945fi
34946echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34947echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34948if test $ac_cv_func_pthread_cancel = yes; then
34949 cat >>confdefs.h <<\_ACEOF
34950#define HAVE_PTHREAD_CANCEL 1
34951_ACEOF
34952
34953else
34954 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34955echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34956fi
34957
34958
34959
34960
34961 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34962echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34963if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34964 echo $ECHO_N "(cached) $ECHO_C" >&6
34965else
34966
34967 cat >conftest.$ac_ext <<_ACEOF
34968/* confdefs.h. */
34969_ACEOF
34970cat confdefs.h >>conftest.$ac_ext
34971cat >>conftest.$ac_ext <<_ACEOF
34972/* end confdefs.h. */
34973#include <pthread.h>
34974int
34975main ()
34976{
34977
34978 pthread_mutexattr_t attr;
34979 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34980
34981 ;
34982 return 0;
34983}
34984_ACEOF
34985rm -f conftest.$ac_objext
34986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34987 (eval $ac_compile) 2>conftest.er1
a848cd7e 34988 ac_status=$?
ac1cb8d3
VS
34989 grep -v '^ *+' conftest.er1 >conftest.err
34990 rm -f conftest.er1
34991 cat conftest.err >&5
a848cd7e
SC
34992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993 (exit $ac_status); } &&
9dd0f6c2 34994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34996 (eval $ac_try) 2>&5
34997 ac_status=$?
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); }; } &&
35000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35002 (eval $ac_try) 2>&5
35003 ac_status=$?
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); }; }; then
35006
35007 wx_cv_type_pthread_mutexattr_t=yes
35008
35009else
35010 echo "$as_me: failed program was:" >&5
35011sed 's/^/| /' conftest.$ac_ext >&5
35012
35013
35014 wx_cv_type_pthread_mutexattr_t=no
35015
35016
35017fi
ac1cb8d3 35018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35019
35020fi
35021echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35022echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35023
35024 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35025 cat >>confdefs.h <<\_ACEOF
35026#define HAVE_PTHREAD_MUTEXATTR_T 1
35027_ACEOF
35028
35029 else
35030 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35031echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35032if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
35034else
35035
35036 cat >conftest.$ac_ext <<_ACEOF
35037/* confdefs.h. */
35038_ACEOF
35039cat confdefs.h >>conftest.$ac_ext
35040cat >>conftest.$ac_ext <<_ACEOF
35041/* end confdefs.h. */
35042#include <pthread.h>
35043int
35044main ()
35045{
35046
35047 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35048
35049 ;
35050 return 0;
35051}
35052_ACEOF
35053rm -f conftest.$ac_objext
35054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35055 (eval $ac_compile) 2>conftest.er1
a848cd7e 35056 ac_status=$?
ac1cb8d3
VS
35057 grep -v '^ *+' conftest.er1 >conftest.err
35058 rm -f conftest.er1
35059 cat conftest.err >&5
a848cd7e
SC
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 (exit $ac_status); } &&
9dd0f6c2 35062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064 (eval $ac_try) 2>&5
35065 ac_status=$?
35066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); }; } &&
35068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070 (eval $ac_try) 2>&5
35071 ac_status=$?
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); }; }; then
35074
35075 wx_cv_type_pthread_rec_mutex_init=yes
35076
35077else
35078 echo "$as_me: failed program was:" >&5
35079sed 's/^/| /' conftest.$ac_ext >&5
35080
35081
35082 wx_cv_type_pthread_rec_mutex_init=no
35083
35084
35085fi
ac1cb8d3 35086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35087
35088fi
35089echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35090echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35091 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35092 cat >>confdefs.h <<\_ACEOF
35093#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35094_ACEOF
35095
35096 else
35097 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35098echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35099 fi
35100 fi
35101 fi
35102
35103else
35104 if test "$wxUSE_THREADS" = "yes" ; then
35105 case "${host}" in
35106 *-*-mingw32* )
35107 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35108echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35109if test "${wx_cv_cflags_mthread+set}" = set; then
35110 echo $ECHO_N "(cached) $ECHO_C" >&6
35111else
35112
35113 CFLAGS_OLD="$CFLAGS"
35114 CFLAGS="$CFLAGS -mthreads"
35115 cat >conftest.$ac_ext <<_ACEOF
35116/* confdefs.h. */
35117_ACEOF
35118cat confdefs.h >>conftest.$ac_ext
35119cat >>conftest.$ac_ext <<_ACEOF
35120/* end confdefs.h. */
35121
35122int
35123main ()
35124{
35125
35126 ;
35127 return 0;
35128}
35129_ACEOF
35130rm -f conftest.$ac_objext
35131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35132 (eval $ac_compile) 2>conftest.er1
a848cd7e 35133 ac_status=$?
ac1cb8d3
VS
35134 grep -v '^ *+' conftest.er1 >conftest.err
35135 rm -f conftest.er1
35136 cat conftest.err >&5
a848cd7e
SC
35137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138 (exit $ac_status); } &&
9dd0f6c2 35139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35141 (eval $ac_try) 2>&5
35142 ac_status=$?
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 (exit $ac_status); }; } &&
35145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35147 (eval $ac_try) 2>&5
35148 ac_status=$?
35149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150 (exit $ac_status); }; }; then
35151 wx_cv_cflags_mthread=yes
35152else
35153 echo "$as_me: failed program was:" >&5
35154sed 's/^/| /' conftest.$ac_ext >&5
35155
35156wx_cv_cflags_mthread=no
35157
35158fi
ac1cb8d3 35159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35160
35161
35162fi
35163echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35164echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35165
35166 if test "$wx_cv_cflags_mthread" = "yes"; then
35167 CXXFLAGS="$CXXFLAGS -mthreads"
35168 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35169 LDFLAGS="$LDFLAGS -mthreads"
35170 else
35171 CFLAGS="$CFLAGS_OLD"
35172 fi
35173 ;;
35174 *-pc-os2*emx )
35175 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35176 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35177 LDFLAGS="$LDFLAGS -Zmt"
35178 ;;
35179 esac
35180 fi
35181fi
35182
35183if test "$wxUSE_THREADS" = "yes"; then
35184 cat >>confdefs.h <<\_ACEOF
35185#define wxUSE_THREADS 1
35186_ACEOF
35187
35188
35189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35190else
35191 if test "$ac_cv_func_strtok_r" = "yes"; then
35192 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35193echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35194 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35195 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35196 echo "$as_me:$LINENO: result: yes" >&5
35197echo "${ECHO_T}yes" >&6
35198 else
35199 echo "$as_me:$LINENO: result: no" >&5
35200echo "${ECHO_T}no" >&6
35201 fi
35202 fi
35203fi
35204
35205if test "$WXGTK20" = 1 ; then
35206 cat >>confdefs.h <<_ACEOF
35207#define __WXGTK20__ $WXGTK20
35208_ACEOF
35209
35210 WXGTK12=1
35211fi
35212
35213if test "$WXGTK12" = 1 ; then
35214 cat >>confdefs.h <<_ACEOF
35215#define __WXGTK12__ $WXGTK12
35216_ACEOF
35217
35218fi
35219
35220if test "$WXGTK127" = 1 ; then
35221 cat >>confdefs.h <<_ACEOF
35222#define __WXGTK127__ $WXGTK127
35223_ACEOF
35224
35225fi
35226
35227if test "$WXGPE" = 1 ; then
35228 cat >>confdefs.h <<_ACEOF
35229#define __WXGPE__ $WXGPE
35230_ACEOF
35231
35232fi
35233
35234WXDEBUG=
35235
35236if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35237 WXDEBUG="-g"
35238 wxUSE_OPTIMISE=no
35239fi
35240
35241if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35242 wxUSE_DEBUG_INFO=yes
35243 WXDEBUG="-ggdb"
35244fi
35245
35246if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35247 cat >>confdefs.h <<\_ACEOF
35248#define WXDEBUG 1
35249_ACEOF
35250
35251 WXDEBUG_DEFINE="-D__WXDEBUG__"
35252else
35253 if test "$wxUSE_GTK" = 1 ; then
35254 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35255 fi
35256fi
35257
35258if test "$wxUSE_MEM_TRACING" = "yes" ; then
35259 cat >>confdefs.h <<\_ACEOF
35260#define wxUSE_MEMORY_TRACING 1
35261_ACEOF
35262
35263 cat >>confdefs.h <<\_ACEOF
35264#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35265_ACEOF
35266
35267 cat >>confdefs.h <<\_ACEOF
35268#define wxUSE_DEBUG_NEW_ALWAYS 1
35269_ACEOF
35270
35271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35272fi
35273
35274if test "$wxUSE_DMALLOC" = "yes" ; then
35275 DMALLOC_LIBS="-ldmalloc"
35276fi
35277
35278PROFILE=
35279if test "$wxUSE_PROFILE" = "yes" ; then
35280 PROFILE=" -pg"
35281fi
35282
35283CODE_GEN_FLAGS=
35284CODE_GEN_FLAGS_CXX=
35285if test "$GCC" = "yes" ; then
35286 if test "$wxUSE_NO_RTTI" = "yes" ; then
35287 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35288 fi
35289 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35290 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35291 fi
35292 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35293 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35294 fi
35295
35296 case "${host}" in
35297 powerpc*-*-aix* )
35298 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35299 ;;
35300 *-hppa* )
35301 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35302 ;;
35303 esac
35304fi
35305
35306OPTIMISE=
35307if test "$wxUSE_OPTIMISE" = "no" ; then
35308 if test "$GCC" = yes ; then
35309 OPTIMISE="-O0"
35310 fi
35311else
35312 if test "$GCC" = yes ; then
35313 OPTIMISE="-O2"
35314
35315 case "${host}" in
35316 i586-*-*|i686-*-* )
35317 OPTIMISE="${OPTIMISE} "
35318 ;;
35319 esac
35320 else
35321 OPTIMISE="-O"
35322 fi
35323fi
35324
35325
35326if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35327 cat >>confdefs.h <<\_ACEOF
35328#define WXWIN_COMPATIBILITY_2_2 1
35329_ACEOF
35330
35331
35332 WXWIN_COMPATIBILITY_2_4="yes"
35333fi
35334
35335if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35336 cat >>confdefs.h <<\_ACEOF
35337#define WXWIN_COMPATIBILITY_2_4 1
35338_ACEOF
35339
35340fi
35341
35342
35343if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35344 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35345#define wxUSE_GUI 1
35346_ACEOF
35347
35348
370fd4c2 35349 fi
a848cd7e
SC
35350
35351
35352if test "$wxUSE_UNIX" = "yes"; then
35353 cat >>confdefs.h <<\_ACEOF
35354#define wxUSE_UNIX 1
35355_ACEOF
35356
35357fi
35358
35359
35360if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35361
35362 HAVE_DL_FUNCS=0
35363 HAVE_SHL_FUNCS=0
35364 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35365 if test "$USE_DARWIN" = 1; then
35366 HAVE_DL_FUNCS=1
35367 else
35368
35369for ac_func in dlopen
35370do
35371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35372echo "$as_me:$LINENO: checking for $ac_func" >&5
35373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35374if eval "test \"\${$as_ac_var+set}\" = set"; then
35375 echo $ECHO_N "(cached) $ECHO_C" >&6
35376else
35377 cat >conftest.$ac_ext <<_ACEOF
35378/* confdefs.h. */
35379_ACEOF
35380cat confdefs.h >>conftest.$ac_ext
35381cat >>conftest.$ac_ext <<_ACEOF
35382/* end confdefs.h. */
ac1cb8d3
VS
35383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35385#define $ac_func innocuous_$ac_func
35386
a848cd7e
SC
35387/* System header to define __stub macros and hopefully few prototypes,
35388 which can conflict with char $ac_func (); below.
35389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35390 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35391
a848cd7e
SC
35392#ifdef __STDC__
35393# include <limits.h>
35394#else
35395# include <assert.h>
35396#endif
ac1cb8d3
VS
35397
35398#undef $ac_func
35399
a848cd7e
SC
35400/* Override any gcc2 internal prototype to avoid an error. */
35401#ifdef __cplusplus
35402extern "C"
35403{
35404#endif
35405/* We use char because int might match the return type of a gcc2
35406 builtin and then its argument prototype would still apply. */
35407char $ac_func ();
35408/* The GNU C library defines this for functions which it implements
35409 to always fail with ENOSYS. Some functions are actually named
35410 something starting with __ and the normal name is an alias. */
35411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35412choke me
35413#else
35414char (*f) () = $ac_func;
35415#endif
35416#ifdef __cplusplus
35417}
35418#endif
35419
35420int
35421main ()
35422{
35423return f != $ac_func;
35424 ;
35425 return 0;
35426}
35427_ACEOF
35428rm -f conftest.$ac_objext conftest$ac_exeext
35429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35430 (eval $ac_link) 2>conftest.er1
a848cd7e 35431 ac_status=$?
ac1cb8d3
VS
35432 grep -v '^ *+' conftest.er1 >conftest.err
35433 rm -f conftest.er1
35434 cat conftest.err >&5
a848cd7e
SC
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); } &&
9dd0f6c2 35437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35439 (eval $ac_try) 2>&5
35440 ac_status=$?
35441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442 (exit $ac_status); }; } &&
35443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445 (eval $ac_try) 2>&5
35446 ac_status=$?
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); }; }; then
35449 eval "$as_ac_var=yes"
35450else
35451 echo "$as_me: failed program was:" >&5
35452sed 's/^/| /' conftest.$ac_ext >&5
35453
35454eval "$as_ac_var=no"
35455fi
ac1cb8d3
VS
35456rm -f conftest.err conftest.$ac_objext \
35457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35458fi
35459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35461if test `eval echo '${'$as_ac_var'}'` = yes; then
35462 cat >>confdefs.h <<_ACEOF
35463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35464_ACEOF
35465
35466 cat >>confdefs.h <<\_ACEOF
35467#define HAVE_DLOPEN 1
35468_ACEOF
35469
35470 HAVE_DL_FUNCS=1
35471
35472else
35473
35474 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35475echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35476if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35477 echo $ECHO_N "(cached) $ECHO_C" >&6
35478else
35479 ac_check_lib_save_LIBS=$LIBS
35480LIBS="-ldl $LIBS"
35481cat >conftest.$ac_ext <<_ACEOF
35482/* confdefs.h. */
35483_ACEOF
35484cat confdefs.h >>conftest.$ac_ext
35485cat >>conftest.$ac_ext <<_ACEOF
35486/* end confdefs.h. */
35487
35488/* Override any gcc2 internal prototype to avoid an error. */
35489#ifdef __cplusplus
35490extern "C"
35491#endif
35492/* We use char because int might match the return type of a gcc2
35493 builtin and then its argument prototype would still apply. */
35494char dlopen ();
35495int
35496main ()
35497{
35498dlopen ();
35499 ;
35500 return 0;
35501}
35502_ACEOF
35503rm -f conftest.$ac_objext conftest$ac_exeext
35504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35505 (eval $ac_link) 2>conftest.er1
a848cd7e 35506 ac_status=$?
ac1cb8d3
VS
35507 grep -v '^ *+' conftest.er1 >conftest.err
35508 rm -f conftest.er1
35509 cat conftest.err >&5
a848cd7e
SC
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); } &&
9dd0f6c2 35512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35514 (eval $ac_try) 2>&5
35515 ac_status=$?
35516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); }; } &&
35518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520 (eval $ac_try) 2>&5
35521 ac_status=$?
35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523 (exit $ac_status); }; }; then
35524 ac_cv_lib_dl_dlopen=yes
35525else
35526 echo "$as_me: failed program was:" >&5
35527sed 's/^/| /' conftest.$ac_ext >&5
35528
35529ac_cv_lib_dl_dlopen=no
35530fi
ac1cb8d3
VS
35531rm -f conftest.err conftest.$ac_objext \
35532 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35533LIBS=$ac_check_lib_save_LIBS
35534fi
35535echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35536echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35537if test $ac_cv_lib_dl_dlopen = yes; then
35538
35539 cat >>confdefs.h <<\_ACEOF
35540#define HAVE_DLOPEN 1
35541_ACEOF
35542
35543 HAVE_DL_FUNCS=1
35544 DL_LINK=" -ldl$DL_LINK"
35545
35546else
35547
35548
35549for ac_func in shl_load
35550do
35551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35552echo "$as_me:$LINENO: checking for $ac_func" >&5
35553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35554if eval "test \"\${$as_ac_var+set}\" = set"; then
35555 echo $ECHO_N "(cached) $ECHO_C" >&6
35556else
35557 cat >conftest.$ac_ext <<_ACEOF
35558/* confdefs.h. */
35559_ACEOF
35560cat confdefs.h >>conftest.$ac_ext
35561cat >>conftest.$ac_ext <<_ACEOF
35562/* end confdefs.h. */
ac1cb8d3
VS
35563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35565#define $ac_func innocuous_$ac_func
35566
a848cd7e
SC
35567/* System header to define __stub macros and hopefully few prototypes,
35568 which can conflict with char $ac_func (); below.
35569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35571
a848cd7e
SC
35572#ifdef __STDC__
35573# include <limits.h>
35574#else
35575# include <assert.h>
35576#endif
ac1cb8d3
VS
35577
35578#undef $ac_func
35579
a848cd7e
SC
35580/* Override any gcc2 internal prototype to avoid an error. */
35581#ifdef __cplusplus
35582extern "C"
35583{
35584#endif
35585/* We use char because int might match the return type of a gcc2
35586 builtin and then its argument prototype would still apply. */
35587char $ac_func ();
35588/* The GNU C library defines this for functions which it implements
35589 to always fail with ENOSYS. Some functions are actually named
35590 something starting with __ and the normal name is an alias. */
35591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35592choke me
35593#else
35594char (*f) () = $ac_func;
35595#endif
35596#ifdef __cplusplus
35597}
35598#endif
35599
35600int
35601main ()
35602{
35603return f != $ac_func;
35604 ;
35605 return 0;
35606}
35607_ACEOF
35608rm -f conftest.$ac_objext conftest$ac_exeext
35609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35610 (eval $ac_link) 2>conftest.er1
a848cd7e 35611 ac_status=$?
ac1cb8d3
VS
35612 grep -v '^ *+' conftest.er1 >conftest.err
35613 rm -f conftest.er1
35614 cat conftest.err >&5
a848cd7e
SC
35615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616 (exit $ac_status); } &&
9dd0f6c2 35617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35619 (eval $ac_try) 2>&5
35620 ac_status=$?
35621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35622 (exit $ac_status); }; } &&
35623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35625 (eval $ac_try) 2>&5
35626 ac_status=$?
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); }; }; then
35629 eval "$as_ac_var=yes"
35630else
35631 echo "$as_me: failed program was:" >&5
35632sed 's/^/| /' conftest.$ac_ext >&5
35633
35634eval "$as_ac_var=no"
35635fi
ac1cb8d3
VS
35636rm -f conftest.err conftest.$ac_objext \
35637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35638fi
35639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35641if test `eval echo '${'$as_ac_var'}'` = yes; then
35642 cat >>confdefs.h <<_ACEOF
35643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35644_ACEOF
35645
35646 cat >>confdefs.h <<\_ACEOF
35647#define HAVE_SHL_LOAD 1
35648_ACEOF
35649
35650 HAVE_SHL_FUNCS=1
35651
35652else
35653
35654 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35655echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35656if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35657 echo $ECHO_N "(cached) $ECHO_C" >&6
35658else
35659 ac_check_lib_save_LIBS=$LIBS
35660LIBS="-lshl_load $LIBS"
35661cat >conftest.$ac_ext <<_ACEOF
35662/* confdefs.h. */
35663_ACEOF
35664cat confdefs.h >>conftest.$ac_ext
35665cat >>conftest.$ac_ext <<_ACEOF
35666/* end confdefs.h. */
35667
35668/* Override any gcc2 internal prototype to avoid an error. */
35669#ifdef __cplusplus
35670extern "C"
35671#endif
35672/* We use char because int might match the return type of a gcc2
35673 builtin and then its argument prototype would still apply. */
35674char dld ();
35675int
35676main ()
35677{
35678dld ();
35679 ;
35680 return 0;
35681}
35682_ACEOF
35683rm -f conftest.$ac_objext conftest$ac_exeext
35684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35685 (eval $ac_link) 2>conftest.er1
a848cd7e 35686 ac_status=$?
ac1cb8d3
VS
35687 grep -v '^ *+' conftest.er1 >conftest.err
35688 rm -f conftest.er1
35689 cat conftest.err >&5
a848cd7e
SC
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); } &&
9dd0f6c2 35692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35695 ac_status=$?
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; } &&
35698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35701 ac_status=$?
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; }; then
35704 ac_cv_lib_shl_load_dld=yes
35705else
35706 echo "$as_me: failed program was:" >&5
35707sed 's/^/| /' conftest.$ac_ext >&5
35708
35709ac_cv_lib_shl_load_dld=no
35710fi
ac1cb8d3
VS
35711rm -f conftest.err conftest.$ac_objext \
35712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35713LIBS=$ac_check_lib_save_LIBS
35714fi
35715echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35716echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35717if test $ac_cv_lib_shl_load_dld = yes; then
35718
35719 HAVE_SHL_FUNCS=1
35720 DL_LINK=" -ldld$DL_LINK"
35721
35722fi
35723
35724
35725fi
35726done
35727
35728
35729fi
35730
35731
35732fi
35733done
35734
35735
35736 if test "$HAVE_DL_FUNCS" = 1; then
35737
35738for ac_func in dlerror
35739do
35740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35741echo "$as_me:$LINENO: checking for $ac_func" >&5
35742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35743if eval "test \"\${$as_ac_var+set}\" = set"; then
35744 echo $ECHO_N "(cached) $ECHO_C" >&6
35745else
35746 cat >conftest.$ac_ext <<_ACEOF
35747/* confdefs.h. */
35748_ACEOF
35749cat confdefs.h >>conftest.$ac_ext
35750cat >>conftest.$ac_ext <<_ACEOF
35751/* end confdefs.h. */
ac1cb8d3
VS
35752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35754#define $ac_func innocuous_$ac_func
35755
a848cd7e
SC
35756/* System header to define __stub macros and hopefully few prototypes,
35757 which can conflict with char $ac_func (); below.
35758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35759 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35760
a848cd7e
SC
35761#ifdef __STDC__
35762# include <limits.h>
35763#else
35764# include <assert.h>
35765#endif
ac1cb8d3
VS
35766
35767#undef $ac_func
35768
a848cd7e
SC
35769/* Override any gcc2 internal prototype to avoid an error. */
35770#ifdef __cplusplus
35771extern "C"
35772{
35773#endif
35774/* We use char because int might match the return type of a gcc2
35775 builtin and then its argument prototype would still apply. */
35776char $ac_func ();
35777/* The GNU C library defines this for functions which it implements
35778 to always fail with ENOSYS. Some functions are actually named
35779 something starting with __ and the normal name is an alias. */
35780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35781choke me
35782#else
35783char (*f) () = $ac_func;
35784#endif
35785#ifdef __cplusplus
35786}
35787#endif
35788
35789int
35790main ()
35791{
35792return f != $ac_func;
35793 ;
35794 return 0;
35795}
35796_ACEOF
35797rm -f conftest.$ac_objext conftest$ac_exeext
35798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35799 (eval $ac_link) 2>conftest.er1
a848cd7e 35800 ac_status=$?
ac1cb8d3
VS
35801 grep -v '^ *+' conftest.er1 >conftest.err
35802 rm -f conftest.er1
35803 cat conftest.err >&5
a848cd7e
SC
35804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805 (exit $ac_status); } &&
9dd0f6c2 35806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35808 (eval $ac_try) 2>&5
35809 ac_status=$?
35810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35811 (exit $ac_status); }; } &&
35812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35814 (eval $ac_try) 2>&5
35815 ac_status=$?
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); }; }; then
35818 eval "$as_ac_var=yes"
35819else
35820 echo "$as_me: failed program was:" >&5
35821sed 's/^/| /' conftest.$ac_ext >&5
35822
35823eval "$as_ac_var=no"
35824fi
ac1cb8d3
VS
35825rm -f conftest.err conftest.$ac_objext \
35826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35827fi
35828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35830if test `eval echo '${'$as_ac_var'}'` = yes; then
35831 cat >>confdefs.h <<_ACEOF
35832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35833_ACEOF
35834 cat >>confdefs.h <<\_ACEOF
35835#define HAVE_DLERROR 1
35836_ACEOF
35837
35838else
35839
35840 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35841echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35842if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35843 echo $ECHO_N "(cached) $ECHO_C" >&6
35844else
35845 ac_check_lib_save_LIBS=$LIBS
35846LIBS="-ldl $LIBS"
35847cat >conftest.$ac_ext <<_ACEOF
35848/* confdefs.h. */
35849_ACEOF
35850cat confdefs.h >>conftest.$ac_ext
35851cat >>conftest.$ac_ext <<_ACEOF
35852/* end confdefs.h. */
35853
35854/* Override any gcc2 internal prototype to avoid an error. */
35855#ifdef __cplusplus
35856extern "C"
35857#endif
35858/* We use char because int might match the return type of a gcc2
35859 builtin and then its argument prototype would still apply. */
35860char dlerror ();
35861int
35862main ()
35863{
35864dlerror ();
35865 ;
35866 return 0;
35867}
35868_ACEOF
35869rm -f conftest.$ac_objext conftest$ac_exeext
35870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35871 (eval $ac_link) 2>conftest.er1
a848cd7e 35872 ac_status=$?
ac1cb8d3
VS
35873 grep -v '^ *+' conftest.er1 >conftest.err
35874 rm -f conftest.er1
35875 cat conftest.err >&5
a848cd7e
SC
35876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877 (exit $ac_status); } &&
9dd0f6c2 35878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35880 (eval $ac_try) 2>&5
35881 ac_status=$?
35882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883 (exit $ac_status); }; } &&
35884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886 (eval $ac_try) 2>&5
35887 ac_status=$?
35888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889 (exit $ac_status); }; }; then
35890 ac_cv_lib_dl_dlerror=yes
35891else
35892 echo "$as_me: failed program was:" >&5
35893sed 's/^/| /' conftest.$ac_ext >&5
35894
35895ac_cv_lib_dl_dlerror=no
35896fi
ac1cb8d3
VS
35897rm -f conftest.err conftest.$ac_objext \
35898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35899LIBS=$ac_check_lib_save_LIBS
35900fi
35901echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35902echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35903if test $ac_cv_lib_dl_dlerror = yes; then
35904 cat >>confdefs.h <<\_ACEOF
35905#define HAVE_DLERROR 1
35906_ACEOF
35907
35908fi
35909
35910
35911
35912fi
35913done
35914
35915 fi
35916 fi
35917
35918 if test "$HAVE_DL_FUNCS" = 0; then
35919 if test "$HAVE_SHL_FUNCS" = 0; then
35920 if test "$USE_UNIX" = 1; then
35921 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35922echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35923 wxUSE_DYNAMIC_LOADER=no
35924 wxUSE_DYNLIB_CLASS=no
35925 else
35926 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35927echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35928 fi
35929 fi
35930 fi
35931 fi
35932fi
35933
35934if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35935 cat >>confdefs.h <<\_ACEOF
35936#define wxUSE_DYNAMIC_LOADER 1
35937_ACEOF
35938
35939fi
35940if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35941 cat >>confdefs.h <<\_ACEOF
35942#define wxUSE_DYNLIB_CLASS 1
35943_ACEOF
35944
35945fi
35946
35947
35948
35949if test "$wxUSE_PLUGINS" = "yes" ; then
35950 if test "$wxUSE_SHARED" = "no" ; then
35951 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35952echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35953 wxUSE_PLUGINS=no
35954 fi
35955 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35956 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35957echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35958 wxUSE_PLUGINS=no
35959 fi
35960 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35961 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35962echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35963 wxUSE_PLUGINS=no
35964 fi
35965 if test "$wxUSE_PLUGINS" = "yes" ; then
35966 cat >>confdefs.h <<\_ACEOF
35967#define wxUSE_PLUGINS 1
35968_ACEOF
35969
35970 fi
35971fi
35972
35973
35974if test "$wxUSE_STL" = "yes"; then
35975 cat >>confdefs.h <<\_ACEOF
35976#define wxUSE_STL 1
35977_ACEOF
35978
35979fi
35980
35981if test "$wxUSE_APPLE_IEEE" = "yes"; then
35982 cat >>confdefs.h <<\_ACEOF
35983#define wxUSE_APPLE_IEEE 1
35984_ACEOF
35985
35986fi
35987
35988if test "$wxUSE_TIMER" = "yes"; then
35989 cat >>confdefs.h <<\_ACEOF
35990#define wxUSE_TIMER 1
35991_ACEOF
35992
35993fi
35994
35995WITH_PLUGIN_SDL=0
35996if test "$wxUSE_SOUND" = "yes"; then
35997 if test "$USE_UNIX" = "1" ; then
35998
35999for ac_header in sys/soundcard.h
36000do
36001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36002if eval "test \"\${$as_ac_Header+set}\" = set"; then
36003 echo "$as_me:$LINENO: checking for $ac_header" >&5
36004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36005if eval "test \"\${$as_ac_Header+set}\" = set"; then
36006 echo $ECHO_N "(cached) $ECHO_C" >&6
36007fi
36008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36010else
36011 # Is the header compilable?
36012echo "$as_me:$LINENO: checking $ac_header usability" >&5
36013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36014cat >conftest.$ac_ext <<_ACEOF
36015/* confdefs.h. */
36016_ACEOF
36017cat confdefs.h >>conftest.$ac_ext
36018cat >>conftest.$ac_ext <<_ACEOF
36019/* end confdefs.h. */
36020$ac_includes_default
36021#include <$ac_header>
36022_ACEOF
36023rm -f conftest.$ac_objext
36024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36025 (eval $ac_compile) 2>conftest.er1
a848cd7e 36026 ac_status=$?
ac1cb8d3
VS
36027 grep -v '^ *+' conftest.er1 >conftest.err
36028 rm -f conftest.er1
36029 cat conftest.err >&5
a848cd7e
SC
36030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031 (exit $ac_status); } &&
9dd0f6c2 36032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36034 (eval $ac_try) 2>&5
36035 ac_status=$?
36036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037 (exit $ac_status); }; } &&
36038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36040 (eval $ac_try) 2>&5
36041 ac_status=$?
36042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043 (exit $ac_status); }; }; then
36044 ac_header_compiler=yes
36045else
36046 echo "$as_me: failed program was:" >&5
36047sed 's/^/| /' conftest.$ac_ext >&5
36048
36049ac_header_compiler=no
36050fi
ac1cb8d3 36051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36053echo "${ECHO_T}$ac_header_compiler" >&6
36054
36055# Is the header present?
36056echo "$as_me:$LINENO: checking $ac_header presence" >&5
36057echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36058cat >conftest.$ac_ext <<_ACEOF
36059/* confdefs.h. */
36060_ACEOF
36061cat confdefs.h >>conftest.$ac_ext
36062cat >>conftest.$ac_ext <<_ACEOF
36063/* end confdefs.h. */
36064#include <$ac_header>
36065_ACEOF
36066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36068 ac_status=$?
36069 grep -v '^ *+' conftest.er1 >conftest.err
36070 rm -f conftest.er1
36071 cat conftest.err >&5
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); } >/dev/null; then
36074 if test -s conftest.err; then
36075 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36077 else
36078 ac_cpp_err=
36079 fi
36080else
36081 ac_cpp_err=yes
36082fi
36083if test -z "$ac_cpp_err"; then
36084 ac_header_preproc=yes
36085else
36086 echo "$as_me: failed program was:" >&5
36087sed 's/^/| /' conftest.$ac_ext >&5
36088
36089 ac_header_preproc=no
36090fi
36091rm -f conftest.err conftest.$ac_ext
36092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36093echo "${ECHO_T}$ac_header_preproc" >&6
36094
36095# So? What about this header?
ac1cb8d3
VS
36096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36097 yes:no: )
a848cd7e
SC
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36102 ac_header_preproc=yes
a848cd7e 36103 ;;
ac1cb8d3 36104 no:yes:* )
a848cd7e
SC
36105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36108echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36112echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36117 (
36118 cat <<\_ASBOX
ac1cb8d3
VS
36119## ----------------------------------------- ##
36120## Report this to wx-dev@lists.wxwidgets.org ##
36121## ----------------------------------------- ##
a848cd7e
SC
36122_ASBOX
36123 ) |
36124 sed "s/^/$as_me: WARNING: /" >&2
36125 ;;
36126esac
36127echo "$as_me:$LINENO: checking for $ac_header" >&5
36128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36129if eval "test \"\${$as_ac_Header+set}\" = set"; then
36130 echo $ECHO_N "(cached) $ECHO_C" >&6
36131else
ac1cb8d3 36132 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36133fi
36134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36136
36137fi
36138if test `eval echo '${'$as_ac_Header'}'` = yes; then
36139 cat >>confdefs.h <<_ACEOF
36140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36141_ACEOF
36142
36143fi
36144
36145done
36146
36147
36148 if test "$wxUSE_LIBSDL" != "no"; then
36149
36150# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36151if test "${with_sdl_prefix+set}" = set; then
36152 withval="$with_sdl_prefix"
36153 sdl_prefix="$withval"
36154else
36155 sdl_prefix=""
36156fi;
36157
36158# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36159if test "${with_sdl_exec_prefix+set}" = set; then
36160 withval="$with_sdl_exec_prefix"
36161 sdl_exec_prefix="$withval"
36162else
36163 sdl_exec_prefix=""
36164fi;
36165# Check whether --enable-sdltest or --disable-sdltest was given.
36166if test "${enable_sdltest+set}" = set; then
36167 enableval="$enable_sdltest"
36168
36169else
36170 enable_sdltest=yes
36171fi;
36172
36173 if test x$sdl_exec_prefix != x ; then
36174 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36175 if test x${SDL_CONFIG+set} != xset ; then
36176 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36177 fi
36178 fi
36179 if test x$sdl_prefix != x ; then
36180 sdl_args="$sdl_args --prefix=$sdl_prefix"
36181 if test x${SDL_CONFIG+set} != xset ; then
36182 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36183 fi
36184 fi
36185
36186
36187 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36188 # Extract the first word of "sdl-config", so it can be a program name with args.
36189set dummy sdl-config; ac_word=$2
36190echo "$as_me:$LINENO: checking for $ac_word" >&5
36191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36192if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36193 echo $ECHO_N "(cached) $ECHO_C" >&6
36194else
36195 case $SDL_CONFIG in
36196 [\\/]* | ?:[\\/]*)
36197 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36198 ;;
36199 *)
36200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36201for as_dir in $PATH
36202do
36203 IFS=$as_save_IFS
36204 test -z "$as_dir" && as_dir=.
36205 for ac_exec_ext in '' $ac_executable_extensions; do
36206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36207 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36209 break 2
36210 fi
36211done
36212done
36213
36214 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36215 ;;
36216esac
36217fi
36218SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36219
36220if test -n "$SDL_CONFIG"; then
36221 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36222echo "${ECHO_T}$SDL_CONFIG" >&6
36223else
36224 echo "$as_me:$LINENO: result: no" >&5
36225echo "${ECHO_T}no" >&6
36226fi
36227
36228 min_sdl_version=1.2.0
36229 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36230echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36231 no_sdl=""
36232 if test "$SDL_CONFIG" = "no" ; then
36233 no_sdl=yes
36234 else
36235 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36236 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36237
36238 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36240 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36242 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36244 if test "x$enable_sdltest" = "xyes" ; then
36245 ac_save_CFLAGS="$CFLAGS"
94acd38e 36246 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36247 ac_save_LIBS="$LIBS"
36248 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36249 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36250 LIBS="$LIBS $SDL_LIBS"
36251 rm -f conf.sdltest
36252 if test "$cross_compiling" = yes; then
36253 echo $ac_n "cross compiling; assumed OK... $ac_c"
36254else
36255 cat >conftest.$ac_ext <<_ACEOF
36256/* confdefs.h. */
36257_ACEOF
36258cat confdefs.h >>conftest.$ac_ext
36259cat >>conftest.$ac_ext <<_ACEOF
36260/* end confdefs.h. */
36261
36262#include <stdio.h>
36263#include <stdlib.h>
36264#include <string.h>
36265#include "SDL.h"
36266
36267char*
36268my_strdup (char *str)
36269{
36270 char *new_str;
36271
36272 if (str)
36273 {
36274 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36275 strcpy (new_str, str);
36276 }
36277 else
36278 new_str = NULL;
36279
36280 return new_str;
36281}
36282
36283int main (int argc, char *argv[])
36284{
36285 int major, minor, micro;
36286 char *tmp_version;
36287
36288 /* This hangs on some systems (?)
36289 system ("touch conf.sdltest");
36290 */
36291 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36292
36293 /* HP/UX 9 (%@#!) writes to sscanf strings */
36294 tmp_version = my_strdup("$min_sdl_version");
36295 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36296 printf("%s, bad version string\n", "$min_sdl_version");
36297 exit(1);
36298 }
36299
36300 if (($sdl_major_version > major) ||
36301 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36302 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36303 {
36304 return 0;
36305 }
36306 else
36307 {
36308 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36309 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36310 printf("*** best to upgrade to the required version.\n");
36311 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36312 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36313 printf("*** config.cache before re-running configure\n");
36314 return 1;
36315 }
36316}
36317
36318
36319_ACEOF
36320rm -f conftest$ac_exeext
36321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36322 (eval $ac_link) 2>&5
36323 ac_status=$?
36324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36327 (eval $ac_try) 2>&5
36328 ac_status=$?
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); }; }; then
36331 :
36332else
36333 echo "$as_me: program exited with status $ac_status" >&5
36334echo "$as_me: failed program was:" >&5
36335sed 's/^/| /' conftest.$ac_ext >&5
36336
36337( exit $ac_status )
36338no_sdl=yes
36339fi
ac1cb8d3 36340rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36341fi
36342 CFLAGS="$ac_save_CFLAGS"
94acd38e 36343 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36344 LIBS="$ac_save_LIBS"
36345 fi
36346 fi
36347 if test "x$no_sdl" = x ; then
36348 echo "$as_me:$LINENO: result: yes" >&5
36349echo "${ECHO_T}yes" >&6
36350
36351 EXTRALIBS_SDL="$SDL_LIBS"
36352 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36353 cat >>confdefs.h <<\_ACEOF
36354#define wxUSE_LIBSDL 1
36355_ACEOF
36356
36357
36358 else
36359 echo "$as_me:$LINENO: result: no" >&5
36360echo "${ECHO_T}no" >&6
36361 if test "$SDL_CONFIG" = "no" ; then
36362 echo "*** The sdl-config script installed by SDL could not be found"
36363 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36364 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36365 echo "*** full path to sdl-config."
36366 else
36367 if test -f conf.sdltest ; then
36368 :
36369 else
36370 echo "*** Could not run SDL test program, checking why..."
36371 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36372 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36373 LIBS="$LIBS $SDL_LIBS"
36374 cat >conftest.$ac_ext <<_ACEOF
36375/* confdefs.h. */
36376_ACEOF
36377cat confdefs.h >>conftest.$ac_ext
36378cat >>conftest.$ac_ext <<_ACEOF
36379/* end confdefs.h. */
36380
36381#include <stdio.h>
36382#include "SDL.h"
36383
36384int main(int argc, char *argv[])
36385{ return 0; }
36386#undef main
36387#define main K_and_R_C_main
36388
36389int
36390main ()
36391{
36392 return 0;
36393 ;
36394 return 0;
36395}
36396_ACEOF
36397rm -f conftest.$ac_objext conftest$ac_exeext
36398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36399 (eval $ac_link) 2>conftest.er1
a848cd7e 36400 ac_status=$?
ac1cb8d3
VS
36401 grep -v '^ *+' conftest.er1 >conftest.err
36402 rm -f conftest.er1
36403 cat conftest.err >&5
a848cd7e
SC
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); } &&
9dd0f6c2 36406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36408 (eval $ac_try) 2>&5
36409 ac_status=$?
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); }; } &&
36412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36414 (eval $ac_try) 2>&5
36415 ac_status=$?
36416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417 (exit $ac_status); }; }; then
36418 echo "*** The test program compiled, but did not run. This usually means"
36419 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36420 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36421 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36422 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36423 echo "*** is required on your system"
36424 echo "***"
36425 echo "*** If you have an old version installed, it is best to remove it, although"
36426 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36427else
36428 echo "$as_me: failed program was:" >&5
36429sed 's/^/| /' conftest.$ac_ext >&5
36430
36431 echo "*** The test program failed to compile or link. See the file config.log for the"
36432 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36433 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36434 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36435fi
ac1cb8d3
VS
36436rm -f conftest.err conftest.$ac_objext \
36437 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36438 CFLAGS="$ac_save_CFLAGS"
94acd38e 36439 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36440 LIBS="$ac_save_LIBS"
36441 fi
36442 fi
36443 SDL_CFLAGS=""
36444 SDL_LIBS=""
36445 wxUSE_LIBSDL="no"
36446 fi
36447
36448
36449 rm -f conf.sdltest
36450
36451 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36452 WITH_PLUGIN_SDL=1
36453 fi
36454 fi
36455 fi
36456
36457 cat >>confdefs.h <<\_ACEOF
36458#define wxUSE_SOUND 1
36459_ACEOF
36460
36461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36462fi
36463
d1c38808
VZ
36464if test "$WXGTK20" = 1; then
36465 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36466 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36467
36468
36469 succeeded=no
36470
36471 if test -z "$PKG_CONFIG"; then
36472 # Extract the first word of "pkg-config", so it can be a program name with args.
36473set dummy pkg-config; ac_word=$2
36474echo "$as_me:$LINENO: checking for $ac_word" >&5
36475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36476if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36477 echo $ECHO_N "(cached) $ECHO_C" >&6
36478else
36479 case $PKG_CONFIG in
36480 [\\/]* | ?:[\\/]*)
36481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36482 ;;
36483 *)
36484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36485for as_dir in $PATH
36486do
36487 IFS=$as_save_IFS
36488 test -z "$as_dir" && as_dir=.
36489 for ac_exec_ext in '' $ac_executable_extensions; do
36490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36493 break 2
36494 fi
36495done
36496done
36497
36498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36499 ;;
36500esac
36501fi
36502PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36503
36504if test -n "$PKG_CONFIG"; then
36505 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36506echo "${ECHO_T}$PKG_CONFIG" >&6
36507else
36508 echo "$as_me:$LINENO: result: no" >&5
36509echo "${ECHO_T}no" >&6
36510fi
36511
36512 fi
36513
36514 if test "$PKG_CONFIG" = "no" ; then
36515 echo "*** The pkg-config script could not be found. Make sure it is"
36516 echo "*** in your path, or set the PKG_CONFIG environment variable"
36517 echo "*** to the full path to pkg-config."
36518 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36519 else
36520 PKG_CONFIG_MIN_VERSION=0.9.0
36521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36522 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36523echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36524
ffa762ff 36525 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36526 echo "$as_me:$LINENO: result: yes" >&5
36527echo "${ECHO_T}yes" >&6
36528 succeeded=yes
36529
36530 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36531echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36532 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36533 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36534echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36535
36536 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36537echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36538 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36539 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36540echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36541 else
36542 LIBGNOMEPRINTUI_CFLAGS=""
36543 LIBGNOMEPRINTUI_LIBS=""
36544 ## If we have a custom action on failure, don't print errors, but
36545 ## do set a variable so people can do so.
ffa762ff 36546 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36547
36548 fi
36549
36550
36551
36552 else
36553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36555 fi
36556 fi
36557
36558 if test $succeeded = yes; then
36559
d1c38808
VZ
36560 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36561 cat >>confdefs.h <<\_ACEOF
36562#define wxUSE_LIBGNOMEPRINT 1
36563_ACEOF
36564
36565
36566 else
36567
36568 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36569echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36570 wxUSE_LIBGNOMEPRINT="no"
36571
36572
36573 fi
36574
36575 fi
36576 fi
36577fi
36578
36579
a848cd7e
SC
36580if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36581 cat >>confdefs.h <<\_ACEOF
36582#define wxUSE_CMDLINE_PARSER 1
36583_ACEOF
36584
36585fi
36586
36587if test "$wxUSE_STOPWATCH" = "yes"; then
36588 cat >>confdefs.h <<\_ACEOF
36589#define wxUSE_STOPWATCH 1
36590_ACEOF
36591
36592fi
36593
36594if test "$wxUSE_DATETIME" = "yes"; then
36595 cat >>confdefs.h <<\_ACEOF
36596#define wxUSE_DATETIME 1
36597_ACEOF
36598
36599fi
36600
36601if test "$wxUSE_FILE" = "yes"; then
36602 cat >>confdefs.h <<\_ACEOF
36603#define wxUSE_FILE 1
36604_ACEOF
36605
36606fi
36607
36608if test "$wxUSE_FFILE" = "yes"; then
36609 cat >>confdefs.h <<\_ACEOF
36610#define wxUSE_FFILE 1
36611_ACEOF
36612
36613fi
36614
36615if test "$wxUSE_FILESYSTEM" = "yes"; then
36616 cat >>confdefs.h <<\_ACEOF
36617#define wxUSE_FILESYSTEM 1
36618_ACEOF
36619
36620fi
36621
36622if test "$wxUSE_FS_ZIP" = "yes"; then
36623 cat >>confdefs.h <<\_ACEOF
36624#define wxUSE_FS_ZIP 1
36625_ACEOF
36626
36627fi
36628
9e8e867f 36629if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36630 cat >>confdefs.h <<\_ACEOF
9e8e867f 36631#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36632_ACEOF
36633
36634fi
36635
36636if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36637 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36638 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36639echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36640 elif test "$wxUSE_ZLIB" = "no"; then
36641 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36642echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36643 else
36644 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36645#define wxUSE_ZIPSTREAM 1
36646_ACEOF
36647
81f90336 36648 fi
a848cd7e
SC
36649fi
36650
a848cd7e
SC
36651if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36652 cat >>confdefs.h <<\_ACEOF
36653#define wxUSE_ON_FATAL_EXCEPTION 1
36654_ACEOF
36655
36656fi
36657
eaff0f0d
VZ
36658if test "$wxUSE_STACKWALKER" = "yes"; then
36659 cat >>confdefs.h <<\_ACEOF
36660#define wxUSE_STACKWALKER 1
36661_ACEOF
36662
36663fi
36664
36b6448c 36665if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36666 if test "$USE_OS2" = "1"; then
36667 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36668echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36669 wxUSE_DEBUGREPORT=no
36670 else
36671 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36672#define wxUSE_DEBUGREPORT 1
36673_ACEOF
36674
dfe0c803
JS
36675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36676 fi
36b6448c
VZ
36677fi
36678
a848cd7e
SC
36679if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36680 cat >>confdefs.h <<\_ACEOF
36681#define wxUSE_SNGLINST_CHECKER 1
36682_ACEOF
36683
36684fi
36685
36686if test "$wxUSE_BUSYINFO" = "yes"; then
36687 cat >>confdefs.h <<\_ACEOF
36688#define wxUSE_BUSYINFO 1
36689_ACEOF
36690
36691fi
36692
36693if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36694 cat >>confdefs.h <<\_ACEOF
36695#define wxUSE_STD_IOSTREAM 1
36696_ACEOF
36697
36698fi
36699
59746b65
MW
36700if test "$wxUSE_STD_STRING" = "yes"; then
36701 cat >>confdefs.h <<\_ACEOF
36702#define wxUSE_STD_STRING 1
36703_ACEOF
36704
36705fi
36706
07158944
VZ
36707if test "$wxUSE_STDPATHS" = "yes"; then
36708 cat >>confdefs.h <<\_ACEOF
36709#define wxUSE_STDPATHS 1
36710_ACEOF
36711
36712fi
36713
a848cd7e
SC
36714if test "$wxUSE_TEXTBUFFER" = "yes"; then
36715 cat >>confdefs.h <<\_ACEOF
36716#define wxUSE_TEXTBUFFER 1
36717_ACEOF
36718
36719fi
36720
36721if test "$wxUSE_TEXTFILE" = "yes"; then
36722 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36723 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36724echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36725 else
36726 cat >>confdefs.h <<\_ACEOF
36727#define wxUSE_TEXTFILE 1
36728_ACEOF
36729
36730 fi
36731fi
36732
36733if test "$wxUSE_CONFIG" = "yes" ; then
36734 if test "$wxUSE_TEXTFILE" != "yes"; then
36735 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36736echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36737 else
36738 cat >>confdefs.h <<\_ACEOF
36739#define wxUSE_CONFIG 1
89be85c2
VS
36740_ACEOF
36741
36742 cat >>confdefs.h <<\_ACEOF
36743#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36744_ACEOF
36745
36746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36747 fi
36748fi
36749
36750if test "$wxUSE_INTL" = "yes" ; then
36751 if test "$wxUSE_FILE" != "yes"; then
36752 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36753echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36754 else
36755 cat >>confdefs.h <<\_ACEOF
36756#define wxUSE_INTL 1
36757_ACEOF
36758
36759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36760 GUIDIST="$GUIDIST INTL_DIST"
36761 fi
36762fi
36763
36764if test "$wxUSE_LOG" = "yes"; then
36765 cat >>confdefs.h <<\_ACEOF
36766#define wxUSE_LOG 1
36767_ACEOF
36768
36769
36770 if test "$wxUSE_LOGGUI" = "yes"; then
36771 cat >>confdefs.h <<\_ACEOF
36772#define wxUSE_LOGGUI 1
36773_ACEOF
36774
36775 fi
36776
36777 if test "$wxUSE_LOGWINDOW" = "yes"; then
36778 cat >>confdefs.h <<\_ACEOF
36779#define wxUSE_LOGWINDOW 1
36780_ACEOF
36781
36782 fi
36783
36784 if test "$wxUSE_LOGDIALOG" = "yes"; then
36785 cat >>confdefs.h <<\_ACEOF
36786#define wxUSE_LOG_DIALOG 1
36787_ACEOF
36788
36789 fi
0b78747f
MW
36790
36791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36792fi
36793
36794if test "$wxUSE_LONGLONG" = "yes"; then
36795 cat >>confdefs.h <<\_ACEOF
36796#define wxUSE_LONGLONG 1
36797_ACEOF
36798
36799fi
36800
36801if test "$wxUSE_GEOMETRY" = "yes"; then
36802 cat >>confdefs.h <<\_ACEOF
36803#define wxUSE_GEOMETRY 1
36804_ACEOF
36805
36806fi
36807
a848cd7e
SC
36808if test "$wxUSE_STREAMS" = "yes" ; then
36809 cat >>confdefs.h <<\_ACEOF
36810#define wxUSE_STREAMS 1
36811_ACEOF
36812
36813fi
36814
36815
36816if test "$wxUSE_DATETIME" = "yes"; then
36817
36818for ac_func in strptime
36819do
36820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36821echo "$as_me:$LINENO: checking for $ac_func" >&5
36822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36823if eval "test \"\${$as_ac_var+set}\" = set"; then
36824 echo $ECHO_N "(cached) $ECHO_C" >&6
36825else
36826 cat >conftest.$ac_ext <<_ACEOF
36827/* confdefs.h. */
36828_ACEOF
36829cat confdefs.h >>conftest.$ac_ext
36830cat >>conftest.$ac_ext <<_ACEOF
36831/* end confdefs.h. */
ac1cb8d3
VS
36832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36834#define $ac_func innocuous_$ac_func
36835
a848cd7e
SC
36836/* System header to define __stub macros and hopefully few prototypes,
36837 which can conflict with char $ac_func (); below.
36838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36840
a848cd7e
SC
36841#ifdef __STDC__
36842# include <limits.h>
36843#else
36844# include <assert.h>
36845#endif
ac1cb8d3
VS
36846
36847#undef $ac_func
36848
a848cd7e
SC
36849/* Override any gcc2 internal prototype to avoid an error. */
36850#ifdef __cplusplus
36851extern "C"
36852{
36853#endif
36854/* We use char because int might match the return type of a gcc2
36855 builtin and then its argument prototype would still apply. */
36856char $ac_func ();
36857/* The GNU C library defines this for functions which it implements
36858 to always fail with ENOSYS. Some functions are actually named
36859 something starting with __ and the normal name is an alias. */
36860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36861choke me
36862#else
36863char (*f) () = $ac_func;
36864#endif
36865#ifdef __cplusplus
36866}
36867#endif
36868
36869int
36870main ()
36871{
36872return f != $ac_func;
36873 ;
36874 return 0;
36875}
36876_ACEOF
36877rm -f conftest.$ac_objext conftest$ac_exeext
36878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36879 (eval $ac_link) 2>conftest.er1
a848cd7e 36880 ac_status=$?
ac1cb8d3
VS
36881 grep -v '^ *+' conftest.er1 >conftest.err
36882 rm -f conftest.er1
36883 cat conftest.err >&5
a848cd7e
SC
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); } &&
9dd0f6c2 36886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36889 ac_status=$?
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; } &&
36892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36894 (eval $ac_try) 2>&5
36895 ac_status=$?
36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897 (exit $ac_status); }; }; then
36898 eval "$as_ac_var=yes"
36899else
36900 echo "$as_me: failed program was:" >&5
36901sed 's/^/| /' conftest.$ac_ext >&5
36902
36903eval "$as_ac_var=no"
36904fi
ac1cb8d3
VS
36905rm -f conftest.err conftest.$ac_objext \
36906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36907fi
36908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36910if test `eval echo '${'$as_ac_var'}'` = yes; then
36911 cat >>confdefs.h <<_ACEOF
36912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36913_ACEOF
36914
36915fi
36916done
36917
36918
36919 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36920echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36921if test "${wx_cv_var_timezone+set}" = set; then
36922 echo $ECHO_N "(cached) $ECHO_C" >&6
36923else
36924
36925 cat >conftest.$ac_ext <<_ACEOF
36926/* confdefs.h. */
36927_ACEOF
36928cat confdefs.h >>conftest.$ac_ext
36929cat >>conftest.$ac_ext <<_ACEOF
36930/* end confdefs.h. */
36931
36932 #include <time.h>
36933
36934int
36935main ()
36936{
36937
36938 int tz;
36939 tz = timezone;
36940
36941 ;
36942 return 0;
36943}
36944_ACEOF
36945rm -f conftest.$ac_objext
36946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36947 (eval $ac_compile) 2>conftest.er1
a848cd7e 36948 ac_status=$?
ac1cb8d3
VS
36949 grep -v '^ *+' conftest.er1 >conftest.err
36950 rm -f conftest.er1
36951 cat conftest.err >&5
a848cd7e
SC
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); } &&
9dd0f6c2 36954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956 (eval $ac_try) 2>&5
36957 ac_status=$?
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; } &&
36960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36962 (eval $ac_try) 2>&5
36963 ac_status=$?
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); }; }; then
36966
36967 wx_cv_var_timezone=timezone
36968
36969else
36970 echo "$as_me: failed program was:" >&5
36971sed 's/^/| /' conftest.$ac_ext >&5
36972
36973
36974 cat >conftest.$ac_ext <<_ACEOF
36975/* confdefs.h. */
36976_ACEOF
36977cat confdefs.h >>conftest.$ac_ext
36978cat >>conftest.$ac_ext <<_ACEOF
36979/* end confdefs.h. */
36980
36981 #include <time.h>
36982
36983int
36984main ()
36985{
36986
36987 int tz;
36988 tz = _timezone;
36989
36990 ;
36991 return 0;
36992}
36993_ACEOF
36994rm -f conftest.$ac_objext
36995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36996 (eval $ac_compile) 2>conftest.er1
a848cd7e 36997 ac_status=$?
ac1cb8d3
VS
36998 grep -v '^ *+' conftest.er1 >conftest.err
36999 rm -f conftest.er1
37000 cat conftest.err >&5
a848cd7e
SC
37001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); } &&
9dd0f6c2 37003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37005 (eval $ac_try) 2>&5
37006 ac_status=$?
37007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008 (exit $ac_status); }; } &&
37009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37011 (eval $ac_try) 2>&5
37012 ac_status=$?
37013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37014 (exit $ac_status); }; }; then
37015
37016 wx_cv_var_timezone=_timezone
37017
37018else
37019 echo "$as_me: failed program was:" >&5
37020sed 's/^/| /' conftest.$ac_ext >&5
37021
37022
37023 cat >conftest.$ac_ext <<_ACEOF
37024/* confdefs.h. */
37025_ACEOF
37026cat confdefs.h >>conftest.$ac_ext
37027cat >>conftest.$ac_ext <<_ACEOF
37028/* end confdefs.h. */
37029
37030 #include <time.h>
37031
37032int
37033main ()
37034{
37035
37036 int tz;
37037 tz = __timezone;
37038
37039 ;
37040 return 0;
37041}
37042_ACEOF
37043rm -f conftest.$ac_objext
37044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37045 (eval $ac_compile) 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); } &&
9dd0f6c2 37052 { ac_try='test -z "$ac_c_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_objext'
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
37065 wx_cv_var_timezone=__timezone
37066
37067else
37068 echo "$as_me: failed program was:" >&5
37069sed 's/^/| /' conftest.$ac_ext >&5
37070
37071
37072 if test "$USE_DOS" = 0 ; then
37073 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37074echo "$as_me: WARNING: no timezone variable" >&2;}
37075 fi
37076
37077
37078fi
ac1cb8d3 37079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37080
37081
37082fi
ac1cb8d3 37083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37084
37085
37086fi
ac1cb8d3 37087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37088
37089
37090fi
37091echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37092echo "${ECHO_T}$wx_cv_var_timezone" >&6
37093
37094 if test "x$wx_cv_var_timezone" != x ; then
37095 cat >>confdefs.h <<_ACEOF
37096#define WX_TIMEZONE $wx_cv_var_timezone
37097_ACEOF
37098
37099 fi
37100
37101
37102for ac_func in localtime
37103do
37104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37105echo "$as_me:$LINENO: checking for $ac_func" >&5
37106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37107if eval "test \"\${$as_ac_var+set}\" = set"; then
37108 echo $ECHO_N "(cached) $ECHO_C" >&6
37109else
37110 cat >conftest.$ac_ext <<_ACEOF
37111/* confdefs.h. */
37112_ACEOF
37113cat confdefs.h >>conftest.$ac_ext
37114cat >>conftest.$ac_ext <<_ACEOF
37115/* end confdefs.h. */
ac1cb8d3
VS
37116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37118#define $ac_func innocuous_$ac_func
37119
a848cd7e
SC
37120/* System header to define __stub macros and hopefully few prototypes,
37121 which can conflict with char $ac_func (); below.
37122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37123 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37124
a848cd7e
SC
37125#ifdef __STDC__
37126# include <limits.h>
37127#else
37128# include <assert.h>
37129#endif
ac1cb8d3
VS
37130
37131#undef $ac_func
37132
a848cd7e
SC
37133/* Override any gcc2 internal prototype to avoid an error. */
37134#ifdef __cplusplus
37135extern "C"
37136{
37137#endif
37138/* We use char because int might match the return type of a gcc2
37139 builtin and then its argument prototype would still apply. */
37140char $ac_func ();
37141/* The GNU C library defines this for functions which it implements
37142 to always fail with ENOSYS. Some functions are actually named
37143 something starting with __ and the normal name is an alias. */
37144#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37145choke me
37146#else
37147char (*f) () = $ac_func;
37148#endif
37149#ifdef __cplusplus
37150}
37151#endif
37152
37153int
37154main ()
37155{
37156return f != $ac_func;
37157 ;
37158 return 0;
37159}
37160_ACEOF
37161rm -f conftest.$ac_objext conftest$ac_exeext
37162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37163 (eval $ac_link) 2>conftest.er1
a848cd7e 37164 ac_status=$?
ac1cb8d3
VS
37165 grep -v '^ *+' conftest.er1 >conftest.err
37166 rm -f conftest.er1
37167 cat conftest.err >&5
a848cd7e
SC
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); } &&
9dd0f6c2 37170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37173 ac_status=$?
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; } &&
37176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178 (eval $ac_try) 2>&5
37179 ac_status=$?
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); }; }; then
37182 eval "$as_ac_var=yes"
37183else
37184 echo "$as_me: failed program was:" >&5
37185sed 's/^/| /' conftest.$ac_ext >&5
37186
37187eval "$as_ac_var=no"
37188fi
ac1cb8d3
VS
37189rm -f conftest.err conftest.$ac_objext \
37190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37191fi
37192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37194if test `eval echo '${'$as_ac_var'}'` = yes; then
37195 cat >>confdefs.h <<_ACEOF
37196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37197_ACEOF
37198
37199fi
37200done
37201
37202
37203 if test "$ac_cv_func_localtime" = "yes"; then
37204 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37205echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37206if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37207 echo $ECHO_N "(cached) $ECHO_C" >&6
37208else
37209
37210 cat >conftest.$ac_ext <<_ACEOF
37211/* confdefs.h. */
37212_ACEOF
37213cat confdefs.h >>conftest.$ac_ext
37214cat >>conftest.$ac_ext <<_ACEOF
37215/* end confdefs.h. */
37216
37217 #include <time.h>
37218
37219int
37220main ()
37221{
37222
37223 struct tm tm;
37224 tm.tm_gmtoff++;
37225
37226 ;
37227 return 0;
37228}
37229_ACEOF
37230rm -f conftest.$ac_objext
37231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37232 (eval $ac_compile) 2>conftest.er1
a848cd7e 37233 ac_status=$?
ac1cb8d3
VS
37234 grep -v '^ *+' conftest.er1 >conftest.err
37235 rm -f conftest.er1
37236 cat conftest.err >&5
a848cd7e
SC
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); } &&
9dd0f6c2 37239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37241 (eval $ac_try) 2>&5
37242 ac_status=$?
37243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244 (exit $ac_status); }; } &&
37245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37247 (eval $ac_try) 2>&5
37248 ac_status=$?
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); }; }; then
37251
37252 wx_cv_struct_tm_has_gmtoff=yes
37253
37254else
37255 echo "$as_me: failed program was:" >&5
37256sed 's/^/| /' conftest.$ac_ext >&5
37257
37258wx_cv_struct_tm_has_gmtoff=no
37259
37260fi
ac1cb8d3 37261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37262
37263fi
37264echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37265echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37266 fi
37267
37268 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37269 cat >>confdefs.h <<\_ACEOF
37270#define WX_GMTOFF_IN_TM 1
37271_ACEOF
37272
37273 fi
37274
37275
37276
37277for ac_func in gettimeofday ftime
37278do
37279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37280echo "$as_me:$LINENO: checking for $ac_func" >&5
37281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37282if eval "test \"\${$as_ac_var+set}\" = set"; then
37283 echo $ECHO_N "(cached) $ECHO_C" >&6
37284else
37285 cat >conftest.$ac_ext <<_ACEOF
37286/* confdefs.h. */
37287_ACEOF
37288cat confdefs.h >>conftest.$ac_ext
37289cat >>conftest.$ac_ext <<_ACEOF
37290/* end confdefs.h. */
ac1cb8d3
VS
37291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37293#define $ac_func innocuous_$ac_func
37294
a848cd7e
SC
37295/* System header to define __stub macros and hopefully few prototypes,
37296 which can conflict with char $ac_func (); below.
37297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37298 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37299
a848cd7e
SC
37300#ifdef __STDC__
37301# include <limits.h>
37302#else
37303# include <assert.h>
37304#endif
ac1cb8d3
VS
37305
37306#undef $ac_func
37307
a848cd7e
SC
37308/* Override any gcc2 internal prototype to avoid an error. */
37309#ifdef __cplusplus
37310extern "C"
37311{
37312#endif
37313/* We use char because int might match the return type of a gcc2
37314 builtin and then its argument prototype would still apply. */
37315char $ac_func ();
37316/* The GNU C library defines this for functions which it implements
37317 to always fail with ENOSYS. Some functions are actually named
37318 something starting with __ and the normal name is an alias. */
37319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37320choke me
37321#else
37322char (*f) () = $ac_func;
37323#endif
37324#ifdef __cplusplus
37325}
37326#endif
37327
37328int
37329main ()
37330{
37331return f != $ac_func;
37332 ;
37333 return 0;
37334}
37335_ACEOF
37336rm -f conftest.$ac_objext conftest$ac_exeext
37337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37338 (eval $ac_link) 2>conftest.er1
a848cd7e 37339 ac_status=$?
ac1cb8d3
VS
37340 grep -v '^ *+' conftest.er1 >conftest.err
37341 rm -f conftest.er1
37342 cat conftest.err >&5
a848cd7e
SC
37343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37344 (exit $ac_status); } &&
9dd0f6c2 37345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37347 (eval $ac_try) 2>&5
37348 ac_status=$?
37349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350 (exit $ac_status); }; } &&
37351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353 (eval $ac_try) 2>&5
37354 ac_status=$?
37355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356 (exit $ac_status); }; }; then
37357 eval "$as_ac_var=yes"
37358else
37359 echo "$as_me: failed program was:" >&5
37360sed 's/^/| /' conftest.$ac_ext >&5
37361
37362eval "$as_ac_var=no"
37363fi
ac1cb8d3
VS
37364rm -f conftest.err conftest.$ac_objext \
37365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37366fi
37367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37368echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37369if test `eval echo '${'$as_ac_var'}'` = yes; then
37370 cat >>confdefs.h <<_ACEOF
37371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37372_ACEOF
37373 break
37374fi
37375done
37376
37377
37378 if test "$ac_cv_func_gettimeofday" = "yes"; then
37379 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37380echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37381if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37382 echo $ECHO_N "(cached) $ECHO_C" >&6
37383else
37384
37385
37386
37387 ac_ext=cc
37388ac_cpp='$CXXCPP $CPPFLAGS'
37389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37392
37393
37394 cat >conftest.$ac_ext <<_ACEOF
37395/* confdefs.h. */
37396_ACEOF
37397cat confdefs.h >>conftest.$ac_ext
37398cat >>conftest.$ac_ext <<_ACEOF
37399/* end confdefs.h. */
37400
37401 #include <sys/time.h>
37402 #include <unistd.h>
37403
37404int
37405main ()
37406{
37407
37408 struct timeval tv;
37409 gettimeofday(&tv, NULL);
37410
37411 ;
37412 return 0;
37413}
37414_ACEOF
37415rm -f conftest.$ac_objext
37416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37417 (eval $ac_compile) 2>conftest.er1
a848cd7e 37418 ac_status=$?
ac1cb8d3
VS
37419 grep -v '^ *+' conftest.er1 >conftest.err
37420 rm -f conftest.er1
37421 cat conftest.err >&5
a848cd7e
SC
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); } &&
9dd0f6c2 37424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37426 (eval $ac_try) 2>&5
37427 ac_status=$?
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); }; } &&
37430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37432 (eval $ac_try) 2>&5
37433 ac_status=$?
37434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); }; }; then
37436 wx_cv_func_gettimeofday_has_2_args=yes
37437else
37438 echo "$as_me: failed program was:" >&5
37439sed 's/^/| /' conftest.$ac_ext >&5
37440
37441cat >conftest.$ac_ext <<_ACEOF
37442/* confdefs.h. */
37443_ACEOF
37444cat confdefs.h >>conftest.$ac_ext
37445cat >>conftest.$ac_ext <<_ACEOF
37446/* end confdefs.h. */
37447
37448 #include <sys/time.h>
37449 #include <unistd.h>
37450
37451int
37452main ()
37453{
37454
37455 struct timeval tv;
37456 gettimeofday(&tv);
37457
37458 ;
37459 return 0;
37460}
37461_ACEOF
37462rm -f conftest.$ac_objext
37463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37464 (eval $ac_compile) 2>conftest.er1
a848cd7e 37465 ac_status=$?
ac1cb8d3
VS
37466 grep -v '^ *+' conftest.er1 >conftest.err
37467 rm -f conftest.er1
37468 cat conftest.err >&5
a848cd7e
SC
37469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470 (exit $ac_status); } &&
9dd0f6c2 37471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37473 (eval $ac_try) 2>&5
37474 ac_status=$?
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); }; } &&
37477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37479 (eval $ac_try) 2>&5
37480 ac_status=$?
37481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 (exit $ac_status); }; }; then
37483 wx_cv_func_gettimeofday_has_2_args=no
37484else
37485 echo "$as_me: failed program was:" >&5
37486sed 's/^/| /' conftest.$ac_ext >&5
37487
37488
37489 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37490echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37491 wx_cv_func_gettimeofday_has_2_args=unknown
37492
37493
37494fi
ac1cb8d3 37495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37496
37497fi
ac1cb8d3 37498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37499 ac_ext=c
37500ac_cpp='$CPP $CPPFLAGS'
37501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37503ac_compiler_gnu=$ac_cv_c_compiler_gnu
37504
37505
37506fi
37507echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37508echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37509
37510 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37511 cat >>confdefs.h <<\_ACEOF
37512#define WX_GETTIMEOFDAY_NO_TZ 1
37513_ACEOF
37514
37515 fi
37516 fi
37517
37518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37519fi
37520
37521
37522if test "$wxUSE_SOCKETS" = "yes"; then
37523 if test "$wxUSE_MGL" = "1"; then
37524 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37525echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37526 wxUSE_SOCKETS="no"
37527 fi
37528fi
37529
37530if test "$wxUSE_SOCKETS" = "yes"; then
37531 if test "$TOOLKIT" != "MSW"; then
37532 echo "$as_me:$LINENO: checking for socket" >&5
37533echo $ECHO_N "checking for socket... $ECHO_C" >&6
37534if test "${ac_cv_func_socket+set}" = set; then
37535 echo $ECHO_N "(cached) $ECHO_C" >&6
37536else
37537 cat >conftest.$ac_ext <<_ACEOF
37538/* confdefs.h. */
37539_ACEOF
37540cat confdefs.h >>conftest.$ac_ext
37541cat >>conftest.$ac_ext <<_ACEOF
37542/* end confdefs.h. */
ac1cb8d3
VS
37543/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37545#define socket innocuous_socket
37546
a848cd7e
SC
37547/* System header to define __stub macros and hopefully few prototypes,
37548 which can conflict with char socket (); below.
37549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37550 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37551
a848cd7e
SC
37552#ifdef __STDC__
37553# include <limits.h>
37554#else
37555# include <assert.h>
37556#endif
ac1cb8d3
VS
37557
37558#undef socket
37559
a848cd7e
SC
37560/* Override any gcc2 internal prototype to avoid an error. */
37561#ifdef __cplusplus
37562extern "C"
37563{
37564#endif
37565/* We use char because int might match the return type of a gcc2
37566 builtin and then its argument prototype would still apply. */
37567char socket ();
37568/* The GNU C library defines this for functions which it implements
37569 to always fail with ENOSYS. Some functions are actually named
37570 something starting with __ and the normal name is an alias. */
37571#if defined (__stub_socket) || defined (__stub___socket)
37572choke me
37573#else
37574char (*f) () = socket;
37575#endif
37576#ifdef __cplusplus
37577}
37578#endif
37579
37580int
37581main ()
37582{
37583return f != socket;
37584 ;
37585 return 0;
37586}
37587_ACEOF
37588rm -f conftest.$ac_objext conftest$ac_exeext
37589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37590 (eval $ac_link) 2>conftest.er1
a848cd7e 37591 ac_status=$?
ac1cb8d3
VS
37592 grep -v '^ *+' conftest.er1 >conftest.err
37593 rm -f conftest.er1
37594 cat conftest.err >&5
a848cd7e
SC
37595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37596 (exit $ac_status); } &&
9dd0f6c2 37597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37599 (eval $ac_try) 2>&5
37600 ac_status=$?
37601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37602 (exit $ac_status); }; } &&
37603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605 (eval $ac_try) 2>&5
37606 ac_status=$?
37607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); }; }; then
37609 ac_cv_func_socket=yes
37610else
37611 echo "$as_me: failed program was:" >&5
37612sed 's/^/| /' conftest.$ac_ext >&5
37613
37614ac_cv_func_socket=no
37615fi
ac1cb8d3
VS
37616rm -f conftest.err conftest.$ac_objext \
37617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37618fi
37619echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37620echo "${ECHO_T}$ac_cv_func_socket" >&6
37621if test $ac_cv_func_socket = yes; then
37622 :
37623else
37624
37625 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37626echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37627if test "${ac_cv_lib_socket_socket+set}" = set; then
37628 echo $ECHO_N "(cached) $ECHO_C" >&6
37629else
37630 ac_check_lib_save_LIBS=$LIBS
37631LIBS="-lsocket $LIBS"
37632cat >conftest.$ac_ext <<_ACEOF
37633/* confdefs.h. */
37634_ACEOF
37635cat confdefs.h >>conftest.$ac_ext
37636cat >>conftest.$ac_ext <<_ACEOF
37637/* end confdefs.h. */
37638
37639/* Override any gcc2 internal prototype to avoid an error. */
37640#ifdef __cplusplus
37641extern "C"
37642#endif
37643/* We use char because int might match the return type of a gcc2
37644 builtin and then its argument prototype would still apply. */
37645char socket ();
37646int
37647main ()
37648{
37649socket ();
37650 ;
37651 return 0;
37652}
37653_ACEOF
37654rm -f conftest.$ac_objext conftest$ac_exeext
37655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37656 (eval $ac_link) 2>conftest.er1
a848cd7e 37657 ac_status=$?
ac1cb8d3
VS
37658 grep -v '^ *+' conftest.er1 >conftest.err
37659 rm -f conftest.er1
37660 cat conftest.err >&5
a848cd7e
SC
37661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662 (exit $ac_status); } &&
9dd0f6c2 37663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665 (eval $ac_try) 2>&5
37666 ac_status=$?
37667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668 (exit $ac_status); }; } &&
37669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671 (eval $ac_try) 2>&5
37672 ac_status=$?
37673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674 (exit $ac_status); }; }; then
37675 ac_cv_lib_socket_socket=yes
37676else
37677 echo "$as_me: failed program was:" >&5
37678sed 's/^/| /' conftest.$ac_ext >&5
37679
37680ac_cv_lib_socket_socket=no
37681fi
ac1cb8d3
VS
37682rm -f conftest.err conftest.$ac_objext \
37683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37684LIBS=$ac_check_lib_save_LIBS
37685fi
37686echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37687echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37688if test $ac_cv_lib_socket_socket = yes; then
37689 if test "$INET_LINK" != " -lsocket"; then
37690 INET_LINK="$INET_LINK -lsocket"
37691 fi
37692else
37693
37694 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37695echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37696 wxUSE_SOCKETS=no
37697
37698
37699fi
37700
37701
37702
37703fi
37704
37705 fi
37706fi
37707
37708if test "$wxUSE_SOCKETS" = "yes" ; then
37709 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37710 ac_ext=cc
37711ac_cpp='$CXXCPP $CPPFLAGS'
37712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37715
37716 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37717echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37718if test "${wx_cv_type_getsockname3+set}" = set; then
37719 echo $ECHO_N "(cached) $ECHO_C" >&6
37720else
37721
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. */
37728
37729 #include <sys/types.h>
37730 #include <sys/socket.h>
37731
37732int
37733main ()
37734{
37735
37736 socklen_t len;
37737 getsockname(0, 0, &len);
37738
37739 ;
37740 return 0;
37741}
37742_ACEOF
37743rm -f conftest.$ac_objext
37744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37745 (eval $ac_compile) 2>conftest.er1
a848cd7e 37746 ac_status=$?
ac1cb8d3
VS
37747 grep -v '^ *+' conftest.er1 >conftest.err
37748 rm -f conftest.er1
37749 cat conftest.err >&5
a848cd7e
SC
37750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751 (exit $ac_status); } &&
9dd0f6c2 37752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37754 (eval $ac_try) 2>&5
37755 ac_status=$?
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); }; } &&
37758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37760 (eval $ac_try) 2>&5
37761 ac_status=$?
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); }; }; then
37764 wx_cv_type_getsockname3=socklen_t
37765else
37766 echo "$as_me: failed program was:" >&5
37767sed 's/^/| /' conftest.$ac_ext >&5
37768
37769
37770 CFLAGS_OLD="$CFLAGS"
37771 if test "$GCC" = yes ; then
37772 CFLAGS="$CFLAGS -Werror"
37773 fi
37774
37775 cat >conftest.$ac_ext <<_ACEOF
37776/* confdefs.h. */
37777_ACEOF
37778cat confdefs.h >>conftest.$ac_ext
37779cat >>conftest.$ac_ext <<_ACEOF
37780/* end confdefs.h. */
37781
37782 #include <sys/types.h>
37783 #include <sys/socket.h>
37784
37785int
37786main ()
37787{
37788
37789 size_t len;
37790 getsockname(0, 0, &len);
37791
37792 ;
37793 return 0;
37794}
37795_ACEOF
37796rm -f conftest.$ac_objext
37797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37798 (eval $ac_compile) 2>conftest.er1
a848cd7e 37799 ac_status=$?
ac1cb8d3
VS
37800 grep -v '^ *+' conftest.er1 >conftest.err
37801 rm -f conftest.er1
37802 cat conftest.err >&5
a848cd7e
SC
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); } &&
9dd0f6c2 37805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37807 (eval $ac_try) 2>&5
37808 ac_status=$?
37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810 (exit $ac_status); }; } &&
37811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37813 (eval $ac_try) 2>&5
37814 ac_status=$?
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); }; }; then
37817 wx_cv_type_getsockname3=size_t
37818else
37819 echo "$as_me: failed program was:" >&5
37820sed 's/^/| /' conftest.$ac_ext >&5
37821
37822cat >conftest.$ac_ext <<_ACEOF
37823/* confdefs.h. */
37824_ACEOF
37825cat confdefs.h >>conftest.$ac_ext
37826cat >>conftest.$ac_ext <<_ACEOF
37827/* end confdefs.h. */
37828
37829 #include <sys/types.h>
37830 #include <sys/socket.h>
37831
37832int
37833main ()
37834{
37835
37836 int len;
37837 getsockname(0, 0, &len);
37838
37839 ;
37840 return 0;
37841}
37842_ACEOF
37843rm -f conftest.$ac_objext
37844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37845 (eval $ac_compile) 2>conftest.er1
a848cd7e 37846 ac_status=$?
ac1cb8d3
VS
37847 grep -v '^ *+' conftest.er1 >conftest.err
37848 rm -f conftest.er1
37849 cat conftest.err >&5
a848cd7e
SC
37850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37851 (exit $ac_status); } &&
9dd0f6c2 37852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37854 (eval $ac_try) 2>&5
37855 ac_status=$?
37856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857 (exit $ac_status); }; } &&
37858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37860 (eval $ac_try) 2>&5
37861 ac_status=$?
37862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863 (exit $ac_status); }; }; then
37864 wx_cv_type_getsockname3=int
37865else
37866 echo "$as_me: failed program was:" >&5
37867sed 's/^/| /' conftest.$ac_ext >&5
37868
37869wx_cv_type_getsockname3=unknown
37870
37871fi
ac1cb8d3 37872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37873
37874fi
ac1cb8d3 37875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37876
37877 CFLAGS="$CFLAGS_OLD"
37878
37879
37880fi
ac1cb8d3 37881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37882
37883fi
37884echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37885echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37886
37887 if test "$wx_cv_type_getsockname3" = "unknown"; then
37888 wxUSE_SOCKETS=no
37889 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37890echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37891 else
37892 cat >>confdefs.h <<_ACEOF
37893#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37894_ACEOF
37895
37896 fi
37897 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37898echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37899if test "${wx_cv_type_getsockopt5+set}" = set; then
37900 echo $ECHO_N "(cached) $ECHO_C" >&6
37901else
37902
37903 cat >conftest.$ac_ext <<_ACEOF
37904/* confdefs.h. */
37905_ACEOF
37906cat confdefs.h >>conftest.$ac_ext
37907cat >>conftest.$ac_ext <<_ACEOF
37908/* end confdefs.h. */
37909
37910 #include <sys/types.h>
37911 #include <sys/socket.h>
37912
37913int
37914main ()
37915{
37916
37917 socklen_t len;
37918 getsockopt(0, 0, 0, 0, &len);
37919
37920 ;
37921 return 0;
37922}
37923_ACEOF
37924rm -f conftest.$ac_objext
37925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37926 (eval $ac_compile) 2>conftest.er1
37927 ac_status=$?
37928 grep -v '^ *+' conftest.er1 >conftest.err
37929 rm -f conftest.er1
37930 cat conftest.err >&5
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); } &&
9dd0f6c2 37933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37935 (eval $ac_try) 2>&5
37936 ac_status=$?
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); }; } &&
37939 { ac_try='test -s conftest.$ac_objext'
37940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37941 (eval $ac_try) 2>&5
37942 ac_status=$?
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); }; }; then
37945 wx_cv_type_getsockopt5=socklen_t
37946else
37947 echo "$as_me: failed program was:" >&5
37948sed 's/^/| /' conftest.$ac_ext >&5
37949
37950
37951 CFLAGS_OLD="$CFLAGS"
37952 if test "$GCC" = yes ; then
37953 CFLAGS="$CFLAGS -Werror"
37954 fi
37955
37956 cat >conftest.$ac_ext <<_ACEOF
37957/* confdefs.h. */
37958_ACEOF
37959cat confdefs.h >>conftest.$ac_ext
37960cat >>conftest.$ac_ext <<_ACEOF
37961/* end confdefs.h. */
37962
37963 #include <sys/types.h>
37964 #include <sys/socket.h>
37965
37966int
37967main ()
37968{
37969
37970 size_t len;
37971 getsockopt(0, 0, 0, 0, &len);
37972
37973 ;
37974 return 0;
37975}
37976_ACEOF
37977rm -f conftest.$ac_objext
37978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37979 (eval $ac_compile) 2>conftest.er1
37980 ac_status=$?
37981 grep -v '^ *+' conftest.er1 >conftest.err
37982 rm -f conftest.er1
37983 cat conftest.err >&5
37984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985 (exit $ac_status); } &&
9dd0f6c2 37986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 (eval $ac_try) 2>&5
37989 ac_status=$?
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; } &&
37992 { ac_try='test -s conftest.$ac_objext'
37993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994 (eval $ac_try) 2>&5
37995 ac_status=$?
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); }; }; then
37998 wx_cv_type_getsockopt5=size_t
37999else
38000 echo "$as_me: failed program was:" >&5
38001sed 's/^/| /' conftest.$ac_ext >&5
38002
38003cat >conftest.$ac_ext <<_ACEOF
38004/* confdefs.h. */
38005_ACEOF
38006cat confdefs.h >>conftest.$ac_ext
38007cat >>conftest.$ac_ext <<_ACEOF
38008/* end confdefs.h. */
38009
38010 #include <sys/types.h>
38011 #include <sys/socket.h>
38012
38013int
38014main ()
38015{
38016
38017 int len;
38018 getsockopt(0, 0, 0, 0, &len);
38019
38020 ;
38021 return 0;
38022}
38023_ACEOF
38024rm -f conftest.$ac_objext
38025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38026 (eval $ac_compile) 2>conftest.er1
38027 ac_status=$?
38028 grep -v '^ *+' conftest.er1 >conftest.err
38029 rm -f conftest.er1
38030 cat conftest.err >&5
38031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032 (exit $ac_status); } &&
9dd0f6c2 38033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38035 (eval $ac_try) 2>&5
38036 ac_status=$?
38037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038 (exit $ac_status); }; } &&
38039 { ac_try='test -s conftest.$ac_objext'
38040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38041 (eval $ac_try) 2>&5
38042 ac_status=$?
38043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044 (exit $ac_status); }; }; then
38045 wx_cv_type_getsockopt5=int
38046else
38047 echo "$as_me: failed program was:" >&5
38048sed 's/^/| /' conftest.$ac_ext >&5
38049
38050wx_cv_type_getsockopt5=unknown
38051
38052fi
38053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38054
38055fi
38056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38057
38058 CFLAGS="$CFLAGS_OLD"
38059
38060
38061fi
38062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38063
38064fi
38065echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38066echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38067
38068 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38069 wxUSE_SOCKETS=no
38070 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38071echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38072 else
38073 cat >>confdefs.h <<_ACEOF
38074#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38075_ACEOF
38076
38077 fi
4d4ff94c
VZ
38078 ac_ext=c
38079ac_cpp='$CPP $CPPFLAGS'
38080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38082ac_compiler_gnu=$ac_cv_c_compiler_gnu
38083
a848cd7e
SC
38084 fi
38085fi
38086
38087if test "$wxUSE_SOCKETS" = "yes" ; then
38088 cat >>confdefs.h <<\_ACEOF
38089#define wxUSE_SOCKETS 1
38090_ACEOF
38091
38092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38093fi
38094
38095if test "$wxUSE_PROTOCOL" = "yes"; then
38096 if test "$wxUSE_SOCKETS" != "yes"; then
38097 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38098echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38099 wxUSE_PROTOCOL=no
38100 fi
38101fi
38102
38103if test "$wxUSE_PROTOCOL" = "yes"; then
38104 cat >>confdefs.h <<\_ACEOF
38105#define wxUSE_PROTOCOL 1
38106_ACEOF
38107
38108
38109 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38110 cat >>confdefs.h <<\_ACEOF
38111#define wxUSE_PROTOCOL_HTTP 1
38112_ACEOF
38113
38114 fi
38115 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38116 cat >>confdefs.h <<\_ACEOF
38117#define wxUSE_PROTOCOL_FTP 1
38118_ACEOF
38119
38120 fi
38121 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38122 cat >>confdefs.h <<\_ACEOF
38123#define wxUSE_PROTOCOL_FILE 1
38124_ACEOF
38125
38126 fi
38127else
38128 if test "$wxUSE_FS_INET" = "yes"; then
38129 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38130echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38131 wxUSE_FS_INET="no"
38132 fi
38133fi
38134
38135if test "$wxUSE_URL" = "yes"; then
38136 if test "$wxUSE_PROTOCOL" != "yes"; then
38137 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38138echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38139 wxUSE_URL=no
38140 fi
38141 if test "$wxUSE_URL" = "yes"; then
38142 cat >>confdefs.h <<\_ACEOF
38143#define wxUSE_URL 1
38144_ACEOF
38145
38146 fi
38147fi
38148
38149if test "$wxUSE_FS_INET" = "yes"; then
38150 cat >>confdefs.h <<\_ACEOF
38151#define wxUSE_FS_INET 1
38152_ACEOF
38153
38154fi
38155
38156
38157if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38158 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38159
4cb1d3da 38160 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38161
38162for ac_header in linux/joystick.h
38163do
38164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38165if eval "test \"\${$as_ac_Header+set}\" = set"; then
38166 echo "$as_me:$LINENO: checking for $ac_header" >&5
38167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38168if eval "test \"\${$as_ac_Header+set}\" = set"; then
38169 echo $ECHO_N "(cached) $ECHO_C" >&6
38170fi
38171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38173else
38174 # Is the header compilable?
38175echo "$as_me:$LINENO: checking $ac_header usability" >&5
38176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38177cat >conftest.$ac_ext <<_ACEOF
38178/* confdefs.h. */
38179_ACEOF
38180cat confdefs.h >>conftest.$ac_ext
38181cat >>conftest.$ac_ext <<_ACEOF
38182/* end confdefs.h. */
38183$ac_includes_default
38184#include <$ac_header>
38185_ACEOF
38186rm -f conftest.$ac_objext
38187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38188 (eval $ac_compile) 2>conftest.er1
a848cd7e 38189 ac_status=$?
ac1cb8d3
VS
38190 grep -v '^ *+' conftest.er1 >conftest.err
38191 rm -f conftest.er1
38192 cat conftest.err >&5
a848cd7e
SC
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); } &&
9dd0f6c2 38195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38197 (eval $ac_try) 2>&5
38198 ac_status=$?
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); }; } &&
38201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203 (eval $ac_try) 2>&5
38204 ac_status=$?
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); }; }; then
38207 ac_header_compiler=yes
38208else
38209 echo "$as_me: failed program was:" >&5
38210sed 's/^/| /' conftest.$ac_ext >&5
38211
38212ac_header_compiler=no
38213fi
ac1cb8d3 38214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38215echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38216echo "${ECHO_T}$ac_header_compiler" >&6
38217
38218# Is the header present?
38219echo "$as_me:$LINENO: checking $ac_header presence" >&5
38220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38221cat >conftest.$ac_ext <<_ACEOF
38222/* confdefs.h. */
38223_ACEOF
38224cat confdefs.h >>conftest.$ac_ext
38225cat >>conftest.$ac_ext <<_ACEOF
38226/* end confdefs.h. */
38227#include <$ac_header>
38228_ACEOF
38229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38231 ac_status=$?
38232 grep -v '^ *+' conftest.er1 >conftest.err
38233 rm -f conftest.er1
38234 cat conftest.err >&5
38235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38236 (exit $ac_status); } >/dev/null; then
38237 if test -s conftest.err; then
38238 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38240 else
38241 ac_cpp_err=
38242 fi
38243else
38244 ac_cpp_err=yes
38245fi
38246if test -z "$ac_cpp_err"; then
38247 ac_header_preproc=yes
38248else
38249 echo "$as_me: failed program was:" >&5
38250sed 's/^/| /' conftest.$ac_ext >&5
38251
38252 ac_header_preproc=no
38253fi
38254rm -f conftest.err conftest.$ac_ext
38255echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38256echo "${ECHO_T}$ac_header_preproc" >&6
38257
38258# So? What about this header?
ac1cb8d3
VS
38259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38260 yes:no: )
a848cd7e
SC
38261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38265 ac_header_preproc=yes
a848cd7e 38266 ;;
ac1cb8d3 38267 no:yes:* )
a848cd7e
SC
38268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38271echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38275echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38280 (
38281 cat <<\_ASBOX
ac1cb8d3
VS
38282## ----------------------------------------- ##
38283## Report this to wx-dev@lists.wxwidgets.org ##
38284## ----------------------------------------- ##
a848cd7e
SC
38285_ASBOX
38286 ) |
38287 sed "s/^/$as_me: WARNING: /" >&2
38288 ;;
38289esac
38290echo "$as_me:$LINENO: checking for $ac_header" >&5
38291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38292if eval "test \"\${$as_ac_Header+set}\" = set"; then
38293 echo $ECHO_N "(cached) $ECHO_C" >&6
38294else
ac1cb8d3 38295 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38296fi
38297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38299
38300fi
38301if test `eval echo '${'$as_ac_Header'}'` = yes; then
38302 cat >>confdefs.h <<_ACEOF
38303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38304_ACEOF
38305
38306fi
38307
38308done
38309
38310 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38311 wxUSE_JOYSTICK=no
38312 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38313echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38314 fi
4cb1d3da
RN
38315 else
38316 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38317 wxUSE_JOYSTICK=no
38318 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38319echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38320 fi
a848cd7e 38321 fi
a848cd7e 38322
4cb1d3da
RN
38323
38324 if test "$wxUSE_JOYSTICK" = "yes"; then
38325 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38326#define wxUSE_JOYSTICK 1
38327_ACEOF
38328
4cb1d3da
RN
38329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38330 fi
a848cd7e
SC
38331 fi
38332fi
38333
38334
38335
38336if test "$wxUSE_FONTMAP" = "yes" ; then
38337 cat >>confdefs.h <<\_ACEOF
38338#define wxUSE_FONTMAP 1
38339_ACEOF
38340
38341fi
38342
38343if test "$wxUSE_UNICODE" = "yes" ; then
38344 cat >>confdefs.h <<\_ACEOF
38345#define wxUSE_UNICODE 1
38346_ACEOF
38347
38348
38349 if test "$USE_WIN32" != 1; then
38350 wxUSE_UNICODE_MSLU=no
38351 fi
38352
38353 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38354 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38355echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38356if test "${ac_cv_lib_unicows_main+set}" = set; then
38357 echo $ECHO_N "(cached) $ECHO_C" >&6
38358else
38359 ac_check_lib_save_LIBS=$LIBS
38360LIBS="-lunicows $LIBS"
38361cat >conftest.$ac_ext <<_ACEOF
38362/* confdefs.h. */
38363_ACEOF
38364cat confdefs.h >>conftest.$ac_ext
38365cat >>conftest.$ac_ext <<_ACEOF
38366/* end confdefs.h. */
38367
38368
38369int
38370main ()
38371{
38372main ();
38373 ;
38374 return 0;
38375}
38376_ACEOF
38377rm -f conftest.$ac_objext conftest$ac_exeext
38378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38379 (eval $ac_link) 2>conftest.er1
a848cd7e 38380 ac_status=$?
ac1cb8d3
VS
38381 grep -v '^ *+' conftest.er1 >conftest.err
38382 rm -f conftest.er1
38383 cat conftest.err >&5
a848cd7e
SC
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); } &&
9dd0f6c2 38386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388 (eval $ac_try) 2>&5
38389 ac_status=$?
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); }; } &&
38392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38394 (eval $ac_try) 2>&5
38395 ac_status=$?
38396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397 (exit $ac_status); }; }; then
38398 ac_cv_lib_unicows_main=yes
38399else
38400 echo "$as_me: failed program was:" >&5
38401sed 's/^/| /' conftest.$ac_ext >&5
38402
38403ac_cv_lib_unicows_main=no
38404fi
ac1cb8d3
VS
38405rm -f conftest.err conftest.$ac_objext \
38406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38407LIBS=$ac_check_lib_save_LIBS
38408fi
38409echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38410echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38411if test $ac_cv_lib_unicows_main = yes; then
38412
38413 cat >>confdefs.h <<\_ACEOF
38414#define wxUSE_UNICODE_MSLU 1
38415_ACEOF
38416
38417
38418else
38419
38420 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38421 Applications will only run on Windows NT/2000/XP!" >&5
38422echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38423 Applications will only run on Windows NT/2000/XP!" >&2;}
38424 wxUSE_UNICODE_MSLU=no
38425
38426fi
38427
38428 fi
38429fi
38430
38431if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38432 cat >>confdefs.h <<\_ACEOF
38433#define wxUSE_EXPERIMENTAL_PRINTF 1
38434_ACEOF
38435
38436fi
38437
38438
38439if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38440 cat >>confdefs.h <<\_ACEOF
38441#define wxUSE_POSTSCRIPT 1
38442_ACEOF
38443
38444fi
38445
38446cat >>confdefs.h <<\_ACEOF
38447#define wxUSE_AFM_FOR_POSTSCRIPT 1
38448_ACEOF
38449
38450
38451cat >>confdefs.h <<\_ACEOF
38452#define wxUSE_NORMALIZED_PS_FONTS 1
38453_ACEOF
38454
38455
38456
38457if test "$wxUSE_CONSTRAINTS" = "yes"; then
38458 cat >>confdefs.h <<\_ACEOF
38459#define wxUSE_CONSTRAINTS 1
38460_ACEOF
38461
38462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38463fi
38464
8a7b1113
VZ
38465if test "$wxUSE_MDI" = "yes"; then
38466 cat >>confdefs.h <<\_ACEOF
38467#define wxUSE_MDI 1
38468_ACEOF
38469
38470
38471 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38472 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38473#define wxUSE_MDI_ARCHITECTURE 1
38474_ACEOF
38475
8a7b1113
VZ
38476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38477 fi
a848cd7e
SC
38478fi
38479
38480if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38481 cat >>confdefs.h <<\_ACEOF
38482#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38483_ACEOF
38484
38485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38486 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38488 fi
38489fi
38490
38491if test "$wxUSE_HELP" = "yes"; then
38492 cat >>confdefs.h <<\_ACEOF
38493#define wxUSE_HELP 1
38494_ACEOF
38495
38496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38497
38498 if test "$wxUSE_MSW" = 1; then
38499 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38500 cat >>confdefs.h <<\_ACEOF
38501#define wxUSE_MS_HTML_HELP 1
38502_ACEOF
38503
38504 fi
38505 fi
38506
38507 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38508 if test "$wxUSE_HTML" = "yes"; then
38509 cat >>confdefs.h <<\_ACEOF
38510#define wxUSE_WXHTML_HELP 1
38511_ACEOF
38512
38513 else
38514 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38515echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38516 wxUSE_WXHTML_HELP=no
38517 fi
38518 fi
38519fi
38520
38521if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38522 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38523 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38524echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38525 else
38526 cat >>confdefs.h <<\_ACEOF
38527#define wxUSE_PRINTING_ARCHITECTURE 1
38528_ACEOF
38529
38530 fi
38531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38532fi
38533
38534if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38535 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38536echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38537 { (exit 1); exit 1; }; }
38538fi
38539
38540
38541if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38542 -o "$wxUSE_CLIPBOARD" = "yes" \
38543 -o "$wxUSE_OLE" = "yes" \
38544 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38545
38546for ac_header in ole2.h
38547do
38548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38549if eval "test \"\${$as_ac_Header+set}\" = set"; then
38550 echo "$as_me:$LINENO: checking for $ac_header" >&5
38551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38552if eval "test \"\${$as_ac_Header+set}\" = set"; then
38553 echo $ECHO_N "(cached) $ECHO_C" >&6
38554fi
38555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38557else
38558 # Is the header compilable?
38559echo "$as_me:$LINENO: checking $ac_header usability" >&5
38560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38561cat >conftest.$ac_ext <<_ACEOF
38562/* confdefs.h. */
38563_ACEOF
38564cat confdefs.h >>conftest.$ac_ext
38565cat >>conftest.$ac_ext <<_ACEOF
38566/* end confdefs.h. */
38567$ac_includes_default
38568#include <$ac_header>
38569_ACEOF
38570rm -f conftest.$ac_objext
38571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38572 (eval $ac_compile) 2>conftest.er1
a848cd7e 38573 ac_status=$?
ac1cb8d3
VS
38574 grep -v '^ *+' conftest.er1 >conftest.err
38575 rm -f conftest.er1
38576 cat conftest.err >&5
a848cd7e
SC
38577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578 (exit $ac_status); } &&
9dd0f6c2 38579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581 (eval $ac_try) 2>&5
38582 ac_status=$?
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); }; } &&
38585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587 (eval $ac_try) 2>&5
38588 ac_status=$?
38589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590 (exit $ac_status); }; }; then
38591 ac_header_compiler=yes
38592else
38593 echo "$as_me: failed program was:" >&5
38594sed 's/^/| /' conftest.$ac_ext >&5
38595
38596ac_header_compiler=no
38597fi
ac1cb8d3 38598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38599echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38600echo "${ECHO_T}$ac_header_compiler" >&6
38601
38602# Is the header present?
38603echo "$as_me:$LINENO: checking $ac_header presence" >&5
38604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38605cat >conftest.$ac_ext <<_ACEOF
38606/* confdefs.h. */
38607_ACEOF
38608cat confdefs.h >>conftest.$ac_ext
38609cat >>conftest.$ac_ext <<_ACEOF
38610/* end confdefs.h. */
38611#include <$ac_header>
38612_ACEOF
38613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38615 ac_status=$?
38616 grep -v '^ *+' conftest.er1 >conftest.err
38617 rm -f conftest.er1
38618 cat conftest.err >&5
38619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38620 (exit $ac_status); } >/dev/null; then
38621 if test -s conftest.err; then
38622 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38624 else
38625 ac_cpp_err=
38626 fi
38627else
38628 ac_cpp_err=yes
38629fi
38630if test -z "$ac_cpp_err"; then
38631 ac_header_preproc=yes
38632else
38633 echo "$as_me: failed program was:" >&5
38634sed 's/^/| /' conftest.$ac_ext >&5
38635
38636 ac_header_preproc=no
38637fi
38638rm -f conftest.err conftest.$ac_ext
38639echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38640echo "${ECHO_T}$ac_header_preproc" >&6
38641
38642# So? What about this header?
ac1cb8d3
VS
38643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38644 yes:no: )
a848cd7e
SC
38645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38649 ac_header_preproc=yes
a848cd7e 38650 ;;
ac1cb8d3 38651 no:yes:* )
a848cd7e
SC
38652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38664 (
38665 cat <<\_ASBOX
ac1cb8d3
VS
38666## ----------------------------------------- ##
38667## Report this to wx-dev@lists.wxwidgets.org ##
38668## ----------------------------------------- ##
a848cd7e
SC
38669_ASBOX
38670 ) |
38671 sed "s/^/$as_me: WARNING: /" >&2
38672 ;;
38673esac
38674echo "$as_me:$LINENO: checking for $ac_header" >&5
38675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38676if eval "test \"\${$as_ac_Header+set}\" = set"; then
38677 echo $ECHO_N "(cached) $ECHO_C" >&6
38678else
ac1cb8d3 38679 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38680fi
38681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38683
38684fi
38685if test `eval echo '${'$as_ac_Header'}'` = yes; then
38686 cat >>confdefs.h <<_ACEOF
38687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38688_ACEOF
38689
38690fi
38691
38692done
38693
38694
38695 if test "$ac_cv_header_ole2_h" = "yes" ; then
38696 if test "$GCC" = yes ; then
38697
38698
38699 ac_ext=cc
38700ac_cpp='$CXXCPP $CPPFLAGS'
38701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38704
38705
38706 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38707echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38708 cat >conftest.$ac_ext <<_ACEOF
38709/* confdefs.h. */
38710_ACEOF
38711cat confdefs.h >>conftest.$ac_ext
38712cat >>conftest.$ac_ext <<_ACEOF
38713/* end confdefs.h. */
38714#include <windows.h>
38715 #include <ole2.h>
38716int
38717main ()
38718{
38719
38720 ;
38721 return 0;
38722}
38723_ACEOF
38724rm -f conftest.$ac_objext
38725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38726 (eval $ac_compile) 2>conftest.er1
a848cd7e 38727 ac_status=$?
ac1cb8d3
VS
38728 grep -v '^ *+' conftest.er1 >conftest.err
38729 rm -f conftest.er1
38730 cat conftest.err >&5
a848cd7e
SC
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); } &&
9dd0f6c2 38733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38735 (eval $ac_try) 2>&5
38736 ac_status=$?
38737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738 (exit $ac_status); }; } &&
38739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38741 (eval $ac_try) 2>&5
38742 ac_status=$?
38743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38744 (exit $ac_status); }; }; then
38745 echo "$as_me:$LINENO: result: no" >&5
38746echo "${ECHO_T}no" >&6
38747else
38748 echo "$as_me: failed program was:" >&5
38749sed 's/^/| /' conftest.$ac_ext >&5
38750
38751echo "$as_me:$LINENO: result: yes" >&5
38752echo "${ECHO_T}yes" >&6
38753 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38754fi
ac1cb8d3 38755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38756 ac_ext=c
38757ac_cpp='$CPP $CPPFLAGS'
38758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38760ac_compiler_gnu=$ac_cv_c_compiler_gnu
38761
a848cd7e
SC
38762 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38763 if test "$wxUSE_OLE" = "yes" ; then
38764 cat >>confdefs.h <<\_ACEOF
38765#define wxUSE_OLE 1
38766_ACEOF
38767
0b78747f 38768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38769 fi
38770 fi
38771
38772 if test "$wxUSE_DATAOBJ" = "yes" ; then
38773 cat >>confdefs.h <<\_ACEOF
38774#define wxUSE_DATAOBJ 1
38775_ACEOF
38776
38777 fi
38778 else
38779 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38780echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38781
38782 wxUSE_CLIPBOARD=no
38783 wxUSE_DRAG_AND_DROP=no
38784 wxUSE_DATAOBJ=no
38785 wxUSE_OLE=no
38786 fi
38787
38788 if test "$wxUSE_METAFILE" = "yes"; then
38789 cat >>confdefs.h <<\_ACEOF
38790#define wxUSE_METAFILE 1
38791_ACEOF
38792
38793
38794 cat >>confdefs.h <<\_ACEOF
38795#define wxUSE_ENH_METAFILE 1
38796_ACEOF
38797
38798 fi
38799fi
38800
38801if test "$wxUSE_IPC" = "yes"; then
0b78747f 38802 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38803 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38804echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38805 wxUSE_IPC=no
a848cd7e
SC
38806 fi
38807
0b78747f
MW
38808 if test "$wxUSE_IPC" = "yes"; then
38809 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38810#define wxUSE_IPC 1
38811_ACEOF
38812
0b78747f
MW
38813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38814 fi
a848cd7e
SC
38815fi
38816
38817if test "$wxUSE_CLIPBOARD" = "yes"; then
38818 if test "$wxUSE_MGL" = 1; then
38819 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38820echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38821 wxUSE_CLIPBOARD=no
38822 fi
38823
38824 if test "$wxUSE_CLIPBOARD" = "yes"; then
38825 cat >>confdefs.h <<\_ACEOF
38826#define wxUSE_CLIPBOARD 1
38827_ACEOF
38828
38829
38830 cat >>confdefs.h <<\_ACEOF
38831#define wxUSE_DATAOBJ 1
38832_ACEOF
38833
38834 fi
38835fi
38836
38837if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38838 if test "$wxUSE_GTK" = 1; then
38839 if test "$WXGTK12" != 1; then
38840 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38841echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38842 wxUSE_DRAG_AND_DROP=no
38843 fi
38844 fi
38845
38846 if test "$wxUSE_MOTIF" = 1; then
38847 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38848echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38849 wxUSE_DRAG_AND_DROP=no
38850 fi
38851
38852 if test "$wxUSE_X11" = 1; then
38853 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38854echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38855 wxUSE_DRAG_AND_DROP=no
38856 fi
38857
38858 if test "$wxUSE_MGL" = 1; then
38859 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38860echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38861 wxUSE_DRAG_AND_DROP=no
38862 fi
38863
38864 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38865 cat >>confdefs.h <<\_ACEOF
38866#define wxUSE_DRAG_AND_DROP 1
38867_ACEOF
38868
38869 fi
38870
38871fi
38872
38873if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38875fi
38876
38877if test "$wxUSE_SPLINES" = "yes" ; then
38878 cat >>confdefs.h <<\_ACEOF
38879#define wxUSE_SPLINES 1
38880_ACEOF
38881
38882fi
38883
fbe2ca43
SN
38884if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
38885 cat >>confdefs.h <<\_ACEOF
38886#define wxUSE_MOUSEWHEEL 1
38887_ACEOF
38888
38889fi
38890
a848cd7e
SC
38891
38892USES_CONTROLS=0
38893if test "$wxUSE_CONTROLS" = "yes"; then
38894 USES_CONTROLS=1
38895fi
38896
38897if test "$wxUSE_ACCEL" = "yes"; then
38898 cat >>confdefs.h <<\_ACEOF
38899#define wxUSE_ACCEL 1
38900_ACEOF
38901
38902 USES_CONTROLS=1
38903fi
38904
38905if test "$wxUSE_BUTTON" = "yes"; then
38906 cat >>confdefs.h <<\_ACEOF
38907#define wxUSE_BUTTON 1
38908_ACEOF
38909
38910 USES_CONTROLS=1
38911fi
38912
38913if test "$wxUSE_BMPBUTTON" = "yes"; then
38914 cat >>confdefs.h <<\_ACEOF
38915#define wxUSE_BMPBUTTON 1
38916_ACEOF
38917
38918 USES_CONTROLS=1
38919fi
38920
38921if test "$wxUSE_CALCTRL" = "yes"; then
38922 cat >>confdefs.h <<\_ACEOF
38923#define wxUSE_CALENDARCTRL 1
38924_ACEOF
38925
38926 USES_CONTROLS=1
38927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38928fi
38929
38930if test "$wxUSE_CARET" = "yes"; then
38931 cat >>confdefs.h <<\_ACEOF
38932#define wxUSE_CARET 1
38933_ACEOF
38934
38935 USES_CONTROLS=1
38936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38937fi
38938
38939if test "$wxUSE_COMBOBOX" = "yes"; then
38940 cat >>confdefs.h <<\_ACEOF
38941#define wxUSE_COMBOBOX 1
38942_ACEOF
38943
38944 USES_CONTROLS=1
38945fi
38946
38947if test "$wxUSE_CHOICE" = "yes"; then
38948 cat >>confdefs.h <<\_ACEOF
38949#define wxUSE_CHOICE 1
38950_ACEOF
38951
38952 USES_CONTROLS=1
38953fi
38954
92bbdbcd
WS
38955if test "$wxUSE_CHOICEBOOK" = "yes"; then
38956 cat >>confdefs.h <<\_ACEOF
38957#define wxUSE_CHOICEBOOK 1
38958_ACEOF
38959
38960 USES_CONTROLS=1
38961fi
38962
a848cd7e
SC
38963if test "$wxUSE_CHECKBOX" = "yes"; then
38964 cat >>confdefs.h <<\_ACEOF
38965#define wxUSE_CHECKBOX 1
38966_ACEOF
38967
38968 USES_CONTROLS=1
38969fi
38970
38971if test "$wxUSE_CHECKLST" = "yes"; then
38972 cat >>confdefs.h <<\_ACEOF
38973#define wxUSE_CHECKLISTBOX 1
38974_ACEOF
38975
38976 USES_CONTROLS=1
38977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38978fi
38979
da98e9be
VZ
38980if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38981 cat >>confdefs.h <<\_ACEOF
38982#define wxUSE_DATEPICKCTRL 1
38983_ACEOF
38984
38985 USES_CONTROLS=1
38986fi
38987
a848cd7e
SC
38988if test "$wxUSE_DISPLAY" = "yes"; then
38989 cat >>confdefs.h <<\_ACEOF
38990#define wxUSE_DISPLAY 1
38991_ACEOF
38992
0b78747f 38993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38994fi
38995
38996if test "$wxUSE_GAUGE" = "yes"; then
38997 cat >>confdefs.h <<\_ACEOF
38998#define wxUSE_GAUGE 1
38999_ACEOF
39000
39001 USES_CONTROLS=1
39002fi
39003
39004if test "$wxUSE_GRID" = "yes"; then
39005 cat >>confdefs.h <<\_ACEOF
39006#define wxUSE_GRID 1
39007_ACEOF
39008
39009 USES_CONTROLS=1
39010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39011fi
39012
39013if test "$wxUSE_IMAGLIST" = "yes"; then
39014 cat >>confdefs.h <<\_ACEOF
39015#define wxUSE_IMAGLIST 1
39016_ACEOF
39017
39018fi
39019
39020if test "$wxUSE_LISTBOOK" = "yes"; then
39021 cat >>confdefs.h <<\_ACEOF
39022#define wxUSE_LISTBOOK 1
39023_ACEOF
39024
39025 USES_CONTROLS=1
39026fi
39027
39028if test "$wxUSE_LISTBOX" = "yes"; then
39029 cat >>confdefs.h <<\_ACEOF
39030#define wxUSE_LISTBOX 1
39031_ACEOF
39032
39033 USES_CONTROLS=1
0b78747f 39034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39035fi
39036
39037if test "$wxUSE_LISTCTRL" = "yes"; then
39038 if test "$wxUSE_IMAGLIST" = "yes"; then
39039 cat >>confdefs.h <<\_ACEOF
39040#define wxUSE_LISTCTRL 1
39041_ACEOF
39042
39043 USES_CONTROLS=1
39044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39045 else
39046 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39047echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39048 fi
39049fi
39050
39051if test "$wxUSE_NOTEBOOK" = "yes"; then
39052 cat >>confdefs.h <<\_ACEOF
39053#define wxUSE_NOTEBOOK 1
39054_ACEOF
39055
39056 USES_CONTROLS=1
39057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39058fi
39059
39060
39061if test "$wxUSE_RADIOBOX" = "yes"; then
39062 cat >>confdefs.h <<\_ACEOF
39063#define wxUSE_RADIOBOX 1
39064_ACEOF
39065
39066 USES_CONTROLS=1
39067fi
39068
39069if test "$wxUSE_RADIOBTN" = "yes"; then
39070 cat >>confdefs.h <<\_ACEOF
39071#define wxUSE_RADIOBTN 1
39072_ACEOF
39073
39074 USES_CONTROLS=1
39075fi
39076
39077if test "$wxUSE_SASH" = "yes"; then
39078 cat >>confdefs.h <<\_ACEOF
39079#define wxUSE_SASH 1
39080_ACEOF
39081
39082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39083fi
39084
39085if test "$wxUSE_SCROLLBAR" = "yes"; then
39086 cat >>confdefs.h <<\_ACEOF
39087#define wxUSE_SCROLLBAR 1
39088_ACEOF
39089
39090 USES_CONTROLS=1
39091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39092fi
39093
39094if test "$wxUSE_SLIDER" = "yes"; then
39095 cat >>confdefs.h <<\_ACEOF
39096#define wxUSE_SLIDER 1
39097_ACEOF
39098
39099 USES_CONTROLS=1
39100fi
39101
39102if test "$wxUSE_SPINBTN" = "yes"; then
39103 cat >>confdefs.h <<\_ACEOF
39104#define wxUSE_SPINBTN 1
39105_ACEOF
39106
39107 USES_CONTROLS=1
39108fi
39109
39110if test "$wxUSE_SPINCTRL" = "yes"; then
39111 cat >>confdefs.h <<\_ACEOF
39112#define wxUSE_SPINCTRL 1
39113_ACEOF
39114
39115 USES_CONTROLS=1
39116fi
39117
39118if test "$wxUSE_SPLITTER" = "yes"; then
39119 cat >>confdefs.h <<\_ACEOF
39120#define wxUSE_SPLITTER 1
39121_ACEOF
39122
39123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39124fi
39125
39126if test "$wxUSE_STATBMP" = "yes"; then
39127 cat >>confdefs.h <<\_ACEOF
39128#define wxUSE_STATBMP 1
39129_ACEOF
39130
39131 USES_CONTROLS=1
39132fi
39133
39134if test "$wxUSE_STATBOX" = "yes"; then
39135 cat >>confdefs.h <<\_ACEOF
39136#define wxUSE_STATBOX 1
39137_ACEOF
39138
39139 USES_CONTROLS=1
39140fi
39141
39142if test "$wxUSE_STATTEXT" = "yes"; then
39143 cat >>confdefs.h <<\_ACEOF
39144#define wxUSE_STATTEXT 1
39145_ACEOF
39146
39147 USES_CONTROLS=1
39148fi
39149
39150if test "$wxUSE_STATLINE" = "yes"; then
39151 cat >>confdefs.h <<\_ACEOF
39152#define wxUSE_STATLINE 1
39153_ACEOF
39154
39155 USES_CONTROLS=1
39156fi
39157
39158if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39159 cat >>confdefs.h <<\_ACEOF
39160#define wxUSE_NATIVE_STATUSBAR 1
39161_ACEOF
39162
a848cd7e
SC
39163 cat >>confdefs.h <<\_ACEOF
39164#define wxUSE_STATUSBAR 1
39165_ACEOF
39166
39167 USES_CONTROLS=1
39168
39169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39170fi
39171
39172if test "$wxUSE_TABDIALOG" = "yes"; then
39173 cat >>confdefs.h <<\_ACEOF
39174#define wxUSE_TAB_DIALOG 1
39175_ACEOF
39176
a848cd7e
SC
39177fi
39178
39179if test "$wxUSE_TEXTCTRL" = "yes"; then
39180 cat >>confdefs.h <<\_ACEOF
39181#define wxUSE_TEXTCTRL 1
39182_ACEOF
39183
39184 USES_CONTROLS=1
39185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39186fi
39187
39188if test "$wxUSE_TOGGLEBTN" = "yes"; then
39189 if test "$wxUSE_COCOA" = 1 ; then
39190 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39191echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39192 wxUSE_TOGGLEBTN=no
39193 fi
39194 if test "$wxUSE_UNIVERSAL" = "yes"; then
39195 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39196echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39197 wxUSE_TOGGLEBTN=no
39198 fi
39199
39200 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39201 cat >>confdefs.h <<\_ACEOF
39202#define wxUSE_TOGGLEBTN 1
39203_ACEOF
39204
39205 USES_CONTROLS=1
39206 fi
39207fi
39208
39209if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39210 cat >>confdefs.h <<\_ACEOF
39211#define wxUSE_TOOLBAR_SIMPLE 1
39212_ACEOF
39213
39214 wxUSE_TOOLBAR="yes"
39215 USES_CONTROLS=1
39216fi
39217
39218if test "$wxUSE_TOOLBAR" = "yes"; then
39219 cat >>confdefs.h <<\_ACEOF
39220#define wxUSE_TOOLBAR 1
39221_ACEOF
39222
39223 USES_CONTROLS=1
39224
39225 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39226 wxUSE_TOOLBAR_NATIVE="yes"
39227 fi
39228
39229 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39230 cat >>confdefs.h <<\_ACEOF
39231#define wxUSE_TOOLBAR_NATIVE 1
39232_ACEOF
39233
39234 USES_CONTROLS=1
39235 fi
39236
39237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39238fi
39239
39240if test "$wxUSE_TOOLTIPS" = "yes"; then
39241 if test "$wxUSE_MOTIF" = 1; then
39242 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39243echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39244 else
39245 if test "$wxUSE_UNIVERSAL" = "yes"; then
39246 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39247echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39248 else
39249 cat >>confdefs.h <<\_ACEOF
39250#define wxUSE_TOOLTIPS 1
39251_ACEOF
39252
39253 fi
39254 fi
39255fi
39256
39257if test "$wxUSE_TREECTRL" = "yes"; then
39258 if test "$wxUSE_IMAGLIST" = "yes"; then
39259 cat >>confdefs.h <<\_ACEOF
39260#define wxUSE_TREECTRL 1
39261_ACEOF
39262
39263 USES_CONTROLS=1
39264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39265 else
39266 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39267echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39268 fi
39269fi
39270
39271if test "$wxUSE_POPUPWIN" = "yes"; then
39272 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39273 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39274echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39275 else
39276 if test "$wxUSE_PM" = 1; then
39277 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39278echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39279 else
39280 cat >>confdefs.h <<\_ACEOF
39281#define wxUSE_POPUPWIN 1
39282_ACEOF
39283
0b78747f 39284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39285
39286 USES_CONTROLS=1
39287 fi
39288 fi
39289fi
39290
0dcd06dd 39291if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39292 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39293 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39294echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39295 else
39296 cat >>confdefs.h <<\_ACEOF
39297#define wxUSE_DIALUP_MANAGER 1
39298_ACEOF
39299
39300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39301 fi
39302fi
39303
a848cd7e
SC
39304if test "$wxUSE_TIPWINDOW" = "yes"; then
39305 if test "$wxUSE_PM" = 1; then
39306 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39307echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39308 else
39309 cat >>confdefs.h <<\_ACEOF
39310#define wxUSE_TIPWINDOW 1
39311_ACEOF
39312
39313 fi
39314fi
39315
39316if test "$USES_CONTROLS" = 1; then
39317 cat >>confdefs.h <<\_ACEOF
39318#define wxUSE_CONTROLS 1
39319_ACEOF
39320
39321fi
39322
39323
39324if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39325 cat >>confdefs.h <<\_ACEOF
39326#define wxUSE_ACCESSIBILITY 1
39327_ACEOF
39328
39329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39330fi
39331
39332if test "$wxUSE_DRAGIMAGE" = "yes"; then
39333 cat >>confdefs.h <<\_ACEOF
39334#define wxUSE_DRAGIMAGE 1
39335_ACEOF
39336
39337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39338fi
39339
39340if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39341 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39342 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39343echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39344 else
39345 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39346#define wxUSE_EXCEPTIONS 1
39347_ACEOF
39348
07bea8f0
VS
39349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39350 fi
a848cd7e
SC
39351fi
39352
39353USE_HTML=0
39354if test "$wxUSE_HTML" = "yes"; then
39355 cat >>confdefs.h <<\_ACEOF
39356#define wxUSE_HTML 1
39357_ACEOF
39358
39359 USE_HTML=1
39360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39361 if test "$wxUSE_MAC" = 1; then
39362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39363 fi
a848cd7e 39364fi
646b6ec1 39365if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39366 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39367 old_CPPFLAGS="$CPPFLAGS"
39368 CPPFLAGS="$CPPFLAGS -x objective-c++"
39369 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39370echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39371if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39372 echo $ECHO_N "(cached) $ECHO_C" >&6
39373else
39374 cat >conftest.$ac_ext <<_ACEOF
39375/* confdefs.h. */
39376_ACEOF
39377cat confdefs.h >>conftest.$ac_ext
39378cat >>conftest.$ac_ext <<_ACEOF
39379/* end confdefs.h. */
39380#include <Carbon/Carbon.h>
39381
39382#include <WebKit/HIWebView.h>
39383_ACEOF
39384rm -f conftest.$ac_objext
39385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39386 (eval $ac_compile) 2>conftest.er1
39387 ac_status=$?
39388 grep -v '^ *+' conftest.er1 >conftest.err
39389 rm -f conftest.er1
39390 cat conftest.err >&5
39391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392 (exit $ac_status); } &&
9dd0f6c2 39393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39395 (eval $ac_try) 2>&5
39396 ac_status=$?
39397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39398 (exit $ac_status); }; } &&
39399 { ac_try='test -s conftest.$ac_objext'
39400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39401 (eval $ac_try) 2>&5
39402 ac_status=$?
39403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39404 (exit $ac_status); }; }; then
39405 ac_cv_header_WebKit_HIWebView_h=yes
39406else
39407 echo "$as_me: failed program was:" >&5
39408sed 's/^/| /' conftest.$ac_ext >&5
39409
39410ac_cv_header_WebKit_HIWebView_h=no
39411fi
39412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39413fi
39414echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39415echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39416if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39417
39418 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39419#define wxUSE_WEBKIT 1
39420_ACEOF
39421
07bea8f0
VS
39422 WEBKIT_LINK="-framework WebKit"
39423
39424else
39425
39426 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39427echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39428 wxUSE_WEBKIT=no
39429
646b6ec1
VS
39430fi
39431
07bea8f0
VS
39432
39433 CPPFLAGS="$old_CPPFLAGS"
39434 elif test "$wxUSE_COCOA" = 1; then
39435 cat >>confdefs.h <<\_ACEOF
39436#define wxUSE_WEBKIT 1
39437_ACEOF
39438
39439 else
39440 wxUSE_WEBKIT=no
39441 fi
39442fi
39443
9a8f0513
VS
39444USE_XRC=0
39445if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39446 if test "$wxUSE_XML" != "yes"; then
39447 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39448echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39449 wxUSE_XRC=no
39450 else
39451 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39452#define wxUSE_XRC 1
39453_ACEOF
39454
d2ebf0b7
VS
39455 USE_XRC=1
39456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39457 fi
9a8f0513 39458fi
07bea8f0 39459
a848cd7e
SC
39460if test "$wxUSE_MENUS" = "yes"; then
39461 cat >>confdefs.h <<\_ACEOF
39462#define wxUSE_MENUS 1
39463_ACEOF
39464
39465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39466fi
39467
39468if test "$wxUSE_METAFILE" = "yes"; then
39469 cat >>confdefs.h <<\_ACEOF
39470#define wxUSE_METAFILE 1
39471_ACEOF
39472
39473fi
39474
39475if test "$wxUSE_MIMETYPE" = "yes"; then
39476 cat >>confdefs.h <<\_ACEOF
39477#define wxUSE_MIMETYPE 1
39478_ACEOF
39479
39480fi
39481
39482if test "$wxUSE_MINIFRAME" = "yes"; then
39483 cat >>confdefs.h <<\_ACEOF
39484#define wxUSE_MINIFRAME 1
39485_ACEOF
39486
39487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39488fi
39489
39490if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39491 cat >>confdefs.h <<\_ACEOF
39492#define wxUSE_SYSTEM_OPTIONS 1
39493_ACEOF
39494
39495 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39496 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39498 fi
39499fi
39500
39501
39502if test "$wxUSE_VALIDATORS" = "yes"; then
39503 cat >>confdefs.h <<\_ACEOF
39504#define wxUSE_VALIDATORS 1
39505_ACEOF
39506
39507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39508fi
39509
39510if test "$wxUSE_PALETTE" = "yes" ; then
39511 cat >>confdefs.h <<\_ACEOF
39512#define wxUSE_PALETTE 1
39513_ACEOF
39514
39515fi
39516
39517if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39518 LIBS=" -lunicows $LIBS"
39519fi
39520
39521
39522if test "$wxUSE_IMAGE" = "yes" ; then
39523 cat >>confdefs.h <<\_ACEOF
39524#define wxUSE_IMAGE 1
39525_ACEOF
39526
39527
39528 if test "$wxUSE_GIF" = "yes" ; then
39529 cat >>confdefs.h <<\_ACEOF
39530#define wxUSE_GIF 1
39531_ACEOF
39532
39533 fi
39534
39535 if test "$wxUSE_PCX" = "yes" ; then
39536 cat >>confdefs.h <<\_ACEOF
39537#define wxUSE_PCX 1
39538_ACEOF
39539
39540 fi
39541
39542 if test "$wxUSE_IFF" = "yes" ; then
39543 cat >>confdefs.h <<\_ACEOF
39544#define wxUSE_IFF 1
39545_ACEOF
39546
39547 fi
39548
39549 if test "$wxUSE_PNM" = "yes" ; then
39550 cat >>confdefs.h <<\_ACEOF
39551#define wxUSE_PNM 1
39552_ACEOF
39553
39554 fi
39555
39556 if test "$wxUSE_XPM" = "yes" ; then
39557 cat >>confdefs.h <<\_ACEOF
39558#define wxUSE_XPM 1
39559_ACEOF
39560
39561 fi
39562
39563 if test "$wxUSE_ICO_CUR" = "yes" ; then
39564 cat >>confdefs.h <<\_ACEOF
39565#define wxUSE_ICO_CUR 1
39566_ACEOF
39567
39568 fi
39569fi
39570
39571
39572if test "$wxUSE_CHOICEDLG" = "yes"; then
39573 cat >>confdefs.h <<\_ACEOF
39574#define wxUSE_CHOICEDLG 1
39575_ACEOF
39576
39577fi
39578
39579if test "$wxUSE_COLOURDLG" = "yes"; then
39580 cat >>confdefs.h <<\_ACEOF
39581#define wxUSE_COLOURDLG 1
39582_ACEOF
39583
39584fi
39585
39586if test "$wxUSE_FILEDLG" = "yes"; then
39587 cat >>confdefs.h <<\_ACEOF
39588#define wxUSE_FILEDLG 1
39589_ACEOF
39590
39591fi
39592
39593if test "$wxUSE_FINDREPLDLG" = "yes"; then
39594 cat >>confdefs.h <<\_ACEOF
39595#define wxUSE_FINDREPLDLG 1
39596_ACEOF
39597
39598fi
39599
39600if test "$wxUSE_FONTDLG" = "yes"; then
39601 cat >>confdefs.h <<\_ACEOF
39602#define wxUSE_FONTDLG 1
39603_ACEOF
39604
39605fi
39606
39607if test "$wxUSE_DIRDLG" = "yes"; then
39608 if test "$wxUSE_TREECTRL" != "yes"; then
39609 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39610echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39611 else
39612 cat >>confdefs.h <<\_ACEOF
39613#define wxUSE_DIRDLG 1
39614_ACEOF
39615
39616 fi
39617fi
39618
39619if test "$wxUSE_MSGDLG" = "yes"; then
39620 cat >>confdefs.h <<\_ACEOF
39621#define wxUSE_MSGDLG 1
39622_ACEOF
39623
39624fi
39625
39626if test "$wxUSE_NUMBERDLG" = "yes"; then
39627 cat >>confdefs.h <<\_ACEOF
39628#define wxUSE_NUMBERDLG 1
39629_ACEOF
39630
39631fi
39632
39633if test "$wxUSE_PROGRESSDLG" = "yes"; then
39634 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39635 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39636echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39637 else
39638 cat >>confdefs.h <<\_ACEOF
39639#define wxUSE_PROGRESSDLG 1
39640_ACEOF
39641
39642 fi
39643fi
39644
39645if test "$wxUSE_SPLASH" = "yes"; then
39646 cat >>confdefs.h <<\_ACEOF
39647#define wxUSE_SPLASH 1
39648_ACEOF
39649
2057db16 39650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39651fi
39652
39653if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39654 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39655 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39656echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39657 else
39658 cat >>confdefs.h <<\_ACEOF
39659#define wxUSE_STARTUP_TIPS 1
39660_ACEOF
39661
39662 fi
39663fi
39664
39665if test "$wxUSE_TEXTDLG" = "yes"; then
39666 cat >>confdefs.h <<\_ACEOF
39667#define wxUSE_TEXTDLG 1
39668_ACEOF
39669
39670fi
39671
39672if test "$wxUSE_WIZARDDLG" = "yes"; then
39673 cat >>confdefs.h <<\_ACEOF
39674#define wxUSE_WIZARDDLG 1
39675_ACEOF
39676
39677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39678fi
39679
39680
ce756cb0
RN
39681if test "$wxUSE_MEDIACTRL" = "yes"; then
39682 if test "$wxUSE_MSW" = 1; then
39683 wxUSE_DIRECTSHOW="yes"
39684
39685for ac_header in dshow.h
39686do
39687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39688echo "$as_me:$LINENO: checking for $ac_header" >&5
39689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39690if eval "test \"\${$as_ac_Header+set}\" = set"; then
39691 echo $ECHO_N "(cached) $ECHO_C" >&6
39692else
39693 cat >conftest.$ac_ext <<_ACEOF
39694/* confdefs.h. */
39695_ACEOF
39696cat confdefs.h >>conftest.$ac_ext
39697cat >>conftest.$ac_ext <<_ACEOF
39698/* end confdefs.h. */
39699#include <windows.h>
39700
39701#include <$ac_header>
39702_ACEOF
39703rm -f conftest.$ac_objext
39704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39705 (eval $ac_compile) 2>conftest.er1
39706 ac_status=$?
39707 grep -v '^ *+' conftest.er1 >conftest.err
39708 rm -f conftest.er1
39709 cat conftest.err >&5
39710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39711 (exit $ac_status); } &&
9dd0f6c2 39712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39714 (eval $ac_try) 2>&5
39715 ac_status=$?
39716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39717 (exit $ac_status); }; } &&
39718 { ac_try='test -s conftest.$ac_objext'
39719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39720 (eval $ac_try) 2>&5
39721 ac_status=$?
39722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723 (exit $ac_status); }; }; then
39724 eval "$as_ac_Header=yes"
39725else
39726 echo "$as_me: failed program was:" >&5
39727sed 's/^/| /' conftest.$ac_ext >&5
39728
39729eval "$as_ac_Header=no"
39730fi
39731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39732fi
39733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39735if test `eval echo '${'$as_ac_Header'}'` = yes; then
39736 cat >>confdefs.h <<_ACEOF
39737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39738_ACEOF
39739
39740else
39741
39742 wxUSE_DIRECTSHOW="no"
39743 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39744echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39745
39746fi
39747
39748done
39749
39750
39751 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39752 cat >>confdefs.h <<\_ACEOF
39753#define wxUSE_DIRECTSHOW 1
39754_ACEOF
39755
39756 LIBS="$LIBS -lstrmiids"
39757 fi
39758 fi
39759
39760 if test "$wxUSE_GTK" = 1; then
39761 wxUSE_GSTREAMER="yes"
39762
ce756cb0 39763
dae87f93 39764 succeeded=no
ce756cb0 39765
dae87f93
RN
39766 if test -z "$PKG_CONFIG"; then
39767 # Extract the first word of "pkg-config", so it can be a program name with args.
39768set dummy pkg-config; ac_word=$2
39769echo "$as_me:$LINENO: checking for $ac_word" >&5
39770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39771if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39772 echo $ECHO_N "(cached) $ECHO_C" >&6
39773else
39774 case $PKG_CONFIG in
39775 [\\/]* | ?:[\\/]*)
39776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39777 ;;
39778 *)
39779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39780for as_dir in $PATH
39781do
39782 IFS=$as_save_IFS
39783 test -z "$as_dir" && as_dir=.
39784 for ac_exec_ext in '' $ac_executable_extensions; do
39785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39788 break 2
39789 fi
39790done
39791done
39792
39793 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39794 ;;
39795esac
39796fi
39797PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39798
39799if test -n "$PKG_CONFIG"; then
39800 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39801echo "${ECHO_T}$PKG_CONFIG" >&6
39802else
39803 echo "$as_me:$LINENO: result: no" >&5
39804echo "${ECHO_T}no" >&6
39805fi
39806
39807 fi
39808
39809 if test "$PKG_CONFIG" = "no" ; then
39810 echo "*** The pkg-config script could not be found. Make sure it is"
39811 echo "*** in your path, or set the PKG_CONFIG environment variable"
39812 echo "*** to the full path to pkg-config."
39813 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39814 else
39815 PKG_CONFIG_MIN_VERSION=0.9.0
39816 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39817 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39818echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39819
39820 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39821 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39822echo "${ECHO_T}yes" >&6
dae87f93 39823 succeeded=yes
ce756cb0 39824
dae87f93
RN
39825 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39826echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39827 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39828 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39829echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39830
39831 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39832echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39833 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39834 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39835echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39836 else
39837 GSTREAMER_CFLAGS=""
39838 GSTREAMER_LIBS=""
39839 ## If we have a custom action on failure, don't print errors, but
39840 ## do set a variable so people can do so.
39841 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39842
dae87f93
RN
39843 fi
39844
39845
39846
39847 else
39848 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39849 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39850 fi
39851 fi
39852
39853 if test $succeeded = yes; then
39854
39855 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39856 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39857
ce756cb0 39858 else
dae87f93
RN
39859
39860 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39861echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39862 wxUSE_GSTREAMER="no"
39863
39864 fi
39865
39866
39867
39868
39869
39870 if test "x$GST_INSPECT" == "x"; then
39871 # Extract the first word of "gst-inspect", so it can be a program name with args.
39872set dummy gst-inspect; ac_word=$2
39873echo "$as_me:$LINENO: checking for $ac_word" >&5
39874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39875if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39876 echo $ECHO_N "(cached) $ECHO_C" >&6
39877else
39878 if test -n "$GST_INSPECT"; then
39879 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39880else
39881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39882for as_dir in $PATH
39883do
39884 IFS=$as_save_IFS
39885 test -z "$as_dir" && as_dir=.
39886 for ac_exec_ext in '' $ac_executable_extensions; do
39887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39888 ac_cv_prog_GST_INSPECT="gst-inspect"
39889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39890 break 2
ce756cb0 39891 fi
dae87f93
RN
39892done
39893done
39894
39895fi
39896fi
39897GST_INSPECT=$ac_cv_prog_GST_INSPECT
39898if test -n "$GST_INSPECT"; then
39899 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39900echo "${ECHO_T}$GST_INSPECT" >&6
39901else
39902 echo "$as_me:$LINENO: result: no" >&5
39903echo "${ECHO_T}no" >&6
39904fi
39905
39906 fi
39907
39908 if test "x$GST_INSPECT" != "x"; then
39909 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39910echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39911 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39912 echo "$as_me:$LINENO: result: found." >&5
39913echo "${ECHO_T}found." >&6
ce756cb0 39914
ce756cb0 39915 else
dae87f93
RN
39916 echo "$as_me:$LINENO: result: not found." >&5
39917echo "${ECHO_T}not found." >&6
39918
39919 wxUSE_GSTREAMER="no"
39920 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39921echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39922
39923 fi
39924 fi
39925
39926
39927 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39928echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39929if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39930 echo $ECHO_N "(cached) $ECHO_C" >&6
39931else
39932 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39933/* confdefs.h. */
39934_ACEOF
39935cat confdefs.h >>conftest.$ac_ext
39936cat >>conftest.$ac_ext <<_ACEOF
39937/* end confdefs.h. */
dae87f93 39938#include <gst/gst.h>
ce756cb0 39939
dae87f93 39940#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39941_ACEOF
39942rm -f conftest.$ac_objext
39943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39944 (eval $ac_compile) 2>conftest.er1
39945 ac_status=$?
39946 grep -v '^ *+' conftest.er1 >conftest.err
39947 rm -f conftest.er1
39948 cat conftest.err >&5
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); } &&
9dd0f6c2 39951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39954 ac_status=$?
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; } &&
39957 { ac_try='test -s conftest.$ac_objext'
39958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39959 (eval $ac_try) 2>&5
39960 ac_status=$?
39961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39962 (exit $ac_status); }; }; then
dae87f93 39963 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39964else
39965 echo "$as_me: failed program was:" >&5
39966sed 's/^/| /' conftest.$ac_ext >&5
39967
dae87f93 39968ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39969fi
39970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39971fi
39972echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39973echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39974if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39975 :
39976else
ce756cb0 39977
dae87f93
RN
39978 wxUSE_GSTREAMER="no"
39979 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39980echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39981
dae87f93 39982fi
ce756cb0 39983
dae87f93
RN
39984
39985
39986 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39987echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39988
39989ac_find_libraries=
39990for ac_dir in $SEARCH_LIB /usr/lib;
39991 do
39992 for ac_extension in a so sl dylib; do
39993 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39994 ac_find_libraries=$ac_dir
39995 break 2
39996 fi
39997 done
39998 done
39999
ce756cb0 40000
dae87f93
RN
40001 if test "$ac_find_libraries" = "" ; then
40002 echo "$as_me:$LINENO: result: no" >&5
40003echo "${ECHO_T}no" >&6
40004 wxUSE_GSTREAMER="no"
40005 else
40006 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40007echo "${ECHO_T}yes" >&6
dae87f93 40008 fi
ce756cb0 40009
dae87f93
RN
40010 if test "$wxUSE_GSTREAMER" = "yes"; then
40011 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40012#define wxUSE_GSTREAMER 1
40013_ACEOF
40014
dae87f93
RN
40015 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40016echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40017 fi
40018 fi
40019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40020 cat >>confdefs.h <<\_ACEOF
40021#define wxUSE_MEDIACTRL 1
40022_ACEOF
40023
40024fi
40025
40026
a848cd7e
SC
40027if test "$cross_compiling" = "yes"; then
40028 OSINFO="\"$host\""
40029else
40030 OSINFO=`uname -s -r -m`
40031 OSINFO="\"$OSINFO\""
40032fi
40033
40034cat >>confdefs.h <<_ACEOF
40035#define WXWIN_OS_DESCRIPTION $OSINFO
40036_ACEOF
40037
40038
40039
40040if test "x$prefix" != "xNONE"; then
40041 wxPREFIX=$prefix
40042else
40043 wxPREFIX=$ac_default_prefix
40044fi
40045
40046cat >>confdefs.h <<_ACEOF
40047#define wxINSTALL_PREFIX "$wxPREFIX"
40048_ACEOF
40049
40050
a848cd7e
SC
40051
40052
40053CORE_BASE_LIBS="net base"
40054CORE_GUI_LIBS="adv core"
40055
40056if test "$wxUSE_XML" = "yes" ; then
40057 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40058fi
40059if test "$wxUSE_ODBC" != "no" ; then
40060 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40061 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40062fi
40063if test "$wxUSE_HTML" = "yes" ; then
40064 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40065fi
61639efb
VZ
40066if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40067 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40068fi
9a8f0513
VS
40069if test "$wxUSE_XRC" = "yes" ; then
40070 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40071fi
a848cd7e
SC
40072
40073if test "$wxUSE_GUI" != "yes"; then
40074 CORE_GUI_LIBS=""
40075fi
40076
40077
40078
40079
40080
40081
40082
40083
40084if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40085 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40086 if test "$USE_DARWIN" = 1; then
40087 LDFLAGS="$LDFLAGS -framework QuickTime"
40088 else
40089 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40090 fi
07bea8f0 40091 fi
5dcf30a0 40092 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40093 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40094 else
40095 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40096 fi
59746b65
MW
40097elif test "$USE_DARWIN" = 1; then
40098 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
40099fi
40100if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40101 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40102 if test "$wxUSE_MEDIACTRL" = "yes"; then
40103 LDFLAGS="$LDFLAGS -framework QuickTime"
40104 fi
a848cd7e
SC
40105fi
40106
40107
40108LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40109
40110have_cos=0
40111have_floor=0
40112
40113for ac_func in cos
40114do
40115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40116echo "$as_me:$LINENO: checking for $ac_func" >&5
40117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40118if eval "test \"\${$as_ac_var+set}\" = set"; then
40119 echo $ECHO_N "(cached) $ECHO_C" >&6
40120else
40121 cat >conftest.$ac_ext <<_ACEOF
40122/* confdefs.h. */
40123_ACEOF
40124cat confdefs.h >>conftest.$ac_ext
40125cat >>conftest.$ac_ext <<_ACEOF
40126/* end confdefs.h. */
ac1cb8d3
VS
40127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40129#define $ac_func innocuous_$ac_func
40130
a848cd7e
SC
40131/* System header to define __stub macros and hopefully few prototypes,
40132 which can conflict with char $ac_func (); below.
40133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40134 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40135
a848cd7e
SC
40136#ifdef __STDC__
40137# include <limits.h>
40138#else
40139# include <assert.h>
40140#endif
ac1cb8d3
VS
40141
40142#undef $ac_func
40143
a848cd7e
SC
40144/* Override any gcc2 internal prototype to avoid an error. */
40145#ifdef __cplusplus
40146extern "C"
40147{
40148#endif
40149/* We use char because int might match the return type of a gcc2
40150 builtin and then its argument prototype would still apply. */
40151char $ac_func ();
40152/* The GNU C library defines this for functions which it implements
40153 to always fail with ENOSYS. Some functions are actually named
40154 something starting with __ and the normal name is an alias. */
40155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40156choke me
40157#else
40158char (*f) () = $ac_func;
40159#endif
40160#ifdef __cplusplus
40161}
40162#endif
40163
40164int
40165main ()
40166{
40167return f != $ac_func;
40168 ;
40169 return 0;
40170}
40171_ACEOF
40172rm -f conftest.$ac_objext conftest$ac_exeext
40173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40174 (eval $ac_link) 2>conftest.er1
a848cd7e 40175 ac_status=$?
ac1cb8d3
VS
40176 grep -v '^ *+' conftest.er1 >conftest.err
40177 rm -f conftest.er1
40178 cat conftest.err >&5
a848cd7e
SC
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); } &&
9dd0f6c2 40181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40183 (eval $ac_try) 2>&5
40184 ac_status=$?
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); }; } &&
40187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189 (eval $ac_try) 2>&5
40190 ac_status=$?
40191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192 (exit $ac_status); }; }; then
40193 eval "$as_ac_var=yes"
40194else
40195 echo "$as_me: failed program was:" >&5
40196sed 's/^/| /' conftest.$ac_ext >&5
40197
40198eval "$as_ac_var=no"
40199fi
ac1cb8d3
VS
40200rm -f conftest.err conftest.$ac_objext \
40201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40202fi
40203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40205if test `eval echo '${'$as_ac_var'}'` = yes; then
40206 cat >>confdefs.h <<_ACEOF
40207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40208_ACEOF
40209 have_cos=1
40210fi
40211done
40212
40213
40214for ac_func in floor
40215do
40216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40217echo "$as_me:$LINENO: checking for $ac_func" >&5
40218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40219if eval "test \"\${$as_ac_var+set}\" = set"; then
40220 echo $ECHO_N "(cached) $ECHO_C" >&6
40221else
40222 cat >conftest.$ac_ext <<_ACEOF
40223/* confdefs.h. */
40224_ACEOF
40225cat confdefs.h >>conftest.$ac_ext
40226cat >>conftest.$ac_ext <<_ACEOF
40227/* end confdefs.h. */
ac1cb8d3
VS
40228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40230#define $ac_func innocuous_$ac_func
40231
a848cd7e
SC
40232/* System header to define __stub macros and hopefully few prototypes,
40233 which can conflict with char $ac_func (); below.
40234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40235 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40236
a848cd7e
SC
40237#ifdef __STDC__
40238# include <limits.h>
40239#else
40240# include <assert.h>
40241#endif
ac1cb8d3
VS
40242
40243#undef $ac_func
40244
a848cd7e
SC
40245/* Override any gcc2 internal prototype to avoid an error. */
40246#ifdef __cplusplus
40247extern "C"
40248{
40249#endif
40250/* We use char because int might match the return type of a gcc2
40251 builtin and then its argument prototype would still apply. */
40252char $ac_func ();
40253/* The GNU C library defines this for functions which it implements
40254 to always fail with ENOSYS. Some functions are actually named
40255 something starting with __ and the normal name is an alias. */
40256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40257choke me
40258#else
40259char (*f) () = $ac_func;
40260#endif
40261#ifdef __cplusplus
40262}
40263#endif
40264
40265int
40266main ()
40267{
40268return f != $ac_func;
40269 ;
40270 return 0;
40271}
40272_ACEOF
40273rm -f conftest.$ac_objext conftest$ac_exeext
40274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40275 (eval $ac_link) 2>conftest.er1
a848cd7e 40276 ac_status=$?
ac1cb8d3
VS
40277 grep -v '^ *+' conftest.er1 >conftest.err
40278 rm -f conftest.er1
40279 cat conftest.err >&5
a848cd7e
SC
40280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281 (exit $ac_status); } &&
9dd0f6c2 40282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40284 (eval $ac_try) 2>&5
40285 ac_status=$?
40286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287 (exit $ac_status); }; } &&
40288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40290 (eval $ac_try) 2>&5
40291 ac_status=$?
40292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293 (exit $ac_status); }; }; then
40294 eval "$as_ac_var=yes"
40295else
40296 echo "$as_me: failed program was:" >&5
40297sed 's/^/| /' conftest.$ac_ext >&5
40298
40299eval "$as_ac_var=no"
40300fi
ac1cb8d3
VS
40301rm -f conftest.err conftest.$ac_objext \
40302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40303fi
40304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40306if test `eval echo '${'$as_ac_var'}'` = yes; then
40307 cat >>confdefs.h <<_ACEOF
40308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40309_ACEOF
40310 have_floor=1
40311fi
40312done
40313
40314echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40315echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40316if test "$have_cos" = 1 -a "$have_floor" = 1; then
40317 echo "$as_me:$LINENO: result: yes" >&5
40318echo "${ECHO_T}yes" >&6
40319else
40320 echo "$as_me:$LINENO: result: no" >&5
40321echo "${ECHO_T}no" >&6
40322 LIBS="$LIBS -lm"
40323 # use different functions to avoid configure caching
40324 have_sin=0
40325 have_ceil=0
40326
40327for ac_func in sin
40328do
40329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40330echo "$as_me:$LINENO: checking for $ac_func" >&5
40331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40332if eval "test \"\${$as_ac_var+set}\" = set"; then
40333 echo $ECHO_N "(cached) $ECHO_C" >&6
40334else
40335 cat >conftest.$ac_ext <<_ACEOF
40336/* confdefs.h. */
40337_ACEOF
40338cat confdefs.h >>conftest.$ac_ext
40339cat >>conftest.$ac_ext <<_ACEOF
40340/* end confdefs.h. */
ac1cb8d3
VS
40341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40343#define $ac_func innocuous_$ac_func
40344
a848cd7e
SC
40345/* System header to define __stub macros and hopefully few prototypes,
40346 which can conflict with char $ac_func (); below.
40347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40348 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40349
a848cd7e
SC
40350#ifdef __STDC__
40351# include <limits.h>
40352#else
40353# include <assert.h>
40354#endif
ac1cb8d3
VS
40355
40356#undef $ac_func
40357
a848cd7e
SC
40358/* Override any gcc2 internal prototype to avoid an error. */
40359#ifdef __cplusplus
40360extern "C"
40361{
40362#endif
40363/* We use char because int might match the return type of a gcc2
40364 builtin and then its argument prototype would still apply. */
40365char $ac_func ();
40366/* The GNU C library defines this for functions which it implements
40367 to always fail with ENOSYS. Some functions are actually named
40368 something starting with __ and the normal name is an alias. */
40369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40370choke me
40371#else
40372char (*f) () = $ac_func;
40373#endif
40374#ifdef __cplusplus
40375}
40376#endif
40377
40378int
40379main ()
40380{
40381return f != $ac_func;
40382 ;
40383 return 0;
40384}
40385_ACEOF
40386rm -f conftest.$ac_objext conftest$ac_exeext
40387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40388 (eval $ac_link) 2>conftest.er1
a848cd7e 40389 ac_status=$?
ac1cb8d3
VS
40390 grep -v '^ *+' conftest.er1 >conftest.err
40391 rm -f conftest.er1
40392 cat conftest.err >&5
a848cd7e
SC
40393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40394 (exit $ac_status); } &&
9dd0f6c2 40395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40397 (eval $ac_try) 2>&5
40398 ac_status=$?
40399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400 (exit $ac_status); }; } &&
40401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40403 (eval $ac_try) 2>&5
40404 ac_status=$?
40405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406 (exit $ac_status); }; }; then
40407 eval "$as_ac_var=yes"
40408else
40409 echo "$as_me: failed program was:" >&5
40410sed 's/^/| /' conftest.$ac_ext >&5
40411
40412eval "$as_ac_var=no"
40413fi
ac1cb8d3
VS
40414rm -f conftest.err conftest.$ac_objext \
40415 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40416fi
40417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40418echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40419if test `eval echo '${'$as_ac_var'}'` = yes; then
40420 cat >>confdefs.h <<_ACEOF
40421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40422_ACEOF
40423 have_sin=1
40424fi
40425done
40426
40427
40428for ac_func in ceil
40429do
40430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40431echo "$as_me:$LINENO: checking for $ac_func" >&5
40432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40433if eval "test \"\${$as_ac_var+set}\" = set"; then
40434 echo $ECHO_N "(cached) $ECHO_C" >&6
40435else
40436 cat >conftest.$ac_ext <<_ACEOF
40437/* confdefs.h. */
40438_ACEOF
40439cat confdefs.h >>conftest.$ac_ext
40440cat >>conftest.$ac_ext <<_ACEOF
40441/* end confdefs.h. */
ac1cb8d3
VS
40442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40444#define $ac_func innocuous_$ac_func
40445
a848cd7e
SC
40446/* System header to define __stub macros and hopefully few prototypes,
40447 which can conflict with char $ac_func (); below.
40448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40449 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40450
a848cd7e
SC
40451#ifdef __STDC__
40452# include <limits.h>
40453#else
40454# include <assert.h>
40455#endif
ac1cb8d3
VS
40456
40457#undef $ac_func
40458
a848cd7e
SC
40459/* Override any gcc2 internal prototype to avoid an error. */
40460#ifdef __cplusplus
40461extern "C"
40462{
40463#endif
40464/* We use char because int might match the return type of a gcc2
40465 builtin and then its argument prototype would still apply. */
40466char $ac_func ();
40467/* The GNU C library defines this for functions which it implements
40468 to always fail with ENOSYS. Some functions are actually named
40469 something starting with __ and the normal name is an alias. */
40470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40471choke me
40472#else
40473char (*f) () = $ac_func;
40474#endif
40475#ifdef __cplusplus
40476}
40477#endif
40478
40479int
40480main ()
40481{
40482return f != $ac_func;
40483 ;
40484 return 0;
40485}
40486_ACEOF
40487rm -f conftest.$ac_objext conftest$ac_exeext
40488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40489 (eval $ac_link) 2>conftest.er1
a848cd7e 40490 ac_status=$?
ac1cb8d3
VS
40491 grep -v '^ *+' conftest.er1 >conftest.err
40492 rm -f conftest.er1
40493 cat conftest.err >&5
a848cd7e
SC
40494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495 (exit $ac_status); } &&
9dd0f6c2 40496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40498 (eval $ac_try) 2>&5
40499 ac_status=$?
40500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501 (exit $ac_status); }; } &&
40502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40504 (eval $ac_try) 2>&5
40505 ac_status=$?
40506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507 (exit $ac_status); }; }; then
40508 eval "$as_ac_var=yes"
40509else
40510 echo "$as_me: failed program was:" >&5
40511sed 's/^/| /' conftest.$ac_ext >&5
40512
40513eval "$as_ac_var=no"
40514fi
ac1cb8d3
VS
40515rm -f conftest.err conftest.$ac_objext \
40516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40517fi
40518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40520if test `eval echo '${'$as_ac_var'}'` = yes; then
40521 cat >>confdefs.h <<_ACEOF
40522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40523_ACEOF
40524 have_ceil=1
40525fi
40526done
40527
40528 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40529echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40530 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40531 echo "$as_me:$LINENO: result: yes" >&5
40532echo "${ECHO_T}yes" >&6
40533 else
40534 echo "$as_me:$LINENO: result: no" >&5
40535echo "${ECHO_T}no" >&6
40536 # not sure we should warn the user, crash, etc.
40537 fi
40538fi
40539
40540if test "$wxUSE_GUI" = "yes"; then
40541
40542
8bce5cda
MW
40543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40544 dynamic erase event exec font image minimal mobile \
40545 mobile/wxedit mobile/styles propsize render \
40546 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40547
40548 if test "$wxUSE_MONOLITHIC" != "yes"; then
40549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40550 fi
0b78747f 40551 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40553 if test "$wxUSE_UNIVERSAL" != "yes"; then
40554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40555 fi
40556 fi
40557 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40559 fi
a848cd7e
SC
40560else
40561 SAMPLES_SUBDIRS="console"
40562fi
40563
40564
ceec2216 40565INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40566-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40567
40568if test "$GXX" = yes ; then
5294a27e
VZ
40569 CWARNINGS="-Wall"
40570 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40571 fi
40572
40573EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40574
0c3c69fc 40575CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40576CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40577CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40578
95986553
DE
40579if test "x$MWCC" = "xyes"; then
40580
40581 CC="$CC -cwd source -I-"
40582 CXX="$CXX -cwd source -I-"
40583fi
40584
a848cd7e 40585
0c3c69fc 40586LIBS=`echo $LIBS`
a848cd7e
SC
40587EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40588EXTRALIBS_XML="$EXPAT_LINK"
40589EXTRALIBS_HTML="$MSPACK_LINK"
40590EXTRALIBS_ODBC="$ODBC_LINK"
40591if test "$wxUSE_GUI" = "yes"; then
2e350179 40592 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40593fi
40594if test "$wxUSE_OPENGL" = "yes"; then
40595 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40596fi
40597
40598LDFLAGS="$LDFLAGS $PROFILE"
40599
40600if test "$wxUSE_GTK" = 1; then
40601 WXCONFIG_INCLUDE=
40602else
40603 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40604fi
40605
40606WXCONFIG_EXTRALIBS="$LIBS"
40607
40608if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40609 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40610fi
40611if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40612 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40613fi
40614if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40615 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40616fi
40617if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40618 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40619fi
40620if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40621 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40622fi
40623if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40624 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40625fi
40626if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40627 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40628fi
40629
40630for i in $wxconfig_3rdparty ; do
74802184 40631 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40632done
40633
40634
40635if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40636 WXUNIV=1
40637else
40638 WXUNIV=0
40639fi
40640
40641
40642
40643
40644
40645
40646
40647
40648
40649if test $wxUSE_MONOLITHIC = "yes" ; then
40650 MONOLITHIC=1
40651else
40652 MONOLITHIC=0
40653fi
40654
40655if test $wxUSE_PLUGINS = "yes" ; then
40656 USE_PLUGINS=1
40657else
40658 USE_PLUGINS=0
40659fi
40660
40661if test $wxUSE_ODBC != "no" ; then
40662 USE_ODBC=1
40663else
40664 USE_ODBC=0
40665fi
40666
16358932
VZ
40667if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40668 USE_QA=1
40669else
40670 USE_QA=0
40671fi
40672
a848cd7e
SC
40673if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40674 OFFICIAL_BUILD=1
40675else
40676 OFFICIAL_BUILD=0
40677fi
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
ceec2216 40697
d1c38808 40698
a848cd7e
SC
40699
40700
40701TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40702
40703
40704
40705
40706
40707
40708
40709
4d4ff94c
VZ
40710case "$TOOLKIT" in
40711 GTK)
40712 TOOLKIT_USER="GTK+"
40713 if test "$WXGTK20" = 1; then
40714 TOOLKIT_USER="$TOOLKIT_USER 2"
40715 fi
9a8f0513 40716 ;;
4d4ff94c
VZ
40717
40718 *)
40719 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40720 ;;
4d4ff94c 40721esac
a848cd7e 40722
9a8f0513 40723
1e9e8aba
DE
40724
40725
a848cd7e
SC
40726 if test "x$BAKEFILE_HOST" = "x"; then
40727 BAKEFILE_HOST="${host}"
40728 fi
40729
40730 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40731
40732 if test -n "$ac_tool_prefix"; then
40733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40734set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40735echo "$as_me:$LINENO: checking for $ac_word" >&5
40736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40737if test "${ac_cv_prog_RANLIB+set}" = set; then
40738 echo $ECHO_N "(cached) $ECHO_C" >&6
40739else
40740 if test -n "$RANLIB"; then
40741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40742else
40743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40744for as_dir in $PATH
40745do
40746 IFS=$as_save_IFS
40747 test -z "$as_dir" && as_dir=.
40748 for ac_exec_ext in '' $ac_executable_extensions; do
40749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40752 break 2
40753 fi
40754done
40755done
40756
40757fi
40758fi
40759RANLIB=$ac_cv_prog_RANLIB
40760if test -n "$RANLIB"; then
40761 echo "$as_me:$LINENO: result: $RANLIB" >&5
40762echo "${ECHO_T}$RANLIB" >&6
40763else
40764 echo "$as_me:$LINENO: result: no" >&5
40765echo "${ECHO_T}no" >&6
40766fi
40767
40768fi
40769if test -z "$ac_cv_prog_RANLIB"; then
40770 ac_ct_RANLIB=$RANLIB
40771 # Extract the first word of "ranlib", so it can be a program name with args.
40772set dummy ranlib; ac_word=$2
40773echo "$as_me:$LINENO: checking for $ac_word" >&5
40774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40775if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40776 echo $ECHO_N "(cached) $ECHO_C" >&6
40777else
40778 if test -n "$ac_ct_RANLIB"; then
40779 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40780else
40781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40782for as_dir in $PATH
40783do
40784 IFS=$as_save_IFS
40785 test -z "$as_dir" && as_dir=.
40786 for ac_exec_ext in '' $ac_executable_extensions; do
40787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40788 ac_cv_prog_ac_ct_RANLIB="ranlib"
40789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40790 break 2
40791 fi
40792done
40793done
40794
40795 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40796fi
40797fi
40798ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40799if test -n "$ac_ct_RANLIB"; then
40800 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40801echo "${ECHO_T}$ac_ct_RANLIB" >&6
40802else
40803 echo "$as_me:$LINENO: result: no" >&5
40804echo "${ECHO_T}no" >&6
40805fi
40806
40807 RANLIB=$ac_ct_RANLIB
40808else
40809 RANLIB="$ac_cv_prog_RANLIB"
40810fi
40811
40812 # Find a good install program. We prefer a C program (faster),
40813# so one script is as good as another. But avoid the broken or
40814# incompatible versions:
40815# SysV /etc/install, /usr/sbin/install
40816# SunOS /usr/etc/install
40817# IRIX /sbin/install
40818# AIX /bin/install
40819# AmigaOS /C/install, which installs bootblocks on floppy discs
40820# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40821# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40822# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40823# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40824# ./install, which can be erroneously created by make from ./install.sh.
40825echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40826echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40827if test -z "$INSTALL"; then
40828if test "${ac_cv_path_install+set}" = set; then
40829 echo $ECHO_N "(cached) $ECHO_C" >&6
40830else
40831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40832for as_dir in $PATH
40833do
40834 IFS=$as_save_IFS
40835 test -z "$as_dir" && as_dir=.
40836 # Account for people who put trailing slashes in PATH elements.
40837case $as_dir/ in
40838 ./ | .// | /cC/* | \
40839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40840 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40841 /usr/ucb/* ) ;;
40842 *)
40843 # OSF1 and SCO ODT 3.0 have their own names for install.
40844 # Don't use installbsd from OSF since it installs stuff as root
40845 # by default.
40846 for ac_prog in ginstall scoinst install; do
40847 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40848 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40849 if test $ac_prog = install &&
40850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40851 # AIX install. It has an incompatible calling convention.
40852 :
40853 elif test $ac_prog = install &&
40854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40855 # program-specific install script used by HP pwplus--don't use.
40856 :
40857 else
40858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40859 break 3
40860 fi
40861 fi
a848cd7e
SC
40862 done
40863 done
40864 ;;
40865esac
40866done
40867
40868
40869fi
40870 if test "${ac_cv_path_install+set}" = set; then
40871 INSTALL=$ac_cv_path_install
40872 else
40873 # As a last resort, use the slow shell script. We don't cache a
40874 # path for INSTALL within a source directory, because that will
40875 # break other packages using the cache if that directory is
40876 # removed, or if the path is relative.
40877 INSTALL=$ac_install_sh
40878 fi
40879fi
40880echo "$as_me:$LINENO: result: $INSTALL" >&5
40881echo "${ECHO_T}$INSTALL" >&6
40882
40883# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40884# It thinks the first close brace ends the variable substitution.
40885test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40886
40887test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40888
40889test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40890
40891 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40892echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40893LN_S=$as_ln_s
40894if test "$LN_S" = "ln -s"; then
40895 echo "$as_me:$LINENO: result: yes" >&5
40896echo "${ECHO_T}yes" >&6
40897else
40898 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40899echo "${ECHO_T}no, using $LN_S" >&6
40900fi
40901
40902
40903 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40904echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40905set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40906if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40907 echo $ECHO_N "(cached) $ECHO_C" >&6
40908else
40909 cat >conftest.make <<\_ACEOF
40910all:
40911 @echo 'ac_maketemp="$(MAKE)"'
40912_ACEOF
40913# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40914eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40915if test -n "$ac_maketemp"; then
40916 eval ac_cv_prog_make_${ac_make}_set=yes
40917else
40918 eval ac_cv_prog_make_${ac_make}_set=no
40919fi
40920rm -f conftest.make
40921fi
40922if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40923 echo "$as_me:$LINENO: result: yes" >&5
40924echo "${ECHO_T}yes" >&6
40925 SET_MAKE=
40926else
40927 echo "$as_me:$LINENO: result: no" >&5
40928echo "${ECHO_T}no" >&6
40929 SET_MAKE="MAKE=${MAKE-make}"
40930fi
40931
40932
40933
40934 if test -n "$ac_tool_prefix"; then
40935 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40936set dummy ${ac_tool_prefix}ar; ac_word=$2
40937echo "$as_me:$LINENO: checking for $ac_word" >&5
40938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40939if test "${ac_cv_prog_AR+set}" = set; then
40940 echo $ECHO_N "(cached) $ECHO_C" >&6
40941else
40942 if test -n "$AR"; then
40943 ac_cv_prog_AR="$AR" # Let the user override the test.
40944else
40945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40946for as_dir in $PATH
40947do
40948 IFS=$as_save_IFS
40949 test -z "$as_dir" && as_dir=.
40950 for ac_exec_ext in '' $ac_executable_extensions; do
40951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40952 ac_cv_prog_AR="${ac_tool_prefix}ar"
40953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40954 break 2
40955 fi
40956done
40957done
40958
40959fi
40960fi
40961AR=$ac_cv_prog_AR
40962if test -n "$AR"; then
40963 echo "$as_me:$LINENO: result: $AR" >&5
40964echo "${ECHO_T}$AR" >&6
40965else
40966 echo "$as_me:$LINENO: result: no" >&5
40967echo "${ECHO_T}no" >&6
40968fi
40969
40970fi
40971if test -z "$ac_cv_prog_AR"; then
40972 ac_ct_AR=$AR
40973 # Extract the first word of "ar", so it can be a program name with args.
40974set dummy ar; ac_word=$2
40975echo "$as_me:$LINENO: checking for $ac_word" >&5
40976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40977if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40978 echo $ECHO_N "(cached) $ECHO_C" >&6
40979else
40980 if test -n "$ac_ct_AR"; then
40981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40982else
40983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40984for as_dir in $PATH
40985do
40986 IFS=$as_save_IFS
40987 test -z "$as_dir" && as_dir=.
40988 for ac_exec_ext in '' $ac_executable_extensions; do
40989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40990 ac_cv_prog_ac_ct_AR="ar"
40991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40992 break 2
40993 fi
40994done
40995done
40996
40997 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40998fi
40999fi
41000ac_ct_AR=$ac_cv_prog_ac_ct_AR
41001if test -n "$ac_ct_AR"; then
41002 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41003echo "${ECHO_T}$ac_ct_AR" >&6
41004else
41005 echo "$as_me:$LINENO: result: no" >&5
41006echo "${ECHO_T}no" >&6
41007fi
41008
41009 AR=$ac_ct_AR
41010else
41011 AR="$ac_cv_prog_AR"
41012fi
41013
41014 if test -n "$ac_tool_prefix"; then
41015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41016set dummy ${ac_tool_prefix}strip; ac_word=$2
41017echo "$as_me:$LINENO: checking for $ac_word" >&5
41018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41019if test "${ac_cv_prog_STRIP+set}" = set; then
41020 echo $ECHO_N "(cached) $ECHO_C" >&6
41021else
41022 if test -n "$STRIP"; then
41023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41024else
41025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41026for as_dir in $PATH
41027do
41028 IFS=$as_save_IFS
41029 test -z "$as_dir" && as_dir=.
41030 for ac_exec_ext in '' $ac_executable_extensions; do
41031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41034 break 2
41035 fi
41036done
41037done
41038
41039fi
41040fi
41041STRIP=$ac_cv_prog_STRIP
41042if test -n "$STRIP"; then
41043 echo "$as_me:$LINENO: result: $STRIP" >&5
41044echo "${ECHO_T}$STRIP" >&6
41045else
41046 echo "$as_me:$LINENO: result: no" >&5
41047echo "${ECHO_T}no" >&6
41048fi
41049
41050fi
41051if test -z "$ac_cv_prog_STRIP"; then
41052 ac_ct_STRIP=$STRIP
41053 # Extract the first word of "strip", so it can be a program name with args.
41054set dummy strip; ac_word=$2
41055echo "$as_me:$LINENO: checking for $ac_word" >&5
41056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41057if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41058 echo $ECHO_N "(cached) $ECHO_C" >&6
41059else
41060 if test -n "$ac_ct_STRIP"; then
41061 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41062else
41063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41064for as_dir in $PATH
41065do
41066 IFS=$as_save_IFS
41067 test -z "$as_dir" && as_dir=.
41068 for ac_exec_ext in '' $ac_executable_extensions; do
41069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41070 ac_cv_prog_ac_ct_STRIP="strip"
41071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41072 break 2
41073 fi
41074done
41075done
41076
41077 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41078fi
41079fi
41080ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41081if test -n "$ac_ct_STRIP"; then
41082 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41083echo "${ECHO_T}$ac_ct_STRIP" >&6
41084else
41085 echo "$as_me:$LINENO: result: no" >&5
41086echo "${ECHO_T}no" >&6
41087fi
41088
41089 STRIP=$ac_ct_STRIP
41090else
41091 STRIP="$ac_cv_prog_STRIP"
41092fi
41093
41094 if test -n "$ac_tool_prefix"; then
41095 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41096set dummy ${ac_tool_prefix}nm; ac_word=$2
41097echo "$as_me:$LINENO: checking for $ac_word" >&5
41098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41099if test "${ac_cv_prog_NM+set}" = set; then
41100 echo $ECHO_N "(cached) $ECHO_C" >&6
41101else
41102 if test -n "$NM"; then
41103 ac_cv_prog_NM="$NM" # Let the user override the test.
41104else
41105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41106for as_dir in $PATH
41107do
41108 IFS=$as_save_IFS
41109 test -z "$as_dir" && as_dir=.
41110 for ac_exec_ext in '' $ac_executable_extensions; do
41111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41112 ac_cv_prog_NM="${ac_tool_prefix}nm"
41113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41114 break 2
41115 fi
41116done
41117done
41118
41119fi
41120fi
41121NM=$ac_cv_prog_NM
41122if test -n "$NM"; then
41123 echo "$as_me:$LINENO: result: $NM" >&5
41124echo "${ECHO_T}$NM" >&6
41125else
41126 echo "$as_me:$LINENO: result: no" >&5
41127echo "${ECHO_T}no" >&6
41128fi
41129
41130fi
41131if test -z "$ac_cv_prog_NM"; then
41132 ac_ct_NM=$NM
41133 # Extract the first word of "nm", so it can be a program name with args.
41134set dummy nm; ac_word=$2
41135echo "$as_me:$LINENO: checking for $ac_word" >&5
41136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41137if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41138 echo $ECHO_N "(cached) $ECHO_C" >&6
41139else
41140 if test -n "$ac_ct_NM"; then
41141 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41142else
41143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41144for as_dir in $PATH
41145do
41146 IFS=$as_save_IFS
41147 test -z "$as_dir" && as_dir=.
41148 for ac_exec_ext in '' $ac_executable_extensions; do
41149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41150 ac_cv_prog_ac_ct_NM="nm"
41151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41152 break 2
41153 fi
41154done
41155done
41156
41157 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41158fi
41159fi
41160ac_ct_NM=$ac_cv_prog_ac_ct_NM
41161if test -n "$ac_ct_NM"; then
41162 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41163echo "${ECHO_T}$ac_ct_NM" >&6
41164else
41165 echo "$as_me:$LINENO: result: no" >&5
41166echo "${ECHO_T}no" >&6
41167fi
41168
41169 NM=$ac_ct_NM
41170else
41171 NM="$ac_cv_prog_NM"
41172fi
41173
41174
41175 case ${BAKEFILE_HOST} in
41176 *-hp-hpux* )
1e9e8aba 41177 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41178 ;;
41179 *) INSTALL_DIR="$INSTALL -d"
41180 ;;
41181 esac
41182
41183
41184 LDFLAGS_GUI=
41185 case ${BAKEFILE_HOST} in
41186 *-*-cygwin* | *-*-mingw32* )
41187 LDFLAGS_GUI="-mwindows"
41188 esac
41189
41190
41191 fi
41192
41193 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41194echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41195if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41196 echo $ECHO_N "(cached) $ECHO_C" >&6
41197else
41198
41199 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41200 egrep -s GNU > /dev/null); then
41201 bakefile_cv_prog_makeisgnu="yes"
41202 else
41203 bakefile_cv_prog_makeisgnu="no"
41204 fi
41205
41206fi
41207echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41208echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41209
41210 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41211 IF_GNU_MAKE=""
41212 else
41213 IF_GNU_MAKE="#"
41214 fi
41215
41216
41217
41218 PLATFORM_UNIX=0
41219 PLATFORM_WIN32=0
41220 PLATFORM_MSDOS=0
41221 PLATFORM_MAC=0
1e9e8aba 41222 PLATFORM_MACOS=0
a848cd7e
SC
41223 PLATFORM_MACOSX=0
41224 PLATFORM_OS2=0
1e9e8aba 41225 PLATFORM_BEOS=0
a848cd7e
SC
41226
41227 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41228 case "${BAKEFILE_HOST}" in
41229 *-*-cygwin* | *-*-mingw32* )
41230 PLATFORM_WIN32=1
41231 ;;
41232 *-pc-msdosdjgpp )
41233 PLATFORM_MSDOS=1
41234 ;;
41235 *-pc-os2_emx | *-pc-os2-emx )
41236 PLATFORM_OS2=1
41237 ;;
41238 powerpc-*-darwin* )
41239 PLATFORM_MAC=1
41240 PLATFORM_MACOSX=1
41241 ;;
1e9e8aba
DE
41242 *-*-beos* )
41243 PLATFORM_BEOS=1
41244 ;;
41245 powerpc-apple-macos* )
41246 PLATFORM_MAC=1
41247 PLATFORM_MACOS=1
41248 ;;
a848cd7e
SC
41249 * )
41250 PLATFORM_UNIX=1
41251 ;;
41252 esac
41253 else
41254 case "$BAKEFILE_FORCE_PLATFORM" in
41255 win32 )
41256 PLATFORM_WIN32=1
41257 ;;
41258 msdos )
41259 PLATFORM_MSDOS=1
41260 ;;
41261 os2 )
41262 PLATFORM_OS2=1
41263 ;;
41264 darwin )
41265 PLATFORM_MAC=1
41266 PLATFORM_MACOSX=1
41267 ;;
41268 unix )
41269 PLATFORM_UNIX=1
41270 ;;
1e9e8aba
DE
41271 beos )
41272 PLATFORM_BEOS=1
41273 ;;
a848cd7e
SC
41274 * )
41275 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41276echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41277 { (exit 1); exit 1; }; }
41278 ;;
41279 esac
41280 fi
41281
41282
41283
41284
41285
41286
41287
41288
41289
1e9e8aba
DE
41290
41291
a848cd7e
SC
41292 # Check whether --enable-omf or --disable-omf was given.
41293if test "${enable_omf+set}" = set; then
41294 enableval="$enable_omf"
41295 bk_os2_use_omf="$enableval"
41296fi;
41297
41298 case "${BAKEFILE_HOST}" in
41299 *-*-darwin* )
41300 CFLAGS="$CFLAGS -fno-common"
41301 CXXFLAGS="$CXXFLAGS -fno-common"
41302 ;;
41303
41304 *-pc-os2_emx | *-pc-os2-emx )
41305 if test "x$bk_os2_use_omf" = "xyes" ; then
41306 AR=emxomfar
41307 RANLIB=:
41308 LDFLAGS="-Zomf $LDFLAGS"
41309 CFLAGS="-Zomf $CFLAGS"
41310 CXXFLAGS="-Zomf $CXXFLAGS"
41311 OS2_LIBEXT="lib"
41312 else
41313 OS2_LIBEXT="a"
41314 fi
41315 ;;
1e9e8aba
DE
41316
41317 i*86-*-beos* )
41318 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41319 ;;
a848cd7e
SC
41320 esac
41321
41322
41323 SO_SUFFIX="so"
41324 SO_SUFFIX_MODULE="so"
41325 EXEEXT=""
41326 LIBPREFIX="lib"
41327 LIBEXT=".a"
41328 DLLPREFIX="lib"
41329 DLLPREFIX_MODULE=""
41330 DLLIMP_SUFFIX=""
41331
41332 case "${BAKEFILE_HOST}" in
41333 *-hp-hpux* )
41334 SO_SUFFIX="sl"
41335 SO_SUFFIX_MODULE="sl"
41336 ;;
41337 *-*-aix* )
41338 SO_SUFFIX="a"
41339 SO_SUFFIX_MODULE="a"
41340 ;;
41341 *-*-cygwin* | *-*-mingw32* )
41342 SO_SUFFIX="dll"
41343 SO_SUFFIX_MODULE="dll"
41344 DLLIMP_SUFFIX="dll.a"
41345 EXEEXT=".exe"
41346 DLLPREFIX=""
41347 ;;
41348 *-pc-msdosdjgpp )
41349 EXEEXT=".exe"
41350 DLLPREFIX=""
41351 ;;
41352 *-pc-os2_emx | *-pc-os2-emx )
41353 SO_SUFFIX="dll"
41354 SO_SUFFIX_MODULE="dll"
41355 DLLIMP_SUFFIX=$OS2_LIBEXT
41356 EXEEXT=".exe"
41357 DLLPREFIX=""
41358 LIBPREFIX=""
41359 LIBEXT=".$OS2_LIBEXT"
41360 ;;
41361 powerpc-*-darwin* )
41362 SO_SUFFIX="dylib"
41363 SO_SUFFIX_MODULE="bundle"
41364 ;;
41365 esac
41366
41367 if test "x$DLLIMP_SUFFIX" = "x" ; then
41368 DLLIMP_SUFFIX="$SO_SUFFIX"
41369 fi
41370
41371
41372
41373
41374
41375
41376
41377
41378
41379
41380
1e9e8aba
DE
41381 PIC_FLAG=""
41382 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41383 PIC_FLAG="-fPIC"
41384 fi
41385
1e9e8aba
DE
41386 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41387 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41388
a848cd7e
SC
41389 case "${BAKEFILE_HOST}" in
41390 *-hp-hpux* )
1e9e8aba 41391 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41392 LDFLAGS="$LDFLAGS -L/usr/lib"
41393
41394 SHARED_LD_CC="${CC} -b -o"
41395 SHARED_LD_CXX="${CXX} -b -o"
41396 PIC_FLAG="+Z"
41397 fi
41398 ;;
41399
41400 *-*-linux* )
41401 if test "x$GCC" != "xyes"; then
41402 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41403echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41404if test "${bakefile_cv_prog_icc+set}" = set; then
41405 echo $ECHO_N "(cached) $ECHO_C" >&6
41406else
41407
41408 cat >conftest.$ac_ext <<_ACEOF
41409/* confdefs.h. */
41410_ACEOF
41411cat confdefs.h >>conftest.$ac_ext
41412cat >>conftest.$ac_ext <<_ACEOF
41413/* end confdefs.h. */
41414
41415int
41416main ()
41417{
41418
41419 #ifndef __INTEL_COMPILER
41420 #error Not icc
41421 #endif
41422
41423 ;
41424 return 0;
41425}
41426_ACEOF
41427rm -f conftest.$ac_objext
41428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41429 (eval $ac_compile) 2>conftest.er1
a848cd7e 41430 ac_status=$?
ac1cb8d3
VS
41431 grep -v '^ *+' conftest.er1 >conftest.err
41432 rm -f conftest.er1
41433 cat conftest.err >&5
a848cd7e
SC
41434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435 (exit $ac_status); } &&
9dd0f6c2 41436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41438 (eval $ac_try) 2>&5
41439 ac_status=$?
41440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41441 (exit $ac_status); }; } &&
41442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41444 (eval $ac_try) 2>&5
41445 ac_status=$?
41446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447 (exit $ac_status); }; }; then
41448 bakefile_cv_prog_icc=yes
41449else
41450 echo "$as_me: failed program was:" >&5
41451sed 's/^/| /' conftest.$ac_ext >&5
41452
41453bakefile_cv_prog_icc=no
41454
41455fi
ac1cb8d3 41456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41457
41458fi
41459echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41460echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41461 if test "$bakefile_cv_prog_icc" = "yes"; then
41462 PIC_FLAG="-KPIC"
41463 fi
41464 fi
41465 ;;
41466
41467 *-*-solaris2* )
41468 if test "x$GCC" != xyes ; then
41469 SHARED_LD_CC="${CC} -G -o"
41470 SHARED_LD_CXX="${CXX} -G -o"
41471 PIC_FLAG="-KPIC"
41472 fi
41473 ;;
41474
41475 *-*-darwin* )
41476
41477 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41478echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41479if test "${wx_cv_gcc31+set}" = set; then
41480 echo $ECHO_N "(cached) $ECHO_C" >&6
41481else
41482
41483 cat >conftest.$ac_ext <<_ACEOF
41484/* confdefs.h. */
41485_ACEOF
41486cat confdefs.h >>conftest.$ac_ext
41487cat >>conftest.$ac_ext <<_ACEOF
41488/* end confdefs.h. */
41489
41490int
41491main ()
41492{
41493
41494 #if (__GNUC__ < 3) || \
41495 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41496 #error old gcc
41497 #endif
41498
41499 ;
41500 return 0;
41501}
41502_ACEOF
41503rm -f conftest.$ac_objext
41504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41505 (eval $ac_compile) 2>conftest.er1
a848cd7e 41506 ac_status=$?
ac1cb8d3
VS
41507 grep -v '^ *+' conftest.er1 >conftest.err
41508 rm -f conftest.er1
41509 cat conftest.err >&5
a848cd7e
SC
41510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41511 (exit $ac_status); } &&
9dd0f6c2 41512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41514 (eval $ac_try) 2>&5
41515 ac_status=$?
41516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41517 (exit $ac_status); }; } &&
41518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41520 (eval $ac_try) 2>&5
41521 ac_status=$?
41522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41523 (exit $ac_status); }; }; then
41524
41525 wx_cv_gcc31=yes
41526
41527else
41528 echo "$as_me: failed program was:" >&5
41529sed 's/^/| /' conftest.$ac_ext >&5
41530
41531
41532 wx_cv_gcc31=no
41533
41534
41535fi
ac1cb8d3 41536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41537
41538fi
41539echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41540echo "${ECHO_T}$wx_cv_gcc31" >&6
41541 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41542
41543D='$'
41544cat <<EOF >shared-ld-sh
a848cd7e
SC
41545#!/bin/sh
41546#-----------------------------------------------------------------------------
41547#-- Name: distrib/mac/shared-ld-sh
41548#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41549#-- Author: Gilles Depeyrot
41550#-- Copyright: (c) 2002 Gilles Depeyrot
41551#-- Licence: any use permitted
41552#-----------------------------------------------------------------------------
41553
41554verbose=0
41555args=""
41556objects=""
41557linking_flag="-dynamiclib"
41558
473276a9
VS
41559while test ${D}# -gt 0; do
41560 case ${D}1 in
a848cd7e
SC
41561
41562 -v)
41563 verbose=1
41564 ;;
41565
41566 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41567 # collect these options and values
473276a9 41568 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41569 shift
41570 ;;
41571
41572 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41573 # collect these options
473276a9 41574 args="${D}{args} ${D}1"
a848cd7e
SC
41575 ;;
41576
41577 -dynamiclib|-bundle)
473276a9 41578 linking_flag="${D}1"
a848cd7e
SC
41579 ;;
41580
41581 -*)
473276a9 41582 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41583 exit 1
41584 ;;
41585
41586 *.o | *.a | *.dylib)
41587 # collect object files
473276a9 41588 objects="${D}{objects} ${D}1"
a848cd7e
SC
41589 ;;
41590
41591 *)
473276a9 41592 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41593 exit 1
41594 ;;
41595
41596 esac
41597 shift
41598done
41599
41600#
41601# Link one module containing all the others
41602#
473276a9
VS
41603if test ${D}{verbose} = 1; then
41604 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41605fi
473276a9
VS
41606c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41607status=${D}?
41608if test ${D}{status} != 0; then
41609 exit ${D}{status}
a848cd7e
SC
41610fi
41611
41612#
41613# Link the shared library from the single module created
41614#
473276a9
VS
41615if test ${D}{verbose} = 1; then
41616 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41617fi
473276a9
VS
41618c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41619status=${D}?
41620if test ${D}{status} != 0; then
41621 exit ${D}{status}
a848cd7e
SC
41622fi
41623
41624#
41625# Remove intermediate module
41626#
473276a9 41627rm -f master.${D}${D}.o
a848cd7e
SC
41628
41629exit 0
41630EOF
473276a9 41631
a848cd7e
SC
41632 chmod +x shared-ld-sh
41633
41634 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41635 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41636 SHARED_LD_CXX="$SHARED_LD_CC"
41637 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41638 else
41639 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41640 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41641 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41642 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41643 fi
41644
41645 PIC_FLAG="-dynamic -fPIC"
41646 ;;
41647
41648 *-*-aix* )
41649 if test "x$GCC" != "xyes"; then
41650 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41651set dummy makeC++SharedLib; ac_word=$2
41652echo "$as_me:$LINENO: checking for $ac_word" >&5
41653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41654if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41655 echo $ECHO_N "(cached) $ECHO_C" >&6
41656else
41657 if test -n "$AIX_CXX_LD"; then
41658 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41659else
41660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41661for as_dir in $PATH
41662do
41663 IFS=$as_save_IFS
41664 test -z "$as_dir" && as_dir=.
41665 for ac_exec_ext in '' $ac_executable_extensions; do
41666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41667 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41669 break 2
41670 fi
41671done
41672done
41673
41674 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41675fi
41676fi
41677AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41678if test -n "$AIX_CXX_LD"; then
41679 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41680echo "${ECHO_T}$AIX_CXX_LD" >&6
41681else
41682 echo "$as_me:$LINENO: result: no" >&5
41683echo "${ECHO_T}no" >&6
41684fi
41685
41686 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41687 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41688 fi
41689 ;;
41690
41691 *-*-beos* )
1e9e8aba
DE
41692 SHARED_LD_CC="${LD} -nostart -o"
41693 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41694 ;;
41695
41696 *-*-irix* )
41697 if test "x$GCC" != "xyes"; then
41698 PIC_FLAG="-KPIC"
41699 fi
41700 ;;
41701
41702 *-*-cygwin* | *-*-mingw32* )
41703 PIC_FLAG=""
1e9e8aba
DE
41704 SHARED_LD_CC="\$(CC) -shared -o"
41705 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41706 ;;
41707
41708 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41709 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41710 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41711 PIC_FLAG=""
473276a9
VS
41712
41713D='$'
41714cat <<EOF >dllar.sh
41715#!/bin/sh
41716#
41717# dllar - a tool to build both a .dll and an .a file
41718# from a set of object (.o) files for EMX/OS2.
41719#
41720# Written by Andrew Zabolotny, bit@freya.etu.ru
41721# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41722#
41723# This script will accept a set of files on the command line.
41724# All the public symbols from the .o files will be exported into
41725# a .DEF file, then linker will be run (through gcc) against them to
41726# build a shared library consisting of all given .o files. All libraries
41727# (.a) will be first decompressed into component .o files then act as
41728# described above. You can optionally give a description (-d "description")
41729# which will be put into .DLL. To see the list of accepted options (as well
41730# as command-line format) simply run this program without options. The .DLL
41731# is built to be imported by name (there is no guarantee that new versions
41732# of the library you build will have same ordinals for same symbols).
41733#
41734# dllar is free software; you can redistribute it and/or modify
41735# it under the terms of the GNU General Public License as published by
41736# the Free Software Foundation; either version 2, or (at your option)
41737# any later version.
41738#
41739# dllar is distributed in the hope that it will be useful,
41740# but WITHOUT ANY WARRANTY; without even the implied warranty of
41741# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41742# GNU General Public License for more details.
41743#
41744# You should have received a copy of the GNU General Public License
41745# along with dllar; see the file COPYING. If not, write to the Free
41746# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41747# 02111-1307, USA.
41748
41749# To successfuly run this program you will need:
41750# - Current drive should have LFN support (HPFS, ext2, network, etc)
41751# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41752# - gcc
41753# (used to build the .dll)
41754# - emxexp
41755# (used to create .def file from .o files)
41756# - emximp
41757# (used to create .a file from .def file)
41758# - GNU text utilites (cat, sort, uniq)
41759# used to process emxexp output
41760# - GNU file utilities (mv, rm)
41761# - GNU sed
41762# - lxlite (optional, see flag below)
41763# (used for general .dll cleanup)
41764#
41765
41766flag_USE_LXLITE=1;
41767
41768#
41769# helper functions
41770# basnam, variant of basename, which does _not_ remove the path, _iff_
41771# second argument (suffix to remove) is given
41772basnam(){
41773 case ${D}# in
41774 1)
1e9e8aba 41775 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41776 ;;
41777 2)
41778 echo ${D}1 | sed 's/'${D}2'${D}//'
41779 ;;
41780 *)
41781 echo "error in basnam ${D}*"
41782 exit 8
41783 ;;
41784 esac
41785}
41786
41787# Cleanup temporary files and output
41788CleanUp() {
41789 cd ${D}curDir
41790 for i in ${D}inputFiles ; do
41791 case ${D}i in
41792 *!)
41793 rm -rf \`basnam ${D}i !\`
41794 ;;
41795 *)
41796 ;;
41797 esac
41798 done
41799
41800 # Kill result in case of failure as there is just to many stupid make/nmake
41801 # things out there which doesn't do this.
1e9e8aba 41802 if [ ${D}# -eq 0 ]; then
473276a9
VS
41803 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41804 fi
41805}
41806
41807# Print usage and exit script with rc=1.
41808PrintHelp() {
b1d22ded
DE
41809 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41810 echo ' [-name-mangler-script script.sh]'
41811 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41812 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41813 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41814 echo ' [*.o] [*.a]'
473276a9
VS
41815 echo '*> "output_file" should have no extension.'
41816 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41817 echo ' The import library name is derived from this and is set to "name".a,'
41818 echo ' unless overridden by -import'
41819 echo '*> "importlib_name" should have no extension.'
41820 echo ' If it has the .o, or .a extension, it is automatically removed.'
41821 echo ' This name is used as the import library name and may be longer and'
41822 echo ' more descriptive than the DLL name which has to follow the old '
41823 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41824 echo '*> "script.sh may be given to override the output_file name by a'
41825 echo ' different name. It is mainly useful if the regular make process'
41826 echo ' of some package does not take into account OS/2 restriction of'
41827 echo ' DLL name lengths. It takes the importlib name as input and is'
41828 echo ' supposed to procude a shorter name as output. The script should'
41829 echo ' expect to get importlib_name without extension and should produce'
41830 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41831 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41832 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41833 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41834 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41835 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41836 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41837 echo ' If the last character of a symbol is "*", all symbols beginning'
41838 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41839 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41840 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41841 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41842 echo ' C runtime DLLs.'
b1d22ded 41843 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41844 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41845 echo ' unchanged to GCC at the end of command line.'
41846 echo '*> If you create a DLL from a library and you do not specify -o,'
41847 echo ' the basename for DLL and import library will be set to library name,'
41848 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41849 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41850 echo ' library will be renamed into gcc_s.a.'
41851 echo '--------'
41852 echo 'Example:'
41853 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41854 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41855 CleanUp
41856 exit 1
41857}
41858
41859# Execute a command.
41860# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41861# @Uses Whatever CleanUp() uses.
41862doCommand() {
41863 echo "${D}*"
41864 eval ${D}*
41865 rcCmd=${D}?
41866
1e9e8aba 41867 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41868 echo "command failed, exit code="${D}rcCmd
41869 CleanUp
41870 exit ${D}rcCmd
41871 fi
41872}
41873
41874# main routine
41875# setup globals
41876cmdLine=${D}*
41877outFile=""
41878outimpFile=""
41879inputFiles=""
b1d22ded 41880renameScript=""
473276a9
VS
41881description=""
41882CC=gcc.exe
41883CFLAGS="-s -Zcrtdll"
41884EXTRA_CFLAGS=""
41885EXPORT_BY_ORDINALS=0
41886exclude_symbols=""
41887library_flags=""
41888curDir=\`pwd\`
41889curDirS=curDir
41890case ${D}curDirS in
41891*/)
41892 ;;
41893*)
41894 curDirS=${D}{curDirS}"/"
41895 ;;
41896esac
41897# Parse commandline
41898libsToLink=0
b1d22ded 41899omfLinking=0
1e9e8aba 41900while [ ${D}1 ]; do
473276a9
VS
41901 case ${D}1 in
41902 -ord*)
41903 EXPORT_BY_ORDINALS=1;
41904 ;;
41905 -o*)
41906 shift
41907 outFile=${D}1
41908 ;;
41909 -i*)
41910 shift
41911 outimpFile=${D}1
41912 ;;
b1d22ded
DE
41913 -name-mangler-script)
41914 shift
41915 renameScript=${D}1
41916 ;;
473276a9
VS
41917 -d*)
41918 shift
41919 description=${D}1
41920 ;;
41921 -f*)
41922 shift
41923 CFLAGS=${D}1
41924 ;;
41925 -c*)
41926 shift
41927 CC=${D}1
41928 ;;
41929 -h*)
41930 PrintHelp
41931 ;;
41932 -ex*)
41933 shift
41934 exclude_symbols=${D}{exclude_symbols}${D}1" "
41935 ;;
41936 -libf*)
41937 shift
41938 library_flags=${D}{library_flags}${D}1" "
41939 ;;
41940 -nocrt*)
41941 CFLAGS="-s"
41942 ;;
41943 -nolxl*)
41944 flag_USE_LXLITE=0
41945 ;;
41946 -* | /*)
41947 case ${D}1 in
41948 -L* | -l*)
41949 libsToLink=1
41950 ;;
b1d22ded
DE
41951 -Zomf)
41952 omfLinking=1
41953 ;;
473276a9
VS
41954 *)
41955 ;;
41956 esac
41957 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41958 ;;
b1d22ded
DE
41959 *.dll)
41960 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41961 if [ ${D}omfLinking -eq 1 ]; then
41962 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41963 else
41964 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41965 fi
41966 ;;
473276a9
VS
41967 *)
41968 found=0;
1e9e8aba 41969 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41970 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41971 else
41972 for file in ${D}1 ; do
1e9e8aba 41973 if [ -f ${D}file ]; then
473276a9
VS
41974 inputFiles="${D}{inputFiles} ${D}file"
41975 found=1
41976 fi
41977 done
1e9e8aba 41978 if [ ${D}found -eq 0 ]; then
473276a9
VS
41979 echo "ERROR: No file(s) found: "${D}1
41980 exit 8
41981 fi
41982 fi
41983 ;;
41984 esac
41985 shift
41986done # iterate cmdline words
41987
41988#
1e9e8aba 41989if [ -z "${D}inputFiles" ]; then
473276a9
VS
41990 echo "dllar: no input files"
41991 PrintHelp
41992fi
41993
41994# Now extract all .o files from .a files
41995newInputFiles=""
41996for file in ${D}inputFiles ; do
41997 case ${D}file in
41998 *.a | *.lib)
41999 case ${D}file in
42000 *.a)
42001 suffix=".a"
42002 AR="ar"
42003 ;;
42004 *.lib)
42005 suffix=".lib"
42006 AR="emxomfar"
42007 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42008 ;;
42009 *)
42010 ;;
42011 esac
42012 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42013 mkdir ${D}dirname
1e9e8aba 42014 if [ ${D}? -ne 0 ]; then
473276a9
VS
42015 echo "Failed to create subdirectory ./${D}dirname"
42016 CleanUp
42017 exit 8;
42018 fi
42019 # Append '!' to indicate archive
42020 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42021 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42022 cd ${D}curDir
42023 found=0;
42024 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42025 if [ -f ${D}subfile ]; then
473276a9 42026 found=1
1e9e8aba 42027 if [ -s ${D}subfile ]; then
473276a9
VS
42028 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42029 newInputFiles="${D}newInputFiles ${D}subfile"
42030 fi
42031 fi
42032 done
1e9e8aba
DE
42033 if [ ${D}found -eq 0 ]; then
42034 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42035 fi
42036 ;;
42037 *)
42038 newInputFiles="${D}{newInputFiles} ${D}file"
42039 ;;
42040 esac
42041done
42042inputFiles="${D}newInputFiles"
42043
42044# Output filename(s).
42045do_backup=0;
1e9e8aba 42046if [ -z ${D}outFile ]; then
473276a9
VS
42047 do_backup=1;
42048 set outFile ${D}inputFiles; outFile=${D}2
42049fi
42050
42051# If it is an archive, remove the '!' and the '_%' suffixes
42052case ${D}outFile in
42053*_%!)
42054 outFile=\`basnam ${D}outFile _%!\`
42055 ;;
42056*)
42057 ;;
42058esac
42059case ${D}outFile in
42060*.dll)
42061 outFile=\`basnam ${D}outFile .dll\`
42062 ;;
42063*.DLL)
42064 outFile=\`basnam ${D}outFile .DLL\`
42065 ;;
42066*.o)
42067 outFile=\`basnam ${D}outFile .o\`
42068 ;;
42069*.obj)
42070 outFile=\`basnam ${D}outFile .obj\`
42071 ;;
42072*.a)
42073 outFile=\`basnam ${D}outFile .a\`
42074 ;;
42075*.lib)
42076 outFile=\`basnam ${D}outFile .lib\`
42077 ;;
42078*)
42079 ;;
42080esac
42081case ${D}outimpFile in
42082*.a)
42083 outimpFile=\`basnam ${D}outimpFile .a\`
42084 ;;
42085*.lib)
42086 outimpFile=\`basnam ${D}outimpFile .lib\`
42087 ;;
42088*)
42089 ;;
42090esac
1e9e8aba 42091if [ -z ${D}outimpFile ]; then
473276a9
VS
42092 outimpFile=${D}outFile
42093fi
42094defFile="${D}{outFile}.def"
42095arcFile="${D}{outimpFile}.a"
42096arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42097
42098#create ${D}dllFile as something matching 8.3 restrictions,
42099if [ -z ${D}renameScript ] ; then
42100 dllFile="${D}outFile"
42101else
42102 dllFile=\`${D}renameScript ${D}outimpFile\`
42103fi
473276a9 42104
1e9e8aba
DE
42105if [ ${D}do_backup -ne 0 ] ; then
42106 if [ -f ${D}arcFile ] ; then
473276a9
VS
42107 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42108 fi
1e9e8aba 42109 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42110 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42111 fi
42112fi
42113
42114# Extract public symbols from all the object files.
42115tmpdefFile=${D}{defFile}_%
42116rm -f ${D}tmpdefFile
42117for file in ${D}inputFiles ; do
42118 case ${D}file in
42119 *!)
42120 ;;
42121 *)
42122 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42123 ;;
42124 esac
42125done
42126
42127# Create the def file.
42128rm -f ${D}defFile
42129echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42130dllFile="${D}{dllFile}.dll"
42131if [ ! -z ${D}description ]; then
1e9e8aba 42132 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42133fi
42134echo "EXPORTS" >> ${D}defFile
42135
42136doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42137grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42138
42139# Checks if the export is ok or not.
42140for word in ${D}exclude_symbols; do
42141 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42142 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42143done
42144
42145
1e9e8aba
DE
42146if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42147 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42148 sed '
42149 N
42150 : loop
1e9e8aba 42151 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42152 t loop
42153 ' > ${D}{tmpdefFile}%
42154 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42155else
42156 rm -f ${D}{tmpdefFile}%
42157fi
42158cat ${D}tmpdefFile >> ${D}defFile
42159rm -f ${D}tmpdefFile
42160
42161# Do linking, create implib, and apply lxlite.
42162gccCmdl="";
42163for file in ${D}inputFiles ; do
42164 case ${D}file in
42165 *!)
42166 ;;
42167 *)
42168 gccCmdl="${D}gccCmdl ${D}file"
42169 ;;
42170 esac
42171done
42172doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42173touch "${D}{outFile}.dll"
42174
42175doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42176if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42177 add_flags="";
1e9e8aba 42178 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42179 add_flags="-ynd"
42180 fi
42181 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42182fi
42183doCommand "emxomf -s -l ${D}arcFile"
42184
42185# Successful exit.
42186CleanUp 1
42187exit 0
42188EOF
42189
42190 chmod +x dllar.sh
a848cd7e
SC
42191 ;;
42192
1e9e8aba 42193 powerpc-apple-macos* | \
a848cd7e
SC
42194 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42195 *-*-sunos4* | \
42196 *-*-osf* | \
42197 *-*-dgux5* | \
42198 *-*-sysv5* )
42199 ;;
42200
42201 *)
42202 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42203echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42204 { (exit 1); exit 1; }; }
42205 esac
42206
2057db16
VS
42207 if test "x$PIC_FLAG" != "x" ; then
42208 PIC_FLAG="$PIC_FLAG -DPIC"
42209 fi
42210
a848cd7e
SC
42211 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42212 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42213 fi
42214 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42215 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42216 fi
42217
42218
42219
42220
42221
42222
42223
42224
42225 USE_SOVERSION=0
42226 USE_SOVERLINUX=0
42227 USE_SOVERSOLARIS=0
42228 USE_SOSYMLINKS=0
42229 USE_MACVERSION=0
42230 SONAME_FLAG=
42231
42232 case "${BAKEFILE_HOST}" in
b1d22ded 42233 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42234 SONAME_FLAG="-Wl,-soname,"
42235 USE_SOVERSION=1
42236 USE_SOVERLINUX=1
42237 USE_SOSYMLINKS=1
42238 ;;
42239
a848cd7e
SC
42240 *-*-solaris2* )
42241 SONAME_FLAG="-h "
42242 USE_SOVERSION=1
42243 USE_SOVERSOLARIS=1
42244 USE_SOSYMLINKS=1
42245 ;;
42246
42247 *-*-darwin* )
42248 USE_MACVERSION=1
42249 USE_SOVERSION=1
42250 USE_SOSYMLINKS=1
42251 ;;
42252 esac
42253
42254
42255
42256
42257
42258
42259
42260
42261
42262 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42263echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42264 DEPS_TRACKING=0
42265
42266 if test "x$GCC" = "xyes"; then
42267 DEPSMODE=gcc
42268 DEPS_TRACKING=1
42269 case "${BAKEFILE_HOST}" in
42270 powerpc-*-darwin* )
42271 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42272 ;;
42273 * )
42274 DEPSFLAG_GCC="-MMD"
42275 ;;
42276 esac
42277 echo "$as_me:$LINENO: result: gcc" >&5
42278echo "${ECHO_T}gcc" >&6
b1d22ded 42279 elif test "x$MWCC" = "xyes"; then
81f90336 42280 DEPSMODE=mwcc
b1d22ded 42281 DEPS_TRACKING=1
81f90336 42282 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42283 echo "$as_me:$LINENO: result: mwcc" >&5
42284echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42285 else
42286 echo "$as_me:$LINENO: result: none" >&5
42287echo "${ECHO_T}none" >&6
42288 fi
42289
42290 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42291
42292D='$'
42293cat <<EOF >bk-deps
a848cd7e
SC
42294#!/bin/sh
42295
42296# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42297# script. It is used to track C/C++ files dependencies in portable way.
42298#
42299# Permission is given to use this file in any way.
42300
473276a9 42301DEPSMODE=${DEPSMODE}
a848cd7e 42302DEPSDIR=.deps
473276a9 42303DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42304DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42305
473276a9 42306mkdir -p ${D}DEPSDIR
a848cd7e 42307
473276a9
VS
42308if test ${D}DEPSMODE = gcc ; then
42309 ${D}* ${D}{DEPSFLAG_GCC}
42310 status=${D}?
42311 if test ${D}{status} != 0 ; then
42312 exit ${D}{status}
a848cd7e
SC
42313 fi
42314 # move created file to the location we want it in:
473276a9
VS
42315 while test ${D}# -gt 0; do
42316 case "${D}1" in
a848cd7e
SC
42317 -o )
42318 shift
473276a9 42319 objfile=${D}1
a848cd7e
SC
42320 ;;
42321 -* )
42322 ;;
42323 * )
473276a9 42324 srcfile=${D}1
a848cd7e
SC
42325 ;;
42326 esac
42327 shift
42328 done
1e9e8aba
DE
42329 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42330 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42331 if test -f ${D}depfile ; then
42332 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42333 rm -f ${D}depfile
a848cd7e 42334 else
1e9e8aba 42335 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42336 if test -f ${D}depfile ; then
42337 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42338 rm -f ${D}depfile
a848cd7e
SC
42339 fi
42340 fi
42341 exit 0
81f90336
MW
42342elif test ${D}DEPSMODE = mwcc ; then
42343 ${D}*
42344 status=${D}?
42345 if test ${D}{status} != 0 ; then
42346 exit ${D}{status}
42347 fi
42348 # Run mwcc again with -MM and redirect into the dep file we want
42349 # NOTE: We can't use shift here because we need ${D}* to be valid
42350 prevarg=
42351 for arg in ${D}* ; do
42352 if test "${D}prevarg" = "-o"; then
42353 objfile=${D}arg
42354 else
42355 case "${D}arg" in
42356 -* )
42357 ;;
42358 * )
42359 srcfile=${D}arg
42360 ;;
42361 esac
42362 fi
42363 prevarg="${D}arg"
42364 done
42365 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42366 exit 0
a848cd7e 42367else
473276a9
VS
42368 ${D}*
42369 exit ${D}?
a848cd7e
SC
42370fi
42371EOF
473276a9 42372
a848cd7e
SC
42373 chmod +x bk-deps
42374 fi
42375
42376
42377
42378
42379 RESCOMP=
42380 SETFILE=
42381
42382 case ${BAKEFILE_HOST} in
42383 *-*-cygwin* | *-*-mingw32* )
42384 if test "$build" != "$host" ; then
42385 RESCOMP=$host_alias-windres
42386 else
42387 # Extract the first word of "windres", so it can be a program name with args.
42388set dummy windres; ac_word=$2
42389echo "$as_me:$LINENO: checking for $ac_word" >&5
42390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42391if test "${ac_cv_prog_RESCOMP+set}" = set; then
42392 echo $ECHO_N "(cached) $ECHO_C" >&6
42393else
42394 if test -n "$RESCOMP"; then
42395 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42396else
42397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42398for as_dir in $PATH
42399do
42400 IFS=$as_save_IFS
42401 test -z "$as_dir" && as_dir=.
42402 for ac_exec_ext in '' $ac_executable_extensions; do
42403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42404 ac_cv_prog_RESCOMP="windres"
42405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42406 break 2
42407 fi
42408done
42409done
42410
42411 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42412fi
42413fi
42414RESCOMP=$ac_cv_prog_RESCOMP
42415if test -n "$RESCOMP"; then
42416 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42417echo "${ECHO_T}$RESCOMP" >&6
42418else
42419 echo "$as_me:$LINENO: result: no" >&5
42420echo "${ECHO_T}no" >&6
42421fi
42422
42423 fi
42424 ;;
42425
1e9e8aba 42426 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42427 # Extract the first word of "Rez", so it can be a program name with args.
42428set dummy Rez; ac_word=$2
42429echo "$as_me:$LINENO: checking for $ac_word" >&5
42430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42431if test "${ac_cv_prog_RESCOMP+set}" = set; then
42432 echo $ECHO_N "(cached) $ECHO_C" >&6
42433else
42434 if test -n "$RESCOMP"; then
42435 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42436else
42437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42438for as_dir in $PATH
42439do
42440 IFS=$as_save_IFS
42441 test -z "$as_dir" && as_dir=.
42442 for ac_exec_ext in '' $ac_executable_extensions; do
42443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42444 ac_cv_prog_RESCOMP="Rez"
42445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42446 break 2
42447 fi
42448done
42449done
42450
42451 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42452fi
42453fi
42454RESCOMP=$ac_cv_prog_RESCOMP
42455if test -n "$RESCOMP"; then
42456 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42457echo "${ECHO_T}$RESCOMP" >&6
42458else
42459 echo "$as_me:$LINENO: result: no" >&5
42460echo "${ECHO_T}no" >&6
42461fi
42462
42463 # Extract the first word of "SetFile", so it can be a program name with args.
42464set dummy SetFile; ac_word=$2
42465echo "$as_me:$LINENO: checking for $ac_word" >&5
42466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42467if test "${ac_cv_prog_SETFILE+set}" = set; then
42468 echo $ECHO_N "(cached) $ECHO_C" >&6
42469else
42470 if test -n "$SETFILE"; then
42471 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42472else
42473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42474for as_dir in $PATH
42475do
42476 IFS=$as_save_IFS
42477 test -z "$as_dir" && as_dir=.
42478 for ac_exec_ext in '' $ac_executable_extensions; do
42479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42480 ac_cv_prog_SETFILE="SetFile"
42481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42482 break 2
42483 fi
42484done
42485done
42486
42487 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42488fi
42489fi
42490SETFILE=$ac_cv_prog_SETFILE
42491if test -n "$SETFILE"; then
42492 echo "$as_me:$LINENO: result: $SETFILE" >&5
42493echo "${ECHO_T}$SETFILE" >&6
42494else
42495 echo "$as_me:$LINENO: result: no" >&5
42496echo "${ECHO_T}no" >&6
42497fi
42498
42499 ;;
42500 esac
42501
42502
42503
42504
42505
fbb7dfff 42506 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42507
dcc1b6ad 42508
fbb7dfff 42509BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42510
646b6ec1 42511
74b84332 42512
a848cd7e
SC
42513 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42514if test "${enable_precomp_headers+set}" = set; then
42515 enableval="$enable_precomp_headers"
42516 bk_use_pch="$enableval"
42517fi;
42518
42519 GCC_PCH=0
42520
42521 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42522 if test "x$GCC" = "xyes"; then
42523 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42524echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42525 cat >conftest.$ac_ext <<_ACEOF
42526/* confdefs.h. */
42527_ACEOF
42528cat confdefs.h >>conftest.$ac_ext
42529cat >>conftest.$ac_ext <<_ACEOF
42530/* end confdefs.h. */
42531
42532int
42533main ()
42534{
42535
42536 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42537 #error "no pch support"
42538 #endif
42539 #if (__GNUC__ < 3)
42540 #error "no pch support"
42541 #endif
42542 #if (__GNUC__ == 3) && \
42543 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42544 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42545 #error "no pch support"
42546 #endif
42547
42548 ;
42549 return 0;
42550}
42551_ACEOF
42552rm -f conftest.$ac_objext
42553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42554 (eval $ac_compile) 2>conftest.er1
a848cd7e 42555 ac_status=$?
ac1cb8d3
VS
42556 grep -v '^ *+' conftest.er1 >conftest.err
42557 rm -f conftest.er1
42558 cat conftest.err >&5
a848cd7e
SC
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); } &&
9dd0f6c2 42561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42563 (eval $ac_try) 2>&5
42564 ac_status=$?
42565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42566 (exit $ac_status); }; } &&
42567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42569 (eval $ac_try) 2>&5
42570 ac_status=$?
42571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572 (exit $ac_status); }; }; then
42573
42574 echo "$as_me:$LINENO: result: yes" >&5
42575echo "${ECHO_T}yes" >&6
a848cd7e
SC
42576 GCC_PCH=1
42577
42578else
42579 echo "$as_me: failed program was:" >&5
42580sed 's/^/| /' conftest.$ac_ext >&5
42581
42582
42583 echo "$as_me:$LINENO: result: no" >&5
42584echo "${ECHO_T}no" >&6
42585
42586fi
ac1cb8d3 42587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42588 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42589
42590D='$'
42591cat <<EOF >bk-make-pch
a848cd7e
SC
42592#!/bin/sh
42593
42594# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42595# script. It is used to generated precompiled headers.
42596#
42597# Permission is given to use this file in any way.
42598
1e9e8aba
DE
42599outfile="${D}{1}"
42600header="${D}{2}"
a848cd7e
SC
42601shift
42602shift
42603
42604compiler=
42605headerfile=
1e9e8aba
DE
42606while test ${D}{#} -gt 0; do
42607 case "${D}{1}" in
a848cd7e 42608 -I* )
1e9e8aba
DE
42609 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42610 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42611 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42612 fi
42613 ;;
42614 esac
1e9e8aba 42615 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42616 shift
42617done
42618
1e9e8aba
DE
42619if test "x${D}{headerfile}" = "x" ; then
42620 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42621else
1e9e8aba
DE
42622 if test -f ${D}{outfile} ; then
42623 rm -f ${D}{outfile}
a848cd7e 42624 else
1e9e8aba 42625 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42626 fi
1e9e8aba 42627 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42628 mkdir -p .deps
42629 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42630 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42631 exit ${D}{?}
a848cd7e
SC
42632fi
42633EOF
1e9e8aba 42634
a848cd7e
SC
42635 chmod +x bk-make-pch
42636 fi
42637 fi
42638 fi
42639
42640
42641
a848cd7e
SC
42642 COND_BUILD_DEBUG="#"
42643 if test "x$BUILD" = "xdebug" ; then
42644 COND_BUILD_DEBUG=""
42645 fi
42646
42647 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42648 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42649 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42650 fi
42651
42652 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42653 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42654 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42655 fi
42656
42657 COND_BUILD_DEBUG_UNICODE_0="#"
42658 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42659 COND_BUILD_DEBUG_UNICODE_0=""
42660 fi
42661
42662 COND_BUILD_DEBUG_UNICODE_1="#"
42663 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42664 COND_BUILD_DEBUG_UNICODE_1=""
42665 fi
42666
42667 COND_BUILD_RELEASE="#"
42668 if test "x$BUILD" = "xrelease" ; then
42669 COND_BUILD_RELEASE=""
42670 fi
42671
42672 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42673 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42674 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42675 fi
42676
42677 COND_BUILD_RELEASE_UNICODE_0="#"
42678 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42679 COND_BUILD_RELEASE_UNICODE_0=""
42680 fi
42681
42682 COND_BUILD_RELEASE_UNICODE_1="#"
42683 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42684 COND_BUILD_RELEASE_UNICODE_1=""
42685 fi
42686
42687 COND_DEBUG_FLAG_1="#"
42688 if test "x$DEBUG_FLAG" = "x1" ; then
42689 COND_DEBUG_FLAG_1=""
42690 fi
42691
42692 COND_DEBUG_INFO_0="#"
42693 if test "x$DEBUG_INFO" = "x0" ; then
42694 COND_DEBUG_INFO_0=""
42695 fi
42696
42697 COND_DEBUG_INFO_1="#"
42698 if test "x$DEBUG_INFO" = "x1" ; then
42699 COND_DEBUG_INFO_1=""
42700 fi
42701
42702 COND_DEPS_TRACKING_0="#"
42703 if test "x$DEPS_TRACKING" = "x0" ; then
42704 COND_DEPS_TRACKING_0=""
42705 fi
42706
42707 COND_DEPS_TRACKING_1="#"
42708 if test "x$DEPS_TRACKING" = "x1" ; then
42709 COND_DEPS_TRACKING_1=""
42710 fi
42711
42712 COND_GCC_PCH_1="#"
42713 if test "x$GCC_PCH" = "x1" ; then
42714 COND_GCC_PCH_1=""
42715 fi
42716
42717 COND_MONOLITHIC_0="#"
42718 if test "x$MONOLITHIC" = "x0" ; then
42719 COND_MONOLITHIC_0=""
42720 fi
42721
42722 COND_MONOLITHIC_0_SHARED_0="#"
42723 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42724 COND_MONOLITHIC_0_SHARED_0=""
42725 fi
42726
42727 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42728 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42729 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42730 fi
42731
90970d69
DE
42732 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42733 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42734 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42735 fi
42736
a848cd7e
SC
42737 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42738 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42739 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42740 fi
42741
6671c68b
VZ
42742 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42743 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42744 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42745 fi
42746
a848cd7e
SC
42747 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42748 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42749 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42750 fi
42751
ceec2216
RL
42752 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42753 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42754 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42755 fi
42756
a848cd7e
SC
42757 COND_MONOLITHIC_0_SHARED_1="#"
42758 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42759 COND_MONOLITHIC_0_SHARED_1=""
42760 fi
42761
42762 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42763 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42764 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42765 fi
42766
90970d69
DE
42767 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42768 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42769 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42770 fi
42771
a848cd7e
SC
42772 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42773 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42774 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42775 fi
42776
6671c68b
VZ
42777 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42778 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42779 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42780 fi
42781
a848cd7e
SC
42782 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42783 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42784 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42785 fi
42786
ceec2216
RL
42787 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42788 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42789 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42790 fi
42791
a848cd7e
SC
42792 COND_MONOLITHIC_0_USE_ODBC_1="#"
42793 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42794 COND_MONOLITHIC_0_USE_ODBC_1=""
42795 fi
42796
42797 COND_MONOLITHIC_1="#"
42798 if test "x$MONOLITHIC" = "x1" ; then
42799 COND_MONOLITHIC_1=""
42800 fi
42801
42802 COND_MONOLITHIC_1_SHARED_0="#"
42803 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42804 COND_MONOLITHIC_1_SHARED_0=""
42805 fi
42806
42807 COND_MONOLITHIC_1_SHARED_1="#"
42808 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42809 COND_MONOLITHIC_1_SHARED_1=""
42810 fi
42811
42812 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42813 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42814 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42815 fi
42816
42817 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42818 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42819 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42820 fi
42821
42822 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42823 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42824 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42825 fi
42826
42827 COND_PLATFORM_MACOSX_1="#"
42828 if test "x$PLATFORM_MACOSX" = "x1" ; then
42829 COND_PLATFORM_MACOSX_1=""
42830 fi
42831
a30f955f
VS
42832 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42833 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42834 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42835 fi
42836
a848cd7e
SC
42837 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42838 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42839 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42840 fi
42841
42842 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42843 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42844 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42845 fi
42846
42847 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42848 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42849 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42850 fi
42851
fc480dc1
DE
42852 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42853 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42854 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42855 fi
42856
1e9e8aba
DE
42857 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42858 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42859 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42860 fi
42861
ebee3cd0
VS
42862 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42863 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42864 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42865 fi
42866
42867 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42868 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42869 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42870 fi
42871
a848cd7e
SC
42872 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42873 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42874 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42875 fi
42876
42877 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42878 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42879 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42880 fi
42881
b48a2016
DE
42882 COND_PLATFORM_MACOS_1="#"
42883 if test "x$PLATFORM_MACOS" = "x1" ; then
42884 COND_PLATFORM_MACOS_1=""
42885 fi
42886
a848cd7e
SC
42887 COND_PLATFORM_MAC_1="#"
42888 if test "x$PLATFORM_MAC" = "x1" ; then
42889 COND_PLATFORM_MAC_1=""
42890 fi
42891
42892 COND_PLATFORM_OS2_1="#"
42893 if test "x$PLATFORM_OS2" = "x1" ; then
42894 COND_PLATFORM_OS2_1=""
42895 fi
42896
42897 COND_PLATFORM_UNIX_0="#"
42898 if test "x$PLATFORM_UNIX" = "x0" ; then
42899 COND_PLATFORM_UNIX_0=""
42900 fi
42901
42902 COND_PLATFORM_UNIX_1="#"
42903 if test "x$PLATFORM_UNIX" = "x1" ; then
42904 COND_PLATFORM_UNIX_1=""
42905 fi
42906
42907 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42908 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42909 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42910 fi
42911
42912 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42913 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42914 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42915 fi
42916
42917 COND_PLATFORM_WIN32_0="#"
42918 if test "x$PLATFORM_WIN32" = "x0" ; then
42919 COND_PLATFORM_WIN32_0=""
42920 fi
42921
42922 COND_PLATFORM_WIN32_1="#"
42923 if test "x$PLATFORM_WIN32" = "x1" ; then
42924 COND_PLATFORM_WIN32_1=""
42925 fi
42926
42927 COND_SHARED_0="#"
42928 if test "x$SHARED" = "x0" ; then
42929 COND_SHARED_0=""
42930 fi
42931
ceec2216
RL
42932 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42933 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42934 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42935 fi
42936
42937 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42938 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42939 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42940 fi
42941
42942 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42943 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42944 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42945 fi
42946
a848cd7e
SC
42947 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42948 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42949 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42950 fi
42951
42952 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42953 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42954 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42955 fi
42956
42957 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42958 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42959 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42960 fi
42961
42962 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42963 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42964 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42965 fi
42966
52ada004
RL
42967 COND_SHARED_0_USE_XRC_1="#"
42968 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42969 COND_SHARED_0_USE_XRC_1=""
42970 fi
42971
a848cd7e
SC
42972 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42973 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42974 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42975 fi
42976
42977 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42978 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42979 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42980 fi
42981
42982 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42983 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42984 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42985 fi
42986
42987 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42988 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42989 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42990 fi
42991
42992 COND_SHARED_1="#"
42993 if test "x$SHARED" = "x1" ; then
42994 COND_SHARED_1=""
42995 fi
42996
42997 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42998 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42999 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43000 fi
43001
52ada004
RL
43002 COND_SHARED_1_USE_XRC_1="#"
43003 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43004 COND_SHARED_1_USE_XRC_1=""
43005 fi
43006
a30f955f
VS
43007 COND_TOOLKIT_="#"
43008 if test "x$TOOLKIT" = "x" ; then
43009 COND_TOOLKIT_=""
43010 fi
43011
a848cd7e
SC
43012 COND_TOOLKIT_COCOA="#"
43013 if test "x$TOOLKIT" = "xCOCOA" ; then
43014 COND_TOOLKIT_COCOA=""
43015 fi
43016
a49baeab
DE
43017 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43018 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43019 COND_TOOLKIT_COCOA_USE_GUI_1=""
43020 fi
43021
a848cd7e
SC
43022 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43023 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43024 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43025 fi
43026
43027 COND_TOOLKIT_GTK="#"
43028 if test "x$TOOLKIT" = "xGTK" ; then
43029 COND_TOOLKIT_GTK=""
43030 fi
43031
43032 COND_TOOLKIT_GTK_USE_GUI_1="#"
43033 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43034 COND_TOOLKIT_GTK_USE_GUI_1=""
43035 fi
43036
43037 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43038 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43039 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43040 fi
43041
43042 COND_TOOLKIT_MAC="#"
43043 if test "x$TOOLKIT" = "xMAC" ; then
43044 COND_TOOLKIT_MAC=""
43045 fi
43046
43047 COND_TOOLKIT_MAC_USE_GUI_1="#"
43048 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43049 COND_TOOLKIT_MAC_USE_GUI_1=""
43050 fi
43051
43052 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43053 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43054 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43055 fi
43056
43057 COND_TOOLKIT_MGL="#"
43058 if test "x$TOOLKIT" = "xMGL" ; then
43059 COND_TOOLKIT_MGL=""
43060 fi
43061
43062 COND_TOOLKIT_MGL_USE_GUI_1="#"
43063 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43064 COND_TOOLKIT_MGL_USE_GUI_1=""
43065 fi
43066
43067 COND_TOOLKIT_MOTIF="#"
43068 if test "x$TOOLKIT" = "xMOTIF" ; then
43069 COND_TOOLKIT_MOTIF=""
43070 fi
43071
43072 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43073 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43074 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43075 fi
43076
43077 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43078 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43079 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43080 fi
43081
43082 COND_TOOLKIT_MSW="#"
43083 if test "x$TOOLKIT" = "xMSW" ; then
43084 COND_TOOLKIT_MSW=""
43085 fi
43086
43087 COND_TOOLKIT_MSW_USE_GUI_1="#"
43088 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43089 COND_TOOLKIT_MSW_USE_GUI_1=""
43090 fi
43091
43092 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43093 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43094 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43095 fi
43096
43097 COND_TOOLKIT_PM="#"
43098 if test "x$TOOLKIT" = "xPM" ; then
43099 COND_TOOLKIT_PM=""
43100 fi
43101
43102 COND_TOOLKIT_PM_USE_GUI_1="#"
43103 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43104 COND_TOOLKIT_PM_USE_GUI_1=""
43105 fi
43106
43107 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43108 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43109 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43110 fi
43111
3fd9c298
DE
43112 COND_TOOLKIT_WINCE="#"
43113 if test "x$TOOLKIT" = "xWINCE" ; then
43114 COND_TOOLKIT_WINCE=""
43115 fi
43116
43117 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43118 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43119 COND_TOOLKIT_WINCE_USE_GUI_1=""
43120 fi
43121
43122 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43123 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43124 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43125 fi
43126
a848cd7e
SC
43127 COND_TOOLKIT_X11="#"
43128 if test "x$TOOLKIT" = "xX11" ; then
43129 COND_TOOLKIT_X11=""
43130 fi
43131
43132 COND_TOOLKIT_X11_USE_GUI_1="#"
43133 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43134 COND_TOOLKIT_X11_USE_GUI_1=""
43135 fi
43136
43137 COND_UNICODE_1="#"
43138 if test "x$UNICODE" = "x1" ; then
43139 COND_UNICODE_1=""
43140 fi
43141
43142 COND_USE_EXCEPTIONS_0="#"
43143 if test "x$USE_EXCEPTIONS" = "x0" ; then
43144 COND_USE_EXCEPTIONS_0=""
43145 fi
43146
43147 COND_USE_EXCEPTIONS_1="#"
43148 if test "x$USE_EXCEPTIONS" = "x1" ; then
43149 COND_USE_EXCEPTIONS_1=""
43150 fi
43151
43152 COND_USE_GUI_0="#"
43153 if test "x$USE_GUI" = "x0" ; then
43154 COND_USE_GUI_0=""
43155 fi
43156
43157 COND_USE_GUI_1="#"
43158 if test "x$USE_GUI" = "x1" ; then
43159 COND_USE_GUI_1=""
43160 fi
43161
43162 COND_USE_GUI_1_WXUNIV_0="#"
43163 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43164 COND_USE_GUI_1_WXUNIV_0=""
43165 fi
43166
43167 COND_USE_GUI_1_WXUNIV_1="#"
43168 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43169 COND_USE_GUI_1_WXUNIV_1=""
43170 fi
43171
43172 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43173 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43174 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43175 fi
43176
43177 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43178 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43179 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43180 fi
43181
43182 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43183 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43184 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43185 fi
43186
ceec2216
RL
43187 COND_USE_ODBC_1="#"
43188 if test "x$USE_ODBC" = "x1" ; then
43189 COND_USE_ODBC_1=""
43190 fi
43191
ffa0583f
RL
43192 COND_USE_OPENGL_1="#"
43193 if test "x$USE_OPENGL" = "x1" ; then
43194 COND_USE_OPENGL_1=""
43195 fi
43196
a848cd7e
SC
43197 COND_USE_PLUGINS_0="#"
43198 if test "x$USE_PLUGINS" = "x0" ; then
43199 COND_USE_PLUGINS_0=""
43200 fi
43201
0b78747f
MW
43202 COND_USE_RTTI_0="#"
43203 if test "x$USE_RTTI" = "x0" ; then
43204 COND_USE_RTTI_0=""
43205 fi
43206
43207 COND_USE_RTTI_1="#"
43208 if test "x$USE_RTTI" = "x1" ; then
43209 COND_USE_RTTI_1=""
43210 fi
43211
a848cd7e
SC
43212 COND_USE_SOSYMLINKS_1="#"
43213 if test "x$USE_SOSYMLINKS" = "x1" ; then
43214 COND_USE_SOSYMLINKS_1=""
43215 fi
43216
43217 COND_USE_SOVERLINUX_1="#"
43218 if test "x$USE_SOVERLINUX" = "x1" ; then
43219 COND_USE_SOVERLINUX_1=""
43220 fi
43221
43222 COND_USE_SOVERSION_0="#"
43223 if test "x$USE_SOVERSION" = "x0" ; then
43224 COND_USE_SOVERSION_0=""
43225 fi
43226
43227 COND_USE_SOVERSOLARIS_1="#"
43228 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43229 COND_USE_SOVERSOLARIS_1=""
43230 fi
43231
0b78747f
MW
43232 COND_USE_THREADS_0="#"
43233 if test "x$USE_THREADS" = "x0" ; then
43234 COND_USE_THREADS_0=""
43235 fi
43236
43237 COND_USE_THREADS_1="#"
43238 if test "x$USE_THREADS" = "x1" ; then
43239 COND_USE_THREADS_1=""
43240 fi
43241
a13a7f89
RL
43242 COND_USE_XRC_1="#"
43243 if test "x$USE_XRC" = "x1" ; then
43244 COND_USE_XRC_1=""
43245 fi
43246
a848cd7e
SC
43247 COND_WITH_PLUGIN_SDL_1="#"
43248 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43249 COND_WITH_PLUGIN_SDL_1=""
43250 fi
43251
1e6eb025
VZ
43252 COND_WXUNIV_0="#"
43253 if test "x$WXUNIV" = "x0" ; then
43254 COND_WXUNIV_0=""
43255 fi
43256
a848cd7e
SC
43257 COND_WXUNIV_1="#"
43258 if test "x$WXUNIV" = "x1" ; then
43259 COND_WXUNIV_1=""
43260 fi
43261
43262 COND_WXUSE_EXPAT_BUILTIN="#"
43263 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43264 COND_WXUSE_EXPAT_BUILTIN=""
43265 fi
43266
43267 COND_WXUSE_LIBJPEG_BUILTIN="#"
43268 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43269 COND_WXUSE_LIBJPEG_BUILTIN=""
43270 fi
43271
43272 COND_WXUSE_LIBPNG_BUILTIN="#"
43273 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43274 COND_WXUSE_LIBPNG_BUILTIN=""
43275 fi
43276
43277 COND_WXUSE_LIBTIFF_BUILTIN="#"
43278 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43279 COND_WXUSE_LIBTIFF_BUILTIN=""
43280 fi
43281
43282 COND_WXUSE_ODBC_BUILTIN="#"
43283 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43284 COND_WXUSE_ODBC_BUILTIN=""
43285 fi
43286
43287 COND_WXUSE_REGEX_BUILTIN="#"
43288 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43289 COND_WXUSE_REGEX_BUILTIN=""
43290 fi
43291
43292 COND_WXUSE_ZLIB_BUILTIN="#"
43293 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43294 COND_WXUSE_ZLIB_BUILTIN=""
43295 fi
43296
43297
43298
2057db16
VS
43299 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43300 { { 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
43301echo "$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;}
43302 { (exit 1); exit 1; }; }
43303 fi
43304
a848cd7e 43305
ceec2216
RL
43306if test "$wxUSE_SHARED" = "yes"; then
43307
43308 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43309 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43310
5b674b9d
DE
43311 case "${host}" in
43312 *-pc-os2_emx | *-pc-os2-emx )
43313 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43314 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43315 cp -p ${srcdir}/src/os2/dllnames.sh .
43316 cp -p ${srcdir}/src/os2/dllar.sh .
43317 ;;
43318 esac
ceec2216
RL
43319else
43320
43321 EXE_LINKER="$CXX -o"
43322
43323fi
69120ee4
VZ
43324if test "$wxUSE_OMF" = "yes"; then
43325 case "${host}" in
43326 *-pc-os2_emx | *-pc-os2-emx )
43327 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43328 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43329 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43330 ;;
43331 esac
43332fi
a848cd7e 43333
74b84332 43334GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43335PCH_FLAGS=""
43336if test $GCC_PCH = 1 ; then
43337 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43338 PCH_FLAGS="-DWX_PRECOMP"
43339else
a848cd7e
SC
43340 case "${host}" in
43341 powerpc-*-darwin* )
74b84332 43342 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43343 ;;
bea8e651 43344 *-*-mingw32* )
1f344abf
VS
43345 if test "$wxUSE_STL" = "yes" -o \
43346 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43347 "$wxUSE_NO_RTTI" != "yes"; then
43348 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43349echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43350 cat >conftest.$ac_ext <<_ACEOF
43351/* confdefs.h. */
43352_ACEOF
43353cat confdefs.h >>conftest.$ac_ext
43354cat >>conftest.$ac_ext <<_ACEOF
43355/* end confdefs.h. */
43356
3314e67b
RR
43357int
43358main ()
43359{
43360#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43361 #error "Not GCC 3.2 or greater"
43362 #endif
43363
43364 ;
43365 return 0;
43366}
43367_ACEOF
43368rm -f conftest.$ac_objext
43369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43370 (eval $ac_compile) 2>conftest.er1
43371 ac_status=$?
43372 grep -v '^ *+' conftest.er1 >conftest.err
43373 rm -f conftest.er1
43374 cat conftest.err >&5
43375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376 (exit $ac_status); } &&
9dd0f6c2 43377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43379 (eval $ac_try) 2>&5
43380 ac_status=$?
43381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43382 (exit $ac_status); }; } &&
43383 { ac_try='test -s conftest.$ac_objext'
43384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43385 (eval $ac_try) 2>&5
43386 ac_status=$?
43387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43388 (exit $ac_status); }; }; then
43389 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43390 echo "$as_me:$LINENO: result: yes" >&5
43391echo "${ECHO_T}yes" >&6
43392else
43393 echo "$as_me: failed program was:" >&5
43394sed 's/^/| /' conftest.$ac_ext >&5
43395
43396echo "$as_me:$LINENO: result: no" >&5
43397echo "${ECHO_T}no" >&6
43398fi
43399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43400 fi
43401 ;;
43402 *-pc-os2_emx | *-pc-os2-emx )
43403 if test "$wxUSE_STL" = "yes"; then
43404 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43405echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43406 cat >conftest.$ac_ext <<_ACEOF
43407/* confdefs.h. */
43408_ACEOF
43409cat confdefs.h >>conftest.$ac_ext
43410cat >>conftest.$ac_ext <<_ACEOF
43411/* end confdefs.h. */
43412
bea8e651
MB
43413int
43414main ()
43415{
1f344abf 43416#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43417 #error "Not GCC 3.2 or greater"
43418 #endif
43419
43420 ;
43421 return 0;
43422}
43423_ACEOF
43424rm -f conftest.$ac_objext
43425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43426 (eval $ac_compile) 2>conftest.er1
bea8e651 43427 ac_status=$?
ac1cb8d3
VS
43428 grep -v '^ *+' conftest.er1 >conftest.err
43429 rm -f conftest.er1
43430 cat conftest.err >&5
bea8e651
MB
43431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43432 (exit $ac_status); } &&
9dd0f6c2 43433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43435 (eval $ac_try) 2>&5
43436 ac_status=$?
43437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438 (exit $ac_status); }; } &&
43439 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43441 (eval $ac_try) 2>&5
43442 ac_status=$?
43443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444 (exit $ac_status); }; }; then
74b84332 43445 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43446 echo "$as_me:$LINENO: result: yes" >&5
43447echo "${ECHO_T}yes" >&6
43448else
43449 echo "$as_me: failed program was:" >&5
43450sed 's/^/| /' conftest.$ac_ext >&5
43451
43452echo "$as_me:$LINENO: result: no" >&5
43453echo "${ECHO_T}no" >&6
43454fi
ac1cb8d3 43455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43456 fi
43457 ;;
a848cd7e
SC
43458 esac
43459fi
d2083416 43460CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43461
43462
43463SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43464
43465
43466
43467
43468
43469
43470
43471
43472
43473
43474
43475
43476
43477
43478
43479
43480
43481
43482
43483
43484
43485
43486
43487
43488
43489
43490
43491
43492
43493
43494
43495
43496
43497
43498
43499
43500
43501
43502
43503
43504
43505
a848cd7e
SC
43506
43507
43508
43509
43510
43511
43512
43513
43514
43515
43516
43517
43518
43519
43520
43521
43522
43523
74b84332 43524
a848cd7e
SC
43525
43526
43527echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43528echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43529set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43530if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43531 echo $ECHO_N "(cached) $ECHO_C" >&6
43532else
43533 cat >conftest.make <<\_ACEOF
43534all:
43535 @echo 'ac_maketemp="$(MAKE)"'
43536_ACEOF
43537# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43538eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43539if test -n "$ac_maketemp"; then
43540 eval ac_cv_prog_make_${ac_make}_set=yes
43541else
43542 eval ac_cv_prog_make_${ac_make}_set=no
43543fi
43544rm -f conftest.make
43545fi
43546if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43547 echo "$as_me:$LINENO: result: yes" >&5
43548echo "${ECHO_T}yes" >&6
43549 SET_MAKE=
43550else
43551 echo "$as_me:$LINENO: result: no" >&5
43552echo "${ECHO_T}no" >&6
43553 SET_MAKE="MAKE=${MAKE-make}"
43554fi
43555
43556
a848cd7e 43557
ceec2216
RL
43558 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43559
a848cd7e 43560
ceec2216 43561 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43562
a848cd7e 43563
ceec2216 43564 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43565
ceec2216
RL
43566
43567 ac_config_files="$ac_config_files version-script Makefile"
43568
43569
43570 ac_config_commands="$ac_config_commands wx-config
43571 "
a848cd7e
SC
43572
43573
9103d280
RL
43574
43575
a848cd7e
SC
43576if test "$wxUSE_GUI" = "yes"; then
43577 SUBDIRS="samples demos utils contrib"
43578else SUBDIRS="samples utils"
43579fi
43580
43581
43582
43583# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43584if test "${with_cppunit_prefix+set}" = set; then
43585 withval="$with_cppunit_prefix"
43586 cppunit_config_prefix="$withval"
43587else
43588 cppunit_config_prefix=""
43589fi;
43590
43591# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43592if test "${with_cppunit_exec_prefix+set}" = set; then
43593 withval="$with_cppunit_exec_prefix"
43594 cppunit_config_exec_prefix="$withval"
43595else
43596 cppunit_config_exec_prefix=""
43597fi;
43598
43599 if test x$cppunit_config_exec_prefix != x ; then
43600 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43601 if test x${CPPUNIT_CONFIG+set} != xset ; then
43602 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43603 fi
43604 fi
43605 if test x$cppunit_config_prefix != x ; then
43606 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43607 if test x${CPPUNIT_CONFIG+set} != xset ; then
43608 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43609 fi
43610 fi
43611
43612 # Extract the first word of "cppunit-config", so it can be a program name with args.
43613set dummy cppunit-config; ac_word=$2
43614echo "$as_me:$LINENO: checking for $ac_word" >&5
43615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43616if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43617 echo $ECHO_N "(cached) $ECHO_C" >&6
43618else
43619 case $CPPUNIT_CONFIG in
43620 [\\/]* | ?:[\\/]*)
43621 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43622 ;;
43623 *)
43624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43625for as_dir in $PATH
43626do
43627 IFS=$as_save_IFS
43628 test -z "$as_dir" && as_dir=.
43629 for ac_exec_ext in '' $ac_executable_extensions; do
43630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43631 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43633 break 2
43634 fi
43635done
43636done
43637
43638 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43639 ;;
43640esac
43641fi
43642CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43643
43644if test -n "$CPPUNIT_CONFIG"; then
43645 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43646echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43647else
43648 echo "$as_me:$LINENO: result: no" >&5
43649echo "${ECHO_T}no" >&6
43650fi
43651
43652 cppunit_version_min=1.8.0
43653
43654 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43655echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43656 no_cppunit=""
43657 if test "$CPPUNIT_CONFIG" = "no" ; then
43658 no_cppunit=yes
43659 else
43660 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43661 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43662 cppunit_version=`$CPPUNIT_CONFIG --version`
43663
43664 cppunit_major_version=`echo $cppunit_version | \
43665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43666 cppunit_minor_version=`echo $cppunit_version | \
43667 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43668 cppunit_micro_version=`echo $cppunit_version | \
43669 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43670
43671 cppunit_major_min=`echo $cppunit_version_min | \
43672 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43673 cppunit_minor_min=`echo $cppunit_version_min | \
43674 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43675 cppunit_micro_min=`echo $cppunit_version_min | \
43676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43677
43678 cppunit_version_proper=`expr \
43679 $cppunit_major_version \> $cppunit_major_min \| \
43680 $cppunit_major_version \= $cppunit_major_min \& \
43681 $cppunit_minor_version \> $cppunit_minor_min \| \
43682 $cppunit_major_version \= $cppunit_major_min \& \
43683 $cppunit_minor_version \= $cppunit_minor_min \& \
43684 $cppunit_micro_version \>= $cppunit_micro_min `
43685
43686 if test "$cppunit_version_proper" = "1" ; then
43687 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43688echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43689 else
43690 echo "$as_me:$LINENO: result: no" >&5
43691echo "${ECHO_T}no" >&6
43692 no_cppunit=yes
43693 fi
43694 fi
43695
43696 if test "x$no_cppunit" = x ; then
c2218763 43697 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43698 else
43699 CPPUNIT_CFLAGS=""
43700 CPPUNIT_LIBS=""
c2218763 43701 :
a848cd7e
SC
43702 fi
43703
43704
43705
43706
43707
43708for subdir in `echo $SUBDIRS`; do
43709 if test -d ${srcdir}/${subdir} ; then
43710 if test "$wxUSE_GUI" = "yes"; then
43711 if test ${subdir} = "samples"; then
43712 makefiles="samples/Makefile.in $makefiles"
43713 for sample in `echo $SAMPLES_SUBDIRS`; do
43714 if test -d $srcdir/samples/$sample; then
43715 makefiles="samples/$sample/Makefile.in $makefiles"
43716 fi
43717 done
43718 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43719 fi
43720 else if test ${subdir} = "samples"; then
43721 makefiles="samples/Makefile.in samples/console/Makefile.in"
43722 elif test ${subdir} = "utils"; then
6537ccf8
VS
43723 makefiles=""
43724 for util in HelpGen tex2rtf ; do
43725 if test -d $srcdir/utils/$util ; then
43726 makefiles="utils/$util/Makefile.in \
43727 utils/$util/src/Makefile.in \
43728 $makefiles"
43729 fi
43730 done
a848cd7e
SC
43731 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43732 fi
43733 fi
43734
43735 for mkin in $makefiles ; do
43736 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43737 ac_config_files="$ac_config_files $mk"
43738
43739 done
43740 fi
43741done
43742
43743
43744cat >confcache <<\_ACEOF
43745# This file is a shell script that caches the results of configure
43746# tests run on this system so they can be shared between configure
43747# scripts and configure runs, see configure's option --config-cache.
43748# It is not useful on other systems. If it contains results you don't
43749# want to keep, you may remove or edit it.
43750#
43751# config.status only pays attention to the cache file if you give it
43752# the --recheck option to rerun configure.
43753#
43754# `ac_cv_env_foo' variables (set or unset) will be overridden when
43755# loading this file, other *unset* `ac_cv_foo' will be assigned the
43756# following values.
43757
43758_ACEOF
43759
43760# The following way of writing the cache mishandles newlines in values,
43761# but we know of no workaround that is simple, portable, and efficient.
43762# So, don't put newlines in cache variables' values.
43763# Ultrix sh set writes to stderr and can't be redirected directly,
43764# and sets the high bit in the cache file unless we assign to the vars.
43765{
43766 (set) 2>&1 |
43767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43768 *ac_space=\ *)
43769 # `set' does not quote correctly, so add quotes (double-quote
43770 # substitution turns \\\\ into \\, and sed turns \\ into \).
43771 sed -n \
ac1cb8d3
VS
43772 "s/'/'\\\\''/g;
43773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43774 ;;
43775 *)
43776 # `set' quotes correctly as required by POSIX, so do not add quotes.
43777 sed -n \
ac1cb8d3 43778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43779 ;;
43780 esac;
43781} |
43782 sed '
43783 t clear
43784 : clear
43785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43786 t end
43787 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43788 : end' >>confcache
43789if diff $cache_file confcache >/dev/null 2>&1; then :; else
43790 if test -w $cache_file; then
43791 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43792 cat confcache >$cache_file
43793 else
43794 echo "not updating unwritable cache $cache_file"
43795 fi
43796fi
43797rm -f confcache
43798
43799test "x$prefix" = xNONE && prefix=$ac_default_prefix
43800# Let make expand exec_prefix.
43801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43802
43803# VPATH may cause trouble with some makes, so we remove $(srcdir),
43804# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43805# trailing colons and then remove the whole line if VPATH becomes empty
43806# (actually we leave an empty line to preserve line numbers).
43807if test "x$srcdir" = x.; then
ac1cb8d3 43808 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43809s/:*\$(srcdir):*/:/;
43810s/:*\${srcdir}:*/:/;
43811s/:*@srcdir@:*/:/;
ac1cb8d3 43812s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43813s/:*$//;
ac1cb8d3 43814s/^[^=]*=[ ]*$//;
a848cd7e
SC
43815}'
43816fi
43817
43818DEFS=-DHAVE_CONFIG_H
43819
43820ac_libobjs=
43821ac_ltlibobjs=
43822for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43823 # 1. Remove the extension, and $U if already installed.
43824 ac_i=`echo "$ac_i" |
ac1cb8d3 43825 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43826 # 2. Add them.
43827 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43828 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43829done
43830LIBOBJS=$ac_libobjs
43831
43832LTLIBOBJS=$ac_ltlibobjs
43833
43834
43835
43836: ${CONFIG_STATUS=./config.status}
43837ac_clean_files_save=$ac_clean_files
43838ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43839{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43840echo "$as_me: creating $CONFIG_STATUS" >&6;}
43841cat >$CONFIG_STATUS <<_ACEOF
43842#! $SHELL
43843# Generated by $as_me.
43844# Run this file to recreate the current configuration.
43845# Compiler output produced by configure, useful for debugging
43846# configure, is in config.log if it exists.
43847
43848debug=false
43849ac_cs_recheck=false
43850ac_cs_silent=false
43851SHELL=\${CONFIG_SHELL-$SHELL}
43852_ACEOF
43853
43854cat >>$CONFIG_STATUS <<\_ACEOF
43855## --------------------- ##
43856## M4sh Initialization. ##
43857## --------------------- ##
43858
43859# Be Bourne compatible
43860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43861 emulate sh
43862 NULLCMD=:
43863 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43864 # is contrary to our usage. Disable this feature.
43865 alias -g '${1+"$@"}'='"$@"'
43866elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43867 set -o posix
43868fi
ac1cb8d3 43869DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43870
43871# Support unset when possible.
ac1cb8d3 43872if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43873 as_unset=unset
43874else
43875 as_unset=false
43876fi
43877
43878
43879# Work around bugs in pre-3.0 UWIN ksh.
43880$as_unset ENV MAIL MAILPATH
43881PS1='$ '
43882PS2='> '
43883PS4='+ '
43884
43885# NLS nuisances.
43886for as_var in \
43887 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43888 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43889 LC_TELEPHONE LC_TIME
43890do
ac1cb8d3 43891 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43892 eval $as_var=C; export $as_var
43893 else
43894 $as_unset $as_var
43895 fi
43896done
43897
43898# Required to use basename.
43899if expr a : '\(a\)' >/dev/null 2>&1; then
43900 as_expr=expr
43901else
43902 as_expr=false
43903fi
43904
43905if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43906 as_basename=basename
43907else
43908 as_basename=false
43909fi
43910
43911
43912# Name of the executable.
43913as_me=`$as_basename "$0" ||
43914$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43915 X"$0" : 'X\(//\)$' \| \
43916 X"$0" : 'X\(/\)$' \| \
43917 . : '\(.\)' 2>/dev/null ||
43918echo X/"$0" |
43919 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43920 /^X\/\(\/\/\)$/{ s//\1/; q; }
43921 /^X\/\(\/\).*/{ s//\1/; q; }
43922 s/.*/./; q'`
43923
43924
43925# PATH needs CR, and LINENO needs CR and PATH.
43926# Avoid depending upon Character Ranges.
43927as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43928as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43929as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43930as_cr_digits='0123456789'
43931as_cr_alnum=$as_cr_Letters$as_cr_digits
43932
43933# The user is always right.
43934if test "${PATH_SEPARATOR+set}" != set; then
43935 echo "#! /bin/sh" >conf$$.sh
43936 echo "exit 0" >>conf$$.sh
43937 chmod +x conf$$.sh
43938 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43939 PATH_SEPARATOR=';'
43940 else
43941 PATH_SEPARATOR=:
43942 fi
43943 rm -f conf$$.sh
43944fi
43945
43946
43947 as_lineno_1=$LINENO
43948 as_lineno_2=$LINENO
43949 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43950 test "x$as_lineno_1" != "x$as_lineno_2" &&
43951 test "x$as_lineno_3" = "x$as_lineno_2" || {
43952 # Find who we are. Look in the path if we contain no path at all
43953 # relative or not.
43954 case $0 in
43955 *[\\/]* ) as_myself=$0 ;;
43956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43957for as_dir in $PATH
43958do
43959 IFS=$as_save_IFS
43960 test -z "$as_dir" && as_dir=.
43961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43962done
43963
43964 ;;
43965 esac
43966 # We did not find ourselves, most probably we were run as `sh COMMAND'
43967 # in which case we are not to be found in the path.
43968 if test "x$as_myself" = x; then
43969 as_myself=$0
43970 fi
43971 if test ! -f "$as_myself"; then
43972 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43973echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43974 { (exit 1); exit 1; }; }
43975 fi
43976 case $CONFIG_SHELL in
43977 '')
43978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43979for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43980do
43981 IFS=$as_save_IFS
43982 test -z "$as_dir" && as_dir=.
43983 for as_base in sh bash ksh sh5; do
43984 case $as_dir in
43985 /*)
43986 if ("$as_dir/$as_base" -c '
43987 as_lineno_1=$LINENO
43988 as_lineno_2=$LINENO
43989 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43990 test "x$as_lineno_1" != "x$as_lineno_2" &&
43991 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43992 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43993 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43994 CONFIG_SHELL=$as_dir/$as_base
43995 export CONFIG_SHELL
43996 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43997 fi;;
43998 esac
43999 done
44000done
44001;;
44002 esac
44003
44004 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44005 # uniformly replaced by the line number. The first 'sed' inserts a
44006 # line-number line before each line; the second 'sed' does the real
44007 # work. The second script uses 'N' to pair each line-number line
44008 # with the numbered line, and appends trailing '-' during
44009 # substitution so that $LINENO is not a special case at line end.
44010 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44011 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44012 sed '=' <$as_myself |
44013 sed '
44014 N
44015 s,$,-,
44016 : loop
44017 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44018 t loop
44019 s,-$,,
44020 s,^['$as_cr_digits']*\n,,
44021 ' >$as_me.lineno &&
44022 chmod +x $as_me.lineno ||
44023 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44024echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44025 { (exit 1); exit 1; }; }
44026
44027 # Don't try to exec as it changes $[0], causing all sort of problems
44028 # (the dirname of $[0] is not the place where we might find the
44029 # original and so on. Autoconf is especially sensible to this).
44030 . ./$as_me.lineno
44031 # Exit status is that of the last command.
44032 exit
44033}
44034
44035
44036case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44037 *c*,-n*) ECHO_N= ECHO_C='
44038' ECHO_T=' ' ;;
44039 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44040 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44041esac
44042
44043if expr a : '\(a\)' >/dev/null 2>&1; then
44044 as_expr=expr
44045else
44046 as_expr=false
44047fi
44048
44049rm -f conf$$ conf$$.exe conf$$.file
44050echo >conf$$.file
44051if ln -s conf$$.file conf$$ 2>/dev/null; then
44052 # We could just check for DJGPP; but this test a) works b) is more generic
44053 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44054 if test -f conf$$.exe; then
44055 # Don't use ln at all; we don't have any links
44056 as_ln_s='cp -p'
44057 else
44058 as_ln_s='ln -s'
44059 fi
44060elif ln conf$$.file conf$$ 2>/dev/null; then
44061 as_ln_s=ln
44062else
44063 as_ln_s='cp -p'
44064fi
44065rm -f conf$$ conf$$.exe conf$$.file
44066
44067if mkdir -p . 2>/dev/null; then
44068 as_mkdir_p=:
44069else
ac1cb8d3 44070 test -d ./-p && rmdir ./-p
a848cd7e
SC
44071 as_mkdir_p=false
44072fi
44073
44074as_executable_p="test -f"
44075
44076# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44077as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44078
44079# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44080as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44081
44082
44083# IFS
44084# We need space, tab and new line, in precisely that order.
44085as_nl='
44086'
44087IFS=" $as_nl"
44088
44089# CDPATH.
44090$as_unset CDPATH
44091
44092exec 6>&1
44093
44094# Open the log real soon, to keep \$[0] and so on meaningful, and to
44095# report actual input values of CONFIG_FILES etc. instead of their
44096# values after options handling. Logging --version etc. is OK.
44097exec 5>>config.log
44098{
44099 echo
44100 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44101## Running $as_me. ##
44102_ASBOX
44103} >&5
44104cat >&5 <<_CSEOF
44105
e0d84535 44106This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44107generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44108
44109 CONFIG_FILES = $CONFIG_FILES
44110 CONFIG_HEADERS = $CONFIG_HEADERS
44111 CONFIG_LINKS = $CONFIG_LINKS
44112 CONFIG_COMMANDS = $CONFIG_COMMANDS
44113 $ $0 $@
44114
44115_CSEOF
44116echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44117echo >&5
44118_ACEOF
44119
44120# Files that config.status was made for.
44121if test -n "$ac_config_files"; then
44122 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44123fi
44124
44125if test -n "$ac_config_headers"; then
44126 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44127fi
44128
44129if test -n "$ac_config_links"; then
44130 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44131fi
44132
44133if test -n "$ac_config_commands"; then
44134 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44135fi
44136
44137cat >>$CONFIG_STATUS <<\_ACEOF
44138
44139ac_cs_usage="\
44140\`$as_me' instantiates files from templates according to the
44141current configuration.
44142
44143Usage: $0 [OPTIONS] [FILE]...
44144
44145 -h, --help print this help, then exit
44146 -V, --version print version number, then exit
44147 -q, --quiet do not print progress messages
44148 -d, --debug don't remove temporary files
44149 --recheck update $as_me by reconfiguring in the same conditions
44150 --file=FILE[:TEMPLATE]
ac1cb8d3 44151 instantiate the configuration file FILE
a848cd7e 44152 --header=FILE[:TEMPLATE]
ac1cb8d3 44153 instantiate the configuration header FILE
a848cd7e
SC
44154
44155Configuration files:
44156$config_files
44157
44158Configuration headers:
44159$config_headers
44160
44161Configuration commands:
44162$config_commands
44163
44164Report bugs to <bug-autoconf@gnu.org>."
44165_ACEOF
44166
44167cat >>$CONFIG_STATUS <<_ACEOF
44168ac_cs_version="\\
e0d84535 44169wxWidgets config.status 2.6.0
ac1cb8d3 44170configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44171 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44172
ac1cb8d3 44173Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44174This config.status script is free software; the Free Software Foundation
44175gives unlimited permission to copy, distribute and modify it."
44176srcdir=$srcdir
44177INSTALL="$INSTALL"
44178_ACEOF
44179
44180cat >>$CONFIG_STATUS <<\_ACEOF
44181# If no file are specified by the user, then we need to provide default
44182# value. By we need to know if files were specified by the user.
44183ac_need_defaults=:
44184while test $# != 0
44185do
44186 case $1 in
44187 --*=*)
44188 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44189 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44190 ac_shift=:
44191 ;;
44192 -*)
44193 ac_option=$1
44194 ac_optarg=$2
44195 ac_shift=shift
44196 ;;
44197 *) # This is not an option, so the user has probably given explicit
44198 # arguments.
44199 ac_option=$1
44200 ac_need_defaults=false;;
44201 esac
44202
44203 case $ac_option in
44204 # Handling of the options.
44205_ACEOF
44206cat >>$CONFIG_STATUS <<\_ACEOF
44207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44208 ac_cs_recheck=: ;;
44209 --version | --vers* | -V )
44210 echo "$ac_cs_version"; exit 0 ;;
44211 --he | --h)
44212 # Conflict between --help and --header
44213 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44214Try \`$0 --help' for more information." >&5
44215echo "$as_me: error: ambiguous option: $1
44216Try \`$0 --help' for more information." >&2;}
44217 { (exit 1); exit 1; }; };;
44218 --help | --hel | -h )
44219 echo "$ac_cs_usage"; exit 0 ;;
44220 --debug | --d* | -d )
44221 debug=: ;;
44222 --file | --fil | --fi | --f )
44223 $ac_shift
44224 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44225 ac_need_defaults=false;;
44226 --header | --heade | --head | --hea )
44227 $ac_shift
44228 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44229 ac_need_defaults=false;;
44230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44232 ac_cs_silent=: ;;
44233
44234 # This is an error.
44235 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44236Try \`$0 --help' for more information." >&5
44237echo "$as_me: error: unrecognized option: $1
44238Try \`$0 --help' for more information." >&2;}
44239 { (exit 1); exit 1; }; } ;;
44240
44241 *) ac_config_targets="$ac_config_targets $1" ;;
44242
44243 esac
44244 shift
44245done
44246
44247ac_configure_extra_args=
44248
44249if $ac_cs_silent; then
44250 exec 6>/dev/null
44251 ac_configure_extra_args="$ac_configure_extra_args --silent"
44252fi
44253
44254_ACEOF
44255cat >>$CONFIG_STATUS <<_ACEOF
44256if \$ac_cs_recheck; then
44257 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44258 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44259fi
44260
44261_ACEOF
44262
44263cat >>$CONFIG_STATUS <<_ACEOF
44264#
44265# INIT-COMMANDS section.
44266#
44267
ceec2216
RL
44268 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44269 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44270 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44271 LN_S="${LN_S}"
a848cd7e
SC
44272
44273
44274_ACEOF
44275
44276
44277
44278cat >>$CONFIG_STATUS <<\_ACEOF
44279for ac_config_target in $ac_config_targets
44280do
44281 case "$ac_config_target" in
44282 # Handling of arguments.
ceec2216
RL
44283 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44284 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44285 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44286 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44287 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44288 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44289 "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
44290 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44291echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44292 { (exit 1); exit 1; }; };;
44293 esac
44294done
44295
44296# If the user did not use the arguments to specify the items to instantiate,
44297# then the envvar interface is used. Set only those that are not.
44298# We use the long form for the default assignment because of an extremely
44299# bizarre bug on SunOS 4.1.3.
44300if $ac_need_defaults; then
44301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44303 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44304fi
44305
44306# Have a temporary directory for convenience. Make it in the build tree
44307# simply because there is no reason to put it here, and in addition,
44308# creating and moving files from /tmp can sometimes cause problems.
44309# Create a temporary directory, and hook for its removal unless debugging.
44310$debug ||
44311{
44312 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44313 trap '{ (exit 1); exit 1; }' 1 2 13 15
44314}
44315
44316# Create a (secure) tmp directory for tmp files.
44317
44318{
44319 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44320 test -n "$tmp" && test -d "$tmp"
44321} ||
44322{
44323 tmp=./confstat$$-$RANDOM
44324 (umask 077 && mkdir $tmp)
44325} ||
44326{
44327 echo "$me: cannot create a temporary directory in ." >&2
44328 { (exit 1); exit 1; }
44329}
44330
44331_ACEOF
44332
44333cat >>$CONFIG_STATUS <<_ACEOF
44334
44335#
44336# CONFIG_FILES section.
44337#
44338
44339# No need to generate the scripts if there are no CONFIG_FILES.
44340# This happens for instance when ./config.status config.h
44341if test -n "\$CONFIG_FILES"; then
44342 # Protect against being on the right side of a sed subst in config.status.
44343 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44344 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44345s,@SHELL@,$SHELL,;t t
44346s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44347s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44348s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44349s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44350s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44351s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44352s,@exec_prefix@,$exec_prefix,;t t
44353s,@prefix@,$prefix,;t t
44354s,@program_transform_name@,$program_transform_name,;t t
44355s,@bindir@,$bindir,;t t
44356s,@sbindir@,$sbindir,;t t
44357s,@libexecdir@,$libexecdir,;t t
44358s,@datadir@,$datadir,;t t
44359s,@sysconfdir@,$sysconfdir,;t t
44360s,@sharedstatedir@,$sharedstatedir,;t t
44361s,@localstatedir@,$localstatedir,;t t
44362s,@libdir@,$libdir,;t t
44363s,@includedir@,$includedir,;t t
44364s,@oldincludedir@,$oldincludedir,;t t
44365s,@infodir@,$infodir,;t t
44366s,@mandir@,$mandir,;t t
44367s,@build_alias@,$build_alias,;t t
44368s,@host_alias@,$host_alias,;t t
44369s,@target_alias@,$target_alias,;t t
44370s,@DEFS@,$DEFS,;t t
44371s,@ECHO_C@,$ECHO_C,;t t
44372s,@ECHO_N@,$ECHO_N,;t t
44373s,@ECHO_T@,$ECHO_T,;t t
44374s,@LIBS@,$LIBS,;t t
44375s,@build@,$build,;t t
44376s,@build_cpu@,$build_cpu,;t t
44377s,@build_vendor@,$build_vendor,;t t
44378s,@build_os@,$build_os,;t t
44379s,@host@,$host,;t t
44380s,@host_cpu@,$host_cpu,;t t
44381s,@host_vendor@,$host_vendor,;t t
44382s,@host_os@,$host_os,;t t
44383s,@target@,$target,;t t
44384s,@target_cpu@,$target_cpu,;t t
44385s,@target_vendor@,$target_vendor,;t t
44386s,@target_os@,$target_os,;t t
44387s,@CC@,$CC,;t t
44388s,@CFLAGS@,$CFLAGS,;t t
44389s,@LDFLAGS@,$LDFLAGS,;t t
44390s,@CPPFLAGS@,$CPPFLAGS,;t t
44391s,@ac_ct_CC@,$ac_ct_CC,;t t
44392s,@EXEEXT@,$EXEEXT,;t t
44393s,@OBJEXT@,$OBJEXT,;t t
44394s,@CPP@,$CPP,;t t
44395s,@EGREP@,$EGREP,;t t
44396s,@CXX@,$CXX,;t t
44397s,@CXXFLAGS@,$CXXFLAGS,;t t
44398s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44399s,@RANLIB@,$RANLIB,;t t
44400s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44401s,@AR@,$AR,;t t
44402s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44403s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44404s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44405s,@STRIP@,$STRIP,;t t
44406s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44407s,@LN_S@,$LN_S,;t t
44408s,@CXXCPP@,$CXXCPP,;t t
44409s,@subdirs@,$subdirs,;t t
44410s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44411s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44412s,@GTK_LIBS@,$GTK_LIBS,;t t
44413s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44414s,@X_CFLAGS@,$X_CFLAGS,;t t
44415s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44416s,@X_LIBS@,$X_LIBS,;t t
44417s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44418s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44419s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44420s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44421s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44422s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44423s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44424s,@RESCOMP@,$RESCOMP,;t t
44425s,@DEREZ@,$DEREZ,;t t
44426s,@SETFILE@,$SETFILE,;t t
44427s,@LIBICONV@,$LIBICONV,;t t
44428s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44429s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44430s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44431s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44432s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44433s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44434s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44435s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44436s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44437s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44438s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44439s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44440s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44441s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44442s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44443s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44444s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44445s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44446s,@VENDOR@,$VENDOR,;t t
44447s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44448s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44449s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44450s,@WXUNIV@,$WXUNIV,;t t
44451s,@MONOLITHIC@,$MONOLITHIC,;t t
44452s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44453s,@EXTRALIBS@,$EXTRALIBS,;t t
44454s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44455s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44456s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44457s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44458s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44459s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44460s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44461s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44462s,@UNICODE@,$UNICODE,;t t
44463s,@BUILD@,$BUILD,;t t
44464s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44465s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44466s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44467s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44468s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44469s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44470s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44471s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44472s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44473s,@SET_MAKE@,$SET_MAKE,;t t
44474s,@MAKE_SET@,$MAKE_SET,;t t
44475s,@ac_ct_AR@,$ac_ct_AR,;t t
44476s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44477s,@NM@,$NM,;t t
44478s,@ac_ct_NM@,$ac_ct_NM,;t t
44479s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44480s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44481s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44482s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44483s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44484s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44485s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44486s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44487s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44488s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44489s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44490s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44491s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44492s,@LIBPREFIX@,$LIBPREFIX,;t t
44493s,@LIBEXT@,$LIBEXT,;t t
44494s,@DLLPREFIX@,$DLLPREFIX,;t t
44495s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44496s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44497s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44498s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44499s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44500s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44501s,@PIC_FLAG@,$PIC_FLAG,;t t
44502s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44503s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44504s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44505s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44506s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44507s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44508s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44509s,@GCC_PCH@,$GCC_PCH,;t t
44510s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44511s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44512s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44513s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44514s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44515s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44516s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44517s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44518s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44519s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44520s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44521s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44522s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44523s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44524s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44525s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44526s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44527s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44528s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44529s,@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 44530s,@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 44531s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44532s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44533s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44534s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44535s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44536s,@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 44537s,@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 44538s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44539s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44540s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44541s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44542s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44543s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44544s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44545s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44546s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44547s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44548s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44549s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44550s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44551s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44552s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44553s,@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
44554s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44555s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44556s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44557s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44558s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44559s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44560s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44561s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44562s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44563s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44564s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44565s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44566s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44567s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44568s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44569s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44570s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44571s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44572s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44573s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44574s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 44575s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44576s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44577s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44578s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44579s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44580s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44581s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 44582s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 44583s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44584s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44585s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44586s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44587s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44588s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44589s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44590s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44591s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44592s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44593s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44594s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44595s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44596s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44597s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44598s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44599s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44600s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44601s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44602s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44603s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44604s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44605s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44606s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44607s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44608s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44609s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44610s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44611s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44612s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44613s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44614s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44615s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44616s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44617s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44618s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44619s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44620s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44621s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44622s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44623s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44624s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44625s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44626s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44627s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44628s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44629s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44630s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44631s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44632s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44633s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44634s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44635s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44636s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44637s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44638s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44639s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44640s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44641s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44642s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44643s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44644s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44645s,@USE_GUI@,$USE_GUI,;t t
44646s,@AFMINSTALL@,$AFMINSTALL,;t t
44647s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44648s,@TOOLKIT@,$TOOLKIT,;t t
44649s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44650s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44651s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44652s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44653s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44654s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44655s,@WIDGET_SET@,$WIDGET_SET,;t t
44656s,@WX_RELEASE@,$WX_RELEASE,;t t
44657s,@WX_VERSION@,$WX_VERSION,;t t
44658s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44659s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44660s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44661s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44662s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44663s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44664s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44665s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44666s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44667s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44668s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44669s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44670s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44671s,@DISTDIR@,$DISTDIR,;t t
44672s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44673s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44674s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44675s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44676s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44677s,@RESFLAGS@,$RESFLAGS,;t t
44678s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44679s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44680s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44681s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44682s,@MACRESCOMP@,$MACRESCOMP,;t t
44683s,@MACSETFILE@,$MACSETFILE,;t t
44684s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44685s,@GCC@,$GCC,;t t
a848cd7e 44686s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44687s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44688s,@LIBOBJS@,$LIBOBJS,;t t
44689s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44690CEOF
44691
44692_ACEOF
44693
44694 cat >>$CONFIG_STATUS <<\_ACEOF
44695 # Split the substitutions into bite-sized pieces for seds with
44696 # small command number limits, like on Digital OSF/1 and HP-UX.
44697 ac_max_sed_lines=48
44698 ac_sed_frag=1 # Number of current file.
44699 ac_beg=1 # First line for current file.
44700 ac_end=$ac_max_sed_lines # Line after last line for current file.
44701 ac_more_lines=:
44702 ac_sed_cmds=
44703 while $ac_more_lines; do
44704 if test $ac_beg -gt 1; then
44705 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44706 else
44707 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44708 fi
44709 if test ! -s $tmp/subs.frag; then
44710 ac_more_lines=false
44711 else
44712 # The purpose of the label and of the branching condition is to
44713 # speed up the sed processing (if there are no `@' at all, there
44714 # is no need to browse any of the substitutions).
44715 # These are the two extra sed commands mentioned above.
44716 (echo ':t
44717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44718 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44719 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44720 else
ac1cb8d3 44721 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44722 fi
44723 ac_sed_frag=`expr $ac_sed_frag + 1`
44724 ac_beg=$ac_end
44725 ac_end=`expr $ac_end + $ac_max_sed_lines`
44726 fi
44727 done
44728 if test -z "$ac_sed_cmds"; then
44729 ac_sed_cmds=cat
44730 fi
44731fi # test -n "$CONFIG_FILES"
44732
44733_ACEOF
44734cat >>$CONFIG_STATUS <<\_ACEOF
44735for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44737 case $ac_file in
44738 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44739 cat >$tmp/stdin
44740 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44742 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44744 * ) ac_file_in=$ac_file.in ;;
44745 esac
44746
44747 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44748 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44749$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44750 X"$ac_file" : 'X\(//\)[^/]' \| \
44751 X"$ac_file" : 'X\(//\)$' \| \
44752 X"$ac_file" : 'X\(/\)' \| \
44753 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44754echo X"$ac_file" |
44755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44757 /^X\(\/\/\)$/{ s//\1/; q; }
44758 /^X\(\/\).*/{ s//\1/; q; }
44759 s/.*/./; q'`
44760 { if $as_mkdir_p; then
44761 mkdir -p "$ac_dir"
44762 else
44763 as_dir="$ac_dir"
44764 as_dirs=
44765 while test ! -d "$as_dir"; do
44766 as_dirs="$as_dir $as_dirs"
44767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44769 X"$as_dir" : 'X\(//\)[^/]' \| \
44770 X"$as_dir" : 'X\(//\)$' \| \
44771 X"$as_dir" : 'X\(/\)' \| \
44772 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44773echo X"$as_dir" |
44774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44776 /^X\(\/\/\)$/{ s//\1/; q; }
44777 /^X\(\/\).*/{ s//\1/; q; }
44778 s/.*/./; q'`
44779 done
44780 test ! -n "$as_dirs" || mkdir $as_dirs
44781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44782echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44783 { (exit 1); exit 1; }; }; }
44784
44785 ac_builddir=.
44786
44787if test "$ac_dir" != .; then
44788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44789 # A "../" for each directory in $ac_dir_suffix.
44790 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44791else
44792 ac_dir_suffix= ac_top_builddir=
44793fi
44794
44795case $srcdir in
44796 .) # No --srcdir option. We are building in place.
44797 ac_srcdir=.
44798 if test -z "$ac_top_builddir"; then
44799 ac_top_srcdir=.
44800 else
44801 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44802 fi ;;
44803 [\\/]* | ?:[\\/]* ) # Absolute path.
44804 ac_srcdir=$srcdir$ac_dir_suffix;
44805 ac_top_srcdir=$srcdir ;;
44806 *) # Relative path.
44807 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44808 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44809esac
ac1cb8d3
VS
44810
44811# Do not use `cd foo && pwd` to compute absolute paths, because
44812# the directories may not exist.
44813case `pwd` in
44814.) ac_abs_builddir="$ac_dir";;
44815*)
44816 case "$ac_dir" in
44817 .) ac_abs_builddir=`pwd`;;
44818 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44819 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44820 esac;;
44821esac
44822case $ac_abs_builddir in
44823.) ac_abs_top_builddir=${ac_top_builddir}.;;
44824*)
44825 case ${ac_top_builddir}. in
44826 .) ac_abs_top_builddir=$ac_abs_builddir;;
44827 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44828 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44829 esac;;
44830esac
44831case $ac_abs_builddir in
44832.) ac_abs_srcdir=$ac_srcdir;;
44833*)
44834 case $ac_srcdir in
44835 .) ac_abs_srcdir=$ac_abs_builddir;;
44836 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44837 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44838 esac;;
44839esac
44840case $ac_abs_builddir in
44841.) ac_abs_top_srcdir=$ac_top_srcdir;;
44842*)
44843 case $ac_top_srcdir in
44844 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44845 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44846 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44847 esac;;
44848esac
a848cd7e
SC
44849
44850
44851 case $INSTALL in
44852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44853 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44854 esac
44855
a848cd7e
SC
44856 # Let's still pretend it is `configure' which instantiates (i.e., don't
44857 # use $as_me), people would be surprised to read:
44858 # /* config.h. Generated by config.status. */
44859 if test x"$ac_file" = x-; then
44860 configure_input=
44861 else
44862 configure_input="$ac_file. "
44863 fi
44864 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44865 sed 's,.*/,,'` by configure."
a848cd7e
SC
44866
44867 # First look for the input files in the build tree, otherwise in the
44868 # src tree.
44869 ac_file_inputs=`IFS=:
44870 for f in $ac_file_in; do
44871 case $f in
44872 -) echo $tmp/stdin ;;
44873 [\\/$]*)
ac1cb8d3
VS
44874 # Absolute (can't be DOS-style, as IFS=:)
44875 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44876echo "$as_me: error: cannot find input file: $f" >&2;}
44877 { (exit 1); exit 1; }; }
ac1cb8d3 44878 echo "$f";;
a848cd7e 44879 *) # Relative
ac1cb8d3
VS
44880 if test -f "$f"; then
44881 # Build tree
44882 echo "$f"
44883 elif test -f "$srcdir/$f"; then
44884 # Source tree
44885 echo "$srcdir/$f"
44886 else
44887 # /dev/null tree
44888 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44889echo "$as_me: error: cannot find input file: $f" >&2;}
44890 { (exit 1); exit 1; }; }
ac1cb8d3 44891 fi;;
a848cd7e
SC
44892 esac
44893 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
44894
44895 if test x"$ac_file" != x-; then
44896 { echo "$as_me:$LINENO: creating $ac_file" >&5
44897echo "$as_me: creating $ac_file" >&6;}
44898 rm -f "$ac_file"
44899 fi
a848cd7e
SC
44900_ACEOF
44901cat >>$CONFIG_STATUS <<_ACEOF
44902 sed "$ac_vpsub
44903$extrasub
44904_ACEOF
44905cat >>$CONFIG_STATUS <<\_ACEOF
44906:t
44907/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44908s,@configure_input@,$configure_input,;t t
44909s,@srcdir@,$ac_srcdir,;t t
44910s,@abs_srcdir@,$ac_abs_srcdir,;t t
44911s,@top_srcdir@,$ac_top_srcdir,;t t
44912s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44913s,@builddir@,$ac_builddir,;t t
44914s,@abs_builddir@,$ac_abs_builddir,;t t
44915s,@top_builddir@,$ac_top_builddir,;t t
44916s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44917s,@INSTALL@,$ac_INSTALL,;t t
44918" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44919 rm -f $tmp/stdin
44920 if test x"$ac_file" != x-; then
44921 mv $tmp/out $ac_file
44922 else
44923 cat $tmp/out
44924 rm -f $tmp/out
44925 fi
44926
ceec2216
RL
44927 # Run the commands associated with the file.
44928 case $ac_file in
44929 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44930 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44931 esac
a848cd7e
SC
44932done
44933_ACEOF
44934cat >>$CONFIG_STATUS <<\_ACEOF
44935
44936#
44937# CONFIG_HEADER section.
44938#
44939
44940# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44941# NAME is the cpp macro being defined and VALUE is the value it is being given.
44942#
44943# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44944ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44945ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44946ac_dC=' '
44947ac_dD=',;t'
44948# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44949ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44950ac_uB='$,\1#\2define\3'
44951ac_uC=' '
44952ac_uD=',;t'
44953
44954for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44956 case $ac_file in
44957 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44958 cat >$tmp/stdin
44959 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44961 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44963 * ) ac_file_in=$ac_file.in ;;
44964 esac
44965
44966 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44967echo "$as_me: creating $ac_file" >&6;}
44968
44969 # First look for the input files in the build tree, otherwise in the
44970 # src tree.
44971 ac_file_inputs=`IFS=:
44972 for f in $ac_file_in; do
44973 case $f in
44974 -) echo $tmp/stdin ;;
44975 [\\/$]*)
ac1cb8d3
VS
44976 # Absolute (can't be DOS-style, as IFS=:)
44977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44978echo "$as_me: error: cannot find input file: $f" >&2;}
44979 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44980 # Do quote $f, to prevent DOS paths from being IFS'd.
44981 echo "$f";;
a848cd7e 44982 *) # Relative
ac1cb8d3
VS
44983 if test -f "$f"; then
44984 # Build tree
44985 echo "$f"
44986 elif test -f "$srcdir/$f"; then
44987 # Source tree
44988 echo "$srcdir/$f"
44989 else
44990 # /dev/null tree
44991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44992echo "$as_me: error: cannot find input file: $f" >&2;}
44993 { (exit 1); exit 1; }; }
ac1cb8d3 44994 fi;;
a848cd7e
SC
44995 esac
44996 done` || { (exit 1); exit 1; }
44997 # Remove the trailing spaces.
ac1cb8d3 44998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44999
45000_ACEOF
45001
45002# Transform confdefs.h into two sed scripts, `conftest.defines' and
45003# `conftest.undefs', that substitutes the proper values into
45004# config.h.in to produce config.h. The first handles `#define'
45005# templates, and the second `#undef' templates.
45006# And first: Protect against being on the right side of a sed subst in
45007# config.status. Protect against being in an unquoted here document
45008# in config.status.
45009rm -f conftest.defines conftest.undefs
45010# Using a here document instead of a string reduces the quoting nightmare.
45011# Putting comments in sed scripts is not portable.
45012#
45013# `end' is used to avoid that the second main sed command (meant for
45014# 0-ary CPP macros) applies to n-ary macro definitions.
45015# See the Autoconf documentation for `clear'.
45016cat >confdef2sed.sed <<\_ACEOF
45017s/[\\&,]/\\&/g
45018s,[\\$`],\\&,g
45019t clear
45020: clear
ac1cb8d3 45021s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45022t end
ac1cb8d3 45023s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45024: end
45025_ACEOF
45026# If some macros were called several times there might be several times
45027# the same #defines, which is useless. Nevertheless, we may not want to
45028# sort them, since we want the *last* AC-DEFINE to be honored.
45029uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45030sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45031rm -f confdef2sed.sed
45032
45033# This sed command replaces #undef with comments. This is necessary, for
45034# example, in the case of _POSIX_SOURCE, which is predefined and required
45035# on some systems where configure will not decide to define it.
45036cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45037s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45038_ACEOF
45039
45040# Break up conftest.defines because some shells have a limit on the size
45041# of here documents, and old seds have small limits too (100 cmds).
45042echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45043echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45044echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45045echo ' :' >>$CONFIG_STATUS
45046rm -f conftest.tail
45047while grep . conftest.defines >/dev/null
45048do
45049 # Write a limited-size here document to $tmp/defines.sed.
45050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45051 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45053 # Work around the forget-to-reset-the-flag bug.
45054 echo 't clr' >>$CONFIG_STATUS
45055 echo ': clr' >>$CONFIG_STATUS
45056 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45057 echo 'CEOF
45058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45059 rm -f $tmp/in
45060 mv $tmp/out $tmp/in
45061' >>$CONFIG_STATUS
45062 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45063 rm -f conftest.defines
45064 mv conftest.tail conftest.defines
45065done
45066rm -f conftest.defines
45067echo ' fi # grep' >>$CONFIG_STATUS
45068echo >>$CONFIG_STATUS
45069
45070# Break up conftest.undefs because some shells have a limit on the size
45071# of here documents, and old seds have small limits too (100 cmds).
45072echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45073rm -f conftest.tail
45074while grep . conftest.undefs >/dev/null
45075do
45076 # Write a limited-size here document to $tmp/undefs.sed.
45077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45078 # Speed up: don't consider the non `#undef'
ac1cb8d3 45079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45080 # Work around the forget-to-reset-the-flag bug.
45081 echo 't clr' >>$CONFIG_STATUS
45082 echo ': clr' >>$CONFIG_STATUS
45083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45084 echo 'CEOF
45085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45086 rm -f $tmp/in
45087 mv $tmp/out $tmp/in
45088' >>$CONFIG_STATUS
45089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45090 rm -f conftest.undefs
45091 mv conftest.tail conftest.undefs
45092done
45093rm -f conftest.undefs
45094
45095cat >>$CONFIG_STATUS <<\_ACEOF
45096 # Let's still pretend it is `configure' which instantiates (i.e., don't
45097 # use $as_me), people would be surprised to read:
45098 # /* config.h. Generated by config.status. */
45099 if test x"$ac_file" = x-; then
45100 echo "/* Generated by configure. */" >$tmp/config.h
45101 else
45102 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45103 fi
45104 cat $tmp/in >>$tmp/config.h
45105 rm -f $tmp/in
45106 if test x"$ac_file" != x-; then
45107 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45109echo "$as_me: $ac_file is unchanged" >&6;}
45110 else
45111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45113 X"$ac_file" : 'X\(//\)[^/]' \| \
45114 X"$ac_file" : 'X\(//\)$' \| \
45115 X"$ac_file" : 'X\(/\)' \| \
45116 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45117echo X"$ac_file" |
45118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45120 /^X\(\/\/\)$/{ s//\1/; q; }
45121 /^X\(\/\).*/{ s//\1/; q; }
45122 s/.*/./; q'`
45123 { if $as_mkdir_p; then
45124 mkdir -p "$ac_dir"
45125 else
45126 as_dir="$ac_dir"
45127 as_dirs=
45128 while test ! -d "$as_dir"; do
45129 as_dirs="$as_dir $as_dirs"
45130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45132 X"$as_dir" : 'X\(//\)[^/]' \| \
45133 X"$as_dir" : 'X\(//\)$' \| \
45134 X"$as_dir" : 'X\(/\)' \| \
45135 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45136echo X"$as_dir" |
45137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45139 /^X\(\/\/\)$/{ s//\1/; q; }
45140 /^X\(\/\).*/{ s//\1/; q; }
45141 s/.*/./; q'`
45142 done
45143 test ! -n "$as_dirs" || mkdir $as_dirs
45144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45145echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45146 { (exit 1); exit 1; }; }; }
45147
45148 rm -f $ac_file
45149 mv $tmp/config.h $ac_file
45150 fi
45151 else
45152 cat $tmp/config.h
45153 rm -f $tmp/config.h
45154 fi
45155done
45156_ACEOF
45157cat >>$CONFIG_STATUS <<\_ACEOF
45158
45159#
45160# CONFIG_COMMANDS section.
45161#
45162for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45163 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45164 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45165 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45166$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45167 X"$ac_dest" : 'X\(//\)[^/]' \| \
45168 X"$ac_dest" : 'X\(//\)$' \| \
45169 X"$ac_dest" : 'X\(/\)' \| \
45170 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45171echo X"$ac_dest" |
45172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45174 /^X\(\/\/\)$/{ s//\1/; q; }
45175 /^X\(\/\).*/{ s//\1/; q; }
45176 s/.*/./; q'`
ac1cb8d3
VS
45177 { if $as_mkdir_p; then
45178 mkdir -p "$ac_dir"
45179 else
45180 as_dir="$ac_dir"
45181 as_dirs=
45182 while test ! -d "$as_dir"; do
45183 as_dirs="$as_dir $as_dirs"
45184 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45185$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45186 X"$as_dir" : 'X\(//\)[^/]' \| \
45187 X"$as_dir" : 'X\(//\)$' \| \
45188 X"$as_dir" : 'X\(/\)' \| \
45189 . : '\(.\)' 2>/dev/null ||
45190echo X"$as_dir" |
45191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45193 /^X\(\/\/\)$/{ s//\1/; q; }
45194 /^X\(\/\).*/{ s//\1/; q; }
45195 s/.*/./; q'`
45196 done
45197 test ! -n "$as_dirs" || mkdir $as_dirs
45198 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45199echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45200 { (exit 1); exit 1; }; }; }
45201
a848cd7e
SC
45202 ac_builddir=.
45203
45204if test "$ac_dir" != .; then
45205 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45206 # A "../" for each directory in $ac_dir_suffix.
45207 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45208else
45209 ac_dir_suffix= ac_top_builddir=
45210fi
45211
45212case $srcdir in
45213 .) # No --srcdir option. We are building in place.
45214 ac_srcdir=.
45215 if test -z "$ac_top_builddir"; then
45216 ac_top_srcdir=.
45217 else
45218 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45219 fi ;;
45220 [\\/]* | ?:[\\/]* ) # Absolute path.
45221 ac_srcdir=$srcdir$ac_dir_suffix;
45222 ac_top_srcdir=$srcdir ;;
45223 *) # Relative path.
45224 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45225 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45226esac
ac1cb8d3
VS
45227
45228# Do not use `cd foo && pwd` to compute absolute paths, because
45229# the directories may not exist.
45230case `pwd` in
45231.) ac_abs_builddir="$ac_dir";;
45232*)
45233 case "$ac_dir" in
45234 .) ac_abs_builddir=`pwd`;;
45235 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45236 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45237 esac;;
45238esac
45239case $ac_abs_builddir in
45240.) ac_abs_top_builddir=${ac_top_builddir}.;;
45241*)
45242 case ${ac_top_builddir}. in
45243 .) ac_abs_top_builddir=$ac_abs_builddir;;
45244 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45245 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45246 esac;;
45247esac
45248case $ac_abs_builddir in
45249.) ac_abs_srcdir=$ac_srcdir;;
45250*)
45251 case $ac_srcdir in
45252 .) ac_abs_srcdir=$ac_abs_builddir;;
45253 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45254 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45255 esac;;
45256esac
45257case $ac_abs_builddir in
45258.) ac_abs_top_srcdir=$ac_top_srcdir;;
45259*)
45260 case $ac_top_srcdir in
45261 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45262 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45263 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45264 esac;;
45265esac
a848cd7e
SC
45266
45267
45268 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45269echo "$as_me: executing $ac_dest commands" >&6;}
45270 case $ac_dest in
ceec2216
RL
45271 wx-config ) rm -f wx-config
45272 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45273 ;;
a848cd7e
SC
45274 esac
45275done
45276_ACEOF
45277
45278cat >>$CONFIG_STATUS <<\_ACEOF
45279
45280{ (exit 0); exit 0; }
45281_ACEOF
45282chmod +x $CONFIG_STATUS
45283ac_clean_files=$ac_clean_files_save
45284
45285
45286# configure is writing to config.log, and then calls config.status.
45287# config.status does its own redirection, appending to config.log.
45288# Unfortunately, on DOS this fails, as config.log is still kept open
45289# by configure, so config.status won't be able to write to it; its
45290# output is simply discarded. So we exec the FD to /dev/null,
45291# effectively closing config.log, so it can be properly (re)opened and
45292# appended to by config.status. When coming back to configure, we
45293# need to make the FD available again.
45294if test "$no_create" != yes; then
45295 ac_cs_success=:
45296 ac_config_status_args=
45297 test "$silent" = yes &&
45298 ac_config_status_args="$ac_config_status_args --quiet"
45299 exec 5>/dev/null
45300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45301 exec 5>>config.log
45302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45303 # would make configure fail if this is the last instruction.
45304 $ac_cs_success || { (exit 1); exit 1; }
45305fi
45306
45307#
45308# CONFIG_SUBDIRS section.
45309#
45310if test "$no_recursion" != yes; then
45311
45312 # Remove --cache-file and --srcdir arguments so they do not pile up.
45313 ac_sub_configure_args=
45314 ac_prev=
45315 for ac_arg in $ac_configure_args; do
45316 if test -n "$ac_prev"; then
45317 ac_prev=
45318 continue
45319 fi
45320 case $ac_arg in
45321 -cache-file | --cache-file | --cache-fil | --cache-fi \
45322 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45323 ac_prev=cache_file ;;
45324 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45325 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45326 | --c=*)
45327 ;;
45328 --config-cache | -C)
45329 ;;
45330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45331 ac_prev=srcdir ;;
45332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45333 ;;
45334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45335 ac_prev=prefix ;;
45336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45337 ;;
45338 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45339 esac
45340 done
45341
45342 # Always prepend --prefix to ensure using the same prefix
45343 # in subdir configurations.
45344 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45345
45346 ac_popdir=`pwd`
45347 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45348
45349 # Do not complain, so a configure script can configure whichever
45350 # parts of a large source tree are present.
45351 test -d $srcdir/$ac_dir || continue
45352
45353 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45354echo "$as_me: configuring in $ac_dir" >&6;}
45355 { if $as_mkdir_p; then
45356 mkdir -p "$ac_dir"
45357 else
45358 as_dir="$ac_dir"
45359 as_dirs=
45360 while test ! -d "$as_dir"; do
45361 as_dirs="$as_dir $as_dirs"
45362 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45363$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45364 X"$as_dir" : 'X\(//\)[^/]' \| \
45365 X"$as_dir" : 'X\(//\)$' \| \
45366 X"$as_dir" : 'X\(/\)' \| \
45367 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45368echo X"$as_dir" |
45369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45371 /^X\(\/\/\)$/{ s//\1/; q; }
45372 /^X\(\/\).*/{ s//\1/; q; }
45373 s/.*/./; q'`
45374 done
45375 test ! -n "$as_dirs" || mkdir $as_dirs
45376 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45377echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45378 { (exit 1); exit 1; }; }; }
45379
45380 ac_builddir=.
45381
45382if test "$ac_dir" != .; then
45383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45384 # A "../" for each directory in $ac_dir_suffix.
45385 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45386else
45387 ac_dir_suffix= ac_top_builddir=
45388fi
45389
45390case $srcdir in
45391 .) # No --srcdir option. We are building in place.
45392 ac_srcdir=.
45393 if test -z "$ac_top_builddir"; then
45394 ac_top_srcdir=.
45395 else
45396 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45397 fi ;;
45398 [\\/]* | ?:[\\/]* ) # Absolute path.
45399 ac_srcdir=$srcdir$ac_dir_suffix;
45400 ac_top_srcdir=$srcdir ;;
45401 *) # Relative path.
45402 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45403 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45404esac
ac1cb8d3
VS
45405
45406# Do not use `cd foo && pwd` to compute absolute paths, because
45407# the directories may not exist.
45408case `pwd` in
45409.) ac_abs_builddir="$ac_dir";;
45410*)
45411 case "$ac_dir" in
45412 .) ac_abs_builddir=`pwd`;;
45413 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45414 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45415 esac;;
45416esac
45417case $ac_abs_builddir in
45418.) ac_abs_top_builddir=${ac_top_builddir}.;;
45419*)
45420 case ${ac_top_builddir}. in
45421 .) ac_abs_top_builddir=$ac_abs_builddir;;
45422 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45423 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45424 esac;;
45425esac
45426case $ac_abs_builddir in
45427.) ac_abs_srcdir=$ac_srcdir;;
45428*)
45429 case $ac_srcdir in
45430 .) ac_abs_srcdir=$ac_abs_builddir;;
45431 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45432 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45433 esac;;
45434esac
45435case $ac_abs_builddir in
45436.) ac_abs_top_srcdir=$ac_top_srcdir;;
45437*)
45438 case $ac_top_srcdir in
45439 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45440 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45441 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45442 esac;;
45443esac
a848cd7e
SC
45444
45445
45446 cd $ac_dir
45447
45448 # Check for guested configure; otherwise get Cygnus style configure.
45449 if test -f $ac_srcdir/configure.gnu; then
45450 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45451 elif test -f $ac_srcdir/configure; then
45452 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45453 elif test -f $ac_srcdir/configure.in; then
45454 ac_sub_configure=$ac_configure
45455 else
45456 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45457echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45458 ac_sub_configure=
45459 fi
45460
45461 # The recursion is here.
45462 if test -n "$ac_sub_configure"; then
45463 # Make the cache file name correct relative to the subdirectory.
45464 case $cache_file in
45465 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45466 *) # Relative path.
ac1cb8d3 45467 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45468 esac
45469
45470 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45471echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45472 # The eval makes quoting arguments work.
45473 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45474 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45475 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45476echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45477 { (exit 1); exit 1; }; }
45478 fi
45479
9dd0f6c2 45480 cd "$ac_popdir"
a848cd7e
SC
45481 done
45482fi
45483
45484
45485echo
77ffb593 45486echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45487echo ""
4d4ff94c 45488echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45489echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45490
77ffb593
JS
45491echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45492echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45493echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45494
77ffb593
JS
45495echo " What level of wxWidgets compatibility should be enabled?"
45496echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45497echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45498
77ffb593 45499echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45500echo " jpeg ${wxUSE_LIBJPEG-none}"
45501echo " png ${wxUSE_LIBPNG-none}"
45502echo " regex ${wxUSE_REGEX}"
45503echo " tiff ${wxUSE_LIBTIFF-none}"
45504if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45505echo " xpm ${wxUSE_LIBXPM-none}"
45506fi
45507echo " zlib ${wxUSE_ZLIB}"
45508echo " odbc ${wxUSE_ODBC}"
45509echo " expat ${wxUSE_EXPAT}"
45510echo " libmspack ${wxUSE_LIBMSPACK}"
45511echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45512echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45513
45514echo ""
45515