]> git.saurik.com Git - wxWidgets.git/blame - configure
fix email message
[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.
63c4f6da 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.5.
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'
63c4f6da
MW
273PACKAGE_VERSION='2.5.5'
274PACKAGE_STRING='wxWidgets 2.5.5'
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"
6671c68b 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_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_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
63c4f6da 797\`configure' configures wxWidgets 2.5.5 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
63c4f6da 863 short | recursive ) echo "Configuration of wxWidgets 2.5.5:";;
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
07158944 929 --enable-stdpaths use wxStandardPaths class
a848cd7e 930 --enable-stopwatch use wxStopWatch class
07158944 931 --enable-streams use wxStream etc classes
a848cd7e
SC
932 --enable-sysoptions use wxSystemOptions
933 --enable-textbuf use wxTextBuffer class
934 --enable-textfile use wxTextFile class
935 --enable-timer use wxTimer class
936 --enable-unicode compile wxString with Unicode support
937 --enable-sound use wxSound class
3b57de8b 938 --enable-mediactrl use wxMediaCtrl class
77ffb593 939 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 940 --enable-zipstream use wxZip streams
a848cd7e
SC
941 --enable-url use wxURL class
942 --enable-protocol use wxProtocol class
943 --enable-protocol-http HTTP support in wxProtocol
944 --enable-protocol-ftp FTP support in wxProtocol
945 --enable-protocol-file FILE support in wxProtocol
946 --enable-threads use threads
947 --enable-docview use document view architecture
948 --enable-help use help subsystem
949 --enable-mshtmlhelp use MS HTML Help (win32)
950 --enable-html use wxHTML sub-library
951 --enable-htmlhelp use wxHTML-based help
9a8f0513 952 --enable-xrc use XRC resources sub-library
a848cd7e
SC
953 --enable-constraints use layout-constraints system
954 --enable-printarch use printing architecture
955 --enable-mdi use multiple document interface architecture
8a7b1113 956 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
957 --enable-loggui use standard GUI logger
958 --enable-logwin use wxLogWindow
959 --enable-logdialog use wxLogDialog
646b6ec1 960 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
961 --enable-postscript use wxPostscriptDC device context (default for gtk+)
962 --enable-prologio not available; see contrib
963 --enable-resources not available; see contrib
964 --enable-clipboard use wxClipboard class
965 --enable-dnd use Drag'n'Drop classes
966 --enable-metafile use win32 metafiles
967 --enable-controls use all usual controls
968 --enable-accel use accelerators
969 --enable-button use wxButton class
970 --enable-bmpbutton use wxBitmapButton class
971 --enable-calendar use wxCalendarCtrl class
972 --enable-caret use wxCaret class
973 --enable-checkbox use wxCheckBox class
974 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
975 --enable-choice use wxChoice class
92bbdbcd 976 --enable-choicebook use wxChoicebook class
a848cd7e 977 --enable-combobox use wxComboBox class
da98e9be 978 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
979 --enable-display use wxDisplay class
980 --enable-gauge use wxGauge class
981 --enable-grid use wxGrid class
982 --enable-imaglist use wxImageList class
983 --enable-listbook use wxListbook class
984 --enable-listbox use wxListBox class
985 --enable-listctrl use wxListCtrl class
986 --enable-notebook use wxNotebook class
987 --enable-radiobox use wxRadioBox class
988 --enable-radiobtn use wxRadioButton class
989 --enable-sash use wxSashWindow class
990 --enable-scrollbar use wxScrollBar class and scrollable windows
991 --enable-slider use wxSlider class
992 --enable-spinbtn use wxSpinButton class
993 --enable-spinctrl use wxSpinCtrl class
994 --enable-splitter use wxSplitterWindow class
995 --enable-statbmp use wxStaticBitmap class
996 --enable-statbox use wxStaticBox class
997 --enable-statline use wxStaticLine class
998 --enable-stattext use wxStaticText class
999 --enable-statusbar use wxStatusBar class
1000 --enable-tabdialog use wxTabControl class
1001 --enable-textctrl use wxTextCtrl class
1002 --enable-togglebtn use wxToggleButton class
1003 --enable-toolbar use wxToolBar class
1004 --enable-tbarnative use native wxToolBar class
1005 --enable-tbarsmpl use wxToolBarSimple class
1006 --enable-treectrl use wxTreeCtrl class
1007 --enable-tipwindow use wxTipWindow class
1008 --enable-popupwin use wxPopUpWindow class
1009 --enable-commondlg use all common dialogs
1010 --enable-choicedlg use wxChoiceDialog
1011 --enable-coldlg use wxColourDialog
1012 --enable-filedlg use wxFileDialog
1013 --enable-finddlg use wxFindReplaceDialog
1014 --enable-fontdlg use wxFontDialog
1015 --enable-dirdlg use wxDirDialog
1016 --enable-msgdlg use wxMessageDialog
1017 --enable-numberdlg use wxNumberEntryDialog
1018 --enable-splash use wxSplashScreen
1019 --enable-textdlg use wxTextDialog
1020 --enable-tipdlg use startup tips
1021 --enable-progressdlg use wxProgressDialog
1022 --enable-wizarddlg use wxWizard
1023 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1024 --enable-miniframe use wxMiniFrame class
1025 --enable-tooltips use wxToolTip class
1026 --enable-splines use spline drawing code
1027 --enable-validators use wxValidator and derived classes
1028 --enable-busyinfo use wxBusyInfo
4cb1d3da 1029 --enable-joystick use wxJoystick
a848cd7e
SC
1030 --enable-metafiles use wxMetaFile (Windows only)
1031 --enable-dragimage use wxDragImage
1032 --enable-accessibility enable accessibility support
1033 --enable-palette use wxPalette class
1034 --enable-image use wxImage class
1035 --enable-gif use gif images (GIF file format)
1036 --enable-pcx use pcx images (PCX file format)
1037 --enable-iff use iff images (IFF file format)
1038 --enable-pnm use pnm images (PNM file format)
1039 --enable-xpm use xpm images (XPM file format)
1040 --enable-icocur use Windows ICO and CUR formats
77ffb593 1041 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1042 --enable-vendor=VENDOR vendor name (win32 DLL only)
1043 --disable-largefile omit support for large files
1044 --disable-gtktest do not try to compile and run a test GTK+ program
1045 --disable-gtktest Do not try to compile and run a test GTK program
1046 --disable-sdltest Do not try to compile and run a test SDL program
1047 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1048 --disable-precomp-headers
1049 don't use precompiled headers even if compiler can
a848cd7e
SC
1050
1051Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gtk use GTK+
1055 --with-motif use Motif/Lesstif
1056 --with-mac use Mac OS X
1057 --with-cocoa use Cocoa
1058 --with-wine use Wine
1059 --with-msw use MS-Windows
1060 --with-pm use OS/2 Presentation Manager
1061 --with-mgl use SciTech MGL
1062 --with-microwin use MicroWindows
1063 --with-x11 use X11
1064 --with-libpng use libpng (PNG image format)
1065 --with-libjpeg use libjpeg (JPEG file format)
1066 --with-libtiff use libtiff (TIFF file format)
1067 --with-libxpm use libxpm (XPM file format)
1068 --with-libmspack use libmspack (CHM help files loading)
1069 --with-sdl use SDL for audio on Unix
d51253e8 1070 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1071 --with-opengl use OpenGL (or Mesa)
1072 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1073 --with-regex enable support for wxRegEx class
1074 --with-zlib use zlib for LZW compression
1075 --with-odbc use the IODBC and wxODBC classes
1076 --with-expat enable XML support using expat parser
ceec2216 1077 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1078 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1079 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1080 --with-x use the X Window System
1081 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1082 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1083 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1084 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1085 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1086
1087Some influential environment variables:
dcc1b6ad
VS
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CPP C preprocessor
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
a848cd7e
SC
1098
1099Use these variables to override the choices made by `configure' or to help
1100it to find libraries and programs with nonstandard names/locations.
1101
77ffb593 1102Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
ac1cb8d3
VS
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
a848cd7e
SC
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1185 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
9dd0f6c2 1191 cd "$ac_popdir"
a848cd7e
SC
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
63c4f6da 1198wxWidgets configure 2.5.5
ac1cb8d3 1199generated by GNU Autoconf 2.59
a848cd7e 1200
ac1cb8d3 1201Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1202This configure script is free software; the Free Software Foundation
1203gives unlimited permission to copy, distribute and modify it.
1204_ACEOF
1205 exit 0
1206fi
1207exec 5>config.log
1208cat >&5 <<_ACEOF
1209This file contains any messages produced by compilers while
1210running configure, to aid debugging if configure makes a mistake.
1211
63c4f6da 1212It was created by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 1213generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1214
1215 $ $0 $@
1216
1217_ACEOF
1218{
1219cat <<_ASUNAME
1220## --------- ##
1221## Platform. ##
1222## --------- ##
1223
1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228uname -v = `(uname -v) 2>/dev/null || echo unknown`
1229
1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1232
1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1240
1241_ASUNAME
1242
1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244for as_dir in $PATH
1245do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249done
1250
1251} >&5
1252
1253cat >&5 <<_ACEOF
1254
1255
1256## ----------- ##
1257## Core tests. ##
1258## ----------- ##
1259
1260_ACEOF
1261
1262
1263# Keep a trace of the command line.
1264# Strip out --no-create and --no-recursion so they do not pile up.
1265# Strip out --silent because we don't want to record it for future runs.
1266# Also quote any args containing shell meta-characters.
1267# Make two passes to allow for proper duplicate-argument suppression.
1268ac_configure_args=
1269ac_configure_args0=
1270ac_configure_args1=
1271ac_sep=
1272ac_must_keep_next=false
1273for ac_pass in 1 2
1274do
1275 for ac_arg
1276 do
1277 case $ac_arg in
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 continue ;;
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 esac
1285 case $ac_pass in
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287 2)
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
ac1cb8d3 1290 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1291 else
ac1cb8d3
VS
1292 case $ac_arg in
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1299 esac
1300 ;;
1301 -* ) ac_must_keep_next=true ;;
1302 esac
a848cd7e
SC
1303 fi
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1306 ac_sep=" "
1307 ;;
1308 esac
1309 done
1310done
1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1313
1314# When interrupted or exit'd, cleanup temporary files, and complete
1315# config.log. We remove comments because anyway the quotes in there
1316# would cause problems or look ugly.
1317# WARNING: Be sure not to use single quotes in there, as some shells,
1318# such as our DU 5.0 friend, will then `close' the trap.
1319trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1321 {
1322 echo
1323
1324 cat <<\_ASBOX
1325## ---------------- ##
1326## Cache variables. ##
1327## ---------------- ##
1328_ASBOX
1329 echo
1330 # The following way of writing the cache mishandles newlines in values,
1331{
1332 (set) 2>&1 |
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334 *ac_space=\ *)
1335 sed -n \
ac1cb8d3
VS
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1338 ;;
1339 *)
1340 sed -n \
ac1cb8d3 1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1342 ;;
1343 esac;
1344}
1345 echo
1346
1347 cat <<\_ASBOX
1348## ----------------- ##
1349## Output variables. ##
1350## ----------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_vars
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359
1360 if test -n "$ac_subst_files"; then
1361 cat <<\_ASBOX
1362## ------------- ##
1363## Output files. ##
1364## ------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_files
1368 do
1369 eval ac_val=$`echo $ac_var`
ac1cb8d3 1370 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1371 done | sort
1372 echo
1373 fi
1374
1375 if test -s confdefs.h; then
1376 cat <<\_ASBOX
1377## ----------- ##
1378## confdefs.h. ##
1379## ----------- ##
1380_ASBOX
1381 echo
1382 sed "/^$/d" confdefs.h | sort
1383 echo
1384 fi
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1388 } >&5
ac1cb8d3 1389 rm -f core *.core &&
a848cd7e
SC
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391 exit $exit_status
1392 ' 0
1393for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395done
1396ac_signal=0
1397
1398# confdefs.h avoids OS command line length limits that DEFS can exceed.
1399rm -rf conftest* confdefs.h
1400# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401echo >confdefs.h
1402
1403# Predefined preprocessor variables.
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_NAME "$PACKAGE_NAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_VERSION "$PACKAGE_VERSION"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_STRING "$PACKAGE_STRING"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427_ACEOF
1428
1429
1430# Let the site file select an alternate cache file if it wants to.
1431# Prefer explicitly selected file to automatically selected ones.
1432if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1435 else
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437 fi
1438fi
1439for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446done
1447
1448if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463fi
1464
1465# Check that the precious variables saved in the cache have kept the same
1466# value.
1467ac_cache_corrupted=false
1468for ac_var in `(set) 2>&1 |
ac1cb8d3 1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1475 set,)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,set)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,);;
1484 *)
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1489echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1491echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1492 ac_cache_corrupted=:
a848cd7e
SC
1493 fi;;
1494 esac
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1497 case $ac_new_val in
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1501 esac
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 esac
1506 fi
1507done
1508if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521
1522
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
1551ac_aux_dir=
1552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553 if test -f $ac_dir/install-sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install-sh -c"
1556 break
1557 elif test -f $ac_dir/install.sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install.sh -c"
1560 break
1561 elif test -f $ac_dir/shtool; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/shtool install -c"
1564 break
1565 fi
1566done
1567if test -z "$ac_aux_dir"; then
1568 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570 { (exit 1); exit 1; }; }
1571fi
1572ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576# Make sure we can run config.sub.
1577$ac_config_sub sun4 >/dev/null 2>&1 ||
1578 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582echo "$as_me:$LINENO: checking build system type" >&5
1583echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584if test "${ac_cv_build+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 ac_cv_build_alias=$build_alias
1588test -z "$ac_cv_build_alias" &&
1589 ac_cv_build_alias=`$ac_config_guess`
1590test -z "$ac_cv_build_alias" &&
1591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593 { (exit 1); exit 1; }; }
1594ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601echo "${ECHO_T}$ac_cv_build" >&6
1602build=$ac_cv_build
1603build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking host system type" >&5
1609echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610if test "${ac_cv_host+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_host_alias=$host_alias
1614test -z "$ac_cv_host_alias" &&
1615 ac_cv_host_alias=$ac_cv_build_alias
1616ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623echo "${ECHO_T}$ac_cv_host" >&6
1624host=$ac_cv_host
1625host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630echo "$as_me:$LINENO: checking target system type" >&5
1631echo $ECHO_N "checking target system type... $ECHO_C" >&6
1632if test "${ac_cv_target+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_target_alias=$target_alias
1636test "x$ac_cv_target_alias" = "x" &&
1637 ac_cv_target_alias=$ac_cv_host_alias
1638ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1645echo "${ECHO_T}$ac_cv_target" >&6
1646target=$ac_cv_target
1647target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652# The aliases save the names the user supplied, while $host etc.
1653# will get canonicalized.
1654test -n "$target_alias" &&
1655 test "$program_prefix$program_suffix$program_transform_name" = \
1656 NONENONEs,x,x, &&
1657 program_prefix=${target_alias}-
1658
1659
1660
ceec2216
RL
1661wx_major_version_number=2
1662wx_minor_version_number=5
63c4f6da
MW
1663wx_release_number=5
1664wx_subrelease_number=0
a848cd7e 1665
ceec2216
RL
1666WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1667WX_VERSION=$WX_RELEASE.$wx_release_number
1668WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1669
ceec2216 1670WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1671
63c4f6da 1672WX_CURRENT=5
a848cd7e 1673WX_REVISION=0
63c4f6da 1674WX_AGE=5
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
1727case "${host}" in
1728 *-hp-hpux* )
1729 USE_HPUX=1
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1732 SO_SUFFIX=sl
1733 cat >>confdefs.h <<\_ACEOF
1734#define __HPUX__ 1
1735_ACEOF
1736
1737 ;;
1738 *-*-linux* )
1739 USE_LINUX=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __LINUX__ 1
1742_ACEOF
1743
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-gnu* | *-*-k*bsd*-gnu )
1755 USE_GNU=1
1756 TMP=`uname -m`
1757 if test "x$TMP" = "xalpha"; then
1758 USE_ALPHA=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __ALPHA__ 1
1761_ACEOF
1762
1763 fi
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-irix5* | *-*-irix6* )
1767 USE_SGI=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SGI__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SVR4__ 1
1775_ACEOF
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1778 ;;
1779 *-*-solaris2* )
1780 USE_SUN=1
1781 USE_SOLARIS=1
1782 USE_SVR4=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SUN__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SOLARIS__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SVR4__ 1
1793_ACEOF
1794
1795 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1796 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1797 ;;
1798 *-*-sunos4* )
1799 USE_SUN=1
1800 USE_SUNOS=1
1801 USE_BSD=1
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUN__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUNOS__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 ;;
1816 *-*-freebsd*)
1817 USE_BSD=1
1818 USE_FREEBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __FREEBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-openbsd*)
1830 USE_BSD=1
1831 USE_OPENBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __OPENBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-netbsd*)
1843 USE_BSD=1
1844 USE_NETBSD=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __NETBSD__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __BSD__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_GTK=1
1854 ;;
1855 *-*-osf* )
1856 USE_ALPHA=1
1857 USE_OSF=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __OSF__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1868 ;;
1869 *-*-dgux5* )
1870 USE_ALPHA=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-sysv5* )
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SYSV__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-aix* )
1896 USE_AIX=1
1897 USE_SYSV=1
1898 USE_SVR4=1
1899 SO_SUFFIX=a
1900 cat >>confdefs.h <<\_ACEOF
1901#define __AIX__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914
1915 *-*-*UnixWare*)
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 USE_UNIXWARE=1
1919 cat >>confdefs.h <<\_ACEOF
1920#define __UNIXWARE__ 1
1921_ACEOF
1922
1923 ;;
1924
1925 *-*-cygwin* | *-*-mingw32* )
1926 SO_SUFFIX=dll
1927 PROGRAM_EXT=".exe"
1928 RESCOMP=windres
1929 DEFAULT_DEFAULT_wxUSE_MSW=1
1930 ;;
1931
1932 *-pc-msdosdjgpp )
1933 USE_UNIX=0
1934 USE_DOS=1
1935 cat >>confdefs.h <<\_ACEOF
1936#define __DOS__ 1
1937_ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_MGL=1
1941 LIBS="$LIBS -lstdc++"
1942 ;;
1943
1944 *-pc-os2_emx | *-pc-os2-emx )
1945 cat >>confdefs.h <<\_ACEOF
1946#define __EMX__ 1
1947_ACEOF
1948
1949 USE_OS2=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __OS2__ 1
1952_ACEOF
1953
1954 PROGRAM_EXT=".exe"
1955 DEFAULT_DEFAULT_wxUSE_PM=1
1956 CXX=gcc
1957 LDFLAGS="$LDFLAGS -Zcrtdll"
1958 ac_executable_extensions=".exe"
1959 export ac_executable_extensions
1960 ac_save_IFS="$IFS"
1961 IFS='\\'
1962 ac_TEMP_PATH=
1963 for ac_dir in $PATH; do
1964 IFS=$ac_save_IFS
1965 if test -z "$ac_TEMP_PATH"; then
1966 ac_TEMP_PATH="$ac_dir"
1967 else
1968 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1969 fi
1970 done
1971 export PATH="$ac_TEMP_PATH"
1972 unset ac_TEMP_PATH
1973 ;;
1974
1975 powerpc-*-darwin* )
1976 USE_BSD=1
1977 USE_DARWIN=1
1978 SO_SUFFIX=dylib
1979 cat >>confdefs.h <<\_ACEOF
1980#define __BSD__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __DARWIN__ 1
a848cd7e
SC
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2074 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
07158944 2083 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2084 DEFAULT_wxUSE_TEXTBUFFER=no
2085 DEFAULT_wxUSE_TEXTFILE=no
2086 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2087 DEFAULT_wxUSE_MEDIACTRL=no
2088 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2089 DEFAULT_wxUSE_INTL=no
2090 DEFAULT_wxUSE_CONFIG=no
2091 DEFAULT_wxUSE_FONTMAP=no
2092 DEFAULT_wxUSE_STREAMS=no
2093 DEFAULT_wxUSE_SOCKETS=no
2094 DEFAULT_wxUSE_OLE=no
2095 DEFAULT_wxUSE_DATAOBJ=no
2096 DEFAULT_wxUSE_DIALUP_MANAGER=no
2097 DEFAULT_wxUSE_JOYSTICK=no
2098 DEFAULT_wxUSE_DYNLIB_CLASS=no
2099 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2100 DEFAULT_wxUSE_LONGLONG=no
2101 DEFAULT_wxUSE_GEOMETRY=no
2102
2103 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2104 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2105 DEFAULT_wxUSE_POSTSCRIPT=no
2106
2107 DEFAULT_wxUSE_CLIPBOARD=no
2108 DEFAULT_wxUSE_TOOLTIPS=no
2109 DEFAULT_wxUSE_DRAG_AND_DROP=no
2110 DEFAULT_wxUSE_DRAGIMAGE=no
2111 DEFAULT_wxUSE_SPLINES=no
2112
8a7b1113 2113 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2114 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2115 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2116 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2117
2118 DEFAULT_wxUSE_RESOURCES=no
2119 DEFAULT_wxUSE_CONSTRAINTS=no
2120 DEFAULT_wxUSE_IPC=no
2121 DEFAULT_wxUSE_HELP=no
2122 DEFAULT_wxUSE_MS_HTML_HELP=no
2123 DEFAULT_wxUSE_WXHTML_HELP=no
2124 DEFAULT_wxUSE_TREELAYOUT=no
2125 DEFAULT_wxUSE_METAFILE=no
2126 DEFAULT_wxUSE_MIMETYPE=no
2127 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2128 DEFAULT_wxUSE_PROTOCOL=no
2129 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FTP=no
2131 DEFAULT_wxUSE_PROTOCOL_FILE=no
2132 DEFAULT_wxUSE_URL=no
2133
2134 DEFAULT_wxUSE_COMMONDLGS=no
2135 DEFAULT_wxUSE_CHOICEDLG=no
2136 DEFAULT_wxUSE_COLOURDLG=no
2137 DEFAULT_wxUSE_DIRDLG=no
2138 DEFAULT_wxUSE_FILEDLG=no
2139 DEFAULT_wxUSE_FINDREPLDLG=no
2140 DEFAULT_wxUSE_FONTDLG=no
2141 DEFAULT_wxUSE_MSGDLG=no
2142 DEFAULT_wxUSE_NUMBERDLG=no
2143 DEFAULT_wxUSE_TEXTDLG=no
2144 DEFAULT_wxUSE_SPLASH=no
2145 DEFAULT_wxUSE_STARTUP_TIPS=no
2146 DEFAULT_wxUSE_PROGRESSDLG=no
2147 DEFAULT_wxUSE_WIZARDDLG=no
2148
2149 DEFAULT_wxUSE_MENUS=no
2150 DEFAULT_wxUSE_MINIFRAME=no
2151 DEFAULT_wxUSE_HTML=no
9a8f0513 2152 DEFAULT_wxUSE_XRC=no
646b6ec1 2153 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2154 DEFAULT_wxUSE_FILESYSTEM=no
2155 DEFAULT_wxUSE_FS_INET=no
2156 DEFAULT_wxUSE_FS_ZIP=no
2157 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2158 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2159 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2160 DEFAULT_wxUSE_VALIDATORS=no
2161
2162 DEFAULT_wxUSE_ACCEL=no
2163 DEFAULT_wxUSE_BUTTON=no
2164 DEFAULT_wxUSE_BMPBUTTON=no
2165 DEFAULT_wxUSE_CALCTRL=no
2166 DEFAULT_wxUSE_CARET=no
2167 DEFAULT_wxUSE_CHECKBOX=no
2168 DEFAULT_wxUSE_CHECKLST=no
2169 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2170 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2171 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2172 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2173 DEFAULT_wxUSE_DISPLAY=no
2174 DEFAULT_wxUSE_GAUGE=no
2175 DEFAULT_wxUSE_GRID=no
2176 DEFAULT_wxUSE_IMAGLIST=no
2177 DEFAULT_wxUSE_LISTBOOK=no
2178 DEFAULT_wxUSE_LISTBOX=no
2179 DEFAULT_wxUSE_LISTCTRL=no
2180 DEFAULT_wxUSE_NOTEBOOK=no
2181 DEFAULT_wxUSE_RADIOBOX=no
2182 DEFAULT_wxUSE_RADIOBTN=no
2183 DEFAULT_wxUSE_SASH=no
2184 DEFAULT_wxUSE_SCROLLBAR=no
2185 DEFAULT_wxUSE_SLIDER=no
2186 DEFAULT_wxUSE_SPINBTN=no
2187 DEFAULT_wxUSE_SPINCTRL=no
2188 DEFAULT_wxUSE_SPLITTER=no
2189 DEFAULT_wxUSE_STATBMP=no
2190 DEFAULT_wxUSE_STATBOX=no
2191 DEFAULT_wxUSE_STATLINE=no
2192 DEFAULT_wxUSE_STATTEXT=no
2193 DEFAULT_wxUSE_STATUSBAR=yes
2194 DEFAULT_wxUSE_TABDIALOG=no
2195 DEFAULT_wxUSE_TEXTCTRL=no
2196 DEFAULT_wxUSE_TOGGLEBTN=no
2197 DEFAULT_wxUSE_TOOLBAR=no
2198 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2199 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2200 DEFAULT_wxUSE_TREECTRL=no
2201 DEFAULT_wxUSE_POPUPWIN=no
2202 DEFAULT_wxUSE_TIPWINDOW=no
2203
2204 DEFAULT_wxUSE_UNICODE=no
2205 DEFAULT_wxUSE_UNICODE_MSLU=no
2206 DEFAULT_wxUSE_WCSRTOMBS=no
2207
2208 DEFAULT_wxUSE_PALETTE=no
2209 DEFAULT_wxUSE_IMAGE=no
2210 DEFAULT_wxUSE_GIF=no
2211 DEFAULT_wxUSE_PCX=no
2212 DEFAULT_wxUSE_PNM=no
2213 DEFAULT_wxUSE_IFF=no
2214 DEFAULT_wxUSE_XPM=no
2215 DEFAULT_wxUSE_ICO_CUR=no
2216 DEFAULT_wxUSE_ACCESSIBILITY=no
2217
2218 DEFAULT_wxUSE_MONOLITHIC=no
2219 DEFAULT_wxUSE_PLUGINS=no
2220 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2221else
2222 DEFAULT_wxUSE_UNIVERSAL=no
2223 DEFAULT_wxUSE_STL=no
2224
2225 DEFAULT_wxUSE_NANOX=no
2226
2227 DEFAULT_wxUSE_THREADS=yes
2228
2229 DEFAULT_wxUSE_SHARED=yes
2230 DEFAULT_wxUSE_OPTIMISE=yes
2231 DEFAULT_wxUSE_PROFILE=no
2232 DEFAULT_wxUSE_NO_DEPS=no
2233 DEFAULT_wxUSE_NO_RTTI=no
2234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2235 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2236 DEFAULT_wxUSE_PERMISSIVE=no
2237 DEFAULT_wxUSE_DEBUG_FLAG=no
2238 DEFAULT_wxUSE_DEBUG_INFO=no
2239 DEFAULT_wxUSE_DEBUG_GDB=no
2240 DEFAULT_wxUSE_MEM_TRACING=no
2241 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2242 DEFAULT_wxUSE_DMALLOC=no
2243 DEFAULT_wxUSE_APPLE_IEEE=yes
2244
2245 DEFAULT_wxUSE_EXCEPTIONS=yes
2246 DEFAULT_wxUSE_LOG=yes
2247 DEFAULT_wxUSE_LOGWINDOW=yes
2248 DEFAULT_wxUSE_LOGGUI=yes
2249 DEFAULT_wxUSE_LOGDIALOG=yes
2250
2251 DEFAULT_wxUSE_GUI=yes
2252
2253 DEFAULT_wxUSE_REGEX=yes
2254 DEFAULT_wxUSE_XML=yes
2255 DEFAULT_wxUSE_EXPAT=yes
2256 DEFAULT_wxUSE_ZLIB=yes
2257 DEFAULT_wxUSE_LIBPNG=yes
2258 DEFAULT_wxUSE_LIBJPEG=yes
2259 DEFAULT_wxUSE_LIBTIFF=yes
2260 DEFAULT_wxUSE_LIBXPM=yes
2261 DEFAULT_wxUSE_LIBMSPACK=yes
2262 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2263 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2264 DEFAULT_wxUSE_ODBC=no
2265 DEFAULT_wxUSE_OPENGL=no
2266
2267 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2268 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2269 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e
SC
2270 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2271 DEFAULT_wxUSE_STD_IOSTREAM=no
2272 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2273 DEFAULT_wxUSE_DATETIME=yes
2274 DEFAULT_wxUSE_TIMER=yes
2275 DEFAULT_wxUSE_STOPWATCH=yes
2276 DEFAULT_wxUSE_FILE=yes
2277 DEFAULT_wxUSE_FFILE=yes
07158944 2278 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2279 DEFAULT_wxUSE_TEXTBUFFER=yes
2280 DEFAULT_wxUSE_TEXTFILE=yes
2281 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2282 DEFAULT_wxUSE_MEDIACTRL=no
2283 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2284 DEFAULT_wxUSE_INTL=yes
2285 DEFAULT_wxUSE_CONFIG=yes
2286 DEFAULT_wxUSE_FONTMAP=yes
2287 DEFAULT_wxUSE_STREAMS=yes
2288 DEFAULT_wxUSE_SOCKETS=yes
2289 DEFAULT_wxUSE_OLE=yes
2290 DEFAULT_wxUSE_DATAOBJ=yes
2291 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2292 DEFAULT_wxUSE_JOYSTICK=yes
2293 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2294 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2295 DEFAULT_wxUSE_LONGLONG=yes
2296 DEFAULT_wxUSE_GEOMETRY=yes
2297
2298 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2299 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2300 DEFAULT_wxUSE_POSTSCRIPT=yes
2301
2302 DEFAULT_wxUSE_CLIPBOARD=yes
2303 DEFAULT_wxUSE_TOOLTIPS=yes
2304 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2305 DEFAULT_wxUSE_DRAGIMAGE=yes
2306 DEFAULT_wxUSE_SPLINES=yes
2307
8a7b1113 2308 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2309 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2310 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2311 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2312
2313 DEFAULT_wxUSE_RESOURCES=no
2314 DEFAULT_wxUSE_CONSTRAINTS=yes
2315 DEFAULT_wxUSE_IPC=yes
2316 DEFAULT_wxUSE_HELP=yes
2317 DEFAULT_wxUSE_MS_HTML_HELP=yes
2318 DEFAULT_wxUSE_WXHTML_HELP=yes
2319 DEFAULT_wxUSE_TREELAYOUT=yes
2320 DEFAULT_wxUSE_METAFILE=yes
2321 DEFAULT_wxUSE_MIMETYPE=yes
2322 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2323 DEFAULT_wxUSE_PROTOCOL=yes
2324 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2325 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2326 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2327 DEFAULT_wxUSE_URL=yes
2328
2329 DEFAULT_wxUSE_COMMONDLGS=yes
2330 DEFAULT_wxUSE_CHOICEDLG=yes
2331 DEFAULT_wxUSE_COLOURDLG=yes
2332 DEFAULT_wxUSE_DIRDLG=yes
2333 DEFAULT_wxUSE_FILEDLG=yes
2334 DEFAULT_wxUSE_FINDREPLDLG=yes
2335 DEFAULT_wxUSE_FONTDLG=yes
2336 DEFAULT_wxUSE_MSGDLG=yes
2337 DEFAULT_wxUSE_NUMBERDLG=yes
2338 DEFAULT_wxUSE_TEXTDLG=yes
2339 DEFAULT_wxUSE_SPLASH=yes
2340 DEFAULT_wxUSE_STARTUP_TIPS=yes
2341 DEFAULT_wxUSE_PROGRESSDLG=yes
2342 DEFAULT_wxUSE_WIZARDDLG=yes
2343
2344 DEFAULT_wxUSE_MENUS=yes
2345 DEFAULT_wxUSE_MINIFRAME=yes
2346 DEFAULT_wxUSE_HTML=yes
9a8f0513 2347 DEFAULT_wxUSE_XRC=yes
646b6ec1 2348 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_FILESYSTEM=yes
2350 DEFAULT_wxUSE_FS_INET=yes
2351 DEFAULT_wxUSE_FS_ZIP=yes
2352 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2353 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2354 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_VALIDATORS=yes
2356
2357 DEFAULT_wxUSE_ACCEL=yes
2358 DEFAULT_wxUSE_BUTTON=yes
2359 DEFAULT_wxUSE_BMPBUTTON=yes
2360 DEFAULT_wxUSE_CALCTRL=yes
2361 DEFAULT_wxUSE_CARET=yes
2362 DEFAULT_wxUSE_CHECKBOX=yes
2363 DEFAULT_wxUSE_CHECKLST=yes
2364 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2365 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2366 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2367 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2368 DEFAULT_wxUSE_DISPLAY=yes
2369 DEFAULT_wxUSE_GAUGE=yes
2370 DEFAULT_wxUSE_GRID=yes
2371 DEFAULT_wxUSE_IMAGLIST=yes
2372 DEFAULT_wxUSE_LISTBOOK=yes
2373 DEFAULT_wxUSE_LISTBOX=yes
2374 DEFAULT_wxUSE_LISTCTRL=yes
2375 DEFAULT_wxUSE_NOTEBOOK=yes
2376 DEFAULT_wxUSE_RADIOBOX=yes
2377 DEFAULT_wxUSE_RADIOBTN=yes
2378 DEFAULT_wxUSE_SASH=yes
2379 DEFAULT_wxUSE_SCROLLBAR=yes
2380 DEFAULT_wxUSE_SLIDER=yes
2381 DEFAULT_wxUSE_SPINBTN=yes
2382 DEFAULT_wxUSE_SPINCTRL=yes
2383 DEFAULT_wxUSE_SPLITTER=yes
2384 DEFAULT_wxUSE_STATBMP=yes
2385 DEFAULT_wxUSE_STATBOX=yes
2386 DEFAULT_wxUSE_STATLINE=yes
2387 DEFAULT_wxUSE_STATTEXT=yes
2388 DEFAULT_wxUSE_STATUSBAR=yes
2389 DEFAULT_wxUSE_TABDIALOG=no
2390 DEFAULT_wxUSE_TEXTCTRL=yes
2391 DEFAULT_wxUSE_TOGGLEBTN=yes
2392 DEFAULT_wxUSE_TOOLBAR=yes
2393 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2394 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2395 DEFAULT_wxUSE_TREECTRL=yes
2396 DEFAULT_wxUSE_POPUPWIN=yes
2397 DEFAULT_wxUSE_TIPWINDOW=yes
2398
2399 DEFAULT_wxUSE_UNICODE=no
2400 DEFAULT_wxUSE_UNICODE_MSLU=yes
2401 DEFAULT_wxUSE_WCSRTOMBS=no
2402
2403 DEFAULT_wxUSE_PALETTE=yes
2404 DEFAULT_wxUSE_IMAGE=yes
2405 DEFAULT_wxUSE_GIF=yes
2406 DEFAULT_wxUSE_PCX=yes
2407 DEFAULT_wxUSE_IFF=no
2408 DEFAULT_wxUSE_PNM=yes
2409 DEFAULT_wxUSE_XPM=yes
2410 DEFAULT_wxUSE_ICO_CUR=yes
2411 DEFAULT_wxUSE_ACCESSIBILITY=no
2412
2413 DEFAULT_wxUSE_MONOLITHIC=no
2414 DEFAULT_wxUSE_PLUGINS=no
2415 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2416
2417 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2418fi
2419
2420
2421
2422for toolkit in `echo $ALL_TOOLKITS`; do
2423 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2424 if test "x$LINE" != "x" ; then
2425 has_toolkit_in_cache=1
2426 eval "DEFAULT_$LINE"
2427 eval "CACHE_$toolkit=1"
2428 fi
2429done
2430
2431
2432
2433 enablestring=
2434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2435echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2436 no_cache=0
2437 # Check whether --enable-gui or --disable-gui was given.
2438if test "${enable_gui+set}" = set; then
2439 enableval="$enable_gui"
2440
2441 if test "$enableval" = yes; then
2442 ac_cv_use_gui='wxUSE_GUI=yes'
2443 else
2444 ac_cv_use_gui='wxUSE_GUI=no'
2445 fi
2446
2447else
2448
2449 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2457
2458fi;
2459
2460 eval "$ac_cv_use_gui"
2461 if test "$no_cache" != 1; then
2462 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2463 fi
2464
2465 if test "$wxUSE_GUI" = yes; then
2466 echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471 fi
2472
2473
2474 enablestring=
2475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2476echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2477 no_cache=0
2478 # Check whether --enable-monolithic or --disable-monolithic was given.
2479if test "${enable_monolithic+set}" = set; then
2480 enableval="$enable_monolithic"
2481
2482 if test "$enableval" = yes; then
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2484 else
2485 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2486 fi
2487
2488else
2489
2490 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2491 if test "x$LINE" != x ; then
2492 eval "DEFAULT_$LINE"
2493 else
2494 no_cache=1
2495 fi
2496
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2498
2499fi;
2500
2501 eval "$ac_cv_use_monolithic"
2502 if test "$no_cache" != 1; then
2503 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2504 fi
2505
2506 if test "$wxUSE_MONOLITHIC" = yes; then
2507 echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6
2509 else
2510 echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6
2512 fi
2513
2514
2515 enablestring=
2516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2517echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2518 no_cache=0
2519 # Check whether --enable-plugins or --disable-plugins was given.
2520if test "${enable_plugins+set}" = set; then
2521 enableval="$enable_plugins"
2522
2523 if test "$enableval" = yes; then
2524 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2525 else
2526 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2527 fi
2528
2529else
2530
2531 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2539
2540fi;
2541
2542 eval "$ac_cv_use_plugins"
2543 if test "$no_cache" != 1; then
2544 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2545 fi
2546
2547 if test "$wxUSE_PLUGINS" = yes; then
2548 echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553 fi
2554
2555
2556if test "$wxUSE_GUI" = "yes"; then
2557
2558
2559 enablestring=
2560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2561echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2562 no_cache=0
2563 # Check whether --enable-universal or --disable-universal was given.
2564if test "${enable_universal+set}" = set; then
2565 enableval="$enable_universal"
2566
2567 if test "$enableval" = yes; then
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2569 else
2570 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2571 fi
2572
2573else
2574
2575 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2576 if test "x$LINE" != x ; then
2577 eval "DEFAULT_$LINE"
2578 else
2579 no_cache=1
2580 fi
2581
2582 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2583
2584fi;
2585
2586 eval "$ac_cv_use_universal"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_UNIVERSAL" = yes; then
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
2597 fi
2598
2599
2600# Check whether --with-gtk or --without-gtk was given.
2601if test "${with_gtk+set}" = set; then
2602 withval="$with_gtk"
2603 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-motif or --without-motif was given.
2607if test "${with_motif+set}" = set; then
2608 withval="$with_motif"
2609 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-mac or --without-mac was given.
2613if test "${with_mac+set}" = set; then
2614 withval="$with_mac"
c228d3a4 2615 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-cocoa or --without-cocoa was given.
2619if test "${with_cocoa+set}" = set; then
2620 withval="$with_cocoa"
c228d3a4 2621 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2622fi;
2623
2624# Check whether --with-wine or --without-wine was given.
2625if test "${with_wine+set}" = set; then
2626 withval="$with_wine"
2627 wxUSE_WINE="$withval" CACHE_WINE=1
2628fi;
2629
2630# Check whether --with-msw or --without-msw was given.
2631if test "${with_msw+set}" = set; then
2632 withval="$with_msw"
2633 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-pm or --without-pm was given.
2637if test "${with_pm+set}" = set; then
2638 withval="$with_pm"
2639 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-mgl or --without-mgl was given.
2643if test "${with_mgl+set}" = set; then
2644 withval="$with_mgl"
2645 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-microwin or --without-microwin was given.
2649if test "${with_microwin+set}" = set; then
2650 withval="$with_microwin"
2651 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-x11 or --without-x11 was given.
2655if test "${with_x11+set}" = set; then
2656 withval="$with_x11"
2657 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-nanox or --disable-nanox was given.
2665if test "${enable_nanox+set}" = set; then
2666 enableval="$enable_nanox"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_nanox='wxUSE_NANOX=yes'
2670 else
2671 ac_cv_use_nanox='wxUSE_NANOX=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2684
2685fi;
2686
2687 eval "$ac_cv_use_nanox"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_NANOX" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701
2702 enablestring=
2703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2704echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2705 no_cache=0
2706 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2707if test "${enable_gtk2+set}" = set; then
2708 enableval="$enable_gtk2"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2712 else
2713 ac_cv_use_gtk2='wxUSE_GTK2=no'
2714 fi
2715
2716else
2717
2718 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2726
2727fi;
2728
2729 eval "$ac_cv_use_gtk2"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_GTK2" = yes; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 fi
2741
2742
2743 enablestring=
2744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2745echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2746 no_cache=0
2747 # Check whether --enable-gpe or --disable-gpe was given.
2748if test "${enable_gpe+set}" = set; then
2749 enableval="$enable_gpe"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_gpe='wxUSE_GPE=yes'
2753 else
2754 ac_cv_use_gpe='wxUSE_GPE=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2767
2768fi;
2769
2770 eval "$ac_cv_use_gpe"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_GPE" = yes; then
2776 echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
2781 fi
2782
2783
2784
2785 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2786echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2787 no_cache=0
2788
2789# Check whether --with-libpng or --without-libpng was given.
2790if test "${with_libpng+set}" = set; then
2791 withval="$with_libpng"
2792
2793 if test "$withval" = yes; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2795 elif test "$withval" = no; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2797 elif test "$withval" = sys; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2799 elif test "$withval" = builtin; then
2800 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807else
2808
2809 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2810 if test "x$LINE" != x ; then
2811 eval "DEFAULT_$LINE"
2812 else
2813 no_cache=1
2814 fi
2815
2816 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2817
2818fi;
2819
2820 eval "$ac_cv_use_libpng"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LIBPNG" = yes; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827echo "${ECHO_T}yes" >&6
2828 elif test "$wxUSE_LIBPNG" = no; then
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831 elif test "$wxUSE_LIBPNG" = sys; then
2832 echo "$as_me:$LINENO: result: system version" >&5
2833echo "${ECHO_T}system version" >&6
2834 elif test "$wxUSE_LIBPNG" = builtin; then
2835 echo "$as_me:$LINENO: result: builtin version" >&5
2836echo "${ECHO_T}builtin version" >&6
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843
2844 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2845echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2846 no_cache=0
2847
2848# Check whether --with-libjpeg or --without-libjpeg was given.
2849if test "${with_libjpeg+set}" = set; then
2850 withval="$with_libjpeg"
2851
2852 if test "$withval" = yes; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866else
2867
2868 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2876
2877fi;
2878
2879 eval "$ac_cv_use_libjpeg"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LIBJPEG" = yes; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 elif test "$wxUSE_LIBJPEG" = no; then
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
2890 elif test "$wxUSE_LIBJPEG" = sys; then
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
2893 elif test "$wxUSE_LIBJPEG" = builtin; then
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902
2903 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2904echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2905 no_cache=0
2906
2907# Check whether --with-libtiff or --without-libtiff was given.
2908if test "${with_libtiff+set}" = set; then
2909 withval="$with_libtiff"
2910
2911 if test "$withval" = yes; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2913 elif test "$withval" = no; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2915 elif test "$withval" = sys; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925else
2926
2927 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2935
2936fi;
2937
2938 eval "$ac_cv_use_libtiff"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_LIBTIFF" = yes; then
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
2946 elif test "$wxUSE_LIBTIFF" = no; then
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949 elif test "$wxUSE_LIBTIFF" = sys; then
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
2952 elif test "$wxUSE_LIBTIFF" = builtin; then
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961
2962 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2963echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2964 no_cache=0
2965
2966# Check whether --with-libxpm or --without-libxpm was given.
2967if test "${with_libxpm+set}" = set; then
2968 withval="$with_libxpm"
2969
2970 if test "$withval" = yes; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2972 elif test "$withval" = no; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2974 elif test "$withval" = sys; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2994
2995fi;
2996
2997 eval "$ac_cv_use_libxpm"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_LIBXPM" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 elif test "$wxUSE_LIBXPM" = no; then
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 elif test "$wxUSE_LIBXPM" = sys; then
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
3011 elif test "$wxUSE_LIBXPM" = builtin; then
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
3014 else
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3022echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-libmspack or --without-libmspack was given.
3026if test "${with_libmspack+set}" = set; then
3027 withval="$with_libmspack"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3031 else
3032 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3045
3046fi;
3047
3048 eval "$ac_cv_use_libmspack"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBMSPACK" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 else
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 fi
3060
3061
3062 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3063echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3064 no_cache=0
3065
3066# Check whether --with-sdl or --without-sdl was given.
3067if test "${with_sdl+set}" = set; then
3068 withval="$with_sdl"
3069
3070 if test "$withval" = yes; then
3071 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3072 else
3073 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3074 fi
3075
3076else
3077
3078 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3086
3087fi;
3088
3089 eval "$ac_cv_use_sdl"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_LIBSDL" = yes; then
3095 echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6
3097 else
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100 fi
3101
3102
d1c38808
VZ
3103 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3104echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-gnomeprint or --without-gnomeprint was given.
3108if test "${with_gnomeprint+set}" = set; then
3109 withval="$with_gnomeprint"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3113 else
3114 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3115 fi
3116
3117else
3118
3119 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3127
3128fi;
3129
3130 eval "$ac_cv_use_gnomeprint"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141 fi
3142
3143
a848cd7e
SC
3144 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3145echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3146 no_cache=0
3147
3148# Check whether --with-opengl or --without-opengl was given.
3149if test "${with_opengl+set}" = set; then
3150 withval="$with_opengl"
3151
3152 if test "$withval" = yes; then
3153 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3154 else
3155 ac_cv_use_opengl='wxUSE_OPENGL=no'
3156 fi
3157
3158else
3159
3160 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3168
3169fi;
3170
3171 eval "$ac_cv_use_opengl"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_OPENGL" = yes; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182 fi
3183
3184
3185fi
3186
3187
3188 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3189echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3190 no_cache=0
3191
3192# Check whether --with-dmalloc or --without-dmalloc was given.
3193if test "${with_dmalloc+set}" = set; then
3194 withval="$with_dmalloc"
3195
3196 if test "$withval" = yes; then
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3198 else
3199 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3212
3213fi;
3214
3215 eval "$ac_cv_use_dmalloc"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_DMALLOC" = yes; then
3221 echo "$as_me:$LINENO: result: yes" >&5
3222echo "${ECHO_T}yes" >&6
3223 else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226 fi
3227
3228
3229 echo "$as_me:$LINENO: checking for --with-regex" >&5
3230echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3231 no_cache=0
3232
3233# Check whether --with-regex or --without-regex was given.
3234if test "${with_regex+set}" = set; then
3235 withval="$with_regex"
3236
3237 if test "$withval" = yes; then
3238 ac_cv_use_regex='wxUSE_REGEX=yes'
3239 elif test "$withval" = no; then
3240 ac_cv_use_regex='wxUSE_REGEX=no'
3241 elif test "$withval" = sys; then
3242 ac_cv_use_regex='wxUSE_REGEX=sys'
3243 elif test "$withval" = builtin; then
3244 ac_cv_use_regex='wxUSE_REGEX=builtin'
3245 else
3246 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3247echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3261
3262fi;
3263
3264 eval "$ac_cv_use_regex"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_REGEX" = yes; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272 elif test "$wxUSE_REGEX" = no; then
3273 echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275 elif test "$wxUSE_REGEX" = sys; then
3276 echo "$as_me:$LINENO: result: system version" >&5
3277echo "${ECHO_T}system version" >&6
3278 elif test "$wxUSE_REGEX" = builtin; then
3279 echo "$as_me:$LINENO: result: builtin version" >&5
3280echo "${ECHO_T}builtin version" >&6
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287
3288 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3289echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3290 no_cache=0
3291
3292# Check whether --with-zlib or --without-zlib was given.
3293if test "${with_zlib+set}" = set; then
3294 withval="$with_zlib"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3298 elif test "$withval" = no; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=no'
3300 elif test "$withval" = sys; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3302 elif test "$withval" = builtin; then
3303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3304 else
3305 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3306echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3307 { (exit 1); exit 1; }; }
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3320
3321fi;
3322
3323 eval "$ac_cv_use_zlib"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_ZLIB" = yes; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330echo "${ECHO_T}yes" >&6
3331 elif test "$wxUSE_ZLIB" = no; then
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334 elif test "$wxUSE_ZLIB" = sys; then
3335 echo "$as_me:$LINENO: result: system version" >&5
3336echo "${ECHO_T}system version" >&6
3337 elif test "$wxUSE_ZLIB" = builtin; then
3338 echo "$as_me:$LINENO: result: builtin version" >&5
3339echo "${ECHO_T}builtin version" >&6
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346
3347 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3348echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3349 no_cache=0
3350
3351# Check whether --with-odbc or --without-odbc was given.
3352if test "${with_odbc+set}" = set; then
3353 withval="$with_odbc"
3354
3355 if test "$withval" = yes; then
3356 ac_cv_use_odbc='wxUSE_ODBC=yes'
3357 elif test "$withval" = no; then
3358 ac_cv_use_odbc='wxUSE_ODBC=no'
3359 elif test "$withval" = sys; then
3360 ac_cv_use_odbc='wxUSE_ODBC=sys'
3361 elif test "$withval" = builtin; then
3362 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3363 else
3364 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3365echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3366 { (exit 1); exit 1; }; }
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3379
3380fi;
3381
3382 eval "$ac_cv_use_odbc"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_ODBC" = yes; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390 elif test "$wxUSE_ODBC" = no; then
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393 elif test "$wxUSE_ODBC" = sys; then
3394 echo "$as_me:$LINENO: result: system version" >&5
3395echo "${ECHO_T}system version" >&6
3396 elif test "$wxUSE_ODBC" = builtin; then
3397 echo "$as_me:$LINENO: result: builtin version" >&5
3398echo "${ECHO_T}builtin version" >&6
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405
3406 echo "$as_me:$LINENO: checking for --with-expat" >&5
3407echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3408 no_cache=0
3409
3410# Check whether --with-expat or --without-expat was given.
3411if test "${with_expat+set}" = set; then
3412 withval="$with_expat"
3413
3414 if test "$withval" = yes; then
3415 ac_cv_use_expat='wxUSE_EXPAT=yes'
3416 elif test "$withval" = no; then
3417 ac_cv_use_expat='wxUSE_EXPAT=no'
3418 elif test "$withval" = sys; then
3419 ac_cv_use_expat='wxUSE_EXPAT=sys'
3420 elif test "$withval" = builtin; then
3421 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3422 else
3423 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3424echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3425 { (exit 1); exit 1; }; }
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3438
3439fi;
3440
3441 eval "$ac_cv_use_expat"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_EXPAT" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 elif test "$wxUSE_EXPAT" = no; then
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 elif test "$wxUSE_EXPAT" = sys; then
3453 echo "$as_me:$LINENO: result: system version" >&5
3454echo "${ECHO_T}system version" >&6
3455 elif test "$wxUSE_EXPAT" = builtin; then
3456 echo "$as_me:$LINENO: result: builtin version" >&5
3457echo "${ECHO_T}builtin version" >&6
3458 else
3459 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3460echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463
3464
3465
3466
3467 enablestring=
3468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3469echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3470 no_cache=0
3471 # Check whether --enable-shared or --disable-shared was given.
3472if test "${enable_shared+set}" = set; then
3473 enableval="$enable_shared"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_shared='wxUSE_SHARED=yes'
3477 else
3478 ac_cv_use_shared='wxUSE_SHARED=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3491
3492fi;
3493
3494 eval "$ac_cv_use_shared"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_SHARED" = yes; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505 fi
3506
3507
3508 enablestring=
3509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3510echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3511 no_cache=0
3512 # Check whether --enable-optimise or --disable-optimise was given.
3513if test "${enable_optimise+set}" = set; then
3514 enableval="$enable_optimise"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3518 else
3519 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3532
3533fi;
3534
3535 eval "$ac_cv_use_optimise"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_OPTIMISE" = yes; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546 fi
3547
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-debug or --disable-debug was given.
3554if test "${enable_debug+set}" = set; then
3555 enableval="$enable_debug"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_debug='wxUSE_DEBUG=yes'
3559 else
3560 ac_cv_use_debug='wxUSE_DEBUG=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3573
3574fi;
3575
3576 eval "$ac_cv_use_debug"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_DEBUG" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589
3590 enablestring=
3591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3592echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3593 no_cache=0
3594 # Check whether --enable-stl or --disable-stl was given.
3595if test "${enable_stl+set}" = set; then
3596 enableval="$enable_stl"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stl='wxUSE_STL=yes'
3600 else
3601 ac_cv_use_stl='wxUSE_STL=no'
3602 fi
3603
3604else
3605
3606 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3614
3615fi;
3616
3617 eval "$ac_cv_use_stl"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_STL" = yes; then
3623 echo "$as_me:$LINENO: result: yes" >&5
3624echo "${ECHO_T}yes" >&6
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6
3628 fi
3629
3630if test "$USE_OS2" = "1"; then
69120ee4 3631 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3632
3633 enablestring=
3634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3635echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3636 no_cache=0
3637 # Check whether --enable-omf or --disable-omf was given.
3638if test "${enable_omf+set}" = set; then
3639 enableval="$enable_omf"
3640
3641 if test "$enableval" = yes; then
3642 ac_cv_use_omf='wxUSE_OMF=yes'
3643 else
3644 ac_cv_use_omf='wxUSE_OMF=no'
3645 fi
3646
3647else
3648
3649 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
3656 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3657
3658fi;
3659
3660 eval "$ac_cv_use_omf"
3661 if test "$no_cache" != 1; then
3662 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3663 fi
3664
3665 if test "$wxUSE_OMF" = yes; then
3666 echo "$as_me:$LINENO: result: yes" >&5
3667echo "${ECHO_T}yes" >&6
3668 else
3669 echo "$as_me:$LINENO: result: no" >&5
3670echo "${ECHO_T}no" >&6
3671 fi
3672
3673fi
3674
3675if test "$wxUSE_DEBUG" = "yes"; then
3676 DEFAULT_wxUSE_DEBUG_FLAG=yes
3677 DEFAULT_wxUSE_DEBUG_INFO=yes
3678 BUILD=debug
3679elif test "$wxUSE_DEBUG" = "no"; then
3680 DEFAULT_wxUSE_DEBUG_FLAG=no
3681 DEFAULT_wxUSE_DEBUG_INFO=no
3682 BUILD=release
3683fi
3684
3685
3686 enablestring=
3687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3688echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3689 no_cache=0
3690 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3691if test "${enable_debug_flag+set}" = set; then
3692 enableval="$enable_debug_flag"
3693
3694 if test "$enableval" = yes; then
3695 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3696 else
3697 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3698 fi
3699
3700else
3701
3702 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3703 if test "x$LINE" != x ; then
3704 eval "DEFAULT_$LINE"
3705 else
3706 no_cache=1
3707 fi
3708
3709 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3710
3711fi;
3712
3713 eval "$ac_cv_use_debug_flag"
3714 if test "$no_cache" != 1; then
3715 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3716 fi
3717
3718 if test "$wxUSE_DEBUG_FLAG" = yes; then
3719 echo "$as_me:$LINENO: result: yes" >&5
3720echo "${ECHO_T}yes" >&6
3721 else
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724 fi
3725
3726
3727 enablestring=
3728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3729echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3730 no_cache=0
3731 # Check whether --enable-debug_info or --disable-debug_info was given.
3732if test "${enable_debug_info+set}" = set; then
3733 enableval="$enable_debug_info"
3734
3735 if test "$enableval" = yes; then
3736 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3737 else
3738 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3739 fi
3740
3741else
3742
3743 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3744 if test "x$LINE" != x ; then
3745 eval "DEFAULT_$LINE"
3746 else
3747 no_cache=1
3748 fi
3749
3750 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3751
3752fi;
3753
3754 eval "$ac_cv_use_debug_info"
3755 if test "$no_cache" != 1; then
3756 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3757 fi
3758
3759 if test "$wxUSE_DEBUG_INFO" = yes; then
3760 echo "$as_me:$LINENO: result: yes" >&5
3761echo "${ECHO_T}yes" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765 fi
3766
3767
3768 enablestring=
3769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3770echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3771 no_cache=0
3772 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3773if test "${enable_debug_gdb+set}" = set; then
3774 enableval="$enable_debug_gdb"
3775
3776 if test "$enableval" = yes; then
3777 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3778 else
3779 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3780 fi
3781
3782else
3783
3784 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3785 if test "x$LINE" != x ; then
3786 eval "DEFAULT_$LINE"
3787 else
3788 no_cache=1
3789 fi
3790
3791 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3792
3793fi;
3794
3795 eval "$ac_cv_use_debug_gdb"
3796 if test "$no_cache" != 1; then
3797 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3798 fi
3799
3800 if test "$wxUSE_DEBUG_GDB" = yes; then
3801 echo "$as_me:$LINENO: result: yes" >&5
3802echo "${ECHO_T}yes" >&6
3803 else
3804 echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6
3806 fi
3807
3808
3809 enablestring=
3810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3811echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3812 no_cache=0
3813 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3814if test "${enable_debug_cntxt+set}" = set; then
3815 enableval="$enable_debug_cntxt"
3816
3817 if test "$enableval" = yes; then
3818 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3819 else
3820 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3821 fi
3822
3823else
3824
3825 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3826 if test "x$LINE" != x ; then
3827 eval "DEFAULT_$LINE"
3828 else
3829 no_cache=1
3830 fi
3831
3832 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3833
3834fi;
3835
3836 eval "$ac_cv_use_debug_cntxt"
3837 if test "$no_cache" != 1; then
3838 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3839 fi
3840
3841 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3842 echo "$as_me:$LINENO: result: yes" >&5
3843echo "${ECHO_T}yes" >&6
3844 else
3845 echo "$as_me:$LINENO: result: no" >&5
3846echo "${ECHO_T}no" >&6
3847 fi
3848
3849
3850 enablestring=
3851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3852echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3853 no_cache=0
3854 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3855if test "${enable_mem_tracing+set}" = set; then
3856 enableval="$enable_mem_tracing"
3857
3858 if test "$enableval" = yes; then
3859 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3860 else
3861 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3862 fi
3863
3864else
3865
3866 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3867 if test "x$LINE" != x ; then
3868 eval "DEFAULT_$LINE"
3869 else
3870 no_cache=1
3871 fi
3872
3873 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3874
3875fi;
3876
3877 eval "$ac_cv_use_mem_tracing"
3878 if test "$no_cache" != 1; then
3879 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3880 fi
3881
3882 if test "$wxUSE_MEM_TRACING" = yes; then
3883 echo "$as_me:$LINENO: result: yes" >&5
3884echo "${ECHO_T}yes" >&6
3885 else
3886 echo "$as_me:$LINENO: result: no" >&5
3887echo "${ECHO_T}no" >&6
3888 fi
3889
3890
3891 enablestring=
3892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3893echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3894 no_cache=0
3895 # Check whether --enable-profile or --disable-profile was given.
3896if test "${enable_profile+set}" = set; then
3897 enableval="$enable_profile"
3898
3899 if test "$enableval" = yes; then
3900 ac_cv_use_profile='wxUSE_PROFILE=yes'
3901 else
3902 ac_cv_use_profile='wxUSE_PROFILE=no'
3903 fi
3904
3905else
3906
3907 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3908 if test "x$LINE" != x ; then
3909 eval "DEFAULT_$LINE"
3910 else
3911 no_cache=1
3912 fi
3913
3914 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3915
3916fi;
3917
3918 eval "$ac_cv_use_profile"
3919 if test "$no_cache" != 1; then
3920 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3921 fi
3922
3923 if test "$wxUSE_PROFILE" = yes; then
3924 echo "$as_me:$LINENO: result: yes" >&5
3925echo "${ECHO_T}yes" >&6
3926 else
3927 echo "$as_me:$LINENO: result: no" >&5
3928echo "${ECHO_T}no" >&6
3929 fi
3930
3931
3932 enablestring=
3933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3934echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3935 no_cache=0
3936 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3937if test "${enable_no_rtti+set}" = set; then
3938 enableval="$enable_no_rtti"
3939
3940 if test "$enableval" = yes; then
3941 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3942 else
3943 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3944 fi
3945
3946else
3947
3948 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3949 if test "x$LINE" != x ; then
3950 eval "DEFAULT_$LINE"
3951 else
3952 no_cache=1
3953 fi
3954
3955 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3956
3957fi;
3958
3959 eval "$ac_cv_use_no_rtti"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_NO_RTTI" = yes; then
3965 echo "$as_me:$LINENO: result: yes" >&5
3966echo "${ECHO_T}yes" >&6
3967 else
3968 echo "$as_me:$LINENO: result: no" >&5
3969echo "${ECHO_T}no" >&6
3970 fi
3971
3972
3973 enablestring=
3974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3975echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3976 no_cache=0
3977 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3978if test "${enable_no_exceptions+set}" = set; then
3979 enableval="$enable_no_exceptions"
3980
3981 if test "$enableval" = yes; then
3982 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3983 else
3984 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3985 fi
3986
3987else
3988
3989 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3990 if test "x$LINE" != x ; then
3991 eval "DEFAULT_$LINE"
3992 else
3993 no_cache=1
3994 fi
3995
3996 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3997
3998fi;
3999
4000 eval "$ac_cv_use_no_exceptions"
4001 if test "$no_cache" != 1; then
4002 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4003 fi
4004
4005 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4006 echo "$as_me:$LINENO: result: yes" >&5
4007echo "${ECHO_T}yes" >&6
4008 else
4009 echo "$as_me:$LINENO: result: no" >&5
4010echo "${ECHO_T}no" >&6
4011 fi
4012
4013
4014 enablestring=
4015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4016echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4017 no_cache=0
4018 # Check whether --enable-permissive or --disable-permissive was given.
4019if test "${enable_permissive+set}" = set; then
4020 enableval="$enable_permissive"
4021
4022 if test "$enableval" = yes; then
4023 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4024 else
4025 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4026 fi
4027
4028else
4029
4030 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4038
4039fi;
4040
4041 eval "$ac_cv_use_permissive"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_PERMISSIVE" = yes; then
4047 echo "$as_me:$LINENO: result: yes" >&5
4048echo "${ECHO_T}yes" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6
4052 fi
4053
4054
4055 enablestring=
4056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4057echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4058 no_cache=0
4059 # Check whether --enable-no_deps or --disable-no_deps was given.
4060if test "${enable_no_deps+set}" = set; then
4061 enableval="$enable_no_deps"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4065 else
4066 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4079
4080fi;
4081
4082 eval "$ac_cv_use_no_deps"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_NO_DEPS" = yes; then
4088 echo "$as_me:$LINENO: result: yes" >&5
4089echo "${ECHO_T}yes" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
4093 fi
4094
4095
4096
4097 enablestring=
4098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4099echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4100 no_cache=0
4101 # Check whether --enable-compat22 or --disable-compat22 was given.
4102if test "${enable_compat22+set}" = set; then
4103 enableval="$enable_compat22"
4104
4105 if test "$enableval" = yes; then
4106 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4107 else
4108 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4109 fi
4110
4111else
4112
4113 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4114 if test "x$LINE" != x ; then
4115 eval "DEFAULT_$LINE"
4116 else
4117 no_cache=1
4118 fi
4119
4120 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4121
4122fi;
4123
4124 eval "$ac_cv_use_compat22"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4130 echo "$as_me:$LINENO: result: yes" >&5
4131echo "${ECHO_T}yes" >&6
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134echo "${ECHO_T}no" >&6
4135 fi
4136
4137
4138 enablestring=disable
4139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4140echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4141 no_cache=0
4142 # Check whether --enable-compat24 or --disable-compat24 was given.
4143if test "${enable_compat24+set}" = set; then
4144 enableval="$enable_compat24"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4148 else
4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4150 fi
4151
4152else
4153
4154 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4162
4163fi;
4164
4165 eval "$ac_cv_use_compat24"
4166 if test "$no_cache" != 1; then
4167 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4168 fi
4169
4170 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4171 echo "$as_me:$LINENO: result: yes" >&5
4172echo "${ECHO_T}yes" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175echo "${ECHO_T}no" >&6
4176 fi
4177
4178
ffa0583f
RL
4179
4180 enablestring=
4181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4182echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4183 no_cache=0
4184 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4185if test "${enable_rpath+set}" = set; then
4186 enableval="$enable_rpath"
ffa0583f
RL
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_rpath='wxUSE_RPATH=yes'
4190 else
4191 ac_cv_use_rpath='wxUSE_RPATH=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4204
a848cd7e
SC
4205fi;
4206
ffa0583f
RL
4207 eval "$ac_cv_use_rpath"
4208 if test "$no_cache" != 1; then
4209 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4210 fi
4211
4212 if test "$wxUSE_RPATH" = yes; then
4213 echo "$as_me:$LINENO: result: yes" >&5
4214echo "${ECHO_T}yes" >&6
4215 else
4216 echo "$as_me:$LINENO: result: no" >&5
4217echo "${ECHO_T}no" >&6
4218 fi
4219
a848cd7e
SC
4220
4221
4222
4223
4224 enablestring=
4225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4226echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4227 no_cache=0
4228 # Check whether --enable-intl or --disable-intl was given.
4229if test "${enable_intl+set}" = set; then
4230 enableval="$enable_intl"
4231
4232 if test "$enableval" = yes; then
4233 ac_cv_use_intl='wxUSE_INTL=yes'
4234 else
4235 ac_cv_use_intl='wxUSE_INTL=no'
4236 fi
4237
4238else
4239
4240 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4248
4249fi;
4250
4251 eval "$ac_cv_use_intl"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_INTL" = yes; then
4257 echo "$as_me:$LINENO: result: yes" >&5
4258echo "${ECHO_T}yes" >&6
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 fi
4263
4264
4265 enablestring=
4266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4267echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4268 no_cache=0
4269 # Check whether --enable-config or --disable-config was given.
4270if test "${enable_config+set}" = set; then
4271 enableval="$enable_config"
4272
4273 if test "$enableval" = yes; then
4274 ac_cv_use_config='wxUSE_CONFIG=yes'
4275 else
4276 ac_cv_use_config='wxUSE_CONFIG=no'
4277 fi
4278
4279else
4280
4281 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4282 if test "x$LINE" != x ; then
4283 eval "DEFAULT_$LINE"
4284 else
4285 no_cache=1
4286 fi
4287
4288 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4289
4290fi;
4291
4292 eval "$ac_cv_use_config"
4293 if test "$no_cache" != 1; then
4294 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4295 fi
4296
4297 if test "$wxUSE_CONFIG" = yes; then
4298 echo "$as_me:$LINENO: result: yes" >&5
4299echo "${ECHO_T}yes" >&6
4300 else
4301 echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
4303 fi
4304
4305
4306
4307 enablestring=
4308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4309echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4310 no_cache=0
4311 # Check whether --enable-protocols or --disable-protocols was given.
4312if test "${enable_protocols+set}" = set; then
4313 enableval="$enable_protocols"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4317 else
4318 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4319 fi
4320
4321else
4322
4323 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4331
4332fi;
4333
4334 eval "$ac_cv_use_protocols"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_PROTOCOL" = yes; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341echo "${ECHO_T}yes" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345 fi
4346
4347
4348 enablestring=
4349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4350echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4351 no_cache=0
4352 # Check whether --enable-ftp or --disable-ftp was given.
4353if test "${enable_ftp+set}" = set; then
4354 enableval="$enable_ftp"
4355
4356 if test "$enableval" = yes; then
4357 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4358 else
4359 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4360 fi
4361
4362else
4363
4364 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4365 if test "x$LINE" != x ; then
4366 eval "DEFAULT_$LINE"
4367 else
4368 no_cache=1
4369 fi
4370
4371 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4372
4373fi;
4374
4375 eval "$ac_cv_use_ftp"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4381 echo "$as_me:$LINENO: result: yes" >&5
4382echo "${ECHO_T}yes" >&6
4383 else
4384 echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6
4386 fi
4387
4388
4389 enablestring=
4390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4391echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4392 no_cache=0
4393 # Check whether --enable-http or --disable-http was given.
4394if test "${enable_http+set}" = set; then
4395 enableval="$enable_http"
4396
4397 if test "$enableval" = yes; then
4398 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4399 else
4400 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4401 fi
4402
4403else
4404
4405 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4406 if test "x$LINE" != x ; then
4407 eval "DEFAULT_$LINE"
4408 else
4409 no_cache=1
4410 fi
4411
4412 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4413
4414fi;
4415
4416 eval "$ac_cv_use_http"
4417 if test "$no_cache" != 1; then
4418 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4419 fi
4420
4421 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4422 echo "$as_me:$LINENO: result: yes" >&5
4423echo "${ECHO_T}yes" >&6
4424 else
4425 echo "$as_me:$LINENO: result: no" >&5
4426echo "${ECHO_T}no" >&6
4427 fi
4428
4429
4430 enablestring=
4431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4432echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4433 no_cache=0
4434 # Check whether --enable-fileproto or --disable-fileproto was given.
4435if test "${enable_fileproto+set}" = set; then
4436 enableval="$enable_fileproto"
4437
4438 if test "$enableval" = yes; then
4439 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4440 else
4441 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4442 fi
4443
4444else
4445
4446 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4447 if test "x$LINE" != x ; then
4448 eval "DEFAULT_$LINE"
4449 else
4450 no_cache=1
4451 fi
4452
4453 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4454
4455fi;
4456
4457 eval "$ac_cv_use_fileproto"
4458 if test "$no_cache" != 1; then
4459 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4460 fi
4461
4462 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464echo "${ECHO_T}yes" >&6
4465 else
4466 echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
4468 fi
4469
4470
4471 enablestring=
4472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4473echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4474 no_cache=0
4475 # Check whether --enable-sockets or --disable-sockets was given.
4476if test "${enable_sockets+set}" = set; then
4477 enableval="$enable_sockets"
4478
4479 if test "$enableval" = yes; then
4480 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4481 else
4482 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4483 fi
4484
4485else
4486
4487 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4495
4496fi;
4497
4498 eval "$ac_cv_use_sockets"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_SOCKETS" = yes; then
4504 echo "$as_me:$LINENO: result: yes" >&5
4505echo "${ECHO_T}yes" >&6
4506 else
4507 echo "$as_me:$LINENO: result: no" >&5
4508echo "${ECHO_T}no" >&6
4509 fi
4510
4511
4512 enablestring=
4513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4514echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4515 no_cache=0
4516 # Check whether --enable-ole or --disable-ole was given.
4517if test "${enable_ole+set}" = set; then
4518 enableval="$enable_ole"
4519
4520 if test "$enableval" = yes; then
4521 ac_cv_use_ole='wxUSE_OLE=yes'
4522 else
4523 ac_cv_use_ole='wxUSE_OLE=no'
4524 fi
4525
4526else
4527
4528 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4529 if test "x$LINE" != x ; then
4530 eval "DEFAULT_$LINE"
4531 else
4532 no_cache=1
4533 fi
4534
4535 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4536
4537fi;
4538
4539 eval "$ac_cv_use_ole"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_OLE" = yes; then
4545 echo "$as_me:$LINENO: result: yes" >&5
4546echo "${ECHO_T}yes" >&6
4547 else
4548 echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6
4550 fi
4551
4552
4553 enablestring=
4554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4555echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4556 no_cache=0
4557 # Check whether --enable-dataobj or --disable-dataobj was given.
4558if test "${enable_dataobj+set}" = set; then
4559 enableval="$enable_dataobj"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4563 else
4564 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4565 fi
4566
4567else
4568
4569 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4577
4578fi;
4579
4580 eval "$ac_cv_use_dataobj"
4581 if test "$no_cache" != 1; then
4582 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4583 fi
4584
4585 if test "$wxUSE_DATAOBJ" = yes; then
4586 echo "$as_me:$LINENO: result: yes" >&5
4587echo "${ECHO_T}yes" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
4591 fi
4592
4593
4594
4595 enablestring=
4596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4597echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4598 no_cache=0
4599 # Check whether --enable-ipc or --disable-ipc was given.
4600if test "${enable_ipc+set}" = set; then
4601 enableval="$enable_ipc"
4602
4603 if test "$enableval" = yes; then
4604 ac_cv_use_ipc='wxUSE_IPC=yes'
4605 else
4606 ac_cv_use_ipc='wxUSE_IPC=no'
4607 fi
4608
4609else
4610
4611 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4612 if test "x$LINE" != x ; then
4613 eval "DEFAULT_$LINE"
4614 else
4615 no_cache=1
4616 fi
4617
4618 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4619
4620fi;
4621
4622 eval "$ac_cv_use_ipc"
4623 if test "$no_cache" != 1; then
4624 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4625 fi
4626
4627 if test "$wxUSE_IPC" = yes; then
4628 echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630 else
4631 echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
4633 fi
4634
4635
4636
4637 enablestring=
4638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4639echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4640 no_cache=0
4641 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4642if test "${enable_apple_ieee+set}" = set; then
4643 enableval="$enable_apple_ieee"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4647 else
4648 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4661
4662fi;
4663
4664 eval "$ac_cv_use_apple_ieee"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_APPLE_IEEE" = yes; then
4670 echo "$as_me:$LINENO: result: yes" >&5
4671echo "${ECHO_T}yes" >&6
4672 else
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675 fi
4676
4677
81f90336
MW
4678 enablestring=
4679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4680echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4681 no_cache=0
4682 # Check whether --enable-arcstream or --disable-arcstream was given.
4683if test "${enable_arcstream+set}" = set; then
4684 enableval="$enable_arcstream"
4685
4686 if test "$enableval" = yes; then
9e8e867f 4687 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4688 else
9e8e867f 4689 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4690 fi
4691
4692else
4693
9e8e867f 4694 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
9e8e867f 4701 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4702
4703fi;
4704
4705 eval "$ac_cv_use_arcstream"
4706 if test "$no_cache" != 1; then
4707 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4708 fi
4709
9e8e867f 4710 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4711 echo "$as_me:$LINENO: result: yes" >&5
4712echo "${ECHO_T}yes" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
4716 fi
4717
4718
a848cd7e 4719 enablestring=
36b6448c
VZ
4720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4721echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4722 no_cache=0
36b6448c
VZ
4723 # Check whether --enable-backtrace or --disable-backtrace was given.
4724if test "${enable_backtrace+set}" = set; then
4725 enableval="$enable_backtrace"
a848cd7e
SC
4726
4727 if test "$enableval" = yes; then
36b6448c 4728 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4729 else
36b6448c 4730 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4731 fi
4732
4733else
4734
36b6448c 4735 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
36b6448c 4742 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4743
4744fi;
4745
36b6448c 4746 eval "$ac_cv_use_backtrace"
a848cd7e 4747 if test "$no_cache" != 1; then
36b6448c 4748 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4749 fi
4750
36b6448c 4751 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4752 echo "$as_me:$LINENO: result: yes" >&5
4753echo "${ECHO_T}yes" >&6
4754 else
4755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
4757 fi
4758
4759
eaff0f0d 4760 enablestring=
36b6448c
VZ
4761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4762echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4763 no_cache=0
36b6448c
VZ
4764 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4765if test "${enable_catch_segvs+set}" = set; then
4766 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4767
4768 if test "$enableval" = yes; then
36b6448c 4769 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4770 else
36b6448c 4771 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4772 fi
4773
4774else
4775
36b6448c 4776 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
36b6448c 4783 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4784
4785fi;
4786
36b6448c 4787 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4788 if test "$no_cache" != 1; then
36b6448c 4789 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4790 fi
4791
36b6448c 4792 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4793 echo "$as_me:$LINENO: result: yes" >&5
4794echo "${ECHO_T}yes" >&6
4795 else
4796 echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6
4798 fi
4799
4800
a848cd7e
SC
4801 enablestring=
4802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4803echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4804 no_cache=0
4805 # Check whether --enable-cmdline or --disable-cmdline was given.
4806if test "${enable_cmdline+set}" = set; then
4807 enableval="$enable_cmdline"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4811 else
4812 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4813 fi
4814
4815else
4816
4817 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4825
4826fi;
4827
4828 eval "$ac_cv_use_cmdline"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4834 echo "$as_me:$LINENO: result: yes" >&5
4835echo "${ECHO_T}yes" >&6
4836 else
4837 echo "$as_me:$LINENO: result: no" >&5
4838echo "${ECHO_T}no" >&6
4839 fi
4840
4841
4842 enablestring=
4843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4844echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4845 no_cache=0
4846 # Check whether --enable-datetime or --disable-datetime was given.
4847if test "${enable_datetime+set}" = set; then
4848 enableval="$enable_datetime"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4852 else
4853 ac_cv_use_datetime='wxUSE_DATETIME=no'
4854 fi
4855
4856else
4857
4858 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4866
4867fi;
4868
4869 eval "$ac_cv_use_datetime"
4870 if test "$no_cache" != 1; then
4871 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4872 fi
4873
4874 if test "$wxUSE_DATETIME" = yes; then
4875 echo "$as_me:$LINENO: result: yes" >&5
4876echo "${ECHO_T}yes" >&6
4877 else
4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880 fi
4881
4882
36b6448c
VZ
4883 enablestring=
4884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4885echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4886 no_cache=0
4887 # Check whether --enable-debugreport or --disable-debugreport was given.
4888if test "${enable_debugreport+set}" = set; then
4889 enableval="$enable_debugreport"
4890
4891 if test "$enableval" = yes; then
4892 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4893 else
4894 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4895 fi
4896
4897else
4898
4899 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
4906 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4907
4908fi;
4909
4910 eval "$ac_cv_use_debugreport"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4913 fi
4914
4915 if test "$wxUSE_DEBUGREPORT" = yes; then
4916 echo "$as_me:$LINENO: result: yes" >&5
4917echo "${ECHO_T}yes" >&6
4918 else
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921 fi
4922
4923
a848cd7e
SC
4924 enablestring=
4925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4926echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4927 no_cache=0
4928 # Check whether --enable-dialupman or --disable-dialupman was given.
4929if test "${enable_dialupman+set}" = set; then
4930 enableval="$enable_dialupman"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4934 else
4935 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4948
4949fi;
4950
4951 eval "$ac_cv_use_dialupman"
4952 if test "$no_cache" != 1; then
4953 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4954 fi
4955
4956 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4957 echo "$as_me:$LINENO: result: yes" >&5
4958echo "${ECHO_T}yes" >&6
4959 else
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
4962 fi
4963
4964
4965 enablestring=
4966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4967echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4968 no_cache=0
4969 # Check whether --enable-dynlib or --disable-dynlib was given.
4970if test "${enable_dynlib+set}" = set; then
4971 enableval="$enable_dynlib"
4972
4973 if test "$enableval" = yes; then
4974 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4975 else
4976 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4977 fi
4978
4979else
4980
4981 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
4988 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4989
4990fi;
4991
4992 eval "$ac_cv_use_dynlib"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4998 echo "$as_me:$LINENO: result: yes" >&5
4999echo "${ECHO_T}yes" >&6
5000 else
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
5003 fi
5004
5005
5006 enablestring=
5007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5008echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5009 no_cache=0
5010 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5011if test "${enable_dynamicloader+set}" = set; then
5012 enableval="$enable_dynamicloader"
5013
5014 if test "$enableval" = yes; then
5015 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5016 else
5017 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5018 fi
5019
5020else
5021
5022 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5023 if test "x$LINE" != x ; then
5024 eval "DEFAULT_$LINE"
5025 else
5026 no_cache=1
5027 fi
5028
5029 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5030
5031fi;
5032
5033 eval "$ac_cv_use_dynamicloader"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5039 echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
5041 else
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044 fi
5045
5046
5047 enablestring=
5048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5049echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5050 no_cache=0
5051 # Check whether --enable-exceptions or --disable-exceptions was given.
5052if test "${enable_exceptions+set}" = set; then
5053 enableval="$enable_exceptions"
5054
5055 if test "$enableval" = yes; then
5056 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5057 else
5058 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5059 fi
5060
5061else
5062
5063 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5071
5072fi;
5073
5074 eval "$ac_cv_use_exceptions"
5075 if test "$no_cache" != 1; then
5076 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5077 fi
5078
5079 if test "$wxUSE_EXCEPTIONS" = yes; then
5080 echo "$as_me:$LINENO: result: yes" >&5
5081echo "${ECHO_T}yes" >&6
5082 else
5083 echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085 fi
5086
5087
5088 enablestring=
5089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5090echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5091 no_cache=0
5092 # Check whether --enable-ffile or --disable-ffile was given.
5093if test "${enable_ffile+set}" = set; then
5094 enableval="$enable_ffile"
5095
5096 if test "$enableval" = yes; then
5097 ac_cv_use_ffile='wxUSE_FFILE=yes'
5098 else
5099 ac_cv_use_ffile='wxUSE_FFILE=no'
5100 fi
5101
5102else
5103
5104 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5112
5113fi;
5114
5115 eval "$ac_cv_use_ffile"
5116 if test "$no_cache" != 1; then
5117 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5118 fi
5119
5120 if test "$wxUSE_FFILE" = yes; then
5121 echo "$as_me:$LINENO: result: yes" >&5
5122echo "${ECHO_T}yes" >&6
5123 else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126 fi
5127
5128
5129 enablestring=
5130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5131echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5132 no_cache=0
5133 # Check whether --enable-file or --disable-file was given.
5134if test "${enable_file+set}" = set; then
5135 enableval="$enable_file"
5136
5137 if test "$enableval" = yes; then
5138 ac_cv_use_file='wxUSE_FILE=yes'
5139 else
5140 ac_cv_use_file='wxUSE_FILE=no'
5141 fi
5142
5143else
5144
5145 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5146 if test "x$LINE" != x ; then
5147 eval "DEFAULT_$LINE"
5148 else
5149 no_cache=1
5150 fi
5151
5152 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5153
5154fi;
5155
5156 eval "$ac_cv_use_file"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_FILE" = yes; then
5162 echo "$as_me:$LINENO: result: yes" >&5
5163echo "${ECHO_T}yes" >&6
5164 else
5165 echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167 fi
5168
5169
5170 enablestring=
5171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5172echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5173 no_cache=0
5174 # Check whether --enable-filesystem or --disable-filesystem was given.
5175if test "${enable_filesystem+set}" = set; then
5176 enableval="$enable_filesystem"
5177
5178 if test "$enableval" = yes; then
5179 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5180 else
5181 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5182 fi
5183
5184else
5185
5186 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5194
5195fi;
5196
5197 eval "$ac_cv_use_filesystem"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_FILESYSTEM" = yes; then
5203 echo "$as_me:$LINENO: result: yes" >&5
5204echo "${ECHO_T}yes" >&6
5205 else
5206 echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208 fi
5209
5210
5211 enablestring=
5212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5213echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5214 no_cache=0
5215 # Check whether --enable-fontmap or --disable-fontmap was given.
5216if test "${enable_fontmap+set}" = set; then
5217 enableval="$enable_fontmap"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5221 else
5222 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5235
5236fi;
5237
5238 eval "$ac_cv_use_fontmap"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_FONTMAP" = yes; then
5244 echo "$as_me:$LINENO: result: yes" >&5
5245echo "${ECHO_T}yes" >&6
5246 else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249 fi
5250
5251
5252 enablestring=
5253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5254echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5255 no_cache=0
5256 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5257if test "${enable_fs_inet+set}" = set; then
5258 enableval="$enable_fs_inet"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5262 else
5263 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5264 fi
5265
5266else
5267
5268 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5276
5277fi;
5278
5279 eval "$ac_cv_use_fs_inet"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_FS_INET" = yes; then
5285 echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
5287 else
5288 echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290 fi
5291
5292
5293 enablestring=
5294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5295echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5296 no_cache=0
5297 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5298if test "${enable_fs_zip+set}" = set; then
5299 enableval="$enable_fs_zip"
5300
5301 if test "$enableval" = yes; then
5302 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5303 else
5304 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5305 fi
5306
5307else
5308
5309 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5317
5318fi;
5319
5320 eval "$ac_cv_use_fs_zip"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_FS_ZIP" = yes; then
5326 echo "$as_me:$LINENO: result: yes" >&5
5327echo "${ECHO_T}yes" >&6
5328 else
5329 echo "$as_me:$LINENO: result: no" >&5
5330echo "${ECHO_T}no" >&6
5331 fi
5332
5333
5334 enablestring=
5335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5336echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5337 no_cache=0
5338 # Check whether --enable-geometry or --disable-geometry was given.
5339if test "${enable_geometry+set}" = set; then
5340 enableval="$enable_geometry"
5341
5342 if test "$enableval" = yes; then
5343 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5344 else
5345 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5346 fi
5347
5348else
5349
5350 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5351 if test "x$LINE" != x ; then
5352 eval "DEFAULT_$LINE"
5353 else
5354 no_cache=1
5355 fi
5356
5357 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5358
5359fi;
5360
5361 eval "$ac_cv_use_geometry"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_GEOMETRY" = yes; then
5367 echo "$as_me:$LINENO: result: yes" >&5
5368echo "${ECHO_T}yes" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
5372 fi
5373
5374
5375 enablestring=
5376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5377echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5378 no_cache=0
5379 # Check whether --enable-log or --disable-log was given.
5380if test "${enable_log+set}" = set; then
5381 enableval="$enable_log"
5382
5383 if test "$enableval" = yes; then
5384 ac_cv_use_log='wxUSE_LOG=yes'
5385 else
5386 ac_cv_use_log='wxUSE_LOG=no'
5387 fi
5388
5389else
5390
5391 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5399
5400fi;
5401
5402 eval "$ac_cv_use_log"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_LOG" = yes; then
5408 echo "$as_me:$LINENO: result: yes" >&5
5409echo "${ECHO_T}yes" >&6
5410 else
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413 fi
5414
5415
5416 enablestring=
5417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5418echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5419 no_cache=0
5420 # Check whether --enable-longlong or --disable-longlong was given.
5421if test "${enable_longlong+set}" = set; then
5422 enableval="$enable_longlong"
5423
5424 if test "$enableval" = yes; then
5425 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5426 else
5427 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5428 fi
5429
5430else
5431
5432 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5433 if test "x$LINE" != x ; then
5434 eval "DEFAULT_$LINE"
5435 else
5436 no_cache=1
5437 fi
5438
5439 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5440
5441fi;
5442
5443 eval "$ac_cv_use_longlong"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_LONGLONG" = yes; then
5449 echo "$as_me:$LINENO: result: yes" >&5
5450echo "${ECHO_T}yes" >&6
5451 else
5452 echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454 fi
5455
5456
5457 enablestring=
5458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5459echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5460 no_cache=0
5461 # Check whether --enable-mimetype or --disable-mimetype was given.
5462if test "${enable_mimetype+set}" = set; then
5463 enableval="$enable_mimetype"
5464
5465 if test "$enableval" = yes; then
5466 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5467 else
5468 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5469 fi
5470
5471else
5472
5473 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5474 if test "x$LINE" != x ; then
5475 eval "DEFAULT_$LINE"
5476 else
5477 no_cache=1
5478 fi
5479
5480 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5481
5482fi;
5483
5484 eval "$ac_cv_use_mimetype"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_MIMETYPE" = yes; then
5490 echo "$as_me:$LINENO: result: yes" >&5
5491echo "${ECHO_T}yes" >&6
5492 else
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495 fi
5496
5497
5498 enablestring=
5499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5500echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5501 no_cache=0
5502 # Check whether --enable-mslu or --disable-mslu was given.
5503if test "${enable_mslu+set}" = set; then
5504 enableval="$enable_mslu"
5505
5506 if test "$enableval" = yes; then
5507 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5508 else
5509 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5510 fi
5511
5512else
5513
5514 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5515 if test "x$LINE" != x ; then
5516 eval "DEFAULT_$LINE"
5517 else
5518 no_cache=1
5519 fi
5520
5521 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5522
5523fi;
5524
5525 eval "$ac_cv_use_mslu"
5526 if test "$no_cache" != 1; then
5527 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5528 fi
5529
5530 if test "$wxUSE_UNICODE_MSLU" = yes; then
5531 echo "$as_me:$LINENO: result: yes" >&5
5532echo "${ECHO_T}yes" >&6
5533 else
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536 fi
5537
5538
5539 enablestring=
5540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5541echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5542 no_cache=0
5543 # Check whether --enable-snglinst or --disable-snglinst was given.
5544if test "${enable_snglinst+set}" = set; then
5545 enableval="$enable_snglinst"
5546
5547 if test "$enableval" = yes; then
5548 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5549 else
5550 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5551 fi
5552
5553else
5554
5555 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5563
5564fi;
5565
5566 eval "$ac_cv_use_snglinst"
5567 if test "$no_cache" != 1; then
5568 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5569 fi
5570
5571 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5572 echo "$as_me:$LINENO: result: yes" >&5
5573echo "${ECHO_T}yes" >&6
5574 else
5575 echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577 fi
5578
5579
5580 enablestring=
07158944
VZ
5581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5582echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5583 no_cache=0
07158944
VZ
5584 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5585if test "${enable_std_iostreams+set}" = set; then
5586 enableval="$enable_std_iostreams"
a848cd7e
SC
5587
5588 if test "$enableval" = yes; then
07158944 5589 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5590 else
07158944 5591 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5592 fi
5593
5594else
5595
07158944 5596 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5597 if test "x$LINE" != x ; then
5598 eval "DEFAULT_$LINE"
5599 else
5600 no_cache=1
5601 fi
5602
07158944 5603 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5604
5605fi;
5606
07158944 5607 eval "$ac_cv_use_std_iostreams"
a848cd7e 5608 if test "$no_cache" != 1; then
07158944 5609 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5610 fi
5611
07158944 5612 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5613 echo "$as_me:$LINENO: result: yes" >&5
5614echo "${ECHO_T}yes" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618 fi
5619
5620
5621 enablestring=
07158944
VZ
5622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5623echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5624 no_cache=0
07158944
VZ
5625 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5626if test "${enable_stdpaths+set}" = set; then
5627 enableval="$enable_stdpaths"
a848cd7e
SC
5628
5629 if test "$enableval" = yes; then
07158944 5630 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5631 else
07158944 5632 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5633 fi
5634
5635else
5636
07158944 5637 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5638 if test "x$LINE" != x ; then
5639 eval "DEFAULT_$LINE"
5640 else
5641 no_cache=1
5642 fi
5643
07158944 5644 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5645
5646fi;
5647
07158944 5648 eval "$ac_cv_use_stdpaths"
a848cd7e 5649 if test "$no_cache" != 1; then
07158944 5650 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5651 fi
5652
07158944 5653 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5654 echo "$as_me:$LINENO: result: yes" >&5
5655echo "${ECHO_T}yes" >&6
5656 else
5657 echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659 fi
5660
5661
5662 enablestring=
5663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5664echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5665 no_cache=0
5666 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5667if test "${enable_stopwatch+set}" = set; then
5668 enableval="$enable_stopwatch"
5669
5670 if test "$enableval" = yes; then
5671 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5672 else
5673 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5674 fi
5675
5676else
5677
5678 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5679 if test "x$LINE" != x ; then
5680 eval "DEFAULT_$LINE"
5681 else
5682 no_cache=1
5683 fi
5684
5685 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5686
5687fi;
5688
5689 eval "$ac_cv_use_stopwatch"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_STOPWATCH" = yes; then
5695 echo "$as_me:$LINENO: result: yes" >&5
5696echo "${ECHO_T}yes" >&6
5697 else
5698 echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6
5700 fi
5701
5702
07158944
VZ
5703 enablestring=
5704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5705echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5706 no_cache=0
5707 # Check whether --enable-streams or --disable-streams was given.
5708if test "${enable_streams+set}" = set; then
5709 enableval="$enable_streams"
5710
5711 if test "$enableval" = yes; then
5712 ac_cv_use_streams='wxUSE_STREAMS=yes'
5713 else
5714 ac_cv_use_streams='wxUSE_STREAMS=no'
5715 fi
5716
5717else
5718
5719 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5727
5728fi;
5729
5730 eval "$ac_cv_use_streams"
5731 if test "$no_cache" != 1; then
5732 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5733 fi
5734
5735 if test "$wxUSE_STREAMS" = yes; then
5736 echo "$as_me:$LINENO: result: yes" >&5
5737echo "${ECHO_T}yes" >&6
5738 else
5739 echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6
5741 fi
5742
5743
a848cd7e
SC
5744 enablestring=
5745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5746echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5747 no_cache=0
5748 # Check whether --enable-system_options or --disable-system_options was given.
5749if test "${enable_system_options+set}" = set; then
5750 enableval="$enable_system_options"
5751
5752 if test "$enableval" = yes; then
5753 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5754 else
5755 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5756 fi
5757
5758else
5759
5760 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5768
5769fi;
5770
5771 eval "$ac_cv_use_system_options"
5772 if test "$no_cache" != 1; then
5773 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5774 fi
5775
5776 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5777 echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
5779 else
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782 fi
5783
5784
5785 enablestring=
5786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5787echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5788 no_cache=0
5789 # Check whether --enable-textbuf or --disable-textbuf was given.
5790if test "${enable_textbuf+set}" = set; then
5791 enableval="$enable_textbuf"
5792
5793 if test "$enableval" = yes; then
5794 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5795 else
5796 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5797 fi
5798
5799else
5800
5801 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5809
5810fi;
5811
5812 eval "$ac_cv_use_textbuf"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_TEXTBUFFER" = yes; then
5818 echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
5823 fi
5824
5825
5826 enablestring=
5827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5828echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5829 no_cache=0
5830 # Check whether --enable-textfile or --disable-textfile was given.
5831if test "${enable_textfile+set}" = set; then
5832 enableval="$enable_textfile"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5836 else
5837 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5838 fi
5839
5840else
5841
5842 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5850
5851fi;
5852
5853 eval "$ac_cv_use_textfile"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_TEXTFILE" = yes; then
5859 echo "$as_me:$LINENO: result: yes" >&5
5860echo "${ECHO_T}yes" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864 fi
5865
5866
5867 enablestring=
5868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5869echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5870 no_cache=0
5871 # Check whether --enable-timer or --disable-timer was given.
5872if test "${enable_timer+set}" = set; then
5873 enableval="$enable_timer"
5874
5875 if test "$enableval" = yes; then
5876 ac_cv_use_timer='wxUSE_TIMER=yes'
5877 else
5878 ac_cv_use_timer='wxUSE_TIMER=no'
5879 fi
5880
5881else
5882
5883 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
5890 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5891
5892fi;
5893
5894 eval "$ac_cv_use_timer"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_TIMER" = yes; then
5900 echo "$as_me:$LINENO: result: yes" >&5
5901echo "${ECHO_T}yes" >&6
5902 else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905 fi
5906
5907
5908 enablestring=
5909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5910echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5911 no_cache=0
5912 # Check whether --enable-unicode or --disable-unicode was given.
5913if test "${enable_unicode+set}" = set; then
5914 enableval="$enable_unicode"
5915
5916 if test "$enableval" = yes; then
5917 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5918 else
5919 ac_cv_use_unicode='wxUSE_UNICODE=no'
5920 fi
5921
5922else
5923
5924 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5932
5933fi;
5934
5935 eval "$ac_cv_use_unicode"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_UNICODE" = yes; then
5941 echo "$as_me:$LINENO: result: yes" >&5
5942echo "${ECHO_T}yes" >&6
5943 else
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946 fi
5947
5948
5949 enablestring=
5950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5951echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5952 no_cache=0
5953 # Check whether --enable-sound or --disable-sound was given.
5954if test "${enable_sound+set}" = set; then
5955 enableval="$enable_sound"
5956
5957 if test "$enableval" = yes; then
5958 ac_cv_use_sound='wxUSE_SOUND=yes'
5959 else
5960 ac_cv_use_sound='wxUSE_SOUND=no'
5961 fi
5962
5963else
5964
5965 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5973
5974fi;
5975
5976 eval "$ac_cv_use_sound"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_SOUND" = yes; then
5982 echo "$as_me:$LINENO: result: yes" >&5
5983echo "${ECHO_T}yes" >&6
5984 else
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
5987 fi
5988
5989
3b57de8b
RL
5990 enablestring=
5991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5992echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5993 no_cache=0
5994 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5995if test "${enable_mediactrl+set}" = set; then
5996 enableval="$enable_mediactrl"
5997
5998 if test "$enableval" = yes; then
5999 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6000 else
6001 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6002 fi
6003
6004else
6005
6006 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6014
6015fi;
6016
6017 eval "$ac_cv_use_mediactrl"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_MEDIACTRL" = yes; then
6023 echo "$as_me:$LINENO: result: yes" >&5
6024echo "${ECHO_T}yes" >&6
6025 else
6026 echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
6028 fi
6029
6030
a848cd7e
SC
6031 enablestring=
6032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6033echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6034 no_cache=0
6035 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6036if test "${enable_wxprintfv+set}" = set; then
6037 enableval="$enable_wxprintfv"
6038
6039 if test "$enableval" = yes; then
6040 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6041 else
6042 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6043 fi
6044
6045else
6046
6047 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6055
6056fi;
6057
6058 eval "$ac_cv_use_wxprintfv"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6064 echo "$as_me:$LINENO: result: yes" >&5
6065echo "${ECHO_T}yes" >&6
6066 else
6067 echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6
6069 fi
6070
6071
6072 enablestring=
6073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6074echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6075 no_cache=0
6076 # Check whether --enable-zipstream or --disable-zipstream was given.
6077if test "${enable_zipstream+set}" = set; then
6078 enableval="$enable_zipstream"
6079
6080 if test "$enableval" = yes; then
6081 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6082 else
6083 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6084 fi
6085
6086else
6087
6088 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6096
6097fi;
6098
6099 eval "$ac_cv_use_zipstream"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_ZIPSTREAM" = yes; then
6105 echo "$as_me:$LINENO: result: yes" >&5
6106echo "${ECHO_T}yes" >&6
6107 else
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
6110 fi
6111
6112
a848cd7e
SC
6113
6114 enablestring=
6115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6116echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6117 no_cache=0
6118 # Check whether --enable-url or --disable-url was given.
6119if test "${enable_url+set}" = set; then
6120 enableval="$enable_url"
6121
6122 if test "$enableval" = yes; then
6123 ac_cv_use_url='wxUSE_URL=yes'
6124 else
6125 ac_cv_use_url='wxUSE_URL=no'
6126 fi
6127
6128else
6129
6130 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6131 if test "x$LINE" != x ; then
6132 eval "DEFAULT_$LINE"
6133 else
6134 no_cache=1
6135 fi
6136
6137 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6138
6139fi;
6140
6141 eval "$ac_cv_use_url"
6142 if test "$no_cache" != 1; then
6143 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6144 fi
6145
6146 if test "$wxUSE_URL" = yes; then
6147 echo "$as_me:$LINENO: result: yes" >&5
6148echo "${ECHO_T}yes" >&6
6149 else
6150 echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6
6152 fi
6153
6154
6155 enablestring=
6156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6157echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6158 no_cache=0
6159 # Check whether --enable-protocol or --disable-protocol was given.
6160if test "${enable_protocol+set}" = set; then
6161 enableval="$enable_protocol"
6162
6163 if test "$enableval" = yes; then
6164 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6165 else
6166 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6167 fi
6168
6169else
6170
6171 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6172 if test "x$LINE" != x ; then
6173 eval "DEFAULT_$LINE"
6174 else
6175 no_cache=1
6176 fi
6177
6178 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6179
6180fi;
6181
6182 eval "$ac_cv_use_protocol"
6183 if test "$no_cache" != 1; then
6184 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6185 fi
6186
6187 if test "$wxUSE_PROTOCOL" = yes; then
6188 echo "$as_me:$LINENO: result: yes" >&5
6189echo "${ECHO_T}yes" >&6
6190 else
6191 echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6
6193 fi
6194
6195
6196 enablestring=
6197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6198echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6199 no_cache=0
6200 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6201if test "${enable_protocol_http+set}" = set; then
6202 enableval="$enable_protocol_http"
6203
6204 if test "$enableval" = yes; then
6205 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6206 else
6207 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6208 fi
6209
6210else
6211
6212 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6213 if test "x$LINE" != x ; then
6214 eval "DEFAULT_$LINE"
6215 else
6216 no_cache=1
6217 fi
6218
6219 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6220
6221fi;
6222
6223 eval "$ac_cv_use_protocol_http"
6224 if test "$no_cache" != 1; then
6225 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6226 fi
6227
6228 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6229 echo "$as_me:$LINENO: result: yes" >&5
6230echo "${ECHO_T}yes" >&6
6231 else
6232 echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6
6234 fi
6235
6236
6237 enablestring=
6238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6239echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6240 no_cache=0
6241 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6242if test "${enable_protocol_ftp+set}" = set; then
6243 enableval="$enable_protocol_ftp"
6244
6245 if test "$enableval" = yes; then
6246 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6247 else
6248 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6249 fi
6250
6251else
6252
6253 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6254 if test "x$LINE" != x ; then
6255 eval "DEFAULT_$LINE"
6256 else
6257 no_cache=1
6258 fi
6259
6260 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6261
6262fi;
6263
6264 eval "$ac_cv_use_protocol_ftp"
6265 if test "$no_cache" != 1; then
6266 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6267 fi
6268
6269 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6270 echo "$as_me:$LINENO: result: yes" >&5
6271echo "${ECHO_T}yes" >&6
6272 else
6273 echo "$as_me:$LINENO: result: no" >&5
6274echo "${ECHO_T}no" >&6
6275 fi
6276
6277
6278 enablestring=
6279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6280echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6281 no_cache=0
6282 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6283if test "${enable_protocol_file+set}" = set; then
6284 enableval="$enable_protocol_file"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6288 else
6289 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6302
6303fi;
6304
6305 eval "$ac_cv_use_protocol_file"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6311 echo "$as_me:$LINENO: result: yes" >&5
6312echo "${ECHO_T}yes" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
6316 fi
6317
6318
6319
6320
6321
6322 enablestring=
6323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6324echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6325 no_cache=0
6326 # Check whether --enable-threads or --disable-threads was given.
6327if test "${enable_threads+set}" = set; then
6328 enableval="$enable_threads"
6329
6330 if test "$enableval" = yes; then
6331 ac_cv_use_threads='wxUSE_THREADS=yes'
6332 else
6333 ac_cv_use_threads='wxUSE_THREADS=no'
6334 fi
6335
6336else
6337
6338 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6339 if test "x$LINE" != x ; then
6340 eval "DEFAULT_$LINE"
6341 else
6342 no_cache=1
6343 fi
6344
6345 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6346
6347fi;
6348
6349 eval "$ac_cv_use_threads"
6350 if test "$no_cache" != 1; then
6351 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6352 fi
6353
6354 if test "$wxUSE_THREADS" = yes; then
6355 echo "$as_me:$LINENO: result: yes" >&5
6356echo "${ECHO_T}yes" >&6
6357 else
6358 echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
6360 fi
6361
6362
6363if test "$wxUSE_GUI" = "yes"; then
6364
6365
6366
6367 enablestring=
6368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6369echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6370 no_cache=0
6371 # Check whether --enable-docview or --disable-docview was given.
6372if test "${enable_docview+set}" = set; then
6373 enableval="$enable_docview"
6374
6375 if test "$enableval" = yes; then
6376 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6377 else
6378 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6379 fi
6380
6381else
6382
6383 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6384 if test "x$LINE" != x ; then
6385 eval "DEFAULT_$LINE"
6386 else
6387 no_cache=1
6388 fi
6389
6390 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6391
6392fi;
6393
6394 eval "$ac_cv_use_docview"
6395 if test "$no_cache" != 1; then
6396 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6397 fi
6398
6399 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6400 echo "$as_me:$LINENO: result: yes" >&5
6401echo "${ECHO_T}yes" >&6
6402 else
6403 echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6
6405 fi
6406
6407
6408 enablestring=
6409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6410echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6411 no_cache=0
6412 # Check whether --enable-help or --disable-help was given.
6413if test "${enable_help+set}" = set; then
6414 enableval="$enable_help"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_help='wxUSE_HELP=yes'
6418 else
6419 ac_cv_use_help='wxUSE_HELP=no'
6420 fi
6421
6422else
6423
6424 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6432
6433fi;
6434
6435 eval "$ac_cv_use_help"
6436 if test "$no_cache" != 1; then
6437 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6438 fi
6439
6440 if test "$wxUSE_HELP" = yes; then
6441 echo "$as_me:$LINENO: result: yes" >&5
6442echo "${ECHO_T}yes" >&6
6443 else
6444 echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
6446 fi
6447
6448
6449 enablestring=
6450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6451echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6452 no_cache=0
6453 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6454if test "${enable_mshtmlhelp+set}" = set; then
6455 enableval="$enable_mshtmlhelp"
6456
6457 if test "$enableval" = yes; then
6458 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6459 else
6460 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6461 fi
6462
6463else
6464
6465 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6473
6474fi;
6475
6476 eval "$ac_cv_use_mshtmlhelp"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_MS_HTML_HELP" = yes; then
6482 echo "$as_me:$LINENO: result: yes" >&5
6483echo "${ECHO_T}yes" >&6
6484 else
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
6487 fi
6488
6489
6490 enablestring=
6491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6492echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6493 no_cache=0
6494 # Check whether --enable-html or --disable-html was given.
6495if test "${enable_html+set}" = set; then
6496 enableval="$enable_html"
6497
6498 if test "$enableval" = yes; then
6499 ac_cv_use_html='wxUSE_HTML=yes'
6500 else
6501 ac_cv_use_html='wxUSE_HTML=no'
6502 fi
6503
6504else
6505
6506 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6514
6515fi;
6516
6517 eval "$ac_cv_use_html"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_HTML" = yes; then
6523 echo "$as_me:$LINENO: result: yes" >&5
6524echo "${ECHO_T}yes" >&6
6525 else
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
6528 fi
6529
6530
6531 enablestring=
6532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6533echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6534 no_cache=0
6535 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6536if test "${enable_htmlhelp+set}" = set; then
6537 enableval="$enable_htmlhelp"
6538
6539 if test "$enableval" = yes; then
6540 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6541 else
6542 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6543 fi
6544
6545else
6546
6547 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6548 if test "x$LINE" != x ; then
6549 eval "DEFAULT_$LINE"
6550 else
6551 no_cache=1
6552 fi
6553
6554 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6555
6556fi;
6557
6558 eval "$ac_cv_use_htmlhelp"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_WXHTML_HELP" = yes; then
6564 echo "$as_me:$LINENO: result: yes" >&5
6565echo "${ECHO_T}yes" >&6
6566 else
6567 echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6
6569 fi
6570
6571
9a8f0513
VS
6572 enablestring=
6573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6574echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6575 no_cache=0
6576 # Check whether --enable-xrc or --disable-xrc was given.
6577if test "${enable_xrc+set}" = set; then
6578 enableval="$enable_xrc"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_xrc='wxUSE_XRC=yes'
6582 else
6583 ac_cv_use_xrc='wxUSE_XRC=no'
6584 fi
6585
6586else
6587
6588 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6596
6597fi;
6598
6599 eval "$ac_cv_use_xrc"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_XRC" = yes; then
6605 echo "$as_me:$LINENO: result: yes" >&5
6606echo "${ECHO_T}yes" >&6
6607 else
6608 echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6
6610 fi
6611
6612
a848cd7e
SC
6613 enablestring=
6614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6615echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6616 no_cache=0
6617 # Check whether --enable-constraints or --disable-constraints was given.
6618if test "${enable_constraints+set}" = set; then
6619 enableval="$enable_constraints"
6620
6621 if test "$enableval" = yes; then
6622 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6623 else
6624 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6625 fi
6626
6627else
6628
6629 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6637
6638fi;
6639
6640 eval "$ac_cv_use_constraints"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_CONSTRAINTS" = yes; then
6646 echo "$as_me:$LINENO: result: yes" >&5
6647echo "${ECHO_T}yes" >&6
6648 else
6649 echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6
6651 fi
6652
6653
6654 enablestring=
6655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6656echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6657 no_cache=0
6658 # Check whether --enable-printarch or --disable-printarch was given.
6659if test "${enable_printarch+set}" = set; then
6660 enableval="$enable_printarch"
6661
6662 if test "$enableval" = yes; then
6663 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6664 else
6665 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6666 fi
6667
6668else
6669
6670 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6678
6679fi;
6680
6681 eval "$ac_cv_use_printarch"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6687 echo "$as_me:$LINENO: result: yes" >&5
6688echo "${ECHO_T}yes" >&6
6689 else
6690 echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6
6692 fi
6693
6694
6695 enablestring=
6696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6697echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6698 no_cache=0
6699 # Check whether --enable-mdi or --disable-mdi was given.
6700if test "${enable_mdi+set}" = set; then
6701 enableval="$enable_mdi"
6702
6703 if test "$enableval" = yes; then
8a7b1113 6704 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6705 else
8a7b1113 6706 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6707 fi
6708
6709else
6710
8a7b1113 6711 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6712 if test "x$LINE" != x ; then
6713 eval "DEFAULT_$LINE"
6714 else
6715 no_cache=1
6716 fi
6717
8a7b1113 6718 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6719
6720fi;
6721
6722 eval "$ac_cv_use_mdi"
6723 if test "$no_cache" != 1; then
6724 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6725 fi
6726
8a7b1113
VZ
6727 if test "$wxUSE_MDI" = yes; then
6728 echo "$as_me:$LINENO: result: yes" >&5
6729echo "${ECHO_T}yes" >&6
6730 else
6731 echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6
6733 fi
6734
6735
6736 enablestring=
6737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6738echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6739 no_cache=0
6740 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6741if test "${enable_mdidoc+set}" = set; then
6742 enableval="$enable_mdidoc"
6743
6744 if test "$enableval" = yes; then
6745 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6746 else
6747 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6748 fi
6749
6750else
6751
6752 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6753 if test "x$LINE" != x ; then
6754 eval "DEFAULT_$LINE"
6755 else
6756 no_cache=1
6757 fi
6758
6759 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6760
6761fi;
6762
6763 eval "$ac_cv_use_mdidoc"
6764 if test "$no_cache" != 1; then
6765 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6766 fi
6767
a848cd7e
SC
6768 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6769 echo "$as_me:$LINENO: result: yes" >&5
6770echo "${ECHO_T}yes" >&6
6771 else
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
6774 fi
6775
6776
6777 enablestring=
6778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6779echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6780 no_cache=0
6781 # Check whether --enable-loggui or --disable-loggui was given.
6782if test "${enable_loggui+set}" = set; then
6783 enableval="$enable_loggui"
6784
6785 if test "$enableval" = yes; then
6786 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6787 else
6788 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6789 fi
6790
6791else
6792
6793 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6794 if test "x$LINE" != x ; then
6795 eval "DEFAULT_$LINE"
6796 else
6797 no_cache=1
6798 fi
6799
6800 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6801
6802fi;
6803
6804 eval "$ac_cv_use_loggui"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_LOGGUI" = yes; then
6810 echo "$as_me:$LINENO: result: yes" >&5
6811echo "${ECHO_T}yes" >&6
6812 else
6813 echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6
6815 fi
6816
6817
6818 enablestring=
6819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6820echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6821 no_cache=0
6822 # Check whether --enable-logwin or --disable-logwin was given.
6823if test "${enable_logwin+set}" = set; then
6824 enableval="$enable_logwin"
6825
6826 if test "$enableval" = yes; then
6827 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6828 else
6829 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6830 fi
6831
6832else
6833
6834 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6842
6843fi;
6844
6845 eval "$ac_cv_use_logwin"
6846 if test "$no_cache" != 1; then
6847 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6848 fi
6849
6850 if test "$wxUSE_LOGWINDOW" = yes; then
6851 echo "$as_me:$LINENO: result: yes" >&5
6852echo "${ECHO_T}yes" >&6
6853 else
6854 echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6
6856 fi
6857
6858
6859 enablestring=
6860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6861echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6862 no_cache=0
6863 # Check whether --enable-logdialog or --disable-logdialog was given.
6864if test "${enable_logdialog+set}" = set; then
6865 enableval="$enable_logdialog"
6866
6867 if test "$enableval" = yes; then
6868 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6869 else
6870 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6871 fi
6872
6873else
6874
6875 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6883
6884fi;
6885
6886 eval "$ac_cv_use_logdialog"
6887 if test "$no_cache" != 1; then
6888 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6889 fi
6890
6891 if test "$wxUSE_LOGDIALOG" = yes; then
6892 echo "$as_me:$LINENO: result: yes" >&5
6893echo "${ECHO_T}yes" >&6
6894 else
6895 echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6
6897 fi
6898
6899
646b6ec1
VS
6900 enablestring=
6901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6902echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6903 no_cache=0
6904 # Check whether --enable-webkit or --disable-webkit was given.
6905if test "${enable_webkit+set}" = set; then
6906 enableval="$enable_webkit"
6907
6908 if test "$enableval" = yes; then
6909 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6910 else
6911 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6912 fi
6913
6914else
6915
6916 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6917 if test "x$LINE" != x ; then
6918 eval "DEFAULT_$LINE"
6919 else
6920 no_cache=1
6921 fi
6922
6923 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6924
6925fi;
6926
6927 eval "$ac_cv_use_webkit"
6928 if test "$no_cache" != 1; then
6929 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6930 fi
6931
6932 if test "$wxUSE_WEBKIT" = yes; then
6933 echo "$as_me:$LINENO: result: yes" >&5
6934echo "${ECHO_T}yes" >&6
6935 else
6936 echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6
6938 fi
6939
6940
a848cd7e
SC
6941
6942 enablestring=
6943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6944echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6945 no_cache=0
6946 # Check whether --enable-postscript or --disable-postscript was given.
6947if test "${enable_postscript+set}" = set; then
6948 enableval="$enable_postscript"
6949
6950 if test "$enableval" = yes; then
6951 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6952 else
6953 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6954 fi
6955
6956else
6957
6958 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6959 if test "x$LINE" != x ; then
6960 eval "DEFAULT_$LINE"
6961 else
6962 no_cache=1
6963 fi
6964
6965 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6966
6967fi;
6968
6969 eval "$ac_cv_use_postscript"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_POSTSCRIPT" = yes; then
6975 echo "$as_me:$LINENO: result: yes" >&5
6976echo "${ECHO_T}yes" >&6
6977 else
6978 echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6
6980 fi
6981
6982
6983
6984
6985
6986 enablestring=
6987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6988echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6989 no_cache=0
6990 # Check whether --enable-prologio or --disable-prologio was given.
6991if test "${enable_prologio+set}" = set; then
6992 enableval="$enable_prologio"
6993
6994 if test "$enableval" = yes; then
6995 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6996 else
6997 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6998 fi
6999
7000else
7001
7002 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7003 if test "x$LINE" != x ; then
7004 eval "DEFAULT_$LINE"
7005 else
7006 no_cache=1
7007 fi
7008
7009 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7010
7011fi;
7012
7013 eval "$ac_cv_use_prologio"
7014 if test "$no_cache" != 1; then
7015 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7016 fi
7017
7018 if test "$wxUSE_PROLOGIO" = yes; then
7019 echo "$as_me:$LINENO: result: yes" >&5
7020echo "${ECHO_T}yes" >&6
7021 else
7022 echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6
7024 fi
7025
7026
7027 enablestring=
7028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7029echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7030 no_cache=0
7031 # Check whether --enable-resources or --disable-resources was given.
7032if test "${enable_resources+set}" = set; then
7033 enableval="$enable_resources"
7034
7035 if test "$enableval" = yes; then
7036 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7037 else
7038 ac_cv_use_resources='wxUSE_RESOURCES=no'
7039 fi
7040
7041else
7042
7043 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7044 if test "x$LINE" != x ; then
7045 eval "DEFAULT_$LINE"
7046 else
7047 no_cache=1
7048 fi
7049
7050 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7051
7052fi;
7053
7054 eval "$ac_cv_use_resources"
7055 if test "$no_cache" != 1; then
7056 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7057 fi
7058
7059 if test "$wxUSE_RESOURCES" = yes; then
7060 echo "$as_me:$LINENO: result: yes" >&5
7061echo "${ECHO_T}yes" >&6
7062 else
7063 echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6
7065 fi
7066
7067
7068
7069
7070 enablestring=
7071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7072echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7073 no_cache=0
7074 # Check whether --enable-clipboard or --disable-clipboard was given.
7075if test "${enable_clipboard+set}" = set; then
7076 enableval="$enable_clipboard"
7077
7078 if test "$enableval" = yes; then
7079 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7080 else
7081 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7082 fi
7083
7084else
7085
7086 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7087 if test "x$LINE" != x ; then
7088 eval "DEFAULT_$LINE"
7089 else
7090 no_cache=1
7091 fi
7092
7093 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7094
7095fi;
7096
7097 eval "$ac_cv_use_clipboard"
7098 if test "$no_cache" != 1; then
7099 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7100 fi
7101
7102 if test "$wxUSE_CLIPBOARD" = yes; then
7103 echo "$as_me:$LINENO: result: yes" >&5
7104echo "${ECHO_T}yes" >&6
7105 else
7106 echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6
7108 fi
7109
7110
7111 enablestring=
7112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7113echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7114 no_cache=0
7115 # Check whether --enable-dnd or --disable-dnd was given.
7116if test "${enable_dnd+set}" = set; then
7117 enableval="$enable_dnd"
7118
7119 if test "$enableval" = yes; then
7120 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7121 else
7122 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7123 fi
7124
7125else
7126
7127 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7128 if test "x$LINE" != x ; then
7129 eval "DEFAULT_$LINE"
7130 else
7131 no_cache=1
7132 fi
7133
7134 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7135
7136fi;
7137
7138 eval "$ac_cv_use_dnd"
7139 if test "$no_cache" != 1; then
7140 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7141 fi
7142
7143 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7144 echo "$as_me:$LINENO: result: yes" >&5
7145echo "${ECHO_T}yes" >&6
7146 else
7147 echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6
7149 fi
7150
7151
7152 enablestring=
7153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7154echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7155 no_cache=0
7156 # Check whether --enable-metafile or --disable-metafile was given.
7157if test "${enable_metafile+set}" = set; then
7158 enableval="$enable_metafile"
7159
7160 if test "$enableval" = yes; then
7161 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7162 else
7163 ac_cv_use_metafile='wxUSE_METAFILE=no'
7164 fi
7165
7166else
7167
7168 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7169 if test "x$LINE" != x ; then
7170 eval "DEFAULT_$LINE"
7171 else
7172 no_cache=1
7173 fi
7174
7175 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7176
7177fi;
7178
7179 eval "$ac_cv_use_metafile"
7180 if test "$no_cache" != 1; then
7181 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7182 fi
7183
7184 if test "$wxUSE_METAFILE" = yes; then
7185 echo "$as_me:$LINENO: result: yes" >&5
7186echo "${ECHO_T}yes" >&6
7187 else
7188 echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
7190 fi
7191
7192
7193
7194
7195
7196 enablestring=
7197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7198echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7199 no_cache=0
7200 # Check whether --enable-controls or --disable-controls was given.
7201if test "${enable_controls+set}" = set; then
7202 enableval="$enable_controls"
7203
7204 if test "$enableval" = yes; then
7205 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7206 else
7207 ac_cv_use_controls='wxUSE_CONTROLS=no'
7208 fi
7209
7210else
7211
7212 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7220
7221fi;
7222
7223 eval "$ac_cv_use_controls"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_CONTROLS" = yes; then
7229 echo "$as_me:$LINENO: result: yes" >&5
7230echo "${ECHO_T}yes" >&6
7231 else
7232 echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
7234 fi
7235
7236
7237if test "$wxUSE_CONTROLS" = "yes"; then
7238 DEFAULT_wxUSE_ACCEL=yes
7239 DEFAULT_wxUSE_BMPBUTTON=yes
7240 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7241 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7242 DEFAULT_wxUSE_CARET=yes
7243 DEFAULT_wxUSE_COMBOBOX=yes
7244 DEFAULT_wxUSE_CHECKBOX=yes
7245 DEFAULT_wxUSE_CHECKLISTBOX=yes
7246 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7247 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7248 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7249 DEFAULT_wxUSE_GAUGE=yes
7250 DEFAULT_wxUSE_GRID=yes
7251 DEFAULT_wxUSE_IMAGLIST=yes
7252 DEFAULT_wxUSE_LISTBOOK=yes
7253 DEFAULT_wxUSE_LISTBOX=yes
7254 DEFAULT_wxUSE_LISTCTRL=yes
7255 DEFAULT_wxUSE_NOTEBOOK=yes
7256 DEFAULT_wxUSE_RADIOBOX=yes
7257 DEFAULT_wxUSE_RADIOBTN=yes
7258 DEFAULT_wxUSE_SASH=yes
7259 DEFAULT_wxUSE_SCROLLBAR=yes
7260 DEFAULT_wxUSE_SLIDER=yes
7261 DEFAULT_wxUSE_SPINBTN=yes
7262 DEFAULT_wxUSE_SPINCTRL=yes
7263 DEFAULT_wxUSE_SPLITTER=yes
7264 DEFAULT_wxUSE_STATBMP=yes
7265 DEFAULT_wxUSE_STATBOX=yes
7266 DEFAULT_wxUSE_STATLINE=yes
7267 DEFAULT_wxUSE_STATUSBAR=yes
7268 DEFAULT_wxUSE_TAB_DIALOG=yes
7269 DEFAULT_wxUSE_TOGGLEBTN=yes
7270 DEFAULT_wxUSE_TOOLBAR=yes
7271 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7272 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7273 DEFAULT_wxUSE_TOOLTIPS=yes
7274 DEFAULT_wxUSE_TREECTRL=yes
7275 DEFAULT_wxUSE_POPUPWIN=yes
7276 DEFAULT_wxUSE_TIPWINDOW=yes
7277elif test "$wxUSE_CONTROLS" = "no"; then
7278 DEFAULT_wxUSE_ACCEL=no
7279 DEFAULT_wxUSE_BMPBUTTON=no
7280 DEFAULT_wxUSE_BUTTON=no
7281 DEFAULT_wxUSE_CALCTRL=no
7282 DEFAULT_wxUSE_CARET=no
7283 DEFAULT_wxUSE_COMBOBOX=no
7284 DEFAULT_wxUSE_CHECKBOX=no
7285 DEFAULT_wxUSE_CHECKLISTBOX=no
7286 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7287 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7288 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7289 DEFAULT_wxUSE_GAUGE=no
7290 DEFAULT_wxUSE_GRID=no
7291 DEFAULT_wxUSE_IMAGLIST=no
7292 DEFAULT_wxUSE_LISTBOOK=no
7293 DEFAULT_wxUSE_LISTBOX=no
7294 DEFAULT_wxUSE_LISTCTRL=no
7295 DEFAULT_wxUSE_NOTEBOOK=no
7296 DEFAULT_wxUSE_RADIOBOX=no
7297 DEFAULT_wxUSE_RADIOBTN=no
7298 DEFAULT_wxUSE_SASH=no
7299 DEFAULT_wxUSE_SCROLLBAR=no
7300 DEFAULT_wxUSE_SLIDER=no
7301 DEFAULT_wxUSE_SPINBTN=no
7302 DEFAULT_wxUSE_SPINCTRL=no
7303 DEFAULT_wxUSE_SPLITTER=no
7304 DEFAULT_wxUSE_STATBMP=no
7305 DEFAULT_wxUSE_STATBOX=no
7306 DEFAULT_wxUSE_STATLINE=no
7307 DEFAULT_wxUSE_STATUSBAR=no
7308 DEFAULT_wxUSE_TAB_DIALOG=no
7309 DEFAULT_wxUSE_TOGGLEBTN=no
7310 DEFAULT_wxUSE_TOOLBAR=no
7311 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7312 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7313 DEFAULT_wxUSE_TOOLTIPS=no
7314 DEFAULT_wxUSE_TREECTRL=no
7315 DEFAULT_wxUSE_POPUPWIN=no
7316 DEFAULT_wxUSE_TIPWINDOW=no
7317fi
7318
a848cd7e
SC
7319
7320 enablestring=
7321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7322echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7323 no_cache=0
7324 # Check whether --enable-accel or --disable-accel was given.
7325if test "${enable_accel+set}" = set; then
7326 enableval="$enable_accel"
7327
7328 if test "$enableval" = yes; then
7329 ac_cv_use_accel='wxUSE_ACCEL=yes'
7330 else
7331 ac_cv_use_accel='wxUSE_ACCEL=no'
7332 fi
7333
7334else
7335
7336 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7344
7345fi;
7346
7347 eval "$ac_cv_use_accel"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_ACCEL" = yes; then
7353 echo "$as_me:$LINENO: result: yes" >&5
7354echo "${ECHO_T}yes" >&6
7355 else
7356 echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6
7358 fi
7359
7360
7361 enablestring=
7362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7363echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7364 no_cache=0
7365 # Check whether --enable-button or --disable-button was given.
7366if test "${enable_button+set}" = set; then
7367 enableval="$enable_button"
7368
7369 if test "$enableval" = yes; then
7370 ac_cv_use_button='wxUSE_BUTTON=yes'
7371 else
7372 ac_cv_use_button='wxUSE_BUTTON=no'
7373 fi
7374
7375else
7376
7377 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7378 if test "x$LINE" != x ; then
7379 eval "DEFAULT_$LINE"
7380 else
7381 no_cache=1
7382 fi
7383
7384 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7385
7386fi;
7387
7388 eval "$ac_cv_use_button"
7389 if test "$no_cache" != 1; then
7390 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7391 fi
7392
7393 if test "$wxUSE_BUTTON" = yes; then
7394 echo "$as_me:$LINENO: result: yes" >&5
7395echo "${ECHO_T}yes" >&6
7396 else
7397 echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
7399 fi
7400
7401
7402 enablestring=
7403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7404echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7405 no_cache=0
7406 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7407if test "${enable_bmpbutton+set}" = set; then
7408 enableval="$enable_bmpbutton"
7409
7410 if test "$enableval" = yes; then
7411 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7412 else
7413 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7414 fi
7415
7416else
7417
7418 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7419 if test "x$LINE" != x ; then
7420 eval "DEFAULT_$LINE"
7421 else
7422 no_cache=1
7423 fi
7424
7425 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7426
7427fi;
7428
7429 eval "$ac_cv_use_bmpbutton"
7430 if test "$no_cache" != 1; then
7431 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7432 fi
7433
7434 if test "$wxUSE_BMPBUTTON" = yes; then
7435 echo "$as_me:$LINENO: result: yes" >&5
7436echo "${ECHO_T}yes" >&6
7437 else
7438 echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6
7440 fi
7441
7442
7443 enablestring=
7444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7445echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7446 no_cache=0
7447 # Check whether --enable-calendar or --disable-calendar was given.
7448if test "${enable_calendar+set}" = set; then
7449 enableval="$enable_calendar"
7450
7451 if test "$enableval" = yes; then
7452 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7453 else
7454 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7455 fi
7456
7457else
7458
7459 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7460 if test "x$LINE" != x ; then
7461 eval "DEFAULT_$LINE"
7462 else
7463 no_cache=1
7464 fi
7465
7466 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7467
7468fi;
7469
7470 eval "$ac_cv_use_calendar"
7471 if test "$no_cache" != 1; then
7472 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7473 fi
7474
7475 if test "$wxUSE_CALCTRL" = yes; then
7476 echo "$as_me:$LINENO: result: yes" >&5
7477echo "${ECHO_T}yes" >&6
7478 else
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
7481 fi
7482
7483
7484 enablestring=
7485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7486echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7487 no_cache=0
7488 # Check whether --enable-caret or --disable-caret was given.
7489if test "${enable_caret+set}" = set; then
7490 enableval="$enable_caret"
7491
7492 if test "$enableval" = yes; then
7493 ac_cv_use_caret='wxUSE_CARET=yes'
7494 else
7495 ac_cv_use_caret='wxUSE_CARET=no'
7496 fi
7497
7498else
7499
7500 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7501 if test "x$LINE" != x ; then
7502 eval "DEFAULT_$LINE"
7503 else
7504 no_cache=1
7505 fi
7506
7507 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7508
7509fi;
7510
7511 eval "$ac_cv_use_caret"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_CARET" = yes; then
7517 echo "$as_me:$LINENO: result: yes" >&5
7518echo "${ECHO_T}yes" >&6
7519 else
7520 echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
7522 fi
7523
7524
7525 enablestring=
7526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7527echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7528 no_cache=0
7529 # Check whether --enable-checkbox or --disable-checkbox was given.
7530if test "${enable_checkbox+set}" = set; then
7531 enableval="$enable_checkbox"
7532
7533 if test "$enableval" = yes; then
7534 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7535 else
7536 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7537 fi
7538
7539else
7540
7541 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7542 if test "x$LINE" != x ; then
7543 eval "DEFAULT_$LINE"
7544 else
7545 no_cache=1
7546 fi
7547
7548 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7549
7550fi;
7551
7552 eval "$ac_cv_use_checkbox"
7553 if test "$no_cache" != 1; then
7554 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7555 fi
7556
7557 if test "$wxUSE_CHECKBOX" = yes; then
7558 echo "$as_me:$LINENO: result: yes" >&5
7559echo "${ECHO_T}yes" >&6
7560 else
7561 echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6
7563 fi
7564
7565
7566 enablestring=
7567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7568echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7569 no_cache=0
7570 # Check whether --enable-checklst or --disable-checklst was given.
7571if test "${enable_checklst+set}" = set; then
7572 enableval="$enable_checklst"
7573
7574 if test "$enableval" = yes; then
7575 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7576 else
7577 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7578 fi
7579
7580else
7581
7582 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7583 if test "x$LINE" != x ; then
7584 eval "DEFAULT_$LINE"
7585 else
7586 no_cache=1
7587 fi
7588
7589 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7590
7591fi;
7592
7593 eval "$ac_cv_use_checklst"
7594 if test "$no_cache" != 1; then
7595 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7596 fi
7597
7598 if test "$wxUSE_CHECKLST" = yes; then
7599 echo "$as_me:$LINENO: result: yes" >&5
7600echo "${ECHO_T}yes" >&6
7601 else
7602 echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6
7604 fi
7605
7606
7607 enablestring=
7608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7609echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7610 no_cache=0
7611 # Check whether --enable-choice or --disable-choice was given.
7612if test "${enable_choice+set}" = set; then
7613 enableval="$enable_choice"
7614
7615 if test "$enableval" = yes; then
7616 ac_cv_use_choice='wxUSE_CHOICE=yes'
7617 else
7618 ac_cv_use_choice='wxUSE_CHOICE=no'
7619 fi
7620
7621else
7622
7623 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7624 if test "x$LINE" != x ; then
7625 eval "DEFAULT_$LINE"
7626 else
7627 no_cache=1
7628 fi
7629
7630 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7631
7632fi;
7633
7634 eval "$ac_cv_use_choice"
7635 if test "$no_cache" != 1; then
7636 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7637 fi
7638
7639 if test "$wxUSE_CHOICE" = yes; then
7640 echo "$as_me:$LINENO: result: yes" >&5
7641echo "${ECHO_T}yes" >&6
7642 else
7643 echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6
7645 fi
7646
7647
92bbdbcd
WS
7648 enablestring=
7649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7650echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7651 no_cache=0
7652 # Check whether --enable-choicebook or --disable-choicebook was given.
7653if test "${enable_choicebook+set}" = set; then
7654 enableval="$enable_choicebook"
7655
7656 if test "$enableval" = yes; then
7657 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7658 else
7659 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7660 fi
7661
7662else
7663
7664 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7665 if test "x$LINE" != x ; then
7666 eval "DEFAULT_$LINE"
7667 else
7668 no_cache=1
7669 fi
7670
7671 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7672
7673fi;
7674
7675 eval "$ac_cv_use_choicebook"
7676 if test "$no_cache" != 1; then
7677 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7678 fi
7679
7680 if test "$wxUSE_CHOICEBOOK" = yes; then
7681 echo "$as_me:$LINENO: result: yes" >&5
7682echo "${ECHO_T}yes" >&6
7683 else
7684 echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6
7686 fi
7687
7688
a848cd7e
SC
7689 enablestring=
7690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7691echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7692 no_cache=0
7693 # Check whether --enable-combobox or --disable-combobox was given.
7694if test "${enable_combobox+set}" = set; then
7695 enableval="$enable_combobox"
7696
7697 if test "$enableval" = yes; then
7698 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7699 else
7700 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7701 fi
7702
7703else
7704
7705 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7706 if test "x$LINE" != x ; then
7707 eval "DEFAULT_$LINE"
7708 else
7709 no_cache=1
7710 fi
7711
7712 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7713
7714fi;
7715
7716 eval "$ac_cv_use_combobox"
7717 if test "$no_cache" != 1; then
7718 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7719 fi
7720
7721 if test "$wxUSE_COMBOBOX" = yes; then
7722 echo "$as_me:$LINENO: result: yes" >&5
7723echo "${ECHO_T}yes" >&6
7724 else
7725 echo "$as_me:$LINENO: result: no" >&5
7726echo "${ECHO_T}no" >&6
7727 fi
7728
7729
da98e9be
VZ
7730 enablestring=
7731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7732echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7733 no_cache=0
7734 # Check whether --enable-datepick or --disable-datepick was given.
7735if test "${enable_datepick+set}" = set; then
7736 enableval="$enable_datepick"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7740 else
7741 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7742 fi
7743
7744else
7745
7746 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7754
7755fi;
7756
7757 eval "$ac_cv_use_datepick"
7758 if test "$no_cache" != 1; then
7759 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7760 fi
7761
7762 if test "$wxUSE_DATEPICKCTRL" = yes; then
7763 echo "$as_me:$LINENO: result: yes" >&5
7764echo "${ECHO_T}yes" >&6
7765 else
7766 echo "$as_me:$LINENO: result: no" >&5
7767echo "${ECHO_T}no" >&6
7768 fi
7769
7770
a848cd7e
SC
7771 enablestring=
7772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7773echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7774 no_cache=0
7775 # Check whether --enable-display or --disable-display was given.
7776if test "${enable_display+set}" = set; then
7777 enableval="$enable_display"
7778
7779 if test "$enableval" = yes; then
7780 ac_cv_use_display='wxUSE_DISPLAY=yes'
7781 else
7782 ac_cv_use_display='wxUSE_DISPLAY=no'
7783 fi
7784
7785else
7786
7787 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7788 if test "x$LINE" != x ; then
7789 eval "DEFAULT_$LINE"
7790 else
7791 no_cache=1
7792 fi
7793
7794 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7795
7796fi;
7797
7798 eval "$ac_cv_use_display"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_DISPLAY" = yes; then
7804 echo "$as_me:$LINENO: result: yes" >&5
7805echo "${ECHO_T}yes" >&6
7806 else
7807 echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6
7809 fi
7810
7811
7812 enablestring=
7813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7814echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7815 no_cache=0
7816 # Check whether --enable-gauge or --disable-gauge was given.
7817if test "${enable_gauge+set}" = set; then
7818 enableval="$enable_gauge"
7819
7820 if test "$enableval" = yes; then
7821 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7822 else
7823 ac_cv_use_gauge='wxUSE_GAUGE=no'
7824 fi
7825
7826else
7827
7828 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7829 if test "x$LINE" != x ; then
7830 eval "DEFAULT_$LINE"
7831 else
7832 no_cache=1
7833 fi
7834
7835 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7836
7837fi;
7838
7839 eval "$ac_cv_use_gauge"
7840 if test "$no_cache" != 1; then
7841 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7842 fi
7843
7844 if test "$wxUSE_GAUGE" = yes; then
7845 echo "$as_me:$LINENO: result: yes" >&5
7846echo "${ECHO_T}yes" >&6
7847 else
7848 echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6
7850 fi
7851
7852
7853 enablestring=
7854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7855echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7856 no_cache=0
7857 # Check whether --enable-grid or --disable-grid was given.
7858if test "${enable_grid+set}" = set; then
7859 enableval="$enable_grid"
7860
7861 if test "$enableval" = yes; then
7862 ac_cv_use_grid='wxUSE_GRID=yes'
7863 else
7864 ac_cv_use_grid='wxUSE_GRID=no'
7865 fi
7866
7867else
7868
7869 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7870 if test "x$LINE" != x ; then
7871 eval "DEFAULT_$LINE"
7872 else
7873 no_cache=1
7874 fi
7875
7876 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7877
7878fi;
7879
7880 eval "$ac_cv_use_grid"
7881 if test "$no_cache" != 1; then
7882 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7883 fi
7884
7885 if test "$wxUSE_GRID" = yes; then
7886 echo "$as_me:$LINENO: result: yes" >&5
7887echo "${ECHO_T}yes" >&6
7888 else
7889 echo "$as_me:$LINENO: result: no" >&5
7890echo "${ECHO_T}no" >&6
7891 fi
7892
7893
7894 enablestring=
7895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7896echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7897 no_cache=0
7898 # Check whether --enable-imaglist or --disable-imaglist was given.
7899if test "${enable_imaglist+set}" = set; then
7900 enableval="$enable_imaglist"
7901
7902 if test "$enableval" = yes; then
7903 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7904 else
7905 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7906 fi
7907
7908else
7909
7910 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7911 if test "x$LINE" != x ; then
7912 eval "DEFAULT_$LINE"
7913 else
7914 no_cache=1
7915 fi
7916
7917 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7918
7919fi;
7920
7921 eval "$ac_cv_use_imaglist"
7922 if test "$no_cache" != 1; then
7923 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7924 fi
7925
7926 if test "$wxUSE_IMAGLIST" = yes; then
7927 echo "$as_me:$LINENO: result: yes" >&5
7928echo "${ECHO_T}yes" >&6
7929 else
7930 echo "$as_me:$LINENO: result: no" >&5
7931echo "${ECHO_T}no" >&6
7932 fi
7933
7934
7935 enablestring=
7936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7937echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7938 no_cache=0
7939 # Check whether --enable-listbook or --disable-listbook was given.
7940if test "${enable_listbook+set}" = set; then
7941 enableval="$enable_listbook"
7942
7943 if test "$enableval" = yes; then
7944 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7945 else
7946 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7947 fi
7948
7949else
7950
7951 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7952 if test "x$LINE" != x ; then
7953 eval "DEFAULT_$LINE"
7954 else
7955 no_cache=1
7956 fi
7957
7958 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7959
7960fi;
7961
7962 eval "$ac_cv_use_listbook"
7963 if test "$no_cache" != 1; then
7964 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7965 fi
7966
7967 if test "$wxUSE_LISTBOOK" = yes; then
7968 echo "$as_me:$LINENO: result: yes" >&5
7969echo "${ECHO_T}yes" >&6
7970 else
7971 echo "$as_me:$LINENO: result: no" >&5
7972echo "${ECHO_T}no" >&6
7973 fi
7974
7975
7976 enablestring=
7977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7978echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7979 no_cache=0
7980 # Check whether --enable-listbox or --disable-listbox was given.
7981if test "${enable_listbox+set}" = set; then
7982 enableval="$enable_listbox"
7983
7984 if test "$enableval" = yes; then
7985 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7986 else
7987 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7988 fi
7989
7990else
7991
7992 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7993 if test "x$LINE" != x ; then
7994 eval "DEFAULT_$LINE"
7995 else
7996 no_cache=1
7997 fi
7998
7999 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8000
8001fi;
8002
8003 eval "$ac_cv_use_listbox"
8004 if test "$no_cache" != 1; then
8005 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8006 fi
8007
8008 if test "$wxUSE_LISTBOX" = yes; then
8009 echo "$as_me:$LINENO: result: yes" >&5
8010echo "${ECHO_T}yes" >&6
8011 else
8012 echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6
8014 fi
8015
8016
8017 enablestring=
8018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8019echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8020 no_cache=0
8021 # Check whether --enable-listctrl or --disable-listctrl was given.
8022if test "${enable_listctrl+set}" = set; then
8023 enableval="$enable_listctrl"
8024
8025 if test "$enableval" = yes; then
8026 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8027 else
8028 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8029 fi
8030
8031else
8032
8033 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8034 if test "x$LINE" != x ; then
8035 eval "DEFAULT_$LINE"
8036 else
8037 no_cache=1
8038 fi
8039
8040 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8041
8042fi;
8043
8044 eval "$ac_cv_use_listctrl"
8045 if test "$no_cache" != 1; then
8046 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8047 fi
8048
8049 if test "$wxUSE_LISTCTRL" = yes; then
8050 echo "$as_me:$LINENO: result: yes" >&5
8051echo "${ECHO_T}yes" >&6
8052 else
8053 echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6
8055 fi
8056
8057
8058 enablestring=
8059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8060echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8061 no_cache=0
8062 # Check whether --enable-notebook or --disable-notebook was given.
8063if test "${enable_notebook+set}" = set; then
8064 enableval="$enable_notebook"
8065
8066 if test "$enableval" = yes; then
8067 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8068 else
8069 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8070 fi
8071
8072else
8073
8074 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8075 if test "x$LINE" != x ; then
8076 eval "DEFAULT_$LINE"
8077 else
8078 no_cache=1
8079 fi
8080
8081 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8082
8083fi;
8084
8085 eval "$ac_cv_use_notebook"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_NOTEBOOK" = yes; then
8091 echo "$as_me:$LINENO: result: yes" >&5
8092echo "${ECHO_T}yes" >&6
8093 else
8094 echo "$as_me:$LINENO: result: no" >&5
8095echo "${ECHO_T}no" >&6
8096 fi
8097
8098
8099 enablestring=
8100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8101echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8102 no_cache=0
8103 # Check whether --enable-radiobox or --disable-radiobox was given.
8104if test "${enable_radiobox+set}" = set; then
8105 enableval="$enable_radiobox"
8106
8107 if test "$enableval" = yes; then
8108 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8109 else
8110 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8111 fi
8112
8113else
8114
8115 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8116 if test "x$LINE" != x ; then
8117 eval "DEFAULT_$LINE"
8118 else
8119 no_cache=1
8120 fi
8121
8122 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8123
8124fi;
8125
8126 eval "$ac_cv_use_radiobox"
8127 if test "$no_cache" != 1; then
8128 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8129 fi
8130
8131 if test "$wxUSE_RADIOBOX" = yes; then
8132 echo "$as_me:$LINENO: result: yes" >&5
8133echo "${ECHO_T}yes" >&6
8134 else
8135 echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
8137 fi
8138
8139
8140 enablestring=
8141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8142echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8143 no_cache=0
8144 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8145if test "${enable_radiobtn+set}" = set; then
8146 enableval="$enable_radiobtn"
8147
8148 if test "$enableval" = yes; then
8149 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8150 else
8151 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8152 fi
8153
8154else
8155
8156 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8157 if test "x$LINE" != x ; then
8158 eval "DEFAULT_$LINE"
8159 else
8160 no_cache=1
8161 fi
8162
8163 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8164
8165fi;
8166
8167 eval "$ac_cv_use_radiobtn"
8168 if test "$no_cache" != 1; then
8169 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8170 fi
8171
8172 if test "$wxUSE_RADIOBTN" = yes; then
8173 echo "$as_me:$LINENO: result: yes" >&5
8174echo "${ECHO_T}yes" >&6
8175 else
8176 echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6
8178 fi
8179
8180
8181 enablestring=
8182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8183echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8184 no_cache=0
8185 # Check whether --enable-sash or --disable-sash was given.
8186if test "${enable_sash+set}" = set; then
8187 enableval="$enable_sash"
8188
8189 if test "$enableval" = yes; then
8190 ac_cv_use_sash='wxUSE_SASH=yes'
8191 else
8192 ac_cv_use_sash='wxUSE_SASH=no'
8193 fi
8194
8195else
8196
8197 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8198 if test "x$LINE" != x ; then
8199 eval "DEFAULT_$LINE"
8200 else
8201 no_cache=1
8202 fi
8203
8204 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8205
8206fi;
8207
8208 eval "$ac_cv_use_sash"
8209 if test "$no_cache" != 1; then
8210 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8211 fi
8212
8213 if test "$wxUSE_SASH" = yes; then
8214 echo "$as_me:$LINENO: result: yes" >&5
8215echo "${ECHO_T}yes" >&6
8216 else
8217 echo "$as_me:$LINENO: result: no" >&5
8218echo "${ECHO_T}no" >&6
8219 fi
8220
8221
8222 enablestring=
8223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8224echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8225 no_cache=0
8226 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8227if test "${enable_scrollbar+set}" = set; then
8228 enableval="$enable_scrollbar"
8229
8230 if test "$enableval" = yes; then
8231 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8232 else
8233 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8234 fi
8235
8236else
8237
8238 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8239 if test "x$LINE" != x ; then
8240 eval "DEFAULT_$LINE"
8241 else
8242 no_cache=1
8243 fi
8244
8245 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8246
8247fi;
8248
8249 eval "$ac_cv_use_scrollbar"
8250 if test "$no_cache" != 1; then
8251 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8252 fi
8253
8254 if test "$wxUSE_SCROLLBAR" = yes; then
8255 echo "$as_me:$LINENO: result: yes" >&5
8256echo "${ECHO_T}yes" >&6
8257 else
8258 echo "$as_me:$LINENO: result: no" >&5
8259echo "${ECHO_T}no" >&6
8260 fi
8261
8262
8263 enablestring=
8264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8265echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8266 no_cache=0
8267 # Check whether --enable-slider or --disable-slider was given.
8268if test "${enable_slider+set}" = set; then
8269 enableval="$enable_slider"
8270
8271 if test "$enableval" = yes; then
8272 ac_cv_use_slider='wxUSE_SLIDER=yes'
8273 else
8274 ac_cv_use_slider='wxUSE_SLIDER=no'
8275 fi
8276
8277else
8278
8279 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8280 if test "x$LINE" != x ; then
8281 eval "DEFAULT_$LINE"
8282 else
8283 no_cache=1
8284 fi
8285
8286 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8287
8288fi;
8289
8290 eval "$ac_cv_use_slider"
8291 if test "$no_cache" != 1; then
8292 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8293 fi
8294
8295 if test "$wxUSE_SLIDER" = yes; then
8296 echo "$as_me:$LINENO: result: yes" >&5
8297echo "${ECHO_T}yes" >&6
8298 else
8299 echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
8301 fi
8302
8303
8304 enablestring=
8305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8306echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8307 no_cache=0
8308 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8309if test "${enable_spinbtn+set}" = set; then
8310 enableval="$enable_spinbtn"
8311
8312 if test "$enableval" = yes; then
8313 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8314 else
8315 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8316 fi
8317
8318else
8319
8320 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8321 if test "x$LINE" != x ; then
8322 eval "DEFAULT_$LINE"
8323 else
8324 no_cache=1
8325 fi
8326
8327 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8328
8329fi;
8330
8331 eval "$ac_cv_use_spinbtn"
8332 if test "$no_cache" != 1; then
8333 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8334 fi
8335
8336 if test "$wxUSE_SPINBTN" = yes; then
8337 echo "$as_me:$LINENO: result: yes" >&5
8338echo "${ECHO_T}yes" >&6
8339 else
8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
8342 fi
8343
8344
8345 enablestring=
8346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8347echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8348 no_cache=0
8349 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8350if test "${enable_spinctrl+set}" = set; then
8351 enableval="$enable_spinctrl"
8352
8353 if test "$enableval" = yes; then
8354 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8355 else
8356 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8357 fi
8358
8359else
8360
8361 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
8368 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8369
8370fi;
8371
8372 eval "$ac_cv_use_spinctrl"
8373 if test "$no_cache" != 1; then
8374 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8375 fi
8376
8377 if test "$wxUSE_SPINCTRL" = yes; then
8378 echo "$as_me:$LINENO: result: yes" >&5
8379echo "${ECHO_T}yes" >&6
8380 else
8381 echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6
8383 fi
8384
8385
8386 enablestring=
8387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8388echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8389 no_cache=0
8390 # Check whether --enable-splitter or --disable-splitter was given.
8391if test "${enable_splitter+set}" = set; then
8392 enableval="$enable_splitter"
8393
8394 if test "$enableval" = yes; then
8395 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8396 else
8397 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8398 fi
8399
8400else
8401
8402 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
8409 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8410
8411fi;
8412
8413 eval "$ac_cv_use_splitter"
8414 if test "$no_cache" != 1; then
8415 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8416 fi
8417
8418 if test "$wxUSE_SPLITTER" = yes; then
8419 echo "$as_me:$LINENO: result: yes" >&5
8420echo "${ECHO_T}yes" >&6
8421 else
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
8424 fi
8425
8426
8427 enablestring=
8428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8429echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8430 no_cache=0
8431 # Check whether --enable-statbmp or --disable-statbmp was given.
8432if test "${enable_statbmp+set}" = set; then
8433 enableval="$enable_statbmp"
8434
8435 if test "$enableval" = yes; then
8436 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8437 else
8438 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8439 fi
8440
8441else
8442
8443 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8444 if test "x$LINE" != x ; then
8445 eval "DEFAULT_$LINE"
8446 else
8447 no_cache=1
8448 fi
8449
8450 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8451
8452fi;
8453
8454 eval "$ac_cv_use_statbmp"
8455 if test "$no_cache" != 1; then
8456 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8457 fi
8458
8459 if test "$wxUSE_STATBMP" = yes; then
8460 echo "$as_me:$LINENO: result: yes" >&5
8461echo "${ECHO_T}yes" >&6
8462 else
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
8465 fi
8466
8467
8468 enablestring=
8469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8470echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8471 no_cache=0
8472 # Check whether --enable-statbox or --disable-statbox was given.
8473if test "${enable_statbox+set}" = set; then
8474 enableval="$enable_statbox"
8475
8476 if test "$enableval" = yes; then
8477 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8478 else
8479 ac_cv_use_statbox='wxUSE_STATBOX=no'
8480 fi
8481
8482else
8483
8484 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8485 if test "x$LINE" != x ; then
8486 eval "DEFAULT_$LINE"
8487 else
8488 no_cache=1
8489 fi
8490
8491 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8492
8493fi;
8494
8495 eval "$ac_cv_use_statbox"
8496 if test "$no_cache" != 1; then
8497 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8498 fi
8499
8500 if test "$wxUSE_STATBOX" = yes; then
8501 echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6
8503 else
8504 echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6
8506 fi
8507
8508
8509 enablestring=
8510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8511echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8512 no_cache=0
8513 # Check whether --enable-statline or --disable-statline was given.
8514if test "${enable_statline+set}" = set; then
8515 enableval="$enable_statline"
8516
8517 if test "$enableval" = yes; then
8518 ac_cv_use_statline='wxUSE_STATLINE=yes'
8519 else
8520 ac_cv_use_statline='wxUSE_STATLINE=no'
8521 fi
8522
8523else
8524
8525 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8526 if test "x$LINE" != x ; then
8527 eval "DEFAULT_$LINE"
8528 else
8529 no_cache=1
8530 fi
8531
8532 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8533
8534fi;
8535
8536 eval "$ac_cv_use_statline"
8537 if test "$no_cache" != 1; then
8538 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8539 fi
8540
8541 if test "$wxUSE_STATLINE" = yes; then
8542 echo "$as_me:$LINENO: result: yes" >&5
8543echo "${ECHO_T}yes" >&6
8544 else
8545 echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
8547 fi
8548
8549
8550 enablestring=
8551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8552echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8553 no_cache=0
8554 # Check whether --enable-stattext or --disable-stattext was given.
8555if test "${enable_stattext+set}" = set; then
8556 enableval="$enable_stattext"
8557
8558 if test "$enableval" = yes; then
8559 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8560 else
8561 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8562 fi
8563
8564else
8565
8566 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8567 if test "x$LINE" != x ; then
8568 eval "DEFAULT_$LINE"
8569 else
8570 no_cache=1
8571 fi
8572
8573 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8574
8575fi;
8576
8577 eval "$ac_cv_use_stattext"
8578 if test "$no_cache" != 1; then
8579 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8580 fi
8581
8582 if test "$wxUSE_STATTEXT" = yes; then
8583 echo "$as_me:$LINENO: result: yes" >&5
8584echo "${ECHO_T}yes" >&6
8585 else
8586 echo "$as_me:$LINENO: result: no" >&5
8587echo "${ECHO_T}no" >&6
8588 fi
8589
8590
8591 enablestring=
8592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8593echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8594 no_cache=0
8595 # Check whether --enable-statusbar or --disable-statusbar was given.
8596if test "${enable_statusbar+set}" = set; then
8597 enableval="$enable_statusbar"
8598
8599 if test "$enableval" = yes; then
8600 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8601 else
8602 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8603 fi
8604
8605else
8606
8607 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8608 if test "x$LINE" != x ; then
8609 eval "DEFAULT_$LINE"
8610 else
8611 no_cache=1
8612 fi
8613
8614 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8615
8616fi;
8617
8618 eval "$ac_cv_use_statusbar"
8619 if test "$no_cache" != 1; then
8620 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8621 fi
8622
8623 if test "$wxUSE_STATUSBAR" = yes; then
8624 echo "$as_me:$LINENO: result: yes" >&5
8625echo "${ECHO_T}yes" >&6
8626 else
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
8629 fi
8630
8631
8632 enablestring=
8633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8634echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8635 no_cache=0
8636 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8637if test "${enable_tabdialog+set}" = set; then
8638 enableval="$enable_tabdialog"
8639
8640 if test "$enableval" = yes; then
8641 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8642 else
8643 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8644 fi
8645
8646else
8647
8648 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8649 if test "x$LINE" != x ; then
8650 eval "DEFAULT_$LINE"
8651 else
8652 no_cache=1
8653 fi
8654
8655 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8656
8657fi;
8658
8659 eval "$ac_cv_use_tabdialog"
8660 if test "$no_cache" != 1; then
8661 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8662 fi
8663
8664 if test "$wxUSE_TABDIALOG" = yes; then
8665 echo "$as_me:$LINENO: result: yes" >&5
8666echo "${ECHO_T}yes" >&6
8667 else
8668 echo "$as_me:$LINENO: result: no" >&5
8669echo "${ECHO_T}no" >&6
8670 fi
8671
8672
8673 enablestring=
8674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8675echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8676 no_cache=0
8677 # Check whether --enable-textctrl or --disable-textctrl was given.
8678if test "${enable_textctrl+set}" = set; then
8679 enableval="$enable_textctrl"
8680
8681 if test "$enableval" = yes; then
8682 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8683 else
8684 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8685 fi
8686
8687else
8688
8689 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8690 if test "x$LINE" != x ; then
8691 eval "DEFAULT_$LINE"
8692 else
8693 no_cache=1
8694 fi
8695
8696 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8697
8698fi;
8699
8700 eval "$ac_cv_use_textctrl"
8701 if test "$no_cache" != 1; then
8702 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8703 fi
8704
8705 if test "$wxUSE_TEXTCTRL" = yes; then
8706 echo "$as_me:$LINENO: result: yes" >&5
8707echo "${ECHO_T}yes" >&6
8708 else
8709 echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6
8711 fi
8712
8713
8714 enablestring=
8715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8716echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8717 no_cache=0
8718 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8719if test "${enable_togglebtn+set}" = set; then
8720 enableval="$enable_togglebtn"
8721
8722 if test "$enableval" = yes; then
8723 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8724 else
8725 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8726 fi
8727
8728else
8729
8730 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8731 if test "x$LINE" != x ; then
8732 eval "DEFAULT_$LINE"
8733 else
8734 no_cache=1
8735 fi
8736
8737 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8738
8739fi;
8740
8741 eval "$ac_cv_use_togglebtn"
8742 if test "$no_cache" != 1; then
8743 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8744 fi
8745
8746 if test "$wxUSE_TOGGLEBTN" = yes; then
8747 echo "$as_me:$LINENO: result: yes" >&5
8748echo "${ECHO_T}yes" >&6
8749 else
8750 echo "$as_me:$LINENO: result: no" >&5
8751echo "${ECHO_T}no" >&6
8752 fi
8753
8754
8755 enablestring=
8756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8757echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8758 no_cache=0
8759 # Check whether --enable-toolbar or --disable-toolbar was given.
8760if test "${enable_toolbar+set}" = set; then
8761 enableval="$enable_toolbar"
8762
8763 if test "$enableval" = yes; then
8764 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8765 else
8766 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8767 fi
8768
8769else
8770
8771 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8772 if test "x$LINE" != x ; then
8773 eval "DEFAULT_$LINE"
8774 else
8775 no_cache=1
8776 fi
8777
8778 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8779
8780fi;
8781
8782 eval "$ac_cv_use_toolbar"
8783 if test "$no_cache" != 1; then
8784 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8785 fi
8786
8787 if test "$wxUSE_TOOLBAR" = yes; then
8788 echo "$as_me:$LINENO: result: yes" >&5
8789echo "${ECHO_T}yes" >&6
8790 else
8791 echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
8793 fi
8794
8795
8796 enablestring=
8797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8798echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8799 no_cache=0
8800 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8801if test "${enable_tbarnative+set}" = set; then
8802 enableval="$enable_tbarnative"
8803
8804 if test "$enableval" = yes; then
8805 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8806 else
8807 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8808 fi
8809
8810else
8811
8812 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8813 if test "x$LINE" != x ; then
8814 eval "DEFAULT_$LINE"
8815 else
8816 no_cache=1
8817 fi
8818
8819 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8820
8821fi;
8822
8823 eval "$ac_cv_use_tbarnative"
8824 if test "$no_cache" != 1; then
8825 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8826 fi
8827
8828 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8829 echo "$as_me:$LINENO: result: yes" >&5
8830echo "${ECHO_T}yes" >&6
8831 else
8832 echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
8834 fi
8835
8836
8837 enablestring=
8838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8839echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8840 no_cache=0
8841 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8842if test "${enable_tbarsmpl+set}" = set; then
8843 enableval="$enable_tbarsmpl"
8844
8845 if test "$enableval" = yes; then
8846 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8847 else
8848 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8849 fi
8850
8851else
8852
8853 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8854 if test "x$LINE" != x ; then
8855 eval "DEFAULT_$LINE"
8856 else
8857 no_cache=1
8858 fi
8859
8860 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8861
8862fi;
8863
8864 eval "$ac_cv_use_tbarsmpl"
8865 if test "$no_cache" != 1; then
8866 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8867 fi
8868
8869 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8870 echo "$as_me:$LINENO: result: yes" >&5
8871echo "${ECHO_T}yes" >&6
8872 else
8873 echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6
8875 fi
8876
8877
8878 enablestring=
8879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8880echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8881 no_cache=0
8882 # Check whether --enable-treectrl or --disable-treectrl was given.
8883if test "${enable_treectrl+set}" = set; then
8884 enableval="$enable_treectrl"
8885
8886 if test "$enableval" = yes; then
8887 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8888 else
8889 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8890 fi
8891
8892else
8893
8894 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8895 if test "x$LINE" != x ; then
8896 eval "DEFAULT_$LINE"
8897 else
8898 no_cache=1
8899 fi
8900
8901 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8902
8903fi;
8904
8905 eval "$ac_cv_use_treectrl"
8906 if test "$no_cache" != 1; then
8907 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8908 fi
8909
8910 if test "$wxUSE_TREECTRL" = yes; then
8911 echo "$as_me:$LINENO: result: yes" >&5
8912echo "${ECHO_T}yes" >&6
8913 else
8914 echo "$as_me:$LINENO: result: no" >&5
8915echo "${ECHO_T}no" >&6
8916 fi
8917
8918
8919 enablestring=
8920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8921echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8922 no_cache=0
8923 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8924if test "${enable_tipwindow+set}" = set; then
8925 enableval="$enable_tipwindow"
8926
8927 if test "$enableval" = yes; then
8928 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8929 else
8930 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8931 fi
8932
8933else
8934
8935 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8936 if test "x$LINE" != x ; then
8937 eval "DEFAULT_$LINE"
8938 else
8939 no_cache=1
8940 fi
8941
8942 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8943
8944fi;
8945
8946 eval "$ac_cv_use_tipwindow"
8947 if test "$no_cache" != 1; then
8948 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8949 fi
8950
8951 if test "$wxUSE_TIPWINDOW" = yes; then
8952 echo "$as_me:$LINENO: result: yes" >&5
8953echo "${ECHO_T}yes" >&6
8954 else
8955 echo "$as_me:$LINENO: result: no" >&5
8956echo "${ECHO_T}no" >&6
8957 fi
8958
8959
8960 enablestring=
8961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8962echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8963 no_cache=0
8964 # Check whether --enable-popupwin or --disable-popupwin was given.
8965if test "${enable_popupwin+set}" = set; then
8966 enableval="$enable_popupwin"
8967
8968 if test "$enableval" = yes; then
8969 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8970 else
8971 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8972 fi
8973
8974else
8975
8976 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8977 if test "x$LINE" != x ; then
8978 eval "DEFAULT_$LINE"
8979 else
8980 no_cache=1
8981 fi
8982
8983 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8984
8985fi;
8986
8987 eval "$ac_cv_use_popupwin"
8988 if test "$no_cache" != 1; then
8989 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8990 fi
8991
8992 if test "$wxUSE_POPUPWIN" = yes; then
8993 echo "$as_me:$LINENO: result: yes" >&5
8994echo "${ECHO_T}yes" >&6
8995 else
8996 echo "$as_me:$LINENO: result: no" >&5
8997echo "${ECHO_T}no" >&6
8998 fi
8999
9000
9001
9002
9003 enablestring=
9004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9005echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9006 no_cache=0
9007 # Check whether --enable-commondlg or --disable-commondlg was given.
9008if test "${enable_commondlg+set}" = set; then
9009 enableval="$enable_commondlg"
9010
9011 if test "$enableval" = yes; then
9012 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9013 else
9014 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9015 fi
9016
9017else
9018
9019 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9020 if test "x$LINE" != x ; then
9021 eval "DEFAULT_$LINE"
9022 else
9023 no_cache=1
9024 fi
9025
9026 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9027
9028fi;
9029
9030 eval "$ac_cv_use_commondlg"
9031 if test "$no_cache" != 1; then
9032 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9033 fi
9034
9035 if test "$wxUSE_COMMONDLGS" = yes; then
9036 echo "$as_me:$LINENO: result: yes" >&5
9037echo "${ECHO_T}yes" >&6
9038 else
9039 echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6
9041 fi
9042
9043
9044 enablestring=
9045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9046echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9047 no_cache=0
9048 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9049if test "${enable_choicedlg+set}" = set; then
9050 enableval="$enable_choicedlg"
9051
9052 if test "$enableval" = yes; then
9053 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9054 else
9055 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9056 fi
9057
9058else
9059
9060 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9061 if test "x$LINE" != x ; then
9062 eval "DEFAULT_$LINE"
9063 else
9064 no_cache=1
9065 fi
9066
9067 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9068
9069fi;
9070
9071 eval "$ac_cv_use_choicedlg"
9072 if test "$no_cache" != 1; then
9073 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9074 fi
9075
9076 if test "$wxUSE_CHOICEDLG" = yes; then
9077 echo "$as_me:$LINENO: result: yes" >&5
9078echo "${ECHO_T}yes" >&6
9079 else
9080 echo "$as_me:$LINENO: result: no" >&5
9081echo "${ECHO_T}no" >&6
9082 fi
9083
9084
9085 enablestring=
9086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9087echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9088 no_cache=0
9089 # Check whether --enable-coldlg or --disable-coldlg was given.
9090if test "${enable_coldlg+set}" = set; then
9091 enableval="$enable_coldlg"
9092
9093 if test "$enableval" = yes; then
9094 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9095 else
9096 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9097 fi
9098
9099else
9100
9101 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9102 if test "x$LINE" != x ; then
9103 eval "DEFAULT_$LINE"
9104 else
9105 no_cache=1
9106 fi
9107
9108 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9109
9110fi;
9111
9112 eval "$ac_cv_use_coldlg"
9113 if test "$no_cache" != 1; then
9114 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9115 fi
9116
9117 if test "$wxUSE_COLOURDLG" = yes; then
9118 echo "$as_me:$LINENO: result: yes" >&5
9119echo "${ECHO_T}yes" >&6
9120 else
9121 echo "$as_me:$LINENO: result: no" >&5
9122echo "${ECHO_T}no" >&6
9123 fi
9124
9125
9126 enablestring=
9127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9128echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9129 no_cache=0
9130 # Check whether --enable-filedlg or --disable-filedlg was given.
9131if test "${enable_filedlg+set}" = set; then
9132 enableval="$enable_filedlg"
9133
9134 if test "$enableval" = yes; then
9135 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9136 else
9137 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9138 fi
9139
9140else
9141
9142 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9143 if test "x$LINE" != x ; then
9144 eval "DEFAULT_$LINE"
9145 else
9146 no_cache=1
9147 fi
9148
9149 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9150
9151fi;
9152
9153 eval "$ac_cv_use_filedlg"
9154 if test "$no_cache" != 1; then
9155 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9156 fi
9157
9158 if test "$wxUSE_FILEDLG" = yes; then
9159 echo "$as_me:$LINENO: result: yes" >&5
9160echo "${ECHO_T}yes" >&6
9161 else
9162 echo "$as_me:$LINENO: result: no" >&5
9163echo "${ECHO_T}no" >&6
9164 fi
9165
9166
9167 enablestring=
9168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9169echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9170 no_cache=0
9171 # Check whether --enable-finddlg or --disable-finddlg was given.
9172if test "${enable_finddlg+set}" = set; then
9173 enableval="$enable_finddlg"
9174
9175 if test "$enableval" = yes; then
9176 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9177 else
9178 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9179 fi
9180
9181else
9182
9183 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9184 if test "x$LINE" != x ; then
9185 eval "DEFAULT_$LINE"
9186 else
9187 no_cache=1
9188 fi
9189
9190 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9191
9192fi;
9193
9194 eval "$ac_cv_use_finddlg"
9195 if test "$no_cache" != 1; then
9196 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9197 fi
9198
9199 if test "$wxUSE_FINDREPLDLG" = yes; then
9200 echo "$as_me:$LINENO: result: yes" >&5
9201echo "${ECHO_T}yes" >&6
9202 else
9203 echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
9205 fi
9206
9207
9208 enablestring=
9209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9210echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9211 no_cache=0
9212 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9213if test "${enable_fontdlg+set}" = set; then
9214 enableval="$enable_fontdlg"
9215
9216 if test "$enableval" = yes; then
9217 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9218 else
9219 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9220 fi
9221
9222else
9223
9224 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9225 if test "x$LINE" != x ; then
9226 eval "DEFAULT_$LINE"
9227 else
9228 no_cache=1
9229 fi
9230
9231 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9232
9233fi;
9234
9235 eval "$ac_cv_use_fontdlg"
9236 if test "$no_cache" != 1; then
9237 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9238 fi
9239
9240 if test "$wxUSE_FONTDLG" = yes; then
9241 echo "$as_me:$LINENO: result: yes" >&5
9242echo "${ECHO_T}yes" >&6
9243 else
9244 echo "$as_me:$LINENO: result: no" >&5
9245echo "${ECHO_T}no" >&6
9246 fi
9247
9248
9249 enablestring=
9250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9251echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9252 no_cache=0
9253 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9254if test "${enable_dirdlg+set}" = set; then
9255 enableval="$enable_dirdlg"
9256
9257 if test "$enableval" = yes; then
9258 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9259 else
9260 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9261 fi
9262
9263else
9264
9265 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9266 if test "x$LINE" != x ; then
9267 eval "DEFAULT_$LINE"
9268 else
9269 no_cache=1
9270 fi
9271
9272 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9273
9274fi;
9275
9276 eval "$ac_cv_use_dirdlg"
9277 if test "$no_cache" != 1; then
9278 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9279 fi
9280
9281 if test "$wxUSE_DIRDLG" = yes; then
9282 echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
9284 else
9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
9287 fi
9288
9289
9290 enablestring=
9291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9292echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9293 no_cache=0
9294 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9295if test "${enable_msgdlg+set}" = set; then
9296 enableval="$enable_msgdlg"
9297
9298 if test "$enableval" = yes; then
9299 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9300 else
9301 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9302 fi
9303
9304else
9305
9306 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9307 if test "x$LINE" != x ; then
9308 eval "DEFAULT_$LINE"
9309 else
9310 no_cache=1
9311 fi
9312
9313 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9314
9315fi;
9316
9317 eval "$ac_cv_use_msgdlg"
9318 if test "$no_cache" != 1; then
9319 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9320 fi
9321
9322 if test "$wxUSE_MSGDLG" = yes; then
9323 echo "$as_me:$LINENO: result: yes" >&5
9324echo "${ECHO_T}yes" >&6
9325 else
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
9328 fi
9329
9330
9331 enablestring=
9332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9333echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9334 no_cache=0
9335 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9336if test "${enable_numberdlg+set}" = set; then
9337 enableval="$enable_numberdlg"
9338
9339 if test "$enableval" = yes; then
9340 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9341 else
9342 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9343 fi
9344
9345else
9346
9347 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9348 if test "x$LINE" != x ; then
9349 eval "DEFAULT_$LINE"
9350 else
9351 no_cache=1
9352 fi
9353
9354 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9355
9356fi;
9357
9358 eval "$ac_cv_use_numberdlg"
9359 if test "$no_cache" != 1; then
9360 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9361 fi
9362
9363 if test "$wxUSE_NUMBERDLG" = yes; then
9364 echo "$as_me:$LINENO: result: yes" >&5
9365echo "${ECHO_T}yes" >&6
9366 else
9367 echo "$as_me:$LINENO: result: no" >&5
9368echo "${ECHO_T}no" >&6
9369 fi
9370
9371
9372 enablestring=
9373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9374echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9375 no_cache=0
9376 # Check whether --enable-splash or --disable-splash was given.
9377if test "${enable_splash+set}" = set; then
9378 enableval="$enable_splash"
9379
9380 if test "$enableval" = yes; then
9381 ac_cv_use_splash='wxUSE_SPLASH=yes'
9382 else
9383 ac_cv_use_splash='wxUSE_SPLASH=no'
9384 fi
9385
9386else
9387
9388 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9389 if test "x$LINE" != x ; then
9390 eval "DEFAULT_$LINE"
9391 else
9392 no_cache=1
9393 fi
9394
9395 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9396
9397fi;
9398
9399 eval "$ac_cv_use_splash"
9400 if test "$no_cache" != 1; then
9401 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9402 fi
9403
9404 if test "$wxUSE_SPLASH" = yes; then
9405 echo "$as_me:$LINENO: result: yes" >&5
9406echo "${ECHO_T}yes" >&6
9407 else
9408 echo "$as_me:$LINENO: result: no" >&5
9409echo "${ECHO_T}no" >&6
9410 fi
9411
9412
9413 enablestring=
9414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9415echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9416 no_cache=0
9417 # Check whether --enable-textdlg or --disable-textdlg was given.
9418if test "${enable_textdlg+set}" = set; then
9419 enableval="$enable_textdlg"
9420
9421 if test "$enableval" = yes; then
9422 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9423 else
9424 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9425 fi
9426
9427else
9428
9429 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9430 if test "x$LINE" != x ; then
9431 eval "DEFAULT_$LINE"
9432 else
9433 no_cache=1
9434 fi
9435
9436 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9437
9438fi;
9439
9440 eval "$ac_cv_use_textdlg"
9441 if test "$no_cache" != 1; then
9442 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9443 fi
9444
9445 if test "$wxUSE_TEXTDLG" = yes; then
9446 echo "$as_me:$LINENO: result: yes" >&5
9447echo "${ECHO_T}yes" >&6
9448 else
9449 echo "$as_me:$LINENO: result: no" >&5
9450echo "${ECHO_T}no" >&6
9451 fi
9452
9453
9454 enablestring=
9455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9456echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9457 no_cache=0
9458 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9459if test "${enable_tipdlg+set}" = set; then
9460 enableval="$enable_tipdlg"
9461
9462 if test "$enableval" = yes; then
9463 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9464 else
9465 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9466 fi
9467
9468else
9469
9470 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9471 if test "x$LINE" != x ; then
9472 eval "DEFAULT_$LINE"
9473 else
9474 no_cache=1
9475 fi
9476
9477 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9478
9479fi;
9480
9481 eval "$ac_cv_use_tipdlg"
9482 if test "$no_cache" != 1; then
9483 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9484 fi
9485
9486 if test "$wxUSE_STARTUP_TIPS" = yes; then
9487 echo "$as_me:$LINENO: result: yes" >&5
9488echo "${ECHO_T}yes" >&6
9489 else
9490 echo "$as_me:$LINENO: result: no" >&5
9491echo "${ECHO_T}no" >&6
9492 fi
9493
9494
9495 enablestring=
9496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9497echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9498 no_cache=0
9499 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9500if test "${enable_progressdlg+set}" = set; then
9501 enableval="$enable_progressdlg"
9502
9503 if test "$enableval" = yes; then
9504 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9505 else
9506 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9507 fi
9508
9509else
9510
9511 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9512 if test "x$LINE" != x ; then
9513 eval "DEFAULT_$LINE"
9514 else
9515 no_cache=1
9516 fi
9517
9518 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9519
9520fi;
9521
9522 eval "$ac_cv_use_progressdlg"
9523 if test "$no_cache" != 1; then
9524 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9525 fi
9526
9527 if test "$wxUSE_PROGRESSDLG" = yes; then
9528 echo "$as_me:$LINENO: result: yes" >&5
9529echo "${ECHO_T}yes" >&6
9530 else
9531 echo "$as_me:$LINENO: result: no" >&5
9532echo "${ECHO_T}no" >&6
9533 fi
9534
9535
9536 enablestring=
9537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9538echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9539 no_cache=0
9540 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9541if test "${enable_wizarddlg+set}" = set; then
9542 enableval="$enable_wizarddlg"
9543
9544 if test "$enableval" = yes; then
9545 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9546 else
9547 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9548 fi
9549
9550else
9551
9552 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9553 if test "x$LINE" != x ; then
9554 eval "DEFAULT_$LINE"
9555 else
9556 no_cache=1
9557 fi
9558
9559 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9560
9561fi;
9562
9563 eval "$ac_cv_use_wizarddlg"
9564 if test "$no_cache" != 1; then
9565 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9566 fi
9567
9568 if test "$wxUSE_WIZARDDLG" = yes; then
9569 echo "$as_me:$LINENO: result: yes" >&5
9570echo "${ECHO_T}yes" >&6
9571 else
9572 echo "$as_me:$LINENO: result: no" >&5
9573echo "${ECHO_T}no" >&6
9574 fi
9575
9576
9577
9578
9579 enablestring=
9580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9581echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9582 no_cache=0
9583 # Check whether --enable-menus or --disable-menus was given.
9584if test "${enable_menus+set}" = set; then
9585 enableval="$enable_menus"
9586
9587 if test "$enableval" = yes; then
9588 ac_cv_use_menus='wxUSE_MENUS=yes'
9589 else
9590 ac_cv_use_menus='wxUSE_MENUS=no'
9591 fi
9592
9593else
9594
9595 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9596 if test "x$LINE" != x ; then
9597 eval "DEFAULT_$LINE"
9598 else
9599 no_cache=1
9600 fi
9601
9602 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9603
9604fi;
9605
9606 eval "$ac_cv_use_menus"
9607 if test "$no_cache" != 1; then
9608 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9609 fi
9610
9611 if test "$wxUSE_MENUS" = yes; then
9612 echo "$as_me:$LINENO: result: yes" >&5
9613echo "${ECHO_T}yes" >&6
9614 else
9615 echo "$as_me:$LINENO: result: no" >&5
9616echo "${ECHO_T}no" >&6
9617 fi
9618
9619
9620 enablestring=
9621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9622echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9623 no_cache=0
9624 # Check whether --enable-miniframe or --disable-miniframe was given.
9625if test "${enable_miniframe+set}" = set; then
9626 enableval="$enable_miniframe"
9627
9628 if test "$enableval" = yes; then
9629 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9630 else
9631 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9632 fi
9633
9634else
9635
9636 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9637 if test "x$LINE" != x ; then
9638 eval "DEFAULT_$LINE"
9639 else
9640 no_cache=1
9641 fi
9642
9643 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9644
9645fi;
9646
9647 eval "$ac_cv_use_miniframe"
9648 if test "$no_cache" != 1; then
9649 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9650 fi
9651
9652 if test "$wxUSE_MINIFRAME" = yes; then
9653 echo "$as_me:$LINENO: result: yes" >&5
9654echo "${ECHO_T}yes" >&6
9655 else
9656 echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658 fi
9659
9660
9661 enablestring=
9662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9663echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9664 no_cache=0
9665 # Check whether --enable-tooltips or --disable-tooltips was given.
9666if test "${enable_tooltips+set}" = set; then
9667 enableval="$enable_tooltips"
9668
9669 if test "$enableval" = yes; then
9670 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9671 else
9672 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9673 fi
9674
9675else
9676
9677 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9678 if test "x$LINE" != x ; then
9679 eval "DEFAULT_$LINE"
9680 else
9681 no_cache=1
9682 fi
9683
9684 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9685
9686fi;
9687
9688 eval "$ac_cv_use_tooltips"
9689 if test "$no_cache" != 1; then
9690 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9691 fi
9692
9693 if test "$wxUSE_TOOLTIPS" = yes; then
9694 echo "$as_me:$LINENO: result: yes" >&5
9695echo "${ECHO_T}yes" >&6
9696 else
9697 echo "$as_me:$LINENO: result: no" >&5
9698echo "${ECHO_T}no" >&6
9699 fi
9700
9701
9702 enablestring=
9703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9704echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9705 no_cache=0
9706 # Check whether --enable-splines or --disable-splines was given.
9707if test "${enable_splines+set}" = set; then
9708 enableval="$enable_splines"
9709
9710 if test "$enableval" = yes; then
9711 ac_cv_use_splines='wxUSE_SPLINES=yes'
9712 else
9713 ac_cv_use_splines='wxUSE_SPLINES=no'
9714 fi
9715
9716else
9717
9718 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9719 if test "x$LINE" != x ; then
9720 eval "DEFAULT_$LINE"
9721 else
9722 no_cache=1
9723 fi
9724
9725 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9726
9727fi;
9728
9729 eval "$ac_cv_use_splines"
9730 if test "$no_cache" != 1; then
9731 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9732 fi
9733
9734 if test "$wxUSE_SPLINES" = yes; then
9735 echo "$as_me:$LINENO: result: yes" >&5
9736echo "${ECHO_T}yes" >&6
9737 else
9738 echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6
9740 fi
9741
9742
9743 enablestring=
9744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9745echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9746 no_cache=0
9747 # Check whether --enable-validators or --disable-validators was given.
9748if test "${enable_validators+set}" = set; then
9749 enableval="$enable_validators"
9750
9751 if test "$enableval" = yes; then
9752 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9753 else
9754 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9755 fi
9756
9757else
9758
9759 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9760 if test "x$LINE" != x ; then
9761 eval "DEFAULT_$LINE"
9762 else
9763 no_cache=1
9764 fi
9765
9766 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9767
9768fi;
9769
9770 eval "$ac_cv_use_validators"
9771 if test "$no_cache" != 1; then
9772 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9773 fi
9774
9775 if test "$wxUSE_VALIDATORS" = yes; then
9776 echo "$as_me:$LINENO: result: yes" >&5
9777echo "${ECHO_T}yes" >&6
9778 else
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
9781 fi
9782
9783
9784 enablestring=
9785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9786echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9787 no_cache=0
9788 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9789if test "${enable_busyinfo+set}" = set; then
9790 enableval="$enable_busyinfo"
9791
9792 if test "$enableval" = yes; then
9793 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9794 else
9795 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9796 fi
9797
9798else
9799
9800 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9801 if test "x$LINE" != x ; then
9802 eval "DEFAULT_$LINE"
9803 else
9804 no_cache=1
9805 fi
9806
9807 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9808
9809fi;
9810
9811 eval "$ac_cv_use_busyinfo"
9812 if test "$no_cache" != 1; then
9813 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9814 fi
9815
9816 if test "$wxUSE_BUSYINFO" = yes; then
9817 echo "$as_me:$LINENO: result: yes" >&5
9818echo "${ECHO_T}yes" >&6
9819 else
9820 echo "$as_me:$LINENO: result: no" >&5
9821echo "${ECHO_T}no" >&6
9822 fi
9823
9824
9825 enablestring=
9826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9827echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9828 no_cache=0
9829 # Check whether --enable-joystick or --disable-joystick was given.
9830if test "${enable_joystick+set}" = set; then
9831 enableval="$enable_joystick"
9832
9833 if test "$enableval" = yes; then
9834 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9835 else
9836 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9837 fi
9838
9839else
9840
9841 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9842 if test "x$LINE" != x ; then
9843 eval "DEFAULT_$LINE"
9844 else
9845 no_cache=1
9846 fi
9847
9848 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9849
9850fi;
9851
9852 eval "$ac_cv_use_joystick"
9853 if test "$no_cache" != 1; then
9854 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9855 fi
9856
9857 if test "$wxUSE_JOYSTICK" = yes; then
9858 echo "$as_me:$LINENO: result: yes" >&5
9859echo "${ECHO_T}yes" >&6
9860 else
9861 echo "$as_me:$LINENO: result: no" >&5
9862echo "${ECHO_T}no" >&6
9863 fi
9864
9865
9866 enablestring=
9867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9868echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9869 no_cache=0
9870 # Check whether --enable-metafile or --disable-metafile was given.
9871if test "${enable_metafile+set}" = set; then
9872 enableval="$enable_metafile"
9873
9874 if test "$enableval" = yes; then
9875 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9876 else
9877 ac_cv_use_metafile='wxUSE_METAFILE=no'
9878 fi
9879
9880else
9881
9882 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9883 if test "x$LINE" != x ; then
9884 eval "DEFAULT_$LINE"
9885 else
9886 no_cache=1
9887 fi
9888
9889 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9890
9891fi;
9892
9893 eval "$ac_cv_use_metafile"
9894 if test "$no_cache" != 1; then
9895 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9896 fi
9897
9898 if test "$wxUSE_METAFILE" = yes; then
9899 echo "$as_me:$LINENO: result: yes" >&5
9900echo "${ECHO_T}yes" >&6
9901 else
9902 echo "$as_me:$LINENO: result: no" >&5
9903echo "${ECHO_T}no" >&6
9904 fi
9905
9906
9907 enablestring=
9908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9909echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9910 no_cache=0
9911 # Check whether --enable-dragimage or --disable-dragimage was given.
9912if test "${enable_dragimage+set}" = set; then
9913 enableval="$enable_dragimage"
9914
9915 if test "$enableval" = yes; then
9916 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9917 else
9918 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9919 fi
9920
9921else
9922
9923 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9924 if test "x$LINE" != x ; then
9925 eval "DEFAULT_$LINE"
9926 else
9927 no_cache=1
9928 fi
9929
9930 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9931
9932fi;
9933
9934 eval "$ac_cv_use_dragimage"
9935 if test "$no_cache" != 1; then
9936 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9937 fi
9938
9939 if test "$wxUSE_DRAGIMAGE" = yes; then
9940 echo "$as_me:$LINENO: result: yes" >&5
9941echo "${ECHO_T}yes" >&6
9942 else
9943 echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
9945 fi
9946
9947
9948 enablestring=
9949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9950echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9951 no_cache=0
9952 # Check whether --enable-accessibility or --disable-accessibility was given.
9953if test "${enable_accessibility+set}" = set; then
9954 enableval="$enable_accessibility"
9955
9956 if test "$enableval" = yes; then
9957 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9958 else
9959 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9960 fi
9961
9962else
9963
9964 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9965 if test "x$LINE" != x ; then
9966 eval "DEFAULT_$LINE"
9967 else
9968 no_cache=1
9969 fi
9970
9971 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9972
9973fi;
9974
9975 eval "$ac_cv_use_accessibility"
9976 if test "$no_cache" != 1; then
9977 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9978 fi
9979
9980 if test "$wxUSE_ACCESSIBILITY" = yes; then
9981 echo "$as_me:$LINENO: result: yes" >&5
9982echo "${ECHO_T}yes" >&6
9983 else
9984 echo "$as_me:$LINENO: result: no" >&5
9985echo "${ECHO_T}no" >&6
9986 fi
9987
9988
9989
9990
9991 enablestring=
9992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9993echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9994 no_cache=0
9995 # Check whether --enable-palette or --disable-palette was given.
9996if test "${enable_palette+set}" = set; then
9997 enableval="$enable_palette"
9998
9999 if test "$enableval" = yes; then
10000 ac_cv_use_palette='wxUSE_PALETTE=yes'
10001 else
10002 ac_cv_use_palette='wxUSE_PALETTE=no'
10003 fi
10004
10005else
10006
10007 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10008 if test "x$LINE" != x ; then
10009 eval "DEFAULT_$LINE"
10010 else
10011 no_cache=1
10012 fi
10013
10014 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10015
10016fi;
10017
10018 eval "$ac_cv_use_palette"
10019 if test "$no_cache" != 1; then
10020 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10021 fi
10022
10023 if test "$wxUSE_PALETTE" = yes; then
10024 echo "$as_me:$LINENO: result: yes" >&5
10025echo "${ECHO_T}yes" >&6
10026 else
10027 echo "$as_me:$LINENO: result: no" >&5
10028echo "${ECHO_T}no" >&6
10029 fi
10030
10031
10032 enablestring=
10033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10034echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10035 no_cache=0
10036 # Check whether --enable-image or --disable-image was given.
10037if test "${enable_image+set}" = set; then
10038 enableval="$enable_image"
10039
10040 if test "$enableval" = yes; then
10041 ac_cv_use_image='wxUSE_IMAGE=yes'
10042 else
10043 ac_cv_use_image='wxUSE_IMAGE=no'
10044 fi
10045
10046else
10047
10048 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10049 if test "x$LINE" != x ; then
10050 eval "DEFAULT_$LINE"
10051 else
10052 no_cache=1
10053 fi
10054
10055 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10056
10057fi;
10058
10059 eval "$ac_cv_use_image"
10060 if test "$no_cache" != 1; then
10061 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10062 fi
10063
10064 if test "$wxUSE_IMAGE" = yes; then
10065 echo "$as_me:$LINENO: result: yes" >&5
10066echo "${ECHO_T}yes" >&6
10067 else
10068 echo "$as_me:$LINENO: result: no" >&5
10069echo "${ECHO_T}no" >&6
10070 fi
10071
10072
10073 enablestring=
10074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10075echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10076 no_cache=0
10077 # Check whether --enable-gif or --disable-gif was given.
10078if test "${enable_gif+set}" = set; then
10079 enableval="$enable_gif"
10080
10081 if test "$enableval" = yes; then
10082 ac_cv_use_gif='wxUSE_GIF=yes'
10083 else
10084 ac_cv_use_gif='wxUSE_GIF=no'
10085 fi
10086
10087else
10088
10089 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10090 if test "x$LINE" != x ; then
10091 eval "DEFAULT_$LINE"
10092 else
10093 no_cache=1
10094 fi
10095
10096 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10097
10098fi;
10099
10100 eval "$ac_cv_use_gif"
10101 if test "$no_cache" != 1; then
10102 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10103 fi
10104
10105 if test "$wxUSE_GIF" = yes; then
10106 echo "$as_me:$LINENO: result: yes" >&5
10107echo "${ECHO_T}yes" >&6
10108 else
10109 echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
10111 fi
10112
10113
10114 enablestring=
10115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10116echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10117 no_cache=0
10118 # Check whether --enable-pcx or --disable-pcx was given.
10119if test "${enable_pcx+set}" = set; then
10120 enableval="$enable_pcx"
10121
10122 if test "$enableval" = yes; then
10123 ac_cv_use_pcx='wxUSE_PCX=yes'
10124 else
10125 ac_cv_use_pcx='wxUSE_PCX=no'
10126 fi
10127
10128else
10129
10130 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10131 if test "x$LINE" != x ; then
10132 eval "DEFAULT_$LINE"
10133 else
10134 no_cache=1
10135 fi
10136
10137 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10138
10139fi;
10140
10141 eval "$ac_cv_use_pcx"
10142 if test "$no_cache" != 1; then
10143 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10144 fi
10145
10146 if test "$wxUSE_PCX" = yes; then
10147 echo "$as_me:$LINENO: result: yes" >&5
10148echo "${ECHO_T}yes" >&6
10149 else
10150 echo "$as_me:$LINENO: result: no" >&5
10151echo "${ECHO_T}no" >&6
10152 fi
10153
10154
10155 enablestring=
10156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10157echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10158 no_cache=0
10159 # Check whether --enable-iff or --disable-iff was given.
10160if test "${enable_iff+set}" = set; then
10161 enableval="$enable_iff"
10162
10163 if test "$enableval" = yes; then
10164 ac_cv_use_iff='wxUSE_IFF=yes'
10165 else
10166 ac_cv_use_iff='wxUSE_IFF=no'
10167 fi
10168
10169else
10170
10171 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10172 if test "x$LINE" != x ; then
10173 eval "DEFAULT_$LINE"
10174 else
10175 no_cache=1
10176 fi
10177
10178 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10179
10180fi;
10181
10182 eval "$ac_cv_use_iff"
10183 if test "$no_cache" != 1; then
10184 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10185 fi
10186
10187 if test "$wxUSE_IFF" = yes; then
10188 echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192echo "${ECHO_T}no" >&6
10193 fi
10194
10195
10196 enablestring=
10197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10198echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10199 no_cache=0
10200 # Check whether --enable-pnm or --disable-pnm was given.
10201if test "${enable_pnm+set}" = set; then
10202 enableval="$enable_pnm"
10203
10204 if test "$enableval" = yes; then
10205 ac_cv_use_pnm='wxUSE_PNM=yes'
10206 else
10207 ac_cv_use_pnm='wxUSE_PNM=no'
10208 fi
10209
10210else
10211
10212 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10213 if test "x$LINE" != x ; then
10214 eval "DEFAULT_$LINE"
10215 else
10216 no_cache=1
10217 fi
10218
10219 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10220
10221fi;
10222
10223 eval "$ac_cv_use_pnm"
10224 if test "$no_cache" != 1; then
10225 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10226 fi
10227
10228 if test "$wxUSE_PNM" = yes; then
10229 echo "$as_me:$LINENO: result: yes" >&5
10230echo "${ECHO_T}yes" >&6
10231 else
10232 echo "$as_me:$LINENO: result: no" >&5
10233echo "${ECHO_T}no" >&6
10234 fi
10235
10236
10237 enablestring=
10238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10239echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10240 no_cache=0
10241 # Check whether --enable-xpm or --disable-xpm was given.
10242if test "${enable_xpm+set}" = set; then
10243 enableval="$enable_xpm"
10244
10245 if test "$enableval" = yes; then
10246 ac_cv_use_xpm='wxUSE_XPM=yes'
10247 else
10248 ac_cv_use_xpm='wxUSE_XPM=no'
10249 fi
10250
10251else
10252
10253 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10254 if test "x$LINE" != x ; then
10255 eval "DEFAULT_$LINE"
10256 else
10257 no_cache=1
10258 fi
10259
10260 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10261
10262fi;
10263
10264 eval "$ac_cv_use_xpm"
10265 if test "$no_cache" != 1; then
10266 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10267 fi
10268
10269 if test "$wxUSE_XPM" = yes; then
10270 echo "$as_me:$LINENO: result: yes" >&5
10271echo "${ECHO_T}yes" >&6
10272 else
10273 echo "$as_me:$LINENO: result: no" >&5
10274echo "${ECHO_T}no" >&6
10275 fi
10276
10277
10278 enablestring=
10279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10280echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10281 no_cache=0
10282 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10283if test "${enable_ico_cur+set}" = set; then
10284 enableval="$enable_ico_cur"
10285
10286 if test "$enableval" = yes; then
10287 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10288 else
10289 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10290 fi
10291
10292else
10293
10294 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10295 if test "x$LINE" != x ; then
10296 eval "DEFAULT_$LINE"
10297 else
10298 no_cache=1
10299 fi
10300
10301 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10302
10303fi;
10304
10305 eval "$ac_cv_use_ico_cur"
10306 if test "$no_cache" != 1; then
10307 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10308 fi
10309
10310 if test "$wxUSE_ICO_CUR" = yes; then
10311 echo "$as_me:$LINENO: result: yes" >&5
10312echo "${ECHO_T}yes" >&6
10313 else
10314 echo "$as_me:$LINENO: result: no" >&5
10315echo "${ECHO_T}no" >&6
10316 fi
10317
10318
10319fi
10320
10321
10322
ceec2216
RL
10323# Check whether --with-flavour or --without-flavour was given.
10324if test "${with_flavour+set}" = set; then
10325 withval="$with_flavour"
10326 WX_FLAVOUR="$withval"
10327fi;
10328
10329
10330
a848cd7e
SC
10331 enablestring=
10332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10333echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10334 no_cache=0
10335 # Check whether --enable-official_build or --disable-official_build was given.
10336if test "${enable_official_build+set}" = set; then
10337 enableval="$enable_official_build"
10338
10339 if test "$enableval" = yes; then
10340 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10341 else
10342 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10343 fi
10344
10345else
10346
10347 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10348 if test "x$LINE" != x ; then
10349 eval "DEFAULT_$LINE"
10350 else
10351 no_cache=1
10352 fi
10353
10354 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10355
10356fi;
10357
10358 eval "$ac_cv_use_official_build"
10359 if test "$no_cache" != 1; then
10360 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10361 fi
10362
10363 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10364 echo "$as_me:$LINENO: result: yes" >&5
10365echo "${ECHO_T}yes" >&6
10366 else
10367 echo "$as_me:$LINENO: result: no" >&5
10368echo "${ECHO_T}no" >&6
10369 fi
10370
10371# Check whether --enable-vendor or --disable-vendor was given.
10372if test "${enable_vendor+set}" = set; then
10373 enableval="$enable_vendor"
10374 VENDOR="$enableval"
10375fi;
10376if test "x$VENDOR" = "x"; then
10377 VENDOR="custom"
10378fi
10379
a848cd7e
SC
10380
10381
10382
10383 echo "saving argument cache $wx_arg_cache_file"
10384 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10385
10386
10387
10388echo "$as_me:$LINENO: checking for toolkit" >&5
10389echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10390
10391# In Wine, we need to default to MSW, not GTK or MOTIF
10392if test "$wxUSE_WINE" = "yes"; then
10393 DEFAULT_DEFAULT_wxUSE_GTK=0
10394 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10395 DEFAULT_DEFAULT_wxUSE_MSW=1
10396 wxUSE_SHARED=no
10397fi
10398
10399if test "$wxUSE_GUI" = "yes"; then
10400
10401 if test "$USE_BEOS" = 1; then
10402 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10403echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10404 { (exit 1); exit 1; }; }
10405 fi
10406
10407 if test "$TOOLKIT_GIVEN" = 1; then
10408 for toolkit in `echo $ALL_TOOLKITS`; do
10409 var=wxUSE_$toolkit
10410 eval "value=\$${var}"
10411 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10412 done
10413 else
10414 for toolkit in `echo $ALL_TOOLKITS`; do
10415 if test "$has_toolkit_in_cache" != 1; then
10416 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10417 else
10418 var=DEFAULT_wxUSE_$toolkit
10419 fi
10420 eval "wxUSE_$toolkit=\$${var}"
10421 done
10422 fi
10423
10424 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10425 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10426 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10427
10428 case "${host}" in
10429 *-pc-os2_emx | *-pc-os2-emx )
10430 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10431 esac
10432
10433 case "$NUM_TOOLKITS" in
10434 1)
10435 ;;
10436 0)
10437 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10438echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10439 { (exit 1); exit 1; }; }
10440 ;;
10441 *)
10442 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10443echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10444 { (exit 1); exit 1; }; }
10445 esac
10446
10447 for toolkit in `echo $ALL_TOOLKITS`; do
10448 var=wxUSE_$toolkit
10449 eval "value=\$${var}"
10450 if test "x$value" != x; then
10451 cache_var=CACHE_$toolkit
10452 eval "cache=\$${cache_var}"
10453 if test "$cache" = 1; then
10454 echo "$var=$value" >> ${wx_arg_cache_file}
10455 fi
10456 if test "$value" = 1; then
10457 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10458 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10459echo "${ECHO_T}$toolkit_echo" >&6
10460 fi
10461 fi
10462 done
10463else
10464 if test "x$host_alias" != "x"; then
10465 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10466echo "${ECHO_T}base ($host_alias hosted) only" >&6
10467 else
10468 echo "$as_me:$LINENO: result: base only" >&5
10469echo "${ECHO_T}base only" >&6
10470 fi
10471fi
10472
10473wants_win32=0
10474doesnt_want_win32=0
10475case "${host}" in
10476 *-*-cygwin*)
10477 if test "$wxUSE_MSW" = 1 ; then
10478 wants_win32=1
10479 else
10480 doesnt_want_win32=1
10481 fi
10482 ;;
10483 *-*-mingw*)
10484 wants_win32=1
10485 ;;
10486esac
10487
10488if test "$wxUSE_WINE" = "yes"; then
10489 wants_win32=1
10490 CC=winegcc
10491 CXX=wineg++
10492 RESCOMP=wrc
10493 LDFLAGS_GUI="-mwindows"
10494fi
10495
10496if test "$wants_win32" = 1 ; then
10497 USE_UNIX=0
10498 USE_WIN32=1
10499 cat >>confdefs.h <<\_ACEOF
10500#define __WIN32__ 1
10501_ACEOF
10502
10503 cat >>confdefs.h <<\_ACEOF
10504#define __WIN95__ 1
10505_ACEOF
10506
10507 cat >>confdefs.h <<\_ACEOF
10508#define __WINDOWS__ 1
10509_ACEOF
10510
10511 cat >>confdefs.h <<\_ACEOF
10512#define __GNUWIN32__ 1
10513_ACEOF
10514
10515 cat >>confdefs.h <<\_ACEOF
10516#define STRICT 1
10517_ACEOF
10518
10519 cat >>confdefs.h <<\_ACEOF
10520#define WINVER 0x0400
10521_ACEOF
10522
10523fi
10524if test "$doesnt_want_win32" = 1 ; then
10525 USE_UNIX=1
10526 USE_WIN32=0
10527fi
10528
10529if test "$USE_UNIX" = 1 ; then
10530 wxUSE_UNIX=yes
10531 cat >>confdefs.h <<\_ACEOF
10532#define __UNIX__ 1
10533_ACEOF
10534
10535fi
10536
10537
10538cat >confcache <<\_ACEOF
10539# This file is a shell script that caches the results of configure
10540# tests run on this system so they can be shared between configure
10541# scripts and configure runs, see configure's option --config-cache.
10542# It is not useful on other systems. If it contains results you don't
10543# want to keep, you may remove or edit it.
10544#
10545# config.status only pays attention to the cache file if you give it
10546# the --recheck option to rerun configure.
10547#
10548# `ac_cv_env_foo' variables (set or unset) will be overridden when
10549# loading this file, other *unset* `ac_cv_foo' will be assigned the
10550# following values.
10551
10552_ACEOF
10553
10554# The following way of writing the cache mishandles newlines in values,
10555# but we know of no workaround that is simple, portable, and efficient.
10556# So, don't put newlines in cache variables' values.
10557# Ultrix sh set writes to stderr and can't be redirected directly,
10558# and sets the high bit in the cache file unless we assign to the vars.
10559{
10560 (set) 2>&1 |
10561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10562 *ac_space=\ *)
10563 # `set' does not quote correctly, so add quotes (double-quote
10564 # substitution turns \\\\ into \\, and sed turns \\ into \).
10565 sed -n \
ac1cb8d3
VS
10566 "s/'/'\\\\''/g;
10567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10568 ;;
10569 *)
10570 # `set' quotes correctly as required by POSIX, so do not add quotes.
10571 sed -n \
ac1cb8d3 10572 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10573 ;;
10574 esac;
10575} |
10576 sed '
10577 t clear
10578 : clear
10579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10580 t end
10581 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10582 : end' >>confcache
10583if diff $cache_file confcache >/dev/null 2>&1; then :; else
10584 if test -w $cache_file; then
10585 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10586 cat confcache >$cache_file
10587 else
10588 echo "not updating unwritable cache $cache_file"
10589 fi
10590fi
10591rm -f confcache
10592
10593if test "$build" != "$host" ; then
1e9e8aba 10594 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10595 CC=$host_alias-gcc
10596 CXX=$host_alias-c++
10597 AR=$host_alias-ar
10598 RANLIB=$host_alias-ranlib
10599 DLLTOOL=$host_alias-dlltool
10600 RESCOMP=$host_alias-windres
a848cd7e 10601 STRIP=$host_alias-strip
1e9e8aba
DE
10602 elif test "x$CC" '!=' "x"; then
10603 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10604 else
10605 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10606echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10607 { (exit 1); exit 1; }; }
10608 fi
10609fi
10610
10611CFLAGS=${CFLAGS:=}
6dcfc289
DE
10612
10613
10614 ac_ext=c
a848cd7e
SC
10615ac_cpp='$CPP $CPPFLAGS'
10616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618ac_compiler_gnu=$ac_cv_c_compiler_gnu
10619if test -n "$ac_tool_prefix"; then
10620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10621set dummy ${ac_tool_prefix}gcc; ac_word=$2
10622echo "$as_me:$LINENO: checking for $ac_word" >&5
10623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10624if test "${ac_cv_prog_CC+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 if test -n "$CC"; then
10628 ac_cv_prog_CC="$CC" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641done
10642done
10643
10644fi
10645fi
10646CC=$ac_cv_prog_CC
10647if test -n "$CC"; then
10648 echo "$as_me:$LINENO: result: $CC" >&5
10649echo "${ECHO_T}$CC" >&6
10650else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655fi
10656if test -z "$ac_cv_prog_CC"; then
10657 ac_ct_CC=$CC
10658 # Extract the first word of "gcc", so it can be a program name with args.
10659set dummy gcc; ac_word=$2
10660echo "$as_me:$LINENO: checking for $ac_word" >&5
10661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 if test -n "$ac_ct_CC"; then
10666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_prog_ac_ct_CC="gcc"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
10682fi
10683fi
10684ac_ct_CC=$ac_cv_prog_ac_ct_CC
10685if test -n "$ac_ct_CC"; then
10686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10687echo "${ECHO_T}$ac_ct_CC" >&6
10688else
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
10691fi
10692
10693 CC=$ac_ct_CC
10694else
10695 CC="$ac_cv_prog_CC"
10696fi
10697
10698if test -z "$CC"; then
10699 if test -n "$ac_tool_prefix"; then
10700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10701set dummy ${ac_tool_prefix}cc; ac_word=$2
10702echo "$as_me:$LINENO: checking for $ac_word" >&5
10703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10704if test "${ac_cv_prog_CC+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706else
10707 if test -n "$CC"; then
10708 ac_cv_prog_CC="$CC" # Let the user override the test.
10709else
10710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711for as_dir in $PATH
10712do
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_prog_CC="${ac_tool_prefix}cc"
10718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10720 fi
10721done
10722done
10723
10724fi
10725fi
10726CC=$ac_cv_prog_CC
10727if test -n "$CC"; then
10728 echo "$as_me:$LINENO: result: $CC" >&5
10729echo "${ECHO_T}$CC" >&6
10730else
10731 echo "$as_me:$LINENO: result: no" >&5
10732echo "${ECHO_T}no" >&6
10733fi
10734
10735fi
10736if test -z "$ac_cv_prog_CC"; then
10737 ac_ct_CC=$CC
10738 # Extract the first word of "cc", so it can be a program name with args.
10739set dummy cc; ac_word=$2
10740echo "$as_me:$LINENO: checking for $ac_word" >&5
10741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744else
10745 if test -n "$ac_ct_CC"; then
10746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10747else
10748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749for as_dir in $PATH
10750do
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10755 ac_cv_prog_ac_ct_CC="cc"
10756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10758 fi
10759done
10760done
10761
10762fi
10763fi
10764ac_ct_CC=$ac_cv_prog_ac_ct_CC
10765if test -n "$ac_ct_CC"; then
10766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10767echo "${ECHO_T}$ac_ct_CC" >&6
10768else
10769 echo "$as_me:$LINENO: result: no" >&5
10770echo "${ECHO_T}no" >&6
10771fi
10772
10773 CC=$ac_ct_CC
10774else
10775 CC="$ac_cv_prog_CC"
10776fi
10777
10778fi
10779if test -z "$CC"; then
10780 # Extract the first word of "cc", so it can be a program name with args.
10781set dummy cc; ac_word=$2
10782echo "$as_me:$LINENO: checking for $ac_word" >&5
10783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10784if test "${ac_cv_prog_CC+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786else
10787 if test -n "$CC"; then
10788 ac_cv_prog_CC="$CC" # Let the user override the test.
10789else
10790 ac_prog_rejected=no
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10799 ac_prog_rejected=yes
10800 continue
10801 fi
10802 ac_cv_prog_CC="cc"
10803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806done
10807done
10808
10809if test $ac_prog_rejected = yes; then
10810 # We found a bogon in the path, so make sure we never use it.
10811 set dummy $ac_cv_prog_CC
10812 shift
10813 if test $# != 0; then
10814 # We chose a different compiler from the bogus one.
10815 # However, it has the same basename, so the bogon will be chosen
10816 # first if we set CC to just the basename; use the full file name.
10817 shift
10818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10819 fi
10820fi
10821fi
10822fi
10823CC=$ac_cv_prog_CC
10824if test -n "$CC"; then
10825 echo "$as_me:$LINENO: result: $CC" >&5
10826echo "${ECHO_T}$CC" >&6
10827else
10828 echo "$as_me:$LINENO: result: no" >&5
10829echo "${ECHO_T}no" >&6
10830fi
10831
10832fi
10833if test -z "$CC"; then
10834 if test -n "$ac_tool_prefix"; then
10835 for ac_prog in cl
10836 do
10837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10839echo "$as_me:$LINENO: checking for $ac_word" >&5
10840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10841if test "${ac_cv_prog_CC+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843else
10844 if test -n "$CC"; then
10845 ac_cv_prog_CC="$CC" # Let the user override the test.
10846else
10847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858done
10859done
10860
10861fi
10862fi
10863CC=$ac_cv_prog_CC
10864if test -n "$CC"; then
10865 echo "$as_me:$LINENO: result: $CC" >&5
10866echo "${ECHO_T}$CC" >&6
10867else
10868 echo "$as_me:$LINENO: result: no" >&5
10869echo "${ECHO_T}no" >&6
10870fi
10871
10872 test -n "$CC" && break
10873 done
10874fi
10875if test -z "$CC"; then
10876 ac_ct_CC=$CC
10877 for ac_prog in cl
10878do
10879 # Extract the first word of "$ac_prog", so it can be a program name with args.
10880set dummy $ac_prog; ac_word=$2
10881echo "$as_me:$LINENO: checking for $ac_word" >&5
10882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885else
10886 if test -n "$ac_ct_CC"; then
10887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10888else
10889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890for as_dir in $PATH
10891do
10892 IFS=$as_save_IFS
10893 test -z "$as_dir" && as_dir=.
10894 for ac_exec_ext in '' $ac_executable_extensions; do
10895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10896 ac_cv_prog_ac_ct_CC="$ac_prog"
10897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 break 2
10899 fi
10900done
10901done
10902
10903fi
10904fi
10905ac_ct_CC=$ac_cv_prog_ac_ct_CC
10906if test -n "$ac_ct_CC"; then
10907 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10908echo "${ECHO_T}$ac_ct_CC" >&6
10909else
10910 echo "$as_me:$LINENO: result: no" >&5
10911echo "${ECHO_T}no" >&6
10912fi
10913
10914 test -n "$ac_ct_CC" && break
10915done
10916
10917 CC=$ac_ct_CC
10918fi
10919
10920fi
10921
10922
10923test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10924See \`config.log' for more details." >&5
10925echo "$as_me: error: no acceptable C compiler found in \$PATH
10926See \`config.log' for more details." >&2;}
10927 { (exit 1); exit 1; }; }
10928
10929# Provide some information about the compiler.
10930echo "$as_me:$LINENO:" \
10931 "checking for C compiler version" >&5
10932ac_compiler=`set X $ac_compile; echo $2`
10933{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10934 (eval $ac_compiler --version </dev/null >&5) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }
10938{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10939 (eval $ac_compiler -v </dev/null >&5) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }
10943{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10944 (eval $ac_compiler -V </dev/null >&5) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }
10948
10949cat >conftest.$ac_ext <<_ACEOF
10950/* confdefs.h. */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h. */
10955
10956int
10957main ()
10958{
10959
10960 ;
10961 return 0;
10962}
10963_ACEOF
10964ac_clean_files_save=$ac_clean_files
10965ac_clean_files="$ac_clean_files a.out a.exe b.out"
10966# Try to create an executable without -o first, disregard a.out.
10967# It will help us diagnose broken compilers, and finding out an intuition
10968# of exeext.
ac1cb8d3
VS
10969echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10970echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10971ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10972if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10973 (eval $ac_link_default) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; then
10977 # Find the output, starting from the most likely. This scheme is
10978# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10979# resort.
10980
10981# Be careful to initialize this variable, since it used to be cached.
10982# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10983ac_cv_exeext=
10984# b.out is created by i960 compilers.
10985for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10986do
10987 test -f "$ac_file" || continue
10988 case $ac_file in
10989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10990 ;;
a848cd7e 10991 conftest.$ac_ext )
ac1cb8d3
VS
10992 # This is the source file.
10993 ;;
a848cd7e 10994 [ab].out )
ac1cb8d3
VS
10995 # We found the default executable, but exeext='' is most
10996 # certainly right.
10997 break;;
a848cd7e 10998 *.* )
ac1cb8d3
VS
10999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11000 # FIXME: I believe we export ac_cv_exeext for Libtool,
11001 # but it would be cool to find out if it's true. Does anybody
11002 # maintain Libtool? --akim.
11003 export ac_cv_exeext
11004 break;;
a848cd7e 11005 * )
ac1cb8d3 11006 break;;
a848cd7e
SC
11007 esac
11008done
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11014See \`config.log' for more details." >&5
11015echo "$as_me: error: C compiler cannot create executables
11016See \`config.log' for more details." >&2;}
11017 { (exit 77); exit 77; }; }
11018fi
11019
11020ac_exeext=$ac_cv_exeext
11021echo "$as_me:$LINENO: result: $ac_file" >&5
11022echo "${ECHO_T}$ac_file" >&6
11023
11024# Check the compiler produces executables we can run. If not, either
11025# the compiler is broken, or we cross compile.
11026echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11027echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11028# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11029# If not cross compiling, check that we can run a simple program.
11030if test "$cross_compiling" != yes; then
11031 if { ac_try='./$ac_file'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 cross_compiling=no
11038 else
11039 if test "$cross_compiling" = maybe; then
11040 cross_compiling=yes
11041 else
11042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11043If you meant to cross compile, use \`--host'.
11044See \`config.log' for more details." >&5
11045echo "$as_me: error: cannot run C compiled programs.
11046If you meant to cross compile, use \`--host'.
11047See \`config.log' for more details." >&2;}
11048 { (exit 1); exit 1; }; }
11049 fi
11050 fi
11051fi
11052echo "$as_me:$LINENO: result: yes" >&5
11053echo "${ECHO_T}yes" >&6
11054
11055rm -f a.out a.exe conftest$ac_cv_exeext b.out
11056ac_clean_files=$ac_clean_files_save
11057# Check the compiler produces executables we can run. If not, either
11058# the compiler is broken, or we cross compile.
11059echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11061echo "$as_me:$LINENO: result: $cross_compiling" >&5
11062echo "${ECHO_T}$cross_compiling" >&6
11063
11064echo "$as_me:$LINENO: checking for suffix of executables" >&5
11065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067 (eval $ac_link) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; then
11071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11073# work properly (i.e., refer to `conftest.exe'), while it won't with
11074# `rm'.
11075for ac_file in conftest.exe conftest conftest.*; do
11076 test -f "$ac_file" || continue
11077 case $ac_file in
11078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11080 export ac_cv_exeext
11081 break;;
a848cd7e
SC
11082 * ) break;;
11083 esac
11084done
11085else
11086 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11087See \`config.log' for more details." >&5
11088echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11089See \`config.log' for more details." >&2;}
11090 { (exit 1); exit 1; }; }
11091fi
11092
11093rm -f conftest$ac_cv_exeext
11094echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11095echo "${ECHO_T}$ac_cv_exeext" >&6
11096
11097rm -f conftest.$ac_ext
11098EXEEXT=$ac_cv_exeext
11099ac_exeext=$EXEEXT
11100echo "$as_me:$LINENO: checking for suffix of object files" >&5
11101echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11102if test "${ac_cv_objext+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105 cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
11111
11112int
11113main ()
11114{
11115
11116 ;
11117 return 0;
11118}
11119_ACEOF
11120rm -f conftest.o conftest.obj
11121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122 (eval $ac_compile) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; then
11126 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11127 case $ac_file in
11128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11130 break;;
11131 esac
11132done
11133else
11134 echo "$as_me: failed program was:" >&5
11135sed 's/^/| /' conftest.$ac_ext >&5
11136
11137{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11138See \`config.log' for more details." >&5
11139echo "$as_me: error: cannot compute suffix of object files: cannot compile
11140See \`config.log' for more details." >&2;}
11141 { (exit 1); exit 1; }; }
11142fi
11143
11144rm -f conftest.$ac_cv_objext conftest.$ac_ext
11145fi
11146echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11147echo "${ECHO_T}$ac_cv_objext" >&6
11148OBJEXT=$ac_cv_objext
11149ac_objext=$OBJEXT
11150echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11151echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11152if test "${ac_cv_c_compiler_gnu+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161
11162int
11163main ()
11164{
11165#ifndef __GNUC__
11166 choke me
11167#endif
11168
11169 ;
11170 return 0;
11171}
11172_ACEOF
11173rm -f conftest.$ac_objext
11174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11175 (eval $ac_compile) 2>conftest.er1
a848cd7e 11176 ac_status=$?
ac1cb8d3
VS
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
a848cd7e
SC
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
9dd0f6c2 11182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_compiler_gnu=yes
11195else
11196 echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
11198
11199ac_compiler_gnu=no
11200fi
ac1cb8d3 11201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11202ac_cv_c_compiler_gnu=$ac_compiler_gnu
11203
11204fi
11205echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11206echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11207GCC=`test $ac_compiler_gnu = yes && echo yes`
11208ac_test_CFLAGS=${CFLAGS+set}
11209ac_save_CFLAGS=$CFLAGS
74802184 11210CFLAGS="-g"
a848cd7e
SC
11211echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11212echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11213if test "${ac_cv_prog_cc_g+set}" = set; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215else
11216 cat >conftest.$ac_ext <<_ACEOF
11217/* confdefs.h. */
11218_ACEOF
11219cat confdefs.h >>conftest.$ac_ext
11220cat >>conftest.$ac_ext <<_ACEOF
11221/* end confdefs.h. */
11222
11223int
11224main ()
11225{
11226
11227 ;
11228 return 0;
11229}
11230_ACEOF
11231rm -f conftest.$ac_objext
11232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11233 (eval $ac_compile) 2>conftest.er1
a848cd7e 11234 ac_status=$?
ac1cb8d3
VS
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
a848cd7e
SC
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
9dd0f6c2 11240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ac_cv_prog_cc_g=yes
11253else
11254 echo "$as_me: failed program was:" >&5
11255sed 's/^/| /' conftest.$ac_ext >&5
11256
11257ac_cv_prog_cc_g=no
11258fi
ac1cb8d3 11259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11260fi
11261echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11263if test "$ac_test_CFLAGS" = set; then
11264 CFLAGS=$ac_save_CFLAGS
11265elif test $ac_cv_prog_cc_g = yes; then
11266 if test "$GCC" = yes; then
11267 CFLAGS="-g -O2"
11268 else
11269 CFLAGS="-g"
11270 fi
11271else
11272 if test "$GCC" = yes; then
11273 CFLAGS="-O2"
11274 else
11275 CFLAGS=
11276 fi
11277fi
11278echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11279echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11280if test "${ac_cv_prog_cc_stdc+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282else
11283 ac_cv_prog_cc_stdc=no
11284ac_save_CC=$CC
11285cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291#include <stdarg.h>
11292#include <stdio.h>
11293#include <sys/types.h>
11294#include <sys/stat.h>
11295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11296struct buf { int x; };
11297FILE * (*rcsopen) (struct buf *, struct stat *, int);
11298static char *e (p, i)
11299 char **p;
11300 int i;
11301{
11302 return p[i];
11303}
11304static char *f (char * (*g) (char **, int), char **p, ...)
11305{
11306 char *s;
11307 va_list v;
11308 va_start (v,p);
11309 s = g (p, va_arg (v,int));
11310 va_end (v);
11311 return s;
11312}
ac1cb8d3
VS
11313
11314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11315 function prototypes and stuff, but not '\xHH' hex character constants.
11316 These don't provoke an error unfortunately, instead are silently treated
11317 as 'x'. The following induces an error, until -std1 is added to get
11318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11319 array size at least. It's necessary to write '\x00'==0 to get something
11320 that's true only with -std1. */
11321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11322
a848cd7e
SC
11323int test (int i, double x);
11324struct s1 {int (*f) (int a);};
11325struct s2 {int (*f) (double a);};
11326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11327int argc;
11328char **argv;
11329int
11330main ()
11331{
11332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11333 ;
11334 return 0;
11335}
11336_ACEOF
11337# Don't try gcc -ansi; that turns off useful extensions and
11338# breaks some systems' header files.
11339# AIX -qlanglvl=ansi
11340# Ultrix and OSF/1 -std1
11341# HP-UX 10.20 and later -Ae
11342# HP-UX older versions -Aa -D_HPUX_SOURCE
11343# SVR4 -Xc -D__EXTENSIONS__
11344for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11345do
11346 CC="$ac_save_CC $ac_arg"
11347 rm -f conftest.$ac_objext
11348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11349 (eval $ac_compile) 2>conftest.er1
a848cd7e 11350 ac_status=$?
ac1cb8d3
VS
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
a848cd7e
SC
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
9dd0f6c2 11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; } &&
11362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_cv_prog_cc_stdc=$ac_arg
11369break
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374fi
ac1cb8d3 11375rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11376done
11377rm -f conftest.$ac_ext conftest.$ac_objext
11378CC=$ac_save_CC
11379
11380fi
11381
11382case "x$ac_cv_prog_cc_stdc" in
11383 x|xno)
11384 echo "$as_me:$LINENO: result: none needed" >&5
11385echo "${ECHO_T}none needed" >&6 ;;
11386 *)
11387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11388echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11389 CC="$CC $ac_cv_prog_cc_stdc" ;;
11390esac
11391
11392# Some people use a C++ compiler to compile C. Since we use `exit',
11393# in C++ we need to declare it. In case someone uses the same compiler
11394# for both compiling C and C++ we need to have the C++ compiler decide
11395# the declaration of exit, since it's the most demanding environment.
11396cat >conftest.$ac_ext <<_ACEOF
11397#ifndef __cplusplus
11398 choke me
11399#endif
11400_ACEOF
11401rm -f conftest.$ac_objext
11402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11403 (eval $ac_compile) 2>conftest.er1
a848cd7e 11404 ac_status=$?
ac1cb8d3
VS
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
a848cd7e
SC
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
9dd0f6c2 11410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 for ac_declaration in \
ac1cb8d3 11423 '' \
a848cd7e
SC
11424 'extern "C" void std::exit (int) throw (); using std::exit;' \
11425 'extern "C" void std::exit (int); using std::exit;' \
11426 'extern "C" void exit (int) throw ();' \
11427 'extern "C" void exit (int);' \
11428 'void exit (int);'
11429do
11430 cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
de59c161 11436$ac_declaration
ac1cb8d3 11437#include <stdlib.h>
a848cd7e
SC
11438int
11439main ()
11440{
11441exit (42);
11442 ;
11443 return 0;
11444}
11445_ACEOF
11446rm -f conftest.$ac_objext
11447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11448 (eval $ac_compile) 2>conftest.er1
a848cd7e 11449 ac_status=$?
ac1cb8d3
VS
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
a848cd7e
SC
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
9dd0f6c2 11455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 :
11468else
11469 echo "$as_me: failed program was:" >&5
11470sed 's/^/| /' conftest.$ac_ext >&5
11471
11472continue
11473fi
ac1cb8d3 11474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11475 cat >conftest.$ac_ext <<_ACEOF
11476/* confdefs.h. */
11477_ACEOF
11478cat confdefs.h >>conftest.$ac_ext
11479cat >>conftest.$ac_ext <<_ACEOF
11480/* end confdefs.h. */
11481$ac_declaration
11482int
11483main ()
11484{
11485exit (42);
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11492 (eval $ac_compile) 2>conftest.er1
a848cd7e 11493 ac_status=$?
ac1cb8d3
VS
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
a848cd7e
SC
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
9dd0f6c2 11499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 break
11512else
11513 echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516fi
ac1cb8d3 11517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11518done
11519rm -f conftest*
11520if test -n "$ac_declaration"; then
11521 echo '#ifdef __cplusplus' >>confdefs.h
11522 echo $ac_declaration >>confdefs.h
11523 echo '#endif' >>confdefs.h
11524fi
11525
11526else
11527 echo "$as_me: failed program was:" >&5
11528sed 's/^/| /' conftest.$ac_ext >&5
11529
11530fi
ac1cb8d3 11531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11532ac_ext=c
11533ac_cpp='$CPP $CPPFLAGS'
11534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536ac_compiler_gnu=$ac_cv_c_compiler_gnu
11537
6dcfc289 11538 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11539echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11540if test "${wx_cv_c_exto+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543 cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549
11550int
11551main ()
11552{
11553
11554 ;
11555 return 0;
11556}
11557_ACEOF
11558rm -f conftest.$ac_objext conftest.$ac_ext.o
11559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; then
11564 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11565 case $ac_file in
11566 conftest.$ac_ext.o)
11567 wx_cv_c_exto="-ext o"
11568 ;;
11569 *)
11570 ;;
11571 esac
11572done
11573else
11574 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11575See \`config.log' for more details." >&5
11576echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11577See \`config.log' for more details." >&2;}
11578 { (exit 1); exit 1; }; }
11579
11580fi
11581
11582rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11583
11584fi
11585echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11586echo "${ECHO_T}$wx_cv_c_exto" >&6
11587if test "x$wx_cv_c_exto" '!=' "x"; then
11588 if test "c" = "c"; then
11589 CFLAGS="$wx_cv_c_exto $CFLAGS"
11590 fi
11591 if test "c" = "cxx"; then
11592 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11593 fi
11594fi
11595
6dcfc289
DE
11596 if test "x$wx_cv_c_exto" '!=' "x"; then
11597 unset ac_cv_prog_cc_g
11598 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11599ac_save_CFLAGS=$CFLAGS
74802184 11600CFLAGS="-g"
480ccd21
DE
11601echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11602echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11603if test "${ac_cv_prog_cc_g+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605else
11606 cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612
11613int
11614main ()
11615{
11616
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
9dd0f6c2 11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_prog_cc_g=yes
11643else
11644 echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
11647ac_cv_prog_cc_g=no
11648fi
11649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11650fi
11651echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11652echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11653if test "$ac_test_CFLAGS" = set; then
11654 CFLAGS=$ac_save_CFLAGS
11655elif test $ac_cv_prog_cc_g = yes; then
11656 if test "$GCC" = yes; then
11657 CFLAGS="-g -O2"
11658 else
11659 CFLAGS="-g"
11660 fi
11661else
11662 if test "$GCC" = yes; then
11663 CFLAGS="-O2"
11664 else
11665 CFLAGS=
11666 fi
11667fi
6dcfc289
DE
11668 fi
11669 ac_ext=c
95986553
DE
11670ac_cpp='$CPP $CPPFLAGS'
11671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11673ac_compiler_gnu=$ac_cv_c_compiler_gnu
11674
11675echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11676echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11677if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679else
11680 cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
11686
11687int
11688main ()
11689{
11690#ifndef __MWERKS__
11691 choke me
11692#endif
11693
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698rm -f conftest.$ac_objext
11699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
9dd0f6c2 11707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest.$ac_objext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 bakefile_compiler_mwerks=yes
11720else
11721 echo "$as_me: failed program was:" >&5
11722sed 's/^/| /' conftest.$ac_ext >&5
11723
11724bakefile_compiler_mwerks=no
11725fi
11726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11727 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11728
11729fi
11730echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11731echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11732
0e6fa1d9 11733MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11734ac_ext=c
11735ac_cpp='$CPP $CPPFLAGS'
11736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11738ac_compiler_gnu=$ac_cv_c_compiler_gnu
11739
11740
6dcfc289 11741 ac_ext=c
9273ffba
DE
11742ac_cpp='$CPP $CPPFLAGS'
11743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11745ac_compiler_gnu=$ac_cv_c_compiler_gnu
11746
11747echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11748echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11749if test "${wx_cv_c_compiler_xlc+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758
11759int
11760main ()
11761{
11762#ifndef __xlC__
11763 choke me
11764#endif
11765
11766 ;
11767 return 0;
11768}
11769_ACEOF
11770rm -f conftest.$ac_objext
11771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772 (eval $ac_compile) 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
9dd0f6c2 11779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest.$ac_objext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 wx_compiler_xlc=yes
11792else
11793 echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796wx_compiler_xlc=no
11797fi
11798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11799 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11800
11801fi
11802echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11803echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11804
0e6fa1d9 11805XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11806ac_ext=c
11807ac_cpp='$CPP $CPPFLAGS'
11808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810ac_compiler_gnu=$ac_cv_c_compiler_gnu
11811
11812
a848cd7e 11813
6dcfc289 11814
a848cd7e
SC
11815ac_ext=c
11816ac_cpp='$CPP $CPPFLAGS'
11817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11821echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11822# On Suns, sometimes $CPP names a directory.
11823if test -n "$CPP" && test -d "$CPP"; then
11824 CPP=
11825fi
11826if test -z "$CPP"; then
11827 if test "${ac_cv_prog_CPP+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else
11830 # Double quotes because CPP needs to be expanded
11831 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11832 do
11833 ac_preproc_ok=false
11834for ac_c_preproc_warn_flag in '' yes
11835do
11836 # Use a header file that comes with gcc, so configuring glibc
11837 # with a fresh cross-compiler works.
11838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 # <limits.h> exists even on freestanding compilers.
11840 # On the NeXT, cc -E runs the code through the compiler's parser,
11841 # not just through cpp. "Syntax error" is here to catch this case.
11842 cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
11848#ifdef __STDC__
11849# include <limits.h>
11850#else
11851# include <assert.h>
11852#endif
ac1cb8d3 11853 Syntax error
a848cd7e
SC
11854_ACEOF
11855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } >/dev/null; then
11863 if test -s conftest.err; then
11864 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11866 else
11867 ac_cpp_err=
11868 fi
11869else
11870 ac_cpp_err=yes
11871fi
11872if test -z "$ac_cpp_err"; then
11873 :
11874else
11875 echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 # Broken: fails on valid input.
11879continue
11880fi
11881rm -f conftest.err conftest.$ac_ext
11882
11883 # OK, works on sane cases. Now check whether non-existent headers
11884 # can be detected and how.
11885 cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891#include <ac_nonexistent.h>
11892_ACEOF
11893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null; then
11901 if test -s conftest.err; then
11902 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11904 else
11905 ac_cpp_err=
11906 fi
11907else
11908 ac_cpp_err=yes
11909fi
11910if test -z "$ac_cpp_err"; then
11911 # Broken: success on invalid input.
11912continue
11913else
11914 echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 # Passes both tests.
11918ac_preproc_ok=:
11919break
11920fi
11921rm -f conftest.err conftest.$ac_ext
11922
11923done
11924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11925rm -f conftest.err conftest.$ac_ext
11926if $ac_preproc_ok; then
11927 break
11928fi
11929
11930 done
11931 ac_cv_prog_CPP=$CPP
11932
11933fi
11934 CPP=$ac_cv_prog_CPP
11935else
11936 ac_cv_prog_CPP=$CPP
11937fi
11938echo "$as_me:$LINENO: result: $CPP" >&5
11939echo "${ECHO_T}$CPP" >&6
11940ac_preproc_ok=false
11941for ac_c_preproc_warn_flag in '' yes
11942do
11943 # Use a header file that comes with gcc, so configuring glibc
11944 # with a fresh cross-compiler works.
11945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11946 # <limits.h> exists even on freestanding compilers.
11947 # On the NeXT, cc -E runs the code through the compiler's parser,
11948 # not just through cpp. "Syntax error" is here to catch this case.
11949 cat >conftest.$ac_ext <<_ACEOF
11950/* confdefs.h. */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h. */
11955#ifdef __STDC__
11956# include <limits.h>
11957#else
11958# include <assert.h>
11959#endif
ac1cb8d3 11960 Syntax error
a848cd7e
SC
11961_ACEOF
11962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } >/dev/null; then
11970 if test -s conftest.err; then
11971 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11973 else
11974 ac_cpp_err=
11975 fi
11976else
11977 ac_cpp_err=yes
11978fi
11979if test -z "$ac_cpp_err"; then
11980 :
11981else
11982 echo "$as_me: failed program was:" >&5
11983sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 # Broken: fails on valid input.
11986continue
11987fi
11988rm -f conftest.err conftest.$ac_ext
11989
11990 # OK, works on sane cases. Now check whether non-existent headers
11991 # can be detected and how.
11992 cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998#include <ac_nonexistent.h>
11999_ACEOF
12000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } >/dev/null; then
12008 if test -s conftest.err; then
12009 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12011 else
12012 ac_cpp_err=
12013 fi
12014else
12015 ac_cpp_err=yes
12016fi
12017if test -z "$ac_cpp_err"; then
12018 # Broken: success on invalid input.
12019continue
12020else
12021 echo "$as_me: failed program was:" >&5
12022sed 's/^/| /' conftest.$ac_ext >&5
12023
12024 # Passes both tests.
12025ac_preproc_ok=:
12026break
12027fi
12028rm -f conftest.err conftest.$ac_ext
12029
12030done
12031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12032rm -f conftest.err conftest.$ac_ext
12033if $ac_preproc_ok; then
12034 :
12035else
12036 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12037See \`config.log' for more details." >&5
12038echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12039See \`config.log' for more details." >&2;}
12040 { (exit 1); exit 1; }; }
12041fi
12042
12043ac_ext=c
12044ac_cpp='$CPP $CPPFLAGS'
12045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047ac_compiler_gnu=$ac_cv_c_compiler_gnu
12048
12049
12050echo "$as_me:$LINENO: checking for egrep" >&5
12051echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12052if test "${ac_cv_prog_egrep+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
12055 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12056 then ac_cv_prog_egrep='grep -E'
12057 else ac_cv_prog_egrep='egrep'
12058 fi
12059fi
12060echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12061echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12062 EGREP=$ac_cv_prog_egrep
12063
12064
12065if test $ac_cv_c_compiler_gnu = yes; then
12066 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12067echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12068if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070else
12071 ac_pattern="Autoconf.*'x'"
12072 cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078#include <sgtty.h>
12079Autoconf TIOCGETP
12080_ACEOF
12081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12082 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12083 ac_cv_prog_gcc_traditional=yes
12084else
12085 ac_cv_prog_gcc_traditional=no
12086fi
12087rm -f conftest*
12088
12089
12090 if test $ac_cv_prog_gcc_traditional = no; then
12091 cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097#include <termio.h>
12098Autoconf TCGETA
12099_ACEOF
12100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12101 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12102 ac_cv_prog_gcc_traditional=yes
12103fi
12104rm -f conftest*
12105
12106 fi
12107fi
12108echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12109echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12110 if test $ac_cv_prog_gcc_traditional = yes; then
12111 CC="$CC -traditional"
12112 fi
12113fi
12114
12115
12116
12117
12118ac_ext=cc
12119ac_cpp='$CXXCPP $CPPFLAGS'
12120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12123
12124
12125CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12126
12127
12128 ac_ext=cc
a848cd7e
SC
12129ac_cpp='$CXXCPP $CPPFLAGS'
12130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12133if test -n "$ac_tool_prefix"; then
12134 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12135 do
12136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12138echo "$as_me:$LINENO: checking for $ac_word" >&5
12139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12140if test "${ac_cv_prog_CXX+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143 if test -n "$CXX"; then
12144 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12145else
12146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147for as_dir in $PATH
12148do
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12156 fi
12157done
12158done
12159
12160fi
12161fi
12162CXX=$ac_cv_prog_CXX
12163if test -n "$CXX"; then
12164 echo "$as_me:$LINENO: result: $CXX" >&5
12165echo "${ECHO_T}$CXX" >&6
12166else
12167 echo "$as_me:$LINENO: result: no" >&5
12168echo "${ECHO_T}no" >&6
12169fi
12170
12171 test -n "$CXX" && break
12172 done
12173fi
12174if test -z "$CXX"; then
12175 ac_ct_CXX=$CXX
12176 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12177do
12178 # Extract the first word of "$ac_prog", so it can be a program name with args.
12179set dummy $ac_prog; ac_word=$2
12180echo "$as_me:$LINENO: checking for $ac_word" >&5
12181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12182if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184else
12185 if test -n "$ac_ct_CXX"; then
12186 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12187else
12188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_prog_ac_ct_CXX="$ac_prog"
12196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199done
12200done
12201
12202fi
12203fi
12204ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12205if test -n "$ac_ct_CXX"; then
12206 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12207echo "${ECHO_T}$ac_ct_CXX" >&6
12208else
12209 echo "$as_me:$LINENO: result: no" >&5
12210echo "${ECHO_T}no" >&6
12211fi
12212
12213 test -n "$ac_ct_CXX" && break
12214done
12215test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12216
12217 CXX=$ac_ct_CXX
12218fi
12219
12220
12221# Provide some information about the compiler.
12222echo "$as_me:$LINENO:" \
12223 "checking for C++ compiler version" >&5
12224ac_compiler=`set X $ac_compile; echo $2`
12225{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12226 (eval $ac_compiler --version </dev/null >&5) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }
12230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12231 (eval $ac_compiler -v </dev/null >&5) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }
12235{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12236 (eval $ac_compiler -V </dev/null >&5) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }
12240
12241echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12242echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12243if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245else
12246 cat >conftest.$ac_ext <<_ACEOF
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
12252
12253int
12254main ()
12255{
12256#ifndef __GNUC__
12257 choke me
12258#endif
12259
12260 ;
12261 return 0;
12262}
12263_ACEOF
12264rm -f conftest.$ac_objext
12265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12266 (eval $ac_compile) 2>conftest.er1
a848cd7e 12267 ac_status=$?
ac1cb8d3
VS
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
a848cd7e
SC
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
9dd0f6c2 12273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_compiler_gnu=yes
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290ac_compiler_gnu=no
12291fi
ac1cb8d3 12292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12293ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12294
12295fi
12296echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12297echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12298GXX=`test $ac_compiler_gnu = yes && echo yes`
12299ac_test_CXXFLAGS=${CXXFLAGS+set}
12300ac_save_CXXFLAGS=$CXXFLAGS
12301CXXFLAGS="-g"
12302echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12303echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12304if test "${ac_cv_prog_cxx_g+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313
12314int
12315main ()
12316{
12317
12318 ;
12319 return 0;
12320}
12321_ACEOF
12322rm -f conftest.$ac_objext
12323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12324 (eval $ac_compile) 2>conftest.er1
a848cd7e 12325 ac_status=$?
ac1cb8d3
VS
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
a848cd7e
SC
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
9dd0f6c2 12331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_prog_cxx_g=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348ac_cv_prog_cxx_g=no
12349fi
ac1cb8d3 12350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12351fi
12352echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12353echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12354if test "$ac_test_CXXFLAGS" = set; then
12355 CXXFLAGS=$ac_save_CXXFLAGS
12356elif test $ac_cv_prog_cxx_g = yes; then
12357 if test "$GXX" = yes; then
74802184 12358 CXXFLAGS="-g -O2"
a848cd7e 12359 else
74802184 12360 CXXFLAGS="-g"
a848cd7e
SC
12361 fi
12362else
12363 if test "$GXX" = yes; then
12364 CXXFLAGS="-O2"
12365 else
12366 CXXFLAGS=
12367 fi
12368fi
12369for ac_declaration in \
ac1cb8d3 12370 '' \
a848cd7e
SC
12371 'extern "C" void std::exit (int) throw (); using std::exit;' \
12372 'extern "C" void std::exit (int); using std::exit;' \
12373 'extern "C" void exit (int) throw ();' \
12374 'extern "C" void exit (int);' \
12375 'void exit (int);'
12376do
12377 cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
de59c161 12383$ac_declaration
ac1cb8d3 12384#include <stdlib.h>
a848cd7e
SC
12385int
12386main ()
12387{
12388exit (42);
12389 ;
12390 return 0;
12391}
12392_ACEOF
12393rm -f conftest.$ac_objext
12394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12395 (eval $ac_compile) 2>conftest.er1
a848cd7e 12396 ac_status=$?
ac1cb8d3
VS
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
a848cd7e
SC
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } &&
9dd0f6c2 12402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 :
12415else
12416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419continue
12420fi
ac1cb8d3 12421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12422 cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428$ac_declaration
12429int
12430main ()
12431{
12432exit (42);
12433 ;
12434 return 0;
12435}
12436_ACEOF
12437rm -f conftest.$ac_objext
12438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12439 (eval $ac_compile) 2>conftest.er1
a848cd7e 12440 ac_status=$?
ac1cb8d3
VS
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
a848cd7e
SC
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
9dd0f6c2 12446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 break
12459else
12460 echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463fi
ac1cb8d3 12464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12465done
12466rm -f conftest*
12467if test -n "$ac_declaration"; then
12468 echo '#ifdef __cplusplus' >>confdefs.h
12469 echo $ac_declaration >>confdefs.h
12470 echo '#endif' >>confdefs.h
12471fi
12472
12473ac_ext=cc
12474ac_cpp='$CXXCPP $CPPFLAGS'
12475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12478
6dcfc289 12479 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12480echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12481if test "${wx_cv_cxx_exto+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490
12491int
12492main ()
12493{
12494
12495 ;
12496 return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext conftest.$ac_ext.o
12500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501 (eval $ac_compile) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; then
12505 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12506 case $ac_file in
12507 conftest.$ac_ext.o)
12508 wx_cv_cxx_exto="-ext o"
12509 ;;
12510 *)
12511 ;;
12512 esac
12513done
12514else
12515 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12516See \`config.log' for more details." >&5
12517echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12518See \`config.log' for more details." >&2;}
12519 { (exit 1); exit 1; }; }
12520
12521fi
12522
12523rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12524
12525fi
12526echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12527echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12528if test "x$wx_cv_cxx_exto" '!=' "x"; then
12529 if test "cxx" = "c"; then
12530 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12531 fi
12532 if test "cxx" = "cxx"; then
12533 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12534 fi
12535fi
12536
6dcfc289
DE
12537 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12538 unset ac_cv_prog_cxx_g
12539 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12540ac_save_CXXFLAGS=$CXXFLAGS
12541CXXFLAGS="-g"
12542echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12543echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12544if test "${ac_cv_prog_cxx_g+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546else
12547 cat >conftest.$ac_ext <<_ACEOF
12548/* confdefs.h. */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h. */
12553
12554int
12555main ()
12556{
12557
12558 ;
12559 return 0;
12560}
12561_ACEOF
12562rm -f conftest.$ac_objext
12563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
9dd0f6c2 12571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest.$ac_objext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_cv_prog_cxx_g=yes
12584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588ac_cv_prog_cxx_g=no
12589fi
12590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12591fi
12592echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12593echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12594if test "$ac_test_CXXFLAGS" = set; then
12595 CXXFLAGS=$ac_save_CXXFLAGS
12596elif test $ac_cv_prog_cxx_g = yes; then
12597 if test "$GXX" = yes; then
74802184 12598 CXXFLAGS="-g -O2"
480ccd21 12599 else
74802184 12600 CXXFLAGS="-g"
480ccd21
DE
12601 fi
12602else
12603 if test "$GXX" = yes; then
12604 CXXFLAGS="-O2"
12605 else
12606 CXXFLAGS=
12607 fi
12608fi
6dcfc289
DE
12609 fi
12610 ac_ext=cc
95986553
DE
12611ac_cpp='$CXXCPP $CPPFLAGS'
12612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12615
12616echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12617echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12618if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621 cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627
12628int
12629main ()
12630{
12631#ifndef __MWERKS__
12632 choke me
12633#endif
12634
12635 ;
12636 return 0;
12637}
12638_ACEOF
12639rm -f conftest.$ac_objext
12640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
9dd0f6c2 12648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 bakefile_compiler_mwerks=yes
12661else
12662 echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
12665bakefile_compiler_mwerks=no
12666fi
12667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12669
12670fi
12671echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12672echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12673
0e6fa1d9 12674MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12675ac_ext=cc
12676ac_cpp='$CXXCPP $CPPFLAGS'
12677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12680
12681
6dcfc289 12682 ac_ext=cc
9273ffba
DE
12683ac_cpp='$CXXCPP $CPPFLAGS'
12684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
12688echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12689echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12690if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699
12700int
12701main ()
12702{
12703#ifndef __xlC__
12704 choke me
12705#endif
12706
12707 ;
12708 return 0;
12709}
12710_ACEOF
12711rm -f conftest.$ac_objext
12712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
9dd0f6c2 12720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 wx_compiler_xlc=yes
12733else
12734 echo "$as_me: failed program was:" >&5
12735sed 's/^/| /' conftest.$ac_ext >&5
12736
12737wx_compiler_xlc=no
12738fi
12739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12740 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12741
12742fi
12743echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12744echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12745
0e6fa1d9 12746XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12747ac_ext=cc
12748ac_cpp='$CXXCPP $CPPFLAGS'
12749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12752
12753
95986553 12754
6dcfc289 12755
a848cd7e
SC
12756ac_ext=c
12757ac_cpp='$CPP $CPPFLAGS'
12758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760ac_compiler_gnu=$ac_cv_c_compiler_gnu
12761
12762
a848cd7e
SC
12763if test -n "$ac_tool_prefix"; then
12764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12765set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12766echo "$as_me:$LINENO: checking for $ac_word" >&5
12767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12768if test "${ac_cv_prog_RANLIB+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770else
12771 if test -n "$RANLIB"; then
12772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12773else
12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785done
12786done
12787
12788fi
12789fi
12790RANLIB=$ac_cv_prog_RANLIB
12791if test -n "$RANLIB"; then
12792 echo "$as_me:$LINENO: result: $RANLIB" >&5
12793echo "${ECHO_T}$RANLIB" >&6
12794else
12795 echo "$as_me:$LINENO: result: no" >&5
12796echo "${ECHO_T}no" >&6
12797fi
12798
12799fi
12800if test -z "$ac_cv_prog_RANLIB"; then
12801 ac_ct_RANLIB=$RANLIB
12802 # Extract the first word of "ranlib", so it can be a program name with args.
12803set dummy ranlib; ac_word=$2
12804echo "$as_me:$LINENO: checking for $ac_word" >&5
12805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12806if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808else
12809 if test -n "$ac_ct_RANLIB"; then
12810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12811else
12812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813for as_dir in $PATH
12814do
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12819 ac_cv_prog_ac_ct_RANLIB="ranlib"
12820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 break 2
12822 fi
12823done
12824done
12825
12826 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12827fi
12828fi
12829ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12830if test -n "$ac_ct_RANLIB"; then
12831 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12832echo "${ECHO_T}$ac_ct_RANLIB" >&6
12833else
12834 echo "$as_me:$LINENO: result: no" >&5
12835echo "${ECHO_T}no" >&6
12836fi
12837
12838 RANLIB=$ac_ct_RANLIB
12839else
12840 RANLIB="$ac_cv_prog_RANLIB"
12841fi
12842
12843
12844# Extract the first word of "ar", so it can be a program name with args.
12845set dummy ar; ac_word=$2
12846echo "$as_me:$LINENO: checking for $ac_word" >&5
12847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12848if test "${ac_cv_prog_AR+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850else
12851 if test -n "$AR"; then
12852 ac_cv_prog_AR="$AR" # Let the user override the test.
12853else
12854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855for as_dir in $PATH
12856do
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861 ac_cv_prog_AR="ar"
12862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12864 fi
12865done
12866done
12867
12868fi
12869fi
12870AR=$ac_cv_prog_AR
12871if test -n "$AR"; then
12872 echo "$as_me:$LINENO: result: $AR" >&5
12873echo "${ECHO_T}$AR" >&6
12874else
12875 echo "$as_me:$LINENO: result: no" >&5
12876echo "${ECHO_T}no" >&6
12877fi
12878
12879if test "x$AR" = "x" ; then
77ffb593
JS
12880 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12881echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12882 { (exit 1); exit 1; }; }
12883fi
12884
12885# Find a good install program. We prefer a C program (faster),
12886# so one script is as good as another. But avoid the broken or
12887# incompatible versions:
12888# SysV /etc/install, /usr/sbin/install
12889# SunOS /usr/etc/install
12890# IRIX /sbin/install
12891# AIX /bin/install
12892# AmigaOS /C/install, which installs bootblocks on floppy discs
12893# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12894# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12895# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12896# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12897# ./install, which can be erroneously created by make from ./install.sh.
12898echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12899echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12900if test -z "$INSTALL"; then
12901if test "${ac_cv_path_install+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905for as_dir in $PATH
12906do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 # Account for people who put trailing slashes in PATH elements.
12910case $as_dir/ in
12911 ./ | .// | /cC/* | \
12912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12913 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12914 /usr/ucb/* ) ;;
12915 *)
12916 # OSF1 and SCO ODT 3.0 have their own names for install.
12917 # Don't use installbsd from OSF since it installs stuff as root
12918 # by default.
12919 for ac_prog in ginstall scoinst install; do
12920 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12921 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12922 if test $ac_prog = install &&
12923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12924 # AIX install. It has an incompatible calling convention.
12925 :
12926 elif test $ac_prog = install &&
12927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12928 # program-specific install script used by HP pwplus--don't use.
12929 :
12930 else
12931 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12932 break 3
12933 fi
12934 fi
a848cd7e
SC
12935 done
12936 done
12937 ;;
12938esac
12939done
12940
12941
12942fi
12943 if test "${ac_cv_path_install+set}" = set; then
12944 INSTALL=$ac_cv_path_install
12945 else
12946 # As a last resort, use the slow shell script. We don't cache a
12947 # path for INSTALL within a source directory, because that will
12948 # break other packages using the cache if that directory is
12949 # removed, or if the path is relative.
12950 INSTALL=$ac_install_sh
12951 fi
12952fi
12953echo "$as_me:$LINENO: result: $INSTALL" >&5
12954echo "${ECHO_T}$INSTALL" >&6
12955
12956# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12957# It thinks the first close brace ends the variable substitution.
12958test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12959
12960test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12961
12962test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12963
12964
12965case ${INSTALL} in
12966 /* ) # Absolute
12967 ;;
12968 ?:* ) # Drive letter, considered as absolute.
12969 ;;
12970 *)
12971 INSTALL=`pwd`/${INSTALL} ;;
12972esac
12973
a848cd7e
SC
12974
12975case "${host}" in
12976
12977 powerpc-*-darwin* )
12978 INSTALL_PROGRAM="cp -fp"
12979 INSTALL_DATA="cp -fp"
12980 ;;
12981 *)
12982 ;;
12983esac
12984
12985# Extract the first word of "strip", so it can be a program name with args.
12986set dummy strip; ac_word=$2
12987echo "$as_me:$LINENO: checking for $ac_word" >&5
12988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12989if test "${ac_cv_prog_STRIP+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991else
12992 if test -n "$STRIP"; then
12993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12994else
12995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996for as_dir in $PATH
12997do
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13002 ac_cv_prog_STRIP="strip"
13003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13005 fi
13006done
13007done
13008
13009 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13010fi
13011fi
13012STRIP=$ac_cv_prog_STRIP
13013if test -n "$STRIP"; then
13014 echo "$as_me:$LINENO: result: $STRIP" >&5
13015echo "${ECHO_T}$STRIP" >&6
13016else
13017 echo "$as_me:$LINENO: result: no" >&5
13018echo "${ECHO_T}no" >&6
13019fi
13020
13021
13022echo "$as_me:$LINENO: checking if make is GNU make" >&5
13023echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13024if test "${wx_cv_prog_makeisgnu+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026else
13027
13028 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13029 egrep -s GNU > /dev/null); then
13030 wx_cv_prog_makeisgnu="yes"
13031 else
13032 wx_cv_prog_makeisgnu="no"
13033 fi
13034
13035fi
13036echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13037echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13038
13039if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13040 IF_GNU_MAKE=""
13041else
13042 IF_GNU_MAKE="#"
13043fi
13044
13045
13046
13047if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13048echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13049echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13050if test "${wx_cv_prog_makevpath+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053
13054cat - << EOF > confMake
13055check : file
13056 cp \$? \$@
13057 cp \$? final_file
13058EOF
13059
13060if test ! -d sub ; then
13061 mkdir sub
13062fi
13063echo dummy > sub/file
13064${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13065RESULT=$?
13066rm -f sub/file check final_file confMake
13067rmdir sub
13068if test "$RESULT" = 0; then
13069 wx_cv_prog_makevpath="yes"
13070else
13071 wx_cv_prog_makevpath="no"
13072fi
13073
13074fi
13075echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13076echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13077
13078if test "x$wx_cv_prog_makevpath" != "xyes"; then
13079{ { echo "$as_me:$LINENO: error:
13080You need a make-utility that is able to use the variable
13081VPATH correctly.
13082If your version of make does not support VPATH correctly,
13083please install GNU-make (possibly as gmake), and start
13084configure with the following command:
13085export MAKE=gmake; ./configure for sh-type shells
13086setenv MAKE gmake; ./configure for csh-type shells
13087Also please do remember to use gmake in this case every time
13088you are trying to compile.
13089" >&5
13090echo "$as_me: error:
13091You need a make-utility that is able to use the variable
13092VPATH correctly.
13093If your version of make does not support VPATH correctly,
13094please install GNU-make (possibly as gmake), and start
13095configure with the following command:
13096export MAKE=gmake; ./configure for sh-type shells
13097setenv MAKE gmake; ./configure for csh-type shells
13098Also please do remember to use gmake in this case every time
13099you are trying to compile.
13100" >&2;}
13101 { (exit 1); exit 1; }; }
13102fi fi
13103echo "$as_me:$LINENO: checking whether ln -s works" >&5
13104echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13105LN_S=$as_ln_s
13106if test "$LN_S" = "ln -s"; then
13107 echo "$as_me:$LINENO: result: yes" >&5
13108echo "${ECHO_T}yes" >&6
13109else
13110 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13111echo "${ECHO_T}no, using $LN_S" >&6
13112fi
13113
13114
13115
9273ffba
DE
13116if test "x$XLCXX" = "xyes"; then
13117 CXXFLAGS="$CXXFLAGS -qunique"
13118fi
13119
13120
4d7ec9f1
DE
13121case "${host}" in
13122 powerpc-*-darwin* )
13123 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13124echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131
13132int
13133main ()
13134{
13135#ifndef __POWERPC__
13136 choke me for lack of PowerPC
13137#endif
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
13144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
9dd0f6c2 13152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 echo "$as_me:$LINENO: result: yes" >&5
13165echo "${ECHO_T}yes" >&6
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170echo "$as_me:$LINENO: result: no" >&5
13171echo "${ECHO_T}no" >&6
13172 cat >>confdefs.h <<\_ACEOF
13173#define __POWERPC__ 1
13174_ACEOF
13175
13176
13177fi
13178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13179 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13180echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13181 cat >conftest.$ac_ext <<_ACEOF
13182/* confdefs.h. */
13183_ACEOF
13184cat confdefs.h >>conftest.$ac_ext
13185cat >>conftest.$ac_ext <<_ACEOF
13186/* end confdefs.h. */
13187#include <CoreFoundation/CFBase.h>
13188
13189int
13190main ()
13191{
13192
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
9dd0f6c2 13206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 echo "$as_me:$LINENO: result: yes" >&5
13219echo "${ECHO_T}yes" >&6
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224echo "$as_me:$LINENO: result: no" >&5
13225echo "${ECHO_T}no" >&6
13226 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13227echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13228 cat >conftest.$ac_ext <<_ACEOF
13229/* confdefs.h. */
13230_ACEOF
13231cat confdefs.h >>conftest.$ac_ext
13232cat >>conftest.$ac_ext <<_ACEOF
13233/* end confdefs.h. */
13234#define __CF_USE_FRAMEWORK_INCLUDES__
13235#include <CoreFoundation/CFBase.h>
13236
13237int
13238main ()
13239{
13240
13241 ;
13242 return 0;
13243}
13244_ACEOF
13245rm -f conftest.$ac_objext
13246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
9dd0f6c2 13254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; } &&
13260 { ac_try='test -s conftest.$ac_objext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 echo "$as_me:$LINENO: result: yes" >&5
13267echo "${ECHO_T}yes" >&6
13268 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13274See \`config.log' for more details." >&5
13275echo "$as_me: error: no. CoreFoundation not available.
13276See \`config.log' for more details." >&2;}
13277 { (exit 1); exit 1; }; }
13278
13279fi
13280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13281
13282
13283fi
13284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13285 ;;
13286esac
13287
a848cd7e
SC
13288case "${host}" in
13289 *-pc-os2_emx | *-pc-os2-emx )
13290 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13291 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13292echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13293if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295else
13296 ac_check_lib_save_LIBS=$LIBS
13297LIBS="-lcExt $LIBS"
13298cat >conftest.$ac_ext <<_ACEOF
13299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
13304
13305/* Override any gcc2 internal prototype to avoid an error. */
13306#ifdef __cplusplus
13307extern "C"
13308#endif
13309/* We use char because int might match the return type of a gcc2
13310 builtin and then its argument prototype would still apply. */
13311char drand48 ();
13312int
13313main ()
13314{
13315drand48 ();
13316 ;
13317 return 0;
13318}
13319_ACEOF
13320rm -f conftest.$ac_objext conftest$ac_exeext
13321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13322 (eval $ac_link) 2>conftest.er1
a848cd7e 13323 ac_status=$?
ac1cb8d3
VS
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
a848cd7e
SC
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
9dd0f6c2 13329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; } &&
13335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_cv_lib_cExt_drand48=yes
13342else
13343 echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346ac_cv_lib_cExt_drand48=no
13347fi
ac1cb8d3
VS
13348rm -f conftest.err conftest.$ac_objext \
13349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13350LIBS=$ac_check_lib_save_LIBS
13351fi
13352echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13353echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13354if test $ac_cv_lib_cExt_drand48 = yes; then
13355 LIBS="$LIBS -lcExt"
13356fi
13357
13358 else
13359 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13360 fi
69120ee4
VZ
13361 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13362echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13363if test "${wx_cv_gccversion+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
13366
391a765e
VS
13367 if test "$cross_compiling" = yes; then
13368 wx_cv_gccversion="EMX2"
13369
13370else
13371 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377
391a765e 13378 #include <stdio.h>
a848cd7e 13379
391a765e
VS
13380 int main()
13381 {
13382 FILE *f=fopen("conftestval", "w");
13383 if (!f) exit(1);
13384 fprintf(f,
a848cd7e 13385 #if (__GNUC__ < 3)
391a765e
VS
13386 "EMX2"
13387 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13388 "EMX3"
13389 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13390 "Innotek5"
13391 #else
13392 "Innotek6"
a848cd7e 13393 #endif
391a765e
VS
13394 );
13395 exit(0);
13396 }
a848cd7e 13397
a848cd7e 13398_ACEOF
391a765e
VS
13399rm -f conftest$ac_exeext
13400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401 (eval $ac_link) 2>&5
ac1cb8d3
VS
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
391a765e 13410 wx_cv_gccversion=`cat conftestval`
a848cd7e 13411else
391a765e
VS
13412 echo "$as_me: program exited with status $ac_status" >&5
13413echo "$as_me: failed program was:" >&5
a848cd7e
SC
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
391a765e
VS
13416( exit $ac_status )
13417wx_cv_gccversion="EMX2"
a848cd7e 13418fi
391a765e 13419rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13420fi
a848cd7e
SC
13421
13422fi
13423echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13424echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13425 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13426 LIBS="$LIBS -lstdcpp"
13427 LDFLAGS="$LDFLAGS -Zsysv-signals"
13428 else
391a765e 13429 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13430 LIBS="$LIBS -lstdcxx"
13431 LDFLAGS="$LDFLAGS -Zsysv-signals"
13432 else
13433 LIBS="$LIBS -lstdc++"
13434 fi
13435 fi
94acd38e
DE
13436 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13437 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13438echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13439 wxUSE_OMF=yes
2da0c077 13440 enable_omf=yes
a848cd7e
SC
13441 fi
13442 ;;
13443 *)
13444
13445
13446
13447 ac_ext=cc
13448ac_cpp='$CXXCPP $CPPFLAGS'
13449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13452
13453
95986553 13454 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13455echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13456if test "${ac_cv_string_strcasecmp+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459
13460 cat >conftest.$ac_ext <<_ACEOF
13461/* confdefs.h. */
13462_ACEOF
13463cat confdefs.h >>conftest.$ac_ext
13464cat >>conftest.$ac_ext <<_ACEOF
13465/* end confdefs.h. */
13466
13467 #include <string.h>
13468
13469int
13470main ()
13471{
13472
13473 strcasecmp("foo", "bar");
13474
13475 ;
13476 return 0;
13477}
13478_ACEOF
13479rm -f conftest.$ac_objext conftest$ac_exeext
13480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13481 (eval $ac_link) 2>conftest.er1
a848cd7e 13482 ac_status=$?
ac1cb8d3
VS
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
a848cd7e
SC
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
9dd0f6c2 13488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; } &&
13494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13500 ac_cv_string_strcasecmp=yes
13501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
13505ac_cv_string_strcasecmp=no
13506
13507fi
ac1cb8d3
VS
13508rm -f conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13510
13511fi
13512echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13513echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13514
13515 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13516 cat >>confdefs.h <<\_ACEOF
13517#define HAVE_STRCASECMP_IN_STRING_H 1
13518_ACEOF
13519
13520 else
13521 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13522echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13523if test "${ac_cv_strings_strcasecmp+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525else
13526
13527 cat >conftest.$ac_ext <<_ACEOF
13528/* confdefs.h. */
13529_ACEOF
13530cat confdefs.h >>conftest.$ac_ext
13531cat >>conftest.$ac_ext <<_ACEOF
13532/* end confdefs.h. */
13533
13534 #include <strings.h>
13535
13536int
13537main ()
13538{
13539
13540 strcasecmp("foo", "bar");
13541
13542 ;
13543 return 0;
13544}
13545_ACEOF
13546rm -f conftest.$ac_objext conftest$ac_exeext
13547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13548 (eval $ac_link) 2>conftest.er1
a848cd7e 13549 ac_status=$?
ac1cb8d3
VS
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
a848cd7e
SC
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
9dd0f6c2 13555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_strings_strcasecmp=yes
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
13572ac_cv_strings_strcasecmp=no
13573
13574fi
ac1cb8d3
VS
13575rm -f conftest.err conftest.$ac_objext \
13576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13577
13578fi
13579echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13580echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13581
0c3c69fc 13582 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13583 cat >>confdefs.h <<\_ACEOF
13584#define HAVE_STRCASECMP_IN_STRINGS_H 1
13585_ACEOF
13586
13587 else
13588 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13589echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13590 { (exit 1); exit 1; }; }
13591 fi
13592 fi
13593
13594 ac_ext=c
13595ac_cpp='$CPP $CPPFLAGS'
13596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13598ac_compiler_gnu=$ac_cv_c_compiler_gnu
13599
13600 ;;
13601esac
13602
13603
13604echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13605echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13606if test "${ac_cv_header_stdc+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609 cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h. */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h. */
13615#include <stdlib.h>
13616#include <stdarg.h>
13617#include <string.h>
13618#include <float.h>
13619
13620int
13621main ()
13622{
13623
13624 ;
13625 return 0;
13626}
13627_ACEOF
13628rm -f conftest.$ac_objext
13629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13630 (eval $ac_compile) 2>conftest.er1
a848cd7e 13631 ac_status=$?
ac1cb8d3
VS
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
a848cd7e
SC
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
9dd0f6c2 13637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
13649 ac_cv_header_stdc=yes
13650else
13651 echo "$as_me: failed program was:" >&5
13652sed 's/^/| /' conftest.$ac_ext >&5
13653
13654ac_cv_header_stdc=no
13655fi
ac1cb8d3 13656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13657
13658if test $ac_cv_header_stdc = yes; then
13659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13660 cat >conftest.$ac_ext <<_ACEOF
13661/* confdefs.h. */
13662_ACEOF
13663cat confdefs.h >>conftest.$ac_ext
13664cat >>conftest.$ac_ext <<_ACEOF
13665/* end confdefs.h. */
13666#include <string.h>
13667
13668_ACEOF
13669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670 $EGREP "memchr" >/dev/null 2>&1; then
13671 :
13672else
13673 ac_cv_header_stdc=no
13674fi
13675rm -f conftest*
13676
13677fi
13678
13679if test $ac_cv_header_stdc = yes; then
13680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13681 cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h. */
13687#include <stdlib.h>
13688
13689_ACEOF
13690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13691 $EGREP "free" >/dev/null 2>&1; then
13692 :
13693else
13694 ac_cv_header_stdc=no
13695fi
13696rm -f conftest*
13697
13698fi
13699
13700if test $ac_cv_header_stdc = yes; then
13701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13702 if test "$cross_compiling" = yes; then
13703 :
13704else
13705 cat >conftest.$ac_ext <<_ACEOF
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
13710/* end confdefs.h. */
13711#include <ctype.h>
13712#if ((' ' & 0x0FF) == 0x020)
13713# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13714# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13715#else
13716# define ISLOWER(c) \
ac1cb8d3
VS
13717 (('a' <= (c) && (c) <= 'i') \
13718 || ('j' <= (c) && (c) <= 'r') \
13719 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13720# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13721#endif
13722
13723#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13724int
13725main ()
13726{
13727 int i;
13728 for (i = 0; i < 256; i++)
13729 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13730 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13731 exit(2);
13732 exit (0);
13733}
13734_ACEOF
13735rm -f conftest$ac_exeext
13736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737 (eval $ac_link) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 :
13747else
13748 echo "$as_me: program exited with status $ac_status" >&5
13749echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752( exit $ac_status )
13753ac_cv_header_stdc=no
13754fi
ac1cb8d3 13755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13756fi
13757fi
13758fi
13759echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13760echo "${ECHO_T}$ac_cv_header_stdc" >&6
13761if test $ac_cv_header_stdc = yes; then
13762
13763cat >>confdefs.h <<\_ACEOF
13764#define STDC_HEADERS 1
13765_ACEOF
13766
13767fi
13768
13769# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13780 inttypes.h stdint.h unistd.h
a848cd7e
SC
13781do
13782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13783echo "$as_me:$LINENO: checking for $ac_header" >&5
13784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13785if eval "test \"\${$as_ac_Header+set}\" = set"; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787else
13788 cat >conftest.$ac_ext <<_ACEOF
13789/* confdefs.h. */
13790_ACEOF
13791cat confdefs.h >>conftest.$ac_ext
13792cat >>conftest.$ac_ext <<_ACEOF
13793/* end confdefs.h. */
13794$ac_includes_default
13795
13796#include <$ac_header>
13797_ACEOF
13798rm -f conftest.$ac_objext
13799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13800 (eval $ac_compile) 2>conftest.er1
a848cd7e 13801 ac_status=$?
ac1cb8d3
VS
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
a848cd7e
SC
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
9dd0f6c2 13807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 eval "$as_ac_Header=yes"
13820else
13821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824eval "$as_ac_Header=no"
13825fi
ac1cb8d3 13826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13827fi
13828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830if test `eval echo '${'$as_ac_Header'}'` = yes; then
13831 cat >>confdefs.h <<_ACEOF
13832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13833_ACEOF
13834
13835fi
13836
13837done
13838
13839
13840
13841for ac_header in stdlib.h
13842do
13843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13844if eval "test \"\${$as_ac_Header+set}\" = set"; then
13845 echo "$as_me:$LINENO: checking for $ac_header" >&5
13846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13847if eval "test \"\${$as_ac_Header+set}\" = set"; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849fi
13850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13852else
13853 # Is the header compilable?
13854echo "$as_me:$LINENO: checking $ac_header usability" >&5
13855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13856cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862$ac_includes_default
13863#include <$ac_header>
13864_ACEOF
13865rm -f conftest.$ac_objext
13866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13867 (eval $ac_compile) 2>conftest.er1
a848cd7e 13868 ac_status=$?
ac1cb8d3
VS
13869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
a848cd7e
SC
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
9dd0f6c2 13874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_header_compiler=yes
13887else
13888 echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891ac_header_compiler=no
13892fi
ac1cb8d3 13893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13895echo "${ECHO_T}$ac_header_compiler" >&6
13896
13897# Is the header present?
13898echo "$as_me:$LINENO: checking $ac_header presence" >&5
13899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13900cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906#include <$ac_header>
13907_ACEOF
13908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } >/dev/null; then
13916 if test -s conftest.err; then
13917 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13919 else
13920 ac_cpp_err=
13921 fi
13922else
13923 ac_cpp_err=yes
13924fi
13925if test -z "$ac_cpp_err"; then
13926 ac_header_preproc=yes
13927else
13928 echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 ac_header_preproc=no
13932fi
13933rm -f conftest.err conftest.$ac_ext
13934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13935echo "${ECHO_T}$ac_header_preproc" >&6
13936
13937# So? What about this header?
ac1cb8d3
VS
13938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13939 yes:no: )
a848cd7e
SC
13940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13944 ac_header_preproc=yes
a848cd7e 13945 ;;
ac1cb8d3 13946 no:yes:* )
a848cd7e
SC
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13959 (
13960 cat <<\_ASBOX
ac1cb8d3
VS
13961## ----------------------------------------- ##
13962## Report this to wx-dev@lists.wxwidgets.org ##
13963## ----------------------------------------- ##
a848cd7e
SC
13964_ASBOX
13965 ) |
13966 sed "s/^/$as_me: WARNING: /" >&2
13967 ;;
13968esac
13969echo "$as_me:$LINENO: checking for $ac_header" >&5
13970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13971if eval "test \"\${$as_ac_Header+set}\" = set"; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973else
ac1cb8d3 13974 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13975fi
13976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13978
13979fi
13980if test `eval echo '${'$as_ac_Header'}'` = yes; then
13981 cat >>confdefs.h <<_ACEOF
13982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13983_ACEOF
13984
13985fi
13986
13987done
13988
13989
13990for ac_header in malloc.h
13991do
13992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13993if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo "$as_me:$LINENO: checking for $ac_header" >&5
13995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13996if eval "test \"\${$as_ac_Header+set}\" = set"; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998fi
13999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14001else
14002 # Is the header compilable?
14003echo "$as_me:$LINENO: checking $ac_header usability" >&5
14004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14005cat >conftest.$ac_ext <<_ACEOF
14006/* confdefs.h. */
14007_ACEOF
14008cat confdefs.h >>conftest.$ac_ext
14009cat >>conftest.$ac_ext <<_ACEOF
14010/* end confdefs.h. */
14011$ac_includes_default
14012#include <$ac_header>
14013_ACEOF
14014rm -f conftest.$ac_objext
14015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14016 (eval $ac_compile) 2>conftest.er1
a848cd7e 14017 ac_status=$?
ac1cb8d3
VS
14018 grep -v '^ *+' conftest.er1 >conftest.err
14019 rm -f conftest.er1
14020 cat conftest.err >&5
a848cd7e
SC
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
9dd0f6c2 14023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; } &&
14029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14035 ac_header_compiler=yes
14036else
14037 echo "$as_me: failed program was:" >&5
14038sed 's/^/| /' conftest.$ac_ext >&5
14039
14040ac_header_compiler=no
14041fi
ac1cb8d3 14042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14044echo "${ECHO_T}$ac_header_compiler" >&6
14045
14046# Is the header present?
14047echo "$as_me:$LINENO: checking $ac_header presence" >&5
14048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
14055#include <$ac_header>
14056_ACEOF
14057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } >/dev/null; then
14065 if test -s conftest.err; then
14066 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14068 else
14069 ac_cpp_err=
14070 fi
14071else
14072 ac_cpp_err=yes
14073fi
14074if test -z "$ac_cpp_err"; then
14075 ac_header_preproc=yes
14076else
14077 echo "$as_me: failed program was:" >&5
14078sed 's/^/| /' conftest.$ac_ext >&5
14079
14080 ac_header_preproc=no
14081fi
14082rm -f conftest.err conftest.$ac_ext
14083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14084echo "${ECHO_T}$ac_header_preproc" >&6
14085
14086# So? What about this header?
ac1cb8d3
VS
14087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14088 yes:no: )
a848cd7e
SC
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14093 ac_header_preproc=yes
a848cd7e 14094 ;;
ac1cb8d3 14095 no:yes:* )
a848cd7e
SC
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14099echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14103echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14108 (
14109 cat <<\_ASBOX
ac1cb8d3
VS
14110## ----------------------------------------- ##
14111## Report this to wx-dev@lists.wxwidgets.org ##
14112## ----------------------------------------- ##
a848cd7e
SC
14113_ASBOX
14114 ) |
14115 sed "s/^/$as_me: WARNING: /" >&2
14116 ;;
14117esac
14118echo "$as_me:$LINENO: checking for $ac_header" >&5
14119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14120if eval "test \"\${$as_ac_Header+set}\" = set"; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14122else
ac1cb8d3 14123 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14124fi
14125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14127
14128fi
14129if test `eval echo '${'$as_ac_Header'}'` = yes; then
14130 cat >>confdefs.h <<_ACEOF
14131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14132_ACEOF
14133
14134fi
14135
14136done
14137
14138
14139for ac_header in unistd.h
14140do
14141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14142if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143 echo "$as_me:$LINENO: checking for $ac_header" >&5
14144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14145if eval "test \"\${$as_ac_Header+set}\" = set"; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147fi
14148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14150else
14151 # Is the header compilable?
14152echo "$as_me:$LINENO: checking $ac_header usability" >&5
14153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14154cat >conftest.$ac_ext <<_ACEOF
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
14160$ac_includes_default
14161#include <$ac_header>
14162_ACEOF
14163rm -f conftest.$ac_objext
14164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14165 (eval $ac_compile) 2>conftest.er1
a848cd7e 14166 ac_status=$?
ac1cb8d3
VS
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
a848cd7e
SC
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
9dd0f6c2 14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_header_compiler=yes
14185else
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
14189ac_header_compiler=no
14190fi
ac1cb8d3 14191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14192echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14193echo "${ECHO_T}$ac_header_compiler" >&6
14194
14195# Is the header present?
14196echo "$as_me:$LINENO: checking $ac_header presence" >&5
14197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14198cat >conftest.$ac_ext <<_ACEOF
14199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h. */
14204#include <$ac_header>
14205_ACEOF
14206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } >/dev/null; then
14214 if test -s conftest.err; then
14215 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14217 else
14218 ac_cpp_err=
14219 fi
14220else
14221 ac_cpp_err=yes
14222fi
14223if test -z "$ac_cpp_err"; then
14224 ac_header_preproc=yes
14225else
14226 echo "$as_me: failed program was:" >&5
14227sed 's/^/| /' conftest.$ac_ext >&5
14228
14229 ac_header_preproc=no
14230fi
14231rm -f conftest.err conftest.$ac_ext
14232echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14233echo "${ECHO_T}$ac_header_preproc" >&6
14234
14235# So? What about this header?
ac1cb8d3
VS
14236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14237 yes:no: )
a848cd7e
SC
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14242 ac_header_preproc=yes
a848cd7e 14243 ;;
ac1cb8d3 14244 no:yes:* )
a848cd7e
SC
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14257 (
14258 cat <<\_ASBOX
ac1cb8d3
VS
14259## ----------------------------------------- ##
14260## Report this to wx-dev@lists.wxwidgets.org ##
14261## ----------------------------------------- ##
a848cd7e
SC
14262_ASBOX
14263 ) |
14264 sed "s/^/$as_me: WARNING: /" >&2
14265 ;;
14266esac
14267echo "$as_me:$LINENO: checking for $ac_header" >&5
14268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14269if eval "test \"\${$as_ac_Header+set}\" = set"; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14271else
ac1cb8d3 14272 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14273fi
14274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14276
14277fi
14278if test `eval echo '${'$as_ac_Header'}'` = yes; then
14279 cat >>confdefs.h <<_ACEOF
14280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14281_ACEOF
14282
14283fi
14284
14285done
14286
14287
14288for ac_header in wchar.h
14289do
14290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14291if eval "test \"\${$as_ac_Header+set}\" = set"; then
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296fi
14297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14299else
14300 # Is the header compilable?
14301echo "$as_me:$LINENO: checking $ac_header usability" >&5
14302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14303cat >conftest.$ac_ext <<_ACEOF
14304/* confdefs.h. */
14305_ACEOF
14306cat confdefs.h >>conftest.$ac_ext
14307cat >>conftest.$ac_ext <<_ACEOF
14308/* end confdefs.h. */
14309$ac_includes_default
14310#include <$ac_header>
14311_ACEOF
14312rm -f conftest.$ac_objext
14313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14314 (eval $ac_compile) 2>conftest.er1
a848cd7e 14315 ac_status=$?
ac1cb8d3
VS
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
a848cd7e
SC
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
9dd0f6c2 14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_header_compiler=yes
14334else
14335 echo "$as_me: failed program was:" >&5
14336sed 's/^/| /' conftest.$ac_ext >&5
14337
14338ac_header_compiler=no
14339fi
ac1cb8d3 14340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14342echo "${ECHO_T}$ac_header_compiler" >&6
14343
14344# Is the header present?
14345echo "$as_me:$LINENO: checking $ac_header presence" >&5
14346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14347cat >conftest.$ac_ext <<_ACEOF
14348/* confdefs.h. */
14349_ACEOF
14350cat confdefs.h >>conftest.$ac_ext
14351cat >>conftest.$ac_ext <<_ACEOF
14352/* end confdefs.h. */
14353#include <$ac_header>
14354_ACEOF
14355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } >/dev/null; then
14363 if test -s conftest.err; then
14364 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14366 else
14367 ac_cpp_err=
14368 fi
14369else
14370 ac_cpp_err=yes
14371fi
14372if test -z "$ac_cpp_err"; then
14373 ac_header_preproc=yes
14374else
14375 echo "$as_me: failed program was:" >&5
14376sed 's/^/| /' conftest.$ac_ext >&5
14377
14378 ac_header_preproc=no
14379fi
14380rm -f conftest.err conftest.$ac_ext
14381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382echo "${ECHO_T}$ac_header_preproc" >&6
14383
14384# So? What about this header?
ac1cb8d3
VS
14385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386 yes:no: )
a848cd7e
SC
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14391 ac_header_preproc=yes
a848cd7e 14392 ;;
ac1cb8d3 14393 no:yes:* )
a848cd7e
SC
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14406 (
14407 cat <<\_ASBOX
ac1cb8d3
VS
14408## ----------------------------------------- ##
14409## Report this to wx-dev@lists.wxwidgets.org ##
14410## ----------------------------------------- ##
a848cd7e
SC
14411_ASBOX
14412 ) |
14413 sed "s/^/$as_me: WARNING: /" >&2
14414 ;;
14415esac
14416echo "$as_me:$LINENO: checking for $ac_header" >&5
14417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14418if eval "test \"\${$as_ac_Header+set}\" = set"; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420else
ac1cb8d3 14421 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14422fi
14423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14425
14426fi
14427if test `eval echo '${'$as_ac_Header'}'` = yes; then
14428 cat >>confdefs.h <<_ACEOF
14429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14430_ACEOF
14431
14432fi
14433
14434done
14435
14436
14437if test "$ac_cv_header_wchar_h" != "yes"; then
14438
14439for ac_header in wcstr.h
14440do
14441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14442if eval "test \"\${$as_ac_Header+set}\" = set"; then
14443 echo "$as_me:$LINENO: checking for $ac_header" >&5
14444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14445if eval "test \"\${$as_ac_Header+set}\" = set"; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14447fi
14448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14450else
14451 # Is the header compilable?
14452echo "$as_me:$LINENO: checking $ac_header usability" >&5
14453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14454cat >conftest.$ac_ext <<_ACEOF
14455/* confdefs.h. */
14456_ACEOF
14457cat confdefs.h >>conftest.$ac_ext
14458cat >>conftest.$ac_ext <<_ACEOF
14459/* end confdefs.h. */
14460$ac_includes_default
14461#include <$ac_header>
14462_ACEOF
14463rm -f conftest.$ac_objext
14464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14465 (eval $ac_compile) 2>conftest.er1
a848cd7e 14466 ac_status=$?
ac1cb8d3
VS
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
a848cd7e
SC
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
9dd0f6c2 14472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; } &&
14478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_header_compiler=yes
14485else
14486 echo "$as_me: failed program was:" >&5
14487sed 's/^/| /' conftest.$ac_ext >&5
14488
14489ac_header_compiler=no
14490fi
ac1cb8d3 14491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14493echo "${ECHO_T}$ac_header_compiler" >&6
14494
14495# Is the header present?
14496echo "$as_me:$LINENO: checking $ac_header presence" >&5
14497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14498cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h. */
14504#include <$ac_header>
14505_ACEOF
14506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } >/dev/null; then
14514 if test -s conftest.err; then
14515 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14517 else
14518 ac_cpp_err=
14519 fi
14520else
14521 ac_cpp_err=yes
14522fi
14523if test -z "$ac_cpp_err"; then
14524 ac_header_preproc=yes
14525else
14526 echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
14529 ac_header_preproc=no
14530fi
14531rm -f conftest.err conftest.$ac_ext
14532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14533echo "${ECHO_T}$ac_header_preproc" >&6
14534
14535# So? What about this header?
ac1cb8d3
VS
14536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14537 yes:no: )
a848cd7e
SC
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14542 ac_header_preproc=yes
a848cd7e 14543 ;;
ac1cb8d3 14544 no:yes:* )
a848cd7e
SC
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14557 (
14558 cat <<\_ASBOX
ac1cb8d3
VS
14559## ----------------------------------------- ##
14560## Report this to wx-dev@lists.wxwidgets.org ##
14561## ----------------------------------------- ##
a848cd7e
SC
14562_ASBOX
14563 ) |
14564 sed "s/^/$as_me: WARNING: /" >&2
14565 ;;
14566esac
14567echo "$as_me:$LINENO: checking for $ac_header" >&5
14568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14569if eval "test \"\${$as_ac_Header+set}\" = set"; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571else
ac1cb8d3 14572 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14573fi
14574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14576
14577fi
14578if test `eval echo '${'$as_ac_Header'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14581_ACEOF
14582
14583fi
14584
14585done
14586
14587fi
14588
14589
14590for ac_header in fnmatch.h
14591do
14592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593if eval "test \"\${$as_ac_Header+set}\" = set"; then
14594 echo "$as_me:$LINENO: checking for $ac_header" >&5
14595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14596if eval "test \"\${$as_ac_Header+set}\" = set"; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14598fi
14599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14601else
14602 # Is the header compilable?
14603echo "$as_me:$LINENO: checking $ac_header usability" >&5
14604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14605cat >conftest.$ac_ext <<_ACEOF
14606/* confdefs.h. */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h. */
14611$ac_includes_default
14612#include <$ac_header>
14613_ACEOF
14614rm -f conftest.$ac_objext
14615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14616 (eval $ac_compile) 2>conftest.er1
a848cd7e 14617 ac_status=$?
ac1cb8d3
VS
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
a848cd7e
SC
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
9dd0f6c2 14623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_header_compiler=yes
14636else
14637 echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
14640ac_header_compiler=no
14641fi
ac1cb8d3 14642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14643echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14644echo "${ECHO_T}$ac_header_compiler" >&6
14645
14646# Is the header present?
14647echo "$as_me:$LINENO: checking $ac_header presence" >&5
14648echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14649cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
14655#include <$ac_header>
14656_ACEOF
14657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14659 ac_status=$?
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } >/dev/null; then
14665 if test -s conftest.err; then
14666 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14668 else
14669 ac_cpp_err=
14670 fi
14671else
14672 ac_cpp_err=yes
14673fi
14674if test -z "$ac_cpp_err"; then
14675 ac_header_preproc=yes
14676else
14677 echo "$as_me: failed program was:" >&5
14678sed 's/^/| /' conftest.$ac_ext >&5
14679
14680 ac_header_preproc=no
14681fi
14682rm -f conftest.err conftest.$ac_ext
14683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684echo "${ECHO_T}$ac_header_preproc" >&6
14685
14686# So? What about this header?
ac1cb8d3
VS
14687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14688 yes:no: )
a848cd7e
SC
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14693 ac_header_preproc=yes
a848cd7e 14694 ;;
ac1cb8d3 14695 no:yes:* )
a848cd7e
SC
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14703echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14708 (
14709 cat <<\_ASBOX
ac1cb8d3
VS
14710## ----------------------------------------- ##
14711## Report this to wx-dev@lists.wxwidgets.org ##
14712## ----------------------------------------- ##
a848cd7e
SC
14713_ASBOX
14714 ) |
14715 sed "s/^/$as_me: WARNING: /" >&2
14716 ;;
14717esac
14718echo "$as_me:$LINENO: checking for $ac_header" >&5
14719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14720if eval "test \"\${$as_ac_Header+set}\" = set"; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722else
ac1cb8d3 14723 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14724fi
14725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14727
14728fi
14729if test `eval echo '${'$as_ac_Header'}'` = yes; then
14730 cat >>confdefs.h <<_ACEOF
14731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14732_ACEOF
14733
14734fi
14735
14736done
14737
14738
14739if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14740
14741for ac_func in fnmatch
14742do
14743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14744echo "$as_me:$LINENO: checking for $ac_func" >&5
14745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14746if eval "test \"\${$as_ac_var+set}\" = set"; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748else
14749 cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
ac1cb8d3
VS
14755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14757#define $ac_func innocuous_$ac_func
14758
a848cd7e
SC
14759/* System header to define __stub macros and hopefully few prototypes,
14760 which can conflict with char $ac_func (); below.
14761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14762 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14763
a848cd7e
SC
14764#ifdef __STDC__
14765# include <limits.h>
14766#else
14767# include <assert.h>
14768#endif
ac1cb8d3
VS
14769
14770#undef $ac_func
14771
a848cd7e
SC
14772/* Override any gcc2 internal prototype to avoid an error. */
14773#ifdef __cplusplus
14774extern "C"
14775{
14776#endif
14777/* We use char because int might match the return type of a gcc2
14778 builtin and then its argument prototype would still apply. */
14779char $ac_func ();
14780/* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14784choke me
14785#else
14786char (*f) () = $ac_func;
14787#endif
14788#ifdef __cplusplus
14789}
14790#endif
14791
14792int
14793main ()
14794{
14795return f != $ac_func;
14796 ;
14797 return 0;
14798}
14799_ACEOF
14800rm -f conftest.$ac_objext conftest$ac_exeext
14801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14802 (eval $ac_link) 2>conftest.er1
a848cd7e 14803 ac_status=$?
ac1cb8d3
VS
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
a848cd7e
SC
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
9dd0f6c2 14809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; } &&
14815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 eval "$as_ac_var=yes"
14822else
14823 echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
14826eval "$as_ac_var=no"
14827fi
ac1cb8d3
VS
14828rm -f conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14830fi
14831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14833if test `eval echo '${'$as_ac_var'}'` = yes; then
14834 cat >>confdefs.h <<_ACEOF
14835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14836_ACEOF
14837
14838fi
14839done
14840
14841fi
14842
14843
14844for ac_header in langinfo.h
14845do
14846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14847if eval "test \"\${$as_ac_Header+set}\" = set"; then
14848 echo "$as_me:$LINENO: checking for $ac_header" >&5
14849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14850if eval "test \"\${$as_ac_Header+set}\" = set"; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852fi
14853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14855else
14856 # Is the header compilable?
14857echo "$as_me:$LINENO: checking $ac_header usability" >&5
14858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14859cat >conftest.$ac_ext <<_ACEOF
14860/* confdefs.h. */
14861_ACEOF
14862cat confdefs.h >>conftest.$ac_ext
14863cat >>conftest.$ac_ext <<_ACEOF
14864/* end confdefs.h. */
14865$ac_includes_default
14866#include <$ac_header>
14867_ACEOF
14868rm -f conftest.$ac_objext
14869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14870 (eval $ac_compile) 2>conftest.er1
a848cd7e 14871 ac_status=$?
ac1cb8d3
VS
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
a848cd7e
SC
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
9dd0f6c2 14877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_header_compiler=yes
14890else
14891 echo "$as_me: failed program was:" >&5
14892sed 's/^/| /' conftest.$ac_ext >&5
14893
14894ac_header_compiler=no
14895fi
ac1cb8d3 14896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898echo "${ECHO_T}$ac_header_compiler" >&6
14899
14900# Is the header present?
14901echo "$as_me:$LINENO: checking $ac_header presence" >&5
14902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14903cat >conftest.$ac_ext <<_ACEOF
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
14909#include <$ac_header>
14910_ACEOF
14911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } >/dev/null; then
14919 if test -s conftest.err; then
14920 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14922 else
14923 ac_cpp_err=
14924 fi
14925else
14926 ac_cpp_err=yes
14927fi
14928if test -z "$ac_cpp_err"; then
14929 ac_header_preproc=yes
14930else
14931 echo "$as_me: failed program was:" >&5
14932sed 's/^/| /' conftest.$ac_ext >&5
14933
14934 ac_header_preproc=no
14935fi
14936rm -f conftest.err conftest.$ac_ext
14937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14938echo "${ECHO_T}$ac_header_preproc" >&6
14939
14940# So? What about this header?
ac1cb8d3
VS
14941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14942 yes:no: )
a848cd7e
SC
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14947 ac_header_preproc=yes
a848cd7e 14948 ;;
ac1cb8d3 14949 no:yes:* )
a848cd7e
SC
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14962 (
14963 cat <<\_ASBOX
ac1cb8d3
VS
14964## ----------------------------------------- ##
14965## Report this to wx-dev@lists.wxwidgets.org ##
14966## ----------------------------------------- ##
a848cd7e
SC
14967_ASBOX
14968 ) |
14969 sed "s/^/$as_me: WARNING: /" >&2
14970 ;;
14971esac
14972echo "$as_me:$LINENO: checking for $ac_header" >&5
14973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14974if eval "test \"\${$as_ac_Header+set}\" = set"; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976else
ac1cb8d3 14977 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14978fi
14979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14981
14982fi
14983if test `eval echo '${'$as_ac_Header'}'` = yes; then
14984 cat >>confdefs.h <<_ACEOF
14985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14986_ACEOF
14987
14988fi
14989
14990done
14991
14992
14993case "${host}" in
14994 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14995 if test $ac_cv_header_langinfo_h = "yes" \
14996 -a \( "$wx_cv_gccversion" = "EMX2" \
14997 -o "$wx_cv_gccversion" = "EMX3" \
14998 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14999 LIBS="$LIBS -lintl"
15000 fi
15001 ;;
15002esac
15003
15004if test "$wxUSE_GUI" = "yes"; then
15005 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15006
15007for ac_header in X11/Xlib.h
15008do
15009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15010if eval "test \"\${$as_ac_Header+set}\" = set"; then
15011 echo "$as_me:$LINENO: checking for $ac_header" >&5
15012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15013if eval "test \"\${$as_ac_Header+set}\" = set"; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015fi
15016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15018else
15019 # Is the header compilable?
15020echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15022cat >conftest.$ac_ext <<_ACEOF
15023/* confdefs.h. */
15024_ACEOF
15025cat confdefs.h >>conftest.$ac_ext
15026cat >>conftest.$ac_ext <<_ACEOF
15027/* end confdefs.h. */
15028$ac_includes_default
15029#include <$ac_header>
15030_ACEOF
15031rm -f conftest.$ac_objext
15032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15033 (eval $ac_compile) 2>conftest.er1
a848cd7e 15034 ac_status=$?
ac1cb8d3
VS
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
a848cd7e
SC
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
9dd0f6c2 15040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 ac_header_compiler=yes
15053else
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057ac_header_compiler=no
15058fi
ac1cb8d3 15059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15061echo "${ECHO_T}$ac_header_compiler" >&6
15062
15063# Is the header present?
15064echo "$as_me:$LINENO: checking $ac_header presence" >&5
15065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15066cat >conftest.$ac_ext <<_ACEOF
15067/* confdefs.h. */
15068_ACEOF
15069cat confdefs.h >>conftest.$ac_ext
15070cat >>conftest.$ac_ext <<_ACEOF
15071/* end confdefs.h. */
15072#include <$ac_header>
15073_ACEOF
15074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } >/dev/null; then
15082 if test -s conftest.err; then
15083 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15085 else
15086 ac_cpp_err=
15087 fi
15088else
15089 ac_cpp_err=yes
15090fi
15091if test -z "$ac_cpp_err"; then
15092 ac_header_preproc=yes
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097 ac_header_preproc=no
15098fi
15099rm -f conftest.err conftest.$ac_ext
15100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15101echo "${ECHO_T}$ac_header_preproc" >&6
15102
15103# So? What about this header?
ac1cb8d3
VS
15104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15105 yes:no: )
a848cd7e
SC
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15110 ac_header_preproc=yes
a848cd7e 15111 ;;
ac1cb8d3 15112 no:yes:* )
a848cd7e
SC
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15125 (
15126 cat <<\_ASBOX
ac1cb8d3
VS
15127## ----------------------------------------- ##
15128## Report this to wx-dev@lists.wxwidgets.org ##
15129## ----------------------------------------- ##
a848cd7e
SC
15130_ASBOX
15131 ) |
15132 sed "s/^/$as_me: WARNING: /" >&2
15133 ;;
15134esac
15135echo "$as_me:$LINENO: checking for $ac_header" >&5
15136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15137if eval "test \"\${$as_ac_Header+set}\" = set"; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15139else
ac1cb8d3 15140 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15141fi
15142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15144
15145fi
15146if test `eval echo '${'$as_ac_Header'}'` = yes; then
15147 cat >>confdefs.h <<_ACEOF
15148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15149_ACEOF
15150
15151fi
15152
15153done
15154
15155
15156for ac_header in X11/XKBlib.h
15157do
15158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15159echo "$as_me:$LINENO: checking for $ac_header" >&5
15160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15161if eval "test \"\${$as_ac_Header+set}\" = set"; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164 cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
15170
15171 #if HAVE_X11_XLIB_H
15172 #include <X11/Xlib.h>
15173 #endif
15174
15175
15176#include <$ac_header>
15177_ACEOF
15178rm -f conftest.$ac_objext
15179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15180 (eval $ac_compile) 2>conftest.er1
a848cd7e 15181 ac_status=$?
ac1cb8d3
VS
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
a848cd7e
SC
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
9dd0f6c2 15187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; } &&
15193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199 eval "$as_ac_Header=yes"
15200else
15201 echo "$as_me: failed program was:" >&5
15202sed 's/^/| /' conftest.$ac_ext >&5
15203
15204eval "$as_ac_Header=no"
15205fi
ac1cb8d3 15206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15207fi
15208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15210if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211 cat >>confdefs.h <<_ACEOF
15212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15213_ACEOF
15214
15215fi
15216
15217done
15218
15219 fi
15220fi
15221
15222
15223echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15224echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15225if test "${ac_cv_c_const+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227else
15228 cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h. */
15234
15235int
15236main ()
15237{
15238/* FIXME: Include the comments suggested by Paul. */
15239#ifndef __cplusplus
15240 /* Ultrix mips cc rejects this. */
15241 typedef int charset[2];
15242 const charset x;
15243 /* SunOS 4.1.1 cc rejects this. */
15244 char const *const *ccp;
15245 char **p;
15246 /* NEC SVR4.0.2 mips cc rejects this. */
15247 struct point {int x, y;};
15248 static struct point const zero = {0,0};
15249 /* AIX XL C 1.02.0.0 rejects this.
15250 It does not let you subtract one const X* pointer from another in
15251 an arm of an if-expression whose if-part is not a constant
15252 expression */
15253 const char *g = "string";
15254 ccp = &g + (g ? g-g : 0);
15255 /* HPUX 7.0 cc rejects these. */
15256 ++ccp;
15257 p = (char**) ccp;
15258 ccp = (char const *const *) p;
15259 { /* SCO 3.2v4 cc rejects this. */
15260 char *t;
15261 char const *s = 0 ? (char *) 0 : (char const *) 0;
15262
15263 *t++ = 0;
15264 }
15265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15266 int x[] = {25, 17};
15267 const int *foo = &x[0];
15268 ++foo;
15269 }
15270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15271 typedef const int *iptr;
15272 iptr p = 0;
15273 ++p;
15274 }
15275 { /* AIX XL C 1.02.0.0 rejects this saying
15276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15277 struct s { int j; const int *ap[3]; };
15278 struct s *b; b->j = 5;
15279 }
15280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15281 const int foo = 10;
15282 }
15283#endif
15284
15285 ;
15286 return 0;
15287}
15288_ACEOF
15289rm -f conftest.$ac_objext
15290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15291 (eval $ac_compile) 2>conftest.er1
a848cd7e 15292 ac_status=$?
ac1cb8d3
VS
15293 grep -v '^ *+' conftest.er1 >conftest.err
15294 rm -f conftest.er1
15295 cat conftest.err >&5
a848cd7e
SC
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
9dd0f6c2 15298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; } &&
15304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_cv_c_const=yes
15311else
15312 echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314
15315ac_cv_c_const=no
15316fi
ac1cb8d3 15317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15318fi
15319echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15320echo "${ECHO_T}$ac_cv_c_const" >&6
15321if test $ac_cv_c_const = no; then
15322
15323cat >>confdefs.h <<\_ACEOF
15324#define const
15325_ACEOF
15326
15327fi
15328
15329echo "$as_me:$LINENO: checking for inline" >&5
15330echo $ECHO_N "checking for inline... $ECHO_C" >&6
15331if test "${ac_cv_c_inline+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333else
15334 ac_cv_c_inline=no
15335for ac_kw in inline __inline__ __inline; do
15336 cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
15342#ifndef __cplusplus
15343typedef int foo_t;
15344static $ac_kw foo_t static_foo () {return 0; }
15345$ac_kw foo_t foo () {return 0; }
15346#endif
15347
15348_ACEOF
15349rm -f conftest.$ac_objext
15350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15351 (eval $ac_compile) 2>conftest.er1
a848cd7e 15352 ac_status=$?
ac1cb8d3
VS
15353 grep -v '^ *+' conftest.er1 >conftest.err
15354 rm -f conftest.er1
15355 cat conftest.err >&5
a848cd7e
SC
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
9dd0f6c2 15358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_c_inline=$ac_kw; break
15371else
15372 echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
15375fi
ac1cb8d3 15376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15377done
15378
15379fi
15380echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15381echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15382
15383
a848cd7e
SC
15384case $ac_cv_c_inline in
15385 inline | yes) ;;
ac1cb8d3
VS
15386 *)
15387 case $ac_cv_c_inline in
15388 no) ac_val=;;
15389 *) ac_val=$ac_cv_c_inline;;
15390 esac
15391 cat >>confdefs.h <<_ACEOF
15392#ifndef __cplusplus
15393#define inline $ac_val
15394#endif
de59c161 15395_ACEOF
ac1cb8d3 15396 ;;
a848cd7e
SC
15397esac
15398
15399
15400echo "$as_me:$LINENO: checking for char" >&5
15401echo $ECHO_N "checking for char... $ECHO_C" >&6
15402if test "${ac_cv_type_char+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15404else
15405 cat >conftest.$ac_ext <<_ACEOF
15406/* confdefs.h. */
15407_ACEOF
15408cat confdefs.h >>conftest.$ac_ext
15409cat >>conftest.$ac_ext <<_ACEOF
15410/* end confdefs.h. */
15411$ac_includes_default
15412int
15413main ()
15414{
15415if ((char *) 0)
15416 return 0;
15417if (sizeof (char))
15418 return 0;
15419 ;
15420 return 0;
15421}
15422_ACEOF
15423rm -f conftest.$ac_objext
15424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15425 (eval $ac_compile) 2>conftest.er1
a848cd7e 15426 ac_status=$?
ac1cb8d3
VS
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
a848cd7e
SC
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
9dd0f6c2 15432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_cv_type_char=yes
15445else
15446 echo "$as_me: failed program was:" >&5
15447sed 's/^/| /' conftest.$ac_ext >&5
15448
15449ac_cv_type_char=no
15450fi
ac1cb8d3 15451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15452fi
15453echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15454echo "${ECHO_T}$ac_cv_type_char" >&6
15455
15456echo "$as_me:$LINENO: checking size of char" >&5
15457echo $ECHO_N "checking size of char... $ECHO_C" >&6
15458if test "${ac_cv_sizeof_char+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460else
15461 if test "$ac_cv_type_char" = yes; then
15462 # The cast to unsigned long works around a bug in the HP C Compiler
15463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15465 # This bug is HP SR number 8606223364.
15466 if test "$cross_compiling" = yes; then
15467 # Depending upon the size, compute the lo and hi bounds.
15468cat >conftest.$ac_ext <<_ACEOF
15469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
15474$ac_includes_default
15475int
15476main ()
15477{
15478static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15479test_array [0] = 0
15480
15481 ;
15482 return 0;
15483}
15484_ACEOF
15485rm -f conftest.$ac_objext
15486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15487 (eval $ac_compile) 2>conftest.er1
a848cd7e 15488 ac_status=$?
ac1cb8d3
VS
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
a848cd7e
SC
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
9dd0f6c2 15494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_lo=0 ac_mid=0
15507 while :; do
15508 cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514$ac_includes_default
15515int
15516main ()
15517{
15518static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15519test_array [0] = 0
15520
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525rm -f conftest.$ac_objext
15526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15527 (eval $ac_compile) 2>conftest.er1
a848cd7e 15528 ac_status=$?
ac1cb8d3
VS
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
a848cd7e
SC
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
9dd0f6c2 15534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_hi=$ac_mid; break
15547else
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15552 if test $ac_lo -le $ac_mid; then
15553 ac_lo= ac_hi=
15554 break
15555 fi
15556 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15557fi
ac1cb8d3 15558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15559 done
15560else
15561 echo "$as_me: failed program was:" >&5
15562sed 's/^/| /' conftest.$ac_ext >&5
15563
15564cat >conftest.$ac_ext <<_ACEOF
15565/* confdefs.h. */
15566_ACEOF
15567cat confdefs.h >>conftest.$ac_ext
15568cat >>conftest.$ac_ext <<_ACEOF
15569/* end confdefs.h. */
15570$ac_includes_default
15571int
15572main ()
15573{
15574static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15575test_array [0] = 0
15576
15577 ;
15578 return 0;
15579}
15580_ACEOF
15581rm -f conftest.$ac_objext
15582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15583 (eval $ac_compile) 2>conftest.er1
a848cd7e 15584 ac_status=$?
ac1cb8d3
VS
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
a848cd7e
SC
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
9dd0f6c2 15590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_hi=-1 ac_mid=-1
15603 while :; do
15604 cat >conftest.$ac_ext <<_ACEOF
15605/* confdefs.h. */
15606_ACEOF
15607cat confdefs.h >>conftest.$ac_ext
15608cat >>conftest.$ac_ext <<_ACEOF
15609/* end confdefs.h. */
15610$ac_includes_default
15611int
15612main ()
15613{
15614static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15615test_array [0] = 0
15616
15617 ;
15618 return 0;
15619}
15620_ACEOF
15621rm -f conftest.$ac_objext
15622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15623 (eval $ac_compile) 2>conftest.er1
a848cd7e 15624 ac_status=$?
ac1cb8d3
VS
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
a848cd7e
SC
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
9dd0f6c2 15630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_lo=$ac_mid; break
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15648 if test $ac_mid -le $ac_hi; then
15649 ac_lo= ac_hi=
15650 break
15651 fi
15652 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15653fi
ac1cb8d3 15654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15655 done
15656else
15657 echo "$as_me: failed program was:" >&5
15658sed 's/^/| /' conftest.$ac_ext >&5
15659
15660ac_lo= ac_hi=
15661fi
ac1cb8d3 15662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15663fi
ac1cb8d3 15664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15665# Binary search between lo and hi bounds.
15666while test "x$ac_lo" != "x$ac_hi"; do
15667 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15668 cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674$ac_includes_default
15675int
15676main ()
15677{
15678static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15679test_array [0] = 0
15680
15681 ;
15682 return 0;
15683}
15684_ACEOF
15685rm -f conftest.$ac_objext
15686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15687 (eval $ac_compile) 2>conftest.er1
a848cd7e 15688 ac_status=$?
ac1cb8d3
VS
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
a848cd7e
SC
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
9dd0f6c2 15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_hi=$ac_mid
15707else
15708 echo "$as_me: failed program was:" >&5
15709sed 's/^/| /' conftest.$ac_ext >&5
15710
15711ac_lo=`expr '(' $ac_mid ')' + 1`
15712fi
ac1cb8d3 15713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15714done
15715case $ac_lo in
15716?*) ac_cv_sizeof_char=$ac_lo;;
15717'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15718See \`config.log' for more details." >&5
15719echo "$as_me: error: cannot compute sizeof (char), 77
15720See \`config.log' for more details." >&2;}
15721 { (exit 1); exit 1; }; } ;;
15722esac
15723else
15724 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15725 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15726echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15727 { (exit 1); exit 1; }; }
15728else
15729 cat >conftest.$ac_ext <<_ACEOF
15730/* confdefs.h. */
15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
15735$ac_includes_default
15736long longval () { return (long) (sizeof (char)); }
15737unsigned long ulongval () { return (long) (sizeof (char)); }
15738#include <stdio.h>
15739#include <stdlib.h>
15740int
15741main ()
15742{
15743
15744 FILE *f = fopen ("conftest.val", "w");
15745 if (! f)
15746 exit (1);
15747 if (((long) (sizeof (char))) < 0)
15748 {
15749 long i = longval ();
15750 if (i != ((long) (sizeof (char))))
15751 exit (1);
15752 fprintf (f, "%ld\n", i);
15753 }
15754 else
15755 {
15756 unsigned long i = ulongval ();
15757 if (i != ((long) (sizeof (char))))
15758 exit (1);
15759 fprintf (f, "%lu\n", i);
15760 }
15761 exit (ferror (f) || fclose (f) != 0);
15762
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest$ac_exeext
15768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769 (eval $ac_link) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_cv_sizeof_char=`cat conftest.val`
15779else
15780 echo "$as_me: program exited with status $ac_status" >&5
15781echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
15784( exit $ac_status )
15785{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15786See \`config.log' for more details." >&5
15787echo "$as_me: error: cannot compute sizeof (char), 77
15788See \`config.log' for more details." >&2;}
15789 { (exit 1); exit 1; }; }
15790fi
ac1cb8d3 15791rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15792fi
15793fi
15794rm -f conftest.val
15795else
15796 ac_cv_sizeof_char=0
15797fi
15798fi
15799echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15800echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15801cat >>confdefs.h <<_ACEOF
15802#define SIZEOF_CHAR $ac_cv_sizeof_char
15803_ACEOF
15804
15805
15806echo "$as_me:$LINENO: checking for short" >&5
15807echo $ECHO_N "checking for short... $ECHO_C" >&6
15808if test "${ac_cv_type_short+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811 cat >conftest.$ac_ext <<_ACEOF
15812/* confdefs.h. */
15813_ACEOF
15814cat confdefs.h >>conftest.$ac_ext
15815cat >>conftest.$ac_ext <<_ACEOF
15816/* end confdefs.h. */
15817$ac_includes_default
15818int
15819main ()
15820{
15821if ((short *) 0)
15822 return 0;
15823if (sizeof (short))
15824 return 0;
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829rm -f conftest.$ac_objext
15830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15831 (eval $ac_compile) 2>conftest.er1
a848cd7e 15832 ac_status=$?
ac1cb8d3
VS
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
a848cd7e
SC
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
9dd0f6c2 15838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; } &&
15844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 ac_cv_type_short=yes
15851else
15852 echo "$as_me: failed program was:" >&5
15853sed 's/^/| /' conftest.$ac_ext >&5
15854
15855ac_cv_type_short=no
15856fi
ac1cb8d3 15857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15858fi
15859echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15860echo "${ECHO_T}$ac_cv_type_short" >&6
15861
15862echo "$as_me:$LINENO: checking size of short" >&5
15863echo $ECHO_N "checking size of short... $ECHO_C" >&6
15864if test "${ac_cv_sizeof_short+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15866else
15867 if test "$ac_cv_type_short" = yes; then
15868 # The cast to unsigned long works around a bug in the HP C Compiler
15869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15871 # This bug is HP SR number 8606223364.
15872 if test "$cross_compiling" = yes; then
15873 # Depending upon the size, compute the lo and hi bounds.
15874cat >conftest.$ac_ext <<_ACEOF
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880$ac_includes_default
15881int
15882main ()
15883{
15884static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15885test_array [0] = 0
15886
15887 ;
15888 return 0;
15889}
15890_ACEOF
15891rm -f conftest.$ac_objext
15892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15893 (eval $ac_compile) 2>conftest.er1
a848cd7e 15894 ac_status=$?
ac1cb8d3
VS
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
a848cd7e
SC
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
9dd0f6c2 15900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_lo=0 ac_mid=0
15913 while :; do
15914 cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920$ac_includes_default
15921int
15922main ()
15923{
15924static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15925test_array [0] = 0
15926
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931rm -f conftest.$ac_objext
15932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15933 (eval $ac_compile) 2>conftest.er1
a848cd7e 15934 ac_status=$?
ac1cb8d3
VS
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
a848cd7e
SC
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
9dd0f6c2 15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_hi=$ac_mid; break
15953else
15954 echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15958 if test $ac_lo -le $ac_mid; then
15959 ac_lo= ac_hi=
15960 break
15961 fi
15962 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15963fi
ac1cb8d3 15964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15965 done
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976$ac_includes_default
15977int
15978main ()
15979{
15980static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15981test_array [0] = 0
15982
15983 ;
15984 return 0;
15985}
15986_ACEOF
15987rm -f conftest.$ac_objext
15988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15989 (eval $ac_compile) 2>conftest.er1
a848cd7e 15990 ac_status=$?
ac1cb8d3
VS
15991 grep -v '^ *+' conftest.er1 >conftest.err
15992 rm -f conftest.er1
15993 cat conftest.err >&5
a848cd7e
SC
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
9dd0f6c2 15996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ac_hi=-1 ac_mid=-1
16009 while :; do
16010 cat >conftest.$ac_ext <<_ACEOF
16011/* confdefs.h. */
16012_ACEOF
16013cat confdefs.h >>conftest.$ac_ext
16014cat >>conftest.$ac_ext <<_ACEOF
16015/* end confdefs.h. */
16016$ac_includes_default
16017int
16018main ()
16019{
16020static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16021test_array [0] = 0
16022
16023 ;
16024 return 0;
16025}
16026_ACEOF
16027rm -f conftest.$ac_objext
16028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16029 (eval $ac_compile) 2>conftest.er1
a848cd7e 16030 ac_status=$?
ac1cb8d3
VS
16031 grep -v '^ *+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
a848cd7e
SC
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
9dd0f6c2 16036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_lo=$ac_mid; break
16049else
16050 echo "$as_me: failed program was:" >&5
16051sed 's/^/| /' conftest.$ac_ext >&5
16052
16053ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16054 if test $ac_mid -le $ac_hi; then
16055 ac_lo= ac_hi=
16056 break
16057 fi
16058 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16059fi
ac1cb8d3 16060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16061 done
16062else
16063 echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066ac_lo= ac_hi=
16067fi
ac1cb8d3 16068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16069fi
ac1cb8d3 16070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16071# Binary search between lo and hi bounds.
16072while test "x$ac_lo" != "x$ac_hi"; do
16073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16074 cat >conftest.$ac_ext <<_ACEOF
16075/* confdefs.h. */
16076_ACEOF
16077cat confdefs.h >>conftest.$ac_ext
16078cat >>conftest.$ac_ext <<_ACEOF
16079/* end confdefs.h. */
16080$ac_includes_default
16081int
16082main ()
16083{
16084static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16085test_array [0] = 0
16086
16087 ;
16088 return 0;
16089}
16090_ACEOF
16091rm -f conftest.$ac_objext
16092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16093 (eval $ac_compile) 2>conftest.er1
a848cd7e 16094 ac_status=$?
ac1cb8d3
VS
16095 grep -v '^ *+' conftest.er1 >conftest.err
16096 rm -f conftest.er1
16097 cat conftest.err >&5
a848cd7e
SC
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
9dd0f6c2 16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_hi=$ac_mid
16113else
16114 echo "$as_me: failed program was:" >&5
16115sed 's/^/| /' conftest.$ac_ext >&5
16116
16117ac_lo=`expr '(' $ac_mid ')' + 1`
16118fi
ac1cb8d3 16119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16120done
16121case $ac_lo in
16122?*) ac_cv_sizeof_short=$ac_lo;;
16123'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16124See \`config.log' for more details." >&5
16125echo "$as_me: error: cannot compute sizeof (short), 77
16126See \`config.log' for more details." >&2;}
16127 { (exit 1); exit 1; }; } ;;
16128esac
16129else
16130 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16131 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16132echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16133 { (exit 1); exit 1; }; }
16134else
16135 cat >conftest.$ac_ext <<_ACEOF
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
16141$ac_includes_default
16142long longval () { return (long) (sizeof (short)); }
16143unsigned long ulongval () { return (long) (sizeof (short)); }
16144#include <stdio.h>
16145#include <stdlib.h>
16146int
16147main ()
16148{
16149
16150 FILE *f = fopen ("conftest.val", "w");
16151 if (! f)
16152 exit (1);
16153 if (((long) (sizeof (short))) < 0)
16154 {
16155 long i = longval ();
16156 if (i != ((long) (sizeof (short))))
16157 exit (1);
16158 fprintf (f, "%ld\n", i);
16159 }
16160 else
16161 {
16162 unsigned long i = ulongval ();
16163 if (i != ((long) (sizeof (short))))
16164 exit (1);
16165 fprintf (f, "%lu\n", i);
16166 }
16167 exit (ferror (f) || fclose (f) != 0);
16168
16169 ;
16170 return 0;
16171}
16172_ACEOF
16173rm -f conftest$ac_exeext
16174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16175 (eval $ac_link) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_cv_sizeof_short=`cat conftest.val`
16185else
16186 echo "$as_me: program exited with status $ac_status" >&5
16187echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190( exit $ac_status )
16191{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16192See \`config.log' for more details." >&5
16193echo "$as_me: error: cannot compute sizeof (short), 77
16194See \`config.log' for more details." >&2;}
16195 { (exit 1); exit 1; }; }
16196fi
ac1cb8d3 16197rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16198fi
16199fi
16200rm -f conftest.val
16201else
16202 ac_cv_sizeof_short=0
16203fi
16204fi
16205echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16206echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16207cat >>confdefs.h <<_ACEOF
16208#define SIZEOF_SHORT $ac_cv_sizeof_short
16209_ACEOF
16210
16211
16212echo "$as_me:$LINENO: checking for void *" >&5
16213echo $ECHO_N "checking for void *... $ECHO_C" >&6
16214if test "${ac_cv_type_void_p+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216else
16217 cat >conftest.$ac_ext <<_ACEOF
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223$ac_includes_default
16224int
16225main ()
16226{
16227if ((void * *) 0)
16228 return 0;
16229if (sizeof (void *))
16230 return 0;
16231 ;
16232 return 0;
16233}
16234_ACEOF
16235rm -f conftest.$ac_objext
16236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16237 (eval $ac_compile) 2>conftest.er1
a848cd7e 16238 ac_status=$?
ac1cb8d3
VS
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
a848cd7e
SC
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
9dd0f6c2 16244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ac_cv_type_void_p=yes
16257else
16258 echo "$as_me: failed program was:" >&5
16259sed 's/^/| /' conftest.$ac_ext >&5
16260
16261ac_cv_type_void_p=no
16262fi
ac1cb8d3 16263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16264fi
16265echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16266echo "${ECHO_T}$ac_cv_type_void_p" >&6
16267
16268echo "$as_me:$LINENO: checking size of void *" >&5
16269echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16270if test "${ac_cv_sizeof_void_p+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272else
16273 if test "$ac_cv_type_void_p" = yes; then
16274 # The cast to unsigned long works around a bug in the HP C Compiler
16275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16277 # This bug is HP SR number 8606223364.
16278 if test "$cross_compiling" = yes; then
16279 # Depending upon the size, compute the lo and hi bounds.
16280cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h. */
16286$ac_includes_default
16287int
16288main ()
16289{
16290static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16291test_array [0] = 0
16292
16293 ;
16294 return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16299 (eval $ac_compile) 2>conftest.er1
a848cd7e 16300 ac_status=$?
ac1cb8d3
VS
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
a848cd7e
SC
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
9dd0f6c2 16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 ac_lo=0 ac_mid=0
16319 while :; do
16320 cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327int
16328main ()
16329{
16330static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16331test_array [0] = 0
16332
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext
16338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16339 (eval $ac_compile) 2>conftest.er1
a848cd7e 16340 ac_status=$?
ac1cb8d3
VS
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
a848cd7e
SC
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
9dd0f6c2 16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_hi=$ac_mid; break
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16364 if test $ac_lo -le $ac_mid; then
16365 ac_lo= ac_hi=
16366 break
16367 fi
16368 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16369fi
ac1cb8d3 16370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16371 done
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376cat >conftest.$ac_ext <<_ACEOF
16377/* confdefs.h. */
16378_ACEOF
16379cat confdefs.h >>conftest.$ac_ext
16380cat >>conftest.$ac_ext <<_ACEOF
16381/* end confdefs.h. */
16382$ac_includes_default
16383int
16384main ()
16385{
16386static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16387test_array [0] = 0
16388
16389 ;
16390 return 0;
16391}
16392_ACEOF
16393rm -f conftest.$ac_objext
16394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16395 (eval $ac_compile) 2>conftest.er1
a848cd7e 16396 ac_status=$?
ac1cb8d3
VS
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
a848cd7e
SC
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
9dd0f6c2 16402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_hi=-1 ac_mid=-1
16415 while :; do
16416 cat >conftest.$ac_ext <<_ACEOF
16417/* confdefs.h. */
16418_ACEOF
16419cat confdefs.h >>conftest.$ac_ext
16420cat >>conftest.$ac_ext <<_ACEOF
16421/* end confdefs.h. */
16422$ac_includes_default
16423int
16424main ()
16425{
16426static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16427test_array [0] = 0
16428
16429 ;
16430 return 0;
16431}
16432_ACEOF
16433rm -f conftest.$ac_objext
16434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16435 (eval $ac_compile) 2>conftest.er1
a848cd7e 16436 ac_status=$?
ac1cb8d3
VS
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
a848cd7e
SC
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
9dd0f6c2 16442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16445 ac_status=$?
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; } &&
16448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 ac_lo=$ac_mid; break
16455else
16456 echo "$as_me: failed program was:" >&5
16457sed 's/^/| /' conftest.$ac_ext >&5
16458
16459ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16460 if test $ac_mid -le $ac_hi; then
16461 ac_lo= ac_hi=
16462 break
16463 fi
16464 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16465fi
ac1cb8d3 16466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16467 done
16468else
16469 echo "$as_me: failed program was:" >&5
16470sed 's/^/| /' conftest.$ac_ext >&5
16471
16472ac_lo= ac_hi=
16473fi
ac1cb8d3 16474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16475fi
ac1cb8d3 16476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16477# Binary search between lo and hi bounds.
16478while test "x$ac_lo" != "x$ac_hi"; do
16479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16480 cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486$ac_includes_default
16487int
16488main ()
16489{
16490static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16491test_array [0] = 0
16492
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16499 (eval $ac_compile) 2>conftest.er1
a848cd7e 16500 ac_status=$?
ac1cb8d3
VS
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
a848cd7e
SC
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
9dd0f6c2 16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16518 ac_hi=$ac_mid
16519else
16520 echo "$as_me: failed program was:" >&5
16521sed 's/^/| /' conftest.$ac_ext >&5
16522
16523ac_lo=`expr '(' $ac_mid ')' + 1`
16524fi
ac1cb8d3 16525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16526done
16527case $ac_lo in
16528?*) ac_cv_sizeof_void_p=$ac_lo;;
16529'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16530See \`config.log' for more details." >&5
16531echo "$as_me: error: cannot compute sizeof (void *), 77
16532See \`config.log' for more details." >&2;}
16533 { (exit 1); exit 1; }; } ;;
16534esac
16535else
16536 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16537 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16538echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16539 { (exit 1); exit 1; }; }
16540else
16541 cat >conftest.$ac_ext <<_ACEOF
16542/* confdefs.h. */
16543_ACEOF
16544cat confdefs.h >>conftest.$ac_ext
16545cat >>conftest.$ac_ext <<_ACEOF
16546/* end confdefs.h. */
16547$ac_includes_default
16548long longval () { return (long) (sizeof (void *)); }
16549unsigned long ulongval () { return (long) (sizeof (void *)); }
16550#include <stdio.h>
16551#include <stdlib.h>
16552int
16553main ()
16554{
16555
16556 FILE *f = fopen ("conftest.val", "w");
16557 if (! f)
16558 exit (1);
16559 if (((long) (sizeof (void *))) < 0)
16560 {
16561 long i = longval ();
16562 if (i != ((long) (sizeof (void *))))
16563 exit (1);
16564 fprintf (f, "%ld\n", i);
16565 }
16566 else
16567 {
16568 unsigned long i = ulongval ();
16569 if (i != ((long) (sizeof (void *))))
16570 exit (1);
16571 fprintf (f, "%lu\n", i);
16572 }
16573 exit (ferror (f) || fclose (f) != 0);
16574
16575 ;
16576 return 0;
16577}
16578_ACEOF
16579rm -f conftest$ac_exeext
16580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16581 (eval $ac_link) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_sizeof_void_p=`cat conftest.val`
16591else
16592 echo "$as_me: program exited with status $ac_status" >&5
16593echo "$as_me: failed program was:" >&5
16594sed 's/^/| /' conftest.$ac_ext >&5
16595
16596( exit $ac_status )
16597{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16598See \`config.log' for more details." >&5
16599echo "$as_me: error: cannot compute sizeof (void *), 77
16600See \`config.log' for more details." >&2;}
16601 { (exit 1); exit 1; }; }
16602fi
ac1cb8d3 16603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16604fi
16605fi
16606rm -f conftest.val
16607else
16608 ac_cv_sizeof_void_p=0
16609fi
16610fi
16611echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16612echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16613cat >>confdefs.h <<_ACEOF
16614#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16615_ACEOF
16616
16617
16618echo "$as_me:$LINENO: checking for int" >&5
16619echo $ECHO_N "checking for int... $ECHO_C" >&6
16620if test "${ac_cv_type_int+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622else
16623 cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629$ac_includes_default
16630int
16631main ()
16632{
16633if ((int *) 0)
16634 return 0;
16635if (sizeof (int))
16636 return 0;
16637 ;
16638 return 0;
16639}
16640_ACEOF
16641rm -f conftest.$ac_objext
16642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16643 (eval $ac_compile) 2>conftest.er1
a848cd7e 16644 ac_status=$?
ac1cb8d3
VS
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
a848cd7e
SC
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
9dd0f6c2 16650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_cv_type_int=yes
16663else
16664 echo "$as_me: failed program was:" >&5
16665sed 's/^/| /' conftest.$ac_ext >&5
16666
16667ac_cv_type_int=no
16668fi
ac1cb8d3 16669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16670fi
16671echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16672echo "${ECHO_T}$ac_cv_type_int" >&6
16673
16674echo "$as_me:$LINENO: checking size of int" >&5
16675echo $ECHO_N "checking size of int... $ECHO_C" >&6
16676if test "${ac_cv_sizeof_int+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678else
16679 if test "$ac_cv_type_int" = yes; then
16680 # The cast to unsigned long works around a bug in the HP C Compiler
16681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16683 # This bug is HP SR number 8606223364.
16684 if test "$cross_compiling" = yes; then
16685 # Depending upon the size, compute the lo and hi bounds.
16686cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692$ac_includes_default
16693int
16694main ()
16695{
16696static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16697test_array [0] = 0
16698
16699 ;
16700 return 0;
16701}
16702_ACEOF
16703rm -f conftest.$ac_objext
16704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16705 (eval $ac_compile) 2>conftest.er1
a848cd7e 16706 ac_status=$?
ac1cb8d3
VS
16707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
a848cd7e
SC
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
9dd0f6c2 16712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_lo=0 ac_mid=0
16725 while :; do
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733int
16734main ()
16735{
16736static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16737test_array [0] = 0
16738
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext
16744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16745 (eval $ac_compile) 2>conftest.er1
a848cd7e 16746 ac_status=$?
ac1cb8d3
VS
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
a848cd7e
SC
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
9dd0f6c2 16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_hi=$ac_mid; break
16765else
16766 echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
16769ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16770 if test $ac_lo -le $ac_mid; then
16771 ac_lo= ac_hi=
16772 break
16773 fi
16774 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16775fi
ac1cb8d3 16776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16777 done
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782cat >conftest.$ac_ext <<_ACEOF
16783/* confdefs.h. */
16784_ACEOF
16785cat confdefs.h >>conftest.$ac_ext
16786cat >>conftest.$ac_ext <<_ACEOF
16787/* end confdefs.h. */
16788$ac_includes_default
16789int
16790main ()
16791{
16792static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16793test_array [0] = 0
16794
16795 ;
16796 return 0;
16797}
16798_ACEOF
16799rm -f conftest.$ac_objext
16800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16801 (eval $ac_compile) 2>conftest.er1
a848cd7e 16802 ac_status=$?
ac1cb8d3
VS
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
a848cd7e
SC
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
9dd0f6c2 16808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_hi=-1 ac_mid=-1
16821 while :; do
16822 cat >conftest.$ac_ext <<_ACEOF
16823/* confdefs.h. */
16824_ACEOF
16825cat confdefs.h >>conftest.$ac_ext
16826cat >>conftest.$ac_ext <<_ACEOF
16827/* end confdefs.h. */
16828$ac_includes_default
16829int
16830main ()
16831{
16832static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16833test_array [0] = 0
16834
16835 ;
16836 return 0;
16837}
16838_ACEOF
16839rm -f conftest.$ac_objext
16840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16841 (eval $ac_compile) 2>conftest.er1
a848cd7e 16842 ac_status=$?
ac1cb8d3
VS
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
a848cd7e
SC
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
9dd0f6c2 16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_lo=$ac_mid; break
16861else
16862 echo "$as_me: failed program was:" >&5
16863sed 's/^/| /' conftest.$ac_ext >&5
16864
16865ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16866 if test $ac_mid -le $ac_hi; then
16867 ac_lo= ac_hi=
16868 break
16869 fi
16870 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16871fi
ac1cb8d3 16872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16873 done
16874else
16875 echo "$as_me: failed program was:" >&5
16876sed 's/^/| /' conftest.$ac_ext >&5
16877
16878ac_lo= ac_hi=
16879fi
ac1cb8d3 16880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16881fi
ac1cb8d3 16882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16883# Binary search between lo and hi bounds.
16884while test "x$ac_lo" != "x$ac_hi"; do
16885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16886 cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
16892$ac_includes_default
16893int
16894main ()
16895{
16896static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16897test_array [0] = 0
16898
16899 ;
16900 return 0;
16901}
16902_ACEOF
16903rm -f conftest.$ac_objext
16904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16905 (eval $ac_compile) 2>conftest.er1
a848cd7e 16906 ac_status=$?
ac1cb8d3
VS
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
a848cd7e
SC
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
9dd0f6c2 16912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_hi=$ac_mid
16925else
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929ac_lo=`expr '(' $ac_mid ')' + 1`
16930fi
ac1cb8d3 16931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16932done
16933case $ac_lo in
16934?*) ac_cv_sizeof_int=$ac_lo;;
16935'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16936See \`config.log' for more details." >&5
16937echo "$as_me: error: cannot compute sizeof (int), 77
16938See \`config.log' for more details." >&2;}
16939 { (exit 1); exit 1; }; } ;;
16940esac
16941else
16942 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16943 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16944echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16945 { (exit 1); exit 1; }; }
16946else
16947 cat >conftest.$ac_ext <<_ACEOF
16948/* confdefs.h. */
16949_ACEOF
16950cat confdefs.h >>conftest.$ac_ext
16951cat >>conftest.$ac_ext <<_ACEOF
16952/* end confdefs.h. */
16953$ac_includes_default
16954long longval () { return (long) (sizeof (int)); }
16955unsigned long ulongval () { return (long) (sizeof (int)); }
16956#include <stdio.h>
16957#include <stdlib.h>
16958int
16959main ()
16960{
16961
16962 FILE *f = fopen ("conftest.val", "w");
16963 if (! f)
16964 exit (1);
16965 if (((long) (sizeof (int))) < 0)
16966 {
16967 long i = longval ();
16968 if (i != ((long) (sizeof (int))))
16969 exit (1);
16970 fprintf (f, "%ld\n", i);
16971 }
16972 else
16973 {
16974 unsigned long i = ulongval ();
16975 if (i != ((long) (sizeof (int))))
16976 exit (1);
16977 fprintf (f, "%lu\n", i);
16978 }
16979 exit (ferror (f) || fclose (f) != 0);
16980
16981 ;
16982 return 0;
16983}
16984_ACEOF
16985rm -f conftest$ac_exeext
16986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987 (eval $ac_link) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_sizeof_int=`cat conftest.val`
16997else
16998 echo "$as_me: program exited with status $ac_status" >&5
16999echo "$as_me: failed program was:" >&5
17000sed 's/^/| /' conftest.$ac_ext >&5
17001
17002( exit $ac_status )
17003{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17004See \`config.log' for more details." >&5
17005echo "$as_me: error: cannot compute sizeof (int), 77
17006See \`config.log' for more details." >&2;}
17007 { (exit 1); exit 1; }; }
17008fi
ac1cb8d3 17009rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17010fi
17011fi
17012rm -f conftest.val
17013else
17014 ac_cv_sizeof_int=0
17015fi
17016fi
17017echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17018echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17019cat >>confdefs.h <<_ACEOF
17020#define SIZEOF_INT $ac_cv_sizeof_int
17021_ACEOF
17022
17023
17024echo "$as_me:$LINENO: checking for long" >&5
17025echo $ECHO_N "checking for long... $ECHO_C" >&6
17026if test "${ac_cv_type_long+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17028else
17029 cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035$ac_includes_default
17036int
17037main ()
17038{
17039if ((long *) 0)
17040 return 0;
17041if (sizeof (long))
17042 return 0;
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext
17048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17049 (eval $ac_compile) 2>conftest.er1
a848cd7e 17050 ac_status=$?
ac1cb8d3
VS
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
a848cd7e
SC
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
9dd0f6c2 17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } &&
17062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_type_long=yes
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073ac_cv_type_long=no
17074fi
ac1cb8d3 17075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17076fi
17077echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17078echo "${ECHO_T}$ac_cv_type_long" >&6
17079
17080echo "$as_me:$LINENO: checking size of long" >&5
17081echo $ECHO_N "checking size of long... $ECHO_C" >&6
17082if test "${ac_cv_sizeof_long+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084else
17085 if test "$ac_cv_type_long" = yes; then
17086 # The cast to unsigned long works around a bug in the HP C Compiler
17087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17089 # This bug is HP SR number 8606223364.
17090 if test "$cross_compiling" = yes; then
17091 # Depending upon the size, compute the lo and hi bounds.
17092cat >conftest.$ac_ext <<_ACEOF
17093/* confdefs.h. */
17094_ACEOF
17095cat confdefs.h >>conftest.$ac_ext
17096cat >>conftest.$ac_ext <<_ACEOF
17097/* end confdefs.h. */
17098$ac_includes_default
17099int
17100main ()
17101{
17102static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17103test_array [0] = 0
17104
17105 ;
17106 return 0;
17107}
17108_ACEOF
17109rm -f conftest.$ac_objext
17110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17111 (eval $ac_compile) 2>conftest.er1
a848cd7e 17112 ac_status=$?
ac1cb8d3
VS
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
a848cd7e
SC
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
9dd0f6c2 17118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; } &&
17124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 ac_lo=0 ac_mid=0
17131 while :; do
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
17138$ac_includes_default
17139int
17140main ()
17141{
17142static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17143test_array [0] = 0
17144
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext
17150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17151 (eval $ac_compile) 2>conftest.er1
a848cd7e 17152 ac_status=$?
ac1cb8d3
VS
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
a848cd7e
SC
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
9dd0f6c2 17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_hi=$ac_mid; break
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17176 if test $ac_lo -le $ac_mid; then
17177 ac_lo= ac_hi=
17178 break
17179 fi
17180 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17181fi
ac1cb8d3 17182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17183 done
17184else
17185 echo "$as_me: failed program was:" >&5
17186sed 's/^/| /' conftest.$ac_ext >&5
17187
17188cat >conftest.$ac_ext <<_ACEOF
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
17194$ac_includes_default
17195int
17196main ()
17197{
17198static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17199test_array [0] = 0
17200
17201 ;
17202 return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext
17206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17207 (eval $ac_compile) 2>conftest.er1
a848cd7e 17208 ac_status=$?
ac1cb8d3
VS
17209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
a848cd7e
SC
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
9dd0f6c2 17214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_hi=-1 ac_mid=-1
17227 while :; do
17228 cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
17234$ac_includes_default
17235int
17236main ()
17237{
17238static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17239test_array [0] = 0
17240
17241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext
17246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17247 (eval $ac_compile) 2>conftest.er1
a848cd7e 17248 ac_status=$?
ac1cb8d3
VS
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
a848cd7e
SC
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
9dd0f6c2 17254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_lo=$ac_mid; break
17267else
17268 echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17272 if test $ac_mid -le $ac_hi; then
17273 ac_lo= ac_hi=
17274 break
17275 fi
17276 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17277fi
ac1cb8d3 17278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17279 done
17280else
17281 echo "$as_me: failed program was:" >&5
17282sed 's/^/| /' conftest.$ac_ext >&5
17283
17284ac_lo= ac_hi=
17285fi
ac1cb8d3 17286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17287fi
ac1cb8d3 17288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17289# Binary search between lo and hi bounds.
17290while test "x$ac_lo" != "x$ac_hi"; do
17291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17292 cat >conftest.$ac_ext <<_ACEOF
17293/* confdefs.h. */
17294_ACEOF
17295cat confdefs.h >>conftest.$ac_ext
17296cat >>conftest.$ac_ext <<_ACEOF
17297/* end confdefs.h. */
17298$ac_includes_default
17299int
17300main ()
17301{
17302static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17303test_array [0] = 0
17304
17305 ;
17306 return 0;
17307}
17308_ACEOF
17309rm -f conftest.$ac_objext
17310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17311 (eval $ac_compile) 2>conftest.er1
a848cd7e 17312 ac_status=$?
ac1cb8d3
VS
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
a848cd7e
SC
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
9dd0f6c2 17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_hi=$ac_mid
17331else
17332 echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
17335ac_lo=`expr '(' $ac_mid ')' + 1`
17336fi
ac1cb8d3 17337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17338done
17339case $ac_lo in
17340?*) ac_cv_sizeof_long=$ac_lo;;
17341'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17342See \`config.log' for more details." >&5
17343echo "$as_me: error: cannot compute sizeof (long), 77
17344See \`config.log' for more details." >&2;}
17345 { (exit 1); exit 1; }; } ;;
17346esac
17347else
17348 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17349 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17350echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17351 { (exit 1); exit 1; }; }
17352else
17353 cat >conftest.$ac_ext <<_ACEOF
17354/* confdefs.h. */
17355_ACEOF
17356cat confdefs.h >>conftest.$ac_ext
17357cat >>conftest.$ac_ext <<_ACEOF
17358/* end confdefs.h. */
17359$ac_includes_default
17360long longval () { return (long) (sizeof (long)); }
17361unsigned long ulongval () { return (long) (sizeof (long)); }
17362#include <stdio.h>
17363#include <stdlib.h>
17364int
17365main ()
17366{
17367
17368 FILE *f = fopen ("conftest.val", "w");
17369 if (! f)
17370 exit (1);
17371 if (((long) (sizeof (long))) < 0)
17372 {
17373 long i = longval ();
17374 if (i != ((long) (sizeof (long))))
17375 exit (1);
17376 fprintf (f, "%ld\n", i);
17377 }
17378 else
17379 {
17380 unsigned long i = ulongval ();
17381 if (i != ((long) (sizeof (long))))
17382 exit (1);
17383 fprintf (f, "%lu\n", i);
17384 }
17385 exit (ferror (f) || fclose (f) != 0);
17386
17387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest$ac_exeext
17392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_sizeof_long=`cat conftest.val`
17403else
17404 echo "$as_me: program exited with status $ac_status" >&5
17405echo "$as_me: failed program was:" >&5
17406sed 's/^/| /' conftest.$ac_ext >&5
17407
17408( exit $ac_status )
17409{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17410See \`config.log' for more details." >&5
17411echo "$as_me: error: cannot compute sizeof (long), 77
17412See \`config.log' for more details." >&2;}
17413 { (exit 1); exit 1; }; }
17414fi
ac1cb8d3 17415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17416fi
17417fi
17418rm -f conftest.val
17419else
17420 ac_cv_sizeof_long=0
17421fi
17422fi
17423echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17424echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17425cat >>confdefs.h <<_ACEOF
17426#define SIZEOF_LONG $ac_cv_sizeof_long
17427_ACEOF
17428
17429
17430echo "$as_me:$LINENO: checking for size_t" >&5
17431echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17432if test "${ac_cv_type_size_t+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17434else
17435 cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
17441$ac_includes_default
17442int
17443main ()
17444{
17445if ((size_t *) 0)
17446 return 0;
17447if (sizeof (size_t))
17448 return 0;
17449 ;
17450 return 0;
17451}
17452_ACEOF
17453rm -f conftest.$ac_objext
17454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17455 (eval $ac_compile) 2>conftest.er1
a848cd7e 17456 ac_status=$?
ac1cb8d3
VS
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
a848cd7e
SC
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
9dd0f6c2 17462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_cv_type_size_t=yes
17475else
17476 echo "$as_me: failed program was:" >&5
17477sed 's/^/| /' conftest.$ac_ext >&5
17478
17479ac_cv_type_size_t=no
17480fi
ac1cb8d3 17481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17482fi
17483echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17484echo "${ECHO_T}$ac_cv_type_size_t" >&6
17485
17486echo "$as_me:$LINENO: checking size of size_t" >&5
17487echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17488if test "${ac_cv_sizeof_size_t+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490else
17491 if test "$ac_cv_type_size_t" = yes; then
17492 # The cast to unsigned long works around a bug in the HP C Compiler
17493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17495 # This bug is HP SR number 8606223364.
17496 if test "$cross_compiling" = yes; then
17497 # Depending upon the size, compute the lo and hi bounds.
17498cat >conftest.$ac_ext <<_ACEOF
17499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
17504$ac_includes_default
17505int
17506main ()
17507{
17508static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17509test_array [0] = 0
17510
17511 ;
17512 return 0;
17513}
17514_ACEOF
17515rm -f conftest.$ac_objext
17516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17517 (eval $ac_compile) 2>conftest.er1
a848cd7e 17518 ac_status=$?
ac1cb8d3
VS
17519 grep -v '^ *+' conftest.er1 >conftest.err
17520 rm -f conftest.er1
17521 cat conftest.err >&5
a848cd7e
SC
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
9dd0f6c2 17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_lo=0 ac_mid=0
17537 while :; do
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544$ac_includes_default
17545int
17546main ()
17547{
17548static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17549test_array [0] = 0
17550
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555rm -f conftest.$ac_objext
17556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17557 (eval $ac_compile) 2>conftest.er1
a848cd7e 17558 ac_status=$?
ac1cb8d3
VS
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
a848cd7e
SC
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
9dd0f6c2 17564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_hi=$ac_mid; break
17577else
17578 echo "$as_me: failed program was:" >&5
17579sed 's/^/| /' conftest.$ac_ext >&5
17580
17581ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17582 if test $ac_lo -le $ac_mid; then
17583 ac_lo= ac_hi=
17584 break
17585 fi
17586 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17587fi
ac1cb8d3 17588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17589 done
17590else
17591 echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
17594cat >conftest.$ac_ext <<_ACEOF
17595/* confdefs.h. */
17596_ACEOF
17597cat confdefs.h >>conftest.$ac_ext
17598cat >>conftest.$ac_ext <<_ACEOF
17599/* end confdefs.h. */
17600$ac_includes_default
17601int
17602main ()
17603{
17604static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17605test_array [0] = 0
17606
17607 ;
17608 return 0;
17609}
17610_ACEOF
17611rm -f conftest.$ac_objext
17612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17613 (eval $ac_compile) 2>conftest.er1
a848cd7e 17614 ac_status=$?
ac1cb8d3
VS
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
a848cd7e
SC
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
9dd0f6c2 17620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 ac_hi=-1 ac_mid=-1
17633 while :; do
17634 cat >conftest.$ac_ext <<_ACEOF
17635/* confdefs.h. */
17636_ACEOF
17637cat confdefs.h >>conftest.$ac_ext
17638cat >>conftest.$ac_ext <<_ACEOF
17639/* end confdefs.h. */
17640$ac_includes_default
17641int
17642main ()
17643{
17644static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17645test_array [0] = 0
17646
17647 ;
17648 return 0;
17649}
17650_ACEOF
17651rm -f conftest.$ac_objext
17652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17653 (eval $ac_compile) 2>conftest.er1
a848cd7e 17654 ac_status=$?
ac1cb8d3
VS
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
a848cd7e
SC
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
9dd0f6c2 17660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_lo=$ac_mid; break
17673else
17674 echo "$as_me: failed program was:" >&5
17675sed 's/^/| /' conftest.$ac_ext >&5
17676
17677ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17678 if test $ac_mid -le $ac_hi; then
17679 ac_lo= ac_hi=
17680 break
17681 fi
17682 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17683fi
ac1cb8d3 17684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17685 done
17686else
17687 echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
17689
17690ac_lo= ac_hi=
17691fi
ac1cb8d3 17692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17693fi
ac1cb8d3 17694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17695# Binary search between lo and hi bounds.
17696while test "x$ac_lo" != "x$ac_hi"; do
17697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17698 cat >conftest.$ac_ext <<_ACEOF
17699/* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h. */
17704$ac_includes_default
17705int
17706main ()
17707{
17708static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17709test_array [0] = 0
17710
17711 ;
17712 return 0;
17713}
17714_ACEOF
17715rm -f conftest.$ac_objext
17716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17717 (eval $ac_compile) 2>conftest.er1
a848cd7e 17718 ac_status=$?
ac1cb8d3
VS
17719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
a848cd7e
SC
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
9dd0f6c2 17724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_hi=$ac_mid
17737else
17738 echo "$as_me: failed program was:" >&5
17739sed 's/^/| /' conftest.$ac_ext >&5
17740
17741ac_lo=`expr '(' $ac_mid ')' + 1`
17742fi
ac1cb8d3 17743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17744done
17745case $ac_lo in
17746?*) ac_cv_sizeof_size_t=$ac_lo;;
17747'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17748See \`config.log' for more details." >&5
17749echo "$as_me: error: cannot compute sizeof (size_t), 77
17750See \`config.log' for more details." >&2;}
17751 { (exit 1); exit 1; }; } ;;
17752esac
17753else
17754 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17755 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17756echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17757 { (exit 1); exit 1; }; }
17758else
17759 cat >conftest.$ac_ext <<_ACEOF
17760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
17765$ac_includes_default
17766long longval () { return (long) (sizeof (size_t)); }
17767unsigned long ulongval () { return (long) (sizeof (size_t)); }
17768#include <stdio.h>
17769#include <stdlib.h>
17770int
17771main ()
17772{
17773
17774 FILE *f = fopen ("conftest.val", "w");
17775 if (! f)
17776 exit (1);
17777 if (((long) (sizeof (size_t))) < 0)
17778 {
17779 long i = longval ();
17780 if (i != ((long) (sizeof (size_t))))
17781 exit (1);
17782 fprintf (f, "%ld\n", i);
17783 }
17784 else
17785 {
17786 unsigned long i = ulongval ();
17787 if (i != ((long) (sizeof (size_t))))
17788 exit (1);
17789 fprintf (f, "%lu\n", i);
17790 }
17791 exit (ferror (f) || fclose (f) != 0);
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest$ac_exeext
17798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17799 (eval $ac_link) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17808 ac_cv_sizeof_size_t=`cat conftest.val`
17809else
17810 echo "$as_me: program exited with status $ac_status" >&5
17811echo "$as_me: failed program was:" >&5
17812sed 's/^/| /' conftest.$ac_ext >&5
17813
17814( exit $ac_status )
17815{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17816See \`config.log' for more details." >&5
17817echo "$as_me: error: cannot compute sizeof (size_t), 77
17818See \`config.log' for more details." >&2;}
17819 { (exit 1); exit 1; }; }
17820fi
ac1cb8d3 17821rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17822fi
17823fi
17824rm -f conftest.val
17825else
17826 ac_cv_sizeof_size_t=0
17827fi
17828fi
17829echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17830echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17831cat >>confdefs.h <<_ACEOF
17832#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17833_ACEOF
17834
17835
17836
17837case "${host}" in
17838 arm-*-linux* )
17839 echo "$as_me:$LINENO: checking for long long" >&5
17840echo $ECHO_N "checking for long long... $ECHO_C" >&6
17841if test "${ac_cv_type_long_long+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843else
17844 cat >conftest.$ac_ext <<_ACEOF
17845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
17850$ac_includes_default
17851int
17852main ()
17853{
17854if ((long long *) 0)
17855 return 0;
17856if (sizeof (long long))
17857 return 0;
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext
17863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17864 (eval $ac_compile) 2>conftest.er1
a848cd7e 17865 ac_status=$?
ac1cb8d3
VS
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
a848cd7e
SC
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
9dd0f6c2 17871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; } &&
17877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 ac_cv_type_long_long=yes
17884else
17885 echo "$as_me: failed program was:" >&5
17886sed 's/^/| /' conftest.$ac_ext >&5
17887
17888ac_cv_type_long_long=no
17889fi
ac1cb8d3 17890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17891fi
17892echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17893echo "${ECHO_T}$ac_cv_type_long_long" >&6
17894
17895echo "$as_me:$LINENO: checking size of long long" >&5
17896echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17897if test "${ac_cv_sizeof_long_long+set}" = set; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899else
17900 if test "$ac_cv_type_long_long" = yes; then
17901 # The cast to unsigned long works around a bug in the HP C Compiler
17902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17904 # This bug is HP SR number 8606223364.
17905 if test "$cross_compiling" = yes; then
17906 # Depending upon the size, compute the lo and hi bounds.
17907cat >conftest.$ac_ext <<_ACEOF
17908/* confdefs.h. */
17909_ACEOF
17910cat confdefs.h >>conftest.$ac_ext
17911cat >>conftest.$ac_ext <<_ACEOF
17912/* end confdefs.h. */
17913$ac_includes_default
17914int
17915main ()
17916{
17917static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17918test_array [0] = 0
17919
17920 ;
17921 return 0;
17922}
17923_ACEOF
17924rm -f conftest.$ac_objext
17925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17926 (eval $ac_compile) 2>conftest.er1
a848cd7e 17927 ac_status=$?
ac1cb8d3
VS
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
a848cd7e
SC
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
9dd0f6c2 17933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; } &&
17939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945 ac_lo=0 ac_mid=0
17946 while :; do
17947 cat >conftest.$ac_ext <<_ACEOF
17948/* confdefs.h. */
17949_ACEOF
17950cat confdefs.h >>conftest.$ac_ext
17951cat >>conftest.$ac_ext <<_ACEOF
17952/* end confdefs.h. */
17953$ac_includes_default
17954int
17955main ()
17956{
17957static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17958test_array [0] = 0
17959
17960 ;
17961 return 0;
17962}
17963_ACEOF
17964rm -f conftest.$ac_objext
17965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17966 (eval $ac_compile) 2>conftest.er1
a848cd7e 17967 ac_status=$?
ac1cb8d3
VS
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
a848cd7e
SC
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
9dd0f6c2 17973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_hi=$ac_mid; break
17986else
17987 echo "$as_me: failed program was:" >&5
17988sed 's/^/| /' conftest.$ac_ext >&5
17989
17990ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17991 if test $ac_lo -le $ac_mid; then
17992 ac_lo= ac_hi=
17993 break
17994 fi
17995 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17996fi
ac1cb8d3 17997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17998 done
17999else
18000 echo "$as_me: failed program was:" >&5
18001sed 's/^/| /' conftest.$ac_ext >&5
18002
18003cat >conftest.$ac_ext <<_ACEOF
18004/* confdefs.h. */
18005_ACEOF
18006cat confdefs.h >>conftest.$ac_ext
18007cat >>conftest.$ac_ext <<_ACEOF
18008/* end confdefs.h. */
18009$ac_includes_default
18010int
18011main ()
18012{
18013static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18014test_array [0] = 0
18015
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020rm -f conftest.$ac_objext
18021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18022 (eval $ac_compile) 2>conftest.er1
a848cd7e 18023 ac_status=$?
ac1cb8d3
VS
18024 grep -v '^ *+' conftest.er1 >conftest.err
18025 rm -f conftest.er1
18026 cat conftest.err >&5
a848cd7e
SC
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } &&
9dd0f6c2 18029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 ac_hi=-1 ac_mid=-1
18042 while :; do
18043 cat >conftest.$ac_ext <<_ACEOF
18044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
18049$ac_includes_default
18050int
18051main ()
18052{
18053static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18054test_array [0] = 0
18055
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext
18061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18062 (eval $ac_compile) 2>conftest.er1
a848cd7e 18063 ac_status=$?
ac1cb8d3
VS
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
a848cd7e
SC
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
9dd0f6c2 18069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 ac_lo=$ac_mid; break
18082else
18083 echo "$as_me: failed program was:" >&5
18084sed 's/^/| /' conftest.$ac_ext >&5
18085
18086ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18087 if test $ac_mid -le $ac_hi; then
18088 ac_lo= ac_hi=
18089 break
18090 fi
18091 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18092fi
ac1cb8d3 18093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18094 done
18095else
18096 echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099ac_lo= ac_hi=
18100fi
ac1cb8d3 18101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18102fi
ac1cb8d3 18103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18104# Binary search between lo and hi bounds.
18105while test "x$ac_lo" != "x$ac_hi"; do
18106 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18107 cat >conftest.$ac_ext <<_ACEOF
18108/* confdefs.h. */
18109_ACEOF
18110cat confdefs.h >>conftest.$ac_ext
18111cat >>conftest.$ac_ext <<_ACEOF
18112/* end confdefs.h. */
18113$ac_includes_default
18114int
18115main ()
18116{
18117static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18118test_array [0] = 0
18119
18120 ;
18121 return 0;
18122}
18123_ACEOF
18124rm -f conftest.$ac_objext
18125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18126 (eval $ac_compile) 2>conftest.er1
a848cd7e 18127 ac_status=$?
ac1cb8d3
VS
18128 grep -v '^ *+' conftest.er1 >conftest.err
18129 rm -f conftest.er1
18130 cat conftest.err >&5
a848cd7e
SC
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
9dd0f6c2 18133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_hi=$ac_mid
18146else
18147 echo "$as_me: failed program was:" >&5
18148sed 's/^/| /' conftest.$ac_ext >&5
18149
18150ac_lo=`expr '(' $ac_mid ')' + 1`
18151fi
ac1cb8d3 18152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18153done
18154case $ac_lo in
18155?*) ac_cv_sizeof_long_long=$ac_lo;;
18156'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18157See \`config.log' for more details." >&5
18158echo "$as_me: error: cannot compute sizeof (long long), 77
18159See \`config.log' for more details." >&2;}
18160 { (exit 1); exit 1; }; } ;;
18161esac
18162else
18163 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18164 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18165echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18166 { (exit 1); exit 1; }; }
18167else
18168 cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h. */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h. */
18174$ac_includes_default
18175long longval () { return (long) (sizeof (long long)); }
18176unsigned long ulongval () { return (long) (sizeof (long long)); }
18177#include <stdio.h>
18178#include <stdlib.h>
18179int
18180main ()
18181{
18182
18183 FILE *f = fopen ("conftest.val", "w");
18184 if (! f)
18185 exit (1);
18186 if (((long) (sizeof (long long))) < 0)
18187 {
18188 long i = longval ();
18189 if (i != ((long) (sizeof (long long))))
18190 exit (1);
18191 fprintf (f, "%ld\n", i);
18192 }
18193 else
18194 {
18195 unsigned long i = ulongval ();
18196 if (i != ((long) (sizeof (long long))))
18197 exit (1);
18198 fprintf (f, "%lu\n", i);
18199 }
18200 exit (ferror (f) || fclose (f) != 0);
18201
18202 ;
18203 return 0;
18204}
18205_ACEOF
18206rm -f conftest$ac_exeext
18207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18208 (eval $ac_link) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_cv_sizeof_long_long=`cat conftest.val`
18218else
18219 echo "$as_me: program exited with status $ac_status" >&5
18220echo "$as_me: failed program was:" >&5
18221sed 's/^/| /' conftest.$ac_ext >&5
18222
18223( exit $ac_status )
18224{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18225See \`config.log' for more details." >&5
18226echo "$as_me: error: cannot compute sizeof (long long), 77
18227See \`config.log' for more details." >&2;}
18228 { (exit 1); exit 1; }; }
18229fi
ac1cb8d3 18230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18231fi
18232fi
18233rm -f conftest.val
18234else
18235 ac_cv_sizeof_long_long=0
18236fi
18237fi
18238echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18239echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18240cat >>confdefs.h <<_ACEOF
18241#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18242_ACEOF
18243
18244
18245 ;;
18246 *-hp-hpux* )
18247 echo "$as_me:$LINENO: checking for long long" >&5
18248echo $ECHO_N "checking for long long... $ECHO_C" >&6
18249if test "${ac_cv_type_long_long+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252 cat >conftest.$ac_ext <<_ACEOF
18253/* confdefs.h. */
18254_ACEOF
18255cat confdefs.h >>conftest.$ac_ext
18256cat >>conftest.$ac_ext <<_ACEOF
18257/* end confdefs.h. */
18258$ac_includes_default
18259int
18260main ()
18261{
18262if ((long long *) 0)
18263 return 0;
18264if (sizeof (long long))
18265 return 0;
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext
18271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18272 (eval $ac_compile) 2>conftest.er1
a848cd7e 18273 ac_status=$?
ac1cb8d3
VS
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
a848cd7e
SC
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
9dd0f6c2 18279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_type_long_long=yes
18292else
18293 echo "$as_me: failed program was:" >&5
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
18296ac_cv_type_long_long=no
18297fi
ac1cb8d3 18298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18299fi
18300echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18301echo "${ECHO_T}$ac_cv_type_long_long" >&6
18302
18303echo "$as_me:$LINENO: checking size of long long" >&5
18304echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18305if test "${ac_cv_sizeof_long_long+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307else
18308 if test "$ac_cv_type_long_long" = yes; then
18309 # The cast to unsigned long works around a bug in the HP C Compiler
18310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18311 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18312 # This bug is HP SR number 8606223364.
18313 if test "$cross_compiling" = yes; then
18314 # Depending upon the size, compute the lo and hi bounds.
18315cat >conftest.$ac_ext <<_ACEOF
18316/* confdefs.h. */
18317_ACEOF
18318cat confdefs.h >>conftest.$ac_ext
18319cat >>conftest.$ac_ext <<_ACEOF
18320/* end confdefs.h. */
18321$ac_includes_default
18322int
18323main ()
18324{
18325static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18326test_array [0] = 0
18327
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext
18333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18334 (eval $ac_compile) 2>conftest.er1
a848cd7e 18335 ac_status=$?
ac1cb8d3
VS
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
a848cd7e
SC
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
9dd0f6c2 18341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_lo=0 ac_mid=0
18354 while :; do
18355 cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h. */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h. */
18361$ac_includes_default
18362int
18363main ()
18364{
18365static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18366test_array [0] = 0
18367
18368 ;
18369 return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext
18373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18374 (eval $ac_compile) 2>conftest.er1
a848cd7e 18375 ac_status=$?
ac1cb8d3
VS
18376 grep -v '^ *+' conftest.er1 >conftest.err
18377 rm -f conftest.er1
18378 cat conftest.err >&5
a848cd7e
SC
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } &&
9dd0f6c2 18381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_hi=$ac_mid; break
18394else
18395 echo "$as_me: failed program was:" >&5
18396sed 's/^/| /' conftest.$ac_ext >&5
18397
18398ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18399 if test $ac_lo -le $ac_mid; then
18400 ac_lo= ac_hi=
18401 break
18402 fi
18403 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18404fi
ac1cb8d3 18405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18406 done
18407else
18408 echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411cat >conftest.$ac_ext <<_ACEOF
18412/* confdefs.h. */
18413_ACEOF
18414cat confdefs.h >>conftest.$ac_ext
18415cat >>conftest.$ac_ext <<_ACEOF
18416/* end confdefs.h. */
18417$ac_includes_default
18418int
18419main ()
18420{
18421static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18422test_array [0] = 0
18423
18424 ;
18425 return 0;
18426}
18427_ACEOF
18428rm -f conftest.$ac_objext
18429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18430 (eval $ac_compile) 2>conftest.er1
a848cd7e 18431 ac_status=$?
ac1cb8d3
VS
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
a848cd7e
SC
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
9dd0f6c2 18437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 ac_hi=-1 ac_mid=-1
18450 while :; do
18451 cat >conftest.$ac_ext <<_ACEOF
18452/* confdefs.h. */
18453_ACEOF
18454cat confdefs.h >>conftest.$ac_ext
18455cat >>conftest.$ac_ext <<_ACEOF
18456/* end confdefs.h. */
18457$ac_includes_default
18458int
18459main ()
18460{
18461static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18462test_array [0] = 0
18463
18464 ;
18465 return 0;
18466}
18467_ACEOF
18468rm -f conftest.$ac_objext
18469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18470 (eval $ac_compile) 2>conftest.er1
a848cd7e 18471 ac_status=$?
ac1cb8d3
VS
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
a848cd7e
SC
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
9dd0f6c2 18477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 ac_lo=$ac_mid; break
18490else
18491 echo "$as_me: failed program was:" >&5
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
18494ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18495 if test $ac_mid -le $ac_hi; then
18496 ac_lo= ac_hi=
18497 break
18498 fi
18499 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18500fi
ac1cb8d3 18501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18502 done
18503else
18504 echo "$as_me: failed program was:" >&5
18505sed 's/^/| /' conftest.$ac_ext >&5
18506
18507ac_lo= ac_hi=
18508fi
ac1cb8d3 18509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18510fi
ac1cb8d3 18511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18512# Binary search between lo and hi bounds.
18513while test "x$ac_lo" != "x$ac_hi"; do
18514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18515 cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
18521$ac_includes_default
18522int
18523main ()
18524{
18525static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18526test_array [0] = 0
18527
18528 ;
18529 return 0;
18530}
18531_ACEOF
18532rm -f conftest.$ac_objext
18533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18534 (eval $ac_compile) 2>conftest.er1
a848cd7e 18535 ac_status=$?
ac1cb8d3
VS
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
a848cd7e
SC
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
9dd0f6c2 18541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_hi=$ac_mid
18554else
18555 echo "$as_me: failed program was:" >&5
18556sed 's/^/| /' conftest.$ac_ext >&5
18557
18558ac_lo=`expr '(' $ac_mid ')' + 1`
18559fi
ac1cb8d3 18560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18561done
18562case $ac_lo in
18563?*) ac_cv_sizeof_long_long=$ac_lo;;
18564'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18565See \`config.log' for more details." >&5
18566echo "$as_me: error: cannot compute sizeof (long long), 77
18567See \`config.log' for more details." >&2;}
18568 { (exit 1); exit 1; }; } ;;
18569esac
18570else
18571 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18572 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18573echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18574 { (exit 1); exit 1; }; }
18575else
18576 cat >conftest.$ac_ext <<_ACEOF
18577/* confdefs.h. */
18578_ACEOF
18579cat confdefs.h >>conftest.$ac_ext
18580cat >>conftest.$ac_ext <<_ACEOF
18581/* end confdefs.h. */
18582$ac_includes_default
18583long longval () { return (long) (sizeof (long long)); }
18584unsigned long ulongval () { return (long) (sizeof (long long)); }
18585#include <stdio.h>
18586#include <stdlib.h>
18587int
18588main ()
18589{
18590
18591 FILE *f = fopen ("conftest.val", "w");
18592 if (! f)
18593 exit (1);
18594 if (((long) (sizeof (long long))) < 0)
18595 {
18596 long i = longval ();
18597 if (i != ((long) (sizeof (long long))))
18598 exit (1);
18599 fprintf (f, "%ld\n", i);
18600 }
18601 else
18602 {
18603 unsigned long i = ulongval ();
18604 if (i != ((long) (sizeof (long long))))
18605 exit (1);
18606 fprintf (f, "%lu\n", i);
18607 }
18608 exit (ferror (f) || fclose (f) != 0);
18609
18610 ;
18611 return 0;
18612}
18613_ACEOF
18614rm -f conftest$ac_exeext
18615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18616 (eval $ac_link) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_cv_sizeof_long_long=`cat conftest.val`
18626else
18627 echo "$as_me: program exited with status $ac_status" >&5
18628echo "$as_me: failed program was:" >&5
18629sed 's/^/| /' conftest.$ac_ext >&5
18630
18631( exit $ac_status )
18632{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18633See \`config.log' for more details." >&5
18634echo "$as_me: error: cannot compute sizeof (long long), 77
18635See \`config.log' for more details." >&2;}
18636 { (exit 1); exit 1; }; }
18637fi
ac1cb8d3 18638rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18639fi
18640fi
18641rm -f conftest.val
18642else
18643 ac_cv_sizeof_long_long=0
18644fi
18645fi
18646echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18647echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18648cat >>confdefs.h <<_ACEOF
18649#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18650_ACEOF
18651
18652
18653 if test "$ac_cv_sizeof_long_long" != "0"; then
18654 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18655 fi
18656 ;;
18657 * )
18658 echo "$as_me:$LINENO: checking for long long" >&5
18659echo $ECHO_N "checking for long long... $ECHO_C" >&6
18660if test "${ac_cv_type_long_long+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18662else
18663 cat >conftest.$ac_ext <<_ACEOF
18664/* confdefs.h. */
18665_ACEOF
18666cat confdefs.h >>conftest.$ac_ext
18667cat >>conftest.$ac_ext <<_ACEOF
18668/* end confdefs.h. */
18669$ac_includes_default
18670int
18671main ()
18672{
18673if ((long long *) 0)
18674 return 0;
18675if (sizeof (long long))
18676 return 0;
18677 ;
18678 return 0;
18679}
18680_ACEOF
18681rm -f conftest.$ac_objext
18682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18683 (eval $ac_compile) 2>conftest.er1
a848cd7e 18684 ac_status=$?
ac1cb8d3
VS
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
a848cd7e
SC
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
9dd0f6c2 18690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_type_long_long=yes
18703else
18704 echo "$as_me: failed program was:" >&5
18705sed 's/^/| /' conftest.$ac_ext >&5
18706
18707ac_cv_type_long_long=no
18708fi
ac1cb8d3 18709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18710fi
18711echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18712echo "${ECHO_T}$ac_cv_type_long_long" >&6
18713
18714echo "$as_me:$LINENO: checking size of long long" >&5
18715echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18716if test "${ac_cv_sizeof_long_long+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718else
18719 if test "$ac_cv_type_long_long" = yes; then
18720 # The cast to unsigned long works around a bug in the HP C Compiler
18721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18723 # This bug is HP SR number 8606223364.
18724 if test "$cross_compiling" = yes; then
18725 # Depending upon the size, compute the lo and hi bounds.
18726cat >conftest.$ac_ext <<_ACEOF
18727/* confdefs.h. */
18728_ACEOF
18729cat confdefs.h >>conftest.$ac_ext
18730cat >>conftest.$ac_ext <<_ACEOF
18731/* end confdefs.h. */
18732$ac_includes_default
18733int
18734main ()
18735{
18736static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18737test_array [0] = 0
18738
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18745 (eval $ac_compile) 2>conftest.er1
a848cd7e 18746 ac_status=$?
ac1cb8d3
VS
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
a848cd7e
SC
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
9dd0f6c2 18752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_lo=0 ac_mid=0
18765 while :; do
18766 cat >conftest.$ac_ext <<_ACEOF
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772$ac_includes_default
18773int
18774main ()
18775{
18776static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18777test_array [0] = 0
18778
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18785 (eval $ac_compile) 2>conftest.er1
a848cd7e 18786 ac_status=$?
ac1cb8d3
VS
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
a848cd7e
SC
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
9dd0f6c2 18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_hi=$ac_mid; break
18805else
18806 echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18810 if test $ac_lo -le $ac_mid; then
18811 ac_lo= ac_hi=
18812 break
18813 fi
18814 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18815fi
ac1cb8d3 18816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18817 done
18818else
18819 echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822cat >conftest.$ac_ext <<_ACEOF
18823/* confdefs.h. */
18824_ACEOF
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
18828$ac_includes_default
18829int
18830main ()
18831{
18832static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18833test_array [0] = 0
18834
18835 ;
18836 return 0;
18837}
18838_ACEOF
18839rm -f conftest.$ac_objext
18840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18841 (eval $ac_compile) 2>conftest.er1
a848cd7e 18842 ac_status=$?
ac1cb8d3
VS
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
a848cd7e
SC
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
9dd0f6c2 18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_hi=-1 ac_mid=-1
18861 while :; do
18862 cat >conftest.$ac_ext <<_ACEOF
18863/* confdefs.h. */
18864_ACEOF
18865cat confdefs.h >>conftest.$ac_ext
18866cat >>conftest.$ac_ext <<_ACEOF
18867/* end confdefs.h. */
18868$ac_includes_default
18869int
18870main ()
18871{
18872static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18873test_array [0] = 0
18874
18875 ;
18876 return 0;
18877}
18878_ACEOF
18879rm -f conftest.$ac_objext
18880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18881 (eval $ac_compile) 2>conftest.er1
a848cd7e 18882 ac_status=$?
ac1cb8d3
VS
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
a848cd7e
SC
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
9dd0f6c2 18888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 ac_lo=$ac_mid; break
18901else
18902 echo "$as_me: failed program was:" >&5
18903sed 's/^/| /' conftest.$ac_ext >&5
18904
18905ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18906 if test $ac_mid -le $ac_hi; then
18907 ac_lo= ac_hi=
18908 break
18909 fi
18910 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18911fi
ac1cb8d3 18912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18913 done
18914else
18915 echo "$as_me: failed program was:" >&5
18916sed 's/^/| /' conftest.$ac_ext >&5
18917
18918ac_lo= ac_hi=
18919fi
ac1cb8d3 18920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18921fi
ac1cb8d3 18922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18923# Binary search between lo and hi bounds.
18924while test "x$ac_lo" != "x$ac_hi"; do
18925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18926 cat >conftest.$ac_ext <<_ACEOF
18927/* confdefs.h. */
18928_ACEOF
18929cat confdefs.h >>conftest.$ac_ext
18930cat >>conftest.$ac_ext <<_ACEOF
18931/* end confdefs.h. */
18932$ac_includes_default
18933int
18934main ()
18935{
18936static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18937test_array [0] = 0
18938
18939 ;
18940 return 0;
18941}
18942_ACEOF
18943rm -f conftest.$ac_objext
18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18945 (eval $ac_compile) 2>conftest.er1
a848cd7e 18946 ac_status=$?
ac1cb8d3
VS
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
a848cd7e
SC
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
9dd0f6c2 18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_hi=$ac_mid
18965else
18966 echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
18969ac_lo=`expr '(' $ac_mid ')' + 1`
18970fi
ac1cb8d3 18971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18972done
18973case $ac_lo in
18974?*) ac_cv_sizeof_long_long=$ac_lo;;
18975'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18976See \`config.log' for more details." >&5
18977echo "$as_me: error: cannot compute sizeof (long long), 77
18978See \`config.log' for more details." >&2;}
18979 { (exit 1); exit 1; }; } ;;
18980esac
18981else
18982 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18983 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18984echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18985 { (exit 1); exit 1; }; }
18986else
18987 cat >conftest.$ac_ext <<_ACEOF
18988/* confdefs.h. */
18989_ACEOF
18990cat confdefs.h >>conftest.$ac_ext
18991cat >>conftest.$ac_ext <<_ACEOF
18992/* end confdefs.h. */
18993$ac_includes_default
18994long longval () { return (long) (sizeof (long long)); }
18995unsigned long ulongval () { return (long) (sizeof (long long)); }
18996#include <stdio.h>
18997#include <stdlib.h>
18998int
18999main ()
19000{
19001
19002 FILE *f = fopen ("conftest.val", "w");
19003 if (! f)
19004 exit (1);
19005 if (((long) (sizeof (long long))) < 0)
19006 {
19007 long i = longval ();
19008 if (i != ((long) (sizeof (long long))))
19009 exit (1);
19010 fprintf (f, "%ld\n", i);
19011 }
19012 else
19013 {
19014 unsigned long i = ulongval ();
19015 if (i != ((long) (sizeof (long long))))
19016 exit (1);
19017 fprintf (f, "%lu\n", i);
19018 }
19019 exit (ferror (f) || fclose (f) != 0);
19020
19021 ;
19022 return 0;
19023}
19024_ACEOF
19025rm -f conftest$ac_exeext
19026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19027 (eval $ac_link) 2>&5
19028 ac_status=$?
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_cv_sizeof_long_long=`cat conftest.val`
19037else
19038 echo "$as_me: program exited with status $ac_status" >&5
19039echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
19042( exit $ac_status )
19043{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19044See \`config.log' for more details." >&5
19045echo "$as_me: error: cannot compute sizeof (long long), 77
19046See \`config.log' for more details." >&2;}
19047 { (exit 1); exit 1; }; }
19048fi
ac1cb8d3 19049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19050fi
19051fi
19052rm -f conftest.val
19053else
19054 ac_cv_sizeof_long_long=0
19055fi
19056fi
19057echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19058echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19059cat >>confdefs.h <<_ACEOF
19060#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19061_ACEOF
19062
19063
19064esac
19065
238ecede
MW
19066echo "$as_me:$LINENO: checking for wchar_t" >&5
19067echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19068if test "${ac_cv_type_wchar_t+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
19071 cat >conftest.$ac_ext <<_ACEOF
19072/* confdefs.h. */
19073_ACEOF
19074cat confdefs.h >>conftest.$ac_ext
19075cat >>conftest.$ac_ext <<_ACEOF
19076/* end confdefs.h. */
19077
19078 /* DJGPP only has fake wchar_t: */
19079 #ifdef __DJGPP__
19080 # error "fake wchar_t"
19081 #endif
19082 #ifdef HAVE_WCHAR_H
19083 # ifdef __CYGWIN__
19084 # include <stddef.h>
19085 # endif
19086 # include <wchar.h>
19087 #endif
19088 #ifdef HAVE_STDLIB_H
19089 # include <stdlib.h>
19090 #endif
19091 #include <stdio.h>
19092
19093
19094
19095int
19096main ()
19097{
19098if ((wchar_t *) 0)
19099 return 0;
19100if (sizeof (wchar_t))
19101 return 0;
19102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext
19107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108 (eval $ac_compile) 2>conftest.er1
19109 ac_status=$?
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
9dd0f6c2 19115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; } &&
19121 { ac_try='test -s conftest.$ac_objext'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 ac_cv_type_wchar_t=yes
19128else
19129 echo "$as_me: failed program was:" >&5
19130sed 's/^/| /' conftest.$ac_ext >&5
19131
19132ac_cv_type_wchar_t=no
19133fi
19134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19135fi
19136echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19137echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19138
a848cd7e
SC
19139echo "$as_me:$LINENO: checking size of wchar_t" >&5
19140echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19141if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143else
238ecede
MW
19144 if test "$ac_cv_type_wchar_t" = yes; then
19145 # The cast to unsigned long works around a bug in the HP C Compiler
19146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19148 # This bug is HP SR number 8606223364.
19149 if test "$cross_compiling" = yes; then
19150 # Depending upon the size, compute the lo and hi bounds.
19151cat >conftest.$ac_ext <<_ACEOF
19152/* confdefs.h. */
19153_ACEOF
19154cat confdefs.h >>conftest.$ac_ext
19155cat >>conftest.$ac_ext <<_ACEOF
19156/* end confdefs.h. */
19157
19158 /* DJGPP only has fake wchar_t: */
19159 #ifdef __DJGPP__
19160 # error "fake wchar_t"
19161 #endif
19162 #ifdef HAVE_WCHAR_H
19163 # ifdef __CYGWIN__
19164 # include <stddef.h>
19165 # endif
19166 # include <wchar.h>
19167 #endif
19168 #ifdef HAVE_STDLIB_H
19169 # include <stdlib.h>
19170 #endif
19171 #include <stdio.h>
19172
19173
19174
19175int
19176main ()
19177{
19178static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19179test_array [0] = 0
19180
19181 ;
19182 return 0;
19183}
19184_ACEOF
19185rm -f conftest.$ac_objext
19186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
9dd0f6c2 19194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest.$ac_objext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_lo=0 ac_mid=0
19207 while :; do
19208 cat >conftest.$ac_ext <<_ACEOF
19209/* confdefs.h. */
19210_ACEOF
19211cat confdefs.h >>conftest.$ac_ext
19212cat >>conftest.$ac_ext <<_ACEOF
19213/* end confdefs.h. */
19214
19215 /* DJGPP only has fake wchar_t: */
19216 #ifdef __DJGPP__
19217 # error "fake wchar_t"
19218 #endif
19219 #ifdef HAVE_WCHAR_H
19220 # ifdef __CYGWIN__
19221 # include <stddef.h>
19222 # endif
19223 # include <wchar.h>
19224 #endif
19225 #ifdef HAVE_STDLIB_H
19226 # include <stdlib.h>
19227 #endif
19228 #include <stdio.h>
19229
19230
19231
19232int
19233main ()
19234{
19235static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19236test_array [0] = 0
19237
19238 ;
19239 return 0;
19240}
19241_ACEOF
19242rm -f conftest.$ac_objext
19243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19244 (eval $ac_compile) 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
9dd0f6c2 19251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest.$ac_objext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_hi=$ac_mid; break
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268ac_lo=`expr $ac_mid + 1`
19269 if test $ac_lo -le $ac_mid; then
19270 ac_lo= ac_hi=
19271 break
19272 fi
19273 ac_mid=`expr 2 '*' $ac_mid + 1`
19274fi
19275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19276 done
19277else
19278 echo "$as_me: failed program was:" >&5
19279sed 's/^/| /' conftest.$ac_ext >&5
19280
19281cat >conftest.$ac_ext <<_ACEOF
19282/* confdefs.h. */
19283_ACEOF
19284cat confdefs.h >>conftest.$ac_ext
19285cat >>conftest.$ac_ext <<_ACEOF
19286/* end confdefs.h. */
19287
19288 /* DJGPP only has fake wchar_t: */
19289 #ifdef __DJGPP__
19290 # error "fake wchar_t"
19291 #endif
19292 #ifdef HAVE_WCHAR_H
19293 # ifdef __CYGWIN__
19294 # include <stddef.h>
19295 # endif
19296 # include <wchar.h>
19297 #endif
19298 #ifdef HAVE_STDLIB_H
19299 # include <stdlib.h>
19300 #endif
19301 #include <stdio.h>
19302
19303
19304
19305int
19306main ()
19307{
19308static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19309test_array [0] = 0
19310
19311 ;
19312 return 0;
19313}
19314_ACEOF
19315rm -f conftest.$ac_objext
19316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19317 (eval $ac_compile) 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
9dd0f6c2 19324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 ac_hi=-1 ac_mid=-1
19337 while :; do
19338 cat >conftest.$ac_ext <<_ACEOF
19339/* confdefs.h. */
19340_ACEOF
19341cat confdefs.h >>conftest.$ac_ext
19342cat >>conftest.$ac_ext <<_ACEOF
19343/* end confdefs.h. */
19344
19345 /* DJGPP only has fake wchar_t: */
19346 #ifdef __DJGPP__
19347 # error "fake wchar_t"
19348 #endif
19349 #ifdef HAVE_WCHAR_H
19350 # ifdef __CYGWIN__
19351 # include <stddef.h>
19352 # endif
19353 # include <wchar.h>
19354 #endif
19355 #ifdef HAVE_STDLIB_H
19356 # include <stdlib.h>
19357 #endif
19358 #include <stdio.h>
19359
19360
19361
19362int
19363main ()
19364{
19365static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19366test_array [0] = 0
19367
19368 ;
19369 return 0;
19370}
19371_ACEOF
19372rm -f conftest.$ac_objext
19373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374 (eval $ac_compile) 2>conftest.er1
19375 ac_status=$?
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -f conftest.er1
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
9dd0f6c2 19381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_lo=$ac_mid; break
19394else
19395 echo "$as_me: failed program was:" >&5
19396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398ac_hi=`expr '(' $ac_mid ')' - 1`
19399 if test $ac_mid -le $ac_hi; then
19400 ac_lo= ac_hi=
19401 break
19402 fi
19403 ac_mid=`expr 2 '*' $ac_mid`
19404fi
19405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19406 done
19407else
19408 echo "$as_me: failed program was:" >&5
19409sed 's/^/| /' conftest.$ac_ext >&5
19410
19411ac_lo= ac_hi=
19412fi
19413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414fi
19415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416# Binary search between lo and hi bounds.
19417while test "x$ac_lo" != "x$ac_hi"; do
19418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19419 cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
19425
19426 /* DJGPP only has fake wchar_t: */
19427 #ifdef __DJGPP__
19428 # error "fake wchar_t"
19429 #endif
19430 #ifdef HAVE_WCHAR_H
19431 # ifdef __CYGWIN__
19432 # include <stddef.h>
19433 # endif
19434 # include <wchar.h>
19435 #endif
19436 #ifdef HAVE_STDLIB_H
19437 # include <stdlib.h>
19438 #endif
19439 #include <stdio.h>
a848cd7e 19440
a848cd7e 19441
a848cd7e 19442
238ecede
MW
19443int
19444main ()
19445{
19446static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19447test_array [0] = 0
a848cd7e 19448
238ecede
MW
19449 ;
19450 return 0;
19451}
19452_ACEOF
19453rm -f conftest.$ac_objext
19454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19455 (eval $ac_compile) 2>conftest.er1
19456 ac_status=$?
19457 grep -v '^ *+' conftest.er1 >conftest.err
19458 rm -f conftest.er1
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
9dd0f6c2 19462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_hi=$ac_mid
19475else
19476 echo "$as_me: failed program was:" >&5
19477sed 's/^/| /' conftest.$ac_ext >&5
19478
19479ac_lo=`expr '(' $ac_mid ')' + 1`
19480fi
19481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19482done
19483case $ac_lo in
19484?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19485'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19486See \`config.log' for more details." >&5
19487echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19488See \`config.log' for more details." >&2;}
19489 { (exit 1); exit 1; }; } ;;
19490esac
19491else
19492 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19493 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19494echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19495 { (exit 1); exit 1; }; }
a848cd7e
SC
19496else
19497 cat >conftest.$ac_ext <<_ACEOF
19498/* confdefs.h. */
19499_ACEOF
19500cat confdefs.h >>conftest.$ac_ext
19501cat >>conftest.$ac_ext <<_ACEOF
19502/* end confdefs.h. */
19503
238ecede
MW
19504 /* DJGPP only has fake wchar_t: */
19505 #ifdef __DJGPP__
19506 # error "fake wchar_t"
19507 #endif
19508 #ifdef HAVE_WCHAR_H
19509 # ifdef __CYGWIN__
19510 # include <stddef.h>
19511 # endif
19512 # include <wchar.h>
19513 #endif
19514 #ifdef HAVE_STDLIB_H
19515 # include <stdlib.h>
19516 #endif
19517 #include <stdio.h>
19518
19519
19520
19521long longval () { return (long) (sizeof (wchar_t)); }
19522unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19523#include <stdio.h>
19524#include <stdlib.h>
19525int
19526main ()
19527{
a848cd7e 19528
238ecede
MW
19529 FILE *f = fopen ("conftest.val", "w");
19530 if (! f)
19531 exit (1);
19532 if (((long) (sizeof (wchar_t))) < 0)
19533 {
19534 long i = longval ();
19535 if (i != ((long) (sizeof (wchar_t))))
19536 exit (1);
19537 fprintf (f, "%ld\n", i);
19538 }
19539 else
19540 {
19541 unsigned long i = ulongval ();
19542 if (i != ((long) (sizeof (wchar_t))))
19543 exit (1);
19544 fprintf (f, "%lu\n", i);
19545 }
19546 exit (ferror (f) || fclose (f) != 0);
19547
19548 ;
19549 return 0;
19550}
a848cd7e
SC
19551_ACEOF
19552rm -f conftest$ac_exeext
19553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19554 (eval $ac_link) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
238ecede 19563 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19564else
19565 echo "$as_me: program exited with status $ac_status" >&5
19566echo "$as_me: failed program was:" >&5
19567sed 's/^/| /' conftest.$ac_ext >&5
19568
19569( exit $ac_status )
238ecede
MW
19570{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19571See \`config.log' for more details." >&5
19572echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19573See \`config.log' for more details." >&2;}
19574 { (exit 1); exit 1; }; }
a848cd7e 19575fi
ac1cb8d3 19576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19577fi
a848cd7e 19578fi
238ecede
MW
19579rm -f conftest.val
19580else
19581 ac_cv_sizeof_wchar_t=0
19582fi
19583fi
19584echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19585echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19586cat >>confdefs.h <<_ACEOF
238ecede 19587#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19588_ACEOF
19589
19590
238ecede 19591
ba3d13e1
VZ
19592echo "$as_me:$LINENO: checking for va_copy" >&5
19593echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19594if test "${wx_cv_func_va_copy+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596else
19597
19598 cat >conftest.$ac_ext <<_ACEOF
19599
19600 #include <stdarg.h>
19601 void foo(char *f, ...)
19602 {
19603 va_list ap1, ap2;
19604 va_start(ap1, f);
19605 va_copy(ap2, ap1);
19606 va_end(ap2);
19607 va_end(ap1);
19608 }
5886b072
VZ
19609 int main()
19610 {
b902e639
VZ
19611 foo("hi", 17);
19612 return 0;
5886b072 19613 }
ba3d13e1
VZ
19614_ACEOF
19615rm -f conftest.$ac_objext conftest$ac_exeext
19616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617 (eval $ac_link) 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
9dd0f6c2 19624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; } &&
19630 { ac_try='test -s conftest$ac_exeext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 wx_cv_func_va_copy=yes
19637else
19638 echo "$as_me: failed program was:" >&5
19639sed 's/^/| /' conftest.$ac_ext >&5
19640
19641wx_cv_func_va_copy=no
19642
19643fi
19644rm -f conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646
19647
19648fi
19649echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19650echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19651
19652if test $wx_cv_func_va_copy = "yes"; then
19653 cat >>confdefs.h <<\_ACEOF
19654#define HAVE_VA_COPY 1
19655_ACEOF
19656
19657else
19658 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19659echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19660if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
19663
19664 if test "$cross_compiling" = yes; then
19665 wx_cv_type_va_list_lvalue=yes
19666
19667else
19668 cat >conftest.$ac_ext <<_ACEOF
19669
19670 #include <stdarg.h>
19671 int foo(char *f, ...)
19672 {
19673 va_list ap1, ap2;
19674 va_start(ap1, f);
19675 ap2 = ap1;
19676 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19677 return 1;
19678 va_end(ap2);
19679 va_end(ap1);
19680 return 0;
19681 }
19682 int main()
19683 {
19684 return foo("hi", 17);
19685 }
19686_ACEOF
19687rm -f conftest$ac_exeext
19688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19689 (eval $ac_link) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 wx_cv_type_va_list_lvalue=yes
19699else
19700 echo "$as_me: program exited with status $ac_status" >&5
19701echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
19703
19704( exit $ac_status )
19705wx_cv_type_va_list_lvalue=no
19706fi
19707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19708fi
19709
19710
19711fi
19712echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19713echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19714
19715 if test $wx_cv_type_va_list_lvalue != "yes"; then
19716 cat >>confdefs.h <<\_ACEOF
19717#define VA_LIST_IS_ARRAY 1
19718_ACEOF
19719
19720 fi
19721fi
19722
a848cd7e
SC
19723# Check whether --enable-largefile or --disable-largefile was given.
19724if test "${enable_largefile+set}" = set; then
19725 enableval="$enable_largefile"
19726
19727fi;
19728if test "$enable_largefile" != no; then
19729 wx_largefile=no
19730
19731 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19732echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19733if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735else
19736
19737 cat >conftest.$ac_ext <<_ACEOF
19738/* confdefs.h. */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
19742/* end confdefs.h. */
19743#define _FILE_OFFSET_BITS 64
19744 #include <sys/types.h>
19745int
19746main ()
19747{
19748typedef struct {
19749 unsigned int field: sizeof(off_t) == 8;
19750} wxlf;
19751
19752 ;
19753 return 0;
19754}
19755_ACEOF
19756rm -f conftest.$ac_objext
19757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19758 (eval $ac_compile) 2>conftest.er1
a848cd7e 19759 ac_status=$?
ac1cb8d3
VS
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
a848cd7e
SC
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
9dd0f6c2 19765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19768 ac_status=$?
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 ac_cv_sys_file_offset_bits=64
19778else
19779 echo "$as_me: failed program was:" >&5
19780sed 's/^/| /' conftest.$ac_ext >&5
19781
19782ac_cv_sys_file_offset_bits=no
19783fi
ac1cb8d3 19784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19785
19786
19787fi
19788echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19789echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19790
19791 if test "$ac_cv_sys_file_offset_bits" != no; then
19792 wx_largefile=yes
19793 cat >>confdefs.h <<_ACEOF
19794#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19795_ACEOF
19796
19797 fi
19798
19799 if test "x$wx_largefile" != "xyes"; then
19800
19801 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19802echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19803if test "${ac_cv_sys_large_files+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805else
19806
19807 cat >conftest.$ac_ext <<_ACEOF
19808/* confdefs.h. */
19809_ACEOF
19810cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h. */
19813#define _LARGE_FILES 1
19814 #include <sys/types.h>
19815int
19816main ()
19817{
19818typedef struct {
19819 unsigned int field: sizeof(off_t) == 8;
19820} wxlf;
19821
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826rm -f conftest.$ac_objext
19827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19828 (eval $ac_compile) 2>conftest.er1
a848cd7e 19829 ac_status=$?
ac1cb8d3
VS
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
a848cd7e
SC
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
9dd0f6c2 19835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; } &&
19841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 ac_cv_sys_large_files=1
19848else
19849 echo "$as_me: failed program was:" >&5
19850sed 's/^/| /' conftest.$ac_ext >&5
19851
19852ac_cv_sys_large_files=no
19853fi
ac1cb8d3 19854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19855
19856
19857fi
19858echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19859echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19860
19861 if test "$ac_cv_sys_large_files" != no; then
19862 wx_largefile=yes
19863 cat >>confdefs.h <<_ACEOF
19864#define _LARGE_FILES $ac_cv_sys_large_files
19865_ACEOF
19866
19867 fi
19868
19869 fi
19870
19871 echo "$as_me:$LINENO: checking if large file support is available" >&5
19872echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19873 if test "x$wx_largefile" = "xyes"; then
19874 cat >>confdefs.h <<\_ACEOF
19875#define HAVE_LARGEFILE_SUPPORT 1
19876_ACEOF
19877
19878 fi
19879 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19880echo "${ECHO_T}$wx_largefile" >&6
19881fi
19882
5b674b9d
DE
19883
19884if test "x$wx_largefile" = "xyes"; then
19885 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19886 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19887 else
19888 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19889 fi
19890 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19891echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19892if test "${ac_cv_sys_largefile_source+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894else
19895 while :; do
19896 ac_cv_sys_largefile_source=no
19897 cat >conftest.$ac_ext <<_ACEOF
19898/* confdefs.h. */
19899_ACEOF
19900cat confdefs.h >>conftest.$ac_ext
19901cat >>conftest.$ac_ext <<_ACEOF
19902/* end confdefs.h. */
19903#include <stdio.h>
19904int
19905main ()
19906{
19907return !fseeko;
19908 ;
19909 return 0;
19910}
19911_ACEOF
19912rm -f conftest.$ac_objext
19913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19914 (eval $ac_compile) 2>conftest.er1
19915 ac_status=$?
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
9dd0f6c2 19921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try='test -s conftest.$ac_objext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 break
19934else
19935 echo "$as_me: failed program was:" >&5
19936sed 's/^/| /' conftest.$ac_ext >&5
19937
19938fi
19939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19940 cat >conftest.$ac_ext <<_ACEOF
19941/* confdefs.h. */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h. */
19946#define _LARGEFILE_SOURCE 1
19947#include <stdio.h>
19948int
19949main ()
19950{
19951return !fseeko;
19952 ;
19953 return 0;
19954}
19955_ACEOF
19956rm -f conftest.$ac_objext
19957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19958 (eval $ac_compile) 2>conftest.er1
19959 ac_status=$?
19960 grep -v '^ *+' conftest.er1 >conftest.err
19961 rm -f conftest.er1
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } &&
9dd0f6c2 19965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_sys_largefile_source=1; break
19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
19982fi
19983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19984 break
19985done
19986fi
19987echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19988echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19989if test "$ac_cv_sys_largefile_source" != no; then
19990
19991cat >>confdefs.h <<_ACEOF
19992#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19993_ACEOF
19994
19995fi
19996rm -f conftest*
19997
19998# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19999# in glibc 2.1.3, but that breaks too many other things.
20000# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20001echo "$as_me:$LINENO: checking for fseeko" >&5
20002echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20003if test "${ac_cv_func_fseeko+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006 cat >conftest.$ac_ext <<_ACEOF
20007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
20012#include <stdio.h>
20013int
20014main ()
20015{
20016return fseeko && fseeko (stdin, 0, 0);
20017 ;
20018 return 0;
20019}
20020_ACEOF
20021rm -f conftest.$ac_objext conftest$ac_exeext
20022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20023 (eval $ac_link) 2>conftest.er1
20024 ac_status=$?
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
9dd0f6c2 20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest$ac_exeext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_cv_func_fseeko=yes
20043else
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047ac_cv_func_fseeko=no
20048fi
20049rm -f conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20051fi
20052echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20053echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20054if test $ac_cv_func_fseeko = yes; then
20055
20056cat >>confdefs.h <<\_ACEOF
20057#define HAVE_FSEEKO 1
20058_ACEOF
20059
20060fi
20061
5b674b9d
DE
20062 if test "$ac_cv_sys_largefile_source" != no; then
20063 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20064 fi
20065 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20066fi
20067
20068echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20069echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20070if test "${ac_cv_c_bigendian+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072else
20073 ac_cv_c_bigendian=unknown
20074# See if sys/param.h defines the BYTE_ORDER macro.
20075cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081#include <sys/types.h>
20082#include <sys/param.h>
20083int
20084main ()
20085{
20086
20087#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20088 bogus endian macros
20089#endif
20090 ;
20091 return 0;
20092}
20093_ACEOF
20094rm -f conftest.$ac_objext
20095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20096 (eval $ac_compile) 2>conftest.er1
a848cd7e 20097 ac_status=$?
ac1cb8d3
VS
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
a848cd7e
SC
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
9dd0f6c2 20103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 # It does; now see whether it defined to BIG_ENDIAN or not.
20116cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
20122#include <sys/types.h>
20123#include <sys/param.h>
20124int
20125main ()
20126{
20127
20128#if BYTE_ORDER != BIG_ENDIAN
20129 not big endian
20130#endif
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135rm -f conftest.$ac_objext
20136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20137 (eval $ac_compile) 2>conftest.er1
a848cd7e 20138 ac_status=$?
ac1cb8d3
VS
20139 grep -v '^ *+' conftest.er1 >conftest.err
20140 rm -f conftest.er1
20141 cat conftest.err >&5
a848cd7e
SC
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } &&
9dd0f6c2 20144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 ac_cv_c_bigendian=yes
20157else
20158 echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161ac_cv_c_bigendian=no
20162fi
ac1cb8d3 20163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20164else
20165 echo "$as_me: failed program was:" >&5
20166sed 's/^/| /' conftest.$ac_ext >&5
20167
20168fi
ac1cb8d3 20169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20170if test $ac_cv_c_bigendian = unknown; then
20171if test "$cross_compiling" = yes; then
20172 ac_cv_c_bigendian=unknown
20173else
20174 cat >conftest.$ac_ext <<_ACEOF
20175/* confdefs.h. */
20176_ACEOF
20177cat confdefs.h >>conftest.$ac_ext
20178cat >>conftest.$ac_ext <<_ACEOF
20179/* end confdefs.h. */
20180main () {
20181 /* Are we little or big endian? From Harbison&Steele. */
20182 union
20183 {
20184 long l;
20185 char c[sizeof (long)];
20186 } u;
20187 u.l = 1;
20188 exit (u.c[sizeof (long) - 1] == 1);
20189}
20190_ACEOF
20191rm -f conftest$ac_exeext
20192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20193 (eval $ac_link) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_cv_c_bigendian=no
20203else
20204 echo "$as_me: program exited with status $ac_status" >&5
20205echo "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
20208( exit $ac_status )
20209ac_cv_c_bigendian=yes
20210fi
ac1cb8d3 20211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20212fi
20213fi
20214fi
20215echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20216echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20217if test $ac_cv_c_bigendian = unknown; then
20218 { 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
20219echo "$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;}
20220fi
20221if test $ac_cv_c_bigendian = yes; then
20222 cat >>confdefs.h <<\_ACEOF
20223#define WORDS_BIGENDIAN 1
20224_ACEOF
20225
20226fi
20227
20228
20229ac_ext=cc
20230ac_cpp='$CXXCPP $CPPFLAGS'
20231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20234echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20235echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20236if test -z "$CXXCPP"; then
20237 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20239else
20240 # Double quotes because CXXCPP needs to be expanded
20241 for CXXCPP in "$CXX -E" "/lib/cpp"
20242 do
20243 ac_preproc_ok=false
20244for ac_cxx_preproc_warn_flag in '' yes
20245do
20246 # Use a header file that comes with gcc, so configuring glibc
20247 # with a fresh cross-compiler works.
20248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249 # <limits.h> exists even on freestanding compilers.
20250 # On the NeXT, cc -E runs the code through the compiler's parser,
20251 # not just through cpp. "Syntax error" is here to catch this case.
20252 cat >conftest.$ac_ext <<_ACEOF
20253/* confdefs.h. */
20254_ACEOF
20255cat confdefs.h >>conftest.$ac_ext
20256cat >>conftest.$ac_ext <<_ACEOF
20257/* end confdefs.h. */
20258#ifdef __STDC__
20259# include <limits.h>
20260#else
20261# include <assert.h>
20262#endif
ac1cb8d3 20263 Syntax error
a848cd7e
SC
20264_ACEOF
20265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } >/dev/null; then
20273 if test -s conftest.err; then
20274 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20276 else
20277 ac_cpp_err=
20278 fi
20279else
20280 ac_cpp_err=yes
20281fi
20282if test -z "$ac_cpp_err"; then
20283 :
20284else
20285 echo "$as_me: failed program was:" >&5
20286sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 # Broken: fails on valid input.
20289continue
20290fi
20291rm -f conftest.err conftest.$ac_ext
20292
20293 # OK, works on sane cases. Now check whether non-existent headers
20294 # can be detected and how.
20295 cat >conftest.$ac_ext <<_ACEOF
20296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
20301#include <ac_nonexistent.h>
20302_ACEOF
20303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20305 ac_status=$?
20306 grep -v '^ *+' conftest.er1 >conftest.err
20307 rm -f conftest.er1
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } >/dev/null; then
20311 if test -s conftest.err; then
20312 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20313 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20314 else
20315 ac_cpp_err=
20316 fi
20317else
20318 ac_cpp_err=yes
20319fi
20320if test -z "$ac_cpp_err"; then
20321 # Broken: success on invalid input.
20322continue
20323else
20324 echo "$as_me: failed program was:" >&5
20325sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 # Passes both tests.
20328ac_preproc_ok=:
20329break
20330fi
20331rm -f conftest.err conftest.$ac_ext
20332
20333done
20334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20335rm -f conftest.err conftest.$ac_ext
20336if $ac_preproc_ok; then
20337 break
20338fi
20339
20340 done
20341 ac_cv_prog_CXXCPP=$CXXCPP
20342
20343fi
20344 CXXCPP=$ac_cv_prog_CXXCPP
20345else
20346 ac_cv_prog_CXXCPP=$CXXCPP
20347fi
20348echo "$as_me:$LINENO: result: $CXXCPP" >&5
20349echo "${ECHO_T}$CXXCPP" >&6
20350ac_preproc_ok=false
20351for ac_cxx_preproc_warn_flag in '' yes
20352do
20353 # Use a header file that comes with gcc, so configuring glibc
20354 # with a fresh cross-compiler works.
20355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20356 # <limits.h> exists even on freestanding compilers.
20357 # On the NeXT, cc -E runs the code through the compiler's parser,
20358 # not just through cpp. "Syntax error" is here to catch this case.
20359 cat >conftest.$ac_ext <<_ACEOF
20360/* confdefs.h. */
20361_ACEOF
20362cat confdefs.h >>conftest.$ac_ext
20363cat >>conftest.$ac_ext <<_ACEOF
20364/* end confdefs.h. */
20365#ifdef __STDC__
20366# include <limits.h>
20367#else
20368# include <assert.h>
20369#endif
ac1cb8d3 20370 Syntax error
a848cd7e
SC
20371_ACEOF
20372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } >/dev/null; then
20380 if test -s conftest.err; then
20381 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20383 else
20384 ac_cpp_err=
20385 fi
20386else
20387 ac_cpp_err=yes
20388fi
20389if test -z "$ac_cpp_err"; then
20390 :
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 # Broken: fails on valid input.
20396continue
20397fi
20398rm -f conftest.err conftest.$ac_ext
20399
20400 # OK, works on sane cases. Now check whether non-existent headers
20401 # can be detected and how.
20402 cat >conftest.$ac_ext <<_ACEOF
20403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
20408#include <ac_nonexistent.h>
20409_ACEOF
20410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } >/dev/null; then
20418 if test -s conftest.err; then
20419 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20420 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20421 else
20422 ac_cpp_err=
20423 fi
20424else
20425 ac_cpp_err=yes
20426fi
20427if test -z "$ac_cpp_err"; then
20428 # Broken: success on invalid input.
20429continue
20430else
20431 echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 # Passes both tests.
20435ac_preproc_ok=:
20436break
20437fi
20438rm -f conftest.err conftest.$ac_ext
20439
20440done
20441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20442rm -f conftest.err conftest.$ac_ext
20443if $ac_preproc_ok; then
20444 :
20445else
20446 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20447See \`config.log' for more details." >&5
20448echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20449See \`config.log' for more details." >&2;}
20450 { (exit 1); exit 1; }; }
20451fi
20452
20453ac_ext=cc
20454ac_cpp='$CXXCPP $CPPFLAGS'
20455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20458
20459
20460
20461
20462
20463 ac_ext=cc
20464ac_cpp='$CXXCPP $CPPFLAGS'
20465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20468
20469
20470
20471for ac_header in iostream
20472do
20473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20474if eval "test \"\${$as_ac_Header+set}\" = set"; then
20475 echo "$as_me:$LINENO: checking for $ac_header" >&5
20476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20477if eval "test \"\${$as_ac_Header+set}\" = set"; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20479fi
20480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20482else
20483 # Is the header compilable?
20484echo "$as_me:$LINENO: checking $ac_header usability" >&5
20485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20486cat >conftest.$ac_ext <<_ACEOF
20487/* confdefs.h. */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
20491/* end confdefs.h. */
20492$ac_includes_default
20493#include <$ac_header>
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20497 (eval $ac_compile) 2>conftest.er1
a848cd7e 20498 ac_status=$?
ac1cb8d3
VS
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
a848cd7e
SC
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
9dd0f6c2 20504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_header_compiler=yes
20517else
20518 echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521ac_header_compiler=no
20522fi
ac1cb8d3 20523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20525echo "${ECHO_T}$ac_header_compiler" >&6
20526
20527# Is the header present?
20528echo "$as_me:$LINENO: checking $ac_header presence" >&5
20529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20530cat >conftest.$ac_ext <<_ACEOF
20531/* confdefs.h. */
20532_ACEOF
20533cat confdefs.h >>conftest.$ac_ext
20534cat >>conftest.$ac_ext <<_ACEOF
20535/* end confdefs.h. */
20536#include <$ac_header>
20537_ACEOF
20538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } >/dev/null; then
20546 if test -s conftest.err; then
20547 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20548 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20549 else
20550 ac_cpp_err=
20551 fi
20552else
20553 ac_cpp_err=yes
20554fi
20555if test -z "$ac_cpp_err"; then
20556 ac_header_preproc=yes
20557else
20558 echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 ac_header_preproc=no
20562fi
20563rm -f conftest.err conftest.$ac_ext
20564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20565echo "${ECHO_T}$ac_header_preproc" >&6
20566
20567# So? What about this header?
ac1cb8d3
VS
20568case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20569 yes:no: )
a848cd7e
SC
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20573echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20574 ac_header_preproc=yes
a848cd7e 20575 ;;
ac1cb8d3 20576 no:yes:* )
a848cd7e
SC
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20582echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20584echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20588echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20589 (
20590 cat <<\_ASBOX
ac1cb8d3
VS
20591## ----------------------------------------- ##
20592## Report this to wx-dev@lists.wxwidgets.org ##
20593## ----------------------------------------- ##
a848cd7e
SC
20594_ASBOX
20595 ) |
20596 sed "s/^/$as_me: WARNING: /" >&2
20597 ;;
20598esac
20599echo "$as_me:$LINENO: checking for $ac_header" >&5
20600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20601if eval "test \"\${$as_ac_Header+set}\" = set"; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20603else
ac1cb8d3 20604 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20605fi
20606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20608
20609fi
20610if test `eval echo '${'$as_ac_Header'}'` = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20613_ACEOF
20614
20615fi
20616
20617done
20618
20619
20620 if test "$ac_cv_header_iostream" = "yes" ; then
20621 :
20622 else
20623 cat >>confdefs.h <<\_ACEOF
20624#define wxUSE_IOSTREAMH 1
20625_ACEOF
20626
20627 fi
20628
20629 ac_ext=c
20630ac_cpp='$CPP $CPPFLAGS'
20631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634
20635
20636
20637
20638 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20639echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20640if test "${wx_cv_cpp_bool+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20642else
20643
20644
20645
20646 ac_ext=cc
20647ac_cpp='$CXXCPP $CPPFLAGS'
20648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20651
20652
20653 cat >conftest.$ac_ext <<_ACEOF
20654/* confdefs.h. */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h. */
20659
20660
20661int
20662main ()
20663{
20664
20665 bool b = true;
20666
20667 return 0;
20668
20669 ;
20670 return 0;
20671}
20672_ACEOF
20673rm -f conftest.$ac_objext
20674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20675 (eval $ac_compile) 2>conftest.er1
a848cd7e 20676 ac_status=$?
ac1cb8d3
VS
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
a848cd7e
SC
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } &&
9dd0f6c2 20682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684 (eval $ac_try) 2>&5
20685 ac_status=$?
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; } &&
20688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20691 ac_status=$?
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; }; then
20694
20695 wx_cv_cpp_bool=yes
20696
20697else
20698 echo "$as_me: failed program was:" >&5
20699sed 's/^/| /' conftest.$ac_ext >&5
20700
20701
20702 wx_cv_cpp_bool=no
20703
20704
20705fi
ac1cb8d3 20706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20707
20708 ac_ext=c
20709ac_cpp='$CPP $CPPFLAGS'
20710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712ac_compiler_gnu=$ac_cv_c_compiler_gnu
20713
20714
20715fi
20716echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20717echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20718
20719 if test "$wx_cv_cpp_bool" = "yes"; then
20720 cat >>confdefs.h <<\_ACEOF
20721#define HAVE_BOOL 1
20722_ACEOF
20723
20724 fi
20725
20726
20727
20728 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20729echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20730if test "${wx_cv_explicit+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20732else
20733
20734
20735
20736 ac_ext=cc
20737ac_cpp='$CXXCPP $CPPFLAGS'
20738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
20742
20743 cat >conftest.$ac_ext <<_ACEOF
20744/* confdefs.h. */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h. */
20749
20750 class Foo { public: explicit Foo(int) {} };
20751
20752int
20753main ()
20754{
20755
20756 return 0;
20757
20758 ;
20759 return 0;
20760}
20761_ACEOF
20762rm -f conftest.$ac_objext
20763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20764 (eval $ac_compile) 2>conftest.er1
a848cd7e 20765 ac_status=$?
ac1cb8d3
VS
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
a848cd7e
SC
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
9dd0f6c2 20771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783
20784 cat >conftest.$ac_ext <<_ACEOF
20785/* confdefs.h. */
20786_ACEOF
20787cat confdefs.h >>conftest.$ac_ext
20788cat >>conftest.$ac_ext <<_ACEOF
20789/* end confdefs.h. */
20790
20791 class Foo { public: explicit Foo(int) {} };
20792 static void TakeFoo(const Foo& foo) { }
20793
20794int
20795main ()
20796{
20797
20798 TakeFoo(17);
20799 return 0;
20800
20801 ;
20802 return 0;
20803}
20804_ACEOF
20805rm -f conftest.$ac_objext
20806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20807 (eval $ac_compile) 2>conftest.er1
a848cd7e 20808 ac_status=$?
ac1cb8d3
VS
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
a848cd7e
SC
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
9dd0f6c2 20814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 wx_cv_explicit=no
20827else
20828 echo "$as_me: failed program was:" >&5
20829sed 's/^/| /' conftest.$ac_ext >&5
20830
20831wx_cv_explicit=yes
20832
20833fi
ac1cb8d3 20834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20835
20836else
20837 echo "$as_me: failed program was:" >&5
20838sed 's/^/| /' conftest.$ac_ext >&5
20839
20840wx_cv_explicit=no
20841
20842fi
ac1cb8d3 20843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20844
20845 ac_ext=c
20846ac_cpp='$CPP $CPPFLAGS'
20847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849ac_compiler_gnu=$ac_cv_c_compiler_gnu
20850
20851
20852fi
20853echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20854echo "${ECHO_T}$wx_cv_explicit" >&6
20855
20856 if test "$wx_cv_explicit" = "yes"; then
20857 cat >>confdefs.h <<\_ACEOF
20858#define HAVE_EXPLICIT 1
20859_ACEOF
20860
20861 fi
20862
20863
20864echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20865echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20866if test "${ac_cv_cxx_const_cast+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868else
20869
20870
20871 ac_ext=cc
20872ac_cpp='$CXXCPP $CPPFLAGS'
20873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20876
20877 cat >conftest.$ac_ext <<_ACEOF
20878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
20883
20884int
20885main ()
20886{
20887int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20888 ;
20889 return 0;
20890}
20891_ACEOF
20892rm -f conftest.$ac_objext
20893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20894 (eval $ac_compile) 2>conftest.er1
a848cd7e 20895 ac_status=$?
ac1cb8d3
VS
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
a848cd7e
SC
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
9dd0f6c2 20901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 ac_cv_cxx_const_cast=yes
20914else
20915 echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918ac_cv_cxx_const_cast=no
20919fi
ac1cb8d3 20920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20921 ac_ext=c
20922ac_cpp='$CPP $CPPFLAGS'
20923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925ac_compiler_gnu=$ac_cv_c_compiler_gnu
20926
20927
20928fi
20929echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20930echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20931if test "$ac_cv_cxx_const_cast" = yes; then
20932
20933cat >>confdefs.h <<\_ACEOF
20934#define HAVE_CONST_CAST
20935_ACEOF
20936
20937fi
20938
7714864e
RL
20939echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20940echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20941if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943else
20944
20945
20946 ac_ext=cc
20947ac_cpp='$CXXCPP $CPPFLAGS'
20948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20951
20952 cat >conftest.$ac_ext <<_ACEOF
20953/* confdefs.h. */
20954_ACEOF
20955cat confdefs.h >>conftest.$ac_ext
20956cat >>conftest.$ac_ext <<_ACEOF
20957/* end confdefs.h. */
20958#include <typeinfo>
20959class Base { public : Base () {} virtual void f () = 0;};
20960class Derived : public Base { public : Derived () {} virtual void f () {} };
20961class Unrelated { public : Unrelated () {} };
20962int g (Unrelated&) { return 0; }
20963int
20964main ()
20965{
20966
20967Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20968 ;
20969 return 0;
20970}
20971_ACEOF
20972rm -f conftest.$ac_objext
20973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } &&
9dd0f6c2 20981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 ac_cv_cxx_reinterpret_cast=yes
20994else
20995 echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
20998ac_cv_cxx_reinterpret_cast=no
20999fi
21000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21001 ac_ext=c
21002ac_cpp='$CPP $CPPFLAGS'
21003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21005ac_compiler_gnu=$ac_cv_c_compiler_gnu
21006
21007
21008fi
21009echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21010echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21011if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21012
21013cat >>confdefs.h <<\_ACEOF
21014#define HAVE_REINTERPRET_CAST
21015_ACEOF
21016
21017fi
21018
a848cd7e
SC
21019echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21020echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21021if test "${ac_cv_cxx_static_cast+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21023else
21024
21025
21026 ac_ext=cc
21027ac_cpp='$CXXCPP $CPPFLAGS'
21028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21031
21032 cat >conftest.$ac_ext <<_ACEOF
21033/* confdefs.h. */
21034_ACEOF
21035cat confdefs.h >>conftest.$ac_ext
21036cat >>conftest.$ac_ext <<_ACEOF
21037/* end confdefs.h. */
21038#include <typeinfo>
21039class Base { public : Base () {} virtual void f () = 0; };
21040class Derived : public Base { public : Derived () {} virtual void f () {} };
21041int g (Derived&) { return 0; }
21042int
21043main ()
21044{
21045
21046Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21047 ;
21048 return 0;
21049}
21050_ACEOF
21051rm -f conftest.$ac_objext
21052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21053 (eval $ac_compile) 2>conftest.er1
a848cd7e 21054 ac_status=$?
ac1cb8d3
VS
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
a848cd7e
SC
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
9dd0f6c2 21060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; } &&
21066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; }; then
21072 ac_cv_cxx_static_cast=yes
21073else
21074 echo "$as_me: failed program was:" >&5
21075sed 's/^/| /' conftest.$ac_ext >&5
21076
21077ac_cv_cxx_static_cast=no
21078fi
ac1cb8d3 21079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21080 ac_ext=c
21081ac_cpp='$CPP $CPPFLAGS'
21082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084ac_compiler_gnu=$ac_cv_c_compiler_gnu
21085
21086
21087fi
21088echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21089echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21090if test "$ac_cv_cxx_static_cast" = yes; then
21091
21092cat >>confdefs.h <<\_ACEOF
21093#define HAVE_STATIC_CAST
21094_ACEOF
21095
21096fi
21097
21098
21099if test "$wxUSE_STL" = "yes"; then
21100 ac_ext=cc
21101ac_cpp='$CXXCPP $CPPFLAGS'
21102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21105
21106
21107 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21108echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21109 cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
21114/* end confdefs.h. */
21115#include <string>
21116 #include <functional>
21117 #include <algorithm>
21118 #include <vector>
21119 #include <list>
21120int
21121main ()
21122{
21123std::vector<int> moo;
21124 std::list<int> foo;
21125 std::vector<int>::iterator it =
21126 std::find_if(moo.begin(), moo.end(),
21127 std::bind2nd(std::less<int>(), 3));
21128 ;
21129 return 0;
21130}
21131_ACEOF
21132rm -f conftest.$ac_objext
21133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21134 (eval $ac_compile) 2>conftest.er1
a848cd7e 21135 ac_status=$?
ac1cb8d3
VS
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
a848cd7e
SC
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
9dd0f6c2 21141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 echo "$as_me:$LINENO: result: yes" >&5
21154echo "${ECHO_T}yes" >&6
21155else
21156 echo "$as_me: failed program was:" >&5
21157sed 's/^/| /' conftest.$ac_ext >&5
21158
21159echo "$as_me:$LINENO: result: no" >&5
21160echo "${ECHO_T}no" >&6
21161 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21162echo "$as_me: error: Basic STL functionality missing" >&2;}
21163 { (exit 1); exit 1; }; }
21164fi
ac1cb8d3 21165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21166
21167 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21168echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21169 cat >conftest.$ac_ext <<_ACEOF
21170/* confdefs.h. */
21171_ACEOF
21172cat confdefs.h >>conftest.$ac_ext
21173cat >>conftest.$ac_ext <<_ACEOF
21174/* end confdefs.h. */
21175#include <string>
21176int
21177main ()
21178{
21179std::wstring foo;
21180 ;
21181 return 0;
21182}
21183_ACEOF
21184rm -f conftest.$ac_objext
21185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21186 (eval $ac_compile) 2>conftest.er1
a848cd7e 21187 ac_status=$?
ac1cb8d3
VS
21188 grep -v '^ *+' conftest.er1 >conftest.err
21189 rm -f conftest.er1
21190 cat conftest.err >&5
a848cd7e
SC
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } &&
9dd0f6c2 21193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; } &&
21199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21205 echo "$as_me:$LINENO: result: yes" >&5
21206echo "${ECHO_T}yes" >&6
21207 cat >>confdefs.h <<\_ACEOF
21208#define HAVE_STD_WSTRING 1
21209_ACEOF
21210
21211else
21212 echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215echo "$as_me:$LINENO: result: no" >&5
21216echo "${ECHO_T}no" >&6
21217fi
ac1cb8d3 21218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21219
21220 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21221echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21222 cat >conftest.$ac_ext <<_ACEOF
21223/* confdefs.h. */
21224_ACEOF
21225cat confdefs.h >>conftest.$ac_ext
21226cat >>conftest.$ac_ext <<_ACEOF
21227/* end confdefs.h. */
21228#include <string>
21229int
21230main ()
21231{
21232std::string foo, bar;
21233 foo.compare(bar);
21234 foo.compare(1, 1, bar);
21235 foo.compare(1, 1, bar, 1, 1);
21236 foo.compare("");
21237 foo.compare(1, 1, "");
21238 foo.compare(1, 1, "", 2);
21239 ;
21240 return 0;
21241}
21242_ACEOF
21243rm -f conftest.$ac_objext
21244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21245 (eval $ac_compile) 2>conftest.er1
a848cd7e 21246 ac_status=$?
ac1cb8d3
VS
21247 grep -v '^ *+' conftest.er1 >conftest.err
21248 rm -f conftest.er1
21249 cat conftest.err >&5
a848cd7e
SC
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
9dd0f6c2 21252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; } &&
21258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21261 ac_status=$?
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 echo "$as_me:$LINENO: result: yes" >&5
21265echo "${ECHO_T}yes" >&6
21266 cat >>confdefs.h <<\_ACEOF
21267#define HAVE_STD_STRING_COMPARE 1
21268_ACEOF
21269
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274echo "$as_me:$LINENO: result: no" >&5
21275echo "${ECHO_T}no" >&6
21276fi
ac1cb8d3 21277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21278
21279 if test "${ac_cv_header_hash_map+set}" = set; then
21280 echo "$as_me:$LINENO: checking for hash_map" >&5
21281echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21282if test "${ac_cv_header_hash_map+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284fi
21285echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21286echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21287else
21288 # Is the header compilable?
21289echo "$as_me:$LINENO: checking hash_map usability" >&5
21290echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21291cat >conftest.$ac_ext <<_ACEOF
21292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h. */
21297$ac_includes_default
21298#include <hash_map>
21299_ACEOF
21300rm -f conftest.$ac_objext
21301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21302 (eval $ac_compile) 2>conftest.er1
bdcade0a 21303 ac_status=$?
ac1cb8d3
VS
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
bdcade0a
MB
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
9dd0f6c2 21309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_header_compiler=yes
21322else
21323 echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326ac_header_compiler=no
21327fi
ac1cb8d3 21328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21330echo "${ECHO_T}$ac_header_compiler" >&6
21331
21332# Is the header present?
21333echo "$as_me:$LINENO: checking hash_map presence" >&5
21334echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21335cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
21341#include <hash_map>
21342_ACEOF
21343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } >/dev/null; then
21351 if test -s conftest.err; then
21352 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21353 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21354 else
21355 ac_cpp_err=
21356 fi
21357else
21358 ac_cpp_err=yes
21359fi
21360if test -z "$ac_cpp_err"; then
21361 ac_header_preproc=yes
21362else
21363 echo "$as_me: failed program was:" >&5
21364sed 's/^/| /' conftest.$ac_ext >&5
21365
21366 ac_header_preproc=no
21367fi
21368rm -f conftest.err conftest.$ac_ext
21369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370echo "${ECHO_T}$ac_header_preproc" >&6
21371
21372# So? What about this header?
ac1cb8d3
VS
21373case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21374 yes:no: )
bdcade0a
MB
21375 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21376echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21377 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21378echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21379 ac_header_preproc=yes
bdcade0a 21380 ;;
ac1cb8d3 21381 no:yes:* )
bdcade0a
MB
21382 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21383echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21384 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21385echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21387echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21389echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21390 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21391echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21392 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21393echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21394 (
21395 cat <<\_ASBOX
ac1cb8d3
VS
21396## ----------------------------------------- ##
21397## Report this to wx-dev@lists.wxwidgets.org ##
21398## ----------------------------------------- ##
bdcade0a
MB
21399_ASBOX
21400 ) |
21401 sed "s/^/$as_me: WARNING: /" >&2
21402 ;;
21403esac
21404echo "$as_me:$LINENO: checking for hash_map" >&5
21405echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21406if test "${ac_cv_header_hash_map+set}" = set; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21408else
21409 ac_cv_header_hash_map=$ac_header_preproc
21410fi
21411echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21412echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21413
21414fi
21415if test $ac_cv_header_hash_map = yes; then
21416 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21417echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21418 cat >conftest.$ac_ext <<_ACEOF
21419/* confdefs.h. */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h. */
21424#include <hash_map>
21425 #include <hash_set>
21426int
21427main ()
21428{
21429std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21430 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21431 ;
21432 return 0;
21433}
21434_ACEOF
21435rm -f conftest.$ac_objext
21436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21437 (eval $ac_compile) 2>conftest.er1
bdcade0a 21438 ac_status=$?
ac1cb8d3
VS
21439 grep -v '^ *+' conftest.er1 >conftest.err
21440 rm -f conftest.er1
21441 cat conftest.err >&5
bdcade0a
MB
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } &&
9dd0f6c2 21444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; } &&
21450 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 echo "$as_me:$LINENO: result: yes" >&5
21457echo "${ECHO_T}yes" >&6
21458 cat >>confdefs.h <<\_ACEOF
21459#define HAVE_HASH_MAP 1
21460_ACEOF
21461
21462 cat >>confdefs.h <<\_ACEOF
21463#define HAVE_STD_HASH_MAP 1
21464_ACEOF
21465
21466else
21467 echo "$as_me: failed program was:" >&5
21468sed 's/^/| /' conftest.$ac_ext >&5
21469
21470echo "$as_me:$LINENO: result: no" >&5
21471echo "${ECHO_T}no" >&6
21472fi
ac1cb8d3 21473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21474
21475fi
21476
21477
21478
21479 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21480 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21481echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21482if test "${ac_cv_header_ext_hash_map+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484fi
21485echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21486echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21487else
21488 # Is the header compilable?
21489echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21490echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21491cat >conftest.$ac_ext <<_ACEOF
21492/* confdefs.h. */
21493_ACEOF
21494cat confdefs.h >>conftest.$ac_ext
21495cat >>conftest.$ac_ext <<_ACEOF
21496/* end confdefs.h. */
21497$ac_includes_default
21498#include <ext/hash_map>
21499_ACEOF
21500rm -f conftest.$ac_objext
21501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21502 (eval $ac_compile) 2>conftest.er1
bdcade0a 21503 ac_status=$?
ac1cb8d3
VS
21504 grep -v '^ *+' conftest.er1 >conftest.err
21505 rm -f conftest.er1
21506 cat conftest.err >&5
bdcade0a
MB
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } &&
9dd0f6c2 21509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21512 ac_status=$?
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517 (eval $ac_try) 2>&5
21518 ac_status=$?
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); }; }; then
21521 ac_header_compiler=yes
21522else
21523 echo "$as_me: failed program was:" >&5
21524sed 's/^/| /' conftest.$ac_ext >&5
21525
21526ac_header_compiler=no
21527fi
ac1cb8d3 21528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21530echo "${ECHO_T}$ac_header_compiler" >&6
21531
21532# Is the header present?
21533echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21534echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21535cat >conftest.$ac_ext <<_ACEOF
21536/* confdefs.h. */
21537_ACEOF
21538cat confdefs.h >>conftest.$ac_ext
21539cat >>conftest.$ac_ext <<_ACEOF
21540/* end confdefs.h. */
21541#include <ext/hash_map>
21542_ACEOF
21543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } >/dev/null; then
21551 if test -s conftest.err; then
21552 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21554 else
21555 ac_cpp_err=
21556 fi
21557else
21558 ac_cpp_err=yes
21559fi
21560if test -z "$ac_cpp_err"; then
21561 ac_header_preproc=yes
21562else
21563 echo "$as_me: failed program was:" >&5
21564sed 's/^/| /' conftest.$ac_ext >&5
21565
21566 ac_header_preproc=no
21567fi
21568rm -f conftest.err conftest.$ac_ext
21569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21570echo "${ECHO_T}$ac_header_preproc" >&6
21571
21572# So? What about this header?
ac1cb8d3
VS
21573case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21574 yes:no: )
bdcade0a
MB
21575 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21576echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21577 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21578echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21579 ac_header_preproc=yes
bdcade0a 21580 ;;
ac1cb8d3 21581 no:yes:* )
bdcade0a
MB
21582 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21583echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21584 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21585echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21587echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21589echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21590 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21591echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21592 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21593echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21594 (
21595 cat <<\_ASBOX
ac1cb8d3
VS
21596## ----------------------------------------- ##
21597## Report this to wx-dev@lists.wxwidgets.org ##
21598## ----------------------------------------- ##
bdcade0a
MB
21599_ASBOX
21600 ) |
21601 sed "s/^/$as_me: WARNING: /" >&2
21602 ;;
21603esac
21604echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21605echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21606if test "${ac_cv_header_ext_hash_map+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608else
21609 ac_cv_header_ext_hash_map=$ac_header_preproc
21610fi
21611echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21612echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21613
21614fi
21615if test $ac_cv_header_ext_hash_map = yes; then
21616 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21617echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
21624#include <ext/hash_map>
21625 #include <ext/hash_set>
21626int
21627main ()
21628{
21629__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21630 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21631 ;
21632 return 0;
21633}
21634_ACEOF
21635rm -f conftest.$ac_objext
21636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21637 (eval $ac_compile) 2>conftest.er1
bdcade0a 21638 ac_status=$?
ac1cb8d3
VS
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
bdcade0a
MB
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } &&
9dd0f6c2 21644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; } &&
21650 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 echo "$as_me:$LINENO: result: yes" >&5
21657echo "${ECHO_T}yes" >&6
21658 cat >>confdefs.h <<\_ACEOF
21659#define HAVE_EXT_HASH_MAP 1
21660_ACEOF
21661
21662 cat >>confdefs.h <<\_ACEOF
21663#define HAVE_GNU_CXX_HASH_MAP 1
21664_ACEOF
21665
21666else
21667 echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670echo "$as_me:$LINENO: result: no" >&5
21671echo "${ECHO_T}no" >&6
21672fi
ac1cb8d3 21673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21674
21675fi
21676
21677
a848cd7e
SC
21678
21679 ac_ext=c
21680ac_cpp='$CPP $CPPFLAGS'
21681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21683ac_compiler_gnu=$ac_cv_c_compiler_gnu
21684
21685fi
21686
21687
21688SEARCH_INCLUDE="\
21689 /usr/local/include \
21690 \
21691 /usr/Motif-2.1/include \
21692 /usr/Motif-1.2/include \
21693 /usr/include/Motif1.2 \
21694 /opt/xpm/include/X11 \
21695 /opt/GBxpm/include/ \
21696 /opt/GBxpm/X11/include/ \
21697 \
21698 /usr/dt/include \
21699 /usr/openwin/include \
21700 \
21701 /usr/include/Xm \
21702 \
21703 /usr/X11R6/include \
21704 /usr/X11R6.4/include \
21705 /usr/X11R5/include \
21706 /usr/X11R4/include \
21707 \
21708 /usr/include/X11R6 \
21709 /usr/include/X11R5 \
21710 /usr/include/X11R4 \
21711 \
21712 /usr/local/X11R6/include \
21713 /usr/local/X11R5/include \
21714 /usr/local/X11R4/include \
21715 \
21716 /usr/local/include/X11R6 \
21717 /usr/local/include/X11R5 \
21718 /usr/local/include/X11R4 \
21719 \
21720 /usr/X11/include \
21721 /usr/include/X11 \
21722 /usr/local/X11/include \
21723 /usr/local/include/X11 \
21724 \
21725 /usr/X386/include \
21726 /usr/x386/include \
21727 /usr/XFree86/include/X11 \
21728 \
21729 X:/XFree86/include \
21730 X:/XFree86/include/X11 \
21731 \
21732 /usr/include/gtk \
21733 /usr/local/include/gtk \
21734 /usr/include/glib \
21735 /usr/local/include/glib \
21736 \
21737 /usr/include/qt \
21738 /usr/local/include/qt \
21739 \
21740 /usr/local/arm/3.3.2/include \
21741 \
21742 /usr/include/windows \
21743 /usr/include/wine \
21744 /usr/local/include/wine \
21745 \
21746 /usr/unsupported/include \
21747 /usr/athena/include \
21748 /usr/local/x11r5/include \
21749 /usr/lpp/Xamples/include \
21750 \
21751 /usr/openwin/share/include"
21752
07158944 21753SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21754
21755
21756cat >confcache <<\_ACEOF
21757# This file is a shell script that caches the results of configure
21758# tests run on this system so they can be shared between configure
21759# scripts and configure runs, see configure's option --config-cache.
21760# It is not useful on other systems. If it contains results you don't
21761# want to keep, you may remove or edit it.
21762#
21763# config.status only pays attention to the cache file if you give it
21764# the --recheck option to rerun configure.
21765#
21766# `ac_cv_env_foo' variables (set or unset) will be overridden when
21767# loading this file, other *unset* `ac_cv_foo' will be assigned the
21768# following values.
21769
21770_ACEOF
21771
21772# The following way of writing the cache mishandles newlines in values,
21773# but we know of no workaround that is simple, portable, and efficient.
21774# So, don't put newlines in cache variables' values.
21775# Ultrix sh set writes to stderr and can't be redirected directly,
21776# and sets the high bit in the cache file unless we assign to the vars.
21777{
21778 (set) 2>&1 |
21779 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21780 *ac_space=\ *)
21781 # `set' does not quote correctly, so add quotes (double-quote
21782 # substitution turns \\\\ into \\, and sed turns \\ into \).
21783 sed -n \
ac1cb8d3
VS
21784 "s/'/'\\\\''/g;
21785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21786 ;;
21787 *)
21788 # `set' quotes correctly as required by POSIX, so do not add quotes.
21789 sed -n \
ac1cb8d3 21790 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21791 ;;
21792 esac;
21793} |
21794 sed '
21795 t clear
21796 : clear
21797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21798 t end
21799 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21800 : end' >>confcache
21801if diff $cache_file confcache >/dev/null 2>&1; then :; else
21802 if test -w $cache_file; then
21803 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21804 cat confcache >$cache_file
21805 else
21806 echo "not updating unwritable cache $cache_file"
21807 fi
21808fi
21809rm -f confcache
21810
21811if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21812 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21813echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21814if test "${wx_cv_lib_glibc21+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816else
21817
21818 cat >conftest.$ac_ext <<_ACEOF
21819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h. */
21824#include <features.h>
21825int
21826main ()
21827{
21828
21829 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21830 #error not glibc2.1
21831 #endif
21832
21833 ;
21834 return 0;
21835}
21836_ACEOF
21837rm -f conftest.$ac_objext
21838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21839 (eval $ac_compile) 2>conftest.er1
a848cd7e 21840 ac_status=$?
ac1cb8d3
VS
21841 grep -v '^ *+' conftest.er1 >conftest.err
21842 rm -f conftest.er1
21843 cat conftest.err >&5
a848cd7e
SC
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } &&
9dd0f6c2 21846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21848 (eval $ac_try) 2>&5
21849 ac_status=$?
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); }; } &&
21852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21854 (eval $ac_try) 2>&5
21855 ac_status=$?
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; }; then
21858
21859 wx_cv_lib_glibc21=yes
21860
21861else
21862 echo "$as_me: failed program was:" >&5
21863sed 's/^/| /' conftest.$ac_ext >&5
21864
21865
21866 wx_cv_lib_glibc21=no
21867
21868
21869fi
ac1cb8d3 21870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21871
21872fi
21873echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21874echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21875 if test "$wx_cv_lib_glibc21" = "yes"; then
21876 cat >>confdefs.h <<\_ACEOF
21877#define wxHAVE_GLIBC2 1
21878_ACEOF
21879
21880 fi
21881fi
21882
21883if test "x$wx_cv_lib_glibc21" = "xyes"; then
21884 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21885 cat >>confdefs.h <<\_ACEOF
21886#define _GNU_SOURCE 1
21887_ACEOF
21888
21889 fi
21890fi
21891
21892
21893
21894if test "$wxUSE_REGEX" != "no"; then
21895 cat >>confdefs.h <<\_ACEOF
21896#define wxUSE_REGEX 1
21897_ACEOF
21898
21899
21900 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21901 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21902echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21903 wxUSE_REGEX=builtin
21904 fi
21905
21906 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21907 if test "${ac_cv_header_regex_h+set}" = set; then
21908 echo "$as_me:$LINENO: checking for regex.h" >&5
21909echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21910if test "${ac_cv_header_regex_h+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21912fi
21913echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21914echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21915else
21916 # Is the header compilable?
21917echo "$as_me:$LINENO: checking regex.h usability" >&5
21918echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21919cat >conftest.$ac_ext <<_ACEOF
21920/* confdefs.h. */
21921_ACEOF
21922cat confdefs.h >>conftest.$ac_ext
21923cat >>conftest.$ac_ext <<_ACEOF
21924/* end confdefs.h. */
21925$ac_includes_default
21926#include <regex.h>
21927_ACEOF
21928rm -f conftest.$ac_objext
21929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21930 (eval $ac_compile) 2>conftest.er1
a848cd7e 21931 ac_status=$?
ac1cb8d3
VS
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
a848cd7e
SC
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } &&
9dd0f6c2 21937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_header_compiler=yes
21950else
21951 echo "$as_me: failed program was:" >&5
21952sed 's/^/| /' conftest.$ac_ext >&5
21953
21954ac_header_compiler=no
21955fi
ac1cb8d3 21956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21957echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21958echo "${ECHO_T}$ac_header_compiler" >&6
21959
21960# Is the header present?
21961echo "$as_me:$LINENO: checking regex.h presence" >&5
21962echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21963cat >conftest.$ac_ext <<_ACEOF
21964/* confdefs.h. */
21965_ACEOF
21966cat confdefs.h >>conftest.$ac_ext
21967cat >>conftest.$ac_ext <<_ACEOF
21968/* end confdefs.h. */
21969#include <regex.h>
21970_ACEOF
21971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } >/dev/null; then
21979 if test -s conftest.err; then
21980 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21982 else
21983 ac_cpp_err=
21984 fi
21985else
21986 ac_cpp_err=yes
21987fi
21988if test -z "$ac_cpp_err"; then
21989 ac_header_preproc=yes
21990else
21991 echo "$as_me: failed program was:" >&5
21992sed 's/^/| /' conftest.$ac_ext >&5
21993
21994 ac_header_preproc=no
21995fi
21996rm -f conftest.err conftest.$ac_ext
21997echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21998echo "${ECHO_T}$ac_header_preproc" >&6
21999
22000# So? What about this header?
ac1cb8d3
VS
22001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22002 yes:no: )
a848cd7e
SC
22003 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22004echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22005 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22006echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22007 ac_header_preproc=yes
a848cd7e 22008 ;;
ac1cb8d3 22009 no:yes:* )
a848cd7e
SC
22010 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22011echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22012 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22013echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22014 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22015echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22016 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22017echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22018 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22019echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22020 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22021echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22022 (
22023 cat <<\_ASBOX
ac1cb8d3
VS
22024## ----------------------------------------- ##
22025## Report this to wx-dev@lists.wxwidgets.org ##
22026## ----------------------------------------- ##
a848cd7e
SC
22027_ASBOX
22028 ) |
22029 sed "s/^/$as_me: WARNING: /" >&2
22030 ;;
22031esac
22032echo "$as_me:$LINENO: checking for regex.h" >&5
22033echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22034if test "${ac_cv_header_regex_h+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22036else
22037 ac_cv_header_regex_h=$ac_header_preproc
22038fi
22039echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22040echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22041
22042fi
22043if test $ac_cv_header_regex_h = yes; then
22044
22045for ac_func in regcomp
22046do
22047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22048echo "$as_me:$LINENO: checking for $ac_func" >&5
22049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22050if eval "test \"\${$as_ac_var+set}\" = set"; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052else
22053 cat >conftest.$ac_ext <<_ACEOF
22054/* confdefs.h. */
22055_ACEOF
22056cat confdefs.h >>conftest.$ac_ext
22057cat >>conftest.$ac_ext <<_ACEOF
22058/* end confdefs.h. */
ac1cb8d3
VS
22059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22061#define $ac_func innocuous_$ac_func
22062
a848cd7e
SC
22063/* System header to define __stub macros and hopefully few prototypes,
22064 which can conflict with char $ac_func (); below.
22065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22066 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22067
a848cd7e
SC
22068#ifdef __STDC__
22069# include <limits.h>
22070#else
22071# include <assert.h>
22072#endif
ac1cb8d3
VS
22073
22074#undef $ac_func
22075
a848cd7e
SC
22076/* Override any gcc2 internal prototype to avoid an error. */
22077#ifdef __cplusplus
22078extern "C"
22079{
22080#endif
22081/* We use char because int might match the return type of a gcc2
22082 builtin and then its argument prototype would still apply. */
22083char $ac_func ();
22084/* The GNU C library defines this for functions which it implements
22085 to always fail with ENOSYS. Some functions are actually named
22086 something starting with __ and the normal name is an alias. */
22087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22088choke me
22089#else
22090char (*f) () = $ac_func;
22091#endif
22092#ifdef __cplusplus
22093}
22094#endif
22095
22096int
22097main ()
22098{
22099return f != $ac_func;
22100 ;
22101 return 0;
22102}
22103_ACEOF
22104rm -f conftest.$ac_objext conftest$ac_exeext
22105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22106 (eval $ac_link) 2>conftest.er1
a848cd7e 22107 ac_status=$?
ac1cb8d3
VS
22108 grep -v '^ *+' conftest.er1 >conftest.err
22109 rm -f conftest.er1
22110 cat conftest.err >&5
a848cd7e
SC
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } &&
9dd0f6c2 22113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; } &&
22119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; }; then
22125 eval "$as_ac_var=yes"
22126else
22127 echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130eval "$as_ac_var=no"
22131fi
ac1cb8d3
VS
22132rm -f conftest.err conftest.$ac_objext \
22133 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22134fi
22135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22137if test `eval echo '${'$as_ac_var'}'` = yes; then
22138 cat >>confdefs.h <<_ACEOF
22139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22140_ACEOF
22141
22142fi
22143done
22144
22145fi
22146
22147
22148
22149 if test "x$ac_cv_func_regcomp" != "xyes"; then
22150 if test "$wxUSE_REGEX" = "sys" ; then
22151 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22152echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22153 { (exit 1); exit 1; }; }
22154 else
22155 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22156echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22157 wxUSE_REGEX=builtin
22158 fi
22159 else
22160 wxUSE_REGEX=sys
22161 cat >>confdefs.h <<\_ACEOF
22162#define WX_NO_REGEX_ADVANCED 1
22163_ACEOF
22164
22165 fi
22166 fi
22167fi
22168
22169
22170ZLIB_LINK=
22171if test "$wxUSE_ZLIB" != "no" ; then
22172 cat >>confdefs.h <<\_ACEOF
22173#define wxUSE_ZLIB 1
22174_ACEOF
22175
22176
22177 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22178 if test "$USE_DARWIN" = 1; then
22179 system_zlib_h_ok="yes"
22180 else
22181 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22182echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22183if test "${ac_cv_header_zlib_h+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185else
22186 if test "$cross_compiling" = yes; then
22187 unset ac_cv_header_zlib_h
22188
22189else
22190 cat >conftest.$ac_ext <<_ACEOF
22191/* confdefs.h. */
22192_ACEOF
22193cat confdefs.h >>conftest.$ac_ext
22194cat >>conftest.$ac_ext <<_ACEOF
22195/* end confdefs.h. */
22196
22197 #include <zlib.h>
22198 #include <stdio.h>
22199
22200 int main()
22201 {
22202 FILE *f=fopen("conftestval", "w");
22203 if (!f) exit(1);
22204 fprintf(f, "%s",
22205 ZLIB_VERSION[0] == '1' &&
22206 (ZLIB_VERSION[2] > '1' ||
22207 (ZLIB_VERSION[2] == '1' &&
22208 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22209 exit(0);
22210 }
22211
22212_ACEOF
22213rm -f conftest$ac_exeext
22214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22215 (eval $ac_link) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22224 ac_cv_header_zlib_h=`cat conftestval`
22225else
22226 echo "$as_me: program exited with status $ac_status" >&5
22227echo "$as_me: failed program was:" >&5
22228sed 's/^/| /' conftest.$ac_ext >&5
22229
22230( exit $ac_status )
22231ac_cv_header_zlib_h=no
22232fi
ac1cb8d3 22233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22234fi
22235
22236fi
22237echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22238echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22239 if test "${ac_cv_header_zlib_h+set}" = set; then
22240 echo "$as_me:$LINENO: checking for zlib.h" >&5
22241echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22242if test "${ac_cv_header_zlib_h+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244fi
22245echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22246echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22247else
22248 # Is the header compilable?
22249echo "$as_me:$LINENO: checking zlib.h usability" >&5
22250echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22251cat >conftest.$ac_ext <<_ACEOF
22252/* confdefs.h. */
22253_ACEOF
22254cat confdefs.h >>conftest.$ac_ext
22255cat >>conftest.$ac_ext <<_ACEOF
22256/* end confdefs.h. */
22257$ac_includes_default
22258#include <zlib.h>
22259_ACEOF
22260rm -f conftest.$ac_objext
22261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22262 (eval $ac_compile) 2>conftest.er1
a848cd7e 22263 ac_status=$?
ac1cb8d3
VS
22264 grep -v '^ *+' conftest.er1 >conftest.err
22265 rm -f conftest.er1
22266 cat conftest.err >&5
a848cd7e
SC
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } &&
9dd0f6c2 22269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22272 ac_status=$?
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; } &&
22275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
22281 ac_header_compiler=yes
22282else
22283 echo "$as_me: failed program was:" >&5
22284sed 's/^/| /' conftest.$ac_ext >&5
22285
22286ac_header_compiler=no
22287fi
ac1cb8d3 22288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22290echo "${ECHO_T}$ac_header_compiler" >&6
22291
22292# Is the header present?
22293echo "$as_me:$LINENO: checking zlib.h presence" >&5
22294echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22295cat >conftest.$ac_ext <<_ACEOF
22296/* confdefs.h. */
22297_ACEOF
22298cat confdefs.h >>conftest.$ac_ext
22299cat >>conftest.$ac_ext <<_ACEOF
22300/* end confdefs.h. */
22301#include <zlib.h>
22302_ACEOF
22303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } >/dev/null; then
22311 if test -s conftest.err; then
22312 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22314 else
22315 ac_cpp_err=
22316 fi
22317else
22318 ac_cpp_err=yes
22319fi
22320if test -z "$ac_cpp_err"; then
22321 ac_header_preproc=yes
22322else
22323 echo "$as_me: failed program was:" >&5
22324sed 's/^/| /' conftest.$ac_ext >&5
22325
22326 ac_header_preproc=no
22327fi
22328rm -f conftest.err conftest.$ac_ext
22329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22330echo "${ECHO_T}$ac_header_preproc" >&6
22331
22332# So? What about this header?
ac1cb8d3
VS
22333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22334 yes:no: )
a848cd7e
SC
22335 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22336echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22337 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22338echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22339 ac_header_preproc=yes
a848cd7e 22340 ;;
ac1cb8d3 22341 no:yes:* )
a848cd7e
SC
22342 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22343echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22344 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22345echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22347echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22349echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22350 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22351echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22352 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22353echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22354 (
22355 cat <<\_ASBOX
ac1cb8d3
VS
22356## ----------------------------------------- ##
22357## Report this to wx-dev@lists.wxwidgets.org ##
22358## ----------------------------------------- ##
a848cd7e
SC
22359_ASBOX
22360 ) |
22361 sed "s/^/$as_me: WARNING: /" >&2
22362 ;;
22363esac
22364echo "$as_me:$LINENO: checking for zlib.h" >&5
22365echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22366if test "${ac_cv_header_zlib_h+set}" = set; then
22367 echo $ECHO_N "(cached) $ECHO_C" >&6
22368else
22369 ac_cv_header_zlib_h=$ac_header_preproc
22370fi
22371echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22372echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22373
22374fi
22375
22376
22377
22378 system_zlib_h_ok=$ac_cv_header_zlib_h
22379 fi
22380
22381 if test "$system_zlib_h_ok" = "yes"; then
22382 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22383echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22384if test "${ac_cv_lib_z_deflate+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386else
22387 ac_check_lib_save_LIBS=$LIBS
22388LIBS="-lz $LIBS"
22389cat >conftest.$ac_ext <<_ACEOF
22390/* confdefs.h. */
22391_ACEOF
22392cat confdefs.h >>conftest.$ac_ext
22393cat >>conftest.$ac_ext <<_ACEOF
22394/* end confdefs.h. */
22395
22396/* Override any gcc2 internal prototype to avoid an error. */
22397#ifdef __cplusplus
22398extern "C"
22399#endif
22400/* We use char because int might match the return type of a gcc2
22401 builtin and then its argument prototype would still apply. */
22402char deflate ();
22403int
22404main ()
22405{
22406deflate ();
22407 ;
22408 return 0;
22409}
22410_ACEOF
22411rm -f conftest.$ac_objext conftest$ac_exeext
22412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22413 (eval $ac_link) 2>conftest.er1
a848cd7e 22414 ac_status=$?
ac1cb8d3
VS
22415 grep -v '^ *+' conftest.er1 >conftest.err
22416 rm -f conftest.er1
22417 cat conftest.err >&5
a848cd7e
SC
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } &&
9dd0f6c2 22420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 (eval $ac_try) 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; } &&
22426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428 (eval $ac_try) 2>&5
22429 ac_status=$?
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; }; then
22432 ac_cv_lib_z_deflate=yes
22433else
22434 echo "$as_me: failed program was:" >&5
22435sed 's/^/| /' conftest.$ac_ext >&5
22436
22437ac_cv_lib_z_deflate=no
22438fi
ac1cb8d3
VS
22439rm -f conftest.err conftest.$ac_objext \
22440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22441LIBS=$ac_check_lib_save_LIBS
22442fi
22443echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22444echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22445if test $ac_cv_lib_z_deflate = yes; then
22446 ZLIB_LINK=" -lz"
22447fi
22448
22449 fi
22450
22451 if test "x$ZLIB_LINK" = "x" ; then
22452 if test "$wxUSE_ZLIB" = "sys" ; then
22453 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22454echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22455 { (exit 1); exit 1; }; }
22456 else
22457 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22458echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22459 wxUSE_ZLIB=builtin
22460 fi
22461 else
22462 wxUSE_ZLIB=sys
22463 fi
22464 fi
22465fi
22466
22467
22468PNG_LINK=
22469if test "$wxUSE_LIBPNG" != "no" ; then
22470 cat >>confdefs.h <<\_ACEOF
22471#define wxUSE_LIBPNG 1
22472_ACEOF
22473
22474
22475 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22476 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22477echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22478 wxUSE_LIBPNG=sys
22479 fi
22480
22481 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22482 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22483echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22484 wxUSE_LIBPNG=builtin
22485 fi
22486
22487 if test "$wxUSE_MGL" != 1 ; then
22488 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22489 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22490echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22491if test "${ac_cv_header_png_h+set}" = set; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22493else
22494 if test "$cross_compiling" = yes; then
22495 unset ac_cv_header_png_h
22496
22497else
22498 cat >conftest.$ac_ext <<_ACEOF
22499/* confdefs.h. */
22500_ACEOF
22501cat confdefs.h >>conftest.$ac_ext
22502cat >>conftest.$ac_ext <<_ACEOF
22503/* end confdefs.h. */
22504
22505 #include <png.h>
22506 #include <stdio.h>
22507
22508 int main()
22509 {
22510 FILE *f=fopen("conftestval", "w");
22511 if (!f) exit(1);
22512 fprintf(f, "%s",
22513 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22514 exit(0);
22515 }
22516
22517_ACEOF
22518rm -f conftest$ac_exeext
22519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22520 (eval $ac_link) 2>&5
22521 ac_status=$?
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); }; }; then
22529 ac_cv_header_png_h=`cat conftestval`
22530else
22531 echo "$as_me: program exited with status $ac_status" >&5
22532echo "$as_me: failed program was:" >&5
22533sed 's/^/| /' conftest.$ac_ext >&5
22534
22535( exit $ac_status )
22536ac_cv_header_png_h=no
22537fi
ac1cb8d3 22538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22539fi
22540
22541fi
22542echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22543echo "${ECHO_T}$ac_cv_header_png_h" >&6
22544 if test "${ac_cv_header_png_h+set}" = set; then
22545 echo "$as_me:$LINENO: checking for png.h" >&5
22546echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22547if test "${ac_cv_header_png_h+set}" = set; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22549fi
22550echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22551echo "${ECHO_T}$ac_cv_header_png_h" >&6
22552else
22553 # Is the header compilable?
22554echo "$as_me:$LINENO: checking png.h usability" >&5
22555echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22556cat >conftest.$ac_ext <<_ACEOF
22557/* confdefs.h. */
22558_ACEOF
22559cat confdefs.h >>conftest.$ac_ext
22560cat >>conftest.$ac_ext <<_ACEOF
22561/* end confdefs.h. */
22562$ac_includes_default
22563#include <png.h>
22564_ACEOF
22565rm -f conftest.$ac_objext
22566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22567 (eval $ac_compile) 2>conftest.er1
a848cd7e 22568 ac_status=$?
ac1cb8d3
VS
22569 grep -v '^ *+' conftest.er1 >conftest.err
22570 rm -f conftest.er1
22571 cat conftest.err >&5
a848cd7e
SC
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } &&
9dd0f6c2 22574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22583 ac_status=$?
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
22586 ac_header_compiler=yes
22587else
22588 echo "$as_me: failed program was:" >&5
22589sed 's/^/| /' conftest.$ac_ext >&5
22590
22591ac_header_compiler=no
22592fi
ac1cb8d3 22593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22595echo "${ECHO_T}$ac_header_compiler" >&6
22596
22597# Is the header present?
22598echo "$as_me:$LINENO: checking png.h presence" >&5
22599echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22600cat >conftest.$ac_ext <<_ACEOF
22601/* confdefs.h. */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h. */
22606#include <png.h>
22607_ACEOF
22608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22610 ac_status=$?
22611 grep -v '^ *+' conftest.er1 >conftest.err
22612 rm -f conftest.er1
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } >/dev/null; then
22616 if test -s conftest.err; then
22617 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22619 else
22620 ac_cpp_err=
22621 fi
22622else
22623 ac_cpp_err=yes
22624fi
22625if test -z "$ac_cpp_err"; then
22626 ac_header_preproc=yes
22627else
22628 echo "$as_me: failed program was:" >&5
22629sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 ac_header_preproc=no
22632fi
22633rm -f conftest.err conftest.$ac_ext
22634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22635echo "${ECHO_T}$ac_header_preproc" >&6
22636
22637# So? What about this header?
ac1cb8d3
VS
22638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22639 yes:no: )
a848cd7e
SC
22640 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22641echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22642 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22643echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22644 ac_header_preproc=yes
a848cd7e 22645 ;;
ac1cb8d3 22646 no:yes:* )
a848cd7e
SC
22647 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22648echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22649 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22650echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22651 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22652echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22654echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22655 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22656echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22657 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22658echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22659 (
22660 cat <<\_ASBOX
ac1cb8d3
VS
22661## ----------------------------------------- ##
22662## Report this to wx-dev@lists.wxwidgets.org ##
22663## ----------------------------------------- ##
a848cd7e
SC
22664_ASBOX
22665 ) |
22666 sed "s/^/$as_me: WARNING: /" >&2
22667 ;;
22668esac
22669echo "$as_me:$LINENO: checking for png.h" >&5
22670echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22671if test "${ac_cv_header_png_h+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673else
22674 ac_cv_header_png_h=$ac_header_preproc
22675fi
22676echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22677echo "${ECHO_T}$ac_cv_header_png_h" >&6
22678
22679fi
22680
22681
22682
22683 if test "$ac_cv_header_png_h" = "yes"; then
22684 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22685echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22686if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688else
22689 ac_check_lib_save_LIBS=$LIBS
22690LIBS="-lpng -lz -lm $LIBS"
22691cat >conftest.$ac_ext <<_ACEOF
22692/* confdefs.h. */
22693_ACEOF
22694cat confdefs.h >>conftest.$ac_ext
22695cat >>conftest.$ac_ext <<_ACEOF
22696/* end confdefs.h. */
22697
22698/* Override any gcc2 internal prototype to avoid an error. */
22699#ifdef __cplusplus
22700extern "C"
22701#endif
22702/* We use char because int might match the return type of a gcc2
22703 builtin and then its argument prototype would still apply. */
22704char png_check_sig ();
22705int
22706main ()
22707{
22708png_check_sig ();
22709 ;
22710 return 0;
22711}
22712_ACEOF
22713rm -f conftest.$ac_objext conftest$ac_exeext
22714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22715 (eval $ac_link) 2>conftest.er1
a848cd7e 22716 ac_status=$?
ac1cb8d3
VS
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
a848cd7e
SC
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } &&
9dd0f6c2 22722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22725 ac_status=$?
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; } &&
22728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }; then
22734 ac_cv_lib_png_png_check_sig=yes
22735else
22736 echo "$as_me: failed program was:" >&5
22737sed 's/^/| /' conftest.$ac_ext >&5
22738
22739ac_cv_lib_png_png_check_sig=no
22740fi
ac1cb8d3
VS
22741rm -f conftest.err conftest.$ac_objext \
22742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22743LIBS=$ac_check_lib_save_LIBS
22744fi
22745echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22746echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22747if test $ac_cv_lib_png_png_check_sig = yes; then
22748 PNG_LINK=" -lpng -lz"
22749fi
22750
22751 fi
22752
22753 if test "x$PNG_LINK" = "x" ; then
22754 if test "$wxUSE_LIBPNG" = "sys" ; then
22755 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22756echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22757 { (exit 1); exit 1; }; }
22758 else
22759 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22760echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22761 wxUSE_LIBPNG=builtin
22762 fi
22763 else
22764 wxUSE_LIBPNG=sys
22765 fi
22766 fi
22767 fi
22768
22769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22770fi
22771
22772
22773JPEG_LINK=
22774if test "$wxUSE_LIBJPEG" != "no" ; then
22775 cat >>confdefs.h <<\_ACEOF
22776#define wxUSE_LIBJPEG 1
22777_ACEOF
22778
22779
22780 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22781 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22782echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22783 wxUSE_LIBJPEG=sys
22784 fi
22785
22786 if test "$wxUSE_MGL" != 1 ; then
22787 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22788 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22789echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22790 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22792else
22793 cat >conftest.$ac_ext <<_ACEOF
22794/* confdefs.h. */
22795_ACEOF
22796cat confdefs.h >>conftest.$ac_ext
22797cat >>conftest.$ac_ext <<_ACEOF
22798/* end confdefs.h. */
22799
22800 #undef HAVE_STDLIB_H
22801 #include <stdio.h>
22802 #include <jpeglib.h>
22803
22804int
22805main ()
22806{
22807
22808
22809 ;
22810 return 0;
22811}
22812_ACEOF
22813rm -f conftest.$ac_objext
22814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22815 (eval $ac_compile) 2>conftest.er1
a848cd7e 22816 ac_status=$?
ac1cb8d3
VS
22817 grep -v '^ *+' conftest.er1 >conftest.err
22818 rm -f conftest.er1
22819 cat conftest.err >&5
a848cd7e
SC
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } &&
9dd0f6c2 22822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; } &&
22828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; }; then
22834 ac_cv_header_jpeglib_h=yes
22835else
22836 echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839ac_cv_header_jpeglib_h=no
22840
22841fi
ac1cb8d3 22842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22843
22844fi
22845
22846 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22847echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22848
22849 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22850 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22851echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22852if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22854else
22855 ac_check_lib_save_LIBS=$LIBS
22856LIBS="-ljpeg $LIBS"
22857cat >conftest.$ac_ext <<_ACEOF
22858/* confdefs.h. */
22859_ACEOF
22860cat confdefs.h >>conftest.$ac_ext
22861cat >>conftest.$ac_ext <<_ACEOF
22862/* end confdefs.h. */
22863
22864/* Override any gcc2 internal prototype to avoid an error. */
22865#ifdef __cplusplus
22866extern "C"
22867#endif
22868/* We use char because int might match the return type of a gcc2
22869 builtin and then its argument prototype would still apply. */
22870char jpeg_read_header ();
22871int
22872main ()
22873{
22874jpeg_read_header ();
22875 ;
22876 return 0;
22877}
22878_ACEOF
22879rm -f conftest.$ac_objext conftest$ac_exeext
22880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22881 (eval $ac_link) 2>conftest.er1
a848cd7e 22882 ac_status=$?
ac1cb8d3
VS
22883 grep -v '^ *+' conftest.er1 >conftest.err
22884 rm -f conftest.er1
22885 cat conftest.err >&5
a848cd7e
SC
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } &&
9dd0f6c2 22888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; } &&
22894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22897 ac_status=$?
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; }; then
22900 ac_cv_lib_jpeg_jpeg_read_header=yes
22901else
22902 echo "$as_me: failed program was:" >&5
22903sed 's/^/| /' conftest.$ac_ext >&5
22904
22905ac_cv_lib_jpeg_jpeg_read_header=no
22906fi
ac1cb8d3
VS
22907rm -f conftest.err conftest.$ac_objext \
22908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22909LIBS=$ac_check_lib_save_LIBS
22910fi
22911echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22912echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22913if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22914 JPEG_LINK=" -ljpeg"
22915fi
22916
22917 fi
22918
22919 if test "x$JPEG_LINK" = "x" ; then
22920 if test "$wxUSE_LIBJPEG" = "sys" ; then
22921 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22922echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22923 { (exit 1); exit 1; }; }
22924 else
22925 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22926echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22927 wxUSE_LIBJPEG=builtin
22928 fi
22929 else
22930 wxUSE_LIBJPEG=sys
22931 fi
22932 fi
22933 fi
22934fi
22935
22936
22937TIFF_LINK=
22938TIFF_PREREQ_LINKS=-lm
22939if test "$wxUSE_LIBTIFF" != "no" ; then
22940 cat >>confdefs.h <<\_ACEOF
22941#define wxUSE_LIBTIFF 1
22942_ACEOF
22943
22944
22945 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22946 if test "$wxUSE_LIBJPEG" = "sys"; then
22947 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22948 fi
22949 if test "$wxUSE_ZLIB" = "sys"; then
22950 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22951 fi
22952 if test "${ac_cv_header_tiffio_h+set}" = set; then
22953 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22954echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22955if test "${ac_cv_header_tiffio_h+set}" = set; then
22956 echo $ECHO_N "(cached) $ECHO_C" >&6
22957fi
22958echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22959echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22960else
22961 # Is the header compilable?
22962echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22963echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22964cat >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$ac_includes_default
22971#include <tiffio.h>
22972_ACEOF
22973rm -f conftest.$ac_objext
22974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22975 (eval $ac_compile) 2>conftest.er1
a848cd7e 22976 ac_status=$?
ac1cb8d3
VS
22977 grep -v '^ *+' conftest.er1 >conftest.err
22978 rm -f conftest.er1
22979 cat conftest.err >&5
a848cd7e
SC
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); } &&
9dd0f6c2 22982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 (eval $ac_try) 2>&5
22985 ac_status=$?
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); }; } &&
22988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; }; then
22994 ac_header_compiler=yes
22995else
22996 echo "$as_me: failed program was:" >&5
22997sed 's/^/| /' conftest.$ac_ext >&5
22998
22999ac_header_compiler=no
23000fi
ac1cb8d3 23001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23002echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003echo "${ECHO_T}$ac_header_compiler" >&6
23004
23005# Is the header present?
23006echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23007echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23008cat >conftest.$ac_ext <<_ACEOF
23009/* confdefs.h. */
23010_ACEOF
23011cat confdefs.h >>conftest.$ac_ext
23012cat >>conftest.$ac_ext <<_ACEOF
23013/* end confdefs.h. */
23014#include <tiffio.h>
23015_ACEOF
23016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23018 ac_status=$?
23019 grep -v '^ *+' conftest.er1 >conftest.err
23020 rm -f conftest.er1
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } >/dev/null; then
23024 if test -s conftest.err; then
23025 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23027 else
23028 ac_cpp_err=
23029 fi
23030else
23031 ac_cpp_err=yes
23032fi
23033if test -z "$ac_cpp_err"; then
23034 ac_header_preproc=yes
23035else
23036 echo "$as_me: failed program was:" >&5
23037sed 's/^/| /' conftest.$ac_ext >&5
23038
23039 ac_header_preproc=no
23040fi
23041rm -f conftest.err conftest.$ac_ext
23042echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23043echo "${ECHO_T}$ac_header_preproc" >&6
23044
23045# So? What about this header?
ac1cb8d3
VS
23046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23047 yes:no: )
a848cd7e
SC
23048 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23049echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23050 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23051echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23052 ac_header_preproc=yes
a848cd7e 23053 ;;
ac1cb8d3 23054 no:yes:* )
a848cd7e
SC
23055 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23056echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23057 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23058echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23060echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23062echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23063 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23064echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23065 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23066echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23067 (
23068 cat <<\_ASBOX
ac1cb8d3
VS
23069## ----------------------------------------- ##
23070## Report this to wx-dev@lists.wxwidgets.org ##
23071## ----------------------------------------- ##
a848cd7e
SC
23072_ASBOX
23073 ) |
23074 sed "s/^/$as_me: WARNING: /" >&2
23075 ;;
23076esac
23077echo "$as_me:$LINENO: checking for tiffio.h" >&5
23078echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23079if test "${ac_cv_header_tiffio_h+set}" = set; then
23080 echo $ECHO_N "(cached) $ECHO_C" >&6
23081else
23082 ac_cv_header_tiffio_h=$ac_header_preproc
23083fi
23084echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23085echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23086
23087fi
23088if test $ac_cv_header_tiffio_h = yes; then
23089
23090 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23091echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23092if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23094else
23095 ac_check_lib_save_LIBS=$LIBS
23096LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23097cat >conftest.$ac_ext <<_ACEOF
23098/* confdefs.h. */
23099_ACEOF
23100cat confdefs.h >>conftest.$ac_ext
23101cat >>conftest.$ac_ext <<_ACEOF
23102/* end confdefs.h. */
23103
23104/* Override any gcc2 internal prototype to avoid an error. */
23105#ifdef __cplusplus
23106extern "C"
23107#endif
23108/* We use char because int might match the return type of a gcc2
23109 builtin and then its argument prototype would still apply. */
23110char TIFFError ();
23111int
23112main ()
23113{
23114TIFFError ();
23115 ;
23116 return 0;
23117}
23118_ACEOF
23119rm -f conftest.$ac_objext conftest$ac_exeext
23120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23121 (eval $ac_link) 2>conftest.er1
a848cd7e 23122 ac_status=$?
ac1cb8d3
VS
23123 grep -v '^ *+' conftest.er1 >conftest.err
23124 rm -f conftest.er1
23125 cat conftest.err >&5
a848cd7e
SC
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } &&
9dd0f6c2 23128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130 (eval $ac_try) 2>&5
23131 ac_status=$?
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; }; then
23140 ac_cv_lib_tiff_TIFFError=yes
23141else
23142 echo "$as_me: failed program was:" >&5
23143sed 's/^/| /' conftest.$ac_ext >&5
23144
23145ac_cv_lib_tiff_TIFFError=no
23146fi
ac1cb8d3
VS
23147rm -f conftest.err conftest.$ac_objext \
23148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23149LIBS=$ac_check_lib_save_LIBS
23150fi
23151echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23152echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23153if test $ac_cv_lib_tiff_TIFFError = yes; then
23154 TIFF_LINK=" -ltiff"
23155fi
23156
23157
23158
23159fi
23160
23161
23162
23163 if test "x$TIFF_LINK" = "x" ; then
23164 if test "$wxUSE_LIBTIFF" = "sys" ; then
23165 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23166echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23167 { (exit 1); exit 1; }; }
23168 else
23169 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23170echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23171 wxUSE_LIBTIFF=builtin
23172 fi
23173 else
23174 wxUSE_LIBTIFF=sys
23175 fi
23176 fi
23177fi
23178
23179
23180if test "$wxUSE_EXPAT" != "no"; then
23181 wxUSE_XML=yes
23182 cat >>confdefs.h <<\_ACEOF
23183#define wxUSE_EXPAT 1
23184_ACEOF
23185
23186 cat >>confdefs.h <<\_ACEOF
23187#define wxUSE_XML 1
23188_ACEOF
23189
23190
23191 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23192 if test "${ac_cv_header_expat_h+set}" = set; then
23193 echo "$as_me:$LINENO: checking for expat.h" >&5
23194echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23195if test "${ac_cv_header_expat_h+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23197fi
23198echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23199echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23200else
23201 # Is the header compilable?
23202echo "$as_me:$LINENO: checking expat.h usability" >&5
23203echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23204cat >conftest.$ac_ext <<_ACEOF
23205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
23210$ac_includes_default
23211#include <expat.h>
23212_ACEOF
23213rm -f conftest.$ac_objext
23214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23215 (eval $ac_compile) 2>conftest.er1
a848cd7e 23216 ac_status=$?
ac1cb8d3
VS
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
a848cd7e
SC
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
9dd0f6c2 23222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_header_compiler=yes
23235else
23236 echo "$as_me: failed program was:" >&5
23237sed 's/^/| /' conftest.$ac_ext >&5
23238
23239ac_header_compiler=no
23240fi
ac1cb8d3 23241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23243echo "${ECHO_T}$ac_header_compiler" >&6
23244
23245# Is the header present?
23246echo "$as_me:$LINENO: checking expat.h presence" >&5
23247echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23248cat >conftest.$ac_ext <<_ACEOF
23249/* confdefs.h. */
23250_ACEOF
23251cat confdefs.h >>conftest.$ac_ext
23252cat >>conftest.$ac_ext <<_ACEOF
23253/* end confdefs.h. */
23254#include <expat.h>
23255_ACEOF
23256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23258 ac_status=$?
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } >/dev/null; then
23264 if test -s conftest.err; then
23265 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23267 else
23268 ac_cpp_err=
23269 fi
23270else
23271 ac_cpp_err=yes
23272fi
23273if test -z "$ac_cpp_err"; then
23274 ac_header_preproc=yes
23275else
23276 echo "$as_me: failed program was:" >&5
23277sed 's/^/| /' conftest.$ac_ext >&5
23278
23279 ac_header_preproc=no
23280fi
23281rm -f conftest.err conftest.$ac_ext
23282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23283echo "${ECHO_T}$ac_header_preproc" >&6
23284
23285# So? What about this header?
ac1cb8d3
VS
23286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23287 yes:no: )
a848cd7e
SC
23288 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23289echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23290 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23291echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23292 ac_header_preproc=yes
a848cd7e 23293 ;;
ac1cb8d3 23294 no:yes:* )
a848cd7e
SC
23295 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23296echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23297 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23298echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23300echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23302echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23303 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23304echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23305 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23306echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23307 (
23308 cat <<\_ASBOX
ac1cb8d3
VS
23309## ----------------------------------------- ##
23310## Report this to wx-dev@lists.wxwidgets.org ##
23311## ----------------------------------------- ##
a848cd7e
SC
23312_ASBOX
23313 ) |
23314 sed "s/^/$as_me: WARNING: /" >&2
23315 ;;
23316esac
23317echo "$as_me:$LINENO: checking for expat.h" >&5
23318echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23319if test "${ac_cv_header_expat_h+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321else
23322 ac_cv_header_expat_h=$ac_header_preproc
23323fi
23324echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23325echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23326
23327fi
23328if test $ac_cv_header_expat_h = yes; then
23329 found_expat_h=1
23330fi
23331
23332
23333 if test "x$found_expat_h" = "x1"; then
23334 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23335echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23336if test "${wx_cv_expat_is_not_broken+set}" = set; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23338else
23339
23340
23341
23342 ac_ext=cc
23343ac_cpp='$CXXCPP $CPPFLAGS'
23344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23347
23348 cat >conftest.$ac_ext <<_ACEOF
23349/* confdefs.h. */
23350_ACEOF
23351cat confdefs.h >>conftest.$ac_ext
23352cat >>conftest.$ac_ext <<_ACEOF
23353/* end confdefs.h. */
23354#include <expat.h>
23355int
23356main ()
23357{
23358
23359 ;
23360 return 0;
23361}
23362_ACEOF
23363rm -f conftest.$ac_objext
23364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23365 (eval $ac_compile) 2>conftest.er1
a848cd7e 23366 ac_status=$?
ac1cb8d3
VS
23367 grep -v '^ *+' conftest.er1 >conftest.err
23368 rm -f conftest.er1
23369 cat conftest.err >&5
a848cd7e
SC
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } &&
9dd0f6c2 23372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; } &&
23378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 wx_cv_expat_is_not_broken=yes
23385else
23386 echo "$as_me: failed program was:" >&5
23387sed 's/^/| /' conftest.$ac_ext >&5
23388
23389wx_cv_expat_is_not_broken=no
23390
23391fi
ac1cb8d3 23392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23393 ac_ext=c
23394ac_cpp='$CPP $CPPFLAGS'
23395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23397ac_compiler_gnu=$ac_cv_c_compiler_gnu
23398
23399
23400
23401fi
23402echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23403echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23404 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23405 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23406echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23407if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23409else
23410 ac_check_lib_save_LIBS=$LIBS
23411LIBS="-lexpat $LIBS"
23412cat >conftest.$ac_ext <<_ACEOF
23413/* confdefs.h. */
23414_ACEOF
23415cat confdefs.h >>conftest.$ac_ext
23416cat >>conftest.$ac_ext <<_ACEOF
23417/* end confdefs.h. */
23418
23419/* Override any gcc2 internal prototype to avoid an error. */
23420#ifdef __cplusplus
23421extern "C"
23422#endif
23423/* We use char because int might match the return type of a gcc2
23424 builtin and then its argument prototype would still apply. */
23425char XML_ParserCreate ();
23426int
23427main ()
23428{
23429XML_ParserCreate ();
23430 ;
23431 return 0;
23432}
23433_ACEOF
23434rm -f conftest.$ac_objext conftest$ac_exeext
23435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23436 (eval $ac_link) 2>conftest.er1
a848cd7e 23437 ac_status=$?
ac1cb8d3
VS
23438 grep -v '^ *+' conftest.er1 >conftest.err
23439 rm -f conftest.er1
23440 cat conftest.err >&5
a848cd7e
SC
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } &&
9dd0f6c2 23443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23445 (eval $ac_try) 2>&5
23446 ac_status=$?
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); }; } &&
23449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; }; then
23455 ac_cv_lib_expat_XML_ParserCreate=yes
23456else
23457 echo "$as_me: failed program was:" >&5
23458sed 's/^/| /' conftest.$ac_ext >&5
23459
23460ac_cv_lib_expat_XML_ParserCreate=no
23461fi
ac1cb8d3
VS
23462rm -f conftest.err conftest.$ac_objext \
23463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23464LIBS=$ac_check_lib_save_LIBS
23465fi
23466echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23467echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23468if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23469 EXPAT_LINK=" -lexpat"
23470fi
23471
23472 fi
23473 fi
23474 if test "x$EXPAT_LINK" = "x" ; then
23475 if test "$wxUSE_EXPAT" = "sys" ; then
23476 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23477echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23478 { (exit 1); exit 1; }; }
23479 else
23480 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23481echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23482 wxUSE_EXPAT=builtin
23483 fi
23484 else
23485 wxUSE_EXPAT=sys
23486 fi
23487 fi
23488 if test "$wxUSE_EXPAT" = "builtin" ; then
23489
23490
23491subdirs="$subdirs src/expat"
23492
23493 fi
23494fi
23495
23496
23497
23498if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23499 if test "${ac_cv_header_mspack_h+set}" = set; then
23500 echo "$as_me:$LINENO: checking for mspack.h" >&5
23501echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23502if test "${ac_cv_header_mspack_h+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23504fi
23505echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23506echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23507else
23508 # Is the header compilable?
23509echo "$as_me:$LINENO: checking mspack.h usability" >&5
23510echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23511cat >conftest.$ac_ext <<_ACEOF
23512/* confdefs.h. */
23513_ACEOF
23514cat confdefs.h >>conftest.$ac_ext
23515cat >>conftest.$ac_ext <<_ACEOF
23516/* end confdefs.h. */
23517$ac_includes_default
23518#include <mspack.h>
23519_ACEOF
23520rm -f conftest.$ac_objext
23521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23522 (eval $ac_compile) 2>conftest.er1
a848cd7e 23523 ac_status=$?
ac1cb8d3
VS
23524 grep -v '^ *+' conftest.er1 >conftest.err
23525 rm -f conftest.er1
23526 cat conftest.err >&5
a848cd7e
SC
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } &&
9dd0f6c2 23529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; } &&
23535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); }; }; then
23541 ac_header_compiler=yes
23542else
23543 echo "$as_me: failed program was:" >&5
23544sed 's/^/| /' conftest.$ac_ext >&5
23545
23546ac_header_compiler=no
23547fi
ac1cb8d3 23548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23550echo "${ECHO_T}$ac_header_compiler" >&6
23551
23552# Is the header present?
23553echo "$as_me:$LINENO: checking mspack.h presence" >&5
23554echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23555cat >conftest.$ac_ext <<_ACEOF
23556/* confdefs.h. */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h. */
23561#include <mspack.h>
23562_ACEOF
23563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23565 ac_status=$?
23566 grep -v '^ *+' conftest.er1 >conftest.err
23567 rm -f conftest.er1
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } >/dev/null; then
23571 if test -s conftest.err; then
23572 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23574 else
23575 ac_cpp_err=
23576 fi
23577else
23578 ac_cpp_err=yes
23579fi
23580if test -z "$ac_cpp_err"; then
23581 ac_header_preproc=yes
23582else
23583 echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
23586 ac_header_preproc=no
23587fi
23588rm -f conftest.err conftest.$ac_ext
23589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23590echo "${ECHO_T}$ac_header_preproc" >&6
23591
23592# So? What about this header?
ac1cb8d3
VS
23593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23594 yes:no: )
a848cd7e
SC
23595 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23596echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23597 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23598echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23599 ac_header_preproc=yes
a848cd7e 23600 ;;
ac1cb8d3 23601 no:yes:* )
a848cd7e
SC
23602 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23603echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23604 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23605echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23606 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23607echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23608 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23609echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23610 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23611echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23612 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23613echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23614 (
23615 cat <<\_ASBOX
ac1cb8d3
VS
23616## ----------------------------------------- ##
23617## Report this to wx-dev@lists.wxwidgets.org ##
23618## ----------------------------------------- ##
a848cd7e
SC
23619_ASBOX
23620 ) |
23621 sed "s/^/$as_me: WARNING: /" >&2
23622 ;;
23623esac
23624echo "$as_me:$LINENO: checking for mspack.h" >&5
23625echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23626if test "${ac_cv_header_mspack_h+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628else
23629 ac_cv_header_mspack_h=$ac_header_preproc
23630fi
23631echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23632echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23633
23634fi
23635if test $ac_cv_header_mspack_h = yes; then
23636 found_mspack_h=1
23637fi
23638
23639
23640 if test "x$found_mspack_h" = "x1"; then
23641 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23642echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23643if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645else
23646 ac_check_lib_save_LIBS=$LIBS
23647LIBS="-lmspack $LIBS"
23648cat >conftest.$ac_ext <<_ACEOF
23649/* confdefs.h. */
23650_ACEOF
23651cat confdefs.h >>conftest.$ac_ext
23652cat >>conftest.$ac_ext <<_ACEOF
23653/* end confdefs.h. */
23654
23655/* Override any gcc2 internal prototype to avoid an error. */
23656#ifdef __cplusplus
23657extern "C"
23658#endif
23659/* We use char because int might match the return type of a gcc2
23660 builtin and then its argument prototype would still apply. */
23661char mspack_create_chm_decompressor ();
23662int
23663main ()
23664{
23665mspack_create_chm_decompressor ();
23666 ;
23667 return 0;
23668}
23669_ACEOF
23670rm -f conftest.$ac_objext conftest$ac_exeext
23671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23672 (eval $ac_link) 2>conftest.er1
a848cd7e 23673 ac_status=$?
ac1cb8d3
VS
23674 grep -v '^ *+' conftest.er1 >conftest.err
23675 rm -f conftest.er1
23676 cat conftest.err >&5
a848cd7e
SC
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } &&
9dd0f6c2 23679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; } &&
23685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23688 ac_status=$?
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23691 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23692else
23693 echo "$as_me: failed program was:" >&5
23694sed 's/^/| /' conftest.$ac_ext >&5
23695
23696ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23697fi
ac1cb8d3
VS
23698rm -f conftest.err conftest.$ac_objext \
23699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23700LIBS=$ac_check_lib_save_LIBS
23701fi
23702echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23703echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23704if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23705 MSPACK_LINK=" -lmspack"
23706fi
23707
23708 fi
23709 if test "x$MSPACK_LINK" = "x" ; then
23710 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23711 fi
23712fi
23713
23714if test "$wxUSE_LIBMSPACK" != "no"; then
23715 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23716#define wxUSE_LIBMSPACK 1
23717_ACEOF
23718
a848cd7e
SC
23719fi
23720
23721
23722
23723AFMINSTALL=
23724WIN32INSTALL=
23725
23726TOOLKIT=
23727TOOLKIT_INCLUDE=
23728WIDGET_SET=
23729
23730if test "$USE_WIN32" = 1 ; then
23731
23732for ac_header in w32api.h
23733do
23734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23735if eval "test \"\${$as_ac_Header+set}\" = set"; then
23736 echo "$as_me:$LINENO: checking for $ac_header" >&5
23737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23738if eval "test \"\${$as_ac_Header+set}\" = set"; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23740fi
23741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23743else
23744 # Is the header compilable?
23745echo "$as_me:$LINENO: checking $ac_header usability" >&5
23746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23747cat >conftest.$ac_ext <<_ACEOF
23748/* confdefs.h. */
23749_ACEOF
23750cat confdefs.h >>conftest.$ac_ext
23751cat >>conftest.$ac_ext <<_ACEOF
23752/* end confdefs.h. */
23753$ac_includes_default
23754#include <$ac_header>
23755_ACEOF
23756rm -f conftest.$ac_objext
23757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23758 (eval $ac_compile) 2>conftest.er1
a848cd7e 23759 ac_status=$?
ac1cb8d3
VS
23760 grep -v '^ *+' conftest.er1 >conftest.err
23761 rm -f conftest.er1
23762 cat conftest.err >&5
a848cd7e
SC
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); } &&
9dd0f6c2 23765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767 (eval $ac_try) 2>&5
23768 ac_status=$?
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); }; } &&
23771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23773 (eval $ac_try) 2>&5
23774 ac_status=$?
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); }; }; then
23777 ac_header_compiler=yes
23778else
23779 echo "$as_me: failed program was:" >&5
23780sed 's/^/| /' conftest.$ac_ext >&5
23781
23782ac_header_compiler=no
23783fi
ac1cb8d3 23784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23786echo "${ECHO_T}$ac_header_compiler" >&6
23787
23788# Is the header present?
23789echo "$as_me:$LINENO: checking $ac_header presence" >&5
23790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23791cat >conftest.$ac_ext <<_ACEOF
23792/* confdefs.h. */
23793_ACEOF
23794cat confdefs.h >>conftest.$ac_ext
23795cat >>conftest.$ac_ext <<_ACEOF
23796/* end confdefs.h. */
23797#include <$ac_header>
23798_ACEOF
23799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23801 ac_status=$?
23802 grep -v '^ *+' conftest.er1 >conftest.err
23803 rm -f conftest.er1
23804 cat conftest.err >&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } >/dev/null; then
23807 if test -s conftest.err; then
23808 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23810 else
23811 ac_cpp_err=
23812 fi
23813else
23814 ac_cpp_err=yes
23815fi
23816if test -z "$ac_cpp_err"; then
23817 ac_header_preproc=yes
23818else
23819 echo "$as_me: failed program was:" >&5
23820sed 's/^/| /' conftest.$ac_ext >&5
23821
23822 ac_header_preproc=no
23823fi
23824rm -f conftest.err conftest.$ac_ext
23825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23826echo "${ECHO_T}$ac_header_preproc" >&6
23827
23828# So? What about this header?
ac1cb8d3
VS
23829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23830 yes:no: )
a848cd7e
SC
23831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23834echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23835 ac_header_preproc=yes
a848cd7e 23836 ;;
ac1cb8d3 23837 no:yes:* )
a848cd7e
SC
23838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23841echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23843echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23845echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23847echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23849echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23850 (
23851 cat <<\_ASBOX
ac1cb8d3
VS
23852## ----------------------------------------- ##
23853## Report this to wx-dev@lists.wxwidgets.org ##
23854## ----------------------------------------- ##
a848cd7e
SC
23855_ASBOX
23856 ) |
23857 sed "s/^/$as_me: WARNING: /" >&2
23858 ;;
23859esac
23860echo "$as_me:$LINENO: checking for $ac_header" >&5
23861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23862if eval "test \"\${$as_ac_Header+set}\" = set"; then
23863 echo $ECHO_N "(cached) $ECHO_C" >&6
23864else
ac1cb8d3 23865 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23866fi
23867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23869
23870fi
23871if test `eval echo '${'$as_ac_Header'}'` = yes; then
23872 cat >>confdefs.h <<_ACEOF
23873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23874_ACEOF
23875
23876fi
23877
23878done
23879
23880 if test "${ac_cv_header_windows_h+set}" = set; then
23881 echo "$as_me:$LINENO: checking for windows.h" >&5
23882echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23883if test "${ac_cv_header_windows_h+set}" = set; then
23884 echo $ECHO_N "(cached) $ECHO_C" >&6
23885fi
23886echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23887echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23888else
23889 # Is the header compilable?
23890echo "$as_me:$LINENO: checking windows.h usability" >&5
23891echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23892cat >conftest.$ac_ext <<_ACEOF
23893/* confdefs.h. */
23894_ACEOF
23895cat confdefs.h >>conftest.$ac_ext
23896cat >>conftest.$ac_ext <<_ACEOF
23897/* end confdefs.h. */
23898$ac_includes_default
23899#include <windows.h>
23900_ACEOF
23901rm -f conftest.$ac_objext
23902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23903 (eval $ac_compile) 2>conftest.er1
a848cd7e 23904 ac_status=$?
ac1cb8d3
VS
23905 grep -v '^ *+' conftest.er1 >conftest.err
23906 rm -f conftest.er1
23907 cat conftest.err >&5
a848cd7e
SC
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } &&
9dd0f6c2 23910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23913 ac_status=$?
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; } &&
23916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918 (eval $ac_try) 2>&5
23919 ac_status=$?
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); }; }; then
23922 ac_header_compiler=yes
23923else
23924 echo "$as_me: failed program was:" >&5
23925sed 's/^/| /' conftest.$ac_ext >&5
23926
23927ac_header_compiler=no
23928fi
ac1cb8d3 23929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23930echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23931echo "${ECHO_T}$ac_header_compiler" >&6
23932
23933# Is the header present?
23934echo "$as_me:$LINENO: checking windows.h presence" >&5
23935echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23936cat >conftest.$ac_ext <<_ACEOF
23937/* confdefs.h. */
23938_ACEOF
23939cat confdefs.h >>conftest.$ac_ext
23940cat >>conftest.$ac_ext <<_ACEOF
23941/* end confdefs.h. */
23942#include <windows.h>
23943_ACEOF
23944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23946 ac_status=$?
23947 grep -v '^ *+' conftest.er1 >conftest.err
23948 rm -f conftest.er1
23949 cat conftest.err >&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } >/dev/null; then
23952 if test -s conftest.err; then
23953 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23955 else
23956 ac_cpp_err=
23957 fi
23958else
23959 ac_cpp_err=yes
23960fi
23961if test -z "$ac_cpp_err"; then
23962 ac_header_preproc=yes
23963else
23964 echo "$as_me: failed program was:" >&5
23965sed 's/^/| /' conftest.$ac_ext >&5
23966
23967 ac_header_preproc=no
23968fi
23969rm -f conftest.err conftest.$ac_ext
23970echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23971echo "${ECHO_T}$ac_header_preproc" >&6
23972
23973# So? What about this header?
ac1cb8d3
VS
23974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23975 yes:no: )
a848cd7e
SC
23976 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23977echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23978 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23979echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23980 ac_header_preproc=yes
a848cd7e 23981 ;;
ac1cb8d3 23982 no:yes:* )
a848cd7e
SC
23983 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23984echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23985 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23986echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23987 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23988echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23989 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23990echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23991 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23992echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23993 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23994echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23995 (
23996 cat <<\_ASBOX
ac1cb8d3
VS
23997## ----------------------------------------- ##
23998## Report this to wx-dev@lists.wxwidgets.org ##
23999## ----------------------------------------- ##
a848cd7e
SC
24000_ASBOX
24001 ) |
24002 sed "s/^/$as_me: WARNING: /" >&2
24003 ;;
24004esac
24005echo "$as_me:$LINENO: checking for windows.h" >&5
24006echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24007if test "${ac_cv_header_windows_h+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
24009else
24010 ac_cv_header_windows_h=$ac_header_preproc
24011fi
24012echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24013echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24014
24015fi
24016if test $ac_cv_header_windows_h = yes; then
24017 :
24018else
24019
24020 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24021echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24022 { (exit 1); exit 1; }; }
24023
24024fi
24025
24026
24027
24028 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24029
24030 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24031 LIBS="$LIBS -loleacc"
24032 fi
24033
24034 case "${host}" in
24035 *-*-cygwin* )
24036 LIBS="$LIBS -lkernel32 -luser32"
24037 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24038 esac
24039
24040 if test "$wxUSE_ODBC" = "sys" ; then
24041 wxUSE_ODBC = "yes"
24042 fi
24043 if test "$wxUSE_ODBC" = "yes" ; then
24044 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24045 cat >>confdefs.h <<\_ACEOF
24046#define wxUSE_ODBC 1
24047_ACEOF
24048
24049 fi
24050
24051 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24052 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24053
24054 WIN32INSTALL=win32install
24055fi
24056
24057if test "$wxUSE_GUI" = "yes"; then
24058 USE_GUI=1
24059
24060 GUI_TK_LIBRARY=
24061
24062 WXGTK12=
24063 WXGTK127=
24064 WXGTK20=
24065 WXGPE=
24066
207bc66c
RN
24067 if test "$wxUSE_COCOA" = 1 ; then
24068 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24069 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24070echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24071 wxUSE_PRINTING_ARCHITECTURE=no
24072 fi
24073 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24074 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24075echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24076 wxUSE_DRAG_AND_DROP=no
24077 fi
24078 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24079 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24080echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24081 wxUSE_DRAGIMAGE=no
24082 fi
24083 fi
24084
a848cd7e
SC
24085 if test "$wxUSE_MSW" = 1 ; then
24086 TOOLKIT=MSW
24087 GUIDIST=MSW_DIST
24088
ceec2216 24089 case "${host}" in
a848cd7e
SC
24090 *-*-mingw32* )
24091 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24092 esac
24093 fi
24094
24095 if test "$wxUSE_GTK" = 1; then
24096 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24097echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24098
24099 gtk_version_cached=1
24100 if test "${wx_cv_lib_gtk+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102else
24103
24104 gtk_version_cached=0
24105 echo "$as_me:$LINENO: result: " >&5
24106echo "${ECHO_T}" >&6
24107
24108 GTK_MODULES=
24109 if test "$wxUSE_THREADS" = "yes"; then
24110 GTK_MODULES=gthread
24111 fi
24112
24113 wx_cv_lib_gtk=
24114 if test "x$wxUSE_GTK2" = "xyes"; then
24115 # Check whether --enable-gtktest or --disable-gtktest was given.
24116if test "${enable_gtktest+set}" = set; then
24117 enableval="$enable_gtktest"
24118
24119else
24120 enable_gtktest=yes
24121fi;
24122
24123 pkg_config_args=gtk+-2.0
24124 for module in . $GTK_MODULES
24125 do
24126 case "$module" in
24127 gthread)
24128 pkg_config_args="$pkg_config_args gthread-2.0"
24129 ;;
24130 esac
24131 done
24132
24133 no_gtk=""
24134
24135 # Extract the first word of "pkg-config", so it can be a program name with args.
24136set dummy pkg-config; ac_word=$2
24137echo "$as_me:$LINENO: checking for $ac_word" >&5
24138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24139if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24141else
24142 case $PKG_CONFIG in
24143 [\\/]* | ?:[\\/]*)
24144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24145 ;;
24146 *)
24147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24148for as_dir in $PATH
24149do
24150 IFS=$as_save_IFS
24151 test -z "$as_dir" && as_dir=.
24152 for ac_exec_ext in '' $ac_executable_extensions; do
24153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24156 break 2
24157 fi
24158done
24159done
24160
24161 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24162 ;;
24163esac
24164fi
24165PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24166
24167if test -n "$PKG_CONFIG"; then
24168 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24169echo "${ECHO_T}$PKG_CONFIG" >&6
24170else
24171 echo "$as_me:$LINENO: result: no" >&5
24172echo "${ECHO_T}no" >&6
24173fi
24174
24175
24176 if test x$PKG_CONFIG != xno ; then
24177 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24178 :
24179 else
c2218763 24180 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24181 no_gtk=yes
24182 PKG_CONFIG=no
24183 fi
24184 else
24185 no_gtk=yes
24186 fi
24187
24188 min_gtk_version=2.0.0
24189 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24190echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24191
24192 if test x$PKG_CONFIG != xno ; then
24193 ## don't try to run the test against uninstalled libtool libs
24194 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24195 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24196 enable_gtktest=no
24197 fi
24198
24199 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24200 :
24201 else
24202 no_gtk=yes
24203 fi
24204 fi
24205
24206 if test x"$no_gtk" = x ; then
24207 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24208 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24209 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24211 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24213 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24215 if test "x$enable_gtktest" = "xyes" ; then
24216 ac_save_CFLAGS="$CFLAGS"
24217 ac_save_LIBS="$LIBS"
24218 CFLAGS="$CFLAGS $GTK_CFLAGS"
24219 LIBS="$GTK_LIBS $LIBS"
24220 rm -f conf.gtktest
24221 if test "$cross_compiling" = yes; then
24222 echo $ac_n "cross compiling; assumed OK... $ac_c"
24223else
24224 cat >conftest.$ac_ext <<_ACEOF
24225/* confdefs.h. */
24226_ACEOF
24227cat confdefs.h >>conftest.$ac_ext
24228cat >>conftest.$ac_ext <<_ACEOF
24229/* end confdefs.h. */
24230
24231#include <gtk/gtk.h>
24232#include <stdio.h>
24233#include <stdlib.h>
24234
24235int
24236main ()
24237{
24238 int major, minor, micro;
24239 char *tmp_version;
24240
24241 system ("touch conf.gtktest");
24242
24243 /* HP/UX 9 (%@#!) writes to sscanf strings */
24244 tmp_version = g_strdup("$min_gtk_version");
24245 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24246 printf("%s, bad version string\n", "$min_gtk_version");
24247 exit(1);
24248 }
24249
24250 if ((gtk_major_version != $gtk_config_major_version) ||
24251 (gtk_minor_version != $gtk_config_minor_version) ||
24252 (gtk_micro_version != $gtk_config_micro_version))
24253 {
24254 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24255 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24256 gtk_major_version, gtk_minor_version, gtk_micro_version);
24257 printf ("*** was found! If pkg-config was correct, then it is best\n");
24258 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24259 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24260 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24261 printf("*** required on your system.\n");
24262 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24263 printf("*** to point to the correct configuration files\n");
24264 }
24265 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24266 (gtk_minor_version != GTK_MINOR_VERSION) ||
24267 (gtk_micro_version != GTK_MICRO_VERSION))
24268 {
24269 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24270 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24271 printf("*** library (version %d.%d.%d)\n",
24272 gtk_major_version, gtk_minor_version, gtk_micro_version);
24273 }
24274 else
24275 {
24276 if ((gtk_major_version > major) ||
24277 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24278 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24279 {
24280 return 0;
24281 }
24282 else
24283 {
24284 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24285 gtk_major_version, gtk_minor_version, gtk_micro_version);
24286 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24287 major, minor, micro);
24288 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24289 printf("***\n");
24290 printf("*** If you have already installed a sufficiently new version, this error\n");
24291 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24292 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24293 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24294 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24295 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24296 printf("*** so that the correct libraries are found at run-time))\n");
24297 }
24298 }
24299 return 1;
24300}
24301
24302_ACEOF
24303rm -f conftest$ac_exeext
24304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24305 (eval $ac_link) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; }; then
24314 :
24315else
24316 echo "$as_me: program exited with status $ac_status" >&5
24317echo "$as_me: failed program was:" >&5
24318sed 's/^/| /' conftest.$ac_ext >&5
24319
24320( exit $ac_status )
24321no_gtk=yes
24322fi
ac1cb8d3 24323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24324fi
24325 CFLAGS="$ac_save_CFLAGS"
24326 LIBS="$ac_save_LIBS"
24327 fi
24328 fi
24329 if test "x$no_gtk" = x ; then
24330 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24331echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24332 wx_cv_lib_gtk=2.0
24333 else
24334 echo "$as_me:$LINENO: result: no" >&5
24335echo "${ECHO_T}no" >&6
24336 if test "$PKG_CONFIG" = "no" ; then
24337 echo "*** A new enough version of pkg-config was not found."
24338 echo "*** See http://pkgconfig.sourceforge.net"
24339 else
24340 if test -f conf.gtktest ; then
24341 :
24342 else
24343 echo "*** Could not run GTK+ test program, checking why..."
24344 ac_save_CFLAGS="$CFLAGS"
24345 ac_save_LIBS="$LIBS"
24346 CFLAGS="$CFLAGS $GTK_CFLAGS"
24347 LIBS="$LIBS $GTK_LIBS"
24348 cat >conftest.$ac_ext <<_ACEOF
24349/* confdefs.h. */
24350_ACEOF
24351cat confdefs.h >>conftest.$ac_ext
24352cat >>conftest.$ac_ext <<_ACEOF
24353/* end confdefs.h. */
24354
24355#include <gtk/gtk.h>
24356#include <stdio.h>
24357
24358int
24359main ()
24360{
24361 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24362 ;
24363 return 0;
24364}
24365_ACEOF
24366rm -f conftest.$ac_objext conftest$ac_exeext
24367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24368 (eval $ac_link) 2>conftest.er1
a848cd7e 24369 ac_status=$?
ac1cb8d3
VS
24370 grep -v '^ *+' conftest.er1 >conftest.err
24371 rm -f conftest.er1
24372 cat conftest.err >&5
a848cd7e
SC
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } &&
9dd0f6c2 24375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24378 ac_status=$?
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; } &&
24381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383 (eval $ac_try) 2>&5
24384 ac_status=$?
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387 echo "*** The test program compiled, but did not run. This usually means"
24388 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24389 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24390 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24391 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24392 echo "*** is required on your system"
24393 echo "***"
24394 echo "*** If you have an old version installed, it is best to remove it, although"
24395 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24396else
24397 echo "$as_me: failed program was:" >&5
24398sed 's/^/| /' conftest.$ac_ext >&5
24399
24400 echo "*** The test program failed to compile or link. See the file config.log for the"
24401 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24402fi
ac1cb8d3
VS
24403rm -f conftest.err conftest.$ac_objext \
24404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24405 CFLAGS="$ac_save_CFLAGS"
24406 LIBS="$ac_save_LIBS"
24407 fi
24408 fi
24409 GTK_CFLAGS=""
24410 GTK_LIBS=""
24411 :
24412 fi
24413
24414
24415 rm -f conf.gtktest
24416
24417 else
24418
24419# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24420if test "${with_gtk_prefix+set}" = set; then
24421 withval="$with_gtk_prefix"
24422 gtk_config_prefix="$withval"
24423else
24424 gtk_config_prefix=""
24425fi;
24426
24427# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24428if test "${with_gtk_exec_prefix+set}" = set; then
24429 withval="$with_gtk_exec_prefix"
24430 gtk_config_exec_prefix="$withval"
24431else
24432 gtk_config_exec_prefix=""
24433fi;
24434# Check whether --enable-gtktest or --disable-gtktest was given.
24435if test "${enable_gtktest+set}" = set; then
24436 enableval="$enable_gtktest"
24437
24438else
24439 enable_gtktest=yes
24440fi;
24441
24442 for module in . $GTK_MODULES
24443 do
24444 case "$module" in
24445 gthread)
24446 gtk_config_args="$gtk_config_args gthread"
24447 ;;
24448 esac
24449 done
24450
24451 if test x$gtk_config_exec_prefix != x ; then
24452 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24453 if test x${GTK_CONFIG+set} != xset ; then
24454 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24455 fi
24456 fi
24457 if test x$gtk_config_prefix != x ; then
24458 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24459 if test x${GTK_CONFIG+set} != xset ; then
24460 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24461 fi
24462 fi
24463
24464 # Extract the first word of "gtk-config", so it can be a program name with args.
24465set dummy gtk-config; ac_word=$2
24466echo "$as_me:$LINENO: checking for $ac_word" >&5
24467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24468if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24470else
24471 case $GTK_CONFIG in
24472 [\\/]* | ?:[\\/]*)
24473 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24474 ;;
24475 *)
24476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24477for as_dir in $PATH
24478do
24479 IFS=$as_save_IFS
24480 test -z "$as_dir" && as_dir=.
24481 for ac_exec_ext in '' $ac_executable_extensions; do
24482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24483 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24485 break 2
24486 fi
24487done
24488done
24489
24490 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24491 ;;
24492esac
24493fi
24494GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24495
24496if test -n "$GTK_CONFIG"; then
24497 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24498echo "${ECHO_T}$GTK_CONFIG" >&6
24499else
24500 echo "$as_me:$LINENO: result: no" >&5
24501echo "${ECHO_T}no" >&6
24502fi
24503
24504 min_gtk_version=1.2.7
24505 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24506echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24507 no_gtk=""
24508 if test "$GTK_CONFIG" = "no" ; then
24509 no_gtk=yes
24510 else
24511 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24512 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24513 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24515 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24517 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24519 if test "x$enable_gtktest" = "xyes" ; then
24520 ac_save_CFLAGS="$CFLAGS"
24521 ac_save_LIBS="$LIBS"
24522 CFLAGS="$CFLAGS $GTK_CFLAGS"
24523 LIBS="$GTK_LIBS $LIBS"
24524 rm -f conf.gtktest
24525 if test "$cross_compiling" = yes; then
24526 echo $ac_n "cross compiling; assumed OK... $ac_c"
24527else
24528 cat >conftest.$ac_ext <<_ACEOF
24529/* confdefs.h. */
24530_ACEOF
24531cat confdefs.h >>conftest.$ac_ext
24532cat >>conftest.$ac_ext <<_ACEOF
24533/* end confdefs.h. */
24534
24535#include <gtk/gtk.h>
24536#include <stdio.h>
24537#include <stdlib.h>
24538
24539int
24540main ()
24541{
24542 int major, minor, micro;
24543 char *tmp_version;
24544
24545 system ("touch conf.gtktest");
24546
24547 /* HP/UX 9 (%@#!) writes to sscanf strings */
24548 tmp_version = g_strdup("$min_gtk_version");
24549 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24550 printf("%s, bad version string\n", "$min_gtk_version");
24551 exit(1);
24552 }
24553
24554 if ((gtk_major_version != $gtk_config_major_version) ||
24555 (gtk_minor_version != $gtk_config_minor_version) ||
24556 (gtk_micro_version != $gtk_config_micro_version))
24557 {
24558 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24559 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24560 gtk_major_version, gtk_minor_version, gtk_micro_version);
24561 printf ("*** was found! If gtk-config was correct, then it is best\n");
24562 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24563 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24564 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24565 printf("*** required on your system.\n");
24566 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24567 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24568 printf("*** before re-running configure\n");
24569 }
24570#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24571 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24572 (gtk_minor_version != GTK_MINOR_VERSION) ||
24573 (gtk_micro_version != GTK_MICRO_VERSION))
24574 {
24575 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24576 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24577 printf("*** library (version %d.%d.%d)\n",
24578 gtk_major_version, gtk_minor_version, gtk_micro_version);
24579 }
24580#endif /* defined (GTK_MAJOR_VERSION) ... */
24581 else
24582 {
24583 if ((gtk_major_version > major) ||
24584 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24585 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24586 {
24587 return 0;
24588 }
24589 else
24590 {
24591 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24592 gtk_major_version, gtk_minor_version, gtk_micro_version);
24593 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24594 major, minor, micro);
24595 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24596 printf("***\n");
24597 printf("*** If you have already installed a sufficiently new version, this error\n");
24598 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24599 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24600 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24601 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24602 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24603 printf("*** so that the correct libraries are found at run-time))\n");
24604 }
24605 }
24606 return 1;
24607}
24608
24609_ACEOF
24610rm -f conftest$ac_exeext
24611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24612 (eval $ac_link) 2>&5
24613 ac_status=$?
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 :
24622else
24623 echo "$as_me: program exited with status $ac_status" >&5
24624echo "$as_me: failed program was:" >&5
24625sed 's/^/| /' conftest.$ac_ext >&5
24626
24627( exit $ac_status )
24628no_gtk=yes
24629fi
ac1cb8d3 24630rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24631fi
24632 CFLAGS="$ac_save_CFLAGS"
24633 LIBS="$ac_save_LIBS"
24634 fi
24635 fi
24636 if test "x$no_gtk" = x ; then
24637 echo "$as_me:$LINENO: result: yes" >&5
24638echo "${ECHO_T}yes" >&6
24639 wx_cv_lib_gtk=1.2.7
24640 else
24641 echo "$as_me:$LINENO: result: no" >&5
24642echo "${ECHO_T}no" >&6
24643 if test "$GTK_CONFIG" = "no" ; then
24644 echo "*** The gtk-config script installed by GTK could not be found"
24645 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24646 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24647 echo "*** full path to gtk-config."
24648 else
24649 if test -f conf.gtktest ; then
24650 :
24651 else
24652 echo "*** Could not run GTK test program, checking why..."
24653 CFLAGS="$CFLAGS $GTK_CFLAGS"
24654 LIBS="$LIBS $GTK_LIBS"
24655 cat >conftest.$ac_ext <<_ACEOF
24656/* confdefs.h. */
24657_ACEOF
24658cat confdefs.h >>conftest.$ac_ext
24659cat >>conftest.$ac_ext <<_ACEOF
24660/* end confdefs.h. */
24661
24662#include <gtk/gtk.h>
24663#include <stdio.h>
24664
24665int
24666main ()
24667{
24668 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24669 ;
24670 return 0;
24671}
24672_ACEOF
24673rm -f conftest.$ac_objext conftest$ac_exeext
24674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24675 (eval $ac_link) 2>conftest.er1
a848cd7e 24676 ac_status=$?
ac1cb8d3
VS
24677 grep -v '^ *+' conftest.er1 >conftest.err
24678 rm -f conftest.er1
24679 cat conftest.err >&5
a848cd7e
SC
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } &&
9dd0f6c2 24682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; } &&
24688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24690 (eval $ac_try) 2>&5
24691 ac_status=$?
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); }; }; then
24694 echo "*** The test program compiled, but did not run. This usually means"
24695 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24696 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24697 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24698 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24699 echo "*** is required on your system"
24700 echo "***"
24701 echo "*** If you have an old version installed, it is best to remove it, although"
24702 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24703 echo "***"
24704 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24705 echo "*** came with the system with the command"
24706 echo "***"
24707 echo "*** rpm --erase --nodeps gtk gtk-devel"
24708else
24709 echo "$as_me: failed program was:" >&5
24710sed 's/^/| /' conftest.$ac_ext >&5
24711
24712 echo "*** The test program failed to compile or link. See the file config.log for the"
24713 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24714 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24715 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24716fi
ac1cb8d3
VS
24717rm -f conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24719 CFLAGS="$ac_save_CFLAGS"
24720 LIBS="$ac_save_LIBS"
24721 fi
24722 fi
24723 GTK_CFLAGS=""
24724 GTK_LIBS=""
24725 :
24726 fi
24727
24728
24729 rm -f conf.gtktest
24730
24731
24732 if test -z "$wx_cv_lib_gtk"; then
24733
24734# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24735if test "${with_gtk_prefix+set}" = set; then
24736 withval="$with_gtk_prefix"
24737 gtk_config_prefix="$withval"
24738else
24739 gtk_config_prefix=""
24740fi;
24741
24742# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24743if test "${with_gtk_exec_prefix+set}" = set; then
24744 withval="$with_gtk_exec_prefix"
24745 gtk_config_exec_prefix="$withval"
24746else
24747 gtk_config_exec_prefix=""
24748fi;
24749# Check whether --enable-gtktest or --disable-gtktest was given.
24750if test "${enable_gtktest+set}" = set; then
24751 enableval="$enable_gtktest"
24752
24753else
24754 enable_gtktest=yes
24755fi;
24756
24757 for module in . $GTK_MODULES
24758 do
24759 case "$module" in
24760 gthread)
24761 gtk_config_args="$gtk_config_args gthread"
24762 ;;
24763 esac
24764 done
24765
24766 if test x$gtk_config_exec_prefix != x ; then
24767 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24768 if test x${GTK_CONFIG+set} != xset ; then
24769 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24770 fi
24771 fi
24772 if test x$gtk_config_prefix != x ; then
24773 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24774 if test x${GTK_CONFIG+set} != xset ; then
24775 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24776 fi
24777 fi
24778
24779 # Extract the first word of "gtk-config", so it can be a program name with args.
24780set dummy gtk-config; ac_word=$2
24781echo "$as_me:$LINENO: checking for $ac_word" >&5
24782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24783if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785else
24786 case $GTK_CONFIG in
24787 [\\/]* | ?:[\\/]*)
24788 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24789 ;;
24790 *)
24791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24792for as_dir in $PATH
24793do
24794 IFS=$as_save_IFS
24795 test -z "$as_dir" && as_dir=.
24796 for ac_exec_ext in '' $ac_executable_extensions; do
24797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24798 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24800 break 2
24801 fi
24802done
24803done
24804
24805 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24806 ;;
24807esac
24808fi
24809GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24810
24811if test -n "$GTK_CONFIG"; then
24812 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24813echo "${ECHO_T}$GTK_CONFIG" >&6
24814else
24815 echo "$as_me:$LINENO: result: no" >&5
24816echo "${ECHO_T}no" >&6
24817fi
24818
24819 min_gtk_version=1.2.3
24820 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24821echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24822 no_gtk=""
24823 if test "$GTK_CONFIG" = "no" ; then
24824 no_gtk=yes
24825 else
24826 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24827 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24828 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24830 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24832 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24834 if test "x$enable_gtktest" = "xyes" ; then
24835 ac_save_CFLAGS="$CFLAGS"
24836 ac_save_LIBS="$LIBS"
24837 CFLAGS="$CFLAGS $GTK_CFLAGS"
24838 LIBS="$GTK_LIBS $LIBS"
24839 rm -f conf.gtktest
24840 if test "$cross_compiling" = yes; then
24841 echo $ac_n "cross compiling; assumed OK... $ac_c"
24842else
24843 cat >conftest.$ac_ext <<_ACEOF
24844/* confdefs.h. */
24845_ACEOF
24846cat confdefs.h >>conftest.$ac_ext
24847cat >>conftest.$ac_ext <<_ACEOF
24848/* end confdefs.h. */
24849
24850#include <gtk/gtk.h>
24851#include <stdio.h>
24852#include <stdlib.h>
24853
24854int
24855main ()
24856{
24857 int major, minor, micro;
24858 char *tmp_version;
24859
24860 system ("touch conf.gtktest");
24861
24862 /* HP/UX 9 (%@#!) writes to sscanf strings */
24863 tmp_version = g_strdup("$min_gtk_version");
24864 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24865 printf("%s, bad version string\n", "$min_gtk_version");
24866 exit(1);
24867 }
24868
24869 if ((gtk_major_version != $gtk_config_major_version) ||
24870 (gtk_minor_version != $gtk_config_minor_version) ||
24871 (gtk_micro_version != $gtk_config_micro_version))
24872 {
24873 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24874 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24875 gtk_major_version, gtk_minor_version, gtk_micro_version);
24876 printf ("*** was found! If gtk-config was correct, then it is best\n");
24877 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24878 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24879 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24880 printf("*** required on your system.\n");
24881 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24882 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24883 printf("*** before re-running configure\n");
24884 }
24885#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24886 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24887 (gtk_minor_version != GTK_MINOR_VERSION) ||
24888 (gtk_micro_version != GTK_MICRO_VERSION))
24889 {
24890 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24891 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24892 printf("*** library (version %d.%d.%d)\n",
24893 gtk_major_version, gtk_minor_version, gtk_micro_version);
24894 }
24895#endif /* defined (GTK_MAJOR_VERSION) ... */
24896 else
24897 {
24898 if ((gtk_major_version > major) ||
24899 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24900 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24901 {
24902 return 0;
24903 }
24904 else
24905 {
24906 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24907 gtk_major_version, gtk_minor_version, gtk_micro_version);
24908 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24909 major, minor, micro);
24910 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24911 printf("***\n");
24912 printf("*** If you have already installed a sufficiently new version, this error\n");
24913 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24914 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24915 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24916 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24917 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24918 printf("*** so that the correct libraries are found at run-time))\n");
24919 }
24920 }
24921 return 1;
24922}
24923
24924_ACEOF
24925rm -f conftest$ac_exeext
24926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24927 (eval $ac_link) 2>&5
24928 ac_status=$?
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; }; then
24936 :
24937else
24938 echo "$as_me: program exited with status $ac_status" >&5
24939echo "$as_me: failed program was:" >&5
24940sed 's/^/| /' conftest.$ac_ext >&5
24941
24942( exit $ac_status )
24943no_gtk=yes
24944fi
ac1cb8d3 24945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24946fi
24947 CFLAGS="$ac_save_CFLAGS"
24948 LIBS="$ac_save_LIBS"
24949 fi
24950 fi
24951 if test "x$no_gtk" = x ; then
24952 echo "$as_me:$LINENO: result: yes" >&5
24953echo "${ECHO_T}yes" >&6
24954 wx_cv_lib_gtk=1.2.3
24955 else
24956 echo "$as_me:$LINENO: result: no" >&5
24957echo "${ECHO_T}no" >&6
24958 if test "$GTK_CONFIG" = "no" ; then
24959 echo "*** The gtk-config script installed by GTK could not be found"
24960 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24961 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24962 echo "*** full path to gtk-config."
24963 else
24964 if test -f conf.gtktest ; then
24965 :
24966 else
24967 echo "*** Could not run GTK test program, checking why..."
24968 CFLAGS="$CFLAGS $GTK_CFLAGS"
24969 LIBS="$LIBS $GTK_LIBS"
24970 cat >conftest.$ac_ext <<_ACEOF
24971/* confdefs.h. */
24972_ACEOF
24973cat confdefs.h >>conftest.$ac_ext
24974cat >>conftest.$ac_ext <<_ACEOF
24975/* end confdefs.h. */
24976
24977#include <gtk/gtk.h>
24978#include <stdio.h>
24979
24980int
24981main ()
24982{
24983 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24984 ;
24985 return 0;
24986}
24987_ACEOF
24988rm -f conftest.$ac_objext conftest$ac_exeext
24989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24990 (eval $ac_link) 2>conftest.er1
a848cd7e 24991 ac_status=$?
ac1cb8d3
VS
24992 grep -v '^ *+' conftest.er1 >conftest.err
24993 rm -f conftest.er1
24994 cat conftest.err >&5
a848cd7e
SC
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } &&
9dd0f6c2 24997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; } &&
25003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25006 ac_status=$?
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; }; then
25009 echo "*** The test program compiled, but did not run. This usually means"
25010 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25011 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25012 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25013 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25014 echo "*** is required on your system"
25015 echo "***"
25016 echo "*** If you have an old version installed, it is best to remove it, although"
25017 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25018 echo "***"
25019 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25020 echo "*** came with the system with the command"
25021 echo "***"
25022 echo "*** rpm --erase --nodeps gtk gtk-devel"
25023else
25024 echo "$as_me: failed program was:" >&5
25025sed 's/^/| /' conftest.$ac_ext >&5
25026
25027 echo "*** The test program failed to compile or link. See the file config.log for the"
25028 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25029 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25030 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25031fi
ac1cb8d3
VS
25032rm -f conftest.err conftest.$ac_objext \
25033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25034 CFLAGS="$ac_save_CFLAGS"
25035 LIBS="$ac_save_LIBS"
25036 fi
25037 fi
25038 GTK_CFLAGS=""
25039 GTK_LIBS=""
25040 :
25041 fi
25042
25043
25044 rm -f conf.gtktest
25045
25046 fi
25047 fi
25048
25049 if test -z "$wx_cv_lib_gtk"; then
25050 wx_cv_lib_gtk=none
25051 else
25052 wx_cv_cflags_gtk=$GTK_CFLAGS
25053 wx_cv_libs_gtk=$GTK_LIBS
25054 fi
25055
25056
25057fi
25058
25059
25060 if test "$gtk_version_cached" = 1; then
25061 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25062echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25063 fi
25064
25065 case "$wx_cv_lib_gtk" in
25066 2.0) WXGTK20=1
25067 TOOLKIT_VERSION=2
25068 ;;
25069 1.2.7) WXGTK127=1
25070 WXGTK12=1
25071 ;;
25072 1.2.3) WXGTK12=1
25073 ;;
25074 *) { { echo "$as_me:$LINENO: error:
25075Please check that gtk-config is in path, the directory
25076where GTK+ libraries are installed (returned by
25077'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25078equivalent variable and GTK+ is version 1.2.3 or above.
25079 " >&5
25080echo "$as_me: error:
25081Please check that gtk-config is in path, the directory
25082where GTK+ libraries are installed (returned by
25083'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25084equivalent variable and GTK+ is version 1.2.3 or above.
25085 " >&2;}
25086 { (exit 1); exit 1; }; }
25087 ;;
25088 esac
25089
25090 if test "$WXGTK20" = 1; then
304205f1
VS
25091 save_CFLAGS="$CFLAGS"
25092 save_LIBS="$LIBS"
9d271838
VZ
25093 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25094 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25095
9755e73b 25096
304205f1
VS
25097for ac_func in pango_font_family_is_monospace
25098do
25099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25100echo "$as_me:$LINENO: checking for $ac_func" >&5
25101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25102if eval "test \"\${$as_ac_var+set}\" = set"; then
25103 echo $ECHO_N "(cached) $ECHO_C" >&6
25104else
25105 cat >conftest.$ac_ext <<_ACEOF
25106/* confdefs.h. */
25107_ACEOF
25108cat confdefs.h >>conftest.$ac_ext
25109cat >>conftest.$ac_ext <<_ACEOF
25110/* end confdefs.h. */
25111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25113#define $ac_func innocuous_$ac_func
25114
25115/* System header to define __stub macros and hopefully few prototypes,
25116 which can conflict with char $ac_func (); below.
25117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25118 <limits.h> exists even on freestanding compilers. */
25119
25120#ifdef __STDC__
25121# include <limits.h>
25122#else
25123# include <assert.h>
25124#endif
25125
25126#undef $ac_func
25127
25128/* Override any gcc2 internal prototype to avoid an error. */
25129#ifdef __cplusplus
25130extern "C"
25131{
25132#endif
25133/* We use char because int might match the return type of a gcc2
25134 builtin and then its argument prototype would still apply. */
25135char $ac_func ();
25136/* The GNU C library defines this for functions which it implements
25137 to always fail with ENOSYS. Some functions are actually named
25138 something starting with __ and the normal name is an alias. */
25139#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25140choke me
25141#else
25142char (*f) () = $ac_func;
25143#endif
25144#ifdef __cplusplus
25145}
25146#endif
25147
25148int
25149main ()
25150{
25151return f != $ac_func;
25152 ;
25153 return 0;
25154}
25155_ACEOF
25156rm -f conftest.$ac_objext conftest$ac_exeext
25157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25158 (eval $ac_link) 2>conftest.er1
25159 ac_status=$?
25160 grep -v '^ *+' conftest.er1 >conftest.err
25161 rm -f conftest.er1
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } &&
9dd0f6c2 25165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167 (eval $ac_try) 2>&5
25168 ac_status=$?
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); }; } &&
25171 { ac_try='test -s conftest$ac_exeext'
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; }; then
25177 eval "$as_ac_var=yes"
25178else
25179 echo "$as_me: failed program was:" >&5
25180sed 's/^/| /' conftest.$ac_ext >&5
25181
25182eval "$as_ac_var=no"
25183fi
25184rm -f conftest.err conftest.$ac_objext \
25185 conftest$ac_exeext conftest.$ac_ext
25186fi
25187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25189if test `eval echo '${'$as_ac_var'}'` = yes; then
25190 cat >>confdefs.h <<_ACEOF
25191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25192_ACEOF
25193
25194fi
25195done
25196
9755e73b
VS
25197
25198 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25199echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25200 cat >conftest.$ac_ext <<_ACEOF
25201/* confdefs.h. */
25202_ACEOF
25203cat confdefs.h >>conftest.$ac_ext
25204cat >>conftest.$ac_ext <<_ACEOF
25205/* end confdefs.h. */
25206
25207 #include <gtk/gtk.h>
25208
25209int
25210main ()
25211{
25212
25213 #if !GTK_CHECK_VERSION(2,4,0)
25214 #error "Not GTK+ 2.4"
25215 #endif
25216
25217 ;
25218 return 0;
25219}
25220_ACEOF
25221rm -f conftest.$ac_objext
25222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25223 (eval $ac_compile) 2>conftest.er1
25224 ac_status=$?
25225 grep -v '^ *+' conftest.er1 >conftest.err
25226 rm -f conftest.er1
25227 cat conftest.err >&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } &&
9dd0f6c2 25230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25232 (eval $ac_try) 2>&5
25233 ac_status=$?
25234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); }; } &&
25236 { ac_try='test -s conftest.$ac_objext'
25237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238 (eval $ac_try) 2>&5
25239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); }; }; then
25242
25243 cat >>confdefs.h <<\_ACEOF
25244#define __WXGTK24__ 1
25245_ACEOF
25246
25247 echo "$as_me:$LINENO: result: yes" >&5
25248echo "${ECHO_T}yes" >&6
25249
25250else
25251 echo "$as_me: failed program was:" >&5
25252sed 's/^/| /' conftest.$ac_ext >&5
25253
25254
25255 echo "$as_me:$LINENO: result: no" >&5
25256echo "${ECHO_T}no" >&6
25257
25258fi
25259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25260
304205f1
VS
25261 CFLAGS="$save_CFLAGS"
25262 LIBS="$save_LIBS"
a848cd7e
SC
25263 else
25264 if test "$wxUSE_UNICODE" = "yes"; then
25265 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25266echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25267 wxUSE_UNICODE=no
25268 fi
25269 fi
25270
25271 if test "$USE_DARWIN" != 1; then
25272
25273for ac_func in poll
25274do
25275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25276echo "$as_me:$LINENO: checking for $ac_func" >&5
25277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25278if eval "test \"\${$as_ac_var+set}\" = set"; then
25279 echo $ECHO_N "(cached) $ECHO_C" >&6
25280else
25281 cat >conftest.$ac_ext <<_ACEOF
25282/* confdefs.h. */
25283_ACEOF
25284cat confdefs.h >>conftest.$ac_ext
25285cat >>conftest.$ac_ext <<_ACEOF
25286/* end confdefs.h. */
ac1cb8d3
VS
25287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25289#define $ac_func innocuous_$ac_func
25290
a848cd7e
SC
25291/* System header to define __stub macros and hopefully few prototypes,
25292 which can conflict with char $ac_func (); below.
25293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25294 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25295
a848cd7e
SC
25296#ifdef __STDC__
25297# include <limits.h>
25298#else
25299# include <assert.h>
25300#endif
ac1cb8d3
VS
25301
25302#undef $ac_func
25303
a848cd7e
SC
25304/* Override any gcc2 internal prototype to avoid an error. */
25305#ifdef __cplusplus
25306extern "C"
25307{
25308#endif
25309/* We use char because int might match the return type of a gcc2
25310 builtin and then its argument prototype would still apply. */
25311char $ac_func ();
25312/* The GNU C library defines this for functions which it implements
25313 to always fail with ENOSYS. Some functions are actually named
25314 something starting with __ and the normal name is an alias. */
25315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25316choke me
25317#else
25318char (*f) () = $ac_func;
25319#endif
25320#ifdef __cplusplus
25321}
25322#endif
25323
25324int
25325main ()
25326{
25327return f != $ac_func;
25328 ;
25329 return 0;
25330}
25331_ACEOF
25332rm -f conftest.$ac_objext conftest$ac_exeext
25333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25334 (eval $ac_link) 2>conftest.er1
a848cd7e 25335 ac_status=$?
ac1cb8d3
VS
25336 grep -v '^ *+' conftest.er1 >conftest.err
25337 rm -f conftest.er1
25338 cat conftest.err >&5
a848cd7e
SC
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } &&
9dd0f6c2 25341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; } &&
25347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25349 (eval $ac_try) 2>&5
25350 ac_status=$?
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 eval "$as_ac_var=yes"
25354else
25355 echo "$as_me: failed program was:" >&5
25356sed 's/^/| /' conftest.$ac_ext >&5
25357
25358eval "$as_ac_var=no"
25359fi
ac1cb8d3
VS
25360rm -f conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25362fi
25363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25365if test `eval echo '${'$as_ac_var'}'` = yes; then
25366 cat >>confdefs.h <<_ACEOF
25367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25368_ACEOF
25369
25370fi
25371done
25372
25373 fi
25374
25375 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25376 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25377
25378 AFMINSTALL=afminstall
25379 TOOLKIT=GTK
25380 GUIDIST=GTK_DIST
25381
25382 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25383echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25384if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
25386else
25387 ac_check_lib_save_LIBS=$LIBS
25388LIBS="-lgdk $LIBS"
25389cat >conftest.$ac_ext <<_ACEOF
25390/* confdefs.h. */
25391_ACEOF
25392cat confdefs.h >>conftest.$ac_ext
25393cat >>conftest.$ac_ext <<_ACEOF
25394/* end confdefs.h. */
25395
25396/* Override any gcc2 internal prototype to avoid an error. */
25397#ifdef __cplusplus
25398extern "C"
25399#endif
25400/* We use char because int might match the return type of a gcc2
25401 builtin and then its argument prototype would still apply. */
25402char gdk_im_open ();
25403int
25404main ()
25405{
25406gdk_im_open ();
25407 ;
25408 return 0;
25409}
25410_ACEOF
25411rm -f conftest.$ac_objext conftest$ac_exeext
25412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25413 (eval $ac_link) 2>conftest.er1
a848cd7e 25414 ac_status=$?
ac1cb8d3
VS
25415 grep -v '^ *+' conftest.er1 >conftest.err
25416 rm -f conftest.er1
25417 cat conftest.err >&5
a848cd7e
SC
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } &&
9dd0f6c2 25420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; } &&
25426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; }; then
25432 ac_cv_lib_gdk_gdk_im_open=yes
25433else
25434 echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
25436
25437ac_cv_lib_gdk_gdk_im_open=no
25438fi
ac1cb8d3
VS
25439rm -f conftest.err conftest.$ac_objext \
25440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25441LIBS=$ac_check_lib_save_LIBS
25442fi
25443echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25444echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25445if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25446 cat >>confdefs.h <<\_ACEOF
25447#define HAVE_XIM 1
25448_ACEOF
25449
25450fi
25451
25452
25453
25454 if test "$wxUSE_GPE" = "yes"; then
25455 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25456echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25457
25458ac_find_libraries=
25459for ac_dir in $SEARCH_LIB /usr/lib;
25460 do
25461 for ac_extension in a so sl dylib; do
25462 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25463 ac_find_libraries=$ac_dir
25464 break 2
25465 fi
25466 done
25467 done
25468
25469 if test "$ac_find_libraries" != "" ; then
25470
25471 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25472 result=$?
25473 if test $result = 0; then
25474 ac_path_to_link=""
25475 else
25476 ac_path_to_link=" -L$ac_find_libraries"
25477 fi
25478
25479 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25480 WXGPE=1
25481 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25482echo "${ECHO_T}found at $ac_find_libraries" >&6
25483 else
25484 echo "$as_me:$LINENO: result: not found" >&5
25485echo "${ECHO_T}not found" >&6
25486 fi
25487
25488 fi
25489 fi
25490
25491 if test "$wxUSE_MGL" = 1; then
25492 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25493echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25494 if test "x$MGL_ROOT" = x ; then
25495 echo "$as_me:$LINENO: result: not found" >&5
25496echo "${ECHO_T}not found" >&6
25497 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25498echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25499 { (exit 1); exit 1; }; }
25500 else
25501 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25502echo "${ECHO_T}$MGL_ROOT" >&6
25503 fi
25504
25505 echo "$as_me:$LINENO: checking for libmgl location" >&5
25506echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25507 case "${host}" in
25508 *-*-linux* )
25509 if test "x$wxUSE_SHARED" = xyes ; then
25510 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25511 else
25512 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25513 fi
25514 ;;
25515 *-pc-msdosdjgpp )
25516 mgl_os_candidates="dos32/dj2"
25517 ;;
25518 *)
25519 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25520echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25521 { (exit 1); exit 1; }; }
25522 esac
25523
25524 mgl_lib_type=""
25525 mgl_os=""
25526
25527 for mgl_os_i in $mgl_os_candidates ; do
25528 if test "x$mgl_os" = x ; then
25529 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25530 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25531 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25532 mgl_lib_type=debug
25533 mgl_os=$mgl_os_i
25534 fi
25535 fi
25536 if test "x$mgl_lib_type" = x ; then
25537 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25538 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25539 mgl_lib_type=release
25540 mgl_os=$mgl_os_i
25541 fi
25542 fi
25543 fi
25544 done
25545
25546 if test "x$mgl_os" = x ; then
25547 echo "$as_me:$LINENO: result: not found" >&5
25548echo "${ECHO_T}not found" >&6
25549 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25550echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25551 { (exit 1); exit 1; }; }
25552 fi
25553 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25554echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25555
25556 wxUSE_UNIVERSAL="yes"
25557
25558 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25559 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25560
25561 AFMINSTALL=afminstall
25562 TOOLKIT=MGL
25563 GUIDIST=MGL_DIST
25564 fi
25565
25566 if test "$wxUSE_MICROWIN" = 1; then
25567 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25568echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25569 if test "x$MICROWINDOWS" = x ; then
25570 echo "$as_me:$LINENO: result: not found" >&5
25571echo "${ECHO_T}not found" >&6
25572 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25573echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25574 { (exit 1); exit 1; }; }
25575 else
25576 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25577echo "${ECHO_T}$MICROWINDOWS" >&6
25578 fi
25579
25580 if test -f $MICROWINDOWS/lib/libmwin.a; then
25581 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25582echo "${ECHO_T}MicroWindows' libraries found." >&6
25583 else
25584 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25585echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25586 { (exit 1); exit 1; }; }
25587 fi
25588
25589 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25590 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25591
25592 wxUSE_UNIVERSAL="yes"
25593
25594 AFMINSTALL=afminstall
25595 TOOLKIT=MICROWIN
25596 GUIDIST=MICROWIN_DIST
25597
25598 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25599 fi
25600
74b84332 25601 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25602
25603if test "x$ac_path_x_has_been_run" != xyes; then
25604 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25605echo $ECHO_N "checking for X... $ECHO_C" >&6
25606
9dd0f6c2 25607ac_path_x_has_been_run=yes
a848cd7e
SC
25608
25609# Check whether --with-x or --without-x was given.
25610if test "${with_x+set}" = set; then
25611 withval="$with_x"
25612
25613fi;
25614# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25615if test "x$with_x" = xno; then
25616 # The user explicitly disabled X.
25617 have_x=disabled
25618else
25619 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25620 # Both variables are already set.
25621 have_x=yes
25622 else
25623 if test "${ac_cv_have_x+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25625else
25626 # One or both of the vars are not set, and there is no cached value.
25627ac_x_includes=no ac_x_libraries=no
25628rm -fr conftest.dir
25629if mkdir conftest.dir; then
25630 cd conftest.dir
25631 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25632 cat >Imakefile <<'_ACEOF'
25633acfindx:
25634 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25635_ACEOF
25636 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25638 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25640 for ac_extension in a so sl; do
25641 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25642 test -f $ac_im_libdir/libX11.$ac_extension; then
25643 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25644 fi
25645 done
25646 # Screen out bogus values from the imake configuration. They are
25647 # bogus both because they are the default anyway, and because
25648 # using them would break gcc on systems where it needs fixed includes.
25649 case $ac_im_incroot in
25650 /usr/include) ;;
25651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25652 esac
25653 case $ac_im_usrlibdir in
25654 /usr/lib | /lib) ;;
25655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25656 esac
25657 fi
25658 cd ..
25659 rm -fr conftest.dir
25660fi
25661
25662# Standard set of common directories for X headers.
25663# Check X11 before X11Rn because it is often a symlink to the current release.
25664ac_x_header_dirs='
25665/usr/X11/include
25666/usr/X11R6/include
25667/usr/X11R5/include
25668/usr/X11R4/include
25669
25670/usr/include/X11
25671/usr/include/X11R6
25672/usr/include/X11R5
25673/usr/include/X11R4
25674
25675/usr/local/X11/include
25676/usr/local/X11R6/include
25677/usr/local/X11R5/include
25678/usr/local/X11R4/include
25679
25680/usr/local/include/X11
25681/usr/local/include/X11R6
25682/usr/local/include/X11R5
25683/usr/local/include/X11R4
25684
25685/usr/X386/include
25686/usr/x386/include
25687/usr/XFree86/include/X11
25688
25689/usr/include
25690/usr/local/include
25691/usr/unsupported/include
25692/usr/athena/include
25693/usr/local/x11r5/include
25694/usr/lpp/Xamples/include
25695
25696/usr/openwin/include
25697/usr/openwin/share/include'
25698
25699if test "$ac_x_includes" = no; then
9dd0f6c2 25700 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25701 # First, try using that file with no special directory specified.
25702 cat >conftest.$ac_ext <<_ACEOF
25703/* confdefs.h. */
25704_ACEOF
25705cat confdefs.h >>conftest.$ac_ext
25706cat >>conftest.$ac_ext <<_ACEOF
25707/* end confdefs.h. */
25708#include <X11/Intrinsic.h>
25709_ACEOF
25710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25712 ac_status=$?
25713 grep -v '^ *+' conftest.er1 >conftest.err
25714 rm -f conftest.er1
25715 cat conftest.err >&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } >/dev/null; then
25718 if test -s conftest.err; then
25719 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25721 else
25722 ac_cpp_err=
25723 fi
25724else
25725 ac_cpp_err=yes
25726fi
25727if test -z "$ac_cpp_err"; then
25728 # We can compile using X headers with no special include directory.
25729ac_x_includes=
25730else
25731 echo "$as_me: failed program was:" >&5
25732sed 's/^/| /' conftest.$ac_ext >&5
25733
25734 for ac_dir in $ac_x_header_dirs; do
25735 if test -r "$ac_dir/X11/Intrinsic.h"; then
25736 ac_x_includes=$ac_dir
25737 break
25738 fi
25739done
25740fi
25741rm -f conftest.err conftest.$ac_ext
25742fi # $ac_x_includes = no
25743
25744if test "$ac_x_libraries" = no; then
25745 # Check for the libraries.
25746 # See if we find them without any special options.
25747 # Don't add to $LIBS permanently.
25748 ac_save_LIBS=$LIBS
25749 LIBS="-lXt $LIBS"
25750 cat >conftest.$ac_ext <<_ACEOF
25751/* confdefs.h. */
25752_ACEOF
25753cat confdefs.h >>conftest.$ac_ext
25754cat >>conftest.$ac_ext <<_ACEOF
25755/* end confdefs.h. */
25756#include <X11/Intrinsic.h>
25757int
25758main ()
25759{
25760XtMalloc (0)
25761 ;
25762 return 0;
25763}
25764_ACEOF
25765rm -f conftest.$ac_objext conftest$ac_exeext
25766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25767 (eval $ac_link) 2>conftest.er1
a848cd7e 25768 ac_status=$?
ac1cb8d3
VS
25769 grep -v '^ *+' conftest.er1 >conftest.err
25770 rm -f conftest.er1
25771 cat conftest.err >&5
a848cd7e
SC
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } &&
9dd0f6c2 25774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); }; } &&
25780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; }; then
25786 LIBS=$ac_save_LIBS
25787# We can link X programs with no special library path.
25788ac_x_libraries=
25789else
25790 echo "$as_me: failed program was:" >&5
25791sed 's/^/| /' conftest.$ac_ext >&5
25792
25793LIBS=$ac_save_LIBS
25794for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25795do
25796 # Don't even attempt the hair of trying to link an X program!
25797 for ac_extension in a so sl; do
25798 if test -r $ac_dir/libXt.$ac_extension; then
25799 ac_x_libraries=$ac_dir
25800 break 2
25801 fi
25802 done
25803done
25804fi
ac1cb8d3
VS
25805rm -f conftest.err conftest.$ac_objext \
25806 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25807fi # $ac_x_libraries = no
25808
25809if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25810 # Didn't find X anywhere. Cache the known absence of X.
25811 ac_cv_have_x="have_x=no"
25812else
25813 # Record where we found X for the cache.
25814 ac_cv_have_x="have_x=yes \
ac1cb8d3 25815 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25816fi
25817fi
25818
25819 fi
25820 eval "$ac_cv_have_x"
25821fi # $with_x != no
25822
25823if test "$have_x" != yes; then
25824 echo "$as_me:$LINENO: result: $have_x" >&5
25825echo "${ECHO_T}$have_x" >&6
25826 no_x=yes
25827else
25828 # If each of the values was on the command line, it overrides each guess.
25829 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25830 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25831 # Update the cache value to reflect the command line values.
25832 ac_cv_have_x="have_x=yes \
25833 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
25834 # It might be that x_includes is empty (headers are found in the
25835 # standard search path. Then output the corresponding message
25836 ac_out_x_includes=$x_includes
25837 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25838 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25839echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
25840fi
25841
9dd0f6c2 25842fi
a848cd7e
SC
25843if test "$no_x" = yes; then
25844 # Not all programs may use this symbol, but it does not hurt to define it.
25845
25846cat >>confdefs.h <<\_ACEOF
25847#define X_DISPLAY_MISSING 1
25848_ACEOF
25849
25850 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25851else
25852 if test -n "$x_includes"; then
25853 X_CFLAGS="$X_CFLAGS -I$x_includes"
25854 fi
25855
25856 # It would also be nice to do this for all -L options, not just this one.
25857 if test -n "$x_libraries"; then
25858 X_LIBS="$X_LIBS -L$x_libraries"
25859 # For Solaris; some versions of Sun CC require a space after -R and
25860 # others require no space. Words are not sufficient . . . .
25861 case `(uname -sr) 2>/dev/null` in
25862 "SunOS 5"*)
25863 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25864echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25865 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25866 cat >conftest.$ac_ext <<_ACEOF
25867/* confdefs.h. */
25868_ACEOF
25869cat confdefs.h >>conftest.$ac_ext
25870cat >>conftest.$ac_ext <<_ACEOF
25871/* end confdefs.h. */
25872
25873int
25874main ()
25875{
25876
25877 ;
25878 return 0;
25879}
25880_ACEOF
25881rm -f conftest.$ac_objext conftest$ac_exeext
25882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25883 (eval $ac_link) 2>conftest.er1
a848cd7e 25884 ac_status=$?
ac1cb8d3
VS
25885 grep -v '^ *+' conftest.er1 >conftest.err
25886 rm -f conftest.er1
25887 cat conftest.err >&5
a848cd7e
SC
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } &&
9dd0f6c2 25890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
25896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
25902 ac_R_nospace=yes
25903else
25904 echo "$as_me: failed program was:" >&5
25905sed 's/^/| /' conftest.$ac_ext >&5
25906
25907ac_R_nospace=no
25908fi
ac1cb8d3
VS
25909rm -f conftest.err conftest.$ac_objext \
25910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25911 if test $ac_R_nospace = yes; then
25912 echo "$as_me:$LINENO: result: no" >&5
25913echo "${ECHO_T}no" >&6
25914 X_LIBS="$X_LIBS -R$x_libraries"
25915 else
25916 LIBS="$ac_xsave_LIBS -R $x_libraries"
25917 cat >conftest.$ac_ext <<_ACEOF
25918/* confdefs.h. */
25919_ACEOF
25920cat confdefs.h >>conftest.$ac_ext
25921cat >>conftest.$ac_ext <<_ACEOF
25922/* end confdefs.h. */
25923
25924int
25925main ()
25926{
25927
25928 ;
25929 return 0;
25930}
25931_ACEOF
25932rm -f conftest.$ac_objext conftest$ac_exeext
25933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25934 (eval $ac_link) 2>conftest.er1
a848cd7e 25935 ac_status=$?
ac1cb8d3
VS
25936 grep -v '^ *+' conftest.er1 >conftest.err
25937 rm -f conftest.er1
25938 cat conftest.err >&5
a848cd7e
SC
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } &&
9dd0f6c2 25941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25944 ac_status=$?
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; } &&
25947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); }; }; then
25953 ac_R_space=yes
25954else
25955 echo "$as_me: failed program was:" >&5
25956sed 's/^/| /' conftest.$ac_ext >&5
25957
25958ac_R_space=no
25959fi
ac1cb8d3
VS
25960rm -f conftest.err conftest.$ac_objext \
25961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25962 if test $ac_R_space = yes; then
25963 echo "$as_me:$LINENO: result: yes" >&5
25964echo "${ECHO_T}yes" >&6
25965 X_LIBS="$X_LIBS -R $x_libraries"
25966 else
25967 echo "$as_me:$LINENO: result: neither works" >&5
25968echo "${ECHO_T}neither works" >&6
25969 fi
25970 fi
25971 LIBS=$ac_xsave_LIBS
25972 esac
25973 fi
25974
25975 # Check for system-dependent libraries X programs must link with.
25976 # Do this before checking for the system-independent R6 libraries
25977 # (-lICE), since we may need -lsocket or whatever for X linking.
25978
25979 if test "$ISC" = yes; then
25980 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25981 else
25982 # Martyn Johnson says this is needed for Ultrix, if the X
25983 # libraries were built with DECnet support. And Karl Berry says
25984 # the Alpha needs dnet_stub (dnet does not exist).
25985 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25986 cat >conftest.$ac_ext <<_ACEOF
25987/* confdefs.h. */
25988_ACEOF
25989cat confdefs.h >>conftest.$ac_ext
25990cat >>conftest.$ac_ext <<_ACEOF
25991/* end confdefs.h. */
25992
25993/* Override any gcc2 internal prototype to avoid an error. */
25994#ifdef __cplusplus
25995extern "C"
25996#endif
25997/* We use char because int might match the return type of a gcc2
25998 builtin and then its argument prototype would still apply. */
25999char XOpenDisplay ();
26000int
26001main ()
26002{
26003XOpenDisplay ();
26004 ;
26005 return 0;
26006}
26007_ACEOF
26008rm -f conftest.$ac_objext conftest$ac_exeext
26009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26010 (eval $ac_link) 2>conftest.er1
a848cd7e 26011 ac_status=$?
ac1cb8d3
VS
26012 grep -v '^ *+' conftest.er1 >conftest.err
26013 rm -f conftest.er1
26014 cat conftest.err >&5
a848cd7e
SC
26015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016 (exit $ac_status); } &&
9dd0f6c2 26017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; } &&
26023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); }; }; then
26029 :
26030else
26031 echo "$as_me: failed program was:" >&5
26032sed 's/^/| /' conftest.$ac_ext >&5
26033
26034echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26035echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26036if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26038else
26039 ac_check_lib_save_LIBS=$LIBS
26040LIBS="-ldnet $LIBS"
26041cat >conftest.$ac_ext <<_ACEOF
26042/* confdefs.h. */
26043_ACEOF
26044cat confdefs.h >>conftest.$ac_ext
26045cat >>conftest.$ac_ext <<_ACEOF
26046/* end confdefs.h. */
26047
26048/* Override any gcc2 internal prototype to avoid an error. */
26049#ifdef __cplusplus
26050extern "C"
26051#endif
26052/* We use char because int might match the return type of a gcc2
26053 builtin and then its argument prototype would still apply. */
26054char dnet_ntoa ();
26055int
26056main ()
26057{
26058dnet_ntoa ();
26059 ;
26060 return 0;
26061}
26062_ACEOF
26063rm -f conftest.$ac_objext conftest$ac_exeext
26064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26065 (eval $ac_link) 2>conftest.er1
a848cd7e 26066 ac_status=$?
ac1cb8d3
VS
26067 grep -v '^ *+' conftest.er1 >conftest.err
26068 rm -f conftest.er1
26069 cat conftest.err >&5
a848cd7e
SC
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); } &&
9dd0f6c2 26072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074 (eval $ac_try) 2>&5
26075 ac_status=$?
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; } &&
26078 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 ac_cv_lib_dnet_dnet_ntoa=yes
26085else
26086 echo "$as_me: failed program was:" >&5
26087sed 's/^/| /' conftest.$ac_ext >&5
26088
26089ac_cv_lib_dnet_dnet_ntoa=no
26090fi
ac1cb8d3
VS
26091rm -f conftest.err conftest.$ac_objext \
26092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26093LIBS=$ac_check_lib_save_LIBS
26094fi
26095echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26096echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26097if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26098 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26099fi
26100
26101 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26102 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26103echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26104if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26105 echo $ECHO_N "(cached) $ECHO_C" >&6
26106else
26107 ac_check_lib_save_LIBS=$LIBS
26108LIBS="-ldnet_stub $LIBS"
26109cat >conftest.$ac_ext <<_ACEOF
26110/* confdefs.h. */
26111_ACEOF
26112cat confdefs.h >>conftest.$ac_ext
26113cat >>conftest.$ac_ext <<_ACEOF
26114/* end confdefs.h. */
26115
26116/* Override any gcc2 internal prototype to avoid an error. */
26117#ifdef __cplusplus
26118extern "C"
26119#endif
26120/* We use char because int might match the return type of a gcc2
26121 builtin and then its argument prototype would still apply. */
26122char dnet_ntoa ();
26123int
26124main ()
26125{
26126dnet_ntoa ();
26127 ;
26128 return 0;
26129}
26130_ACEOF
26131rm -f conftest.$ac_objext conftest$ac_exeext
26132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26133 (eval $ac_link) 2>conftest.er1
a848cd7e 26134 ac_status=$?
ac1cb8d3
VS
26135 grep -v '^ *+' conftest.er1 >conftest.err
26136 rm -f conftest.er1
26137 cat conftest.err >&5
a848cd7e
SC
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); } &&
9dd0f6c2 26140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26153else
26154 echo "$as_me: failed program was:" >&5
26155sed 's/^/| /' conftest.$ac_ext >&5
26156
26157ac_cv_lib_dnet_stub_dnet_ntoa=no
26158fi
ac1cb8d3
VS
26159rm -f conftest.err conftest.$ac_objext \
26160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26161LIBS=$ac_check_lib_save_LIBS
26162fi
26163echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26164echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26165if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26166 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26167fi
26168
26169 fi
26170fi
ac1cb8d3
VS
26171rm -f conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26173 LIBS="$ac_xsave_LIBS"
26174
26175 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26176 # to get the SysV transport functions.
26177 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26178 # needs -lnsl.
26179 # The nsl library prevents programs from opening the X display
26180 # on Irix 5.2, according to T.E. Dickey.
26181 # The functions gethostbyname, getservbyname, and inet_addr are
26182 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26183 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26184echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26185if test "${ac_cv_func_gethostbyname+set}" = set; then
26186 echo $ECHO_N "(cached) $ECHO_C" >&6
26187else
26188 cat >conftest.$ac_ext <<_ACEOF
26189/* confdefs.h. */
26190_ACEOF
26191cat confdefs.h >>conftest.$ac_ext
26192cat >>conftest.$ac_ext <<_ACEOF
26193/* end confdefs.h. */
ac1cb8d3
VS
26194/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26196#define gethostbyname innocuous_gethostbyname
26197
a848cd7e
SC
26198/* System header to define __stub macros and hopefully few prototypes,
26199 which can conflict with char gethostbyname (); below.
26200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26201 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26202
a848cd7e
SC
26203#ifdef __STDC__
26204# include <limits.h>
26205#else
26206# include <assert.h>
26207#endif
ac1cb8d3
VS
26208
26209#undef gethostbyname
26210
a848cd7e
SC
26211/* Override any gcc2 internal prototype to avoid an error. */
26212#ifdef __cplusplus
26213extern "C"
26214{
26215#endif
26216/* We use char because int might match the return type of a gcc2
26217 builtin and then its argument prototype would still apply. */
26218char gethostbyname ();
26219/* The GNU C library defines this for functions which it implements
26220 to always fail with ENOSYS. Some functions are actually named
26221 something starting with __ and the normal name is an alias. */
26222#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26223choke me
26224#else
26225char (*f) () = gethostbyname;
26226#endif
26227#ifdef __cplusplus
26228}
26229#endif
26230
26231int
26232main ()
26233{
26234return f != gethostbyname;
26235 ;
26236 return 0;
26237}
26238_ACEOF
26239rm -f conftest.$ac_objext conftest$ac_exeext
26240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26241 (eval $ac_link) 2>conftest.er1
a848cd7e 26242 ac_status=$?
ac1cb8d3
VS
26243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
a848cd7e
SC
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } &&
9dd0f6c2 26248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; } &&
26254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; }; then
26260 ac_cv_func_gethostbyname=yes
26261else
26262 echo "$as_me: failed program was:" >&5
26263sed 's/^/| /' conftest.$ac_ext >&5
26264
26265ac_cv_func_gethostbyname=no
26266fi
ac1cb8d3
VS
26267rm -f conftest.err conftest.$ac_objext \
26268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26269fi
26270echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26271echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26272
26273 if test $ac_cv_func_gethostbyname = no; then
26274 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26275echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26276if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26278else
26279 ac_check_lib_save_LIBS=$LIBS
26280LIBS="-lnsl $LIBS"
26281cat >conftest.$ac_ext <<_ACEOF
26282/* confdefs.h. */
26283_ACEOF
26284cat confdefs.h >>conftest.$ac_ext
26285cat >>conftest.$ac_ext <<_ACEOF
26286/* end confdefs.h. */
26287
26288/* Override any gcc2 internal prototype to avoid an error. */
26289#ifdef __cplusplus
26290extern "C"
26291#endif
26292/* We use char because int might match the return type of a gcc2
26293 builtin and then its argument prototype would still apply. */
26294char gethostbyname ();
26295int
26296main ()
26297{
26298gethostbyname ();
26299 ;
26300 return 0;
26301}
26302_ACEOF
26303rm -f conftest.$ac_objext conftest$ac_exeext
26304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26305 (eval $ac_link) 2>conftest.er1
26306 ac_status=$?
26307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } &&
9dd0f6c2 26312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; } &&
26318 { ac_try='test -s conftest$ac_exeext'
26319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324 ac_cv_lib_nsl_gethostbyname=yes
26325else
26326 echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329ac_cv_lib_nsl_gethostbyname=no
26330fi
26331rm -f conftest.err conftest.$ac_objext \
26332 conftest$ac_exeext conftest.$ac_ext
26333LIBS=$ac_check_lib_save_LIBS
26334fi
26335echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26336echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26337if test $ac_cv_lib_nsl_gethostbyname = yes; then
26338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26339fi
26340
26341 if test $ac_cv_lib_nsl_gethostbyname = no; then
26342 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26343echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26344if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26345 echo $ECHO_N "(cached) $ECHO_C" >&6
26346else
26347 ac_check_lib_save_LIBS=$LIBS
26348LIBS="-lbsd $LIBS"
26349cat >conftest.$ac_ext <<_ACEOF
26350/* confdefs.h. */
26351_ACEOF
26352cat confdefs.h >>conftest.$ac_ext
26353cat >>conftest.$ac_ext <<_ACEOF
26354/* end confdefs.h. */
26355
26356/* Override any gcc2 internal prototype to avoid an error. */
26357#ifdef __cplusplus
26358extern "C"
26359#endif
26360/* We use char because int might match the return type of a gcc2
26361 builtin and then its argument prototype would still apply. */
26362char gethostbyname ();
26363int
26364main ()
26365{
26366gethostbyname ();
26367 ;
26368 return 0;
26369}
26370_ACEOF
26371rm -f conftest.$ac_objext conftest$ac_exeext
26372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26373 (eval $ac_link) 2>conftest.er1
a848cd7e 26374 ac_status=$?
ac1cb8d3
VS
26375 grep -v '^ *+' conftest.er1 >conftest.err
26376 rm -f conftest.er1
26377 cat conftest.err >&5
a848cd7e
SC
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); } &&
9dd0f6c2 26380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26385 (exit $ac_status); }; } &&
26386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; }; then
26392 ac_cv_lib_bsd_gethostbyname=yes
26393else
26394 echo "$as_me: failed program was:" >&5
26395sed 's/^/| /' conftest.$ac_ext >&5
26396
26397ac_cv_lib_bsd_gethostbyname=no
26398fi
ac1cb8d3
VS
26399rm -f conftest.err conftest.$ac_objext \
26400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26401LIBS=$ac_check_lib_save_LIBS
26402fi
26403echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26404echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26405if test $ac_cv_lib_bsd_gethostbyname = yes; then
26406 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26407fi
26408
26409 fi
26410 fi
26411
26412 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26413 # socket/setsockopt and other routines are undefined under SCO ODT
26414 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26415 # on later versions), says Simon Leinen: it contains gethostby*
26416 # variants that don't use the name server (or something). -lsocket
26417 # must be given before -lnsl if both are needed. We assume that
26418 # if connect needs -lnsl, so does gethostbyname.
26419 echo "$as_me:$LINENO: checking for connect" >&5
26420echo $ECHO_N "checking for connect... $ECHO_C" >&6
26421if test "${ac_cv_func_connect+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26423else
26424 cat >conftest.$ac_ext <<_ACEOF
26425/* confdefs.h. */
26426_ACEOF
26427cat confdefs.h >>conftest.$ac_ext
26428cat >>conftest.$ac_ext <<_ACEOF
26429/* end confdefs.h. */
ac1cb8d3
VS
26430/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26432#define connect innocuous_connect
26433
a848cd7e
SC
26434/* System header to define __stub macros and hopefully few prototypes,
26435 which can conflict with char connect (); below.
26436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26437 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26438
a848cd7e
SC
26439#ifdef __STDC__
26440# include <limits.h>
26441#else
26442# include <assert.h>
26443#endif
ac1cb8d3
VS
26444
26445#undef connect
26446
a848cd7e
SC
26447/* Override any gcc2 internal prototype to avoid an error. */
26448#ifdef __cplusplus
26449extern "C"
26450{
26451#endif
26452/* We use char because int might match the return type of a gcc2
26453 builtin and then its argument prototype would still apply. */
26454char connect ();
26455/* The GNU C library defines this for functions which it implements
26456 to always fail with ENOSYS. Some functions are actually named
26457 something starting with __ and the normal name is an alias. */
26458#if defined (__stub_connect) || defined (__stub___connect)
26459choke me
26460#else
26461char (*f) () = connect;
26462#endif
26463#ifdef __cplusplus
26464}
26465#endif
26466
26467int
26468main ()
26469{
26470return f != connect;
26471 ;
26472 return 0;
26473}
26474_ACEOF
26475rm -f conftest.$ac_objext conftest$ac_exeext
26476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26477 (eval $ac_link) 2>conftest.er1
a848cd7e 26478 ac_status=$?
ac1cb8d3
VS
26479 grep -v '^ *+' conftest.er1 >conftest.err
26480 rm -f conftest.er1
26481 cat conftest.err >&5
a848cd7e
SC
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } &&
9dd0f6c2 26484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; } &&
26490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; }; then
26496 ac_cv_func_connect=yes
26497else
26498 echo "$as_me: failed program was:" >&5
26499sed 's/^/| /' conftest.$ac_ext >&5
26500
26501ac_cv_func_connect=no
26502fi
ac1cb8d3
VS
26503rm -f conftest.err conftest.$ac_objext \
26504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26505fi
26506echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26507echo "${ECHO_T}$ac_cv_func_connect" >&6
26508
26509 if test $ac_cv_func_connect = no; then
26510 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26511echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26512if test "${ac_cv_lib_socket_connect+set}" = set; then
26513 echo $ECHO_N "(cached) $ECHO_C" >&6
26514else
26515 ac_check_lib_save_LIBS=$LIBS
26516LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26517cat >conftest.$ac_ext <<_ACEOF
26518/* confdefs.h. */
26519_ACEOF
26520cat confdefs.h >>conftest.$ac_ext
26521cat >>conftest.$ac_ext <<_ACEOF
26522/* end confdefs.h. */
26523
26524/* Override any gcc2 internal prototype to avoid an error. */
26525#ifdef __cplusplus
26526extern "C"
26527#endif
26528/* We use char because int might match the return type of a gcc2
26529 builtin and then its argument prototype would still apply. */
26530char connect ();
26531int
26532main ()
26533{
26534connect ();
26535 ;
26536 return 0;
26537}
26538_ACEOF
26539rm -f conftest.$ac_objext conftest$ac_exeext
26540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26541 (eval $ac_link) 2>conftest.er1
a848cd7e 26542 ac_status=$?
ac1cb8d3
VS
26543 grep -v '^ *+' conftest.er1 >conftest.err
26544 rm -f conftest.er1
26545 cat conftest.err >&5
a848cd7e
SC
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); } &&
9dd0f6c2 26548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26550 (eval $ac_try) 2>&5
26551 ac_status=$?
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); }; } &&
26554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26556 (eval $ac_try) 2>&5
26557 ac_status=$?
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); }; }; then
26560 ac_cv_lib_socket_connect=yes
26561else
26562 echo "$as_me: failed program was:" >&5
26563sed 's/^/| /' conftest.$ac_ext >&5
26564
26565ac_cv_lib_socket_connect=no
26566fi
ac1cb8d3
VS
26567rm -f conftest.err conftest.$ac_objext \
26568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26569LIBS=$ac_check_lib_save_LIBS
26570fi
26571echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26572echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26573if test $ac_cv_lib_socket_connect = yes; then
26574 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26575fi
26576
26577 fi
26578
26579 # Guillermo Gomez says -lposix is necessary on A/UX.
26580 echo "$as_me:$LINENO: checking for remove" >&5
26581echo $ECHO_N "checking for remove... $ECHO_C" >&6
26582if test "${ac_cv_func_remove+set}" = set; then
26583 echo $ECHO_N "(cached) $ECHO_C" >&6
26584else
26585 cat >conftest.$ac_ext <<_ACEOF
26586/* confdefs.h. */
26587_ACEOF
26588cat confdefs.h >>conftest.$ac_ext
26589cat >>conftest.$ac_ext <<_ACEOF
26590/* end confdefs.h. */
ac1cb8d3
VS
26591/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26593#define remove innocuous_remove
26594
a848cd7e
SC
26595/* System header to define __stub macros and hopefully few prototypes,
26596 which can conflict with char remove (); below.
26597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26598 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26599
a848cd7e
SC
26600#ifdef __STDC__
26601# include <limits.h>
26602#else
26603# include <assert.h>
26604#endif
ac1cb8d3
VS
26605
26606#undef remove
26607
a848cd7e
SC
26608/* Override any gcc2 internal prototype to avoid an error. */
26609#ifdef __cplusplus
26610extern "C"
26611{
26612#endif
26613/* We use char because int might match the return type of a gcc2
26614 builtin and then its argument prototype would still apply. */
26615char remove ();
26616/* The GNU C library defines this for functions which it implements
26617 to always fail with ENOSYS. Some functions are actually named
26618 something starting with __ and the normal name is an alias. */
26619#if defined (__stub_remove) || defined (__stub___remove)
26620choke me
26621#else
26622char (*f) () = remove;
26623#endif
26624#ifdef __cplusplus
26625}
26626#endif
26627
26628int
26629main ()
26630{
26631return f != remove;
26632 ;
26633 return 0;
26634}
26635_ACEOF
26636rm -f conftest.$ac_objext conftest$ac_exeext
26637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26638 (eval $ac_link) 2>conftest.er1
a848cd7e 26639 ac_status=$?
ac1cb8d3
VS
26640 grep -v '^ *+' conftest.er1 >conftest.err
26641 rm -f conftest.er1
26642 cat conftest.err >&5
a848cd7e
SC
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } &&
9dd0f6c2 26645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; } &&
26651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653 (eval $ac_try) 2>&5
26654 ac_status=$?
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; }; then
26657 ac_cv_func_remove=yes
26658else
26659 echo "$as_me: failed program was:" >&5
26660sed 's/^/| /' conftest.$ac_ext >&5
26661
26662ac_cv_func_remove=no
26663fi
ac1cb8d3
VS
26664rm -f conftest.err conftest.$ac_objext \
26665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26666fi
26667echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26668echo "${ECHO_T}$ac_cv_func_remove" >&6
26669
26670 if test $ac_cv_func_remove = no; then
26671 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26672echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26673if test "${ac_cv_lib_posix_remove+set}" = set; then
26674 echo $ECHO_N "(cached) $ECHO_C" >&6
26675else
26676 ac_check_lib_save_LIBS=$LIBS
26677LIBS="-lposix $LIBS"
26678cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h. */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h. */
26684
26685/* Override any gcc2 internal prototype to avoid an error. */
26686#ifdef __cplusplus
26687extern "C"
26688#endif
26689/* We use char because int might match the return type of a gcc2
26690 builtin and then its argument prototype would still apply. */
26691char remove ();
26692int
26693main ()
26694{
26695remove ();
26696 ;
26697 return 0;
26698}
26699_ACEOF
26700rm -f conftest.$ac_objext conftest$ac_exeext
26701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26702 (eval $ac_link) 2>conftest.er1
a848cd7e 26703 ac_status=$?
ac1cb8d3
VS
26704 grep -v '^ *+' conftest.er1 >conftest.err
26705 rm -f conftest.er1
26706 cat conftest.err >&5
a848cd7e
SC
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } &&
9dd0f6c2 26709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26711 (eval $ac_try) 2>&5
26712 ac_status=$?
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); }; } &&
26715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26717 (eval $ac_try) 2>&5
26718 ac_status=$?
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); }; }; then
26721 ac_cv_lib_posix_remove=yes
26722else
26723 echo "$as_me: failed program was:" >&5
26724sed 's/^/| /' conftest.$ac_ext >&5
26725
26726ac_cv_lib_posix_remove=no
26727fi
ac1cb8d3
VS
26728rm -f conftest.err conftest.$ac_objext \
26729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26730LIBS=$ac_check_lib_save_LIBS
26731fi
26732echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26733echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26734if test $ac_cv_lib_posix_remove = yes; then
26735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26736fi
26737
26738 fi
26739
26740 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26741 echo "$as_me:$LINENO: checking for shmat" >&5
26742echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26743if test "${ac_cv_func_shmat+set}" = set; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26745else
26746 cat >conftest.$ac_ext <<_ACEOF
26747/* confdefs.h. */
26748_ACEOF
26749cat confdefs.h >>conftest.$ac_ext
26750cat >>conftest.$ac_ext <<_ACEOF
26751/* end confdefs.h. */
ac1cb8d3
VS
26752/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26754#define shmat innocuous_shmat
26755
a848cd7e
SC
26756/* System header to define __stub macros and hopefully few prototypes,
26757 which can conflict with char shmat (); below.
26758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26759 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26760
a848cd7e
SC
26761#ifdef __STDC__
26762# include <limits.h>
26763#else
26764# include <assert.h>
26765#endif
ac1cb8d3
VS
26766
26767#undef shmat
26768
a848cd7e
SC
26769/* Override any gcc2 internal prototype to avoid an error. */
26770#ifdef __cplusplus
26771extern "C"
26772{
26773#endif
26774/* We use char because int might match the return type of a gcc2
26775 builtin and then its argument prototype would still apply. */
26776char shmat ();
26777/* The GNU C library defines this for functions which it implements
26778 to always fail with ENOSYS. Some functions are actually named
26779 something starting with __ and the normal name is an alias. */
26780#if defined (__stub_shmat) || defined (__stub___shmat)
26781choke me
26782#else
26783char (*f) () = shmat;
26784#endif
26785#ifdef __cplusplus
26786}
26787#endif
26788
26789int
26790main ()
26791{
26792return f != shmat;
26793 ;
26794 return 0;
26795}
26796_ACEOF
26797rm -f conftest.$ac_objext conftest$ac_exeext
26798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26799 (eval $ac_link) 2>conftest.er1
a848cd7e 26800 ac_status=$?
ac1cb8d3
VS
26801 grep -v '^ *+' conftest.er1 >conftest.err
26802 rm -f conftest.er1
26803 cat conftest.err >&5
a848cd7e
SC
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); } &&
9dd0f6c2 26806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26809 ac_status=$?
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; }; then
26818 ac_cv_func_shmat=yes
26819else
26820 echo "$as_me: failed program was:" >&5
26821sed 's/^/| /' conftest.$ac_ext >&5
26822
26823ac_cv_func_shmat=no
26824fi
ac1cb8d3
VS
26825rm -f conftest.err conftest.$ac_objext \
26826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26827fi
26828echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26829echo "${ECHO_T}$ac_cv_func_shmat" >&6
26830
26831 if test $ac_cv_func_shmat = no; then
26832 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26833echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26834if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26835 echo $ECHO_N "(cached) $ECHO_C" >&6
26836else
26837 ac_check_lib_save_LIBS=$LIBS
26838LIBS="-lipc $LIBS"
26839cat >conftest.$ac_ext <<_ACEOF
26840/* confdefs.h. */
26841_ACEOF
26842cat confdefs.h >>conftest.$ac_ext
26843cat >>conftest.$ac_ext <<_ACEOF
26844/* end confdefs.h. */
26845
26846/* Override any gcc2 internal prototype to avoid an error. */
26847#ifdef __cplusplus
26848extern "C"
26849#endif
26850/* We use char because int might match the return type of a gcc2
26851 builtin and then its argument prototype would still apply. */
26852char shmat ();
26853int
26854main ()
26855{
26856shmat ();
26857 ;
26858 return 0;
26859}
26860_ACEOF
26861rm -f conftest.$ac_objext conftest$ac_exeext
26862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26863 (eval $ac_link) 2>conftest.er1
a848cd7e 26864 ac_status=$?
ac1cb8d3
VS
26865 grep -v '^ *+' conftest.er1 >conftest.err
26866 rm -f conftest.er1
26867 cat conftest.err >&5
a848cd7e
SC
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } &&
9dd0f6c2 26870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872 (eval $ac_try) 2>&5
26873 ac_status=$?
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); }; } &&
26876 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26879 ac_status=$?
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; }; then
26882 ac_cv_lib_ipc_shmat=yes
26883else
26884 echo "$as_me: failed program was:" >&5
26885sed 's/^/| /' conftest.$ac_ext >&5
26886
26887ac_cv_lib_ipc_shmat=no
26888fi
ac1cb8d3
VS
26889rm -f conftest.err conftest.$ac_objext \
26890 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26891LIBS=$ac_check_lib_save_LIBS
26892fi
26893echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26894echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26895if test $ac_cv_lib_ipc_shmat = yes; then
26896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26897fi
26898
26899 fi
26900 fi
26901
26902 # Check for libraries that X11R6 Xt/Xaw programs need.
26903 ac_save_LDFLAGS=$LDFLAGS
26904 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26905 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26906 # check for ICE first), but we must link in the order -lSM -lICE or
26907 # we get undefined symbols. So assume we have SM if we have ICE.
26908 # These have to be linked with before -lX11, unlike the other
26909 # libraries we check for below, so use a different variable.
26910 # John Interrante, Karl Berry
26911 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26912echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26913if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26915else
26916 ac_check_lib_save_LIBS=$LIBS
26917LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26918cat >conftest.$ac_ext <<_ACEOF
26919/* confdefs.h. */
26920_ACEOF
26921cat confdefs.h >>conftest.$ac_ext
26922cat >>conftest.$ac_ext <<_ACEOF
26923/* end confdefs.h. */
26924
26925/* Override any gcc2 internal prototype to avoid an error. */
26926#ifdef __cplusplus
26927extern "C"
26928#endif
26929/* We use char because int might match the return type of a gcc2
26930 builtin and then its argument prototype would still apply. */
26931char IceConnectionNumber ();
26932int
26933main ()
26934{
26935IceConnectionNumber ();
26936 ;
26937 return 0;
26938}
26939_ACEOF
26940rm -f conftest.$ac_objext conftest$ac_exeext
26941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26942 (eval $ac_link) 2>conftest.er1
a848cd7e 26943 ac_status=$?
ac1cb8d3
VS
26944 grep -v '^ *+' conftest.er1 >conftest.err
26945 rm -f conftest.er1
26946 cat conftest.err >&5
a848cd7e
SC
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); } &&
9dd0f6c2 26949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951 (eval $ac_try) 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; } &&
26955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 ac_cv_lib_ICE_IceConnectionNumber=yes
26962else
26963 echo "$as_me: failed program was:" >&5
26964sed 's/^/| /' conftest.$ac_ext >&5
26965
26966ac_cv_lib_ICE_IceConnectionNumber=no
26967fi
ac1cb8d3
VS
26968rm -f conftest.err conftest.$ac_objext \
26969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26970LIBS=$ac_check_lib_save_LIBS
26971fi
26972echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26973echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26974if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26975 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26976fi
26977
26978 LDFLAGS=$ac_save_LDFLAGS
26979
26980fi
26981
26982
26983 if test "$no_x" = "yes"; then
26984 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26985echo "$as_me: error: X11 not found" >&2;}
26986 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26987 fi
26988
74b84332
VS
26989 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26990 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26991 AFMINSTALL=afminstall
26992 COMPILED_X_PROGRAM=0
26993
74b84332
VS
26994 fi
26995
26996 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26997 if test "$wxUSE_NANOX" = "yes"; then
26998 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26999echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27000 if test "x$MICROWIN" = x ; then
27001 echo "$as_me:$LINENO: result: not found" >&5
27002echo "${ECHO_T}not found" >&6
27003 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27004echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27005 { (exit 1); exit 1; }; }
27006 else
27007 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27008echo "${ECHO_T}$MICROWIN" >&6
27009 cat >>confdefs.h <<\_ACEOF
27010#define wxUSE_NANOX 1
27011_ACEOF
27012
27013 fi
27014 fi
27015
27016 if test "$wxUSE_UNICODE" = "yes"; then
27017
27018 succeeded=no
27019
27020 if test -z "$PKG_CONFIG"; then
27021 # Extract the first word of "pkg-config", so it can be a program name with args.
27022set dummy pkg-config; ac_word=$2
27023echo "$as_me:$LINENO: checking for $ac_word" >&5
27024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27025if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27027else
27028 case $PKG_CONFIG in
27029 [\\/]* | ?:[\\/]*)
27030 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27031 ;;
27032 *)
27033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27034for as_dir in $PATH
27035do
27036 IFS=$as_save_IFS
27037 test -z "$as_dir" && as_dir=.
27038 for ac_exec_ext in '' $ac_executable_extensions; do
27039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27040 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27042 break 2
27043 fi
27044done
27045done
27046
27047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27048 ;;
27049esac
27050fi
27051PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27052
27053if test -n "$PKG_CONFIG"; then
27054 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27055echo "${ECHO_T}$PKG_CONFIG" >&6
27056else
27057 echo "$as_me:$LINENO: result: no" >&5
27058echo "${ECHO_T}no" >&6
27059fi
27060
27061 fi
27062
27063 if test "$PKG_CONFIG" = "no" ; then
27064 echo "*** The pkg-config script could not be found. Make sure it is"
27065 echo "*** in your path, or set the PKG_CONFIG environment variable"
27066 echo "*** to the full path to pkg-config."
27067 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27068 else
27069 PKG_CONFIG_MIN_VERSION=0.9.0
27070 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27071 echo "$as_me:$LINENO: checking for pangox" >&5
27072echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27073
27074 if $PKG_CONFIG --exists "pangox" ; then
27075 echo "$as_me:$LINENO: result: yes" >&5
27076echo "${ECHO_T}yes" >&6
27077 succeeded=yes
27078
27079 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27080echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27081 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27082 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27083echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27084
27085 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27086echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27087 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27088 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27089echo "${ECHO_T}$PANGOX_LIBS" >&6
27090 else
27091 PANGOX_CFLAGS=""
27092 PANGOX_LIBS=""
27093 ## If we have a custom action on failure, don't print errors, but
27094 ## do set a variable so people can do so.
27095 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27096
27097 fi
27098
27099
27100
27101 else
27102 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27103 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27104 fi
27105 fi
27106
27107 if test $succeeded = yes; then
27108
27109 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27110 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27111
27112 else
27113
27114 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27115echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27116 { (exit 1); exit 1; }; }
27117
27118
27119 fi
27120
27121
27122 succeeded=no
27123
27124 if test -z "$PKG_CONFIG"; then
27125 # Extract the first word of "pkg-config", so it can be a program name with args.
27126set dummy pkg-config; ac_word=$2
27127echo "$as_me:$LINENO: checking for $ac_word" >&5
27128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27129if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27130 echo $ECHO_N "(cached) $ECHO_C" >&6
27131else
27132 case $PKG_CONFIG in
27133 [\\/]* | ?:[\\/]*)
27134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27135 ;;
27136 *)
27137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27138for as_dir in $PATH
27139do
27140 IFS=$as_save_IFS
27141 test -z "$as_dir" && as_dir=.
27142 for ac_exec_ext in '' $ac_executable_extensions; do
27143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27146 break 2
27147 fi
27148done
27149done
27150
27151 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27152 ;;
27153esac
27154fi
27155PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27156
27157if test -n "$PKG_CONFIG"; then
27158 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27159echo "${ECHO_T}$PKG_CONFIG" >&6
27160else
27161 echo "$as_me:$LINENO: result: no" >&5
27162echo "${ECHO_T}no" >&6
27163fi
27164
27165 fi
27166
27167 if test "$PKG_CONFIG" = "no" ; then
27168 echo "*** The pkg-config script could not be found. Make sure it is"
27169 echo "*** in your path, or set the PKG_CONFIG environment variable"
27170 echo "*** to the full path to pkg-config."
27171 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27172 else
27173 PKG_CONFIG_MIN_VERSION=0.9.0
27174 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27175 echo "$as_me:$LINENO: checking for pangoft2" >&5
27176echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27177
27178 if $PKG_CONFIG --exists "pangoft2" ; then
27179 echo "$as_me:$LINENO: result: yes" >&5
27180echo "${ECHO_T}yes" >&6
27181 succeeded=yes
27182
27183 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27184echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27185 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27186 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27187echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27188
27189 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27190echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27191 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27192 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27193echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27194 else
27195 PANGOFT2_CFLAGS=""
27196 PANGOFT2_LIBS=""
27197 ## If we have a custom action on failure, don't print errors, but
27198 ## do set a variable so people can do so.
27199 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27200
27201 fi
27202
27203
27204
27205 else
27206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27208 fi
27209 fi
27210
27211 if test $succeeded = yes; then
27212
27213 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27214 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27215
27216 else
27217
27218 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27219echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27220 wxUSE_PRINTING_ARCHITECTURE="no"
27221
27222
27223 fi
27224
27225
27226 succeeded=no
27227
27228 if test -z "$PKG_CONFIG"; then
27229 # Extract the first word of "pkg-config", so it can be a program name with args.
27230set dummy pkg-config; ac_word=$2
27231echo "$as_me:$LINENO: checking for $ac_word" >&5
27232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27233if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27235else
27236 case $PKG_CONFIG in
27237 [\\/]* | ?:[\\/]*)
27238 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27239 ;;
27240 *)
27241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27242for as_dir in $PATH
27243do
27244 IFS=$as_save_IFS
27245 test -z "$as_dir" && as_dir=.
27246 for ac_exec_ext in '' $ac_executable_extensions; do
27247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27248 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27250 break 2
27251 fi
27252done
27253done
27254
27255 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27256 ;;
27257esac
27258fi
27259PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27260
27261if test -n "$PKG_CONFIG"; then
27262 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27263echo "${ECHO_T}$PKG_CONFIG" >&6
27264else
27265 echo "$as_me:$LINENO: result: no" >&5
27266echo "${ECHO_T}no" >&6
27267fi
27268
27269 fi
27270
27271 if test "$PKG_CONFIG" = "no" ; then
27272 echo "*** The pkg-config script could not be found. Make sure it is"
27273 echo "*** in your path, or set the PKG_CONFIG environment variable"
27274 echo "*** to the full path to pkg-config."
27275 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27276 else
27277 PKG_CONFIG_MIN_VERSION=0.9.0
27278 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27279 echo "$as_me:$LINENO: checking for pangoxft" >&5
27280echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27281
27282 if $PKG_CONFIG --exists "pangoxft" ; then
27283 echo "$as_me:$LINENO: result: yes" >&5
27284echo "${ECHO_T}yes" >&6
27285 succeeded=yes
27286
27287 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27288echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27289 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27290 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27291echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27292
27293 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27294echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27295 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27296 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27297echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27298 else
27299 PANGOXFT_CFLAGS=""
27300 PANGOXFT_LIBS=""
27301 ## If we have a custom action on failure, don't print errors, but
27302 ## do set a variable so people can do so.
27303 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27304
27305 fi
27306
27307
27308
27309 else
27310 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27311 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27312 fi
27313 fi
27314
27315 if test $succeeded = yes; then
27316
4ae1af05
MB
27317 cat >>confdefs.h <<\_ACEOF
27318#define HAVE_PANGO_XFT 1
27319_ACEOF
27320
a848cd7e
SC
27321 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27322 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27323
27324 else
27325
27326 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27327echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27328
27329
27330 fi
27331
304205f1
VS
27332 save_CFLAGS="$CFLAGS"
27333 save_LIBS="$LIBS"
27334 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27335 LIBS="$LIBS $PANGOX_LIBS"
27336
27337for ac_func in pango_font_family_is_monospace
27338do
27339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27340echo "$as_me:$LINENO: checking for $ac_func" >&5
27341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27342if eval "test \"\${$as_ac_var+set}\" = set"; then
27343 echo $ECHO_N "(cached) $ECHO_C" >&6
27344else
27345 cat >conftest.$ac_ext <<_ACEOF
27346/* confdefs.h. */
27347_ACEOF
27348cat confdefs.h >>conftest.$ac_ext
27349cat >>conftest.$ac_ext <<_ACEOF
27350/* end confdefs.h. */
27351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27353#define $ac_func innocuous_$ac_func
27354
27355/* System header to define __stub macros and hopefully few prototypes,
27356 which can conflict with char $ac_func (); below.
27357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27358 <limits.h> exists even on freestanding compilers. */
27359
27360#ifdef __STDC__
27361# include <limits.h>
27362#else
27363# include <assert.h>
27364#endif
27365
27366#undef $ac_func
27367
27368/* Override any gcc2 internal prototype to avoid an error. */
27369#ifdef __cplusplus
27370extern "C"
27371{
27372#endif
27373/* We use char because int might match the return type of a gcc2
27374 builtin and then its argument prototype would still apply. */
27375char $ac_func ();
27376/* The GNU C library defines this for functions which it implements
27377 to always fail with ENOSYS. Some functions are actually named
27378 something starting with __ and the normal name is an alias. */
27379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27380choke me
27381#else
27382char (*f) () = $ac_func;
27383#endif
27384#ifdef __cplusplus
27385}
27386#endif
27387
27388int
27389main ()
27390{
27391return f != $ac_func;
27392 ;
27393 return 0;
27394}
27395_ACEOF
27396rm -f conftest.$ac_objext conftest$ac_exeext
27397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27398 (eval $ac_link) 2>conftest.er1
27399 ac_status=$?
27400 grep -v '^ *+' conftest.er1 >conftest.err
27401 rm -f conftest.er1
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } &&
9dd0f6c2 27405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27408 ac_status=$?
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; } &&
27411 { ac_try='test -s conftest$ac_exeext'
27412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27413 (eval $ac_try) 2>&5
27414 ac_status=$?
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; }; then
27417 eval "$as_ac_var=yes"
27418else
27419 echo "$as_me: failed program was:" >&5
27420sed 's/^/| /' conftest.$ac_ext >&5
27421
27422eval "$as_ac_var=no"
27423fi
27424rm -f conftest.err conftest.$ac_objext \
27425 conftest$ac_exeext conftest.$ac_ext
27426fi
27427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27428echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27429if test `eval echo '${'$as_ac_var'}'` = yes; then
27430 cat >>confdefs.h <<_ACEOF
27431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27432_ACEOF
27433
27434fi
27435done
27436
27437 CFLAGS="$save_CFLAGS"
27438 LIBS="$save_LIBS"
a848cd7e
SC
27439 fi
27440
27441 wxUSE_UNIVERSAL="yes"
27442
27443 if test "$wxUSE_NANOX" = "yes"; then
27444 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27445 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"
27446 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27447 else
27448 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27449 fi
27450
a848cd7e
SC
27451 TOOLKIT=X11
27452 GUIDIST=X11_DIST
27453 fi
27454
27455 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27456 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27457echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27458
74b84332
VS
27459ac_find_includes=
27460for ac_dir in $SEARCH_INCLUDE /usr/include;
27461 do
27462 if test -f "$ac_dir/Xm/Xm.h"; then
27463 ac_find_includes=$ac_dir
27464 break
27465 fi
27466 done
a848cd7e 27467
74b84332
VS
27468 if test "$ac_find_includes" != "" ; then
27469 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27470echo "${ECHO_T}found in $ac_find_includes" >&6
27471
27472 if test "x$ac_find_includes" = "x/usr/include"; then
27473 ac_path_to_include=""
27474 else
27475 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27476 result=$?
27477 if test $result = 0; then
27478 ac_path_to_include=""
27479 else
27480 ac_path_to_include=" -I$ac_find_includes"
27481 fi
a848cd7e
SC
27482 fi
27483
74b84332
VS
27484 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27485 else
27486 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27487/* confdefs.h. */
27488_ACEOF
27489cat confdefs.h >>conftest.$ac_ext
27490cat >>conftest.$ac_ext <<_ACEOF
27491/* end confdefs.h. */
27492
74b84332
VS
27493 #include <Xm/Xm.h>
27494
a848cd7e
SC
27495int
27496main ()
27497{
27498
74b84332
VS
27499 int version;
27500 version = xmUseVersion;
27501
a848cd7e
SC
27502 ;
27503 return 0;
27504}
27505_ACEOF
74b84332
VS
27506rm -f conftest.$ac_objext
27507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27508 (eval $ac_compile) 2>conftest.er1
a848cd7e 27509 ac_status=$?
ac1cb8d3
VS
27510 grep -v '^ *+' conftest.er1 >conftest.err
27511 rm -f conftest.er1
27512 cat conftest.err >&5
a848cd7e
SC
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
9dd0f6c2 27515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517 (eval $ac_try) 2>&5
27518 ac_status=$?
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; } &&
74b84332 27521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27523 (eval $ac_try) 2>&5
27524 ac_status=$?
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); }; }; then
74b84332
VS
27527
27528 echo "$as_me:$LINENO: result: found in default search path" >&5
27529echo "${ECHO_T}found in default search path" >&6
27530 COMPILED_X_PROGRAM=1
27531
a848cd7e
SC
27532else
27533 echo "$as_me: failed program was:" >&5
27534sed 's/^/| /' conftest.$ac_ext >&5
27535
a848cd7e 27536
74b84332
VS
27537 echo "$as_me:$LINENO: result: no" >&5
27538echo "${ECHO_T}no" >&6
27539 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27540echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27541 { (exit 1); exit 1; }; }
a848cd7e 27542
a848cd7e 27543
a848cd7e 27544fi
74b84332
VS
27545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27546 fi
27547
27548 if test "$COMPILED_X_PROGRAM" = 0; then
27549 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27550echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27551
27552ac_find_libraries=
27553for ac_dir in $SEARCH_LIB /usr/lib;
27554 do
27555 for ac_extension in a so sl dylib; do
27556 if test -f "$ac_dir/libXm.$ac_extension"; then
27557 ac_find_libraries=$ac_dir
27558 break 2
a848cd7e 27559 fi
74b84332
VS
27560 done
27561 done
a848cd7e 27562
74b84332
VS
27563 if test "$ac_find_libraries" != "" ; then
27564 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27565echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27566
74b84332
VS
27567
27568 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27569 result=$?
27570 if test $result = 0; then
27571 ac_path_to_link=""
a848cd7e 27572 else
74b84332
VS
27573 ac_path_to_link=" -L$ac_find_libraries"
27574 fi
27575
27576 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27577 else
27578 save_CFLAGS=$CFLAGS
27579 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27580
27581 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27582/* confdefs.h. */
27583_ACEOF
27584cat confdefs.h >>conftest.$ac_ext
27585cat >>conftest.$ac_ext <<_ACEOF
27586/* end confdefs.h. */
27587
74b84332
VS
27588 #include <Xm/Xm.h>
27589
a848cd7e
SC
27590int
27591main ()
27592{
74b84332
VS
27593
27594 int version;
27595 version = xmUseVersion;
27596
a848cd7e
SC
27597 ;
27598 return 0;
27599}
27600_ACEOF
74b84332
VS
27601rm -f conftest.$ac_objext
27602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27603 (eval $ac_compile) 2>conftest.er1
a848cd7e 27604 ac_status=$?
ac1cb8d3
VS
27605 grep -v '^ *+' conftest.er1 >conftest.err
27606 rm -f conftest.er1
27607 cat conftest.err >&5
a848cd7e
SC
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } &&
9dd0f6c2 27610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27613 ac_status=$?
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; } &&
74b84332 27616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618 (eval $ac_try) 2>&5
27619 ac_status=$?
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; }; then
74b84332
VS
27622
27623 echo "$as_me:$LINENO: result: found in default search path" >&5
27624echo "${ECHO_T}found in default search path" >&6
27625 COMPILED_X_PROGRAM=1
27626
a848cd7e
SC
27627else
27628 echo "$as_me: failed program was:" >&5
27629sed 's/^/| /' conftest.$ac_ext >&5
27630
74b84332
VS
27631
27632 echo "$as_me:$LINENO: result: no" >&5
27633echo "${ECHO_T}no" >&6
27634 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27635echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27636 { (exit 1); exit 1; }; }
27637
27638
27639fi
27640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27641
27642 CFLAGS=$save_CFLAGS
27643 fi
27644 fi
27645
27646 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27647echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27648 libp_link=""
27649 libsm_ice_link=""
27650 libs_found=0
27651 for libp in "" " -lXp"; do
27652 if test "$libs_found" = "0"; then
27653 for libsm_ice in "" " -lSM -lICE"; do
27654 if test "$libs_found" = "0"; then
27655 save_LIBS="$LIBS"
27656 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27657 save_CFLAGS=$CFLAGS
27658 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27659
27660 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27661/* confdefs.h. */
27662_ACEOF
27663cat confdefs.h >>conftest.$ac_ext
27664cat >>conftest.$ac_ext <<_ACEOF
27665/* end confdefs.h. */
27666
74b84332
VS
27667 #include <Xm/Xm.h>
27668 #include <Xm/List.h>
27669
a848cd7e
SC
27670int
27671main ()
27672{
74b84332
VS
27673
27674 XmString string = NULL;
27675 Widget w = NULL;
27676 int position = 0;
27677 XmListAddItem(w, string, position);
27678
a848cd7e
SC
27679 ;
27680 return 0;
27681}
27682_ACEOF
27683rm -f conftest.$ac_objext conftest$ac_exeext
27684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27685 (eval $ac_link) 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); }; } &&
27698 { ac_try='test -s conftest$ac_exeext'
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
27704
27705 libp_link="$libp"
27706 libsm_ice_link="$libsm_ice"
27707 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27708echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27709 libs_found=1
27710
27711else
27712 echo "$as_me: failed program was:" >&5
27713sed 's/^/| /' conftest.$ac_ext >&5
27714
27715
27716
27717fi
ac1cb8d3
VS
27718rm -f conftest.err conftest.$ac_objext \
27719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27720
27721 LIBS="$save_LIBS"
27722 CFLAGS=$save_CFLAGS
27723 fi
27724 done
27725 fi
27726 done
27727
27728 if test "$libs_found" = "0"; then
27729 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27730echo "${ECHO_T}can't find the right libraries" >&6
27731 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27732echo "$as_me: error: can't link a simple motif program" >&2;}
27733 { (exit 1); exit 1; }; }
27734 fi
27735
27736 save_CFLAGS=$CFLAGS
27737 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27738 echo "$as_me:$LINENO: checking for Motif 2" >&5
27739echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27740 cat >conftest.$ac_ext <<_ACEOF
27741/* confdefs.h. */
27742_ACEOF
27743cat confdefs.h >>conftest.$ac_ext
27744cat >>conftest.$ac_ext <<_ACEOF
27745/* end confdefs.h. */
27746
27747 #include <Xm/Xm.h>
27748
27749int
27750main ()
27751{
27752
27753 #if XmVersion < 2000
27754 #error "Not Motif 2"
27755 #endif
27756
27757 ;
27758 return 0;
27759}
27760_ACEOF
27761rm -f conftest.$ac_objext
27762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27763 (eval $ac_compile) 2>conftest.er1
a848cd7e 27764 ac_status=$?
ac1cb8d3
VS
27765 grep -v '^ *+' conftest.er1 >conftest.err
27766 rm -f conftest.er1
27767 cat conftest.err >&5
a848cd7e
SC
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } &&
9dd0f6c2 27770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782
27783 cat >>confdefs.h <<\_ACEOF
27784#define __WXMOTIF20__ 1
27785_ACEOF
27786
27787 echo "$as_me:$LINENO: result: found" >&5
27788echo "${ECHO_T}found" >&6
27789
27790else
27791 echo "$as_me: failed program was:" >&5
27792sed 's/^/| /' conftest.$ac_ext >&5
27793
27794
27795 cat >>confdefs.h <<\_ACEOF
27796#define __WXMOTIF20__ 0
27797_ACEOF
27798
27799 echo "$as_me:$LINENO: result: not found" >&5
27800echo "${ECHO_T}not found" >&6
27801
27802fi
ac1cb8d3 27803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27804 CFLAGS=$save_CFLAGS
27805
27806 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27807 TOOLKIT=MOTIF
27808 GUIDIST=MOTIF_DIST
27809 fi
27810
74b84332 27811 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27812 if test "$wxUSE_LIBXPM" = "sys"; then
27813 echo "$as_me:$LINENO: checking for Xpm library" >&5
27814echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27815
27816ac_find_libraries=
27817for ac_dir in $SEARCH_LIB /usr/lib;
27818 do
27819 for ac_extension in a so sl dylib; do
27820 if test -f "$ac_dir/libXpm.$ac_extension"; then
27821 ac_find_libraries=$ac_dir
27822 break 2
27823 fi
27824 done
27825 done
27826
27827 if test "$ac_find_libraries" != "" ; then
27828
27829 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27830 result=$?
27831 if test $result = 0; then
27832 ac_path_to_link=""
27833 else
27834 ac_path_to_link=" -L$ac_find_libraries"
27835 fi
27836
27837 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27838 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27839echo "${ECHO_T}found at $ac_find_libraries" >&6
27840
27841 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27842echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27843if test "${wx_cv_x11_xpm_h+set}" = set; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845else
27846
27847 save_CFLAGS=$CFLAGS
27848 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27849
27850 cat >conftest.$ac_ext <<_ACEOF
27851/* confdefs.h. */
27852_ACEOF
27853cat confdefs.h >>conftest.$ac_ext
27854cat >>conftest.$ac_ext <<_ACEOF
27855/* end confdefs.h. */
27856
27857 #include <X11/xpm.h>
27858
27859int
27860main ()
27861{
27862
27863 int version;
27864 version = XpmLibraryVersion();
27865
27866 ;
27867 return 0;
27868}
27869_ACEOF
27870rm -f conftest.$ac_objext
27871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27872 (eval $ac_compile) 2>conftest.er1
a848cd7e 27873 ac_status=$?
ac1cb8d3
VS
27874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
a848cd7e
SC
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
9dd0f6c2 27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; } &&
27885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27888 ac_status=$?
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; }; then
27891 wx_cv_x11_xpm_h=yes
27892else
27893 echo "$as_me: failed program was:" >&5
27894sed 's/^/| /' conftest.$ac_ext >&5
27895
27896wx_cv_x11_xpm_h=no
27897
27898fi
ac1cb8d3 27899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27900
27901 CFLAGS=$save_CFLAGS
27902
27903
27904fi
27905echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27906echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27907
27908 if test $wx_cv_x11_xpm_h = "yes"; then
27909 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27910 cat >>confdefs.h <<\_ACEOF
27911#define wxHAVE_LIB_XPM 1
27912_ACEOF
27913
27914 else
27915 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27916echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27917 fi
27918 fi
27919
27920 fi
27921
27922 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27923echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27924if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27926else
27927 ac_check_lib_save_LIBS=$LIBS
27928LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27929cat >conftest.$ac_ext <<_ACEOF
27930/* confdefs.h. */
27931_ACEOF
27932cat confdefs.h >>conftest.$ac_ext
27933cat >>conftest.$ac_ext <<_ACEOF
27934/* end confdefs.h. */
27935
27936/* Override any gcc2 internal prototype to avoid an error. */
27937#ifdef __cplusplus
27938extern "C"
27939#endif
27940/* We use char because int might match the return type of a gcc2
27941 builtin and then its argument prototype would still apply. */
27942char XShapeQueryExtension ();
27943int
27944main ()
27945{
27946XShapeQueryExtension ();
27947 ;
27948 return 0;
27949}
27950_ACEOF
27951rm -f conftest.$ac_objext conftest$ac_exeext
27952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27953 (eval $ac_link) 2>conftest.er1
a848cd7e 27954 ac_status=$?
ac1cb8d3
VS
27955 grep -v '^ *+' conftest.er1 >conftest.err
27956 rm -f conftest.er1
27957 cat conftest.err >&5
a848cd7e
SC
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
9dd0f6c2 27960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27962 (eval $ac_try) 2>&5
27963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; } &&
27966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27969 ac_status=$?
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; }; then
27972 ac_cv_lib_Xext_XShapeQueryExtension=yes
27973else
27974 echo "$as_me: failed program was:" >&5
27975sed 's/^/| /' conftest.$ac_ext >&5
27976
27977ac_cv_lib_Xext_XShapeQueryExtension=no
27978fi
ac1cb8d3
VS
27979rm -f conftest.err conftest.$ac_objext \
27980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27981LIBS=$ac_check_lib_save_LIBS
27982fi
27983echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27984echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27985if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27986
27987 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27988 wxHAVE_XEXT_LIB=1
27989
27990fi
27991
27992
27993 if test "$wxHAVE_XEXT_LIB" = 1; then
27994 save_CFLAGS="$CFLAGS"
27995 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27996
27997 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27998echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27999 cat >conftest.$ac_ext <<_ACEOF
28000/* confdefs.h. */
28001_ACEOF
28002cat confdefs.h >>conftest.$ac_ext
28003cat >>conftest.$ac_ext <<_ACEOF
28004/* end confdefs.h. */
28005
28006 #include <X11/Xlib.h>
28007 #include <X11/extensions/shape.h>
28008
28009int
28010main ()
28011{
28012
28013 int dummy1, dummy2;
28014 XShapeQueryExtension((Display*)NULL,
28015 (int*)NULL, (int*)NULL);
28016
28017 ;
28018 return 0;
28019}
28020_ACEOF
28021rm -f conftest.$ac_objext
28022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28023 (eval $ac_compile) 2>conftest.er1
a848cd7e 28024 ac_status=$?
ac1cb8d3
VS
28025 grep -v '^ *+' conftest.er1 >conftest.err
28026 rm -f conftest.er1
28027 cat conftest.err >&5
a848cd7e
SC
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); } &&
9dd0f6c2 28030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032 (eval $ac_try) 2>&5
28033 ac_status=$?
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; } &&
28036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038 (eval $ac_try) 2>&5
28039 ac_status=$?
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); }; }; then
28042
28043 cat >>confdefs.h <<\_ACEOF
28044#define HAVE_XSHAPE 1
28045_ACEOF
28046
28047 echo "$as_me:$LINENO: result: found" >&5
28048echo "${ECHO_T}found" >&6
28049
28050else
28051 echo "$as_me: failed program was:" >&5
28052sed 's/^/| /' conftest.$ac_ext >&5
28053
28054
28055 echo "$as_me:$LINENO: result: not found" >&5
28056echo "${ECHO_T}not found" >&6
28057
28058fi
ac1cb8d3 28059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28060 CFLAGS="$save_CFLAGS"
28061
28062 fi
28063 fi
28064
28065 if test "$wxUSE_MAC" = 1; then
28066 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28067echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28068 if test "$GCC" = yes; then
28069 echo "$as_me:$LINENO: result: gcc" >&5
28070echo "${ECHO_T}gcc" >&6
28071 CPPFLAGS_PASCAL="-fpascal-strings"
28072 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28073 echo "$as_me:$LINENO: result: xlc" >&5
28074echo "${ECHO_T}xlc" >&6
28075 CPPFLAGS_PASCAL="-qmacpstr"
28076 else
28077 echo "$as_me:$LINENO: result: none" >&5
28078echo "${ECHO_T}none" >&6
28079 fi
28080
1e9e8aba
DE
28081 if test "x$wxUSE_UNIX" = "xyes"; then
28082 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28083 else
28084 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28085 fi
a848cd7e 28086
a848cd7e
SC
28087 TOOLKIT=MAC
28088 GUIDIST=MACX_DIST
dd21ced8 28089 WXBASEPORT="_carbon"
a848cd7e
SC
28090 fi
28091
28092 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28093 TOOLKIT=COCOA
28094 GUIDIST=COCOA_DIST
28095 fi
28096
28097 if test "$wxUSE_PM" = 1; then
28098 TOOLKIT=PM
de59c161
RD
28099 GUIDIST=PM_DIST
28100 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28101echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28102if test "${wx_cv_spbcdata+set}" = set; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28104else
28105
28106 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28107/* confdefs.h. */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h. */
28112
28113 #define INCL_PM
28114 #include <os2.h>
28115
28116int
28117main ()
28118{
28119
28120 SPBCDATA test;
28121
28122 ;
28123 return 0;
28124}
28125_ACEOF
28126rm -f conftest.$ac_objext
28127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28128 (eval $ac_compile) 2>conftest.er1
de59c161 28129 ac_status=$?
ac1cb8d3
VS
28130 grep -v '^ *+' conftest.er1 >conftest.err
28131 rm -f conftest.er1
28132 cat conftest.err >&5
de59c161
RD
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } &&
9dd0f6c2 28135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28137 (eval $ac_try) 2>&5
28138 ac_status=$?
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); }; } &&
28141 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143 (eval $ac_try) 2>&5
28144 ac_status=$?
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); }; }; then
28147 wx_cv_spbcdata=yes
28148else
28149 echo "$as_me: failed program was:" >&5
28150sed 's/^/| /' conftest.$ac_ext >&5
28151
28152wx_cv_spbcdata=no
28153
28154fi
ac1cb8d3 28155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28156
28157
28158fi
28159echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28160echo "${ECHO_T}$wx_cv_spbcdata" >&6
28161
28162 if test $wx_cv_spbcdata = "yes"; then
28163 cat >>confdefs.h <<\_ACEOF
28164#define HAVE_SPBCDATA 1
28165_ACEOF
28166
28167 fi
a848cd7e
SC
28168 fi
28169
28170 if test "$TOOLKIT" = "PM" ; then
28171 TOOLKIT_DIR="os2"
28172 else
28173 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28174 fi
28175
a848cd7e 28176 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28177 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28178 WIDGET_SET=univ
a848cd7e
SC
28179 fi
28180
28181 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28182 DISTDIR="wx\$(TOOLKIT)"
28183else
28184 USE_GUI=0
28185
28186 TOOLKIT_DIR="base"
28187
28188 if test "$USE_WIN32" = 1 ; then
a848cd7e 28189 TOOLKIT="MSW"
a848cd7e
SC
28190 fi
28191
a848cd7e
SC
28192 GUIDIST="BASE_DIST"
28193 DISTDIR="wxBase"
28194fi
28195
28196
28197
28198
28199IODBC_C_SRC=""
28200
28201
28202if test "$TOOLKIT" != "MSW" ; then
28203
28204 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28205
28206 if test "${ac_cv_header_sql_h+set}" = set; then
28207 echo "$as_me:$LINENO: checking for sql.h" >&5
28208echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28209if test "${ac_cv_header_sql_h+set}" = set; then
28210 echo $ECHO_N "(cached) $ECHO_C" >&6
28211fi
28212echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28213echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28214else
28215 # Is the header compilable?
28216echo "$as_me:$LINENO: checking sql.h usability" >&5
28217echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28218cat >conftest.$ac_ext <<_ACEOF
28219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
28224$ac_includes_default
28225#include <sql.h>
28226_ACEOF
28227rm -f conftest.$ac_objext
28228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28229 (eval $ac_compile) 2>conftest.er1
a848cd7e 28230 ac_status=$?
ac1cb8d3
VS
28231 grep -v '^ *+' conftest.er1 >conftest.err
28232 rm -f conftest.er1
28233 cat conftest.err >&5
a848cd7e
SC
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
9dd0f6c2 28236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; } &&
28242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28244 (eval $ac_try) 2>&5
28245 ac_status=$?
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; }; then
28248 ac_header_compiler=yes
28249else
28250 echo "$as_me: failed program was:" >&5
28251sed 's/^/| /' conftest.$ac_ext >&5
28252
28253ac_header_compiler=no
28254fi
ac1cb8d3 28255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28257echo "${ECHO_T}$ac_header_compiler" >&6
28258
28259# Is the header present?
28260echo "$as_me:$LINENO: checking sql.h presence" >&5
28261echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28262cat >conftest.$ac_ext <<_ACEOF
28263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268#include <sql.h>
28269_ACEOF
28270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28272 ac_status=$?
28273 grep -v '^ *+' conftest.er1 >conftest.err
28274 rm -f conftest.er1
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } >/dev/null; then
28278 if test -s conftest.err; then
28279 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28281 else
28282 ac_cpp_err=
28283 fi
28284else
28285 ac_cpp_err=yes
28286fi
28287if test -z "$ac_cpp_err"; then
28288 ac_header_preproc=yes
28289else
28290 echo "$as_me: failed program was:" >&5
28291sed 's/^/| /' conftest.$ac_ext >&5
28292
28293 ac_header_preproc=no
28294fi
28295rm -f conftest.err conftest.$ac_ext
28296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28297echo "${ECHO_T}$ac_header_preproc" >&6
28298
28299# So? What about this header?
ac1cb8d3
VS
28300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28301 yes:no: )
a848cd7e
SC
28302 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28303echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28304 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28305echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28306 ac_header_preproc=yes
a848cd7e 28307 ;;
ac1cb8d3 28308 no:yes:* )
a848cd7e
SC
28309 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28310echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28311 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28312echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28313 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28314echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28315 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28316echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28317 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28318echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28319 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28320echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28321 (
28322 cat <<\_ASBOX
ac1cb8d3
VS
28323## ----------------------------------------- ##
28324## Report this to wx-dev@lists.wxwidgets.org ##
28325## ----------------------------------------- ##
a848cd7e
SC
28326_ASBOX
28327 ) |
28328 sed "s/^/$as_me: WARNING: /" >&2
28329 ;;
28330esac
28331echo "$as_me:$LINENO: checking for sql.h" >&5
28332echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28333if test "${ac_cv_header_sql_h+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28335else
28336 ac_cv_header_sql_h=$ac_header_preproc
28337fi
28338echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28339echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28340
28341fi
28342if test $ac_cv_header_sql_h = yes; then
28343 found_sql_h=1
28344fi
28345
28346
28347 if test "x$found_sql_h" = "x1" ; then
28348 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28349echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28350if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28351 echo $ECHO_N "(cached) $ECHO_C" >&6
28352else
28353 ac_check_lib_save_LIBS=$LIBS
28354LIBS="-liodbc $LIBS"
28355cat >conftest.$ac_ext <<_ACEOF
28356/* confdefs.h. */
28357_ACEOF
28358cat confdefs.h >>conftest.$ac_ext
28359cat >>conftest.$ac_ext <<_ACEOF
28360/* end confdefs.h. */
28361
28362/* Override any gcc2 internal prototype to avoid an error. */
28363#ifdef __cplusplus
28364extern "C"
28365#endif
28366/* We use char because int might match the return type of a gcc2
28367 builtin and then its argument prototype would still apply. */
28368char SQLAllocEnv ();
28369int
28370main ()
28371{
28372SQLAllocEnv ();
28373 ;
28374 return 0;
28375}
28376_ACEOF
28377rm -f conftest.$ac_objext conftest$ac_exeext
28378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28379 (eval $ac_link) 2>conftest.er1
a848cd7e 28380 ac_status=$?
ac1cb8d3
VS
28381 grep -v '^ *+' conftest.er1 >conftest.err
28382 rm -f conftest.er1
28383 cat conftest.err >&5
a848cd7e
SC
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); } &&
9dd0f6c2 28386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; } &&
28392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28394 (eval $ac_try) 2>&5
28395 ac_status=$?
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; }; then
28398 ac_cv_lib_iodbc_SQLAllocEnv=yes
28399else
28400 echo "$as_me: failed program was:" >&5
28401sed 's/^/| /' conftest.$ac_ext >&5
28402
28403ac_cv_lib_iodbc_SQLAllocEnv=no
28404fi
ac1cb8d3
VS
28405rm -f conftest.err conftest.$ac_objext \
28406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28407LIBS=$ac_check_lib_save_LIBS
28408fi
28409echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28410echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28411if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28412 ODBC_LINK=" -liodbc"
28413else
28414
28415 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28416echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28417if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420 ac_check_lib_save_LIBS=$LIBS
28421LIBS="-lunixodbc $LIBS"
28422cat >conftest.$ac_ext <<_ACEOF
28423/* confdefs.h. */
28424_ACEOF
28425cat confdefs.h >>conftest.$ac_ext
28426cat >>conftest.$ac_ext <<_ACEOF
28427/* end confdefs.h. */
28428
28429/* Override any gcc2 internal prototype to avoid an error. */
28430#ifdef __cplusplus
28431extern "C"
28432#endif
28433/* We use char because int might match the return type of a gcc2
28434 builtin and then its argument prototype would still apply. */
28435char SQLAllocEnv ();
28436int
28437main ()
28438{
28439SQLAllocEnv ();
28440 ;
28441 return 0;
28442}
28443_ACEOF
28444rm -f conftest.$ac_objext conftest$ac_exeext
28445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28446 (eval $ac_link) 2>conftest.er1
a848cd7e 28447 ac_status=$?
ac1cb8d3
VS
28448 grep -v '^ *+' conftest.er1 >conftest.err
28449 rm -f conftest.er1
28450 cat conftest.err >&5
a848cd7e
SC
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } &&
9dd0f6c2 28453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; } &&
28459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; }; then
28465 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28466else
28467 echo "$as_me: failed program was:" >&5
28468sed 's/^/| /' conftest.$ac_ext >&5
28469
28470ac_cv_lib_unixodbc_SQLAllocEnv=no
28471fi
ac1cb8d3
VS
28472rm -f conftest.err conftest.$ac_objext \
28473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28474LIBS=$ac_check_lib_save_LIBS
28475fi
28476echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28477echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28478if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28479 ODBC_LINK=" -lunixodbc"
28480else
28481
28482 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28483echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28484if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28486else
28487 ac_check_lib_save_LIBS=$LIBS
28488LIBS="-lodbc $LIBS"
28489cat >conftest.$ac_ext <<_ACEOF
28490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
28495
28496/* Override any gcc2 internal prototype to avoid an error. */
28497#ifdef __cplusplus
28498extern "C"
28499#endif
28500/* We use char because int might match the return type of a gcc2
28501 builtin and then its argument prototype would still apply. */
28502char SQLAllocEnv ();
28503int
28504main ()
28505{
28506SQLAllocEnv ();
28507 ;
28508 return 0;
28509}
28510_ACEOF
28511rm -f conftest.$ac_objext conftest$ac_exeext
28512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28513 (eval $ac_link) 2>conftest.er1
a848cd7e 28514 ac_status=$?
ac1cb8d3
VS
28515 grep -v '^ *+' conftest.er1 >conftest.err
28516 rm -f conftest.er1
28517 cat conftest.err >&5
a848cd7e
SC
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); } &&
9dd0f6c2 28520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28522 (eval $ac_try) 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; } &&
28526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28529 ac_status=$?
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28532 ac_cv_lib_odbc_SQLAllocEnv=yes
28533else
28534 echo "$as_me: failed program was:" >&5
28535sed 's/^/| /' conftest.$ac_ext >&5
28536
28537ac_cv_lib_odbc_SQLAllocEnv=no
28538fi
ac1cb8d3
VS
28539rm -f conftest.err conftest.$ac_objext \
28540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28541LIBS=$ac_check_lib_save_LIBS
28542fi
28543echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28544echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28545if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28546 ODBC_LINK=" -lodbc"
28547fi
28548
28549
28550fi
28551
28552
28553fi
28554
28555 fi
28556 if test "x$ODBC_LINK" = "x" ; then
28557 if test "$wxUSE_ODBC" = "sys" ; then
28558 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28559echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28560 { (exit 1); exit 1; }; }
28561 else
28562 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28563echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28564 wxUSE_ODBC=builtin
28565 fi
28566 else
28567 wxUSE_ODBC=sys
28568 fi
28569 fi
a848cd7e 28570
2da0c077
RD
28571 if test "$wxUSE_ODBC" = "builtin" ; then
28572 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28573#define wxUSE_BUILTIN_IODBC 1
28574_ACEOF
28575
a848cd7e
SC
28576 fi
28577fi
28578
2da0c077
RD
28579if test "$wxUSE_ODBC" != "no" ; then
28580 cat >>confdefs.h <<\_ACEOF
28581#define wxUSE_ODBC 1
28582_ACEOF
28583
28584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28585
28586 WXODBCFLAG="-D_IODBC_"
28587fi
a848cd7e 28588
01cb68df 28589
a848cd7e 28590if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28591 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28592 echo "$as_me:$LINENO: checking for Xinerama" >&5
28593echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28594
28595ac_find_libraries=
28596for ac_dir in $SEARCH_LIB /usr/lib;
28597 do
28598 for ac_extension in a so sl dylib; do
28599 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28600 ac_find_libraries=$ac_dir
28601 break 2
28602 fi
28603 done
28604 done
28605
28606 if test "$ac_find_libraries" != "" ; then
28607
28608 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28609 result=$?
28610 if test $result = 0; then
28611 ac_path_to_link=""
28612 else
28613 ac_path_to_link=" -L$ac_find_libraries"
28614 fi
28615
28616 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28617 LDFLAGS="$LDFLAGS $ac_path_to_link"
28618 fi
28619 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28620 echo "$as_me:$LINENO: result: yes" >&5
28621echo "${ECHO_T}yes" >&6
28622
28623 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28624echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28625
28626ac_find_libraries=
28627for ac_dir in $SEARCH_LIB /usr/lib;
28628 do
28629 for ac_extension in a so sl dylib; do
28630 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28631 ac_find_libraries=$ac_dir
28632 break 2
28633 fi
28634 done
28635 done
28636
28637 if test "$ac_find_libraries" != "" ; then
28638 echo "$as_me:$LINENO: result: yes" >&5
28639echo "${ECHO_T}yes" >&6
28640
28641for ac_header in X11/extensions/xf86vmode.h
28642do
28643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28644echo "$as_me:$LINENO: checking for $ac_header" >&5
28645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28646if eval "test \"\${$as_ac_Header+set}\" = set"; then
28647 echo $ECHO_N "(cached) $ECHO_C" >&6
28648else
28649 cat >conftest.$ac_ext <<_ACEOF
28650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
28655
28656 #if HAVE_X11_XLIB_H
28657 #include <X11/Xlib.h>
28658 #endif
28659
28660
28661#include <$ac_header>
28662_ACEOF
28663rm -f conftest.$ac_objext
28664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28665 (eval $ac_compile) 2>conftest.er1
a848cd7e 28666 ac_status=$?
ac1cb8d3
VS
28667 grep -v '^ *+' conftest.er1 >conftest.err
28668 rm -f conftest.er1
28669 cat conftest.err >&5
a848cd7e
SC
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } &&
9dd0f6c2 28672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28674 (eval $ac_try) 2>&5
28675 ac_status=$?
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); }; } &&
28678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28680 (eval $ac_try) 2>&5
28681 ac_status=$?
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); }; }; then
28684 eval "$as_ac_Header=yes"
28685else
28686 echo "$as_me: failed program was:" >&5
28687sed 's/^/| /' conftest.$ac_ext >&5
28688
28689eval "$as_ac_Header=no"
28690fi
ac1cb8d3 28691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28692fi
28693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28695if test `eval echo '${'$as_ac_Header'}'` = yes; then
28696 cat >>confdefs.h <<_ACEOF
28697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28698_ACEOF
28699
28700 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28701
28702fi
28703
28704done
28705
28706 else
28707 echo "$as_me:$LINENO: result: no" >&5
28708echo "${ECHO_T}no" >&6
28709 fi
28710
28711 else
28712 echo "$as_me:$LINENO: result: no" >&5
28713echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28714 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28715echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28716 wxUSE_DISPLAY="no"
28717 fi
01cb68df
RG
28718 elif test "$wxUSE_MSW" = 1; then
28719
28720
28721for ac_header in multimon.h ddraw.h
28722do
28723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28724echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28726if eval "test \"\${$as_ac_Header+set}\" = set"; then
28727 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28728else
5294a27e 28729 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28730/* confdefs.h. */
28731_ACEOF
28732cat confdefs.h >>conftest.$ac_ext
28733cat >>conftest.$ac_ext <<_ACEOF
28734/* end confdefs.h. */
5294a27e
VZ
28735#include <windows.h>
28736
01cb68df
RG
28737#include <$ac_header>
28738_ACEOF
28739rm -f conftest.$ac_objext
28740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28741 (eval $ac_compile) 2>conftest.er1
01cb68df 28742 ac_status=$?
ac1cb8d3
VS
28743 grep -v '^ *+' conftest.er1 >conftest.err
28744 rm -f conftest.er1
28745 cat conftest.err >&5
01cb68df
RG
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } &&
9dd0f6c2 28748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; } &&
28754 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28756 (eval $ac_try) 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
5294a27e 28760 eval "$as_ac_Header=yes"
01cb68df
RG
28761else
28762 echo "$as_me: failed program was:" >&5
28763sed 's/^/| /' conftest.$ac_ext >&5
28764
5294a27e 28765eval "$as_ac_Header=no"
01cb68df 28766fi
ac1cb8d3 28767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28768fi
28769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28771if test `eval echo '${'$as_ac_Header'}'` = yes; then
28772 cat >>confdefs.h <<_ACEOF
28773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28774_ACEOF
28775
28776else
28777
5294a27e
VZ
28778 wxUSE_DISPLAY="no"
28779 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28780echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28781
28782fi
28783
28784done
28785
a848cd7e
SC
28786 fi
28787fi
28788
28789
28790USE_OPENGL=0
28791if test "$wxUSE_OPENGL" = "yes"; then
28792 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28793 OPENGL_LIBS="-framework OpenGL -framework AGL"
28794 elif test "$wxUSE_MSW" = 1; then
28795 OPENGL_LIBS="-lopengl32 -lglu32"
28796 else
28797
28798
28799ac_find_includes=
28800for ac_dir in $SEARCH_INCLUDE /usr/include;
28801 do
28802 if test -f "$ac_dir/GL/gl.h"; then
28803 ac_find_includes=$ac_dir
28804 break
28805 fi
28806 done
28807
28808 if test "$ac_find_includes" != "" ; then
28809 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28810echo "${ECHO_T}found in $ac_find_includes" >&6
28811
28812 if test "x$ac_find_includes" = "x/usr/include"; then
28813 ac_path_to_include=""
28814 else
28815 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28816 result=$?
28817 if test $result = 0; then
28818 ac_path_to_include=""
28819 else
28820 ac_path_to_include=" -I$ac_find_includes"
28821 fi
28822 fi
28823
28824 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28825 fi
28826
28827 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28828 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28829echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28830if test "${ac_cv_header_GL_gl_h+set}" = set; then
28831 echo $ECHO_N "(cached) $ECHO_C" >&6
28832fi
28833echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28834echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28835else
28836 # Is the header compilable?
28837echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28838echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28839cat >conftest.$ac_ext <<_ACEOF
28840/* confdefs.h. */
28841_ACEOF
28842cat confdefs.h >>conftest.$ac_ext
28843cat >>conftest.$ac_ext <<_ACEOF
28844/* end confdefs.h. */
28845$ac_includes_default
28846#include <GL/gl.h>
28847_ACEOF
28848rm -f conftest.$ac_objext
28849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28850 (eval $ac_compile) 2>conftest.er1
a848cd7e 28851 ac_status=$?
ac1cb8d3
VS
28852 grep -v '^ *+' conftest.er1 >conftest.err
28853 rm -f conftest.er1
28854 cat conftest.err >&5
a848cd7e
SC
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
9dd0f6c2 28857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28860 ac_status=$?
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; } &&
28863 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28866 ac_status=$?
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; }; then
28869 ac_header_compiler=yes
28870else
28871 echo "$as_me: failed program was:" >&5
28872sed 's/^/| /' conftest.$ac_ext >&5
28873
28874ac_header_compiler=no
28875fi
ac1cb8d3 28876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28878echo "${ECHO_T}$ac_header_compiler" >&6
28879
28880# Is the header present?
28881echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28882echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28883cat >conftest.$ac_ext <<_ACEOF
28884/* confdefs.h. */
28885_ACEOF
28886cat confdefs.h >>conftest.$ac_ext
28887cat >>conftest.$ac_ext <<_ACEOF
28888/* end confdefs.h. */
28889#include <GL/gl.h>
28890_ACEOF
28891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28893 ac_status=$?
28894 grep -v '^ *+' conftest.er1 >conftest.err
28895 rm -f conftest.er1
28896 cat conftest.err >&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } >/dev/null; then
28899 if test -s conftest.err; then
28900 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28902 else
28903 ac_cpp_err=
28904 fi
28905else
28906 ac_cpp_err=yes
28907fi
28908if test -z "$ac_cpp_err"; then
28909 ac_header_preproc=yes
28910else
28911 echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
28914 ac_header_preproc=no
28915fi
28916rm -f conftest.err conftest.$ac_ext
28917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28918echo "${ECHO_T}$ac_header_preproc" >&6
28919
28920# So? What about this header?
ac1cb8d3
VS
28921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28922 yes:no: )
a848cd7e
SC
28923 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28924echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28925 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28926echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28927 ac_header_preproc=yes
a848cd7e 28928 ;;
ac1cb8d3 28929 no:yes:* )
a848cd7e
SC
28930 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28931echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28932 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28933echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28934 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28935echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28936 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28937echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28938 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28939echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28940 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28941echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28942 (
28943 cat <<\_ASBOX
ac1cb8d3
VS
28944## ----------------------------------------- ##
28945## Report this to wx-dev@lists.wxwidgets.org ##
28946## ----------------------------------------- ##
a848cd7e
SC
28947_ASBOX
28948 ) |
28949 sed "s/^/$as_me: WARNING: /" >&2
28950 ;;
28951esac
28952echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28953echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28954if test "${ac_cv_header_GL_gl_h+set}" = set; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28956else
28957 ac_cv_header_GL_gl_h=$ac_header_preproc
28958fi
28959echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28960echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28961
28962fi
28963if test $ac_cv_header_GL_gl_h = yes; then
28964
28965 found_gl=0
28966
28967 echo "$as_me:$LINENO: checking for -lGL" >&5
28968echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28969
28970ac_find_libraries=
28971for ac_dir in $SEARCH_LIB /usr/lib;
28972 do
28973 for ac_extension in a so sl dylib; do
28974 if test -f "$ac_dir/libGL.$ac_extension"; then
28975 ac_find_libraries=$ac_dir
28976 break 2
28977 fi
28978 done
28979 done
28980
28981 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
28982 echo "$as_me:$LINENO: result: yes" >&5
28983echo "${ECHO_T}yes" >&6
28984
a848cd7e
SC
28985
28986 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28987 result=$?
28988 if test $result = 0; then
28989 ac_path_to_link=""
28990 else
28991 ac_path_to_link=" -L$ac_find_libraries"
28992 fi
28993
28994 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28995 LDFLAGS_GL="$ac_path_to_link"
28996 fi
28997
69120ee4
VZ
28998 echo "$as_me:$LINENO: checking for -lGLU" >&5
28999echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29000
29001ac_find_libraries=
29002for ac_dir in $SEARCH_LIB /usr/lib;
29003 do
29004 for ac_extension in a so sl dylib; do
29005 if test -f "$ac_dir/libGLU.$ac_extension"; then
29006 ac_find_libraries=$ac_dir
29007 break 2
29008 fi
29009 done
29010 done
29011
29012 if test "$ac_find_libraries" != "" ; then
29013
29014 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29015 result=$?
29016 if test $result = 0; then
29017 ac_path_to_link=""
29018 else
29019 ac_path_to_link=" -L$ac_find_libraries"
29020 fi
29021
29022 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29023 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29024 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29025 fi
29026
29027 found_gl=1
29028 OPENGL_LIBS="-lGL -lGLU"
29029 echo "$as_me:$LINENO: result: yes" >&5
29030echo "${ECHO_T}yes" >&6
69120ee4
VZ
29031 else
29032 echo "$as_me:$LINENO: result: no" >&5
29033echo "${ECHO_T}no" >&6
a848cd7e 29034 fi
69120ee4
VZ
29035 else
29036 echo "$as_me:$LINENO: result: no" >&5
29037echo "${ECHO_T}no" >&6
a848cd7e
SC
29038 fi
29039
29040 if test "$found_gl" != 1; then
a848cd7e
SC
29041 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29042echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29043
29044ac_find_libraries=
29045for ac_dir in $SEARCH_LIB /usr/lib;
29046 do
29047 for ac_extension in a so sl dylib; do
29048 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29049 ac_find_libraries=$ac_dir
29050 break 2
29051 fi
29052 done
29053 done
29054
29055 if test "$ac_find_libraries" != "" ; then
29056
29057 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29058 result=$?
29059 if test $result = 0; then
29060 ac_path_to_link=""
29061 else
29062 ac_path_to_link=" -L$ac_find_libraries"
29063 fi
29064
29065 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29066 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29067 echo "$as_me:$LINENO: result: yes" >&5
29068echo "${ECHO_T}yes" >&6
29069 else
29070 echo "$as_me:$LINENO: result: no" >&5
29071echo "${ECHO_T}no" >&6
29072 fi
29073 fi
29074
29075fi
29076
29077
29078
29079 if test "x$OPENGL_LIBS" = "x"; then
29080 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29081echo "$as_me: error: OpenGL libraries not available" >&2;}
29082 { (exit 1); exit 1; }; }
29083 fi
29084 fi
29085
29086 if test "$wxUSE_OPENGL" = "yes"; then
29087 USE_OPENGL=1
29088 cat >>confdefs.h <<\_ACEOF
29089#define wxUSE_OPENGL 1
29090_ACEOF
29091
29092 cat >>confdefs.h <<\_ACEOF
29093#define wxUSE_GLCANVAS 1
29094_ACEOF
29095
29096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29097 fi
29098fi
29099
a848cd7e
SC
29100
29101if test -n "$TOOLKIT" ; then
29102 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29103fi
29104
a848cd7e
SC
29105
29106
29107if test "$wxUSE_SHARED" = "yes"; then
29108 case "${host}" in
29109 *-pc-msdosdjgpp )
29110 wxUSE_SHARED=no
29111 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29112echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29113 ;;
29114 esac
29115fi
29116
a848cd7e 29117if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29118
29119
29120 found_versioning=no
29121
29122
29123 if test $found_versioning = no ; then
29124 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29125echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29126if test "${wx_cv_version_script+set}" = set; then
29127 echo $ECHO_N "(cached) $ECHO_C" >&6
29128else
29129
29130 echo "VER_1 { *; };" >conftest.sym
29131 echo "int main() { return 0; }" >conftest.cpp
29132
29133 if { ac_try='
29134 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29135 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29137 (eval $ac_try) 2>&5
29138 ac_status=$?
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; } ; then
29141 if test -s conftest.stderr ; then
29142 wx_cv_version_script=no
29143 else
29144 wx_cv_version_script=yes
29145 fi
29146 else
29147 wx_cv_version_script=no
29148 fi
29149 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29150
29151fi
29152echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29153echo "${ECHO_T}$wx_cv_version_script" >&6
29154 if test $wx_cv_version_script = yes ; then
29155 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29156 fi
29157 fi
29158
29159
29160 case "${host}" in
29161 *-*-linux* | *-*-gnu* )
29162 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29163 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29164 ;;
29165
29166 *-*-solaris2* )
29167 if test "$GCC" = yes ; then
29168 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29169
29170 saveLdflags="$LDFLAGS"
29171 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29172 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29173echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29174 cat >conftest.$ac_ext <<_ACEOF
29175/* confdefs.h. */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h. */
29180
29181int
29182main ()
29183{
29184
29185 ;
29186 return 0;
29187}
29188_ACEOF
29189rm -f conftest.$ac_objext conftest$ac_exeext
29190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29191 (eval $ac_link) 2>conftest.er1
a848cd7e 29192 ac_status=$?
ac1cb8d3
VS
29193 grep -v '^ *+' conftest.er1 >conftest.err
29194 rm -f conftest.er1
29195 cat conftest.err >&5
a848cd7e
SC
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); } &&
9dd0f6c2 29198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29200 (eval $ac_try) 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; } &&
29204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; }; then
29210
29211 echo "$as_me:$LINENO: result: yes" >&5
29212echo "${ECHO_T}yes" >&6
29213 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29214 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29215
29216else
29217 echo "$as_me: failed program was:" >&5
29218sed 's/^/| /' conftest.$ac_ext >&5
29219
29220
29221 echo "$as_me:$LINENO: result: no" >&5
29222echo "${ECHO_T}no" >&6
29223 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29224echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29225 LDFLAGS="$saveLdflags -Wl,-R,/"
29226 cat >conftest.$ac_ext <<_ACEOF
29227/* confdefs.h. */
29228_ACEOF
29229cat confdefs.h >>conftest.$ac_ext
29230cat >>conftest.$ac_ext <<_ACEOF
29231/* end confdefs.h. */
29232
29233int
29234main ()
29235{
29236
29237 ;
29238 return 0;
29239}
29240_ACEOF
29241rm -f conftest.$ac_objext conftest$ac_exeext
29242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29243 (eval $ac_link) 2>conftest.er1
a848cd7e 29244 ac_status=$?
ac1cb8d3
VS
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
a848cd7e
SC
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
9dd0f6c2 29250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252 (eval $ac_try) 2>&5
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; } &&
29256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258 (eval $ac_try) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; }; then
29262
ffa0583f 29263 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29264echo "${ECHO_T}yes" >&6
ffa0583f
RL
29265 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29266 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29267
a848cd7e
SC
29268else
29269 echo "$as_me: failed program was:" >&5
29270sed 's/^/| /' conftest.$ac_ext >&5
29271
29272
29273 echo "$as_me:$LINENO: result: no" >&5
29274echo "${ECHO_T}no" >&6
29275
29276fi
ac1cb8d3
VS
29277rm -f conftest.err conftest.$ac_objext \
29278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29279
29280fi
ac1cb8d3
VS
29281rm -f conftest.err conftest.$ac_objext \
29282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29283 LDFLAGS="$saveLdflags"
29284 else
a848cd7e 29285 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29286 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29287 fi
29288 ;;
29289
29290 powerpc-*-darwin* )
29291 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29292 cat <<EOF >change-install-names
29293#!/bin/sh
29294libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29295inst_cmd="install_name_tool "
29296for i in \${libnames} ; do
29297 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29298done
29299\${inst_cmd} \${3}
29300EOF
29301 chmod +x change-install-names
29302 ;;
29303
29304 *-*-cygwin* | *-*-mingw32* )
29305 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29306 ;;
29307
81f90336
MW
29308 *-*-hpux* )
29309 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29310 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29311 ;;
29312
a848cd7e 29313 esac
ceec2216 29314
ffa0583f
RL
29315 if test $wxUSE_RPATH = "no"; then
29316 SAMPLES_RPATH_FLAG=''
29317 SAMPLES_RPATH_POSTLINK=''
29318 WXCONFIG_RPATH=''
29319 fi
29320
29321 SHARED=1
29322
29323else
29324
ceec2216
RL
29325 config_linkage_component="-static"
29326 SHARED=0
ffa0583f 29327
ceec2216 29328fi
a848cd7e 29329
a848cd7e 29330
ceec2216
RL
29331UNICODE=0
29332lib_unicode_suffix=
29333WX_CHARTYPE="ansi"
29334if test "$wxUSE_UNICODE" = "yes"; then
29335 lib_unicode_suffix=u
29336 WX_CHARTYPE="unicode"
29337 UNICODE=1
a848cd7e
SC
29338fi
29339
ceec2216
RL
29340lib_debug_suffix=
29341WX_DEBUGTYPE="release"
29342DEBUG_FLAG=0
29343if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29344 lib_debug_suffix=d
29345 WX_DEBUGTYPE="debug"
29346 DEBUG_FLAG=1
29347fi
a848cd7e 29348
ceec2216
RL
29349WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29350WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29351
ceec2216
RL
29352DEBUG_INFO=0
29353if test "$wxUSE_DEBUG_INFO" = "yes"; then
29354 DEBUG_INFO=1
29355fi
a848cd7e 29356
ceec2216 29357WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29358
ceec2216 29359TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29360
ceec2216 29361TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29362
ceec2216
RL
29363if test "$cross_compiling" = "yes"; then
29364 HOST_SUFFIX="-$host_alias"
29365 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29366 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29367fi
29368
dd21ced8 29369WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29370WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29371
29372
29373
1d1af5ea
DE
29374if test "$wxUSE_COCOA" = 1; then
29375
29376
29377 ac_ext=c
29378ac_cpp='$CPP $CPPFLAGS'
29379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29381ac_compiler_gnu=$ac_cv_c_compiler_gnu
29382
29383ac_ext=m
29384
29385 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29386echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29387 cat >conftest.$ac_ext <<_ACEOF
29388/* confdefs.h. */
29389_ACEOF
29390cat confdefs.h >>conftest.$ac_ext
29391cat >>conftest.$ac_ext <<_ACEOF
29392/* end confdefs.h. */
29393#include <AppKit/NSEvent.h>
29394#include <CoreFoundation/CoreFoundation.h>
29395
29396int
29397main ()
29398{
29399
29400 ;
29401 return 0;
29402}
29403_ACEOF
29404rm -f conftest.$ac_objext
29405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29406 (eval $ac_compile) 2>conftest.er1
29407 ac_status=$?
29408 grep -v '^ *+' conftest.er1 >conftest.err
29409 rm -f conftest.er1
29410 cat conftest.err >&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } &&
9dd0f6c2 29413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; } &&
29419 { ac_try='test -s conftest.$ac_objext'
29420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421 (eval $ac_try) 2>&5
29422 ac_status=$?
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); }; }; then
29425 echo "$as_me:$LINENO: result: no" >&5
29426echo "${ECHO_T}no" >&6
29427else
29428 echo "$as_me: failed program was:" >&5
29429sed 's/^/| /' conftest.$ac_ext >&5
29430
29431echo "$as_me:$LINENO: result: yes" >&5
29432echo "${ECHO_T}yes" >&6
29433 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29434echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29435 cat >conftest.$ac_ext <<_ACEOF
29436/* confdefs.h. */
29437_ACEOF
29438cat confdefs.h >>conftest.$ac_ext
29439cat >>conftest.$ac_ext <<_ACEOF
29440/* end confdefs.h. */
29441#define __Point__ 1
29442#include <AppKit/NSEvent.h>
29443#include <CoreFoundation/CoreFoundation.h>
29444
29445int
29446main ()
29447{
29448
29449 ;
29450 return 0;
29451}
29452_ACEOF
29453rm -f conftest.$ac_objext
29454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29455 (eval $ac_compile) 2>conftest.er1
29456 ac_status=$?
29457 grep -v '^ *+' conftest.er1 >conftest.err
29458 rm -f conftest.er1
29459 cat conftest.err >&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); } &&
9dd0f6c2 29462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29465 ac_status=$?
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; } &&
29468 { ac_try='test -s conftest.$ac_objext'
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29471 ac_status=$?
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29474 echo "$as_me:$LINENO: result: yes" >&5
29475echo "${ECHO_T}yes" >&6
29476 cat >>confdefs.h <<\_ACEOF
29477#define __Point__ 1
29478_ACEOF
29479
29480
29481else
29482 echo "$as_me: failed program was:" >&5
29483sed 's/^/| /' conftest.$ac_ext >&5
29484
29485{ { echo "$as_me:$LINENO: error: no
29486See \`config.log' for more details." >&5
29487echo "$as_me: error: no
29488See \`config.log' for more details." >&2;}
29489 { (exit 1); exit 1; }; }
29490
29491fi
29492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29493
29494fi
29495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29496 ac_ext=c
29497ac_cpp='$CPP $CPPFLAGS'
29498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500ac_compiler_gnu=$ac_cv_c_compiler_gnu
29501
29502fi
29503
a848cd7e 29504if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29505 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29506 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29507
a848cd7e 29508 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29509
29510 # Extract the first word of "Rez", so it can be a program name with args.
29511set dummy Rez; ac_word=$2
29512echo "$as_me:$LINENO: checking for $ac_word" >&5
29513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29514if test "${ac_cv_prog_RESCOMP+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29516else
29517 if test -n "$RESCOMP"; then
29518 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29519else
29520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29521for as_dir in $PATH
29522do
29523 IFS=$as_save_IFS
29524 test -z "$as_dir" && as_dir=.
29525 for ac_exec_ext in '' $ac_executable_extensions; do
29526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29527 ac_cv_prog_RESCOMP="Rez"
29528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29529 break 2
29530 fi
29531done
29532done
29533
29534 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29535fi
29536fi
29537RESCOMP=$ac_cv_prog_RESCOMP
29538if test -n "$RESCOMP"; then
29539 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29540echo "${ECHO_T}$RESCOMP" >&6
29541else
29542 echo "$as_me:$LINENO: result: no" >&5
29543echo "${ECHO_T}no" >&6
29544fi
29545
29546 # Extract the first word of "DeRez", so it can be a program name with args.
29547set dummy DeRez; ac_word=$2
29548echo "$as_me:$LINENO: checking for $ac_word" >&5
29549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29550if test "${ac_cv_prog_DEREZ+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29552else
29553 if test -n "$DEREZ"; then
29554 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29555else
29556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29557for as_dir in $PATH
29558do
29559 IFS=$as_save_IFS
29560 test -z "$as_dir" && as_dir=.
29561 for ac_exec_ext in '' $ac_executable_extensions; do
29562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29563 ac_cv_prog_DEREZ="DeRez"
29564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29565 break 2
29566 fi
29567done
29568done
29569
29570 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29571fi
29572fi
29573DEREZ=$ac_cv_prog_DEREZ
29574if test -n "$DEREZ"; then
29575 echo "$as_me:$LINENO: result: $DEREZ" >&5
29576echo "${ECHO_T}$DEREZ" >&6
29577else
29578 echo "$as_me:$LINENO: result: no" >&5
29579echo "${ECHO_T}no" >&6
29580fi
29581
29582 # Extract the first word of "SetFile", so it can be a program name with args.
29583set dummy SetFile; ac_word=$2
29584echo "$as_me:$LINENO: checking for $ac_word" >&5
29585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29586if test "${ac_cv_prog_SETFILE+set}" = set; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29588else
29589 if test -n "$SETFILE"; then
29590 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29591else
29592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29593for as_dir in $PATH
29594do
29595 IFS=$as_save_IFS
29596 test -z "$as_dir" && as_dir=.
29597 for ac_exec_ext in '' $ac_executable_extensions; do
29598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29599 ac_cv_prog_SETFILE="SetFile"
29600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29601 break 2
29602 fi
29603done
29604done
29605
29606 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29607fi
29608fi
29609SETFILE=$ac_cv_prog_SETFILE
29610if test -n "$SETFILE"; then
29611 echo "$as_me:$LINENO: result: $SETFILE" >&5
29612echo "${ECHO_T}$SETFILE" >&6
29613else
29614 echo "$as_me:$LINENO: result: no" >&5
29615echo "${ECHO_T}no" >&6
29616fi
29617
29618
29619 MACSETFILE="\$(SETFILE)"
29620
29621 if test "$wxUSE_MAC" = 1; then
29622 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29623
29624 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29625 else
29626 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29627 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29628 fi
29629else
ffa0583f
RL
29630 MACSETFILE="@true"
29631 MACRESWXCONFIG="@true"
a848cd7e
SC
29632
29633 if test "$wxUSE_PM" = 1; then
29634 MACRESCOMP="emxbind -ep"
29635 else
ffa0583f 29636 MACRESCOMP="@true"
a848cd7e
SC
29637 fi
29638fi
29639
29640
29641
29642echo "$as_me:$LINENO: checking for mode_t" >&5
29643echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29644if test "${ac_cv_type_mode_t+set}" = set; then
29645 echo $ECHO_N "(cached) $ECHO_C" >&6
29646else
29647 cat >conftest.$ac_ext <<_ACEOF
29648/* confdefs.h. */
29649_ACEOF
29650cat confdefs.h >>conftest.$ac_ext
29651cat >>conftest.$ac_ext <<_ACEOF
29652/* end confdefs.h. */
29653$ac_includes_default
29654int
29655main ()
29656{
29657if ((mode_t *) 0)
29658 return 0;
29659if (sizeof (mode_t))
29660 return 0;
29661 ;
29662 return 0;
29663}
29664_ACEOF
29665rm -f conftest.$ac_objext
29666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29667 (eval $ac_compile) 2>conftest.er1
a848cd7e 29668 ac_status=$?
ac1cb8d3
VS
29669 grep -v '^ *+' conftest.er1 >conftest.err
29670 rm -f conftest.er1
29671 cat conftest.err >&5
a848cd7e
SC
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } &&
9dd0f6c2 29674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676 (eval $ac_try) 2>&5
29677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; } &&
29680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682 (eval $ac_try) 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; }; then
29686 ac_cv_type_mode_t=yes
29687else
29688 echo "$as_me: failed program was:" >&5
29689sed 's/^/| /' conftest.$ac_ext >&5
29690
29691ac_cv_type_mode_t=no
29692fi
ac1cb8d3 29693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29694fi
29695echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29696echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29697if test $ac_cv_type_mode_t = yes; then
29698 :
29699else
29700
29701cat >>confdefs.h <<_ACEOF
29702#define mode_t int
29703_ACEOF
29704
29705fi
29706
29707echo "$as_me:$LINENO: checking for off_t" >&5
29708echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29709if test "${ac_cv_type_off_t+set}" = set; then
29710 echo $ECHO_N "(cached) $ECHO_C" >&6
29711else
29712 cat >conftest.$ac_ext <<_ACEOF
29713/* confdefs.h. */
29714_ACEOF
29715cat confdefs.h >>conftest.$ac_ext
29716cat >>conftest.$ac_ext <<_ACEOF
29717/* end confdefs.h. */
29718$ac_includes_default
29719int
29720main ()
29721{
29722if ((off_t *) 0)
29723 return 0;
29724if (sizeof (off_t))
29725 return 0;
29726 ;
29727 return 0;
29728}
29729_ACEOF
29730rm -f conftest.$ac_objext
29731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29732 (eval $ac_compile) 2>conftest.er1
a848cd7e 29733 ac_status=$?
ac1cb8d3
VS
29734 grep -v '^ *+' conftest.er1 >conftest.err
29735 rm -f conftest.er1
29736 cat conftest.err >&5
a848cd7e
SC
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); } &&
9dd0f6c2 29739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29741 (eval $ac_try) 2>&5
29742 ac_status=$?
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; } &&
29745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }; then
29751 ac_cv_type_off_t=yes
29752else
29753 echo "$as_me: failed program was:" >&5
29754sed 's/^/| /' conftest.$ac_ext >&5
29755
29756ac_cv_type_off_t=no
29757fi
ac1cb8d3 29758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29759fi
29760echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29761echo "${ECHO_T}$ac_cv_type_off_t" >&6
29762if test $ac_cv_type_off_t = yes; then
29763 :
29764else
29765
29766cat >>confdefs.h <<_ACEOF
29767#define off_t long
29768_ACEOF
29769
29770fi
29771
29772echo "$as_me:$LINENO: checking for pid_t" >&5
29773echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29774if test "${ac_cv_type_pid_t+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29776else
29777 cat >conftest.$ac_ext <<_ACEOF
29778/* confdefs.h. */
29779_ACEOF
29780cat confdefs.h >>conftest.$ac_ext
29781cat >>conftest.$ac_ext <<_ACEOF
29782/* end confdefs.h. */
29783$ac_includes_default
29784int
29785main ()
29786{
29787if ((pid_t *) 0)
29788 return 0;
29789if (sizeof (pid_t))
29790 return 0;
29791 ;
29792 return 0;
29793}
29794_ACEOF
29795rm -f conftest.$ac_objext
29796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29797 (eval $ac_compile) 2>conftest.er1
a848cd7e 29798 ac_status=$?
ac1cb8d3
VS
29799 grep -v '^ *+' conftest.er1 >conftest.err
29800 rm -f conftest.er1
29801 cat conftest.err >&5
a848cd7e
SC
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); } &&
9dd0f6c2 29804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; } &&
29810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816 ac_cv_type_pid_t=yes
29817else
29818 echo "$as_me: failed program was:" >&5
29819sed 's/^/| /' conftest.$ac_ext >&5
29820
29821ac_cv_type_pid_t=no
29822fi
ac1cb8d3 29823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29824fi
29825echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29826echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29827if test $ac_cv_type_pid_t = yes; then
29828 :
29829else
29830
29831cat >>confdefs.h <<_ACEOF
29832#define pid_t int
29833_ACEOF
29834
29835fi
29836
29837echo "$as_me:$LINENO: checking for size_t" >&5
29838echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29839if test "${ac_cv_type_size_t+set}" = set; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29841else
29842 cat >conftest.$ac_ext <<_ACEOF
29843/* confdefs.h. */
29844_ACEOF
29845cat confdefs.h >>conftest.$ac_ext
29846cat >>conftest.$ac_ext <<_ACEOF
29847/* end confdefs.h. */
29848$ac_includes_default
29849int
29850main ()
29851{
29852if ((size_t *) 0)
29853 return 0;
29854if (sizeof (size_t))
29855 return 0;
29856 ;
29857 return 0;
29858}
29859_ACEOF
29860rm -f conftest.$ac_objext
29861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29862 (eval $ac_compile) 2>conftest.er1
a848cd7e 29863 ac_status=$?
ac1cb8d3
VS
29864 grep -v '^ *+' conftest.er1 >conftest.err
29865 rm -f conftest.er1
29866 cat conftest.err >&5
a848cd7e
SC
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
9dd0f6c2 29869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29872 ac_status=$?
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; } &&
29875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877 (eval $ac_try) 2>&5
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; }; then
29881 ac_cv_type_size_t=yes
29882else
29883 echo "$as_me: failed program was:" >&5
29884sed 's/^/| /' conftest.$ac_ext >&5
29885
29886ac_cv_type_size_t=no
29887fi
ac1cb8d3 29888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29889fi
29890echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29891echo "${ECHO_T}$ac_cv_type_size_t" >&6
29892if test $ac_cv_type_size_t = yes; then
29893 :
29894else
29895
29896cat >>confdefs.h <<_ACEOF
29897#define size_t unsigned
29898_ACEOF
29899
29900fi
29901
29902echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29903echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29904if test "${ac_cv_type_uid_t+set}" = set; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29906else
29907 cat >conftest.$ac_ext <<_ACEOF
29908/* confdefs.h. */
29909_ACEOF
29910cat confdefs.h >>conftest.$ac_ext
29911cat >>conftest.$ac_ext <<_ACEOF
29912/* end confdefs.h. */
29913#include <sys/types.h>
29914
29915_ACEOF
29916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29917 $EGREP "uid_t" >/dev/null 2>&1; then
29918 ac_cv_type_uid_t=yes
29919else
29920 ac_cv_type_uid_t=no
29921fi
29922rm -f conftest*
29923
29924fi
29925echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29926echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29927if test $ac_cv_type_uid_t = no; then
29928
29929cat >>confdefs.h <<\_ACEOF
29930#define uid_t int
29931_ACEOF
29932
29933
29934cat >>confdefs.h <<\_ACEOF
29935#define gid_t int
29936_ACEOF
29937
29938fi
29939
29940
d51253e8
RL
29941echo "$as_me:$LINENO: checking for ssize_t" >&5
29942echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29943if test "${ac_cv_type_ssize_t+set}" = set; then
29944 echo $ECHO_N "(cached) $ECHO_C" >&6
29945else
29946 cat >conftest.$ac_ext <<_ACEOF
29947/* confdefs.h. */
29948_ACEOF
29949cat confdefs.h >>conftest.$ac_ext
29950cat >>conftest.$ac_ext <<_ACEOF
29951/* end confdefs.h. */
29952$ac_includes_default
29953int
29954main ()
29955{
29956if ((ssize_t *) 0)
29957 return 0;
29958if (sizeof (ssize_t))
29959 return 0;
29960 ;
29961 return 0;
29962}
29963_ACEOF
29964rm -f conftest.$ac_objext
29965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29966 (eval $ac_compile) 2>conftest.er1
29967 ac_status=$?
29968 grep -v '^ *+' conftest.er1 >conftest.err
29969 rm -f conftest.er1
29970 cat conftest.err >&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); } &&
9dd0f6c2 29973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
29974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29975 (eval $ac_try) 2>&5
29976 ac_status=$?
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); }; } &&
29979 { ac_try='test -s conftest.$ac_objext'
29980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29981 (eval $ac_try) 2>&5
29982 ac_status=$?
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); }; }; then
29985 ac_cv_type_ssize_t=yes
29986else
29987 echo "$as_me: failed program was:" >&5
29988sed 's/^/| /' conftest.$ac_ext >&5
29989
29990ac_cv_type_ssize_t=no
29991fi
29992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29993fi
29994echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29995echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29996if test $ac_cv_type_ssize_t = yes; then
29997
29998cat >>confdefs.h <<_ACEOF
29999#define HAVE_SSIZE_T 1
30000_ACEOF
30001
30002
30003fi
30004
30005
a848cd7e
SC
30006
30007
30008ac_ext=cc
30009ac_cpp='$CXXCPP $CPPFLAGS'
30010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30013
30014echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30015echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30016if test "${wx_cv_size_t_is_uint+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30018else
30019
30020 cat >conftest.$ac_ext <<_ACEOF
30021/* confdefs.h. */
30022_ACEOF
30023cat confdefs.h >>conftest.$ac_ext
30024cat >>conftest.$ac_ext <<_ACEOF
30025/* end confdefs.h. */
30026#include <stddef.h>
30027int
30028main ()
30029{
30030
30031 return 0; }
30032
30033 struct Foo { void foo(size_t); void foo(unsigned int); };
30034
30035 int bar() {
30036
30037 ;
30038 return 0;
30039}
30040_ACEOF
30041rm -f conftest.$ac_objext
30042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30043 (eval $ac_compile) 2>conftest.er1
a848cd7e 30044 ac_status=$?
ac1cb8d3
VS
30045 grep -v '^ *+' conftest.er1 >conftest.err
30046 rm -f conftest.er1
30047 cat conftest.err >&5
a848cd7e
SC
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } &&
9dd0f6c2 30050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30052 (eval $ac_try) 2>&5
30053 ac_status=$?
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); }; } &&
30056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30058 (eval $ac_try) 2>&5
30059 ac_status=$?
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); }; }; then
30062 wx_cv_size_t_is_uint=no
30063else
30064 echo "$as_me: failed program was:" >&5
30065sed 's/^/| /' conftest.$ac_ext >&5
30066
30067wx_cv_size_t_is_uint=yes
30068
30069fi
ac1cb8d3 30070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30071
30072
30073fi
30074echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30075echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30076
30077if test "$wx_cv_size_t_is_uint" = "yes"; then
30078 cat >>confdefs.h <<\_ACEOF
30079#define wxSIZE_T_IS_UINT 1
30080_ACEOF
30081
30082else
30083 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30084echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30085if test "${wx_cv_size_t_is_ulong+set}" = set; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30087else
30088 cat >conftest.$ac_ext <<_ACEOF
30089/* confdefs.h. */
30090_ACEOF
30091cat confdefs.h >>conftest.$ac_ext
30092cat >>conftest.$ac_ext <<_ACEOF
30093/* end confdefs.h. */
30094#include <stddef.h>
30095int
30096main ()
30097{
30098
30099 return 0; }
30100
30101 struct Foo { void foo(size_t); void foo(unsigned long); };
30102
30103 int bar() {
30104
30105 ;
30106 return 0;
30107}
30108_ACEOF
30109rm -f conftest.$ac_objext
30110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30111 (eval $ac_compile) 2>conftest.er1
a848cd7e 30112 ac_status=$?
ac1cb8d3
VS
30113 grep -v '^ *+' conftest.er1 >conftest.err
30114 rm -f conftest.er1
30115 cat conftest.err >&5
a848cd7e
SC
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); } &&
9dd0f6c2 30118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30120 (eval $ac_try) 2>&5
30121 ac_status=$?
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); }; } &&
30124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30126 (eval $ac_try) 2>&5
30127 ac_status=$?
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; }; then
30130 wx_cv_size_t_is_ulong=no
30131else
30132 echo "$as_me: failed program was:" >&5
30133sed 's/^/| /' conftest.$ac_ext >&5
30134
30135wx_cv_size_t_is_ulong=yes
30136
30137fi
ac1cb8d3 30138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30139
30140fi
30141echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30142echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30143
30144 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30145 cat >>confdefs.h <<\_ACEOF
30146#define wxSIZE_T_IS_ULONG 1
30147_ACEOF
30148
30149 fi
30150fi
30151
30152ac_ext=c
30153ac_cpp='$CPP $CPPFLAGS'
30154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30156ac_compiler_gnu=$ac_cv_c_compiler_gnu
30157
30158
30159
30160echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30161echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30162if test "${wx_cv_struct_pw_gecos+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30164else
30165
30166 cat >conftest.$ac_ext <<_ACEOF
30167/* confdefs.h. */
30168_ACEOF
30169cat confdefs.h >>conftest.$ac_ext
30170cat >>conftest.$ac_ext <<_ACEOF
30171/* end confdefs.h. */
30172#include <pwd.h>
30173int
30174main ()
30175{
30176
30177 char *p;
30178 struct passwd *pw;
30179 p = pw->pw_gecos;
30180
30181 ;
30182 return 0;
30183}
30184_ACEOF
30185rm -f conftest.$ac_objext
30186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30187 (eval $ac_compile) 2>conftest.er1
a848cd7e 30188 ac_status=$?
ac1cb8d3
VS
30189 grep -v '^ *+' conftest.er1 >conftest.err
30190 rm -f conftest.er1
30191 cat conftest.err >&5
a848cd7e
SC
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } &&
9dd0f6c2 30194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196 (eval $ac_try) 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; } &&
30200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30202 (eval $ac_try) 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
30206
30207 wx_cv_struct_pw_gecos=yes
30208
30209else
30210 echo "$as_me: failed program was:" >&5
30211sed 's/^/| /' conftest.$ac_ext >&5
30212
30213
30214 wx_cv_struct_pw_gecos=no
30215
30216
30217fi
ac1cb8d3 30218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30219
30220
30221fi
30222echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30223echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30224
30225if test "$wx_cv_struct_pw_gecos" = "yes"; then
30226 cat >>confdefs.h <<\_ACEOF
30227#define HAVE_PW_GECOS 1
30228_ACEOF
30229
30230fi
30231
30232
238ecede 30233if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30234 cat >>confdefs.h <<\_ACEOF
30235#define wxUSE_WCHAR_T 1
30236_ACEOF
30237
30238
30239 WCSLEN_FOUND=0
30240 WCHAR_LINK=
30241
30242for ac_func in wcslen
30243do
30244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245echo "$as_me:$LINENO: checking for $ac_func" >&5
30246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247if eval "test \"\${$as_ac_var+set}\" = set"; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249else
30250 cat >conftest.$ac_ext <<_ACEOF
30251/* confdefs.h. */
30252_ACEOF
30253cat confdefs.h >>conftest.$ac_ext
30254cat >>conftest.$ac_ext <<_ACEOF
30255/* end confdefs.h. */
ac1cb8d3
VS
30256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30258#define $ac_func innocuous_$ac_func
30259
a848cd7e
SC
30260/* System header to define __stub macros and hopefully few prototypes,
30261 which can conflict with char $ac_func (); below.
30262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30264
a848cd7e
SC
30265#ifdef __STDC__
30266# include <limits.h>
30267#else
30268# include <assert.h>
30269#endif
ac1cb8d3
VS
30270
30271#undef $ac_func
30272
a848cd7e
SC
30273/* Override any gcc2 internal prototype to avoid an error. */
30274#ifdef __cplusplus
30275extern "C"
30276{
30277#endif
30278/* We use char because int might match the return type of a gcc2
30279 builtin and then its argument prototype would still apply. */
30280char $ac_func ();
30281/* The GNU C library defines this for functions which it implements
30282 to always fail with ENOSYS. Some functions are actually named
30283 something starting with __ and the normal name is an alias. */
30284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30285choke me
30286#else
30287char (*f) () = $ac_func;
30288#endif
30289#ifdef __cplusplus
30290}
30291#endif
30292
30293int
30294main ()
30295{
30296return f != $ac_func;
30297 ;
30298 return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext conftest$ac_exeext
30302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30303 (eval $ac_link) 2>conftest.er1
a848cd7e 30304 ac_status=$?
ac1cb8d3
VS
30305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
a848cd7e
SC
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
9dd0f6c2 30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; } &&
30316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 eval "$as_ac_var=yes"
30323else
30324 echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327eval "$as_ac_var=no"
30328fi
ac1cb8d3
VS
30329rm -f conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30331fi
30332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30334if test `eval echo '${'$as_ac_var'}'` = yes; then
30335 cat >>confdefs.h <<_ACEOF
30336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337_ACEOF
30338 WCSLEN_FOUND=1
30339fi
30340done
30341
30342
30343 if test "$WCSLEN_FOUND" = 0; then
30344 if test "$TOOLKIT" = "MSW"; then
30345 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30346echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30347if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349else
30350 ac_check_lib_save_LIBS=$LIBS
30351LIBS="-lmsvcrt $LIBS"
30352cat >conftest.$ac_ext <<_ACEOF
30353/* confdefs.h. */
30354_ACEOF
30355cat confdefs.h >>conftest.$ac_ext
30356cat >>conftest.$ac_ext <<_ACEOF
30357/* end confdefs.h. */
30358
30359/* Override any gcc2 internal prototype to avoid an error. */
30360#ifdef __cplusplus
30361extern "C"
30362#endif
30363/* We use char because int might match the return type of a gcc2
30364 builtin and then its argument prototype would still apply. */
30365char wcslen ();
30366int
30367main ()
30368{
30369wcslen ();
30370 ;
30371 return 0;
30372}
30373_ACEOF
30374rm -f conftest.$ac_objext conftest$ac_exeext
30375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30376 (eval $ac_link) 2>conftest.er1
a848cd7e 30377 ac_status=$?
ac1cb8d3
VS
30378 grep -v '^ *+' conftest.er1 >conftest.err
30379 rm -f conftest.er1
30380 cat conftest.err >&5
a848cd7e
SC
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); } &&
9dd0f6c2 30383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30385 (eval $ac_try) 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; } &&
30389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30391 (eval $ac_try) 2>&5
30392 ac_status=$?
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 ac_cv_lib_msvcrt_wcslen=yes
30396else
30397 echo "$as_me: failed program was:" >&5
30398sed 's/^/| /' conftest.$ac_ext >&5
30399
30400ac_cv_lib_msvcrt_wcslen=no
30401fi
ac1cb8d3
VS
30402rm -f conftest.err conftest.$ac_objext \
30403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30404LIBS=$ac_check_lib_save_LIBS
30405fi
30406echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30407echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30408if test $ac_cv_lib_msvcrt_wcslen = yes; then
30409 WCHAR_OK=1
30410fi
30411
30412 else
30413 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30414echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30415if test "${ac_cv_lib_w_wcslen+set}" = set; then
30416 echo $ECHO_N "(cached) $ECHO_C" >&6
30417else
30418 ac_check_lib_save_LIBS=$LIBS
30419LIBS="-lw $LIBS"
30420cat >conftest.$ac_ext <<_ACEOF
30421/* confdefs.h. */
30422_ACEOF
30423cat confdefs.h >>conftest.$ac_ext
30424cat >>conftest.$ac_ext <<_ACEOF
30425/* end confdefs.h. */
30426
30427/* Override any gcc2 internal prototype to avoid an error. */
30428#ifdef __cplusplus
30429extern "C"
30430#endif
30431/* We use char because int might match the return type of a gcc2
30432 builtin and then its argument prototype would still apply. */
30433char wcslen ();
30434int
30435main ()
30436{
30437wcslen ();
30438 ;
30439 return 0;
30440}
30441_ACEOF
30442rm -f conftest.$ac_objext conftest$ac_exeext
30443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30444 (eval $ac_link) 2>conftest.er1
a848cd7e 30445 ac_status=$?
ac1cb8d3
VS
30446 grep -v '^ *+' conftest.er1 >conftest.err
30447 rm -f conftest.er1
30448 cat conftest.err >&5
a848cd7e
SC
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); } &&
9dd0f6c2 30451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30454 ac_status=$?
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30460 ac_status=$?
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; }; then
30463 ac_cv_lib_w_wcslen=yes
30464else
30465 echo "$as_me: failed program was:" >&5
30466sed 's/^/| /' conftest.$ac_ext >&5
30467
30468ac_cv_lib_w_wcslen=no
30469fi
ac1cb8d3
VS
30470rm -f conftest.err conftest.$ac_objext \
30471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30472LIBS=$ac_check_lib_save_LIBS
30473fi
30474echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30475echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30476if test $ac_cv_lib_w_wcslen = yes; then
30477
30478 WCHAR_LINK=" -lw"
30479 WCSLEN_FOUND=1
30480
30481fi
30482
30483 fi
30484 fi
30485
30486 if test "$WCSLEN_FOUND" = 1; then
30487 cat >>confdefs.h <<\_ACEOF
30488#define HAVE_WCSLEN 1
30489_ACEOF
30490
30491 fi
30492
81f90336 30493 if test "$USE_HPUX" = 1; then
473276a9
VS
30494 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30495 fi
30496
a848cd7e
SC
30497
30498for ac_func in wcsrtombs
30499do
30500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30501echo "$as_me:$LINENO: checking for $ac_func" >&5
30502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30503if eval "test \"\${$as_ac_var+set}\" = set"; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30505else
30506 cat >conftest.$ac_ext <<_ACEOF
30507/* confdefs.h. */
30508_ACEOF
30509cat confdefs.h >>conftest.$ac_ext
30510cat >>conftest.$ac_ext <<_ACEOF
30511/* end confdefs.h. */
ac1cb8d3
VS
30512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30514#define $ac_func innocuous_$ac_func
30515
a848cd7e
SC
30516/* System header to define __stub macros and hopefully few prototypes,
30517 which can conflict with char $ac_func (); below.
30518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30519 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30520
a848cd7e
SC
30521#ifdef __STDC__
30522# include <limits.h>
30523#else
30524# include <assert.h>
30525#endif
ac1cb8d3
VS
30526
30527#undef $ac_func
30528
a848cd7e
SC
30529/* Override any gcc2 internal prototype to avoid an error. */
30530#ifdef __cplusplus
30531extern "C"
30532{
30533#endif
30534/* We use char because int might match the return type of a gcc2
30535 builtin and then its argument prototype would still apply. */
30536char $ac_func ();
30537/* The GNU C library defines this for functions which it implements
30538 to always fail with ENOSYS. Some functions are actually named
30539 something starting with __ and the normal name is an alias. */
30540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30541choke me
30542#else
30543char (*f) () = $ac_func;
30544#endif
30545#ifdef __cplusplus
30546}
30547#endif
30548
30549int
30550main ()
30551{
30552return f != $ac_func;
30553 ;
30554 return 0;
30555}
30556_ACEOF
30557rm -f conftest.$ac_objext conftest$ac_exeext
30558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30559 (eval $ac_link) 2>conftest.er1
a848cd7e 30560 ac_status=$?
ac1cb8d3
VS
30561 grep -v '^ *+' conftest.er1 >conftest.err
30562 rm -f conftest.er1
30563 cat conftest.err >&5
a848cd7e
SC
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); } &&
9dd0f6c2 30566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; }; then
30578 eval "$as_ac_var=yes"
30579else
30580 echo "$as_me: failed program was:" >&5
30581sed 's/^/| /' conftest.$ac_ext >&5
30582
30583eval "$as_ac_var=no"
30584fi
ac1cb8d3
VS
30585rm -f conftest.err conftest.$ac_objext \
30586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30587fi
30588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30590if test `eval echo '${'$as_ac_var'}'` = yes; then
30591 cat >>confdefs.h <<_ACEOF
30592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30593_ACEOF
30594
30595fi
30596done
30597
30598else
30599 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30600echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30601fi
30602
30603
30604
30605ac_ext=cc
30606ac_cpp='$CXXCPP $CPPFLAGS'
30607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30610
30611
30612
30613for ac_func in vsnprintf
30614do
30615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30616echo "$as_me:$LINENO: checking for $ac_func" >&5
30617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30618if eval "test \"\${$as_ac_var+set}\" = set"; then
30619 echo $ECHO_N "(cached) $ECHO_C" >&6
30620else
30621 cat >conftest.$ac_ext <<_ACEOF
30622/* confdefs.h. */
30623_ACEOF
30624cat confdefs.h >>conftest.$ac_ext
30625cat >>conftest.$ac_ext <<_ACEOF
30626/* end confdefs.h. */
ac1cb8d3
VS
30627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30629#define $ac_func innocuous_$ac_func
30630
a848cd7e
SC
30631/* System header to define __stub macros and hopefully few prototypes,
30632 which can conflict with char $ac_func (); below.
30633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30634 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30635
a848cd7e
SC
30636#ifdef __STDC__
30637# include <limits.h>
30638#else
30639# include <assert.h>
30640#endif
ac1cb8d3
VS
30641
30642#undef $ac_func
30643
a848cd7e
SC
30644/* Override any gcc2 internal prototype to avoid an error. */
30645#ifdef __cplusplus
30646extern "C"
30647{
30648#endif
30649/* We use char because int might match the return type of a gcc2
30650 builtin and then its argument prototype would still apply. */
30651char $ac_func ();
30652/* The GNU C library defines this for functions which it implements
30653 to always fail with ENOSYS. Some functions are actually named
30654 something starting with __ and the normal name is an alias. */
30655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30656choke me
30657#else
30658char (*f) () = $ac_func;
30659#endif
30660#ifdef __cplusplus
30661}
30662#endif
30663
30664int
30665main ()
30666{
30667return f != $ac_func;
30668 ;
30669 return 0;
30670}
30671_ACEOF
30672rm -f conftest.$ac_objext conftest$ac_exeext
30673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30674 (eval $ac_link) 2>conftest.er1
a848cd7e 30675 ac_status=$?
ac1cb8d3
VS
30676 grep -v '^ *+' conftest.er1 >conftest.err
30677 rm -f conftest.er1
30678 cat conftest.err >&5
a848cd7e
SC
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } &&
9dd0f6c2 30681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; } &&
30687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; }; then
30693 eval "$as_ac_var=yes"
30694else
30695 echo "$as_me: failed program was:" >&5
30696sed 's/^/| /' conftest.$ac_ext >&5
30697
30698eval "$as_ac_var=no"
30699fi
ac1cb8d3
VS
30700rm -f conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30702fi
30703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30705if test `eval echo '${'$as_ac_var'}'` = yes; then
30706 cat >>confdefs.h <<_ACEOF
30707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30708_ACEOF
30709
30710fi
30711done
30712
30713
30714if test "$ac_cv_func_vsnprintf" = "yes"; then
30715 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30716echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30717if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30718 echo $ECHO_N "(cached) $ECHO_C" >&6
30719else
30720
30721 cat >conftest.$ac_ext <<_ACEOF
30722/* confdefs.h. */
30723_ACEOF
30724cat confdefs.h >>conftest.$ac_ext
30725cat >>conftest.$ac_ext <<_ACEOF
30726/* end confdefs.h. */
30727
30728 #include <stdio.h>
30729 #include <stdarg.h>
30730
30731int
30732main ()
30733{
30734
30735 char *buf;
30736 va_list ap;
30737 vsnprintf(buf, 10u, "%s", ap);
30738
30739 ;
30740 return 0;
30741}
30742_ACEOF
30743rm -f conftest.$ac_objext
30744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30745 (eval $ac_compile) 2>conftest.er1
a848cd7e 30746 ac_status=$?
ac1cb8d3
VS
30747 grep -v '^ *+' conftest.er1 >conftest.err
30748 rm -f conftest.er1
30749 cat conftest.err >&5
a848cd7e
SC
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } &&
9dd0f6c2 30752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754 (eval $ac_try) 2>&5
30755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; } &&
30758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30761 ac_status=$?
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; }; then
30764 wx_cv_func_vsnprintf_decl=yes
30765else
30766 echo "$as_me: failed program was:" >&5
30767sed 's/^/| /' conftest.$ac_ext >&5
30768
c122b164
DE
30769
30770 cat >conftest.$ac_ext <<_ACEOF
30771/* confdefs.h. */
30772_ACEOF
30773cat confdefs.h >>conftest.$ac_ext
30774cat >>conftest.$ac_ext <<_ACEOF
30775/* end confdefs.h. */
30776
30777 #include <stdio.h>
30778 #include <stdarg.h>
30779 using namespace std;
30780
30781int
30782main ()
30783{
30784
30785 char *buf;
30786 va_list ap;
30787 vsnprintf(buf, 10u, "%s", ap);
30788
30789 ;
30790 return 0;
30791}
30792_ACEOF
30793rm -f conftest.$ac_objext
30794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30795 (eval $ac_compile) 2>conftest.er1
30796 ac_status=$?
30797 grep -v '^ *+' conftest.er1 >conftest.err
30798 rm -f conftest.er1
30799 cat conftest.err >&5
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } &&
9dd0f6c2 30802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; } &&
30808 { ac_try='test -s conftest.$ac_objext'
30809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810 (eval $ac_try) 2>&5
30811 ac_status=$?
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; }; then
30814 wx_cv_func_vsnprintf_decl=yes
30815else
30816 echo "$as_me: failed program was:" >&5
30817sed 's/^/| /' conftest.$ac_ext >&5
30818
a848cd7e
SC
30819wx_cv_func_vsnprintf_decl=no
30820
30821fi
ac1cb8d3 30822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30823
30824
c122b164
DE
30825fi
30826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30827
30828
a848cd7e
SC
30829fi
30830echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30831echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30832
30833 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30834 cat >>confdefs.h <<\_ACEOF
30835#define HAVE_VSNPRINTF_DECL 1
30836_ACEOF
30837
30838 fi
30839fi
30840
30841if test "$wxUSE_UNICODE" = yes; then
30842
30843
30844
fbe47c7b
VS
30845
30846
30847
30848for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30849do
30850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30851echo "$as_me:$LINENO: checking for $ac_func" >&5
30852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30853if eval "test \"\${$as_ac_var+set}\" = set"; then
30854 echo $ECHO_N "(cached) $ECHO_C" >&6
30855else
30856 cat >conftest.$ac_ext <<_ACEOF
30857/* confdefs.h. */
30858_ACEOF
30859cat confdefs.h >>conftest.$ac_ext
30860cat >>conftest.$ac_ext <<_ACEOF
30861/* end confdefs.h. */
ac1cb8d3
VS
30862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30864#define $ac_func innocuous_$ac_func
30865
a848cd7e
SC
30866/* System header to define __stub macros and hopefully few prototypes,
30867 which can conflict with char $ac_func (); below.
30868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30869 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30870
a848cd7e
SC
30871#ifdef __STDC__
30872# include <limits.h>
30873#else
30874# include <assert.h>
30875#endif
ac1cb8d3
VS
30876
30877#undef $ac_func
30878
a848cd7e
SC
30879/* Override any gcc2 internal prototype to avoid an error. */
30880#ifdef __cplusplus
30881extern "C"
30882{
30883#endif
30884/* We use char because int might match the return type of a gcc2
30885 builtin and then its argument prototype would still apply. */
30886char $ac_func ();
30887/* The GNU C library defines this for functions which it implements
30888 to always fail with ENOSYS. Some functions are actually named
30889 something starting with __ and the normal name is an alias. */
30890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30891choke me
30892#else
30893char (*f) () = $ac_func;
30894#endif
30895#ifdef __cplusplus
30896}
30897#endif
30898
30899int
30900main ()
30901{
30902return f != $ac_func;
30903 ;
30904 return 0;
30905}
30906_ACEOF
30907rm -f conftest.$ac_objext conftest$ac_exeext
30908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30909 (eval $ac_link) 2>conftest.er1
a848cd7e 30910 ac_status=$?
ac1cb8d3
VS
30911 grep -v '^ *+' conftest.er1 >conftest.err
30912 rm -f conftest.er1
30913 cat conftest.err >&5
a848cd7e
SC
30914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915 (exit $ac_status); } &&
9dd0f6c2 30916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918 (eval $ac_try) 2>&5
30919 ac_status=$?
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); }; } &&
30922 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924 (eval $ac_try) 2>&5
30925 ac_status=$?
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; }; then
30928 eval "$as_ac_var=yes"
30929else
30930 echo "$as_me: failed program was:" >&5
30931sed 's/^/| /' conftest.$ac_ext >&5
30932
30933eval "$as_ac_var=no"
30934fi
ac1cb8d3
VS
30935rm -f conftest.err conftest.$ac_objext \
30936 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30937fi
30938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30939echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30940if test `eval echo '${'$as_ac_var'}'` = yes; then
30941 cat >>confdefs.h <<_ACEOF
30942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30943_ACEOF
30944
30945fi
30946done
30947
30948
30949 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30950echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30951 cat >conftest.$ac_ext <<_ACEOF
30952/* confdefs.h. */
30953_ACEOF
30954cat confdefs.h >>conftest.$ac_ext
30955cat >>conftest.$ac_ext <<_ACEOF
30956/* end confdefs.h. */
30957#include <wchar.h>
30958int
30959main ()
30960{
30961&_vsnwprintf;
30962 ;
30963 return 0;
30964}
30965_ACEOF
30966rm -f conftest.$ac_objext
30967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30968 (eval $ac_compile) 2>conftest.er1
a848cd7e 30969 ac_status=$?
ac1cb8d3
VS
30970 grep -v '^ *+' conftest.er1 >conftest.err
30971 rm -f conftest.er1
30972 cat conftest.err >&5
a848cd7e
SC
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); } &&
9dd0f6c2 30975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 (eval $ac_try) 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; } &&
30981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983 (eval $ac_try) 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 echo "$as_me:$LINENO: result: yes" >&5
30988echo "${ECHO_T}yes" >&6
30989 cat >>confdefs.h <<\_ACEOF
30990#define HAVE__VSNWPRINTF 1
30991_ACEOF
30992
30993else
30994 echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
30997echo "$as_me:$LINENO: result: no" >&5
30998echo "${ECHO_T}no" >&6
30999fi
ac1cb8d3 31000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31001fi
31002
31003ac_ext=c
31004ac_cpp='$CPP $CPPFLAGS'
31005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31007ac_compiler_gnu=$ac_cv_c_compiler_gnu
31008
31009
31010
31011
31012if test "$TOOLKIT" != "MSW"; then
31013
31014
31015
31016
31017ac_ext=cc
31018ac_cpp='$CXXCPP $CPPFLAGS'
31019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31022
31023
31024
31025
31026# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31027if test "${with_libiconv_prefix+set}" = set; then
31028 withval="$with_libiconv_prefix"
31029
31030 for dir in `echo "$withval" | tr : ' '`; do
31031 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31032 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31033 done
31034
31035fi;
31036
31037 echo "$as_me:$LINENO: checking for iconv" >&5
31038echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31039if test "${am_cv_func_iconv+set}" = set; then
31040 echo $ECHO_N "(cached) $ECHO_C" >&6
31041else
31042
31043 am_cv_func_iconv="no, consider installing GNU libiconv"
31044 am_cv_lib_iconv=no
31045 cat >conftest.$ac_ext <<_ACEOF
31046/* confdefs.h. */
31047_ACEOF
31048cat confdefs.h >>conftest.$ac_ext
31049cat >>conftest.$ac_ext <<_ACEOF
31050/* end confdefs.h. */
31051#include <stdlib.h>
31052#include <iconv.h>
31053int
31054main ()
31055{
31056iconv_t cd = iconv_open("","");
31057 iconv(cd,NULL,NULL,NULL,NULL);
31058 iconv_close(cd);
31059 ;
31060 return 0;
31061}
31062_ACEOF
31063rm -f conftest.$ac_objext conftest$ac_exeext
31064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31065 (eval $ac_link) 2>conftest.er1
a848cd7e 31066 ac_status=$?
ac1cb8d3
VS
31067 grep -v '^ *+' conftest.er1 >conftest.err
31068 rm -f conftest.er1
31069 cat conftest.err >&5
a848cd7e
SC
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); } &&
9dd0f6c2 31072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; } &&
31078 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31081 ac_status=$?
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; }; then
31084 am_cv_func_iconv=yes
31085else
31086 echo "$as_me: failed program was:" >&5
31087sed 's/^/| /' conftest.$ac_ext >&5
31088
31089fi
ac1cb8d3
VS
31090rm -f conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31092 if test "$am_cv_func_iconv" != yes; then
31093 am_save_LIBS="$LIBS"
31094 LIBS="$LIBS -liconv"
31095 cat >conftest.$ac_ext <<_ACEOF
31096/* confdefs.h. */
31097_ACEOF
31098cat confdefs.h >>conftest.$ac_ext
31099cat >>conftest.$ac_ext <<_ACEOF
31100/* end confdefs.h. */
31101#include <stdlib.h>
31102#include <iconv.h>
31103int
31104main ()
31105{
31106iconv_t cd = iconv_open("","");
31107 iconv(cd,NULL,NULL,NULL,NULL);
31108 iconv_close(cd);
31109 ;
31110 return 0;
31111}
31112_ACEOF
31113rm -f conftest.$ac_objext conftest$ac_exeext
31114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31115 (eval $ac_link) 2>conftest.er1
a848cd7e 31116 ac_status=$?
ac1cb8d3
VS
31117 grep -v '^ *+' conftest.er1 >conftest.err
31118 rm -f conftest.er1
31119 cat conftest.err >&5
a848cd7e
SC
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); } &&
9dd0f6c2 31122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124 (eval $ac_try) 2>&5
31125 ac_status=$?
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); }; } &&
31128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130 (eval $ac_try) 2>&5
31131 ac_status=$?
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; }; then
31134 am_cv_lib_iconv=yes
31135 am_cv_func_iconv=yes
31136else
31137 echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
31140fi
ac1cb8d3
VS
31141rm -f conftest.err conftest.$ac_objext \
31142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31143 LIBS="$am_save_LIBS"
31144 fi
31145
31146fi
31147echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31148echo "${ECHO_T}$am_cv_func_iconv" >&6
31149 if test "$am_cv_func_iconv" = yes; then
31150
31151cat >>confdefs.h <<\_ACEOF
31152#define HAVE_ICONV 1
31153_ACEOF
31154
31155 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31156echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31157if test "${wx_cv_func_iconv_const+set}" = set; then
31158 echo $ECHO_N "(cached) $ECHO_C" >&6
31159else
31160 cat >conftest.$ac_ext <<_ACEOF
31161/* confdefs.h. */
31162_ACEOF
31163cat confdefs.h >>conftest.$ac_ext
31164cat >>conftest.$ac_ext <<_ACEOF
31165/* end confdefs.h. */
31166
31167#include <stdlib.h>
31168#include <iconv.h>
31169extern
31170#ifdef __cplusplus
31171"C"
31172#endif
31173#if defined(__STDC__) || defined(__cplusplus)
31174size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31175#else
31176size_t iconv();
31177#endif
31178
31179int
31180main ()
31181{
31182
31183 ;
31184 return 0;
31185}
31186_ACEOF
31187rm -f conftest.$ac_objext
31188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31189 (eval $ac_compile) 2>conftest.er1
a848cd7e 31190 ac_status=$?
ac1cb8d3
VS
31191 grep -v '^ *+' conftest.er1 >conftest.err
31192 rm -f conftest.er1
31193 cat conftest.err >&5
a848cd7e
SC
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } &&
9dd0f6c2 31196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31199 ac_status=$?
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; } &&
31202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; }; then
31208 wx_cv_func_iconv_const="no"
31209else
31210 echo "$as_me: failed program was:" >&5
31211sed 's/^/| /' conftest.$ac_ext >&5
31212
31213wx_cv_func_iconv_const="yes"
31214
31215fi
ac1cb8d3 31216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31217
31218fi
31219echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31220echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31221
31222 iconv_const=
31223 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31224 iconv_const="const"
31225 fi
31226
31227
31228cat >>confdefs.h <<_ACEOF
31229#define ICONV_CONST $iconv_const
31230_ACEOF
31231
31232 fi
31233 LIBICONV=
31234 if test "$am_cv_lib_iconv" = yes; then
31235 LIBICONV="-liconv"
31236 fi
31237
31238
31239LIBS="$LIBICONV $LIBS"
31240ac_ext=c
31241ac_cpp='$CPP $CPPFLAGS'
31242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31244ac_compiler_gnu=$ac_cv_c_compiler_gnu
31245
31246
31247if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31248
31249for ac_func in sigaction
31250do
31251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31252echo "$as_me:$LINENO: checking for $ac_func" >&5
31253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31254if eval "test \"\${$as_ac_var+set}\" = set"; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31256else
31257 cat >conftest.$ac_ext <<_ACEOF
31258/* confdefs.h. */
31259_ACEOF
31260cat confdefs.h >>conftest.$ac_ext
31261cat >>conftest.$ac_ext <<_ACEOF
31262/* end confdefs.h. */
ac1cb8d3
VS
31263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31265#define $ac_func innocuous_$ac_func
31266
a848cd7e
SC
31267/* System header to define __stub macros and hopefully few prototypes,
31268 which can conflict with char $ac_func (); below.
31269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31270 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31271
a848cd7e
SC
31272#ifdef __STDC__
31273# include <limits.h>
31274#else
31275# include <assert.h>
31276#endif
ac1cb8d3
VS
31277
31278#undef $ac_func
31279
a848cd7e
SC
31280/* Override any gcc2 internal prototype to avoid an error. */
31281#ifdef __cplusplus
31282extern "C"
31283{
31284#endif
31285/* We use char because int might match the return type of a gcc2
31286 builtin and then its argument prototype would still apply. */
31287char $ac_func ();
31288/* The GNU C library defines this for functions which it implements
31289 to always fail with ENOSYS. Some functions are actually named
31290 something starting with __ and the normal name is an alias. */
31291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31292choke me
31293#else
31294char (*f) () = $ac_func;
31295#endif
31296#ifdef __cplusplus
31297}
31298#endif
31299
31300int
31301main ()
31302{
31303return f != $ac_func;
31304 ;
31305 return 0;
31306}
31307_ACEOF
31308rm -f conftest.$ac_objext conftest$ac_exeext
31309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31310 (eval $ac_link) 2>conftest.er1
a848cd7e 31311 ac_status=$?
ac1cb8d3
VS
31312 grep -v '^ *+' conftest.er1 >conftest.err
31313 rm -f conftest.er1
31314 cat conftest.err >&5
a848cd7e
SC
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); } &&
9dd0f6c2 31317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; } &&
31323 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325 (eval $ac_try) 2>&5
31326 ac_status=$?
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31329 eval "$as_ac_var=yes"
31330else
31331 echo "$as_me: failed program was:" >&5
31332sed 's/^/| /' conftest.$ac_ext >&5
31333
31334eval "$as_ac_var=no"
31335fi
ac1cb8d3
VS
31336rm -f conftest.err conftest.$ac_objext \
31337 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31338fi
31339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31341if test `eval echo '${'$as_ac_var'}'` = yes; then
31342 cat >>confdefs.h <<_ACEOF
31343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31344_ACEOF
31345
31346fi
31347done
31348
31349
31350 if test "$ac_cv_func_sigaction" = "no"; then
31351 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31352echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31353 wxUSE_ON_FATAL_EXCEPTION=no
31354 fi
31355
31356 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31357
31358
31359 ac_ext=cc
31360ac_cpp='$CXXCPP $CPPFLAGS'
31361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31364
31365
31366 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31367echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31368if test "${wx_cv_type_sa_handler+set}" = set; then
31369 echo $ECHO_N "(cached) $ECHO_C" >&6
31370else
31371
31372 cat >conftest.$ac_ext <<_ACEOF
31373/* confdefs.h. */
31374_ACEOF
31375cat confdefs.h >>conftest.$ac_ext
31376cat >>conftest.$ac_ext <<_ACEOF
31377/* end confdefs.h. */
31378#include <signal.h>
31379int
31380main ()
31381{
31382
31383 extern void testSigHandler(int);
31384
31385 struct sigaction sa;
31386 sa.sa_handler = testSigHandler;
31387
31388 ;
31389 return 0;
31390}
31391_ACEOF
31392rm -f conftest.$ac_objext
31393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31394 (eval $ac_compile) 2>conftest.er1
a848cd7e 31395 ac_status=$?
ac1cb8d3
VS
31396 grep -v '^ *+' conftest.er1 >conftest.err
31397 rm -f conftest.er1
31398 cat conftest.err >&5
a848cd7e
SC
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); } &&
9dd0f6c2 31401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403 (eval $ac_try) 2>&5
31404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; } &&
31407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; }; then
31413
31414 wx_cv_type_sa_handler=int
31415
31416else
31417 echo "$as_me: failed program was:" >&5
31418sed 's/^/| /' conftest.$ac_ext >&5
31419
31420
31421 wx_cv_type_sa_handler=void
31422
31423fi
ac1cb8d3 31424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31425
31426fi
31427echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31428echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31429
31430 ac_ext=c
31431ac_cpp='$CPP $CPPFLAGS'
31432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31434ac_compiler_gnu=$ac_cv_c_compiler_gnu
31435
31436
31437 cat >>confdefs.h <<_ACEOF
31438#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31439_ACEOF
31440
31441 fi
31442fi
31443
eaff0f0d
VZ
31444if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31445
31446
31447 ac_ext=cc
31448ac_cpp='$CXXCPP $CPPFLAGS'
31449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31452
31453
31454 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31455echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31456if test "${wx_cv_func_backtrace+set}" = set; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31458else
31459
31460 cat >conftest.$ac_ext <<_ACEOF
31461/* confdefs.h. */
31462_ACEOF
31463cat confdefs.h >>conftest.$ac_ext
31464cat >>conftest.$ac_ext <<_ACEOF
31465/* end confdefs.h. */
31466#include <execinfo.h>
31467int
31468main ()
31469{
31470
31471 void *trace[1];
31472 char **messages;
31473
31474 backtrace(trace, 1);
31475 messages = backtrace_symbols(trace, 1);
31476
31477 ;
31478 return 0;
31479}
31480_ACEOF
31481rm -f conftest.$ac_objext
31482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31483 (eval $ac_compile) 2>conftest.er1
31484 ac_status=$?
31485 grep -v '^ *+' conftest.er1 >conftest.err
31486 rm -f conftest.er1
31487 cat conftest.err >&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); } &&
9dd0f6c2 31490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31492 (eval $ac_try) 2>&5
31493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; } &&
31496 { ac_try='test -s conftest.$ac_objext'
31497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31498 (eval $ac_try) 2>&5
31499 ac_status=$?
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); }; }; then
31502 wx_cv_func_backtrace=yes
31503else
31504 echo "$as_me: failed program was:" >&5
31505sed 's/^/| /' conftest.$ac_ext >&5
31506
31507wx_cv_func_backtrace=no
31508
31509fi
31510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31511
31512
31513fi
31514echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31515echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31516
31517
31518 if test "$wx_cv_func_backtrace" = "no"; then
31519 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31520echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31521 wxUSE_STACKWALKER=no
31522 else
31523 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31524echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31525if test "${wx_cv_func_cxa_demangle+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527else
31528
31529 cat >conftest.$ac_ext <<_ACEOF
31530/* confdefs.h. */
31531_ACEOF
31532cat confdefs.h >>conftest.$ac_ext
31533cat >>conftest.$ac_ext <<_ACEOF
31534/* end confdefs.h. */
31535#include <cxxabi.h>
31536int
31537main ()
31538{
31539
31540 int rc;
31541 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31542
31543 ;
31544 return 0;
31545}
31546_ACEOF
dfe0c803
JS
31547rm -f conftest.$ac_objext conftest$ac_exeext
31548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31549 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31550 ac_status=$?
31551 grep -v '^ *+' conftest.er1 >conftest.err
31552 rm -f conftest.er1
31553 cat conftest.err >&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } &&
9dd0f6c2 31556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558 (eval $ac_try) 2>&5
31559 ac_status=$?
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); }; } &&
dfe0c803 31562 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564 (eval $ac_try) 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 wx_cv_func_cxa_demangle=yes
31569else
31570 echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
31573wx_cv_func_cxa_demangle=no
31574
31575fi
dfe0c803
JS
31576rm -f conftest.err conftest.$ac_objext \
31577 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31578
31579
31580fi
31581echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31582echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31583
31584 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31585 cat >>confdefs.h <<\_ACEOF
31586#define HAVE_CXA_DEMANGLE 1
31587_ACEOF
31588
31589 fi
31590 fi
31591
31592 ac_ext=c
31593ac_cpp='$CPP $CPPFLAGS'
31594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31596ac_compiler_gnu=$ac_cv_c_compiler_gnu
31597
31598fi
31599
898beab1
DE
31600if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31601 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31602echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31603 wxUSE_STACKWALKER=no
31604fi
31605
31606
a848cd7e
SC
31607
31608
31609for ac_func in mkstemp mktemp
31610do
31611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31612echo "$as_me:$LINENO: checking for $ac_func" >&5
31613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31614if eval "test \"\${$as_ac_var+set}\" = set"; then
31615 echo $ECHO_N "(cached) $ECHO_C" >&6
31616else
31617 cat >conftest.$ac_ext <<_ACEOF
31618/* confdefs.h. */
31619_ACEOF
31620cat confdefs.h >>conftest.$ac_ext
31621cat >>conftest.$ac_ext <<_ACEOF
31622/* end confdefs.h. */
ac1cb8d3
VS
31623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31625#define $ac_func innocuous_$ac_func
31626
a848cd7e
SC
31627/* System header to define __stub macros and hopefully few prototypes,
31628 which can conflict with char $ac_func (); below.
31629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31630 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31631
a848cd7e
SC
31632#ifdef __STDC__
31633# include <limits.h>
31634#else
31635# include <assert.h>
31636#endif
ac1cb8d3
VS
31637
31638#undef $ac_func
31639
a848cd7e
SC
31640/* Override any gcc2 internal prototype to avoid an error. */
31641#ifdef __cplusplus
31642extern "C"
31643{
31644#endif
31645/* We use char because int might match the return type of a gcc2
31646 builtin and then its argument prototype would still apply. */
31647char $ac_func ();
31648/* The GNU C library defines this for functions which it implements
31649 to always fail with ENOSYS. Some functions are actually named
31650 something starting with __ and the normal name is an alias. */
31651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31652choke me
31653#else
31654char (*f) () = $ac_func;
31655#endif
31656#ifdef __cplusplus
31657}
31658#endif
31659
31660int
31661main ()
31662{
31663return f != $ac_func;
31664 ;
31665 return 0;
31666}
31667_ACEOF
31668rm -f conftest.$ac_objext conftest$ac_exeext
31669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31670 (eval $ac_link) 2>conftest.er1
a848cd7e 31671 ac_status=$?
ac1cb8d3
VS
31672 grep -v '^ *+' conftest.er1 >conftest.err
31673 rm -f conftest.er1
31674 cat conftest.err >&5
a848cd7e
SC
31675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676 (exit $ac_status); } &&
9dd0f6c2 31677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31679 (eval $ac_try) 2>&5
31680 ac_status=$?
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); }; } &&
31683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31685 (eval $ac_try) 2>&5
31686 ac_status=$?
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; }; then
31689 eval "$as_ac_var=yes"
31690else
31691 echo "$as_me: failed program was:" >&5
31692sed 's/^/| /' conftest.$ac_ext >&5
31693
31694eval "$as_ac_var=no"
31695fi
ac1cb8d3
VS
31696rm -f conftest.err conftest.$ac_objext \
31697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31698fi
31699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31700echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31701if test `eval echo '${'$as_ac_var'}'` = yes; then
31702 cat >>confdefs.h <<_ACEOF
31703#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31704_ACEOF
31705 break
31706fi
31707done
31708
31709
31710echo "$as_me:$LINENO: checking for statfs" >&5
31711echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31712if test "${wx_cv_func_statfs+set}" = set; then
31713 echo $ECHO_N "(cached) $ECHO_C" >&6
31714else
31715 cat >conftest.$ac_ext <<_ACEOF
31716/* confdefs.h. */
31717_ACEOF
31718cat confdefs.h >>conftest.$ac_ext
31719cat >>conftest.$ac_ext <<_ACEOF
31720/* end confdefs.h. */
31721
31722 #if defined(__BSD__)
31723 #include <sys/param.h>
31724 #include <sys/mount.h>
31725 #else
31726 #include <sys/vfs.h>
31727 #endif
31728
31729int
31730main ()
31731{
31732
31733 long l;
31734 struct statfs fs;
31735 statfs("/", &fs);
31736 l = fs.f_bsize;
31737 l += fs.f_blocks;
31738 l += fs.f_bavail;
31739
31740 ;
31741 return 0;
31742}
31743_ACEOF
31744rm -f conftest.$ac_objext
31745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31746 (eval $ac_compile) 2>conftest.er1
a848cd7e 31747 ac_status=$?
ac1cb8d3
VS
31748 grep -v '^ *+' conftest.er1 >conftest.err
31749 rm -f conftest.er1
31750 cat conftest.err >&5
a848cd7e
SC
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); } &&
9dd0f6c2 31753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31755 (eval $ac_try) 2>&5
31756 ac_status=$?
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); }; } &&
31759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31761 (eval $ac_try) 2>&5
31762 ac_status=$?
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); }; }; then
31765
31766 wx_cv_func_statfs=yes
31767
31768else
31769 echo "$as_me: failed program was:" >&5
31770sed 's/^/| /' conftest.$ac_ext >&5
31771
31772
31773 wx_cv_func_statfs=no
31774
31775
31776fi
ac1cb8d3 31777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31778
31779fi
31780echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31781echo "${ECHO_T}$wx_cv_func_statfs" >&6
31782
31783if test "$wx_cv_func_statfs" = "yes"; then
31784 wx_cv_type_statvfs_t="struct statfs"
31785 cat >>confdefs.h <<\_ACEOF
31786#define HAVE_STATFS 1
31787_ACEOF
31788
31789else
31790 echo "$as_me:$LINENO: checking for statvfs" >&5
31791echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31792if test "${wx_cv_func_statvfs+set}" = set; then
31793 echo $ECHO_N "(cached) $ECHO_C" >&6
31794else
31795 cat >conftest.$ac_ext <<_ACEOF
31796/* confdefs.h. */
31797_ACEOF
31798cat confdefs.h >>conftest.$ac_ext
31799cat >>conftest.$ac_ext <<_ACEOF
31800/* end confdefs.h. */
31801
31802 #include <stddef.h>
31803 #include <sys/statvfs.h>
31804
31805int
31806main ()
31807{
31808
31809 statvfs("/", NULL);
31810
31811 ;
31812 return 0;
31813}
31814_ACEOF
31815rm -f conftest.$ac_objext
31816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31817 (eval $ac_compile) 2>conftest.er1
a848cd7e 31818 ac_status=$?
ac1cb8d3
VS
31819 grep -v '^ *+' conftest.er1 >conftest.err
31820 rm -f conftest.er1
31821 cat conftest.err >&5
a848cd7e
SC
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); } &&
9dd0f6c2 31824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31826 (eval $ac_try) 2>&5
31827 ac_status=$?
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); }; } &&
31830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31832 (eval $ac_try) 2>&5
31833 ac_status=$?
31834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835 (exit $ac_status); }; }; then
31836 wx_cv_func_statvfs=yes
31837else
31838 echo "$as_me: failed program was:" >&5
31839sed 's/^/| /' conftest.$ac_ext >&5
31840
31841wx_cv_func_statvfs=no
31842
31843fi
ac1cb8d3 31844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31845
31846fi
31847echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31848echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31849
31850 if test "$wx_cv_func_statvfs" = "yes"; then
31851
31852
31853 ac_ext=cc
31854ac_cpp='$CXXCPP $CPPFLAGS'
31855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31858
31859
31860 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31861echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31862if test "${wx_cv_type_statvfs_t+set}" = set; then
31863 echo $ECHO_N "(cached) $ECHO_C" >&6
31864else
31865 cat >conftest.$ac_ext <<_ACEOF
31866/* confdefs.h. */
31867_ACEOF
31868cat confdefs.h >>conftest.$ac_ext
31869cat >>conftest.$ac_ext <<_ACEOF
31870/* end confdefs.h. */
31871
31872 #include <sys/statvfs.h>
31873
31874int
31875main ()
31876{
31877
31878 long l;
31879 statvfs_t fs;
31880 statvfs("/", &fs);
31881 l = fs.f_bsize;
31882 l += fs.f_blocks;
31883 l += fs.f_bavail;
31884
31885 ;
31886 return 0;
31887}
31888_ACEOF
31889rm -f conftest.$ac_objext
31890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31891 (eval $ac_compile) 2>conftest.er1
a848cd7e 31892 ac_status=$?
ac1cb8d3
VS
31893 grep -v '^ *+' conftest.er1 >conftest.err
31894 rm -f conftest.er1
31895 cat conftest.err >&5
a848cd7e
SC
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); } &&
9dd0f6c2 31898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900 (eval $ac_try) 2>&5
31901 ac_status=$?
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; } &&
31904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31906 (eval $ac_try) 2>&5
31907 ac_status=$?
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); }; }; then
31910 wx_cv_type_statvfs_t=statvfs_t
31911else
31912 echo "$as_me: failed program was:" >&5
31913sed 's/^/| /' conftest.$ac_ext >&5
31914
31915
31916 cat >conftest.$ac_ext <<_ACEOF
31917/* confdefs.h. */
31918_ACEOF
31919cat confdefs.h >>conftest.$ac_ext
31920cat >>conftest.$ac_ext <<_ACEOF
31921/* end confdefs.h. */
31922
31923 #include <sys/statvfs.h>
31924
31925int
31926main ()
31927{
31928
31929 long l;
31930 struct statvfs fs;
31931 statvfs("/", &fs);
31932 l = fs.f_bsize;
31933 l += fs.f_blocks;
31934 l += fs.f_bavail;
31935
31936 ;
31937 return 0;
31938}
31939_ACEOF
31940rm -f conftest.$ac_objext
31941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31942 (eval $ac_compile) 2>conftest.er1
a848cd7e 31943 ac_status=$?
ac1cb8d3
VS
31944 grep -v '^ *+' conftest.er1 >conftest.err
31945 rm -f conftest.er1
31946 cat conftest.err >&5
a848cd7e
SC
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } &&
9dd0f6c2 31949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31951 (eval $ac_try) 2>&5
31952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; } &&
31955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31957 (eval $ac_try) 2>&5
31958 ac_status=$?
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); }; }; then
31961 wx_cv_type_statvfs_t="struct statvfs"
31962else
31963 echo "$as_me: failed program was:" >&5
31964sed 's/^/| /' conftest.$ac_ext >&5
31965
31966wx_cv_type_statvfs_t="unknown"
31967
31968fi
ac1cb8d3 31969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31970
31971
31972fi
ac1cb8d3 31973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31974
31975fi
31976echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31977echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31978
31979 ac_ext=c
31980ac_cpp='$CPP $CPPFLAGS'
31981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31983ac_compiler_gnu=$ac_cv_c_compiler_gnu
31984
31985
31986 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31987 cat >>confdefs.h <<\_ACEOF
31988#define HAVE_STATVFS 1
31989_ACEOF
31990
31991 fi
31992 else
31993 wx_cv_type_statvfs_t="unknown"
31994 fi
31995fi
31996
31997if test "$wx_cv_type_statvfs_t" != "unknown"; then
31998 cat >>confdefs.h <<_ACEOF
31999#define WX_STATFS_T $wx_cv_type_statvfs_t
32000_ACEOF
32001
32002else
32003 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32004echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32005fi
32006
32007if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32008
32009
32010for ac_func in fcntl flock
32011do
32012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32013echo "$as_me:$LINENO: checking for $ac_func" >&5
32014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32015if eval "test \"\${$as_ac_var+set}\" = set"; then
32016 echo $ECHO_N "(cached) $ECHO_C" >&6
32017else
32018 cat >conftest.$ac_ext <<_ACEOF
32019/* confdefs.h. */
32020_ACEOF
32021cat confdefs.h >>conftest.$ac_ext
32022cat >>conftest.$ac_ext <<_ACEOF
32023/* end confdefs.h. */
ac1cb8d3
VS
32024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32026#define $ac_func innocuous_$ac_func
32027
a848cd7e
SC
32028/* System header to define __stub macros and hopefully few prototypes,
32029 which can conflict with char $ac_func (); below.
32030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32031 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32032
a848cd7e
SC
32033#ifdef __STDC__
32034# include <limits.h>
32035#else
32036# include <assert.h>
32037#endif
ac1cb8d3
VS
32038
32039#undef $ac_func
32040
a848cd7e
SC
32041/* Override any gcc2 internal prototype to avoid an error. */
32042#ifdef __cplusplus
32043extern "C"
32044{
32045#endif
32046/* We use char because int might match the return type of a gcc2
32047 builtin and then its argument prototype would still apply. */
32048char $ac_func ();
32049/* The GNU C library defines this for functions which it implements
32050 to always fail with ENOSYS. Some functions are actually named
32051 something starting with __ and the normal name is an alias. */
32052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32053choke me
32054#else
32055char (*f) () = $ac_func;
32056#endif
32057#ifdef __cplusplus
32058}
32059#endif
32060
32061int
32062main ()
32063{
32064return f != $ac_func;
32065 ;
32066 return 0;
32067}
32068_ACEOF
32069rm -f conftest.$ac_objext conftest$ac_exeext
32070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32071 (eval $ac_link) 2>conftest.er1
a848cd7e 32072 ac_status=$?
ac1cb8d3
VS
32073 grep -v '^ *+' conftest.er1 >conftest.err
32074 rm -f conftest.er1
32075 cat conftest.err >&5
a848cd7e
SC
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
9dd0f6c2 32078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080 (eval $ac_try) 2>&5
32081 ac_status=$?
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; } &&
32084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086 (eval $ac_try) 2>&5
32087 ac_status=$?
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; }; then
32090 eval "$as_ac_var=yes"
32091else
32092 echo "$as_me: failed program was:" >&5
32093sed 's/^/| /' conftest.$ac_ext >&5
32094
32095eval "$as_ac_var=no"
32096fi
ac1cb8d3
VS
32097rm -f conftest.err conftest.$ac_objext \
32098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32099fi
32100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32102if test `eval echo '${'$as_ac_var'}'` = yes; then
32103 cat >>confdefs.h <<_ACEOF
32104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32105_ACEOF
32106 break
32107fi
32108done
32109
32110
32111 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32112 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32113echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32114 wxUSE_SNGLINST_CHECKER=no
32115 fi
32116fi
32117
32118
32119for ac_func in timegm
32120do
32121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32122echo "$as_me:$LINENO: checking for $ac_func" >&5
32123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32124if eval "test \"\${$as_ac_var+set}\" = set"; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32126else
32127 cat >conftest.$ac_ext <<_ACEOF
32128/* confdefs.h. */
32129_ACEOF
32130cat confdefs.h >>conftest.$ac_ext
32131cat >>conftest.$ac_ext <<_ACEOF
32132/* end confdefs.h. */
ac1cb8d3
VS
32133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32135#define $ac_func innocuous_$ac_func
32136
a848cd7e
SC
32137/* System header to define __stub macros and hopefully few prototypes,
32138 which can conflict with char $ac_func (); below.
32139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32141
a848cd7e
SC
32142#ifdef __STDC__
32143# include <limits.h>
32144#else
32145# include <assert.h>
32146#endif
ac1cb8d3
VS
32147
32148#undef $ac_func
32149
a848cd7e
SC
32150/* Override any gcc2 internal prototype to avoid an error. */
32151#ifdef __cplusplus
32152extern "C"
32153{
32154#endif
32155/* We use char because int might match the return type of a gcc2
32156 builtin and then its argument prototype would still apply. */
32157char $ac_func ();
32158/* The GNU C library defines this for functions which it implements
32159 to always fail with ENOSYS. Some functions are actually named
32160 something starting with __ and the normal name is an alias. */
32161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32162choke me
32163#else
32164char (*f) () = $ac_func;
32165#endif
32166#ifdef __cplusplus
32167}
32168#endif
32169
32170int
32171main ()
32172{
32173return f != $ac_func;
32174 ;
32175 return 0;
32176}
32177_ACEOF
32178rm -f conftest.$ac_objext conftest$ac_exeext
32179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32180 (eval $ac_link) 2>conftest.er1
a848cd7e 32181 ac_status=$?
ac1cb8d3
VS
32182 grep -v '^ *+' conftest.er1 >conftest.err
32183 rm -f conftest.er1
32184 cat conftest.err >&5
a848cd7e
SC
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); } &&
9dd0f6c2 32187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32189 (eval $ac_try) 2>&5
32190 ac_status=$?
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; } &&
32193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32195 (eval $ac_try) 2>&5
32196 ac_status=$?
32197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 (exit $ac_status); }; }; then
32199 eval "$as_ac_var=yes"
32200else
32201 echo "$as_me: failed program was:" >&5
32202sed 's/^/| /' conftest.$ac_ext >&5
32203
32204eval "$as_ac_var=no"
32205fi
ac1cb8d3
VS
32206rm -f conftest.err conftest.$ac_objext \
32207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32208fi
32209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32211if test `eval echo '${'$as_ac_var'}'` = yes; then
32212 cat >>confdefs.h <<_ACEOF
32213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32214_ACEOF
32215
32216fi
32217done
32218
32219
32220
32221
32222for ac_func in putenv setenv
32223do
32224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32225echo "$as_me:$LINENO: checking for $ac_func" >&5
32226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32227if eval "test \"\${$as_ac_var+set}\" = set"; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32229else
32230 cat >conftest.$ac_ext <<_ACEOF
32231/* confdefs.h. */
32232_ACEOF
32233cat confdefs.h >>conftest.$ac_ext
32234cat >>conftest.$ac_ext <<_ACEOF
32235/* end confdefs.h. */
ac1cb8d3
VS
32236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32238#define $ac_func innocuous_$ac_func
32239
a848cd7e
SC
32240/* System header to define __stub macros and hopefully few prototypes,
32241 which can conflict with char $ac_func (); below.
32242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32244
a848cd7e
SC
32245#ifdef __STDC__
32246# include <limits.h>
32247#else
32248# include <assert.h>
32249#endif
ac1cb8d3
VS
32250
32251#undef $ac_func
32252
a848cd7e
SC
32253/* Override any gcc2 internal prototype to avoid an error. */
32254#ifdef __cplusplus
32255extern "C"
32256{
32257#endif
32258/* We use char because int might match the return type of a gcc2
32259 builtin and then its argument prototype would still apply. */
32260char $ac_func ();
32261/* The GNU C library defines this for functions which it implements
32262 to always fail with ENOSYS. Some functions are actually named
32263 something starting with __ and the normal name is an alias. */
32264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32265choke me
32266#else
32267char (*f) () = $ac_func;
32268#endif
32269#ifdef __cplusplus
32270}
32271#endif
32272
32273int
32274main ()
32275{
32276return f != $ac_func;
32277 ;
32278 return 0;
32279}
32280_ACEOF
32281rm -f conftest.$ac_objext conftest$ac_exeext
32282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32283 (eval $ac_link) 2>conftest.er1
a848cd7e 32284 ac_status=$?
ac1cb8d3
VS
32285 grep -v '^ *+' conftest.er1 >conftest.err
32286 rm -f conftest.er1
32287 cat conftest.err >&5
a848cd7e
SC
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } &&
9dd0f6c2 32290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292 (eval $ac_try) 2>&5
32293 ac_status=$?
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); }; } &&
32296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32298 (eval $ac_try) 2>&5
32299 ac_status=$?
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
32302 eval "$as_ac_var=yes"
32303else
32304 echo "$as_me: failed program was:" >&5
32305sed 's/^/| /' conftest.$ac_ext >&5
32306
32307eval "$as_ac_var=no"
32308fi
ac1cb8d3
VS
32309rm -f conftest.err conftest.$ac_objext \
32310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32311fi
32312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32314if test `eval echo '${'$as_ac_var'}'` = yes; then
32315 cat >>confdefs.h <<_ACEOF
32316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32317_ACEOF
32318 break
32319fi
32320done
32321
32322
32323HAVE_SOME_SLEEP_FUNC=0
32324if test "$USE_BEOS" = 1; then
32325 cat >>confdefs.h <<\_ACEOF
32326#define HAVE_SLEEP 1
32327_ACEOF
32328
32329 HAVE_SOME_SLEEP_FUNC=1
32330fi
32331
32332if test "$USE_DARWIN" = 1; then
32333 cat >>confdefs.h <<\_ACEOF
32334#define HAVE_USLEEP 1
32335_ACEOF
32336
32337 HAVE_SOME_SLEEP_FUNC=1
32338fi
32339
32340if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32341 POSIX4_LINK=
32342
32343for ac_func in nanosleep
32344do
32345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32346echo "$as_me:$LINENO: checking for $ac_func" >&5
32347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32348if eval "test \"\${$as_ac_var+set}\" = set"; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32350else
32351 cat >conftest.$ac_ext <<_ACEOF
32352/* confdefs.h. */
32353_ACEOF
32354cat confdefs.h >>conftest.$ac_ext
32355cat >>conftest.$ac_ext <<_ACEOF
32356/* end confdefs.h. */
ac1cb8d3
VS
32357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32359#define $ac_func innocuous_$ac_func
32360
a848cd7e
SC
32361/* System header to define __stub macros and hopefully few prototypes,
32362 which can conflict with char $ac_func (); below.
32363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32364 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32365
a848cd7e
SC
32366#ifdef __STDC__
32367# include <limits.h>
32368#else
32369# include <assert.h>
32370#endif
ac1cb8d3
VS
32371
32372#undef $ac_func
32373
a848cd7e
SC
32374/* Override any gcc2 internal prototype to avoid an error. */
32375#ifdef __cplusplus
32376extern "C"
32377{
32378#endif
32379/* We use char because int might match the return type of a gcc2
32380 builtin and then its argument prototype would still apply. */
32381char $ac_func ();
32382/* The GNU C library defines this for functions which it implements
32383 to always fail with ENOSYS. Some functions are actually named
32384 something starting with __ and the normal name is an alias. */
32385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32386choke me
32387#else
32388char (*f) () = $ac_func;
32389#endif
32390#ifdef __cplusplus
32391}
32392#endif
32393
32394int
32395main ()
32396{
32397return f != $ac_func;
32398 ;
32399 return 0;
32400}
32401_ACEOF
32402rm -f conftest.$ac_objext conftest$ac_exeext
32403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32404 (eval $ac_link) 2>conftest.er1
a848cd7e 32405 ac_status=$?
ac1cb8d3
VS
32406 grep -v '^ *+' conftest.er1 >conftest.err
32407 rm -f conftest.er1
32408 cat conftest.err >&5
a848cd7e
SC
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
9dd0f6c2 32411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32413 (eval $ac_try) 2>&5
32414 ac_status=$?
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); }; } &&
32417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 eval "$as_ac_var=yes"
32424else
32425 echo "$as_me: failed program was:" >&5
32426sed 's/^/| /' conftest.$ac_ext >&5
32427
32428eval "$as_ac_var=no"
32429fi
ac1cb8d3
VS
32430rm -f conftest.err conftest.$ac_objext \
32431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32432fi
32433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32435if test `eval echo '${'$as_ac_var'}'` = yes; then
32436 cat >>confdefs.h <<_ACEOF
32437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32438_ACEOF
32439 cat >>confdefs.h <<\_ACEOF
32440#define HAVE_NANOSLEEP 1
32441_ACEOF
32442
32443else
32444
32445 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32446echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32447if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32448 echo $ECHO_N "(cached) $ECHO_C" >&6
32449else
32450 ac_check_lib_save_LIBS=$LIBS
32451LIBS="-lposix4 $LIBS"
32452cat >conftest.$ac_ext <<_ACEOF
32453/* confdefs.h. */
32454_ACEOF
32455cat confdefs.h >>conftest.$ac_ext
32456cat >>conftest.$ac_ext <<_ACEOF
32457/* end confdefs.h. */
32458
32459/* Override any gcc2 internal prototype to avoid an error. */
32460#ifdef __cplusplus
32461extern "C"
32462#endif
32463/* We use char because int might match the return type of a gcc2
32464 builtin and then its argument prototype would still apply. */
32465char nanosleep ();
32466int
32467main ()
32468{
32469nanosleep ();
32470 ;
32471 return 0;
32472}
32473_ACEOF
32474rm -f conftest.$ac_objext conftest$ac_exeext
32475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32476 (eval $ac_link) 2>conftest.er1
a848cd7e 32477 ac_status=$?
ac1cb8d3
VS
32478 grep -v '^ *+' conftest.er1 >conftest.err
32479 rm -f conftest.er1
32480 cat conftest.err >&5
a848cd7e
SC
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); } &&
9dd0f6c2 32483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32485 (eval $ac_try) 2>&5
32486 ac_status=$?
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); }; } &&
32489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32491 (eval $ac_try) 2>&5
32492 ac_status=$?
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); }; }; then
32495 ac_cv_lib_posix4_nanosleep=yes
32496else
32497 echo "$as_me: failed program was:" >&5
32498sed 's/^/| /' conftest.$ac_ext >&5
32499
32500ac_cv_lib_posix4_nanosleep=no
32501fi
ac1cb8d3
VS
32502rm -f conftest.err conftest.$ac_objext \
32503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32504LIBS=$ac_check_lib_save_LIBS
32505fi
32506echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32507echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32508if test $ac_cv_lib_posix4_nanosleep = yes; then
32509
32510 cat >>confdefs.h <<\_ACEOF
32511#define HAVE_NANOSLEEP 1
32512_ACEOF
32513
32514 POSIX4_LINK=" -lposix4"
32515
32516else
32517
32518
32519for ac_func in usleep
32520do
32521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32522echo "$as_me:$LINENO: checking for $ac_func" >&5
32523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32524if eval "test \"\${$as_ac_var+set}\" = set"; then
32525 echo $ECHO_N "(cached) $ECHO_C" >&6
32526else
32527 cat >conftest.$ac_ext <<_ACEOF
32528/* confdefs.h. */
32529_ACEOF
32530cat confdefs.h >>conftest.$ac_ext
32531cat >>conftest.$ac_ext <<_ACEOF
32532/* end confdefs.h. */
ac1cb8d3
VS
32533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32535#define $ac_func innocuous_$ac_func
32536
a848cd7e
SC
32537/* System header to define __stub macros and hopefully few prototypes,
32538 which can conflict with char $ac_func (); below.
32539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32540 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32541
a848cd7e
SC
32542#ifdef __STDC__
32543# include <limits.h>
32544#else
32545# include <assert.h>
32546#endif
ac1cb8d3
VS
32547
32548#undef $ac_func
32549
a848cd7e
SC
32550/* Override any gcc2 internal prototype to avoid an error. */
32551#ifdef __cplusplus
32552extern "C"
32553{
32554#endif
32555/* We use char because int might match the return type of a gcc2
32556 builtin and then its argument prototype would still apply. */
32557char $ac_func ();
32558/* The GNU C library defines this for functions which it implements
32559 to always fail with ENOSYS. Some functions are actually named
32560 something starting with __ and the normal name is an alias. */
32561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32562choke me
32563#else
32564char (*f) () = $ac_func;
32565#endif
32566#ifdef __cplusplus
32567}
32568#endif
32569
32570int
32571main ()
32572{
32573return f != $ac_func;
32574 ;
32575 return 0;
32576}
32577_ACEOF
32578rm -f conftest.$ac_objext conftest$ac_exeext
32579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32580 (eval $ac_link) 2>conftest.er1
a848cd7e 32581 ac_status=$?
ac1cb8d3
VS
32582 grep -v '^ *+' conftest.er1 >conftest.err
32583 rm -f conftest.er1
32584 cat conftest.err >&5
a848cd7e
SC
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } &&
9dd0f6c2 32587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32589 (eval $ac_try) 2>&5
32590 ac_status=$?
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595 (eval $ac_try) 2>&5
32596 ac_status=$?
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; }; then
32599 eval "$as_ac_var=yes"
32600else
32601 echo "$as_me: failed program was:" >&5
32602sed 's/^/| /' conftest.$ac_ext >&5
32603
32604eval "$as_ac_var=no"
32605fi
ac1cb8d3
VS
32606rm -f conftest.err conftest.$ac_objext \
32607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32608fi
32609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32611if test `eval echo '${'$as_ac_var'}'` = yes; then
32612 cat >>confdefs.h <<_ACEOF
32613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32614_ACEOF
32615 cat >>confdefs.h <<\_ACEOF
32616#define HAVE_USLEEP 1
32617_ACEOF
32618
32619else
32620 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32621echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32622
32623fi
32624done
32625
32626
32627
32628fi
32629
32630
32631
32632fi
32633done
32634
32635fi
32636
32637
32638
32639for ac_func in uname gethostname
32640do
32641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32642echo "$as_me:$LINENO: checking for $ac_func" >&5
32643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32644if eval "test \"\${$as_ac_var+set}\" = set"; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32646else
32647 cat >conftest.$ac_ext <<_ACEOF
32648/* confdefs.h. */
32649_ACEOF
32650cat confdefs.h >>conftest.$ac_ext
32651cat >>conftest.$ac_ext <<_ACEOF
32652/* end confdefs.h. */
ac1cb8d3
VS
32653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32655#define $ac_func innocuous_$ac_func
32656
a848cd7e
SC
32657/* System header to define __stub macros and hopefully few prototypes,
32658 which can conflict with char $ac_func (); below.
32659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32661
a848cd7e
SC
32662#ifdef __STDC__
32663# include <limits.h>
32664#else
32665# include <assert.h>
32666#endif
ac1cb8d3
VS
32667
32668#undef $ac_func
32669
a848cd7e
SC
32670/* Override any gcc2 internal prototype to avoid an error. */
32671#ifdef __cplusplus
32672extern "C"
32673{
32674#endif
32675/* We use char because int might match the return type of a gcc2
32676 builtin and then its argument prototype would still apply. */
32677char $ac_func ();
32678/* The GNU C library defines this for functions which it implements
32679 to always fail with ENOSYS. Some functions are actually named
32680 something starting with __ and the normal name is an alias. */
32681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32682choke me
32683#else
32684char (*f) () = $ac_func;
32685#endif
32686#ifdef __cplusplus
32687}
32688#endif
32689
32690int
32691main ()
32692{
32693return f != $ac_func;
32694 ;
32695 return 0;
32696}
32697_ACEOF
32698rm -f conftest.$ac_objext conftest$ac_exeext
32699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32700 (eval $ac_link) 2>conftest.er1
a848cd7e 32701 ac_status=$?
ac1cb8d3
VS
32702 grep -v '^ *+' conftest.er1 >conftest.err
32703 rm -f conftest.er1
32704 cat conftest.err >&5
a848cd7e
SC
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); } &&
9dd0f6c2 32707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32709 (eval $ac_try) 2>&5
32710 ac_status=$?
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); }; } &&
32713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32715 (eval $ac_try) 2>&5
32716 ac_status=$?
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); }; }; then
32719 eval "$as_ac_var=yes"
32720else
32721 echo "$as_me: failed program was:" >&5
32722sed 's/^/| /' conftest.$ac_ext >&5
32723
32724eval "$as_ac_var=no"
32725fi
ac1cb8d3
VS
32726rm -f conftest.err conftest.$ac_objext \
32727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32728fi
32729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32731if test `eval echo '${'$as_ac_var'}'` = yes; then
32732 cat >>confdefs.h <<_ACEOF
32733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32734_ACEOF
32735 break
32736fi
32737done
32738
32739
32740
32741
32742ac_ext=cc
32743ac_cpp='$CXXCPP $CPPFLAGS'
32744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32747
32748
32749
32750for ac_func in strtok_r
32751do
32752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32753echo "$as_me:$LINENO: checking for $ac_func" >&5
32754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32755if eval "test \"\${$as_ac_var+set}\" = set"; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32757else
32758 cat >conftest.$ac_ext <<_ACEOF
32759/* confdefs.h. */
32760_ACEOF
32761cat confdefs.h >>conftest.$ac_ext
32762cat >>conftest.$ac_ext <<_ACEOF
32763/* end confdefs.h. */
ac1cb8d3
VS
32764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32766#define $ac_func innocuous_$ac_func
32767
a848cd7e
SC
32768/* System header to define __stub macros and hopefully few prototypes,
32769 which can conflict with char $ac_func (); below.
32770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32771 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32772
a848cd7e
SC
32773#ifdef __STDC__
32774# include <limits.h>
32775#else
32776# include <assert.h>
32777#endif
ac1cb8d3
VS
32778
32779#undef $ac_func
32780
a848cd7e
SC
32781/* Override any gcc2 internal prototype to avoid an error. */
32782#ifdef __cplusplus
32783extern "C"
32784{
32785#endif
32786/* We use char because int might match the return type of a gcc2
32787 builtin and then its argument prototype would still apply. */
32788char $ac_func ();
32789/* The GNU C library defines this for functions which it implements
32790 to always fail with ENOSYS. Some functions are actually named
32791 something starting with __ and the normal name is an alias. */
32792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32793choke me
32794#else
32795char (*f) () = $ac_func;
32796#endif
32797#ifdef __cplusplus
32798}
32799#endif
32800
32801int
32802main ()
32803{
32804return f != $ac_func;
32805 ;
32806 return 0;
32807}
32808_ACEOF
32809rm -f conftest.$ac_objext conftest$ac_exeext
32810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32811 (eval $ac_link) 2>conftest.er1
a848cd7e 32812 ac_status=$?
ac1cb8d3
VS
32813 grep -v '^ *+' conftest.er1 >conftest.err
32814 rm -f conftest.er1
32815 cat conftest.err >&5
a848cd7e
SC
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } &&
9dd0f6c2 32818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820 (eval $ac_try) 2>&5
32821 ac_status=$?
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; } &&
32824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826 (eval $ac_try) 2>&5
32827 ac_status=$?
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); }; }; then
32830 eval "$as_ac_var=yes"
32831else
32832 echo "$as_me: failed program was:" >&5
32833sed 's/^/| /' conftest.$ac_ext >&5
32834
32835eval "$as_ac_var=no"
32836fi
ac1cb8d3
VS
32837rm -f conftest.err conftest.$ac_objext \
32838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32839fi
32840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32842if test `eval echo '${'$as_ac_var'}'` = yes; then
32843 cat >>confdefs.h <<_ACEOF
32844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32845_ACEOF
32846
32847fi
32848done
32849
32850
32851ac_ext=c
32852ac_cpp='$CPP $CPPFLAGS'
32853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32855ac_compiler_gnu=$ac_cv_c_compiler_gnu
32856
32857
32858INET_LINK=
32859
32860for ac_func in inet_addr
32861do
32862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32863echo "$as_me:$LINENO: checking for $ac_func" >&5
32864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32865if eval "test \"\${$as_ac_var+set}\" = set"; then
32866 echo $ECHO_N "(cached) $ECHO_C" >&6
32867else
32868 cat >conftest.$ac_ext <<_ACEOF
32869/* confdefs.h. */
32870_ACEOF
32871cat confdefs.h >>conftest.$ac_ext
32872cat >>conftest.$ac_ext <<_ACEOF
32873/* end confdefs.h. */
ac1cb8d3
VS
32874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32876#define $ac_func innocuous_$ac_func
32877
a848cd7e
SC
32878/* System header to define __stub macros and hopefully few prototypes,
32879 which can conflict with char $ac_func (); below.
32880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32881 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32882
a848cd7e
SC
32883#ifdef __STDC__
32884# include <limits.h>
32885#else
32886# include <assert.h>
32887#endif
ac1cb8d3
VS
32888
32889#undef $ac_func
32890
a848cd7e
SC
32891/* Override any gcc2 internal prototype to avoid an error. */
32892#ifdef __cplusplus
32893extern "C"
32894{
32895#endif
32896/* We use char because int might match the return type of a gcc2
32897 builtin and then its argument prototype would still apply. */
32898char $ac_func ();
32899/* The GNU C library defines this for functions which it implements
32900 to always fail with ENOSYS. Some functions are actually named
32901 something starting with __ and the normal name is an alias. */
32902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32903choke me
32904#else
32905char (*f) () = $ac_func;
32906#endif
32907#ifdef __cplusplus
32908}
32909#endif
32910
32911int
32912main ()
32913{
32914return f != $ac_func;
32915 ;
32916 return 0;
32917}
32918_ACEOF
32919rm -f conftest.$ac_objext conftest$ac_exeext
32920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32921 (eval $ac_link) 2>conftest.er1
a848cd7e 32922 ac_status=$?
ac1cb8d3
VS
32923 grep -v '^ *+' conftest.er1 >conftest.err
32924 rm -f conftest.er1
32925 cat conftest.err >&5
a848cd7e
SC
32926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 (exit $ac_status); } &&
9dd0f6c2 32928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32930 (eval $ac_try) 2>&5
32931 ac_status=$?
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); }; } &&
32934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; }; then
32940 eval "$as_ac_var=yes"
32941else
32942 echo "$as_me: failed program was:" >&5
32943sed 's/^/| /' conftest.$ac_ext >&5
32944
32945eval "$as_ac_var=no"
32946fi
ac1cb8d3
VS
32947rm -f conftest.err conftest.$ac_objext \
32948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32949fi
32950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32952if test `eval echo '${'$as_ac_var'}'` = yes; then
32953 cat >>confdefs.h <<_ACEOF
32954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32955_ACEOF
32956 cat >>confdefs.h <<\_ACEOF
32957#define HAVE_INET_ADDR 1
32958_ACEOF
32959
32960else
32961
32962 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32963echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32964if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32965 echo $ECHO_N "(cached) $ECHO_C" >&6
32966else
32967 ac_check_lib_save_LIBS=$LIBS
32968LIBS="-lnsl $LIBS"
32969cat >conftest.$ac_ext <<_ACEOF
32970/* confdefs.h. */
32971_ACEOF
32972cat confdefs.h >>conftest.$ac_ext
32973cat >>conftest.$ac_ext <<_ACEOF
32974/* end confdefs.h. */
32975
32976/* Override any gcc2 internal prototype to avoid an error. */
32977#ifdef __cplusplus
32978extern "C"
32979#endif
32980/* We use char because int might match the return type of a gcc2
32981 builtin and then its argument prototype would still apply. */
32982char inet_addr ();
32983int
32984main ()
32985{
32986inet_addr ();
32987 ;
32988 return 0;
32989}
32990_ACEOF
32991rm -f conftest.$ac_objext conftest$ac_exeext
32992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32993 (eval $ac_link) 2>conftest.er1
a848cd7e 32994 ac_status=$?
ac1cb8d3
VS
32995 grep -v '^ *+' conftest.er1 >conftest.err
32996 rm -f conftest.er1
32997 cat conftest.err >&5
a848cd7e
SC
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); } &&
9dd0f6c2 33000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33002 (eval $ac_try) 2>&5
33003 ac_status=$?
33004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005 (exit $ac_status); }; } &&
33006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008 (eval $ac_try) 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; }; then
33012 ac_cv_lib_nsl_inet_addr=yes
33013else
33014 echo "$as_me: failed program was:" >&5
33015sed 's/^/| /' conftest.$ac_ext >&5
33016
33017ac_cv_lib_nsl_inet_addr=no
33018fi
ac1cb8d3
VS
33019rm -f conftest.err conftest.$ac_objext \
33020 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33021LIBS=$ac_check_lib_save_LIBS
33022fi
33023echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33024echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33025if test $ac_cv_lib_nsl_inet_addr = yes; then
33026 INET_LINK="nsl"
33027else
33028
33029 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33030echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33031if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33033else
33034 ac_check_lib_save_LIBS=$LIBS
33035LIBS="-lresolv $LIBS"
33036cat >conftest.$ac_ext <<_ACEOF
33037/* confdefs.h. */
33038_ACEOF
33039cat confdefs.h >>conftest.$ac_ext
33040cat >>conftest.$ac_ext <<_ACEOF
33041/* end confdefs.h. */
33042
33043/* Override any gcc2 internal prototype to avoid an error. */
33044#ifdef __cplusplus
33045extern "C"
33046#endif
33047/* We use char because int might match the return type of a gcc2
33048 builtin and then its argument prototype would still apply. */
33049char inet_addr ();
33050int
33051main ()
33052{
33053inet_addr ();
33054 ;
33055 return 0;
33056}
33057_ACEOF
33058rm -f conftest.$ac_objext conftest$ac_exeext
33059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33060 (eval $ac_link) 2>conftest.er1
a848cd7e 33061 ac_status=$?
ac1cb8d3
VS
33062 grep -v '^ *+' conftest.er1 >conftest.err
33063 rm -f conftest.er1
33064 cat conftest.err >&5
a848cd7e
SC
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); } &&
9dd0f6c2 33067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33069 (eval $ac_try) 2>&5
33070 ac_status=$?
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); }; } &&
33073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075 (eval $ac_try) 2>&5
33076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; }; then
33079 ac_cv_lib_resolv_inet_addr=yes
33080else
33081 echo "$as_me: failed program was:" >&5
33082sed 's/^/| /' conftest.$ac_ext >&5
33083
33084ac_cv_lib_resolv_inet_addr=no
33085fi
ac1cb8d3
VS
33086rm -f conftest.err conftest.$ac_objext \
33087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33088LIBS=$ac_check_lib_save_LIBS
33089fi
33090echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33091echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33092if test $ac_cv_lib_resolv_inet_addr = yes; then
33093 INET_LINK="resolv"
33094else
33095
33096 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33097echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33098if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33100else
33101 ac_check_lib_save_LIBS=$LIBS
33102LIBS="-lsocket $LIBS"
33103cat >conftest.$ac_ext <<_ACEOF
33104/* confdefs.h. */
33105_ACEOF
33106cat confdefs.h >>conftest.$ac_ext
33107cat >>conftest.$ac_ext <<_ACEOF
33108/* end confdefs.h. */
33109
33110/* Override any gcc2 internal prototype to avoid an error. */
33111#ifdef __cplusplus
33112extern "C"
33113#endif
33114/* We use char because int might match the return type of a gcc2
33115 builtin and then its argument prototype would still apply. */
33116char inet_addr ();
33117int
33118main ()
33119{
33120inet_addr ();
33121 ;
33122 return 0;
33123}
33124_ACEOF
33125rm -f conftest.$ac_objext conftest$ac_exeext
33126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33127 (eval $ac_link) 2>conftest.er1
a848cd7e 33128 ac_status=$?
ac1cb8d3
VS
33129 grep -v '^ *+' conftest.er1 >conftest.err
33130 rm -f conftest.er1
33131 cat conftest.err >&5
a848cd7e
SC
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); } &&
9dd0f6c2 33134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33136 (eval $ac_try) 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; } &&
33140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142 (eval $ac_try) 2>&5
33143 ac_status=$?
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; }; then
33146 ac_cv_lib_socket_inet_addr=yes
33147else
33148 echo "$as_me: failed program was:" >&5
33149sed 's/^/| /' conftest.$ac_ext >&5
33150
33151ac_cv_lib_socket_inet_addr=no
33152fi
ac1cb8d3
VS
33153rm -f conftest.err conftest.$ac_objext \
33154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33155LIBS=$ac_check_lib_save_LIBS
33156fi
33157echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33158echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33159if test $ac_cv_lib_socket_inet_addr = yes; then
33160 INET_LINK="socket"
33161
33162fi
33163
33164
33165
33166fi
33167
33168
33169
33170fi
33171
33172
33173
33174fi
33175done
33176
33177
33178
33179for ac_func in inet_aton
33180do
33181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33182echo "$as_me:$LINENO: checking for $ac_func" >&5
33183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33184if eval "test \"\${$as_ac_var+set}\" = set"; then
33185 echo $ECHO_N "(cached) $ECHO_C" >&6
33186else
33187 cat >conftest.$ac_ext <<_ACEOF
33188/* confdefs.h. */
33189_ACEOF
33190cat confdefs.h >>conftest.$ac_ext
33191cat >>conftest.$ac_ext <<_ACEOF
33192/* end confdefs.h. */
ac1cb8d3
VS
33193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33195#define $ac_func innocuous_$ac_func
33196
a848cd7e
SC
33197/* System header to define __stub macros and hopefully few prototypes,
33198 which can conflict with char $ac_func (); below.
33199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33200 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33201
a848cd7e
SC
33202#ifdef __STDC__
33203# include <limits.h>
33204#else
33205# include <assert.h>
33206#endif
ac1cb8d3
VS
33207
33208#undef $ac_func
33209
a848cd7e
SC
33210/* Override any gcc2 internal prototype to avoid an error. */
33211#ifdef __cplusplus
33212extern "C"
33213{
33214#endif
33215/* We use char because int might match the return type of a gcc2
33216 builtin and then its argument prototype would still apply. */
33217char $ac_func ();
33218/* The GNU C library defines this for functions which it implements
33219 to always fail with ENOSYS. Some functions are actually named
33220 something starting with __ and the normal name is an alias. */
33221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33222choke me
33223#else
33224char (*f) () = $ac_func;
33225#endif
33226#ifdef __cplusplus
33227}
33228#endif
33229
33230int
33231main ()
33232{
33233return f != $ac_func;
33234 ;
33235 return 0;
33236}
33237_ACEOF
33238rm -f conftest.$ac_objext conftest$ac_exeext
33239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33240 (eval $ac_link) 2>conftest.er1
a848cd7e 33241 ac_status=$?
ac1cb8d3
VS
33242 grep -v '^ *+' conftest.er1 >conftest.err
33243 rm -f conftest.er1
33244 cat conftest.err >&5
a848cd7e
SC
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } &&
9dd0f6c2 33247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; } &&
33253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255 (eval $ac_try) 2>&5
33256 ac_status=$?
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); }; }; then
33259 eval "$as_ac_var=yes"
33260else
33261 echo "$as_me: failed program was:" >&5
33262sed 's/^/| /' conftest.$ac_ext >&5
33263
33264eval "$as_ac_var=no"
33265fi
ac1cb8d3
VS
33266rm -f conftest.err conftest.$ac_objext \
33267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33268fi
33269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33271if test `eval echo '${'$as_ac_var'}'` = yes; then
33272 cat >>confdefs.h <<_ACEOF
33273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33274_ACEOF
33275 cat >>confdefs.h <<\_ACEOF
33276#define HAVE_INET_ATON 1
33277_ACEOF
33278
33279else
33280
33281 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33282echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33283echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33284if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33285 echo $ECHO_N "(cached) $ECHO_C" >&6
33286else
33287 ac_check_lib_save_LIBS=$LIBS
33288LIBS="-l$INET_LINK $LIBS"
33289cat >conftest.$ac_ext <<_ACEOF
33290/* confdefs.h. */
33291_ACEOF
33292cat confdefs.h >>conftest.$ac_ext
33293cat >>conftest.$ac_ext <<_ACEOF
33294/* end confdefs.h. */
33295
33296/* Override any gcc2 internal prototype to avoid an error. */
33297#ifdef __cplusplus
33298extern "C"
33299#endif
33300/* We use char because int might match the return type of a gcc2
33301 builtin and then its argument prototype would still apply. */
33302char inet_aton ();
33303int
33304main ()
33305{
33306inet_aton ();
33307 ;
33308 return 0;
33309}
33310_ACEOF
33311rm -f conftest.$ac_objext conftest$ac_exeext
33312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33313 (eval $ac_link) 2>conftest.er1
a848cd7e 33314 ac_status=$?
ac1cb8d3
VS
33315 grep -v '^ *+' conftest.er1 >conftest.err
33316 rm -f conftest.er1
33317 cat conftest.err >&5
a848cd7e
SC
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
9dd0f6c2 33320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322 (eval $ac_try) 2>&5
33323 ac_status=$?
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; } &&
33326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33329 ac_status=$?
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; }; then
33332 eval "$as_ac_Lib=yes"
33333else
33334 echo "$as_me: failed program was:" >&5
33335sed 's/^/| /' conftest.$ac_ext >&5
33336
33337eval "$as_ac_Lib=no"
33338fi
ac1cb8d3
VS
33339rm -f conftest.err conftest.$ac_objext \
33340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33341LIBS=$ac_check_lib_save_LIBS
33342fi
33343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33344echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33345if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33346 cat >>confdefs.h <<\_ACEOF
33347#define HAVE_INET_ATON 1
33348_ACEOF
33349
33350fi
33351
33352
33353fi
33354done
33355
33356
33357if test "x$INET_LINK" != "x"; then
33358 cat >>confdefs.h <<\_ACEOF
33359#define HAVE_INET_ADDR 1
33360_ACEOF
33361
33362 INET_LINK=" -l$INET_LINK"
33363fi
33364
33365fi
33366
33367
33368
33369EXTRALIBS_ESD=
33370echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33371echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33372if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33373 echo $ECHO_N "(cached) $ECHO_C" >&6
33374else
33375 ac_check_lib_save_LIBS=$LIBS
33376LIBS="-lesd $LIBS"
33377cat >conftest.$ac_ext <<_ACEOF
33378/* confdefs.h. */
33379_ACEOF
33380cat confdefs.h >>conftest.$ac_ext
33381cat >>conftest.$ac_ext <<_ACEOF
33382/* end confdefs.h. */
33383
33384/* Override any gcc2 internal prototype to avoid an error. */
33385#ifdef __cplusplus
33386extern "C"
33387#endif
33388/* We use char because int might match the return type of a gcc2
33389 builtin and then its argument prototype would still apply. */
33390char esd_close ();
33391int
33392main ()
33393{
33394esd_close ();
33395 ;
33396 return 0;
33397}
33398_ACEOF
33399rm -f conftest.$ac_objext conftest$ac_exeext
33400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33401 (eval $ac_link) 2>conftest.er1
a848cd7e 33402 ac_status=$?
ac1cb8d3
VS
33403 grep -v '^ *+' conftest.er1 >conftest.err
33404 rm -f conftest.er1
33405 cat conftest.err >&5
a848cd7e
SC
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } &&
9dd0f6c2 33408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33410 (eval $ac_try) 2>&5
33411 ac_status=$?
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); }; } &&
33414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416 (eval $ac_try) 2>&5
33417 ac_status=$?
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; }; then
33420 ac_cv_lib_esd_esd_close=yes
33421else
33422 echo "$as_me: failed program was:" >&5
33423sed 's/^/| /' conftest.$ac_ext >&5
33424
33425ac_cv_lib_esd_esd_close=no
33426fi
ac1cb8d3
VS
33427rm -f conftest.err conftest.$ac_objext \
33428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33429LIBS=$ac_check_lib_save_LIBS
33430fi
33431echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33432echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33433if test $ac_cv_lib_esd_esd_close = yes; then
33434
33435
33436for ac_header in esd.h
33437do
33438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33439if eval "test \"\${$as_ac_Header+set}\" = set"; then
33440 echo "$as_me:$LINENO: checking for $ac_header" >&5
33441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33442if eval "test \"\${$as_ac_Header+set}\" = set"; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33444fi
33445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33446echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33447else
33448 # Is the header compilable?
33449echo "$as_me:$LINENO: checking $ac_header usability" >&5
33450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33451cat >conftest.$ac_ext <<_ACEOF
33452/* confdefs.h. */
33453_ACEOF
33454cat confdefs.h >>conftest.$ac_ext
33455cat >>conftest.$ac_ext <<_ACEOF
33456/* end confdefs.h. */
33457$ac_includes_default
33458#include <$ac_header>
33459_ACEOF
33460rm -f conftest.$ac_objext
33461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33462 (eval $ac_compile) 2>conftest.er1
a848cd7e 33463 ac_status=$?
ac1cb8d3
VS
33464 grep -v '^ *+' conftest.er1 >conftest.err
33465 rm -f conftest.er1
33466 cat conftest.err >&5
a848cd7e
SC
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); } &&
9dd0f6c2 33469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33472 ac_status=$?
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; } &&
33475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33477 (eval $ac_try) 2>&5
33478 ac_status=$?
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 ac_header_compiler=yes
33482else
33483 echo "$as_me: failed program was:" >&5
33484sed 's/^/| /' conftest.$ac_ext >&5
33485
33486ac_header_compiler=no
33487fi
ac1cb8d3 33488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33489echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33490echo "${ECHO_T}$ac_header_compiler" >&6
33491
33492# Is the header present?
33493echo "$as_me:$LINENO: checking $ac_header presence" >&5
33494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33495cat >conftest.$ac_ext <<_ACEOF
33496/* confdefs.h. */
33497_ACEOF
33498cat confdefs.h >>conftest.$ac_ext
33499cat >>conftest.$ac_ext <<_ACEOF
33500/* end confdefs.h. */
33501#include <$ac_header>
33502_ACEOF
33503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33505 ac_status=$?
33506 grep -v '^ *+' conftest.er1 >conftest.err
33507 rm -f conftest.er1
33508 cat conftest.err >&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); } >/dev/null; then
33511 if test -s conftest.err; then
33512 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33514 else
33515 ac_cpp_err=
33516 fi
33517else
33518 ac_cpp_err=yes
33519fi
33520if test -z "$ac_cpp_err"; then
33521 ac_header_preproc=yes
33522else
33523 echo "$as_me: failed program was:" >&5
33524sed 's/^/| /' conftest.$ac_ext >&5
33525
33526 ac_header_preproc=no
33527fi
33528rm -f conftest.err conftest.$ac_ext
33529echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33530echo "${ECHO_T}$ac_header_preproc" >&6
33531
33532# So? What about this header?
ac1cb8d3
VS
33533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33534 yes:no: )
a848cd7e
SC
33535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33536echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33538echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33539 ac_header_preproc=yes
a848cd7e 33540 ;;
ac1cb8d3 33541 no:yes:* )
a848cd7e
SC
33542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33547echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33549echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33554 (
33555 cat <<\_ASBOX
ac1cb8d3
VS
33556## ----------------------------------------- ##
33557## Report this to wx-dev@lists.wxwidgets.org ##
33558## ----------------------------------------- ##
a848cd7e
SC
33559_ASBOX
33560 ) |
33561 sed "s/^/$as_me: WARNING: /" >&2
33562 ;;
33563esac
33564echo "$as_me:$LINENO: checking for $ac_header" >&5
33565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33566if eval "test \"\${$as_ac_Header+set}\" = set"; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33568else
ac1cb8d3 33569 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33570fi
33571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33573
33574fi
33575if test `eval echo '${'$as_ac_Header'}'` = yes; then
33576 cat >>confdefs.h <<_ACEOF
33577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33578_ACEOF
33579
33580 EXTRALIBS_ESD="-lesd"
33581
33582fi
33583
33584done
33585
33586
33587fi
33588
33589
33590
33591echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33592echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33593cat >conftest.$ac_ext <<_ACEOF
33594/* confdefs.h. */
33595_ACEOF
33596cat confdefs.h >>conftest.$ac_ext
33597cat >>conftest.$ac_ext <<_ACEOF
33598/* end confdefs.h. */
33599#ifdef __linux__
33600 #include <linux/cdrom.h>
33601 #else
33602 /* For Solaris */
33603 #include <sys/cdio.h>
33604 #endif
33605
33606int
33607main ()
33608{
33609struct cdrom_tocentry entry, old_entry;
33610 ;
33611 return 0;
33612}
33613_ACEOF
33614rm -f conftest.$ac_objext
33615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33616 (eval $ac_compile) 2>conftest.er1
a848cd7e 33617 ac_status=$?
ac1cb8d3
VS
33618 grep -v '^ *+' conftest.er1 >conftest.err
33619 rm -f conftest.er1
33620 cat conftest.err >&5
a848cd7e
SC
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); } &&
9dd0f6c2 33623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33625 (eval $ac_try) 2>&5
33626 ac_status=$?
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; } &&
33629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631 (eval $ac_try) 2>&5
33632 ac_status=$?
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); }; }; then
33635 echo "$as_me:$LINENO: result: yes" >&5
33636echo "${ECHO_T}yes" >&6
33637 cat >>confdefs.h <<\_ACEOF
33638#define HAVE_KNOWN_CDROM_INTERFACE 1
33639_ACEOF
33640
33641else
33642 echo "$as_me: failed program was:" >&5
33643sed 's/^/| /' conftest.$ac_ext >&5
33644
33645echo "$as_me:$LINENO: result: no" >&5
33646echo "${ECHO_T}no" >&6
33647fi
ac1cb8d3 33648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33649
33650
33651cat >confcache <<\_ACEOF
33652# This file is a shell script that caches the results of configure
33653# tests run on this system so they can be shared between configure
33654# scripts and configure runs, see configure's option --config-cache.
33655# It is not useful on other systems. If it contains results you don't
33656# want to keep, you may remove or edit it.
33657#
33658# config.status only pays attention to the cache file if you give it
33659# the --recheck option to rerun configure.
33660#
33661# `ac_cv_env_foo' variables (set or unset) will be overridden when
33662# loading this file, other *unset* `ac_cv_foo' will be assigned the
33663# following values.
33664
33665_ACEOF
33666
33667# The following way of writing the cache mishandles newlines in values,
33668# but we know of no workaround that is simple, portable, and efficient.
33669# So, don't put newlines in cache variables' values.
33670# Ultrix sh set writes to stderr and can't be redirected directly,
33671# and sets the high bit in the cache file unless we assign to the vars.
33672{
33673 (set) 2>&1 |
33674 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33675 *ac_space=\ *)
33676 # `set' does not quote correctly, so add quotes (double-quote
33677 # substitution turns \\\\ into \\, and sed turns \\ into \).
33678 sed -n \
ac1cb8d3
VS
33679 "s/'/'\\\\''/g;
33680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33681 ;;
33682 *)
33683 # `set' quotes correctly as required by POSIX, so do not add quotes.
33684 sed -n \
ac1cb8d3 33685 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33686 ;;
33687 esac;
33688} |
33689 sed '
33690 t clear
33691 : clear
33692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33693 t end
33694 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33695 : end' >>confcache
33696if diff $cache_file confcache >/dev/null 2>&1; then :; else
33697 if test -w $cache_file; then
33698 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33699 cat confcache >$cache_file
33700 else
33701 echo "not updating unwritable cache $cache_file"
33702 fi
33703fi
33704rm -f confcache
33705
33706
33707CPP_MT_FLAG=
33708if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33709
33710
33711 THREADS_LINK=
33712 THREADS_CFLAGS=
33713
33714 if test "$wxUSE_THREADS" = "yes" ; then
33715 if test "$USE_BEOS" = 1; then
33716 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33717echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33718 wxUSE_THREADS="no"
33719 fi
33720 fi
33721
33722 if test "$wxUSE_THREADS" = "yes" ; then
33723
33724
33725 THREAD_OPTS="-pthread"
33726 case "${host}" in
33727 *-*-solaris2* | *-*-sunos4* )
33728 if test "x$GCC" = "xyes"; then
33729 THREAD_OPTS="-pthreads $THREAD_OPTS"
33730 else
33731 THREAD_OPTS="-mt $THREAD_OPTS"
33732 fi
33733 ;;
33734 *-*-freebsd*)
33735 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33736 ;;
33737 *-*-darwin* | *-*-cygwin* )
33738 THREAD_OPTS=""
33739 ;;
33740 *-*-aix*)
33741 THREAD_OPTS="pthreads"
33742 ;;
33743 *-hp-hpux* )
33744 if test "x$GCC" != "xyes"; then
33745 THREAD_OPTS=""
33746 fi
33747 ;;
33748
33749 *-*-irix* )
33750 if test "x$GCC" = "xyes"; then
33751 THREAD_OPTS=""
33752 fi
33753 ;;
33754
33755 *-*-*UnixWare*)
33756 if test "x$GCC" != "xyes"; then
33757 THREAD_OPTS="-Ethread"
33758 fi
33759 ;;
33760 esac
33761
33762 THREAD_OPTS="$THREAD_OPTS pthread none"
33763
33764 THREADS_OK=no
33765 for flag in $THREAD_OPTS; do
33766 case $flag in
33767 none)
33768 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33769echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33770 ;;
33771
33772 -*)
33773 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33774echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33775 THREADS_CFLAGS="$flag"
33776 ;;
33777
33778 *)
33779 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33780echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33781 THREADS_LINK="-l$flag"
33782 ;;
33783 esac
33784
33785 save_LIBS="$LIBS"
33786 save_CFLAGS="$CFLAGS"
33787 LIBS="$THREADS_LINK $LIBS"
33788 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33789
33790 cat >conftest.$ac_ext <<_ACEOF
33791/* confdefs.h. */
33792_ACEOF
33793cat confdefs.h >>conftest.$ac_ext
33794cat >>conftest.$ac_ext <<_ACEOF
33795/* end confdefs.h. */
33796#include <pthread.h>
33797int
33798main ()
33799{
33800pthread_create(0,0,0,0);
33801 ;
33802 return 0;
33803}
33804_ACEOF
33805rm -f conftest.$ac_objext conftest$ac_exeext
33806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33807 (eval $ac_link) 2>conftest.er1
a848cd7e 33808 ac_status=$?
ac1cb8d3
VS
33809 grep -v '^ *+' conftest.er1 >conftest.err
33810 rm -f conftest.er1
33811 cat conftest.err >&5
a848cd7e
SC
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); } &&
9dd0f6c2 33814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33816 (eval $ac_try) 2>&5
33817 ac_status=$?
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); }; } &&
33820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33822 (eval $ac_try) 2>&5
33823 ac_status=$?
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; }; then
33826 THREADS_OK=yes
33827else
33828 echo "$as_me: failed program was:" >&5
33829sed 's/^/| /' conftest.$ac_ext >&5
33830
33831fi
ac1cb8d3
VS
33832rm -f conftest.err conftest.$ac_objext \
33833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33834
33835 LIBS="$save_LIBS"
33836 CFLAGS="$save_CFLAGS"
33837
33838 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33839echo "${ECHO_T}$THREADS_OK" >&6
33840 if test "x$THREADS_OK" = "xyes"; then
33841 break;
33842 fi
33843
33844 THREADS_LINK=""
33845 THREADS_CFLAGS=""
33846 done
33847
33848 if test "x$THREADS_OK" != "xyes"; then
33849 wxUSE_THREADS=no
33850 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33851echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33852 else
33853 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33854 LIBS="$THREADS_LINK $LIBS"
33855
33856 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33857echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33858 flag=no
33859 case "${host}" in
33860 *-aix*)
33861 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33862 flag="-D_THREAD_SAFE"
33863 ;;
33864 *-freebsd*)
33865 flag="-D_THREAD_SAFE"
33866 ;;
33867 *-hp-hpux* )
33868 flag="-D_REENTRANT"
33869 if test "x$GCC" != "xyes"; then
33870 flag="$flag -D_RWSTD_MULTI_THREAD"
33871 fi
33872 ;;
33873 *solaris* | alpha*-osf*)
33874 flag="-D_REENTRANT"
33875 ;;
33876 esac
33877 echo "$as_me:$LINENO: result: ${flag}" >&5
33878echo "${ECHO_T}${flag}" >&6
33879 if test "x$flag" != xno; then
33880 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33881 fi
33882
33883 if test "x$THREADS_CFLAGS" != "x"; then
33884 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33885 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33886 fi
33887 fi
33888 fi
33889
33890 if test "$wxUSE_THREADS" = "yes" ; then
33891
33892for ac_func in thr_setconcurrency
33893do
33894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33895echo "$as_me:$LINENO: checking for $ac_func" >&5
33896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33897if eval "test \"\${$as_ac_var+set}\" = set"; then
33898 echo $ECHO_N "(cached) $ECHO_C" >&6
33899else
33900 cat >conftest.$ac_ext <<_ACEOF
33901/* confdefs.h. */
33902_ACEOF
33903cat confdefs.h >>conftest.$ac_ext
33904cat >>conftest.$ac_ext <<_ACEOF
33905/* end confdefs.h. */
ac1cb8d3
VS
33906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33908#define $ac_func innocuous_$ac_func
33909
a848cd7e
SC
33910/* System header to define __stub macros and hopefully few prototypes,
33911 which can conflict with char $ac_func (); below.
33912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33914
a848cd7e
SC
33915#ifdef __STDC__
33916# include <limits.h>
33917#else
33918# include <assert.h>
33919#endif
ac1cb8d3
VS
33920
33921#undef $ac_func
33922
a848cd7e
SC
33923/* Override any gcc2 internal prototype to avoid an error. */
33924#ifdef __cplusplus
33925extern "C"
33926{
33927#endif
33928/* We use char because int might match the return type of a gcc2
33929 builtin and then its argument prototype would still apply. */
33930char $ac_func ();
33931/* The GNU C library defines this for functions which it implements
33932 to always fail with ENOSYS. Some functions are actually named
33933 something starting with __ and the normal name is an alias. */
33934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33935choke me
33936#else
33937char (*f) () = $ac_func;
33938#endif
33939#ifdef __cplusplus
33940}
33941#endif
33942
33943int
33944main ()
33945{
33946return f != $ac_func;
33947 ;
33948 return 0;
33949}
33950_ACEOF
33951rm -f conftest.$ac_objext conftest$ac_exeext
33952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33953 (eval $ac_link) 2>conftest.er1
a848cd7e 33954 ac_status=$?
ac1cb8d3
VS
33955 grep -v '^ *+' conftest.er1 >conftest.err
33956 rm -f conftest.er1
33957 cat conftest.err >&5
a848cd7e
SC
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); } &&
9dd0f6c2 33960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 (eval $ac_try) 2>&5
33963 ac_status=$?
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; } &&
33966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33969 ac_status=$?
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; }; then
33972 eval "$as_ac_var=yes"
33973else
33974 echo "$as_me: failed program was:" >&5
33975sed 's/^/| /' conftest.$ac_ext >&5
33976
33977eval "$as_ac_var=no"
33978fi
ac1cb8d3
VS
33979rm -f conftest.err conftest.$ac_objext \
33980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33981fi
33982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33984if test `eval echo '${'$as_ac_var'}'` = yes; then
33985 cat >>confdefs.h <<_ACEOF
33986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33987_ACEOF
33988
33989fi
33990done
33991
33992
33993
33994for ac_header in sched.h
33995do
33996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33997if eval "test \"\${$as_ac_Header+set}\" = set"; then
33998 echo "$as_me:$LINENO: checking for $ac_header" >&5
33999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34000if eval "test \"\${$as_ac_Header+set}\" = set"; then
34001 echo $ECHO_N "(cached) $ECHO_C" >&6
34002fi
34003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34005else
34006 # Is the header compilable?
34007echo "$as_me:$LINENO: checking $ac_header usability" >&5
34008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34009cat >conftest.$ac_ext <<_ACEOF
34010/* confdefs.h. */
34011_ACEOF
34012cat confdefs.h >>conftest.$ac_ext
34013cat >>conftest.$ac_ext <<_ACEOF
34014/* end confdefs.h. */
34015$ac_includes_default
34016#include <$ac_header>
34017_ACEOF
34018rm -f conftest.$ac_objext
34019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34020 (eval $ac_compile) 2>conftest.er1
a848cd7e 34021 ac_status=$?
ac1cb8d3
VS
34022 grep -v '^ *+' conftest.er1 >conftest.err
34023 rm -f conftest.er1
34024 cat conftest.err >&5
a848cd7e
SC
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); } &&
9dd0f6c2 34027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; } &&
34033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035 (eval $ac_try) 2>&5
34036 ac_status=$?
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
34039 ac_header_compiler=yes
34040else
34041 echo "$as_me: failed program was:" >&5
34042sed 's/^/| /' conftest.$ac_ext >&5
34043
34044ac_header_compiler=no
34045fi
ac1cb8d3 34046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34048echo "${ECHO_T}$ac_header_compiler" >&6
34049
34050# Is the header present?
34051echo "$as_me:$LINENO: checking $ac_header presence" >&5
34052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34053cat >conftest.$ac_ext <<_ACEOF
34054/* confdefs.h. */
34055_ACEOF
34056cat confdefs.h >>conftest.$ac_ext
34057cat >>conftest.$ac_ext <<_ACEOF
34058/* end confdefs.h. */
34059#include <$ac_header>
34060_ACEOF
34061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34063 ac_status=$?
34064 grep -v '^ *+' conftest.er1 >conftest.err
34065 rm -f conftest.er1
34066 cat conftest.err >&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } >/dev/null; then
34069 if test -s conftest.err; then
34070 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34072 else
34073 ac_cpp_err=
34074 fi
34075else
34076 ac_cpp_err=yes
34077fi
34078if test -z "$ac_cpp_err"; then
34079 ac_header_preproc=yes
34080else
34081 echo "$as_me: failed program was:" >&5
34082sed 's/^/| /' conftest.$ac_ext >&5
34083
34084 ac_header_preproc=no
34085fi
34086rm -f conftest.err conftest.$ac_ext
34087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34088echo "${ECHO_T}$ac_header_preproc" >&6
34089
34090# So? What about this header?
ac1cb8d3
VS
34091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34092 yes:no: )
a848cd7e
SC
34093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34097 ac_header_preproc=yes
a848cd7e 34098 ;;
ac1cb8d3 34099 no:yes:* )
a848cd7e
SC
34100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34112 (
34113 cat <<\_ASBOX
ac1cb8d3
VS
34114## ----------------------------------------- ##
34115## Report this to wx-dev@lists.wxwidgets.org ##
34116## ----------------------------------------- ##
a848cd7e
SC
34117_ASBOX
34118 ) |
34119 sed "s/^/$as_me: WARNING: /" >&2
34120 ;;
34121esac
34122echo "$as_me:$LINENO: checking for $ac_header" >&5
34123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34124if eval "test \"\${$as_ac_Header+set}\" = set"; then
34125 echo $ECHO_N "(cached) $ECHO_C" >&6
34126else
ac1cb8d3 34127 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34128fi
34129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34131
34132fi
34133if test `eval echo '${'$as_ac_Header'}'` = yes; then
34134 cat >>confdefs.h <<_ACEOF
34135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34136_ACEOF
34137
34138fi
34139
34140done
34141
34142 if test "$ac_cv_header_sched_h" = "yes"; then
34143 echo "$as_me:$LINENO: checking for sched_yield" >&5
34144echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34145if test "${ac_cv_func_sched_yield+set}" = set; then
34146 echo $ECHO_N "(cached) $ECHO_C" >&6
34147else
34148 cat >conftest.$ac_ext <<_ACEOF
34149/* confdefs.h. */
34150_ACEOF
34151cat confdefs.h >>conftest.$ac_ext
34152cat >>conftest.$ac_ext <<_ACEOF
34153/* end confdefs.h. */
ac1cb8d3
VS
34154/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34156#define sched_yield innocuous_sched_yield
34157
a848cd7e
SC
34158/* System header to define __stub macros and hopefully few prototypes,
34159 which can conflict with char sched_yield (); below.
34160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34162
a848cd7e
SC
34163#ifdef __STDC__
34164# include <limits.h>
34165#else
34166# include <assert.h>
34167#endif
ac1cb8d3
VS
34168
34169#undef sched_yield
34170
a848cd7e
SC
34171/* Override any gcc2 internal prototype to avoid an error. */
34172#ifdef __cplusplus
34173extern "C"
34174{
34175#endif
34176/* We use char because int might match the return type of a gcc2
34177 builtin and then its argument prototype would still apply. */
34178char sched_yield ();
34179/* The GNU C library defines this for functions which it implements
34180 to always fail with ENOSYS. Some functions are actually named
34181 something starting with __ and the normal name is an alias. */
34182#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34183choke me
34184#else
34185char (*f) () = sched_yield;
34186#endif
34187#ifdef __cplusplus
34188}
34189#endif
34190
34191int
34192main ()
34193{
34194return f != sched_yield;
34195 ;
34196 return 0;
34197}
34198_ACEOF
34199rm -f conftest.$ac_objext conftest$ac_exeext
34200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34201 (eval $ac_link) 2>conftest.er1
a848cd7e 34202 ac_status=$?
ac1cb8d3
VS
34203 grep -v '^ *+' conftest.er1 >conftest.err
34204 rm -f conftest.er1
34205 cat conftest.err >&5
a848cd7e
SC
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); } &&
9dd0f6c2 34208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210 (eval $ac_try) 2>&5
34211 ac_status=$?
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); }; } &&
34214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216 (eval $ac_try) 2>&5
34217 ac_status=$?
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); }; }; then
34220 ac_cv_func_sched_yield=yes
34221else
34222 echo "$as_me: failed program was:" >&5
34223sed 's/^/| /' conftest.$ac_ext >&5
34224
34225ac_cv_func_sched_yield=no
34226fi
ac1cb8d3
VS
34227rm -f conftest.err conftest.$ac_objext \
34228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34229fi
34230echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34231echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34232if test $ac_cv_func_sched_yield = yes; then
34233 cat >>confdefs.h <<\_ACEOF
34234#define HAVE_SCHED_YIELD 1
34235_ACEOF
34236
34237else
34238
34239 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34240echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34241if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34242 echo $ECHO_N "(cached) $ECHO_C" >&6
34243else
34244 ac_check_lib_save_LIBS=$LIBS
34245LIBS="-lposix4 $LIBS"
34246cat >conftest.$ac_ext <<_ACEOF
34247/* confdefs.h. */
34248_ACEOF
34249cat confdefs.h >>conftest.$ac_ext
34250cat >>conftest.$ac_ext <<_ACEOF
34251/* end confdefs.h. */
34252
34253/* Override any gcc2 internal prototype to avoid an error. */
34254#ifdef __cplusplus
34255extern "C"
34256#endif
34257/* We use char because int might match the return type of a gcc2
34258 builtin and then its argument prototype would still apply. */
34259char sched_yield ();
34260int
34261main ()
34262{
34263sched_yield ();
34264 ;
34265 return 0;
34266}
34267_ACEOF
34268rm -f conftest.$ac_objext conftest$ac_exeext
34269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34270 (eval $ac_link) 2>conftest.er1
a848cd7e 34271 ac_status=$?
ac1cb8d3
VS
34272 grep -v '^ *+' conftest.er1 >conftest.err
34273 rm -f conftest.er1
34274 cat conftest.err >&5
a848cd7e
SC
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); } &&
9dd0f6c2 34277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34279 (eval $ac_try) 2>&5
34280 ac_status=$?
34281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282 (exit $ac_status); }; } &&
34283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34285 (eval $ac_try) 2>&5
34286 ac_status=$?
34287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 (exit $ac_status); }; }; then
34289 ac_cv_lib_posix4_sched_yield=yes
34290else
34291 echo "$as_me: failed program was:" >&5
34292sed 's/^/| /' conftest.$ac_ext >&5
34293
34294ac_cv_lib_posix4_sched_yield=no
34295fi
ac1cb8d3
VS
34296rm -f conftest.err conftest.$ac_objext \
34297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34298LIBS=$ac_check_lib_save_LIBS
34299fi
34300echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34301echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34302if test $ac_cv_lib_posix4_sched_yield = yes; then
34303 cat >>confdefs.h <<\_ACEOF
34304#define HAVE_SCHED_YIELD 1
34305_ACEOF
34306 POSIX4_LINK=" -lposix4"
34307else
34308 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34309echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34310
34311fi
34312
34313
34314
34315fi
34316
34317 fi
34318
34319 HAVE_PRIOR_FUNCS=0
34320 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34321echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34322if test "${ac_cv_func_pthread_attr_getschedpolicy+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 pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34333#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34334
a848cd7e
SC
34335/* System header to define __stub macros and hopefully few prototypes,
34336 which can conflict with char pthread_attr_getschedpolicy (); 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 pthread_attr_getschedpolicy
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 pthread_attr_getschedpolicy ();
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_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34360choke me
34361#else
34362char (*f) () = pthread_attr_getschedpolicy;
34363#endif
34364#ifdef __cplusplus
34365}
34366#endif
34367
34368int
34369main ()
34370{
34371return f != pthread_attr_getschedpolicy;
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_pthread_attr_getschedpolicy=yes
34398else
34399 echo "$as_me: failed program was:" >&5
34400sed 's/^/| /' conftest.$ac_ext >&5
34401
34402ac_cv_func_pthread_attr_getschedpolicy=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_pthread_attr_getschedpolicy" >&5
34408echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34409if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34410 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34411echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34412if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34413 echo $ECHO_N "(cached) $ECHO_C" >&6
34414else
34415 cat >conftest.$ac_ext <<_ACEOF
34416/* confdefs.h. */
34417_ACEOF
34418cat confdefs.h >>conftest.$ac_ext
34419cat >>conftest.$ac_ext <<_ACEOF
34420/* end confdefs.h. */
ac1cb8d3
VS
34421/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34423#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34424
a848cd7e
SC
34425/* System header to define __stub macros and hopefully few prototypes,
34426 which can conflict with char pthread_attr_setschedparam (); below.
34427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34428 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34429
a848cd7e
SC
34430#ifdef __STDC__
34431# include <limits.h>
34432#else
34433# include <assert.h>
34434#endif
ac1cb8d3
VS
34435
34436#undef pthread_attr_setschedparam
34437
a848cd7e
SC
34438/* Override any gcc2 internal prototype to avoid an error. */
34439#ifdef __cplusplus
34440extern "C"
34441{
34442#endif
34443/* We use char because int might match the return type of a gcc2
34444 builtin and then its argument prototype would still apply. */
34445char pthread_attr_setschedparam ();
34446/* The GNU C library defines this for functions which it implements
34447 to always fail with ENOSYS. Some functions are actually named
34448 something starting with __ and the normal name is an alias. */
34449#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34450choke me
34451#else
34452char (*f) () = pthread_attr_setschedparam;
34453#endif
34454#ifdef __cplusplus
34455}
34456#endif
34457
34458int
34459main ()
34460{
34461return f != pthread_attr_setschedparam;
34462 ;
34463 return 0;
34464}
34465_ACEOF
34466rm -f conftest.$ac_objext conftest$ac_exeext
34467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34468 (eval $ac_link) 2>conftest.er1
a848cd7e 34469 ac_status=$?
ac1cb8d3
VS
34470 grep -v '^ *+' conftest.er1 >conftest.err
34471 rm -f conftest.er1
34472 cat conftest.err >&5
a848cd7e
SC
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); } &&
9dd0f6c2 34475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34477 (eval $ac_try) 2>&5
34478 ac_status=$?
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); }; } &&
34481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483 (eval $ac_try) 2>&5
34484 ac_status=$?
34485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486 (exit $ac_status); }; }; then
34487 ac_cv_func_pthread_attr_setschedparam=yes
34488else
34489 echo "$as_me: failed program was:" >&5
34490sed 's/^/| /' conftest.$ac_ext >&5
34491
34492ac_cv_func_pthread_attr_setschedparam=no
34493fi
ac1cb8d3
VS
34494rm -f conftest.err conftest.$ac_objext \
34495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34496fi
34497echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34498echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34499if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34500 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34501echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34502if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34503 echo $ECHO_N "(cached) $ECHO_C" >&6
34504else
34505 cat >conftest.$ac_ext <<_ACEOF
34506/* confdefs.h. */
34507_ACEOF
34508cat confdefs.h >>conftest.$ac_ext
34509cat >>conftest.$ac_ext <<_ACEOF
34510/* end confdefs.h. */
ac1cb8d3
VS
34511/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34513#define sched_get_priority_max innocuous_sched_get_priority_max
34514
a848cd7e
SC
34515/* System header to define __stub macros and hopefully few prototypes,
34516 which can conflict with char sched_get_priority_max (); below.
34517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34518 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34519
a848cd7e
SC
34520#ifdef __STDC__
34521# include <limits.h>
34522#else
34523# include <assert.h>
34524#endif
ac1cb8d3
VS
34525
34526#undef sched_get_priority_max
34527
a848cd7e
SC
34528/* Override any gcc2 internal prototype to avoid an error. */
34529#ifdef __cplusplus
34530extern "C"
34531{
34532#endif
34533/* We use char because int might match the return type of a gcc2
34534 builtin and then its argument prototype would still apply. */
34535char sched_get_priority_max ();
34536/* The GNU C library defines this for functions which it implements
34537 to always fail with ENOSYS. Some functions are actually named
34538 something starting with __ and the normal name is an alias. */
34539#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34540choke me
34541#else
34542char (*f) () = sched_get_priority_max;
34543#endif
34544#ifdef __cplusplus
34545}
34546#endif
34547
34548int
34549main ()
34550{
34551return f != sched_get_priority_max;
34552 ;
34553 return 0;
34554}
34555_ACEOF
34556rm -f conftest.$ac_objext conftest$ac_exeext
34557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34558 (eval $ac_link) 2>conftest.er1
a848cd7e 34559 ac_status=$?
ac1cb8d3
VS
34560 grep -v '^ *+' conftest.er1 >conftest.err
34561 rm -f conftest.er1
34562 cat conftest.err >&5
a848cd7e
SC
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 (exit $ac_status); } &&
9dd0f6c2 34565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34568 ac_status=$?
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; } &&
34571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34573 (eval $ac_try) 2>&5
34574 ac_status=$?
34575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576 (exit $ac_status); }; }; then
34577 ac_cv_func_sched_get_priority_max=yes
34578else
34579 echo "$as_me: failed program was:" >&5
34580sed 's/^/| /' conftest.$ac_ext >&5
34581
34582ac_cv_func_sched_get_priority_max=no
34583fi
ac1cb8d3
VS
34584rm -f conftest.err conftest.$ac_objext \
34585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34586fi
34587echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34588echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34589if test $ac_cv_func_sched_get_priority_max = yes; then
34590 HAVE_PRIOR_FUNCS=1
34591else
34592 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34593echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34594if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34596else
34597 ac_check_lib_save_LIBS=$LIBS
34598LIBS="-lposix4 $LIBS"
34599cat >conftest.$ac_ext <<_ACEOF
34600/* confdefs.h. */
34601_ACEOF
34602cat confdefs.h >>conftest.$ac_ext
34603cat >>conftest.$ac_ext <<_ACEOF
34604/* end confdefs.h. */
34605
34606/* Override any gcc2 internal prototype to avoid an error. */
34607#ifdef __cplusplus
34608extern "C"
34609#endif
34610/* We use char because int might match the return type of a gcc2
34611 builtin and then its argument prototype would still apply. */
34612char sched_get_priority_max ();
34613int
34614main ()
34615{
34616sched_get_priority_max ();
34617 ;
34618 return 0;
34619}
34620_ACEOF
34621rm -f conftest.$ac_objext conftest$ac_exeext
34622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34623 (eval $ac_link) 2>conftest.er1
a848cd7e 34624 ac_status=$?
ac1cb8d3
VS
34625 grep -v '^ *+' conftest.er1 >conftest.err
34626 rm -f conftest.er1
34627 cat conftest.err >&5
a848cd7e
SC
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); } &&
9dd0f6c2 34630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632 (eval $ac_try) 2>&5
34633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); }; } &&
34636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34638 (eval $ac_try) 2>&5
34639 ac_status=$?
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); }; }; then
34642 ac_cv_lib_posix4_sched_get_priority_max=yes
34643else
34644 echo "$as_me: failed program was:" >&5
34645sed 's/^/| /' conftest.$ac_ext >&5
34646
34647ac_cv_lib_posix4_sched_get_priority_max=no
34648fi
ac1cb8d3
VS
34649rm -f conftest.err conftest.$ac_objext \
34650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34651LIBS=$ac_check_lib_save_LIBS
34652fi
34653echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34654echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34655if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34656
34657 HAVE_PRIOR_FUNCS=1
34658 POSIX4_LINK=" -lposix4"
34659
34660fi
34661
34662
34663fi
34664
34665
34666fi
34667
34668
34669fi
34670
34671
34672 if test "$HAVE_PRIOR_FUNCS" = 1; then
34673 cat >>confdefs.h <<\_ACEOF
34674#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34675_ACEOF
34676
34677 else
34678 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34679echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34680 fi
34681
34682 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34683echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34684if test "${ac_cv_func_pthread_cancel+set}" = set; then
34685 echo $ECHO_N "(cached) $ECHO_C" >&6
34686else
34687 cat >conftest.$ac_ext <<_ACEOF
34688/* confdefs.h. */
34689_ACEOF
34690cat confdefs.h >>conftest.$ac_ext
34691cat >>conftest.$ac_ext <<_ACEOF
34692/* end confdefs.h. */
ac1cb8d3
VS
34693/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34695#define pthread_cancel innocuous_pthread_cancel
34696
a848cd7e
SC
34697/* System header to define __stub macros and hopefully few prototypes,
34698 which can conflict with char pthread_cancel (); below.
34699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34700 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34701
a848cd7e
SC
34702#ifdef __STDC__
34703# include <limits.h>
34704#else
34705# include <assert.h>
34706#endif
ac1cb8d3
VS
34707
34708#undef pthread_cancel
34709
a848cd7e
SC
34710/* Override any gcc2 internal prototype to avoid an error. */
34711#ifdef __cplusplus
34712extern "C"
34713{
34714#endif
34715/* We use char because int might match the return type of a gcc2
34716 builtin and then its argument prototype would still apply. */
34717char pthread_cancel ();
34718/* The GNU C library defines this for functions which it implements
34719 to always fail with ENOSYS. Some functions are actually named
34720 something starting with __ and the normal name is an alias. */
34721#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34722choke me
34723#else
34724char (*f) () = pthread_cancel;
34725#endif
34726#ifdef __cplusplus
34727}
34728#endif
34729
34730int
34731main ()
34732{
34733return f != pthread_cancel;
34734 ;
34735 return 0;
34736}
34737_ACEOF
34738rm -f conftest.$ac_objext conftest$ac_exeext
34739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34740 (eval $ac_link) 2>conftest.er1
a848cd7e 34741 ac_status=$?
ac1cb8d3
VS
34742 grep -v '^ *+' conftest.er1 >conftest.err
34743 rm -f conftest.er1
34744 cat conftest.err >&5
a848cd7e
SC
34745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34746 (exit $ac_status); } &&
9dd0f6c2 34747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749 (eval $ac_try) 2>&5
34750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; } &&
34753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 ac_cv_func_pthread_cancel=yes
34760else
34761 echo "$as_me: failed program was:" >&5
34762sed 's/^/| /' conftest.$ac_ext >&5
34763
34764ac_cv_func_pthread_cancel=no
34765fi
ac1cb8d3
VS
34766rm -f conftest.err conftest.$ac_objext \
34767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34768fi
34769echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34770echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34771if test $ac_cv_func_pthread_cancel = yes; then
34772 cat >>confdefs.h <<\_ACEOF
34773#define HAVE_PTHREAD_CANCEL 1
34774_ACEOF
34775
34776else
34777 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34778echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34779fi
34780
34781
34782
34783
34784 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34785echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34786if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34787 echo $ECHO_N "(cached) $ECHO_C" >&6
34788else
34789
34790 cat >conftest.$ac_ext <<_ACEOF
34791/* confdefs.h. */
34792_ACEOF
34793cat confdefs.h >>conftest.$ac_ext
34794cat >>conftest.$ac_ext <<_ACEOF
34795/* end confdefs.h. */
34796#include <pthread.h>
34797int
34798main ()
34799{
34800
34801 pthread_mutexattr_t attr;
34802 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34803
34804 ;
34805 return 0;
34806}
34807_ACEOF
34808rm -f conftest.$ac_objext
34809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34810 (eval $ac_compile) 2>conftest.er1
a848cd7e 34811 ac_status=$?
ac1cb8d3
VS
34812 grep -v '^ *+' conftest.er1 >conftest.err
34813 rm -f conftest.er1
34814 cat conftest.err >&5
a848cd7e
SC
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); } &&
9dd0f6c2 34817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; } &&
34823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34825 (eval $ac_try) 2>&5
34826 ac_status=$?
34827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828 (exit $ac_status); }; }; then
34829
34830 wx_cv_type_pthread_mutexattr_t=yes
34831
34832else
34833 echo "$as_me: failed program was:" >&5
34834sed 's/^/| /' conftest.$ac_ext >&5
34835
34836
34837 wx_cv_type_pthread_mutexattr_t=no
34838
34839
34840fi
ac1cb8d3 34841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34842
34843fi
34844echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34845echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34846
34847 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34848 cat >>confdefs.h <<\_ACEOF
34849#define HAVE_PTHREAD_MUTEXATTR_T 1
34850_ACEOF
34851
34852 else
34853 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34854echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34855if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34856 echo $ECHO_N "(cached) $ECHO_C" >&6
34857else
34858
34859 cat >conftest.$ac_ext <<_ACEOF
34860/* confdefs.h. */
34861_ACEOF
34862cat confdefs.h >>conftest.$ac_ext
34863cat >>conftest.$ac_ext <<_ACEOF
34864/* end confdefs.h. */
34865#include <pthread.h>
34866int
34867main ()
34868{
34869
34870 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34871
34872 ;
34873 return 0;
34874}
34875_ACEOF
34876rm -f conftest.$ac_objext
34877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34878 (eval $ac_compile) 2>conftest.er1
a848cd7e 34879 ac_status=$?
ac1cb8d3
VS
34880 grep -v '^ *+' conftest.er1 >conftest.err
34881 rm -f conftest.er1
34882 cat conftest.err >&5
a848cd7e
SC
34883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884 (exit $ac_status); } &&
9dd0f6c2 34885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34887 (eval $ac_try) 2>&5
34888 ac_status=$?
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); }; } &&
34891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34894 ac_status=$?
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; }; then
34897
34898 wx_cv_type_pthread_rec_mutex_init=yes
34899
34900else
34901 echo "$as_me: failed program was:" >&5
34902sed 's/^/| /' conftest.$ac_ext >&5
34903
34904
34905 wx_cv_type_pthread_rec_mutex_init=no
34906
34907
34908fi
ac1cb8d3 34909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34910
34911fi
34912echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34913echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34914 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34915 cat >>confdefs.h <<\_ACEOF
34916#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34917_ACEOF
34918
34919 else
34920 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34921echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34922 fi
34923 fi
34924 fi
34925
34926else
34927 if test "$wxUSE_THREADS" = "yes" ; then
34928 case "${host}" in
34929 *-*-mingw32* )
34930 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34931echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34932if test "${wx_cv_cflags_mthread+set}" = set; then
34933 echo $ECHO_N "(cached) $ECHO_C" >&6
34934else
34935
34936 CFLAGS_OLD="$CFLAGS"
34937 CFLAGS="$CFLAGS -mthreads"
34938 cat >conftest.$ac_ext <<_ACEOF
34939/* confdefs.h. */
34940_ACEOF
34941cat confdefs.h >>conftest.$ac_ext
34942cat >>conftest.$ac_ext <<_ACEOF
34943/* end confdefs.h. */
34944
34945int
34946main ()
34947{
34948
34949 ;
34950 return 0;
34951}
34952_ACEOF
34953rm -f conftest.$ac_objext
34954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34955 (eval $ac_compile) 2>conftest.er1
a848cd7e 34956 ac_status=$?
ac1cb8d3
VS
34957 grep -v '^ *+' conftest.er1 >conftest.err
34958 rm -f conftest.er1
34959 cat conftest.err >&5
a848cd7e
SC
34960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961 (exit $ac_status); } &&
9dd0f6c2 34962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34964 (eval $ac_try) 2>&5
34965 ac_status=$?
34966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967 (exit $ac_status); }; } &&
34968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970 (eval $ac_try) 2>&5
34971 ac_status=$?
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); }; }; then
34974 wx_cv_cflags_mthread=yes
34975else
34976 echo "$as_me: failed program was:" >&5
34977sed 's/^/| /' conftest.$ac_ext >&5
34978
34979wx_cv_cflags_mthread=no
34980
34981fi
ac1cb8d3 34982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34983
34984
34985fi
34986echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34987echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34988
34989 if test "$wx_cv_cflags_mthread" = "yes"; then
34990 CXXFLAGS="$CXXFLAGS -mthreads"
34991 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34992 LDFLAGS="$LDFLAGS -mthreads"
34993 else
34994 CFLAGS="$CFLAGS_OLD"
34995 fi
34996 ;;
34997 *-pc-os2*emx )
34998 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34999 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35000 LDFLAGS="$LDFLAGS -Zmt"
35001 ;;
35002 esac
35003 fi
35004fi
35005
35006if test "$wxUSE_THREADS" = "yes"; then
35007 cat >>confdefs.h <<\_ACEOF
35008#define wxUSE_THREADS 1
35009_ACEOF
35010
35011
35012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35013else
35014 if test "$ac_cv_func_strtok_r" = "yes"; then
35015 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35016echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35017 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35018 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35019 echo "$as_me:$LINENO: result: yes" >&5
35020echo "${ECHO_T}yes" >&6
35021 else
35022 echo "$as_me:$LINENO: result: no" >&5
35023echo "${ECHO_T}no" >&6
35024 fi
35025 fi
35026fi
35027
35028if test "$WXGTK20" = 1 ; then
35029 cat >>confdefs.h <<_ACEOF
35030#define __WXGTK20__ $WXGTK20
35031_ACEOF
35032
35033 WXGTK12=1
35034fi
35035
35036if test "$WXGTK12" = 1 ; then
35037 cat >>confdefs.h <<_ACEOF
35038#define __WXGTK12__ $WXGTK12
35039_ACEOF
35040
35041fi
35042
35043if test "$WXGTK127" = 1 ; then
35044 cat >>confdefs.h <<_ACEOF
35045#define __WXGTK127__ $WXGTK127
35046_ACEOF
35047
35048fi
35049
35050if test "$WXGPE" = 1 ; then
35051 cat >>confdefs.h <<_ACEOF
35052#define __WXGPE__ $WXGPE
35053_ACEOF
35054
35055fi
35056
35057WXDEBUG=
35058
35059if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35060 WXDEBUG="-g"
35061 wxUSE_OPTIMISE=no
35062fi
35063
35064if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35065 wxUSE_DEBUG_INFO=yes
35066 WXDEBUG="-ggdb"
35067fi
35068
35069if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35070 cat >>confdefs.h <<\_ACEOF
35071#define WXDEBUG 1
35072_ACEOF
35073
35074 WXDEBUG_DEFINE="-D__WXDEBUG__"
35075else
35076 if test "$wxUSE_GTK" = 1 ; then
35077 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35078 fi
35079fi
35080
35081if test "$wxUSE_MEM_TRACING" = "yes" ; then
35082 cat >>confdefs.h <<\_ACEOF
35083#define wxUSE_MEMORY_TRACING 1
35084_ACEOF
35085
35086 cat >>confdefs.h <<\_ACEOF
35087#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35088_ACEOF
35089
35090 cat >>confdefs.h <<\_ACEOF
35091#define wxUSE_DEBUG_NEW_ALWAYS 1
35092_ACEOF
35093
35094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35095fi
35096
35097if test "$wxUSE_DMALLOC" = "yes" ; then
35098 DMALLOC_LIBS="-ldmalloc"
35099fi
35100
35101PROFILE=
35102if test "$wxUSE_PROFILE" = "yes" ; then
35103 PROFILE=" -pg"
35104fi
35105
35106CODE_GEN_FLAGS=
35107CODE_GEN_FLAGS_CXX=
35108if test "$GCC" = "yes" ; then
35109 if test "$wxUSE_NO_RTTI" = "yes" ; then
35110 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35111 fi
35112 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35113 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35114 fi
35115 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35116 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35117 fi
35118
35119 case "${host}" in
35120 powerpc*-*-aix* )
35121 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35122 ;;
35123 *-hppa* )
35124 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35125 ;;
35126 esac
35127fi
35128
35129OPTIMISE=
35130if test "$wxUSE_OPTIMISE" = "no" ; then
35131 if test "$GCC" = yes ; then
35132 OPTIMISE="-O0"
35133 fi
35134else
35135 if test "$GCC" = yes ; then
35136 OPTIMISE="-O2"
35137
35138 case "${host}" in
35139 i586-*-*|i686-*-* )
35140 OPTIMISE="${OPTIMISE} "
35141 ;;
35142 esac
35143 else
35144 OPTIMISE="-O"
35145 fi
35146fi
35147
35148
35149if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35150 cat >>confdefs.h <<\_ACEOF
35151#define WXWIN_COMPATIBILITY_2_2 1
35152_ACEOF
35153
35154
35155 WXWIN_COMPATIBILITY_2_4="yes"
35156fi
35157
35158if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35159 cat >>confdefs.h <<\_ACEOF
35160#define WXWIN_COMPATIBILITY_2_4 1
35161_ACEOF
35162
35163fi
35164
35165
35166if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35167 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35168#define wxUSE_GUI 1
35169_ACEOF
35170
35171
370fd4c2 35172 fi
a848cd7e
SC
35173
35174
35175if test "$wxUSE_UNIX" = "yes"; then
35176 cat >>confdefs.h <<\_ACEOF
35177#define wxUSE_UNIX 1
35178_ACEOF
35179
35180fi
35181
35182
35183if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35184
35185 HAVE_DL_FUNCS=0
35186 HAVE_SHL_FUNCS=0
35187 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35188 if test "$USE_DARWIN" = 1; then
35189 HAVE_DL_FUNCS=1
35190 else
35191
35192for ac_func in dlopen
35193do
35194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35195echo "$as_me:$LINENO: checking for $ac_func" >&5
35196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35197if eval "test \"\${$as_ac_var+set}\" = set"; then
35198 echo $ECHO_N "(cached) $ECHO_C" >&6
35199else
35200 cat >conftest.$ac_ext <<_ACEOF
35201/* confdefs.h. */
35202_ACEOF
35203cat confdefs.h >>conftest.$ac_ext
35204cat >>conftest.$ac_ext <<_ACEOF
35205/* end confdefs.h. */
ac1cb8d3
VS
35206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35208#define $ac_func innocuous_$ac_func
35209
a848cd7e
SC
35210/* System header to define __stub macros and hopefully few prototypes,
35211 which can conflict with char $ac_func (); below.
35212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35213 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35214
a848cd7e
SC
35215#ifdef __STDC__
35216# include <limits.h>
35217#else
35218# include <assert.h>
35219#endif
ac1cb8d3
VS
35220
35221#undef $ac_func
35222
a848cd7e
SC
35223/* Override any gcc2 internal prototype to avoid an error. */
35224#ifdef __cplusplus
35225extern "C"
35226{
35227#endif
35228/* We use char because int might match the return type of a gcc2
35229 builtin and then its argument prototype would still apply. */
35230char $ac_func ();
35231/* The GNU C library defines this for functions which it implements
35232 to always fail with ENOSYS. Some functions are actually named
35233 something starting with __ and the normal name is an alias. */
35234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35235choke me
35236#else
35237char (*f) () = $ac_func;
35238#endif
35239#ifdef __cplusplus
35240}
35241#endif
35242
35243int
35244main ()
35245{
35246return f != $ac_func;
35247 ;
35248 return 0;
35249}
35250_ACEOF
35251rm -f conftest.$ac_objext conftest$ac_exeext
35252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35253 (eval $ac_link) 2>conftest.er1
a848cd7e 35254 ac_status=$?
ac1cb8d3
VS
35255 grep -v '^ *+' conftest.er1 >conftest.err
35256 rm -f conftest.er1
35257 cat conftest.err >&5
a848cd7e
SC
35258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259 (exit $ac_status); } &&
9dd0f6c2 35260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35262 (eval $ac_try) 2>&5
35263 ac_status=$?
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); }; } &&
35266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35268 (eval $ac_try) 2>&5
35269 ac_status=$?
35270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); }; }; then
35272 eval "$as_ac_var=yes"
35273else
35274 echo "$as_me: failed program was:" >&5
35275sed 's/^/| /' conftest.$ac_ext >&5
35276
35277eval "$as_ac_var=no"
35278fi
ac1cb8d3
VS
35279rm -f conftest.err conftest.$ac_objext \
35280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35281fi
35282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35284if test `eval echo '${'$as_ac_var'}'` = yes; then
35285 cat >>confdefs.h <<_ACEOF
35286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35287_ACEOF
35288
35289 cat >>confdefs.h <<\_ACEOF
35290#define HAVE_DLOPEN 1
35291_ACEOF
35292
35293 HAVE_DL_FUNCS=1
35294
35295else
35296
35297 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35298echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35299if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35300 echo $ECHO_N "(cached) $ECHO_C" >&6
35301else
35302 ac_check_lib_save_LIBS=$LIBS
35303LIBS="-ldl $LIBS"
35304cat >conftest.$ac_ext <<_ACEOF
35305/* confdefs.h. */
35306_ACEOF
35307cat confdefs.h >>conftest.$ac_ext
35308cat >>conftest.$ac_ext <<_ACEOF
35309/* end confdefs.h. */
35310
35311/* Override any gcc2 internal prototype to avoid an error. */
35312#ifdef __cplusplus
35313extern "C"
35314#endif
35315/* We use char because int might match the return type of a gcc2
35316 builtin and then its argument prototype would still apply. */
35317char dlopen ();
35318int
35319main ()
35320{
35321dlopen ();
35322 ;
35323 return 0;
35324}
35325_ACEOF
35326rm -f conftest.$ac_objext conftest$ac_exeext
35327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35328 (eval $ac_link) 2>conftest.er1
a848cd7e 35329 ac_status=$?
ac1cb8d3
VS
35330 grep -v '^ *+' conftest.er1 >conftest.err
35331 rm -f conftest.er1
35332 cat conftest.err >&5
a848cd7e
SC
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); } &&
9dd0f6c2 35335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35337 (eval $ac_try) 2>&5
35338 ac_status=$?
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); }; } &&
35341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35343 (eval $ac_try) 2>&5
35344 ac_status=$?
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); }; }; then
35347 ac_cv_lib_dl_dlopen=yes
35348else
35349 echo "$as_me: failed program was:" >&5
35350sed 's/^/| /' conftest.$ac_ext >&5
35351
35352ac_cv_lib_dl_dlopen=no
35353fi
ac1cb8d3
VS
35354rm -f conftest.err conftest.$ac_objext \
35355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35356LIBS=$ac_check_lib_save_LIBS
35357fi
35358echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35359echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35360if test $ac_cv_lib_dl_dlopen = yes; then
35361
35362 cat >>confdefs.h <<\_ACEOF
35363#define HAVE_DLOPEN 1
35364_ACEOF
35365
35366 HAVE_DL_FUNCS=1
35367 DL_LINK=" -ldl$DL_LINK"
35368
35369else
35370
35371
35372for ac_func in shl_load
35373do
35374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35375echo "$as_me:$LINENO: checking for $ac_func" >&5
35376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35377if eval "test \"\${$as_ac_var+set}\" = set"; then
35378 echo $ECHO_N "(cached) $ECHO_C" >&6
35379else
35380 cat >conftest.$ac_ext <<_ACEOF
35381/* confdefs.h. */
35382_ACEOF
35383cat confdefs.h >>conftest.$ac_ext
35384cat >>conftest.$ac_ext <<_ACEOF
35385/* end confdefs.h. */
ac1cb8d3
VS
35386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35388#define $ac_func innocuous_$ac_func
35389
a848cd7e
SC
35390/* System header to define __stub macros and hopefully few prototypes,
35391 which can conflict with char $ac_func (); below.
35392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35393 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35394
a848cd7e
SC
35395#ifdef __STDC__
35396# include <limits.h>
35397#else
35398# include <assert.h>
35399#endif
ac1cb8d3
VS
35400
35401#undef $ac_func
35402
a848cd7e
SC
35403/* Override any gcc2 internal prototype to avoid an error. */
35404#ifdef __cplusplus
35405extern "C"
35406{
35407#endif
35408/* We use char because int might match the return type of a gcc2
35409 builtin and then its argument prototype would still apply. */
35410char $ac_func ();
35411/* The GNU C library defines this for functions which it implements
35412 to always fail with ENOSYS. Some functions are actually named
35413 something starting with __ and the normal name is an alias. */
35414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35415choke me
35416#else
35417char (*f) () = $ac_func;
35418#endif
35419#ifdef __cplusplus
35420}
35421#endif
35422
35423int
35424main ()
35425{
35426return f != $ac_func;
35427 ;
35428 return 0;
35429}
35430_ACEOF
35431rm -f conftest.$ac_objext conftest$ac_exeext
35432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35433 (eval $ac_link) 2>conftest.er1
a848cd7e 35434 ac_status=$?
ac1cb8d3
VS
35435 grep -v '^ *+' conftest.er1 >conftest.err
35436 rm -f conftest.er1
35437 cat conftest.err >&5
a848cd7e
SC
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); } &&
9dd0f6c2 35440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; } &&
35446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35448 (eval $ac_try) 2>&5
35449 ac_status=$?
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); }; }; then
35452 eval "$as_ac_var=yes"
35453else
35454 echo "$as_me: failed program was:" >&5
35455sed 's/^/| /' conftest.$ac_ext >&5
35456
35457eval "$as_ac_var=no"
35458fi
ac1cb8d3
VS
35459rm -f conftest.err conftest.$ac_objext \
35460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35461fi
35462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35464if test `eval echo '${'$as_ac_var'}'` = yes; then
35465 cat >>confdefs.h <<_ACEOF
35466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35467_ACEOF
35468
35469 cat >>confdefs.h <<\_ACEOF
35470#define HAVE_SHL_LOAD 1
35471_ACEOF
35472
35473 HAVE_SHL_FUNCS=1
35474
35475else
35476
35477 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35478echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35479if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35480 echo $ECHO_N "(cached) $ECHO_C" >&6
35481else
35482 ac_check_lib_save_LIBS=$LIBS
35483LIBS="-lshl_load $LIBS"
35484cat >conftest.$ac_ext <<_ACEOF
35485/* confdefs.h. */
35486_ACEOF
35487cat confdefs.h >>conftest.$ac_ext
35488cat >>conftest.$ac_ext <<_ACEOF
35489/* end confdefs.h. */
35490
35491/* Override any gcc2 internal prototype to avoid an error. */
35492#ifdef __cplusplus
35493extern "C"
35494#endif
35495/* We use char because int might match the return type of a gcc2
35496 builtin and then its argument prototype would still apply. */
35497char dld ();
35498int
35499main ()
35500{
35501dld ();
35502 ;
35503 return 0;
35504}
35505_ACEOF
35506rm -f conftest.$ac_objext conftest$ac_exeext
35507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35508 (eval $ac_link) 2>conftest.er1
a848cd7e 35509 ac_status=$?
ac1cb8d3
VS
35510 grep -v '^ *+' conftest.er1 >conftest.err
35511 rm -f conftest.er1
35512 cat conftest.err >&5
a848cd7e
SC
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); } &&
9dd0f6c2 35515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35518 ac_status=$?
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; } &&
35521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35524 ac_status=$?
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; }; then
35527 ac_cv_lib_shl_load_dld=yes
35528else
35529 echo "$as_me: failed program was:" >&5
35530sed 's/^/| /' conftest.$ac_ext >&5
35531
35532ac_cv_lib_shl_load_dld=no
35533fi
ac1cb8d3
VS
35534rm -f conftest.err conftest.$ac_objext \
35535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35536LIBS=$ac_check_lib_save_LIBS
35537fi
35538echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35539echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35540if test $ac_cv_lib_shl_load_dld = yes; then
35541
35542 HAVE_SHL_FUNCS=1
35543 DL_LINK=" -ldld$DL_LINK"
35544
35545fi
35546
35547
35548fi
35549done
35550
35551
35552fi
35553
35554
35555fi
35556done
35557
35558
35559 if test "$HAVE_DL_FUNCS" = 1; then
35560
35561for ac_func in dlerror
35562do
35563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35564echo "$as_me:$LINENO: checking for $ac_func" >&5
35565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35566if eval "test \"\${$as_ac_var+set}\" = set"; then
35567 echo $ECHO_N "(cached) $ECHO_C" >&6
35568else
35569 cat >conftest.$ac_ext <<_ACEOF
35570/* confdefs.h. */
35571_ACEOF
35572cat confdefs.h >>conftest.$ac_ext
35573cat >>conftest.$ac_ext <<_ACEOF
35574/* end confdefs.h. */
ac1cb8d3
VS
35575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35577#define $ac_func innocuous_$ac_func
35578
a848cd7e
SC
35579/* System header to define __stub macros and hopefully few prototypes,
35580 which can conflict with char $ac_func (); below.
35581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35583
a848cd7e
SC
35584#ifdef __STDC__
35585# include <limits.h>
35586#else
35587# include <assert.h>
35588#endif
ac1cb8d3
VS
35589
35590#undef $ac_func
35591
a848cd7e
SC
35592/* Override any gcc2 internal prototype to avoid an error. */
35593#ifdef __cplusplus
35594extern "C"
35595{
35596#endif
35597/* We use char because int might match the return type of a gcc2
35598 builtin and then its argument prototype would still apply. */
35599char $ac_func ();
35600/* The GNU C library defines this for functions which it implements
35601 to always fail with ENOSYS. Some functions are actually named
35602 something starting with __ and the normal name is an alias. */
35603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35604choke me
35605#else
35606char (*f) () = $ac_func;
35607#endif
35608#ifdef __cplusplus
35609}
35610#endif
35611
35612int
35613main ()
35614{
35615return f != $ac_func;
35616 ;
35617 return 0;
35618}
35619_ACEOF
35620rm -f conftest.$ac_objext conftest$ac_exeext
35621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35622 (eval $ac_link) 2>conftest.er1
a848cd7e 35623 ac_status=$?
ac1cb8d3
VS
35624 grep -v '^ *+' conftest.er1 >conftest.err
35625 rm -f conftest.er1
35626 cat conftest.err >&5
a848cd7e
SC
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); } &&
9dd0f6c2 35629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35631 (eval $ac_try) 2>&5
35632 ac_status=$?
35633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634 (exit $ac_status); }; } &&
35635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35637 (eval $ac_try) 2>&5
35638 ac_status=$?
35639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640 (exit $ac_status); }; }; then
35641 eval "$as_ac_var=yes"
35642else
35643 echo "$as_me: failed program was:" >&5
35644sed 's/^/| /' conftest.$ac_ext >&5
35645
35646eval "$as_ac_var=no"
35647fi
ac1cb8d3
VS
35648rm -f conftest.err conftest.$ac_objext \
35649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35650fi
35651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35653if test `eval echo '${'$as_ac_var'}'` = yes; then
35654 cat >>confdefs.h <<_ACEOF
35655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35656_ACEOF
35657 cat >>confdefs.h <<\_ACEOF
35658#define HAVE_DLERROR 1
35659_ACEOF
35660
35661else
35662
35663 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35664echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35665if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35666 echo $ECHO_N "(cached) $ECHO_C" >&6
35667else
35668 ac_check_lib_save_LIBS=$LIBS
35669LIBS="-ldl $LIBS"
35670cat >conftest.$ac_ext <<_ACEOF
35671/* confdefs.h. */
35672_ACEOF
35673cat confdefs.h >>conftest.$ac_ext
35674cat >>conftest.$ac_ext <<_ACEOF
35675/* end confdefs.h. */
35676
35677/* Override any gcc2 internal prototype to avoid an error. */
35678#ifdef __cplusplus
35679extern "C"
35680#endif
35681/* We use char because int might match the return type of a gcc2
35682 builtin and then its argument prototype would still apply. */
35683char dlerror ();
35684int
35685main ()
35686{
35687dlerror ();
35688 ;
35689 return 0;
35690}
35691_ACEOF
35692rm -f conftest.$ac_objext conftest$ac_exeext
35693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35694 (eval $ac_link) 2>conftest.er1
a848cd7e 35695 ac_status=$?
ac1cb8d3
VS
35696 grep -v '^ *+' conftest.er1 >conftest.err
35697 rm -f conftest.er1
35698 cat conftest.err >&5
a848cd7e
SC
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } &&
9dd0f6c2 35701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; } &&
35707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; }; then
35713 ac_cv_lib_dl_dlerror=yes
35714else
35715 echo "$as_me: failed program was:" >&5
35716sed 's/^/| /' conftest.$ac_ext >&5
35717
35718ac_cv_lib_dl_dlerror=no
35719fi
ac1cb8d3
VS
35720rm -f conftest.err conftest.$ac_objext \
35721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35722LIBS=$ac_check_lib_save_LIBS
35723fi
35724echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35725echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35726if test $ac_cv_lib_dl_dlerror = yes; then
35727 cat >>confdefs.h <<\_ACEOF
35728#define HAVE_DLERROR 1
35729_ACEOF
35730
35731fi
35732
35733
35734
35735fi
35736done
35737
35738 fi
35739 fi
35740
35741 if test "$HAVE_DL_FUNCS" = 0; then
35742 if test "$HAVE_SHL_FUNCS" = 0; then
35743 if test "$USE_UNIX" = 1; then
35744 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35745echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35746 wxUSE_DYNAMIC_LOADER=no
35747 wxUSE_DYNLIB_CLASS=no
35748 else
35749 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35750echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35751 fi
35752 fi
35753 fi
35754 fi
35755fi
35756
35757if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35758 cat >>confdefs.h <<\_ACEOF
35759#define wxUSE_DYNAMIC_LOADER 1
35760_ACEOF
35761
35762fi
35763if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35764 cat >>confdefs.h <<\_ACEOF
35765#define wxUSE_DYNLIB_CLASS 1
35766_ACEOF
35767
35768fi
35769
35770
35771
35772if test "$wxUSE_PLUGINS" = "yes" ; then
35773 if test "$wxUSE_SHARED" = "no" ; then
35774 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35775echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35776 wxUSE_PLUGINS=no
35777 fi
35778 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35779 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35780echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35781 wxUSE_PLUGINS=no
35782 fi
35783 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35784 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35785echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35786 wxUSE_PLUGINS=no
35787 fi
35788 if test "$wxUSE_PLUGINS" = "yes" ; then
35789 cat >>confdefs.h <<\_ACEOF
35790#define wxUSE_PLUGINS 1
35791_ACEOF
35792
35793 fi
35794fi
35795
35796
35797if test "$wxUSE_STL" = "yes"; then
35798 cat >>confdefs.h <<\_ACEOF
35799#define wxUSE_STL 1
35800_ACEOF
35801
35802fi
35803
35804if test "$wxUSE_APPLE_IEEE" = "yes"; then
35805 cat >>confdefs.h <<\_ACEOF
35806#define wxUSE_APPLE_IEEE 1
35807_ACEOF
35808
35809fi
35810
35811if test "$wxUSE_TIMER" = "yes"; then
35812 cat >>confdefs.h <<\_ACEOF
35813#define wxUSE_TIMER 1
35814_ACEOF
35815
35816fi
35817
35818WITH_PLUGIN_SDL=0
35819if test "$wxUSE_SOUND" = "yes"; then
35820 if test "$USE_UNIX" = "1" ; then
35821
35822for ac_header in sys/soundcard.h
35823do
35824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35825if eval "test \"\${$as_ac_Header+set}\" = set"; then
35826 echo "$as_me:$LINENO: checking for $ac_header" >&5
35827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35828if eval "test \"\${$as_ac_Header+set}\" = set"; then
35829 echo $ECHO_N "(cached) $ECHO_C" >&6
35830fi
35831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35833else
35834 # Is the header compilable?
35835echo "$as_me:$LINENO: checking $ac_header usability" >&5
35836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35837cat >conftest.$ac_ext <<_ACEOF
35838/* confdefs.h. */
35839_ACEOF
35840cat confdefs.h >>conftest.$ac_ext
35841cat >>conftest.$ac_ext <<_ACEOF
35842/* end confdefs.h. */
35843$ac_includes_default
35844#include <$ac_header>
35845_ACEOF
35846rm -f conftest.$ac_objext
35847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35848 (eval $ac_compile) 2>conftest.er1
a848cd7e 35849 ac_status=$?
ac1cb8d3
VS
35850 grep -v '^ *+' conftest.er1 >conftest.err
35851 rm -f conftest.er1
35852 cat conftest.err >&5
a848cd7e
SC
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); } &&
9dd0f6c2 35855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857 (eval $ac_try) 2>&5
35858 ac_status=$?
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); }; } &&
35861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35863 (eval $ac_try) 2>&5
35864 ac_status=$?
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); }; }; then
35867 ac_header_compiler=yes
35868else
35869 echo "$as_me: failed program was:" >&5
35870sed 's/^/| /' conftest.$ac_ext >&5
35871
35872ac_header_compiler=no
35873fi
ac1cb8d3 35874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35876echo "${ECHO_T}$ac_header_compiler" >&6
35877
35878# Is the header present?
35879echo "$as_me:$LINENO: checking $ac_header presence" >&5
35880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35881cat >conftest.$ac_ext <<_ACEOF
35882/* confdefs.h. */
35883_ACEOF
35884cat confdefs.h >>conftest.$ac_ext
35885cat >>conftest.$ac_ext <<_ACEOF
35886/* end confdefs.h. */
35887#include <$ac_header>
35888_ACEOF
35889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35891 ac_status=$?
35892 grep -v '^ *+' conftest.er1 >conftest.err
35893 rm -f conftest.er1
35894 cat conftest.err >&5
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); } >/dev/null; then
35897 if test -s conftest.err; then
35898 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35900 else
35901 ac_cpp_err=
35902 fi
35903else
35904 ac_cpp_err=yes
35905fi
35906if test -z "$ac_cpp_err"; then
35907 ac_header_preproc=yes
35908else
35909 echo "$as_me: failed program was:" >&5
35910sed 's/^/| /' conftest.$ac_ext >&5
35911
35912 ac_header_preproc=no
35913fi
35914rm -f conftest.err conftest.$ac_ext
35915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35916echo "${ECHO_T}$ac_header_preproc" >&6
35917
35918# So? What about this header?
ac1cb8d3
VS
35919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35920 yes:no: )
a848cd7e
SC
35921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35925 ac_header_preproc=yes
a848cd7e 35926 ;;
ac1cb8d3 35927 no:yes:* )
a848cd7e
SC
35928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35940 (
35941 cat <<\_ASBOX
ac1cb8d3
VS
35942## ----------------------------------------- ##
35943## Report this to wx-dev@lists.wxwidgets.org ##
35944## ----------------------------------------- ##
a848cd7e
SC
35945_ASBOX
35946 ) |
35947 sed "s/^/$as_me: WARNING: /" >&2
35948 ;;
35949esac
35950echo "$as_me:$LINENO: checking for $ac_header" >&5
35951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35952if eval "test \"\${$as_ac_Header+set}\" = set"; then
35953 echo $ECHO_N "(cached) $ECHO_C" >&6
35954else
ac1cb8d3 35955 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35956fi
35957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35959
35960fi
35961if test `eval echo '${'$as_ac_Header'}'` = yes; then
35962 cat >>confdefs.h <<_ACEOF
35963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35964_ACEOF
35965
35966fi
35967
35968done
35969
35970
35971 if test "$wxUSE_LIBSDL" != "no"; then
35972
35973# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35974if test "${with_sdl_prefix+set}" = set; then
35975 withval="$with_sdl_prefix"
35976 sdl_prefix="$withval"
35977else
35978 sdl_prefix=""
35979fi;
35980
35981# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35982if test "${with_sdl_exec_prefix+set}" = set; then
35983 withval="$with_sdl_exec_prefix"
35984 sdl_exec_prefix="$withval"
35985else
35986 sdl_exec_prefix=""
35987fi;
35988# Check whether --enable-sdltest or --disable-sdltest was given.
35989if test "${enable_sdltest+set}" = set; then
35990 enableval="$enable_sdltest"
35991
35992else
35993 enable_sdltest=yes
35994fi;
35995
35996 if test x$sdl_exec_prefix != x ; then
35997 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35998 if test x${SDL_CONFIG+set} != xset ; then
35999 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36000 fi
36001 fi
36002 if test x$sdl_prefix != x ; then
36003 sdl_args="$sdl_args --prefix=$sdl_prefix"
36004 if test x${SDL_CONFIG+set} != xset ; then
36005 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36006 fi
36007 fi
36008
36009
36010 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36011 # Extract the first word of "sdl-config", so it can be a program name with args.
36012set dummy sdl-config; ac_word=$2
36013echo "$as_me:$LINENO: checking for $ac_word" >&5
36014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36015if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36016 echo $ECHO_N "(cached) $ECHO_C" >&6
36017else
36018 case $SDL_CONFIG in
36019 [\\/]* | ?:[\\/]*)
36020 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36021 ;;
36022 *)
36023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36024for as_dir in $PATH
36025do
36026 IFS=$as_save_IFS
36027 test -z "$as_dir" && as_dir=.
36028 for ac_exec_ext in '' $ac_executable_extensions; do
36029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36030 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36032 break 2
36033 fi
36034done
36035done
36036
36037 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36038 ;;
36039esac
36040fi
36041SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36042
36043if test -n "$SDL_CONFIG"; then
36044 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36045echo "${ECHO_T}$SDL_CONFIG" >&6
36046else
36047 echo "$as_me:$LINENO: result: no" >&5
36048echo "${ECHO_T}no" >&6
36049fi
36050
36051 min_sdl_version=1.2.0
36052 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36053echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36054 no_sdl=""
36055 if test "$SDL_CONFIG" = "no" ; then
36056 no_sdl=yes
36057 else
36058 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36059 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36060
36061 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36062 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36063 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36064 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36065 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36066 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36067 if test "x$enable_sdltest" = "xyes" ; then
36068 ac_save_CFLAGS="$CFLAGS"
94acd38e 36069 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36070 ac_save_LIBS="$LIBS"
36071 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36072 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36073 LIBS="$LIBS $SDL_LIBS"
36074 rm -f conf.sdltest
36075 if test "$cross_compiling" = yes; then
36076 echo $ac_n "cross compiling; assumed OK... $ac_c"
36077else
36078 cat >conftest.$ac_ext <<_ACEOF
36079/* confdefs.h. */
36080_ACEOF
36081cat confdefs.h >>conftest.$ac_ext
36082cat >>conftest.$ac_ext <<_ACEOF
36083/* end confdefs.h. */
36084
36085#include <stdio.h>
36086#include <stdlib.h>
36087#include <string.h>
36088#include "SDL.h"
36089
36090char*
36091my_strdup (char *str)
36092{
36093 char *new_str;
36094
36095 if (str)
36096 {
36097 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36098 strcpy (new_str, str);
36099 }
36100 else
36101 new_str = NULL;
36102
36103 return new_str;
36104}
36105
36106int main (int argc, char *argv[])
36107{
36108 int major, minor, micro;
36109 char *tmp_version;
36110
36111 /* This hangs on some systems (?)
36112 system ("touch conf.sdltest");
36113 */
36114 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36115
36116 /* HP/UX 9 (%@#!) writes to sscanf strings */
36117 tmp_version = my_strdup("$min_sdl_version");
36118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36119 printf("%s, bad version string\n", "$min_sdl_version");
36120 exit(1);
36121 }
36122
36123 if (($sdl_major_version > major) ||
36124 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36125 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36126 {
36127 return 0;
36128 }
36129 else
36130 {
36131 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36132 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36133 printf("*** best to upgrade to the required version.\n");
36134 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36135 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36136 printf("*** config.cache before re-running configure\n");
36137 return 1;
36138 }
36139}
36140
36141
36142_ACEOF
36143rm -f conftest$ac_exeext
36144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36145 (eval $ac_link) 2>&5
36146 ac_status=$?
36147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150 (eval $ac_try) 2>&5
36151 ac_status=$?
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); }; }; then
36154 :
36155else
36156 echo "$as_me: program exited with status $ac_status" >&5
36157echo "$as_me: failed program was:" >&5
36158sed 's/^/| /' conftest.$ac_ext >&5
36159
36160( exit $ac_status )
36161no_sdl=yes
36162fi
ac1cb8d3 36163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36164fi
36165 CFLAGS="$ac_save_CFLAGS"
94acd38e 36166 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36167 LIBS="$ac_save_LIBS"
36168 fi
36169 fi
36170 if test "x$no_sdl" = x ; then
36171 echo "$as_me:$LINENO: result: yes" >&5
36172echo "${ECHO_T}yes" >&6
36173
36174 EXTRALIBS_SDL="$SDL_LIBS"
36175 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36176 cat >>confdefs.h <<\_ACEOF
36177#define wxUSE_LIBSDL 1
36178_ACEOF
36179
36180
36181 else
36182 echo "$as_me:$LINENO: result: no" >&5
36183echo "${ECHO_T}no" >&6
36184 if test "$SDL_CONFIG" = "no" ; then
36185 echo "*** The sdl-config script installed by SDL could not be found"
36186 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36187 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36188 echo "*** full path to sdl-config."
36189 else
36190 if test -f conf.sdltest ; then
36191 :
36192 else
36193 echo "*** Could not run SDL test program, checking why..."
36194 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36195 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36196 LIBS="$LIBS $SDL_LIBS"
36197 cat >conftest.$ac_ext <<_ACEOF
36198/* confdefs.h. */
36199_ACEOF
36200cat confdefs.h >>conftest.$ac_ext
36201cat >>conftest.$ac_ext <<_ACEOF
36202/* end confdefs.h. */
36203
36204#include <stdio.h>
36205#include "SDL.h"
36206
36207int main(int argc, char *argv[])
36208{ return 0; }
36209#undef main
36210#define main K_and_R_C_main
36211
36212int
36213main ()
36214{
36215 return 0;
36216 ;
36217 return 0;
36218}
36219_ACEOF
36220rm -f conftest.$ac_objext conftest$ac_exeext
36221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36222 (eval $ac_link) 2>conftest.er1
a848cd7e 36223 ac_status=$?
ac1cb8d3
VS
36224 grep -v '^ *+' conftest.er1 >conftest.err
36225 rm -f conftest.er1
36226 cat conftest.err >&5
a848cd7e
SC
36227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); } &&
9dd0f6c2 36229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36231 (eval $ac_try) 2>&5
36232 ac_status=$?
36233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36234 (exit $ac_status); }; } &&
36235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36237 (eval $ac_try) 2>&5
36238 ac_status=$?
36239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240 (exit $ac_status); }; }; then
36241 echo "*** The test program compiled, but did not run. This usually means"
36242 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36243 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36244 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36245 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36246 echo "*** is required on your system"
36247 echo "***"
36248 echo "*** If you have an old version installed, it is best to remove it, although"
36249 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36250else
36251 echo "$as_me: failed program was:" >&5
36252sed 's/^/| /' conftest.$ac_ext >&5
36253
36254 echo "*** The test program failed to compile or link. See the file config.log for the"
36255 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36256 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36257 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36258fi
ac1cb8d3
VS
36259rm -f conftest.err conftest.$ac_objext \
36260 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36261 CFLAGS="$ac_save_CFLAGS"
94acd38e 36262 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36263 LIBS="$ac_save_LIBS"
36264 fi
36265 fi
36266 SDL_CFLAGS=""
36267 SDL_LIBS=""
36268 wxUSE_LIBSDL="no"
36269 fi
36270
36271
36272 rm -f conf.sdltest
36273
36274 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36275 WITH_PLUGIN_SDL=1
36276 fi
36277 fi
36278 fi
36279
36280 cat >>confdefs.h <<\_ACEOF
36281#define wxUSE_SOUND 1
36282_ACEOF
36283
36284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36285fi
36286
d1c38808
VZ
36287if test "$WXGTK20" = 1; then
36288 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36289 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36290
36291
36292 succeeded=no
36293
36294 if test -z "$PKG_CONFIG"; then
36295 # Extract the first word of "pkg-config", so it can be a program name with args.
36296set dummy pkg-config; ac_word=$2
36297echo "$as_me:$LINENO: checking for $ac_word" >&5
36298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36299if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36300 echo $ECHO_N "(cached) $ECHO_C" >&6
36301else
36302 case $PKG_CONFIG in
36303 [\\/]* | ?:[\\/]*)
36304 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36305 ;;
36306 *)
36307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36308for as_dir in $PATH
36309do
36310 IFS=$as_save_IFS
36311 test -z "$as_dir" && as_dir=.
36312 for ac_exec_ext in '' $ac_executable_extensions; do
36313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36314 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36316 break 2
36317 fi
36318done
36319done
36320
36321 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36322 ;;
36323esac
36324fi
36325PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36326
36327if test -n "$PKG_CONFIG"; then
36328 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36329echo "${ECHO_T}$PKG_CONFIG" >&6
36330else
36331 echo "$as_me:$LINENO: result: no" >&5
36332echo "${ECHO_T}no" >&6
36333fi
36334
36335 fi
36336
36337 if test "$PKG_CONFIG" = "no" ; then
36338 echo "*** The pkg-config script could not be found. Make sure it is"
36339 echo "*** in your path, or set the PKG_CONFIG environment variable"
36340 echo "*** to the full path to pkg-config."
36341 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36342 else
36343 PKG_CONFIG_MIN_VERSION=0.9.0
36344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36345 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36346echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36347
ffa762ff 36348 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36349 echo "$as_me:$LINENO: result: yes" >&5
36350echo "${ECHO_T}yes" >&6
36351 succeeded=yes
36352
36353 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36354echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36355 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36356 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36357echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36358
36359 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36360echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36361 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36362 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36363echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36364 else
36365 LIBGNOMEPRINTUI_CFLAGS=""
36366 LIBGNOMEPRINTUI_LIBS=""
36367 ## If we have a custom action on failure, don't print errors, but
36368 ## do set a variable so people can do so.
ffa762ff 36369 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36370
36371 fi
36372
36373
36374
36375 else
36376 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36377 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36378 fi
36379 fi
36380
36381 if test $succeeded = yes; then
36382
d1c38808
VZ
36383 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36384 cat >>confdefs.h <<\_ACEOF
36385#define wxUSE_LIBGNOMEPRINT 1
36386_ACEOF
36387
36388
36389 else
36390
36391 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36392echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36393 wxUSE_LIBGNOMEPRINT="no"
36394
36395
36396 fi
36397
36398 fi
36399 fi
36400fi
36401
36402
a848cd7e
SC
36403if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36404 cat >>confdefs.h <<\_ACEOF
36405#define wxUSE_CMDLINE_PARSER 1
36406_ACEOF
36407
36408fi
36409
36410if test "$wxUSE_STOPWATCH" = "yes"; then
36411 cat >>confdefs.h <<\_ACEOF
36412#define wxUSE_STOPWATCH 1
36413_ACEOF
36414
36415fi
36416
36417if test "$wxUSE_DATETIME" = "yes"; then
36418 cat >>confdefs.h <<\_ACEOF
36419#define wxUSE_DATETIME 1
36420_ACEOF
36421
36422fi
36423
36424if test "$wxUSE_FILE" = "yes"; then
36425 cat >>confdefs.h <<\_ACEOF
36426#define wxUSE_FILE 1
36427_ACEOF
36428
36429fi
36430
36431if test "$wxUSE_FFILE" = "yes"; then
36432 cat >>confdefs.h <<\_ACEOF
36433#define wxUSE_FFILE 1
36434_ACEOF
36435
36436fi
36437
36438if test "$wxUSE_FILESYSTEM" = "yes"; then
36439 cat >>confdefs.h <<\_ACEOF
36440#define wxUSE_FILESYSTEM 1
36441_ACEOF
36442
36443fi
36444
36445if test "$wxUSE_FS_ZIP" = "yes"; then
36446 cat >>confdefs.h <<\_ACEOF
36447#define wxUSE_FS_ZIP 1
36448_ACEOF
36449
36450fi
36451
9e8e867f 36452if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36453 cat >>confdefs.h <<\_ACEOF
9e8e867f 36454#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36455_ACEOF
36456
36457fi
36458
36459if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36460 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36461 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36462echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36463 elif test "$wxUSE_ZLIB" = "no"; then
36464 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36465echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36466 else
36467 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36468#define wxUSE_ZIPSTREAM 1
36469_ACEOF
36470
81f90336 36471 fi
a848cd7e
SC
36472fi
36473
a848cd7e
SC
36474if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36475 cat >>confdefs.h <<\_ACEOF
36476#define wxUSE_ON_FATAL_EXCEPTION 1
36477_ACEOF
36478
36479fi
36480
eaff0f0d
VZ
36481if test "$wxUSE_STACKWALKER" = "yes"; then
36482 cat >>confdefs.h <<\_ACEOF
36483#define wxUSE_STACKWALKER 1
36484_ACEOF
36485
36486fi
36487
36b6448c 36488if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36489 if test "$USE_OS2" = "1"; then
36490 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36491echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36492 wxUSE_DEBUGREPORT=no
36493 else
36494 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36495#define wxUSE_DEBUGREPORT 1
36496_ACEOF
36497
dfe0c803
JS
36498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36499 fi
36b6448c
VZ
36500fi
36501
a848cd7e
SC
36502if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36503 cat >>confdefs.h <<\_ACEOF
36504#define wxUSE_SNGLINST_CHECKER 1
36505_ACEOF
36506
36507fi
36508
36509if test "$wxUSE_BUSYINFO" = "yes"; then
36510 cat >>confdefs.h <<\_ACEOF
36511#define wxUSE_BUSYINFO 1
36512_ACEOF
36513
36514fi
36515
36516if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36517 cat >>confdefs.h <<\_ACEOF
36518#define wxUSE_STD_IOSTREAM 1
36519_ACEOF
36520
36521fi
36522
07158944
VZ
36523if test "$wxUSE_STDPATHS" = "yes"; then
36524 cat >>confdefs.h <<\_ACEOF
36525#define wxUSE_STDPATHS 1
36526_ACEOF
36527
36528fi
36529
a848cd7e
SC
36530if test "$wxUSE_TEXTBUFFER" = "yes"; then
36531 cat >>confdefs.h <<\_ACEOF
36532#define wxUSE_TEXTBUFFER 1
36533_ACEOF
36534
36535fi
36536
36537if test "$wxUSE_TEXTFILE" = "yes"; then
36538 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36539 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36540echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36541 else
36542 cat >>confdefs.h <<\_ACEOF
36543#define wxUSE_TEXTFILE 1
36544_ACEOF
36545
36546 fi
36547fi
36548
36549if test "$wxUSE_CONFIG" = "yes" ; then
36550 if test "$wxUSE_TEXTFILE" != "yes"; then
36551 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36552echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36553 else
36554 cat >>confdefs.h <<\_ACEOF
36555#define wxUSE_CONFIG 1
89be85c2
VS
36556_ACEOF
36557
36558 cat >>confdefs.h <<\_ACEOF
36559#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36560_ACEOF
36561
36562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36563 fi
36564fi
36565
36566if test "$wxUSE_INTL" = "yes" ; then
36567 if test "$wxUSE_FILE" != "yes"; then
36568 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36569echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36570 else
36571 cat >>confdefs.h <<\_ACEOF
36572#define wxUSE_INTL 1
36573_ACEOF
36574
36575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36576 GUIDIST="$GUIDIST INTL_DIST"
36577 fi
36578fi
36579
36580if test "$wxUSE_LOG" = "yes"; then
36581 cat >>confdefs.h <<\_ACEOF
36582#define wxUSE_LOG 1
36583_ACEOF
36584
36585
36586 if test "$wxUSE_LOGGUI" = "yes"; then
36587 cat >>confdefs.h <<\_ACEOF
36588#define wxUSE_LOGGUI 1
36589_ACEOF
36590
36591 fi
36592
36593 if test "$wxUSE_LOGWINDOW" = "yes"; then
36594 cat >>confdefs.h <<\_ACEOF
36595#define wxUSE_LOGWINDOW 1
36596_ACEOF
36597
36598 fi
36599
36600 if test "$wxUSE_LOGDIALOG" = "yes"; then
36601 cat >>confdefs.h <<\_ACEOF
36602#define wxUSE_LOG_DIALOG 1
36603_ACEOF
36604
36605 fi
0b78747f
MW
36606
36607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36608fi
36609
36610if test "$wxUSE_LONGLONG" = "yes"; then
36611 cat >>confdefs.h <<\_ACEOF
36612#define wxUSE_LONGLONG 1
36613_ACEOF
36614
36615fi
36616
36617if test "$wxUSE_GEOMETRY" = "yes"; then
36618 cat >>confdefs.h <<\_ACEOF
36619#define wxUSE_GEOMETRY 1
36620_ACEOF
36621
36622fi
36623
a848cd7e
SC
36624if test "$wxUSE_STREAMS" = "yes" ; then
36625 cat >>confdefs.h <<\_ACEOF
36626#define wxUSE_STREAMS 1
36627_ACEOF
36628
36629fi
36630
36631
36632if test "$wxUSE_DATETIME" = "yes"; then
36633
36634for ac_func in strptime
36635do
36636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36637echo "$as_me:$LINENO: checking for $ac_func" >&5
36638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36639if eval "test \"\${$as_ac_var+set}\" = set"; then
36640 echo $ECHO_N "(cached) $ECHO_C" >&6
36641else
36642 cat >conftest.$ac_ext <<_ACEOF
36643/* confdefs.h. */
36644_ACEOF
36645cat confdefs.h >>conftest.$ac_ext
36646cat >>conftest.$ac_ext <<_ACEOF
36647/* end confdefs.h. */
ac1cb8d3
VS
36648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36650#define $ac_func innocuous_$ac_func
36651
a848cd7e
SC
36652/* System header to define __stub macros and hopefully few prototypes,
36653 which can conflict with char $ac_func (); below.
36654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36655 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36656
a848cd7e
SC
36657#ifdef __STDC__
36658# include <limits.h>
36659#else
36660# include <assert.h>
36661#endif
ac1cb8d3
VS
36662
36663#undef $ac_func
36664
a848cd7e
SC
36665/* Override any gcc2 internal prototype to avoid an error. */
36666#ifdef __cplusplus
36667extern "C"
36668{
36669#endif
36670/* We use char because int might match the return type of a gcc2
36671 builtin and then its argument prototype would still apply. */
36672char $ac_func ();
36673/* The GNU C library defines this for functions which it implements
36674 to always fail with ENOSYS. Some functions are actually named
36675 something starting with __ and the normal name is an alias. */
36676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36677choke me
36678#else
36679char (*f) () = $ac_func;
36680#endif
36681#ifdef __cplusplus
36682}
36683#endif
36684
36685int
36686main ()
36687{
36688return f != $ac_func;
36689 ;
36690 return 0;
36691}
36692_ACEOF
36693rm -f conftest.$ac_objext conftest$ac_exeext
36694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36695 (eval $ac_link) 2>conftest.er1
a848cd7e 36696 ac_status=$?
ac1cb8d3
VS
36697 grep -v '^ *+' conftest.er1 >conftest.err
36698 rm -f conftest.er1
36699 cat conftest.err >&5
a848cd7e
SC
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } &&
9dd0f6c2 36702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36704 (eval $ac_try) 2>&5
36705 ac_status=$?
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); }; } &&
36708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36711 ac_status=$?
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; }; then
36714 eval "$as_ac_var=yes"
36715else
36716 echo "$as_me: failed program was:" >&5
36717sed 's/^/| /' conftest.$ac_ext >&5
36718
36719eval "$as_ac_var=no"
36720fi
ac1cb8d3
VS
36721rm -f conftest.err conftest.$ac_objext \
36722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36723fi
36724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36726if test `eval echo '${'$as_ac_var'}'` = yes; then
36727 cat >>confdefs.h <<_ACEOF
36728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36729_ACEOF
36730
36731fi
36732done
36733
36734
36735 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36736echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36737if test "${wx_cv_var_timezone+set}" = set; then
36738 echo $ECHO_N "(cached) $ECHO_C" >&6
36739else
36740
36741 cat >conftest.$ac_ext <<_ACEOF
36742/* confdefs.h. */
36743_ACEOF
36744cat confdefs.h >>conftest.$ac_ext
36745cat >>conftest.$ac_ext <<_ACEOF
36746/* end confdefs.h. */
36747
36748 #include <time.h>
36749
36750int
36751main ()
36752{
36753
36754 int tz;
36755 tz = timezone;
36756
36757 ;
36758 return 0;
36759}
36760_ACEOF
36761rm -f conftest.$ac_objext
36762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36763 (eval $ac_compile) 2>conftest.er1
a848cd7e 36764 ac_status=$?
ac1cb8d3
VS
36765 grep -v '^ *+' conftest.er1 >conftest.err
36766 rm -f conftest.er1
36767 cat conftest.err >&5
a848cd7e
SC
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); } &&
9dd0f6c2 36770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36772 (eval $ac_try) 2>&5
36773 ac_status=$?
36774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36775 (exit $ac_status); }; } &&
36776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36778 (eval $ac_try) 2>&5
36779 ac_status=$?
36780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781 (exit $ac_status); }; }; then
36782
36783 wx_cv_var_timezone=timezone
36784
36785else
36786 echo "$as_me: failed program was:" >&5
36787sed 's/^/| /' conftest.$ac_ext >&5
36788
36789
36790 cat >conftest.$ac_ext <<_ACEOF
36791/* confdefs.h. */
36792_ACEOF
36793cat confdefs.h >>conftest.$ac_ext
36794cat >>conftest.$ac_ext <<_ACEOF
36795/* end confdefs.h. */
36796
36797 #include <time.h>
36798
36799int
36800main ()
36801{
36802
36803 int tz;
36804 tz = _timezone;
36805
36806 ;
36807 return 0;
36808}
36809_ACEOF
36810rm -f conftest.$ac_objext
36811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36812 (eval $ac_compile) 2>conftest.er1
a848cd7e 36813 ac_status=$?
ac1cb8d3
VS
36814 grep -v '^ *+' conftest.er1 >conftest.err
36815 rm -f conftest.er1
36816 cat conftest.err >&5
a848cd7e
SC
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); } &&
9dd0f6c2 36819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36821 (eval $ac_try) 2>&5
36822 ac_status=$?
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); }; } &&
36825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36827 (eval $ac_try) 2>&5
36828 ac_status=$?
36829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); }; }; then
36831
36832 wx_cv_var_timezone=_timezone
36833
36834else
36835 echo "$as_me: failed program was:" >&5
36836sed 's/^/| /' conftest.$ac_ext >&5
36837
36838
36839 cat >conftest.$ac_ext <<_ACEOF
36840/* confdefs.h. */
36841_ACEOF
36842cat confdefs.h >>conftest.$ac_ext
36843cat >>conftest.$ac_ext <<_ACEOF
36844/* end confdefs.h. */
36845
36846 #include <time.h>
36847
36848int
36849main ()
36850{
36851
36852 int tz;
36853 tz = __timezone;
36854
36855 ;
36856 return 0;
36857}
36858_ACEOF
36859rm -f conftest.$ac_objext
36860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36861 (eval $ac_compile) 2>conftest.er1
a848cd7e 36862 ac_status=$?
ac1cb8d3
VS
36863 grep -v '^ *+' conftest.er1 >conftest.err
36864 rm -f conftest.er1
36865 cat conftest.err >&5
a848cd7e
SC
36866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867 (exit $ac_status); } &&
9dd0f6c2 36868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36870 (eval $ac_try) 2>&5
36871 ac_status=$?
36872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873 (exit $ac_status); }; } &&
36874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36876 (eval $ac_try) 2>&5
36877 ac_status=$?
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); }; }; then
36880
36881 wx_cv_var_timezone=__timezone
36882
36883else
36884 echo "$as_me: failed program was:" >&5
36885sed 's/^/| /' conftest.$ac_ext >&5
36886
36887
36888 if test "$USE_DOS" = 0 ; then
36889 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36890echo "$as_me: WARNING: no timezone variable" >&2;}
36891 fi
36892
36893
36894fi
ac1cb8d3 36895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36896
36897
36898fi
ac1cb8d3 36899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36900
36901
36902fi
ac1cb8d3 36903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36904
36905
36906fi
36907echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36908echo "${ECHO_T}$wx_cv_var_timezone" >&6
36909
36910 if test "x$wx_cv_var_timezone" != x ; then
36911 cat >>confdefs.h <<_ACEOF
36912#define WX_TIMEZONE $wx_cv_var_timezone
36913_ACEOF
36914
36915 fi
36916
36917
36918for ac_func in localtime
36919do
36920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36921echo "$as_me:$LINENO: checking for $ac_func" >&5
36922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36923if eval "test \"\${$as_ac_var+set}\" = set"; then
36924 echo $ECHO_N "(cached) $ECHO_C" >&6
36925else
36926 cat >conftest.$ac_ext <<_ACEOF
36927/* confdefs.h. */
36928_ACEOF
36929cat confdefs.h >>conftest.$ac_ext
36930cat >>conftest.$ac_ext <<_ACEOF
36931/* end confdefs.h. */
ac1cb8d3
VS
36932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36934#define $ac_func innocuous_$ac_func
36935
a848cd7e
SC
36936/* System header to define __stub macros and hopefully few prototypes,
36937 which can conflict with char $ac_func (); below.
36938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36939 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36940
a848cd7e
SC
36941#ifdef __STDC__
36942# include <limits.h>
36943#else
36944# include <assert.h>
36945#endif
ac1cb8d3
VS
36946
36947#undef $ac_func
36948
a848cd7e
SC
36949/* Override any gcc2 internal prototype to avoid an error. */
36950#ifdef __cplusplus
36951extern "C"
36952{
36953#endif
36954/* We use char because int might match the return type of a gcc2
36955 builtin and then its argument prototype would still apply. */
36956char $ac_func ();
36957/* The GNU C library defines this for functions which it implements
36958 to always fail with ENOSYS. Some functions are actually named
36959 something starting with __ and the normal name is an alias. */
36960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36961choke me
36962#else
36963char (*f) () = $ac_func;
36964#endif
36965#ifdef __cplusplus
36966}
36967#endif
36968
36969int
36970main ()
36971{
36972return f != $ac_func;
36973 ;
36974 return 0;
36975}
36976_ACEOF
36977rm -f conftest.$ac_objext conftest$ac_exeext
36978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36979 (eval $ac_link) 2>conftest.er1
a848cd7e 36980 ac_status=$?
ac1cb8d3
VS
36981 grep -v '^ *+' conftest.er1 >conftest.err
36982 rm -f conftest.er1
36983 cat conftest.err >&5
a848cd7e
SC
36984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985 (exit $ac_status); } &&
9dd0f6c2 36986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36988 (eval $ac_try) 2>&5
36989 ac_status=$?
36990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991 (exit $ac_status); }; } &&
36992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994 (eval $ac_try) 2>&5
36995 ac_status=$?
36996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997 (exit $ac_status); }; }; then
36998 eval "$as_ac_var=yes"
36999else
37000 echo "$as_me: failed program was:" >&5
37001sed 's/^/| /' conftest.$ac_ext >&5
37002
37003eval "$as_ac_var=no"
37004fi
ac1cb8d3
VS
37005rm -f conftest.err conftest.$ac_objext \
37006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37007fi
37008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37010if test `eval echo '${'$as_ac_var'}'` = yes; then
37011 cat >>confdefs.h <<_ACEOF
37012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37013_ACEOF
37014
37015fi
37016done
37017
37018
37019 if test "$ac_cv_func_localtime" = "yes"; then
37020 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37021echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37022if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37023 echo $ECHO_N "(cached) $ECHO_C" >&6
37024else
37025
37026 cat >conftest.$ac_ext <<_ACEOF
37027/* confdefs.h. */
37028_ACEOF
37029cat confdefs.h >>conftest.$ac_ext
37030cat >>conftest.$ac_ext <<_ACEOF
37031/* end confdefs.h. */
37032
37033 #include <time.h>
37034
37035int
37036main ()
37037{
37038
37039 struct tm tm;
37040 tm.tm_gmtoff++;
37041
37042 ;
37043 return 0;
37044}
37045_ACEOF
37046rm -f conftest.$ac_objext
37047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37048 (eval $ac_compile) 2>conftest.er1
a848cd7e 37049 ac_status=$?
ac1cb8d3
VS
37050 grep -v '^ *+' conftest.er1 >conftest.err
37051 rm -f conftest.er1
37052 cat conftest.err >&5
a848cd7e
SC
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); } &&
9dd0f6c2 37055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37058 ac_status=$?
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; } &&
37061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37064 ac_status=$?
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; }; then
37067
37068 wx_cv_struct_tm_has_gmtoff=yes
37069
37070else
37071 echo "$as_me: failed program was:" >&5
37072sed 's/^/| /' conftest.$ac_ext >&5
37073
37074wx_cv_struct_tm_has_gmtoff=no
37075
37076fi
ac1cb8d3 37077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37078
37079fi
37080echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37081echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37082 fi
37083
37084 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37085 cat >>confdefs.h <<\_ACEOF
37086#define WX_GMTOFF_IN_TM 1
37087_ACEOF
37088
37089 fi
37090
37091
37092
37093for ac_func in gettimeofday ftime
37094do
37095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37096echo "$as_me:$LINENO: checking for $ac_func" >&5
37097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37098if eval "test \"\${$as_ac_var+set}\" = set"; then
37099 echo $ECHO_N "(cached) $ECHO_C" >&6
37100else
37101 cat >conftest.$ac_ext <<_ACEOF
37102/* confdefs.h. */
37103_ACEOF
37104cat confdefs.h >>conftest.$ac_ext
37105cat >>conftest.$ac_ext <<_ACEOF
37106/* end confdefs.h. */
ac1cb8d3
VS
37107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37109#define $ac_func innocuous_$ac_func
37110
a848cd7e
SC
37111/* System header to define __stub macros and hopefully few prototypes,
37112 which can conflict with char $ac_func (); below.
37113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37114 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37115
a848cd7e
SC
37116#ifdef __STDC__
37117# include <limits.h>
37118#else
37119# include <assert.h>
37120#endif
ac1cb8d3
VS
37121
37122#undef $ac_func
37123
a848cd7e
SC
37124/* Override any gcc2 internal prototype to avoid an error. */
37125#ifdef __cplusplus
37126extern "C"
37127{
37128#endif
37129/* We use char because int might match the return type of a gcc2
37130 builtin and then its argument prototype would still apply. */
37131char $ac_func ();
37132/* The GNU C library defines this for functions which it implements
37133 to always fail with ENOSYS. Some functions are actually named
37134 something starting with __ and the normal name is an alias. */
37135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37136choke me
37137#else
37138char (*f) () = $ac_func;
37139#endif
37140#ifdef __cplusplus
37141}
37142#endif
37143
37144int
37145main ()
37146{
37147return f != $ac_func;
37148 ;
37149 return 0;
37150}
37151_ACEOF
37152rm -f conftest.$ac_objext conftest$ac_exeext
37153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37154 (eval $ac_link) 2>conftest.er1
a848cd7e 37155 ac_status=$?
ac1cb8d3
VS
37156 grep -v '^ *+' conftest.er1 >conftest.err
37157 rm -f conftest.er1
37158 cat conftest.err >&5
a848cd7e
SC
37159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37160 (exit $ac_status); } &&
9dd0f6c2 37161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37163 (eval $ac_try) 2>&5
37164 ac_status=$?
37165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166 (exit $ac_status); }; } &&
37167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37169 (eval $ac_try) 2>&5
37170 ac_status=$?
37171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172 (exit $ac_status); }; }; then
37173 eval "$as_ac_var=yes"
37174else
37175 echo "$as_me: failed program was:" >&5
37176sed 's/^/| /' conftest.$ac_ext >&5
37177
37178eval "$as_ac_var=no"
37179fi
ac1cb8d3
VS
37180rm -f conftest.err conftest.$ac_objext \
37181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37182fi
37183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37185if test `eval echo '${'$as_ac_var'}'` = yes; then
37186 cat >>confdefs.h <<_ACEOF
37187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37188_ACEOF
37189 break
37190fi
37191done
37192
37193
37194 if test "$ac_cv_func_gettimeofday" = "yes"; then
37195 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37196echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37197if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37198 echo $ECHO_N "(cached) $ECHO_C" >&6
37199else
37200
37201
37202
37203 ac_ext=cc
37204ac_cpp='$CXXCPP $CPPFLAGS'
37205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37208
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 <sys/time.h>
37218 #include <unistd.h>
37219
37220int
37221main ()
37222{
37223
37224 struct timeval tv;
37225 gettimeofday(&tv, NULL);
37226
37227 ;
37228 return 0;
37229}
37230_ACEOF
37231rm -f conftest.$ac_objext
37232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37233 (eval $ac_compile) 2>conftest.er1
a848cd7e 37234 ac_status=$?
ac1cb8d3
VS
37235 grep -v '^ *+' conftest.er1 >conftest.err
37236 rm -f conftest.er1
37237 cat conftest.err >&5
a848cd7e
SC
37238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239 (exit $ac_status); } &&
9dd0f6c2 37240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37242 (eval $ac_try) 2>&5
37243 ac_status=$?
37244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37245 (exit $ac_status); }; } &&
37246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37248 (eval $ac_try) 2>&5
37249 ac_status=$?
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); }; }; then
37252 wx_cv_func_gettimeofday_has_2_args=yes
37253else
37254 echo "$as_me: failed program was:" >&5
37255sed 's/^/| /' conftest.$ac_ext >&5
37256
37257cat >conftest.$ac_ext <<_ACEOF
37258/* confdefs.h. */
37259_ACEOF
37260cat confdefs.h >>conftest.$ac_ext
37261cat >>conftest.$ac_ext <<_ACEOF
37262/* end confdefs.h. */
37263
37264 #include <sys/time.h>
37265 #include <unistd.h>
37266
37267int
37268main ()
37269{
37270
37271 struct timeval tv;
37272 gettimeofday(&tv);
37273
37274 ;
37275 return 0;
37276}
37277_ACEOF
37278rm -f conftest.$ac_objext
37279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37280 (eval $ac_compile) 2>conftest.er1
a848cd7e 37281 ac_status=$?
ac1cb8d3
VS
37282 grep -v '^ *+' conftest.er1 >conftest.err
37283 rm -f conftest.er1
37284 cat conftest.err >&5
a848cd7e
SC
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); } &&
9dd0f6c2 37287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37289 (eval $ac_try) 2>&5
37290 ac_status=$?
37291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292 (exit $ac_status); }; } &&
37293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37295 (eval $ac_try) 2>&5
37296 ac_status=$?
37297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37298 (exit $ac_status); }; }; then
37299 wx_cv_func_gettimeofday_has_2_args=no
37300else
37301 echo "$as_me: failed program was:" >&5
37302sed 's/^/| /' conftest.$ac_ext >&5
37303
37304
37305 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37306echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37307 wx_cv_func_gettimeofday_has_2_args=unknown
37308
37309
37310fi
ac1cb8d3 37311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37312
37313fi
ac1cb8d3 37314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37315 ac_ext=c
37316ac_cpp='$CPP $CPPFLAGS'
37317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37319ac_compiler_gnu=$ac_cv_c_compiler_gnu
37320
37321
37322fi
37323echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37324echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37325
37326 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37327 cat >>confdefs.h <<\_ACEOF
37328#define WX_GETTIMEOFDAY_NO_TZ 1
37329_ACEOF
37330
37331 fi
37332 fi
37333
37334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37335fi
37336
37337
37338if test "$wxUSE_SOCKETS" = "yes"; then
37339 if test "$wxUSE_MGL" = "1"; then
37340 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37341echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37342 wxUSE_SOCKETS="no"
37343 fi
37344fi
37345
37346if test "$wxUSE_SOCKETS" = "yes"; then
37347 if test "$TOOLKIT" != "MSW"; then
37348 echo "$as_me:$LINENO: checking for socket" >&5
37349echo $ECHO_N "checking for socket... $ECHO_C" >&6
37350if test "${ac_cv_func_socket+set}" = set; then
37351 echo $ECHO_N "(cached) $ECHO_C" >&6
37352else
37353 cat >conftest.$ac_ext <<_ACEOF
37354/* confdefs.h. */
37355_ACEOF
37356cat confdefs.h >>conftest.$ac_ext
37357cat >>conftest.$ac_ext <<_ACEOF
37358/* end confdefs.h. */
ac1cb8d3
VS
37359/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37361#define socket innocuous_socket
37362
a848cd7e
SC
37363/* System header to define __stub macros and hopefully few prototypes,
37364 which can conflict with char socket (); below.
37365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37366 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37367
a848cd7e
SC
37368#ifdef __STDC__
37369# include <limits.h>
37370#else
37371# include <assert.h>
37372#endif
ac1cb8d3
VS
37373
37374#undef socket
37375
a848cd7e
SC
37376/* Override any gcc2 internal prototype to avoid an error. */
37377#ifdef __cplusplus
37378extern "C"
37379{
37380#endif
37381/* We use char because int might match the return type of a gcc2
37382 builtin and then its argument prototype would still apply. */
37383char socket ();
37384/* The GNU C library defines this for functions which it implements
37385 to always fail with ENOSYS. Some functions are actually named
37386 something starting with __ and the normal name is an alias. */
37387#if defined (__stub_socket) || defined (__stub___socket)
37388choke me
37389#else
37390char (*f) () = socket;
37391#endif
37392#ifdef __cplusplus
37393}
37394#endif
37395
37396int
37397main ()
37398{
37399return f != socket;
37400 ;
37401 return 0;
37402}
37403_ACEOF
37404rm -f conftest.$ac_objext conftest$ac_exeext
37405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37406 (eval $ac_link) 2>conftest.er1
a848cd7e 37407 ac_status=$?
ac1cb8d3
VS
37408 grep -v '^ *+' conftest.er1 >conftest.err
37409 rm -f conftest.er1
37410 cat conftest.err >&5
a848cd7e
SC
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); } &&
9dd0f6c2 37413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37416 ac_status=$?
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; } &&
37419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; }; then
37425 ac_cv_func_socket=yes
37426else
37427 echo "$as_me: failed program was:" >&5
37428sed 's/^/| /' conftest.$ac_ext >&5
37429
37430ac_cv_func_socket=no
37431fi
ac1cb8d3
VS
37432rm -f conftest.err conftest.$ac_objext \
37433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37434fi
37435echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37436echo "${ECHO_T}$ac_cv_func_socket" >&6
37437if test $ac_cv_func_socket = yes; then
37438 :
37439else
37440
37441 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37442echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37443if test "${ac_cv_lib_socket_socket+set}" = set; then
37444 echo $ECHO_N "(cached) $ECHO_C" >&6
37445else
37446 ac_check_lib_save_LIBS=$LIBS
37447LIBS="-lsocket $LIBS"
37448cat >conftest.$ac_ext <<_ACEOF
37449/* confdefs.h. */
37450_ACEOF
37451cat confdefs.h >>conftest.$ac_ext
37452cat >>conftest.$ac_ext <<_ACEOF
37453/* end confdefs.h. */
37454
37455/* Override any gcc2 internal prototype to avoid an error. */
37456#ifdef __cplusplus
37457extern "C"
37458#endif
37459/* We use char because int might match the return type of a gcc2
37460 builtin and then its argument prototype would still apply. */
37461char socket ();
37462int
37463main ()
37464{
37465socket ();
37466 ;
37467 return 0;
37468}
37469_ACEOF
37470rm -f conftest.$ac_objext conftest$ac_exeext
37471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37472 (eval $ac_link) 2>conftest.er1
a848cd7e 37473 ac_status=$?
ac1cb8d3
VS
37474 grep -v '^ *+' conftest.er1 >conftest.err
37475 rm -f conftest.er1
37476 cat conftest.err >&5
a848cd7e
SC
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); } &&
9dd0f6c2 37479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37482 ac_status=$?
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; } &&
37485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37487 (eval $ac_try) 2>&5
37488 ac_status=$?
37489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490 (exit $ac_status); }; }; then
37491 ac_cv_lib_socket_socket=yes
37492else
37493 echo "$as_me: failed program was:" >&5
37494sed 's/^/| /' conftest.$ac_ext >&5
37495
37496ac_cv_lib_socket_socket=no
37497fi
ac1cb8d3
VS
37498rm -f conftest.err conftest.$ac_objext \
37499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37500LIBS=$ac_check_lib_save_LIBS
37501fi
37502echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37503echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37504if test $ac_cv_lib_socket_socket = yes; then
37505 if test "$INET_LINK" != " -lsocket"; then
37506 INET_LINK="$INET_LINK -lsocket"
37507 fi
37508else
37509
37510 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37511echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37512 wxUSE_SOCKETS=no
37513
37514
37515fi
37516
37517
37518
37519fi
37520
37521 fi
37522fi
37523
37524if test "$wxUSE_SOCKETS" = "yes" ; then
37525 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37526 ac_ext=cc
37527ac_cpp='$CXXCPP $CPPFLAGS'
37528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37531
37532 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37533echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37534if test "${wx_cv_type_getsockname3+set}" = set; then
37535 echo $ECHO_N "(cached) $ECHO_C" >&6
37536else
37537
37538 cat >conftest.$ac_ext <<_ACEOF
37539/* confdefs.h. */
37540_ACEOF
37541cat confdefs.h >>conftest.$ac_ext
37542cat >>conftest.$ac_ext <<_ACEOF
37543/* end confdefs.h. */
37544
37545 #include <sys/types.h>
37546 #include <sys/socket.h>
37547
37548int
37549main ()
37550{
37551
37552 socklen_t len;
37553 getsockname(0, 0, &len);
37554
37555 ;
37556 return 0;
37557}
37558_ACEOF
37559rm -f conftest.$ac_objext
37560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37561 (eval $ac_compile) 2>conftest.er1
a848cd7e 37562 ac_status=$?
ac1cb8d3
VS
37563 grep -v '^ *+' conftest.er1 >conftest.err
37564 rm -f conftest.er1
37565 cat conftest.err >&5
a848cd7e
SC
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); } &&
9dd0f6c2 37568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37570 (eval $ac_try) 2>&5
37571 ac_status=$?
37572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 (exit $ac_status); }; } &&
37574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37576 (eval $ac_try) 2>&5
37577 ac_status=$?
37578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579 (exit $ac_status); }; }; then
37580 wx_cv_type_getsockname3=socklen_t
37581else
37582 echo "$as_me: failed program was:" >&5
37583sed 's/^/| /' conftest.$ac_ext >&5
37584
37585
37586 CFLAGS_OLD="$CFLAGS"
37587 if test "$GCC" = yes ; then
37588 CFLAGS="$CFLAGS -Werror"
37589 fi
37590
37591 cat >conftest.$ac_ext <<_ACEOF
37592/* confdefs.h. */
37593_ACEOF
37594cat confdefs.h >>conftest.$ac_ext
37595cat >>conftest.$ac_ext <<_ACEOF
37596/* end confdefs.h. */
37597
37598 #include <sys/types.h>
37599 #include <sys/socket.h>
37600
37601int
37602main ()
37603{
37604
37605 size_t len;
37606 getsockname(0, 0, &len);
37607
37608 ;
37609 return 0;
37610}
37611_ACEOF
37612rm -f conftest.$ac_objext
37613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37614 (eval $ac_compile) 2>conftest.er1
a848cd7e 37615 ac_status=$?
ac1cb8d3
VS
37616 grep -v '^ *+' conftest.er1 >conftest.err
37617 rm -f conftest.er1
37618 cat conftest.err >&5
a848cd7e
SC
37619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620 (exit $ac_status); } &&
9dd0f6c2 37621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37623 (eval $ac_try) 2>&5
37624 ac_status=$?
37625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626 (exit $ac_status); }; } &&
37627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37629 (eval $ac_try) 2>&5
37630 ac_status=$?
37631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632 (exit $ac_status); }; }; then
37633 wx_cv_type_getsockname3=size_t
37634else
37635 echo "$as_me: failed program was:" >&5
37636sed 's/^/| /' conftest.$ac_ext >&5
37637
37638cat >conftest.$ac_ext <<_ACEOF
37639/* confdefs.h. */
37640_ACEOF
37641cat confdefs.h >>conftest.$ac_ext
37642cat >>conftest.$ac_ext <<_ACEOF
37643/* end confdefs.h. */
37644
37645 #include <sys/types.h>
37646 #include <sys/socket.h>
37647
37648int
37649main ()
37650{
37651
37652 int len;
37653 getsockname(0, 0, &len);
37654
37655 ;
37656 return 0;
37657}
37658_ACEOF
37659rm -f conftest.$ac_objext
37660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37661 (eval $ac_compile) 2>conftest.er1
a848cd7e 37662 ac_status=$?
ac1cb8d3
VS
37663 grep -v '^ *+' conftest.er1 >conftest.err
37664 rm -f conftest.er1
37665 cat conftest.err >&5
a848cd7e
SC
37666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667 (exit $ac_status); } &&
9dd0f6c2 37668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37670 (eval $ac_try) 2>&5
37671 ac_status=$?
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); }; } &&
37674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37677 ac_status=$?
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; }; then
37680 wx_cv_type_getsockname3=int
37681else
37682 echo "$as_me: failed program was:" >&5
37683sed 's/^/| /' conftest.$ac_ext >&5
37684
37685wx_cv_type_getsockname3=unknown
37686
37687fi
ac1cb8d3 37688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37689
37690fi
ac1cb8d3 37691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37692
37693 CFLAGS="$CFLAGS_OLD"
37694
37695
37696fi
ac1cb8d3 37697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37698
37699fi
37700echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37701echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37702
37703 if test "$wx_cv_type_getsockname3" = "unknown"; then
37704 wxUSE_SOCKETS=no
37705 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37706echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37707 else
37708 cat >>confdefs.h <<_ACEOF
37709#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37710_ACEOF
37711
37712 fi
37713 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37714echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37715if test "${wx_cv_type_getsockopt5+set}" = set; then
37716 echo $ECHO_N "(cached) $ECHO_C" >&6
37717else
37718
37719 cat >conftest.$ac_ext <<_ACEOF
37720/* confdefs.h. */
37721_ACEOF
37722cat confdefs.h >>conftest.$ac_ext
37723cat >>conftest.$ac_ext <<_ACEOF
37724/* end confdefs.h. */
37725
37726 #include <sys/types.h>
37727 #include <sys/socket.h>
37728
37729int
37730main ()
37731{
37732
37733 socklen_t len;
37734 getsockopt(0, 0, 0, 0, &len);
37735
37736 ;
37737 return 0;
37738}
37739_ACEOF
37740rm -f conftest.$ac_objext
37741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37742 (eval $ac_compile) 2>conftest.er1
37743 ac_status=$?
37744 grep -v '^ *+' conftest.er1 >conftest.err
37745 rm -f conftest.er1
37746 cat conftest.err >&5
37747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748 (exit $ac_status); } &&
9dd0f6c2 37749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751 (eval $ac_try) 2>&5
37752 ac_status=$?
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); }; } &&
37755 { ac_try='test -s conftest.$ac_objext'
37756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37757 (eval $ac_try) 2>&5
37758 ac_status=$?
37759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760 (exit $ac_status); }; }; then
37761 wx_cv_type_getsockopt5=socklen_t
37762else
37763 echo "$as_me: failed program was:" >&5
37764sed 's/^/| /' conftest.$ac_ext >&5
37765
37766
37767 CFLAGS_OLD="$CFLAGS"
37768 if test "$GCC" = yes ; then
37769 CFLAGS="$CFLAGS -Werror"
37770 fi
37771
37772 cat >conftest.$ac_ext <<_ACEOF
37773/* confdefs.h. */
37774_ACEOF
37775cat confdefs.h >>conftest.$ac_ext
37776cat >>conftest.$ac_ext <<_ACEOF
37777/* end confdefs.h. */
37778
37779 #include <sys/types.h>
37780 #include <sys/socket.h>
37781
37782int
37783main ()
37784{
37785
37786 size_t len;
37787 getsockopt(0, 0, 0, 0, &len);
37788
37789 ;
37790 return 0;
37791}
37792_ACEOF
37793rm -f conftest.$ac_objext
37794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37795 (eval $ac_compile) 2>conftest.er1
37796 ac_status=$?
37797 grep -v '^ *+' conftest.er1 >conftest.err
37798 rm -f conftest.er1
37799 cat conftest.err >&5
37800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37801 (exit $ac_status); } &&
9dd0f6c2 37802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37804 (eval $ac_try) 2>&5
37805 ac_status=$?
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); }; } &&
37808 { ac_try='test -s conftest.$ac_objext'
37809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37810 (eval $ac_try) 2>&5
37811 ac_status=$?
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); }; }; then
37814 wx_cv_type_getsockopt5=size_t
37815else
37816 echo "$as_me: failed program was:" >&5
37817sed 's/^/| /' conftest.$ac_ext >&5
37818
37819cat >conftest.$ac_ext <<_ACEOF
37820/* confdefs.h. */
37821_ACEOF
37822cat confdefs.h >>conftest.$ac_ext
37823cat >>conftest.$ac_ext <<_ACEOF
37824/* end confdefs.h. */
37825
37826 #include <sys/types.h>
37827 #include <sys/socket.h>
37828
37829int
37830main ()
37831{
37832
37833 int len;
37834 getsockopt(0, 0, 0, 0, &len);
37835
37836 ;
37837 return 0;
37838}
37839_ACEOF
37840rm -f conftest.$ac_objext
37841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37842 (eval $ac_compile) 2>conftest.er1
37843 ac_status=$?
37844 grep -v '^ *+' conftest.er1 >conftest.err
37845 rm -f conftest.er1
37846 cat conftest.err >&5
37847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37848 (exit $ac_status); } &&
9dd0f6c2 37849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851 (eval $ac_try) 2>&5
37852 ac_status=$?
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); }; } &&
37855 { ac_try='test -s conftest.$ac_objext'
37856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857 (eval $ac_try) 2>&5
37858 ac_status=$?
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); }; }; then
37861 wx_cv_type_getsockopt5=int
37862else
37863 echo "$as_me: failed program was:" >&5
37864sed 's/^/| /' conftest.$ac_ext >&5
37865
37866wx_cv_type_getsockopt5=unknown
37867
37868fi
37869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37870
37871fi
37872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37873
37874 CFLAGS="$CFLAGS_OLD"
37875
37876
37877fi
37878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37879
37880fi
37881echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37882echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37883
37884 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37885 wxUSE_SOCKETS=no
37886 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37887echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37888 else
37889 cat >>confdefs.h <<_ACEOF
37890#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37891_ACEOF
37892
37893 fi
4d4ff94c
VZ
37894 ac_ext=c
37895ac_cpp='$CPP $CPPFLAGS'
37896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37898ac_compiler_gnu=$ac_cv_c_compiler_gnu
37899
a848cd7e
SC
37900 fi
37901fi
37902
37903if test "$wxUSE_SOCKETS" = "yes" ; then
37904 cat >>confdefs.h <<\_ACEOF
37905#define wxUSE_SOCKETS 1
37906_ACEOF
37907
37908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37909fi
37910
37911if test "$wxUSE_PROTOCOL" = "yes"; then
37912 if test "$wxUSE_SOCKETS" != "yes"; then
37913 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37914echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37915 wxUSE_PROTOCOL=no
37916 fi
37917fi
37918
37919if test "$wxUSE_PROTOCOL" = "yes"; then
37920 cat >>confdefs.h <<\_ACEOF
37921#define wxUSE_PROTOCOL 1
37922_ACEOF
37923
37924
37925 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37926 cat >>confdefs.h <<\_ACEOF
37927#define wxUSE_PROTOCOL_HTTP 1
37928_ACEOF
37929
37930 fi
37931 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37932 cat >>confdefs.h <<\_ACEOF
37933#define wxUSE_PROTOCOL_FTP 1
37934_ACEOF
37935
37936 fi
37937 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37938 cat >>confdefs.h <<\_ACEOF
37939#define wxUSE_PROTOCOL_FILE 1
37940_ACEOF
37941
37942 fi
37943else
37944 if test "$wxUSE_FS_INET" = "yes"; then
37945 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37946echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37947 wxUSE_FS_INET="no"
37948 fi
37949fi
37950
37951if test "$wxUSE_URL" = "yes"; then
37952 if test "$wxUSE_PROTOCOL" != "yes"; then
37953 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37954echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37955 wxUSE_URL=no
37956 fi
37957 if test "$wxUSE_URL" = "yes"; then
37958 cat >>confdefs.h <<\_ACEOF
37959#define wxUSE_URL 1
37960_ACEOF
37961
37962 fi
37963fi
37964
37965if test "$wxUSE_FS_INET" = "yes"; then
37966 cat >>confdefs.h <<\_ACEOF
37967#define wxUSE_FS_INET 1
37968_ACEOF
37969
37970fi
37971
37972
37973if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37974 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37975
4cb1d3da 37976 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37977
37978for ac_header in linux/joystick.h
37979do
37980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37981if eval "test \"\${$as_ac_Header+set}\" = set"; then
37982 echo "$as_me:$LINENO: checking for $ac_header" >&5
37983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37984if eval "test \"\${$as_ac_Header+set}\" = set"; then
37985 echo $ECHO_N "(cached) $ECHO_C" >&6
37986fi
37987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37989else
37990 # Is the header compilable?
37991echo "$as_me:$LINENO: checking $ac_header usability" >&5
37992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37993cat >conftest.$ac_ext <<_ACEOF
37994/* confdefs.h. */
37995_ACEOF
37996cat confdefs.h >>conftest.$ac_ext
37997cat >>conftest.$ac_ext <<_ACEOF
37998/* end confdefs.h. */
37999$ac_includes_default
38000#include <$ac_header>
38001_ACEOF
38002rm -f conftest.$ac_objext
38003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38004 (eval $ac_compile) 2>conftest.er1
a848cd7e 38005 ac_status=$?
ac1cb8d3
VS
38006 grep -v '^ *+' conftest.er1 >conftest.err
38007 rm -f conftest.er1
38008 cat conftest.err >&5
a848cd7e
SC
38009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010 (exit $ac_status); } &&
9dd0f6c2 38011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38013 (eval $ac_try) 2>&5
38014 ac_status=$?
38015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38016 (exit $ac_status); }; } &&
38017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38019 (eval $ac_try) 2>&5
38020 ac_status=$?
38021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38022 (exit $ac_status); }; }; then
38023 ac_header_compiler=yes
38024else
38025 echo "$as_me: failed program was:" >&5
38026sed 's/^/| /' conftest.$ac_ext >&5
38027
38028ac_header_compiler=no
38029fi
ac1cb8d3 38030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38032echo "${ECHO_T}$ac_header_compiler" >&6
38033
38034# Is the header present?
38035echo "$as_me:$LINENO: checking $ac_header presence" >&5
38036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38037cat >conftest.$ac_ext <<_ACEOF
38038/* confdefs.h. */
38039_ACEOF
38040cat confdefs.h >>conftest.$ac_ext
38041cat >>conftest.$ac_ext <<_ACEOF
38042/* end confdefs.h. */
38043#include <$ac_header>
38044_ACEOF
38045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38047 ac_status=$?
38048 grep -v '^ *+' conftest.er1 >conftest.err
38049 rm -f conftest.er1
38050 cat conftest.err >&5
38051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052 (exit $ac_status); } >/dev/null; then
38053 if test -s conftest.err; then
38054 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38056 else
38057 ac_cpp_err=
38058 fi
38059else
38060 ac_cpp_err=yes
38061fi
38062if test -z "$ac_cpp_err"; then
38063 ac_header_preproc=yes
38064else
38065 echo "$as_me: failed program was:" >&5
38066sed 's/^/| /' conftest.$ac_ext >&5
38067
38068 ac_header_preproc=no
38069fi
38070rm -f conftest.err conftest.$ac_ext
38071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38072echo "${ECHO_T}$ac_header_preproc" >&6
38073
38074# So? What about this header?
ac1cb8d3
VS
38075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38076 yes:no: )
a848cd7e
SC
38077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38081 ac_header_preproc=yes
a848cd7e 38082 ;;
ac1cb8d3 38083 no:yes:* )
a848cd7e
SC
38084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38096 (
38097 cat <<\_ASBOX
ac1cb8d3
VS
38098## ----------------------------------------- ##
38099## Report this to wx-dev@lists.wxwidgets.org ##
38100## ----------------------------------------- ##
a848cd7e
SC
38101_ASBOX
38102 ) |
38103 sed "s/^/$as_me: WARNING: /" >&2
38104 ;;
38105esac
38106echo "$as_me:$LINENO: checking for $ac_header" >&5
38107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38108if eval "test \"\${$as_ac_Header+set}\" = set"; then
38109 echo $ECHO_N "(cached) $ECHO_C" >&6
38110else
ac1cb8d3 38111 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38112fi
38113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38115
38116fi
38117if test `eval echo '${'$as_ac_Header'}'` = yes; then
38118 cat >>confdefs.h <<_ACEOF
38119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38120_ACEOF
38121
38122fi
38123
38124done
38125
38126 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38127 wxUSE_JOYSTICK=no
38128 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38129echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38130 fi
4cb1d3da
RN
38131 else
38132 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38133 wxUSE_JOYSTICK=no
38134 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38135echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38136 fi
a848cd7e 38137 fi
a848cd7e 38138
4cb1d3da
RN
38139
38140 if test "$wxUSE_JOYSTICK" = "yes"; then
38141 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38142#define wxUSE_JOYSTICK 1
38143_ACEOF
38144
4cb1d3da
RN
38145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38146 fi
a848cd7e
SC
38147 fi
38148fi
38149
38150
38151
38152if test "$wxUSE_FONTMAP" = "yes" ; then
38153 cat >>confdefs.h <<\_ACEOF
38154#define wxUSE_FONTMAP 1
38155_ACEOF
38156
38157fi
38158
38159if test "$wxUSE_UNICODE" = "yes" ; then
38160 cat >>confdefs.h <<\_ACEOF
38161#define wxUSE_UNICODE 1
38162_ACEOF
38163
38164
38165 if test "$USE_WIN32" != 1; then
38166 wxUSE_UNICODE_MSLU=no
38167 fi
38168
38169 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38170 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38171echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38172if test "${ac_cv_lib_unicows_main+set}" = set; then
38173 echo $ECHO_N "(cached) $ECHO_C" >&6
38174else
38175 ac_check_lib_save_LIBS=$LIBS
38176LIBS="-lunicows $LIBS"
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
38184
38185int
38186main ()
38187{
38188main ();
38189 ;
38190 return 0;
38191}
38192_ACEOF
38193rm -f conftest.$ac_objext conftest$ac_exeext
38194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38195 (eval $ac_link) 2>conftest.er1
a848cd7e 38196 ac_status=$?
ac1cb8d3
VS
38197 grep -v '^ *+' conftest.er1 >conftest.err
38198 rm -f conftest.er1
38199 cat conftest.err >&5
a848cd7e
SC
38200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201 (exit $ac_status); } &&
9dd0f6c2 38202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204 (eval $ac_try) 2>&5
38205 ac_status=$?
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); }; } &&
38208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210 (eval $ac_try) 2>&5
38211 ac_status=$?
38212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); }; }; then
38214 ac_cv_lib_unicows_main=yes
38215else
38216 echo "$as_me: failed program was:" >&5
38217sed 's/^/| /' conftest.$ac_ext >&5
38218
38219ac_cv_lib_unicows_main=no
38220fi
ac1cb8d3
VS
38221rm -f conftest.err conftest.$ac_objext \
38222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38223LIBS=$ac_check_lib_save_LIBS
38224fi
38225echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38226echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38227if test $ac_cv_lib_unicows_main = yes; then
38228
38229 cat >>confdefs.h <<\_ACEOF
38230#define wxUSE_UNICODE_MSLU 1
38231_ACEOF
38232
38233
38234else
38235
38236 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38237 Applications will only run on Windows NT/2000/XP!" >&5
38238echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38239 Applications will only run on Windows NT/2000/XP!" >&2;}
38240 wxUSE_UNICODE_MSLU=no
38241
38242fi
38243
38244 fi
38245fi
38246
38247if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38248 cat >>confdefs.h <<\_ACEOF
38249#define wxUSE_EXPERIMENTAL_PRINTF 1
38250_ACEOF
38251
38252fi
38253
38254
38255if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38256 cat >>confdefs.h <<\_ACEOF
38257#define wxUSE_POSTSCRIPT 1
38258_ACEOF
38259
38260fi
38261
38262cat >>confdefs.h <<\_ACEOF
38263#define wxUSE_AFM_FOR_POSTSCRIPT 1
38264_ACEOF
38265
38266
38267cat >>confdefs.h <<\_ACEOF
38268#define wxUSE_NORMALIZED_PS_FONTS 1
38269_ACEOF
38270
38271
38272
38273if test "$wxUSE_CONSTRAINTS" = "yes"; then
38274 cat >>confdefs.h <<\_ACEOF
38275#define wxUSE_CONSTRAINTS 1
38276_ACEOF
38277
38278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38279fi
38280
8a7b1113
VZ
38281if test "$wxUSE_MDI" = "yes"; then
38282 cat >>confdefs.h <<\_ACEOF
38283#define wxUSE_MDI 1
38284_ACEOF
38285
38286
38287 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38288 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38289#define wxUSE_MDI_ARCHITECTURE 1
38290_ACEOF
38291
8a7b1113
VZ
38292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38293 fi
a848cd7e
SC
38294fi
38295
38296if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38297 cat >>confdefs.h <<\_ACEOF
38298#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38299_ACEOF
38300
38301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38302 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38304 fi
38305fi
38306
38307if test "$wxUSE_HELP" = "yes"; then
38308 cat >>confdefs.h <<\_ACEOF
38309#define wxUSE_HELP 1
38310_ACEOF
38311
38312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38313
38314 if test "$wxUSE_MSW" = 1; then
38315 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38316 cat >>confdefs.h <<\_ACEOF
38317#define wxUSE_MS_HTML_HELP 1
38318_ACEOF
38319
38320 fi
38321 fi
38322
38323 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38324 if test "$wxUSE_HTML" = "yes"; then
38325 cat >>confdefs.h <<\_ACEOF
38326#define wxUSE_WXHTML_HELP 1
38327_ACEOF
38328
38329 else
38330 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38331echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38332 wxUSE_WXHTML_HELP=no
38333 fi
38334 fi
38335fi
38336
38337if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38338 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38339 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38340echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38341 else
38342 cat >>confdefs.h <<\_ACEOF
38343#define wxUSE_PRINTING_ARCHITECTURE 1
38344_ACEOF
38345
38346 fi
38347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38348fi
38349
38350if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38351 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38352echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38353 { (exit 1); exit 1; }; }
38354fi
38355
38356
38357if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38358 -o "$wxUSE_CLIPBOARD" = "yes" \
38359 -o "$wxUSE_OLE" = "yes" \
38360 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38361
38362for ac_header in ole2.h
38363do
38364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38365if eval "test \"\${$as_ac_Header+set}\" = set"; then
38366 echo "$as_me:$LINENO: checking for $ac_header" >&5
38367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38368if eval "test \"\${$as_ac_Header+set}\" = set"; then
38369 echo $ECHO_N "(cached) $ECHO_C" >&6
38370fi
38371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38373else
38374 # Is the header compilable?
38375echo "$as_me:$LINENO: checking $ac_header usability" >&5
38376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38377cat >conftest.$ac_ext <<_ACEOF
38378/* confdefs.h. */
38379_ACEOF
38380cat confdefs.h >>conftest.$ac_ext
38381cat >>conftest.$ac_ext <<_ACEOF
38382/* end confdefs.h. */
38383$ac_includes_default
38384#include <$ac_header>
38385_ACEOF
38386rm -f conftest.$ac_objext
38387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38388 (eval $ac_compile) 2>conftest.er1
a848cd7e 38389 ac_status=$?
ac1cb8d3
VS
38390 grep -v '^ *+' conftest.er1 >conftest.err
38391 rm -f conftest.er1
38392 cat conftest.err >&5
a848cd7e
SC
38393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38394 (exit $ac_status); } &&
9dd0f6c2 38395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397 (eval $ac_try) 2>&5
38398 ac_status=$?
38399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); }; } &&
38401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38403 (eval $ac_try) 2>&5
38404 ac_status=$?
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); }; }; then
38407 ac_header_compiler=yes
38408else
38409 echo "$as_me: failed program was:" >&5
38410sed 's/^/| /' conftest.$ac_ext >&5
38411
38412ac_header_compiler=no
38413fi
ac1cb8d3 38414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38416echo "${ECHO_T}$ac_header_compiler" >&6
38417
38418# Is the header present?
38419echo "$as_me:$LINENO: checking $ac_header presence" >&5
38420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38421cat >conftest.$ac_ext <<_ACEOF
38422/* confdefs.h. */
38423_ACEOF
38424cat confdefs.h >>conftest.$ac_ext
38425cat >>conftest.$ac_ext <<_ACEOF
38426/* end confdefs.h. */
38427#include <$ac_header>
38428_ACEOF
38429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38431 ac_status=$?
38432 grep -v '^ *+' conftest.er1 >conftest.err
38433 rm -f conftest.er1
38434 cat conftest.err >&5
38435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 (exit $ac_status); } >/dev/null; then
38437 if test -s conftest.err; then
38438 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38440 else
38441 ac_cpp_err=
38442 fi
38443else
38444 ac_cpp_err=yes
38445fi
38446if test -z "$ac_cpp_err"; then
38447 ac_header_preproc=yes
38448else
38449 echo "$as_me: failed program was:" >&5
38450sed 's/^/| /' conftest.$ac_ext >&5
38451
38452 ac_header_preproc=no
38453fi
38454rm -f conftest.err conftest.$ac_ext
38455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38456echo "${ECHO_T}$ac_header_preproc" >&6
38457
38458# So? What about this header?
ac1cb8d3
VS
38459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38460 yes:no: )
a848cd7e
SC
38461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38465 ac_header_preproc=yes
a848cd7e 38466 ;;
ac1cb8d3 38467 no:yes:* )
a848cd7e
SC
38468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38480 (
38481 cat <<\_ASBOX
ac1cb8d3
VS
38482## ----------------------------------------- ##
38483## Report this to wx-dev@lists.wxwidgets.org ##
38484## ----------------------------------------- ##
a848cd7e
SC
38485_ASBOX
38486 ) |
38487 sed "s/^/$as_me: WARNING: /" >&2
38488 ;;
38489esac
38490echo "$as_me:$LINENO: checking for $ac_header" >&5
38491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38492if eval "test \"\${$as_ac_Header+set}\" = set"; then
38493 echo $ECHO_N "(cached) $ECHO_C" >&6
38494else
ac1cb8d3 38495 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38496fi
38497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38499
38500fi
38501if test `eval echo '${'$as_ac_Header'}'` = yes; then
38502 cat >>confdefs.h <<_ACEOF
38503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38504_ACEOF
38505
38506fi
38507
38508done
38509
38510
38511 if test "$ac_cv_header_ole2_h" = "yes" ; then
38512 if test "$GCC" = yes ; then
38513
38514
38515 ac_ext=cc
38516ac_cpp='$CXXCPP $CPPFLAGS'
38517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38520
38521
38522 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38523echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38524 cat >conftest.$ac_ext <<_ACEOF
38525/* confdefs.h. */
38526_ACEOF
38527cat confdefs.h >>conftest.$ac_ext
38528cat >>conftest.$ac_ext <<_ACEOF
38529/* end confdefs.h. */
38530#include <windows.h>
38531 #include <ole2.h>
38532int
38533main ()
38534{
38535
38536 ;
38537 return 0;
38538}
38539_ACEOF
38540rm -f conftest.$ac_objext
38541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38542 (eval $ac_compile) 2>conftest.er1
a848cd7e 38543 ac_status=$?
ac1cb8d3
VS
38544 grep -v '^ *+' conftest.er1 >conftest.err
38545 rm -f conftest.er1
38546 cat conftest.err >&5
a848cd7e
SC
38547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38548 (exit $ac_status); } &&
9dd0f6c2 38549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38551 (eval $ac_try) 2>&5
38552 ac_status=$?
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); }; } &&
38555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38557 (eval $ac_try) 2>&5
38558 ac_status=$?
38559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560 (exit $ac_status); }; }; then
38561 echo "$as_me:$LINENO: result: no" >&5
38562echo "${ECHO_T}no" >&6
38563else
38564 echo "$as_me: failed program was:" >&5
38565sed 's/^/| /' conftest.$ac_ext >&5
38566
38567echo "$as_me:$LINENO: result: yes" >&5
38568echo "${ECHO_T}yes" >&6
38569 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38570fi
ac1cb8d3 38571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38572 ac_ext=c
38573ac_cpp='$CPP $CPPFLAGS'
38574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38576ac_compiler_gnu=$ac_cv_c_compiler_gnu
38577
a848cd7e
SC
38578 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38579 if test "$wxUSE_OLE" = "yes" ; then
38580 cat >>confdefs.h <<\_ACEOF
38581#define wxUSE_OLE 1
38582_ACEOF
38583
0b78747f 38584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38585 fi
38586 fi
38587
38588 if test "$wxUSE_DATAOBJ" = "yes" ; then
38589 cat >>confdefs.h <<\_ACEOF
38590#define wxUSE_DATAOBJ 1
38591_ACEOF
38592
38593 fi
38594 else
38595 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38596echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38597
38598 wxUSE_CLIPBOARD=no
38599 wxUSE_DRAG_AND_DROP=no
38600 wxUSE_DATAOBJ=no
38601 wxUSE_OLE=no
38602 fi
38603
38604 if test "$wxUSE_METAFILE" = "yes"; then
38605 cat >>confdefs.h <<\_ACEOF
38606#define wxUSE_METAFILE 1
38607_ACEOF
38608
38609
38610 cat >>confdefs.h <<\_ACEOF
38611#define wxUSE_ENH_METAFILE 1
38612_ACEOF
38613
38614 fi
38615fi
38616
38617if test "$wxUSE_IPC" = "yes"; then
0b78747f 38618 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38619 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38620echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38621 wxUSE_IPC=no
a848cd7e
SC
38622 fi
38623
0b78747f
MW
38624 if test "$wxUSE_IPC" = "yes"; then
38625 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38626#define wxUSE_IPC 1
38627_ACEOF
38628
0b78747f
MW
38629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38630 fi
a848cd7e
SC
38631fi
38632
38633if test "$wxUSE_CLIPBOARD" = "yes"; then
38634 if test "$wxUSE_MGL" = 1; then
38635 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38636echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38637 wxUSE_CLIPBOARD=no
38638 fi
38639
38640 if test "$wxUSE_CLIPBOARD" = "yes"; then
38641 cat >>confdefs.h <<\_ACEOF
38642#define wxUSE_CLIPBOARD 1
38643_ACEOF
38644
38645
38646 cat >>confdefs.h <<\_ACEOF
38647#define wxUSE_DATAOBJ 1
38648_ACEOF
38649
38650 fi
38651fi
38652
38653if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38654 if test "$wxUSE_GTK" = 1; then
38655 if test "$WXGTK12" != 1; then
38656 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38657echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38658 wxUSE_DRAG_AND_DROP=no
38659 fi
38660 fi
38661
38662 if test "$wxUSE_MOTIF" = 1; then
38663 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38664echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38665 wxUSE_DRAG_AND_DROP=no
38666 fi
38667
38668 if test "$wxUSE_X11" = 1; then
38669 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38670echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38671 wxUSE_DRAG_AND_DROP=no
38672 fi
38673
38674 if test "$wxUSE_MGL" = 1; then
38675 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38676echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38677 wxUSE_DRAG_AND_DROP=no
38678 fi
38679
38680 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38681 cat >>confdefs.h <<\_ACEOF
38682#define wxUSE_DRAG_AND_DROP 1
38683_ACEOF
38684
38685 fi
38686
38687fi
38688
38689if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38691fi
38692
38693if test "$wxUSE_SPLINES" = "yes" ; then
38694 cat >>confdefs.h <<\_ACEOF
38695#define wxUSE_SPLINES 1
38696_ACEOF
38697
38698fi
38699
38700
38701USES_CONTROLS=0
38702if test "$wxUSE_CONTROLS" = "yes"; then
38703 USES_CONTROLS=1
38704fi
38705
38706if test "$wxUSE_ACCEL" = "yes"; then
38707 cat >>confdefs.h <<\_ACEOF
38708#define wxUSE_ACCEL 1
38709_ACEOF
38710
38711 USES_CONTROLS=1
38712fi
38713
38714if test "$wxUSE_BUTTON" = "yes"; then
38715 cat >>confdefs.h <<\_ACEOF
38716#define wxUSE_BUTTON 1
38717_ACEOF
38718
38719 USES_CONTROLS=1
38720fi
38721
38722if test "$wxUSE_BMPBUTTON" = "yes"; then
38723 cat >>confdefs.h <<\_ACEOF
38724#define wxUSE_BMPBUTTON 1
38725_ACEOF
38726
38727 USES_CONTROLS=1
38728fi
38729
38730if test "$wxUSE_CALCTRL" = "yes"; then
38731 cat >>confdefs.h <<\_ACEOF
38732#define wxUSE_CALENDARCTRL 1
38733_ACEOF
38734
38735 USES_CONTROLS=1
38736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38737fi
38738
38739if test "$wxUSE_CARET" = "yes"; then
38740 cat >>confdefs.h <<\_ACEOF
38741#define wxUSE_CARET 1
38742_ACEOF
38743
38744 USES_CONTROLS=1
38745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38746fi
38747
38748if test "$wxUSE_COMBOBOX" = "yes"; then
38749 cat >>confdefs.h <<\_ACEOF
38750#define wxUSE_COMBOBOX 1
38751_ACEOF
38752
38753 USES_CONTROLS=1
38754fi
38755
38756if test "$wxUSE_CHOICE" = "yes"; then
38757 cat >>confdefs.h <<\_ACEOF
38758#define wxUSE_CHOICE 1
38759_ACEOF
38760
38761 USES_CONTROLS=1
38762fi
38763
92bbdbcd
WS
38764if test "$wxUSE_CHOICEBOOK" = "yes"; then
38765 cat >>confdefs.h <<\_ACEOF
38766#define wxUSE_CHOICEBOOK 1
38767_ACEOF
38768
38769 USES_CONTROLS=1
38770fi
38771
a848cd7e
SC
38772if test "$wxUSE_CHECKBOX" = "yes"; then
38773 cat >>confdefs.h <<\_ACEOF
38774#define wxUSE_CHECKBOX 1
38775_ACEOF
38776
38777 USES_CONTROLS=1
38778fi
38779
38780if test "$wxUSE_CHECKLST" = "yes"; then
38781 cat >>confdefs.h <<\_ACEOF
38782#define wxUSE_CHECKLISTBOX 1
38783_ACEOF
38784
38785 USES_CONTROLS=1
38786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38787fi
38788
da98e9be
VZ
38789if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38790 cat >>confdefs.h <<\_ACEOF
38791#define wxUSE_DATEPICKCTRL 1
38792_ACEOF
38793
38794 USES_CONTROLS=1
38795fi
38796
a848cd7e
SC
38797if test "$wxUSE_DISPLAY" = "yes"; then
38798 cat >>confdefs.h <<\_ACEOF
38799#define wxUSE_DISPLAY 1
38800_ACEOF
38801
0b78747f 38802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38803fi
38804
38805if test "$wxUSE_GAUGE" = "yes"; then
38806 cat >>confdefs.h <<\_ACEOF
38807#define wxUSE_GAUGE 1
38808_ACEOF
38809
38810 USES_CONTROLS=1
38811fi
38812
38813if test "$wxUSE_GRID" = "yes"; then
38814 cat >>confdefs.h <<\_ACEOF
38815#define wxUSE_GRID 1
38816_ACEOF
38817
38818 USES_CONTROLS=1
38819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38820fi
38821
38822if test "$wxUSE_IMAGLIST" = "yes"; then
38823 cat >>confdefs.h <<\_ACEOF
38824#define wxUSE_IMAGLIST 1
38825_ACEOF
38826
38827fi
38828
38829if test "$wxUSE_LISTBOOK" = "yes"; then
38830 cat >>confdefs.h <<\_ACEOF
38831#define wxUSE_LISTBOOK 1
38832_ACEOF
38833
38834 USES_CONTROLS=1
38835fi
38836
38837if test "$wxUSE_LISTBOX" = "yes"; then
38838 cat >>confdefs.h <<\_ACEOF
38839#define wxUSE_LISTBOX 1
38840_ACEOF
38841
38842 USES_CONTROLS=1
0b78747f 38843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
38844fi
38845
38846if test "$wxUSE_LISTCTRL" = "yes"; then
38847 if test "$wxUSE_IMAGLIST" = "yes"; then
38848 cat >>confdefs.h <<\_ACEOF
38849#define wxUSE_LISTCTRL 1
38850_ACEOF
38851
38852 USES_CONTROLS=1
38853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38854 else
38855 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38856echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38857 fi
38858fi
38859
38860if test "$wxUSE_NOTEBOOK" = "yes"; then
38861 cat >>confdefs.h <<\_ACEOF
38862#define wxUSE_NOTEBOOK 1
38863_ACEOF
38864
38865 USES_CONTROLS=1
38866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38867fi
38868
38869
38870if test "$wxUSE_RADIOBOX" = "yes"; then
38871 cat >>confdefs.h <<\_ACEOF
38872#define wxUSE_RADIOBOX 1
38873_ACEOF
38874
38875 USES_CONTROLS=1
38876fi
38877
38878if test "$wxUSE_RADIOBTN" = "yes"; then
38879 cat >>confdefs.h <<\_ACEOF
38880#define wxUSE_RADIOBTN 1
38881_ACEOF
38882
38883 USES_CONTROLS=1
38884fi
38885
38886if test "$wxUSE_SASH" = "yes"; then
38887 cat >>confdefs.h <<\_ACEOF
38888#define wxUSE_SASH 1
38889_ACEOF
38890
38891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38892fi
38893
38894if test "$wxUSE_SCROLLBAR" = "yes"; then
38895 cat >>confdefs.h <<\_ACEOF
38896#define wxUSE_SCROLLBAR 1
38897_ACEOF
38898
38899 USES_CONTROLS=1
38900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38901fi
38902
38903if test "$wxUSE_SLIDER" = "yes"; then
38904 cat >>confdefs.h <<\_ACEOF
38905#define wxUSE_SLIDER 1
38906_ACEOF
38907
38908 USES_CONTROLS=1
38909fi
38910
38911if test "$wxUSE_SPINBTN" = "yes"; then
38912 cat >>confdefs.h <<\_ACEOF
38913#define wxUSE_SPINBTN 1
38914_ACEOF
38915
38916 USES_CONTROLS=1
38917fi
38918
38919if test "$wxUSE_SPINCTRL" = "yes"; then
38920 cat >>confdefs.h <<\_ACEOF
38921#define wxUSE_SPINCTRL 1
38922_ACEOF
38923
38924 USES_CONTROLS=1
38925fi
38926
38927if test "$wxUSE_SPLITTER" = "yes"; then
38928 cat >>confdefs.h <<\_ACEOF
38929#define wxUSE_SPLITTER 1
38930_ACEOF
38931
38932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38933fi
38934
38935if test "$wxUSE_STATBMP" = "yes"; then
38936 cat >>confdefs.h <<\_ACEOF
38937#define wxUSE_STATBMP 1
38938_ACEOF
38939
38940 USES_CONTROLS=1
38941fi
38942
38943if test "$wxUSE_STATBOX" = "yes"; then
38944 cat >>confdefs.h <<\_ACEOF
38945#define wxUSE_STATBOX 1
38946_ACEOF
38947
38948 USES_CONTROLS=1
38949fi
38950
38951if test "$wxUSE_STATTEXT" = "yes"; then
38952 cat >>confdefs.h <<\_ACEOF
38953#define wxUSE_STATTEXT 1
38954_ACEOF
38955
38956 USES_CONTROLS=1
38957fi
38958
38959if test "$wxUSE_STATLINE" = "yes"; then
38960 cat >>confdefs.h <<\_ACEOF
38961#define wxUSE_STATLINE 1
38962_ACEOF
38963
38964 USES_CONTROLS=1
38965fi
38966
38967if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38968 cat >>confdefs.h <<\_ACEOF
38969#define wxUSE_NATIVE_STATUSBAR 1
38970_ACEOF
38971
a848cd7e
SC
38972 cat >>confdefs.h <<\_ACEOF
38973#define wxUSE_STATUSBAR 1
38974_ACEOF
38975
38976 USES_CONTROLS=1
38977
38978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38979fi
38980
38981if test "$wxUSE_TABDIALOG" = "yes"; then
38982 cat >>confdefs.h <<\_ACEOF
38983#define wxUSE_TAB_DIALOG 1
38984_ACEOF
38985
a848cd7e
SC
38986fi
38987
38988if test "$wxUSE_TEXTCTRL" = "yes"; then
38989 cat >>confdefs.h <<\_ACEOF
38990#define wxUSE_TEXTCTRL 1
38991_ACEOF
38992
38993 USES_CONTROLS=1
38994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38995fi
38996
38997if test "$wxUSE_TOGGLEBTN" = "yes"; then
38998 if test "$wxUSE_COCOA" = 1 ; then
38999 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39000echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39001 wxUSE_TOGGLEBTN=no
bdcade0a
MB
39002 else
39003 if test "$wxUSE_PM" = 1; then
39004 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
39005echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
39006 wxUSE_TOGGLEBTN=no
39007 fi
a848cd7e
SC
39008 fi
39009 if test "$wxUSE_UNIVERSAL" = "yes"; then
39010 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39011echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39012 wxUSE_TOGGLEBTN=no
39013 fi
39014
39015 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39016 cat >>confdefs.h <<\_ACEOF
39017#define wxUSE_TOGGLEBTN 1
39018_ACEOF
39019
39020 USES_CONTROLS=1
39021 fi
39022fi
39023
39024if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39025 cat >>confdefs.h <<\_ACEOF
39026#define wxUSE_TOOLBAR_SIMPLE 1
39027_ACEOF
39028
39029 wxUSE_TOOLBAR="yes"
39030 USES_CONTROLS=1
39031fi
39032
39033if test "$wxUSE_TOOLBAR" = "yes"; then
39034 cat >>confdefs.h <<\_ACEOF
39035#define wxUSE_TOOLBAR 1
39036_ACEOF
39037
39038 USES_CONTROLS=1
39039
39040 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39041 wxUSE_TOOLBAR_NATIVE="yes"
39042 fi
39043
39044 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39045 cat >>confdefs.h <<\_ACEOF
39046#define wxUSE_TOOLBAR_NATIVE 1
39047_ACEOF
39048
39049 USES_CONTROLS=1
39050 fi
39051
39052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39053fi
39054
39055if test "$wxUSE_TOOLTIPS" = "yes"; then
39056 if test "$wxUSE_MOTIF" = 1; then
39057 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39058echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39059 else
39060 if test "$wxUSE_UNIVERSAL" = "yes"; then
39061 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39062echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39063 else
39064 cat >>confdefs.h <<\_ACEOF
39065#define wxUSE_TOOLTIPS 1
39066_ACEOF
39067
39068 fi
39069 fi
39070fi
39071
39072if test "$wxUSE_TREECTRL" = "yes"; then
39073 if test "$wxUSE_IMAGLIST" = "yes"; then
39074 cat >>confdefs.h <<\_ACEOF
39075#define wxUSE_TREECTRL 1
39076_ACEOF
39077
39078 USES_CONTROLS=1
39079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39080 else
39081 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39082echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39083 fi
39084fi
39085
39086if test "$wxUSE_POPUPWIN" = "yes"; then
39087 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39088 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39089echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39090 else
39091 if test "$wxUSE_PM" = 1; then
39092 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39093echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39094 else
39095 cat >>confdefs.h <<\_ACEOF
39096#define wxUSE_POPUPWIN 1
39097_ACEOF
39098
0b78747f 39099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39100
39101 USES_CONTROLS=1
39102 fi
39103 fi
39104fi
39105
0dcd06dd 39106if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39107 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39108 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39109echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39110 else
39111 cat >>confdefs.h <<\_ACEOF
39112#define wxUSE_DIALUP_MANAGER 1
39113_ACEOF
39114
39115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39116 fi
39117fi
39118
a848cd7e
SC
39119if test "$wxUSE_TIPWINDOW" = "yes"; then
39120 if test "$wxUSE_PM" = 1; then
39121 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39122echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39123 else
39124 cat >>confdefs.h <<\_ACEOF
39125#define wxUSE_TIPWINDOW 1
39126_ACEOF
39127
39128 fi
39129fi
39130
39131if test "$USES_CONTROLS" = 1; then
39132 cat >>confdefs.h <<\_ACEOF
39133#define wxUSE_CONTROLS 1
39134_ACEOF
39135
39136fi
39137
39138
39139if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39140 cat >>confdefs.h <<\_ACEOF
39141#define wxUSE_ACCESSIBILITY 1
39142_ACEOF
39143
39144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39145fi
39146
39147if test "$wxUSE_DRAGIMAGE" = "yes"; then
39148 cat >>confdefs.h <<\_ACEOF
39149#define wxUSE_DRAGIMAGE 1
39150_ACEOF
39151
39152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39153fi
39154
39155if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39156 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39157 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39158echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39159 else
39160 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39161#define wxUSE_EXCEPTIONS 1
39162_ACEOF
39163
07bea8f0
VS
39164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39165 fi
a848cd7e
SC
39166fi
39167
39168USE_HTML=0
39169if test "$wxUSE_HTML" = "yes"; then
39170 cat >>confdefs.h <<\_ACEOF
39171#define wxUSE_HTML 1
39172_ACEOF
39173
39174 USE_HTML=1
39175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39176 if test "$wxUSE_MAC" = 1; then
39177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39178 fi
a848cd7e 39179fi
646b6ec1 39180if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39181 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39182 old_CPPFLAGS="$CPPFLAGS"
39183 CPPFLAGS="$CPPFLAGS -x objective-c++"
39184 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39185echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39186if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39187 echo $ECHO_N "(cached) $ECHO_C" >&6
39188else
39189 cat >conftest.$ac_ext <<_ACEOF
39190/* confdefs.h. */
39191_ACEOF
39192cat confdefs.h >>conftest.$ac_ext
39193cat >>conftest.$ac_ext <<_ACEOF
39194/* end confdefs.h. */
39195#include <Carbon/Carbon.h>
39196
39197#include <WebKit/HIWebView.h>
39198_ACEOF
39199rm -f conftest.$ac_objext
39200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39201 (eval $ac_compile) 2>conftest.er1
39202 ac_status=$?
39203 grep -v '^ *+' conftest.er1 >conftest.err
39204 rm -f conftest.er1
39205 cat conftest.err >&5
39206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39207 (exit $ac_status); } &&
9dd0f6c2 39208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210 (eval $ac_try) 2>&5
39211 ac_status=$?
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); }; } &&
39214 { ac_try='test -s conftest.$ac_objext'
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39217 ac_status=$?
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; }; then
39220 ac_cv_header_WebKit_HIWebView_h=yes
39221else
39222 echo "$as_me: failed program was:" >&5
39223sed 's/^/| /' conftest.$ac_ext >&5
39224
39225ac_cv_header_WebKit_HIWebView_h=no
39226fi
39227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39228fi
39229echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39230echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39231if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39232
39233 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39234#define wxUSE_WEBKIT 1
39235_ACEOF
39236
07bea8f0
VS
39237 WEBKIT_LINK="-framework WebKit"
39238
39239else
39240
39241 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39242echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39243 wxUSE_WEBKIT=no
39244
646b6ec1
VS
39245fi
39246
07bea8f0
VS
39247
39248 CPPFLAGS="$old_CPPFLAGS"
39249 elif test "$wxUSE_COCOA" = 1; then
39250 cat >>confdefs.h <<\_ACEOF
39251#define wxUSE_WEBKIT 1
39252_ACEOF
39253
39254 else
39255 wxUSE_WEBKIT=no
39256 fi
39257fi
39258
9a8f0513
VS
39259USE_XRC=0
39260if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39261 if test "$wxUSE_XML" != "yes"; then
39262 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39263echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39264 wxUSE_XRC=no
39265 else
39266 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39267#define wxUSE_XRC 1
39268_ACEOF
39269
d2ebf0b7
VS
39270 USE_XRC=1
39271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39272 fi
9a8f0513 39273fi
07bea8f0 39274
a848cd7e
SC
39275if test "$wxUSE_MENUS" = "yes"; then
39276 cat >>confdefs.h <<\_ACEOF
39277#define wxUSE_MENUS 1
39278_ACEOF
39279
39280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39281fi
39282
39283if test "$wxUSE_METAFILE" = "yes"; then
39284 cat >>confdefs.h <<\_ACEOF
39285#define wxUSE_METAFILE 1
39286_ACEOF
39287
39288fi
39289
39290if test "$wxUSE_MIMETYPE" = "yes"; then
39291 cat >>confdefs.h <<\_ACEOF
39292#define wxUSE_MIMETYPE 1
39293_ACEOF
39294
39295fi
39296
39297if test "$wxUSE_MINIFRAME" = "yes"; then
39298 cat >>confdefs.h <<\_ACEOF
39299#define wxUSE_MINIFRAME 1
39300_ACEOF
39301
39302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39303fi
39304
39305if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39306 cat >>confdefs.h <<\_ACEOF
39307#define wxUSE_SYSTEM_OPTIONS 1
39308_ACEOF
39309
39310 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39311 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39313 fi
39314fi
39315
39316
39317if test "$wxUSE_VALIDATORS" = "yes"; then
39318 cat >>confdefs.h <<\_ACEOF
39319#define wxUSE_VALIDATORS 1
39320_ACEOF
39321
39322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39323fi
39324
39325if test "$wxUSE_PALETTE" = "yes" ; then
39326 cat >>confdefs.h <<\_ACEOF
39327#define wxUSE_PALETTE 1
39328_ACEOF
39329
39330fi
39331
39332if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39333 LIBS=" -lunicows $LIBS"
39334fi
39335
39336
39337if test "$wxUSE_IMAGE" = "yes" ; then
39338 cat >>confdefs.h <<\_ACEOF
39339#define wxUSE_IMAGE 1
39340_ACEOF
39341
39342
39343 if test "$wxUSE_GIF" = "yes" ; then
39344 cat >>confdefs.h <<\_ACEOF
39345#define wxUSE_GIF 1
39346_ACEOF
39347
39348 fi
39349
39350 if test "$wxUSE_PCX" = "yes" ; then
39351 cat >>confdefs.h <<\_ACEOF
39352#define wxUSE_PCX 1
39353_ACEOF
39354
39355 fi
39356
39357 if test "$wxUSE_IFF" = "yes" ; then
39358 cat >>confdefs.h <<\_ACEOF
39359#define wxUSE_IFF 1
39360_ACEOF
39361
39362 fi
39363
39364 if test "$wxUSE_PNM" = "yes" ; then
39365 cat >>confdefs.h <<\_ACEOF
39366#define wxUSE_PNM 1
39367_ACEOF
39368
39369 fi
39370
39371 if test "$wxUSE_XPM" = "yes" ; then
39372 cat >>confdefs.h <<\_ACEOF
39373#define wxUSE_XPM 1
39374_ACEOF
39375
39376 fi
39377
39378 if test "$wxUSE_ICO_CUR" = "yes" ; then
39379 cat >>confdefs.h <<\_ACEOF
39380#define wxUSE_ICO_CUR 1
39381_ACEOF
39382
39383 fi
39384fi
39385
39386
39387if test "$wxUSE_CHOICEDLG" = "yes"; then
39388 cat >>confdefs.h <<\_ACEOF
39389#define wxUSE_CHOICEDLG 1
39390_ACEOF
39391
39392fi
39393
39394if test "$wxUSE_COLOURDLG" = "yes"; then
39395 cat >>confdefs.h <<\_ACEOF
39396#define wxUSE_COLOURDLG 1
39397_ACEOF
39398
39399fi
39400
39401if test "$wxUSE_FILEDLG" = "yes"; then
39402 cat >>confdefs.h <<\_ACEOF
39403#define wxUSE_FILEDLG 1
39404_ACEOF
39405
39406fi
39407
39408if test "$wxUSE_FINDREPLDLG" = "yes"; then
39409 cat >>confdefs.h <<\_ACEOF
39410#define wxUSE_FINDREPLDLG 1
39411_ACEOF
39412
39413fi
39414
39415if test "$wxUSE_FONTDLG" = "yes"; then
39416 cat >>confdefs.h <<\_ACEOF
39417#define wxUSE_FONTDLG 1
39418_ACEOF
39419
39420fi
39421
39422if test "$wxUSE_DIRDLG" = "yes"; then
39423 if test "$wxUSE_TREECTRL" != "yes"; then
39424 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39425echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39426 else
39427 cat >>confdefs.h <<\_ACEOF
39428#define wxUSE_DIRDLG 1
39429_ACEOF
39430
39431 fi
39432fi
39433
39434if test "$wxUSE_MSGDLG" = "yes"; then
39435 cat >>confdefs.h <<\_ACEOF
39436#define wxUSE_MSGDLG 1
39437_ACEOF
39438
39439fi
39440
39441if test "$wxUSE_NUMBERDLG" = "yes"; then
39442 cat >>confdefs.h <<\_ACEOF
39443#define wxUSE_NUMBERDLG 1
39444_ACEOF
39445
39446fi
39447
39448if test "$wxUSE_PROGRESSDLG" = "yes"; then
39449 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39450 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39451echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39452 else
39453 cat >>confdefs.h <<\_ACEOF
39454#define wxUSE_PROGRESSDLG 1
39455_ACEOF
39456
39457 fi
39458fi
39459
39460if test "$wxUSE_SPLASH" = "yes"; then
39461 cat >>confdefs.h <<\_ACEOF
39462#define wxUSE_SPLASH 1
39463_ACEOF
39464
2057db16 39465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39466fi
39467
39468if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39469 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39470 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39471echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39472 else
39473 cat >>confdefs.h <<\_ACEOF
39474#define wxUSE_STARTUP_TIPS 1
39475_ACEOF
39476
39477 fi
39478fi
39479
39480if test "$wxUSE_TEXTDLG" = "yes"; then
39481 cat >>confdefs.h <<\_ACEOF
39482#define wxUSE_TEXTDLG 1
39483_ACEOF
39484
39485fi
39486
39487if test "$wxUSE_WIZARDDLG" = "yes"; then
39488 cat >>confdefs.h <<\_ACEOF
39489#define wxUSE_WIZARDDLG 1
39490_ACEOF
39491
39492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39493fi
39494
39495
ce756cb0
RN
39496if test "$wxUSE_MEDIACTRL" = "yes"; then
39497 if test "$wxUSE_MSW" = 1; then
39498 wxUSE_DIRECTSHOW="yes"
39499
39500for ac_header in dshow.h
39501do
39502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39503echo "$as_me:$LINENO: checking for $ac_header" >&5
39504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39505if eval "test \"\${$as_ac_Header+set}\" = set"; then
39506 echo $ECHO_N "(cached) $ECHO_C" >&6
39507else
39508 cat >conftest.$ac_ext <<_ACEOF
39509/* confdefs.h. */
39510_ACEOF
39511cat confdefs.h >>conftest.$ac_ext
39512cat >>conftest.$ac_ext <<_ACEOF
39513/* end confdefs.h. */
39514#include <windows.h>
39515
39516#include <$ac_header>
39517_ACEOF
39518rm -f conftest.$ac_objext
39519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39520 (eval $ac_compile) 2>conftest.er1
39521 ac_status=$?
39522 grep -v '^ *+' conftest.er1 >conftest.err
39523 rm -f conftest.er1
39524 cat conftest.err >&5
39525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526 (exit $ac_status); } &&
9dd0f6c2 39527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39529 (eval $ac_try) 2>&5
39530 ac_status=$?
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); }; } &&
39533 { ac_try='test -s conftest.$ac_objext'
39534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39535 (eval $ac_try) 2>&5
39536 ac_status=$?
39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538 (exit $ac_status); }; }; then
39539 eval "$as_ac_Header=yes"
39540else
39541 echo "$as_me: failed program was:" >&5
39542sed 's/^/| /' conftest.$ac_ext >&5
39543
39544eval "$as_ac_Header=no"
39545fi
39546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39547fi
39548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39550if test `eval echo '${'$as_ac_Header'}'` = yes; then
39551 cat >>confdefs.h <<_ACEOF
39552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39553_ACEOF
39554
39555else
39556
39557 wxUSE_DIRECTSHOW="no"
39558 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39559echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39560
39561fi
39562
39563done
39564
39565
39566 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39567 cat >>confdefs.h <<\_ACEOF
39568#define wxUSE_DIRECTSHOW 1
39569_ACEOF
39570
39571 LIBS="$LIBS -lstrmiids"
39572 fi
39573 fi
39574
39575 if test "$wxUSE_GTK" = 1; then
39576 wxUSE_GSTREAMER="yes"
39577
ce756cb0 39578
dae87f93 39579 succeeded=no
ce756cb0 39580
dae87f93
RN
39581 if test -z "$PKG_CONFIG"; then
39582 # Extract the first word of "pkg-config", so it can be a program name with args.
39583set dummy pkg-config; ac_word=$2
39584echo "$as_me:$LINENO: checking for $ac_word" >&5
39585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39586if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39587 echo $ECHO_N "(cached) $ECHO_C" >&6
39588else
39589 case $PKG_CONFIG in
39590 [\\/]* | ?:[\\/]*)
39591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39592 ;;
39593 *)
39594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39595for as_dir in $PATH
39596do
39597 IFS=$as_save_IFS
39598 test -z "$as_dir" && as_dir=.
39599 for ac_exec_ext in '' $ac_executable_extensions; do
39600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39603 break 2
39604 fi
39605done
39606done
39607
39608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39609 ;;
39610esac
39611fi
39612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39613
39614if test -n "$PKG_CONFIG"; then
39615 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39616echo "${ECHO_T}$PKG_CONFIG" >&6
39617else
39618 echo "$as_me:$LINENO: result: no" >&5
39619echo "${ECHO_T}no" >&6
39620fi
39621
39622 fi
39623
39624 if test "$PKG_CONFIG" = "no" ; then
39625 echo "*** The pkg-config script could not be found. Make sure it is"
39626 echo "*** in your path, or set the PKG_CONFIG environment variable"
39627 echo "*** to the full path to pkg-config."
39628 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39629 else
39630 PKG_CONFIG_MIN_VERSION=0.9.0
39631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39632 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39633echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39634
39635 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39636 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39637echo "${ECHO_T}yes" >&6
dae87f93 39638 succeeded=yes
ce756cb0 39639
dae87f93
RN
39640 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39641echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39642 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39643 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39644echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39645
39646 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39647echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39648 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39649 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39650echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39651 else
39652 GSTREAMER_CFLAGS=""
39653 GSTREAMER_LIBS=""
39654 ## If we have a custom action on failure, don't print errors, but
39655 ## do set a variable so people can do so.
39656 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39657
dae87f93
RN
39658 fi
39659
39660
39661
39662 else
39663 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39664 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39665 fi
39666 fi
39667
39668 if test $succeeded = yes; then
39669
39670 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39671 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39672
ce756cb0 39673 else
dae87f93
RN
39674
39675 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39676echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39677 wxUSE_GSTREAMER="no"
39678
39679 fi
39680
39681
39682
39683
39684
39685 if test "x$GST_INSPECT" == "x"; then
39686 # Extract the first word of "gst-inspect", so it can be a program name with args.
39687set dummy gst-inspect; ac_word=$2
39688echo "$as_me:$LINENO: checking for $ac_word" >&5
39689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39690if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39691 echo $ECHO_N "(cached) $ECHO_C" >&6
39692else
39693 if test -n "$GST_INSPECT"; then
39694 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39695else
39696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39697for as_dir in $PATH
39698do
39699 IFS=$as_save_IFS
39700 test -z "$as_dir" && as_dir=.
39701 for ac_exec_ext in '' $ac_executable_extensions; do
39702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39703 ac_cv_prog_GST_INSPECT="gst-inspect"
39704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39705 break 2
ce756cb0 39706 fi
dae87f93
RN
39707done
39708done
39709
39710fi
39711fi
39712GST_INSPECT=$ac_cv_prog_GST_INSPECT
39713if test -n "$GST_INSPECT"; then
39714 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39715echo "${ECHO_T}$GST_INSPECT" >&6
39716else
39717 echo "$as_me:$LINENO: result: no" >&5
39718echo "${ECHO_T}no" >&6
39719fi
39720
39721 fi
39722
39723 if test "x$GST_INSPECT" != "x"; then
39724 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39725echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39726 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39727 echo "$as_me:$LINENO: result: found." >&5
39728echo "${ECHO_T}found." >&6
ce756cb0 39729
ce756cb0 39730 else
dae87f93
RN
39731 echo "$as_me:$LINENO: result: not found." >&5
39732echo "${ECHO_T}not found." >&6
39733
39734 wxUSE_GSTREAMER="no"
39735 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39736echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39737
39738 fi
39739 fi
39740
39741
39742 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39743echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39744if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39745 echo $ECHO_N "(cached) $ECHO_C" >&6
39746else
39747 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39748/* confdefs.h. */
39749_ACEOF
39750cat confdefs.h >>conftest.$ac_ext
39751cat >>conftest.$ac_ext <<_ACEOF
39752/* end confdefs.h. */
dae87f93 39753#include <gst/gst.h>
ce756cb0 39754
dae87f93 39755#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39756_ACEOF
39757rm -f conftest.$ac_objext
39758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39759 (eval $ac_compile) 2>conftest.er1
39760 ac_status=$?
39761 grep -v '^ *+' conftest.er1 >conftest.err
39762 rm -f conftest.er1
39763 cat conftest.err >&5
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); } &&
9dd0f6c2 39766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768 (eval $ac_try) 2>&5
39769 ac_status=$?
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); }; } &&
39772 { ac_try='test -s conftest.$ac_objext'
39773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774 (eval $ac_try) 2>&5
39775 ac_status=$?
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); }; }; then
dae87f93 39778 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39779else
39780 echo "$as_me: failed program was:" >&5
39781sed 's/^/| /' conftest.$ac_ext >&5
39782
dae87f93 39783ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39784fi
39785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39786fi
39787echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39788echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39789if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39790 :
39791else
ce756cb0 39792
dae87f93
RN
39793 wxUSE_GSTREAMER="no"
39794 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39795echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39796
dae87f93 39797fi
ce756cb0 39798
dae87f93
RN
39799
39800
39801 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39802echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39803
39804ac_find_libraries=
39805for ac_dir in $SEARCH_LIB /usr/lib;
39806 do
39807 for ac_extension in a so sl dylib; do
39808 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39809 ac_find_libraries=$ac_dir
39810 break 2
39811 fi
39812 done
39813 done
39814
ce756cb0 39815
dae87f93
RN
39816 if test "$ac_find_libraries" = "" ; then
39817 echo "$as_me:$LINENO: result: no" >&5
39818echo "${ECHO_T}no" >&6
39819 wxUSE_GSTREAMER="no"
39820 else
39821 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39822echo "${ECHO_T}yes" >&6
dae87f93 39823 fi
ce756cb0 39824
dae87f93
RN
39825 if test "$wxUSE_GSTREAMER" = "yes"; then
39826 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39827#define wxUSE_GSTREAMER 1
39828_ACEOF
39829
dae87f93
RN
39830 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39831echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39832 fi
39833 fi
39834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39835 cat >>confdefs.h <<\_ACEOF
39836#define wxUSE_MEDIACTRL 1
39837_ACEOF
39838
39839fi
39840
39841
a848cd7e
SC
39842if test "$cross_compiling" = "yes"; then
39843 OSINFO="\"$host\""
39844else
39845 OSINFO=`uname -s -r -m`
39846 OSINFO="\"$OSINFO\""
39847fi
39848
39849cat >>confdefs.h <<_ACEOF
39850#define WXWIN_OS_DESCRIPTION $OSINFO
39851_ACEOF
39852
39853
39854
39855if test "x$prefix" != "xNONE"; then
39856 wxPREFIX=$prefix
39857else
39858 wxPREFIX=$ac_default_prefix
39859fi
39860
39861cat >>confdefs.h <<_ACEOF
39862#define wxINSTALL_PREFIX "$wxPREFIX"
39863_ACEOF
39864
39865
a848cd7e
SC
39866
39867
39868CORE_BASE_LIBS="net base"
39869CORE_GUI_LIBS="adv core"
39870
39871if test "$wxUSE_XML" = "yes" ; then
39872 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39873fi
39874if test "$wxUSE_ODBC" != "no" ; then
39875 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39876 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39877fi
39878if test "$wxUSE_HTML" = "yes" ; then
39879 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39880fi
61639efb
VZ
39881if test "$wxUSE_DEBUGREPORT" = "yes" ; then
39882 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
39883fi
9a8f0513
VS
39884if test "$wxUSE_XRC" = "yes" ; then
39885 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39886fi
a848cd7e
SC
39887
39888if test "$wxUSE_GUI" != "yes"; then
39889 CORE_GUI_LIBS=""
39890fi
39891
39892
39893
39894
39895
39896
39897
39898
39899if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39900 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39901 if test "$USE_DARWIN" = 1; then
39902 LDFLAGS="$LDFLAGS -framework QuickTime"
39903 else
39904 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39905 fi
07bea8f0 39906 fi
5dcf30a0 39907 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39908 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39909 else
39910 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39911 fi
a848cd7e
SC
39912fi
39913if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39914 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39915 if test "$wxUSE_MEDIACTRL" = "yes"; then
39916 LDFLAGS="$LDFLAGS -framework QuickTime"
39917 fi
a848cd7e
SC
39918fi
39919
39920
39921LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39922
39923have_cos=0
39924have_floor=0
39925
39926for ac_func in cos
39927do
39928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39929echo "$as_me:$LINENO: checking for $ac_func" >&5
39930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39931if eval "test \"\${$as_ac_var+set}\" = set"; then
39932 echo $ECHO_N "(cached) $ECHO_C" >&6
39933else
39934 cat >conftest.$ac_ext <<_ACEOF
39935/* confdefs.h. */
39936_ACEOF
39937cat confdefs.h >>conftest.$ac_ext
39938cat >>conftest.$ac_ext <<_ACEOF
39939/* end confdefs.h. */
ac1cb8d3
VS
39940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39942#define $ac_func innocuous_$ac_func
39943
a848cd7e
SC
39944/* System header to define __stub macros and hopefully few prototypes,
39945 which can conflict with char $ac_func (); below.
39946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39947 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39948
a848cd7e
SC
39949#ifdef __STDC__
39950# include <limits.h>
39951#else
39952# include <assert.h>
39953#endif
ac1cb8d3
VS
39954
39955#undef $ac_func
39956
a848cd7e
SC
39957/* Override any gcc2 internal prototype to avoid an error. */
39958#ifdef __cplusplus
39959extern "C"
39960{
39961#endif
39962/* We use char because int might match the return type of a gcc2
39963 builtin and then its argument prototype would still apply. */
39964char $ac_func ();
39965/* The GNU C library defines this for functions which it implements
39966 to always fail with ENOSYS. Some functions are actually named
39967 something starting with __ and the normal name is an alias. */
39968#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39969choke me
39970#else
39971char (*f) () = $ac_func;
39972#endif
39973#ifdef __cplusplus
39974}
39975#endif
39976
39977int
39978main ()
39979{
39980return f != $ac_func;
39981 ;
39982 return 0;
39983}
39984_ACEOF
39985rm -f conftest.$ac_objext conftest$ac_exeext
39986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39987 (eval $ac_link) 2>conftest.er1
a848cd7e 39988 ac_status=$?
ac1cb8d3
VS
39989 grep -v '^ *+' conftest.er1 >conftest.err
39990 rm -f conftest.er1
39991 cat conftest.err >&5
a848cd7e
SC
39992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993 (exit $ac_status); } &&
9dd0f6c2 39994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39996 (eval $ac_try) 2>&5
39997 ac_status=$?
39998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); }; } &&
40000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40002 (eval $ac_try) 2>&5
40003 ac_status=$?
40004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40005 (exit $ac_status); }; }; then
40006 eval "$as_ac_var=yes"
40007else
40008 echo "$as_me: failed program was:" >&5
40009sed 's/^/| /' conftest.$ac_ext >&5
40010
40011eval "$as_ac_var=no"
40012fi
ac1cb8d3
VS
40013rm -f conftest.err conftest.$ac_objext \
40014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40015fi
40016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40018if test `eval echo '${'$as_ac_var'}'` = yes; then
40019 cat >>confdefs.h <<_ACEOF
40020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40021_ACEOF
40022 have_cos=1
40023fi
40024done
40025
40026
40027for ac_func in floor
40028do
40029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40030echo "$as_me:$LINENO: checking for $ac_func" >&5
40031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40032if eval "test \"\${$as_ac_var+set}\" = set"; then
40033 echo $ECHO_N "(cached) $ECHO_C" >&6
40034else
40035 cat >conftest.$ac_ext <<_ACEOF
40036/* confdefs.h. */
40037_ACEOF
40038cat confdefs.h >>conftest.$ac_ext
40039cat >>conftest.$ac_ext <<_ACEOF
40040/* end confdefs.h. */
ac1cb8d3
VS
40041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40043#define $ac_func innocuous_$ac_func
40044
a848cd7e
SC
40045/* System header to define __stub macros and hopefully few prototypes,
40046 which can conflict with char $ac_func (); below.
40047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40049
a848cd7e
SC
40050#ifdef __STDC__
40051# include <limits.h>
40052#else
40053# include <assert.h>
40054#endif
ac1cb8d3
VS
40055
40056#undef $ac_func
40057
a848cd7e
SC
40058/* Override any gcc2 internal prototype to avoid an error. */
40059#ifdef __cplusplus
40060extern "C"
40061{
40062#endif
40063/* We use char because int might match the return type of a gcc2
40064 builtin and then its argument prototype would still apply. */
40065char $ac_func ();
40066/* The GNU C library defines this for functions which it implements
40067 to always fail with ENOSYS. Some functions are actually named
40068 something starting with __ and the normal name is an alias. */
40069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40070choke me
40071#else
40072char (*f) () = $ac_func;
40073#endif
40074#ifdef __cplusplus
40075}
40076#endif
40077
40078int
40079main ()
40080{
40081return f != $ac_func;
40082 ;
40083 return 0;
40084}
40085_ACEOF
40086rm -f conftest.$ac_objext conftest$ac_exeext
40087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40088 (eval $ac_link) 2>conftest.er1
a848cd7e 40089 ac_status=$?
ac1cb8d3
VS
40090 grep -v '^ *+' conftest.er1 >conftest.err
40091 rm -f conftest.er1
40092 cat conftest.err >&5
a848cd7e
SC
40093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094 (exit $ac_status); } &&
9dd0f6c2 40095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40097 (eval $ac_try) 2>&5
40098 ac_status=$?
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); }; } &&
40101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40103 (eval $ac_try) 2>&5
40104 ac_status=$?
40105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106 (exit $ac_status); }; }; then
40107 eval "$as_ac_var=yes"
40108else
40109 echo "$as_me: failed program was:" >&5
40110sed 's/^/| /' conftest.$ac_ext >&5
40111
40112eval "$as_ac_var=no"
40113fi
ac1cb8d3
VS
40114rm -f conftest.err conftest.$ac_objext \
40115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40116fi
40117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40119if test `eval echo '${'$as_ac_var'}'` = yes; then
40120 cat >>confdefs.h <<_ACEOF
40121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40122_ACEOF
40123 have_floor=1
40124fi
40125done
40126
40127echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40128echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40129if test "$have_cos" = 1 -a "$have_floor" = 1; then
40130 echo "$as_me:$LINENO: result: yes" >&5
40131echo "${ECHO_T}yes" >&6
40132else
40133 echo "$as_me:$LINENO: result: no" >&5
40134echo "${ECHO_T}no" >&6
40135 LIBS="$LIBS -lm"
40136 # use different functions to avoid configure caching
40137 have_sin=0
40138 have_ceil=0
40139
40140for ac_func in sin
40141do
40142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40143echo "$as_me:$LINENO: checking for $ac_func" >&5
40144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40145if eval "test \"\${$as_ac_var+set}\" = set"; then
40146 echo $ECHO_N "(cached) $ECHO_C" >&6
40147else
40148 cat >conftest.$ac_ext <<_ACEOF
40149/* confdefs.h. */
40150_ACEOF
40151cat confdefs.h >>conftest.$ac_ext
40152cat >>conftest.$ac_ext <<_ACEOF
40153/* end confdefs.h. */
ac1cb8d3
VS
40154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40156#define $ac_func innocuous_$ac_func
40157
a848cd7e
SC
40158/* System header to define __stub macros and hopefully few prototypes,
40159 which can conflict with char $ac_func (); below.
40160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40162
a848cd7e
SC
40163#ifdef __STDC__
40164# include <limits.h>
40165#else
40166# include <assert.h>
40167#endif
ac1cb8d3
VS
40168
40169#undef $ac_func
40170
a848cd7e
SC
40171/* Override any gcc2 internal prototype to avoid an error. */
40172#ifdef __cplusplus
40173extern "C"
40174{
40175#endif
40176/* We use char because int might match the return type of a gcc2
40177 builtin and then its argument prototype would still apply. */
40178char $ac_func ();
40179/* The GNU C library defines this for functions which it implements
40180 to always fail with ENOSYS. Some functions are actually named
40181 something starting with __ and the normal name is an alias. */
40182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40183choke me
40184#else
40185char (*f) () = $ac_func;
40186#endif
40187#ifdef __cplusplus
40188}
40189#endif
40190
40191int
40192main ()
40193{
40194return f != $ac_func;
40195 ;
40196 return 0;
40197}
40198_ACEOF
40199rm -f conftest.$ac_objext conftest$ac_exeext
40200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40201 (eval $ac_link) 2>conftest.er1
a848cd7e 40202 ac_status=$?
ac1cb8d3
VS
40203 grep -v '^ *+' conftest.er1 >conftest.err
40204 rm -f conftest.er1
40205 cat conftest.err >&5
a848cd7e
SC
40206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40207 (exit $ac_status); } &&
9dd0f6c2 40208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40210 (eval $ac_try) 2>&5
40211 ac_status=$?
40212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); }; } &&
40214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40216 (eval $ac_try) 2>&5
40217 ac_status=$?
40218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40219 (exit $ac_status); }; }; then
40220 eval "$as_ac_var=yes"
40221else
40222 echo "$as_me: failed program was:" >&5
40223sed 's/^/| /' conftest.$ac_ext >&5
40224
40225eval "$as_ac_var=no"
40226fi
ac1cb8d3
VS
40227rm -f conftest.err conftest.$ac_objext \
40228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40229fi
40230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40232if test `eval echo '${'$as_ac_var'}'` = yes; then
40233 cat >>confdefs.h <<_ACEOF
40234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40235_ACEOF
40236 have_sin=1
40237fi
40238done
40239
40240
40241for ac_func in ceil
40242do
40243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40244echo "$as_me:$LINENO: checking for $ac_func" >&5
40245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40246if eval "test \"\${$as_ac_var+set}\" = set"; then
40247 echo $ECHO_N "(cached) $ECHO_C" >&6
40248else
40249 cat >conftest.$ac_ext <<_ACEOF
40250/* confdefs.h. */
40251_ACEOF
40252cat confdefs.h >>conftest.$ac_ext
40253cat >>conftest.$ac_ext <<_ACEOF
40254/* end confdefs.h. */
ac1cb8d3
VS
40255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40257#define $ac_func innocuous_$ac_func
40258
a848cd7e
SC
40259/* System header to define __stub macros and hopefully few prototypes,
40260 which can conflict with char $ac_func (); below.
40261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40263
a848cd7e
SC
40264#ifdef __STDC__
40265# include <limits.h>
40266#else
40267# include <assert.h>
40268#endif
ac1cb8d3
VS
40269
40270#undef $ac_func
40271
a848cd7e
SC
40272/* Override any gcc2 internal prototype to avoid an error. */
40273#ifdef __cplusplus
40274extern "C"
40275{
40276#endif
40277/* We use char because int might match the return type of a gcc2
40278 builtin and then its argument prototype would still apply. */
40279char $ac_func ();
40280/* The GNU C library defines this for functions which it implements
40281 to always fail with ENOSYS. Some functions are actually named
40282 something starting with __ and the normal name is an alias. */
40283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40284choke me
40285#else
40286char (*f) () = $ac_func;
40287#endif
40288#ifdef __cplusplus
40289}
40290#endif
40291
40292int
40293main ()
40294{
40295return f != $ac_func;
40296 ;
40297 return 0;
40298}
40299_ACEOF
40300rm -f conftest.$ac_objext conftest$ac_exeext
40301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40302 (eval $ac_link) 2>conftest.er1
a848cd7e 40303 ac_status=$?
ac1cb8d3
VS
40304 grep -v '^ *+' conftest.er1 >conftest.err
40305 rm -f conftest.er1
40306 cat conftest.err >&5
a848cd7e
SC
40307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308 (exit $ac_status); } &&
9dd0f6c2 40309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40311 (eval $ac_try) 2>&5
40312 ac_status=$?
40313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40314 (exit $ac_status); }; } &&
40315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40317 (eval $ac_try) 2>&5
40318 ac_status=$?
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); }; }; then
40321 eval "$as_ac_var=yes"
40322else
40323 echo "$as_me: failed program was:" >&5
40324sed 's/^/| /' conftest.$ac_ext >&5
40325
40326eval "$as_ac_var=no"
40327fi
ac1cb8d3
VS
40328rm -f conftest.err conftest.$ac_objext \
40329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40330fi
40331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40333if test `eval echo '${'$as_ac_var'}'` = yes; then
40334 cat >>confdefs.h <<_ACEOF
40335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40336_ACEOF
40337 have_ceil=1
40338fi
40339done
40340
40341 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40342echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40343 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40344 echo "$as_me:$LINENO: result: yes" >&5
40345echo "${ECHO_T}yes" >&6
40346 else
40347 echo "$as_me:$LINENO: result: no" >&5
40348echo "${ECHO_T}no" >&6
40349 # not sure we should warn the user, crash, etc.
40350 fi
40351fi
40352
40353if test "$wxUSE_GUI" = "yes"; then
40354
40355
8bce5cda
MW
40356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40357 dynamic erase event exec font image minimal mobile \
40358 mobile/wxedit mobile/styles propsize render \
40359 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40360
40361 if test "$wxUSE_MONOLITHIC" != "yes"; then
40362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40363 fi
0b78747f 40364 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40366 if test "$wxUSE_UNIVERSAL" != "yes"; then
40367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40368 fi
40369 fi
40370 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40372 fi
a848cd7e
SC
40373else
40374 SAMPLES_SUBDIRS="console"
40375fi
40376
40377
ceec2216 40378INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40379-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40380
40381if test "$GXX" = yes ; then
5294a27e
VZ
40382 CWARNINGS="-Wall"
40383 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40384 fi
40385
40386EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40387
0c3c69fc 40388CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40389CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40390CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40391
95986553
DE
40392if test "x$MWCC" = "xyes"; then
40393
40394 CC="$CC -cwd source -I-"
40395 CXX="$CXX -cwd source -I-"
40396fi
40397
a848cd7e 40398
0c3c69fc 40399LIBS=`echo $LIBS`
a848cd7e
SC
40400EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40401EXTRALIBS_XML="$EXPAT_LINK"
40402EXTRALIBS_HTML="$MSPACK_LINK"
40403EXTRALIBS_ODBC="$ODBC_LINK"
40404if test "$wxUSE_GUI" = "yes"; then
2e350179 40405 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40406fi
40407if test "$wxUSE_OPENGL" = "yes"; then
40408 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40409fi
40410
40411LDFLAGS="$LDFLAGS $PROFILE"
40412
40413if test "$wxUSE_GTK" = 1; then
40414 WXCONFIG_INCLUDE=
40415else
40416 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40417fi
40418
40419WXCONFIG_EXTRALIBS="$LIBS"
40420
40421if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40422 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40423fi
40424if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40425 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40426fi
40427if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40428 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40429fi
40430if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40431 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40432fi
40433if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40434 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40435fi
40436if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40437 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40438fi
40439if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40440 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40441fi
40442
40443for i in $wxconfig_3rdparty ; do
74802184 40444 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40445done
40446
40447
40448if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40449 WXUNIV=1
40450else
40451 WXUNIV=0
40452fi
40453
40454
40455
40456
40457
40458
40459
40460
40461
40462if test $wxUSE_MONOLITHIC = "yes" ; then
40463 MONOLITHIC=1
40464else
40465 MONOLITHIC=0
40466fi
40467
40468if test $wxUSE_PLUGINS = "yes" ; then
40469 USE_PLUGINS=1
40470else
40471 USE_PLUGINS=0
40472fi
40473
40474if test $wxUSE_ODBC != "no" ; then
40475 USE_ODBC=1
40476else
40477 USE_ODBC=0
40478fi
40479
16358932
VZ
40480if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40481 USE_QA=1
40482else
40483 USE_QA=0
40484fi
40485
a848cd7e
SC
40486if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40487 OFFICIAL_BUILD=1
40488else
40489 OFFICIAL_BUILD=0
40490fi
40491
40492
40493
40494
40495
40496
40497
40498
40499
40500
40501
40502
40503
40504
40505
40506
40507
40508
40509
ceec2216 40510
d1c38808 40511
a848cd7e
SC
40512
40513
40514TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40515
40516
40517
40518
40519
40520
40521
40522
4d4ff94c
VZ
40523case "$TOOLKIT" in
40524 GTK)
40525 TOOLKIT_USER="GTK+"
40526 if test "$WXGTK20" = 1; then
40527 TOOLKIT_USER="$TOOLKIT_USER 2"
40528 fi
9a8f0513 40529 ;;
4d4ff94c
VZ
40530
40531 *)
40532 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40533 ;;
4d4ff94c 40534esac
a848cd7e 40535
9a8f0513 40536
1e9e8aba
DE
40537
40538
a848cd7e
SC
40539 if test "x$BAKEFILE_HOST" = "x"; then
40540 BAKEFILE_HOST="${host}"
40541 fi
40542
40543 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40544
40545 if test -n "$ac_tool_prefix"; then
40546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40547set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40548echo "$as_me:$LINENO: checking for $ac_word" >&5
40549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40550if test "${ac_cv_prog_RANLIB+set}" = set; then
40551 echo $ECHO_N "(cached) $ECHO_C" >&6
40552else
40553 if test -n "$RANLIB"; then
40554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40555else
40556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40557for as_dir in $PATH
40558do
40559 IFS=$as_save_IFS
40560 test -z "$as_dir" && as_dir=.
40561 for ac_exec_ext in '' $ac_executable_extensions; do
40562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40565 break 2
40566 fi
40567done
40568done
40569
40570fi
40571fi
40572RANLIB=$ac_cv_prog_RANLIB
40573if test -n "$RANLIB"; then
40574 echo "$as_me:$LINENO: result: $RANLIB" >&5
40575echo "${ECHO_T}$RANLIB" >&6
40576else
40577 echo "$as_me:$LINENO: result: no" >&5
40578echo "${ECHO_T}no" >&6
40579fi
40580
40581fi
40582if test -z "$ac_cv_prog_RANLIB"; then
40583 ac_ct_RANLIB=$RANLIB
40584 # Extract the first word of "ranlib", so it can be a program name with args.
40585set dummy ranlib; ac_word=$2
40586echo "$as_me:$LINENO: checking for $ac_word" >&5
40587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40588if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40589 echo $ECHO_N "(cached) $ECHO_C" >&6
40590else
40591 if test -n "$ac_ct_RANLIB"; then
40592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40593else
40594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40595for as_dir in $PATH
40596do
40597 IFS=$as_save_IFS
40598 test -z "$as_dir" && as_dir=.
40599 for ac_exec_ext in '' $ac_executable_extensions; do
40600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40601 ac_cv_prog_ac_ct_RANLIB="ranlib"
40602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40603 break 2
40604 fi
40605done
40606done
40607
40608 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40609fi
40610fi
40611ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40612if test -n "$ac_ct_RANLIB"; then
40613 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40614echo "${ECHO_T}$ac_ct_RANLIB" >&6
40615else
40616 echo "$as_me:$LINENO: result: no" >&5
40617echo "${ECHO_T}no" >&6
40618fi
40619
40620 RANLIB=$ac_ct_RANLIB
40621else
40622 RANLIB="$ac_cv_prog_RANLIB"
40623fi
40624
40625 # Find a good install program. We prefer a C program (faster),
40626# so one script is as good as another. But avoid the broken or
40627# incompatible versions:
40628# SysV /etc/install, /usr/sbin/install
40629# SunOS /usr/etc/install
40630# IRIX /sbin/install
40631# AIX /bin/install
40632# AmigaOS /C/install, which installs bootblocks on floppy discs
40633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40636# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40637# ./install, which can be erroneously created by make from ./install.sh.
40638echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40639echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40640if test -z "$INSTALL"; then
40641if test "${ac_cv_path_install+set}" = set; then
40642 echo $ECHO_N "(cached) $ECHO_C" >&6
40643else
40644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40645for as_dir in $PATH
40646do
40647 IFS=$as_save_IFS
40648 test -z "$as_dir" && as_dir=.
40649 # Account for people who put trailing slashes in PATH elements.
40650case $as_dir/ in
40651 ./ | .// | /cC/* | \
40652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40653 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40654 /usr/ucb/* ) ;;
40655 *)
40656 # OSF1 and SCO ODT 3.0 have their own names for install.
40657 # Don't use installbsd from OSF since it installs stuff as root
40658 # by default.
40659 for ac_prog in ginstall scoinst install; do
40660 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40661 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40662 if test $ac_prog = install &&
40663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40664 # AIX install. It has an incompatible calling convention.
40665 :
40666 elif test $ac_prog = install &&
40667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40668 # program-specific install script used by HP pwplus--don't use.
40669 :
40670 else
40671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40672 break 3
40673 fi
40674 fi
a848cd7e
SC
40675 done
40676 done
40677 ;;
40678esac
40679done
40680
40681
40682fi
40683 if test "${ac_cv_path_install+set}" = set; then
40684 INSTALL=$ac_cv_path_install
40685 else
40686 # As a last resort, use the slow shell script. We don't cache a
40687 # path for INSTALL within a source directory, because that will
40688 # break other packages using the cache if that directory is
40689 # removed, or if the path is relative.
40690 INSTALL=$ac_install_sh
40691 fi
40692fi
40693echo "$as_me:$LINENO: result: $INSTALL" >&5
40694echo "${ECHO_T}$INSTALL" >&6
40695
40696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40697# It thinks the first close brace ends the variable substitution.
40698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40699
40700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40701
40702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40703
40704 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40705echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40706LN_S=$as_ln_s
40707if test "$LN_S" = "ln -s"; then
40708 echo "$as_me:$LINENO: result: yes" >&5
40709echo "${ECHO_T}yes" >&6
40710else
40711 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40712echo "${ECHO_T}no, using $LN_S" >&6
40713fi
40714
40715
40716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40717echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40718set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40719if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40720 echo $ECHO_N "(cached) $ECHO_C" >&6
40721else
40722 cat >conftest.make <<\_ACEOF
40723all:
40724 @echo 'ac_maketemp="$(MAKE)"'
40725_ACEOF
40726# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40727eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40728if test -n "$ac_maketemp"; then
40729 eval ac_cv_prog_make_${ac_make}_set=yes
40730else
40731 eval ac_cv_prog_make_${ac_make}_set=no
40732fi
40733rm -f conftest.make
40734fi
40735if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40736 echo "$as_me:$LINENO: result: yes" >&5
40737echo "${ECHO_T}yes" >&6
40738 SET_MAKE=
40739else
40740 echo "$as_me:$LINENO: result: no" >&5
40741echo "${ECHO_T}no" >&6
40742 SET_MAKE="MAKE=${MAKE-make}"
40743fi
40744
40745
40746
40747 if test -n "$ac_tool_prefix"; then
40748 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40749set dummy ${ac_tool_prefix}ar; ac_word=$2
40750echo "$as_me:$LINENO: checking for $ac_word" >&5
40751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40752if test "${ac_cv_prog_AR+set}" = set; then
40753 echo $ECHO_N "(cached) $ECHO_C" >&6
40754else
40755 if test -n "$AR"; then
40756 ac_cv_prog_AR="$AR" # Let the user override the test.
40757else
40758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40759for as_dir in $PATH
40760do
40761 IFS=$as_save_IFS
40762 test -z "$as_dir" && as_dir=.
40763 for ac_exec_ext in '' $ac_executable_extensions; do
40764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40765 ac_cv_prog_AR="${ac_tool_prefix}ar"
40766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40767 break 2
40768 fi
40769done
40770done
40771
40772fi
40773fi
40774AR=$ac_cv_prog_AR
40775if test -n "$AR"; then
40776 echo "$as_me:$LINENO: result: $AR" >&5
40777echo "${ECHO_T}$AR" >&6
40778else
40779 echo "$as_me:$LINENO: result: no" >&5
40780echo "${ECHO_T}no" >&6
40781fi
40782
40783fi
40784if test -z "$ac_cv_prog_AR"; then
40785 ac_ct_AR=$AR
40786 # Extract the first word of "ar", so it can be a program name with args.
40787set dummy ar; ac_word=$2
40788echo "$as_me:$LINENO: checking for $ac_word" >&5
40789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40790if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40791 echo $ECHO_N "(cached) $ECHO_C" >&6
40792else
40793 if test -n "$ac_ct_AR"; then
40794 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40795else
40796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40797for as_dir in $PATH
40798do
40799 IFS=$as_save_IFS
40800 test -z "$as_dir" && as_dir=.
40801 for ac_exec_ext in '' $ac_executable_extensions; do
40802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40803 ac_cv_prog_ac_ct_AR="ar"
40804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40805 break 2
40806 fi
40807done
40808done
40809
40810 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40811fi
40812fi
40813ac_ct_AR=$ac_cv_prog_ac_ct_AR
40814if test -n "$ac_ct_AR"; then
40815 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40816echo "${ECHO_T}$ac_ct_AR" >&6
40817else
40818 echo "$as_me:$LINENO: result: no" >&5
40819echo "${ECHO_T}no" >&6
40820fi
40821
40822 AR=$ac_ct_AR
40823else
40824 AR="$ac_cv_prog_AR"
40825fi
40826
40827 if test -n "$ac_tool_prefix"; then
40828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40829set dummy ${ac_tool_prefix}strip; ac_word=$2
40830echo "$as_me:$LINENO: checking for $ac_word" >&5
40831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40832if test "${ac_cv_prog_STRIP+set}" = set; then
40833 echo $ECHO_N "(cached) $ECHO_C" >&6
40834else
40835 if test -n "$STRIP"; then
40836 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40837else
40838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40839for as_dir in $PATH
40840do
40841 IFS=$as_save_IFS
40842 test -z "$as_dir" && as_dir=.
40843 for ac_exec_ext in '' $ac_executable_extensions; do
40844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40845 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40847 break 2
40848 fi
40849done
40850done
40851
40852fi
40853fi
40854STRIP=$ac_cv_prog_STRIP
40855if test -n "$STRIP"; then
40856 echo "$as_me:$LINENO: result: $STRIP" >&5
40857echo "${ECHO_T}$STRIP" >&6
40858else
40859 echo "$as_me:$LINENO: result: no" >&5
40860echo "${ECHO_T}no" >&6
40861fi
40862
40863fi
40864if test -z "$ac_cv_prog_STRIP"; then
40865 ac_ct_STRIP=$STRIP
40866 # Extract the first word of "strip", so it can be a program name with args.
40867set dummy strip; ac_word=$2
40868echo "$as_me:$LINENO: checking for $ac_word" >&5
40869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40870if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40871 echo $ECHO_N "(cached) $ECHO_C" >&6
40872else
40873 if test -n "$ac_ct_STRIP"; then
40874 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40875else
40876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40877for as_dir in $PATH
40878do
40879 IFS=$as_save_IFS
40880 test -z "$as_dir" && as_dir=.
40881 for ac_exec_ext in '' $ac_executable_extensions; do
40882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40883 ac_cv_prog_ac_ct_STRIP="strip"
40884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40885 break 2
40886 fi
40887done
40888done
40889
40890 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40891fi
40892fi
40893ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40894if test -n "$ac_ct_STRIP"; then
40895 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40896echo "${ECHO_T}$ac_ct_STRIP" >&6
40897else
40898 echo "$as_me:$LINENO: result: no" >&5
40899echo "${ECHO_T}no" >&6
40900fi
40901
40902 STRIP=$ac_ct_STRIP
40903else
40904 STRIP="$ac_cv_prog_STRIP"
40905fi
40906
40907 if test -n "$ac_tool_prefix"; then
40908 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40909set dummy ${ac_tool_prefix}nm; ac_word=$2
40910echo "$as_me:$LINENO: checking for $ac_word" >&5
40911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40912if test "${ac_cv_prog_NM+set}" = set; then
40913 echo $ECHO_N "(cached) $ECHO_C" >&6
40914else
40915 if test -n "$NM"; then
40916 ac_cv_prog_NM="$NM" # Let the user override the test.
40917else
40918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40919for as_dir in $PATH
40920do
40921 IFS=$as_save_IFS
40922 test -z "$as_dir" && as_dir=.
40923 for ac_exec_ext in '' $ac_executable_extensions; do
40924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40925 ac_cv_prog_NM="${ac_tool_prefix}nm"
40926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40927 break 2
40928 fi
40929done
40930done
40931
40932fi
40933fi
40934NM=$ac_cv_prog_NM
40935if test -n "$NM"; then
40936 echo "$as_me:$LINENO: result: $NM" >&5
40937echo "${ECHO_T}$NM" >&6
40938else
40939 echo "$as_me:$LINENO: result: no" >&5
40940echo "${ECHO_T}no" >&6
40941fi
40942
40943fi
40944if test -z "$ac_cv_prog_NM"; then
40945 ac_ct_NM=$NM
40946 # Extract the first word of "nm", so it can be a program name with args.
40947set dummy nm; ac_word=$2
40948echo "$as_me:$LINENO: checking for $ac_word" >&5
40949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40950if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40951 echo $ECHO_N "(cached) $ECHO_C" >&6
40952else
40953 if test -n "$ac_ct_NM"; then
40954 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40955else
40956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40957for as_dir in $PATH
40958do
40959 IFS=$as_save_IFS
40960 test -z "$as_dir" && as_dir=.
40961 for ac_exec_ext in '' $ac_executable_extensions; do
40962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40963 ac_cv_prog_ac_ct_NM="nm"
40964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40965 break 2
40966 fi
40967done
40968done
40969
40970 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40971fi
40972fi
40973ac_ct_NM=$ac_cv_prog_ac_ct_NM
40974if test -n "$ac_ct_NM"; then
40975 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40976echo "${ECHO_T}$ac_ct_NM" >&6
40977else
40978 echo "$as_me:$LINENO: result: no" >&5
40979echo "${ECHO_T}no" >&6
40980fi
40981
40982 NM=$ac_ct_NM
40983else
40984 NM="$ac_cv_prog_NM"
40985fi
40986
40987
40988 case ${BAKEFILE_HOST} in
40989 *-hp-hpux* )
1e9e8aba 40990 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40991 ;;
40992 *) INSTALL_DIR="$INSTALL -d"
40993 ;;
40994 esac
40995
40996
40997 LDFLAGS_GUI=
40998 case ${BAKEFILE_HOST} in
40999 *-*-cygwin* | *-*-mingw32* )
41000 LDFLAGS_GUI="-mwindows"
41001 esac
41002
41003
41004 fi
41005
41006 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41007echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41008if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41009 echo $ECHO_N "(cached) $ECHO_C" >&6
41010else
41011
41012 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41013 egrep -s GNU > /dev/null); then
41014 bakefile_cv_prog_makeisgnu="yes"
41015 else
41016 bakefile_cv_prog_makeisgnu="no"
41017 fi
41018
41019fi
41020echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41021echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41022
41023 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41024 IF_GNU_MAKE=""
41025 else
41026 IF_GNU_MAKE="#"
41027 fi
41028
41029
41030
41031 PLATFORM_UNIX=0
41032 PLATFORM_WIN32=0
41033 PLATFORM_MSDOS=0
41034 PLATFORM_MAC=0
1e9e8aba 41035 PLATFORM_MACOS=0
a848cd7e
SC
41036 PLATFORM_MACOSX=0
41037 PLATFORM_OS2=0
1e9e8aba 41038 PLATFORM_BEOS=0
a848cd7e
SC
41039
41040 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41041 case "${BAKEFILE_HOST}" in
41042 *-*-cygwin* | *-*-mingw32* )
41043 PLATFORM_WIN32=1
41044 ;;
41045 *-pc-msdosdjgpp )
41046 PLATFORM_MSDOS=1
41047 ;;
41048 *-pc-os2_emx | *-pc-os2-emx )
41049 PLATFORM_OS2=1
41050 ;;
41051 powerpc-*-darwin* )
41052 PLATFORM_MAC=1
41053 PLATFORM_MACOSX=1
41054 ;;
1e9e8aba
DE
41055 *-*-beos* )
41056 PLATFORM_BEOS=1
41057 ;;
41058 powerpc-apple-macos* )
41059 PLATFORM_MAC=1
41060 PLATFORM_MACOS=1
41061 ;;
a848cd7e
SC
41062 * )
41063 PLATFORM_UNIX=1
41064 ;;
41065 esac
41066 else
41067 case "$BAKEFILE_FORCE_PLATFORM" in
41068 win32 )
41069 PLATFORM_WIN32=1
41070 ;;
41071 msdos )
41072 PLATFORM_MSDOS=1
41073 ;;
41074 os2 )
41075 PLATFORM_OS2=1
41076 ;;
41077 darwin )
41078 PLATFORM_MAC=1
41079 PLATFORM_MACOSX=1
41080 ;;
41081 unix )
41082 PLATFORM_UNIX=1
41083 ;;
1e9e8aba
DE
41084 beos )
41085 PLATFORM_BEOS=1
41086 ;;
a848cd7e
SC
41087 * )
41088 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41089echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41090 { (exit 1); exit 1; }; }
41091 ;;
41092 esac
41093 fi
41094
41095
41096
41097
41098
41099
41100
41101
41102
1e9e8aba
DE
41103
41104
a848cd7e
SC
41105 # Check whether --enable-omf or --disable-omf was given.
41106if test "${enable_omf+set}" = set; then
41107 enableval="$enable_omf"
41108 bk_os2_use_omf="$enableval"
41109fi;
41110
41111 case "${BAKEFILE_HOST}" in
41112 *-*-darwin* )
41113 CFLAGS="$CFLAGS -fno-common"
41114 CXXFLAGS="$CXXFLAGS -fno-common"
41115 ;;
41116
41117 *-pc-os2_emx | *-pc-os2-emx )
41118 if test "x$bk_os2_use_omf" = "xyes" ; then
41119 AR=emxomfar
41120 RANLIB=:
41121 LDFLAGS="-Zomf $LDFLAGS"
41122 CFLAGS="-Zomf $CFLAGS"
41123 CXXFLAGS="-Zomf $CXXFLAGS"
41124 OS2_LIBEXT="lib"
41125 else
41126 OS2_LIBEXT="a"
41127 fi
41128 ;;
1e9e8aba
DE
41129
41130 i*86-*-beos* )
41131 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41132 ;;
a848cd7e
SC
41133 esac
41134
41135
41136 SO_SUFFIX="so"
41137 SO_SUFFIX_MODULE="so"
41138 EXEEXT=""
41139 LIBPREFIX="lib"
41140 LIBEXT=".a"
41141 DLLPREFIX="lib"
41142 DLLPREFIX_MODULE=""
41143 DLLIMP_SUFFIX=""
41144
41145 case "${BAKEFILE_HOST}" in
41146 *-hp-hpux* )
41147 SO_SUFFIX="sl"
41148 SO_SUFFIX_MODULE="sl"
41149 ;;
41150 *-*-aix* )
41151 SO_SUFFIX="a"
41152 SO_SUFFIX_MODULE="a"
41153 ;;
41154 *-*-cygwin* | *-*-mingw32* )
41155 SO_SUFFIX="dll"
41156 SO_SUFFIX_MODULE="dll"
41157 DLLIMP_SUFFIX="dll.a"
41158 EXEEXT=".exe"
41159 DLLPREFIX=""
41160 ;;
41161 *-pc-msdosdjgpp )
41162 EXEEXT=".exe"
41163 DLLPREFIX=""
41164 ;;
41165 *-pc-os2_emx | *-pc-os2-emx )
41166 SO_SUFFIX="dll"
41167 SO_SUFFIX_MODULE="dll"
41168 DLLIMP_SUFFIX=$OS2_LIBEXT
41169 EXEEXT=".exe"
41170 DLLPREFIX=""
41171 LIBPREFIX=""
41172 LIBEXT=".$OS2_LIBEXT"
41173 ;;
41174 powerpc-*-darwin* )
41175 SO_SUFFIX="dylib"
41176 SO_SUFFIX_MODULE="bundle"
41177 ;;
41178 esac
41179
41180 if test "x$DLLIMP_SUFFIX" = "x" ; then
41181 DLLIMP_SUFFIX="$SO_SUFFIX"
41182 fi
41183
41184
41185
41186
41187
41188
41189
41190
41191
41192
41193
1e9e8aba
DE
41194 PIC_FLAG=""
41195 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41196 PIC_FLAG="-fPIC"
41197 fi
41198
1e9e8aba
DE
41199 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41200 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41201
a848cd7e
SC
41202 case "${BAKEFILE_HOST}" in
41203 *-hp-hpux* )
1e9e8aba 41204 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41205 LDFLAGS="$LDFLAGS -L/usr/lib"
41206
41207 SHARED_LD_CC="${CC} -b -o"
41208 SHARED_LD_CXX="${CXX} -b -o"
41209 PIC_FLAG="+Z"
41210 fi
41211 ;;
41212
41213 *-*-linux* )
41214 if test "x$GCC" != "xyes"; then
41215 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41216echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41217if test "${bakefile_cv_prog_icc+set}" = set; then
41218 echo $ECHO_N "(cached) $ECHO_C" >&6
41219else
41220
41221 cat >conftest.$ac_ext <<_ACEOF
41222/* confdefs.h. */
41223_ACEOF
41224cat confdefs.h >>conftest.$ac_ext
41225cat >>conftest.$ac_ext <<_ACEOF
41226/* end confdefs.h. */
41227
41228int
41229main ()
41230{
41231
41232 #ifndef __INTEL_COMPILER
41233 #error Not icc
41234 #endif
41235
41236 ;
41237 return 0;
41238}
41239_ACEOF
41240rm -f conftest.$ac_objext
41241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41242 (eval $ac_compile) 2>conftest.er1
a848cd7e 41243 ac_status=$?
ac1cb8d3
VS
41244 grep -v '^ *+' conftest.er1 >conftest.err
41245 rm -f conftest.er1
41246 cat conftest.err >&5
a848cd7e
SC
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); } &&
9dd0f6c2 41249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41252 ac_status=$?
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; } &&
41255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41257 (eval $ac_try) 2>&5
41258 ac_status=$?
41259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41260 (exit $ac_status); }; }; then
41261 bakefile_cv_prog_icc=yes
41262else
41263 echo "$as_me: failed program was:" >&5
41264sed 's/^/| /' conftest.$ac_ext >&5
41265
41266bakefile_cv_prog_icc=no
41267
41268fi
ac1cb8d3 41269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41270
41271fi
41272echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41273echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41274 if test "$bakefile_cv_prog_icc" = "yes"; then
41275 PIC_FLAG="-KPIC"
41276 fi
41277 fi
41278 ;;
41279
41280 *-*-solaris2* )
41281 if test "x$GCC" != xyes ; then
41282 SHARED_LD_CC="${CC} -G -o"
41283 SHARED_LD_CXX="${CXX} -G -o"
41284 PIC_FLAG="-KPIC"
41285 fi
41286 ;;
41287
41288 *-*-darwin* )
41289
41290 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41291echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41292if test "${wx_cv_gcc31+set}" = set; then
41293 echo $ECHO_N "(cached) $ECHO_C" >&6
41294else
41295
41296 cat >conftest.$ac_ext <<_ACEOF
41297/* confdefs.h. */
41298_ACEOF
41299cat confdefs.h >>conftest.$ac_ext
41300cat >>conftest.$ac_ext <<_ACEOF
41301/* end confdefs.h. */
41302
41303int
41304main ()
41305{
41306
41307 #if (__GNUC__ < 3) || \
41308 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41309 #error old gcc
41310 #endif
41311
41312 ;
41313 return 0;
41314}
41315_ACEOF
41316rm -f conftest.$ac_objext
41317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41318 (eval $ac_compile) 2>conftest.er1
a848cd7e 41319 ac_status=$?
ac1cb8d3
VS
41320 grep -v '^ *+' conftest.er1 >conftest.err
41321 rm -f conftest.er1
41322 cat conftest.err >&5
a848cd7e
SC
41323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); } &&
9dd0f6c2 41325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41327 (eval $ac_try) 2>&5
41328 ac_status=$?
41329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41330 (exit $ac_status); }; } &&
41331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41333 (eval $ac_try) 2>&5
41334 ac_status=$?
41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336 (exit $ac_status); }; }; then
41337
41338 wx_cv_gcc31=yes
41339
41340else
41341 echo "$as_me: failed program was:" >&5
41342sed 's/^/| /' conftest.$ac_ext >&5
41343
41344
41345 wx_cv_gcc31=no
41346
41347
41348fi
ac1cb8d3 41349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41350
41351fi
41352echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41353echo "${ECHO_T}$wx_cv_gcc31" >&6
41354 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41355
41356D='$'
41357cat <<EOF >shared-ld-sh
a848cd7e
SC
41358#!/bin/sh
41359#-----------------------------------------------------------------------------
41360#-- Name: distrib/mac/shared-ld-sh
41361#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41362#-- Author: Gilles Depeyrot
41363#-- Copyright: (c) 2002 Gilles Depeyrot
41364#-- Licence: any use permitted
41365#-----------------------------------------------------------------------------
41366
41367verbose=0
41368args=""
41369objects=""
41370linking_flag="-dynamiclib"
41371
473276a9
VS
41372while test ${D}# -gt 0; do
41373 case ${D}1 in
a848cd7e
SC
41374
41375 -v)
41376 verbose=1
41377 ;;
41378
41379 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41380 # collect these options and values
473276a9 41381 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41382 shift
41383 ;;
41384
41385 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41386 # collect these options
473276a9 41387 args="${D}{args} ${D}1"
a848cd7e
SC
41388 ;;
41389
41390 -dynamiclib|-bundle)
473276a9 41391 linking_flag="${D}1"
a848cd7e
SC
41392 ;;
41393
41394 -*)
473276a9 41395 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41396 exit 1
41397 ;;
41398
41399 *.o | *.a | *.dylib)
41400 # collect object files
473276a9 41401 objects="${D}{objects} ${D}1"
a848cd7e
SC
41402 ;;
41403
41404 *)
473276a9 41405 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41406 exit 1
41407 ;;
41408
41409 esac
41410 shift
41411done
41412
41413#
41414# Link one module containing all the others
41415#
473276a9
VS
41416if test ${D}{verbose} = 1; then
41417 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41418fi
473276a9
VS
41419c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41420status=${D}?
41421if test ${D}{status} != 0; then
41422 exit ${D}{status}
a848cd7e
SC
41423fi
41424
41425#
41426# Link the shared library from the single module created
41427#
473276a9
VS
41428if test ${D}{verbose} = 1; then
41429 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41430fi
473276a9
VS
41431c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41432status=${D}?
41433if test ${D}{status} != 0; then
41434 exit ${D}{status}
a848cd7e
SC
41435fi
41436
41437#
41438# Remove intermediate module
41439#
473276a9 41440rm -f master.${D}${D}.o
a848cd7e
SC
41441
41442exit 0
41443EOF
473276a9 41444
a848cd7e
SC
41445 chmod +x shared-ld-sh
41446
41447 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41448 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41449 SHARED_LD_CXX="$SHARED_LD_CC"
41450 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41451 else
41452 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41453 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41454 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41455 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41456 fi
41457
41458 PIC_FLAG="-dynamic -fPIC"
41459 ;;
41460
41461 *-*-aix* )
41462 if test "x$GCC" != "xyes"; then
41463 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41464set dummy makeC++SharedLib; ac_word=$2
41465echo "$as_me:$LINENO: checking for $ac_word" >&5
41466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41467if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41468 echo $ECHO_N "(cached) $ECHO_C" >&6
41469else
41470 if test -n "$AIX_CXX_LD"; then
41471 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41472else
41473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41474for as_dir in $PATH
41475do
41476 IFS=$as_save_IFS
41477 test -z "$as_dir" && as_dir=.
41478 for ac_exec_ext in '' $ac_executable_extensions; do
41479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41480 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41482 break 2
41483 fi
41484done
41485done
41486
41487 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41488fi
41489fi
41490AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41491if test -n "$AIX_CXX_LD"; then
41492 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41493echo "${ECHO_T}$AIX_CXX_LD" >&6
41494else
41495 echo "$as_me:$LINENO: result: no" >&5
41496echo "${ECHO_T}no" >&6
41497fi
41498
41499 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41500 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41501 fi
41502 ;;
41503
41504 *-*-beos* )
1e9e8aba
DE
41505 SHARED_LD_CC="${LD} -nostart -o"
41506 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41507 ;;
41508
41509 *-*-irix* )
41510 if test "x$GCC" != "xyes"; then
41511 PIC_FLAG="-KPIC"
41512 fi
41513 ;;
41514
41515 *-*-cygwin* | *-*-mingw32* )
41516 PIC_FLAG=""
1e9e8aba
DE
41517 SHARED_LD_CC="\$(CC) -shared -o"
41518 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41519 ;;
41520
41521 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41522 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41523 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41524 PIC_FLAG=""
473276a9
VS
41525
41526D='$'
41527cat <<EOF >dllar.sh
41528#!/bin/sh
41529#
41530# dllar - a tool to build both a .dll and an .a file
41531# from a set of object (.o) files for EMX/OS2.
41532#
41533# Written by Andrew Zabolotny, bit@freya.etu.ru
41534# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41535#
41536# This script will accept a set of files on the command line.
41537# All the public symbols from the .o files will be exported into
41538# a .DEF file, then linker will be run (through gcc) against them to
41539# build a shared library consisting of all given .o files. All libraries
41540# (.a) will be first decompressed into component .o files then act as
41541# described above. You can optionally give a description (-d "description")
41542# which will be put into .DLL. To see the list of accepted options (as well
41543# as command-line format) simply run this program without options. The .DLL
41544# is built to be imported by name (there is no guarantee that new versions
41545# of the library you build will have same ordinals for same symbols).
41546#
41547# dllar is free software; you can redistribute it and/or modify
41548# it under the terms of the GNU General Public License as published by
41549# the Free Software Foundation; either version 2, or (at your option)
41550# any later version.
41551#
41552# dllar is distributed in the hope that it will be useful,
41553# but WITHOUT ANY WARRANTY; without even the implied warranty of
41554# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41555# GNU General Public License for more details.
41556#
41557# You should have received a copy of the GNU General Public License
41558# along with dllar; see the file COPYING. If not, write to the Free
41559# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41560# 02111-1307, USA.
41561
41562# To successfuly run this program you will need:
41563# - Current drive should have LFN support (HPFS, ext2, network, etc)
41564# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41565# - gcc
41566# (used to build the .dll)
41567# - emxexp
41568# (used to create .def file from .o files)
41569# - emximp
41570# (used to create .a file from .def file)
41571# - GNU text utilites (cat, sort, uniq)
41572# used to process emxexp output
41573# - GNU file utilities (mv, rm)
41574# - GNU sed
41575# - lxlite (optional, see flag below)
41576# (used for general .dll cleanup)
41577#
41578
41579flag_USE_LXLITE=1;
41580
41581#
41582# helper functions
41583# basnam, variant of basename, which does _not_ remove the path, _iff_
41584# second argument (suffix to remove) is given
41585basnam(){
41586 case ${D}# in
41587 1)
1e9e8aba 41588 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41589 ;;
41590 2)
41591 echo ${D}1 | sed 's/'${D}2'${D}//'
41592 ;;
41593 *)
41594 echo "error in basnam ${D}*"
41595 exit 8
41596 ;;
41597 esac
41598}
41599
41600# Cleanup temporary files and output
41601CleanUp() {
41602 cd ${D}curDir
41603 for i in ${D}inputFiles ; do
41604 case ${D}i in
41605 *!)
41606 rm -rf \`basnam ${D}i !\`
41607 ;;
41608 *)
41609 ;;
41610 esac
41611 done
41612
41613 # Kill result in case of failure as there is just to many stupid make/nmake
41614 # things out there which doesn't do this.
1e9e8aba 41615 if [ ${D}# -eq 0 ]; then
473276a9
VS
41616 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41617 fi
41618}
41619
41620# Print usage and exit script with rc=1.
41621PrintHelp() {
b1d22ded
DE
41622 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41623 echo ' [-name-mangler-script script.sh]'
41624 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41625 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41626 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41627 echo ' [*.o] [*.a]'
473276a9
VS
41628 echo '*> "output_file" should have no extension.'
41629 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41630 echo ' The import library name is derived from this and is set to "name".a,'
41631 echo ' unless overridden by -import'
41632 echo '*> "importlib_name" should have no extension.'
41633 echo ' If it has the .o, or .a extension, it is automatically removed.'
41634 echo ' This name is used as the import library name and may be longer and'
41635 echo ' more descriptive than the DLL name which has to follow the old '
41636 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41637 echo '*> "script.sh may be given to override the output_file name by a'
41638 echo ' different name. It is mainly useful if the regular make process'
41639 echo ' of some package does not take into account OS/2 restriction of'
41640 echo ' DLL name lengths. It takes the importlib name as input and is'
41641 echo ' supposed to procude a shorter name as output. The script should'
41642 echo ' expect to get importlib_name without extension and should produce'
41643 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41644 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41645 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41646 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41647 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41648 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41649 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41650 echo ' If the last character of a symbol is "*", all symbols beginning'
41651 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41652 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41653 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41654 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41655 echo ' C runtime DLLs.'
b1d22ded 41656 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41657 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41658 echo ' unchanged to GCC at the end of command line.'
41659 echo '*> If you create a DLL from a library and you do not specify -o,'
41660 echo ' the basename for DLL and import library will be set to library name,'
41661 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41662 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41663 echo ' library will be renamed into gcc_s.a.'
41664 echo '--------'
41665 echo 'Example:'
41666 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41667 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41668 CleanUp
41669 exit 1
41670}
41671
41672# Execute a command.
41673# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41674# @Uses Whatever CleanUp() uses.
41675doCommand() {
41676 echo "${D}*"
41677 eval ${D}*
41678 rcCmd=${D}?
41679
1e9e8aba 41680 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41681 echo "command failed, exit code="${D}rcCmd
41682 CleanUp
41683 exit ${D}rcCmd
41684 fi
41685}
41686
41687# main routine
41688# setup globals
41689cmdLine=${D}*
41690outFile=""
41691outimpFile=""
41692inputFiles=""
b1d22ded 41693renameScript=""
473276a9
VS
41694description=""
41695CC=gcc.exe
41696CFLAGS="-s -Zcrtdll"
41697EXTRA_CFLAGS=""
41698EXPORT_BY_ORDINALS=0
41699exclude_symbols=""
41700library_flags=""
41701curDir=\`pwd\`
41702curDirS=curDir
41703case ${D}curDirS in
41704*/)
41705 ;;
41706*)
41707 curDirS=${D}{curDirS}"/"
41708 ;;
41709esac
41710# Parse commandline
41711libsToLink=0
b1d22ded 41712omfLinking=0
1e9e8aba 41713while [ ${D}1 ]; do
473276a9
VS
41714 case ${D}1 in
41715 -ord*)
41716 EXPORT_BY_ORDINALS=1;
41717 ;;
41718 -o*)
41719 shift
41720 outFile=${D}1
41721 ;;
41722 -i*)
41723 shift
41724 outimpFile=${D}1
41725 ;;
b1d22ded
DE
41726 -name-mangler-script)
41727 shift
41728 renameScript=${D}1
41729 ;;
473276a9
VS
41730 -d*)
41731 shift
41732 description=${D}1
41733 ;;
41734 -f*)
41735 shift
41736 CFLAGS=${D}1
41737 ;;
41738 -c*)
41739 shift
41740 CC=${D}1
41741 ;;
41742 -h*)
41743 PrintHelp
41744 ;;
41745 -ex*)
41746 shift
41747 exclude_symbols=${D}{exclude_symbols}${D}1" "
41748 ;;
41749 -libf*)
41750 shift
41751 library_flags=${D}{library_flags}${D}1" "
41752 ;;
41753 -nocrt*)
41754 CFLAGS="-s"
41755 ;;
41756 -nolxl*)
41757 flag_USE_LXLITE=0
41758 ;;
41759 -* | /*)
41760 case ${D}1 in
41761 -L* | -l*)
41762 libsToLink=1
41763 ;;
b1d22ded
DE
41764 -Zomf)
41765 omfLinking=1
41766 ;;
473276a9
VS
41767 *)
41768 ;;
41769 esac
41770 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41771 ;;
b1d22ded
DE
41772 *.dll)
41773 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41774 if [ ${D}omfLinking -eq 1 ]; then
41775 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41776 else
41777 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41778 fi
41779 ;;
473276a9
VS
41780 *)
41781 found=0;
1e9e8aba 41782 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41783 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41784 else
41785 for file in ${D}1 ; do
1e9e8aba 41786 if [ -f ${D}file ]; then
473276a9
VS
41787 inputFiles="${D}{inputFiles} ${D}file"
41788 found=1
41789 fi
41790 done
1e9e8aba 41791 if [ ${D}found -eq 0 ]; then
473276a9
VS
41792 echo "ERROR: No file(s) found: "${D}1
41793 exit 8
41794 fi
41795 fi
41796 ;;
41797 esac
41798 shift
41799done # iterate cmdline words
41800
41801#
1e9e8aba 41802if [ -z "${D}inputFiles" ]; then
473276a9
VS
41803 echo "dllar: no input files"
41804 PrintHelp
41805fi
41806
41807# Now extract all .o files from .a files
41808newInputFiles=""
41809for file in ${D}inputFiles ; do
41810 case ${D}file in
41811 *.a | *.lib)
41812 case ${D}file in
41813 *.a)
41814 suffix=".a"
41815 AR="ar"
41816 ;;
41817 *.lib)
41818 suffix=".lib"
41819 AR="emxomfar"
41820 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41821 ;;
41822 *)
41823 ;;
41824 esac
41825 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41826 mkdir ${D}dirname
1e9e8aba 41827 if [ ${D}? -ne 0 ]; then
473276a9
VS
41828 echo "Failed to create subdirectory ./${D}dirname"
41829 CleanUp
41830 exit 8;
41831 fi
41832 # Append '!' to indicate archive
41833 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41834 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41835 cd ${D}curDir
41836 found=0;
41837 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41838 if [ -f ${D}subfile ]; then
473276a9 41839 found=1
1e9e8aba 41840 if [ -s ${D}subfile ]; then
473276a9
VS
41841 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41842 newInputFiles="${D}newInputFiles ${D}subfile"
41843 fi
41844 fi
41845 done
1e9e8aba
DE
41846 if [ ${D}found -eq 0 ]; then
41847 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41848 fi
41849 ;;
41850 *)
41851 newInputFiles="${D}{newInputFiles} ${D}file"
41852 ;;
41853 esac
41854done
41855inputFiles="${D}newInputFiles"
41856
41857# Output filename(s).
41858do_backup=0;
1e9e8aba 41859if [ -z ${D}outFile ]; then
473276a9
VS
41860 do_backup=1;
41861 set outFile ${D}inputFiles; outFile=${D}2
41862fi
41863
41864# If it is an archive, remove the '!' and the '_%' suffixes
41865case ${D}outFile in
41866*_%!)
41867 outFile=\`basnam ${D}outFile _%!\`
41868 ;;
41869*)
41870 ;;
41871esac
41872case ${D}outFile in
41873*.dll)
41874 outFile=\`basnam ${D}outFile .dll\`
41875 ;;
41876*.DLL)
41877 outFile=\`basnam ${D}outFile .DLL\`
41878 ;;
41879*.o)
41880 outFile=\`basnam ${D}outFile .o\`
41881 ;;
41882*.obj)
41883 outFile=\`basnam ${D}outFile .obj\`
41884 ;;
41885*.a)
41886 outFile=\`basnam ${D}outFile .a\`
41887 ;;
41888*.lib)
41889 outFile=\`basnam ${D}outFile .lib\`
41890 ;;
41891*)
41892 ;;
41893esac
41894case ${D}outimpFile in
41895*.a)
41896 outimpFile=\`basnam ${D}outimpFile .a\`
41897 ;;
41898*.lib)
41899 outimpFile=\`basnam ${D}outimpFile .lib\`
41900 ;;
41901*)
41902 ;;
41903esac
1e9e8aba 41904if [ -z ${D}outimpFile ]; then
473276a9
VS
41905 outimpFile=${D}outFile
41906fi
41907defFile="${D}{outFile}.def"
41908arcFile="${D}{outimpFile}.a"
41909arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41910
41911#create ${D}dllFile as something matching 8.3 restrictions,
41912if [ -z ${D}renameScript ] ; then
41913 dllFile="${D}outFile"
41914else
41915 dllFile=\`${D}renameScript ${D}outimpFile\`
41916fi
473276a9 41917
1e9e8aba
DE
41918if [ ${D}do_backup -ne 0 ] ; then
41919 if [ -f ${D}arcFile ] ; then
473276a9
VS
41920 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41921 fi
1e9e8aba 41922 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41923 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41924 fi
41925fi
41926
41927# Extract public symbols from all the object files.
41928tmpdefFile=${D}{defFile}_%
41929rm -f ${D}tmpdefFile
41930for file in ${D}inputFiles ; do
41931 case ${D}file in
41932 *!)
41933 ;;
41934 *)
41935 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41936 ;;
41937 esac
41938done
41939
41940# Create the def file.
41941rm -f ${D}defFile
41942echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41943dllFile="${D}{dllFile}.dll"
41944if [ ! -z ${D}description ]; then
1e9e8aba 41945 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41946fi
41947echo "EXPORTS" >> ${D}defFile
41948
41949doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41950grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41951
41952# Checks if the export is ok or not.
41953for word in ${D}exclude_symbols; do
41954 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41955 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41956done
41957
41958
1e9e8aba
DE
41959if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41960 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41961 sed '
41962 N
41963 : loop
1e9e8aba 41964 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41965 t loop
41966 ' > ${D}{tmpdefFile}%
41967 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41968else
41969 rm -f ${D}{tmpdefFile}%
41970fi
41971cat ${D}tmpdefFile >> ${D}defFile
41972rm -f ${D}tmpdefFile
41973
41974# Do linking, create implib, and apply lxlite.
41975gccCmdl="";
41976for file in ${D}inputFiles ; do
41977 case ${D}file in
41978 *!)
41979 ;;
41980 *)
41981 gccCmdl="${D}gccCmdl ${D}file"
41982 ;;
41983 esac
41984done
41985doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41986touch "${D}{outFile}.dll"
41987
41988doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41989if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41990 add_flags="";
1e9e8aba 41991 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41992 add_flags="-ynd"
41993 fi
41994 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41995fi
41996doCommand "emxomf -s -l ${D}arcFile"
41997
41998# Successful exit.
41999CleanUp 1
42000exit 0
42001EOF
42002
42003 chmod +x dllar.sh
a848cd7e
SC
42004 ;;
42005
1e9e8aba 42006 powerpc-apple-macos* | \
a848cd7e
SC
42007 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42008 *-*-sunos4* | \
42009 *-*-osf* | \
42010 *-*-dgux5* | \
42011 *-*-sysv5* )
42012 ;;
42013
42014 *)
42015 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42016echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42017 { (exit 1); exit 1; }; }
42018 esac
42019
2057db16
VS
42020 if test "x$PIC_FLAG" != "x" ; then
42021 PIC_FLAG="$PIC_FLAG -DPIC"
42022 fi
42023
a848cd7e
SC
42024 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42025 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42026 fi
42027 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42028 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42029 fi
42030
42031
42032
42033
42034
42035
42036
42037
42038 USE_SOVERSION=0
42039 USE_SOVERLINUX=0
42040 USE_SOVERSOLARIS=0
42041 USE_SOSYMLINKS=0
42042 USE_MACVERSION=0
42043 SONAME_FLAG=
42044
42045 case "${BAKEFILE_HOST}" in
b1d22ded 42046 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42047 SONAME_FLAG="-Wl,-soname,"
42048 USE_SOVERSION=1
42049 USE_SOVERLINUX=1
42050 USE_SOSYMLINKS=1
42051 ;;
42052
a848cd7e
SC
42053 *-*-solaris2* )
42054 SONAME_FLAG="-h "
42055 USE_SOVERSION=1
42056 USE_SOVERSOLARIS=1
42057 USE_SOSYMLINKS=1
42058 ;;
42059
42060 *-*-darwin* )
42061 USE_MACVERSION=1
42062 USE_SOVERSION=1
42063 USE_SOSYMLINKS=1
42064 ;;
42065 esac
42066
42067
42068
42069
42070
42071
42072
42073
42074
42075 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42076echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42077 DEPS_TRACKING=0
42078
42079 if test "x$GCC" = "xyes"; then
42080 DEPSMODE=gcc
42081 DEPS_TRACKING=1
42082 case "${BAKEFILE_HOST}" in
42083 powerpc-*-darwin* )
42084 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42085 ;;
42086 * )
42087 DEPSFLAG_GCC="-MMD"
42088 ;;
42089 esac
42090 echo "$as_me:$LINENO: result: gcc" >&5
42091echo "${ECHO_T}gcc" >&6
b1d22ded 42092 elif test "x$MWCC" = "xyes"; then
81f90336 42093 DEPSMODE=mwcc
b1d22ded 42094 DEPS_TRACKING=1
81f90336 42095 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42096 echo "$as_me:$LINENO: result: mwcc" >&5
42097echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42098 else
42099 echo "$as_me:$LINENO: result: none" >&5
42100echo "${ECHO_T}none" >&6
42101 fi
42102
42103 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42104
42105D='$'
42106cat <<EOF >bk-deps
a848cd7e
SC
42107#!/bin/sh
42108
42109# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42110# script. It is used to track C/C++ files dependencies in portable way.
42111#
42112# Permission is given to use this file in any way.
42113
473276a9 42114DEPSMODE=${DEPSMODE}
a848cd7e 42115DEPSDIR=.deps
473276a9 42116DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42117DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42118
473276a9 42119mkdir -p ${D}DEPSDIR
a848cd7e 42120
473276a9
VS
42121if test ${D}DEPSMODE = gcc ; then
42122 ${D}* ${D}{DEPSFLAG_GCC}
42123 status=${D}?
42124 if test ${D}{status} != 0 ; then
42125 exit ${D}{status}
a848cd7e
SC
42126 fi
42127 # move created file to the location we want it in:
473276a9
VS
42128 while test ${D}# -gt 0; do
42129 case "${D}1" in
a848cd7e
SC
42130 -o )
42131 shift
473276a9 42132 objfile=${D}1
a848cd7e
SC
42133 ;;
42134 -* )
42135 ;;
42136 * )
473276a9 42137 srcfile=${D}1
a848cd7e
SC
42138 ;;
42139 esac
42140 shift
42141 done
1e9e8aba
DE
42142 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42143 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42144 if test -f ${D}depfile ; then
42145 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42146 rm -f ${D}depfile
a848cd7e 42147 else
1e9e8aba 42148 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42149 if test -f ${D}depfile ; then
42150 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42151 rm -f ${D}depfile
a848cd7e
SC
42152 fi
42153 fi
42154 exit 0
81f90336
MW
42155elif test ${D}DEPSMODE = mwcc ; then
42156 ${D}*
42157 status=${D}?
42158 if test ${D}{status} != 0 ; then
42159 exit ${D}{status}
42160 fi
42161 # Run mwcc again with -MM and redirect into the dep file we want
42162 # NOTE: We can't use shift here because we need ${D}* to be valid
42163 prevarg=
42164 for arg in ${D}* ; do
42165 if test "${D}prevarg" = "-o"; then
42166 objfile=${D}arg
42167 else
42168 case "${D}arg" in
42169 -* )
42170 ;;
42171 * )
42172 srcfile=${D}arg
42173 ;;
42174 esac
42175 fi
42176 prevarg="${D}arg"
42177 done
42178 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42179 exit 0
a848cd7e 42180else
473276a9
VS
42181 ${D}*
42182 exit ${D}?
a848cd7e
SC
42183fi
42184EOF
473276a9 42185
a848cd7e
SC
42186 chmod +x bk-deps
42187 fi
42188
42189
42190
42191
42192 RESCOMP=
42193 SETFILE=
42194
42195 case ${BAKEFILE_HOST} in
42196 *-*-cygwin* | *-*-mingw32* )
42197 if test "$build" != "$host" ; then
42198 RESCOMP=$host_alias-windres
42199 else
42200 # Extract the first word of "windres", so it can be a program name with args.
42201set dummy windres; ac_word=$2
42202echo "$as_me:$LINENO: checking for $ac_word" >&5
42203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42204if test "${ac_cv_prog_RESCOMP+set}" = set; then
42205 echo $ECHO_N "(cached) $ECHO_C" >&6
42206else
42207 if test -n "$RESCOMP"; then
42208 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42209else
42210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42211for as_dir in $PATH
42212do
42213 IFS=$as_save_IFS
42214 test -z "$as_dir" && as_dir=.
42215 for ac_exec_ext in '' $ac_executable_extensions; do
42216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42217 ac_cv_prog_RESCOMP="windres"
42218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42219 break 2
42220 fi
42221done
42222done
42223
42224 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42225fi
42226fi
42227RESCOMP=$ac_cv_prog_RESCOMP
42228if test -n "$RESCOMP"; then
42229 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42230echo "${ECHO_T}$RESCOMP" >&6
42231else
42232 echo "$as_me:$LINENO: result: no" >&5
42233echo "${ECHO_T}no" >&6
42234fi
42235
42236 fi
42237 ;;
42238
1e9e8aba 42239 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42240 # Extract the first word of "Rez", so it can be a program name with args.
42241set dummy Rez; ac_word=$2
42242echo "$as_me:$LINENO: checking for $ac_word" >&5
42243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42244if test "${ac_cv_prog_RESCOMP+set}" = set; then
42245 echo $ECHO_N "(cached) $ECHO_C" >&6
42246else
42247 if test -n "$RESCOMP"; then
42248 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42249else
42250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42251for as_dir in $PATH
42252do
42253 IFS=$as_save_IFS
42254 test -z "$as_dir" && as_dir=.
42255 for ac_exec_ext in '' $ac_executable_extensions; do
42256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42257 ac_cv_prog_RESCOMP="Rez"
42258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42259 break 2
42260 fi
42261done
42262done
42263
42264 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42265fi
42266fi
42267RESCOMP=$ac_cv_prog_RESCOMP
42268if test -n "$RESCOMP"; then
42269 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42270echo "${ECHO_T}$RESCOMP" >&6
42271else
42272 echo "$as_me:$LINENO: result: no" >&5
42273echo "${ECHO_T}no" >&6
42274fi
42275
42276 # Extract the first word of "SetFile", so it can be a program name with args.
42277set dummy SetFile; ac_word=$2
42278echo "$as_me:$LINENO: checking for $ac_word" >&5
42279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42280if test "${ac_cv_prog_SETFILE+set}" = set; then
42281 echo $ECHO_N "(cached) $ECHO_C" >&6
42282else
42283 if test -n "$SETFILE"; then
42284 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42285else
42286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42287for as_dir in $PATH
42288do
42289 IFS=$as_save_IFS
42290 test -z "$as_dir" && as_dir=.
42291 for ac_exec_ext in '' $ac_executable_extensions; do
42292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42293 ac_cv_prog_SETFILE="SetFile"
42294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42295 break 2
42296 fi
42297done
42298done
42299
42300 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42301fi
42302fi
42303SETFILE=$ac_cv_prog_SETFILE
42304if test -n "$SETFILE"; then
42305 echo "$as_me:$LINENO: result: $SETFILE" >&5
42306echo "${ECHO_T}$SETFILE" >&6
42307else
42308 echo "$as_me:$LINENO: result: no" >&5
42309echo "${ECHO_T}no" >&6
42310fi
42311
42312 ;;
42313 esac
42314
42315
42316
42317
42318
fbb7dfff 42319 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42320
dcc1b6ad 42321
fbb7dfff 42322BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42323
646b6ec1 42324
74b84332 42325
a848cd7e
SC
42326 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42327if test "${enable_precomp_headers+set}" = set; then
42328 enableval="$enable_precomp_headers"
42329 bk_use_pch="$enableval"
42330fi;
42331
42332 GCC_PCH=0
42333
42334 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42335 if test "x$GCC" = "xyes"; then
42336 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42337echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42338 cat >conftest.$ac_ext <<_ACEOF
42339/* confdefs.h. */
42340_ACEOF
42341cat confdefs.h >>conftest.$ac_ext
42342cat >>conftest.$ac_ext <<_ACEOF
42343/* end confdefs.h. */
42344
42345int
42346main ()
42347{
42348
42349 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42350 #error "no pch support"
42351 #endif
42352 #if (__GNUC__ < 3)
42353 #error "no pch support"
42354 #endif
42355 #if (__GNUC__ == 3) && \
42356 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42357 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42358 #error "no pch support"
42359 #endif
42360
42361 ;
42362 return 0;
42363}
42364_ACEOF
42365rm -f conftest.$ac_objext
42366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42367 (eval $ac_compile) 2>conftest.er1
a848cd7e 42368 ac_status=$?
ac1cb8d3
VS
42369 grep -v '^ *+' conftest.er1 >conftest.err
42370 rm -f conftest.er1
42371 cat conftest.err >&5
a848cd7e
SC
42372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42373 (exit $ac_status); } &&
9dd0f6c2 42374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42376 (eval $ac_try) 2>&5
42377 ac_status=$?
42378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42379 (exit $ac_status); }; } &&
42380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42382 (eval $ac_try) 2>&5
42383 ac_status=$?
42384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42385 (exit $ac_status); }; }; then
42386
42387 echo "$as_me:$LINENO: result: yes" >&5
42388echo "${ECHO_T}yes" >&6
a848cd7e
SC
42389 GCC_PCH=1
42390
42391else
42392 echo "$as_me: failed program was:" >&5
42393sed 's/^/| /' conftest.$ac_ext >&5
42394
42395
42396 echo "$as_me:$LINENO: result: no" >&5
42397echo "${ECHO_T}no" >&6
42398
42399fi
ac1cb8d3 42400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42401 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42402
42403D='$'
42404cat <<EOF >bk-make-pch
a848cd7e
SC
42405#!/bin/sh
42406
42407# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42408# script. It is used to generated precompiled headers.
42409#
42410# Permission is given to use this file in any way.
42411
1e9e8aba
DE
42412outfile="${D}{1}"
42413header="${D}{2}"
a848cd7e
SC
42414shift
42415shift
42416
42417compiler=
42418headerfile=
1e9e8aba
DE
42419while test ${D}{#} -gt 0; do
42420 case "${D}{1}" in
a848cd7e 42421 -I* )
1e9e8aba
DE
42422 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42423 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42424 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42425 fi
42426 ;;
42427 esac
1e9e8aba 42428 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42429 shift
42430done
42431
1e9e8aba
DE
42432if test "x${D}{headerfile}" = "x" ; then
42433 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42434else
1e9e8aba
DE
42435 if test -f ${D}{outfile} ; then
42436 rm -f ${D}{outfile}
a848cd7e 42437 else
1e9e8aba 42438 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42439 fi
1e9e8aba 42440 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42441 mkdir -p .deps
42442 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42443 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42444 exit ${D}{?}
a848cd7e
SC
42445fi
42446EOF
1e9e8aba 42447
a848cd7e
SC
42448 chmod +x bk-make-pch
42449 fi
42450 fi
42451 fi
42452
42453
42454
a848cd7e
SC
42455 COND_BUILD_DEBUG="#"
42456 if test "x$BUILD" = "xdebug" ; then
42457 COND_BUILD_DEBUG=""
42458 fi
42459
42460 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42461 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42462 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42463 fi
42464
42465 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42466 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42467 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42468 fi
42469
42470 COND_BUILD_DEBUG_UNICODE_0="#"
42471 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42472 COND_BUILD_DEBUG_UNICODE_0=""
42473 fi
42474
42475 COND_BUILD_DEBUG_UNICODE_1="#"
42476 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42477 COND_BUILD_DEBUG_UNICODE_1=""
42478 fi
42479
42480 COND_BUILD_RELEASE="#"
42481 if test "x$BUILD" = "xrelease" ; then
42482 COND_BUILD_RELEASE=""
42483 fi
42484
42485 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42486 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42487 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42488 fi
42489
42490 COND_BUILD_RELEASE_UNICODE_0="#"
42491 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42492 COND_BUILD_RELEASE_UNICODE_0=""
42493 fi
42494
42495 COND_BUILD_RELEASE_UNICODE_1="#"
42496 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42497 COND_BUILD_RELEASE_UNICODE_1=""
42498 fi
42499
42500 COND_DEBUG_FLAG_1="#"
42501 if test "x$DEBUG_FLAG" = "x1" ; then
42502 COND_DEBUG_FLAG_1=""
42503 fi
42504
42505 COND_DEBUG_INFO_0="#"
42506 if test "x$DEBUG_INFO" = "x0" ; then
42507 COND_DEBUG_INFO_0=""
42508 fi
42509
42510 COND_DEBUG_INFO_1="#"
42511 if test "x$DEBUG_INFO" = "x1" ; then
42512 COND_DEBUG_INFO_1=""
42513 fi
42514
42515 COND_DEPS_TRACKING_0="#"
42516 if test "x$DEPS_TRACKING" = "x0" ; then
42517 COND_DEPS_TRACKING_0=""
42518 fi
42519
42520 COND_DEPS_TRACKING_1="#"
42521 if test "x$DEPS_TRACKING" = "x1" ; then
42522 COND_DEPS_TRACKING_1=""
42523 fi
42524
42525 COND_GCC_PCH_1="#"
42526 if test "x$GCC_PCH" = "x1" ; then
42527 COND_GCC_PCH_1=""
42528 fi
42529
42530 COND_MONOLITHIC_0="#"
42531 if test "x$MONOLITHIC" = "x0" ; then
42532 COND_MONOLITHIC_0=""
42533 fi
42534
42535 COND_MONOLITHIC_0_SHARED_0="#"
42536 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42537 COND_MONOLITHIC_0_SHARED_0=""
42538 fi
42539
42540 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42541 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42542 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42543 fi
42544
90970d69
DE
42545 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42546 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42547 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42548 fi
42549
a848cd7e
SC
42550 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42551 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42552 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42553 fi
42554
6671c68b
VZ
42555 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42556 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42557 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42558 fi
42559
a848cd7e
SC
42560 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42561 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42562 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42563 fi
42564
ceec2216
RL
42565 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42566 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42567 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42568 fi
42569
a848cd7e
SC
42570 COND_MONOLITHIC_0_SHARED_1="#"
42571 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42572 COND_MONOLITHIC_0_SHARED_1=""
42573 fi
42574
42575 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42576 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42577 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42578 fi
42579
90970d69
DE
42580 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42581 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42582 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42583 fi
42584
a848cd7e
SC
42585 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42586 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42587 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42588 fi
42589
6671c68b
VZ
42590 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42591 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42592 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42593 fi
42594
a848cd7e
SC
42595 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42596 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42597 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42598 fi
42599
ceec2216
RL
42600 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42601 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42602 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42603 fi
42604
a848cd7e
SC
42605 COND_MONOLITHIC_0_USE_ODBC_1="#"
42606 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42607 COND_MONOLITHIC_0_USE_ODBC_1=""
42608 fi
42609
42610 COND_MONOLITHIC_1="#"
42611 if test "x$MONOLITHIC" = "x1" ; then
42612 COND_MONOLITHIC_1=""
42613 fi
42614
42615 COND_MONOLITHIC_1_SHARED_0="#"
42616 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42617 COND_MONOLITHIC_1_SHARED_0=""
42618 fi
42619
42620 COND_MONOLITHIC_1_SHARED_1="#"
42621 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42622 COND_MONOLITHIC_1_SHARED_1=""
42623 fi
42624
42625 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42626 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42627 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42628 fi
42629
42630 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42631 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42632 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42633 fi
42634
42635 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42636 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42637 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42638 fi
42639
42640 COND_PLATFORM_MACOSX_1="#"
42641 if test "x$PLATFORM_MACOSX" = "x1" ; then
42642 COND_PLATFORM_MACOSX_1=""
42643 fi
42644
a30f955f
VS
42645 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42646 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42647 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42648 fi
42649
a848cd7e
SC
42650 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42651 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42652 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42653 fi
42654
42655 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42656 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42657 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42658 fi
42659
42660 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42661 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42662 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42663 fi
42664
fc480dc1
DE
42665 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42666 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42667 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42668 fi
42669
1e9e8aba
DE
42670 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42671 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42672 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42673 fi
42674
ebee3cd0
VS
42675 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42676 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42677 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42678 fi
42679
42680 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42681 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42682 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42683 fi
42684
a848cd7e
SC
42685 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42686 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42687 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42688 fi
42689
42690 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42691 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42692 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42693 fi
42694
b48a2016
DE
42695 COND_PLATFORM_MACOS_1="#"
42696 if test "x$PLATFORM_MACOS" = "x1" ; then
42697 COND_PLATFORM_MACOS_1=""
42698 fi
42699
a848cd7e
SC
42700 COND_PLATFORM_MAC_1="#"
42701 if test "x$PLATFORM_MAC" = "x1" ; then
42702 COND_PLATFORM_MAC_1=""
42703 fi
42704
42705 COND_PLATFORM_OS2_1="#"
42706 if test "x$PLATFORM_OS2" = "x1" ; then
42707 COND_PLATFORM_OS2_1=""
42708 fi
42709
42710 COND_PLATFORM_UNIX_0="#"
42711 if test "x$PLATFORM_UNIX" = "x0" ; then
42712 COND_PLATFORM_UNIX_0=""
42713 fi
42714
42715 COND_PLATFORM_UNIX_1="#"
42716 if test "x$PLATFORM_UNIX" = "x1" ; then
42717 COND_PLATFORM_UNIX_1=""
42718 fi
42719
42720 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42721 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42722 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42723 fi
42724
42725 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42726 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42727 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42728 fi
42729
42730 COND_PLATFORM_WIN32_0="#"
42731 if test "x$PLATFORM_WIN32" = "x0" ; then
42732 COND_PLATFORM_WIN32_0=""
42733 fi
42734
42735 COND_PLATFORM_WIN32_1="#"
42736 if test "x$PLATFORM_WIN32" = "x1" ; then
42737 COND_PLATFORM_WIN32_1=""
42738 fi
42739
42740 COND_SHARED_0="#"
42741 if test "x$SHARED" = "x0" ; then
42742 COND_SHARED_0=""
42743 fi
42744
ceec2216
RL
42745 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42746 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42747 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42748 fi
42749
42750 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42751 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42752 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42753 fi
42754
42755 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42756 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42757 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42758 fi
42759
a848cd7e
SC
42760 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42761 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42762 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42763 fi
42764
42765 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42766 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42767 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42768 fi
42769
42770 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42771 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42772 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42773 fi
42774
42775 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42776 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42777 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42778 fi
42779
42780 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42781 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42782 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42783 fi
42784
42785 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42786 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42787 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42788 fi
42789
42790 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42791 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42792 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42793 fi
42794
42795 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42796 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42797 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42798 fi
42799
42800 COND_SHARED_1="#"
42801 if test "x$SHARED" = "x1" ; then
42802 COND_SHARED_1=""
42803 fi
42804
42805 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42806 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42807 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42808 fi
42809
a30f955f
VS
42810 COND_TOOLKIT_="#"
42811 if test "x$TOOLKIT" = "x" ; then
42812 COND_TOOLKIT_=""
42813 fi
42814
a848cd7e
SC
42815 COND_TOOLKIT_COCOA="#"
42816 if test "x$TOOLKIT" = "xCOCOA" ; then
42817 COND_TOOLKIT_COCOA=""
42818 fi
42819
a49baeab
DE
42820 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42821 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42822 COND_TOOLKIT_COCOA_USE_GUI_1=""
42823 fi
42824
a848cd7e
SC
42825 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42826 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42827 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42828 fi
42829
42830 COND_TOOLKIT_GTK="#"
42831 if test "x$TOOLKIT" = "xGTK" ; then
42832 COND_TOOLKIT_GTK=""
42833 fi
42834
42835 COND_TOOLKIT_GTK_USE_GUI_1="#"
42836 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42837 COND_TOOLKIT_GTK_USE_GUI_1=""
42838 fi
42839
42840 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42841 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42842 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42843 fi
42844
42845 COND_TOOLKIT_MAC="#"
42846 if test "x$TOOLKIT" = "xMAC" ; then
42847 COND_TOOLKIT_MAC=""
42848 fi
42849
42850 COND_TOOLKIT_MAC_USE_GUI_1="#"
42851 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42852 COND_TOOLKIT_MAC_USE_GUI_1=""
42853 fi
42854
42855 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42856 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42857 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42858 fi
42859
42860 COND_TOOLKIT_MGL="#"
42861 if test "x$TOOLKIT" = "xMGL" ; then
42862 COND_TOOLKIT_MGL=""
42863 fi
42864
42865 COND_TOOLKIT_MGL_USE_GUI_1="#"
42866 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42867 COND_TOOLKIT_MGL_USE_GUI_1=""
42868 fi
42869
42870 COND_TOOLKIT_MOTIF="#"
42871 if test "x$TOOLKIT" = "xMOTIF" ; then
42872 COND_TOOLKIT_MOTIF=""
42873 fi
42874
42875 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42876 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42877 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42878 fi
42879
42880 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42881 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42882 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42883 fi
42884
42885 COND_TOOLKIT_MSW="#"
42886 if test "x$TOOLKIT" = "xMSW" ; then
42887 COND_TOOLKIT_MSW=""
42888 fi
42889
42890 COND_TOOLKIT_MSW_USE_GUI_1="#"
42891 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42892 COND_TOOLKIT_MSW_USE_GUI_1=""
42893 fi
42894
42895 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42896 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42897 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42898 fi
42899
42900 COND_TOOLKIT_PM="#"
42901 if test "x$TOOLKIT" = "xPM" ; then
42902 COND_TOOLKIT_PM=""
42903 fi
42904
42905 COND_TOOLKIT_PM_USE_GUI_1="#"
42906 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42907 COND_TOOLKIT_PM_USE_GUI_1=""
42908 fi
42909
42910 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42911 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42912 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42913 fi
42914
3fd9c298
DE
42915 COND_TOOLKIT_WINCE="#"
42916 if test "x$TOOLKIT" = "xWINCE" ; then
42917 COND_TOOLKIT_WINCE=""
42918 fi
42919
42920 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42921 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42922 COND_TOOLKIT_WINCE_USE_GUI_1=""
42923 fi
42924
42925 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42926 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42927 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42928 fi
42929
a848cd7e
SC
42930 COND_TOOLKIT_X11="#"
42931 if test "x$TOOLKIT" = "xX11" ; then
42932 COND_TOOLKIT_X11=""
42933 fi
42934
42935 COND_TOOLKIT_X11_USE_GUI_1="#"
42936 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42937 COND_TOOLKIT_X11_USE_GUI_1=""
42938 fi
42939
42940 COND_UNICODE_1="#"
42941 if test "x$UNICODE" = "x1" ; then
42942 COND_UNICODE_1=""
42943 fi
42944
42945 COND_USE_EXCEPTIONS_0="#"
42946 if test "x$USE_EXCEPTIONS" = "x0" ; then
42947 COND_USE_EXCEPTIONS_0=""
42948 fi
42949
42950 COND_USE_EXCEPTIONS_1="#"
42951 if test "x$USE_EXCEPTIONS" = "x1" ; then
42952 COND_USE_EXCEPTIONS_1=""
42953 fi
42954
42955 COND_USE_GUI_0="#"
42956 if test "x$USE_GUI" = "x0" ; then
42957 COND_USE_GUI_0=""
42958 fi
42959
42960 COND_USE_GUI_1="#"
42961 if test "x$USE_GUI" = "x1" ; then
42962 COND_USE_GUI_1=""
42963 fi
42964
42965 COND_USE_GUI_1_WXUNIV_0="#"
42966 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42967 COND_USE_GUI_1_WXUNIV_0=""
42968 fi
42969
42970 COND_USE_GUI_1_WXUNIV_1="#"
42971 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42972 COND_USE_GUI_1_WXUNIV_1=""
42973 fi
42974
42975 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42976 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42977 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42978 fi
42979
42980 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42981 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42982 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42983 fi
42984
42985 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42986 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42987 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42988 fi
42989
ceec2216
RL
42990 COND_USE_ODBC_1="#"
42991 if test "x$USE_ODBC" = "x1" ; then
42992 COND_USE_ODBC_1=""
42993 fi
42994
ffa0583f
RL
42995 COND_USE_OPENGL_1="#"
42996 if test "x$USE_OPENGL" = "x1" ; then
42997 COND_USE_OPENGL_1=""
42998 fi
42999
a848cd7e
SC
43000 COND_USE_PLUGINS_0="#"
43001 if test "x$USE_PLUGINS" = "x0" ; then
43002 COND_USE_PLUGINS_0=""
43003 fi
43004
0b78747f
MW
43005 COND_USE_RTTI_0="#"
43006 if test "x$USE_RTTI" = "x0" ; then
43007 COND_USE_RTTI_0=""
43008 fi
43009
43010 COND_USE_RTTI_1="#"
43011 if test "x$USE_RTTI" = "x1" ; then
43012 COND_USE_RTTI_1=""
43013 fi
43014
a848cd7e
SC
43015 COND_USE_SOSYMLINKS_1="#"
43016 if test "x$USE_SOSYMLINKS" = "x1" ; then
43017 COND_USE_SOSYMLINKS_1=""
43018 fi
43019
43020 COND_USE_SOVERLINUX_1="#"
43021 if test "x$USE_SOVERLINUX" = "x1" ; then
43022 COND_USE_SOVERLINUX_1=""
43023 fi
43024
43025 COND_USE_SOVERSION_0="#"
43026 if test "x$USE_SOVERSION" = "x0" ; then
43027 COND_USE_SOVERSION_0=""
43028 fi
43029
43030 COND_USE_SOVERSOLARIS_1="#"
43031 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43032 COND_USE_SOVERSOLARIS_1=""
43033 fi
43034
0b78747f
MW
43035 COND_USE_THREADS_0="#"
43036 if test "x$USE_THREADS" = "x0" ; then
43037 COND_USE_THREADS_0=""
43038 fi
43039
43040 COND_USE_THREADS_1="#"
43041 if test "x$USE_THREADS" = "x1" ; then
43042 COND_USE_THREADS_1=""
43043 fi
43044
a13a7f89
RL
43045 COND_USE_XRC_1="#"
43046 if test "x$USE_XRC" = "x1" ; then
43047 COND_USE_XRC_1=""
43048 fi
43049
a848cd7e
SC
43050 COND_WITH_PLUGIN_SDL_1="#"
43051 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43052 COND_WITH_PLUGIN_SDL_1=""
43053 fi
43054
1e6eb025
VZ
43055 COND_WXUNIV_0="#"
43056 if test "x$WXUNIV" = "x0" ; then
43057 COND_WXUNIV_0=""
43058 fi
43059
a848cd7e
SC
43060 COND_WXUNIV_1="#"
43061 if test "x$WXUNIV" = "x1" ; then
43062 COND_WXUNIV_1=""
43063 fi
43064
43065 COND_WXUSE_EXPAT_BUILTIN="#"
43066 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43067 COND_WXUSE_EXPAT_BUILTIN=""
43068 fi
43069
43070 COND_WXUSE_LIBJPEG_BUILTIN="#"
43071 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43072 COND_WXUSE_LIBJPEG_BUILTIN=""
43073 fi
43074
43075 COND_WXUSE_LIBPNG_BUILTIN="#"
43076 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43077 COND_WXUSE_LIBPNG_BUILTIN=""
43078 fi
43079
43080 COND_WXUSE_LIBTIFF_BUILTIN="#"
43081 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43082 COND_WXUSE_LIBTIFF_BUILTIN=""
43083 fi
43084
43085 COND_WXUSE_ODBC_BUILTIN="#"
43086 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43087 COND_WXUSE_ODBC_BUILTIN=""
43088 fi
43089
43090 COND_WXUSE_REGEX_BUILTIN="#"
43091 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43092 COND_WXUSE_REGEX_BUILTIN=""
43093 fi
43094
43095 COND_WXUSE_ZLIB_BUILTIN="#"
43096 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43097 COND_WXUSE_ZLIB_BUILTIN=""
43098 fi
43099
43100
43101
2057db16
VS
43102 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43103 { { 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
43104echo "$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;}
43105 { (exit 1); exit 1; }; }
43106 fi
43107
a848cd7e 43108
ceec2216
RL
43109if test "$wxUSE_SHARED" = "yes"; then
43110
43111 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43112 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43113
5b674b9d
DE
43114 case "${host}" in
43115 *-pc-os2_emx | *-pc-os2-emx )
43116 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43117 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43118 cp -p ${srcdir}/src/os2/dllnames.sh .
43119 cp -p ${srcdir}/src/os2/dllar.sh .
43120 ;;
43121 esac
ceec2216
RL
43122else
43123
43124 EXE_LINKER="$CXX -o"
43125
43126fi
69120ee4
VZ
43127if test "$wxUSE_OMF" = "yes"; then
43128 case "${host}" in
43129 *-pc-os2_emx | *-pc-os2-emx )
43130 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43131 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43132 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43133 ;;
43134 esac
43135fi
a848cd7e 43136
74b84332 43137GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43138PCH_FLAGS=""
43139if test $GCC_PCH = 1 ; then
43140 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43141 PCH_FLAGS="-DWX_PRECOMP"
43142else
a848cd7e
SC
43143 case "${host}" in
43144 powerpc-*-darwin* )
74b84332 43145 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43146 ;;
bea8e651 43147 *-*-mingw32* )
1f344abf
VS
43148 if test "$wxUSE_STL" = "yes" -o \
43149 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43150 "$wxUSE_NO_RTTI" != "yes"; then
43151 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43152echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43153 cat >conftest.$ac_ext <<_ACEOF
43154/* confdefs.h. */
43155_ACEOF
43156cat confdefs.h >>conftest.$ac_ext
43157cat >>conftest.$ac_ext <<_ACEOF
43158/* end confdefs.h. */
43159
3314e67b
RR
43160int
43161main ()
43162{
43163#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43164 #error "Not GCC 3.2 or greater"
43165 #endif
43166
43167 ;
43168 return 0;
43169}
43170_ACEOF
43171rm -f conftest.$ac_objext
43172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43173 (eval $ac_compile) 2>conftest.er1
43174 ac_status=$?
43175 grep -v '^ *+' conftest.er1 >conftest.err
43176 rm -f conftest.er1
43177 cat conftest.err >&5
43178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43179 (exit $ac_status); } &&
9dd0f6c2 43180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43182 (eval $ac_try) 2>&5
43183 ac_status=$?
43184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43185 (exit $ac_status); }; } &&
43186 { ac_try='test -s conftest.$ac_objext'
43187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43188 (eval $ac_try) 2>&5
43189 ac_status=$?
43190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43191 (exit $ac_status); }; }; then
43192 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43193 echo "$as_me:$LINENO: result: yes" >&5
43194echo "${ECHO_T}yes" >&6
43195else
43196 echo "$as_me: failed program was:" >&5
43197sed 's/^/| /' conftest.$ac_ext >&5
43198
43199echo "$as_me:$LINENO: result: no" >&5
43200echo "${ECHO_T}no" >&6
43201fi
43202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43203 fi
43204 ;;
43205 *-pc-os2_emx | *-pc-os2-emx )
43206 if test "$wxUSE_STL" = "yes"; then
43207 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43208echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43209 cat >conftest.$ac_ext <<_ACEOF
43210/* confdefs.h. */
43211_ACEOF
43212cat confdefs.h >>conftest.$ac_ext
43213cat >>conftest.$ac_ext <<_ACEOF
43214/* end confdefs.h. */
43215
bea8e651
MB
43216int
43217main ()
43218{
1f344abf 43219#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43220 #error "Not GCC 3.2 or greater"
43221 #endif
43222
43223 ;
43224 return 0;
43225}
43226_ACEOF
43227rm -f conftest.$ac_objext
43228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43229 (eval $ac_compile) 2>conftest.er1
bea8e651 43230 ac_status=$?
ac1cb8d3
VS
43231 grep -v '^ *+' conftest.er1 >conftest.err
43232 rm -f conftest.er1
43233 cat conftest.err >&5
bea8e651
MB
43234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235 (exit $ac_status); } &&
9dd0f6c2 43236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43238 (eval $ac_try) 2>&5
43239 ac_status=$?
43240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43241 (exit $ac_status); }; } &&
43242 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43244 (eval $ac_try) 2>&5
43245 ac_status=$?
43246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43247 (exit $ac_status); }; }; then
74b84332 43248 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43249 echo "$as_me:$LINENO: result: yes" >&5
43250echo "${ECHO_T}yes" >&6
43251else
43252 echo "$as_me: failed program was:" >&5
43253sed 's/^/| /' conftest.$ac_ext >&5
43254
43255echo "$as_me:$LINENO: result: no" >&5
43256echo "${ECHO_T}no" >&6
43257fi
ac1cb8d3 43258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43259 fi
43260 ;;
a848cd7e
SC
43261 esac
43262fi
d2083416 43263CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43264
43265
43266SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43267
43268
43269
43270
43271
43272
43273
43274
43275
43276
43277
43278
43279
43280
43281
43282
43283
43284
43285
43286
43287
43288
43289
43290
43291
43292
43293
43294
43295
43296
43297
43298
43299
43300
43301
43302
43303
43304
43305
43306
43307
43308
a848cd7e
SC
43309
43310
43311
43312
43313
43314
43315
43316
43317
43318
43319
43320
43321
43322
43323
43324
43325
43326
74b84332 43327
a848cd7e
SC
43328
43329
43330echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43331echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43332set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43333if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43334 echo $ECHO_N "(cached) $ECHO_C" >&6
43335else
43336 cat >conftest.make <<\_ACEOF
43337all:
43338 @echo 'ac_maketemp="$(MAKE)"'
43339_ACEOF
43340# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43341eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43342if test -n "$ac_maketemp"; then
43343 eval ac_cv_prog_make_${ac_make}_set=yes
43344else
43345 eval ac_cv_prog_make_${ac_make}_set=no
43346fi
43347rm -f conftest.make
43348fi
43349if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43350 echo "$as_me:$LINENO: result: yes" >&5
43351echo "${ECHO_T}yes" >&6
43352 SET_MAKE=
43353else
43354 echo "$as_me:$LINENO: result: no" >&5
43355echo "${ECHO_T}no" >&6
43356 SET_MAKE="MAKE=${MAKE-make}"
43357fi
43358
43359
a848cd7e 43360
ceec2216
RL
43361 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43362
a848cd7e 43363
ceec2216 43364 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43365
a848cd7e 43366
ceec2216 43367 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43368
ceec2216
RL
43369
43370 ac_config_files="$ac_config_files version-script Makefile"
43371
43372
43373 ac_config_commands="$ac_config_commands wx-config
43374 "
a848cd7e
SC
43375
43376
9103d280
RL
43377
43378
a848cd7e
SC
43379if test "$wxUSE_GUI" = "yes"; then
43380 SUBDIRS="samples demos utils contrib"
43381else SUBDIRS="samples utils"
43382fi
43383
43384
43385
43386# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43387if test "${with_cppunit_prefix+set}" = set; then
43388 withval="$with_cppunit_prefix"
43389 cppunit_config_prefix="$withval"
43390else
43391 cppunit_config_prefix=""
43392fi;
43393
43394# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43395if test "${with_cppunit_exec_prefix+set}" = set; then
43396 withval="$with_cppunit_exec_prefix"
43397 cppunit_config_exec_prefix="$withval"
43398else
43399 cppunit_config_exec_prefix=""
43400fi;
43401
43402 if test x$cppunit_config_exec_prefix != x ; then
43403 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43404 if test x${CPPUNIT_CONFIG+set} != xset ; then
43405 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43406 fi
43407 fi
43408 if test x$cppunit_config_prefix != x ; then
43409 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43410 if test x${CPPUNIT_CONFIG+set} != xset ; then
43411 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43412 fi
43413 fi
43414
43415 # Extract the first word of "cppunit-config", so it can be a program name with args.
43416set dummy cppunit-config; ac_word=$2
43417echo "$as_me:$LINENO: checking for $ac_word" >&5
43418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43419if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43420 echo $ECHO_N "(cached) $ECHO_C" >&6
43421else
43422 case $CPPUNIT_CONFIG in
43423 [\\/]* | ?:[\\/]*)
43424 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43425 ;;
43426 *)
43427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43428for as_dir in $PATH
43429do
43430 IFS=$as_save_IFS
43431 test -z "$as_dir" && as_dir=.
43432 for ac_exec_ext in '' $ac_executable_extensions; do
43433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43434 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43436 break 2
43437 fi
43438done
43439done
43440
43441 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43442 ;;
43443esac
43444fi
43445CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43446
43447if test -n "$CPPUNIT_CONFIG"; then
43448 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43449echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43450else
43451 echo "$as_me:$LINENO: result: no" >&5
43452echo "${ECHO_T}no" >&6
43453fi
43454
43455 cppunit_version_min=1.8.0
43456
43457 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43458echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43459 no_cppunit=""
43460 if test "$CPPUNIT_CONFIG" = "no" ; then
43461 no_cppunit=yes
43462 else
43463 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43464 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43465 cppunit_version=`$CPPUNIT_CONFIG --version`
43466
43467 cppunit_major_version=`echo $cppunit_version | \
43468 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43469 cppunit_minor_version=`echo $cppunit_version | \
43470 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43471 cppunit_micro_version=`echo $cppunit_version | \
43472 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43473
43474 cppunit_major_min=`echo $cppunit_version_min | \
43475 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43476 cppunit_minor_min=`echo $cppunit_version_min | \
43477 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43478 cppunit_micro_min=`echo $cppunit_version_min | \
43479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43480
43481 cppunit_version_proper=`expr \
43482 $cppunit_major_version \> $cppunit_major_min \| \
43483 $cppunit_major_version \= $cppunit_major_min \& \
43484 $cppunit_minor_version \> $cppunit_minor_min \| \
43485 $cppunit_major_version \= $cppunit_major_min \& \
43486 $cppunit_minor_version \= $cppunit_minor_min \& \
43487 $cppunit_micro_version \>= $cppunit_micro_min `
43488
43489 if test "$cppunit_version_proper" = "1" ; then
43490 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43491echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43492 else
43493 echo "$as_me:$LINENO: result: no" >&5
43494echo "${ECHO_T}no" >&6
43495 no_cppunit=yes
43496 fi
43497 fi
43498
43499 if test "x$no_cppunit" = x ; then
c2218763 43500 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43501 else
43502 CPPUNIT_CFLAGS=""
43503 CPPUNIT_LIBS=""
c2218763 43504 :
a848cd7e
SC
43505 fi
43506
43507
43508
43509
43510
43511for subdir in `echo $SUBDIRS`; do
43512 if test -d ${srcdir}/${subdir} ; then
43513 if test "$wxUSE_GUI" = "yes"; then
43514 if test ${subdir} = "samples"; then
43515 makefiles="samples/Makefile.in $makefiles"
43516 for sample in `echo $SAMPLES_SUBDIRS`; do
43517 if test -d $srcdir/samples/$sample; then
43518 makefiles="samples/$sample/Makefile.in $makefiles"
43519 fi
43520 done
43521 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43522 fi
43523 else if test ${subdir} = "samples"; then
43524 makefiles="samples/Makefile.in samples/console/Makefile.in"
43525 elif test ${subdir} = "utils"; then
6537ccf8
VS
43526 makefiles=""
43527 for util in HelpGen tex2rtf ; do
43528 if test -d $srcdir/utils/$util ; then
43529 makefiles="utils/$util/Makefile.in \
43530 utils/$util/src/Makefile.in \
43531 $makefiles"
43532 fi
43533 done
a848cd7e
SC
43534 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43535 fi
43536 fi
43537
43538 for mkin in $makefiles ; do
43539 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43540 ac_config_files="$ac_config_files $mk"
43541
43542 done
43543 fi
43544done
43545
43546
43547cat >confcache <<\_ACEOF
43548# This file is a shell script that caches the results of configure
43549# tests run on this system so they can be shared between configure
43550# scripts and configure runs, see configure's option --config-cache.
43551# It is not useful on other systems. If it contains results you don't
43552# want to keep, you may remove or edit it.
43553#
43554# config.status only pays attention to the cache file if you give it
43555# the --recheck option to rerun configure.
43556#
43557# `ac_cv_env_foo' variables (set or unset) will be overridden when
43558# loading this file, other *unset* `ac_cv_foo' will be assigned the
43559# following values.
43560
43561_ACEOF
43562
43563# The following way of writing the cache mishandles newlines in values,
43564# but we know of no workaround that is simple, portable, and efficient.
43565# So, don't put newlines in cache variables' values.
43566# Ultrix sh set writes to stderr and can't be redirected directly,
43567# and sets the high bit in the cache file unless we assign to the vars.
43568{
43569 (set) 2>&1 |
43570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43571 *ac_space=\ *)
43572 # `set' does not quote correctly, so add quotes (double-quote
43573 # substitution turns \\\\ into \\, and sed turns \\ into \).
43574 sed -n \
ac1cb8d3
VS
43575 "s/'/'\\\\''/g;
43576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43577 ;;
43578 *)
43579 # `set' quotes correctly as required by POSIX, so do not add quotes.
43580 sed -n \
ac1cb8d3 43581 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43582 ;;
43583 esac;
43584} |
43585 sed '
43586 t clear
43587 : clear
43588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43589 t end
43590 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43591 : end' >>confcache
43592if diff $cache_file confcache >/dev/null 2>&1; then :; else
43593 if test -w $cache_file; then
43594 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43595 cat confcache >$cache_file
43596 else
43597 echo "not updating unwritable cache $cache_file"
43598 fi
43599fi
43600rm -f confcache
43601
43602test "x$prefix" = xNONE && prefix=$ac_default_prefix
43603# Let make expand exec_prefix.
43604test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43605
43606# VPATH may cause trouble with some makes, so we remove $(srcdir),
43607# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43608# trailing colons and then remove the whole line if VPATH becomes empty
43609# (actually we leave an empty line to preserve line numbers).
43610if test "x$srcdir" = x.; then
ac1cb8d3 43611 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43612s/:*\$(srcdir):*/:/;
43613s/:*\${srcdir}:*/:/;
43614s/:*@srcdir@:*/:/;
ac1cb8d3 43615s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43616s/:*$//;
ac1cb8d3 43617s/^[^=]*=[ ]*$//;
a848cd7e
SC
43618}'
43619fi
43620
43621DEFS=-DHAVE_CONFIG_H
43622
43623ac_libobjs=
43624ac_ltlibobjs=
43625for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43626 # 1. Remove the extension, and $U if already installed.
43627 ac_i=`echo "$ac_i" |
ac1cb8d3 43628 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43629 # 2. Add them.
43630 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43631 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43632done
43633LIBOBJS=$ac_libobjs
43634
43635LTLIBOBJS=$ac_ltlibobjs
43636
43637
43638
43639: ${CONFIG_STATUS=./config.status}
43640ac_clean_files_save=$ac_clean_files
43641ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43642{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43643echo "$as_me: creating $CONFIG_STATUS" >&6;}
43644cat >$CONFIG_STATUS <<_ACEOF
43645#! $SHELL
43646# Generated by $as_me.
43647# Run this file to recreate the current configuration.
43648# Compiler output produced by configure, useful for debugging
43649# configure, is in config.log if it exists.
43650
43651debug=false
43652ac_cs_recheck=false
43653ac_cs_silent=false
43654SHELL=\${CONFIG_SHELL-$SHELL}
43655_ACEOF
43656
43657cat >>$CONFIG_STATUS <<\_ACEOF
43658## --------------------- ##
43659## M4sh Initialization. ##
43660## --------------------- ##
43661
43662# Be Bourne compatible
43663if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43664 emulate sh
43665 NULLCMD=:
43666 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43667 # is contrary to our usage. Disable this feature.
43668 alias -g '${1+"$@"}'='"$@"'
43669elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43670 set -o posix
43671fi
ac1cb8d3 43672DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43673
43674# Support unset when possible.
ac1cb8d3 43675if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43676 as_unset=unset
43677else
43678 as_unset=false
43679fi
43680
43681
43682# Work around bugs in pre-3.0 UWIN ksh.
43683$as_unset ENV MAIL MAILPATH
43684PS1='$ '
43685PS2='> '
43686PS4='+ '
43687
43688# NLS nuisances.
43689for as_var in \
43690 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43691 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43692 LC_TELEPHONE LC_TIME
43693do
ac1cb8d3 43694 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43695 eval $as_var=C; export $as_var
43696 else
43697 $as_unset $as_var
43698 fi
43699done
43700
43701# Required to use basename.
43702if expr a : '\(a\)' >/dev/null 2>&1; then
43703 as_expr=expr
43704else
43705 as_expr=false
43706fi
43707
43708if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43709 as_basename=basename
43710else
43711 as_basename=false
43712fi
43713
43714
43715# Name of the executable.
43716as_me=`$as_basename "$0" ||
43717$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43718 X"$0" : 'X\(//\)$' \| \
43719 X"$0" : 'X\(/\)$' \| \
43720 . : '\(.\)' 2>/dev/null ||
43721echo X/"$0" |
43722 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43723 /^X\/\(\/\/\)$/{ s//\1/; q; }
43724 /^X\/\(\/\).*/{ s//\1/; q; }
43725 s/.*/./; q'`
43726
43727
43728# PATH needs CR, and LINENO needs CR and PATH.
43729# Avoid depending upon Character Ranges.
43730as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43731as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43732as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43733as_cr_digits='0123456789'
43734as_cr_alnum=$as_cr_Letters$as_cr_digits
43735
43736# The user is always right.
43737if test "${PATH_SEPARATOR+set}" != set; then
43738 echo "#! /bin/sh" >conf$$.sh
43739 echo "exit 0" >>conf$$.sh
43740 chmod +x conf$$.sh
43741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43742 PATH_SEPARATOR=';'
43743 else
43744 PATH_SEPARATOR=:
43745 fi
43746 rm -f conf$$.sh
43747fi
43748
43749
43750 as_lineno_1=$LINENO
43751 as_lineno_2=$LINENO
43752 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43753 test "x$as_lineno_1" != "x$as_lineno_2" &&
43754 test "x$as_lineno_3" = "x$as_lineno_2" || {
43755 # Find who we are. Look in the path if we contain no path at all
43756 # relative or not.
43757 case $0 in
43758 *[\\/]* ) as_myself=$0 ;;
43759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43760for as_dir in $PATH
43761do
43762 IFS=$as_save_IFS
43763 test -z "$as_dir" && as_dir=.
43764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43765done
43766
43767 ;;
43768 esac
43769 # We did not find ourselves, most probably we were run as `sh COMMAND'
43770 # in which case we are not to be found in the path.
43771 if test "x$as_myself" = x; then
43772 as_myself=$0
43773 fi
43774 if test ! -f "$as_myself"; then
43775 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43776echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43777 { (exit 1); exit 1; }; }
43778 fi
43779 case $CONFIG_SHELL in
43780 '')
43781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43782for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43783do
43784 IFS=$as_save_IFS
43785 test -z "$as_dir" && as_dir=.
43786 for as_base in sh bash ksh sh5; do
43787 case $as_dir in
43788 /*)
43789 if ("$as_dir/$as_base" -c '
43790 as_lineno_1=$LINENO
43791 as_lineno_2=$LINENO
43792 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43793 test "x$as_lineno_1" != "x$as_lineno_2" &&
43794 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43795 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43796 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43797 CONFIG_SHELL=$as_dir/$as_base
43798 export CONFIG_SHELL
43799 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43800 fi;;
43801 esac
43802 done
43803done
43804;;
43805 esac
43806
43807 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43808 # uniformly replaced by the line number. The first 'sed' inserts a
43809 # line-number line before each line; the second 'sed' does the real
43810 # work. The second script uses 'N' to pair each line-number line
43811 # with the numbered line, and appends trailing '-' during
43812 # substitution so that $LINENO is not a special case at line end.
43813 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43814 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43815 sed '=' <$as_myself |
43816 sed '
43817 N
43818 s,$,-,
43819 : loop
43820 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43821 t loop
43822 s,-$,,
43823 s,^['$as_cr_digits']*\n,,
43824 ' >$as_me.lineno &&
43825 chmod +x $as_me.lineno ||
43826 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43827echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43828 { (exit 1); exit 1; }; }
43829
43830 # Don't try to exec as it changes $[0], causing all sort of problems
43831 # (the dirname of $[0] is not the place where we might find the
43832 # original and so on. Autoconf is especially sensible to this).
43833 . ./$as_me.lineno
43834 # Exit status is that of the last command.
43835 exit
43836}
43837
43838
43839case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43840 *c*,-n*) ECHO_N= ECHO_C='
43841' ECHO_T=' ' ;;
43842 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43843 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43844esac
43845
43846if expr a : '\(a\)' >/dev/null 2>&1; then
43847 as_expr=expr
43848else
43849 as_expr=false
43850fi
43851
43852rm -f conf$$ conf$$.exe conf$$.file
43853echo >conf$$.file
43854if ln -s conf$$.file conf$$ 2>/dev/null; then
43855 # We could just check for DJGPP; but this test a) works b) is more generic
43856 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43857 if test -f conf$$.exe; then
43858 # Don't use ln at all; we don't have any links
43859 as_ln_s='cp -p'
43860 else
43861 as_ln_s='ln -s'
43862 fi
43863elif ln conf$$.file conf$$ 2>/dev/null; then
43864 as_ln_s=ln
43865else
43866 as_ln_s='cp -p'
43867fi
43868rm -f conf$$ conf$$.exe conf$$.file
43869
43870if mkdir -p . 2>/dev/null; then
43871 as_mkdir_p=:
43872else
ac1cb8d3 43873 test -d ./-p && rmdir ./-p
a848cd7e
SC
43874 as_mkdir_p=false
43875fi
43876
43877as_executable_p="test -f"
43878
43879# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43880as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43881
43882# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43883as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43884
43885
43886# IFS
43887# We need space, tab and new line, in precisely that order.
43888as_nl='
43889'
43890IFS=" $as_nl"
43891
43892# CDPATH.
43893$as_unset CDPATH
43894
43895exec 6>&1
43896
43897# Open the log real soon, to keep \$[0] and so on meaningful, and to
43898# report actual input values of CONFIG_FILES etc. instead of their
43899# values after options handling. Logging --version etc. is OK.
43900exec 5>>config.log
43901{
43902 echo
43903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43904## Running $as_me. ##
43905_ASBOX
43906} >&5
43907cat >&5 <<_CSEOF
43908
63c4f6da 43909This file was extended by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 43910generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43911
43912 CONFIG_FILES = $CONFIG_FILES
43913 CONFIG_HEADERS = $CONFIG_HEADERS
43914 CONFIG_LINKS = $CONFIG_LINKS
43915 CONFIG_COMMANDS = $CONFIG_COMMANDS
43916 $ $0 $@
43917
43918_CSEOF
43919echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43920echo >&5
43921_ACEOF
43922
43923# Files that config.status was made for.
43924if test -n "$ac_config_files"; then
43925 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43926fi
43927
43928if test -n "$ac_config_headers"; then
43929 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43930fi
43931
43932if test -n "$ac_config_links"; then
43933 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43934fi
43935
43936if test -n "$ac_config_commands"; then
43937 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43938fi
43939
43940cat >>$CONFIG_STATUS <<\_ACEOF
43941
43942ac_cs_usage="\
43943\`$as_me' instantiates files from templates according to the
43944current configuration.
43945
43946Usage: $0 [OPTIONS] [FILE]...
43947
43948 -h, --help print this help, then exit
43949 -V, --version print version number, then exit
43950 -q, --quiet do not print progress messages
43951 -d, --debug don't remove temporary files
43952 --recheck update $as_me by reconfiguring in the same conditions
43953 --file=FILE[:TEMPLATE]
ac1cb8d3 43954 instantiate the configuration file FILE
a848cd7e 43955 --header=FILE[:TEMPLATE]
ac1cb8d3 43956 instantiate the configuration header FILE
a848cd7e
SC
43957
43958Configuration files:
43959$config_files
43960
43961Configuration headers:
43962$config_headers
43963
43964Configuration commands:
43965$config_commands
43966
43967Report bugs to <bug-autoconf@gnu.org>."
43968_ACEOF
43969
43970cat >>$CONFIG_STATUS <<_ACEOF
43971ac_cs_version="\\
63c4f6da 43972wxWidgets config.status 2.5.5
ac1cb8d3 43973configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43974 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43975
ac1cb8d3 43976Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43977This config.status script is free software; the Free Software Foundation
43978gives unlimited permission to copy, distribute and modify it."
43979srcdir=$srcdir
43980INSTALL="$INSTALL"
43981_ACEOF
43982
43983cat >>$CONFIG_STATUS <<\_ACEOF
43984# If no file are specified by the user, then we need to provide default
43985# value. By we need to know if files were specified by the user.
43986ac_need_defaults=:
43987while test $# != 0
43988do
43989 case $1 in
43990 --*=*)
43991 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43992 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43993 ac_shift=:
43994 ;;
43995 -*)
43996 ac_option=$1
43997 ac_optarg=$2
43998 ac_shift=shift
43999 ;;
44000 *) # This is not an option, so the user has probably given explicit
44001 # arguments.
44002 ac_option=$1
44003 ac_need_defaults=false;;
44004 esac
44005
44006 case $ac_option in
44007 # Handling of the options.
44008_ACEOF
44009cat >>$CONFIG_STATUS <<\_ACEOF
44010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44011 ac_cs_recheck=: ;;
44012 --version | --vers* | -V )
44013 echo "$ac_cs_version"; exit 0 ;;
44014 --he | --h)
44015 # Conflict between --help and --header
44016 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44017Try \`$0 --help' for more information." >&5
44018echo "$as_me: error: ambiguous option: $1
44019Try \`$0 --help' for more information." >&2;}
44020 { (exit 1); exit 1; }; };;
44021 --help | --hel | -h )
44022 echo "$ac_cs_usage"; exit 0 ;;
44023 --debug | --d* | -d )
44024 debug=: ;;
44025 --file | --fil | --fi | --f )
44026 $ac_shift
44027 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44028 ac_need_defaults=false;;
44029 --header | --heade | --head | --hea )
44030 $ac_shift
44031 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44032 ac_need_defaults=false;;
44033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44034 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44035 ac_cs_silent=: ;;
44036
44037 # This is an error.
44038 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44039Try \`$0 --help' for more information." >&5
44040echo "$as_me: error: unrecognized option: $1
44041Try \`$0 --help' for more information." >&2;}
44042 { (exit 1); exit 1; }; } ;;
44043
44044 *) ac_config_targets="$ac_config_targets $1" ;;
44045
44046 esac
44047 shift
44048done
44049
44050ac_configure_extra_args=
44051
44052if $ac_cs_silent; then
44053 exec 6>/dev/null
44054 ac_configure_extra_args="$ac_configure_extra_args --silent"
44055fi
44056
44057_ACEOF
44058cat >>$CONFIG_STATUS <<_ACEOF
44059if \$ac_cs_recheck; then
44060 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44061 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44062fi
44063
44064_ACEOF
44065
44066cat >>$CONFIG_STATUS <<_ACEOF
44067#
44068# INIT-COMMANDS section.
44069#
44070
ceec2216
RL
44071 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44072 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44073 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44074 LN_S="${LN_S}"
a848cd7e
SC
44075
44076
44077_ACEOF
44078
44079
44080
44081cat >>$CONFIG_STATUS <<\_ACEOF
44082for ac_config_target in $ac_config_targets
44083do
44084 case "$ac_config_target" in
44085 # Handling of arguments.
ceec2216
RL
44086 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44087 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44088 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44089 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44090 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44091 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44092 "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
44093 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44094echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44095 { (exit 1); exit 1; }; };;
44096 esac
44097done
44098
44099# If the user did not use the arguments to specify the items to instantiate,
44100# then the envvar interface is used. Set only those that are not.
44101# We use the long form for the default assignment because of an extremely
44102# bizarre bug on SunOS 4.1.3.
44103if $ac_need_defaults; then
44104 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44105 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44106 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44107fi
44108
44109# Have a temporary directory for convenience. Make it in the build tree
44110# simply because there is no reason to put it here, and in addition,
44111# creating and moving files from /tmp can sometimes cause problems.
44112# Create a temporary directory, and hook for its removal unless debugging.
44113$debug ||
44114{
44115 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44116 trap '{ (exit 1); exit 1; }' 1 2 13 15
44117}
44118
44119# Create a (secure) tmp directory for tmp files.
44120
44121{
44122 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44123 test -n "$tmp" && test -d "$tmp"
44124} ||
44125{
44126 tmp=./confstat$$-$RANDOM
44127 (umask 077 && mkdir $tmp)
44128} ||
44129{
44130 echo "$me: cannot create a temporary directory in ." >&2
44131 { (exit 1); exit 1; }
44132}
44133
44134_ACEOF
44135
44136cat >>$CONFIG_STATUS <<_ACEOF
44137
44138#
44139# CONFIG_FILES section.
44140#
44141
44142# No need to generate the scripts if there are no CONFIG_FILES.
44143# This happens for instance when ./config.status config.h
44144if test -n "\$CONFIG_FILES"; then
44145 # Protect against being on the right side of a sed subst in config.status.
44146 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44147 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44148s,@SHELL@,$SHELL,;t t
44149s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44150s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44151s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44152s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44153s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44154s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44155s,@exec_prefix@,$exec_prefix,;t t
44156s,@prefix@,$prefix,;t t
44157s,@program_transform_name@,$program_transform_name,;t t
44158s,@bindir@,$bindir,;t t
44159s,@sbindir@,$sbindir,;t t
44160s,@libexecdir@,$libexecdir,;t t
44161s,@datadir@,$datadir,;t t
44162s,@sysconfdir@,$sysconfdir,;t t
44163s,@sharedstatedir@,$sharedstatedir,;t t
44164s,@localstatedir@,$localstatedir,;t t
44165s,@libdir@,$libdir,;t t
44166s,@includedir@,$includedir,;t t
44167s,@oldincludedir@,$oldincludedir,;t t
44168s,@infodir@,$infodir,;t t
44169s,@mandir@,$mandir,;t t
44170s,@build_alias@,$build_alias,;t t
44171s,@host_alias@,$host_alias,;t t
44172s,@target_alias@,$target_alias,;t t
44173s,@DEFS@,$DEFS,;t t
44174s,@ECHO_C@,$ECHO_C,;t t
44175s,@ECHO_N@,$ECHO_N,;t t
44176s,@ECHO_T@,$ECHO_T,;t t
44177s,@LIBS@,$LIBS,;t t
44178s,@build@,$build,;t t
44179s,@build_cpu@,$build_cpu,;t t
44180s,@build_vendor@,$build_vendor,;t t
44181s,@build_os@,$build_os,;t t
44182s,@host@,$host,;t t
44183s,@host_cpu@,$host_cpu,;t t
44184s,@host_vendor@,$host_vendor,;t t
44185s,@host_os@,$host_os,;t t
44186s,@target@,$target,;t t
44187s,@target_cpu@,$target_cpu,;t t
44188s,@target_vendor@,$target_vendor,;t t
44189s,@target_os@,$target_os,;t t
44190s,@CC@,$CC,;t t
44191s,@CFLAGS@,$CFLAGS,;t t
44192s,@LDFLAGS@,$LDFLAGS,;t t
44193s,@CPPFLAGS@,$CPPFLAGS,;t t
44194s,@ac_ct_CC@,$ac_ct_CC,;t t
44195s,@EXEEXT@,$EXEEXT,;t t
44196s,@OBJEXT@,$OBJEXT,;t t
44197s,@CPP@,$CPP,;t t
44198s,@EGREP@,$EGREP,;t t
44199s,@CXX@,$CXX,;t t
44200s,@CXXFLAGS@,$CXXFLAGS,;t t
44201s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44202s,@RANLIB@,$RANLIB,;t t
44203s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44204s,@AR@,$AR,;t t
44205s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44206s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44207s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44208s,@STRIP@,$STRIP,;t t
44209s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44210s,@LN_S@,$LN_S,;t t
44211s,@CXXCPP@,$CXXCPP,;t t
44212s,@subdirs@,$subdirs,;t t
44213s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44214s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44215s,@GTK_LIBS@,$GTK_LIBS,;t t
44216s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44217s,@X_CFLAGS@,$X_CFLAGS,;t t
44218s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44219s,@X_LIBS@,$X_LIBS,;t t
44220s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44221s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44222s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44223s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44224s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44225s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44226s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44227s,@RESCOMP@,$RESCOMP,;t t
44228s,@DEREZ@,$DEREZ,;t t
44229s,@SETFILE@,$SETFILE,;t t
44230s,@LIBICONV@,$LIBICONV,;t t
44231s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44232s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44233s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44234s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44235s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44236s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44237s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44238s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44239s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44240s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44241s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44242s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44243s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44244s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44245s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44246s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44247s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44248s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44249s,@VENDOR@,$VENDOR,;t t
44250s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44251s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44252s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44253s,@WXUNIV@,$WXUNIV,;t t
44254s,@MONOLITHIC@,$MONOLITHIC,;t t
44255s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44256s,@EXTRALIBS@,$EXTRALIBS,;t t
44257s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44258s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44259s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44260s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44261s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44262s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44263s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44264s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44265s,@UNICODE@,$UNICODE,;t t
44266s,@BUILD@,$BUILD,;t t
44267s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44268s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44269s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44270s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44271s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44272s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44273s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44274s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44275s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44276s,@SET_MAKE@,$SET_MAKE,;t t
44277s,@MAKE_SET@,$MAKE_SET,;t t
44278s,@ac_ct_AR@,$ac_ct_AR,;t t
44279s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44280s,@NM@,$NM,;t t
44281s,@ac_ct_NM@,$ac_ct_NM,;t t
44282s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44283s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44284s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44285s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44286s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44287s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44288s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44289s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44290s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44291s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44292s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44293s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44294s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44295s,@LIBPREFIX@,$LIBPREFIX,;t t
44296s,@LIBEXT@,$LIBEXT,;t t
44297s,@DLLPREFIX@,$DLLPREFIX,;t t
44298s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44299s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44300s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44301s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44302s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44303s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44304s,@PIC_FLAG@,$PIC_FLAG,;t t
44305s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44306s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44307s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44308s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44309s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44310s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44311s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44312s,@GCC_PCH@,$GCC_PCH,;t t
44313s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44314s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44315s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44316s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44317s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44318s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44319s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44320s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44321s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44322s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44323s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44324s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44325s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44326s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44327s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44328s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44329s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44330s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44331s,@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 44332s,@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 44333s,@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 44334s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44335s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44336s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44337s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44338s,@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 44339s,@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 44340s,@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 44341s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44342s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44343s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44344s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44345s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44346s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44347s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44348s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44349s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44350s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44351s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44352s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44353s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44354s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44355s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44356s,@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
44357s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44358s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44359s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44360s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44361s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44362s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44363s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44364s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44365s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44366s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44367s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44368s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44369s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44370s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44371s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44372s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44373s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44374s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44375s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44376s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44377s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44378s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44379s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44380s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44381s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44382s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44383s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44384s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44385s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44386s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44387s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44388s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44389s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44390s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44391s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44392s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44393s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44394s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44395s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44396s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44397s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44398s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44399s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44400s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44401s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44402s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44403s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44404s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44405s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44406s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44407s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44408s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44409s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44410s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44411s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44412s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44413s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44414s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44415s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44416s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44417s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44418s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44419s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44420s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44421s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44422s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44423s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44424s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44425s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44426s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44427s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44428s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44429s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44430s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44431s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44432s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44433s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44434s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44435s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44436s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44437s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44438s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44439s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44440s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44441s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44442s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44443s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44444s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44445s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44446s,@USE_GUI@,$USE_GUI,;t t
44447s,@AFMINSTALL@,$AFMINSTALL,;t t
44448s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44449s,@TOOLKIT@,$TOOLKIT,;t t
44450s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44451s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44452s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44453s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44454s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44455s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44456s,@WIDGET_SET@,$WIDGET_SET,;t t
44457s,@WX_RELEASE@,$WX_RELEASE,;t t
44458s,@WX_VERSION@,$WX_VERSION,;t t
44459s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44460s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44461s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44462s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44463s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44464s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44465s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44466s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44467s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44468s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44469s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44470s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44471s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44472s,@DISTDIR@,$DISTDIR,;t t
44473s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44474s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44475s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44476s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44477s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44478s,@RESFLAGS@,$RESFLAGS,;t t
44479s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44480s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44481s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44482s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44483s,@MACRESCOMP@,$MACRESCOMP,;t t
44484s,@MACSETFILE@,$MACSETFILE,;t t
44485s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44486s,@GCC@,$GCC,;t t
a848cd7e 44487s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44488s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44489s,@LIBOBJS@,$LIBOBJS,;t t
44490s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44491CEOF
44492
44493_ACEOF
44494
44495 cat >>$CONFIG_STATUS <<\_ACEOF
44496 # Split the substitutions into bite-sized pieces for seds with
44497 # small command number limits, like on Digital OSF/1 and HP-UX.
44498 ac_max_sed_lines=48
44499 ac_sed_frag=1 # Number of current file.
44500 ac_beg=1 # First line for current file.
44501 ac_end=$ac_max_sed_lines # Line after last line for current file.
44502 ac_more_lines=:
44503 ac_sed_cmds=
44504 while $ac_more_lines; do
44505 if test $ac_beg -gt 1; then
44506 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44507 else
44508 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44509 fi
44510 if test ! -s $tmp/subs.frag; then
44511 ac_more_lines=false
44512 else
44513 # The purpose of the label and of the branching condition is to
44514 # speed up the sed processing (if there are no `@' at all, there
44515 # is no need to browse any of the substitutions).
44516 # These are the two extra sed commands mentioned above.
44517 (echo ':t
44518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44519 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44520 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44521 else
ac1cb8d3 44522 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44523 fi
44524 ac_sed_frag=`expr $ac_sed_frag + 1`
44525 ac_beg=$ac_end
44526 ac_end=`expr $ac_end + $ac_max_sed_lines`
44527 fi
44528 done
44529 if test -z "$ac_sed_cmds"; then
44530 ac_sed_cmds=cat
44531 fi
44532fi # test -n "$CONFIG_FILES"
44533
44534_ACEOF
44535cat >>$CONFIG_STATUS <<\_ACEOF
44536for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44538 case $ac_file in
44539 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44540 cat >$tmp/stdin
44541 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44542 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44543 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44544 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44545 * ) ac_file_in=$ac_file.in ;;
44546 esac
44547
44548 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44549 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44550$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44551 X"$ac_file" : 'X\(//\)[^/]' \| \
44552 X"$ac_file" : 'X\(//\)$' \| \
44553 X"$ac_file" : 'X\(/\)' \| \
44554 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44555echo X"$ac_file" |
44556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44558 /^X\(\/\/\)$/{ s//\1/; q; }
44559 /^X\(\/\).*/{ s//\1/; q; }
44560 s/.*/./; q'`
44561 { if $as_mkdir_p; then
44562 mkdir -p "$ac_dir"
44563 else
44564 as_dir="$ac_dir"
44565 as_dirs=
44566 while test ! -d "$as_dir"; do
44567 as_dirs="$as_dir $as_dirs"
44568 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44570 X"$as_dir" : 'X\(//\)[^/]' \| \
44571 X"$as_dir" : 'X\(//\)$' \| \
44572 X"$as_dir" : 'X\(/\)' \| \
44573 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44574echo X"$as_dir" |
44575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44577 /^X\(\/\/\)$/{ s//\1/; q; }
44578 /^X\(\/\).*/{ s//\1/; q; }
44579 s/.*/./; q'`
44580 done
44581 test ! -n "$as_dirs" || mkdir $as_dirs
44582 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44583echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44584 { (exit 1); exit 1; }; }; }
44585
44586 ac_builddir=.
44587
44588if test "$ac_dir" != .; then
44589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44590 # A "../" for each directory in $ac_dir_suffix.
44591 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44592else
44593 ac_dir_suffix= ac_top_builddir=
44594fi
44595
44596case $srcdir in
44597 .) # No --srcdir option. We are building in place.
44598 ac_srcdir=.
44599 if test -z "$ac_top_builddir"; then
44600 ac_top_srcdir=.
44601 else
44602 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44603 fi ;;
44604 [\\/]* | ?:[\\/]* ) # Absolute path.
44605 ac_srcdir=$srcdir$ac_dir_suffix;
44606 ac_top_srcdir=$srcdir ;;
44607 *) # Relative path.
44608 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44609 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44610esac
ac1cb8d3
VS
44611
44612# Do not use `cd foo && pwd` to compute absolute paths, because
44613# the directories may not exist.
44614case `pwd` in
44615.) ac_abs_builddir="$ac_dir";;
44616*)
44617 case "$ac_dir" in
44618 .) ac_abs_builddir=`pwd`;;
44619 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44620 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44621 esac;;
44622esac
44623case $ac_abs_builddir in
44624.) ac_abs_top_builddir=${ac_top_builddir}.;;
44625*)
44626 case ${ac_top_builddir}. in
44627 .) ac_abs_top_builddir=$ac_abs_builddir;;
44628 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44629 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44630 esac;;
44631esac
44632case $ac_abs_builddir in
44633.) ac_abs_srcdir=$ac_srcdir;;
44634*)
44635 case $ac_srcdir in
44636 .) ac_abs_srcdir=$ac_abs_builddir;;
44637 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44638 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44639 esac;;
44640esac
44641case $ac_abs_builddir in
44642.) ac_abs_top_srcdir=$ac_top_srcdir;;
44643*)
44644 case $ac_top_srcdir in
44645 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44646 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44647 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44648 esac;;
44649esac
a848cd7e
SC
44650
44651
44652 case $INSTALL in
44653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44654 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44655 esac
44656
a848cd7e
SC
44657 # Let's still pretend it is `configure' which instantiates (i.e., don't
44658 # use $as_me), people would be surprised to read:
44659 # /* config.h. Generated by config.status. */
44660 if test x"$ac_file" = x-; then
44661 configure_input=
44662 else
44663 configure_input="$ac_file. "
44664 fi
44665 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44666 sed 's,.*/,,'` by configure."
a848cd7e
SC
44667
44668 # First look for the input files in the build tree, otherwise in the
44669 # src tree.
44670 ac_file_inputs=`IFS=:
44671 for f in $ac_file_in; do
44672 case $f in
44673 -) echo $tmp/stdin ;;
44674 [\\/$]*)
ac1cb8d3
VS
44675 # Absolute (can't be DOS-style, as IFS=:)
44676 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44677echo "$as_me: error: cannot find input file: $f" >&2;}
44678 { (exit 1); exit 1; }; }
ac1cb8d3 44679 echo "$f";;
a848cd7e 44680 *) # Relative
ac1cb8d3
VS
44681 if test -f "$f"; then
44682 # Build tree
44683 echo "$f"
44684 elif test -f "$srcdir/$f"; then
44685 # Source tree
44686 echo "$srcdir/$f"
44687 else
44688 # /dev/null tree
44689 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44690echo "$as_me: error: cannot find input file: $f" >&2;}
44691 { (exit 1); exit 1; }; }
ac1cb8d3 44692 fi;;
a848cd7e
SC
44693 esac
44694 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
44695
44696 if test x"$ac_file" != x-; then
44697 { echo "$as_me:$LINENO: creating $ac_file" >&5
44698echo "$as_me: creating $ac_file" >&6;}
44699 rm -f "$ac_file"
44700 fi
a848cd7e
SC
44701_ACEOF
44702cat >>$CONFIG_STATUS <<_ACEOF
44703 sed "$ac_vpsub
44704$extrasub
44705_ACEOF
44706cat >>$CONFIG_STATUS <<\_ACEOF
44707:t
44708/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44709s,@configure_input@,$configure_input,;t t
44710s,@srcdir@,$ac_srcdir,;t t
44711s,@abs_srcdir@,$ac_abs_srcdir,;t t
44712s,@top_srcdir@,$ac_top_srcdir,;t t
44713s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44714s,@builddir@,$ac_builddir,;t t
44715s,@abs_builddir@,$ac_abs_builddir,;t t
44716s,@top_builddir@,$ac_top_builddir,;t t
44717s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44718s,@INSTALL@,$ac_INSTALL,;t t
44719" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44720 rm -f $tmp/stdin
44721 if test x"$ac_file" != x-; then
44722 mv $tmp/out $ac_file
44723 else
44724 cat $tmp/out
44725 rm -f $tmp/out
44726 fi
44727
ceec2216
RL
44728 # Run the commands associated with the file.
44729 case $ac_file in
44730 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44731 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44732 esac
a848cd7e
SC
44733done
44734_ACEOF
44735cat >>$CONFIG_STATUS <<\_ACEOF
44736
44737#
44738# CONFIG_HEADER section.
44739#
44740
44741# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44742# NAME is the cpp macro being defined and VALUE is the value it is being given.
44743#
44744# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44745ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44746ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44747ac_dC=' '
44748ac_dD=',;t'
44749# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44750ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44751ac_uB='$,\1#\2define\3'
44752ac_uC=' '
44753ac_uD=',;t'
44754
44755for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44757 case $ac_file in
44758 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44759 cat >$tmp/stdin
44760 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44761 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44762 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44764 * ) ac_file_in=$ac_file.in ;;
44765 esac
44766
44767 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44768echo "$as_me: creating $ac_file" >&6;}
44769
44770 # First look for the input files in the build tree, otherwise in the
44771 # src tree.
44772 ac_file_inputs=`IFS=:
44773 for f in $ac_file_in; do
44774 case $f in
44775 -) echo $tmp/stdin ;;
44776 [\\/$]*)
ac1cb8d3
VS
44777 # Absolute (can't be DOS-style, as IFS=:)
44778 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44779echo "$as_me: error: cannot find input file: $f" >&2;}
44780 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44781 # Do quote $f, to prevent DOS paths from being IFS'd.
44782 echo "$f";;
a848cd7e 44783 *) # Relative
ac1cb8d3
VS
44784 if test -f "$f"; then
44785 # Build tree
44786 echo "$f"
44787 elif test -f "$srcdir/$f"; then
44788 # Source tree
44789 echo "$srcdir/$f"
44790 else
44791 # /dev/null tree
44792 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44793echo "$as_me: error: cannot find input file: $f" >&2;}
44794 { (exit 1); exit 1; }; }
ac1cb8d3 44795 fi;;
a848cd7e
SC
44796 esac
44797 done` || { (exit 1); exit 1; }
44798 # Remove the trailing spaces.
ac1cb8d3 44799 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44800
44801_ACEOF
44802
44803# Transform confdefs.h into two sed scripts, `conftest.defines' and
44804# `conftest.undefs', that substitutes the proper values into
44805# config.h.in to produce config.h. The first handles `#define'
44806# templates, and the second `#undef' templates.
44807# And first: Protect against being on the right side of a sed subst in
44808# config.status. Protect against being in an unquoted here document
44809# in config.status.
44810rm -f conftest.defines conftest.undefs
44811# Using a here document instead of a string reduces the quoting nightmare.
44812# Putting comments in sed scripts is not portable.
44813#
44814# `end' is used to avoid that the second main sed command (meant for
44815# 0-ary CPP macros) applies to n-ary macro definitions.
44816# See the Autoconf documentation for `clear'.
44817cat >confdef2sed.sed <<\_ACEOF
44818s/[\\&,]/\\&/g
44819s,[\\$`],\\&,g
44820t clear
44821: clear
ac1cb8d3 44822s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44823t end
ac1cb8d3 44824s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44825: end
44826_ACEOF
44827# If some macros were called several times there might be several times
44828# the same #defines, which is useless. Nevertheless, we may not want to
44829# sort them, since we want the *last* AC-DEFINE to be honored.
44830uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44831sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44832rm -f confdef2sed.sed
44833
44834# This sed command replaces #undef with comments. This is necessary, for
44835# example, in the case of _POSIX_SOURCE, which is predefined and required
44836# on some systems where configure will not decide to define it.
44837cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44838s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44839_ACEOF
44840
44841# Break up conftest.defines because some shells have a limit on the size
44842# of here documents, and old seds have small limits too (100 cmds).
44843echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44844echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44845echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44846echo ' :' >>$CONFIG_STATUS
44847rm -f conftest.tail
44848while grep . conftest.defines >/dev/null
44849do
44850 # Write a limited-size here document to $tmp/defines.sed.
44851 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44852 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44853 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44854 # Work around the forget-to-reset-the-flag bug.
44855 echo 't clr' >>$CONFIG_STATUS
44856 echo ': clr' >>$CONFIG_STATUS
44857 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44858 echo 'CEOF
44859 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44860 rm -f $tmp/in
44861 mv $tmp/out $tmp/in
44862' >>$CONFIG_STATUS
44863 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44864 rm -f conftest.defines
44865 mv conftest.tail conftest.defines
44866done
44867rm -f conftest.defines
44868echo ' fi # grep' >>$CONFIG_STATUS
44869echo >>$CONFIG_STATUS
44870
44871# Break up conftest.undefs because some shells have a limit on the size
44872# of here documents, and old seds have small limits too (100 cmds).
44873echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44874rm -f conftest.tail
44875while grep . conftest.undefs >/dev/null
44876do
44877 # Write a limited-size here document to $tmp/undefs.sed.
44878 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44879 # Speed up: don't consider the non `#undef'
ac1cb8d3 44880 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44881 # Work around the forget-to-reset-the-flag bug.
44882 echo 't clr' >>$CONFIG_STATUS
44883 echo ': clr' >>$CONFIG_STATUS
44884 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44885 echo 'CEOF
44886 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44887 rm -f $tmp/in
44888 mv $tmp/out $tmp/in
44889' >>$CONFIG_STATUS
44890 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44891 rm -f conftest.undefs
44892 mv conftest.tail conftest.undefs
44893done
44894rm -f conftest.undefs
44895
44896cat >>$CONFIG_STATUS <<\_ACEOF
44897 # Let's still pretend it is `configure' which instantiates (i.e., don't
44898 # use $as_me), people would be surprised to read:
44899 # /* config.h. Generated by config.status. */
44900 if test x"$ac_file" = x-; then
44901 echo "/* Generated by configure. */" >$tmp/config.h
44902 else
44903 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44904 fi
44905 cat $tmp/in >>$tmp/config.h
44906 rm -f $tmp/in
44907 if test x"$ac_file" != x-; then
44908 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44909 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44910echo "$as_me: $ac_file is unchanged" >&6;}
44911 else
44912 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44914 X"$ac_file" : 'X\(//\)[^/]' \| \
44915 X"$ac_file" : 'X\(//\)$' \| \
44916 X"$ac_file" : 'X\(/\)' \| \
44917 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44918echo X"$ac_file" |
44919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44921 /^X\(\/\/\)$/{ s//\1/; q; }
44922 /^X\(\/\).*/{ s//\1/; q; }
44923 s/.*/./; q'`
44924 { if $as_mkdir_p; then
44925 mkdir -p "$ac_dir"
44926 else
44927 as_dir="$ac_dir"
44928 as_dirs=
44929 while test ! -d "$as_dir"; do
44930 as_dirs="$as_dir $as_dirs"
44931 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44932$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44933 X"$as_dir" : 'X\(//\)[^/]' \| \
44934 X"$as_dir" : 'X\(//\)$' \| \
44935 X"$as_dir" : 'X\(/\)' \| \
44936 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44937echo X"$as_dir" |
44938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44940 /^X\(\/\/\)$/{ s//\1/; q; }
44941 /^X\(\/\).*/{ s//\1/; q; }
44942 s/.*/./; q'`
44943 done
44944 test ! -n "$as_dirs" || mkdir $as_dirs
44945 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44946echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44947 { (exit 1); exit 1; }; }; }
44948
44949 rm -f $ac_file
44950 mv $tmp/config.h $ac_file
44951 fi
44952 else
44953 cat $tmp/config.h
44954 rm -f $tmp/config.h
44955 fi
44956done
44957_ACEOF
44958cat >>$CONFIG_STATUS <<\_ACEOF
44959
44960#
44961# CONFIG_COMMANDS section.
44962#
44963for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44964 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44965 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44966 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44967$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44968 X"$ac_dest" : 'X\(//\)[^/]' \| \
44969 X"$ac_dest" : 'X\(//\)$' \| \
44970 X"$ac_dest" : 'X\(/\)' \| \
44971 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44972echo X"$ac_dest" |
44973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44975 /^X\(\/\/\)$/{ s//\1/; q; }
44976 /^X\(\/\).*/{ s//\1/; q; }
44977 s/.*/./; q'`
ac1cb8d3
VS
44978 { if $as_mkdir_p; then
44979 mkdir -p "$ac_dir"
44980 else
44981 as_dir="$ac_dir"
44982 as_dirs=
44983 while test ! -d "$as_dir"; do
44984 as_dirs="$as_dir $as_dirs"
44985 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44987 X"$as_dir" : 'X\(//\)[^/]' \| \
44988 X"$as_dir" : 'X\(//\)$' \| \
44989 X"$as_dir" : 'X\(/\)' \| \
44990 . : '\(.\)' 2>/dev/null ||
44991echo X"$as_dir" |
44992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44994 /^X\(\/\/\)$/{ s//\1/; q; }
44995 /^X\(\/\).*/{ s//\1/; q; }
44996 s/.*/./; q'`
44997 done
44998 test ! -n "$as_dirs" || mkdir $as_dirs
44999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45000echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45001 { (exit 1); exit 1; }; }; }
45002
a848cd7e
SC
45003 ac_builddir=.
45004
45005if test "$ac_dir" != .; then
45006 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45007 # A "../" for each directory in $ac_dir_suffix.
45008 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45009else
45010 ac_dir_suffix= ac_top_builddir=
45011fi
45012
45013case $srcdir in
45014 .) # No --srcdir option. We are building in place.
45015 ac_srcdir=.
45016 if test -z "$ac_top_builddir"; then
45017 ac_top_srcdir=.
45018 else
45019 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45020 fi ;;
45021 [\\/]* | ?:[\\/]* ) # Absolute path.
45022 ac_srcdir=$srcdir$ac_dir_suffix;
45023 ac_top_srcdir=$srcdir ;;
45024 *) # Relative path.
45025 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45026 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45027esac
ac1cb8d3
VS
45028
45029# Do not use `cd foo && pwd` to compute absolute paths, because
45030# the directories may not exist.
45031case `pwd` in
45032.) ac_abs_builddir="$ac_dir";;
45033*)
45034 case "$ac_dir" in
45035 .) ac_abs_builddir=`pwd`;;
45036 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45037 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45038 esac;;
45039esac
45040case $ac_abs_builddir in
45041.) ac_abs_top_builddir=${ac_top_builddir}.;;
45042*)
45043 case ${ac_top_builddir}. in
45044 .) ac_abs_top_builddir=$ac_abs_builddir;;
45045 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45046 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45047 esac;;
45048esac
45049case $ac_abs_builddir in
45050.) ac_abs_srcdir=$ac_srcdir;;
45051*)
45052 case $ac_srcdir in
45053 .) ac_abs_srcdir=$ac_abs_builddir;;
45054 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45055 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45056 esac;;
45057esac
45058case $ac_abs_builddir in
45059.) ac_abs_top_srcdir=$ac_top_srcdir;;
45060*)
45061 case $ac_top_srcdir in
45062 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45063 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45064 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45065 esac;;
45066esac
a848cd7e
SC
45067
45068
45069 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45070echo "$as_me: executing $ac_dest commands" >&6;}
45071 case $ac_dest in
ceec2216
RL
45072 wx-config ) rm -f wx-config
45073 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45074 ;;
a848cd7e
SC
45075 esac
45076done
45077_ACEOF
45078
45079cat >>$CONFIG_STATUS <<\_ACEOF
45080
45081{ (exit 0); exit 0; }
45082_ACEOF
45083chmod +x $CONFIG_STATUS
45084ac_clean_files=$ac_clean_files_save
45085
45086
45087# configure is writing to config.log, and then calls config.status.
45088# config.status does its own redirection, appending to config.log.
45089# Unfortunately, on DOS this fails, as config.log is still kept open
45090# by configure, so config.status won't be able to write to it; its
45091# output is simply discarded. So we exec the FD to /dev/null,
45092# effectively closing config.log, so it can be properly (re)opened and
45093# appended to by config.status. When coming back to configure, we
45094# need to make the FD available again.
45095if test "$no_create" != yes; then
45096 ac_cs_success=:
45097 ac_config_status_args=
45098 test "$silent" = yes &&
45099 ac_config_status_args="$ac_config_status_args --quiet"
45100 exec 5>/dev/null
45101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45102 exec 5>>config.log
45103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45104 # would make configure fail if this is the last instruction.
45105 $ac_cs_success || { (exit 1); exit 1; }
45106fi
45107
45108#
45109# CONFIG_SUBDIRS section.
45110#
45111if test "$no_recursion" != yes; then
45112
45113 # Remove --cache-file and --srcdir arguments so they do not pile up.
45114 ac_sub_configure_args=
45115 ac_prev=
45116 for ac_arg in $ac_configure_args; do
45117 if test -n "$ac_prev"; then
45118 ac_prev=
45119 continue
45120 fi
45121 case $ac_arg in
45122 -cache-file | --cache-file | --cache-fil | --cache-fi \
45123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45124 ac_prev=cache_file ;;
45125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45127 | --c=*)
45128 ;;
45129 --config-cache | -C)
45130 ;;
45131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45132 ac_prev=srcdir ;;
45133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45134 ;;
45135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45136 ac_prev=prefix ;;
45137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45138 ;;
45139 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45140 esac
45141 done
45142
45143 # Always prepend --prefix to ensure using the same prefix
45144 # in subdir configurations.
45145 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45146
45147 ac_popdir=`pwd`
45148 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45149
45150 # Do not complain, so a configure script can configure whichever
45151 # parts of a large source tree are present.
45152 test -d $srcdir/$ac_dir || continue
45153
45154 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45155echo "$as_me: configuring in $ac_dir" >&6;}
45156 { if $as_mkdir_p; then
45157 mkdir -p "$ac_dir"
45158 else
45159 as_dir="$ac_dir"
45160 as_dirs=
45161 while test ! -d "$as_dir"; do
45162 as_dirs="$as_dir $as_dirs"
45163 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45165 X"$as_dir" : 'X\(//\)[^/]' \| \
45166 X"$as_dir" : 'X\(//\)$' \| \
45167 X"$as_dir" : 'X\(/\)' \| \
45168 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45169echo X"$as_dir" |
45170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45172 /^X\(\/\/\)$/{ s//\1/; q; }
45173 /^X\(\/\).*/{ s//\1/; q; }
45174 s/.*/./; q'`
45175 done
45176 test ! -n "$as_dirs" || mkdir $as_dirs
45177 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45178echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45179 { (exit 1); exit 1; }; }; }
45180
45181 ac_builddir=.
45182
45183if test "$ac_dir" != .; then
45184 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45185 # A "../" for each directory in $ac_dir_suffix.
45186 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45187else
45188 ac_dir_suffix= ac_top_builddir=
45189fi
45190
45191case $srcdir in
45192 .) # No --srcdir option. We are building in place.
45193 ac_srcdir=.
45194 if test -z "$ac_top_builddir"; then
45195 ac_top_srcdir=.
45196 else
45197 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45198 fi ;;
45199 [\\/]* | ?:[\\/]* ) # Absolute path.
45200 ac_srcdir=$srcdir$ac_dir_suffix;
45201 ac_top_srcdir=$srcdir ;;
45202 *) # Relative path.
45203 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45204 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45205esac
ac1cb8d3
VS
45206
45207# Do not use `cd foo && pwd` to compute absolute paths, because
45208# the directories may not exist.
45209case `pwd` in
45210.) ac_abs_builddir="$ac_dir";;
45211*)
45212 case "$ac_dir" in
45213 .) ac_abs_builddir=`pwd`;;
45214 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45215 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45216 esac;;
45217esac
45218case $ac_abs_builddir in
45219.) ac_abs_top_builddir=${ac_top_builddir}.;;
45220*)
45221 case ${ac_top_builddir}. in
45222 .) ac_abs_top_builddir=$ac_abs_builddir;;
45223 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45224 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45225 esac;;
45226esac
45227case $ac_abs_builddir in
45228.) ac_abs_srcdir=$ac_srcdir;;
45229*)
45230 case $ac_srcdir in
45231 .) ac_abs_srcdir=$ac_abs_builddir;;
45232 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45233 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45234 esac;;
45235esac
45236case $ac_abs_builddir in
45237.) ac_abs_top_srcdir=$ac_top_srcdir;;
45238*)
45239 case $ac_top_srcdir in
45240 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45241 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45242 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45243 esac;;
45244esac
a848cd7e
SC
45245
45246
45247 cd $ac_dir
45248
45249 # Check for guested configure; otherwise get Cygnus style configure.
45250 if test -f $ac_srcdir/configure.gnu; then
45251 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45252 elif test -f $ac_srcdir/configure; then
45253 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45254 elif test -f $ac_srcdir/configure.in; then
45255 ac_sub_configure=$ac_configure
45256 else
45257 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45258echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45259 ac_sub_configure=
45260 fi
45261
45262 # The recursion is here.
45263 if test -n "$ac_sub_configure"; then
45264 # Make the cache file name correct relative to the subdirectory.
45265 case $cache_file in
45266 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45267 *) # Relative path.
ac1cb8d3 45268 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45269 esac
45270
45271 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45272echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45273 # The eval makes quoting arguments work.
45274 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45275 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45276 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45277echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45278 { (exit 1); exit 1; }; }
45279 fi
45280
9dd0f6c2 45281 cd "$ac_popdir"
a848cd7e
SC
45282 done
45283fi
45284
45285
45286echo
77ffb593 45287echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45288echo ""
4d4ff94c 45289echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45290echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45291
77ffb593
JS
45292echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45293echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45294echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45295
77ffb593
JS
45296echo " What level of wxWidgets compatibility should be enabled?"
45297echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45298echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45299
77ffb593 45300echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45301echo " jpeg ${wxUSE_LIBJPEG-none}"
45302echo " png ${wxUSE_LIBPNG-none}"
45303echo " regex ${wxUSE_REGEX}"
45304echo " tiff ${wxUSE_LIBTIFF-none}"
45305if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45306echo " xpm ${wxUSE_LIBXPM-none}"
45307fi
45308echo " zlib ${wxUSE_ZLIB}"
45309echo " odbc ${wxUSE_ODBC}"
45310echo " expat ${wxUSE_EXPAT}"
45311echo " libmspack ${wxUSE_LIBMSPACK}"
45312echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45313echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45314
45315echo ""
45316