]> git.saurik.com Git - wxWidgets.git/blame - configure
Mac Core Graphics Implementation
[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.
81f90336 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4.
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'
81f90336
MW
273PACKAGE_VERSION='2.5.4'
274PACKAGE_STRING='wxWidgets 2.5.4'
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"
1e6eb025 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 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_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_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_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
81f90336 797\`configure' configures wxWidgets 2.5.4 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
81f90336 863 short | recursive ) echo "Configuration of wxWidgets 2.5.4:";;
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
a848cd7e 907 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
911 --enable-dialupman use dialup network classes
912 --enable-dynlib use wxLibrary class for DLL loading
913 --enable-dynamicloader use (new) wxDynamicLibrary class
914 --enable-exceptions build exception-safe library
915 --enable-ffile use wxFFile class
916 --enable-file use wxFile class
917 --enable-filesystem use virtual file systems classes
918 --enable-fontmap use font encodings conversion classes
919 --enable-fs_inet use virtual HTTP/FTP filesystems
920 --enable-fs_zip use virtual ZIP filesystems
921 --enable-geometry use geometry class
922 --enable-log use logging system
923 --enable-longlong use wxLongLong class
924 --enable-mimetype use wxMimeTypesManager
925 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
926 --enable-snglinst use wxSingleInstanceChecker class
927 --enable-streams use wxStream etc classes
928 --enable-std_iostreams use standard C++ stream classes
929 --enable-stopwatch use wxStopWatch class
930 --enable-sysoptions use wxSystemOptions
931 --enable-textbuf use wxTextBuffer class
932 --enable-textfile use wxTextFile class
933 --enable-timer use wxTimer class
934 --enable-unicode compile wxString with Unicode support
935 --enable-sound use wxSound class
3b57de8b 936 --enable-mediactrl use wxMediaCtrl class
77ffb593 937 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 938 --enable-zipstream use wxZip streams
a848cd7e
SC
939 --enable-url use wxURL class
940 --enable-protocol use wxProtocol class
941 --enable-protocol-http HTTP support in wxProtocol
942 --enable-protocol-ftp FTP support in wxProtocol
943 --enable-protocol-file FILE support in wxProtocol
944 --enable-threads use threads
945 --enable-docview use document view architecture
946 --enable-help use help subsystem
947 --enable-mshtmlhelp use MS HTML Help (win32)
948 --enable-html use wxHTML sub-library
949 --enable-htmlhelp use wxHTML-based help
9a8f0513 950 --enable-xrc use XRC resources sub-library
a848cd7e
SC
951 --enable-constraints use layout-constraints system
952 --enable-printarch use printing architecture
953 --enable-mdi use multiple document interface architecture
8a7b1113 954 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
955 --enable-loggui use standard GUI logger
956 --enable-logwin use wxLogWindow
957 --enable-logdialog use wxLogDialog
646b6ec1 958 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
959 --enable-postscript use wxPostscriptDC device context (default for gtk+)
960 --enable-prologio not available; see contrib
961 --enable-resources not available; see contrib
962 --enable-clipboard use wxClipboard class
963 --enable-dnd use Drag'n'Drop classes
964 --enable-metafile use win32 metafiles
965 --enable-controls use all usual controls
966 --enable-accel use accelerators
967 --enable-button use wxButton class
968 --enable-bmpbutton use wxBitmapButton class
969 --enable-calendar use wxCalendarCtrl class
970 --enable-caret use wxCaret class
971 --enable-checkbox use wxCheckBox class
972 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
973 --enable-choice use wxChoice class
92bbdbcd 974 --enable-choicebook use wxChoicebook class
a848cd7e 975 --enable-combobox use wxComboBox class
da98e9be 976 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
977 --enable-display use wxDisplay class
978 --enable-gauge use wxGauge class
979 --enable-grid use wxGrid class
980 --enable-imaglist use wxImageList class
981 --enable-listbook use wxListbook class
982 --enable-listbox use wxListBox class
983 --enable-listctrl use wxListCtrl class
984 --enable-notebook use wxNotebook class
985 --enable-radiobox use wxRadioBox class
986 --enable-radiobtn use wxRadioButton class
987 --enable-sash use wxSashWindow class
988 --enable-scrollbar use wxScrollBar class and scrollable windows
989 --enable-slider use wxSlider class
990 --enable-spinbtn use wxSpinButton class
991 --enable-spinctrl use wxSpinCtrl class
992 --enable-splitter use wxSplitterWindow class
993 --enable-statbmp use wxStaticBitmap class
994 --enable-statbox use wxStaticBox class
995 --enable-statline use wxStaticLine class
996 --enable-stattext use wxStaticText class
997 --enable-statusbar use wxStatusBar class
998 --enable-tabdialog use wxTabControl class
999 --enable-textctrl use wxTextCtrl class
1000 --enable-togglebtn use wxToggleButton class
1001 --enable-toolbar use wxToolBar class
1002 --enable-tbarnative use native wxToolBar class
1003 --enable-tbarsmpl use wxToolBarSimple class
1004 --enable-treectrl use wxTreeCtrl class
1005 --enable-tipwindow use wxTipWindow class
1006 --enable-popupwin use wxPopUpWindow class
1007 --enable-commondlg use all common dialogs
1008 --enable-choicedlg use wxChoiceDialog
1009 --enable-coldlg use wxColourDialog
1010 --enable-filedlg use wxFileDialog
1011 --enable-finddlg use wxFindReplaceDialog
1012 --enable-fontdlg use wxFontDialog
1013 --enable-dirdlg use wxDirDialog
1014 --enable-msgdlg use wxMessageDialog
1015 --enable-numberdlg use wxNumberEntryDialog
1016 --enable-splash use wxSplashScreen
1017 --enable-textdlg use wxTextDialog
1018 --enable-tipdlg use startup tips
1019 --enable-progressdlg use wxProgressDialog
1020 --enable-wizarddlg use wxWizard
1021 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1022 --enable-miniframe use wxMiniFrame class
1023 --enable-tooltips use wxToolTip class
1024 --enable-splines use spline drawing code
1025 --enable-validators use wxValidator and derived classes
1026 --enable-busyinfo use wxBusyInfo
1027 --enable-joystick use wxJoystick (Linux only)
1028 --enable-metafiles use wxMetaFile (Windows only)
1029 --enable-dragimage use wxDragImage
1030 --enable-accessibility enable accessibility support
1031 --enable-palette use wxPalette class
1032 --enable-image use wxImage class
1033 --enable-gif use gif images (GIF file format)
1034 --enable-pcx use pcx images (PCX file format)
1035 --enable-iff use iff images (IFF file format)
1036 --enable-pnm use pnm images (PNM file format)
1037 --enable-xpm use xpm images (XPM file format)
1038 --enable-icocur use Windows ICO and CUR formats
77ffb593 1039 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1040 --enable-vendor=VENDOR vendor name (win32 DLL only)
1041 --disable-largefile omit support for large files
1042 --disable-gtktest do not try to compile and run a test GTK+ program
1043 --disable-gtktest Do not try to compile and run a test GTK program
1044 --disable-sdltest Do not try to compile and run a test SDL program
1045 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1046 --disable-precomp-headers
1047 don't use precompiled headers even if compiler can
a848cd7e
SC
1048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gtk use GTK+
1053 --with-motif use Motif/Lesstif
1054 --with-mac use Mac OS X
1055 --with-cocoa use Cocoa
1056 --with-wine use Wine
1057 --with-msw use MS-Windows
1058 --with-pm use OS/2 Presentation Manager
1059 --with-mgl use SciTech MGL
1060 --with-microwin use MicroWindows
1061 --with-x11 use X11
1062 --with-libpng use libpng (PNG image format)
1063 --with-libjpeg use libjpeg (JPEG file format)
1064 --with-libtiff use libtiff (TIFF file format)
1065 --with-libxpm use libxpm (XPM file format)
1066 --with-libmspack use libmspack (CHM help files loading)
1067 --with-sdl use SDL for audio on Unix
d51253e8 1068 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1069 --with-opengl use OpenGL (or Mesa)
1070 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1071 --with-regex enable support for wxRegEx class
1072 --with-zlib use zlib for LZW compression
1073 --with-odbc use the IODBC and wxODBC classes
1074 --with-expat enable XML support using expat parser
ceec2216 1075 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1076 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1077 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1078 --with-x use the X Window System
1079 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1080 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1081 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1082 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1083 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1084
1085Some influential environment variables:
dcc1b6ad
VS
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1089 nonstandard directory <lib dir>
1090 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091 headers in a nonstandard directory <include dir>
1092 CPP C preprocessor
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1095 CXXCPP C++ preprocessor
a848cd7e
SC
1096
1097Use these variables to override the choices made by `configure' or to help
1098it to find libraries and programs with nonstandard names/locations.
1099
77ffb593 1100Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1101_ACEOF
1102fi
1103
1104if test "$ac_init_help" = "recursive"; then
1105 # If there are subdirs, report their specific --help.
1106 ac_popdir=`pwd`
1107 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108 test -d $ac_dir || continue
1109 ac_builddir=.
1110
1111if test "$ac_dir" != .; then
1112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113 # A "../" for each directory in $ac_dir_suffix.
1114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1115else
1116 ac_dir_suffix= ac_top_builddir=
1117fi
1118
1119case $srcdir in
1120 .) # No --srcdir option. We are building in place.
1121 ac_srcdir=.
1122 if test -z "$ac_top_builddir"; then
1123 ac_top_srcdir=.
1124 else
1125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1126 fi ;;
1127 [\\/]* | ?:[\\/]* ) # Absolute path.
1128 ac_srcdir=$srcdir$ac_dir_suffix;
1129 ac_top_srcdir=$srcdir ;;
1130 *) # Relative path.
1131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133esac
ac1cb8d3
VS
1134
1135# Do not use `cd foo && pwd` to compute absolute paths, because
1136# the directories may not exist.
1137case `pwd` in
1138.) ac_abs_builddir="$ac_dir";;
1139*)
1140 case "$ac_dir" in
1141 .) ac_abs_builddir=`pwd`;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_builddir=${ac_top_builddir}.;;
1148*)
1149 case ${ac_top_builddir}. in
1150 .) ac_abs_top_builddir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_srcdir=$ac_srcdir;;
1157*)
1158 case $ac_srcdir in
1159 .) ac_abs_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162 esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_srcdir=$ac_top_srcdir;;
1166*)
1167 case $ac_top_srcdir in
1168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171 esac;;
1172esac
a848cd7e
SC
1173
1174 cd $ac_dir
1175 # Check for guested configure; otherwise get Cygnus style configure.
1176 if test -f $ac_srcdir/configure.gnu; then
1177 echo
1178 $SHELL $ac_srcdir/configure.gnu --help=recursive
1179 elif test -f $ac_srcdir/configure; then
1180 echo
1181 $SHELL $ac_srcdir/configure --help=recursive
1182 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1183 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1184 echo
1185 $ac_configure --help
1186 else
1187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1188 fi
89be85c2 1189 cd $ac_popdir
a848cd7e
SC
1190 done
1191fi
1192
1193test -n "$ac_init_help" && exit 0
1194if $ac_init_version; then
1195 cat <<\_ACEOF
81f90336 1196wxWidgets configure 2.5.4
ac1cb8d3 1197generated by GNU Autoconf 2.59
a848cd7e 1198
ac1cb8d3 1199Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202_ACEOF
1203 exit 0
1204fi
1205exec 5>config.log
1206cat >&5 <<_ACEOF
1207This file contains any messages produced by compilers while
1208running configure, to aid debugging if configure makes a mistake.
1209
81f90336 1210It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1211generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1212
1213 $ $0 $@
1214
1215_ACEOF
1216{
1217cat <<_ASUNAME
1218## --------- ##
1219## Platform. ##
1220## --------- ##
1221
1222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1223uname -m = `(uname -m) 2>/dev/null || echo unknown`
1224uname -r = `(uname -r) 2>/dev/null || echo unknown`
1225uname -s = `(uname -s) 2>/dev/null || echo unknown`
1226uname -v = `(uname -v) 2>/dev/null || echo unknown`
1227
1228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1230
1231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1234hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1238
1239_ASUNAME
1240
1241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1242for as_dir in $PATH
1243do
1244 IFS=$as_save_IFS
1245 test -z "$as_dir" && as_dir=.
1246 echo "PATH: $as_dir"
1247done
1248
1249} >&5
1250
1251cat >&5 <<_ACEOF
1252
1253
1254## ----------- ##
1255## Core tests. ##
1256## ----------- ##
1257
1258_ACEOF
1259
1260
1261# Keep a trace of the command line.
1262# Strip out --no-create and --no-recursion so they do not pile up.
1263# Strip out --silent because we don't want to record it for future runs.
1264# Also quote any args containing shell meta-characters.
1265# Make two passes to allow for proper duplicate-argument suppression.
1266ac_configure_args=
1267ac_configure_args0=
1268ac_configure_args1=
1269ac_sep=
1270ac_must_keep_next=false
1271for ac_pass in 1 2
1272do
1273 for ac_arg
1274 do
1275 case $ac_arg in
1276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 continue ;;
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 esac
1283 case $ac_pass in
1284 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1285 2)
1286 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1287 if test $ac_must_keep_next = true; then
ac1cb8d3 1288 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1289 else
ac1cb8d3
VS
1290 case $ac_arg in
1291 *=* | --config-cache | -C | -disable-* | --disable-* \
1292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1294 | -with-* | --with-* | -without-* | --without-* | --x)
1295 case "$ac_configure_args0 " in
1296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 esac
1298 ;;
1299 -* ) ac_must_keep_next=true ;;
1300 esac
a848cd7e
SC
1301 fi
1302 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1303 # Get rid of the leading space.
1304 ac_sep=" "
1305 ;;
1306 esac
1307 done
1308done
1309$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1310$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1311
1312# When interrupted or exit'd, cleanup temporary files, and complete
1313# config.log. We remove comments because anyway the quotes in there
1314# would cause problems or look ugly.
1315# WARNING: Be sure not to use single quotes in there, as some shells,
1316# such as our DU 5.0 friend, will then `close' the trap.
1317trap 'exit_status=$?
1318 # Save into config.log some information that might help in debugging.
1319 {
1320 echo
1321
1322 cat <<\_ASBOX
1323## ---------------- ##
1324## Cache variables. ##
1325## ---------------- ##
1326_ASBOX
1327 echo
1328 # The following way of writing the cache mishandles newlines in values,
1329{
1330 (set) 2>&1 |
1331 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 *ac_space=\ *)
1333 sed -n \
ac1cb8d3
VS
1334 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1336 ;;
1337 *)
1338 sed -n \
ac1cb8d3 1339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1340 ;;
1341 esac;
1342}
1343 echo
1344
1345 cat <<\_ASBOX
1346## ----------------- ##
1347## Output variables. ##
1348## ----------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_vars
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357
1358 if test -n "$ac_subst_files"; then
1359 cat <<\_ASBOX
1360## ------------- ##
1361## Output files. ##
1362## ------------- ##
1363_ASBOX
1364 echo
1365 for ac_var in $ac_subst_files
1366 do
1367 eval ac_val=$`echo $ac_var`
ac1cb8d3 1368 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1369 done | sort
1370 echo
1371 fi
1372
1373 if test -s confdefs.h; then
1374 cat <<\_ASBOX
1375## ----------- ##
1376## confdefs.h. ##
1377## ----------- ##
1378_ASBOX
1379 echo
1380 sed "/^$/d" confdefs.h | sort
1381 echo
1382 fi
1383 test "$ac_signal" != 0 &&
1384 echo "$as_me: caught signal $ac_signal"
1385 echo "$as_me: exit $exit_status"
1386 } >&5
ac1cb8d3 1387 rm -f core *.core &&
a848cd7e
SC
1388 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 exit $exit_status
1390 ' 0
1391for ac_signal in 1 2 13 15; do
1392 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1393done
1394ac_signal=0
1395
1396# confdefs.h avoids OS command line length limits that DEFS can exceed.
1397rm -rf conftest* confdefs.h
1398# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399echo >confdefs.h
1400
1401# Predefined preprocessor variables.
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_NAME "$PACKAGE_NAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_VERSION "$PACKAGE_VERSION"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_STRING "$PACKAGE_STRING"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1425_ACEOF
1426
1427
1428# Let the site file select an alternate cache file if it wants to.
1429# Prefer explicitly selected file to automatically selected ones.
1430if test -z "$CONFIG_SITE"; then
1431 if test "x$prefix" != xNONE; then
1432 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1433 else
1434 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1435 fi
1436fi
1437for ac_site_file in $CONFIG_SITE; do
1438 if test -r "$ac_site_file"; then
1439 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1440echo "$as_me: loading site script $ac_site_file" >&6;}
1441 sed 's/^/| /' "$ac_site_file" >&5
1442 . "$ac_site_file"
1443 fi
1444done
1445
1446if test -r "$cache_file"; then
1447 # Some versions of bash will fail to source /dev/null (special
1448 # files actually), so we avoid doing that.
1449 if test -f "$cache_file"; then
1450 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1451echo "$as_me: loading cache $cache_file" >&6;}
1452 case $cache_file in
1453 [\\/]* | ?:[\\/]* ) . $cache_file;;
1454 *) . ./$cache_file;;
1455 esac
1456 fi
1457else
1458 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1459echo "$as_me: creating cache $cache_file" >&6;}
1460 >$cache_file
1461fi
1462
1463# Check that the precious variables saved in the cache have kept the same
1464# value.
1465ac_cache_corrupted=false
1466for ac_var in `(set) 2>&1 |
ac1cb8d3 1467 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1469 eval ac_new_set=\$ac_env_${ac_var}_set
1470 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1471 eval ac_new_val="\$ac_env_${ac_var}_value"
1472 case $ac_old_set,$ac_new_set in
1473 set,)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,set)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,);;
1482 *)
1483 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1484 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1485echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1487echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1489echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1490 ac_cache_corrupted=:
a848cd7e
SC
1491 fi;;
1492 esac
1493 # Pass precious variables to config.status.
1494 if test "$ac_new_set" = set; then
1495 case $ac_new_val in
1496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1497 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 *) ac_arg=$ac_var=$ac_new_val ;;
1499 esac
1500 case " $ac_configure_args " in
1501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1502 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 esac
1504 fi
1505done
1506if $ac_cache_corrupted; then
1507 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1508echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1509 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1510echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513
1514ac_ext=c
1515ac_cpp='$CPP $CPPFLAGS'
1516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1518ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519
1520
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
1549ac_aux_dir=
1550for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if test -f $ac_dir/install-sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1554 break
1555 elif test -f $ac_dir/install.sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1558 break
1559 elif test -f $ac_dir/shtool; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1562 break
1563 fi
1564done
1565if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1569fi
1570ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573
1574# Make sure we can run config.sub.
1575$ac_config_sub sun4 >/dev/null 2>&1 ||
1576 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1577echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580echo "$as_me:$LINENO: checking build system type" >&5
1581echo $ECHO_N "checking build system type... $ECHO_C" >&6
1582if test "${ac_cv_build+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_build_alias=$build_alias
1586test -z "$ac_cv_build_alias" &&
1587 ac_cv_build_alias=`$ac_config_guess`
1588test -z "$ac_cv_build_alias" &&
1589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1590echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1591 { (exit 1); exit 1; }; }
1592ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1594echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597fi
1598echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1599echo "${ECHO_T}$ac_cv_build" >&6
1600build=$ac_cv_build
1601build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606echo "$as_me:$LINENO: checking host system type" >&5
1607echo $ECHO_N "checking host system type... $ECHO_C" >&6
1608if test "${ac_cv_host+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 ac_cv_host_alias=$host_alias
1612test -z "$ac_cv_host_alias" &&
1613 ac_cv_host_alias=$ac_cv_build_alias
1614ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1616echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619fi
1620echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1621echo "${ECHO_T}$ac_cv_host" >&6
1622host=$ac_cv_host
1623host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628echo "$as_me:$LINENO: checking target system type" >&5
1629echo $ECHO_N "checking target system type... $ECHO_C" >&6
1630if test "${ac_cv_target+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 ac_cv_target_alias=$target_alias
1634test "x$ac_cv_target_alias" = "x" &&
1635 ac_cv_target_alias=$ac_cv_host_alias
1636ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1643echo "${ECHO_T}$ac_cv_target" >&6
1644target=$ac_cv_target
1645target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650# The aliases save the names the user supplied, while $host etc.
1651# will get canonicalized.
1652test -n "$target_alias" &&
1653 test "$program_prefix$program_suffix$program_transform_name" = \
1654 NONENONEs,x,x, &&
1655 program_prefix=${target_alias}-
1656
1657
1658
ceec2216
RL
1659wx_major_version_number=2
1660wx_minor_version_number=5
e41c39d6
RD
1661wx_release_number=4
1662wx_subrelease_number=0
a848cd7e 1663
ceec2216
RL
1664WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1665WX_VERSION=$WX_RELEASE.$wx_release_number
1666WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1667
ceec2216 1668WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1669
e41c39d6 1670WX_CURRENT=4
a848cd7e 1671WX_REVISION=0
e41c39d6 1672WX_AGE=4
a848cd7e
SC
1673
1674
1675
1676USE_UNIX=1
1677USE_OS2=0
1678USE_WIN32=0
1679USE_DOS=0
1680USE_BEOS=0
1681USE_MAC=0
1682
1683USE_AIX=
1684USE_BSD= USE_DARWIN= USE_FREEBSD=
1685USE_GNU= USE_HPUX=
1686USE_LINUX=
1687USE_NETBSD=
1688USE_OPENBSD=
1689USE_OSF= USE_SGI=
1690USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1691USE_ULTRIX=
1692USE_UNIXWARE=
1693
1694USE_ALPHA=
1695
1696NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1697
1698ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1699
1700DEFAULT_wxUSE_COCOA=0
1701DEFAULT_wxUSE_GTK=0
1702DEFAULT_wxUSE_MAC=0
1703DEFAULT_wxUSE_MGL=0
1704DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_wxUSE_MSW=0
1707DEFAULT_wxUSE_PM=0
1708DEFAULT_wxUSE_X11=0
1709
1710DEFAULT_DEFAULT_wxUSE_COCOA=0
1711DEFAULT_DEFAULT_wxUSE_GTK=0
1712DEFAULT_DEFAULT_wxUSE_MAC=0
1713DEFAULT_DEFAULT_wxUSE_MGL=0
1714DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1715DEFAULT_DEFAULT_wxUSE_MOTIF=0
1716DEFAULT_DEFAULT_wxUSE_MSW=0
1717DEFAULT_DEFAULT_wxUSE_PM=0
1718DEFAULT_DEFAULT_wxUSE_X11=0
1719
1720PROGRAM_EXT=
1721SO_SUFFIX=so
1722SAMPLES_RPATH_FLAG=
1723SAMPLES_RPATH_POSTLINK=
1724
1725case "${host}" in
1726 *-hp-hpux* )
1727 USE_HPUX=1
1728 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1729 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1730 SO_SUFFIX=sl
1731 cat >>confdefs.h <<\_ACEOF
1732#define __HPUX__ 1
1733_ACEOF
1734
1735 ;;
1736 *-*-linux* )
1737 USE_LINUX=1
1738 cat >>confdefs.h <<\_ACEOF
1739#define __LINUX__ 1
1740_ACEOF
1741
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __ALPHA__ 1
1747_ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-gnu* | *-*-k*bsd*-gnu )
1753 USE_GNU=1
1754 TMP=`uname -m`
1755 if test "x$TMP" = "xalpha"; then
1756 USE_ALPHA=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __ALPHA__ 1
1759_ACEOF
1760
1761 fi
1762 DEFAULT_DEFAULT_wxUSE_GTK=1
1763 ;;
1764 *-*-irix5* | *-*-irix6* )
1765 USE_SGI=1
1766 USE_SVR4=1
1767 cat >>confdefs.h <<\_ACEOF
1768#define __SGI__ 1
1769_ACEOF
1770
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SVR4__ 1
1773_ACEOF
1774
1775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1776 ;;
1777 *-*-solaris2* )
1778 USE_SUN=1
1779 USE_SOLARIS=1
1780 USE_SVR4=1
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SUN__ 1
1783_ACEOF
1784
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SOLARIS__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SVR4__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1794 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1795 ;;
1796 *-*-sunos4* )
1797 USE_SUN=1
1798 USE_SUNOS=1
1799 USE_BSD=1
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SUN__ 1
1802_ACEOF
1803
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUNOS__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __BSD__ 1
1810_ACEOF
1811
1812 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1813 ;;
1814 *-*-freebsd*)
1815 USE_BSD=1
1816 USE_FREEBSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818#define __FREEBSD__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __BSD__ 1
1823_ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-openbsd*)
1828 USE_BSD=1
1829 USE_OPENBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831#define __OPENBSD__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-netbsd*)
1841 USE_BSD=1
1842 USE_NETBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __NETBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-osf* )
1854 USE_ALPHA=1
1855 USE_OSF=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __ALPHA__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __OSF__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1866 ;;
1867 *-*-dgux5* )
1868 USE_ALPHA=1
1869 USE_SVR4=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __ALPHA__ 1
1872_ACEOF
1873
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SVR4__ 1
1876_ACEOF
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-sysv5* )
1881 USE_SYSV=1
1882 USE_SVR4=1
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SYSV__ 1
1885_ACEOF
1886
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SVR4__ 1
1889_ACEOF
1890
1891 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1892 ;;
1893 *-*-aix* )
1894 USE_AIX=1
1895 USE_SYSV=1
1896 USE_SVR4=1
1897 SO_SUFFIX=a
1898 cat >>confdefs.h <<\_ACEOF
1899#define __AIX__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SYSV__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SVR4__ 1
1908_ACEOF
1909
1910 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1911 ;;
1912
1913 *-*-*UnixWare*)
1914 USE_SYSV=1
1915 USE_SVR4=1
1916 USE_UNIXWARE=1
1917 cat >>confdefs.h <<\_ACEOF
1918#define __UNIXWARE__ 1
1919_ACEOF
1920
1921 ;;
1922
1923 *-*-cygwin* | *-*-mingw32* )
1924 SO_SUFFIX=dll
1925 PROGRAM_EXT=".exe"
1926 RESCOMP=windres
1927 DEFAULT_DEFAULT_wxUSE_MSW=1
1928 ;;
1929
1930 *-pc-msdosdjgpp )
1931 USE_UNIX=0
1932 USE_DOS=1
1933 cat >>confdefs.h <<\_ACEOF
1934#define __DOS__ 1
1935_ACEOF
1936
1937 PROGRAM_EXT=".exe"
1938 DEFAULT_DEFAULT_wxUSE_MGL=1
1939 LIBS="$LIBS -lstdc++"
1940 ;;
1941
1942 *-pc-os2_emx | *-pc-os2-emx )
1943 cat >>confdefs.h <<\_ACEOF
1944#define __EMX__ 1
1945_ACEOF
1946
1947 USE_OS2=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __OS2__ 1
1950_ACEOF
1951
1952 PROGRAM_EXT=".exe"
1953 DEFAULT_DEFAULT_wxUSE_PM=1
1954 CXX=gcc
1955 LDFLAGS="$LDFLAGS -Zcrtdll"
1956 ac_executable_extensions=".exe"
1957 export ac_executable_extensions
1958 ac_save_IFS="$IFS"
1959 IFS='\\'
1960 ac_TEMP_PATH=
1961 for ac_dir in $PATH; do
1962 IFS=$ac_save_IFS
1963 if test -z "$ac_TEMP_PATH"; then
1964 ac_TEMP_PATH="$ac_dir"
1965 else
1966 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1967 fi
1968 done
1969 export PATH="$ac_TEMP_PATH"
1970 unset ac_TEMP_PATH
1971 ;;
1972
1973 powerpc-*-darwin* )
1974 USE_BSD=1
1975 USE_DARWIN=1
1976 SO_SUFFIX=dylib
1977 cat >>confdefs.h <<\_ACEOF
1978#define __BSD__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __DARWIN__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __POWERPC__ 1
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
1994 ;;
1e9e8aba
DE
1995 powerpc-apple-macos* )
1996 USE_UNIX=0
1997 ac_cv_c_bigendian=yes
1998 SO_SUFFIX=shlib
1999 DEFAULT_DEFAULT_wxUSE_MAC=1
2000 ;;
a848cd7e
SC
2001
2002 *-*-beos* )
2003 USE_BEOS=1
2004 cat >>confdefs.h <<\_ACEOF
2005#define __BEOS__ 1
2006_ACEOF
2007
2008 ;;
2009
2010 *)
2011 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2012echo "$as_me: error: unknown system type ${host}." >&2;}
2013 { (exit 1); exit 1; }; }
2014esac
2015
2016
2017
2018
2019 wx_arg_cache_file="configarg.cache"
2020 echo "loading argument cache $wx_arg_cache_file"
2021 rm -f ${wx_arg_cache_file}.tmp
2022 touch ${wx_arg_cache_file}.tmp
2023 touch ${wx_arg_cache_file}
2024
2025
2026DEBUG_CONFIGURE=0
2027if test $DEBUG_CONFIGURE = 1; then
2028 DEFAULT_wxUSE_UNIVERSAL=no
2029 DEFAULT_wxUSE_STL=no
2030
2031 DEFAULT_wxUSE_NANOX=no
2032
2033 DEFAULT_wxUSE_THREADS=yes
2034
2035 DEFAULT_wxUSE_SHARED=yes
2036 DEFAULT_wxUSE_OPTIMISE=no
2037 DEFAULT_wxUSE_PROFILE=no
2038 DEFAULT_wxUSE_NO_DEPS=no
2039 DEFAULT_wxUSE_NO_RTTI=no
2040 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2041 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2042 DEFAULT_wxUSE_PERMISSIVE=no
2043 DEFAULT_wxUSE_DEBUG_FLAG=yes
2044 DEFAULT_wxUSE_DEBUG_INFO=yes
2045 DEFAULT_wxUSE_DEBUG_GDB=yes
2046 DEFAULT_wxUSE_MEM_TRACING=no
2047 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2048 DEFAULT_wxUSE_DMALLOC=no
2049 DEFAULT_wxUSE_APPLE_IEEE=no
2050
2051 DEFAULT_wxUSE_EXCEPTIONS=no
2052 DEFAULT_wxUSE_LOG=yes
2053 DEFAULT_wxUSE_LOGWINDOW=no
2054 DEFAULT_wxUSE_LOGGUI=no
2055 DEFAULT_wxUSE_LOGDIALOG=no
2056
2057 DEFAULT_wxUSE_GUI=yes
2058 DEFAULT_wxUSE_CONTROLS=no
2059
2060 DEFAULT_wxUSE_REGEX=no
2061 DEFAULT_wxUSE_XML=no
2062 DEFAULT_wxUSE_EXPAT=no
2063 DEFAULT_wxUSE_ZLIB=no
2064 DEFAULT_wxUSE_LIBPNG=no
2065 DEFAULT_wxUSE_LIBJPEG=no
2066 DEFAULT_wxUSE_LIBTIFF=no
2067 DEFAULT_wxUSE_LIBXPM=no
2068 DEFAULT_wxUSE_LIBMSPACK=no
2069 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2070 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2071 DEFAULT_wxUSE_ODBC=no
2072 DEFAULT_wxUSE_OPENGL=no
2073
2074 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2075 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2076 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2077 DEFAULT_wxUSE_STD_IOSTREAM=no
2078 DEFAULT_wxUSE_CMDLINE_PARSER=no
2079 DEFAULT_wxUSE_DATETIME=no
2080 DEFAULT_wxUSE_TIMER=no
2081 DEFAULT_wxUSE_STOPWATCH=no
2082 DEFAULT_wxUSE_FILE=no
2083 DEFAULT_wxUSE_FFILE=no
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
81f90336 2158 DEFAULT_wxUSE_ARCSTREAM=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
a848cd7e
SC
2269 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2270 DEFAULT_wxUSE_STD_IOSTREAM=no
2271 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2272 DEFAULT_wxUSE_DATETIME=yes
2273 DEFAULT_wxUSE_TIMER=yes
2274 DEFAULT_wxUSE_STOPWATCH=yes
2275 DEFAULT_wxUSE_FILE=yes
2276 DEFAULT_wxUSE_FFILE=yes
2277 DEFAULT_wxUSE_TEXTBUFFER=yes
2278 DEFAULT_wxUSE_TEXTFILE=yes
2279 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2280 DEFAULT_wxUSE_MEDIACTRL=no
2281 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2282 DEFAULT_wxUSE_INTL=yes
2283 DEFAULT_wxUSE_CONFIG=yes
2284 DEFAULT_wxUSE_FONTMAP=yes
2285 DEFAULT_wxUSE_STREAMS=yes
2286 DEFAULT_wxUSE_SOCKETS=yes
2287 DEFAULT_wxUSE_OLE=yes
2288 DEFAULT_wxUSE_DATAOBJ=yes
2289 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2290 DEFAULT_wxUSE_JOYSTICK=yes
2291 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2292 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2293 DEFAULT_wxUSE_LONGLONG=yes
2294 DEFAULT_wxUSE_GEOMETRY=yes
2295
2296 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2297 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2298 DEFAULT_wxUSE_POSTSCRIPT=yes
2299
2300 DEFAULT_wxUSE_CLIPBOARD=yes
2301 DEFAULT_wxUSE_TOOLTIPS=yes
2302 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2303 DEFAULT_wxUSE_DRAGIMAGE=yes
2304 DEFAULT_wxUSE_SPLINES=yes
2305
8a7b1113 2306 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2307 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2308 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2309 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2310
2311 DEFAULT_wxUSE_RESOURCES=no
2312 DEFAULT_wxUSE_CONSTRAINTS=yes
2313 DEFAULT_wxUSE_IPC=yes
2314 DEFAULT_wxUSE_HELP=yes
2315 DEFAULT_wxUSE_MS_HTML_HELP=yes
2316 DEFAULT_wxUSE_WXHTML_HELP=yes
2317 DEFAULT_wxUSE_TREELAYOUT=yes
2318 DEFAULT_wxUSE_METAFILE=yes
2319 DEFAULT_wxUSE_MIMETYPE=yes
2320 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2321 DEFAULT_wxUSE_PROTOCOL=yes
2322 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2323 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2324 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2325 DEFAULT_wxUSE_URL=yes
2326
2327 DEFAULT_wxUSE_COMMONDLGS=yes
2328 DEFAULT_wxUSE_CHOICEDLG=yes
2329 DEFAULT_wxUSE_COLOURDLG=yes
2330 DEFAULT_wxUSE_DIRDLG=yes
2331 DEFAULT_wxUSE_FILEDLG=yes
2332 DEFAULT_wxUSE_FINDREPLDLG=yes
2333 DEFAULT_wxUSE_FONTDLG=yes
2334 DEFAULT_wxUSE_MSGDLG=yes
2335 DEFAULT_wxUSE_NUMBERDLG=yes
2336 DEFAULT_wxUSE_TEXTDLG=yes
2337 DEFAULT_wxUSE_SPLASH=yes
2338 DEFAULT_wxUSE_STARTUP_TIPS=yes
2339 DEFAULT_wxUSE_PROGRESSDLG=yes
2340 DEFAULT_wxUSE_WIZARDDLG=yes
2341
2342 DEFAULT_wxUSE_MENUS=yes
2343 DEFAULT_wxUSE_MINIFRAME=yes
2344 DEFAULT_wxUSE_HTML=yes
9a8f0513 2345 DEFAULT_wxUSE_XRC=yes
646b6ec1 2346 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2347 DEFAULT_wxUSE_FILESYSTEM=yes
2348 DEFAULT_wxUSE_FS_INET=yes
2349 DEFAULT_wxUSE_FS_ZIP=yes
2350 DEFAULT_wxUSE_BUSYINFO=yes
81f90336 2351 DEFAULT_wxUSE_ARCSTREAM=yes
a848cd7e 2352 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2353 DEFAULT_wxUSE_VALIDATORS=yes
2354
2355 DEFAULT_wxUSE_ACCEL=yes
2356 DEFAULT_wxUSE_BUTTON=yes
2357 DEFAULT_wxUSE_BMPBUTTON=yes
2358 DEFAULT_wxUSE_CALCTRL=yes
2359 DEFAULT_wxUSE_CARET=yes
2360 DEFAULT_wxUSE_CHECKBOX=yes
2361 DEFAULT_wxUSE_CHECKLST=yes
2362 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2363 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2364 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2365 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2366 DEFAULT_wxUSE_DISPLAY=yes
2367 DEFAULT_wxUSE_GAUGE=yes
2368 DEFAULT_wxUSE_GRID=yes
2369 DEFAULT_wxUSE_IMAGLIST=yes
2370 DEFAULT_wxUSE_LISTBOOK=yes
2371 DEFAULT_wxUSE_LISTBOX=yes
2372 DEFAULT_wxUSE_LISTCTRL=yes
2373 DEFAULT_wxUSE_NOTEBOOK=yes
2374 DEFAULT_wxUSE_RADIOBOX=yes
2375 DEFAULT_wxUSE_RADIOBTN=yes
2376 DEFAULT_wxUSE_SASH=yes
2377 DEFAULT_wxUSE_SCROLLBAR=yes
2378 DEFAULT_wxUSE_SLIDER=yes
2379 DEFAULT_wxUSE_SPINBTN=yes
2380 DEFAULT_wxUSE_SPINCTRL=yes
2381 DEFAULT_wxUSE_SPLITTER=yes
2382 DEFAULT_wxUSE_STATBMP=yes
2383 DEFAULT_wxUSE_STATBOX=yes
2384 DEFAULT_wxUSE_STATLINE=yes
2385 DEFAULT_wxUSE_STATTEXT=yes
2386 DEFAULT_wxUSE_STATUSBAR=yes
2387 DEFAULT_wxUSE_TABDIALOG=no
2388 DEFAULT_wxUSE_TEXTCTRL=yes
2389 DEFAULT_wxUSE_TOGGLEBTN=yes
2390 DEFAULT_wxUSE_TOOLBAR=yes
2391 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2392 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2393 DEFAULT_wxUSE_TREECTRL=yes
2394 DEFAULT_wxUSE_POPUPWIN=yes
2395 DEFAULT_wxUSE_TIPWINDOW=yes
2396
2397 DEFAULT_wxUSE_UNICODE=no
2398 DEFAULT_wxUSE_UNICODE_MSLU=yes
2399 DEFAULT_wxUSE_WCSRTOMBS=no
2400
2401 DEFAULT_wxUSE_PALETTE=yes
2402 DEFAULT_wxUSE_IMAGE=yes
2403 DEFAULT_wxUSE_GIF=yes
2404 DEFAULT_wxUSE_PCX=yes
2405 DEFAULT_wxUSE_IFF=no
2406 DEFAULT_wxUSE_PNM=yes
2407 DEFAULT_wxUSE_XPM=yes
2408 DEFAULT_wxUSE_ICO_CUR=yes
2409 DEFAULT_wxUSE_ACCESSIBILITY=no
2410
2411 DEFAULT_wxUSE_MONOLITHIC=no
2412 DEFAULT_wxUSE_PLUGINS=no
2413 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2414
2415 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2416fi
2417
2418
2419
2420for toolkit in `echo $ALL_TOOLKITS`; do
2421 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2422 if test "x$LINE" != "x" ; then
2423 has_toolkit_in_cache=1
2424 eval "DEFAULT_$LINE"
2425 eval "CACHE_$toolkit=1"
2426 fi
2427done
2428
2429
2430
2431 enablestring=
2432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2433echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2434 no_cache=0
2435 # Check whether --enable-gui or --disable-gui was given.
2436if test "${enable_gui+set}" = set; then
2437 enableval="$enable_gui"
2438
2439 if test "$enableval" = yes; then
2440 ac_cv_use_gui='wxUSE_GUI=yes'
2441 else
2442 ac_cv_use_gui='wxUSE_GUI=no'
2443 fi
2444
2445else
2446
2447 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2448 if test "x$LINE" != x ; then
2449 eval "DEFAULT_$LINE"
2450 else
2451 no_cache=1
2452 fi
2453
2454 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2455
2456fi;
2457
2458 eval "$ac_cv_use_gui"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_GUI" = yes; then
2464 echo "$as_me:$LINENO: result: yes" >&5
2465echo "${ECHO_T}yes" >&6
2466 else
2467 echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6
2469 fi
2470
2471
2472 enablestring=
2473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2474echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2475 no_cache=0
2476 # Check whether --enable-monolithic or --disable-monolithic was given.
2477if test "${enable_monolithic+set}" = set; then
2478 enableval="$enable_monolithic"
2479
2480 if test "$enableval" = yes; then
2481 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2482 else
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2484 fi
2485
2486else
2487
2488 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2496
2497fi;
2498
2499 eval "$ac_cv_use_monolithic"
2500 if test "$no_cache" != 1; then
2501 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2502 fi
2503
2504 if test "$wxUSE_MONOLITHIC" = yes; then
2505 echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6
2507 else
2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510 fi
2511
2512
2513 enablestring=
2514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2515echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2516 no_cache=0
2517 # Check whether --enable-plugins or --disable-plugins was given.
2518if test "${enable_plugins+set}" = set; then
2519 enableval="$enable_plugins"
2520
2521 if test "$enableval" = yes; then
2522 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2523 else
2524 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2525 fi
2526
2527else
2528
2529 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2530 if test "x$LINE" != x ; then
2531 eval "DEFAULT_$LINE"
2532 else
2533 no_cache=1
2534 fi
2535
2536 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2537
2538fi;
2539
2540 eval "$ac_cv_use_plugins"
2541 if test "$no_cache" != 1; then
2542 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2543 fi
2544
2545 if test "$wxUSE_PLUGINS" = yes; then
2546 echo "$as_me:$LINENO: result: yes" >&5
2547echo "${ECHO_T}yes" >&6
2548 else
2549 echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6
2551 fi
2552
2553
2554if test "$wxUSE_GUI" = "yes"; then
2555
2556
2557 enablestring=
2558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2559echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2560 no_cache=0
2561 # Check whether --enable-universal or --disable-universal was given.
2562if test "${enable_universal+set}" = set; then
2563 enableval="$enable_universal"
2564
2565 if test "$enableval" = yes; then
2566 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2567 else
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2569 fi
2570
2571else
2572
2573 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2574 if test "x$LINE" != x ; then
2575 eval "DEFAULT_$LINE"
2576 else
2577 no_cache=1
2578 fi
2579
2580 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2581
2582fi;
2583
2584 eval "$ac_cv_use_universal"
2585 if test "$no_cache" != 1; then
2586 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2587 fi
2588
2589 if test "$wxUSE_UNIVERSAL" = yes; then
2590 echo "$as_me:$LINENO: result: yes" >&5
2591echo "${ECHO_T}yes" >&6
2592 else
2593 echo "$as_me:$LINENO: result: no" >&5
2594echo "${ECHO_T}no" >&6
2595 fi
2596
2597
2598# Check whether --with-gtk or --without-gtk was given.
2599if test "${with_gtk+set}" = set; then
2600 withval="$with_gtk"
2601 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2602fi;
2603
2604# Check whether --with-motif or --without-motif was given.
2605if test "${with_motif+set}" = set; then
2606 withval="$with_motif"
2607 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2608fi;
2609
2610# Check whether --with-mac or --without-mac was given.
2611if test "${with_mac+set}" = set; then
2612 withval="$with_mac"
c228d3a4 2613 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2614fi;
2615
2616# Check whether --with-cocoa or --without-cocoa was given.
2617if test "${with_cocoa+set}" = set; then
2618 withval="$with_cocoa"
c228d3a4 2619 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2620fi;
2621
2622# Check whether --with-wine or --without-wine was given.
2623if test "${with_wine+set}" = set; then
2624 withval="$with_wine"
2625 wxUSE_WINE="$withval" CACHE_WINE=1
2626fi;
2627
2628# Check whether --with-msw or --without-msw was given.
2629if test "${with_msw+set}" = set; then
2630 withval="$with_msw"
2631 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2632fi;
2633
2634# Check whether --with-pm or --without-pm was given.
2635if test "${with_pm+set}" = set; then
2636 withval="$with_pm"
2637 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2638fi;
2639
2640# Check whether --with-mgl or --without-mgl was given.
2641if test "${with_mgl+set}" = set; then
2642 withval="$with_mgl"
2643 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2644fi;
2645
2646# Check whether --with-microwin or --without-microwin was given.
2647if test "${with_microwin+set}" = set; then
2648 withval="$with_microwin"
2649 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2650fi;
2651
2652# Check whether --with-x11 or --without-x11 was given.
2653if test "${with_x11+set}" = set; then
2654 withval="$with_x11"
2655 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2656fi;
2657
2658 enablestring=
2659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2660echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2661 no_cache=0
2662 # Check whether --enable-nanox or --disable-nanox was given.
2663if test "${enable_nanox+set}" = set; then
2664 enableval="$enable_nanox"
2665
2666 if test "$enableval" = yes; then
2667 ac_cv_use_nanox='wxUSE_NANOX=yes'
2668 else
2669 ac_cv_use_nanox='wxUSE_NANOX=no'
2670 fi
2671
2672else
2673
2674 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2682
2683fi;
2684
2685 eval "$ac_cv_use_nanox"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_NANOX" = yes; then
2691 echo "$as_me:$LINENO: result: yes" >&5
2692echo "${ECHO_T}yes" >&6
2693 else
2694 echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6
2696 fi
2697
2698
2699
2700 enablestring=
2701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2702echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2703 no_cache=0
2704 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2705if test "${enable_gtk2+set}" = set; then
2706 enableval="$enable_gtk2"
2707
2708 if test "$enableval" = yes; then
2709 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2710 else
2711 ac_cv_use_gtk2='wxUSE_GTK2=no'
2712 fi
2713
2714else
2715
2716 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2717 if test "x$LINE" != x ; then
2718 eval "DEFAULT_$LINE"
2719 else
2720 no_cache=1
2721 fi
2722
2723 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2724
2725fi;
2726
2727 eval "$ac_cv_use_gtk2"
2728 if test "$no_cache" != 1; then
2729 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2730 fi
2731
2732 if test "$wxUSE_GTK2" = yes; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734echo "${ECHO_T}yes" >&6
2735 else
2736 echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738 fi
2739
2740
2741 enablestring=
2742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2743echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2744 no_cache=0
2745 # Check whether --enable-gpe or --disable-gpe was given.
2746if test "${enable_gpe+set}" = set; then
2747 enableval="$enable_gpe"
2748
2749 if test "$enableval" = yes; then
2750 ac_cv_use_gpe='wxUSE_GPE=yes'
2751 else
2752 ac_cv_use_gpe='wxUSE_GPE=no'
2753 fi
2754
2755else
2756
2757 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2758 if test "x$LINE" != x ; then
2759 eval "DEFAULT_$LINE"
2760 else
2761 no_cache=1
2762 fi
2763
2764 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2765
2766fi;
2767
2768 eval "$ac_cv_use_gpe"
2769 if test "$no_cache" != 1; then
2770 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2771 fi
2772
2773 if test "$wxUSE_GPE" = yes; then
2774 echo "$as_me:$LINENO: result: yes" >&5
2775echo "${ECHO_T}yes" >&6
2776 else
2777 echo "$as_me:$LINENO: result: no" >&5
2778echo "${ECHO_T}no" >&6
2779 fi
2780
2781
2782
2783 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2784echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2785 no_cache=0
2786
2787# Check whether --with-libpng or --without-libpng was given.
2788if test "${with_libpng+set}" = set; then
2789 withval="$with_libpng"
2790
2791 if test "$withval" = yes; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2793 elif test "$withval" = no; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2795 elif test "$withval" = sys; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2797 elif test "$withval" = builtin; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2799 else
2800 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2801echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2802 { (exit 1); exit 1; }; }
2803 fi
2804
2805else
2806
2807 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
2814 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2815
2816fi;
2817
2818 eval "$ac_cv_use_libpng"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_LIBPNG" = yes; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6
2826 elif test "$wxUSE_LIBPNG" = no; then
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
2829 elif test "$wxUSE_LIBPNG" = sys; then
2830 echo "$as_me:$LINENO: result: system version" >&5
2831echo "${ECHO_T}system version" >&6
2832 elif test "$wxUSE_LIBPNG" = builtin; then
2833 echo "$as_me:$LINENO: result: builtin version" >&5
2834echo "${ECHO_T}builtin version" >&6
2835 else
2836 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2837echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2838 { (exit 1); exit 1; }; }
2839 fi
2840
2841
2842 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2843echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2844 no_cache=0
2845
2846# Check whether --with-libjpeg or --without-libjpeg was given.
2847if test "${with_libjpeg+set}" = set; then
2848 withval="$with_libjpeg"
2849
2850 if test "$withval" = yes; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2852 elif test "$withval" = no; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2854 elif test "$withval" = sys; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2856 elif test "$withval" = builtin; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2858 else
2859 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2860echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2861 { (exit 1); exit 1; }; }
2862 fi
2863
2864else
2865
2866 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2874
2875fi;
2876
2877 eval "$ac_cv_use_libjpeg"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_LIBJPEG" = yes; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6
2885 elif test "$wxUSE_LIBJPEG" = no; then
2886 echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6
2888 elif test "$wxUSE_LIBJPEG" = sys; then
2889 echo "$as_me:$LINENO: result: system version" >&5
2890echo "${ECHO_T}system version" >&6
2891 elif test "$wxUSE_LIBJPEG" = builtin; then
2892 echo "$as_me:$LINENO: result: builtin version" >&5
2893echo "${ECHO_T}builtin version" >&6
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900
2901 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2902echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2903 no_cache=0
2904
2905# Check whether --with-libtiff or --without-libtiff was given.
2906if test "${with_libtiff+set}" = set; then
2907 withval="$with_libtiff"
2908
2909 if test "$withval" = yes; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2911 elif test "$withval" = no; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2913 elif test "$withval" = sys; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2915 elif test "$withval" = builtin; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2917 else
2918 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2919echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2920 { (exit 1); exit 1; }; }
2921 fi
2922
2923else
2924
2925 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2933
2934fi;
2935
2936 eval "$ac_cv_use_libtiff"
2937 if test "$no_cache" != 1; then
2938 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2939 fi
2940
2941 if test "$wxUSE_LIBTIFF" = yes; then
2942 echo "$as_me:$LINENO: result: yes" >&5
2943echo "${ECHO_T}yes" >&6
2944 elif test "$wxUSE_LIBTIFF" = no; then
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
2947 elif test "$wxUSE_LIBTIFF" = sys; then
2948 echo "$as_me:$LINENO: result: system version" >&5
2949echo "${ECHO_T}system version" >&6
2950 elif test "$wxUSE_LIBTIFF" = builtin; then
2951 echo "$as_me:$LINENO: result: builtin version" >&5
2952echo "${ECHO_T}builtin version" >&6
2953 else
2954 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2955echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2956 { (exit 1); exit 1; }; }
2957 fi
2958
2959
2960 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2961echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2962 no_cache=0
2963
2964# Check whether --with-libxpm or --without-libxpm was given.
2965if test "${with_libxpm+set}" = set; then
2966 withval="$with_libxpm"
2967
2968 if test "$withval" = yes; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2970 elif test "$withval" = no; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2972 elif test "$withval" = sys; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2974 elif test "$withval" = builtin; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2976 else
2977 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2978echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981
2982else
2983
2984 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2992
2993fi;
2994
2995 eval "$ac_cv_use_libxpm"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$wxUSE_LIBXPM" = yes; then
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
3003 elif test "$wxUSE_LIBXPM" = no; then
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006 elif test "$wxUSE_LIBXPM" = sys; then
3007 echo "$as_me:$LINENO: result: system version" >&5
3008echo "${ECHO_T}system version" >&6
3009 elif test "$wxUSE_LIBXPM" = builtin; then
3010 echo "$as_me:$LINENO: result: builtin version" >&5
3011echo "${ECHO_T}builtin version" >&6
3012 else
3013 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3014echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018
3019 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3020echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3021 no_cache=0
3022
3023# Check whether --with-libmspack or --without-libmspack was given.
3024if test "${with_libmspack+set}" = set; then
3025 withval="$with_libmspack"
3026
3027 if test "$withval" = yes; then
3028 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3029 else
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3031 fi
3032
3033else
3034
3035 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
3042 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3043
3044fi;
3045
3046 eval "$ac_cv_use_libmspack"
3047 if test "$no_cache" != 1; then
3048 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3049 fi
3050
3051 if test "$wxUSE_LIBMSPACK" = yes; then
3052 echo "$as_me:$LINENO: result: yes" >&5
3053echo "${ECHO_T}yes" >&6
3054 else
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
3057 fi
3058
3059
3060 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3061echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3062 no_cache=0
3063
3064# Check whether --with-sdl or --without-sdl was given.
3065if test "${with_sdl+set}" = set; then
3066 withval="$with_sdl"
3067
3068 if test "$withval" = yes; then
3069 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3070 else
3071 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3072 fi
3073
3074else
3075
3076 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3077 if test "x$LINE" != x ; then
3078 eval "DEFAULT_$LINE"
3079 else
3080 no_cache=1
3081 fi
3082
3083 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3084
3085fi;
3086
3087 eval "$ac_cv_use_sdl"
3088 if test "$no_cache" != 1; then
3089 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3090 fi
3091
3092 if test "$wxUSE_LIBSDL" = yes; then
3093 echo "$as_me:$LINENO: result: yes" >&5
3094echo "${ECHO_T}yes" >&6
3095 else
3096 echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
3098 fi
3099
3100
d1c38808
VZ
3101 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3102echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3103 no_cache=0
3104
3105# Check whether --with-gnomeprint or --without-gnomeprint was given.
3106if test "${with_gnomeprint+set}" = set; then
3107 withval="$with_gnomeprint"
3108
3109 if test "$withval" = yes; then
3110 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3111 else
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3113 fi
3114
3115else
3116
3117 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3125
3126fi;
3127
3128 eval "$ac_cv_use_gnomeprint"
3129 if test "$no_cache" != 1; then
3130 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3131 fi
3132
3133 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3134 echo "$as_me:$LINENO: result: yes" >&5
3135echo "${ECHO_T}yes" >&6
3136 else
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
3139 fi
3140
3141
a848cd7e
SC
3142 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3143echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3144 no_cache=0
3145
3146# Check whether --with-opengl or --without-opengl was given.
3147if test "${with_opengl+set}" = set; then
3148 withval="$with_opengl"
3149
3150 if test "$withval" = yes; then
3151 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3152 else
3153 ac_cv_use_opengl='wxUSE_OPENGL=no'
3154 fi
3155
3156else
3157
3158 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3159 if test "x$LINE" != x ; then
3160 eval "DEFAULT_$LINE"
3161 else
3162 no_cache=1
3163 fi
3164
3165 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3166
3167fi;
3168
3169 eval "$ac_cv_use_opengl"
3170 if test "$no_cache" != 1; then
3171 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3172 fi
3173
3174 if test "$wxUSE_OPENGL" = yes; then
3175 echo "$as_me:$LINENO: result: yes" >&5
3176echo "${ECHO_T}yes" >&6
3177 else
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
3180 fi
3181
3182
3183fi
3184
3185
3186 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3187echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3188 no_cache=0
3189
3190# Check whether --with-dmalloc or --without-dmalloc was given.
3191if test "${with_dmalloc+set}" = set; then
3192 withval="$with_dmalloc"
3193
3194 if test "$withval" = yes; then
3195 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3196 else
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3198 fi
3199
3200else
3201
3202 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3210
3211fi;
3212
3213 eval "$ac_cv_use_dmalloc"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_DMALLOC" = yes; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220echo "${ECHO_T}yes" >&6
3221 else
3222 echo "$as_me:$LINENO: result: no" >&5
3223echo "${ECHO_T}no" >&6
3224 fi
3225
3226
3227 echo "$as_me:$LINENO: checking for --with-regex" >&5
3228echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3229 no_cache=0
3230
3231# Check whether --with-regex or --without-regex was given.
3232if test "${with_regex+set}" = set; then
3233 withval="$with_regex"
3234
3235 if test "$withval" = yes; then
3236 ac_cv_use_regex='wxUSE_REGEX=yes'
3237 elif test "$withval" = no; then
3238 ac_cv_use_regex='wxUSE_REGEX=no'
3239 elif test "$withval" = sys; then
3240 ac_cv_use_regex='wxUSE_REGEX=sys'
3241 elif test "$withval" = builtin; then
3242 ac_cv_use_regex='wxUSE_REGEX=builtin'
3243 else
3244 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3245echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3246 { (exit 1); exit 1; }; }
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3259
3260fi;
3261
3262 eval "$ac_cv_use_regex"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_REGEX" = yes; then
3268 echo "$as_me:$LINENO: result: yes" >&5
3269echo "${ECHO_T}yes" >&6
3270 elif test "$wxUSE_REGEX" = no; then
3271 echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273 elif test "$wxUSE_REGEX" = sys; then
3274 echo "$as_me:$LINENO: result: system version" >&5
3275echo "${ECHO_T}system version" >&6
3276 elif test "$wxUSE_REGEX" = builtin; then
3277 echo "$as_me:$LINENO: result: builtin version" >&5
3278echo "${ECHO_T}builtin version" >&6
3279 else
3280 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3281echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3282 { (exit 1); exit 1; }; }
3283 fi
3284
3285
3286 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3287echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3288 no_cache=0
3289
3290# Check whether --with-zlib or --without-zlib was given.
3291if test "${with_zlib+set}" = set; then
3292 withval="$with_zlib"
3293
3294 if test "$withval" = yes; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3296 elif test "$withval" = no; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=no'
3298 elif test "$withval" = sys; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3300 elif test "$withval" = builtin; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3302 else
3303 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3304echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3305 { (exit 1); exit 1; }; }
3306 fi
3307
3308else
3309
3310 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3311 if test "x$LINE" != x ; then
3312 eval "DEFAULT_$LINE"
3313 else
3314 no_cache=1
3315 fi
3316
3317 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3318
3319fi;
3320
3321 eval "$ac_cv_use_zlib"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_ZLIB" = yes; then
3327 echo "$as_me:$LINENO: result: yes" >&5
3328echo "${ECHO_T}yes" >&6
3329 elif test "$wxUSE_ZLIB" = no; then
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332 elif test "$wxUSE_ZLIB" = sys; then
3333 echo "$as_me:$LINENO: result: system version" >&5
3334echo "${ECHO_T}system version" >&6
3335 elif test "$wxUSE_ZLIB" = builtin; then
3336 echo "$as_me:$LINENO: result: builtin version" >&5
3337echo "${ECHO_T}builtin version" >&6
3338 else
3339 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3340echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3341 { (exit 1); exit 1; }; }
3342 fi
3343
3344
3345 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3346echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3347 no_cache=0
3348
3349# Check whether --with-odbc or --without-odbc was given.
3350if test "${with_odbc+set}" = set; then
3351 withval="$with_odbc"
3352
3353 if test "$withval" = yes; then
3354 ac_cv_use_odbc='wxUSE_ODBC=yes'
3355 elif test "$withval" = no; then
3356 ac_cv_use_odbc='wxUSE_ODBC=no'
3357 elif test "$withval" = sys; then
3358 ac_cv_use_odbc='wxUSE_ODBC=sys'
3359 elif test "$withval" = builtin; then
3360 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3361 else
3362 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3363echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3364 { (exit 1); exit 1; }; }
3365 fi
3366
3367else
3368
3369 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3377
3378fi;
3379
3380 eval "$ac_cv_use_odbc"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_ODBC" = yes; then
3386 echo "$as_me:$LINENO: result: yes" >&5
3387echo "${ECHO_T}yes" >&6
3388 elif test "$wxUSE_ODBC" = no; then
3389 echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391 elif test "$wxUSE_ODBC" = sys; then
3392 echo "$as_me:$LINENO: result: system version" >&5
3393echo "${ECHO_T}system version" >&6
3394 elif test "$wxUSE_ODBC" = builtin; then
3395 echo "$as_me:$LINENO: result: builtin version" >&5
3396echo "${ECHO_T}builtin version" >&6
3397 else
3398 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3399echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3400 { (exit 1); exit 1; }; }
3401 fi
3402
3403
3404 echo "$as_me:$LINENO: checking for --with-expat" >&5
3405echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3406 no_cache=0
3407
3408# Check whether --with-expat or --without-expat was given.
3409if test "${with_expat+set}" = set; then
3410 withval="$with_expat"
3411
3412 if test "$withval" = yes; then
3413 ac_cv_use_expat='wxUSE_EXPAT=yes'
3414 elif test "$withval" = no; then
3415 ac_cv_use_expat='wxUSE_EXPAT=no'
3416 elif test "$withval" = sys; then
3417 ac_cv_use_expat='wxUSE_EXPAT=sys'
3418 elif test "$withval" = builtin; then
3419 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3420 else
3421 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3422echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3423 { (exit 1); exit 1; }; }
3424 fi
3425
3426else
3427
3428 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3429 if test "x$LINE" != x ; then
3430 eval "DEFAULT_$LINE"
3431 else
3432 no_cache=1
3433 fi
3434
3435 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3436
3437fi;
3438
3439 eval "$ac_cv_use_expat"
3440 if test "$no_cache" != 1; then
3441 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3442 fi
3443
3444 if test "$wxUSE_EXPAT" = yes; then
3445 echo "$as_me:$LINENO: result: yes" >&5
3446echo "${ECHO_T}yes" >&6
3447 elif test "$wxUSE_EXPAT" = no; then
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450 elif test "$wxUSE_EXPAT" = sys; then
3451 echo "$as_me:$LINENO: result: system version" >&5
3452echo "${ECHO_T}system version" >&6
3453 elif test "$wxUSE_EXPAT" = builtin; then
3454 echo "$as_me:$LINENO: result: builtin version" >&5
3455echo "${ECHO_T}builtin version" >&6
3456 else
3457 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3458echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3459 { (exit 1); exit 1; }; }
3460 fi
3461
3462
3463
3464
3465 enablestring=
3466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3467echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3468 no_cache=0
3469 # Check whether --enable-shared or --disable-shared was given.
3470if test "${enable_shared+set}" = set; then
3471 enableval="$enable_shared"
3472
3473 if test "$enableval" = yes; then
3474 ac_cv_use_shared='wxUSE_SHARED=yes'
3475 else
3476 ac_cv_use_shared='wxUSE_SHARED=no'
3477 fi
3478
3479else
3480
3481 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3489
3490fi;
3491
3492 eval "$ac_cv_use_shared"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_SHARED" = yes; then
3498 echo "$as_me:$LINENO: result: yes" >&5
3499echo "${ECHO_T}yes" >&6
3500 else
3501 echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
3503 fi
3504
3505
3506 enablestring=
3507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3508echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3509 no_cache=0
3510 # Check whether --enable-optimise or --disable-optimise was given.
3511if test "${enable_optimise+set}" = set; then
3512 enableval="$enable_optimise"
3513
3514 if test "$enableval" = yes; then
3515 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3516 else
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3518 fi
3519
3520else
3521
3522 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3530
3531fi;
3532
3533 eval "$ac_cv_use_optimise"
3534 if test "$no_cache" != 1; then
3535 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3536 fi
3537
3538 if test "$wxUSE_OPTIMISE" = yes; then
3539 echo "$as_me:$LINENO: result: yes" >&5
3540echo "${ECHO_T}yes" >&6
3541 else
3542 echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
3544 fi
3545
3546
3547 enablestring=
3548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3549echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3550 no_cache=0
3551 # Check whether --enable-debug or --disable-debug was given.
3552if test "${enable_debug+set}" = set; then
3553 enableval="$enable_debug"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_debug='wxUSE_DEBUG=yes'
3557 else
3558 ac_cv_use_debug='wxUSE_DEBUG=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3571
3572fi;
3573
3574 eval "$ac_cv_use_debug"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_DEBUG" = yes; then
3580 echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6
3582 else
3583 echo "$as_me:$LINENO: result: no" >&5
3584echo "${ECHO_T}no" >&6
3585 fi
3586
3587
3588 enablestring=
3589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3590echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3591 no_cache=0
3592 # Check whether --enable-stl or --disable-stl was given.
3593if test "${enable_stl+set}" = set; then
3594 enableval="$enable_stl"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_stl='wxUSE_STL=yes'
3598 else
3599 ac_cv_use_stl='wxUSE_STL=no'
3600 fi
3601
3602else
3603
3604 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3612
3613fi;
3614
3615 eval "$ac_cv_use_stl"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_STL" = yes; then
3621 echo "$as_me:$LINENO: result: yes" >&5
3622echo "${ECHO_T}yes" >&6
3623 else
3624 echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6
3626 fi
3627
3628if test "$USE_OS2" = "1"; then
3629
3630 enablestring=
3631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3632echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3633 no_cache=0
3634 # Check whether --enable-omf or --disable-omf was given.
3635if test "${enable_omf+set}" = set; then
3636 enableval="$enable_omf"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_omf='wxUSE_OMF=yes'
3640 else
3641 ac_cv_use_omf='wxUSE_OMF=no'
3642 fi
3643
3644else
3645
3646 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3654
3655fi;
3656
3657 eval "$ac_cv_use_omf"
3658 if test "$no_cache" != 1; then
3659 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3660 fi
3661
3662 if test "$wxUSE_OMF" = yes; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
3668 fi
3669
3670fi
3671
3672if test "$wxUSE_DEBUG" = "yes"; then
3673 DEFAULT_wxUSE_DEBUG_FLAG=yes
3674 DEFAULT_wxUSE_DEBUG_INFO=yes
3675 BUILD=debug
3676elif test "$wxUSE_DEBUG" = "no"; then
3677 DEFAULT_wxUSE_DEBUG_FLAG=no
3678 DEFAULT_wxUSE_DEBUG_INFO=no
3679 BUILD=release
3680fi
3681
3682
3683 enablestring=
3684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3685echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3686 no_cache=0
3687 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3688if test "${enable_debug_flag+set}" = set; then
3689 enableval="$enable_debug_flag"
3690
3691 if test "$enableval" = yes; then
3692 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3693 else
3694 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3695 fi
3696
3697else
3698
3699 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3700 if test "x$LINE" != x ; then
3701 eval "DEFAULT_$LINE"
3702 else
3703 no_cache=1
3704 fi
3705
3706 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3707
3708fi;
3709
3710 eval "$ac_cv_use_debug_flag"
3711 if test "$no_cache" != 1; then
3712 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3713 fi
3714
3715 if test "$wxUSE_DEBUG_FLAG" = yes; then
3716 echo "$as_me:$LINENO: result: yes" >&5
3717echo "${ECHO_T}yes" >&6
3718 else
3719 echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721 fi
3722
3723
3724 enablestring=
3725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3726echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3727 no_cache=0
3728 # Check whether --enable-debug_info or --disable-debug_info was given.
3729if test "${enable_debug_info+set}" = set; then
3730 enableval="$enable_debug_info"
3731
3732 if test "$enableval" = yes; then
3733 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3734 else
3735 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3736 fi
3737
3738else
3739
3740 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3741 if test "x$LINE" != x ; then
3742 eval "DEFAULT_$LINE"
3743 else
3744 no_cache=1
3745 fi
3746
3747 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3748
3749fi;
3750
3751 eval "$ac_cv_use_debug_info"
3752 if test "$no_cache" != 1; then
3753 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3754 fi
3755
3756 if test "$wxUSE_DEBUG_INFO" = yes; then
3757 echo "$as_me:$LINENO: result: yes" >&5
3758echo "${ECHO_T}yes" >&6
3759 else
3760 echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6
3762 fi
3763
3764
3765 enablestring=
3766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3767echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3768 no_cache=0
3769 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3770if test "${enable_debug_gdb+set}" = set; then
3771 enableval="$enable_debug_gdb"
3772
3773 if test "$enableval" = yes; then
3774 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3775 else
3776 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3777 fi
3778
3779else
3780
3781 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3789
3790fi;
3791
3792 eval "$ac_cv_use_debug_gdb"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_DEBUG_GDB" = yes; then
3798 echo "$as_me:$LINENO: result: yes" >&5
3799echo "${ECHO_T}yes" >&6
3800 else
3801 echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6
3803 fi
3804
3805
3806 enablestring=
3807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3808echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3809 no_cache=0
3810 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3811if test "${enable_debug_cntxt+set}" = set; then
3812 enableval="$enable_debug_cntxt"
3813
3814 if test "$enableval" = yes; then
3815 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3816 else
3817 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3818 fi
3819
3820else
3821
3822 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
3829 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3830
3831fi;
3832
3833 eval "$ac_cv_use_debug_cntxt"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3839 echo "$as_me:$LINENO: result: yes" >&5
3840echo "${ECHO_T}yes" >&6
3841 else
3842 echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
3844 fi
3845
3846
3847 enablestring=
3848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3849echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3850 no_cache=0
3851 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3852if test "${enable_mem_tracing+set}" = set; then
3853 enableval="$enable_mem_tracing"
3854
3855 if test "$enableval" = yes; then
3856 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3857 else
3858 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3859 fi
3860
3861else
3862
3863 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3871
3872fi;
3873
3874 eval "$ac_cv_use_mem_tracing"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_MEM_TRACING" = yes; then
3880 echo "$as_me:$LINENO: result: yes" >&5
3881echo "${ECHO_T}yes" >&6
3882 else
3883 echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
3885 fi
3886
3887
3888 enablestring=
3889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3890echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3891 no_cache=0
3892 # Check whether --enable-profile or --disable-profile was given.
3893if test "${enable_profile+set}" = set; then
3894 enableval="$enable_profile"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_profile='wxUSE_PROFILE=yes'
3898 else
3899 ac_cv_use_profile='wxUSE_PROFILE=no'
3900 fi
3901
3902else
3903
3904 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3912
3913fi;
3914
3915 eval "$ac_cv_use_profile"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_PROFILE" = yes; then
3921 echo "$as_me:$LINENO: result: yes" >&5
3922echo "${ECHO_T}yes" >&6
3923 else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926 fi
3927
3928
3929 enablestring=
3930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3931echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3932 no_cache=0
3933 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3934if test "${enable_no_rtti+set}" = set; then
3935 enableval="$enable_no_rtti"
3936
3937 if test "$enableval" = yes; then
3938 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3939 else
3940 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3941 fi
3942
3943else
3944
3945 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3946 if test "x$LINE" != x ; then
3947 eval "DEFAULT_$LINE"
3948 else
3949 no_cache=1
3950 fi
3951
3952 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3953
3954fi;
3955
3956 eval "$ac_cv_use_no_rtti"
3957 if test "$no_cache" != 1; then
3958 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3959 fi
3960
3961 if test "$wxUSE_NO_RTTI" = yes; then
3962 echo "$as_me:$LINENO: result: yes" >&5
3963echo "${ECHO_T}yes" >&6
3964 else
3965 echo "$as_me:$LINENO: result: no" >&5
3966echo "${ECHO_T}no" >&6
3967 fi
3968
3969
3970 enablestring=
3971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3972echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3973 no_cache=0
3974 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3975if test "${enable_no_exceptions+set}" = set; then
3976 enableval="$enable_no_exceptions"
3977
3978 if test "$enableval" = yes; then
3979 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3980 else
3981 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3982 fi
3983
3984else
3985
3986 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
3993 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3994
3995fi;
3996
3997 eval "$ac_cv_use_no_exceptions"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4003 echo "$as_me:$LINENO: result: yes" >&5
4004echo "${ECHO_T}yes" >&6
4005 else
4006 echo "$as_me:$LINENO: result: no" >&5
4007echo "${ECHO_T}no" >&6
4008 fi
4009
4010
4011 enablestring=
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4014 no_cache=0
4015 # Check whether --enable-permissive or --disable-permissive was given.
4016if test "${enable_permissive+set}" = set; then
4017 enableval="$enable_permissive"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4021 else
4022 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4023 fi
4024
4025else
4026
4027 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4035
4036fi;
4037
4038 eval "$ac_cv_use_permissive"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_PERMISSIVE" = yes; then
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049 fi
4050
4051
4052 enablestring=
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4055 no_cache=0
4056 # Check whether --enable-no_deps or --disable-no_deps was given.
4057if test "${enable_no_deps+set}" = set; then
4058 enableval="$enable_no_deps"
4059
4060 if test "$enableval" = yes; then
4061 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4062 else
4063 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4064 fi
4065
4066else
4067
4068 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4076
4077fi;
4078
4079 eval "$ac_cv_use_no_deps"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_NO_DEPS" = yes; then
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
4087 else
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
4090 fi
4091
4092
4093
4094 enablestring=
4095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4096echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4097 no_cache=0
4098 # Check whether --enable-compat22 or --disable-compat22 was given.
4099if test "${enable_compat22+set}" = set; then
4100 enableval="$enable_compat22"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4104 else
4105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4106 fi
4107
4108else
4109
4110 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4118
4119fi;
4120
4121 eval "$ac_cv_use_compat22"
4122 if test "$no_cache" != 1; then
4123 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4124 fi
4125
4126 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4127 echo "$as_me:$LINENO: result: yes" >&5
4128echo "${ECHO_T}yes" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6
4132 fi
4133
4134
4135 enablestring=disable
4136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4137echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4138 no_cache=0
4139 # Check whether --enable-compat24 or --disable-compat24 was given.
4140if test "${enable_compat24+set}" = set; then
4141 enableval="$enable_compat24"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4145 else
4146 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4159
4160fi;
4161
4162 eval "$ac_cv_use_compat24"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169echo "${ECHO_T}yes" >&6
4170 else
4171 echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173 fi
4174
4175
ffa0583f
RL
4176
4177 enablestring=
4178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4179echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4180 no_cache=0
4181 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4182if test "${enable_rpath+set}" = set; then
4183 enableval="$enable_rpath"
ffa0583f
RL
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_rpath='wxUSE_RPATH=yes'
4187 else
4188 ac_cv_use_rpath='wxUSE_RPATH=no'
4189 fi
4190
4191else
4192
4193 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4201
a848cd7e
SC
4202fi;
4203
ffa0583f
RL
4204 eval "$ac_cv_use_rpath"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_RPATH" = yes; then
4210 echo "$as_me:$LINENO: result: yes" >&5
4211echo "${ECHO_T}yes" >&6
4212 else
4213 echo "$as_me:$LINENO: result: no" >&5
4214echo "${ECHO_T}no" >&6
4215 fi
4216
a848cd7e
SC
4217
4218
4219
4220
4221 enablestring=
4222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4223echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4224 no_cache=0
4225 # Check whether --enable-intl or --disable-intl was given.
4226if test "${enable_intl+set}" = set; then
4227 enableval="$enable_intl"
4228
4229 if test "$enableval" = yes; then
4230 ac_cv_use_intl='wxUSE_INTL=yes'
4231 else
4232 ac_cv_use_intl='wxUSE_INTL=no'
4233 fi
4234
4235else
4236
4237 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4245
4246fi;
4247
4248 eval "$ac_cv_use_intl"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_INTL" = yes; then
4254 echo "$as_me:$LINENO: result: yes" >&5
4255echo "${ECHO_T}yes" >&6
4256 else
4257 echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6
4259 fi
4260
4261
4262 enablestring=
4263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4264echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4265 no_cache=0
4266 # Check whether --enable-config or --disable-config was given.
4267if test "${enable_config+set}" = set; then
4268 enableval="$enable_config"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_config='wxUSE_CONFIG=yes'
4272 else
4273 ac_cv_use_config='wxUSE_CONFIG=no'
4274 fi
4275
4276else
4277
4278 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4286
4287fi;
4288
4289 eval "$ac_cv_use_config"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_CONFIG" = yes; then
4295 echo "$as_me:$LINENO: result: yes" >&5
4296echo "${ECHO_T}yes" >&6
4297 else
4298 echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6
4300 fi
4301
4302
4303
4304 enablestring=
4305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4306echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4307 no_cache=0
4308 # Check whether --enable-protocols or --disable-protocols was given.
4309if test "${enable_protocols+set}" = set; then
4310 enableval="$enable_protocols"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4314 else
4315 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4316 fi
4317
4318else
4319
4320 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4328
4329fi;
4330
4331 eval "$ac_cv_use_protocols"
4332 if test "$no_cache" != 1; then
4333 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4334 fi
4335
4336 if test "$wxUSE_PROTOCOL" = yes; then
4337 echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
4339 else
4340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
4342 fi
4343
4344
4345 enablestring=
4346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4347echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4348 no_cache=0
4349 # Check whether --enable-ftp or --disable-ftp was given.
4350if test "${enable_ftp+set}" = set; then
4351 enableval="$enable_ftp"
4352
4353 if test "$enableval" = yes; then
4354 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4355 else
4356 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4357 fi
4358
4359else
4360
4361 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4369
4370fi;
4371
4372 eval "$ac_cv_use_ftp"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4378 echo "$as_me:$LINENO: result: yes" >&5
4379echo "${ECHO_T}yes" >&6
4380 else
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383 fi
4384
4385
4386 enablestring=
4387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4388echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4389 no_cache=0
4390 # Check whether --enable-http or --disable-http was given.
4391if test "${enable_http+set}" = set; then
4392 enableval="$enable_http"
4393
4394 if test "$enableval" = yes; then
4395 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4396 else
4397 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4398 fi
4399
4400else
4401
4402 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4403 if test "x$LINE" != x ; then
4404 eval "DEFAULT_$LINE"
4405 else
4406 no_cache=1
4407 fi
4408
4409 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4410
4411fi;
4412
4413 eval "$ac_cv_use_http"
4414 if test "$no_cache" != 1; then
4415 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4416 fi
4417
4418 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4419 echo "$as_me:$LINENO: result: yes" >&5
4420echo "${ECHO_T}yes" >&6
4421 else
4422 echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6
4424 fi
4425
4426
4427 enablestring=
4428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4429echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4430 no_cache=0
4431 # Check whether --enable-fileproto or --disable-fileproto was given.
4432if test "${enable_fileproto+set}" = set; then
4433 enableval="$enable_fileproto"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4437 else
4438 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4439 fi
4440
4441else
4442
4443 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4451
4452fi;
4453
4454 eval "$ac_cv_use_fileproto"
4455 if test "$no_cache" != 1; then
4456 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4457 fi
4458
4459 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4460 echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465 fi
4466
4467
4468 enablestring=
4469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4470echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4471 no_cache=0
4472 # Check whether --enable-sockets or --disable-sockets was given.
4473if test "${enable_sockets+set}" = set; then
4474 enableval="$enable_sockets"
4475
4476 if test "$enableval" = yes; then
4477 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4478 else
4479 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4480 fi
4481
4482else
4483
4484 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4485 if test "x$LINE" != x ; then
4486 eval "DEFAULT_$LINE"
4487 else
4488 no_cache=1
4489 fi
4490
4491 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4492
4493fi;
4494
4495 eval "$ac_cv_use_sockets"
4496 if test "$no_cache" != 1; then
4497 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4498 fi
4499
4500 if test "$wxUSE_SOCKETS" = yes; then
4501 echo "$as_me:$LINENO: result: yes" >&5
4502echo "${ECHO_T}yes" >&6
4503 else
4504 echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6
4506 fi
4507
4508
4509 enablestring=
4510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4511echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4512 no_cache=0
4513 # Check whether --enable-ole or --disable-ole was given.
4514if test "${enable_ole+set}" = set; then
4515 enableval="$enable_ole"
4516
4517 if test "$enableval" = yes; then
4518 ac_cv_use_ole='wxUSE_OLE=yes'
4519 else
4520 ac_cv_use_ole='wxUSE_OLE=no'
4521 fi
4522
4523else
4524
4525 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4526 if test "x$LINE" != x ; then
4527 eval "DEFAULT_$LINE"
4528 else
4529 no_cache=1
4530 fi
4531
4532 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4533
4534fi;
4535
4536 eval "$ac_cv_use_ole"
4537 if test "$no_cache" != 1; then
4538 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4539 fi
4540
4541 if test "$wxUSE_OLE" = yes; then
4542 echo "$as_me:$LINENO: result: yes" >&5
4543echo "${ECHO_T}yes" >&6
4544 else
4545 echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6
4547 fi
4548
4549
4550 enablestring=
4551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4552echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4553 no_cache=0
4554 # Check whether --enable-dataobj or --disable-dataobj was given.
4555if test "${enable_dataobj+set}" = set; then
4556 enableval="$enable_dataobj"
4557
4558 if test "$enableval" = yes; then
4559 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4560 else
4561 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4562 fi
4563
4564else
4565
4566 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "DEFAULT_$LINE"
4569 else
4570 no_cache=1
4571 fi
4572
4573 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4574
4575fi;
4576
4577 eval "$ac_cv_use_dataobj"
4578 if test "$no_cache" != 1; then
4579 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4580 fi
4581
4582 if test "$wxUSE_DATAOBJ" = yes; then
4583 echo "$as_me:$LINENO: result: yes" >&5
4584echo "${ECHO_T}yes" >&6
4585 else
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588 fi
4589
4590
4591
4592 enablestring=
4593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4594echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4595 no_cache=0
4596 # Check whether --enable-ipc or --disable-ipc was given.
4597if test "${enable_ipc+set}" = set; then
4598 enableval="$enable_ipc"
4599
4600 if test "$enableval" = yes; then
4601 ac_cv_use_ipc='wxUSE_IPC=yes'
4602 else
4603 ac_cv_use_ipc='wxUSE_IPC=no'
4604 fi
4605
4606else
4607
4608 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4616
4617fi;
4618
4619 eval "$ac_cv_use_ipc"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_IPC" = yes; then
4625 echo "$as_me:$LINENO: result: yes" >&5
4626echo "${ECHO_T}yes" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6
4630 fi
4631
4632
4633
4634 enablestring=
4635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4636echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4637 no_cache=0
4638 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4639if test "${enable_apple_ieee+set}" = set; then
4640 enableval="$enable_apple_ieee"
4641
4642 if test "$enableval" = yes; then
4643 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4644 else
4645 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4646 fi
4647
4648else
4649
4650 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4651 if test "x$LINE" != x ; then
4652 eval "DEFAULT_$LINE"
4653 else
4654 no_cache=1
4655 fi
4656
4657 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4658
4659fi;
4660
4661 eval "$ac_cv_use_apple_ieee"
4662 if test "$no_cache" != 1; then
4663 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4664 fi
4665
4666 if test "$wxUSE_APPLE_IEEE" = yes; then
4667 echo "$as_me:$LINENO: result: yes" >&5
4668echo "${ECHO_T}yes" >&6
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6
4672 fi
4673
4674
81f90336
MW
4675 enablestring=
4676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4677echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4678 no_cache=0
4679 # Check whether --enable-arcstream or --disable-arcstream was given.
4680if test "${enable_arcstream+set}" = set; then
4681 enableval="$enable_arcstream"
4682
4683 if test "$enableval" = yes; then
4684 ac_cv_use_arcstream='wxUSE_ARCSTREAM=yes'
4685 else
4686 ac_cv_use_arcstream='wxUSE_ARCSTREAM=no'
4687 fi
4688
4689else
4690
4691 LINE=`grep "wxUSE_ARCSTREAM" ${wx_arg_cache_file}`
4692 if test "x$LINE" != x ; then
4693 eval "DEFAULT_$LINE"
4694 else
4695 no_cache=1
4696 fi
4697
4698 ac_cv_use_arcstream='wxUSE_ARCSTREAM='$DEFAULT_wxUSE_ARCSTREAM
4699
4700fi;
4701
4702 eval "$ac_cv_use_arcstream"
4703 if test "$no_cache" != 1; then
4704 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4705 fi
4706
4707 if test "$wxUSE_ARCSTREAM" = yes; then
4708 echo "$as_me:$LINENO: result: yes" >&5
4709echo "${ECHO_T}yes" >&6
4710 else
4711 echo "$as_me:$LINENO: result: no" >&5
4712echo "${ECHO_T}no" >&6
4713 fi
4714
4715
a848cd7e
SC
4716 enablestring=
4717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4718echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4719 no_cache=0
4720 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4721if test "${enable_catch_segvs+set}" = set; then
4722 enableval="$enable_catch_segvs"
4723
4724 if test "$enableval" = yes; then
4725 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4726 else
4727 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4728 fi
4729
4730else
4731
4732 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4733 if test "x$LINE" != x ; then
4734 eval "DEFAULT_$LINE"
4735 else
4736 no_cache=1
4737 fi
4738
4739 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4740
4741fi;
4742
4743 eval "$ac_cv_use_catch_segvs"
4744 if test "$no_cache" != 1; then
4745 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4746 fi
4747
4748 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4749 echo "$as_me:$LINENO: result: yes" >&5
4750echo "${ECHO_T}yes" >&6
4751 else
4752 echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6
4754 fi
4755
4756
eaff0f0d
VZ
4757 enablestring=
4758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4759echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4760 no_cache=0
4761 # Check whether --enable-backtrace or --disable-backtrace was given.
4762if test "${enable_backtrace+set}" = set; then
4763 enableval="$enable_backtrace"
4764
4765 if test "$enableval" = yes; then
4766 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4767 else
4768 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4769 fi
4770
4771else
4772
4773 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4774 if test "x$LINE" != x ; then
4775 eval "DEFAULT_$LINE"
4776 else
4777 no_cache=1
4778 fi
4779
4780 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4781
4782fi;
4783
4784 eval "$ac_cv_use_backtrace"
4785 if test "$no_cache" != 1; then
4786 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4787 fi
4788
4789 if test "$wxUSE_STACKWALKER" = yes; then
4790 echo "$as_me:$LINENO: result: yes" >&5
4791echo "${ECHO_T}yes" >&6
4792 else
4793 echo "$as_me:$LINENO: result: no" >&5
4794echo "${ECHO_T}no" >&6
4795 fi
4796
4797
a848cd7e
SC
4798 enablestring=
4799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4800echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4801 no_cache=0
4802 # Check whether --enable-cmdline or --disable-cmdline was given.
4803if test "${enable_cmdline+set}" = set; then
4804 enableval="$enable_cmdline"
4805
4806 if test "$enableval" = yes; then
4807 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4808 else
4809 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4810 fi
4811
4812else
4813
4814 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4815 if test "x$LINE" != x ; then
4816 eval "DEFAULT_$LINE"
4817 else
4818 no_cache=1
4819 fi
4820
4821 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4822
4823fi;
4824
4825 eval "$ac_cv_use_cmdline"
4826 if test "$no_cache" != 1; then
4827 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4828 fi
4829
4830 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4831 echo "$as_me:$LINENO: result: yes" >&5
4832echo "${ECHO_T}yes" >&6
4833 else
4834 echo "$as_me:$LINENO: result: no" >&5
4835echo "${ECHO_T}no" >&6
4836 fi
4837
4838
4839 enablestring=
4840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4841echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4842 no_cache=0
4843 # Check whether --enable-datetime or --disable-datetime was given.
4844if test "${enable_datetime+set}" = set; then
4845 enableval="$enable_datetime"
4846
4847 if test "$enableval" = yes; then
4848 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4849 else
4850 ac_cv_use_datetime='wxUSE_DATETIME=no'
4851 fi
4852
4853else
4854
4855 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4856 if test "x$LINE" != x ; then
4857 eval "DEFAULT_$LINE"
4858 else
4859 no_cache=1
4860 fi
4861
4862 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4863
4864fi;
4865
4866 eval "$ac_cv_use_datetime"
4867 if test "$no_cache" != 1; then
4868 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4869 fi
4870
4871 if test "$wxUSE_DATETIME" = yes; then
4872 echo "$as_me:$LINENO: result: yes" >&5
4873echo "${ECHO_T}yes" >&6
4874 else
4875 echo "$as_me:$LINENO: result: no" >&5
4876echo "${ECHO_T}no" >&6
4877 fi
4878
4879
4880 enablestring=
4881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4882echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4883 no_cache=0
4884 # Check whether --enable-dialupman or --disable-dialupman was given.
4885if test "${enable_dialupman+set}" = set; then
4886 enableval="$enable_dialupman"
4887
4888 if test "$enableval" = yes; then
4889 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4890 else
4891 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4892 fi
4893
4894else
4895
4896 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4897 if test "x$LINE" != x ; then
4898 eval "DEFAULT_$LINE"
4899 else
4900 no_cache=1
4901 fi
4902
4903 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4904
4905fi;
4906
4907 eval "$ac_cv_use_dialupman"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4910 fi
4911
4912 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4913 echo "$as_me:$LINENO: result: yes" >&5
4914echo "${ECHO_T}yes" >&6
4915 else
4916 echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918 fi
4919
4920
4921 enablestring=
4922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4923echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4924 no_cache=0
4925 # Check whether --enable-dynlib or --disable-dynlib was given.
4926if test "${enable_dynlib+set}" = set; then
4927 enableval="$enable_dynlib"
4928
4929 if test "$enableval" = yes; then
4930 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4931 else
4932 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4933 fi
4934
4935else
4936
4937 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4945
4946fi;
4947
4948 eval "$ac_cv_use_dynlib"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4954 echo "$as_me:$LINENO: result: yes" >&5
4955echo "${ECHO_T}yes" >&6
4956 else
4957 echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959 fi
4960
4961
4962 enablestring=
4963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4964echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4965 no_cache=0
4966 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4967if test "${enable_dynamicloader+set}" = set; then
4968 enableval="$enable_dynamicloader"
4969
4970 if test "$enableval" = yes; then
4971 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4972 else
4973 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4974 fi
4975
4976else
4977
4978 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4979 if test "x$LINE" != x ; then
4980 eval "DEFAULT_$LINE"
4981 else
4982 no_cache=1
4983 fi
4984
4985 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4986
4987fi;
4988
4989 eval "$ac_cv_use_dynamicloader"
4990 if test "$no_cache" != 1; then
4991 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4992 fi
4993
4994 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4995 echo "$as_me:$LINENO: result: yes" >&5
4996echo "${ECHO_T}yes" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6
5000 fi
5001
5002
5003 enablestring=
5004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5005echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5006 no_cache=0
5007 # Check whether --enable-exceptions or --disable-exceptions was given.
5008if test "${enable_exceptions+set}" = set; then
5009 enableval="$enable_exceptions"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5013 else
5014 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5015 fi
5016
5017else
5018
5019 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5027
5028fi;
5029
5030 eval "$ac_cv_use_exceptions"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_EXCEPTIONS" = yes; then
5036 echo "$as_me:$LINENO: result: yes" >&5
5037echo "${ECHO_T}yes" >&6
5038 else
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041 fi
5042
5043
5044 enablestring=
5045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5046echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5047 no_cache=0
5048 # Check whether --enable-ffile or --disable-ffile was given.
5049if test "${enable_ffile+set}" = set; then
5050 enableval="$enable_ffile"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_ffile='wxUSE_FFILE=yes'
5054 else
5055 ac_cv_use_ffile='wxUSE_FFILE=no'
5056 fi
5057
5058else
5059
5060 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5068
5069fi;
5070
5071 eval "$ac_cv_use_ffile"
5072 if test "$no_cache" != 1; then
5073 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5074 fi
5075
5076 if test "$wxUSE_FFILE" = yes; then
5077 echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079 else
5080 echo "$as_me:$LINENO: result: no" >&5
5081echo "${ECHO_T}no" >&6
5082 fi
5083
5084
5085 enablestring=
5086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5087echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5088 no_cache=0
5089 # Check whether --enable-file or --disable-file was given.
5090if test "${enable_file+set}" = set; then
5091 enableval="$enable_file"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_file='wxUSE_FILE=yes'
5095 else
5096 ac_cv_use_file='wxUSE_FILE=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5109
5110fi;
5111
5112 eval "$ac_cv_use_file"
5113 if test "$no_cache" != 1; then
5114 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5115 fi
5116
5117 if test "$wxUSE_FILE" = yes; then
5118 echo "$as_me:$LINENO: result: yes" >&5
5119echo "${ECHO_T}yes" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
5123 fi
5124
5125
5126 enablestring=
5127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5128echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5129 no_cache=0
5130 # Check whether --enable-filesystem or --disable-filesystem was given.
5131if test "${enable_filesystem+set}" = set; then
5132 enableval="$enable_filesystem"
5133
5134 if test "$enableval" = yes; then
5135 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5136 else
5137 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5138 fi
5139
5140else
5141
5142 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5143 if test "x$LINE" != x ; then
5144 eval "DEFAULT_$LINE"
5145 else
5146 no_cache=1
5147 fi
5148
5149 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5150
5151fi;
5152
5153 eval "$ac_cv_use_filesystem"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_FILESYSTEM" = yes; then
5159 echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161 else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164 fi
5165
5166
5167 enablestring=
5168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5169echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5170 no_cache=0
5171 # Check whether --enable-fontmap or --disable-fontmap was given.
5172if test "${enable_fontmap+set}" = set; then
5173 enableval="$enable_fontmap"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5177 else
5178 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5179 fi
5180
5181else
5182
5183 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5191
5192fi;
5193
5194 eval "$ac_cv_use_fontmap"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_FONTMAP" = yes; then
5200 echo "$as_me:$LINENO: result: yes" >&5
5201echo "${ECHO_T}yes" >&6
5202 else
5203 echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205 fi
5206
5207
5208 enablestring=
5209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5210echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5211 no_cache=0
5212 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5213if test "${enable_fs_inet+set}" = set; then
5214 enableval="$enable_fs_inet"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5218 else
5219 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5232
5233fi;
5234
5235 eval "$ac_cv_use_fs_inet"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_FS_INET" = yes; then
5241 echo "$as_me:$LINENO: result: yes" >&5
5242echo "${ECHO_T}yes" >&6
5243 else
5244 echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246 fi
5247
5248
5249 enablestring=
5250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5251echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5252 no_cache=0
5253 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5254if test "${enable_fs_zip+set}" = set; then
5255 enableval="$enable_fs_zip"
5256
5257 if test "$enableval" = yes; then
5258 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5259 else
5260 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5261 fi
5262
5263else
5264
5265 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5273
5274fi;
5275
5276 eval "$ac_cv_use_fs_zip"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_FS_ZIP" = yes; then
5282 echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287 fi
5288
5289
5290 enablestring=
5291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5292echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5293 no_cache=0
5294 # Check whether --enable-geometry or --disable-geometry was given.
5295if test "${enable_geometry+set}" = set; then
5296 enableval="$enable_geometry"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5300 else
5301 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5314
5315fi;
5316
5317 eval "$ac_cv_use_geometry"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_GEOMETRY" = yes; then
5323 echo "$as_me:$LINENO: result: yes" >&5
5324echo "${ECHO_T}yes" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328 fi
5329
5330
5331 enablestring=
5332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5333echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5334 no_cache=0
5335 # Check whether --enable-log or --disable-log was given.
5336if test "${enable_log+set}" = set; then
5337 enableval="$enable_log"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_log='wxUSE_LOG=yes'
5341 else
5342 ac_cv_use_log='wxUSE_LOG=no'
5343 fi
5344
5345else
5346
5347 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5355
5356fi;
5357
5358 eval "$ac_cv_use_log"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_LOG" = yes; then
5364 echo "$as_me:$LINENO: result: yes" >&5
5365echo "${ECHO_T}yes" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369 fi
5370
5371
5372 enablestring=
5373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5374echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5375 no_cache=0
5376 # Check whether --enable-longlong or --disable-longlong was given.
5377if test "${enable_longlong+set}" = set; then
5378 enableval="$enable_longlong"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5382 else
5383 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5396
5397fi;
5398
5399 eval "$ac_cv_use_longlong"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_LONGLONG" = yes; then
5405 echo "$as_me:$LINENO: result: yes" >&5
5406echo "${ECHO_T}yes" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410 fi
5411
5412
5413 enablestring=
5414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5415echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5416 no_cache=0
5417 # Check whether --enable-mimetype or --disable-mimetype was given.
5418if test "${enable_mimetype+set}" = set; then
5419 enableval="$enable_mimetype"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5423 else
5424 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5425 fi
5426
5427else
5428
5429 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5437
5438fi;
5439
5440 eval "$ac_cv_use_mimetype"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_MIMETYPE" = yes; then
5446 echo "$as_me:$LINENO: result: yes" >&5
5447echo "${ECHO_T}yes" >&6
5448 else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451 fi
5452
5453
5454 enablestring=
5455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5456echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5457 no_cache=0
5458 # Check whether --enable-mslu or --disable-mslu was given.
5459if test "${enable_mslu+set}" = set; then
5460 enableval="$enable_mslu"
5461
5462 if test "$enableval" = yes; then
5463 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5464 else
5465 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5466 fi
5467
5468else
5469
5470 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5478
5479fi;
5480
5481 eval "$ac_cv_use_mslu"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_UNICODE_MSLU" = yes; then
5487 echo "$as_me:$LINENO: result: yes" >&5
5488echo "${ECHO_T}yes" >&6
5489 else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492 fi
5493
5494
5495 enablestring=
5496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5497echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5498 no_cache=0
5499 # Check whether --enable-snglinst or --disable-snglinst was given.
5500if test "${enable_snglinst+set}" = set; then
5501 enableval="$enable_snglinst"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5505 else
5506 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5519
5520fi;
5521
5522 eval "$ac_cv_use_snglinst"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5528 echo "$as_me:$LINENO: result: yes" >&5
5529echo "${ECHO_T}yes" >&6
5530 else
5531 echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533 fi
5534
5535
5536 enablestring=
5537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5538echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5539 no_cache=0
5540 # Check whether --enable-streams or --disable-streams was given.
5541if test "${enable_streams+set}" = set; then
5542 enableval="$enable_streams"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_streams='wxUSE_STREAMS=yes'
5546 else
5547 ac_cv_use_streams='wxUSE_STREAMS=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5560
5561fi;
5562
5563 eval "$ac_cv_use_streams"
5564 if test "$no_cache" != 1; then
5565 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5566 fi
5567
5568 if test "$wxUSE_STREAMS" = yes; then
5569 echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571 else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574 fi
5575
5576
5577 enablestring=
5578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5579echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5580 no_cache=0
5581 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5582if test "${enable_std_iostreams+set}" = set; then
5583 enableval="$enable_std_iostreams"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5587 else
5588 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5589 fi
5590
5591else
5592
5593 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5601
5602fi;
5603
5604 eval "$ac_cv_use_std_iostreams"
5605 if test "$no_cache" != 1; then
5606 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5607 fi
5608
5609 if test "$wxUSE_STD_IOSTREAM" = yes; then
5610 echo "$as_me:$LINENO: result: yes" >&5
5611echo "${ECHO_T}yes" >&6
5612 else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615 fi
5616
5617
5618 enablestring=
5619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5620echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5621 no_cache=0
5622 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5623if test "${enable_stopwatch+set}" = set; then
5624 enableval="$enable_stopwatch"
5625
5626 if test "$enableval" = yes; then
5627 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5628 else
5629 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5630 fi
5631
5632else
5633
5634 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5642
5643fi;
5644
5645 eval "$ac_cv_use_stopwatch"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_STOPWATCH" = yes; then
5651 echo "$as_me:$LINENO: result: yes" >&5
5652echo "${ECHO_T}yes" >&6
5653 else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656 fi
5657
5658
5659 enablestring=
5660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5661echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5662 no_cache=0
5663 # Check whether --enable-system_options or --disable-system_options was given.
5664if test "${enable_system_options+set}" = set; then
5665 enableval="$enable_system_options"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5669 else
5670 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5671 fi
5672
5673else
5674
5675 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5683
5684fi;
5685
5686 eval "$ac_cv_use_system_options"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5692 echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697 fi
5698
5699
5700 enablestring=
5701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5702echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5703 no_cache=0
5704 # Check whether --enable-textbuf or --disable-textbuf was given.
5705if test "${enable_textbuf+set}" = set; then
5706 enableval="$enable_textbuf"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5710 else
5711 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5712 fi
5713
5714else
5715
5716 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5724
5725fi;
5726
5727 eval "$ac_cv_use_textbuf"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_TEXTBUFFER" = yes; then
5733 echo "$as_me:$LINENO: result: yes" >&5
5734echo "${ECHO_T}yes" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738 fi
5739
5740
5741 enablestring=
5742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5743echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5744 no_cache=0
5745 # Check whether --enable-textfile or --disable-textfile was given.
5746if test "${enable_textfile+set}" = set; then
5747 enableval="$enable_textfile"
5748
5749 if test "$enableval" = yes; then
5750 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5751 else
5752 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5753 fi
5754
5755else
5756
5757 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5758 if test "x$LINE" != x ; then
5759 eval "DEFAULT_$LINE"
5760 else
5761 no_cache=1
5762 fi
5763
5764 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5765
5766fi;
5767
5768 eval "$ac_cv_use_textfile"
5769 if test "$no_cache" != 1; then
5770 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5771 fi
5772
5773 if test "$wxUSE_TEXTFILE" = yes; then
5774 echo "$as_me:$LINENO: result: yes" >&5
5775echo "${ECHO_T}yes" >&6
5776 else
5777 echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779 fi
5780
5781
5782 enablestring=
5783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5784echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5785 no_cache=0
5786 # Check whether --enable-timer or --disable-timer was given.
5787if test "${enable_timer+set}" = set; then
5788 enableval="$enable_timer"
5789
5790 if test "$enableval" = yes; then
5791 ac_cv_use_timer='wxUSE_TIMER=yes'
5792 else
5793 ac_cv_use_timer='wxUSE_TIMER=no'
5794 fi
5795
5796else
5797
5798 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5799 if test "x$LINE" != x ; then
5800 eval "DEFAULT_$LINE"
5801 else
5802 no_cache=1
5803 fi
5804
5805 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5806
5807fi;
5808
5809 eval "$ac_cv_use_timer"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_TIMER" = yes; then
5815 echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
5817 else
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820 fi
5821
5822
5823 enablestring=
5824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5825echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5826 no_cache=0
5827 # Check whether --enable-unicode or --disable-unicode was given.
5828if test "${enable_unicode+set}" = set; then
5829 enableval="$enable_unicode"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5833 else
5834 ac_cv_use_unicode='wxUSE_UNICODE=no'
5835 fi
5836
5837else
5838
5839 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5847
5848fi;
5849
5850 eval "$ac_cv_use_unicode"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_UNICODE" = yes; then
5856 echo "$as_me:$LINENO: result: yes" >&5
5857echo "${ECHO_T}yes" >&6
5858 else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861 fi
5862
5863
5864 enablestring=
5865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5866echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5867 no_cache=0
5868 # Check whether --enable-sound or --disable-sound was given.
5869if test "${enable_sound+set}" = set; then
5870 enableval="$enable_sound"
5871
5872 if test "$enableval" = yes; then
5873 ac_cv_use_sound='wxUSE_SOUND=yes'
5874 else
5875 ac_cv_use_sound='wxUSE_SOUND=no'
5876 fi
5877
5878else
5879
5880 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
5887 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5888
5889fi;
5890
5891 eval "$ac_cv_use_sound"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_SOUND" = yes; then
5897 echo "$as_me:$LINENO: result: yes" >&5
5898echo "${ECHO_T}yes" >&6
5899 else
5900 echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6
5902 fi
5903
5904
3b57de8b
RL
5905 enablestring=
5906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5907echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5908 no_cache=0
5909 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5910if test "${enable_mediactrl+set}" = set; then
5911 enableval="$enable_mediactrl"
5912
5913 if test "$enableval" = yes; then
5914 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5915 else
5916 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5917 fi
5918
5919else
5920
5921 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5929
5930fi;
5931
5932 eval "$ac_cv_use_mediactrl"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_MEDIACTRL" = yes; then
5938 echo "$as_me:$LINENO: result: yes" >&5
5939echo "${ECHO_T}yes" >&6
5940 else
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943 fi
5944
5945
a848cd7e
SC
5946 enablestring=
5947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5948echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5949 no_cache=0
5950 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5951if test "${enable_wxprintfv+set}" = set; then
5952 enableval="$enable_wxprintfv"
5953
5954 if test "$enableval" = yes; then
5955 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5956 else
5957 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5958 fi
5959
5960else
5961
5962 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5963 if test "x$LINE" != x ; then
5964 eval "DEFAULT_$LINE"
5965 else
5966 no_cache=1
5967 fi
5968
5969 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5970
5971fi;
5972
5973 eval "$ac_cv_use_wxprintfv"
5974 if test "$no_cache" != 1; then
5975 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5976 fi
5977
5978 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5979 echo "$as_me:$LINENO: result: yes" >&5
5980echo "${ECHO_T}yes" >&6
5981 else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984 fi
5985
5986
5987 enablestring=
5988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5989echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5990 no_cache=0
5991 # Check whether --enable-zipstream or --disable-zipstream was given.
5992if test "${enable_zipstream+set}" = set; then
5993 enableval="$enable_zipstream"
5994
5995 if test "$enableval" = yes; then
5996 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5997 else
5998 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5999 fi
6000
6001else
6002
6003 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6011
6012fi;
6013
6014 eval "$ac_cv_use_zipstream"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_ZIPSTREAM" = yes; then
6020 echo "$as_me:$LINENO: result: yes" >&5
6021echo "${ECHO_T}yes" >&6
6022 else
6023 echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6
6025 fi
6026
6027
a848cd7e
SC
6028
6029 enablestring=
6030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6031echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6032 no_cache=0
6033 # Check whether --enable-url or --disable-url was given.
6034if test "${enable_url+set}" = set; then
6035 enableval="$enable_url"
6036
6037 if test "$enableval" = yes; then
6038 ac_cv_use_url='wxUSE_URL=yes'
6039 else
6040 ac_cv_use_url='wxUSE_URL=no'
6041 fi
6042
6043else
6044
6045 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6053
6054fi;
6055
6056 eval "$ac_cv_use_url"
6057 if test "$no_cache" != 1; then
6058 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6059 fi
6060
6061 if test "$wxUSE_URL" = yes; then
6062 echo "$as_me:$LINENO: result: yes" >&5
6063echo "${ECHO_T}yes" >&6
6064 else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067 fi
6068
6069
6070 enablestring=
6071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6072echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6073 no_cache=0
6074 # Check whether --enable-protocol or --disable-protocol was given.
6075if test "${enable_protocol+set}" = set; then
6076 enableval="$enable_protocol"
6077
6078 if test "$enableval" = yes; then
6079 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6080 else
6081 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6082 fi
6083
6084else
6085
6086 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6087 if test "x$LINE" != x ; then
6088 eval "DEFAULT_$LINE"
6089 else
6090 no_cache=1
6091 fi
6092
6093 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6094
6095fi;
6096
6097 eval "$ac_cv_use_protocol"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_PROTOCOL" = yes; then
6103 echo "$as_me:$LINENO: result: yes" >&5
6104echo "${ECHO_T}yes" >&6
6105 else
6106 echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6
6108 fi
6109
6110
6111 enablestring=
6112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6113echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6114 no_cache=0
6115 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6116if test "${enable_protocol_http+set}" = set; then
6117 enableval="$enable_protocol_http"
6118
6119 if test "$enableval" = yes; then
6120 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6121 else
6122 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6123 fi
6124
6125else
6126
6127 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6128 if test "x$LINE" != x ; then
6129 eval "DEFAULT_$LINE"
6130 else
6131 no_cache=1
6132 fi
6133
6134 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6135
6136fi;
6137
6138 eval "$ac_cv_use_protocol_http"
6139 if test "$no_cache" != 1; then
6140 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6141 fi
6142
6143 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6144 echo "$as_me:$LINENO: result: yes" >&5
6145echo "${ECHO_T}yes" >&6
6146 else
6147 echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6
6149 fi
6150
6151
6152 enablestring=
6153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6154echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6155 no_cache=0
6156 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6157if test "${enable_protocol_ftp+set}" = set; then
6158 enableval="$enable_protocol_ftp"
6159
6160 if test "$enableval" = yes; then
6161 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6162 else
6163 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6164 fi
6165
6166else
6167
6168 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6169 if test "x$LINE" != x ; then
6170 eval "DEFAULT_$LINE"
6171 else
6172 no_cache=1
6173 fi
6174
6175 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6176
6177fi;
6178
6179 eval "$ac_cv_use_protocol_ftp"
6180 if test "$no_cache" != 1; then
6181 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6182 fi
6183
6184 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6185 echo "$as_me:$LINENO: result: yes" >&5
6186echo "${ECHO_T}yes" >&6
6187 else
6188 echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190 fi
6191
6192
6193 enablestring=
6194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6195echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6196 no_cache=0
6197 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6198if test "${enable_protocol_file+set}" = set; then
6199 enableval="$enable_protocol_file"
6200
6201 if test "$enableval" = yes; then
6202 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6203 else
6204 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6205 fi
6206
6207else
6208
6209 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6217
6218fi;
6219
6220 eval "$ac_cv_use_protocol_file"
6221 if test "$no_cache" != 1; then
6222 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6223 fi
6224
6225 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6226 echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6
6228 else
6229 echo "$as_me:$LINENO: result: no" >&5
6230echo "${ECHO_T}no" >&6
6231 fi
6232
6233
6234
6235
6236
6237 enablestring=
6238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6239echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6240 no_cache=0
6241 # Check whether --enable-threads or --disable-threads was given.
6242if test "${enable_threads+set}" = set; then
6243 enableval="$enable_threads"
6244
6245 if test "$enableval" = yes; then
6246 ac_cv_use_threads='wxUSE_THREADS=yes'
6247 else
6248 ac_cv_use_threads='wxUSE_THREADS=no'
6249 fi
6250
6251else
6252
6253 LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6261
6262fi;
6263
6264 eval "$ac_cv_use_threads"
6265 if test "$no_cache" != 1; then
6266 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6267 fi
6268
6269 if test "$wxUSE_THREADS" = 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
6278if test "$wxUSE_GUI" = "yes"; then
6279
6280
6281
6282 enablestring=
6283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6284echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6285 no_cache=0
6286 # Check whether --enable-docview or --disable-docview was given.
6287if test "${enable_docview+set}" = set; then
6288 enableval="$enable_docview"
6289
6290 if test "$enableval" = yes; then
6291 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6292 else
6293 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6294 fi
6295
6296else
6297
6298 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6299 if test "x$LINE" != x ; then
6300 eval "DEFAULT_$LINE"
6301 else
6302 no_cache=1
6303 fi
6304
6305 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6306
6307fi;
6308
6309 eval "$ac_cv_use_docview"
6310 if test "$no_cache" != 1; then
6311 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6312 fi
6313
6314 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6315 echo "$as_me:$LINENO: result: yes" >&5
6316echo "${ECHO_T}yes" >&6
6317 else
6318 echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
6320 fi
6321
6322
6323 enablestring=
6324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6325echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6326 no_cache=0
6327 # Check whether --enable-help or --disable-help was given.
6328if test "${enable_help+set}" = set; then
6329 enableval="$enable_help"
6330
6331 if test "$enableval" = yes; then
6332 ac_cv_use_help='wxUSE_HELP=yes'
6333 else
6334 ac_cv_use_help='wxUSE_HELP=no'
6335 fi
6336
6337else
6338
6339 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6340 if test "x$LINE" != x ; then
6341 eval "DEFAULT_$LINE"
6342 else
6343 no_cache=1
6344 fi
6345
6346 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6347
6348fi;
6349
6350 eval "$ac_cv_use_help"
6351 if test "$no_cache" != 1; then
6352 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6353 fi
6354
6355 if test "$wxUSE_HELP" = yes; then
6356 echo "$as_me:$LINENO: result: yes" >&5
6357echo "${ECHO_T}yes" >&6
6358 else
6359 echo "$as_me:$LINENO: result: no" >&5
6360echo "${ECHO_T}no" >&6
6361 fi
6362
6363
6364 enablestring=
6365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6366echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6367 no_cache=0
6368 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6369if test "${enable_mshtmlhelp+set}" = set; then
6370 enableval="$enable_mshtmlhelp"
6371
6372 if test "$enableval" = yes; then
6373 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6374 else
6375 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6376 fi
6377
6378else
6379
6380 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6381 if test "x$LINE" != x ; then
6382 eval "DEFAULT_$LINE"
6383 else
6384 no_cache=1
6385 fi
6386
6387 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6388
6389fi;
6390
6391 eval "$ac_cv_use_mshtmlhelp"
6392 if test "$no_cache" != 1; then
6393 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6394 fi
6395
6396 if test "$wxUSE_MS_HTML_HELP" = yes; then
6397 echo "$as_me:$LINENO: result: yes" >&5
6398echo "${ECHO_T}yes" >&6
6399 else
6400 echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6
6402 fi
6403
6404
6405 enablestring=
6406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6407echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6408 no_cache=0
6409 # Check whether --enable-html or --disable-html was given.
6410if test "${enable_html+set}" = set; then
6411 enableval="$enable_html"
6412
6413 if test "$enableval" = yes; then
6414 ac_cv_use_html='wxUSE_HTML=yes'
6415 else
6416 ac_cv_use_html='wxUSE_HTML=no'
6417 fi
6418
6419else
6420
6421 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6429
6430fi;
6431
6432 eval "$ac_cv_use_html"
6433 if test "$no_cache" != 1; then
6434 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6435 fi
6436
6437 if test "$wxUSE_HTML" = yes; then
6438 echo "$as_me:$LINENO: result: yes" >&5
6439echo "${ECHO_T}yes" >&6
6440 else
6441 echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
6443 fi
6444
6445
6446 enablestring=
6447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6448echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6449 no_cache=0
6450 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6451if test "${enable_htmlhelp+set}" = set; then
6452 enableval="$enable_htmlhelp"
6453
6454 if test "$enableval" = yes; then
6455 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6456 else
6457 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6458 fi
6459
6460else
6461
6462 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6463 if test "x$LINE" != x ; then
6464 eval "DEFAULT_$LINE"
6465 else
6466 no_cache=1
6467 fi
6468
6469 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6470
6471fi;
6472
6473 eval "$ac_cv_use_htmlhelp"
6474 if test "$no_cache" != 1; then
6475 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6476 fi
6477
6478 if test "$wxUSE_WXHTML_HELP" = yes; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480echo "${ECHO_T}yes" >&6
6481 else
6482 echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6
6484 fi
6485
6486
9a8f0513
VS
6487 enablestring=
6488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6489echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6490 no_cache=0
6491 # Check whether --enable-xrc or --disable-xrc was given.
6492if test "${enable_xrc+set}" = set; then
6493 enableval="$enable_xrc"
6494
6495 if test "$enableval" = yes; then
6496 ac_cv_use_xrc='wxUSE_XRC=yes'
6497 else
6498 ac_cv_use_xrc='wxUSE_XRC=no'
6499 fi
6500
6501else
6502
6503 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6504 if test "x$LINE" != x ; then
6505 eval "DEFAULT_$LINE"
6506 else
6507 no_cache=1
6508 fi
6509
6510 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6511
6512fi;
6513
6514 eval "$ac_cv_use_xrc"
6515 if test "$no_cache" != 1; then
6516 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6517 fi
6518
6519 if test "$wxUSE_XRC" = yes; then
6520 echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6
6522 else
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
6525 fi
6526
6527
a848cd7e
SC
6528 enablestring=
6529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6530echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6531 no_cache=0
6532 # Check whether --enable-constraints or --disable-constraints was given.
6533if test "${enable_constraints+set}" = set; then
6534 enableval="$enable_constraints"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6538 else
6539 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6540 fi
6541
6542else
6543
6544 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6552
6553fi;
6554
6555 eval "$ac_cv_use_constraints"
6556 if test "$no_cache" != 1; then
6557 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6558 fi
6559
6560 if test "$wxUSE_CONSTRAINTS" = yes; then
6561 echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6
6563 else
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
6566 fi
6567
6568
6569 enablestring=
6570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6571echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6572 no_cache=0
6573 # Check whether --enable-printarch or --disable-printarch was given.
6574if test "${enable_printarch+set}" = set; then
6575 enableval="$enable_printarch"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6579 else
6580 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6581 fi
6582
6583else
6584
6585 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6593
6594fi;
6595
6596 eval "$ac_cv_use_printarch"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6602 echo "$as_me:$LINENO: result: yes" >&5
6603echo "${ECHO_T}yes" >&6
6604 else
6605 echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
6607 fi
6608
6609
6610 enablestring=
6611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6612echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6613 no_cache=0
6614 # Check whether --enable-mdi or --disable-mdi was given.
6615if test "${enable_mdi+set}" = set; then
6616 enableval="$enable_mdi"
6617
6618 if test "$enableval" = yes; then
8a7b1113 6619 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6620 else
8a7b1113 6621 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6622 fi
6623
6624else
6625
8a7b1113 6626 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
8a7b1113 6633 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6634
6635fi;
6636
6637 eval "$ac_cv_use_mdi"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6640 fi
6641
8a7b1113
VZ
6642 if test "$wxUSE_MDI" = yes; then
6643 echo "$as_me:$LINENO: result: yes" >&5
6644echo "${ECHO_T}yes" >&6
6645 else
6646 echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6
6648 fi
6649
6650
6651 enablestring=
6652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6653echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6654 no_cache=0
6655 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6656if test "${enable_mdidoc+set}" = set; then
6657 enableval="$enable_mdidoc"
6658
6659 if test "$enableval" = yes; then
6660 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6661 else
6662 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6663 fi
6664
6665else
6666
6667 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6668 if test "x$LINE" != x ; then
6669 eval "DEFAULT_$LINE"
6670 else
6671 no_cache=1
6672 fi
6673
6674 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6675
6676fi;
6677
6678 eval "$ac_cv_use_mdidoc"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6681 fi
6682
a848cd7e
SC
6683 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
6686 else
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
6689 fi
6690
6691
6692 enablestring=
6693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6694echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6695 no_cache=0
6696 # Check whether --enable-loggui or --disable-loggui was given.
6697if test "${enable_loggui+set}" = set; then
6698 enableval="$enable_loggui"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6702 else
6703 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6704 fi
6705
6706else
6707
6708 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6716
6717fi;
6718
6719 eval "$ac_cv_use_loggui"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_LOGGUI" = yes; then
6725 echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6
6727 else
6728 echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
6730 fi
6731
6732
6733 enablestring=
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6736 no_cache=0
6737 # Check whether --enable-logwin or --disable-logwin was given.
6738if test "${enable_logwin+set}" = set; then
6739 enableval="$enable_logwin"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6743 else
6744 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6745 fi
6746
6747else
6748
6749 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6757
6758fi;
6759
6760 eval "$ac_cv_use_logwin"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_LOGWINDOW" = yes; then
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
6768 else
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
6771 fi
6772
6773
6774 enablestring=
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6777 no_cache=0
6778 # Check whether --enable-logdialog or --disable-logdialog was given.
6779if test "${enable_logdialog+set}" = set; then
6780 enableval="$enable_logdialog"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6784 else
6785 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6786 fi
6787
6788else
6789
6790 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6798
6799fi;
6800
6801 eval "$ac_cv_use_logdialog"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_LOGDIALOG" = yes; then
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
6809 else
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
6812 fi
6813
6814
646b6ec1
VS
6815 enablestring=
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6818 no_cache=0
6819 # Check whether --enable-webkit or --disable-webkit was given.
6820if test "${enable_webkit+set}" = set; then
6821 enableval="$enable_webkit"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6825 else
6826 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6827 fi
6828
6829else
6830
6831 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6839
6840fi;
6841
6842 eval "$ac_cv_use_webkit"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_WEBKIT" = yes; then
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
6850 else
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853 fi
6854
6855
a848cd7e
SC
6856
6857 enablestring=
6858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6859echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6860 no_cache=0
6861 # Check whether --enable-postscript or --disable-postscript was given.
6862if test "${enable_postscript+set}" = set; then
6863 enableval="$enable_postscript"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6867 else
6868 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6869 fi
6870
6871else
6872
6873 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6881
6882fi;
6883
6884 eval "$ac_cv_use_postscript"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_POSTSCRIPT" = yes; then
6890 echo "$as_me:$LINENO: result: yes" >&5
6891echo "${ECHO_T}yes" >&6
6892 else
6893 echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6
6895 fi
6896
6897
6898
6899
6900
6901 enablestring=
6902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6903echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6904 no_cache=0
6905 # Check whether --enable-prologio or --disable-prologio was given.
6906if test "${enable_prologio+set}" = set; then
6907 enableval="$enable_prologio"
6908
6909 if test "$enableval" = yes; then
6910 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6911 else
6912 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6913 fi
6914
6915else
6916
6917 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6918 if test "x$LINE" != x ; then
6919 eval "DEFAULT_$LINE"
6920 else
6921 no_cache=1
6922 fi
6923
6924 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6925
6926fi;
6927
6928 eval "$ac_cv_use_prologio"
6929 if test "$no_cache" != 1; then
6930 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6931 fi
6932
6933 if test "$wxUSE_PROLOGIO" = yes; then
6934 echo "$as_me:$LINENO: result: yes" >&5
6935echo "${ECHO_T}yes" >&6
6936 else
6937 echo "$as_me:$LINENO: result: no" >&5
6938echo "${ECHO_T}no" >&6
6939 fi
6940
6941
6942 enablestring=
6943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6944echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6945 no_cache=0
6946 # Check whether --enable-resources or --disable-resources was given.
6947if test "${enable_resources+set}" = set; then
6948 enableval="$enable_resources"
6949
6950 if test "$enableval" = yes; then
6951 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6952 else
6953 ac_cv_use_resources='wxUSE_RESOURCES=no'
6954 fi
6955
6956else
6957
6958 LINE=`grep "wxUSE_RESOURCES" ${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_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6966
6967fi;
6968
6969 eval "$ac_cv_use_resources"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_RESOURCES" = 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 enablestring=
6986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6987echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6988 no_cache=0
6989 # Check whether --enable-clipboard or --disable-clipboard was given.
6990if test "${enable_clipboard+set}" = set; then
6991 enableval="$enable_clipboard"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6995 else
6996 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7009
7010fi;
7011
7012 eval "$ac_cv_use_clipboard"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_CLIPBOARD" = yes; then
7018 echo "$as_me:$LINENO: result: yes" >&5
7019echo "${ECHO_T}yes" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023 fi
7024
7025
7026 enablestring=
7027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7028echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7029 no_cache=0
7030 # Check whether --enable-dnd or --disable-dnd was given.
7031if test "${enable_dnd+set}" = set; then
7032 enableval="$enable_dnd"
7033
7034 if test "$enableval" = yes; then
7035 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7036 else
7037 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7038 fi
7039
7040else
7041
7042 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7043 if test "x$LINE" != x ; then
7044 eval "DEFAULT_$LINE"
7045 else
7046 no_cache=1
7047 fi
7048
7049 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7050
7051fi;
7052
7053 eval "$ac_cv_use_dnd"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7059 echo "$as_me:$LINENO: result: yes" >&5
7060echo "${ECHO_T}yes" >&6
7061 else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064 fi
7065
7066
7067 enablestring=
7068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7069echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7070 no_cache=0
7071 # Check whether --enable-metafile or --disable-metafile was given.
7072if test "${enable_metafile+set}" = set; then
7073 enableval="$enable_metafile"
7074
7075 if test "$enableval" = yes; then
7076 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7077 else
7078 ac_cv_use_metafile='wxUSE_METAFILE=no'
7079 fi
7080
7081else
7082
7083 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7084 if test "x$LINE" != x ; then
7085 eval "DEFAULT_$LINE"
7086 else
7087 no_cache=1
7088 fi
7089
7090 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7091
7092fi;
7093
7094 eval "$ac_cv_use_metafile"
7095 if test "$no_cache" != 1; then
7096 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7097 fi
7098
7099 if test "$wxUSE_METAFILE" = yes; then
7100 echo "$as_me:$LINENO: result: yes" >&5
7101echo "${ECHO_T}yes" >&6
7102 else
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105 fi
7106
7107
7108
7109
7110
7111 enablestring=
7112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7113echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7114 no_cache=0
7115 # Check whether --enable-controls or --disable-controls was given.
7116if test "${enable_controls+set}" = set; then
7117 enableval="$enable_controls"
7118
7119 if test "$enableval" = yes; then
7120 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7121 else
7122 ac_cv_use_controls='wxUSE_CONTROLS=no'
7123 fi
7124
7125else
7126
7127 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7135
7136fi;
7137
7138 eval "$ac_cv_use_controls"
7139 if test "$no_cache" != 1; then
7140 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7141 fi
7142
7143 if test "$wxUSE_CONTROLS" = 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
7152if test "$wxUSE_CONTROLS" = "yes"; then
7153 DEFAULT_wxUSE_ACCEL=yes
7154 DEFAULT_wxUSE_BMPBUTTON=yes
7155 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7156 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7157 DEFAULT_wxUSE_CARET=yes
7158 DEFAULT_wxUSE_COMBOBOX=yes
7159 DEFAULT_wxUSE_CHECKBOX=yes
7160 DEFAULT_wxUSE_CHECKLISTBOX=yes
7161 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7162 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7163 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7164 DEFAULT_wxUSE_GAUGE=yes
7165 DEFAULT_wxUSE_GRID=yes
7166 DEFAULT_wxUSE_IMAGLIST=yes
7167 DEFAULT_wxUSE_LISTBOOK=yes
7168 DEFAULT_wxUSE_LISTBOX=yes
7169 DEFAULT_wxUSE_LISTCTRL=yes
7170 DEFAULT_wxUSE_NOTEBOOK=yes
7171 DEFAULT_wxUSE_RADIOBOX=yes
7172 DEFAULT_wxUSE_RADIOBTN=yes
7173 DEFAULT_wxUSE_SASH=yes
7174 DEFAULT_wxUSE_SCROLLBAR=yes
7175 DEFAULT_wxUSE_SLIDER=yes
7176 DEFAULT_wxUSE_SPINBTN=yes
7177 DEFAULT_wxUSE_SPINCTRL=yes
7178 DEFAULT_wxUSE_SPLITTER=yes
7179 DEFAULT_wxUSE_STATBMP=yes
7180 DEFAULT_wxUSE_STATBOX=yes
7181 DEFAULT_wxUSE_STATLINE=yes
7182 DEFAULT_wxUSE_STATUSBAR=yes
7183 DEFAULT_wxUSE_TAB_DIALOG=yes
7184 DEFAULT_wxUSE_TOGGLEBTN=yes
7185 DEFAULT_wxUSE_TOOLBAR=yes
7186 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7187 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7188 DEFAULT_wxUSE_TOOLTIPS=yes
7189 DEFAULT_wxUSE_TREECTRL=yes
7190 DEFAULT_wxUSE_POPUPWIN=yes
7191 DEFAULT_wxUSE_TIPWINDOW=yes
7192elif test "$wxUSE_CONTROLS" = "no"; then
7193 DEFAULT_wxUSE_ACCEL=no
7194 DEFAULT_wxUSE_BMPBUTTON=no
7195 DEFAULT_wxUSE_BUTTON=no
7196 DEFAULT_wxUSE_CALCTRL=no
7197 DEFAULT_wxUSE_CARET=no
7198 DEFAULT_wxUSE_COMBOBOX=no
7199 DEFAULT_wxUSE_CHECKBOX=no
7200 DEFAULT_wxUSE_CHECKLISTBOX=no
7201 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7202 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7203 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7204 DEFAULT_wxUSE_GAUGE=no
7205 DEFAULT_wxUSE_GRID=no
7206 DEFAULT_wxUSE_IMAGLIST=no
7207 DEFAULT_wxUSE_LISTBOOK=no
7208 DEFAULT_wxUSE_LISTBOX=no
7209 DEFAULT_wxUSE_LISTCTRL=no
7210 DEFAULT_wxUSE_NOTEBOOK=no
7211 DEFAULT_wxUSE_RADIOBOX=no
7212 DEFAULT_wxUSE_RADIOBTN=no
7213 DEFAULT_wxUSE_SASH=no
7214 DEFAULT_wxUSE_SCROLLBAR=no
7215 DEFAULT_wxUSE_SLIDER=no
7216 DEFAULT_wxUSE_SPINBTN=no
7217 DEFAULT_wxUSE_SPINCTRL=no
7218 DEFAULT_wxUSE_SPLITTER=no
7219 DEFAULT_wxUSE_STATBMP=no
7220 DEFAULT_wxUSE_STATBOX=no
7221 DEFAULT_wxUSE_STATLINE=no
7222 DEFAULT_wxUSE_STATUSBAR=no
7223 DEFAULT_wxUSE_TAB_DIALOG=no
7224 DEFAULT_wxUSE_TOGGLEBTN=no
7225 DEFAULT_wxUSE_TOOLBAR=no
7226 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7227 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7228 DEFAULT_wxUSE_TOOLTIPS=no
7229 DEFAULT_wxUSE_TREECTRL=no
7230 DEFAULT_wxUSE_POPUPWIN=no
7231 DEFAULT_wxUSE_TIPWINDOW=no
7232fi
7233
a848cd7e
SC
7234
7235 enablestring=
7236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7237echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7238 no_cache=0
7239 # Check whether --enable-accel or --disable-accel was given.
7240if test "${enable_accel+set}" = set; then
7241 enableval="$enable_accel"
7242
7243 if test "$enableval" = yes; then
7244 ac_cv_use_accel='wxUSE_ACCEL=yes'
7245 else
7246 ac_cv_use_accel='wxUSE_ACCEL=no'
7247 fi
7248
7249else
7250
7251 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7252 if test "x$LINE" != x ; then
7253 eval "DEFAULT_$LINE"
7254 else
7255 no_cache=1
7256 fi
7257
7258 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7259
7260fi;
7261
7262 eval "$ac_cv_use_accel"
7263 if test "$no_cache" != 1; then
7264 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7265 fi
7266
7267 if test "$wxUSE_ACCEL" = yes; then
7268 echo "$as_me:$LINENO: result: yes" >&5
7269echo "${ECHO_T}yes" >&6
7270 else
7271 echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6
7273 fi
7274
7275
7276 enablestring=
7277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7278echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7279 no_cache=0
7280 # Check whether --enable-button or --disable-button was given.
7281if test "${enable_button+set}" = set; then
7282 enableval="$enable_button"
7283
7284 if test "$enableval" = yes; then
7285 ac_cv_use_button='wxUSE_BUTTON=yes'
7286 else
7287 ac_cv_use_button='wxUSE_BUTTON=no'
7288 fi
7289
7290else
7291
7292 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7293 if test "x$LINE" != x ; then
7294 eval "DEFAULT_$LINE"
7295 else
7296 no_cache=1
7297 fi
7298
7299 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7300
7301fi;
7302
7303 eval "$ac_cv_use_button"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_BUTTON" = yes; then
7309 echo "$as_me:$LINENO: result: yes" >&5
7310echo "${ECHO_T}yes" >&6
7311 else
7312 echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
7314 fi
7315
7316
7317 enablestring=
7318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7319echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7320 no_cache=0
7321 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7322if test "${enable_bmpbutton+set}" = set; then
7323 enableval="$enable_bmpbutton"
7324
7325 if test "$enableval" = yes; then
7326 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7327 else
7328 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7329 fi
7330
7331else
7332
7333 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7341
7342fi;
7343
7344 eval "$ac_cv_use_bmpbutton"
7345 if test "$no_cache" != 1; then
7346 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7347 fi
7348
7349 if test "$wxUSE_BMPBUTTON" = yes; then
7350 echo "$as_me:$LINENO: result: yes" >&5
7351echo "${ECHO_T}yes" >&6
7352 else
7353 echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6
7355 fi
7356
7357
7358 enablestring=
7359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7360echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7361 no_cache=0
7362 # Check whether --enable-calendar or --disable-calendar was given.
7363if test "${enable_calendar+set}" = set; then
7364 enableval="$enable_calendar"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7368 else
7369 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7370 fi
7371
7372else
7373
7374 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7382
7383fi;
7384
7385 eval "$ac_cv_use_calendar"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_CALCTRL" = yes; then
7391 echo "$as_me:$LINENO: result: yes" >&5
7392echo "${ECHO_T}yes" >&6
7393 else
7394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
7396 fi
7397
7398
7399 enablestring=
7400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7401echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7402 no_cache=0
7403 # Check whether --enable-caret or --disable-caret was given.
7404if test "${enable_caret+set}" = set; then
7405 enableval="$enable_caret"
7406
7407 if test "$enableval" = yes; then
7408 ac_cv_use_caret='wxUSE_CARET=yes'
7409 else
7410 ac_cv_use_caret='wxUSE_CARET=no'
7411 fi
7412
7413else
7414
7415 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7416 if test "x$LINE" != x ; then
7417 eval "DEFAULT_$LINE"
7418 else
7419 no_cache=1
7420 fi
7421
7422 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7423
7424fi;
7425
7426 eval "$ac_cv_use_caret"
7427 if test "$no_cache" != 1; then
7428 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7429 fi
7430
7431 if test "$wxUSE_CARET" = yes; then
7432 echo "$as_me:$LINENO: result: yes" >&5
7433echo "${ECHO_T}yes" >&6
7434 else
7435 echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6
7437 fi
7438
7439
7440 enablestring=
7441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7442echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7443 no_cache=0
7444 # Check whether --enable-checkbox or --disable-checkbox was given.
7445if test "${enable_checkbox+set}" = set; then
7446 enableval="$enable_checkbox"
7447
7448 if test "$enableval" = yes; then
7449 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7450 else
7451 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7452 fi
7453
7454else
7455
7456 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7457 if test "x$LINE" != x ; then
7458 eval "DEFAULT_$LINE"
7459 else
7460 no_cache=1
7461 fi
7462
7463 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7464
7465fi;
7466
7467 eval "$ac_cv_use_checkbox"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_CHECKBOX" = yes; then
7473 echo "$as_me:$LINENO: result: yes" >&5
7474echo "${ECHO_T}yes" >&6
7475 else
7476 echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6
7478 fi
7479
7480
7481 enablestring=
7482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7483echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7484 no_cache=0
7485 # Check whether --enable-checklst or --disable-checklst was given.
7486if test "${enable_checklst+set}" = set; then
7487 enableval="$enable_checklst"
7488
7489 if test "$enableval" = yes; then
7490 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7491 else
7492 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7493 fi
7494
7495else
7496
7497 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7498 if test "x$LINE" != x ; then
7499 eval "DEFAULT_$LINE"
7500 else
7501 no_cache=1
7502 fi
7503
7504 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7505
7506fi;
7507
7508 eval "$ac_cv_use_checklst"
7509 if test "$no_cache" != 1; then
7510 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7511 fi
7512
7513 if test "$wxUSE_CHECKLST" = yes; then
7514 echo "$as_me:$LINENO: result: yes" >&5
7515echo "${ECHO_T}yes" >&6
7516 else
7517 echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6
7519 fi
7520
7521
7522 enablestring=
7523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7524echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7525 no_cache=0
7526 # Check whether --enable-choice or --disable-choice was given.
7527if test "${enable_choice+set}" = set; then
7528 enableval="$enable_choice"
7529
7530 if test "$enableval" = yes; then
7531 ac_cv_use_choice='wxUSE_CHOICE=yes'
7532 else
7533 ac_cv_use_choice='wxUSE_CHOICE=no'
7534 fi
7535
7536else
7537
7538 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7546
7547fi;
7548
7549 eval "$ac_cv_use_choice"
7550 if test "$no_cache" != 1; then
7551 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7552 fi
7553
7554 if test "$wxUSE_CHOICE" = yes; then
7555 echo "$as_me:$LINENO: result: yes" >&5
7556echo "${ECHO_T}yes" >&6
7557 else
7558 echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6
7560 fi
7561
7562
92bbdbcd
WS
7563 enablestring=
7564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7565echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7566 no_cache=0
7567 # Check whether --enable-choicebook or --disable-choicebook was given.
7568if test "${enable_choicebook+set}" = set; then
7569 enableval="$enable_choicebook"
7570
7571 if test "$enableval" = yes; then
7572 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7573 else
7574 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7575 fi
7576
7577else
7578
7579 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7587
7588fi;
7589
7590 eval "$ac_cv_use_choicebook"
7591 if test "$no_cache" != 1; then
7592 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7593 fi
7594
7595 if test "$wxUSE_CHOICEBOOK" = yes; then
7596 echo "$as_me:$LINENO: result: yes" >&5
7597echo "${ECHO_T}yes" >&6
7598 else
7599 echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6
7601 fi
7602
7603
a848cd7e
SC
7604 enablestring=
7605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7606echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7607 no_cache=0
7608 # Check whether --enable-combobox or --disable-combobox was given.
7609if test "${enable_combobox+set}" = set; then
7610 enableval="$enable_combobox"
7611
7612 if test "$enableval" = yes; then
7613 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7614 else
7615 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7616 fi
7617
7618else
7619
7620 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7621 if test "x$LINE" != x ; then
7622 eval "DEFAULT_$LINE"
7623 else
7624 no_cache=1
7625 fi
7626
7627 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7628
7629fi;
7630
7631 eval "$ac_cv_use_combobox"
7632 if test "$no_cache" != 1; then
7633 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7634 fi
7635
7636 if test "$wxUSE_COMBOBOX" = yes; then
7637 echo "$as_me:$LINENO: result: yes" >&5
7638echo "${ECHO_T}yes" >&6
7639 else
7640 echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6
7642 fi
7643
7644
da98e9be
VZ
7645 enablestring=
7646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7647echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7648 no_cache=0
7649 # Check whether --enable-datepick or --disable-datepick was given.
7650if test "${enable_datepick+set}" = set; then
7651 enableval="$enable_datepick"
7652
7653 if test "$enableval" = yes; then
7654 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7655 else
7656 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7657 fi
7658
7659else
7660
7661 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7662 if test "x$LINE" != x ; then
7663 eval "DEFAULT_$LINE"
7664 else
7665 no_cache=1
7666 fi
7667
7668 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7669
7670fi;
7671
7672 eval "$ac_cv_use_datepick"
7673 if test "$no_cache" != 1; then
7674 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7675 fi
7676
7677 if test "$wxUSE_DATEPICKCTRL" = yes; then
7678 echo "$as_me:$LINENO: result: yes" >&5
7679echo "${ECHO_T}yes" >&6
7680 else
7681 echo "$as_me:$LINENO: result: no" >&5
7682echo "${ECHO_T}no" >&6
7683 fi
7684
7685
a848cd7e
SC
7686 enablestring=
7687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7688echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7689 no_cache=0
7690 # Check whether --enable-display or --disable-display was given.
7691if test "${enable_display+set}" = set; then
7692 enableval="$enable_display"
7693
7694 if test "$enableval" = yes; then
7695 ac_cv_use_display='wxUSE_DISPLAY=yes'
7696 else
7697 ac_cv_use_display='wxUSE_DISPLAY=no'
7698 fi
7699
7700else
7701
7702 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7703 if test "x$LINE" != x ; then
7704 eval "DEFAULT_$LINE"
7705 else
7706 no_cache=1
7707 fi
7708
7709 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7710
7711fi;
7712
7713 eval "$ac_cv_use_display"
7714 if test "$no_cache" != 1; then
7715 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7716 fi
7717
7718 if test "$wxUSE_DISPLAY" = yes; then
7719 echo "$as_me:$LINENO: result: yes" >&5
7720echo "${ECHO_T}yes" >&6
7721 else
7722 echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6
7724 fi
7725
7726
7727 enablestring=
7728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7729echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7730 no_cache=0
7731 # Check whether --enable-gauge or --disable-gauge was given.
7732if test "${enable_gauge+set}" = set; then
7733 enableval="$enable_gauge"
7734
7735 if test "$enableval" = yes; then
7736 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7737 else
7738 ac_cv_use_gauge='wxUSE_GAUGE=no'
7739 fi
7740
7741else
7742
7743 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7744 if test "x$LINE" != x ; then
7745 eval "DEFAULT_$LINE"
7746 else
7747 no_cache=1
7748 fi
7749
7750 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7751
7752fi;
7753
7754 eval "$ac_cv_use_gauge"
7755 if test "$no_cache" != 1; then
7756 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7757 fi
7758
7759 if test "$wxUSE_GAUGE" = yes; then
7760 echo "$as_me:$LINENO: result: yes" >&5
7761echo "${ECHO_T}yes" >&6
7762 else
7763 echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6
7765 fi
7766
7767
7768 enablestring=
7769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7770echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7771 no_cache=0
7772 # Check whether --enable-grid or --disable-grid was given.
7773if test "${enable_grid+set}" = set; then
7774 enableval="$enable_grid"
7775
7776 if test "$enableval" = yes; then
7777 ac_cv_use_grid='wxUSE_GRID=yes'
7778 else
7779 ac_cv_use_grid='wxUSE_GRID=no'
7780 fi
7781
7782else
7783
7784 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7785 if test "x$LINE" != x ; then
7786 eval "DEFAULT_$LINE"
7787 else
7788 no_cache=1
7789 fi
7790
7791 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7792
7793fi;
7794
7795 eval "$ac_cv_use_grid"
7796 if test "$no_cache" != 1; then
7797 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7798 fi
7799
7800 if test "$wxUSE_GRID" = yes; then
7801 echo "$as_me:$LINENO: result: yes" >&5
7802echo "${ECHO_T}yes" >&6
7803 else
7804 echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6
7806 fi
7807
7808
7809 enablestring=
7810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7811echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7812 no_cache=0
7813 # Check whether --enable-imaglist or --disable-imaglist was given.
7814if test "${enable_imaglist+set}" = set; then
7815 enableval="$enable_imaglist"
7816
7817 if test "$enableval" = yes; then
7818 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7819 else
7820 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7821 fi
7822
7823else
7824
7825 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7826 if test "x$LINE" != x ; then
7827 eval "DEFAULT_$LINE"
7828 else
7829 no_cache=1
7830 fi
7831
7832 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7833
7834fi;
7835
7836 eval "$ac_cv_use_imaglist"
7837 if test "$no_cache" != 1; then
7838 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7839 fi
7840
7841 if test "$wxUSE_IMAGLIST" = yes; then
7842 echo "$as_me:$LINENO: result: yes" >&5
7843echo "${ECHO_T}yes" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846echo "${ECHO_T}no" >&6
7847 fi
7848
7849
7850 enablestring=
7851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7852echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7853 no_cache=0
7854 # Check whether --enable-listbook or --disable-listbook was given.
7855if test "${enable_listbook+set}" = set; then
7856 enableval="$enable_listbook"
7857
7858 if test "$enableval" = yes; then
7859 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7860 else
7861 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7862 fi
7863
7864else
7865
7866 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7874
7875fi;
7876
7877 eval "$ac_cv_use_listbook"
7878 if test "$no_cache" != 1; then
7879 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7880 fi
7881
7882 if test "$wxUSE_LISTBOOK" = yes; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884echo "${ECHO_T}yes" >&6
7885 else
7886 echo "$as_me:$LINENO: result: no" >&5
7887echo "${ECHO_T}no" >&6
7888 fi
7889
7890
7891 enablestring=
7892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7893echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7894 no_cache=0
7895 # Check whether --enable-listbox or --disable-listbox was given.
7896if test "${enable_listbox+set}" = set; then
7897 enableval="$enable_listbox"
7898
7899 if test "$enableval" = yes; then
7900 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7901 else
7902 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7903 fi
7904
7905else
7906
7907 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7908 if test "x$LINE" != x ; then
7909 eval "DEFAULT_$LINE"
7910 else
7911 no_cache=1
7912 fi
7913
7914 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7915
7916fi;
7917
7918 eval "$ac_cv_use_listbox"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_LISTBOX" = yes; then
7924 echo "$as_me:$LINENO: result: yes" >&5
7925echo "${ECHO_T}yes" >&6
7926 else
7927 echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6
7929 fi
7930
7931
7932 enablestring=
7933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7934echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7935 no_cache=0
7936 # Check whether --enable-listctrl or --disable-listctrl was given.
7937if test "${enable_listctrl+set}" = set; then
7938 enableval="$enable_listctrl"
7939
7940 if test "$enableval" = yes; then
7941 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7942 else
7943 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7944 fi
7945
7946else
7947
7948 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7949 if test "x$LINE" != x ; then
7950 eval "DEFAULT_$LINE"
7951 else
7952 no_cache=1
7953 fi
7954
7955 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7956
7957fi;
7958
7959 eval "$ac_cv_use_listctrl"
7960 if test "$no_cache" != 1; then
7961 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7962 fi
7963
7964 if test "$wxUSE_LISTCTRL" = yes; then
7965 echo "$as_me:$LINENO: result: yes" >&5
7966echo "${ECHO_T}yes" >&6
7967 else
7968 echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6
7970 fi
7971
7972
7973 enablestring=
7974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7975echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7976 no_cache=0
7977 # Check whether --enable-notebook or --disable-notebook was given.
7978if test "${enable_notebook+set}" = set; then
7979 enableval="$enable_notebook"
7980
7981 if test "$enableval" = yes; then
7982 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7983 else
7984 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7985 fi
7986
7987else
7988
7989 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7990 if test "x$LINE" != x ; then
7991 eval "DEFAULT_$LINE"
7992 else
7993 no_cache=1
7994 fi
7995
7996 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7997
7998fi;
7999
8000 eval "$ac_cv_use_notebook"
8001 if test "$no_cache" != 1; then
8002 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8003 fi
8004
8005 if test "$wxUSE_NOTEBOOK" = yes; then
8006 echo "$as_me:$LINENO: result: yes" >&5
8007echo "${ECHO_T}yes" >&6
8008 else
8009 echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6
8011 fi
8012
8013
8014 enablestring=
8015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8016echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8017 no_cache=0
8018 # Check whether --enable-radiobox or --disable-radiobox was given.
8019if test "${enable_radiobox+set}" = set; then
8020 enableval="$enable_radiobox"
8021
8022 if test "$enableval" = yes; then
8023 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8024 else
8025 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8026 fi
8027
8028else
8029
8030 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8038
8039fi;
8040
8041 eval "$ac_cv_use_radiobox"
8042 if test "$no_cache" != 1; then
8043 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8044 fi
8045
8046 if test "$wxUSE_RADIOBOX" = yes; then
8047 echo "$as_me:$LINENO: result: yes" >&5
8048echo "${ECHO_T}yes" >&6
8049 else
8050 echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
8052 fi
8053
8054
8055 enablestring=
8056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8057echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8058 no_cache=0
8059 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8060if test "${enable_radiobtn+set}" = set; then
8061 enableval="$enable_radiobtn"
8062
8063 if test "$enableval" = yes; then
8064 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8065 else
8066 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8067 fi
8068
8069else
8070
8071 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8072 if test "x$LINE" != x ; then
8073 eval "DEFAULT_$LINE"
8074 else
8075 no_cache=1
8076 fi
8077
8078 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8079
8080fi;
8081
8082 eval "$ac_cv_use_radiobtn"
8083 if test "$no_cache" != 1; then
8084 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8085 fi
8086
8087 if test "$wxUSE_RADIOBTN" = yes; then
8088 echo "$as_me:$LINENO: result: yes" >&5
8089echo "${ECHO_T}yes" >&6
8090 else
8091 echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
8093 fi
8094
8095
8096 enablestring=
8097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8098echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8099 no_cache=0
8100 # Check whether --enable-sash or --disable-sash was given.
8101if test "${enable_sash+set}" = set; then
8102 enableval="$enable_sash"
8103
8104 if test "$enableval" = yes; then
8105 ac_cv_use_sash='wxUSE_SASH=yes'
8106 else
8107 ac_cv_use_sash='wxUSE_SASH=no'
8108 fi
8109
8110else
8111
8112 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8120
8121fi;
8122
8123 eval "$ac_cv_use_sash"
8124 if test "$no_cache" != 1; then
8125 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8126 fi
8127
8128 if test "$wxUSE_SASH" = yes; then
8129 echo "$as_me:$LINENO: result: yes" >&5
8130echo "${ECHO_T}yes" >&6
8131 else
8132 echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
8134 fi
8135
8136
8137 enablestring=
8138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8139echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8140 no_cache=0
8141 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8142if test "${enable_scrollbar+set}" = set; then
8143 enableval="$enable_scrollbar"
8144
8145 if test "$enableval" = yes; then
8146 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8147 else
8148 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8149 fi
8150
8151else
8152
8153 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8161
8162fi;
8163
8164 eval "$ac_cv_use_scrollbar"
8165 if test "$no_cache" != 1; then
8166 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8167 fi
8168
8169 if test "$wxUSE_SCROLLBAR" = yes; then
8170 echo "$as_me:$LINENO: result: yes" >&5
8171echo "${ECHO_T}yes" >&6
8172 else
8173 echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6
8175 fi
8176
8177
8178 enablestring=
8179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8180echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8181 no_cache=0
8182 # Check whether --enable-slider or --disable-slider was given.
8183if test "${enable_slider+set}" = set; then
8184 enableval="$enable_slider"
8185
8186 if test "$enableval" = yes; then
8187 ac_cv_use_slider='wxUSE_SLIDER=yes'
8188 else
8189 ac_cv_use_slider='wxUSE_SLIDER=no'
8190 fi
8191
8192else
8193
8194 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8195 if test "x$LINE" != x ; then
8196 eval "DEFAULT_$LINE"
8197 else
8198 no_cache=1
8199 fi
8200
8201 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8202
8203fi;
8204
8205 eval "$ac_cv_use_slider"
8206 if test "$no_cache" != 1; then
8207 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8208 fi
8209
8210 if test "$wxUSE_SLIDER" = yes; then
8211 echo "$as_me:$LINENO: result: yes" >&5
8212echo "${ECHO_T}yes" >&6
8213 else
8214 echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6
8216 fi
8217
8218
8219 enablestring=
8220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8221echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8222 no_cache=0
8223 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8224if test "${enable_spinbtn+set}" = set; then
8225 enableval="$enable_spinbtn"
8226
8227 if test "$enableval" = yes; then
8228 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8229 else
8230 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8231 fi
8232
8233else
8234
8235 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8236 if test "x$LINE" != x ; then
8237 eval "DEFAULT_$LINE"
8238 else
8239 no_cache=1
8240 fi
8241
8242 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8243
8244fi;
8245
8246 eval "$ac_cv_use_spinbtn"
8247 if test "$no_cache" != 1; then
8248 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8249 fi
8250
8251 if test "$wxUSE_SPINBTN" = yes; then
8252 echo "$as_me:$LINENO: result: yes" >&5
8253echo "${ECHO_T}yes" >&6
8254 else
8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
8257 fi
8258
8259
8260 enablestring=
8261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8262echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8263 no_cache=0
8264 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8265if test "${enable_spinctrl+set}" = set; then
8266 enableval="$enable_spinctrl"
8267
8268 if test "$enableval" = yes; then
8269 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8270 else
8271 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8272 fi
8273
8274else
8275
8276 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8277 if test "x$LINE" != x ; then
8278 eval "DEFAULT_$LINE"
8279 else
8280 no_cache=1
8281 fi
8282
8283 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8284
8285fi;
8286
8287 eval "$ac_cv_use_spinctrl"
8288 if test "$no_cache" != 1; then
8289 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8290 fi
8291
8292 if test "$wxUSE_SPINCTRL" = yes; then
8293 echo "$as_me:$LINENO: result: yes" >&5
8294echo "${ECHO_T}yes" >&6
8295 else
8296 echo "$as_me:$LINENO: result: no" >&5
8297echo "${ECHO_T}no" >&6
8298 fi
8299
8300
8301 enablestring=
8302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8303echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8304 no_cache=0
8305 # Check whether --enable-splitter or --disable-splitter was given.
8306if test "${enable_splitter+set}" = set; then
8307 enableval="$enable_splitter"
8308
8309 if test "$enableval" = yes; then
8310 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8311 else
8312 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8313 fi
8314
8315else
8316
8317 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8318 if test "x$LINE" != x ; then
8319 eval "DEFAULT_$LINE"
8320 else
8321 no_cache=1
8322 fi
8323
8324 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8325
8326fi;
8327
8328 eval "$ac_cv_use_splitter"
8329 if test "$no_cache" != 1; then
8330 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8331 fi
8332
8333 if test "$wxUSE_SPLITTER" = yes; then
8334 echo "$as_me:$LINENO: result: yes" >&5
8335echo "${ECHO_T}yes" >&6
8336 else
8337 echo "$as_me:$LINENO: result: no" >&5
8338echo "${ECHO_T}no" >&6
8339 fi
8340
8341
8342 enablestring=
8343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8344echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8345 no_cache=0
8346 # Check whether --enable-statbmp or --disable-statbmp was given.
8347if test "${enable_statbmp+set}" = set; then
8348 enableval="$enable_statbmp"
8349
8350 if test "$enableval" = yes; then
8351 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8352 else
8353 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8354 fi
8355
8356else
8357
8358 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8359 if test "x$LINE" != x ; then
8360 eval "DEFAULT_$LINE"
8361 else
8362 no_cache=1
8363 fi
8364
8365 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8366
8367fi;
8368
8369 eval "$ac_cv_use_statbmp"
8370 if test "$no_cache" != 1; then
8371 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8372 fi
8373
8374 if test "$wxUSE_STATBMP" = yes; then
8375 echo "$as_me:$LINENO: result: yes" >&5
8376echo "${ECHO_T}yes" >&6
8377 else
8378 echo "$as_me:$LINENO: result: no" >&5
8379echo "${ECHO_T}no" >&6
8380 fi
8381
8382
8383 enablestring=
8384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8385echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8386 no_cache=0
8387 # Check whether --enable-statbox or --disable-statbox was given.
8388if test "${enable_statbox+set}" = set; then
8389 enableval="$enable_statbox"
8390
8391 if test "$enableval" = yes; then
8392 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8393 else
8394 ac_cv_use_statbox='wxUSE_STATBOX=no'
8395 fi
8396
8397else
8398
8399 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8400 if test "x$LINE" != x ; then
8401 eval "DEFAULT_$LINE"
8402 else
8403 no_cache=1
8404 fi
8405
8406 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8407
8408fi;
8409
8410 eval "$ac_cv_use_statbox"
8411 if test "$no_cache" != 1; then
8412 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8413 fi
8414
8415 if test "$wxUSE_STATBOX" = yes; then
8416 echo "$as_me:$LINENO: result: yes" >&5
8417echo "${ECHO_T}yes" >&6
8418 else
8419 echo "$as_me:$LINENO: result: no" >&5
8420echo "${ECHO_T}no" >&6
8421 fi
8422
8423
8424 enablestring=
8425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8426echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8427 no_cache=0
8428 # Check whether --enable-statline or --disable-statline was given.
8429if test "${enable_statline+set}" = set; then
8430 enableval="$enable_statline"
8431
8432 if test "$enableval" = yes; then
8433 ac_cv_use_statline='wxUSE_STATLINE=yes'
8434 else
8435 ac_cv_use_statline='wxUSE_STATLINE=no'
8436 fi
8437
8438else
8439
8440 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8441 if test "x$LINE" != x ; then
8442 eval "DEFAULT_$LINE"
8443 else
8444 no_cache=1
8445 fi
8446
8447 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8448
8449fi;
8450
8451 eval "$ac_cv_use_statline"
8452 if test "$no_cache" != 1; then
8453 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8454 fi
8455
8456 if test "$wxUSE_STATLINE" = yes; then
8457 echo "$as_me:$LINENO: result: yes" >&5
8458echo "${ECHO_T}yes" >&6
8459 else
8460 echo "$as_me:$LINENO: result: no" >&5
8461echo "${ECHO_T}no" >&6
8462 fi
8463
8464
8465 enablestring=
8466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8467echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8468 no_cache=0
8469 # Check whether --enable-stattext or --disable-stattext was given.
8470if test "${enable_stattext+set}" = set; then
8471 enableval="$enable_stattext"
8472
8473 if test "$enableval" = yes; then
8474 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8475 else
8476 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8477 fi
8478
8479else
8480
8481 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8482 if test "x$LINE" != x ; then
8483 eval "DEFAULT_$LINE"
8484 else
8485 no_cache=1
8486 fi
8487
8488 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8489
8490fi;
8491
8492 eval "$ac_cv_use_stattext"
8493 if test "$no_cache" != 1; then
8494 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8495 fi
8496
8497 if test "$wxUSE_STATTEXT" = yes; then
8498 echo "$as_me:$LINENO: result: yes" >&5
8499echo "${ECHO_T}yes" >&6
8500 else
8501 echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6
8503 fi
8504
8505
8506 enablestring=
8507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8508echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8509 no_cache=0
8510 # Check whether --enable-statusbar or --disable-statusbar was given.
8511if test "${enable_statusbar+set}" = set; then
8512 enableval="$enable_statusbar"
8513
8514 if test "$enableval" = yes; then
8515 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8516 else
8517 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8518 fi
8519
8520else
8521
8522 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8523 if test "x$LINE" != x ; then
8524 eval "DEFAULT_$LINE"
8525 else
8526 no_cache=1
8527 fi
8528
8529 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8530
8531fi;
8532
8533 eval "$ac_cv_use_statusbar"
8534 if test "$no_cache" != 1; then
8535 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8536 fi
8537
8538 if test "$wxUSE_STATUSBAR" = yes; then
8539 echo "$as_me:$LINENO: result: yes" >&5
8540echo "${ECHO_T}yes" >&6
8541 else
8542 echo "$as_me:$LINENO: result: no" >&5
8543echo "${ECHO_T}no" >&6
8544 fi
8545
8546
8547 enablestring=
8548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8549echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8550 no_cache=0
8551 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8552if test "${enable_tabdialog+set}" = set; then
8553 enableval="$enable_tabdialog"
8554
8555 if test "$enableval" = yes; then
8556 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8557 else
8558 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8559 fi
8560
8561else
8562
8563 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8564 if test "x$LINE" != x ; then
8565 eval "DEFAULT_$LINE"
8566 else
8567 no_cache=1
8568 fi
8569
8570 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8571
8572fi;
8573
8574 eval "$ac_cv_use_tabdialog"
8575 if test "$no_cache" != 1; then
8576 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8577 fi
8578
8579 if test "$wxUSE_TABDIALOG" = yes; then
8580 echo "$as_me:$LINENO: result: yes" >&5
8581echo "${ECHO_T}yes" >&6
8582 else
8583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
8585 fi
8586
8587
8588 enablestring=
8589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8590echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8591 no_cache=0
8592 # Check whether --enable-textctrl or --disable-textctrl was given.
8593if test "${enable_textctrl+set}" = set; then
8594 enableval="$enable_textctrl"
8595
8596 if test "$enableval" = yes; then
8597 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8598 else
8599 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8600 fi
8601
8602else
8603
8604 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8605 if test "x$LINE" != x ; then
8606 eval "DEFAULT_$LINE"
8607 else
8608 no_cache=1
8609 fi
8610
8611 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8612
8613fi;
8614
8615 eval "$ac_cv_use_textctrl"
8616 if test "$no_cache" != 1; then
8617 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8618 fi
8619
8620 if test "$wxUSE_TEXTCTRL" = yes; then
8621 echo "$as_me:$LINENO: result: yes" >&5
8622echo "${ECHO_T}yes" >&6
8623 else
8624 echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6
8626 fi
8627
8628
8629 enablestring=
8630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8631echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8632 no_cache=0
8633 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8634if test "${enable_togglebtn+set}" = set; then
8635 enableval="$enable_togglebtn"
8636
8637 if test "$enableval" = yes; then
8638 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8639 else
8640 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8641 fi
8642
8643else
8644
8645 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8646 if test "x$LINE" != x ; then
8647 eval "DEFAULT_$LINE"
8648 else
8649 no_cache=1
8650 fi
8651
8652 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8653
8654fi;
8655
8656 eval "$ac_cv_use_togglebtn"
8657 if test "$no_cache" != 1; then
8658 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8659 fi
8660
8661 if test "$wxUSE_TOGGLEBTN" = yes; then
8662 echo "$as_me:$LINENO: result: yes" >&5
8663echo "${ECHO_T}yes" >&6
8664 else
8665 echo "$as_me:$LINENO: result: no" >&5
8666echo "${ECHO_T}no" >&6
8667 fi
8668
8669
8670 enablestring=
8671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8672echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8673 no_cache=0
8674 # Check whether --enable-toolbar or --disable-toolbar was given.
8675if test "${enable_toolbar+set}" = set; then
8676 enableval="$enable_toolbar"
8677
8678 if test "$enableval" = yes; then
8679 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8680 else
8681 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8682 fi
8683
8684else
8685
8686 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8687 if test "x$LINE" != x ; then
8688 eval "DEFAULT_$LINE"
8689 else
8690 no_cache=1
8691 fi
8692
8693 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8694
8695fi;
8696
8697 eval "$ac_cv_use_toolbar"
8698 if test "$no_cache" != 1; then
8699 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8700 fi
8701
8702 if test "$wxUSE_TOOLBAR" = yes; then
8703 echo "$as_me:$LINENO: result: yes" >&5
8704echo "${ECHO_T}yes" >&6
8705 else
8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
8708 fi
8709
8710
8711 enablestring=
8712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8713echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8714 no_cache=0
8715 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8716if test "${enable_tbarnative+set}" = set; then
8717 enableval="$enable_tbarnative"
8718
8719 if test "$enableval" = yes; then
8720 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8721 else
8722 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8723 fi
8724
8725else
8726
8727 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8728 if test "x$LINE" != x ; then
8729 eval "DEFAULT_$LINE"
8730 else
8731 no_cache=1
8732 fi
8733
8734 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8735
8736fi;
8737
8738 eval "$ac_cv_use_tbarnative"
8739 if test "$no_cache" != 1; then
8740 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8741 fi
8742
8743 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8744 echo "$as_me:$LINENO: result: yes" >&5
8745echo "${ECHO_T}yes" >&6
8746 else
8747 echo "$as_me:$LINENO: result: no" >&5
8748echo "${ECHO_T}no" >&6
8749 fi
8750
8751
8752 enablestring=
8753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8754echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8755 no_cache=0
8756 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8757if test "${enable_tbarsmpl+set}" = set; then
8758 enableval="$enable_tbarsmpl"
8759
8760 if test "$enableval" = yes; then
8761 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8762 else
8763 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8764 fi
8765
8766else
8767
8768 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8769 if test "x$LINE" != x ; then
8770 eval "DEFAULT_$LINE"
8771 else
8772 no_cache=1
8773 fi
8774
8775 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8776
8777fi;
8778
8779 eval "$ac_cv_use_tbarsmpl"
8780 if test "$no_cache" != 1; then
8781 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8782 fi
8783
8784 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8785 echo "$as_me:$LINENO: result: yes" >&5
8786echo "${ECHO_T}yes" >&6
8787 else
8788 echo "$as_me:$LINENO: result: no" >&5
8789echo "${ECHO_T}no" >&6
8790 fi
8791
8792
8793 enablestring=
8794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8795echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8796 no_cache=0
8797 # Check whether --enable-treectrl or --disable-treectrl was given.
8798if test "${enable_treectrl+set}" = set; then
8799 enableval="$enable_treectrl"
8800
8801 if test "$enableval" = yes; then
8802 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8803 else
8804 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8805 fi
8806
8807else
8808
8809 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8810 if test "x$LINE" != x ; then
8811 eval "DEFAULT_$LINE"
8812 else
8813 no_cache=1
8814 fi
8815
8816 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8817
8818fi;
8819
8820 eval "$ac_cv_use_treectrl"
8821 if test "$no_cache" != 1; then
8822 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8823 fi
8824
8825 if test "$wxUSE_TREECTRL" = yes; then
8826 echo "$as_me:$LINENO: result: yes" >&5
8827echo "${ECHO_T}yes" >&6
8828 else
8829 echo "$as_me:$LINENO: result: no" >&5
8830echo "${ECHO_T}no" >&6
8831 fi
8832
8833
8834 enablestring=
8835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8836echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8837 no_cache=0
8838 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8839if test "${enable_tipwindow+set}" = set; then
8840 enableval="$enable_tipwindow"
8841
8842 if test "$enableval" = yes; then
8843 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8844 else
8845 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8846 fi
8847
8848else
8849
8850 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8851 if test "x$LINE" != x ; then
8852 eval "DEFAULT_$LINE"
8853 else
8854 no_cache=1
8855 fi
8856
8857 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8858
8859fi;
8860
8861 eval "$ac_cv_use_tipwindow"
8862 if test "$no_cache" != 1; then
8863 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8864 fi
8865
8866 if test "$wxUSE_TIPWINDOW" = yes; then
8867 echo "$as_me:$LINENO: result: yes" >&5
8868echo "${ECHO_T}yes" >&6
8869 else
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
8872 fi
8873
8874
8875 enablestring=
8876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8877echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8878 no_cache=0
8879 # Check whether --enable-popupwin or --disable-popupwin was given.
8880if test "${enable_popupwin+set}" = set; then
8881 enableval="$enable_popupwin"
8882
8883 if test "$enableval" = yes; then
8884 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8885 else
8886 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8887 fi
8888
8889else
8890
8891 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8892 if test "x$LINE" != x ; then
8893 eval "DEFAULT_$LINE"
8894 else
8895 no_cache=1
8896 fi
8897
8898 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8899
8900fi;
8901
8902 eval "$ac_cv_use_popupwin"
8903 if test "$no_cache" != 1; then
8904 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8905 fi
8906
8907 if test "$wxUSE_POPUPWIN" = yes; then
8908 echo "$as_me:$LINENO: result: yes" >&5
8909echo "${ECHO_T}yes" >&6
8910 else
8911 echo "$as_me:$LINENO: result: no" >&5
8912echo "${ECHO_T}no" >&6
8913 fi
8914
8915
8916
8917
8918 enablestring=
8919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8920echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8921 no_cache=0
8922 # Check whether --enable-commondlg or --disable-commondlg was given.
8923if test "${enable_commondlg+set}" = set; then
8924 enableval="$enable_commondlg"
8925
8926 if test "$enableval" = yes; then
8927 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8928 else
8929 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8930 fi
8931
8932else
8933
8934 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8935 if test "x$LINE" != x ; then
8936 eval "DEFAULT_$LINE"
8937 else
8938 no_cache=1
8939 fi
8940
8941 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8942
8943fi;
8944
8945 eval "$ac_cv_use_commondlg"
8946 if test "$no_cache" != 1; then
8947 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8948 fi
8949
8950 if test "$wxUSE_COMMONDLGS" = yes; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952echo "${ECHO_T}yes" >&6
8953 else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956 fi
8957
8958
8959 enablestring=
8960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8961echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8962 no_cache=0
8963 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8964if test "${enable_choicedlg+set}" = set; then
8965 enableval="$enable_choicedlg"
8966
8967 if test "$enableval" = yes; then
8968 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8969 else
8970 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8971 fi
8972
8973else
8974
8975 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8983
8984fi;
8985
8986 eval "$ac_cv_use_choicedlg"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_CHOICEDLG" = yes; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997 fi
8998
8999
9000 enablestring=
9001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9002echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9003 no_cache=0
9004 # Check whether --enable-coldlg or --disable-coldlg was given.
9005if test "${enable_coldlg+set}" = set; then
9006 enableval="$enable_coldlg"
9007
9008 if test "$enableval" = yes; then
9009 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9010 else
9011 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9012 fi
9013
9014else
9015
9016 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9017 if test "x$LINE" != x ; then
9018 eval "DEFAULT_$LINE"
9019 else
9020 no_cache=1
9021 fi
9022
9023 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9024
9025fi;
9026
9027 eval "$ac_cv_use_coldlg"
9028 if test "$no_cache" != 1; then
9029 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9030 fi
9031
9032 if test "$wxUSE_COLOURDLG" = yes; then
9033 echo "$as_me:$LINENO: result: yes" >&5
9034echo "${ECHO_T}yes" >&6
9035 else
9036 echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
9038 fi
9039
9040
9041 enablestring=
9042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9043echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9044 no_cache=0
9045 # Check whether --enable-filedlg or --disable-filedlg was given.
9046if test "${enable_filedlg+set}" = set; then
9047 enableval="$enable_filedlg"
9048
9049 if test "$enableval" = yes; then
9050 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9051 else
9052 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9053 fi
9054
9055else
9056
9057 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9058 if test "x$LINE" != x ; then
9059 eval "DEFAULT_$LINE"
9060 else
9061 no_cache=1
9062 fi
9063
9064 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9065
9066fi;
9067
9068 eval "$ac_cv_use_filedlg"
9069 if test "$no_cache" != 1; then
9070 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9071 fi
9072
9073 if test "$wxUSE_FILEDLG" = yes; then
9074 echo "$as_me:$LINENO: result: yes" >&5
9075echo "${ECHO_T}yes" >&6
9076 else
9077 echo "$as_me:$LINENO: result: no" >&5
9078echo "${ECHO_T}no" >&6
9079 fi
9080
9081
9082 enablestring=
9083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9084echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9085 no_cache=0
9086 # Check whether --enable-finddlg or --disable-finddlg was given.
9087if test "${enable_finddlg+set}" = set; then
9088 enableval="$enable_finddlg"
9089
9090 if test "$enableval" = yes; then
9091 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9092 else
9093 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9094 fi
9095
9096else
9097
9098 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9099 if test "x$LINE" != x ; then
9100 eval "DEFAULT_$LINE"
9101 else
9102 no_cache=1
9103 fi
9104
9105 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9106
9107fi;
9108
9109 eval "$ac_cv_use_finddlg"
9110 if test "$no_cache" != 1; then
9111 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9112 fi
9113
9114 if test "$wxUSE_FINDREPLDLG" = yes; then
9115 echo "$as_me:$LINENO: result: yes" >&5
9116echo "${ECHO_T}yes" >&6
9117 else
9118 echo "$as_me:$LINENO: result: no" >&5
9119echo "${ECHO_T}no" >&6
9120 fi
9121
9122
9123 enablestring=
9124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9125echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9126 no_cache=0
9127 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9128if test "${enable_fontdlg+set}" = set; then
9129 enableval="$enable_fontdlg"
9130
9131 if test "$enableval" = yes; then
9132 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9133 else
9134 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9135 fi
9136
9137else
9138
9139 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9140 if test "x$LINE" != x ; then
9141 eval "DEFAULT_$LINE"
9142 else
9143 no_cache=1
9144 fi
9145
9146 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9147
9148fi;
9149
9150 eval "$ac_cv_use_fontdlg"
9151 if test "$no_cache" != 1; then
9152 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9153 fi
9154
9155 if test "$wxUSE_FONTDLG" = yes; then
9156 echo "$as_me:$LINENO: result: yes" >&5
9157echo "${ECHO_T}yes" >&6
9158 else
9159 echo "$as_me:$LINENO: result: no" >&5
9160echo "${ECHO_T}no" >&6
9161 fi
9162
9163
9164 enablestring=
9165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9166echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9167 no_cache=0
9168 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9169if test "${enable_dirdlg+set}" = set; then
9170 enableval="$enable_dirdlg"
9171
9172 if test "$enableval" = yes; then
9173 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9174 else
9175 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9176 fi
9177
9178else
9179
9180 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9181 if test "x$LINE" != x ; then
9182 eval "DEFAULT_$LINE"
9183 else
9184 no_cache=1
9185 fi
9186
9187 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9188
9189fi;
9190
9191 eval "$ac_cv_use_dirdlg"
9192 if test "$no_cache" != 1; then
9193 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9194 fi
9195
9196 if test "$wxUSE_DIRDLG" = yes; then
9197 echo "$as_me:$LINENO: result: yes" >&5
9198echo "${ECHO_T}yes" >&6
9199 else
9200 echo "$as_me:$LINENO: result: no" >&5
9201echo "${ECHO_T}no" >&6
9202 fi
9203
9204
9205 enablestring=
9206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9207echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9208 no_cache=0
9209 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9210if test "${enable_msgdlg+set}" = set; then
9211 enableval="$enable_msgdlg"
9212
9213 if test "$enableval" = yes; then
9214 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9215 else
9216 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9217 fi
9218
9219else
9220
9221 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9222 if test "x$LINE" != x ; then
9223 eval "DEFAULT_$LINE"
9224 else
9225 no_cache=1
9226 fi
9227
9228 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9229
9230fi;
9231
9232 eval "$ac_cv_use_msgdlg"
9233 if test "$no_cache" != 1; then
9234 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9235 fi
9236
9237 if test "$wxUSE_MSGDLG" = yes; then
9238 echo "$as_me:$LINENO: result: yes" >&5
9239echo "${ECHO_T}yes" >&6
9240 else
9241 echo "$as_me:$LINENO: result: no" >&5
9242echo "${ECHO_T}no" >&6
9243 fi
9244
9245
9246 enablestring=
9247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9248echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9249 no_cache=0
9250 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9251if test "${enable_numberdlg+set}" = set; then
9252 enableval="$enable_numberdlg"
9253
9254 if test "$enableval" = yes; then
9255 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9256 else
9257 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9258 fi
9259
9260else
9261
9262 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9263 if test "x$LINE" != x ; then
9264 eval "DEFAULT_$LINE"
9265 else
9266 no_cache=1
9267 fi
9268
9269 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9270
9271fi;
9272
9273 eval "$ac_cv_use_numberdlg"
9274 if test "$no_cache" != 1; then
9275 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9276 fi
9277
9278 if test "$wxUSE_NUMBERDLG" = yes; then
9279 echo "$as_me:$LINENO: result: yes" >&5
9280echo "${ECHO_T}yes" >&6
9281 else
9282 echo "$as_me:$LINENO: result: no" >&5
9283echo "${ECHO_T}no" >&6
9284 fi
9285
9286
9287 enablestring=
9288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9289echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9290 no_cache=0
9291 # Check whether --enable-splash or --disable-splash was given.
9292if test "${enable_splash+set}" = set; then
9293 enableval="$enable_splash"
9294
9295 if test "$enableval" = yes; then
9296 ac_cv_use_splash='wxUSE_SPLASH=yes'
9297 else
9298 ac_cv_use_splash='wxUSE_SPLASH=no'
9299 fi
9300
9301else
9302
9303 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9304 if test "x$LINE" != x ; then
9305 eval "DEFAULT_$LINE"
9306 else
9307 no_cache=1
9308 fi
9309
9310 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9311
9312fi;
9313
9314 eval "$ac_cv_use_splash"
9315 if test "$no_cache" != 1; then
9316 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9317 fi
9318
9319 if test "$wxUSE_SPLASH" = yes; then
9320 echo "$as_me:$LINENO: result: yes" >&5
9321echo "${ECHO_T}yes" >&6
9322 else
9323 echo "$as_me:$LINENO: result: no" >&5
9324echo "${ECHO_T}no" >&6
9325 fi
9326
9327
9328 enablestring=
9329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9330echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9331 no_cache=0
9332 # Check whether --enable-textdlg or --disable-textdlg was given.
9333if test "${enable_textdlg+set}" = set; then
9334 enableval="$enable_textdlg"
9335
9336 if test "$enableval" = yes; then
9337 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9338 else
9339 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9340 fi
9341
9342else
9343
9344 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9345 if test "x$LINE" != x ; then
9346 eval "DEFAULT_$LINE"
9347 else
9348 no_cache=1
9349 fi
9350
9351 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9352
9353fi;
9354
9355 eval "$ac_cv_use_textdlg"
9356 if test "$no_cache" != 1; then
9357 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9358 fi
9359
9360 if test "$wxUSE_TEXTDLG" = yes; then
9361 echo "$as_me:$LINENO: result: yes" >&5
9362echo "${ECHO_T}yes" >&6
9363 else
9364 echo "$as_me:$LINENO: result: no" >&5
9365echo "${ECHO_T}no" >&6
9366 fi
9367
9368
9369 enablestring=
9370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9371echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9372 no_cache=0
9373 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9374if test "${enable_tipdlg+set}" = set; then
9375 enableval="$enable_tipdlg"
9376
9377 if test "$enableval" = yes; then
9378 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9379 else
9380 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9381 fi
9382
9383else
9384
9385 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9386 if test "x$LINE" != x ; then
9387 eval "DEFAULT_$LINE"
9388 else
9389 no_cache=1
9390 fi
9391
9392 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9393
9394fi;
9395
9396 eval "$ac_cv_use_tipdlg"
9397 if test "$no_cache" != 1; then
9398 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9399 fi
9400
9401 if test "$wxUSE_STARTUP_TIPS" = yes; then
9402 echo "$as_me:$LINENO: result: yes" >&5
9403echo "${ECHO_T}yes" >&6
9404 else
9405 echo "$as_me:$LINENO: result: no" >&5
9406echo "${ECHO_T}no" >&6
9407 fi
9408
9409
9410 enablestring=
9411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9412echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9413 no_cache=0
9414 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9415if test "${enable_progressdlg+set}" = set; then
9416 enableval="$enable_progressdlg"
9417
9418 if test "$enableval" = yes; then
9419 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9420 else
9421 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9422 fi
9423
9424else
9425
9426 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9427 if test "x$LINE" != x ; then
9428 eval "DEFAULT_$LINE"
9429 else
9430 no_cache=1
9431 fi
9432
9433 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9434
9435fi;
9436
9437 eval "$ac_cv_use_progressdlg"
9438 if test "$no_cache" != 1; then
9439 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9440 fi
9441
9442 if test "$wxUSE_PROGRESSDLG" = yes; then
9443 echo "$as_me:$LINENO: result: yes" >&5
9444echo "${ECHO_T}yes" >&6
9445 else
9446 echo "$as_me:$LINENO: result: no" >&5
9447echo "${ECHO_T}no" >&6
9448 fi
9449
9450
9451 enablestring=
9452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9453echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9454 no_cache=0
9455 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9456if test "${enable_wizarddlg+set}" = set; then
9457 enableval="$enable_wizarddlg"
9458
9459 if test "$enableval" = yes; then
9460 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9461 else
9462 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9463 fi
9464
9465else
9466
9467 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9468 if test "x$LINE" != x ; then
9469 eval "DEFAULT_$LINE"
9470 else
9471 no_cache=1
9472 fi
9473
9474 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9475
9476fi;
9477
9478 eval "$ac_cv_use_wizarddlg"
9479 if test "$no_cache" != 1; then
9480 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9481 fi
9482
9483 if test "$wxUSE_WIZARDDLG" = yes; then
9484 echo "$as_me:$LINENO: result: yes" >&5
9485echo "${ECHO_T}yes" >&6
9486 else
9487 echo "$as_me:$LINENO: result: no" >&5
9488echo "${ECHO_T}no" >&6
9489 fi
9490
9491
9492
9493
9494 enablestring=
9495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9496echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9497 no_cache=0
9498 # Check whether --enable-menus or --disable-menus was given.
9499if test "${enable_menus+set}" = set; then
9500 enableval="$enable_menus"
9501
9502 if test "$enableval" = yes; then
9503 ac_cv_use_menus='wxUSE_MENUS=yes'
9504 else
9505 ac_cv_use_menus='wxUSE_MENUS=no'
9506 fi
9507
9508else
9509
9510 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9511 if test "x$LINE" != x ; then
9512 eval "DEFAULT_$LINE"
9513 else
9514 no_cache=1
9515 fi
9516
9517 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9518
9519fi;
9520
9521 eval "$ac_cv_use_menus"
9522 if test "$no_cache" != 1; then
9523 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9524 fi
9525
9526 if test "$wxUSE_MENUS" = yes; then
9527 echo "$as_me:$LINENO: result: yes" >&5
9528echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532 fi
9533
9534
9535 enablestring=
9536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9537echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9538 no_cache=0
9539 # Check whether --enable-miniframe or --disable-miniframe was given.
9540if test "${enable_miniframe+set}" = set; then
9541 enableval="$enable_miniframe"
9542
9543 if test "$enableval" = yes; then
9544 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9545 else
9546 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9547 fi
9548
9549else
9550
9551 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9552 if test "x$LINE" != x ; then
9553 eval "DEFAULT_$LINE"
9554 else
9555 no_cache=1
9556 fi
9557
9558 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9559
9560fi;
9561
9562 eval "$ac_cv_use_miniframe"
9563 if test "$no_cache" != 1; then
9564 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9565 fi
9566
9567 if test "$wxUSE_MINIFRAME" = yes; then
9568 echo "$as_me:$LINENO: result: yes" >&5
9569echo "${ECHO_T}yes" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573 fi
9574
9575
9576 enablestring=
9577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9578echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9579 no_cache=0
9580 # Check whether --enable-tooltips or --disable-tooltips was given.
9581if test "${enable_tooltips+set}" = set; then
9582 enableval="$enable_tooltips"
9583
9584 if test "$enableval" = yes; then
9585 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9586 else
9587 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9588 fi
9589
9590else
9591
9592 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9593 if test "x$LINE" != x ; then
9594 eval "DEFAULT_$LINE"
9595 else
9596 no_cache=1
9597 fi
9598
9599 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9600
9601fi;
9602
9603 eval "$ac_cv_use_tooltips"
9604 if test "$no_cache" != 1; then
9605 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9606 fi
9607
9608 if test "$wxUSE_TOOLTIPS" = yes; then
9609 echo "$as_me:$LINENO: result: yes" >&5
9610echo "${ECHO_T}yes" >&6
9611 else
9612 echo "$as_me:$LINENO: result: no" >&5
9613echo "${ECHO_T}no" >&6
9614 fi
9615
9616
9617 enablestring=
9618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9619echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9620 no_cache=0
9621 # Check whether --enable-splines or --disable-splines was given.
9622if test "${enable_splines+set}" = set; then
9623 enableval="$enable_splines"
9624
9625 if test "$enableval" = yes; then
9626 ac_cv_use_splines='wxUSE_SPLINES=yes'
9627 else
9628 ac_cv_use_splines='wxUSE_SPLINES=no'
9629 fi
9630
9631else
9632
9633 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9634 if test "x$LINE" != x ; then
9635 eval "DEFAULT_$LINE"
9636 else
9637 no_cache=1
9638 fi
9639
9640 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9641
9642fi;
9643
9644 eval "$ac_cv_use_splines"
9645 if test "$no_cache" != 1; then
9646 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9647 fi
9648
9649 if test "$wxUSE_SPLINES" = yes; then
9650 echo "$as_me:$LINENO: result: yes" >&5
9651echo "${ECHO_T}yes" >&6
9652 else
9653 echo "$as_me:$LINENO: result: no" >&5
9654echo "${ECHO_T}no" >&6
9655 fi
9656
9657
9658 enablestring=
9659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9660echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9661 no_cache=0
9662 # Check whether --enable-validators or --disable-validators was given.
9663if test "${enable_validators+set}" = set; then
9664 enableval="$enable_validators"
9665
9666 if test "$enableval" = yes; then
9667 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9668 else
9669 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9670 fi
9671
9672else
9673
9674 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9675 if test "x$LINE" != x ; then
9676 eval "DEFAULT_$LINE"
9677 else
9678 no_cache=1
9679 fi
9680
9681 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9682
9683fi;
9684
9685 eval "$ac_cv_use_validators"
9686 if test "$no_cache" != 1; then
9687 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9688 fi
9689
9690 if test "$wxUSE_VALIDATORS" = yes; then
9691 echo "$as_me:$LINENO: result: yes" >&5
9692echo "${ECHO_T}yes" >&6
9693 else
9694 echo "$as_me:$LINENO: result: no" >&5
9695echo "${ECHO_T}no" >&6
9696 fi
9697
9698
9699 enablestring=
9700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9701echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9702 no_cache=0
9703 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9704if test "${enable_busyinfo+set}" = set; then
9705 enableval="$enable_busyinfo"
9706
9707 if test "$enableval" = yes; then
9708 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9709 else
9710 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9711 fi
9712
9713else
9714
9715 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9716 if test "x$LINE" != x ; then
9717 eval "DEFAULT_$LINE"
9718 else
9719 no_cache=1
9720 fi
9721
9722 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9723
9724fi;
9725
9726 eval "$ac_cv_use_busyinfo"
9727 if test "$no_cache" != 1; then
9728 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9729 fi
9730
9731 if test "$wxUSE_BUSYINFO" = yes; then
9732 echo "$as_me:$LINENO: result: yes" >&5
9733echo "${ECHO_T}yes" >&6
9734 else
9735 echo "$as_me:$LINENO: result: no" >&5
9736echo "${ECHO_T}no" >&6
9737 fi
9738
9739
9740 enablestring=
9741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9742echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9743 no_cache=0
9744 # Check whether --enable-joystick or --disable-joystick was given.
9745if test "${enable_joystick+set}" = set; then
9746 enableval="$enable_joystick"
9747
9748 if test "$enableval" = yes; then
9749 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9750 else
9751 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9752 fi
9753
9754else
9755
9756 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9757 if test "x$LINE" != x ; then
9758 eval "DEFAULT_$LINE"
9759 else
9760 no_cache=1
9761 fi
9762
9763 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9764
9765fi;
9766
9767 eval "$ac_cv_use_joystick"
9768 if test "$no_cache" != 1; then
9769 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9770 fi
9771
9772 if test "$wxUSE_JOYSTICK" = yes; then
9773 echo "$as_me:$LINENO: result: yes" >&5
9774echo "${ECHO_T}yes" >&6
9775 else
9776 echo "$as_me:$LINENO: result: no" >&5
9777echo "${ECHO_T}no" >&6
9778 fi
9779
9780
9781 enablestring=
9782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9783echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9784 no_cache=0
9785 # Check whether --enable-metafile or --disable-metafile was given.
9786if test "${enable_metafile+set}" = set; then
9787 enableval="$enable_metafile"
9788
9789 if test "$enableval" = yes; then
9790 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9791 else
9792 ac_cv_use_metafile='wxUSE_METAFILE=no'
9793 fi
9794
9795else
9796
9797 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9798 if test "x$LINE" != x ; then
9799 eval "DEFAULT_$LINE"
9800 else
9801 no_cache=1
9802 fi
9803
9804 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9805
9806fi;
9807
9808 eval "$ac_cv_use_metafile"
9809 if test "$no_cache" != 1; then
9810 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9811 fi
9812
9813 if test "$wxUSE_METAFILE" = yes; then
9814 echo "$as_me:$LINENO: result: yes" >&5
9815echo "${ECHO_T}yes" >&6
9816 else
9817 echo "$as_me:$LINENO: result: no" >&5
9818echo "${ECHO_T}no" >&6
9819 fi
9820
9821
9822 enablestring=
9823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9824echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9825 no_cache=0
9826 # Check whether --enable-dragimage or --disable-dragimage was given.
9827if test "${enable_dragimage+set}" = set; then
9828 enableval="$enable_dragimage"
9829
9830 if test "$enableval" = yes; then
9831 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9832 else
9833 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9834 fi
9835
9836else
9837
9838 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9839 if test "x$LINE" != x ; then
9840 eval "DEFAULT_$LINE"
9841 else
9842 no_cache=1
9843 fi
9844
9845 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9846
9847fi;
9848
9849 eval "$ac_cv_use_dragimage"
9850 if test "$no_cache" != 1; then
9851 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9852 fi
9853
9854 if test "$wxUSE_DRAGIMAGE" = yes; then
9855 echo "$as_me:$LINENO: result: yes" >&5
9856echo "${ECHO_T}yes" >&6
9857 else
9858 echo "$as_me:$LINENO: result: no" >&5
9859echo "${ECHO_T}no" >&6
9860 fi
9861
9862
9863 enablestring=
9864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9865echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9866 no_cache=0
9867 # Check whether --enable-accessibility or --disable-accessibility was given.
9868if test "${enable_accessibility+set}" = set; then
9869 enableval="$enable_accessibility"
9870
9871 if test "$enableval" = yes; then
9872 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9873 else
9874 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9875 fi
9876
9877else
9878
9879 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9880 if test "x$LINE" != x ; then
9881 eval "DEFAULT_$LINE"
9882 else
9883 no_cache=1
9884 fi
9885
9886 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9887
9888fi;
9889
9890 eval "$ac_cv_use_accessibility"
9891 if test "$no_cache" != 1; then
9892 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9893 fi
9894
9895 if test "$wxUSE_ACCESSIBILITY" = yes; then
9896 echo "$as_me:$LINENO: result: yes" >&5
9897echo "${ECHO_T}yes" >&6
9898 else
9899 echo "$as_me:$LINENO: result: no" >&5
9900echo "${ECHO_T}no" >&6
9901 fi
9902
9903
9904
9905
9906 enablestring=
9907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9908echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9909 no_cache=0
9910 # Check whether --enable-palette or --disable-palette was given.
9911if test "${enable_palette+set}" = set; then
9912 enableval="$enable_palette"
9913
9914 if test "$enableval" = yes; then
9915 ac_cv_use_palette='wxUSE_PALETTE=yes'
9916 else
9917 ac_cv_use_palette='wxUSE_PALETTE=no'
9918 fi
9919
9920else
9921
9922 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9923 if test "x$LINE" != x ; then
9924 eval "DEFAULT_$LINE"
9925 else
9926 no_cache=1
9927 fi
9928
9929 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9930
9931fi;
9932
9933 eval "$ac_cv_use_palette"
9934 if test "$no_cache" != 1; then
9935 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9936 fi
9937
9938 if test "$wxUSE_PALETTE" = yes; then
9939 echo "$as_me:$LINENO: result: yes" >&5
9940echo "${ECHO_T}yes" >&6
9941 else
9942 echo "$as_me:$LINENO: result: no" >&5
9943echo "${ECHO_T}no" >&6
9944 fi
9945
9946
9947 enablestring=
9948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9949echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9950 no_cache=0
9951 # Check whether --enable-image or --disable-image was given.
9952if test "${enable_image+set}" = set; then
9953 enableval="$enable_image"
9954
9955 if test "$enableval" = yes; then
9956 ac_cv_use_image='wxUSE_IMAGE=yes'
9957 else
9958 ac_cv_use_image='wxUSE_IMAGE=no'
9959 fi
9960
9961else
9962
9963 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9964 if test "x$LINE" != x ; then
9965 eval "DEFAULT_$LINE"
9966 else
9967 no_cache=1
9968 fi
9969
9970 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9971
9972fi;
9973
9974 eval "$ac_cv_use_image"
9975 if test "$no_cache" != 1; then
9976 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9977 fi
9978
9979 if test "$wxUSE_IMAGE" = yes; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
9982 else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985 fi
9986
9987
9988 enablestring=
9989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9990echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9991 no_cache=0
9992 # Check whether --enable-gif or --disable-gif was given.
9993if test "${enable_gif+set}" = set; then
9994 enableval="$enable_gif"
9995
9996 if test "$enableval" = yes; then
9997 ac_cv_use_gif='wxUSE_GIF=yes'
9998 else
9999 ac_cv_use_gif='wxUSE_GIF=no'
10000 fi
10001
10002else
10003
10004 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10005 if test "x$LINE" != x ; then
10006 eval "DEFAULT_$LINE"
10007 else
10008 no_cache=1
10009 fi
10010
10011 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10012
10013fi;
10014
10015 eval "$ac_cv_use_gif"
10016 if test "$no_cache" != 1; then
10017 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10018 fi
10019
10020 if test "$wxUSE_GIF" = yes; then
10021 echo "$as_me:$LINENO: result: yes" >&5
10022echo "${ECHO_T}yes" >&6
10023 else
10024 echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
10026 fi
10027
10028
10029 enablestring=
10030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10031echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10032 no_cache=0
10033 # Check whether --enable-pcx or --disable-pcx was given.
10034if test "${enable_pcx+set}" = set; then
10035 enableval="$enable_pcx"
10036
10037 if test "$enableval" = yes; then
10038 ac_cv_use_pcx='wxUSE_PCX=yes'
10039 else
10040 ac_cv_use_pcx='wxUSE_PCX=no'
10041 fi
10042
10043else
10044
10045 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10046 if test "x$LINE" != x ; then
10047 eval "DEFAULT_$LINE"
10048 else
10049 no_cache=1
10050 fi
10051
10052 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10053
10054fi;
10055
10056 eval "$ac_cv_use_pcx"
10057 if test "$no_cache" != 1; then
10058 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10059 fi
10060
10061 if test "$wxUSE_PCX" = yes; then
10062 echo "$as_me:$LINENO: result: yes" >&5
10063echo "${ECHO_T}yes" >&6
10064 else
10065 echo "$as_me:$LINENO: result: no" >&5
10066echo "${ECHO_T}no" >&6
10067 fi
10068
10069
10070 enablestring=
10071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10072echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10073 no_cache=0
10074 # Check whether --enable-iff or --disable-iff was given.
10075if test "${enable_iff+set}" = set; then
10076 enableval="$enable_iff"
10077
10078 if test "$enableval" = yes; then
10079 ac_cv_use_iff='wxUSE_IFF=yes'
10080 else
10081 ac_cv_use_iff='wxUSE_IFF=no'
10082 fi
10083
10084else
10085
10086 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10087 if test "x$LINE" != x ; then
10088 eval "DEFAULT_$LINE"
10089 else
10090 no_cache=1
10091 fi
10092
10093 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10094
10095fi;
10096
10097 eval "$ac_cv_use_iff"
10098 if test "$no_cache" != 1; then
10099 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10100 fi
10101
10102 if test "$wxUSE_IFF" = yes; then
10103 echo "$as_me:$LINENO: result: yes" >&5
10104echo "${ECHO_T}yes" >&6
10105 else
10106 echo "$as_me:$LINENO: result: no" >&5
10107echo "${ECHO_T}no" >&6
10108 fi
10109
10110
10111 enablestring=
10112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10113echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10114 no_cache=0
10115 # Check whether --enable-pnm or --disable-pnm was given.
10116if test "${enable_pnm+set}" = set; then
10117 enableval="$enable_pnm"
10118
10119 if test "$enableval" = yes; then
10120 ac_cv_use_pnm='wxUSE_PNM=yes'
10121 else
10122 ac_cv_use_pnm='wxUSE_PNM=no'
10123 fi
10124
10125else
10126
10127 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10128 if test "x$LINE" != x ; then
10129 eval "DEFAULT_$LINE"
10130 else
10131 no_cache=1
10132 fi
10133
10134 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10135
10136fi;
10137
10138 eval "$ac_cv_use_pnm"
10139 if test "$no_cache" != 1; then
10140 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10141 fi
10142
10143 if test "$wxUSE_PNM" = yes; then
10144 echo "$as_me:$LINENO: result: yes" >&5
10145echo "${ECHO_T}yes" >&6
10146 else
10147 echo "$as_me:$LINENO: result: no" >&5
10148echo "${ECHO_T}no" >&6
10149 fi
10150
10151
10152 enablestring=
10153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10154echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10155 no_cache=0
10156 # Check whether --enable-xpm or --disable-xpm was given.
10157if test "${enable_xpm+set}" = set; then
10158 enableval="$enable_xpm"
10159
10160 if test "$enableval" = yes; then
10161 ac_cv_use_xpm='wxUSE_XPM=yes'
10162 else
10163 ac_cv_use_xpm='wxUSE_XPM=no'
10164 fi
10165
10166else
10167
10168 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10169 if test "x$LINE" != x ; then
10170 eval "DEFAULT_$LINE"
10171 else
10172 no_cache=1
10173 fi
10174
10175 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10176
10177fi;
10178
10179 eval "$ac_cv_use_xpm"
10180 if test "$no_cache" != 1; then
10181 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10182 fi
10183
10184 if test "$wxUSE_XPM" = yes; then
10185 echo "$as_me:$LINENO: result: yes" >&5
10186echo "${ECHO_T}yes" >&6
10187 else
10188 echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
10190 fi
10191
10192
10193 enablestring=
10194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10195echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10196 no_cache=0
10197 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10198if test "${enable_ico_cur+set}" = set; then
10199 enableval="$enable_ico_cur"
10200
10201 if test "$enableval" = yes; then
10202 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10203 else
10204 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10205 fi
10206
10207else
10208
10209 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10210 if test "x$LINE" != x ; then
10211 eval "DEFAULT_$LINE"
10212 else
10213 no_cache=1
10214 fi
10215
10216 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10217
10218fi;
10219
10220 eval "$ac_cv_use_ico_cur"
10221 if test "$no_cache" != 1; then
10222 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10223 fi
10224
10225 if test "$wxUSE_ICO_CUR" = yes; then
10226 echo "$as_me:$LINENO: result: yes" >&5
10227echo "${ECHO_T}yes" >&6
10228 else
10229 echo "$as_me:$LINENO: result: no" >&5
10230echo "${ECHO_T}no" >&6
10231 fi
10232
10233
10234fi
10235
10236
10237
ceec2216
RL
10238# Check whether --with-flavour or --without-flavour was given.
10239if test "${with_flavour+set}" = set; then
10240 withval="$with_flavour"
10241 WX_FLAVOUR="$withval"
10242fi;
10243
10244
10245
a848cd7e
SC
10246 enablestring=
10247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10248echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10249 no_cache=0
10250 # Check whether --enable-official_build or --disable-official_build was given.
10251if test "${enable_official_build+set}" = set; then
10252 enableval="$enable_official_build"
10253
10254 if test "$enableval" = yes; then
10255 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10256 else
10257 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10258 fi
10259
10260else
10261
10262 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10263 if test "x$LINE" != x ; then
10264 eval "DEFAULT_$LINE"
10265 else
10266 no_cache=1
10267 fi
10268
10269 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10270
10271fi;
10272
10273 eval "$ac_cv_use_official_build"
10274 if test "$no_cache" != 1; then
10275 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10276 fi
10277
10278 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10279 echo "$as_me:$LINENO: result: yes" >&5
10280echo "${ECHO_T}yes" >&6
10281 else
10282 echo "$as_me:$LINENO: result: no" >&5
10283echo "${ECHO_T}no" >&6
10284 fi
10285
10286# Check whether --enable-vendor or --disable-vendor was given.
10287if test "${enable_vendor+set}" = set; then
10288 enableval="$enable_vendor"
10289 VENDOR="$enableval"
10290fi;
10291if test "x$VENDOR" = "x"; then
10292 VENDOR="custom"
10293fi
10294
a848cd7e
SC
10295
10296
10297
10298 echo "saving argument cache $wx_arg_cache_file"
10299 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10300
10301
10302
10303echo "$as_me:$LINENO: checking for toolkit" >&5
10304echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10305
10306# In Wine, we need to default to MSW, not GTK or MOTIF
10307if test "$wxUSE_WINE" = "yes"; then
10308 DEFAULT_DEFAULT_wxUSE_GTK=0
10309 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10310 DEFAULT_DEFAULT_wxUSE_MSW=1
10311 wxUSE_SHARED=no
10312fi
10313
10314if test "$wxUSE_GUI" = "yes"; then
10315
10316 if test "$USE_BEOS" = 1; then
10317 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10318echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10319 { (exit 1); exit 1; }; }
10320 fi
10321
10322 if test "$TOOLKIT_GIVEN" = 1; then
10323 for toolkit in `echo $ALL_TOOLKITS`; do
10324 var=wxUSE_$toolkit
10325 eval "value=\$${var}"
10326 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10327 done
10328 else
10329 for toolkit in `echo $ALL_TOOLKITS`; do
10330 if test "$has_toolkit_in_cache" != 1; then
10331 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10332 else
10333 var=DEFAULT_wxUSE_$toolkit
10334 fi
10335 eval "wxUSE_$toolkit=\$${var}"
10336 done
10337 fi
10338
10339 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10340 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10341 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10342
10343 case "${host}" in
10344 *-pc-os2_emx | *-pc-os2-emx )
10345 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10346 esac
10347
10348 case "$NUM_TOOLKITS" in
10349 1)
10350 ;;
10351 0)
10352 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10353echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10354 { (exit 1); exit 1; }; }
10355 ;;
10356 *)
10357 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10358echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10359 { (exit 1); exit 1; }; }
10360 esac
10361
10362 for toolkit in `echo $ALL_TOOLKITS`; do
10363 var=wxUSE_$toolkit
10364 eval "value=\$${var}"
10365 if test "x$value" != x; then
10366 cache_var=CACHE_$toolkit
10367 eval "cache=\$${cache_var}"
10368 if test "$cache" = 1; then
10369 echo "$var=$value" >> ${wx_arg_cache_file}
10370 fi
10371 if test "$value" = 1; then
10372 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10373 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10374echo "${ECHO_T}$toolkit_echo" >&6
10375 fi
10376 fi
10377 done
10378else
10379 if test "x$host_alias" != "x"; then
10380 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10381echo "${ECHO_T}base ($host_alias hosted) only" >&6
10382 else
10383 echo "$as_me:$LINENO: result: base only" >&5
10384echo "${ECHO_T}base only" >&6
10385 fi
10386fi
10387
10388wants_win32=0
10389doesnt_want_win32=0
10390case "${host}" in
10391 *-*-cygwin*)
10392 if test "$wxUSE_MSW" = 1 ; then
10393 wants_win32=1
10394 else
10395 doesnt_want_win32=1
10396 fi
10397 ;;
10398 *-*-mingw*)
10399 wants_win32=1
10400 ;;
10401esac
10402
10403if test "$wxUSE_WINE" = "yes"; then
10404 wants_win32=1
10405 CC=winegcc
10406 CXX=wineg++
10407 RESCOMP=wrc
10408 LDFLAGS_GUI="-mwindows"
10409fi
10410
10411if test "$wants_win32" = 1 ; then
10412 USE_UNIX=0
10413 USE_WIN32=1
10414 cat >>confdefs.h <<\_ACEOF
10415#define __WIN32__ 1
10416_ACEOF
10417
10418 cat >>confdefs.h <<\_ACEOF
10419#define __WIN95__ 1
10420_ACEOF
10421
10422 cat >>confdefs.h <<\_ACEOF
10423#define __WINDOWS__ 1
10424_ACEOF
10425
10426 cat >>confdefs.h <<\_ACEOF
10427#define __GNUWIN32__ 1
10428_ACEOF
10429
10430 cat >>confdefs.h <<\_ACEOF
10431#define STRICT 1
10432_ACEOF
10433
10434 cat >>confdefs.h <<\_ACEOF
10435#define WINVER 0x0400
10436_ACEOF
10437
10438fi
10439if test "$doesnt_want_win32" = 1 ; then
10440 USE_UNIX=1
10441 USE_WIN32=0
10442fi
10443
10444if test "$USE_UNIX" = 1 ; then
10445 wxUSE_UNIX=yes
10446 cat >>confdefs.h <<\_ACEOF
10447#define __UNIX__ 1
10448_ACEOF
10449
10450fi
10451
10452
10453cat >confcache <<\_ACEOF
10454# This file is a shell script that caches the results of configure
10455# tests run on this system so they can be shared between configure
10456# scripts and configure runs, see configure's option --config-cache.
10457# It is not useful on other systems. If it contains results you don't
10458# want to keep, you may remove or edit it.
10459#
10460# config.status only pays attention to the cache file if you give it
10461# the --recheck option to rerun configure.
10462#
10463# `ac_cv_env_foo' variables (set or unset) will be overridden when
10464# loading this file, other *unset* `ac_cv_foo' will be assigned the
10465# following values.
10466
10467_ACEOF
10468
10469# The following way of writing the cache mishandles newlines in values,
10470# but we know of no workaround that is simple, portable, and efficient.
10471# So, don't put newlines in cache variables' values.
10472# Ultrix sh set writes to stderr and can't be redirected directly,
10473# and sets the high bit in the cache file unless we assign to the vars.
10474{
10475 (set) 2>&1 |
10476 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10477 *ac_space=\ *)
10478 # `set' does not quote correctly, so add quotes (double-quote
10479 # substitution turns \\\\ into \\, and sed turns \\ into \).
10480 sed -n \
ac1cb8d3
VS
10481 "s/'/'\\\\''/g;
10482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10483 ;;
10484 *)
10485 # `set' quotes correctly as required by POSIX, so do not add quotes.
10486 sed -n \
ac1cb8d3 10487 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10488 ;;
10489 esac;
10490} |
10491 sed '
10492 t clear
10493 : clear
10494 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10495 t end
10496 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10497 : end' >>confcache
10498if diff $cache_file confcache >/dev/null 2>&1; then :; else
10499 if test -w $cache_file; then
10500 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10501 cat confcache >$cache_file
10502 else
10503 echo "not updating unwritable cache $cache_file"
10504 fi
10505fi
10506rm -f confcache
10507
10508if test "$build" != "$host" ; then
1e9e8aba 10509 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10510 CC=$host_alias-gcc
10511 CXX=$host_alias-c++
10512 AR=$host_alias-ar
10513 RANLIB=$host_alias-ranlib
10514 DLLTOOL=$host_alias-dlltool
10515 RESCOMP=$host_alias-windres
a848cd7e 10516 STRIP=$host_alias-strip
1e9e8aba
DE
10517 elif test "x$CC" '!=' "x"; then
10518 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10519 else
10520 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10521echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10522 { (exit 1); exit 1; }; }
10523 fi
10524fi
10525
10526CFLAGS=${CFLAGS:=}
10527ac_ext=c
10528ac_cpp='$CPP $CPPFLAGS'
10529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531ac_compiler_gnu=$ac_cv_c_compiler_gnu
10532if test -n "$ac_tool_prefix"; then
10533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10534set dummy ${ac_tool_prefix}gcc; ac_word=$2
10535echo "$as_me:$LINENO: checking for $ac_word" >&5
10536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10537if test "${ac_cv_prog_CC+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540 if test -n "$CC"; then
10541 ac_cv_prog_CC="$CC" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555done
10556
10557fi
10558fi
10559CC=$ac_cv_prog_CC
10560if test -n "$CC"; then
10561 echo "$as_me:$LINENO: result: $CC" >&5
10562echo "${ECHO_T}$CC" >&6
10563else
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
10566fi
10567
10568fi
10569if test -z "$ac_cv_prog_CC"; then
10570 ac_ct_CC=$CC
10571 # Extract the first word of "gcc", so it can be a program name with args.
10572set dummy gcc; ac_word=$2
10573echo "$as_me:$LINENO: checking for $ac_word" >&5
10574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 if test -n "$ac_ct_CC"; then
10579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10580else
10581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_ac_ct_CC="gcc"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592done
10593done
10594
10595fi
10596fi
10597ac_ct_CC=$ac_cv_prog_ac_ct_CC
10598if test -n "$ac_ct_CC"; then
10599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10600echo "${ECHO_T}$ac_ct_CC" >&6
10601else
10602 echo "$as_me:$LINENO: result: no" >&5
10603echo "${ECHO_T}no" >&6
10604fi
10605
10606 CC=$ac_ct_CC
10607else
10608 CC="$ac_cv_prog_CC"
10609fi
10610
10611if test -z "$CC"; then
10612 if test -n "$ac_tool_prefix"; then
10613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10614set dummy ${ac_tool_prefix}cc; ac_word=$2
10615echo "$as_me:$LINENO: checking for $ac_word" >&5
10616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10617if test "${ac_cv_prog_CC+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620 if test -n "$CC"; then
10621 ac_cv_prog_CC="$CC" # Let the user override the test.
10622else
10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_CC="${ac_tool_prefix}cc"
10631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635done
10636
10637fi
10638fi
10639CC=$ac_cv_prog_CC
10640if test -n "$CC"; then
10641 echo "$as_me:$LINENO: result: $CC" >&5
10642echo "${ECHO_T}$CC" >&6
10643else
10644 echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
10646fi
10647
10648fi
10649if test -z "$ac_cv_prog_CC"; then
10650 ac_ct_CC=$CC
10651 # Extract the first word of "cc", so it can be a program name with args.
10652set dummy cc; ac_word=$2
10653echo "$as_me:$LINENO: checking for $ac_word" >&5
10654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657else
10658 if test -n "$ac_ct_CC"; then
10659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10660else
10661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_ac_ct_CC="cc"
10669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10671 fi
10672done
10673done
10674
10675fi
10676fi
10677ac_ct_CC=$ac_cv_prog_ac_ct_CC
10678if test -n "$ac_ct_CC"; then
10679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10680echo "${ECHO_T}$ac_ct_CC" >&6
10681else
10682 echo "$as_me:$LINENO: result: no" >&5
10683echo "${ECHO_T}no" >&6
10684fi
10685
10686 CC=$ac_ct_CC
10687else
10688 CC="$ac_cv_prog_CC"
10689fi
10690
10691fi
10692if test -z "$CC"; then
10693 # Extract the first word of "cc", so it can be a program name with args.
10694set dummy cc; ac_word=$2
10695echo "$as_me:$LINENO: checking for $ac_word" >&5
10696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10697if test "${ac_cv_prog_CC+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699else
10700 if test -n "$CC"; then
10701 ac_cv_prog_CC="$CC" # Let the user override the test.
10702else
10703 ac_prog_rejected=no
10704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705for as_dir in $PATH
10706do
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10712 ac_prog_rejected=yes
10713 continue
10714 fi
10715 ac_cv_prog_CC="cc"
10716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10718 fi
10719done
10720done
10721
10722if test $ac_prog_rejected = yes; then
10723 # We found a bogon in the path, so make sure we never use it.
10724 set dummy $ac_cv_prog_CC
10725 shift
10726 if test $# != 0; then
10727 # We chose a different compiler from the bogus one.
10728 # However, it has the same basename, so the bogon will be chosen
10729 # first if we set CC to just the basename; use the full file name.
10730 shift
10731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10732 fi
10733fi
10734fi
10735fi
10736CC=$ac_cv_prog_CC
10737if test -n "$CC"; then
10738 echo "$as_me:$LINENO: result: $CC" >&5
10739echo "${ECHO_T}$CC" >&6
10740else
10741 echo "$as_me:$LINENO: result: no" >&5
10742echo "${ECHO_T}no" >&6
10743fi
10744
10745fi
10746if test -z "$CC"; then
10747 if test -n "$ac_tool_prefix"; then
10748 for ac_prog in cl
10749 do
10750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10752echo "$as_me:$LINENO: checking for $ac_word" >&5
10753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754if test "${ac_cv_prog_CC+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 if test -n "$CC"; then
10758 ac_cv_prog_CC="$CC" # Let the user override the test.
10759else
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10770 fi
10771done
10772done
10773
10774fi
10775fi
10776CC=$ac_cv_prog_CC
10777if test -n "$CC"; then
10778 echo "$as_me:$LINENO: result: $CC" >&5
10779echo "${ECHO_T}$CC" >&6
10780else
10781 echo "$as_me:$LINENO: result: no" >&5
10782echo "${ECHO_T}no" >&6
10783fi
10784
10785 test -n "$CC" && break
10786 done
10787fi
10788if test -z "$CC"; then
10789 ac_ct_CC=$CC
10790 for ac_prog in cl
10791do
10792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10793set dummy $ac_prog; ac_word=$2
10794echo "$as_me:$LINENO: checking for $ac_word" >&5
10795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 if test -n "$ac_ct_CC"; then
10800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10801else
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH
10804do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809 ac_cv_prog_ac_ct_CC="$ac_prog"
10810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10812 fi
10813done
10814done
10815
10816fi
10817fi
10818ac_ct_CC=$ac_cv_prog_ac_ct_CC
10819if test -n "$ac_ct_CC"; then
10820 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10821echo "${ECHO_T}$ac_ct_CC" >&6
10822else
10823 echo "$as_me:$LINENO: result: no" >&5
10824echo "${ECHO_T}no" >&6
10825fi
10826
10827 test -n "$ac_ct_CC" && break
10828done
10829
10830 CC=$ac_ct_CC
10831fi
10832
10833fi
10834
10835
10836test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10837See \`config.log' for more details." >&5
10838echo "$as_me: error: no acceptable C compiler found in \$PATH
10839See \`config.log' for more details." >&2;}
10840 { (exit 1); exit 1; }; }
10841
10842# Provide some information about the compiler.
10843echo "$as_me:$LINENO:" \
10844 "checking for C compiler version" >&5
10845ac_compiler=`set X $ac_compile; echo $2`
10846{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10847 (eval $ac_compiler --version </dev/null >&5) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }
10851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10852 (eval $ac_compiler -v </dev/null >&5) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }
10856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10857 (eval $ac_compiler -V </dev/null >&5) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }
10861
10862cat >conftest.$ac_ext <<_ACEOF
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
10868
10869int
10870main ()
10871{
10872
10873 ;
10874 return 0;
10875}
10876_ACEOF
10877ac_clean_files_save=$ac_clean_files
10878ac_clean_files="$ac_clean_files a.out a.exe b.out"
10879# Try to create an executable without -o first, disregard a.out.
10880# It will help us diagnose broken compilers, and finding out an intuition
10881# of exeext.
ac1cb8d3
VS
10882echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10883echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10884ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10885if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10886 (eval $ac_link_default) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; then
10890 # Find the output, starting from the most likely. This scheme is
10891# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10892# resort.
10893
10894# Be careful to initialize this variable, since it used to be cached.
10895# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10896ac_cv_exeext=
10897# b.out is created by i960 compilers.
10898for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10899do
10900 test -f "$ac_file" || continue
10901 case $ac_file in
10902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10903 ;;
a848cd7e 10904 conftest.$ac_ext )
ac1cb8d3
VS
10905 # This is the source file.
10906 ;;
a848cd7e 10907 [ab].out )
ac1cb8d3
VS
10908 # We found the default executable, but exeext='' is most
10909 # certainly right.
10910 break;;
a848cd7e 10911 *.* )
ac1cb8d3
VS
10912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10913 # FIXME: I believe we export ac_cv_exeext for Libtool,
10914 # but it would be cool to find out if it's true. Does anybody
10915 # maintain Libtool? --akim.
10916 export ac_cv_exeext
10917 break;;
a848cd7e 10918 * )
ac1cb8d3 10919 break;;
a848cd7e
SC
10920 esac
10921done
10922else
10923 echo "$as_me: failed program was:" >&5
10924sed 's/^/| /' conftest.$ac_ext >&5
10925
10926{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10927See \`config.log' for more details." >&5
10928echo "$as_me: error: C compiler cannot create executables
10929See \`config.log' for more details." >&2;}
10930 { (exit 77); exit 77; }; }
10931fi
10932
10933ac_exeext=$ac_cv_exeext
10934echo "$as_me:$LINENO: result: $ac_file" >&5
10935echo "${ECHO_T}$ac_file" >&6
10936
10937# Check the compiler produces executables we can run. If not, either
10938# the compiler is broken, or we cross compile.
10939echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10940echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10941# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10942# If not cross compiling, check that we can run a simple program.
10943if test "$cross_compiling" != yes; then
10944 if { ac_try='./$ac_file'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 cross_compiling=no
10951 else
10952 if test "$cross_compiling" = maybe; then
10953 cross_compiling=yes
10954 else
10955 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10956If you meant to cross compile, use \`--host'.
10957See \`config.log' for more details." >&5
10958echo "$as_me: error: cannot run C compiled programs.
10959If you meant to cross compile, use \`--host'.
10960See \`config.log' for more details." >&2;}
10961 { (exit 1); exit 1; }; }
10962 fi
10963 fi
10964fi
10965echo "$as_me:$LINENO: result: yes" >&5
10966echo "${ECHO_T}yes" >&6
10967
10968rm -f a.out a.exe conftest$ac_cv_exeext b.out
10969ac_clean_files=$ac_clean_files_save
10970# Check the compiler produces executables we can run. If not, either
10971# the compiler is broken, or we cross compile.
10972echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10973echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10974echo "$as_me:$LINENO: result: $cross_compiling" >&5
10975echo "${ECHO_T}$cross_compiling" >&6
10976
10977echo "$as_me:$LINENO: checking for suffix of executables" >&5
10978echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; then
10984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10985# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10986# work properly (i.e., refer to `conftest.exe'), while it won't with
10987# `rm'.
10988for ac_file in conftest.exe conftest conftest.*; do
10989 test -f "$ac_file" || continue
10990 case $ac_file in
10991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10993 export ac_cv_exeext
10994 break;;
a848cd7e
SC
10995 * ) break;;
10996 esac
10997done
10998else
10999 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11000See \`config.log' for more details." >&5
11001echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11002See \`config.log' for more details." >&2;}
11003 { (exit 1); exit 1; }; }
11004fi
11005
11006rm -f conftest$ac_cv_exeext
11007echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11008echo "${ECHO_T}$ac_cv_exeext" >&6
11009
11010rm -f conftest.$ac_ext
11011EXEEXT=$ac_cv_exeext
11012ac_exeext=$EXEEXT
11013echo "$as_me:$LINENO: checking for suffix of object files" >&5
11014echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11015if test "${ac_cv_objext+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017else
11018 cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
11024
11025int
11026main ()
11027{
11028
11029 ;
11030 return 0;
11031}
11032_ACEOF
11033rm -f conftest.o conftest.obj
11034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; then
11039 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11040 case $ac_file in
11041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11043 break;;
11044 esac
11045done
11046else
11047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
11050{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11051See \`config.log' for more details." >&5
11052echo "$as_me: error: cannot compute suffix of object files: cannot compile
11053See \`config.log' for more details." >&2;}
11054 { (exit 1); exit 1; }; }
11055fi
11056
11057rm -f conftest.$ac_cv_objext conftest.$ac_ext
11058fi
11059echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11060echo "${ECHO_T}$ac_cv_objext" >&6
11061OBJEXT=$ac_cv_objext
11062ac_objext=$OBJEXT
11063echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11064echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11065if test "${ac_cv_c_compiler_gnu+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11067else
11068 cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h. */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h. */
11074
11075int
11076main ()
11077{
11078#ifndef __GNUC__
11079 choke me
11080#endif
11081
11082 ;
11083 return 0;
11084}
11085_ACEOF
11086rm -f conftest.$ac_objext
11087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11088 (eval $ac_compile) 2>conftest.er1
a848cd7e 11089 ac_status=$?
ac1cb8d3
VS
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
a848cd7e
SC
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
89be85c2
VS
11095 { ac_try='test -z "$ac_c_werror_flag"
11096 || test ! -s conftest.err'
ac1cb8d3
VS
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_compiler_gnu=yes
11109else
11110 echo "$as_me: failed program was:" >&5
11111sed 's/^/| /' conftest.$ac_ext >&5
11112
11113ac_compiler_gnu=no
11114fi
ac1cb8d3 11115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11116ac_cv_c_compiler_gnu=$ac_compiler_gnu
11117
11118fi
11119echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11120echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11121GCC=`test $ac_compiler_gnu = yes && echo yes`
11122ac_test_CFLAGS=${CFLAGS+set}
11123ac_save_CFLAGS=$CFLAGS
11124CFLAGS="-g"
11125echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11126echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11127if test "${ac_cv_prog_cc_g+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */
11136
11137int
11138main ()
11139{
11140
11141 ;
11142 return 0;
11143}
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11147 (eval $ac_compile) 2>conftest.er1
a848cd7e 11148 ac_status=$?
ac1cb8d3
VS
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
a848cd7e
SC
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
89be85c2
VS
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
ac1cb8d3
VS
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_prog_cc_g=yes
11168else
11169 echo "$as_me: failed program was:" >&5
11170sed 's/^/| /' conftest.$ac_ext >&5
11171
11172ac_cv_prog_cc_g=no
11173fi
ac1cb8d3 11174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11175fi
11176echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11177echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11178if test "$ac_test_CFLAGS" = set; then
11179 CFLAGS=$ac_save_CFLAGS
11180elif test $ac_cv_prog_cc_g = yes; then
11181 if test "$GCC" = yes; then
11182 CFLAGS="-g -O2"
11183 else
11184 CFLAGS="-g"
11185 fi
11186else
11187 if test "$GCC" = yes; then
11188 CFLAGS="-O2"
11189 else
11190 CFLAGS=
11191 fi
11192fi
11193echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11194echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11195if test "${ac_cv_prog_cc_stdc+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198 ac_cv_prog_cc_stdc=no
11199ac_save_CC=$CC
11200cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206#include <stdarg.h>
11207#include <stdio.h>
11208#include <sys/types.h>
11209#include <sys/stat.h>
11210/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11211struct buf { int x; };
11212FILE * (*rcsopen) (struct buf *, struct stat *, int);
11213static char *e (p, i)
11214 char **p;
11215 int i;
11216{
11217 return p[i];
11218}
11219static char *f (char * (*g) (char **, int), char **p, ...)
11220{
11221 char *s;
11222 va_list v;
11223 va_start (v,p);
11224 s = g (p, va_arg (v,int));
11225 va_end (v);
11226 return s;
11227}
ac1cb8d3
VS
11228
11229/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11230 function prototypes and stuff, but not '\xHH' hex character constants.
11231 These don't provoke an error unfortunately, instead are silently treated
11232 as 'x'. The following induces an error, until -std1 is added to get
11233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11234 array size at least. It's necessary to write '\x00'==0 to get something
11235 that's true only with -std1. */
11236int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11237
a848cd7e
SC
11238int test (int i, double x);
11239struct s1 {int (*f) (int a);};
11240struct s2 {int (*f) (double a);};
11241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11242int argc;
11243char **argv;
11244int
11245main ()
11246{
11247return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252# Don't try gcc -ansi; that turns off useful extensions and
11253# breaks some systems' header files.
11254# AIX -qlanglvl=ansi
11255# Ultrix and OSF/1 -std1
11256# HP-UX 10.20 and later -Ae
11257# HP-UX older versions -Aa -D_HPUX_SOURCE
11258# SVR4 -Xc -D__EXTENSIONS__
11259for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11260do
11261 CC="$ac_save_CC $ac_arg"
11262 rm -f conftest.$ac_objext
11263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11264 (eval $ac_compile) 2>conftest.er1
a848cd7e 11265 ac_status=$?
ac1cb8d3
VS
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
a848cd7e
SC
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
89be85c2
VS
11271 { ac_try='test -z "$ac_c_werror_flag"
11272 || test ! -s conftest.err'
ac1cb8d3
VS
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_cv_prog_cc_stdc=$ac_arg
11285break
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290fi
ac1cb8d3 11291rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11292done
11293rm -f conftest.$ac_ext conftest.$ac_objext
11294CC=$ac_save_CC
11295
11296fi
11297
11298case "x$ac_cv_prog_cc_stdc" in
11299 x|xno)
11300 echo "$as_me:$LINENO: result: none needed" >&5
11301echo "${ECHO_T}none needed" >&6 ;;
11302 *)
11303 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11304echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11305 CC="$CC $ac_cv_prog_cc_stdc" ;;
11306esac
11307
11308# Some people use a C++ compiler to compile C. Since we use `exit',
11309# in C++ we need to declare it. In case someone uses the same compiler
11310# for both compiling C and C++ we need to have the C++ compiler decide
11311# the declaration of exit, since it's the most demanding environment.
11312cat >conftest.$ac_ext <<_ACEOF
11313#ifndef __cplusplus
11314 choke me
11315#endif
11316_ACEOF
11317rm -f conftest.$ac_objext
11318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11319 (eval $ac_compile) 2>conftest.er1
a848cd7e 11320 ac_status=$?
ac1cb8d3
VS
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
a848cd7e
SC
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
89be85c2
VS
11326 { ac_try='test -z "$ac_c_werror_flag"
11327 || test ! -s conftest.err'
ac1cb8d3
VS
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 for ac_declaration in \
ac1cb8d3 11340 '' \
a848cd7e
SC
11341 'extern "C" void std::exit (int) throw (); using std::exit;' \
11342 'extern "C" void std::exit (int); using std::exit;' \
11343 'extern "C" void exit (int) throw ();' \
11344 'extern "C" void exit (int);' \
11345 'void exit (int);'
11346do
11347 cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
de59c161 11353$ac_declaration
ac1cb8d3 11354#include <stdlib.h>
a848cd7e
SC
11355int
11356main ()
11357{
11358exit (42);
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363rm -f conftest.$ac_objext
11364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11365 (eval $ac_compile) 2>conftest.er1
a848cd7e 11366 ac_status=$?
ac1cb8d3
VS
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
a848cd7e
SC
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
89be85c2
VS
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
ac1cb8d3
VS
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 :
11386else
11387 echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390continue
11391fi
ac1cb8d3 11392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11393 cat >conftest.$ac_ext <<_ACEOF
11394/* confdefs.h. */
11395_ACEOF
11396cat confdefs.h >>conftest.$ac_ext
11397cat >>conftest.$ac_ext <<_ACEOF
11398/* end confdefs.h. */
11399$ac_declaration
11400int
11401main ()
11402{
11403exit (42);
11404 ;
11405 return 0;
11406}
11407_ACEOF
11408rm -f conftest.$ac_objext
11409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11410 (eval $ac_compile) 2>conftest.er1
a848cd7e 11411 ac_status=$?
ac1cb8d3
VS
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
a848cd7e
SC
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
89be85c2
VS
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
ac1cb8d3
VS
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 break
11431else
11432 echo "$as_me: failed program was:" >&5
11433sed 's/^/| /' conftest.$ac_ext >&5
11434
11435fi
ac1cb8d3 11436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11437done
11438rm -f conftest*
11439if test -n "$ac_declaration"; then
11440 echo '#ifdef __cplusplus' >>confdefs.h
11441 echo $ac_declaration >>confdefs.h
11442 echo '#endif' >>confdefs.h
11443fi
11444
11445else
11446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
11449fi
ac1cb8d3 11450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11451ac_ext=c
11452ac_cpp='$CPP $CPPFLAGS'
11453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455ac_compiler_gnu=$ac_cv_c_compiler_gnu
11456
11457
95986553
DE
11458ac_ext=c
11459ac_cpp='$CPP $CPPFLAGS'
11460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11462ac_compiler_gnu=$ac_cv_c_compiler_gnu
11463
11464echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11465echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11466if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11468else
11469 cat >conftest.$ac_ext <<_ACEOF
11470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
11475
11476int
11477main ()
11478{
11479#ifndef __MWERKS__
11480 choke me
11481#endif
11482
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489 (eval $ac_compile) 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
89be85c2
VS
11496 { ac_try='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
95986553
DE
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 bakefile_compiler_mwerks=yes
11510else
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514bakefile_compiler_mwerks=no
11515fi
11516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11518
11519fi
11520echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11521echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11522
11523MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11524ac_ext=c
11525ac_cpp='$CPP $CPPFLAGS'
11526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530
a848cd7e
SC
11531
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
11537echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11538echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11539# On Suns, sometimes $CPP names a directory.
11540if test -n "$CPP" && test -d "$CPP"; then
11541 CPP=
11542fi
11543if test -z "$CPP"; then
11544 if test "${ac_cv_prog_CPP+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 # Double quotes because CPP needs to be expanded
11548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11549 do
11550 ac_preproc_ok=false
11551for ac_c_preproc_warn_flag in '' yes
11552do
11553 # Use a header file that comes with gcc, so configuring glibc
11554 # with a fresh cross-compiler works.
11555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 # <limits.h> exists even on freestanding compilers.
11557 # On the NeXT, cc -E runs the code through the compiler's parser,
11558 # not just through cpp. "Syntax error" is here to catch this case.
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565#ifdef __STDC__
11566# include <limits.h>
11567#else
11568# include <assert.h>
11569#endif
ac1cb8d3 11570 Syntax error
a848cd7e
SC
11571_ACEOF
11572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } >/dev/null; then
11580 if test -s conftest.err; then
11581 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11583 else
11584 ac_cpp_err=
11585 fi
11586else
11587 ac_cpp_err=yes
11588fi
11589if test -z "$ac_cpp_err"; then
11590 :
11591else
11592 echo "$as_me: failed program was:" >&5
11593sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 # Broken: fails on valid input.
11596continue
11597fi
11598rm -f conftest.err conftest.$ac_ext
11599
11600 # OK, works on sane cases. Now check whether non-existent headers
11601 # can be detected and how.
11602 cat >conftest.$ac_ext <<_ACEOF
11603/* confdefs.h. */
11604_ACEOF
11605cat confdefs.h >>conftest.$ac_ext
11606cat >>conftest.$ac_ext <<_ACEOF
11607/* end confdefs.h. */
11608#include <ac_nonexistent.h>
11609_ACEOF
11610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } >/dev/null; then
11618 if test -s conftest.err; then
11619 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11621 else
11622 ac_cpp_err=
11623 fi
11624else
11625 ac_cpp_err=yes
11626fi
11627if test -z "$ac_cpp_err"; then
11628 # Broken: success on invalid input.
11629continue
11630else
11631 echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 # Passes both tests.
11635ac_preproc_ok=:
11636break
11637fi
11638rm -f conftest.err conftest.$ac_ext
11639
11640done
11641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11642rm -f conftest.err conftest.$ac_ext
11643if $ac_preproc_ok; then
11644 break
11645fi
11646
11647 done
11648 ac_cv_prog_CPP=$CPP
11649
11650fi
11651 CPP=$ac_cv_prog_CPP
11652else
11653 ac_cv_prog_CPP=$CPP
11654fi
11655echo "$as_me:$LINENO: result: $CPP" >&5
11656echo "${ECHO_T}$CPP" >&6
11657ac_preproc_ok=false
11658for ac_c_preproc_warn_flag in '' yes
11659do
11660 # Use a header file that comes with gcc, so configuring glibc
11661 # with a fresh cross-compiler works.
11662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 # <limits.h> exists even on freestanding compilers.
11664 # On the NeXT, cc -E runs the code through the compiler's parser,
11665 # not just through cpp. "Syntax error" is here to catch this case.
11666 cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672#ifdef __STDC__
11673# include <limits.h>
11674#else
11675# include <assert.h>
11676#endif
ac1cb8d3 11677 Syntax error
a848cd7e
SC
11678_ACEOF
11679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } >/dev/null; then
11687 if test -s conftest.err; then
11688 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11690 else
11691 ac_cpp_err=
11692 fi
11693else
11694 ac_cpp_err=yes
11695fi
11696if test -z "$ac_cpp_err"; then
11697 :
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 # Broken: fails on valid input.
11703continue
11704fi
11705rm -f conftest.err conftest.$ac_ext
11706
11707 # OK, works on sane cases. Now check whether non-existent headers
11708 # can be detected and how.
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715#include <ac_nonexistent.h>
11716_ACEOF
11717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } >/dev/null; then
11725 if test -s conftest.err; then
11726 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11728 else
11729 ac_cpp_err=
11730 fi
11731else
11732 ac_cpp_err=yes
11733fi
11734if test -z "$ac_cpp_err"; then
11735 # Broken: success on invalid input.
11736continue
11737else
11738 echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 # Passes both tests.
11742ac_preproc_ok=:
11743break
11744fi
11745rm -f conftest.err conftest.$ac_ext
11746
11747done
11748# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11749rm -f conftest.err conftest.$ac_ext
11750if $ac_preproc_ok; then
11751 :
11752else
11753 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11754See \`config.log' for more details." >&5
11755echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11756See \`config.log' for more details." >&2;}
11757 { (exit 1); exit 1; }; }
11758fi
11759
11760ac_ext=c
11761ac_cpp='$CPP $CPPFLAGS'
11762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766
11767echo "$as_me:$LINENO: checking for egrep" >&5
11768echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11769if test "${ac_cv_prog_egrep+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11773 then ac_cv_prog_egrep='grep -E'
11774 else ac_cv_prog_egrep='egrep'
11775 fi
11776fi
11777echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11778echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11779 EGREP=$ac_cv_prog_egrep
11780
11781
11782if test $ac_cv_c_compiler_gnu = yes; then
11783 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11784echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11785if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787else
11788 ac_pattern="Autoconf.*'x'"
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795#include <sgtty.h>
11796Autoconf TIOCGETP
11797_ACEOF
11798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11799 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11800 ac_cv_prog_gcc_traditional=yes
11801else
11802 ac_cv_prog_gcc_traditional=no
11803fi
11804rm -f conftest*
11805
11806
11807 if test $ac_cv_prog_gcc_traditional = no; then
11808 cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814#include <termio.h>
11815Autoconf TCGETA
11816_ACEOF
11817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11818 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11819 ac_cv_prog_gcc_traditional=yes
11820fi
11821rm -f conftest*
11822
11823 fi
11824fi
11825echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11826echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11827 if test $ac_cv_prog_gcc_traditional = yes; then
11828 CC="$CC -traditional"
11829 fi
11830fi
11831
11832
11833
11834
11835ac_ext=cc
11836ac_cpp='$CXXCPP $CPPFLAGS'
11837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11840
11841
11842CXXFLAGS=${CXXFLAGS:=}
11843ac_ext=cc
11844ac_cpp='$CXXCPP $CPPFLAGS'
11845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11848if test -n "$ac_tool_prefix"; then
11849 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11850 do
11851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11853echo "$as_me:$LINENO: checking for $ac_word" >&5
11854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11855if test "${ac_cv_prog_CXX+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 if test -n "$CXX"; then
11859 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873done
11874
11875fi
11876fi
11877CXX=$ac_cv_prog_CXX
11878if test -n "$CXX"; then
11879 echo "$as_me:$LINENO: result: $CXX" >&5
11880echo "${ECHO_T}$CXX" >&6
11881else
11882 echo "$as_me:$LINENO: result: no" >&5
11883echo "${ECHO_T}no" >&6
11884fi
11885
11886 test -n "$CXX" && break
11887 done
11888fi
11889if test -z "$CXX"; then
11890 ac_ct_CXX=$CXX
11891 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11892do
11893 # Extract the first word of "$ac_prog", so it can be a program name with args.
11894set dummy $ac_prog; ac_word=$2
11895echo "$as_me:$LINENO: checking for $ac_word" >&5
11896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11897if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 if test -n "$ac_ct_CXX"; then
11901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11902else
11903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_ac_ct_CXX="$ac_prog"
11911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11913 fi
11914done
11915done
11916
11917fi
11918fi
11919ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11920if test -n "$ac_ct_CXX"; then
11921 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11922echo "${ECHO_T}$ac_ct_CXX" >&6
11923else
11924 echo "$as_me:$LINENO: result: no" >&5
11925echo "${ECHO_T}no" >&6
11926fi
11927
11928 test -n "$ac_ct_CXX" && break
11929done
11930test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11931
11932 CXX=$ac_ct_CXX
11933fi
11934
11935
11936# Provide some information about the compiler.
11937echo "$as_me:$LINENO:" \
11938 "checking for C++ compiler version" >&5
11939ac_compiler=`set X $ac_compile; echo $2`
11940{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11941 (eval $ac_compiler --version </dev/null >&5) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }
11945{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11946 (eval $ac_compiler -v </dev/null >&5) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }
11950{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11951 (eval $ac_compiler -V </dev/null >&5) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }
11955
11956echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11957echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11958if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960else
11961 cat >conftest.$ac_ext <<_ACEOF
11962/* confdefs.h. */
11963_ACEOF
11964cat confdefs.h >>conftest.$ac_ext
11965cat >>conftest.$ac_ext <<_ACEOF
11966/* end confdefs.h. */
11967
11968int
11969main ()
11970{
11971#ifndef __GNUC__
11972 choke me
11973#endif
11974
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979rm -f conftest.$ac_objext
11980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11981 (eval $ac_compile) 2>conftest.er1
a848cd7e 11982 ac_status=$?
ac1cb8d3
VS
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
a848cd7e
SC
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
89be85c2
VS
11988 { ac_try='test -z "$ac_cxx_werror_flag"
11989 || test ! -s conftest.err'
ac1cb8d3
VS
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_compiler_gnu=yes
12002else
12003 echo "$as_me: failed program was:" >&5
12004sed 's/^/| /' conftest.$ac_ext >&5
12005
12006ac_compiler_gnu=no
12007fi
ac1cb8d3 12008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12010
12011fi
12012echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12013echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12014GXX=`test $ac_compiler_gnu = yes && echo yes`
12015ac_test_CXXFLAGS=${CXXFLAGS+set}
12016ac_save_CXXFLAGS=$CXXFLAGS
12017CXXFLAGS="-g"
12018echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12019echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12020if test "${ac_cv_prog_cxx_g+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 cat >conftest.$ac_ext <<_ACEOF
12024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
12029
12030int
12031main ()
12032{
12033
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext
12039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12040 (eval $ac_compile) 2>conftest.er1
a848cd7e 12041 ac_status=$?
ac1cb8d3
VS
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
a848cd7e
SC
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
89be85c2
VS
12047 { ac_try='test -z "$ac_cxx_werror_flag"
12048 || test ! -s conftest.err'
ac1cb8d3
VS
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_prog_cxx_g=yes
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065ac_cv_prog_cxx_g=no
12066fi
ac1cb8d3 12067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12068fi
12069echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12070echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12071if test "$ac_test_CXXFLAGS" = set; then
12072 CXXFLAGS=$ac_save_CXXFLAGS
12073elif test $ac_cv_prog_cxx_g = yes; then
12074 if test "$GXX" = yes; then
12075 CXXFLAGS="-g -O2"
12076 else
12077 CXXFLAGS="-g"
12078 fi
12079else
12080 if test "$GXX" = yes; then
12081 CXXFLAGS="-O2"
12082 else
12083 CXXFLAGS=
12084 fi
12085fi
12086for ac_declaration in \
ac1cb8d3 12087 '' \
a848cd7e
SC
12088 'extern "C" void std::exit (int) throw (); using std::exit;' \
12089 'extern "C" void std::exit (int); using std::exit;' \
12090 'extern "C" void exit (int) throw ();' \
12091 'extern "C" void exit (int);' \
12092 'void exit (int);'
12093do
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
de59c161 12100$ac_declaration
ac1cb8d3 12101#include <stdlib.h>
a848cd7e
SC
12102int
12103main ()
12104{
12105exit (42);
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest.$ac_objext
12111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12112 (eval $ac_compile) 2>conftest.er1
a848cd7e 12113 ac_status=$?
ac1cb8d3
VS
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
a848cd7e
SC
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
89be85c2
VS
12119 { ac_try='test -z "$ac_cxx_werror_flag"
12120 || test ! -s conftest.err'
ac1cb8d3
VS
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 :
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137continue
12138fi
ac1cb8d3 12139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12140 cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
12146$ac_declaration
12147int
12148main ()
12149{
12150exit (42);
12151 ;
12152 return 0;
12153}
12154_ACEOF
12155rm -f conftest.$ac_objext
12156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12157 (eval $ac_compile) 2>conftest.er1
a848cd7e 12158 ac_status=$?
ac1cb8d3
VS
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
a848cd7e
SC
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
89be85c2
VS
12164 { ac_try='test -z "$ac_cxx_werror_flag"
12165 || test ! -s conftest.err'
ac1cb8d3
VS
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 break
12178else
12179 echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182fi
ac1cb8d3 12183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12184done
12185rm -f conftest*
12186if test -n "$ac_declaration"; then
12187 echo '#ifdef __cplusplus' >>confdefs.h
12188 echo $ac_declaration >>confdefs.h
12189 echo '#endif' >>confdefs.h
12190fi
12191
12192ac_ext=cc
12193ac_cpp='$CXXCPP $CPPFLAGS'
12194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12197
12198
95986553
DE
12199ac_ext=cc
12200ac_cpp='$CXXCPP $CPPFLAGS'
12201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12204
12205echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12206echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12207if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
12216
12217int
12218main ()
12219{
12220#ifndef __MWERKS__
12221 choke me
12222#endif
12223
12224 ;
12225 return 0;
12226}
12227_ACEOF
12228rm -f conftest.$ac_objext
12229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230 (eval $ac_compile) 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
89be85c2
VS
12237 { ac_try='test -z "$ac_cxx_werror_flag"
12238 || test ! -s conftest.err'
95986553
DE
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
12244 { ac_try='test -s conftest.$ac_objext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 bakefile_compiler_mwerks=yes
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255bakefile_compiler_mwerks=no
12256fi
12257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12259
12260fi
12261echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12262echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12263
12264MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12265ac_ext=cc
12266ac_cpp='$CXXCPP $CPPFLAGS'
12267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12270
12271
12272
a848cd7e
SC
12273ac_ext=c
12274ac_cpp='$CPP $CPPFLAGS'
12275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277ac_compiler_gnu=$ac_cv_c_compiler_gnu
12278
12279
a848cd7e
SC
12280if test -n "$ac_tool_prefix"; then
12281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12282set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12283echo "$as_me:$LINENO: checking for $ac_word" >&5
12284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12285if test "${ac_cv_prog_RANLIB+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287else
12288 if test -n "$RANLIB"; then
12289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12290else
12291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292for as_dir in $PATH
12293do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302done
12303done
12304
12305fi
12306fi
12307RANLIB=$ac_cv_prog_RANLIB
12308if test -n "$RANLIB"; then
12309 echo "$as_me:$LINENO: result: $RANLIB" >&5
12310echo "${ECHO_T}$RANLIB" >&6
12311else
12312 echo "$as_me:$LINENO: result: no" >&5
12313echo "${ECHO_T}no" >&6
12314fi
12315
12316fi
12317if test -z "$ac_cv_prog_RANLIB"; then
12318 ac_ct_RANLIB=$RANLIB
12319 # Extract the first word of "ranlib", so it can be a program name with args.
12320set dummy ranlib; ac_word=$2
12321echo "$as_me:$LINENO: checking for $ac_word" >&5
12322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12323if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325else
12326 if test -n "$ac_ct_RANLIB"; then
12327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12328else
12329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330for as_dir in $PATH
12331do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336 ac_cv_prog_ac_ct_RANLIB="ranlib"
12337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12339 fi
12340done
12341done
12342
12343 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12344fi
12345fi
12346ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12347if test -n "$ac_ct_RANLIB"; then
12348 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12349echo "${ECHO_T}$ac_ct_RANLIB" >&6
12350else
12351 echo "$as_me:$LINENO: result: no" >&5
12352echo "${ECHO_T}no" >&6
12353fi
12354
12355 RANLIB=$ac_ct_RANLIB
12356else
12357 RANLIB="$ac_cv_prog_RANLIB"
12358fi
12359
12360
12361# Extract the first word of "ar", so it can be a program name with args.
12362set dummy ar; ac_word=$2
12363echo "$as_me:$LINENO: checking for $ac_word" >&5
12364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12365if test "${ac_cv_prog_AR+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368 if test -n "$AR"; then
12369 ac_cv_prog_AR="$AR" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12378 ac_cv_prog_AR="ar"
12379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12381 fi
12382done
12383done
12384
12385fi
12386fi
12387AR=$ac_cv_prog_AR
12388if test -n "$AR"; then
12389 echo "$as_me:$LINENO: result: $AR" >&5
12390echo "${ECHO_T}$AR" >&6
12391else
12392 echo "$as_me:$LINENO: result: no" >&5
12393echo "${ECHO_T}no" >&6
12394fi
12395
12396if test "x$AR" = "x" ; then
77ffb593
JS
12397 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12398echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12399 { (exit 1); exit 1; }; }
12400fi
12401
12402# Find a good install program. We prefer a C program (faster),
12403# so one script is as good as another. But avoid the broken or
12404# incompatible versions:
12405# SysV /etc/install, /usr/sbin/install
12406# SunOS /usr/etc/install
12407# IRIX /sbin/install
12408# AIX /bin/install
12409# AmigaOS /C/install, which installs bootblocks on floppy discs
12410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12413# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12414# ./install, which can be erroneously created by make from ./install.sh.
12415echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12416echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12417if test -z "$INSTALL"; then
12418if test "${ac_cv_path_install+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422for as_dir in $PATH
12423do
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 # Account for people who put trailing slashes in PATH elements.
12427case $as_dir/ in
12428 ./ | .// | /cC/* | \
12429 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12430 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12431 /usr/ucb/* ) ;;
12432 *)
12433 # OSF1 and SCO ODT 3.0 have their own names for install.
12434 # Don't use installbsd from OSF since it installs stuff as root
12435 # by default.
12436 for ac_prog in ginstall scoinst install; do
12437 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12438 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12439 if test $ac_prog = install &&
12440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12441 # AIX install. It has an incompatible calling convention.
12442 :
12443 elif test $ac_prog = install &&
12444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12445 # program-specific install script used by HP pwplus--don't use.
12446 :
12447 else
12448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12449 break 3
12450 fi
12451 fi
a848cd7e
SC
12452 done
12453 done
12454 ;;
12455esac
12456done
12457
12458
12459fi
12460 if test "${ac_cv_path_install+set}" = set; then
12461 INSTALL=$ac_cv_path_install
12462 else
12463 # As a last resort, use the slow shell script. We don't cache a
12464 # path for INSTALL within a source directory, because that will
12465 # break other packages using the cache if that directory is
12466 # removed, or if the path is relative.
12467 INSTALL=$ac_install_sh
12468 fi
12469fi
12470echo "$as_me:$LINENO: result: $INSTALL" >&5
12471echo "${ECHO_T}$INSTALL" >&6
12472
12473# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12474# It thinks the first close brace ends the variable substitution.
12475test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12476
12477test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12478
12479test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12480
12481
12482case ${INSTALL} in
12483 /* ) # Absolute
12484 ;;
12485 ?:* ) # Drive letter, considered as absolute.
12486 ;;
12487 *)
12488 INSTALL=`pwd`/${INSTALL} ;;
12489esac
12490
a848cd7e
SC
12491
12492case "${host}" in
12493
12494 powerpc-*-darwin* )
12495 INSTALL_PROGRAM="cp -fp"
12496 INSTALL_DATA="cp -fp"
12497 ;;
12498 *)
12499 ;;
12500esac
12501
12502# Extract the first word of "strip", so it can be a program name with args.
12503set dummy strip; ac_word=$2
12504echo "$as_me:$LINENO: checking for $ac_word" >&5
12505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12506if test "${ac_cv_prog_STRIP+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508else
12509 if test -n "$STRIP"; then
12510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12511else
12512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513for as_dir in $PATH
12514do
12515 IFS=$as_save_IFS
12516 test -z "$as_dir" && as_dir=.
12517 for ac_exec_ext in '' $ac_executable_extensions; do
12518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12519 ac_cv_prog_STRIP="strip"
12520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 break 2
12522 fi
12523done
12524done
12525
12526 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12527fi
12528fi
12529STRIP=$ac_cv_prog_STRIP
12530if test -n "$STRIP"; then
12531 echo "$as_me:$LINENO: result: $STRIP" >&5
12532echo "${ECHO_T}$STRIP" >&6
12533else
12534 echo "$as_me:$LINENO: result: no" >&5
12535echo "${ECHO_T}no" >&6
12536fi
12537
12538
12539echo "$as_me:$LINENO: checking if make is GNU make" >&5
12540echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12541if test "${wx_cv_prog_makeisgnu+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544
12545 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12546 egrep -s GNU > /dev/null); then
12547 wx_cv_prog_makeisgnu="yes"
12548 else
12549 wx_cv_prog_makeisgnu="no"
12550 fi
12551
12552fi
12553echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12554echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12555
12556if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12557 IF_GNU_MAKE=""
12558else
12559 IF_GNU_MAKE="#"
12560fi
12561
12562
12563
12564if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12565echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12566echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12567if test "${wx_cv_prog_makevpath+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569else
12570
12571cat - << EOF > confMake
12572check : file
12573 cp \$? \$@
12574 cp \$? final_file
12575EOF
12576
12577if test ! -d sub ; then
12578 mkdir sub
12579fi
12580echo dummy > sub/file
12581${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12582RESULT=$?
12583rm -f sub/file check final_file confMake
12584rmdir sub
12585if test "$RESULT" = 0; then
12586 wx_cv_prog_makevpath="yes"
12587else
12588 wx_cv_prog_makevpath="no"
12589fi
12590
12591fi
12592echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12593echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12594
12595if test "x$wx_cv_prog_makevpath" != "xyes"; then
12596{ { echo "$as_me:$LINENO: error:
12597You need a make-utility that is able to use the variable
12598VPATH correctly.
12599If your version of make does not support VPATH correctly,
12600please install GNU-make (possibly as gmake), and start
12601configure with the following command:
12602export MAKE=gmake; ./configure for sh-type shells
12603setenv MAKE gmake; ./configure for csh-type shells
12604Also please do remember to use gmake in this case every time
12605you are trying to compile.
12606" >&5
12607echo "$as_me: error:
12608You need a make-utility that is able to use the variable
12609VPATH correctly.
12610If your version of make does not support VPATH correctly,
12611please install GNU-make (possibly as gmake), and start
12612configure with the following command:
12613export MAKE=gmake; ./configure for sh-type shells
12614setenv MAKE gmake; ./configure for csh-type shells
12615Also please do remember to use gmake in this case every time
12616you are trying to compile.
12617" >&2;}
12618 { (exit 1); exit 1; }; }
12619fi fi
12620echo "$as_me:$LINENO: checking whether ln -s works" >&5
12621echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12622LN_S=$as_ln_s
12623if test "$LN_S" = "ln -s"; then
12624 echo "$as_me:$LINENO: result: yes" >&5
12625echo "${ECHO_T}yes" >&6
12626else
12627 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12628echo "${ECHO_T}no, using $LN_S" >&6
12629fi
12630
12631
12632
12633case "${host}" in
12634 *-pc-os2_emx | *-pc-os2-emx )
12635 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12636 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12637echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12638if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 ac_check_lib_save_LIBS=$LIBS
12642LIBS="-lcExt $LIBS"
12643cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649
12650/* Override any gcc2 internal prototype to avoid an error. */
12651#ifdef __cplusplus
12652extern "C"
12653#endif
12654/* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12656char drand48 ();
12657int
12658main ()
12659{
12660drand48 ();
12661 ;
12662 return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext conftest$ac_exeext
12666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12667 (eval $ac_link) 2>conftest.er1
a848cd7e 12668 ac_status=$?
ac1cb8d3
VS
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
a848cd7e
SC
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
89be85c2
VS
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
ac1cb8d3
VS
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_cv_lib_cExt_drand48=yes
12688else
12689 echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
12692ac_cv_lib_cExt_drand48=no
12693fi
ac1cb8d3
VS
12694rm -f conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12696LIBS=$ac_check_lib_save_LIBS
12697fi
12698echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12699echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12700if test $ac_cv_lib_cExt_drand48 = yes; then
12701 LIBS="$LIBS -lcExt"
12702fi
12703
12704 else
12705 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12706 fi
12707 echo "$as_me:$LINENO: checking for gcc version" >&5
12708echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12709if test "${wx_cv_gccversion+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711else
12712
12713 cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719
12720int
12721main ()
12722{
12723
12724 #if (__GNUC__ < 3)
12725 #error old gcc
12726 #endif
12727
12728 ;
12729 return 0;
12730}
12731_ACEOF
12732rm -f conftest.$ac_objext
12733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12734 (eval $ac_compile) 2>conftest.er1
a848cd7e 12735 ac_status=$?
ac1cb8d3
VS
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
a848cd7e
SC
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
89be85c2
VS
12741 { ac_try='test -z "$ac_c_werror_flag"
12742 || test ! -s conftest.err'
ac1cb8d3
VS
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754
12755 cat >conftest.$ac_ext <<_ACEOF
12756/* confdefs.h. */
12757_ACEOF
12758cat confdefs.h >>conftest.$ac_ext
12759cat >>conftest.$ac_ext <<_ACEOF
12760/* end confdefs.h. */
12761
12762int
12763main ()
12764{
12765
12766 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12767 #error intermediate gcc
12768 #endif
12769
12770 ;
12771 return 0;
12772}
12773_ACEOF
12774rm -f conftest.$ac_objext
12775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12776 (eval $ac_compile) 2>conftest.er1
a848cd7e 12777 ac_status=$?
ac1cb8d3
VS
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
a848cd7e
SC
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
89be85c2
VS
12783 { ac_try='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
ac1cb8d3
VS
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796
12797 wx_cv_gccversion=Innotek
12798
12799else
12800 echo "$as_me: failed program was:" >&5
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
12803
12804 wx_cv_gccversion=3
12805
12806
12807fi
ac1cb8d3 12808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12809
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814
12815 wx_cv_gccversion=2
12816
12817
12818fi
ac1cb8d3 12819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12820
12821fi
12822echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12823echo "${ECHO_T}$wx_cv_gccversion" >&6
12824 if test "$wx_cv_gccversion" = "2"; then
12825 LIBS="$LIBS -lstdcpp"
12826 LDFLAGS="$LDFLAGS -Zsysv-signals"
12827 else
12828 if test "$wx_cv_gccversion" = "3"; then
12829 LIBS="$LIBS -lstdcxx"
12830 LDFLAGS="$LDFLAGS -Zsysv-signals"
12831 else
12832 LIBS="$LIBS -lstdc++"
12833 fi
12834 fi
12835 if test "$wxUSE_OMF" = "yes"; then
de59c161 12836 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12837 fi
12838 ;;
12839 *)
12840
12841
12842
12843 ac_ext=cc
12844ac_cpp='$CXXCPP $CPPFLAGS'
12845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12848
12849
95986553 12850 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
12851echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12852if test "${ac_cv_string_strcasecmp+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855
12856 cat >conftest.$ac_ext <<_ACEOF
12857/* confdefs.h. */
12858_ACEOF
12859cat confdefs.h >>conftest.$ac_ext
12860cat >>conftest.$ac_ext <<_ACEOF
12861/* end confdefs.h. */
12862
12863 #include <string.h>
12864
12865int
12866main ()
12867{
12868
12869 strcasecmp("foo", "bar");
12870
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875rm -f conftest.$ac_objext conftest$ac_exeext
12876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12877 (eval $ac_link) 2>conftest.er1
a848cd7e 12878 ac_status=$?
ac1cb8d3
VS
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
a848cd7e
SC
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
89be85c2
VS
12884 { ac_try='test -z "$ac_cxx_werror_flag"
12885 || test ! -s conftest.err'
ac1cb8d3
VS
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_string_strcasecmp=yes
12898else
12899 echo "$as_me: failed program was:" >&5
12900sed 's/^/| /' conftest.$ac_ext >&5
12901
12902ac_cv_string_strcasecmp=no
12903
12904fi
ac1cb8d3
VS
12905rm -f conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12907
12908fi
12909echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12910echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12911
12912 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12913 cat >>confdefs.h <<\_ACEOF
12914#define HAVE_STRCASECMP_IN_STRING_H 1
12915_ACEOF
12916
12917 else
12918 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12919echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12920if test "${ac_cv_strings_strcasecmp+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922else
12923
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
12930
12931 #include <strings.h>
12932
12933int
12934main ()
12935{
12936
12937 strcasecmp("foo", "bar");
12938
12939 ;
12940 return 0;
12941}
12942_ACEOF
12943rm -f conftest.$ac_objext conftest$ac_exeext
12944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12945 (eval $ac_link) 2>conftest.er1
a848cd7e 12946 ac_status=$?
ac1cb8d3
VS
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
a848cd7e
SC
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
89be85c2
VS
12952 { ac_try='test -z "$ac_cxx_werror_flag"
12953 || test ! -s conftest.err'
ac1cb8d3
VS
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_cv_strings_strcasecmp=yes
12966else
12967 echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970ac_cv_strings_strcasecmp=no
12971
12972fi
ac1cb8d3
VS
12973rm -f conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12975
12976fi
12977echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12978echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12979
0c3c69fc 12980 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12981 cat >>confdefs.h <<\_ACEOF
12982#define HAVE_STRCASECMP_IN_STRINGS_H 1
12983_ACEOF
12984
12985 else
12986 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12987echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12988 { (exit 1); exit 1; }; }
12989 fi
12990 fi
12991
12992 ac_ext=c
12993ac_cpp='$CPP $CPPFLAGS'
12994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997
12998 ;;
12999esac
13000
13001
13002echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13003echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13004if test "${ac_cv_header_stdc+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006else
13007 cat >conftest.$ac_ext <<_ACEOF
13008/* confdefs.h. */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
13012/* end confdefs.h. */
13013#include <stdlib.h>
13014#include <stdarg.h>
13015#include <string.h>
13016#include <float.h>
13017
13018int
13019main ()
13020{
13021
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026rm -f conftest.$ac_objext
13027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13028 (eval $ac_compile) 2>conftest.er1
a848cd7e 13029 ac_status=$?
ac1cb8d3
VS
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
a848cd7e
SC
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
89be85c2
VS
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
ac1cb8d3
VS
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_header_stdc=yes
13049else
13050 echo "$as_me: failed program was:" >&5
13051sed 's/^/| /' conftest.$ac_ext >&5
13052
13053ac_cv_header_stdc=no
13054fi
ac1cb8d3 13055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13056
13057if test $ac_cv_header_stdc = yes; then
13058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13059 cat >conftest.$ac_ext <<_ACEOF
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065#include <string.h>
13066
13067_ACEOF
13068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13069 $EGREP "memchr" >/dev/null 2>&1; then
13070 :
13071else
13072 ac_cv_header_stdc=no
13073fi
13074rm -f conftest*
13075
13076fi
13077
13078if test $ac_cv_header_stdc = yes; then
13079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13080 cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
13086#include <stdlib.h>
13087
13088_ACEOF
13089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13090 $EGREP "free" >/dev/null 2>&1; then
13091 :
13092else
13093 ac_cv_header_stdc=no
13094fi
13095rm -f conftest*
13096
13097fi
13098
13099if test $ac_cv_header_stdc = yes; then
13100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13101 if test "$cross_compiling" = yes; then
13102 :
13103else
13104 cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
13110#include <ctype.h>
13111#if ((' ' & 0x0FF) == 0x020)
13112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13114#else
13115# define ISLOWER(c) \
ac1cb8d3
VS
13116 (('a' <= (c) && (c) <= 'i') \
13117 || ('j' <= (c) && (c) <= 'r') \
13118 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13119# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13120#endif
13121
13122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13123int
13124main ()
13125{
13126 int i;
13127 for (i = 0; i < 256; i++)
13128 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13129 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13130 exit(2);
13131 exit (0);
13132}
13133_ACEOF
13134rm -f conftest$ac_exeext
13135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13136 (eval $ac_link) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 :
13146else
13147 echo "$as_me: program exited with status $ac_status" >&5
13148echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
13151( exit $ac_status )
13152ac_cv_header_stdc=no
13153fi
ac1cb8d3 13154rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13155fi
13156fi
13157fi
13158echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13159echo "${ECHO_T}$ac_cv_header_stdc" >&6
13160if test $ac_cv_header_stdc = yes; then
13161
13162cat >>confdefs.h <<\_ACEOF
13163#define STDC_HEADERS 1
13164_ACEOF
13165
13166fi
13167
13168# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13179 inttypes.h stdint.h unistd.h
a848cd7e
SC
13180do
13181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13182echo "$as_me:$LINENO: checking for $ac_header" >&5
13183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13184if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186else
13187 cat >conftest.$ac_ext <<_ACEOF
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
13193$ac_includes_default
13194
13195#include <$ac_header>
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13199 (eval $ac_compile) 2>conftest.er1
a848cd7e 13200 ac_status=$?
ac1cb8d3
VS
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
a848cd7e
SC
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
89be85c2
VS
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
ac1cb8d3
VS
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 eval "$as_ac_Header=yes"
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224eval "$as_ac_Header=no"
13225fi
ac1cb8d3 13226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13227fi
13228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13230if test `eval echo '${'$as_ac_Header'}'` = yes; then
13231 cat >>confdefs.h <<_ACEOF
13232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13233_ACEOF
13234
13235fi
13236
13237done
13238
13239
13240
13241for ac_header in stdlib.h
13242do
13243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13244if eval "test \"\${$as_ac_Header+set}\" = set"; then
13245 echo "$as_me:$LINENO: checking for $ac_header" >&5
13246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13247if eval "test \"\${$as_ac_Header+set}\" = set"; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249fi
13250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13252else
13253 # Is the header compilable?
13254echo "$as_me:$LINENO: checking $ac_header usability" >&5
13255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13256cat >conftest.$ac_ext <<_ACEOF
13257/* confdefs.h. */
13258_ACEOF
13259cat confdefs.h >>conftest.$ac_ext
13260cat >>conftest.$ac_ext <<_ACEOF
13261/* end confdefs.h. */
13262$ac_includes_default
13263#include <$ac_header>
13264_ACEOF
13265rm -f conftest.$ac_objext
13266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13267 (eval $ac_compile) 2>conftest.er1
a848cd7e 13268 ac_status=$?
ac1cb8d3
VS
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
a848cd7e
SC
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
89be85c2
VS
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
ac1cb8d3
VS
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_header_compiler=yes
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292ac_header_compiler=no
13293fi
ac1cb8d3 13294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296echo "${ECHO_T}$ac_header_compiler" >&6
13297
13298# Is the header present?
13299echo "$as_me:$LINENO: checking $ac_header presence" >&5
13300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13301cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307#include <$ac_header>
13308_ACEOF
13309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } >/dev/null; then
13317 if test -s conftest.err; then
13318 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13320 else
13321 ac_cpp_err=
13322 fi
13323else
13324 ac_cpp_err=yes
13325fi
13326if test -z "$ac_cpp_err"; then
13327 ac_header_preproc=yes
13328else
13329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_header_preproc=no
13333fi
13334rm -f conftest.err conftest.$ac_ext
13335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13336echo "${ECHO_T}$ac_header_preproc" >&6
13337
13338# So? What about this header?
ac1cb8d3
VS
13339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13340 yes:no: )
a848cd7e
SC
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13345 ac_header_preproc=yes
a848cd7e 13346 ;;
ac1cb8d3 13347 no:yes:* )
a848cd7e
SC
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13360 (
13361 cat <<\_ASBOX
ac1cb8d3
VS
13362## ----------------------------------------- ##
13363## Report this to wx-dev@lists.wxwidgets.org ##
13364## ----------------------------------------- ##
a848cd7e
SC
13365_ASBOX
13366 ) |
13367 sed "s/^/$as_me: WARNING: /" >&2
13368 ;;
13369esac
13370echo "$as_me:$LINENO: checking for $ac_header" >&5
13371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13372if eval "test \"\${$as_ac_Header+set}\" = set"; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
ac1cb8d3 13375 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13376fi
13377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13379
13380fi
13381if test `eval echo '${'$as_ac_Header'}'` = yes; then
13382 cat >>confdefs.h <<_ACEOF
13383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13384_ACEOF
13385
13386fi
13387
13388done
13389
13390
13391for ac_header in malloc.h
13392do
13393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13394if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395 echo "$as_me:$LINENO: checking for $ac_header" >&5
13396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13397if eval "test \"\${$as_ac_Header+set}\" = set"; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399fi
13400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13402else
13403 # Is the header compilable?
13404echo "$as_me:$LINENO: checking $ac_header usability" >&5
13405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13406cat >conftest.$ac_ext <<_ACEOF
13407/* confdefs.h. */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h. */
13412$ac_includes_default
13413#include <$ac_header>
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13417 (eval $ac_compile) 2>conftest.er1
a848cd7e 13418 ac_status=$?
ac1cb8d3
VS
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
a848cd7e
SC
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
89be85c2
VS
13424 { ac_try='test -z "$ac_c_werror_flag"
13425 || test ! -s conftest.err'
ac1cb8d3
VS
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 ac_header_compiler=yes
13438else
13439 echo "$as_me: failed program was:" >&5
13440sed 's/^/| /' conftest.$ac_ext >&5
13441
13442ac_header_compiler=no
13443fi
ac1cb8d3 13444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13446echo "${ECHO_T}$ac_header_compiler" >&6
13447
13448# Is the header present?
13449echo "$as_me:$LINENO: checking $ac_header presence" >&5
13450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13451cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h. */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h. */
13457#include <$ac_header>
13458_ACEOF
13459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } >/dev/null; then
13467 if test -s conftest.err; then
13468 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13470 else
13471 ac_cpp_err=
13472 fi
13473else
13474 ac_cpp_err=yes
13475fi
13476if test -z "$ac_cpp_err"; then
13477 ac_header_preproc=yes
13478else
13479 echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_header_preproc=no
13483fi
13484rm -f conftest.err conftest.$ac_ext
13485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13486echo "${ECHO_T}$ac_header_preproc" >&6
13487
13488# So? What about this header?
ac1cb8d3
VS
13489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13490 yes:no: )
a848cd7e
SC
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13495 ac_header_preproc=yes
a848cd7e 13496 ;;
ac1cb8d3 13497 no:yes:* )
a848cd7e
SC
13498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13510 (
13511 cat <<\_ASBOX
ac1cb8d3
VS
13512## ----------------------------------------- ##
13513## Report this to wx-dev@lists.wxwidgets.org ##
13514## ----------------------------------------- ##
a848cd7e
SC
13515_ASBOX
13516 ) |
13517 sed "s/^/$as_me: WARNING: /" >&2
13518 ;;
13519esac
13520echo "$as_me:$LINENO: checking for $ac_header" >&5
13521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13522if eval "test \"\${$as_ac_Header+set}\" = set"; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
ac1cb8d3 13525 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13526fi
13527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13529
13530fi
13531if test `eval echo '${'$as_ac_Header'}'` = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13534_ACEOF
13535
13536fi
13537
13538done
13539
13540
13541for ac_header in unistd.h
13542do
13543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13544if eval "test \"\${$as_ac_Header+set}\" = set"; then
13545 echo "$as_me:$LINENO: checking for $ac_header" >&5
13546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13547if eval "test \"\${$as_ac_Header+set}\" = set"; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549fi
13550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13552else
13553 # Is the header compilable?
13554echo "$as_me:$LINENO: checking $ac_header usability" >&5
13555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13556cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
13562$ac_includes_default
13563#include <$ac_header>
13564_ACEOF
13565rm -f conftest.$ac_objext
13566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13567 (eval $ac_compile) 2>conftest.er1
a848cd7e 13568 ac_status=$?
ac1cb8d3
VS
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
a848cd7e
SC
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
89be85c2
VS
13574 { ac_try='test -z "$ac_c_werror_flag"
13575 || test ! -s conftest.err'
ac1cb8d3
VS
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_header_compiler=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592ac_header_compiler=no
13593fi
ac1cb8d3 13594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596echo "${ECHO_T}$ac_header_compiler" >&6
13597
13598# Is the header present?
13599echo "$as_me:$LINENO: checking $ac_header presence" >&5
13600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13601cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607#include <$ac_header>
13608_ACEOF
13609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null; then
13617 if test -s conftest.err; then
13618 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13620 else
13621 ac_cpp_err=
13622 fi
13623else
13624 ac_cpp_err=yes
13625fi
13626if test -z "$ac_cpp_err"; then
13627 ac_header_preproc=yes
13628else
13629 echo "$as_me: failed program was:" >&5
13630sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_header_preproc=no
13633fi
13634rm -f conftest.err conftest.$ac_ext
13635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13636echo "${ECHO_T}$ac_header_preproc" >&6
13637
13638# So? What about this header?
ac1cb8d3
VS
13639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13640 yes:no: )
a848cd7e
SC
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13645 ac_header_preproc=yes
a848cd7e 13646 ;;
ac1cb8d3 13647 no:yes:* )
a848cd7e
SC
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13660 (
13661 cat <<\_ASBOX
ac1cb8d3
VS
13662## ----------------------------------------- ##
13663## Report this to wx-dev@lists.wxwidgets.org ##
13664## ----------------------------------------- ##
a848cd7e
SC
13665_ASBOX
13666 ) |
13667 sed "s/^/$as_me: WARNING: /" >&2
13668 ;;
13669esac
13670echo "$as_me:$LINENO: checking for $ac_header" >&5
13671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13672if eval "test \"\${$as_ac_Header+set}\" = set"; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674else
ac1cb8d3 13675 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13676fi
13677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13679
13680fi
13681if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682 cat >>confdefs.h <<_ACEOF
13683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684_ACEOF
13685
13686fi
13687
13688done
13689
13690
13691for ac_header in wchar.h
13692do
13693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13694if eval "test \"\${$as_ac_Header+set}\" = set"; then
13695 echo "$as_me:$LINENO: checking for $ac_header" >&5
13696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13697if eval "test \"\${$as_ac_Header+set}\" = set"; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699fi
13700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13702else
13703 # Is the header compilable?
13704echo "$as_me:$LINENO: checking $ac_header usability" >&5
13705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13706cat >conftest.$ac_ext <<_ACEOF
13707/* confdefs.h. */
13708_ACEOF
13709cat confdefs.h >>conftest.$ac_ext
13710cat >>conftest.$ac_ext <<_ACEOF
13711/* end confdefs.h. */
13712$ac_includes_default
13713#include <$ac_header>
13714_ACEOF
13715rm -f conftest.$ac_objext
13716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13717 (eval $ac_compile) 2>conftest.er1
a848cd7e 13718 ac_status=$?
ac1cb8d3
VS
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
a848cd7e
SC
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
89be85c2
VS
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
ac1cb8d3
VS
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_header_compiler=yes
13738else
13739 echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742ac_header_compiler=no
13743fi
ac1cb8d3 13744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13746echo "${ECHO_T}$ac_header_compiler" >&6
13747
13748# Is the header present?
13749echo "$as_me:$LINENO: checking $ac_header presence" >&5
13750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13751cat >conftest.$ac_ext <<_ACEOF
13752/* confdefs.h. */
13753_ACEOF
13754cat confdefs.h >>conftest.$ac_ext
13755cat >>conftest.$ac_ext <<_ACEOF
13756/* end confdefs.h. */
13757#include <$ac_header>
13758_ACEOF
13759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } >/dev/null; then
13767 if test -s conftest.err; then
13768 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13770 else
13771 ac_cpp_err=
13772 fi
13773else
13774 ac_cpp_err=yes
13775fi
13776if test -z "$ac_cpp_err"; then
13777 ac_header_preproc=yes
13778else
13779 echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782 ac_header_preproc=no
13783fi
13784rm -f conftest.err conftest.$ac_ext
13785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13786echo "${ECHO_T}$ac_header_preproc" >&6
13787
13788# So? What about this header?
ac1cb8d3
VS
13789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13790 yes:no: )
a848cd7e
SC
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13795 ac_header_preproc=yes
a848cd7e 13796 ;;
ac1cb8d3 13797 no:yes:* )
a848cd7e
SC
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13801echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13805echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13810 (
13811 cat <<\_ASBOX
ac1cb8d3
VS
13812## ----------------------------------------- ##
13813## Report this to wx-dev@lists.wxwidgets.org ##
13814## ----------------------------------------- ##
a848cd7e
SC
13815_ASBOX
13816 ) |
13817 sed "s/^/$as_me: WARNING: /" >&2
13818 ;;
13819esac
13820echo "$as_me:$LINENO: checking for $ac_header" >&5
13821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13822if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824else
ac1cb8d3 13825 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13826fi
13827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13829
13830fi
13831if test `eval echo '${'$as_ac_Header'}'` = yes; then
13832 cat >>confdefs.h <<_ACEOF
13833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13834_ACEOF
13835
13836fi
13837
13838done
13839
13840
13841if test "$ac_cv_header_wchar_h" != "yes"; then
13842
13843for ac_header in wcstr.h
13844do
13845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13846if eval "test \"\${$as_ac_Header+set}\" = set"; then
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851fi
13852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13854else
13855 # Is the header compilable?
13856echo "$as_me:$LINENO: checking $ac_header usability" >&5
13857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13858cat >conftest.$ac_ext <<_ACEOF
13859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
13864$ac_includes_default
13865#include <$ac_header>
13866_ACEOF
13867rm -f conftest.$ac_objext
13868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13869 (eval $ac_compile) 2>conftest.er1
a848cd7e 13870 ac_status=$?
ac1cb8d3
VS
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
a848cd7e
SC
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
89be85c2
VS
13876 { ac_try='test -z "$ac_c_werror_flag"
13877 || test ! -s conftest.err'
ac1cb8d3
VS
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; } &&
13883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13889 ac_header_compiler=yes
13890else
13891 echo "$as_me: failed program was:" >&5
13892sed 's/^/| /' conftest.$ac_ext >&5
13893
13894ac_header_compiler=no
13895fi
ac1cb8d3 13896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13898echo "${ECHO_T}$ac_header_compiler" >&6
13899
13900# Is the header present?
13901echo "$as_me:$LINENO: checking $ac_header presence" >&5
13902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13903cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909#include <$ac_header>
13910_ACEOF
13911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } >/dev/null; then
13919 if test -s conftest.err; then
13920 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13922 else
13923 ac_cpp_err=
13924 fi
13925else
13926 ac_cpp_err=yes
13927fi
13928if test -z "$ac_cpp_err"; then
13929 ac_header_preproc=yes
13930else
13931 echo "$as_me: failed program was:" >&5
13932sed 's/^/| /' conftest.$ac_ext >&5
13933
13934 ac_header_preproc=no
13935fi
13936rm -f conftest.err conftest.$ac_ext
13937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13938echo "${ECHO_T}$ac_header_preproc" >&6
13939
13940# So? What about this header?
ac1cb8d3
VS
13941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13942 yes:no: )
a848cd7e
SC
13943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13947 ac_header_preproc=yes
a848cd7e 13948 ;;
ac1cb8d3 13949 no:yes:* )
a848cd7e
SC
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13962 (
13963 cat <<\_ASBOX
ac1cb8d3
VS
13964## ----------------------------------------- ##
13965## Report this to wx-dev@lists.wxwidgets.org ##
13966## ----------------------------------------- ##
a848cd7e
SC
13967_ASBOX
13968 ) |
13969 sed "s/^/$as_me: WARNING: /" >&2
13970 ;;
13971esac
13972echo "$as_me:$LINENO: checking for $ac_header" >&5
13973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13974if eval "test \"\${$as_ac_Header+set}\" = set"; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
ac1cb8d3 13977 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13978fi
13979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13981
13982fi
13983if test `eval echo '${'$as_ac_Header'}'` = yes; then
13984 cat >>confdefs.h <<_ACEOF
13985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13986_ACEOF
13987
13988fi
13989
13990done
13991
13992fi
13993
13994
13995for ac_header in fnmatch.h
13996do
13997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo "$as_me:$LINENO: checking for $ac_header" >&5
14000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001if eval "test \"\${$as_ac_Header+set}\" = set"; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003fi
14004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14006else
14007 # Is the header compilable?
14008echo "$as_me:$LINENO: checking $ac_header usability" >&5
14009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14010cat >conftest.$ac_ext <<_ACEOF
14011/* confdefs.h. */
14012_ACEOF
14013cat confdefs.h >>conftest.$ac_ext
14014cat >>conftest.$ac_ext <<_ACEOF
14015/* end confdefs.h. */
14016$ac_includes_default
14017#include <$ac_header>
14018_ACEOF
14019rm -f conftest.$ac_objext
14020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14021 (eval $ac_compile) 2>conftest.er1
a848cd7e 14022 ac_status=$?
ac1cb8d3
VS
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
a848cd7e
SC
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
89be85c2
VS
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_header_compiler=yes
14042else
14043 echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046ac_header_compiler=no
14047fi
ac1cb8d3 14048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050echo "${ECHO_T}$ac_header_compiler" >&6
14051
14052# Is the header present?
14053echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14055cat >conftest.$ac_ext <<_ACEOF
14056/* confdefs.h. */
14057_ACEOF
14058cat confdefs.h >>conftest.$ac_ext
14059cat >>conftest.$ac_ext <<_ACEOF
14060/* end confdefs.h. */
14061#include <$ac_header>
14062_ACEOF
14063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null; then
14071 if test -s conftest.err; then
14072 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14074 else
14075 ac_cpp_err=
14076 fi
14077else
14078 ac_cpp_err=yes
14079fi
14080if test -z "$ac_cpp_err"; then
14081 ac_header_preproc=yes
14082else
14083 echo "$as_me: failed program was:" >&5
14084sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_preproc=no
14087fi
14088rm -f conftest.err conftest.$ac_ext
14089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090echo "${ECHO_T}$ac_header_preproc" >&6
14091
14092# So? What about this header?
ac1cb8d3
VS
14093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094 yes:no: )
a848cd7e
SC
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
a848cd7e 14100 ;;
ac1cb8d3 14101 no:yes:* )
a848cd7e
SC
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14114 (
14115 cat <<\_ASBOX
ac1cb8d3
VS
14116## ----------------------------------------- ##
14117## Report this to wx-dev@lists.wxwidgets.org ##
14118## ----------------------------------------- ##
a848cd7e
SC
14119_ASBOX
14120 ) |
14121 sed "s/^/$as_me: WARNING: /" >&2
14122 ;;
14123esac
14124echo "$as_me:$LINENO: checking for $ac_header" >&5
14125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128else
ac1cb8d3 14129 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14130fi
14131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14133
14134fi
14135if test `eval echo '${'$as_ac_Header'}'` = yes; then
14136 cat >>confdefs.h <<_ACEOF
14137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14138_ACEOF
14139
14140fi
14141
14142done
14143
14144
14145if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14146
14147for ac_func in fnmatch
14148do
14149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14150echo "$as_me:$LINENO: checking for $ac_func" >&5
14151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14152if eval "test \"\${$as_ac_var+set}\" = set"; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14154else
14155 cat >conftest.$ac_ext <<_ACEOF
14156/* confdefs.h. */
14157_ACEOF
14158cat confdefs.h >>conftest.$ac_ext
14159cat >>conftest.$ac_ext <<_ACEOF
14160/* end confdefs.h. */
ac1cb8d3
VS
14161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14163#define $ac_func innocuous_$ac_func
14164
a848cd7e
SC
14165/* System header to define __stub macros and hopefully few prototypes,
14166 which can conflict with char $ac_func (); below.
14167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14168 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14169
a848cd7e
SC
14170#ifdef __STDC__
14171# include <limits.h>
14172#else
14173# include <assert.h>
14174#endif
ac1cb8d3
VS
14175
14176#undef $ac_func
14177
a848cd7e
SC
14178/* Override any gcc2 internal prototype to avoid an error. */
14179#ifdef __cplusplus
14180extern "C"
14181{
14182#endif
14183/* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14185char $ac_func ();
14186/* The GNU C library defines this for functions which it implements
14187 to always fail with ENOSYS. Some functions are actually named
14188 something starting with __ and the normal name is an alias. */
14189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14190choke me
14191#else
14192char (*f) () = $ac_func;
14193#endif
14194#ifdef __cplusplus
14195}
14196#endif
14197
14198int
14199main ()
14200{
14201return f != $ac_func;
14202 ;
14203 return 0;
14204}
14205_ACEOF
14206rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14208 (eval $ac_link) 2>conftest.er1
a848cd7e 14209 ac_status=$?
ac1cb8d3
VS
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
a848cd7e
SC
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
89be85c2
VS
14215 { ac_try='test -z "$ac_c_werror_flag"
14216 || test ! -s conftest.err'
ac1cb8d3
VS
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 eval "$as_ac_var=yes"
14229else
14230 echo "$as_me: failed program was:" >&5
14231sed 's/^/| /' conftest.$ac_ext >&5
14232
14233eval "$as_ac_var=no"
14234fi
ac1cb8d3
VS
14235rm -f conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14237fi
14238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14240if test `eval echo '${'$as_ac_var'}'` = yes; then
14241 cat >>confdefs.h <<_ACEOF
14242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14243_ACEOF
14244
14245fi
14246done
14247
14248fi
14249
14250
14251for ac_header in langinfo.h
14252do
14253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14254if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo "$as_me:$LINENO: checking for $ac_header" >&5
14256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14257if eval "test \"\${$as_ac_Header+set}\" = set"; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259fi
14260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14262else
14263 # Is the header compilable?
14264echo "$as_me:$LINENO: checking $ac_header usability" >&5
14265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14266cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
14271/* end confdefs.h. */
14272$ac_includes_default
14273#include <$ac_header>
14274_ACEOF
14275rm -f conftest.$ac_objext
14276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14277 (eval $ac_compile) 2>conftest.er1
a848cd7e 14278 ac_status=$?
ac1cb8d3
VS
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
a848cd7e
SC
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
89be85c2
VS
14284 { ac_try='test -z "$ac_c_werror_flag"
14285 || test ! -s conftest.err'
ac1cb8d3
VS
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_header_compiler=yes
14298else
14299 echo "$as_me: failed program was:" >&5
14300sed 's/^/| /' conftest.$ac_ext >&5
14301
14302ac_header_compiler=no
14303fi
ac1cb8d3 14304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14306echo "${ECHO_T}$ac_header_compiler" >&6
14307
14308# Is the header present?
14309echo "$as_me:$LINENO: checking $ac_header presence" >&5
14310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14311cat >conftest.$ac_ext <<_ACEOF
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
14316/* end confdefs.h. */
14317#include <$ac_header>
14318_ACEOF
14319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } >/dev/null; then
14327 if test -s conftest.err; then
14328 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14330 else
14331 ac_cpp_err=
14332 fi
14333else
14334 ac_cpp_err=yes
14335fi
14336if test -z "$ac_cpp_err"; then
14337 ac_header_preproc=yes
14338else
14339 echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_header_preproc=no
14343fi
14344rm -f conftest.err conftest.$ac_ext
14345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14346echo "${ECHO_T}$ac_header_preproc" >&6
14347
14348# So? What about this header?
ac1cb8d3
VS
14349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14350 yes:no: )
a848cd7e
SC
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14355 ac_header_preproc=yes
a848cd7e 14356 ;;
ac1cb8d3 14357 no:yes:* )
a848cd7e
SC
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14370 (
14371 cat <<\_ASBOX
ac1cb8d3
VS
14372## ----------------------------------------- ##
14373## Report this to wx-dev@lists.wxwidgets.org ##
14374## ----------------------------------------- ##
a848cd7e
SC
14375_ASBOX
14376 ) |
14377 sed "s/^/$as_me: WARNING: /" >&2
14378 ;;
14379esac
14380echo "$as_me:$LINENO: checking for $ac_header" >&5
14381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14382if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384else
ac1cb8d3 14385 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14386fi
14387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14389
14390fi
14391if test `eval echo '${'$as_ac_Header'}'` = yes; then
14392 cat >>confdefs.h <<_ACEOF
14393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14394_ACEOF
14395
14396fi
14397
14398done
14399
14400
14401case "${host}" in
14402 *-pc-os2_emx | *-pc-os2-emx )
14403 if test $ac_cv_header_langinfo_h = "yes"; then
14404 LIBS="$LIBS -lintl"
14405 fi
14406 ;;
14407esac
14408
14409if test "$wxUSE_GUI" = "yes"; then
14410 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14411
14412for ac_header in X11/Xlib.h
14413do
14414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14415if eval "test \"\${$as_ac_Header+set}\" = set"; then
14416 echo "$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
14420fi
14421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14423else
14424 # Is the header compilable?
14425echo "$as_me:$LINENO: checking $ac_header usability" >&5
14426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14427cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h. */
14433$ac_includes_default
14434#include <$ac_header>
14435_ACEOF
14436rm -f conftest.$ac_objext
14437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14438 (eval $ac_compile) 2>conftest.er1
a848cd7e 14439 ac_status=$?
ac1cb8d3
VS
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
a848cd7e
SC
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
89be85c2
VS
14445 { ac_try='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
ac1cb8d3
VS
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_header_compiler=yes
14459else
14460 echo "$as_me: failed program was:" >&5
14461sed 's/^/| /' conftest.$ac_ext >&5
14462
14463ac_header_compiler=no
14464fi
ac1cb8d3 14465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467echo "${ECHO_T}$ac_header_compiler" >&6
14468
14469# Is the header present?
14470echo "$as_me:$LINENO: checking $ac_header presence" >&5
14471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14472cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478#include <$ac_header>
14479_ACEOF
14480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } >/dev/null; then
14488 if test -s conftest.err; then
14489 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14491 else
14492 ac_cpp_err=
14493 fi
14494else
14495 ac_cpp_err=yes
14496fi
14497if test -z "$ac_cpp_err"; then
14498 ac_header_preproc=yes
14499else
14500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_header_preproc=no
14504fi
14505rm -f conftest.err conftest.$ac_ext
14506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507echo "${ECHO_T}$ac_header_preproc" >&6
14508
14509# So? What about this header?
ac1cb8d3
VS
14510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 yes:no: )
a848cd7e
SC
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14516 ac_header_preproc=yes
a848cd7e 14517 ;;
ac1cb8d3 14518 no:yes:* )
a848cd7e
SC
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14531 (
14532 cat <<\_ASBOX
ac1cb8d3
VS
14533## ----------------------------------------- ##
14534## Report this to wx-dev@lists.wxwidgets.org ##
14535## ----------------------------------------- ##
a848cd7e
SC
14536_ASBOX
14537 ) |
14538 sed "s/^/$as_me: WARNING: /" >&2
14539 ;;
14540esac
14541echo "$as_me:$LINENO: checking for $ac_header" >&5
14542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14543if eval "test \"\${$as_ac_Header+set}\" = set"; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14545else
ac1cb8d3 14546 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14547fi
14548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14550
14551fi
14552if test `eval echo '${'$as_ac_Header'}'` = yes; then
14553 cat >>confdefs.h <<_ACEOF
14554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14555_ACEOF
14556
14557fi
14558
14559done
14560
14561
14562for ac_header in X11/XKBlib.h
14563do
14564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14565echo "$as_me:$LINENO: checking for $ac_header" >&5
14566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14567if eval "test \"\${$as_ac_Header+set}\" = set"; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
14570 cat >conftest.$ac_ext <<_ACEOF
14571/* confdefs.h. */
14572_ACEOF
14573cat confdefs.h >>conftest.$ac_ext
14574cat >>conftest.$ac_ext <<_ACEOF
14575/* end confdefs.h. */
14576
14577 #if HAVE_X11_XLIB_H
14578 #include <X11/Xlib.h>
14579 #endif
14580
14581
14582#include <$ac_header>
14583_ACEOF
14584rm -f conftest.$ac_objext
14585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14586 (eval $ac_compile) 2>conftest.er1
a848cd7e 14587 ac_status=$?
ac1cb8d3
VS
14588 grep -v '^ *+' conftest.er1 >conftest.err
14589 rm -f conftest.er1
14590 cat conftest.err >&5
a848cd7e
SC
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
89be85c2
VS
14593 { ac_try='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
ac1cb8d3
VS
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 eval "$as_ac_Header=yes"
14607else
14608 echo "$as_me: failed program was:" >&5
14609sed 's/^/| /' conftest.$ac_ext >&5
14610
14611eval "$as_ac_Header=no"
14612fi
ac1cb8d3 14613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14614fi
14615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14617if test `eval echo '${'$as_ac_Header'}'` = yes; then
14618 cat >>confdefs.h <<_ACEOF
14619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14620_ACEOF
14621
14622fi
14623
14624done
14625
14626 fi
14627fi
14628
14629
14630echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14631echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14632if test "${ac_cv_c_const+set}" = set; then
14633 echo $ECHO_N "(cached) $ECHO_C" >&6
14634else
14635 cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641
14642int
14643main ()
14644{
14645/* FIXME: Include the comments suggested by Paul. */
14646#ifndef __cplusplus
14647 /* Ultrix mips cc rejects this. */
14648 typedef int charset[2];
14649 const charset x;
14650 /* SunOS 4.1.1 cc rejects this. */
14651 char const *const *ccp;
14652 char **p;
14653 /* NEC SVR4.0.2 mips cc rejects this. */
14654 struct point {int x, y;};
14655 static struct point const zero = {0,0};
14656 /* AIX XL C 1.02.0.0 rejects this.
14657 It does not let you subtract one const X* pointer from another in
14658 an arm of an if-expression whose if-part is not a constant
14659 expression */
14660 const char *g = "string";
14661 ccp = &g + (g ? g-g : 0);
14662 /* HPUX 7.0 cc rejects these. */
14663 ++ccp;
14664 p = (char**) ccp;
14665 ccp = (char const *const *) p;
14666 { /* SCO 3.2v4 cc rejects this. */
14667 char *t;
14668 char const *s = 0 ? (char *) 0 : (char const *) 0;
14669
14670 *t++ = 0;
14671 }
14672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14673 int x[] = {25, 17};
14674 const int *foo = &x[0];
14675 ++foo;
14676 }
14677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14678 typedef const int *iptr;
14679 iptr p = 0;
14680 ++p;
14681 }
14682 { /* AIX XL C 1.02.0.0 rejects this saying
14683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14684 struct s { int j; const int *ap[3]; };
14685 struct s *b; b->j = 5;
14686 }
14687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14688 const int foo = 10;
14689 }
14690#endif
14691
14692 ;
14693 return 0;
14694}
14695_ACEOF
14696rm -f conftest.$ac_objext
14697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14698 (eval $ac_compile) 2>conftest.er1
a848cd7e 14699 ac_status=$?
ac1cb8d3
VS
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
a848cd7e
SC
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
89be85c2
VS
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
ac1cb8d3
VS
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_c_const=yes
14719else
14720 echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
14723ac_cv_c_const=no
14724fi
ac1cb8d3 14725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14726fi
14727echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14728echo "${ECHO_T}$ac_cv_c_const" >&6
14729if test $ac_cv_c_const = no; then
14730
14731cat >>confdefs.h <<\_ACEOF
14732#define const
14733_ACEOF
14734
14735fi
14736
14737echo "$as_me:$LINENO: checking for inline" >&5
14738echo $ECHO_N "checking for inline... $ECHO_C" >&6
14739if test "${ac_cv_c_inline+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 ac_cv_c_inline=no
14743for ac_kw in inline __inline__ __inline; do
14744 cat >conftest.$ac_ext <<_ACEOF
14745/* confdefs.h. */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
14749/* end confdefs.h. */
14750#ifndef __cplusplus
14751typedef int foo_t;
14752static $ac_kw foo_t static_foo () {return 0; }
14753$ac_kw foo_t foo () {return 0; }
14754#endif
14755
14756_ACEOF
14757rm -f conftest.$ac_objext
14758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14759 (eval $ac_compile) 2>conftest.er1
a848cd7e 14760 ac_status=$?
ac1cb8d3
VS
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
a848cd7e
SC
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
89be85c2
VS
14766 { ac_try='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
ac1cb8d3
VS
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14779 ac_cv_c_inline=$ac_kw; break
14780else
14781 echo "$as_me: failed program was:" >&5
14782sed 's/^/| /' conftest.$ac_ext >&5
14783
14784fi
ac1cb8d3 14785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14786done
14787
14788fi
14789echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14790echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14791
14792
a848cd7e
SC
14793case $ac_cv_c_inline in
14794 inline | yes) ;;
ac1cb8d3
VS
14795 *)
14796 case $ac_cv_c_inline in
14797 no) ac_val=;;
14798 *) ac_val=$ac_cv_c_inline;;
14799 esac
14800 cat >>confdefs.h <<_ACEOF
14801#ifndef __cplusplus
14802#define inline $ac_val
14803#endif
de59c161 14804_ACEOF
ac1cb8d3 14805 ;;
a848cd7e
SC
14806esac
14807
14808
14809echo "$as_me:$LINENO: checking for char" >&5
14810echo $ECHO_N "checking for char... $ECHO_C" >&6
14811if test "${ac_cv_type_char+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813else
14814 cat >conftest.$ac_ext <<_ACEOF
14815/* confdefs.h. */
14816_ACEOF
14817cat confdefs.h >>conftest.$ac_ext
14818cat >>conftest.$ac_ext <<_ACEOF
14819/* end confdefs.h. */
14820$ac_includes_default
14821int
14822main ()
14823{
14824if ((char *) 0)
14825 return 0;
14826if (sizeof (char))
14827 return 0;
14828 ;
14829 return 0;
14830}
14831_ACEOF
14832rm -f conftest.$ac_objext
14833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14834 (eval $ac_compile) 2>conftest.er1
a848cd7e 14835 ac_status=$?
ac1cb8d3
VS
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
a848cd7e
SC
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
89be85c2
VS
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
ac1cb8d3
VS
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_type_char=yes
14855else
14856 echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
14859ac_cv_type_char=no
14860fi
ac1cb8d3 14861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14862fi
14863echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14864echo "${ECHO_T}$ac_cv_type_char" >&6
14865
14866echo "$as_me:$LINENO: checking size of char" >&5
14867echo $ECHO_N "checking size of char... $ECHO_C" >&6
14868if test "${ac_cv_sizeof_char+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870else
14871 if test "$ac_cv_type_char" = yes; then
14872 # The cast to unsigned long works around a bug in the HP C Compiler
14873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14875 # This bug is HP SR number 8606223364.
14876 if test "$cross_compiling" = yes; then
14877 # Depending upon the size, compute the lo and hi bounds.
14878cat >conftest.$ac_ext <<_ACEOF
14879/* confdefs.h. */
14880_ACEOF
14881cat confdefs.h >>conftest.$ac_ext
14882cat >>conftest.$ac_ext <<_ACEOF
14883/* end confdefs.h. */
14884$ac_includes_default
14885int
14886main ()
14887{
14888static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14889test_array [0] = 0
14890
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext
14896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14897 (eval $ac_compile) 2>conftest.er1
a848cd7e 14898 ac_status=$?
ac1cb8d3
VS
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
a848cd7e
SC
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
89be85c2
VS
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
ac1cb8d3
VS
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_lo=0 ac_mid=0
14918 while :; do
14919 cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925$ac_includes_default
14926int
14927main ()
14928{
14929static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14930test_array [0] = 0
14931
14932 ;
14933 return 0;
14934}
14935_ACEOF
14936rm -f conftest.$ac_objext
14937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14938 (eval $ac_compile) 2>conftest.er1
a848cd7e 14939 ac_status=$?
ac1cb8d3
VS
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
a848cd7e
SC
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
89be85c2
VS
14945 { ac_try='test -z "$ac_c_werror_flag"
14946 || test ! -s conftest.err'
ac1cb8d3
VS
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_hi=$ac_mid; break
14959else
14960 echo "$as_me: failed program was:" >&5
14961sed 's/^/| /' conftest.$ac_ext >&5
14962
14963ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14964 if test $ac_lo -le $ac_mid; then
14965 ac_lo= ac_hi=
14966 break
14967 fi
14968 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14969fi
ac1cb8d3 14970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14971 done
14972else
14973 echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
14975
14976cat >conftest.$ac_ext <<_ACEOF
14977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
14982$ac_includes_default
14983int
14984main ()
14985{
14986static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14987test_array [0] = 0
14988
14989 ;
14990 return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext
14994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14995 (eval $ac_compile) 2>conftest.er1
a848cd7e 14996 ac_status=$?
ac1cb8d3
VS
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
a848cd7e
SC
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
89be85c2
VS
15002 { ac_try='test -z "$ac_c_werror_flag"
15003 || test ! -s conftest.err'
ac1cb8d3
VS
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_hi=-1 ac_mid=-1
15016 while :; do
15017 cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */
15023$ac_includes_default
15024int
15025main ()
15026{
15027static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15028test_array [0] = 0
15029
15030 ;
15031 return 0;
15032}
15033_ACEOF
15034rm -f conftest.$ac_objext
15035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15036 (eval $ac_compile) 2>conftest.er1
a848cd7e 15037 ac_status=$?
ac1cb8d3
VS
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
a848cd7e
SC
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
89be85c2
VS
15043 { ac_try='test -z "$ac_c_werror_flag"
15044 || test ! -s conftest.err'
ac1cb8d3
VS
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; } &&
15050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; }; then
15056 ac_lo=$ac_mid; break
15057else
15058 echo "$as_me: failed program was:" >&5
15059sed 's/^/| /' conftest.$ac_ext >&5
15060
15061ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15062 if test $ac_mid -le $ac_hi; then
15063 ac_lo= ac_hi=
15064 break
15065 fi
15066 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15067fi
ac1cb8d3 15068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15069 done
15070else
15071 echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074ac_lo= ac_hi=
15075fi
ac1cb8d3 15076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15077fi
ac1cb8d3 15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15079# Binary search between lo and hi bounds.
15080while test "x$ac_lo" != "x$ac_hi"; do
15081 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15082 cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
15088$ac_includes_default
15089int
15090main ()
15091{
15092static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15093test_array [0] = 0
15094
15095 ;
15096 return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext
15100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15101 (eval $ac_compile) 2>conftest.er1
a848cd7e 15102 ac_status=$?
ac1cb8d3
VS
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -f conftest.er1
15105 cat conftest.err >&5
a848cd7e
SC
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
89be85c2
VS
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
ac1cb8d3
VS
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_hi=$ac_mid
15122else
15123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126ac_lo=`expr '(' $ac_mid ')' + 1`
15127fi
ac1cb8d3 15128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15129done
15130case $ac_lo in
15131?*) ac_cv_sizeof_char=$ac_lo;;
15132'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15133See \`config.log' for more details." >&5
15134echo "$as_me: error: cannot compute sizeof (char), 77
15135See \`config.log' for more details." >&2;}
15136 { (exit 1); exit 1; }; } ;;
15137esac
15138else
15139 if test "$cross_compiling" = yes; then
89be85c2
VS
15140 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15141See \`config.log' for more details." >&5
15142echo "$as_me: error: cannot run test program while cross compiling
15143See \`config.log' for more details." >&2;}
a848cd7e
SC
15144 { (exit 1); exit 1; }; }
15145else
15146 cat >conftest.$ac_ext <<_ACEOF
15147/* confdefs.h. */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
15151/* end confdefs.h. */
15152$ac_includes_default
15153long longval () { return (long) (sizeof (char)); }
15154unsigned long ulongval () { return (long) (sizeof (char)); }
15155#include <stdio.h>
15156#include <stdlib.h>
15157int
15158main ()
15159{
15160
15161 FILE *f = fopen ("conftest.val", "w");
15162 if (! f)
15163 exit (1);
15164 if (((long) (sizeof (char))) < 0)
15165 {
15166 long i = longval ();
15167 if (i != ((long) (sizeof (char))))
15168 exit (1);
15169 fprintf (f, "%ld\n", i);
15170 }
15171 else
15172 {
15173 unsigned long i = ulongval ();
15174 if (i != ((long) (sizeof (char))))
15175 exit (1);
15176 fprintf (f, "%lu\n", i);
15177 }
15178 exit (ferror (f) || fclose (f) != 0);
15179
15180 ;
15181 return 0;
15182}
15183_ACEOF
15184rm -f conftest$ac_exeext
15185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186 (eval $ac_link) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_cv_sizeof_char=`cat conftest.val`
15196else
15197 echo "$as_me: program exited with status $ac_status" >&5
15198echo "$as_me: failed program was:" >&5
15199sed 's/^/| /' conftest.$ac_ext >&5
15200
15201( exit $ac_status )
15202{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15203See \`config.log' for more details." >&5
15204echo "$as_me: error: cannot compute sizeof (char), 77
15205See \`config.log' for more details." >&2;}
15206 { (exit 1); exit 1; }; }
15207fi
ac1cb8d3 15208rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15209fi
15210fi
15211rm -f conftest.val
15212else
15213 ac_cv_sizeof_char=0
15214fi
15215fi
15216echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15217echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15218cat >>confdefs.h <<_ACEOF
15219#define SIZEOF_CHAR $ac_cv_sizeof_char
15220_ACEOF
15221
15222
15223echo "$as_me:$LINENO: checking for short" >&5
15224echo $ECHO_N "checking for short... $ECHO_C" >&6
15225if test "${ac_cv_type_short+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$ac_includes_default
15235int
15236main ()
15237{
15238if ((short *) 0)
15239 return 0;
15240if (sizeof (short))
15241 return 0;
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15248 (eval $ac_compile) 2>conftest.er1
a848cd7e 15249 ac_status=$?
ac1cb8d3
VS
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
a848cd7e
SC
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
89be85c2
VS
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
ac1cb8d3
VS
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_cv_type_short=yes
15269else
15270 echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
15272
15273ac_cv_type_short=no
15274fi
ac1cb8d3 15275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15276fi
15277echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15278echo "${ECHO_T}$ac_cv_type_short" >&6
15279
15280echo "$as_me:$LINENO: checking size of short" >&5
15281echo $ECHO_N "checking size of short... $ECHO_C" >&6
15282if test "${ac_cv_sizeof_short+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284else
15285 if test "$ac_cv_type_short" = yes; then
15286 # The cast to unsigned long works around a bug in the HP C Compiler
15287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15289 # This bug is HP SR number 8606223364.
15290 if test "$cross_compiling" = yes; then
15291 # Depending upon the size, compute the lo and hi bounds.
15292cat >conftest.$ac_ext <<_ACEOF
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
15297/* end confdefs.h. */
15298$ac_includes_default
15299int
15300main ()
15301{
15302static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15303test_array [0] = 0
15304
15305 ;
15306 return 0;
15307}
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15311 (eval $ac_compile) 2>conftest.er1
a848cd7e 15312 ac_status=$?
ac1cb8d3
VS
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
a848cd7e
SC
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
89be85c2
VS
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
ac1cb8d3
VS
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_lo=0 ac_mid=0
15332 while :; do
15333 cat >conftest.$ac_ext <<_ACEOF
15334/* confdefs.h. */
15335_ACEOF
15336cat confdefs.h >>conftest.$ac_ext
15337cat >>conftest.$ac_ext <<_ACEOF
15338/* end confdefs.h. */
15339$ac_includes_default
15340int
15341main ()
15342{
15343static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15344test_array [0] = 0
15345
15346 ;
15347 return 0;
15348}
15349_ACEOF
15350rm -f conftest.$ac_objext
15351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15352 (eval $ac_compile) 2>conftest.er1
a848cd7e 15353 ac_status=$?
ac1cb8d3
VS
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
a848cd7e
SC
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
89be85c2
VS
15359 { ac_try='test -z "$ac_c_werror_flag"
15360 || test ! -s conftest.err'
ac1cb8d3
VS
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_hi=$ac_mid; break
15373else
15374 echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15378 if test $ac_lo -le $ac_mid; then
15379 ac_lo= ac_hi=
15380 break
15381 fi
15382 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15383fi
ac1cb8d3 15384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15385 done
15386else
15387 echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390cat >conftest.$ac_ext <<_ACEOF
15391/* confdefs.h. */
15392_ACEOF
15393cat confdefs.h >>conftest.$ac_ext
15394cat >>conftest.$ac_ext <<_ACEOF
15395/* end confdefs.h. */
15396$ac_includes_default
15397int
15398main ()
15399{
15400static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15401test_array [0] = 0
15402
15403 ;
15404 return 0;
15405}
15406_ACEOF
15407rm -f conftest.$ac_objext
15408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15409 (eval $ac_compile) 2>conftest.er1
a848cd7e 15410 ac_status=$?
ac1cb8d3
VS
15411 grep -v '^ *+' conftest.er1 >conftest.err
15412 rm -f conftest.er1
15413 cat conftest.err >&5
a848cd7e
SC
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
89be85c2
VS
15416 { ac_try='test -z "$ac_c_werror_flag"
15417 || test ! -s conftest.err'
ac1cb8d3
VS
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_hi=-1 ac_mid=-1
15430 while :; do
15431 cat >conftest.$ac_ext <<_ACEOF
15432/* confdefs.h. */
15433_ACEOF
15434cat confdefs.h >>conftest.$ac_ext
15435cat >>conftest.$ac_ext <<_ACEOF
15436/* end confdefs.h. */
15437$ac_includes_default
15438int
15439main ()
15440{
15441static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15442test_array [0] = 0
15443
15444 ;
15445 return 0;
15446}
15447_ACEOF
15448rm -f conftest.$ac_objext
15449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15450 (eval $ac_compile) 2>conftest.er1
a848cd7e 15451 ac_status=$?
ac1cb8d3
VS
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
a848cd7e
SC
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
89be85c2
VS
15457 { ac_try='test -z "$ac_c_werror_flag"
15458 || test ! -s conftest.err'
ac1cb8d3
VS
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15470 ac_lo=$ac_mid; break
15471else
15472 echo "$as_me: failed program was:" >&5
15473sed 's/^/| /' conftest.$ac_ext >&5
15474
15475ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15476 if test $ac_mid -le $ac_hi; then
15477 ac_lo= ac_hi=
15478 break
15479 fi
15480 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15481fi
ac1cb8d3 15482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15483 done
15484else
15485 echo "$as_me: failed program was:" >&5
15486sed 's/^/| /' conftest.$ac_ext >&5
15487
15488ac_lo= ac_hi=
15489fi
ac1cb8d3 15490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15491fi
ac1cb8d3 15492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15493# Binary search between lo and hi bounds.
15494while test "x$ac_lo" != "x$ac_hi"; do
15495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15496 cat >conftest.$ac_ext <<_ACEOF
15497/* confdefs.h. */
15498_ACEOF
15499cat confdefs.h >>conftest.$ac_ext
15500cat >>conftest.$ac_ext <<_ACEOF
15501/* end confdefs.h. */
15502$ac_includes_default
15503int
15504main ()
15505{
15506static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15507test_array [0] = 0
15508
15509 ;
15510 return 0;
15511}
15512_ACEOF
15513rm -f conftest.$ac_objext
15514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15515 (eval $ac_compile) 2>conftest.er1
a848cd7e 15516 ac_status=$?
ac1cb8d3
VS
15517 grep -v '^ *+' conftest.er1 >conftest.err
15518 rm -f conftest.er1
15519 cat conftest.err >&5
a848cd7e
SC
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } &&
89be85c2
VS
15522 { ac_try='test -z "$ac_c_werror_flag"
15523 || test ! -s conftest.err'
ac1cb8d3
VS
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 ac_hi=$ac_mid
15536else
15537 echo "$as_me: failed program was:" >&5
15538sed 's/^/| /' conftest.$ac_ext >&5
15539
15540ac_lo=`expr '(' $ac_mid ')' + 1`
15541fi
ac1cb8d3 15542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15543done
15544case $ac_lo in
15545?*) ac_cv_sizeof_short=$ac_lo;;
15546'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15547See \`config.log' for more details." >&5
15548echo "$as_me: error: cannot compute sizeof (short), 77
15549See \`config.log' for more details." >&2;}
15550 { (exit 1); exit 1; }; } ;;
15551esac
15552else
15553 if test "$cross_compiling" = yes; then
89be85c2
VS
15554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15555See \`config.log' for more details." >&5
15556echo "$as_me: error: cannot run test program while cross compiling
15557See \`config.log' for more details." >&2;}
a848cd7e
SC
15558 { (exit 1); exit 1; }; }
15559else
15560 cat >conftest.$ac_ext <<_ACEOF
15561/* confdefs.h. */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h. */
15566$ac_includes_default
15567long longval () { return (long) (sizeof (short)); }
15568unsigned long ulongval () { return (long) (sizeof (short)); }
15569#include <stdio.h>
15570#include <stdlib.h>
15571int
15572main ()
15573{
15574
15575 FILE *f = fopen ("conftest.val", "w");
15576 if (! f)
15577 exit (1);
15578 if (((long) (sizeof (short))) < 0)
15579 {
15580 long i = longval ();
15581 if (i != ((long) (sizeof (short))))
15582 exit (1);
15583 fprintf (f, "%ld\n", i);
15584 }
15585 else
15586 {
15587 unsigned long i = ulongval ();
15588 if (i != ((long) (sizeof (short))))
15589 exit (1);
15590 fprintf (f, "%lu\n", i);
15591 }
15592 exit (ferror (f) || fclose (f) != 0);
15593
15594 ;
15595 return 0;
15596}
15597_ACEOF
15598rm -f conftest$ac_exeext
15599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600 (eval $ac_link) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_sizeof_short=`cat conftest.val`
15610else
15611 echo "$as_me: program exited with status $ac_status" >&5
15612echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615( exit $ac_status )
15616{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15617See \`config.log' for more details." >&5
15618echo "$as_me: error: cannot compute sizeof (short), 77
15619See \`config.log' for more details." >&2;}
15620 { (exit 1); exit 1; }; }
15621fi
ac1cb8d3 15622rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15623fi
15624fi
15625rm -f conftest.val
15626else
15627 ac_cv_sizeof_short=0
15628fi
15629fi
15630echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15631echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15632cat >>confdefs.h <<_ACEOF
15633#define SIZEOF_SHORT $ac_cv_sizeof_short
15634_ACEOF
15635
15636
15637echo "$as_me:$LINENO: checking for void *" >&5
15638echo $ECHO_N "checking for void *... $ECHO_C" >&6
15639if test "${ac_cv_type_void_p+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641else
15642 cat >conftest.$ac_ext <<_ACEOF
15643/* confdefs.h. */
15644_ACEOF
15645cat confdefs.h >>conftest.$ac_ext
15646cat >>conftest.$ac_ext <<_ACEOF
15647/* end confdefs.h. */
15648$ac_includes_default
15649int
15650main ()
15651{
15652if ((void * *) 0)
15653 return 0;
15654if (sizeof (void *))
15655 return 0;
15656 ;
15657 return 0;
15658}
15659_ACEOF
15660rm -f conftest.$ac_objext
15661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15662 (eval $ac_compile) 2>conftest.er1
a848cd7e 15663 ac_status=$?
ac1cb8d3
VS
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
a848cd7e
SC
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
89be85c2
VS
15669 { ac_try='test -z "$ac_c_werror_flag"
15670 || test ! -s conftest.err'
ac1cb8d3
VS
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_cv_type_void_p=yes
15683else
15684 echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687ac_cv_type_void_p=no
15688fi
ac1cb8d3 15689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15690fi
15691echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15692echo "${ECHO_T}$ac_cv_type_void_p" >&6
15693
15694echo "$as_me:$LINENO: checking size of void *" >&5
15695echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15696if test "${ac_cv_sizeof_void_p+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698else
15699 if test "$ac_cv_type_void_p" = yes; then
15700 # The cast to unsigned long works around a bug in the HP C Compiler
15701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15703 # This bug is HP SR number 8606223364.
15704 if test "$cross_compiling" = yes; then
15705 # Depending upon the size, compute the lo and hi bounds.
15706cat >conftest.$ac_ext <<_ACEOF
15707/* confdefs.h. */
15708_ACEOF
15709cat confdefs.h >>conftest.$ac_ext
15710cat >>conftest.$ac_ext <<_ACEOF
15711/* end confdefs.h. */
15712$ac_includes_default
15713int
15714main ()
15715{
15716static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15717test_array [0] = 0
15718
15719 ;
15720 return 0;
15721}
15722_ACEOF
15723rm -f conftest.$ac_objext
15724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15725 (eval $ac_compile) 2>conftest.er1
a848cd7e 15726 ac_status=$?
ac1cb8d3
VS
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
a848cd7e
SC
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
89be85c2
VS
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
ac1cb8d3
VS
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_lo=0 ac_mid=0
15746 while :; do
15747 cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
15753$ac_includes_default
15754int
15755main ()
15756{
15757static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15758test_array [0] = 0
15759
15760 ;
15761 return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext
15765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15766 (eval $ac_compile) 2>conftest.er1
a848cd7e 15767 ac_status=$?
ac1cb8d3
VS
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
a848cd7e
SC
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
89be85c2
VS
15773 { ac_try='test -z "$ac_c_werror_flag"
15774 || test ! -s conftest.err'
ac1cb8d3
VS
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786 ac_hi=$ac_mid; break
15787else
15788 echo "$as_me: failed program was:" >&5
15789sed 's/^/| /' conftest.$ac_ext >&5
15790
15791ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15792 if test $ac_lo -le $ac_mid; then
15793 ac_lo= ac_hi=
15794 break
15795 fi
15796 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15797fi
ac1cb8d3 15798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15799 done
15800else
15801 echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804cat >conftest.$ac_ext <<_ACEOF
15805/* confdefs.h. */
15806_ACEOF
15807cat confdefs.h >>conftest.$ac_ext
15808cat >>conftest.$ac_ext <<_ACEOF
15809/* end confdefs.h. */
15810$ac_includes_default
15811int
15812main ()
15813{
15814static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15815test_array [0] = 0
15816
15817 ;
15818 return 0;
15819}
15820_ACEOF
15821rm -f conftest.$ac_objext
15822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15823 (eval $ac_compile) 2>conftest.er1
a848cd7e 15824 ac_status=$?
ac1cb8d3
VS
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
a848cd7e
SC
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
89be85c2
VS
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
ac1cb8d3
VS
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_hi=-1 ac_mid=-1
15844 while :; do
15845 cat >conftest.$ac_ext <<_ACEOF
15846/* confdefs.h. */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
15851$ac_includes_default
15852int
15853main ()
15854{
15855static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15856test_array [0] = 0
15857
15858 ;
15859 return 0;
15860}
15861_ACEOF
15862rm -f conftest.$ac_objext
15863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15864 (eval $ac_compile) 2>conftest.er1
a848cd7e 15865 ac_status=$?
ac1cb8d3
VS
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
a848cd7e
SC
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
89be85c2
VS
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
ac1cb8d3
VS
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_lo=$ac_mid; break
15885else
15886 echo "$as_me: failed program was:" >&5
15887sed 's/^/| /' conftest.$ac_ext >&5
15888
15889ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15890 if test $ac_mid -le $ac_hi; then
15891 ac_lo= ac_hi=
15892 break
15893 fi
15894 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15895fi
ac1cb8d3 15896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15897 done
15898else
15899 echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
15902ac_lo= ac_hi=
15903fi
ac1cb8d3 15904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15905fi
ac1cb8d3 15906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15907# Binary search between lo and hi bounds.
15908while test "x$ac_lo" != "x$ac_hi"; do
15909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15910 cat >conftest.$ac_ext <<_ACEOF
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916$ac_includes_default
15917int
15918main ()
15919{
15920static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15921test_array [0] = 0
15922
15923 ;
15924 return 0;
15925}
15926_ACEOF
15927rm -f conftest.$ac_objext
15928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15929 (eval $ac_compile) 2>conftest.er1
a848cd7e 15930 ac_status=$?
ac1cb8d3
VS
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
a848cd7e
SC
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } &&
89be85c2
VS
15936 { ac_try='test -z "$ac_c_werror_flag"
15937 || test ! -s conftest.err'
ac1cb8d3
VS
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_hi=$ac_mid
15950else
15951 echo "$as_me: failed program was:" >&5
15952sed 's/^/| /' conftest.$ac_ext >&5
15953
15954ac_lo=`expr '(' $ac_mid ')' + 1`
15955fi
ac1cb8d3 15956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15957done
15958case $ac_lo in
15959?*) ac_cv_sizeof_void_p=$ac_lo;;
15960'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15961See \`config.log' for more details." >&5
15962echo "$as_me: error: cannot compute sizeof (void *), 77
15963See \`config.log' for more details." >&2;}
15964 { (exit 1); exit 1; }; } ;;
15965esac
15966else
15967 if test "$cross_compiling" = yes; then
89be85c2
VS
15968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15969See \`config.log' for more details." >&5
15970echo "$as_me: error: cannot run test program while cross compiling
15971See \`config.log' for more details." >&2;}
a848cd7e
SC
15972 { (exit 1); exit 1; }; }
15973else
15974 cat >conftest.$ac_ext <<_ACEOF
15975/* confdefs.h. */
15976_ACEOF
15977cat confdefs.h >>conftest.$ac_ext
15978cat >>conftest.$ac_ext <<_ACEOF
15979/* end confdefs.h. */
15980$ac_includes_default
15981long longval () { return (long) (sizeof (void *)); }
15982unsigned long ulongval () { return (long) (sizeof (void *)); }
15983#include <stdio.h>
15984#include <stdlib.h>
15985int
15986main ()
15987{
15988
15989 FILE *f = fopen ("conftest.val", "w");
15990 if (! f)
15991 exit (1);
15992 if (((long) (sizeof (void *))) < 0)
15993 {
15994 long i = longval ();
15995 if (i != ((long) (sizeof (void *))))
15996 exit (1);
15997 fprintf (f, "%ld\n", i);
15998 }
15999 else
16000 {
16001 unsigned long i = ulongval ();
16002 if (i != ((long) (sizeof (void *))))
16003 exit (1);
16004 fprintf (f, "%lu\n", i);
16005 }
16006 exit (ferror (f) || fclose (f) != 0);
16007
16008 ;
16009 return 0;
16010}
16011_ACEOF
16012rm -f conftest$ac_exeext
16013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16014 (eval $ac_link) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_cv_sizeof_void_p=`cat conftest.val`
16024else
16025 echo "$as_me: program exited with status $ac_status" >&5
16026echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029( exit $ac_status )
16030{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16031See \`config.log' for more details." >&5
16032echo "$as_me: error: cannot compute sizeof (void *), 77
16033See \`config.log' for more details." >&2;}
16034 { (exit 1); exit 1; }; }
16035fi
ac1cb8d3 16036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16037fi
16038fi
16039rm -f conftest.val
16040else
16041 ac_cv_sizeof_void_p=0
16042fi
16043fi
16044echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16045echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16046cat >>confdefs.h <<_ACEOF
16047#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16048_ACEOF
16049
16050
16051echo "$as_me:$LINENO: checking for int" >&5
16052echo $ECHO_N "checking for int... $ECHO_C" >&6
16053if test "${ac_cv_type_int+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16055else
16056 cat >conftest.$ac_ext <<_ACEOF
16057/* confdefs.h. */
16058_ACEOF
16059cat confdefs.h >>conftest.$ac_ext
16060cat >>conftest.$ac_ext <<_ACEOF
16061/* end confdefs.h. */
16062$ac_includes_default
16063int
16064main ()
16065{
16066if ((int *) 0)
16067 return 0;
16068if (sizeof (int))
16069 return 0;
16070 ;
16071 return 0;
16072}
16073_ACEOF
16074rm -f conftest.$ac_objext
16075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16076 (eval $ac_compile) 2>conftest.er1
a848cd7e 16077 ac_status=$?
ac1cb8d3
VS
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
a848cd7e
SC
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
89be85c2
VS
16083 { ac_try='test -z "$ac_c_werror_flag"
16084 || test ! -s conftest.err'
ac1cb8d3
VS
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_cv_type_int=yes
16097else
16098 echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101ac_cv_type_int=no
16102fi
ac1cb8d3 16103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16104fi
16105echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16106echo "${ECHO_T}$ac_cv_type_int" >&6
16107
16108echo "$as_me:$LINENO: checking size of int" >&5
16109echo $ECHO_N "checking size of int... $ECHO_C" >&6
16110if test "${ac_cv_sizeof_int+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112else
16113 if test "$ac_cv_type_int" = yes; then
16114 # The cast to unsigned long works around a bug in the HP C Compiler
16115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16117 # This bug is HP SR number 8606223364.
16118 if test "$cross_compiling" = yes; then
16119 # Depending upon the size, compute the lo and hi bounds.
16120cat >conftest.$ac_ext <<_ACEOF
16121/* confdefs.h. */
16122_ACEOF
16123cat confdefs.h >>conftest.$ac_ext
16124cat >>conftest.$ac_ext <<_ACEOF
16125/* end confdefs.h. */
16126$ac_includes_default
16127int
16128main ()
16129{
16130static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16131test_array [0] = 0
16132
16133 ;
16134 return 0;
16135}
16136_ACEOF
16137rm -f conftest.$ac_objext
16138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16139 (eval $ac_compile) 2>conftest.er1
a848cd7e 16140 ac_status=$?
ac1cb8d3
VS
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
a848cd7e
SC
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
89be85c2
VS
16146 { ac_try='test -z "$ac_c_werror_flag"
16147 || test ! -s conftest.err'
ac1cb8d3
VS
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 ac_lo=0 ac_mid=0
16160 while :; do
16161 cat >conftest.$ac_ext <<_ACEOF
16162/* confdefs.h. */
16163_ACEOF
16164cat confdefs.h >>conftest.$ac_ext
16165cat >>conftest.$ac_ext <<_ACEOF
16166/* end confdefs.h. */
16167$ac_includes_default
16168int
16169main ()
16170{
16171static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16172test_array [0] = 0
16173
16174 ;
16175 return 0;
16176}
16177_ACEOF
16178rm -f conftest.$ac_objext
16179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16180 (eval $ac_compile) 2>conftest.er1
a848cd7e 16181 ac_status=$?
ac1cb8d3
VS
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
a848cd7e
SC
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
89be85c2
VS
16187 { ac_try='test -z "$ac_c_werror_flag"
16188 || test ! -s conftest.err'
ac1cb8d3
VS
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_hi=$ac_mid; break
16201else
16202 echo "$as_me: failed program was:" >&5
16203sed 's/^/| /' conftest.$ac_ext >&5
16204
16205ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16206 if test $ac_lo -le $ac_mid; then
16207 ac_lo= ac_hi=
16208 break
16209 fi
16210 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16211fi
ac1cb8d3 16212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16213 done
16214else
16215 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5
16217
16218cat >conftest.$ac_ext <<_ACEOF
16219/* confdefs.h. */
16220_ACEOF
16221cat confdefs.h >>conftest.$ac_ext
16222cat >>conftest.$ac_ext <<_ACEOF
16223/* end confdefs.h. */
16224$ac_includes_default
16225int
16226main ()
16227{
16228static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16229test_array [0] = 0
16230
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); } &&
89be85c2
VS
16244 { ac_try='test -z "$ac_c_werror_flag"
16245 || test ! -s conftest.err'
ac1cb8d3
VS
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_hi=-1 ac_mid=-1
16258 while :; do
16259 cat >conftest.$ac_ext <<_ACEOF
16260/* confdefs.h. */
16261_ACEOF
16262cat confdefs.h >>conftest.$ac_ext
16263cat >>conftest.$ac_ext <<_ACEOF
16264/* end confdefs.h. */
16265$ac_includes_default
16266int
16267main ()
16268{
16269static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16270test_array [0] = 0
16271
16272 ;
16273 return 0;
16274}
16275_ACEOF
16276rm -f conftest.$ac_objext
16277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16278 (eval $ac_compile) 2>conftest.er1
a848cd7e 16279 ac_status=$?
ac1cb8d3
VS
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
a848cd7e
SC
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
89be85c2
VS
16285 { ac_try='test -z "$ac_c_werror_flag"
16286 || test ! -s conftest.err'
ac1cb8d3
VS
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 ac_lo=$ac_mid; break
16299else
16300 echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
16303ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16304 if test $ac_mid -le $ac_hi; then
16305 ac_lo= ac_hi=
16306 break
16307 fi
16308 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16309fi
ac1cb8d3 16310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16311 done
16312else
16313 echo "$as_me: failed program was:" >&5
16314sed 's/^/| /' conftest.$ac_ext >&5
16315
16316ac_lo= ac_hi=
16317fi
ac1cb8d3 16318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16319fi
ac1cb8d3 16320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16321# Binary search between lo and hi bounds.
16322while test "x$ac_lo" != "x$ac_hi"; do
16323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16324 cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
16330$ac_includes_default
16331int
16332main ()
16333{
16334static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16335test_array [0] = 0
16336
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext
16342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16343 (eval $ac_compile) 2>conftest.er1
a848cd7e 16344 ac_status=$?
ac1cb8d3
VS
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
a848cd7e
SC
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
89be85c2
VS
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
ac1cb8d3
VS
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_hi=$ac_mid
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368ac_lo=`expr '(' $ac_mid ')' + 1`
16369fi
ac1cb8d3 16370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16371done
16372case $ac_lo in
16373?*) ac_cv_sizeof_int=$ac_lo;;
16374'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16375See \`config.log' for more details." >&5
16376echo "$as_me: error: cannot compute sizeof (int), 77
16377See \`config.log' for more details." >&2;}
16378 { (exit 1); exit 1; }; } ;;
16379esac
16380else
16381 if test "$cross_compiling" = yes; then
89be85c2
VS
16382 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16383See \`config.log' for more details." >&5
16384echo "$as_me: error: cannot run test program while cross compiling
16385See \`config.log' for more details." >&2;}
a848cd7e
SC
16386 { (exit 1); exit 1; }; }
16387else
16388 cat >conftest.$ac_ext <<_ACEOF
16389/* confdefs.h. */
16390_ACEOF
16391cat confdefs.h >>conftest.$ac_ext
16392cat >>conftest.$ac_ext <<_ACEOF
16393/* end confdefs.h. */
16394$ac_includes_default
16395long longval () { return (long) (sizeof (int)); }
16396unsigned long ulongval () { return (long) (sizeof (int)); }
16397#include <stdio.h>
16398#include <stdlib.h>
16399int
16400main ()
16401{
16402
16403 FILE *f = fopen ("conftest.val", "w");
16404 if (! f)
16405 exit (1);
16406 if (((long) (sizeof (int))) < 0)
16407 {
16408 long i = longval ();
16409 if (i != ((long) (sizeof (int))))
16410 exit (1);
16411 fprintf (f, "%ld\n", i);
16412 }
16413 else
16414 {
16415 unsigned long i = ulongval ();
16416 if (i != ((long) (sizeof (int))))
16417 exit (1);
16418 fprintf (f, "%lu\n", i);
16419 }
16420 exit (ferror (f) || fclose (f) != 0);
16421
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest$ac_exeext
16427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428 (eval $ac_link) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_cv_sizeof_int=`cat conftest.val`
16438else
16439 echo "$as_me: program exited with status $ac_status" >&5
16440echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443( exit $ac_status )
16444{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16445See \`config.log' for more details." >&5
16446echo "$as_me: error: cannot compute sizeof (int), 77
16447See \`config.log' for more details." >&2;}
16448 { (exit 1); exit 1; }; }
16449fi
ac1cb8d3 16450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16451fi
16452fi
16453rm -f conftest.val
16454else
16455 ac_cv_sizeof_int=0
16456fi
16457fi
16458echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16459echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16460cat >>confdefs.h <<_ACEOF
16461#define SIZEOF_INT $ac_cv_sizeof_int
16462_ACEOF
16463
16464
16465echo "$as_me:$LINENO: checking for long" >&5
16466echo $ECHO_N "checking for long... $ECHO_C" >&6
16467if test "${ac_cv_type_long+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469else
16470 cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476$ac_includes_default
16477int
16478main ()
16479{
16480if ((long *) 0)
16481 return 0;
16482if (sizeof (long))
16483 return 0;
16484 ;
16485 return 0;
16486}
16487_ACEOF
16488rm -f conftest.$ac_objext
16489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16490 (eval $ac_compile) 2>conftest.er1
a848cd7e 16491 ac_status=$?
ac1cb8d3
VS
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
a848cd7e
SC
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
89be85c2
VS
16497 { ac_try='test -z "$ac_c_werror_flag"
16498 || test ! -s conftest.err'
ac1cb8d3
VS
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_cv_type_long=yes
16511else
16512 echo "$as_me: failed program was:" >&5
16513sed 's/^/| /' conftest.$ac_ext >&5
16514
16515ac_cv_type_long=no
16516fi
ac1cb8d3 16517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16518fi
16519echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16520echo "${ECHO_T}$ac_cv_type_long" >&6
16521
16522echo "$as_me:$LINENO: checking size of long" >&5
16523echo $ECHO_N "checking size of long... $ECHO_C" >&6
16524if test "${ac_cv_sizeof_long+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526else
16527 if test "$ac_cv_type_long" = yes; then
16528 # The cast to unsigned long works around a bug in the HP C Compiler
16529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16531 # This bug is HP SR number 8606223364.
16532 if test "$cross_compiling" = yes; then
16533 # Depending upon the size, compute the lo and hi bounds.
16534cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540$ac_includes_default
16541int
16542main ()
16543{
16544static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16545test_array [0] = 0
16546
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext
16552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16553 (eval $ac_compile) 2>conftest.er1
a848cd7e 16554 ac_status=$?
ac1cb8d3
VS
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
a848cd7e
SC
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
89be85c2
VS
16560 { ac_try='test -z "$ac_c_werror_flag"
16561 || test ! -s conftest.err'
ac1cb8d3
VS
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } &&
16567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_lo=0 ac_mid=0
16574 while :; do
16575 cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581$ac_includes_default
16582int
16583main ()
16584{
16585static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16586test_array [0] = 0
16587
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext
16593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16594 (eval $ac_compile) 2>conftest.er1
a848cd7e 16595 ac_status=$?
ac1cb8d3
VS
16596 grep -v '^ *+' conftest.er1 >conftest.err
16597 rm -f conftest.er1
16598 cat conftest.err >&5
a848cd7e
SC
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
89be85c2
VS
16601 { ac_try='test -z "$ac_c_werror_flag"
16602 || test ! -s conftest.err'
ac1cb8d3
VS
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_hi=$ac_mid; break
16615else
16616 echo "$as_me: failed program was:" >&5
16617sed 's/^/| /' conftest.$ac_ext >&5
16618
16619ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16620 if test $ac_lo -le $ac_mid; then
16621 ac_lo= ac_hi=
16622 break
16623 fi
16624 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16625fi
ac1cb8d3 16626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16627 done
16628else
16629 echo "$as_me: failed program was:" >&5
16630sed 's/^/| /' conftest.$ac_ext >&5
16631
16632cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
16638$ac_includes_default
16639int
16640main ()
16641{
16642static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16643test_array [0] = 0
16644
16645 ;
16646 return 0;
16647}
16648_ACEOF
16649rm -f conftest.$ac_objext
16650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16651 (eval $ac_compile) 2>conftest.er1
a848cd7e 16652 ac_status=$?
ac1cb8d3
VS
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
a848cd7e
SC
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
89be85c2
VS
16658 { ac_try='test -z "$ac_c_werror_flag"
16659 || test ! -s conftest.err'
ac1cb8d3
VS
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_hi=-1 ac_mid=-1
16672 while :; do
16673 cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
16679$ac_includes_default
16680int
16681main ()
16682{
16683static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16684test_array [0] = 0
16685
16686 ;
16687 return 0;
16688}
16689_ACEOF
16690rm -f conftest.$ac_objext
16691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16692 (eval $ac_compile) 2>conftest.er1
a848cd7e 16693 ac_status=$?
ac1cb8d3
VS
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
a848cd7e
SC
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
89be85c2
VS
16699 { ac_try='test -z "$ac_c_werror_flag"
16700 || test ! -s conftest.err'
ac1cb8d3
VS
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_lo=$ac_mid; break
16713else
16714 echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16718 if test $ac_mid -le $ac_hi; then
16719 ac_lo= ac_hi=
16720 break
16721 fi
16722 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16723fi
ac1cb8d3 16724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16725 done
16726else
16727 echo "$as_me: failed program was:" >&5
16728sed 's/^/| /' conftest.$ac_ext >&5
16729
16730ac_lo= ac_hi=
16731fi
ac1cb8d3 16732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16733fi
ac1cb8d3 16734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16735# Binary search between lo and hi bounds.
16736while test "x$ac_lo" != "x$ac_hi"; do
16737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16738 cat >conftest.$ac_ext <<_ACEOF
16739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
16744$ac_includes_default
16745int
16746main ()
16747{
16748static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16749test_array [0] = 0
16750
16751 ;
16752 return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext
16756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16757 (eval $ac_compile) 2>conftest.er1
a848cd7e 16758 ac_status=$?
ac1cb8d3
VS
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
a848cd7e
SC
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
89be85c2
VS
16764 { ac_try='test -z "$ac_c_werror_flag"
16765 || test ! -s conftest.err'
ac1cb8d3
VS
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_hi=$ac_mid
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782ac_lo=`expr '(' $ac_mid ')' + 1`
16783fi
ac1cb8d3 16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16785done
16786case $ac_lo in
16787?*) ac_cv_sizeof_long=$ac_lo;;
16788'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16789See \`config.log' for more details." >&5
16790echo "$as_me: error: cannot compute sizeof (long), 77
16791See \`config.log' for more details." >&2;}
16792 { (exit 1); exit 1; }; } ;;
16793esac
16794else
16795 if test "$cross_compiling" = yes; then
89be85c2
VS
16796 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16797See \`config.log' for more details." >&5
16798echo "$as_me: error: cannot run test program while cross compiling
16799See \`config.log' for more details." >&2;}
a848cd7e
SC
16800 { (exit 1); exit 1; }; }
16801else
16802 cat >conftest.$ac_ext <<_ACEOF
16803/* confdefs.h. */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
16807/* end confdefs.h. */
16808$ac_includes_default
16809long longval () { return (long) (sizeof (long)); }
16810unsigned long ulongval () { return (long) (sizeof (long)); }
16811#include <stdio.h>
16812#include <stdlib.h>
16813int
16814main ()
16815{
16816
16817 FILE *f = fopen ("conftest.val", "w");
16818 if (! f)
16819 exit (1);
16820 if (((long) (sizeof (long))) < 0)
16821 {
16822 long i = longval ();
16823 if (i != ((long) (sizeof (long))))
16824 exit (1);
16825 fprintf (f, "%ld\n", i);
16826 }
16827 else
16828 {
16829 unsigned long i = ulongval ();
16830 if (i != ((long) (sizeof (long))))
16831 exit (1);
16832 fprintf (f, "%lu\n", i);
16833 }
16834 exit (ferror (f) || fclose (f) != 0);
16835
16836 ;
16837 return 0;
16838}
16839_ACEOF
16840rm -f conftest$ac_exeext
16841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16842 (eval $ac_link) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_sizeof_long=`cat conftest.val`
16852else
16853 echo "$as_me: program exited with status $ac_status" >&5
16854echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857( exit $ac_status )
16858{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16859See \`config.log' for more details." >&5
16860echo "$as_me: error: cannot compute sizeof (long), 77
16861See \`config.log' for more details." >&2;}
16862 { (exit 1); exit 1; }; }
16863fi
ac1cb8d3 16864rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16865fi
16866fi
16867rm -f conftest.val
16868else
16869 ac_cv_sizeof_long=0
16870fi
16871fi
16872echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16873echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16874cat >>confdefs.h <<_ACEOF
16875#define SIZEOF_LONG $ac_cv_sizeof_long
16876_ACEOF
16877
16878
16879echo "$as_me:$LINENO: checking for size_t" >&5
16880echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16881if test "${ac_cv_type_size_t+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883else
16884 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890$ac_includes_default
16891int
16892main ()
16893{
16894if ((size_t *) 0)
16895 return 0;
16896if (sizeof (size_t))
16897 return 0;
16898 ;
16899 return 0;
16900}
16901_ACEOF
16902rm -f conftest.$ac_objext
16903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16904 (eval $ac_compile) 2>conftest.er1
a848cd7e 16905 ac_status=$?
ac1cb8d3
VS
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
a848cd7e
SC
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
89be85c2
VS
16911 { ac_try='test -z "$ac_c_werror_flag"
16912 || 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_cv_type_size_t=yes
16925else
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929ac_cv_type_size_t=no
16930fi
ac1cb8d3 16931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16932fi
16933echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16934echo "${ECHO_T}$ac_cv_type_size_t" >&6
16935
16936echo "$as_me:$LINENO: checking size of size_t" >&5
16937echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16938if test "${ac_cv_sizeof_size_t+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
16941 if test "$ac_cv_type_size_t" = yes; then
16942 # The cast to unsigned long works around a bug in the HP C Compiler
16943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16945 # This bug is HP SR number 8606223364.
16946 if test "$cross_compiling" = yes; then
16947 # Depending upon the size, compute the lo and hi bounds.
16948cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
16954$ac_includes_default
16955int
16956main ()
16957{
16958static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16959test_array [0] = 0
16960
16961 ;
16962 return 0;
16963}
16964_ACEOF
16965rm -f conftest.$ac_objext
16966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16967 (eval $ac_compile) 2>conftest.er1
a848cd7e 16968 ac_status=$?
ac1cb8d3
VS
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
a848cd7e
SC
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
89be85c2
VS
16974 { ac_try='test -z "$ac_c_werror_flag"
16975 || test ! -s conftest.err'
ac1cb8d3
VS
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_lo=0 ac_mid=0
16988 while :; do
16989 cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995$ac_includes_default
16996int
16997main ()
16998{
16999static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17000test_array [0] = 0
17001
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext
17007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17008 (eval $ac_compile) 2>conftest.er1
a848cd7e 17009 ac_status=$?
ac1cb8d3
VS
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
a848cd7e
SC
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
89be85c2
VS
17015 { ac_try='test -z "$ac_c_werror_flag"
17016 || test ! -s conftest.err'
ac1cb8d3
VS
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_hi=$ac_mid; break
17029else
17030 echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
17032
17033ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17034 if test $ac_lo -le $ac_mid; then
17035 ac_lo= ac_hi=
17036 break
17037 fi
17038 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17039fi
ac1cb8d3 17040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17041 done
17042else
17043 echo "$as_me: failed program was:" >&5
17044sed 's/^/| /' conftest.$ac_ext >&5
17045
17046cat >conftest.$ac_ext <<_ACEOF
17047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
17052$ac_includes_default
17053int
17054main ()
17055{
17056static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17057test_array [0] = 0
17058
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063rm -f conftest.$ac_objext
17064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17065 (eval $ac_compile) 2>conftest.er1
a848cd7e 17066 ac_status=$?
ac1cb8d3
VS
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
a848cd7e
SC
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
89be85c2
VS
17072 { ac_try='test -z "$ac_c_werror_flag"
17073 || test ! -s conftest.err'
ac1cb8d3
VS
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_hi=-1 ac_mid=-1
17086 while :; do
17087 cat >conftest.$ac_ext <<_ACEOF
17088/* confdefs.h. */
17089_ACEOF
17090cat confdefs.h >>conftest.$ac_ext
17091cat >>conftest.$ac_ext <<_ACEOF
17092/* end confdefs.h. */
17093$ac_includes_default
17094int
17095main ()
17096{
17097static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17098test_array [0] = 0
17099
17100 ;
17101 return 0;
17102}
17103_ACEOF
17104rm -f conftest.$ac_objext
17105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17106 (eval $ac_compile) 2>conftest.er1
a848cd7e 17107 ac_status=$?
ac1cb8d3
VS
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
a848cd7e
SC
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
89be85c2
VS
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
ac1cb8d3
VS
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_lo=$ac_mid; break
17127else
17128 echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17132 if test $ac_mid -le $ac_hi; then
17133 ac_lo= ac_hi=
17134 break
17135 fi
17136 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17137fi
ac1cb8d3 17138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17139 done
17140else
17141 echo "$as_me: failed program was:" >&5
17142sed 's/^/| /' conftest.$ac_ext >&5
17143
17144ac_lo= ac_hi=
17145fi
ac1cb8d3 17146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17147fi
ac1cb8d3 17148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17149# Binary search between lo and hi bounds.
17150while test "x$ac_lo" != "x$ac_hi"; do
17151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17152 cat >conftest.$ac_ext <<_ACEOF
17153/* confdefs.h. */
17154_ACEOF
17155cat confdefs.h >>conftest.$ac_ext
17156cat >>conftest.$ac_ext <<_ACEOF
17157/* end confdefs.h. */
17158$ac_includes_default
17159int
17160main ()
17161{
17162static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17163test_array [0] = 0
17164
17165 ;
17166 return 0;
17167}
17168_ACEOF
17169rm -f conftest.$ac_objext
17170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17171 (eval $ac_compile) 2>conftest.er1
a848cd7e 17172 ac_status=$?
ac1cb8d3
VS
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
a848cd7e
SC
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
89be85c2
VS
17178 { ac_try='test -z "$ac_c_werror_flag"
17179 || test ! -s conftest.err'
ac1cb8d3
VS
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 ac_hi=$ac_mid
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196ac_lo=`expr '(' $ac_mid ')' + 1`
17197fi
ac1cb8d3 17198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17199done
17200case $ac_lo in
17201?*) ac_cv_sizeof_size_t=$ac_lo;;
17202'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17203See \`config.log' for more details." >&5
17204echo "$as_me: error: cannot compute sizeof (size_t), 77
17205See \`config.log' for more details." >&2;}
17206 { (exit 1); exit 1; }; } ;;
17207esac
17208else
17209 if test "$cross_compiling" = yes; then
89be85c2
VS
17210 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17211See \`config.log' for more details." >&5
17212echo "$as_me: error: cannot run test program while cross compiling
17213See \`config.log' for more details." >&2;}
a848cd7e
SC
17214 { (exit 1); exit 1; }; }
17215else
17216 cat >conftest.$ac_ext <<_ACEOF
17217/* confdefs.h. */
17218_ACEOF
17219cat confdefs.h >>conftest.$ac_ext
17220cat >>conftest.$ac_ext <<_ACEOF
17221/* end confdefs.h. */
17222$ac_includes_default
17223long longval () { return (long) (sizeof (size_t)); }
17224unsigned long ulongval () { return (long) (sizeof (size_t)); }
17225#include <stdio.h>
17226#include <stdlib.h>
17227int
17228main ()
17229{
17230
17231 FILE *f = fopen ("conftest.val", "w");
17232 if (! f)
17233 exit (1);
17234 if (((long) (sizeof (size_t))) < 0)
17235 {
17236 long i = longval ();
17237 if (i != ((long) (sizeof (size_t))))
17238 exit (1);
17239 fprintf (f, "%ld\n", i);
17240 }
17241 else
17242 {
17243 unsigned long i = ulongval ();
17244 if (i != ((long) (sizeof (size_t))))
17245 exit (1);
17246 fprintf (f, "%lu\n", i);
17247 }
17248 exit (ferror (f) || fclose (f) != 0);
17249
17250 ;
17251 return 0;
17252}
17253_ACEOF
17254rm -f conftest$ac_exeext
17255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17256 (eval $ac_link) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_cv_sizeof_size_t=`cat conftest.val`
17266else
17267 echo "$as_me: program exited with status $ac_status" >&5
17268echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271( exit $ac_status )
17272{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17273See \`config.log' for more details." >&5
17274echo "$as_me: error: cannot compute sizeof (size_t), 77
17275See \`config.log' for more details." >&2;}
17276 { (exit 1); exit 1; }; }
17277fi
ac1cb8d3 17278rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17279fi
17280fi
17281rm -f conftest.val
17282else
17283 ac_cv_sizeof_size_t=0
17284fi
17285fi
17286echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17287echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17288cat >>confdefs.h <<_ACEOF
17289#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17290_ACEOF
17291
17292
17293
17294case "${host}" in
17295 arm-*-linux* )
17296 echo "$as_me:$LINENO: checking for long long" >&5
17297echo $ECHO_N "checking for long long... $ECHO_C" >&6
17298if test "${ac_cv_type_long_long+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300else
17301 cat >conftest.$ac_ext <<_ACEOF
17302/* confdefs.h. */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h. */
17307$ac_includes_default
17308int
17309main ()
17310{
17311if ((long long *) 0)
17312 return 0;
17313if (sizeof (long long))
17314 return 0;
17315 ;
17316 return 0;
17317}
17318_ACEOF
17319rm -f conftest.$ac_objext
17320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17321 (eval $ac_compile) 2>conftest.er1
a848cd7e 17322 ac_status=$?
ac1cb8d3
VS
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
a848cd7e
SC
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
89be85c2
VS
17328 { ac_try='test -z "$ac_c_werror_flag"
17329 || test ! -s conftest.err'
ac1cb8d3
VS
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 ac_cv_type_long_long=yes
17342else
17343 echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346ac_cv_type_long_long=no
17347fi
ac1cb8d3 17348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17349fi
17350echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17351echo "${ECHO_T}$ac_cv_type_long_long" >&6
17352
17353echo "$as_me:$LINENO: checking size of long long" >&5
17354echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17355if test "${ac_cv_sizeof_long_long+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357else
17358 if test "$ac_cv_type_long_long" = yes; then
17359 # The cast to unsigned long works around a bug in the HP C Compiler
17360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17362 # This bug is HP SR number 8606223364.
17363 if test "$cross_compiling" = yes; then
17364 # Depending upon the size, compute the lo and hi bounds.
17365cat >conftest.$ac_ext <<_ACEOF
17366/* confdefs.h. */
17367_ACEOF
17368cat confdefs.h >>conftest.$ac_ext
17369cat >>conftest.$ac_ext <<_ACEOF
17370/* end confdefs.h. */
17371$ac_includes_default
17372int
17373main ()
17374{
17375static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17376test_array [0] = 0
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext
17383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17384 (eval $ac_compile) 2>conftest.er1
a848cd7e 17385 ac_status=$?
ac1cb8d3
VS
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
a848cd7e
SC
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
89be85c2
VS
17391 { ac_try='test -z "$ac_c_werror_flag"
17392 || test ! -s conftest.err'
ac1cb8d3
VS
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_lo=0 ac_mid=0
17405 while :; do
17406 cat >conftest.$ac_ext <<_ACEOF
17407/* confdefs.h. */
17408_ACEOF
17409cat confdefs.h >>conftest.$ac_ext
17410cat >>conftest.$ac_ext <<_ACEOF
17411/* end confdefs.h. */
17412$ac_includes_default
17413int
17414main ()
17415{
17416static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17417test_array [0] = 0
17418
17419 ;
17420 return 0;
17421}
17422_ACEOF
17423rm -f conftest.$ac_objext
17424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17425 (eval $ac_compile) 2>conftest.er1
a848cd7e 17426 ac_status=$?
ac1cb8d3
VS
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
a848cd7e
SC
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
89be85c2
VS
17432 { ac_try='test -z "$ac_c_werror_flag"
17433 || test ! -s conftest.err'
ac1cb8d3
VS
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_hi=$ac_mid; break
17446else
17447 echo "$as_me: failed program was:" >&5
17448sed 's/^/| /' conftest.$ac_ext >&5
17449
17450ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17451 if test $ac_lo -le $ac_mid; then
17452 ac_lo= ac_hi=
17453 break
17454 fi
17455 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17456fi
ac1cb8d3 17457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17458 done
17459else
17460 echo "$as_me: failed program was:" >&5
17461sed 's/^/| /' conftest.$ac_ext >&5
17462
17463cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469$ac_includes_default
17470int
17471main ()
17472{
17473static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17474test_array [0] = 0
17475
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest.$ac_objext
17481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17482 (eval $ac_compile) 2>conftest.er1
a848cd7e 17483 ac_status=$?
ac1cb8d3
VS
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
a848cd7e
SC
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
89be85c2
VS
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
ac1cb8d3
VS
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_hi=-1 ac_mid=-1
17503 while :; do
17504 cat >conftest.$ac_ext <<_ACEOF
17505/* confdefs.h. */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h. */
17510$ac_includes_default
17511int
17512main ()
17513{
17514static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17515test_array [0] = 0
17516
17517 ;
17518 return 0;
17519}
17520_ACEOF
17521rm -f conftest.$ac_objext
17522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17523 (eval $ac_compile) 2>conftest.er1
a848cd7e 17524 ac_status=$?
ac1cb8d3
VS
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
a848cd7e
SC
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
89be85c2
VS
17530 { ac_try='test -z "$ac_c_werror_flag"
17531 || test ! -s conftest.err'
ac1cb8d3
VS
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; } &&
17537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; }; then
17543 ac_lo=$ac_mid; break
17544else
17545 echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17549 if test $ac_mid -le $ac_hi; then
17550 ac_lo= ac_hi=
17551 break
17552 fi
17553 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17554fi
ac1cb8d3 17555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17556 done
17557else
17558 echo "$as_me: failed program was:" >&5
17559sed 's/^/| /' conftest.$ac_ext >&5
17560
17561ac_lo= ac_hi=
17562fi
ac1cb8d3 17563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17564fi
ac1cb8d3 17565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17566# Binary search between lo and hi bounds.
17567while test "x$ac_lo" != "x$ac_hi"; do
17568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17569 cat >conftest.$ac_ext <<_ACEOF
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575$ac_includes_default
17576int
17577main ()
17578{
17579static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17580test_array [0] = 0
17581
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext
17587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17588 (eval $ac_compile) 2>conftest.er1
a848cd7e 17589 ac_status=$?
ac1cb8d3
VS
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
a848cd7e
SC
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
89be85c2
VS
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
ac1cb8d3
VS
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_hi=$ac_mid
17609else
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
17613ac_lo=`expr '(' $ac_mid ')' + 1`
17614fi
ac1cb8d3 17615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17616done
17617case $ac_lo in
17618?*) ac_cv_sizeof_long_long=$ac_lo;;
17619'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17620See \`config.log' for more details." >&5
17621echo "$as_me: error: cannot compute sizeof (long long), 77
17622See \`config.log' for more details." >&2;}
17623 { (exit 1); exit 1; }; } ;;
17624esac
17625else
17626 if test "$cross_compiling" = yes; then
89be85c2
VS
17627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17628See \`config.log' for more details." >&5
17629echo "$as_me: error: cannot run test program while cross compiling
17630See \`config.log' for more details." >&2;}
a848cd7e
SC
17631 { (exit 1); exit 1; }; }
17632else
17633 cat >conftest.$ac_ext <<_ACEOF
17634/* confdefs.h. */
17635_ACEOF
17636cat confdefs.h >>conftest.$ac_ext
17637cat >>conftest.$ac_ext <<_ACEOF
17638/* end confdefs.h. */
17639$ac_includes_default
17640long longval () { return (long) (sizeof (long long)); }
17641unsigned long ulongval () { return (long) (sizeof (long long)); }
17642#include <stdio.h>
17643#include <stdlib.h>
17644int
17645main ()
17646{
17647
17648 FILE *f = fopen ("conftest.val", "w");
17649 if (! f)
17650 exit (1);
17651 if (((long) (sizeof (long long))) < 0)
17652 {
17653 long i = longval ();
17654 if (i != ((long) (sizeof (long long))))
17655 exit (1);
17656 fprintf (f, "%ld\n", i);
17657 }
17658 else
17659 {
17660 unsigned long i = ulongval ();
17661 if (i != ((long) (sizeof (long long))))
17662 exit (1);
17663 fprintf (f, "%lu\n", i);
17664 }
17665 exit (ferror (f) || fclose (f) != 0);
17666
17667 ;
17668 return 0;
17669}
17670_ACEOF
17671rm -f conftest$ac_exeext
17672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17673 (eval $ac_link) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_sizeof_long_long=`cat conftest.val`
17683else
17684 echo "$as_me: program exited with status $ac_status" >&5
17685echo "$as_me: failed program was:" >&5
17686sed 's/^/| /' conftest.$ac_ext >&5
17687
17688( exit $ac_status )
17689{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17690See \`config.log' for more details." >&5
17691echo "$as_me: error: cannot compute sizeof (long long), 77
17692See \`config.log' for more details." >&2;}
17693 { (exit 1); exit 1; }; }
17694fi
ac1cb8d3 17695rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17696fi
17697fi
17698rm -f conftest.val
17699else
17700 ac_cv_sizeof_long_long=0
17701fi
17702fi
17703echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17704echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17705cat >>confdefs.h <<_ACEOF
17706#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17707_ACEOF
17708
17709
17710 ;;
17711 *-hp-hpux* )
17712 echo "$as_me:$LINENO: checking for long long" >&5
17713echo $ECHO_N "checking for long long... $ECHO_C" >&6
17714if test "${ac_cv_type_long_long+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716else
17717 cat >conftest.$ac_ext <<_ACEOF
17718/* confdefs.h. */
17719_ACEOF
17720cat confdefs.h >>conftest.$ac_ext
17721cat >>conftest.$ac_ext <<_ACEOF
17722/* end confdefs.h. */
17723$ac_includes_default
17724int
17725main ()
17726{
17727if ((long long *) 0)
17728 return 0;
17729if (sizeof (long long))
17730 return 0;
17731 ;
17732 return 0;
17733}
17734_ACEOF
17735rm -f conftest.$ac_objext
17736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17737 (eval $ac_compile) 2>conftest.er1
a848cd7e 17738 ac_status=$?
ac1cb8d3
VS
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
a848cd7e
SC
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
89be85c2
VS
17744 { ac_try='test -z "$ac_c_werror_flag"
17745 || test ! -s conftest.err'
ac1cb8d3
VS
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_type_long_long=yes
17758else
17759 echo "$as_me: failed program was:" >&5
17760sed 's/^/| /' conftest.$ac_ext >&5
17761
17762ac_cv_type_long_long=no
17763fi
ac1cb8d3 17764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17765fi
17766echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17767echo "${ECHO_T}$ac_cv_type_long_long" >&6
17768
17769echo "$as_me:$LINENO: checking size of long long" >&5
17770echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17771if test "${ac_cv_sizeof_long_long+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773else
17774 if test "$ac_cv_type_long_long" = yes; then
17775 # The cast to unsigned long works around a bug in the HP C Compiler
17776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17778 # This bug is HP SR number 8606223364.
17779 if test "$cross_compiling" = yes; then
17780 # Depending upon the size, compute the lo and hi bounds.
17781cat >conftest.$ac_ext <<_ACEOF
17782/* confdefs.h. */
17783_ACEOF
17784cat confdefs.h >>conftest.$ac_ext
17785cat >>conftest.$ac_ext <<_ACEOF
17786/* end confdefs.h. */
17787$ac_includes_default
17788int
17789main ()
17790{
17791static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17792test_array [0] = 0
17793
17794 ;
17795 return 0;
17796}
17797_ACEOF
17798rm -f conftest.$ac_objext
17799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17800 (eval $ac_compile) 2>conftest.er1
a848cd7e 17801 ac_status=$?
ac1cb8d3
VS
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
a848cd7e
SC
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
89be85c2
VS
17807 { ac_try='test -z "$ac_c_werror_flag"
17808 || test ! -s conftest.err'
ac1cb8d3
VS
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 ac_lo=0 ac_mid=0
17821 while :; do
17822 cat >conftest.$ac_ext <<_ACEOF
17823/* confdefs.h. */
17824_ACEOF
17825cat confdefs.h >>conftest.$ac_ext
17826cat >>conftest.$ac_ext <<_ACEOF
17827/* end confdefs.h. */
17828$ac_includes_default
17829int
17830main ()
17831{
17832static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17833test_array [0] = 0
17834
17835 ;
17836 return 0;
17837}
17838_ACEOF
17839rm -f conftest.$ac_objext
17840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17841 (eval $ac_compile) 2>conftest.er1
a848cd7e 17842 ac_status=$?
ac1cb8d3
VS
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
a848cd7e
SC
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
89be85c2
VS
17848 { ac_try='test -z "$ac_c_werror_flag"
17849 || test ! -s conftest.err'
ac1cb8d3
VS
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_hi=$ac_mid; break
17862else
17863 echo "$as_me: failed program was:" >&5
17864sed 's/^/| /' conftest.$ac_ext >&5
17865
17866ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17867 if test $ac_lo -le $ac_mid; then
17868 ac_lo= ac_hi=
17869 break
17870 fi
17871 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17872fi
ac1cb8d3 17873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17874 done
17875else
17876 echo "$as_me: failed program was:" >&5
17877sed 's/^/| /' conftest.$ac_ext >&5
17878
17879cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885$ac_includes_default
17886int
17887main ()
17888{
17889static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17890test_array [0] = 0
17891
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext
17897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17898 (eval $ac_compile) 2>conftest.er1
a848cd7e 17899 ac_status=$?
ac1cb8d3
VS
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
a848cd7e
SC
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
89be85c2
VS
17905 { ac_try='test -z "$ac_c_werror_flag"
17906 || test ! -s conftest.err'
ac1cb8d3
VS
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_hi=-1 ac_mid=-1
17919 while :; do
17920 cat >conftest.$ac_ext <<_ACEOF
17921/* confdefs.h. */
17922_ACEOF
17923cat confdefs.h >>conftest.$ac_ext
17924cat >>conftest.$ac_ext <<_ACEOF
17925/* end confdefs.h. */
17926$ac_includes_default
17927int
17928main ()
17929{
17930static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17931test_array [0] = 0
17932
17933 ;
17934 return 0;
17935}
17936_ACEOF
17937rm -f conftest.$ac_objext
17938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17939 (eval $ac_compile) 2>conftest.er1
a848cd7e 17940 ac_status=$?
ac1cb8d3
VS
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
a848cd7e
SC
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
89be85c2
VS
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
ac1cb8d3
VS
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_lo=$ac_mid; break
17960else
17961 echo "$as_me: failed program was:" >&5
17962sed 's/^/| /' conftest.$ac_ext >&5
17963
17964ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17965 if test $ac_mid -le $ac_hi; then
17966 ac_lo= ac_hi=
17967 break
17968 fi
17969 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17970fi
ac1cb8d3 17971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17972 done
17973else
17974 echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977ac_lo= ac_hi=
17978fi
ac1cb8d3 17979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17980fi
ac1cb8d3 17981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17982# Binary search between lo and hi bounds.
17983while test "x$ac_lo" != "x$ac_hi"; do
17984 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17985 cat >conftest.$ac_ext <<_ACEOF
17986/* confdefs.h. */
17987_ACEOF
17988cat confdefs.h >>conftest.$ac_ext
17989cat >>conftest.$ac_ext <<_ACEOF
17990/* end confdefs.h. */
17991$ac_includes_default
17992int
17993main ()
17994{
17995static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17996test_array [0] = 0
17997
17998 ;
17999 return 0;
18000}
18001_ACEOF
18002rm -f conftest.$ac_objext
18003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18004 (eval $ac_compile) 2>conftest.er1
a848cd7e 18005 ac_status=$?
ac1cb8d3
VS
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
a848cd7e
SC
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
89be85c2
VS
18011 { ac_try='test -z "$ac_c_werror_flag"
18012 || test ! -s conftest.err'
ac1cb8d3
VS
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; } &&
18018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024 ac_hi=$ac_mid
18025else
18026 echo "$as_me: failed program was:" >&5
18027sed 's/^/| /' conftest.$ac_ext >&5
18028
18029ac_lo=`expr '(' $ac_mid ')' + 1`
18030fi
ac1cb8d3 18031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18032done
18033case $ac_lo in
18034?*) ac_cv_sizeof_long_long=$ac_lo;;
18035'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18036See \`config.log' for more details." >&5
18037echo "$as_me: error: cannot compute sizeof (long long), 77
18038See \`config.log' for more details." >&2;}
18039 { (exit 1); exit 1; }; } ;;
18040esac
18041else
18042 if test "$cross_compiling" = yes; then
89be85c2
VS
18043 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18044See \`config.log' for more details." >&5
18045echo "$as_me: error: cannot run test program while cross compiling
18046See \`config.log' for more details." >&2;}
a848cd7e
SC
18047 { (exit 1); exit 1; }; }
18048else
18049 cat >conftest.$ac_ext <<_ACEOF
18050/* confdefs.h. */
18051_ACEOF
18052cat confdefs.h >>conftest.$ac_ext
18053cat >>conftest.$ac_ext <<_ACEOF
18054/* end confdefs.h. */
18055$ac_includes_default
18056long longval () { return (long) (sizeof (long long)); }
18057unsigned long ulongval () { return (long) (sizeof (long long)); }
18058#include <stdio.h>
18059#include <stdlib.h>
18060int
18061main ()
18062{
18063
18064 FILE *f = fopen ("conftest.val", "w");
18065 if (! f)
18066 exit (1);
18067 if (((long) (sizeof (long long))) < 0)
18068 {
18069 long i = longval ();
18070 if (i != ((long) (sizeof (long long))))
18071 exit (1);
18072 fprintf (f, "%ld\n", i);
18073 }
18074 else
18075 {
18076 unsigned long i = ulongval ();
18077 if (i != ((long) (sizeof (long long))))
18078 exit (1);
18079 fprintf (f, "%lu\n", i);
18080 }
18081 exit (ferror (f) || fclose (f) != 0);
18082
18083 ;
18084 return 0;
18085}
18086_ACEOF
18087rm -f conftest$ac_exeext
18088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18089 (eval $ac_link) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_cv_sizeof_long_long=`cat conftest.val`
18099else
18100 echo "$as_me: program exited with status $ac_status" >&5
18101echo "$as_me: failed program was:" >&5
18102sed 's/^/| /' conftest.$ac_ext >&5
18103
18104( exit $ac_status )
18105{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18106See \`config.log' for more details." >&5
18107echo "$as_me: error: cannot compute sizeof (long long), 77
18108See \`config.log' for more details." >&2;}
18109 { (exit 1); exit 1; }; }
18110fi
ac1cb8d3 18111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18112fi
18113fi
18114rm -f conftest.val
18115else
18116 ac_cv_sizeof_long_long=0
18117fi
18118fi
18119echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18120echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18121cat >>confdefs.h <<_ACEOF
18122#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18123_ACEOF
18124
18125
18126 if test "$ac_cv_sizeof_long_long" != "0"; then
18127 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18128 fi
18129 ;;
18130 * )
18131 echo "$as_me:$LINENO: checking for long long" >&5
18132echo $ECHO_N "checking for long long... $ECHO_C" >&6
18133if test "${ac_cv_type_long_long+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18135else
18136 cat >conftest.$ac_ext <<_ACEOF
18137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
18142$ac_includes_default
18143int
18144main ()
18145{
18146if ((long long *) 0)
18147 return 0;
18148if (sizeof (long long))
18149 return 0;
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext
18155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18156 (eval $ac_compile) 2>conftest.er1
a848cd7e 18157 ac_status=$?
ac1cb8d3
VS
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
a848cd7e
SC
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
89be85c2
VS
18163 { ac_try='test -z "$ac_c_werror_flag"
18164 || test ! -s conftest.err'
ac1cb8d3
VS
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 ac_cv_type_long_long=yes
18177else
18178 echo "$as_me: failed program was:" >&5
18179sed 's/^/| /' conftest.$ac_ext >&5
18180
18181ac_cv_type_long_long=no
18182fi
ac1cb8d3 18183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18184fi
18185echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18186echo "${ECHO_T}$ac_cv_type_long_long" >&6
18187
18188echo "$as_me:$LINENO: checking size of long long" >&5
18189echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18190if test "${ac_cv_sizeof_long_long+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 if test "$ac_cv_type_long_long" = yes; then
18194 # The cast to unsigned long works around a bug in the HP C Compiler
18195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18197 # This bug is HP SR number 8606223364.
18198 if test "$cross_compiling" = yes; then
18199 # Depending upon the size, compute the lo and hi bounds.
18200cat >conftest.$ac_ext <<_ACEOF
18201/* confdefs.h. */
18202_ACEOF
18203cat confdefs.h >>conftest.$ac_ext
18204cat >>conftest.$ac_ext <<_ACEOF
18205/* end confdefs.h. */
18206$ac_includes_default
18207int
18208main ()
18209{
18210static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18211test_array [0] = 0
18212
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext
18218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18219 (eval $ac_compile) 2>conftest.er1
a848cd7e 18220 ac_status=$?
ac1cb8d3
VS
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
a848cd7e
SC
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
89be85c2
VS
18226 { ac_try='test -z "$ac_c_werror_flag"
18227 || test ! -s conftest.err'
ac1cb8d3
VS
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 ac_lo=0 ac_mid=0
18240 while :; do
18241 cat >conftest.$ac_ext <<_ACEOF
18242/* confdefs.h. */
18243_ACEOF
18244cat confdefs.h >>conftest.$ac_ext
18245cat >>conftest.$ac_ext <<_ACEOF
18246/* end confdefs.h. */
18247$ac_includes_default
18248int
18249main ()
18250{
18251static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18252test_array [0] = 0
18253
18254 ;
18255 return 0;
18256}
18257_ACEOF
18258rm -f conftest.$ac_objext
18259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18260 (eval $ac_compile) 2>conftest.er1
a848cd7e 18261 ac_status=$?
ac1cb8d3
VS
18262 grep -v '^ *+' conftest.er1 >conftest.err
18263 rm -f conftest.er1
18264 cat conftest.err >&5
a848cd7e
SC
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } &&
89be85c2
VS
18267 { ac_try='test -z "$ac_c_werror_flag"
18268 || test ! -s conftest.err'
ac1cb8d3
VS
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 ac_hi=$ac_mid; break
18281else
18282 echo "$as_me: failed program was:" >&5
18283sed 's/^/| /' conftest.$ac_ext >&5
18284
18285ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18286 if test $ac_lo -le $ac_mid; then
18287 ac_lo= ac_hi=
18288 break
18289 fi
18290 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18291fi
ac1cb8d3 18292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18293 done
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298cat >conftest.$ac_ext <<_ACEOF
18299/* confdefs.h. */
18300_ACEOF
18301cat confdefs.h >>conftest.$ac_ext
18302cat >>conftest.$ac_ext <<_ACEOF
18303/* end confdefs.h. */
18304$ac_includes_default
18305int
18306main ()
18307{
18308static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18309test_array [0] = 0
18310
18311 ;
18312 return 0;
18313}
18314_ACEOF
18315rm -f conftest.$ac_objext
18316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18317 (eval $ac_compile) 2>conftest.er1
a848cd7e 18318 ac_status=$?
ac1cb8d3
VS
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
a848cd7e
SC
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
89be85c2
VS
18324 { ac_try='test -z "$ac_c_werror_flag"
18325 || test ! -s conftest.err'
ac1cb8d3
VS
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } &&
18331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; }; then
18337 ac_hi=-1 ac_mid=-1
18338 while :; do
18339 cat >conftest.$ac_ext <<_ACEOF
18340/* confdefs.h. */
18341_ACEOF
18342cat confdefs.h >>conftest.$ac_ext
18343cat >>conftest.$ac_ext <<_ACEOF
18344/* end confdefs.h. */
18345$ac_includes_default
18346int
18347main ()
18348{
18349static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18350test_array [0] = 0
18351
18352 ;
18353 return 0;
18354}
18355_ACEOF
18356rm -f conftest.$ac_objext
18357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18358 (eval $ac_compile) 2>conftest.er1
a848cd7e 18359 ac_status=$?
ac1cb8d3
VS
18360 grep -v '^ *+' conftest.er1 >conftest.err
18361 rm -f conftest.er1
18362 cat conftest.err >&5
a848cd7e
SC
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } &&
89be85c2
VS
18365 { ac_try='test -z "$ac_c_werror_flag"
18366 || test ! -s conftest.err'
ac1cb8d3
VS
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
18378 ac_lo=$ac_mid; break
18379else
18380 echo "$as_me: failed program was:" >&5
18381sed 's/^/| /' conftest.$ac_ext >&5
18382
18383ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18384 if test $ac_mid -le $ac_hi; then
18385 ac_lo= ac_hi=
18386 break
18387 fi
18388 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18389fi
ac1cb8d3 18390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18391 done
18392else
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396ac_lo= ac_hi=
18397fi
ac1cb8d3 18398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18399fi
ac1cb8d3 18400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18401# Binary search between lo and hi bounds.
18402while test "x$ac_lo" != "x$ac_hi"; do
18403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18404 cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410$ac_includes_default
18411int
18412main ()
18413{
18414static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18415test_array [0] = 0
18416
18417 ;
18418 return 0;
18419}
18420_ACEOF
18421rm -f conftest.$ac_objext
18422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18423 (eval $ac_compile) 2>conftest.er1
a848cd7e 18424 ac_status=$?
ac1cb8d3
VS
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
a848cd7e
SC
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
89be85c2
VS
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
ac1cb8d3
VS
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18443 ac_hi=$ac_mid
18444else
18445 echo "$as_me: failed program was:" >&5
18446sed 's/^/| /' conftest.$ac_ext >&5
18447
18448ac_lo=`expr '(' $ac_mid ')' + 1`
18449fi
ac1cb8d3 18450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18451done
18452case $ac_lo in
18453?*) ac_cv_sizeof_long_long=$ac_lo;;
18454'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18455See \`config.log' for more details." >&5
18456echo "$as_me: error: cannot compute sizeof (long long), 77
18457See \`config.log' for more details." >&2;}
18458 { (exit 1); exit 1; }; } ;;
18459esac
18460else
18461 if test "$cross_compiling" = yes; then
89be85c2
VS
18462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18463See \`config.log' for more details." >&5
18464echo "$as_me: error: cannot run test program while cross compiling
18465See \`config.log' for more details." >&2;}
a848cd7e
SC
18466 { (exit 1); exit 1; }; }
18467else
18468 cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
18474$ac_includes_default
18475long longval () { return (long) (sizeof (long long)); }
18476unsigned long ulongval () { return (long) (sizeof (long long)); }
18477#include <stdio.h>
18478#include <stdlib.h>
18479int
18480main ()
18481{
18482
18483 FILE *f = fopen ("conftest.val", "w");
18484 if (! f)
18485 exit (1);
18486 if (((long) (sizeof (long long))) < 0)
18487 {
18488 long i = longval ();
18489 if (i != ((long) (sizeof (long long))))
18490 exit (1);
18491 fprintf (f, "%ld\n", i);
18492 }
18493 else
18494 {
18495 unsigned long i = ulongval ();
18496 if (i != ((long) (sizeof (long long))))
18497 exit (1);
18498 fprintf (f, "%lu\n", i);
18499 }
18500 exit (ferror (f) || fclose (f) != 0);
18501
18502 ;
18503 return 0;
18504}
18505_ACEOF
18506rm -f conftest$ac_exeext
18507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_cv_sizeof_long_long=`cat conftest.val`
18518else
18519 echo "$as_me: program exited with status $ac_status" >&5
18520echo "$as_me: failed program was:" >&5
18521sed 's/^/| /' conftest.$ac_ext >&5
18522
18523( exit $ac_status )
18524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18525See \`config.log' for more details." >&5
18526echo "$as_me: error: cannot compute sizeof (long long), 77
18527See \`config.log' for more details." >&2;}
18528 { (exit 1); exit 1; }; }
18529fi
ac1cb8d3 18530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18531fi
18532fi
18533rm -f conftest.val
18534else
18535 ac_cv_sizeof_long_long=0
18536fi
18537fi
18538echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18539echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18540cat >>confdefs.h <<_ACEOF
18541#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18542_ACEOF
18543
18544
18545esac
18546
18547echo "$as_me:$LINENO: checking size of wchar_t" >&5
18548echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18549if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551else
18552
18553 if test "$cross_compiling" = yes; then
18554
18555 case "${host}" in
18556 *-pc-msdosdjgpp )
18557 wx_cv_sizeof_wchar_t=0
18558 ;;
18559 * )
18560 wx_cv_sizeof_wchar_t=4
18561 ;;
18562 esac
18563
18564
18565else
18566 cat >conftest.$ac_ext <<_ACEOF
18567/* confdefs.h. */
18568_ACEOF
18569cat confdefs.h >>conftest.$ac_ext
18570cat >>conftest.$ac_ext <<_ACEOF
18571/* end confdefs.h. */
18572
18573 /* DJGPP only has fake wchar_t: */
18574 #ifdef __DJGPP__
18575 # error "fake wchar_t"
18576 #endif
18577 #ifdef HAVE_WCHAR_H
18578 # ifdef __CYGWIN__
18579 # include <stddef.h>
18580 # endif
18581 # include <wchar.h>
18582 #endif
18583 #ifdef HAVE_STDLIB_H
18584 # include <stdlib.h>
18585 #endif
18586 #include <stdio.h>
18587 int main()
18588 {
18589 FILE *f=fopen("conftestval", "w");
18590 if (!f) exit(1);
18591 fprintf(f, "%i", sizeof(wchar_t));
18592 exit(0);
18593 }
18594
18595_ACEOF
18596rm -f conftest$ac_exeext
18597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 wx_cv_sizeof_wchar_t=`cat conftestval`
18608else
18609 echo "$as_me: program exited with status $ac_status" >&5
18610echo "$as_me: failed program was:" >&5
18611sed 's/^/| /' conftest.$ac_ext >&5
18612
18613( exit $ac_status )
18614wx_cv_sizeof_wchar_t=0
18615fi
ac1cb8d3 18616rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18617fi
18618
18619fi
18620echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18621echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18622
18623cat >>confdefs.h <<_ACEOF
18624#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18625_ACEOF
18626
18627
ba3d13e1
VZ
18628echo "$as_me:$LINENO: checking for va_copy" >&5
18629echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18630if test "${wx_cv_func_va_copy+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18632else
18633
18634 cat >conftest.$ac_ext <<_ACEOF
18635
18636 #include <stdarg.h>
18637 void foo(char *f, ...)
18638 {
18639 va_list ap1, ap2;
18640 va_start(ap1, f);
18641 va_copy(ap2, ap1);
18642 va_end(ap2);
18643 va_end(ap1);
18644 }
5886b072
VZ
18645 int main()
18646 {
b902e639
VZ
18647 foo("hi", 17);
18648 return 0;
5886b072 18649 }
ba3d13e1
VZ
18650_ACEOF
18651rm -f conftest.$ac_objext conftest$ac_exeext
18652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18653 (eval $ac_link) 2>conftest.er1
18654 ac_status=$?
18655 grep -v '^ *+' conftest.er1 >conftest.err
18656 rm -f conftest.er1
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
89be85c2
VS
18660 { ac_try='test -z "$ac_c_werror_flag"
18661 || test ! -s conftest.err'
ba3d13e1
VZ
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest$ac_exeext'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 wx_cv_func_va_copy=yes
18674else
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678wx_cv_func_va_copy=no
18679
18680fi
18681rm -f conftest.err conftest.$ac_objext \
18682 conftest$ac_exeext conftest.$ac_ext
18683
18684
18685fi
18686echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18687echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18688
18689if test $wx_cv_func_va_copy = "yes"; then
18690 cat >>confdefs.h <<\_ACEOF
18691#define HAVE_VA_COPY 1
18692_ACEOF
18693
18694else
18695 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18696echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18697if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700
18701 if test "$cross_compiling" = yes; then
18702 wx_cv_type_va_list_lvalue=yes
18703
18704else
18705 cat >conftest.$ac_ext <<_ACEOF
18706
18707 #include <stdarg.h>
18708 int foo(char *f, ...)
18709 {
18710 va_list ap1, ap2;
18711 va_start(ap1, f);
18712 ap2 = ap1;
18713 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18714 return 1;
18715 va_end(ap2);
18716 va_end(ap1);
18717 return 0;
18718 }
18719 int main()
18720 {
18721 return foo("hi", 17);
18722 }
18723_ACEOF
18724rm -f conftest$ac_exeext
18725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18726 (eval $ac_link) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 wx_cv_type_va_list_lvalue=yes
18736else
18737 echo "$as_me: program exited with status $ac_status" >&5
18738echo "$as_me: failed program was:" >&5
18739sed 's/^/| /' conftest.$ac_ext >&5
18740
18741( exit $ac_status )
18742wx_cv_type_va_list_lvalue=no
18743fi
18744rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18745fi
18746
18747
18748fi
18749echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18750echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18751
18752 if test $wx_cv_type_va_list_lvalue != "yes"; then
18753 cat >>confdefs.h <<\_ACEOF
18754#define VA_LIST_IS_ARRAY 1
18755_ACEOF
18756
18757 fi
18758fi
18759
a848cd7e
SC
18760# Check whether --enable-largefile or --disable-largefile was given.
18761if test "${enable_largefile+set}" = set; then
18762 enableval="$enable_largefile"
18763
18764fi;
18765if test "$enable_largefile" != no; then
18766 wx_largefile=no
18767
18768 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18769echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18770if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772else
18773
18774 cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
18780#define _FILE_OFFSET_BITS 64
18781 #include <sys/types.h>
18782int
18783main ()
18784{
18785typedef struct {
18786 unsigned int field: sizeof(off_t) == 8;
18787} wxlf;
18788
18789 ;
18790 return 0;
18791}
18792_ACEOF
18793rm -f conftest.$ac_objext
18794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18795 (eval $ac_compile) 2>conftest.er1
a848cd7e 18796 ac_status=$?
ac1cb8d3
VS
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
a848cd7e
SC
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
89be85c2
VS
18802 { ac_try='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
ac1cb8d3
VS
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_cv_sys_file_offset_bits=64
18816else
18817 echo "$as_me: failed program was:" >&5
18818sed 's/^/| /' conftest.$ac_ext >&5
18819
18820ac_cv_sys_file_offset_bits=no
18821fi
ac1cb8d3 18822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18823
18824
18825fi
18826echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18827echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18828
18829 if test "$ac_cv_sys_file_offset_bits" != no; then
18830 wx_largefile=yes
18831 cat >>confdefs.h <<_ACEOF
18832#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18833_ACEOF
18834
18835 fi
18836
18837 if test "x$wx_largefile" != "xyes"; then
18838
18839 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18840echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18841if test "${ac_cv_sys_large_files+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844
18845 cat >conftest.$ac_ext <<_ACEOF
18846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
18851#define _LARGE_FILES 1
18852 #include <sys/types.h>
18853int
18854main ()
18855{
18856typedef struct {
18857 unsigned int field: sizeof(off_t) == 8;
18858} wxlf;
18859
18860 ;
18861 return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext
18865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18866 (eval $ac_compile) 2>conftest.er1
a848cd7e 18867 ac_status=$?
ac1cb8d3
VS
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
a848cd7e
SC
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } &&
89be85c2
VS
18873 { ac_try='test -z "$ac_c_werror_flag"
18874 || test ! -s conftest.err'
ac1cb8d3
VS
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } &&
18880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_sys_large_files=1
18887else
18888 echo "$as_me: failed program was:" >&5
18889sed 's/^/| /' conftest.$ac_ext >&5
18890
18891ac_cv_sys_large_files=no
18892fi
ac1cb8d3 18893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18894
18895
18896fi
18897echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18898echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18899
18900 if test "$ac_cv_sys_large_files" != no; then
18901 wx_largefile=yes
18902 cat >>confdefs.h <<_ACEOF
18903#define _LARGE_FILES $ac_cv_sys_large_files
18904_ACEOF
18905
18906 fi
18907
18908 fi
18909
18910 echo "$as_me:$LINENO: checking if large file support is available" >&5
18911echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18912 if test "x$wx_largefile" = "xyes"; then
18913 cat >>confdefs.h <<\_ACEOF
18914#define HAVE_LARGEFILE_SUPPORT 1
18915_ACEOF
18916
18917 fi
18918 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18919echo "${ECHO_T}$wx_largefile" >&6
18920fi
18921
5b674b9d
DE
18922
18923if test "x$wx_largefile" = "xyes"; then
18924 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18925 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18926 else
18927 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18928 fi
18929 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18930echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18931if test "${ac_cv_sys_largefile_source+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933else
18934 while :; do
18935 ac_cv_sys_largefile_source=no
18936 cat >conftest.$ac_ext <<_ACEOF
18937/* confdefs.h. */
18938_ACEOF
18939cat confdefs.h >>conftest.$ac_ext
18940cat >>conftest.$ac_ext <<_ACEOF
18941/* end confdefs.h. */
18942#include <stdio.h>
18943int
18944main ()
18945{
18946return !fseeko;
18947 ;
18948 return 0;
18949}
18950_ACEOF
18951rm -f conftest.$ac_objext
18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>conftest.er1
18954 ac_status=$?
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
89be85c2
VS
18960 { ac_try='test -z "$ac_c_werror_flag"
18961 || test ! -s conftest.err'
5294a27e
VZ
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 break
18974else
18975 echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978fi
18979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18980 cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986#define _LARGEFILE_SOURCE 1
18987#include <stdio.h>
18988int
18989main ()
18990{
18991return !fseeko;
18992 ;
18993 return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext
18997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998 (eval $ac_compile) 2>conftest.er1
18999 ac_status=$?
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
89be85c2
VS
19005 { ac_try='test -z "$ac_c_werror_flag"
19006 || test ! -s conftest.err'
5294a27e
VZ
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; }; then
19018 ac_cv_sys_largefile_source=1; break
19019else
19020 echo "$as_me: failed program was:" >&5
19021sed 's/^/| /' conftest.$ac_ext >&5
19022
19023fi
19024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 break
19026done
19027fi
19028echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19029echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19030if test "$ac_cv_sys_largefile_source" != no; then
19031
19032cat >>confdefs.h <<_ACEOF
19033#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19034_ACEOF
19035
19036fi
19037rm -f conftest*
19038
19039# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19040# in glibc 2.1.3, but that breaks too many other things.
19041# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19042echo "$as_me:$LINENO: checking for fseeko" >&5
19043echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
19044if test "${ac_cv_func_fseeko+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19046else
19047 cat >conftest.$ac_ext <<_ACEOF
19048/* confdefs.h. */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h. */
19053#include <stdio.h>
19054int
19055main ()
19056{
19057return fseeko && fseeko (stdin, 0, 0);
19058 ;
19059 return 0;
19060}
19061_ACEOF
19062rm -f conftest.$ac_objext conftest$ac_exeext
19063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19064 (eval $ac_link) 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
89be85c2
VS
19071 { ac_try='test -z "$ac_c_werror_flag"
19072 || test ! -s conftest.err'
5294a27e
VZ
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest$ac_exeext'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084 ac_cv_func_fseeko=yes
19085else
19086 echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089ac_cv_func_fseeko=no
19090fi
19091rm -f conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
19093fi
19094echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19095echo "${ECHO_T}$ac_cv_func_fseeko" >&6
19096if test $ac_cv_func_fseeko = yes; then
19097
19098cat >>confdefs.h <<\_ACEOF
19099#define HAVE_FSEEKO 1
19100_ACEOF
19101
19102fi
19103
5b674b9d
DE
19104 if test "$ac_cv_sys_largefile_source" != no; then
19105 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
19106 fi
19107 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
19108fi
19109
19110echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19111echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19112if test "${ac_cv_c_bigendian+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115 ac_cv_c_bigendian=unknown
19116# See if sys/param.h defines the BYTE_ORDER macro.
19117cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h. */
19123#include <sys/types.h>
19124#include <sys/param.h>
19125int
19126main ()
19127{
19128
19129#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19130 bogus endian macros
19131#endif
19132 ;
19133 return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19138 (eval $ac_compile) 2>conftest.er1
a848cd7e 19139 ac_status=$?
ac1cb8d3
VS
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
a848cd7e
SC
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
89be85c2
VS
19145 { ac_try='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
ac1cb8d3
VS
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 # It does; now see whether it defined to BIG_ENDIAN or not.
19159cat >conftest.$ac_ext <<_ACEOF
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
19165#include <sys/types.h>
19166#include <sys/param.h>
19167int
19168main ()
19169{
19170
19171#if BYTE_ORDER != BIG_ENDIAN
19172 not big endian
19173#endif
19174 ;
19175 return 0;
19176}
19177_ACEOF
19178rm -f conftest.$ac_objext
19179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19180 (eval $ac_compile) 2>conftest.er1
a848cd7e 19181 ac_status=$?
ac1cb8d3
VS
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
a848cd7e
SC
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
89be85c2
VS
19187 { ac_try='test -z "$ac_c_werror_flag"
19188 || test ! -s conftest.err'
ac1cb8d3
VS
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19200 ac_cv_c_bigendian=yes
19201else
19202 echo "$as_me: failed program was:" >&5
19203sed 's/^/| /' conftest.$ac_ext >&5
19204
19205ac_cv_c_bigendian=no
19206fi
ac1cb8d3 19207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19208else
19209 echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212fi
ac1cb8d3 19213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19214if test $ac_cv_c_bigendian = unknown; then
19215if test "$cross_compiling" = yes; then
19216 ac_cv_c_bigendian=unknown
19217else
19218 cat >conftest.$ac_ext <<_ACEOF
19219/* confdefs.h. */
19220_ACEOF
19221cat confdefs.h >>conftest.$ac_ext
19222cat >>conftest.$ac_ext <<_ACEOF
19223/* end confdefs.h. */
19224main () {
19225 /* Are we little or big endian? From Harbison&Steele. */
19226 union
19227 {
19228 long l;
19229 char c[sizeof (long)];
19230 } u;
19231 u.l = 1;
19232 exit (u.c[sizeof (long) - 1] == 1);
19233}
19234_ACEOF
19235rm -f conftest$ac_exeext
19236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19237 (eval $ac_link) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_cv_c_bigendian=no
19247else
19248 echo "$as_me: program exited with status $ac_status" >&5
19249echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252( exit $ac_status )
19253ac_cv_c_bigendian=yes
19254fi
ac1cb8d3 19255rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19256fi
19257fi
19258fi
19259echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19260echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19261if test $ac_cv_c_bigendian = unknown; then
19262 { 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
19263echo "$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;}
19264fi
19265if test $ac_cv_c_bigendian = yes; then
19266 cat >>confdefs.h <<\_ACEOF
19267#define WORDS_BIGENDIAN 1
19268_ACEOF
19269
19270fi
19271
19272
19273ac_ext=cc
19274ac_cpp='$CXXCPP $CPPFLAGS'
19275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19278echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19279echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19280if test -z "$CXXCPP"; then
19281 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283else
19284 # Double quotes because CXXCPP needs to be expanded
19285 for CXXCPP in "$CXX -E" "/lib/cpp"
19286 do
19287 ac_preproc_ok=false
19288for ac_cxx_preproc_warn_flag in '' yes
19289do
19290 # Use a header file that comes with gcc, so configuring glibc
19291 # with a fresh cross-compiler works.
19292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19293 # <limits.h> exists even on freestanding compilers.
19294 # On the NeXT, cc -E runs the code through the compiler's parser,
19295 # not just through cpp. "Syntax error" is here to catch this case.
19296 cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h. */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */
19302#ifdef __STDC__
19303# include <limits.h>
19304#else
19305# include <assert.h>
19306#endif
ac1cb8d3 19307 Syntax error
a848cd7e
SC
19308_ACEOF
19309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } >/dev/null; then
19317 if test -s conftest.err; then
19318 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19319 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19320 else
19321 ac_cpp_err=
19322 fi
19323else
19324 ac_cpp_err=yes
19325fi
19326if test -z "$ac_cpp_err"; then
19327 :
19328else
19329 echo "$as_me: failed program was:" >&5
19330sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 # Broken: fails on valid input.
19333continue
19334fi
19335rm -f conftest.err conftest.$ac_ext
19336
19337 # OK, works on sane cases. Now check whether non-existent headers
19338 # can be detected and how.
19339 cat >conftest.$ac_ext <<_ACEOF
19340/* confdefs.h. */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h. */
19345#include <ac_nonexistent.h>
19346_ACEOF
19347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } >/dev/null; then
19355 if test -s conftest.err; then
19356 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19357 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19358 else
19359 ac_cpp_err=
19360 fi
19361else
19362 ac_cpp_err=yes
19363fi
19364if test -z "$ac_cpp_err"; then
19365 # Broken: success on invalid input.
19366continue
19367else
19368 echo "$as_me: failed program was:" >&5
19369sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 # Passes both tests.
19372ac_preproc_ok=:
19373break
19374fi
19375rm -f conftest.err conftest.$ac_ext
19376
19377done
19378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19379rm -f conftest.err conftest.$ac_ext
19380if $ac_preproc_ok; then
19381 break
19382fi
19383
19384 done
19385 ac_cv_prog_CXXCPP=$CXXCPP
19386
19387fi
19388 CXXCPP=$ac_cv_prog_CXXCPP
19389else
19390 ac_cv_prog_CXXCPP=$CXXCPP
19391fi
19392echo "$as_me:$LINENO: result: $CXXCPP" >&5
19393echo "${ECHO_T}$CXXCPP" >&6
19394ac_preproc_ok=false
19395for ac_cxx_preproc_warn_flag in '' yes
19396do
19397 # Use a header file that comes with gcc, so configuring glibc
19398 # with a fresh cross-compiler works.
19399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19400 # <limits.h> exists even on freestanding compilers.
19401 # On the NeXT, cc -E runs the code through the compiler's parser,
19402 # not just through cpp. "Syntax error" is here to catch this case.
19403 cat >conftest.$ac_ext <<_ACEOF
19404/* confdefs.h. */
19405_ACEOF
19406cat confdefs.h >>conftest.$ac_ext
19407cat >>conftest.$ac_ext <<_ACEOF
19408/* end confdefs.h. */
19409#ifdef __STDC__
19410# include <limits.h>
19411#else
19412# include <assert.h>
19413#endif
ac1cb8d3 19414 Syntax error
a848cd7e
SC
19415_ACEOF
19416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } >/dev/null; then
19424 if test -s conftest.err; then
19425 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19426 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19427 else
19428 ac_cpp_err=
19429 fi
19430else
19431 ac_cpp_err=yes
19432fi
19433if test -z "$ac_cpp_err"; then
19434 :
19435else
19436 echo "$as_me: failed program was:" >&5
19437sed 's/^/| /' conftest.$ac_ext >&5
19438
19439 # Broken: fails on valid input.
19440continue
19441fi
19442rm -f conftest.err conftest.$ac_ext
19443
19444 # OK, works on sane cases. Now check whether non-existent headers
19445 # can be detected and how.
19446 cat >conftest.$ac_ext <<_ACEOF
19447/* confdefs.h. */
19448_ACEOF
19449cat confdefs.h >>conftest.$ac_ext
19450cat >>conftest.$ac_ext <<_ACEOF
19451/* end confdefs.h. */
19452#include <ac_nonexistent.h>
19453_ACEOF
19454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19455 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
19462 if test -s conftest.err; then
19463 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19464 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19465 else
19466 ac_cpp_err=
19467 fi
19468else
19469 ac_cpp_err=yes
19470fi
19471if test -z "$ac_cpp_err"; then
19472 # Broken: success on invalid input.
19473continue
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478 # Passes both tests.
19479ac_preproc_ok=:
19480break
19481fi
19482rm -f conftest.err conftest.$ac_ext
19483
19484done
19485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19486rm -f conftest.err conftest.$ac_ext
19487if $ac_preproc_ok; then
19488 :
19489else
19490 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19491See \`config.log' for more details." >&5
19492echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19493See \`config.log' for more details." >&2;}
19494 { (exit 1); exit 1; }; }
19495fi
19496
19497ac_ext=cc
19498ac_cpp='$CXXCPP $CPPFLAGS'
19499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19502
19503
19504
19505
19506
19507 ac_ext=cc
19508ac_cpp='$CXXCPP $CPPFLAGS'
19509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513
19514
19515for ac_header in iostream
19516do
19517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19518if eval "test \"\${$as_ac_Header+set}\" = set"; then
19519 echo "$as_me:$LINENO: checking for $ac_header" >&5
19520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19521if eval "test \"\${$as_ac_Header+set}\" = set"; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523fi
19524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19526else
19527 # Is the header compilable?
19528echo "$as_me:$LINENO: checking $ac_header usability" >&5
19529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19530cat >conftest.$ac_ext <<_ACEOF
19531/* confdefs.h. */
19532_ACEOF
19533cat confdefs.h >>conftest.$ac_ext
19534cat >>conftest.$ac_ext <<_ACEOF
19535/* end confdefs.h. */
19536$ac_includes_default
19537#include <$ac_header>
19538_ACEOF
19539rm -f conftest.$ac_objext
19540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19541 (eval $ac_compile) 2>conftest.er1
a848cd7e 19542 ac_status=$?
ac1cb8d3
VS
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
a848cd7e
SC
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
89be85c2
VS
19548 { ac_try='test -z "$ac_cxx_werror_flag"
19549 || test ! -s conftest.err'
ac1cb8d3
VS
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_header_compiler=yes
19562else
19563 echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566ac_header_compiler=no
19567fi
ac1cb8d3 19568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19569echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19570echo "${ECHO_T}$ac_header_compiler" >&6
19571
19572# Is the header present?
19573echo "$as_me:$LINENO: checking $ac_header presence" >&5
19574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19575cat >conftest.$ac_ext <<_ACEOF
19576/* confdefs.h. */
19577_ACEOF
19578cat confdefs.h >>conftest.$ac_ext
19579cat >>conftest.$ac_ext <<_ACEOF
19580/* end confdefs.h. */
19581#include <$ac_header>
19582_ACEOF
19583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19585 ac_status=$?
19586 grep -v '^ *+' conftest.er1 >conftest.err
19587 rm -f conftest.er1
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } >/dev/null; then
19591 if test -s conftest.err; then
19592 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19593 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19594 else
19595 ac_cpp_err=
19596 fi
19597else
19598 ac_cpp_err=yes
19599fi
19600if test -z "$ac_cpp_err"; then
19601 ac_header_preproc=yes
19602else
19603 echo "$as_me: failed program was:" >&5
19604sed 's/^/| /' conftest.$ac_ext >&5
19605
19606 ac_header_preproc=no
19607fi
19608rm -f conftest.err conftest.$ac_ext
19609echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19610echo "${ECHO_T}$ac_header_preproc" >&6
19611
19612# So? What about this header?
ac1cb8d3
VS
19613case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19614 yes:no: )
a848cd7e
SC
19615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19619 ac_header_preproc=yes
a848cd7e 19620 ;;
ac1cb8d3 19621 no:yes:* )
a848cd7e
SC
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19634 (
19635 cat <<\_ASBOX
ac1cb8d3
VS
19636## ----------------------------------------- ##
19637## Report this to wx-dev@lists.wxwidgets.org ##
19638## ----------------------------------------- ##
a848cd7e
SC
19639_ASBOX
19640 ) |
19641 sed "s/^/$as_me: WARNING: /" >&2
19642 ;;
19643esac
19644echo "$as_me:$LINENO: checking for $ac_header" >&5
19645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19646if eval "test \"\${$as_ac_Header+set}\" = set"; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648else
ac1cb8d3 19649 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19650fi
19651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19653
19654fi
19655if test `eval echo '${'$as_ac_Header'}'` = yes; then
19656 cat >>confdefs.h <<_ACEOF
19657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19658_ACEOF
19659
19660fi
19661
19662done
19663
19664
19665 if test "$ac_cv_header_iostream" = "yes" ; then
19666 :
19667 else
19668 cat >>confdefs.h <<\_ACEOF
19669#define wxUSE_IOSTREAMH 1
19670_ACEOF
19671
19672 fi
19673
19674 ac_ext=c
19675ac_cpp='$CPP $CPPFLAGS'
19676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678ac_compiler_gnu=$ac_cv_c_compiler_gnu
19679
19680
19681
19682
19683 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19684echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19685if test "${wx_cv_cpp_bool+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687else
19688
19689
19690
19691 ac_ext=cc
19692ac_cpp='$CXXCPP $CPPFLAGS'
19693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19696
19697
19698 cat >conftest.$ac_ext <<_ACEOF
19699/* confdefs.h. */
19700_ACEOF
19701cat confdefs.h >>conftest.$ac_ext
19702cat >>conftest.$ac_ext <<_ACEOF
19703/* end confdefs.h. */
19704
19705
19706int
19707main ()
19708{
19709
19710 bool b = true;
19711
19712 return 0;
19713
19714 ;
19715 return 0;
19716}
19717_ACEOF
19718rm -f conftest.$ac_objext
19719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19720 (eval $ac_compile) 2>conftest.er1
a848cd7e 19721 ac_status=$?
ac1cb8d3
VS
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
a848cd7e
SC
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } &&
89be85c2
VS
19727 { ac_try='test -z "$ac_cxx_werror_flag"
19728 || test ! -s conftest.err'
ac1cb8d3
VS
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740
19741 wx_cv_cpp_bool=yes
19742
19743else
19744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747
19748 wx_cv_cpp_bool=no
19749
19750
19751fi
ac1cb8d3 19752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19753
19754 ac_ext=c
19755ac_cpp='$CPP $CPPFLAGS'
19756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759
19760
19761fi
19762echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19763echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19764
19765 if test "$wx_cv_cpp_bool" = "yes"; then
19766 cat >>confdefs.h <<\_ACEOF
19767#define HAVE_BOOL 1
19768_ACEOF
19769
19770 fi
19771
19772
19773
19774 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19775echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19776if test "${wx_cv_explicit+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778else
19779
19780
19781
19782 ac_ext=cc
19783ac_cpp='$CXXCPP $CPPFLAGS'
19784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19787
19788
19789 cat >conftest.$ac_ext <<_ACEOF
19790/* confdefs.h. */
19791_ACEOF
19792cat confdefs.h >>conftest.$ac_ext
19793cat >>conftest.$ac_ext <<_ACEOF
19794/* end confdefs.h. */
19795
19796 class Foo { public: explicit Foo(int) {} };
19797
19798int
19799main ()
19800{
19801
19802 return 0;
19803
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19810 (eval $ac_compile) 2>conftest.er1
a848cd7e 19811 ac_status=$?
ac1cb8d3
VS
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
a848cd7e
SC
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
89be85c2
VS
19817 { ac_try='test -z "$ac_cxx_werror_flag"
19818 || test ! -s conftest.err'
ac1cb8d3
VS
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830
19831 cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
19837
19838 class Foo { public: explicit Foo(int) {} };
19839 static void TakeFoo(const Foo& foo) { }
19840
19841int
19842main ()
19843{
19844
19845 TakeFoo(17);
19846 return 0;
19847
19848 ;
19849 return 0;
19850}
19851_ACEOF
19852rm -f conftest.$ac_objext
19853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19854 (eval $ac_compile) 2>conftest.er1
a848cd7e 19855 ac_status=$?
ac1cb8d3
VS
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
a848cd7e
SC
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
89be85c2
VS
19861 { ac_try='test -z "$ac_cxx_werror_flag"
19862 || test ! -s conftest.err'
ac1cb8d3
VS
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 wx_cv_explicit=no
19875else
19876 echo "$as_me: failed program was:" >&5
19877sed 's/^/| /' conftest.$ac_ext >&5
19878
19879wx_cv_explicit=yes
19880
19881fi
ac1cb8d3 19882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19883
19884else
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888wx_cv_explicit=no
19889
19890fi
ac1cb8d3 19891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19892
19893 ac_ext=c
19894ac_cpp='$CPP $CPPFLAGS'
19895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897ac_compiler_gnu=$ac_cv_c_compiler_gnu
19898
19899
19900fi
19901echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19902echo "${ECHO_T}$wx_cv_explicit" >&6
19903
19904 if test "$wx_cv_explicit" = "yes"; then
19905 cat >>confdefs.h <<\_ACEOF
19906#define HAVE_EXPLICIT 1
19907_ACEOF
19908
19909 fi
19910
19911
19912echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19913echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19914if test "${ac_cv_cxx_const_cast+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
19917
19918
19919 ac_ext=cc
19920ac_cpp='$CXXCPP $CPPFLAGS'
19921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19924
19925 cat >conftest.$ac_ext <<_ACEOF
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
19931
19932int
19933main ()
19934{
19935int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19936 ;
19937 return 0;
19938}
19939_ACEOF
19940rm -f conftest.$ac_objext
19941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19942 (eval $ac_compile) 2>conftest.er1
a848cd7e 19943 ac_status=$?
ac1cb8d3
VS
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
a848cd7e
SC
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } &&
89be85c2
VS
19949 { ac_try='test -z "$ac_cxx_werror_flag"
19950 || test ! -s conftest.err'
ac1cb8d3
VS
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19962 ac_cv_cxx_const_cast=yes
19963else
19964 echo "$as_me: failed program was:" >&5
19965sed 's/^/| /' conftest.$ac_ext >&5
19966
19967ac_cv_cxx_const_cast=no
19968fi
ac1cb8d3 19969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19970 ac_ext=c
19971ac_cpp='$CPP $CPPFLAGS'
19972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19974ac_compiler_gnu=$ac_cv_c_compiler_gnu
19975
19976
19977fi
19978echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19979echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19980if test "$ac_cv_cxx_const_cast" = yes; then
19981
19982cat >>confdefs.h <<\_ACEOF
19983#define HAVE_CONST_CAST
19984_ACEOF
19985
19986fi
19987
7714864e
RL
19988echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19989echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19990if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19992else
19993
19994
19995 ac_ext=cc
19996ac_cpp='$CXXCPP $CPPFLAGS'
19997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20000
20001 cat >conftest.$ac_ext <<_ACEOF
20002/* confdefs.h. */
20003_ACEOF
20004cat confdefs.h >>conftest.$ac_ext
20005cat >>conftest.$ac_ext <<_ACEOF
20006/* end confdefs.h. */
20007#include <typeinfo>
20008class Base { public : Base () {} virtual void f () = 0;};
20009class Derived : public Base { public : Derived () {} virtual void f () {} };
20010class Unrelated { public : Unrelated () {} };
20011int g (Unrelated&) { return 0; }
20012int
20013main ()
20014{
20015
20016Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20017 ;
20018 return 0;
20019}
20020_ACEOF
20021rm -f conftest.$ac_objext
20022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023 (eval $ac_compile) 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); } &&
89be85c2
VS
20030 { ac_try='test -z "$ac_cxx_werror_flag"
20031 || test ! -s conftest.err'
7714864e
RL
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 ac_cv_cxx_reinterpret_cast=yes
20044else
20045 echo "$as_me: failed program was:" >&5
20046sed 's/^/| /' conftest.$ac_ext >&5
20047
20048ac_cv_cxx_reinterpret_cast=no
20049fi
20050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20051 ac_ext=c
20052ac_cpp='$CPP $CPPFLAGS'
20053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20055ac_compiler_gnu=$ac_cv_c_compiler_gnu
20056
20057
20058fi
20059echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20060echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20061if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20062
20063cat >>confdefs.h <<\_ACEOF
20064#define HAVE_REINTERPRET_CAST
20065_ACEOF
20066
20067fi
20068
a848cd7e
SC
20069echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20070echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20071if test "${ac_cv_cxx_static_cast+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073else
20074
20075
20076 ac_ext=cc
20077ac_cpp='$CXXCPP $CPPFLAGS'
20078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20081
20082 cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
20088#include <typeinfo>
20089class Base { public : Base () {} virtual void f () = 0; };
20090class Derived : public Base { public : Derived () {} virtual void f () {} };
20091int g (Derived&) { return 0; }
20092int
20093main ()
20094{
20095
20096Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
20097 ;
20098 return 0;
20099}
20100_ACEOF
20101rm -f conftest.$ac_objext
20102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20103 (eval $ac_compile) 2>conftest.er1
a848cd7e 20104 ac_status=$?
ac1cb8d3
VS
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
a848cd7e
SC
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
89be85c2
VS
20110 { ac_try='test -z "$ac_cxx_werror_flag"
20111 || test ! -s conftest.err'
ac1cb8d3
VS
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 ac_cv_cxx_static_cast=yes
20124else
20125 echo "$as_me: failed program was:" >&5
20126sed 's/^/| /' conftest.$ac_ext >&5
20127
20128ac_cv_cxx_static_cast=no
20129fi
ac1cb8d3 20130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20131 ac_ext=c
20132ac_cpp='$CPP $CPPFLAGS'
20133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135ac_compiler_gnu=$ac_cv_c_compiler_gnu
20136
20137
20138fi
20139echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
20140echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
20141if test "$ac_cv_cxx_static_cast" = yes; then
20142
20143cat >>confdefs.h <<\_ACEOF
20144#define HAVE_STATIC_CAST
20145_ACEOF
20146
20147fi
20148
20149
20150if test "$wxUSE_STL" = "yes"; then
20151 ac_ext=cc
20152ac_cpp='$CXXCPP $CPPFLAGS'
20153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20156
20157
20158 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
20159echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
20160 cat >conftest.$ac_ext <<_ACEOF
20161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
20166#include <string>
20167 #include <functional>
20168 #include <algorithm>
20169 #include <vector>
20170 #include <list>
20171int
20172main ()
20173{
20174std::vector<int> moo;
20175 std::list<int> foo;
20176 std::vector<int>::iterator it =
20177 std::find_if(moo.begin(), moo.end(),
20178 std::bind2nd(std::less<int>(), 3));
20179 ;
20180 return 0;
20181}
20182_ACEOF
20183rm -f conftest.$ac_objext
20184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20185 (eval $ac_compile) 2>conftest.er1
a848cd7e 20186 ac_status=$?
ac1cb8d3
VS
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
a848cd7e
SC
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
89be85c2
VS
20192 { ac_try='test -z "$ac_cxx_werror_flag"
20193 || test ! -s conftest.err'
ac1cb8d3
VS
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 echo "$as_me:$LINENO: result: yes" >&5
20206echo "${ECHO_T}yes" >&6
20207else
20208 echo "$as_me: failed program was:" >&5
20209sed 's/^/| /' conftest.$ac_ext >&5
20210
20211echo "$as_me:$LINENO: result: no" >&5
20212echo "${ECHO_T}no" >&6
20213 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20214echo "$as_me: error: Basic STL functionality missing" >&2;}
20215 { (exit 1); exit 1; }; }
20216fi
ac1cb8d3 20217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20218
20219 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20220echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20221 cat >conftest.$ac_ext <<_ACEOF
20222/* confdefs.h. */
20223_ACEOF
20224cat confdefs.h >>conftest.$ac_ext
20225cat >>conftest.$ac_ext <<_ACEOF
20226/* end confdefs.h. */
20227#include <string>
20228int
20229main ()
20230{
20231std::wstring foo;
20232 ;
20233 return 0;
20234}
20235_ACEOF
20236rm -f conftest.$ac_objext
20237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20238 (eval $ac_compile) 2>conftest.er1
a848cd7e 20239 ac_status=$?
ac1cb8d3
VS
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
a848cd7e
SC
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
89be85c2
VS
20245 { ac_try='test -z "$ac_cxx_werror_flag"
20246 || test ! -s conftest.err'
ac1cb8d3
VS
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 echo "$as_me:$LINENO: result: yes" >&5
20259echo "${ECHO_T}yes" >&6
20260 cat >>confdefs.h <<\_ACEOF
20261#define HAVE_STD_WSTRING 1
20262_ACEOF
20263
20264else
20265 echo "$as_me: failed program was:" >&5
20266sed 's/^/| /' conftest.$ac_ext >&5
20267
20268echo "$as_me:$LINENO: result: no" >&5
20269echo "${ECHO_T}no" >&6
20270fi
ac1cb8d3 20271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20272
20273 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20274echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20275 cat >conftest.$ac_ext <<_ACEOF
20276/* confdefs.h. */
20277_ACEOF
20278cat confdefs.h >>conftest.$ac_ext
20279cat >>conftest.$ac_ext <<_ACEOF
20280/* end confdefs.h. */
20281#include <string>
20282int
20283main ()
20284{
20285std::string foo, bar;
20286 foo.compare(bar);
20287 foo.compare(1, 1, bar);
20288 foo.compare(1, 1, bar, 1, 1);
20289 foo.compare("");
20290 foo.compare(1, 1, "");
20291 foo.compare(1, 1, "", 2);
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20298 (eval $ac_compile) 2>conftest.er1
a848cd7e 20299 ac_status=$?
ac1cb8d3
VS
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
a848cd7e
SC
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
89be85c2
VS
20305 { ac_try='test -z "$ac_cxx_werror_flag"
20306 || test ! -s conftest.err'
ac1cb8d3
VS
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 echo "$as_me:$LINENO: result: yes" >&5
20319echo "${ECHO_T}yes" >&6
20320 cat >>confdefs.h <<\_ACEOF
20321#define HAVE_STD_STRING_COMPARE 1
20322_ACEOF
20323
20324else
20325 echo "$as_me: failed program was:" >&5
20326sed 's/^/| /' conftest.$ac_ext >&5
20327
20328echo "$as_me:$LINENO: result: no" >&5
20329echo "${ECHO_T}no" >&6
20330fi
ac1cb8d3 20331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20332
20333 if test "${ac_cv_header_hash_map+set}" = set; then
20334 echo "$as_me:$LINENO: checking for hash_map" >&5
20335echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20336if test "${ac_cv_header_hash_map+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338fi
20339echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20340echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20341else
20342 # Is the header compilable?
20343echo "$as_me:$LINENO: checking hash_map usability" >&5
20344echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20345cat >conftest.$ac_ext <<_ACEOF
20346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
20351$ac_includes_default
20352#include <hash_map>
20353_ACEOF
20354rm -f conftest.$ac_objext
20355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20356 (eval $ac_compile) 2>conftest.er1
bdcade0a 20357 ac_status=$?
ac1cb8d3
VS
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
bdcade0a
MB
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
89be85c2
VS
20363 { ac_try='test -z "$ac_cxx_werror_flag"
20364 || test ! -s conftest.err'
ac1cb8d3
VS
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 ac_header_compiler=yes
20377else
20378 echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381ac_header_compiler=no
20382fi
ac1cb8d3 20383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20385echo "${ECHO_T}$ac_header_compiler" >&6
20386
20387# Is the header present?
20388echo "$as_me:$LINENO: checking hash_map presence" >&5
20389echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20390cat >conftest.$ac_ext <<_ACEOF
20391/* confdefs.h. */
20392_ACEOF
20393cat confdefs.h >>conftest.$ac_ext
20394cat >>conftest.$ac_ext <<_ACEOF
20395/* end confdefs.h. */
20396#include <hash_map>
20397_ACEOF
20398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20400 ac_status=$?
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } >/dev/null; then
20406 if test -s conftest.err; then
20407 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20409 else
20410 ac_cpp_err=
20411 fi
20412else
20413 ac_cpp_err=yes
20414fi
20415if test -z "$ac_cpp_err"; then
20416 ac_header_preproc=yes
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 ac_header_preproc=no
20422fi
20423rm -f conftest.err conftest.$ac_ext
20424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20425echo "${ECHO_T}$ac_header_preproc" >&6
20426
20427# So? What about this header?
ac1cb8d3
VS
20428case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20429 yes:no: )
bdcade0a
MB
20430 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20431echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20432 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20433echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20434 ac_header_preproc=yes
bdcade0a 20435 ;;
ac1cb8d3 20436 no:yes:* )
bdcade0a
MB
20437 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20438echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20439 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20440echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20441 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20442echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20443 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20444echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20445 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20446echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20447 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20448echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20449 (
20450 cat <<\_ASBOX
ac1cb8d3
VS
20451## ----------------------------------------- ##
20452## Report this to wx-dev@lists.wxwidgets.org ##
20453## ----------------------------------------- ##
bdcade0a
MB
20454_ASBOX
20455 ) |
20456 sed "s/^/$as_me: WARNING: /" >&2
20457 ;;
20458esac
20459echo "$as_me:$LINENO: checking for hash_map" >&5
20460echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20461if test "${ac_cv_header_hash_map+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463else
20464 ac_cv_header_hash_map=$ac_header_preproc
20465fi
20466echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20467echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20468
20469fi
20470if test $ac_cv_header_hash_map = yes; then
20471 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20472echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20473 cat >conftest.$ac_ext <<_ACEOF
20474/* confdefs.h. */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h. */
20479#include <hash_map>
20480 #include <hash_set>
20481int
20482main ()
20483{
20484std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20485 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20486 ;
20487 return 0;
20488}
20489_ACEOF
20490rm -f conftest.$ac_objext
20491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20492 (eval $ac_compile) 2>conftest.er1
bdcade0a 20493 ac_status=$?
ac1cb8d3
VS
20494 grep -v '^ *+' conftest.er1 >conftest.err
20495 rm -f conftest.er1
20496 cat conftest.err >&5
bdcade0a
MB
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
89be85c2
VS
20499 { ac_try='test -z "$ac_cxx_werror_flag"
20500 || test ! -s conftest.err'
ac1cb8d3
VS
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 echo "$as_me:$LINENO: result: yes" >&5
20513echo "${ECHO_T}yes" >&6
20514 cat >>confdefs.h <<\_ACEOF
20515#define HAVE_HASH_MAP 1
20516_ACEOF
20517
20518 cat >>confdefs.h <<\_ACEOF
20519#define HAVE_STD_HASH_MAP 1
20520_ACEOF
20521
20522else
20523 echo "$as_me: failed program was:" >&5
20524sed 's/^/| /' conftest.$ac_ext >&5
20525
20526echo "$as_me:$LINENO: result: no" >&5
20527echo "${ECHO_T}no" >&6
20528fi
ac1cb8d3 20529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20530
20531fi
20532
20533
20534
20535 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20536 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20537echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20538if test "${ac_cv_header_ext_hash_map+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540fi
20541echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20542echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20543else
20544 # Is the header compilable?
20545echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20546echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20547cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
20553$ac_includes_default
20554#include <ext/hash_map>
20555_ACEOF
20556rm -f conftest.$ac_objext
20557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20558 (eval $ac_compile) 2>conftest.er1
bdcade0a 20559 ac_status=$?
ac1cb8d3
VS
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
bdcade0a
MB
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
89be85c2
VS
20565 { ac_try='test -z "$ac_cxx_werror_flag"
20566 || test ! -s conftest.err'
ac1cb8d3
VS
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; } &&
20572 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20578 ac_header_compiler=yes
20579else
20580 echo "$as_me: failed program was:" >&5
20581sed 's/^/| /' conftest.$ac_ext >&5
20582
20583ac_header_compiler=no
20584fi
ac1cb8d3 20585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20587echo "${ECHO_T}$ac_header_compiler" >&6
20588
20589# Is the header present?
20590echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20591echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20592cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h. */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h. */
20598#include <ext/hash_map>
20599_ACEOF
20600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } >/dev/null; then
20608 if test -s conftest.err; then
20609 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20610 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20611 else
20612 ac_cpp_err=
20613 fi
20614else
20615 ac_cpp_err=yes
20616fi
20617if test -z "$ac_cpp_err"; then
20618 ac_header_preproc=yes
20619else
20620 echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_header_preproc=no
20624fi
20625rm -f conftest.err conftest.$ac_ext
20626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20627echo "${ECHO_T}$ac_header_preproc" >&6
20628
20629# So? What about this header?
ac1cb8d3
VS
20630case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20631 yes:no: )
bdcade0a
MB
20632 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20633echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20634 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20635echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20636 ac_header_preproc=yes
bdcade0a 20637 ;;
ac1cb8d3 20638 no:yes:* )
bdcade0a
MB
20639 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20640echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20641 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20642echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20644echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20646echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20647 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20648echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20649 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20650echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20651 (
20652 cat <<\_ASBOX
ac1cb8d3
VS
20653## ----------------------------------------- ##
20654## Report this to wx-dev@lists.wxwidgets.org ##
20655## ----------------------------------------- ##
bdcade0a
MB
20656_ASBOX
20657 ) |
20658 sed "s/^/$as_me: WARNING: /" >&2
20659 ;;
20660esac
20661echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20662echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20663if test "${ac_cv_header_ext_hash_map+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20665else
20666 ac_cv_header_ext_hash_map=$ac_header_preproc
20667fi
20668echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20669echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20670
20671fi
20672if test $ac_cv_header_ext_hash_map = yes; then
20673 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20674echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20675 cat >conftest.$ac_ext <<_ACEOF
20676/* confdefs.h. */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h. */
20681#include <ext/hash_map>
20682 #include <ext/hash_set>
20683int
20684main ()
20685{
20686__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20687 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20688 ;
20689 return 0;
20690}
20691_ACEOF
20692rm -f conftest.$ac_objext
20693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20694 (eval $ac_compile) 2>conftest.er1
bdcade0a 20695 ac_status=$?
ac1cb8d3
VS
20696 grep -v '^ *+' conftest.er1 >conftest.err
20697 rm -f conftest.er1
20698 cat conftest.err >&5
bdcade0a
MB
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
89be85c2
VS
20701 { ac_try='test -z "$ac_cxx_werror_flag"
20702 || test ! -s conftest.err'
ac1cb8d3
VS
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 echo "$as_me:$LINENO: result: yes" >&5
20715echo "${ECHO_T}yes" >&6
20716 cat >>confdefs.h <<\_ACEOF
20717#define HAVE_EXT_HASH_MAP 1
20718_ACEOF
20719
20720 cat >>confdefs.h <<\_ACEOF
20721#define HAVE_GNU_CXX_HASH_MAP 1
20722_ACEOF
20723
20724else
20725 echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728echo "$as_me:$LINENO: result: no" >&5
20729echo "${ECHO_T}no" >&6
20730fi
ac1cb8d3 20731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20732
20733fi
20734
20735
a848cd7e
SC
20736
20737 ac_ext=c
20738ac_cpp='$CPP $CPPFLAGS'
20739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20741ac_compiler_gnu=$ac_cv_c_compiler_gnu
20742
20743fi
20744
20745
20746SEARCH_INCLUDE="\
20747 /usr/local/include \
20748 \
20749 /usr/Motif-2.1/include \
20750 /usr/Motif-1.2/include \
20751 /usr/include/Motif1.2 \
20752 /opt/xpm/include/X11 \
20753 /opt/GBxpm/include/ \
20754 /opt/GBxpm/X11/include/ \
20755 \
20756 /usr/dt/include \
20757 /usr/openwin/include \
20758 \
20759 /usr/include/Xm \
20760 \
20761 /usr/X11R6/include \
20762 /usr/X11R6.4/include \
20763 /usr/X11R5/include \
20764 /usr/X11R4/include \
20765 \
20766 /usr/include/X11R6 \
20767 /usr/include/X11R5 \
20768 /usr/include/X11R4 \
20769 \
20770 /usr/local/X11R6/include \
20771 /usr/local/X11R5/include \
20772 /usr/local/X11R4/include \
20773 \
20774 /usr/local/include/X11R6 \
20775 /usr/local/include/X11R5 \
20776 /usr/local/include/X11R4 \
20777 \
20778 /usr/X11/include \
20779 /usr/include/X11 \
20780 /usr/local/X11/include \
20781 /usr/local/include/X11 \
20782 \
20783 /usr/X386/include \
20784 /usr/x386/include \
20785 /usr/XFree86/include/X11 \
20786 \
20787 X:/XFree86/include \
20788 X:/XFree86/include/X11 \
20789 \
20790 /usr/include/gtk \
20791 /usr/local/include/gtk \
20792 /usr/include/glib \
20793 /usr/local/include/glib \
20794 \
20795 /usr/include/qt \
20796 /usr/local/include/qt \
20797 \
20798 /usr/local/arm/3.3.2/include \
20799 \
20800 /usr/include/windows \
20801 /usr/include/wine \
20802 /usr/local/include/wine \
20803 \
ce756cb0
RN
20804 /usr/include/gstreamer-0.8 \
20805 /usr/local/include/gstreamer-0.8 \
20806 /usr/include/libxml2 \
20807 /usr/local/include/libxml2 \
20808 \
a848cd7e
SC
20809 /usr/unsupported/include \
20810 /usr/athena/include \
20811 /usr/local/x11r5/include \
20812 /usr/lpp/Xamples/include \
20813 \
20814 /usr/openwin/share/include"
20815
20816SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20817
20818
20819cat >confcache <<\_ACEOF
20820# This file is a shell script that caches the results of configure
20821# tests run on this system so they can be shared between configure
20822# scripts and configure runs, see configure's option --config-cache.
20823# It is not useful on other systems. If it contains results you don't
20824# want to keep, you may remove or edit it.
20825#
20826# config.status only pays attention to the cache file if you give it
20827# the --recheck option to rerun configure.
20828#
20829# `ac_cv_env_foo' variables (set or unset) will be overridden when
20830# loading this file, other *unset* `ac_cv_foo' will be assigned the
20831# following values.
20832
20833_ACEOF
20834
20835# The following way of writing the cache mishandles newlines in values,
20836# but we know of no workaround that is simple, portable, and efficient.
20837# So, don't put newlines in cache variables' values.
20838# Ultrix sh set writes to stderr and can't be redirected directly,
20839# and sets the high bit in the cache file unless we assign to the vars.
20840{
20841 (set) 2>&1 |
20842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20843 *ac_space=\ *)
20844 # `set' does not quote correctly, so add quotes (double-quote
20845 # substitution turns \\\\ into \\, and sed turns \\ into \).
20846 sed -n \
ac1cb8d3
VS
20847 "s/'/'\\\\''/g;
20848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20849 ;;
20850 *)
20851 # `set' quotes correctly as required by POSIX, so do not add quotes.
20852 sed -n \
ac1cb8d3 20853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20854 ;;
20855 esac;
20856} |
20857 sed '
20858 t clear
20859 : clear
20860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20861 t end
20862 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20863 : end' >>confcache
20864if diff $cache_file confcache >/dev/null 2>&1; then :; else
20865 if test -w $cache_file; then
20866 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20867 cat confcache >$cache_file
20868 else
20869 echo "not updating unwritable cache $cache_file"
20870 fi
20871fi
20872rm -f confcache
20873
20874if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20875 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20876echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20877if test "${wx_cv_lib_glibc21+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20879else
20880
20881 cat >conftest.$ac_ext <<_ACEOF
20882/* confdefs.h. */
20883_ACEOF
20884cat confdefs.h >>conftest.$ac_ext
20885cat >>conftest.$ac_ext <<_ACEOF
20886/* end confdefs.h. */
20887#include <features.h>
20888int
20889main ()
20890{
20891
20892 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20893 #error not glibc2.1
20894 #endif
20895
20896 ;
20897 return 0;
20898}
20899_ACEOF
20900rm -f conftest.$ac_objext
20901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20902 (eval $ac_compile) 2>conftest.er1
a848cd7e 20903 ac_status=$?
ac1cb8d3
VS
20904 grep -v '^ *+' conftest.er1 >conftest.err
20905 rm -f conftest.er1
20906 cat conftest.err >&5
a848cd7e
SC
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
89be85c2
VS
20909 { ac_try='test -z "$ac_c_werror_flag"
20910 || test ! -s conftest.err'
ac1cb8d3
VS
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922
20923 wx_cv_lib_glibc21=yes
20924
20925else
20926 echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
20929
20930 wx_cv_lib_glibc21=no
20931
20932
20933fi
ac1cb8d3 20934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20935
20936fi
20937echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20938echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20939 if test "$wx_cv_lib_glibc21" = "yes"; then
20940 cat >>confdefs.h <<\_ACEOF
20941#define wxHAVE_GLIBC2 1
20942_ACEOF
20943
20944 fi
20945fi
20946
20947if test "x$wx_cv_lib_glibc21" = "xyes"; then
20948 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20949 cat >>confdefs.h <<\_ACEOF
20950#define _GNU_SOURCE 1
20951_ACEOF
20952
20953 fi
20954fi
20955
20956
20957
20958if test "$wxUSE_REGEX" != "no"; then
20959 cat >>confdefs.h <<\_ACEOF
20960#define wxUSE_REGEX 1
20961_ACEOF
20962
20963
20964 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20965 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20966echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20967 wxUSE_REGEX=builtin
20968 fi
20969
20970 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20971 if test "${ac_cv_header_regex_h+set}" = set; then
20972 echo "$as_me:$LINENO: checking for regex.h" >&5
20973echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20974if test "${ac_cv_header_regex_h+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20976fi
20977echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20978echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20979else
20980 # Is the header compilable?
20981echo "$as_me:$LINENO: checking regex.h usability" >&5
20982echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20983cat >conftest.$ac_ext <<_ACEOF
20984/* confdefs.h. */
20985_ACEOF
20986cat confdefs.h >>conftest.$ac_ext
20987cat >>conftest.$ac_ext <<_ACEOF
20988/* end confdefs.h. */
20989$ac_includes_default
20990#include <regex.h>
20991_ACEOF
20992rm -f conftest.$ac_objext
20993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20994 (eval $ac_compile) 2>conftest.er1
a848cd7e 20995 ac_status=$?
ac1cb8d3
VS
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
a848cd7e
SC
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
89be85c2
VS
21001 { ac_try='test -z "$ac_c_werror_flag"
21002 || test ! -s conftest.err'
ac1cb8d3
VS
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 ac_header_compiler=yes
21015else
21016 echo "$as_me: failed program was:" >&5
21017sed 's/^/| /' conftest.$ac_ext >&5
21018
21019ac_header_compiler=no
21020fi
ac1cb8d3 21021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21023echo "${ECHO_T}$ac_header_compiler" >&6
21024
21025# Is the header present?
21026echo "$as_me:$LINENO: checking regex.h presence" >&5
21027echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21028cat >conftest.$ac_ext <<_ACEOF
21029/* confdefs.h. */
21030_ACEOF
21031cat confdefs.h >>conftest.$ac_ext
21032cat >>conftest.$ac_ext <<_ACEOF
21033/* end confdefs.h. */
21034#include <regex.h>
21035_ACEOF
21036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21038 ac_status=$?
21039 grep -v '^ *+' conftest.er1 >conftest.err
21040 rm -f conftest.er1
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } >/dev/null; then
21044 if test -s conftest.err; then
21045 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21047 else
21048 ac_cpp_err=
21049 fi
21050else
21051 ac_cpp_err=yes
21052fi
21053if test -z "$ac_cpp_err"; then
21054 ac_header_preproc=yes
21055else
21056 echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ac_header_preproc=no
21060fi
21061rm -f conftest.err conftest.$ac_ext
21062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21063echo "${ECHO_T}$ac_header_preproc" >&6
21064
21065# So? What about this header?
ac1cb8d3
VS
21066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21067 yes:no: )
a848cd7e
SC
21068 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21069echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21070 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21071echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21072 ac_header_preproc=yes
a848cd7e 21073 ;;
ac1cb8d3 21074 no:yes:* )
a848cd7e
SC
21075 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21076echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21077 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21078echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21080echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21082echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21083 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21084echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21085 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21086echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21087 (
21088 cat <<\_ASBOX
ac1cb8d3
VS
21089## ----------------------------------------- ##
21090## Report this to wx-dev@lists.wxwidgets.org ##
21091## ----------------------------------------- ##
a848cd7e
SC
21092_ASBOX
21093 ) |
21094 sed "s/^/$as_me: WARNING: /" >&2
21095 ;;
21096esac
21097echo "$as_me:$LINENO: checking for regex.h" >&5
21098echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21099if test "${ac_cv_header_regex_h+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21101else
21102 ac_cv_header_regex_h=$ac_header_preproc
21103fi
21104echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21105echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21106
21107fi
21108if test $ac_cv_header_regex_h = yes; then
21109
21110for ac_func in regcomp
21111do
21112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21113echo "$as_me:$LINENO: checking for $ac_func" >&5
21114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21115if eval "test \"\${$as_ac_var+set}\" = set"; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21117else
21118 cat >conftest.$ac_ext <<_ACEOF
21119/* confdefs.h. */
21120_ACEOF
21121cat confdefs.h >>conftest.$ac_ext
21122cat >>conftest.$ac_ext <<_ACEOF
21123/* end confdefs.h. */
ac1cb8d3
VS
21124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21126#define $ac_func innocuous_$ac_func
21127
a848cd7e
SC
21128/* System header to define __stub macros and hopefully few prototypes,
21129 which can conflict with char $ac_func (); below.
21130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21131 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 21132
a848cd7e
SC
21133#ifdef __STDC__
21134# include <limits.h>
21135#else
21136# include <assert.h>
21137#endif
ac1cb8d3
VS
21138
21139#undef $ac_func
21140
a848cd7e
SC
21141/* Override any gcc2 internal prototype to avoid an error. */
21142#ifdef __cplusplus
21143extern "C"
21144{
21145#endif
21146/* We use char because int might match the return type of a gcc2
21147 builtin and then its argument prototype would still apply. */
21148char $ac_func ();
21149/* The GNU C library defines this for functions which it implements
21150 to always fail with ENOSYS. Some functions are actually named
21151 something starting with __ and the normal name is an alias. */
21152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21153choke me
21154#else
21155char (*f) () = $ac_func;
21156#endif
21157#ifdef __cplusplus
21158}
21159#endif
21160
21161int
21162main ()
21163{
21164return f != $ac_func;
21165 ;
21166 return 0;
21167}
21168_ACEOF
21169rm -f conftest.$ac_objext conftest$ac_exeext
21170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21171 (eval $ac_link) 2>conftest.er1
a848cd7e 21172 ac_status=$?
ac1cb8d3
VS
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
a848cd7e
SC
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } &&
89be85c2
VS
21178 { ac_try='test -z "$ac_c_werror_flag"
21179 || test ! -s conftest.err'
ac1cb8d3
VS
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } &&
21185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 eval "$as_ac_var=yes"
21192else
21193 echo "$as_me: failed program was:" >&5
21194sed 's/^/| /' conftest.$ac_ext >&5
21195
21196eval "$as_ac_var=no"
21197fi
ac1cb8d3
VS
21198rm -f conftest.err conftest.$ac_objext \
21199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21200fi
21201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21203if test `eval echo '${'$as_ac_var'}'` = yes; then
21204 cat >>confdefs.h <<_ACEOF
21205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21206_ACEOF
21207
21208fi
21209done
21210
21211fi
21212
21213
21214
21215 if test "x$ac_cv_func_regcomp" != "xyes"; then
21216 if test "$wxUSE_REGEX" = "sys" ; then
21217 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21218echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21219 { (exit 1); exit 1; }; }
21220 else
21221 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21222echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21223 wxUSE_REGEX=builtin
21224 fi
21225 else
21226 wxUSE_REGEX=sys
21227 cat >>confdefs.h <<\_ACEOF
21228#define WX_NO_REGEX_ADVANCED 1
21229_ACEOF
21230
21231 fi
21232 fi
21233fi
21234
21235
21236ZLIB_LINK=
21237if test "$wxUSE_ZLIB" != "no" ; then
21238 cat >>confdefs.h <<\_ACEOF
21239#define wxUSE_ZLIB 1
21240_ACEOF
21241
21242
21243 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21244 if test "$USE_DARWIN" = 1; then
21245 system_zlib_h_ok="yes"
21246 else
21247 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21248echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21249if test "${ac_cv_header_zlib_h+set}" = set; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21251else
21252 if test "$cross_compiling" = yes; then
21253 unset ac_cv_header_zlib_h
21254
21255else
21256 cat >conftest.$ac_ext <<_ACEOF
21257/* confdefs.h. */
21258_ACEOF
21259cat confdefs.h >>conftest.$ac_ext
21260cat >>conftest.$ac_ext <<_ACEOF
21261/* end confdefs.h. */
21262
21263 #include <zlib.h>
21264 #include <stdio.h>
21265
21266 int main()
21267 {
21268 FILE *f=fopen("conftestval", "w");
21269 if (!f) exit(1);
21270 fprintf(f, "%s",
21271 ZLIB_VERSION[0] == '1' &&
21272 (ZLIB_VERSION[2] > '1' ||
21273 (ZLIB_VERSION[2] == '1' &&
21274 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21275 exit(0);
21276 }
21277
21278_ACEOF
21279rm -f conftest$ac_exeext
21280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281 (eval $ac_link) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 ac_cv_header_zlib_h=`cat conftestval`
21291else
21292 echo "$as_me: program exited with status $ac_status" >&5
21293echo "$as_me: failed program was:" >&5
21294sed 's/^/| /' conftest.$ac_ext >&5
21295
21296( exit $ac_status )
21297ac_cv_header_zlib_h=no
21298fi
ac1cb8d3 21299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21300fi
21301
21302fi
21303echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21304echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21305 if test "${ac_cv_header_zlib_h+set}" = set; then
21306 echo "$as_me:$LINENO: checking for zlib.h" >&5
21307echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21308if test "${ac_cv_header_zlib_h+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310fi
21311echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21312echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21313else
21314 # Is the header compilable?
21315echo "$as_me:$LINENO: checking zlib.h usability" >&5
21316echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21317cat >conftest.$ac_ext <<_ACEOF
21318/* confdefs.h. */
21319_ACEOF
21320cat confdefs.h >>conftest.$ac_ext
21321cat >>conftest.$ac_ext <<_ACEOF
21322/* end confdefs.h. */
21323$ac_includes_default
21324#include <zlib.h>
21325_ACEOF
21326rm -f conftest.$ac_objext
21327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21328 (eval $ac_compile) 2>conftest.er1
a848cd7e 21329 ac_status=$?
ac1cb8d3
VS
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
a848cd7e
SC
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
89be85c2
VS
21335 { ac_try='test -z "$ac_c_werror_flag"
21336 || test ! -s conftest.err'
ac1cb8d3
VS
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; } &&
21342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ac_header_compiler=yes
21349else
21350 echo "$as_me: failed program was:" >&5
21351sed 's/^/| /' conftest.$ac_ext >&5
21352
21353ac_header_compiler=no
21354fi
ac1cb8d3 21355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21357echo "${ECHO_T}$ac_header_compiler" >&6
21358
21359# Is the header present?
21360echo "$as_me:$LINENO: checking zlib.h presence" >&5
21361echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21362cat >conftest.$ac_ext <<_ACEOF
21363/* confdefs.h. */
21364_ACEOF
21365cat confdefs.h >>conftest.$ac_ext
21366cat >>conftest.$ac_ext <<_ACEOF
21367/* end confdefs.h. */
21368#include <zlib.h>
21369_ACEOF
21370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21372 ac_status=$?
21373 grep -v '^ *+' conftest.er1 >conftest.err
21374 rm -f conftest.er1
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } >/dev/null; then
21378 if test -s conftest.err; then
21379 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21381 else
21382 ac_cpp_err=
21383 fi
21384else
21385 ac_cpp_err=yes
21386fi
21387if test -z "$ac_cpp_err"; then
21388 ac_header_preproc=yes
21389else
21390 echo "$as_me: failed program was:" >&5
21391sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ac_header_preproc=no
21394fi
21395rm -f conftest.err conftest.$ac_ext
21396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21397echo "${ECHO_T}$ac_header_preproc" >&6
21398
21399# So? What about this header?
ac1cb8d3
VS
21400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21401 yes:no: )
a848cd7e
SC
21402 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21403echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21404 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21405echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21406 ac_header_preproc=yes
a848cd7e 21407 ;;
ac1cb8d3 21408 no:yes:* )
a848cd7e
SC
21409 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21410echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21411 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21412echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21413 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21414echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21416echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21417 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21418echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21419 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21420echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21421 (
21422 cat <<\_ASBOX
ac1cb8d3
VS
21423## ----------------------------------------- ##
21424## Report this to wx-dev@lists.wxwidgets.org ##
21425## ----------------------------------------- ##
a848cd7e
SC
21426_ASBOX
21427 ) |
21428 sed "s/^/$as_me: WARNING: /" >&2
21429 ;;
21430esac
21431echo "$as_me:$LINENO: checking for zlib.h" >&5
21432echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21433if test "${ac_cv_header_zlib_h+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21435else
21436 ac_cv_header_zlib_h=$ac_header_preproc
21437fi
21438echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21439echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21440
21441fi
21442
21443
21444
21445 system_zlib_h_ok=$ac_cv_header_zlib_h
21446 fi
21447
21448 if test "$system_zlib_h_ok" = "yes"; then
21449 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21450echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21451if test "${ac_cv_lib_z_deflate+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21453else
21454 ac_check_lib_save_LIBS=$LIBS
21455LIBS="-lz $LIBS"
21456cat >conftest.$ac_ext <<_ACEOF
21457/* confdefs.h. */
21458_ACEOF
21459cat confdefs.h >>conftest.$ac_ext
21460cat >>conftest.$ac_ext <<_ACEOF
21461/* end confdefs.h. */
21462
21463/* Override any gcc2 internal prototype to avoid an error. */
21464#ifdef __cplusplus
21465extern "C"
21466#endif
21467/* We use char because int might match the return type of a gcc2
21468 builtin and then its argument prototype would still apply. */
21469char deflate ();
21470int
21471main ()
21472{
21473deflate ();
21474 ;
21475 return 0;
21476}
21477_ACEOF
21478rm -f conftest.$ac_objext conftest$ac_exeext
21479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21480 (eval $ac_link) 2>conftest.er1
a848cd7e 21481 ac_status=$?
ac1cb8d3
VS
21482 grep -v '^ *+' conftest.er1 >conftest.err
21483 rm -f conftest.er1
21484 cat conftest.err >&5
a848cd7e
SC
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } &&
89be85c2
VS
21487 { ac_try='test -z "$ac_c_werror_flag"
21488 || test ! -s conftest.err'
ac1cb8d3
VS
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } &&
21494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 ac_cv_lib_z_deflate=yes
21501else
21502 echo "$as_me: failed program was:" >&5
21503sed 's/^/| /' conftest.$ac_ext >&5
21504
21505ac_cv_lib_z_deflate=no
21506fi
ac1cb8d3
VS
21507rm -f conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21509LIBS=$ac_check_lib_save_LIBS
21510fi
21511echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21512echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21513if test $ac_cv_lib_z_deflate = yes; then
21514 ZLIB_LINK=" -lz"
21515fi
21516
21517 fi
21518
21519 if test "x$ZLIB_LINK" = "x" ; then
21520 if test "$wxUSE_ZLIB" = "sys" ; then
21521 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21522echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21523 { (exit 1); exit 1; }; }
21524 else
21525 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21526echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21527 wxUSE_ZLIB=builtin
21528 fi
21529 else
21530 wxUSE_ZLIB=sys
21531 fi
21532 fi
21533fi
21534
21535
21536PNG_LINK=
21537if test "$wxUSE_LIBPNG" != "no" ; then
21538 cat >>confdefs.h <<\_ACEOF
21539#define wxUSE_LIBPNG 1
21540_ACEOF
21541
21542
21543 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21544 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21545echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21546 wxUSE_LIBPNG=sys
21547 fi
21548
21549 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21550 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21551echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21552 wxUSE_LIBPNG=builtin
21553 fi
21554
21555 if test "$wxUSE_MGL" != 1 ; then
21556 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21557 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21558echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21559if test "${ac_cv_header_png_h+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562 if test "$cross_compiling" = yes; then
21563 unset ac_cv_header_png_h
21564
21565else
21566 cat >conftest.$ac_ext <<_ACEOF
21567/* confdefs.h. */
21568_ACEOF
21569cat confdefs.h >>conftest.$ac_ext
21570cat >>conftest.$ac_ext <<_ACEOF
21571/* end confdefs.h. */
21572
21573 #include <png.h>
21574 #include <stdio.h>
21575
21576 int main()
21577 {
21578 FILE *f=fopen("conftestval", "w");
21579 if (!f) exit(1);
21580 fprintf(f, "%s",
21581 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21582 exit(0);
21583 }
21584
21585_ACEOF
21586rm -f conftest$ac_exeext
21587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21588 (eval $ac_link) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; }; then
21597 ac_cv_header_png_h=`cat conftestval`
21598else
21599 echo "$as_me: program exited with status $ac_status" >&5
21600echo "$as_me: failed program was:" >&5
21601sed 's/^/| /' conftest.$ac_ext >&5
21602
21603( exit $ac_status )
21604ac_cv_header_png_h=no
21605fi
ac1cb8d3 21606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21607fi
21608
21609fi
21610echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21611echo "${ECHO_T}$ac_cv_header_png_h" >&6
21612 if test "${ac_cv_header_png_h+set}" = set; then
21613 echo "$as_me:$LINENO: checking for png.h" >&5
21614echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21615if test "${ac_cv_header_png_h+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21617fi
21618echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21619echo "${ECHO_T}$ac_cv_header_png_h" >&6
21620else
21621 # Is the header compilable?
21622echo "$as_me:$LINENO: checking png.h usability" >&5
21623echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21624cat >conftest.$ac_ext <<_ACEOF
21625/* confdefs.h. */
21626_ACEOF
21627cat confdefs.h >>conftest.$ac_ext
21628cat >>conftest.$ac_ext <<_ACEOF
21629/* end confdefs.h. */
21630$ac_includes_default
21631#include <png.h>
21632_ACEOF
21633rm -f conftest.$ac_objext
21634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21635 (eval $ac_compile) 2>conftest.er1
a848cd7e 21636 ac_status=$?
ac1cb8d3
VS
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
a848cd7e
SC
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
89be85c2
VS
21642 { ac_try='test -z "$ac_c_werror_flag"
21643 || test ! -s conftest.err'
ac1cb8d3
VS
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; } &&
21649 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21651 (eval $ac_try) 2>&5
21652 ac_status=$?
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 ac_header_compiler=yes
21656else
21657 echo "$as_me: failed program was:" >&5
21658sed 's/^/| /' conftest.$ac_ext >&5
21659
21660ac_header_compiler=no
21661fi
ac1cb8d3 21662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21664echo "${ECHO_T}$ac_header_compiler" >&6
21665
21666# Is the header present?
21667echo "$as_me:$LINENO: checking png.h presence" >&5
21668echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21669cat >conftest.$ac_ext <<_ACEOF
21670/* confdefs.h. */
21671_ACEOF
21672cat confdefs.h >>conftest.$ac_ext
21673cat >>conftest.$ac_ext <<_ACEOF
21674/* end confdefs.h. */
21675#include <png.h>
21676_ACEOF
21677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } >/dev/null; then
21685 if test -s conftest.err; then
21686 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21688 else
21689 ac_cpp_err=
21690 fi
21691else
21692 ac_cpp_err=yes
21693fi
21694if test -z "$ac_cpp_err"; then
21695 ac_header_preproc=yes
21696else
21697 echo "$as_me: failed program was:" >&5
21698sed 's/^/| /' conftest.$ac_ext >&5
21699
21700 ac_header_preproc=no
21701fi
21702rm -f conftest.err conftest.$ac_ext
21703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21704echo "${ECHO_T}$ac_header_preproc" >&6
21705
21706# So? What about this header?
ac1cb8d3
VS
21707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21708 yes:no: )
a848cd7e
SC
21709 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21710echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21711 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21712echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21713 ac_header_preproc=yes
a848cd7e 21714 ;;
ac1cb8d3 21715 no:yes:* )
a848cd7e
SC
21716 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21717echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21718 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21719echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21721echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21723echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21724 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21725echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21726 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21727echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21728 (
21729 cat <<\_ASBOX
ac1cb8d3
VS
21730## ----------------------------------------- ##
21731## Report this to wx-dev@lists.wxwidgets.org ##
21732## ----------------------------------------- ##
a848cd7e
SC
21733_ASBOX
21734 ) |
21735 sed "s/^/$as_me: WARNING: /" >&2
21736 ;;
21737esac
21738echo "$as_me:$LINENO: checking for png.h" >&5
21739echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21740if test "${ac_cv_header_png_h+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742else
21743 ac_cv_header_png_h=$ac_header_preproc
21744fi
21745echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21746echo "${ECHO_T}$ac_cv_header_png_h" >&6
21747
21748fi
21749
21750
21751
21752 if test "$ac_cv_header_png_h" = "yes"; then
21753 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21754echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21755if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21757else
21758 ac_check_lib_save_LIBS=$LIBS
21759LIBS="-lpng -lz -lm $LIBS"
21760cat >conftest.$ac_ext <<_ACEOF
21761/* confdefs.h. */
21762_ACEOF
21763cat confdefs.h >>conftest.$ac_ext
21764cat >>conftest.$ac_ext <<_ACEOF
21765/* end confdefs.h. */
21766
21767/* Override any gcc2 internal prototype to avoid an error. */
21768#ifdef __cplusplus
21769extern "C"
21770#endif
21771/* We use char because int might match the return type of a gcc2
21772 builtin and then its argument prototype would still apply. */
21773char png_check_sig ();
21774int
21775main ()
21776{
21777png_check_sig ();
21778 ;
21779 return 0;
21780}
21781_ACEOF
21782rm -f conftest.$ac_objext conftest$ac_exeext
21783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21784 (eval $ac_link) 2>conftest.er1
a848cd7e 21785 ac_status=$?
ac1cb8d3
VS
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
a848cd7e
SC
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
89be85c2
VS
21791 { ac_try='test -z "$ac_c_werror_flag"
21792 || test ! -s conftest.err'
ac1cb8d3
VS
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21801 ac_status=$?
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 ac_cv_lib_png_png_check_sig=yes
21805else
21806 echo "$as_me: failed program was:" >&5
21807sed 's/^/| /' conftest.$ac_ext >&5
21808
21809ac_cv_lib_png_png_check_sig=no
21810fi
ac1cb8d3
VS
21811rm -f conftest.err conftest.$ac_objext \
21812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21813LIBS=$ac_check_lib_save_LIBS
21814fi
21815echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21816echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21817if test $ac_cv_lib_png_png_check_sig = yes; then
21818 PNG_LINK=" -lpng -lz"
21819fi
21820
21821 fi
21822
21823 if test "x$PNG_LINK" = "x" ; then
21824 if test "$wxUSE_LIBPNG" = "sys" ; then
21825 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21826echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21827 { (exit 1); exit 1; }; }
21828 else
21829 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21830echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21831 wxUSE_LIBPNG=builtin
21832 fi
21833 else
21834 wxUSE_LIBPNG=sys
21835 fi
21836 fi
21837 fi
21838
21839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21840fi
21841
21842
21843JPEG_LINK=
21844if test "$wxUSE_LIBJPEG" != "no" ; then
21845 cat >>confdefs.h <<\_ACEOF
21846#define wxUSE_LIBJPEG 1
21847_ACEOF
21848
21849
21850 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21851 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21852echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21853 wxUSE_LIBJPEG=sys
21854 fi
21855
21856 if test "$wxUSE_MGL" != 1 ; then
21857 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21858 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21859echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21860 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862else
21863 cat >conftest.$ac_ext <<_ACEOF
21864/* confdefs.h. */
21865_ACEOF
21866cat confdefs.h >>conftest.$ac_ext
21867cat >>conftest.$ac_ext <<_ACEOF
21868/* end confdefs.h. */
21869
21870 #undef HAVE_STDLIB_H
21871 #include <stdio.h>
21872 #include <jpeglib.h>
21873
21874int
21875main ()
21876{
21877
21878
21879 ;
21880 return 0;
21881}
21882_ACEOF
21883rm -f conftest.$ac_objext
21884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21885 (eval $ac_compile) 2>conftest.er1
a848cd7e 21886 ac_status=$?
ac1cb8d3
VS
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
a848cd7e
SC
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } &&
89be85c2
VS
21892 { ac_try='test -z "$ac_c_werror_flag"
21893 || test ! -s conftest.err'
ac1cb8d3
VS
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; } &&
21899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; }; then
21905 ac_cv_header_jpeglib_h=yes
21906else
21907 echo "$as_me: failed program was:" >&5
21908sed 's/^/| /' conftest.$ac_ext >&5
21909
21910ac_cv_header_jpeglib_h=no
21911
21912fi
ac1cb8d3 21913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21914
21915fi
21916
21917 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21918echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21919
21920 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21921 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21922echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21923if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21925else
21926 ac_check_lib_save_LIBS=$LIBS
21927LIBS="-ljpeg $LIBS"
21928cat >conftest.$ac_ext <<_ACEOF
21929/* confdefs.h. */
21930_ACEOF
21931cat confdefs.h >>conftest.$ac_ext
21932cat >>conftest.$ac_ext <<_ACEOF
21933/* end confdefs.h. */
21934
21935/* Override any gcc2 internal prototype to avoid an error. */
21936#ifdef __cplusplus
21937extern "C"
21938#endif
21939/* We use char because int might match the return type of a gcc2
21940 builtin and then its argument prototype would still apply. */
21941char jpeg_read_header ();
21942int
21943main ()
21944{
21945jpeg_read_header ();
21946 ;
21947 return 0;
21948}
21949_ACEOF
21950rm -f conftest.$ac_objext conftest$ac_exeext
21951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21952 (eval $ac_link) 2>conftest.er1
a848cd7e 21953 ac_status=$?
ac1cb8d3
VS
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
a848cd7e
SC
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } &&
89be85c2
VS
21959 { ac_try='test -z "$ac_c_werror_flag"
21960 || test ! -s conftest.err'
ac1cb8d3
VS
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; } &&
21966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; }; then
21972 ac_cv_lib_jpeg_jpeg_read_header=yes
21973else
21974 echo "$as_me: failed program was:" >&5
21975sed 's/^/| /' conftest.$ac_ext >&5
21976
21977ac_cv_lib_jpeg_jpeg_read_header=no
21978fi
ac1cb8d3
VS
21979rm -f conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21981LIBS=$ac_check_lib_save_LIBS
21982fi
21983echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21984echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21985if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21986 JPEG_LINK=" -ljpeg"
21987fi
21988
21989 fi
21990
21991 if test "x$JPEG_LINK" = "x" ; then
21992 if test "$wxUSE_LIBJPEG" = "sys" ; then
21993 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21994echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21995 { (exit 1); exit 1; }; }
21996 else
21997 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21998echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21999 wxUSE_LIBJPEG=builtin
22000 fi
22001 else
22002 wxUSE_LIBJPEG=sys
22003 fi
22004 fi
22005 fi
22006fi
22007
22008
22009TIFF_LINK=
22010TIFF_PREREQ_LINKS=-lm
22011if test "$wxUSE_LIBTIFF" != "no" ; then
22012 cat >>confdefs.h <<\_ACEOF
22013#define wxUSE_LIBTIFF 1
22014_ACEOF
22015
22016
22017 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22018 if test "$wxUSE_LIBJPEG" = "sys"; then
22019 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22020 fi
22021 if test "$wxUSE_ZLIB" = "sys"; then
22022 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22023 fi
22024 if test "${ac_cv_header_tiffio_h+set}" = set; then
22025 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22026echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22027if test "${ac_cv_header_tiffio_h+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029fi
22030echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22031echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22032else
22033 # Is the header compilable?
22034echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22035echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22036cat >conftest.$ac_ext <<_ACEOF
22037/* confdefs.h. */
22038_ACEOF
22039cat confdefs.h >>conftest.$ac_ext
22040cat >>conftest.$ac_ext <<_ACEOF
22041/* end confdefs.h. */
22042$ac_includes_default
22043#include <tiffio.h>
22044_ACEOF
22045rm -f conftest.$ac_objext
22046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22047 (eval $ac_compile) 2>conftest.er1
a848cd7e 22048 ac_status=$?
ac1cb8d3
VS
22049 grep -v '^ *+' conftest.er1 >conftest.err
22050 rm -f conftest.er1
22051 cat conftest.err >&5
a848cd7e
SC
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
89be85c2
VS
22054 { ac_try='test -z "$ac_c_werror_flag"
22055 || test ! -s conftest.err'
ac1cb8d3
VS
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 ac_header_compiler=yes
22068else
22069 echo "$as_me: failed program was:" >&5
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
22072ac_header_compiler=no
22073fi
ac1cb8d3 22074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22076echo "${ECHO_T}$ac_header_compiler" >&6
22077
22078# Is the header present?
22079echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22080echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22081cat >conftest.$ac_ext <<_ACEOF
22082/* confdefs.h. */
22083_ACEOF
22084cat confdefs.h >>conftest.$ac_ext
22085cat >>conftest.$ac_ext <<_ACEOF
22086/* end confdefs.h. */
22087#include <tiffio.h>
22088_ACEOF
22089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22091 ac_status=$?
22092 grep -v '^ *+' conftest.er1 >conftest.err
22093 rm -f conftest.er1
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } >/dev/null; then
22097 if test -s conftest.err; then
22098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22100 else
22101 ac_cpp_err=
22102 fi
22103else
22104 ac_cpp_err=yes
22105fi
22106if test -z "$ac_cpp_err"; then
22107 ac_header_preproc=yes
22108else
22109 echo "$as_me: failed program was:" >&5
22110sed 's/^/| /' conftest.$ac_ext >&5
22111
22112 ac_header_preproc=no
22113fi
22114rm -f conftest.err conftest.$ac_ext
22115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22116echo "${ECHO_T}$ac_header_preproc" >&6
22117
22118# So? What about this header?
ac1cb8d3
VS
22119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22120 yes:no: )
a848cd7e
SC
22121 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
22122echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22123 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
22124echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
22125 ac_header_preproc=yes
a848cd7e 22126 ;;
ac1cb8d3 22127 no:yes:* )
a848cd7e
SC
22128 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
22129echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22130 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
22131echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
22132 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
22133echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
22134 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
22135echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22136 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
22137echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22138 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
22139echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22140 (
22141 cat <<\_ASBOX
ac1cb8d3
VS
22142## ----------------------------------------- ##
22143## Report this to wx-dev@lists.wxwidgets.org ##
22144## ----------------------------------------- ##
a848cd7e
SC
22145_ASBOX
22146 ) |
22147 sed "s/^/$as_me: WARNING: /" >&2
22148 ;;
22149esac
22150echo "$as_me:$LINENO: checking for tiffio.h" >&5
22151echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22152if test "${ac_cv_header_tiffio_h+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22154else
22155 ac_cv_header_tiffio_h=$ac_header_preproc
22156fi
22157echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22158echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22159
22160fi
22161if test $ac_cv_header_tiffio_h = yes; then
22162
22163 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
22164echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
22165if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22167else
22168 ac_check_lib_save_LIBS=$LIBS
22169LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
22170cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h. */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h. */
22176
22177/* Override any gcc2 internal prototype to avoid an error. */
22178#ifdef __cplusplus
22179extern "C"
22180#endif
22181/* We use char because int might match the return type of a gcc2
22182 builtin and then its argument prototype would still apply. */
22183char TIFFError ();
22184int
22185main ()
22186{
22187TIFFError ();
22188 ;
22189 return 0;
22190}
22191_ACEOF
22192rm -f conftest.$ac_objext conftest$ac_exeext
22193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22194 (eval $ac_link) 2>conftest.er1
a848cd7e 22195 ac_status=$?
ac1cb8d3
VS
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
a848cd7e
SC
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
89be85c2
VS
22201 { ac_try='test -z "$ac_c_werror_flag"
22202 || test ! -s conftest.err'
ac1cb8d3
VS
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; } &&
22208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ac_cv_lib_tiff_TIFFError=yes
22215else
22216 echo "$as_me: failed program was:" >&5
22217sed 's/^/| /' conftest.$ac_ext >&5
22218
22219ac_cv_lib_tiff_TIFFError=no
22220fi
ac1cb8d3
VS
22221rm -f conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22223LIBS=$ac_check_lib_save_LIBS
22224fi
22225echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22226echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22227if test $ac_cv_lib_tiff_TIFFError = yes; then
22228 TIFF_LINK=" -ltiff"
22229fi
22230
22231
22232
22233fi
22234
22235
22236
22237 if test "x$TIFF_LINK" = "x" ; then
22238 if test "$wxUSE_LIBTIFF" = "sys" ; then
22239 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22240echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22241 { (exit 1); exit 1; }; }
22242 else
22243 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22244echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22245 wxUSE_LIBTIFF=builtin
22246 fi
22247 else
22248 wxUSE_LIBTIFF=sys
22249 fi
22250 fi
22251fi
22252
22253
22254if test "$wxUSE_EXPAT" != "no"; then
22255 wxUSE_XML=yes
22256 cat >>confdefs.h <<\_ACEOF
22257#define wxUSE_EXPAT 1
22258_ACEOF
22259
22260 cat >>confdefs.h <<\_ACEOF
22261#define wxUSE_XML 1
22262_ACEOF
22263
22264
22265 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22266 if test "${ac_cv_header_expat_h+set}" = set; then
22267 echo "$as_me:$LINENO: checking for expat.h" >&5
22268echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22269if test "${ac_cv_header_expat_h+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22271fi
22272echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22273echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22274else
22275 # Is the header compilable?
22276echo "$as_me:$LINENO: checking expat.h usability" >&5
22277echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22278cat >conftest.$ac_ext <<_ACEOF
22279/* confdefs.h. */
22280_ACEOF
22281cat confdefs.h >>conftest.$ac_ext
22282cat >>conftest.$ac_ext <<_ACEOF
22283/* end confdefs.h. */
22284$ac_includes_default
22285#include <expat.h>
22286_ACEOF
22287rm -f conftest.$ac_objext
22288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22289 (eval $ac_compile) 2>conftest.er1
a848cd7e 22290 ac_status=$?
ac1cb8d3
VS
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
a848cd7e
SC
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
89be85c2
VS
22296 { ac_try='test -z "$ac_c_werror_flag"
22297 || test ! -s conftest.err'
ac1cb8d3
VS
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 ac_header_compiler=yes
22310else
22311 echo "$as_me: failed program was:" >&5
22312sed 's/^/| /' conftest.$ac_ext >&5
22313
22314ac_header_compiler=no
22315fi
ac1cb8d3 22316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22318echo "${ECHO_T}$ac_header_compiler" >&6
22319
22320# Is the header present?
22321echo "$as_me:$LINENO: checking expat.h presence" >&5
22322echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22323cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
22329#include <expat.h>
22330_ACEOF
22331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } >/dev/null; then
22339 if test -s conftest.err; then
22340 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22342 else
22343 ac_cpp_err=
22344 fi
22345else
22346 ac_cpp_err=yes
22347fi
22348if test -z "$ac_cpp_err"; then
22349 ac_header_preproc=yes
22350else
22351 echo "$as_me: failed program was:" >&5
22352sed 's/^/| /' conftest.$ac_ext >&5
22353
22354 ac_header_preproc=no
22355fi
22356rm -f conftest.err conftest.$ac_ext
22357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22358echo "${ECHO_T}$ac_header_preproc" >&6
22359
22360# So? What about this header?
ac1cb8d3
VS
22361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22362 yes:no: )
a848cd7e
SC
22363 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22364echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22365 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22366echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22367 ac_header_preproc=yes
a848cd7e 22368 ;;
ac1cb8d3 22369 no:yes:* )
a848cd7e
SC
22370 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22371echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22372 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22373echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22374 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22375echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22376 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22377echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22378 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22379echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22380 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22381echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22382 (
22383 cat <<\_ASBOX
ac1cb8d3
VS
22384## ----------------------------------------- ##
22385## Report this to wx-dev@lists.wxwidgets.org ##
22386## ----------------------------------------- ##
a848cd7e
SC
22387_ASBOX
22388 ) |
22389 sed "s/^/$as_me: WARNING: /" >&2
22390 ;;
22391esac
22392echo "$as_me:$LINENO: checking for expat.h" >&5
22393echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22394if test "${ac_cv_header_expat_h+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22396else
22397 ac_cv_header_expat_h=$ac_header_preproc
22398fi
22399echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22400echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22401
22402fi
22403if test $ac_cv_header_expat_h = yes; then
22404 found_expat_h=1
22405fi
22406
22407
22408 if test "x$found_expat_h" = "x1"; then
22409 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22410echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22411if test "${wx_cv_expat_is_not_broken+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22413else
22414
22415
22416
22417 ac_ext=cc
22418ac_cpp='$CXXCPP $CPPFLAGS'
22419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22422
22423 cat >conftest.$ac_ext <<_ACEOF
22424/* confdefs.h. */
22425_ACEOF
22426cat confdefs.h >>conftest.$ac_ext
22427cat >>conftest.$ac_ext <<_ACEOF
22428/* end confdefs.h. */
22429#include <expat.h>
22430int
22431main ()
22432{
22433
22434 ;
22435 return 0;
22436}
22437_ACEOF
22438rm -f conftest.$ac_objext
22439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22440 (eval $ac_compile) 2>conftest.er1
a848cd7e 22441 ac_status=$?
ac1cb8d3
VS
22442 grep -v '^ *+' conftest.er1 >conftest.err
22443 rm -f conftest.er1
22444 cat conftest.err >&5
a848cd7e
SC
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
89be85c2
VS
22447 { ac_try='test -z "$ac_cxx_werror_flag"
22448 || test ! -s conftest.err'
ac1cb8d3
VS
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22451 ac_status=$?
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; } &&
22454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460 wx_cv_expat_is_not_broken=yes
22461else
22462 echo "$as_me: failed program was:" >&5
22463sed 's/^/| /' conftest.$ac_ext >&5
22464
22465wx_cv_expat_is_not_broken=no
22466
22467fi
ac1cb8d3 22468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22469 ac_ext=c
22470ac_cpp='$CPP $CPPFLAGS'
22471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473ac_compiler_gnu=$ac_cv_c_compiler_gnu
22474
22475
22476
22477fi
22478echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22479echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22480 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22481 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22482echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22483if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22485else
22486 ac_check_lib_save_LIBS=$LIBS
22487LIBS="-lexpat $LIBS"
22488cat >conftest.$ac_ext <<_ACEOF
22489/* confdefs.h. */
22490_ACEOF
22491cat confdefs.h >>conftest.$ac_ext
22492cat >>conftest.$ac_ext <<_ACEOF
22493/* end confdefs.h. */
22494
22495/* Override any gcc2 internal prototype to avoid an error. */
22496#ifdef __cplusplus
22497extern "C"
22498#endif
22499/* We use char because int might match the return type of a gcc2
22500 builtin and then its argument prototype would still apply. */
22501char XML_ParserCreate ();
22502int
22503main ()
22504{
22505XML_ParserCreate ();
22506 ;
22507 return 0;
22508}
22509_ACEOF
22510rm -f conftest.$ac_objext conftest$ac_exeext
22511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22512 (eval $ac_link) 2>conftest.er1
a848cd7e 22513 ac_status=$?
ac1cb8d3
VS
22514 grep -v '^ *+' conftest.er1 >conftest.err
22515 rm -f conftest.er1
22516 cat conftest.err >&5
a848cd7e
SC
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); } &&
89be85c2
VS
22519 { ac_try='test -z "$ac_c_werror_flag"
22520 || test ! -s conftest.err'
ac1cb8d3
VS
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; } &&
22526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; }; then
22532 ac_cv_lib_expat_XML_ParserCreate=yes
22533else
22534 echo "$as_me: failed program was:" >&5
22535sed 's/^/| /' conftest.$ac_ext >&5
22536
22537ac_cv_lib_expat_XML_ParserCreate=no
22538fi
ac1cb8d3
VS
22539rm -f conftest.err conftest.$ac_objext \
22540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22541LIBS=$ac_check_lib_save_LIBS
22542fi
22543echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22544echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22545if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22546 EXPAT_LINK=" -lexpat"
22547fi
22548
22549 fi
22550 fi
22551 if test "x$EXPAT_LINK" = "x" ; then
22552 if test "$wxUSE_EXPAT" = "sys" ; then
22553 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22554echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22555 { (exit 1); exit 1; }; }
22556 else
22557 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22558echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22559 wxUSE_EXPAT=builtin
22560 fi
22561 else
22562 wxUSE_EXPAT=sys
22563 fi
22564 fi
22565 if test "$wxUSE_EXPAT" = "builtin" ; then
22566
22567
22568subdirs="$subdirs src/expat"
22569
22570 fi
22571fi
22572
22573
22574
22575if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22576 if test "${ac_cv_header_mspack_h+set}" = set; then
22577 echo "$as_me:$LINENO: checking for mspack.h" >&5
22578echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22579if test "${ac_cv_header_mspack_h+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22581fi
22582echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22583echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22584else
22585 # Is the header compilable?
22586echo "$as_me:$LINENO: checking mspack.h usability" >&5
22587echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22588cat >conftest.$ac_ext <<_ACEOF
22589/* confdefs.h. */
22590_ACEOF
22591cat confdefs.h >>conftest.$ac_ext
22592cat >>conftest.$ac_ext <<_ACEOF
22593/* end confdefs.h. */
22594$ac_includes_default
22595#include <mspack.h>
22596_ACEOF
22597rm -f conftest.$ac_objext
22598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22599 (eval $ac_compile) 2>conftest.er1
a848cd7e 22600 ac_status=$?
ac1cb8d3
VS
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
a848cd7e
SC
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } &&
89be85c2
VS
22606 { ac_try='test -z "$ac_c_werror_flag"
22607 || test ! -s conftest.err'
ac1cb8d3
VS
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; } &&
22613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }; then
22619 ac_header_compiler=yes
22620else
22621 echo "$as_me: failed program was:" >&5
22622sed 's/^/| /' conftest.$ac_ext >&5
22623
22624ac_header_compiler=no
22625fi
ac1cb8d3 22626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22628echo "${ECHO_T}$ac_header_compiler" >&6
22629
22630# Is the header present?
22631echo "$as_me:$LINENO: checking mspack.h presence" >&5
22632echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22633cat >conftest.$ac_ext <<_ACEOF
22634/* confdefs.h. */
22635_ACEOF
22636cat confdefs.h >>conftest.$ac_ext
22637cat >>conftest.$ac_ext <<_ACEOF
22638/* end confdefs.h. */
22639#include <mspack.h>
22640_ACEOF
22641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } >/dev/null; then
22649 if test -s conftest.err; then
22650 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22652 else
22653 ac_cpp_err=
22654 fi
22655else
22656 ac_cpp_err=yes
22657fi
22658if test -z "$ac_cpp_err"; then
22659 ac_header_preproc=yes
22660else
22661 echo "$as_me: failed program was:" >&5
22662sed 's/^/| /' conftest.$ac_ext >&5
22663
22664 ac_header_preproc=no
22665fi
22666rm -f conftest.err conftest.$ac_ext
22667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22668echo "${ECHO_T}$ac_header_preproc" >&6
22669
22670# So? What about this header?
ac1cb8d3
VS
22671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22672 yes:no: )
a848cd7e
SC
22673 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22674echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22675 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22676echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22677 ac_header_preproc=yes
a848cd7e 22678 ;;
ac1cb8d3 22679 no:yes:* )
a848cd7e
SC
22680 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22681echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22682 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22683echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22684 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22685echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22686 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22687echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22688 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22689echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22690 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22691echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22692 (
22693 cat <<\_ASBOX
ac1cb8d3
VS
22694## ----------------------------------------- ##
22695## Report this to wx-dev@lists.wxwidgets.org ##
22696## ----------------------------------------- ##
a848cd7e
SC
22697_ASBOX
22698 ) |
22699 sed "s/^/$as_me: WARNING: /" >&2
22700 ;;
22701esac
22702echo "$as_me:$LINENO: checking for mspack.h" >&5
22703echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22704if test "${ac_cv_header_mspack_h+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22706else
22707 ac_cv_header_mspack_h=$ac_header_preproc
22708fi
22709echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22710echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22711
22712fi
22713if test $ac_cv_header_mspack_h = yes; then
22714 found_mspack_h=1
22715fi
22716
22717
22718 if test "x$found_mspack_h" = "x1"; then
22719 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22720echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22721if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22723else
22724 ac_check_lib_save_LIBS=$LIBS
22725LIBS="-lmspack $LIBS"
22726cat >conftest.$ac_ext <<_ACEOF
22727/* confdefs.h. */
22728_ACEOF
22729cat confdefs.h >>conftest.$ac_ext
22730cat >>conftest.$ac_ext <<_ACEOF
22731/* end confdefs.h. */
22732
22733/* Override any gcc2 internal prototype to avoid an error. */
22734#ifdef __cplusplus
22735extern "C"
22736#endif
22737/* We use char because int might match the return type of a gcc2
22738 builtin and then its argument prototype would still apply. */
22739char mspack_create_chm_decompressor ();
22740int
22741main ()
22742{
22743mspack_create_chm_decompressor ();
22744 ;
22745 return 0;
22746}
22747_ACEOF
22748rm -f conftest.$ac_objext conftest$ac_exeext
22749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22750 (eval $ac_link) 2>conftest.er1
a848cd7e 22751 ac_status=$?
ac1cb8d3
VS
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
a848cd7e
SC
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
89be85c2
VS
22757 { ac_try='test -z "$ac_c_werror_flag"
22758 || test ! -s conftest.err'
ac1cb8d3
VS
22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760 (eval $ac_try) 2>&5
22761 ac_status=$?
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22767 ac_status=$?
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22770 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22771else
22772 echo "$as_me: failed program was:" >&5
22773sed 's/^/| /' conftest.$ac_ext >&5
22774
22775ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22776fi
ac1cb8d3
VS
22777rm -f conftest.err conftest.$ac_objext \
22778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22779LIBS=$ac_check_lib_save_LIBS
22780fi
22781echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22782echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22783if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22784 MSPACK_LINK=" -lmspack"
22785fi
22786
22787 fi
22788 if test "x$MSPACK_LINK" = "x" ; then
22789 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22790 fi
22791fi
22792
22793if test "$wxUSE_LIBMSPACK" != "no"; then
22794 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22795#define wxUSE_LIBMSPACK 1
22796_ACEOF
22797
a848cd7e
SC
22798fi
22799
22800
22801
22802AFMINSTALL=
22803WIN32INSTALL=
22804
22805TOOLKIT=
22806TOOLKIT_INCLUDE=
22807WIDGET_SET=
22808
22809if test "$USE_WIN32" = 1 ; then
22810
22811for ac_header in w32api.h
22812do
22813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22814if eval "test \"\${$as_ac_Header+set}\" = set"; then
22815 echo "$as_me:$LINENO: checking for $ac_header" >&5
22816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22817if eval "test \"\${$as_ac_Header+set}\" = set"; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22819fi
22820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22822else
22823 # Is the header compilable?
22824echo "$as_me:$LINENO: checking $ac_header usability" >&5
22825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22826cat >conftest.$ac_ext <<_ACEOF
22827/* confdefs.h. */
22828_ACEOF
22829cat confdefs.h >>conftest.$ac_ext
22830cat >>conftest.$ac_ext <<_ACEOF
22831/* end confdefs.h. */
22832$ac_includes_default
22833#include <$ac_header>
22834_ACEOF
22835rm -f conftest.$ac_objext
22836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22837 (eval $ac_compile) 2>conftest.er1
a848cd7e 22838 ac_status=$?
ac1cb8d3
VS
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
a848cd7e
SC
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } &&
89be85c2
VS
22844 { ac_try='test -z "$ac_c_werror_flag"
22845 || test ! -s conftest.err'
ac1cb8d3
VS
22846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847 (eval $ac_try) 2>&5
22848 ac_status=$?
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }; } &&
22851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22854 ac_status=$?
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22857 ac_header_compiler=yes
22858else
22859 echo "$as_me: failed program was:" >&5
22860sed 's/^/| /' conftest.$ac_ext >&5
22861
22862ac_header_compiler=no
22863fi
ac1cb8d3 22864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22866echo "${ECHO_T}$ac_header_compiler" >&6
22867
22868# Is the header present?
22869echo "$as_me:$LINENO: checking $ac_header presence" >&5
22870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22871cat >conftest.$ac_ext <<_ACEOF
22872/* confdefs.h. */
22873_ACEOF
22874cat confdefs.h >>conftest.$ac_ext
22875cat >>conftest.$ac_ext <<_ACEOF
22876/* end confdefs.h. */
22877#include <$ac_header>
22878_ACEOF
22879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22881 ac_status=$?
22882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } >/dev/null; then
22887 if test -s conftest.err; then
22888 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22890 else
22891 ac_cpp_err=
22892 fi
22893else
22894 ac_cpp_err=yes
22895fi
22896if test -z "$ac_cpp_err"; then
22897 ac_header_preproc=yes
22898else
22899 echo "$as_me: failed program was:" >&5
22900sed 's/^/| /' conftest.$ac_ext >&5
22901
22902 ac_header_preproc=no
22903fi
22904rm -f conftest.err conftest.$ac_ext
22905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22906echo "${ECHO_T}$ac_header_preproc" >&6
22907
22908# So? What about this header?
ac1cb8d3
VS
22909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22910 yes:no: )
a848cd7e
SC
22911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22915 ac_header_preproc=yes
a848cd7e 22916 ;;
ac1cb8d3 22917 no:yes:* )
a848cd7e
SC
22918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22930 (
22931 cat <<\_ASBOX
ac1cb8d3
VS
22932## ----------------------------------------- ##
22933## Report this to wx-dev@lists.wxwidgets.org ##
22934## ----------------------------------------- ##
a848cd7e
SC
22935_ASBOX
22936 ) |
22937 sed "s/^/$as_me: WARNING: /" >&2
22938 ;;
22939esac
22940echo "$as_me:$LINENO: checking for $ac_header" >&5
22941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22942if eval "test \"\${$as_ac_Header+set}\" = set"; then
22943 echo $ECHO_N "(cached) $ECHO_C" >&6
22944else
ac1cb8d3 22945 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22946fi
22947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22949
22950fi
22951if test `eval echo '${'$as_ac_Header'}'` = yes; then
22952 cat >>confdefs.h <<_ACEOF
22953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22954_ACEOF
22955
22956fi
22957
22958done
22959
22960 if test "${ac_cv_header_windows_h+set}" = set; then
22961 echo "$as_me:$LINENO: checking for windows.h" >&5
22962echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22963if test "${ac_cv_header_windows_h+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965fi
22966echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22967echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22968else
22969 # Is the header compilable?
22970echo "$as_me:$LINENO: checking windows.h usability" >&5
22971echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22972cat >conftest.$ac_ext <<_ACEOF
22973/* confdefs.h. */
22974_ACEOF
22975cat confdefs.h >>conftest.$ac_ext
22976cat >>conftest.$ac_ext <<_ACEOF
22977/* end confdefs.h. */
22978$ac_includes_default
22979#include <windows.h>
22980_ACEOF
22981rm -f conftest.$ac_objext
22982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22983 (eval $ac_compile) 2>conftest.er1
a848cd7e 22984 ac_status=$?
ac1cb8d3
VS
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
a848cd7e
SC
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } &&
89be85c2
VS
22990 { ac_try='test -z "$ac_c_werror_flag"
22991 || test ! -s conftest.err'
ac1cb8d3
VS
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; } &&
22997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_header_compiler=yes
23004else
23005 echo "$as_me: failed program was:" >&5
23006sed 's/^/| /' conftest.$ac_ext >&5
23007
23008ac_header_compiler=no
23009fi
ac1cb8d3 23010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23012echo "${ECHO_T}$ac_header_compiler" >&6
23013
23014# Is the header present?
23015echo "$as_me:$LINENO: checking windows.h presence" >&5
23016echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23017cat >conftest.$ac_ext <<_ACEOF
23018/* confdefs.h. */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h. */
23023#include <windows.h>
23024_ACEOF
23025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23027 ac_status=$?
23028 grep -v '^ *+' conftest.er1 >conftest.err
23029 rm -f conftest.er1
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } >/dev/null; then
23033 if test -s conftest.err; then
23034 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23036 else
23037 ac_cpp_err=
23038 fi
23039else
23040 ac_cpp_err=yes
23041fi
23042if test -z "$ac_cpp_err"; then
23043 ac_header_preproc=yes
23044else
23045 echo "$as_me: failed program was:" >&5
23046sed 's/^/| /' conftest.$ac_ext >&5
23047
23048 ac_header_preproc=no
23049fi
23050rm -f conftest.err conftest.$ac_ext
23051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23052echo "${ECHO_T}$ac_header_preproc" >&6
23053
23054# So? What about this header?
ac1cb8d3
VS
23055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23056 yes:no: )
a848cd7e
SC
23057 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23058echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23059 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23060echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23061 ac_header_preproc=yes
a848cd7e 23062 ;;
ac1cb8d3 23063 no:yes:* )
a848cd7e
SC
23064 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23065echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23066 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23067echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23069echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23071echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23072 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23073echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23074 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23075echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23076 (
23077 cat <<\_ASBOX
ac1cb8d3
VS
23078## ----------------------------------------- ##
23079## Report this to wx-dev@lists.wxwidgets.org ##
23080## ----------------------------------------- ##
a848cd7e
SC
23081_ASBOX
23082 ) |
23083 sed "s/^/$as_me: WARNING: /" >&2
23084 ;;
23085esac
23086echo "$as_me:$LINENO: checking for windows.h" >&5
23087echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23088if test "${ac_cv_header_windows_h+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23090else
23091 ac_cv_header_windows_h=$ac_header_preproc
23092fi
23093echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23094echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23095
23096fi
23097if test $ac_cv_header_windows_h = yes; then
23098 :
23099else
23100
23101 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23102echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23103 { (exit 1); exit 1; }; }
23104
23105fi
23106
23107
23108
23109 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23110
23111 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23112 LIBS="$LIBS -loleacc"
23113 fi
23114
23115 case "${host}" in
23116 *-*-cygwin* )
23117 LIBS="$LIBS -lkernel32 -luser32"
23118 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23119 esac
23120
23121 if test "$wxUSE_ODBC" = "sys" ; then
23122 wxUSE_ODBC = "yes"
23123 fi
23124 if test "$wxUSE_ODBC" = "yes" ; then
23125 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
23126 cat >>confdefs.h <<\_ACEOF
23127#define wxUSE_ODBC 1
23128_ACEOF
23129
23130 fi
23131
23132 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
23133 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
23134
23135 WIN32INSTALL=win32install
23136fi
23137
23138if test "$wxUSE_GUI" = "yes"; then
23139 USE_GUI=1
23140
23141 GUI_TK_LIBRARY=
23142
23143 WXGTK12=
23144 WXGTK127=
23145 WXGTK20=
23146 WXGPE=
23147
207bc66c
RN
23148 if test "$wxUSE_COCOA" = 1 ; then
23149 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
23150 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
23151echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
23152 wxUSE_PRINTING_ARCHITECTURE=no
23153 fi
23154 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
23155 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
23156echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
23157 wxUSE_DRAG_AND_DROP=no
23158 fi
23159 if test "$wxUSE_DRAGIMAGE" = "yes"; then
23160 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
23161echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
23162 wxUSE_DRAGIMAGE=no
23163 fi
23164 fi
23165
a848cd7e
SC
23166 if test "$wxUSE_MSW" = 1 ; then
23167 TOOLKIT=MSW
23168 GUIDIST=MSW_DIST
23169
ceec2216 23170 case "${host}" in
a848cd7e
SC
23171 *-*-mingw32* )
23172 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
23173 esac
23174 fi
23175
23176 if test "$wxUSE_GTK" = 1; then
23177 echo "$as_me:$LINENO: checking for GTK+ version" >&5
23178echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
23179
23180 gtk_version_cached=1
23181 if test "${wx_cv_lib_gtk+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23183else
23184
23185 gtk_version_cached=0
23186 echo "$as_me:$LINENO: result: " >&5
23187echo "${ECHO_T}" >&6
23188
23189 GTK_MODULES=
23190 if test "$wxUSE_THREADS" = "yes"; then
23191 GTK_MODULES=gthread
23192 fi
23193
23194 wx_cv_lib_gtk=
23195 if test "x$wxUSE_GTK2" = "xyes"; then
23196 # Check whether --enable-gtktest or --disable-gtktest was given.
23197if test "${enable_gtktest+set}" = set; then
23198 enableval="$enable_gtktest"
23199
23200else
23201 enable_gtktest=yes
23202fi;
23203
23204 pkg_config_args=gtk+-2.0
23205 for module in . $GTK_MODULES
23206 do
23207 case "$module" in
23208 gthread)
23209 pkg_config_args="$pkg_config_args gthread-2.0"
23210 ;;
23211 esac
23212 done
23213
23214 no_gtk=""
23215
23216 # Extract the first word of "pkg-config", so it can be a program name with args.
23217set dummy pkg-config; ac_word=$2
23218echo "$as_me:$LINENO: checking for $ac_word" >&5
23219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23220if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23222else
23223 case $PKG_CONFIG in
23224 [\\/]* | ?:[\\/]*)
23225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23226 ;;
23227 *)
23228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23229for as_dir in $PATH
23230do
23231 IFS=$as_save_IFS
23232 test -z "$as_dir" && as_dir=.
23233 for ac_exec_ext in '' $ac_executable_extensions; do
23234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23237 break 2
23238 fi
23239done
23240done
23241
23242 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23243 ;;
23244esac
23245fi
23246PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23247
23248if test -n "$PKG_CONFIG"; then
23249 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23250echo "${ECHO_T}$PKG_CONFIG" >&6
23251else
23252 echo "$as_me:$LINENO: result: no" >&5
23253echo "${ECHO_T}no" >&6
23254fi
23255
23256
23257 if test x$PKG_CONFIG != xno ; then
23258 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23259 :
23260 else
c2218763 23261 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23262 no_gtk=yes
23263 PKG_CONFIG=no
23264 fi
23265 else
23266 no_gtk=yes
23267 fi
23268
23269 min_gtk_version=2.0.0
23270 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23271echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23272
23273 if test x$PKG_CONFIG != xno ; then
23274 ## don't try to run the test against uninstalled libtool libs
23275 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23276 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23277 enable_gtktest=no
23278 fi
23279
23280 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23281 :
23282 else
23283 no_gtk=yes
23284 fi
23285 fi
23286
23287 if test x"$no_gtk" = x ; then
23288 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23289 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23290 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23291 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23292 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23293 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23294 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23295 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23296 if test "x$enable_gtktest" = "xyes" ; then
23297 ac_save_CFLAGS="$CFLAGS"
23298 ac_save_LIBS="$LIBS"
23299 CFLAGS="$CFLAGS $GTK_CFLAGS"
23300 LIBS="$GTK_LIBS $LIBS"
23301 rm -f conf.gtktest
23302 if test "$cross_compiling" = yes; then
23303 echo $ac_n "cross compiling; assumed OK... $ac_c"
23304else
23305 cat >conftest.$ac_ext <<_ACEOF
23306/* confdefs.h. */
23307_ACEOF
23308cat confdefs.h >>conftest.$ac_ext
23309cat >>conftest.$ac_ext <<_ACEOF
23310/* end confdefs.h. */
23311
23312#include <gtk/gtk.h>
23313#include <stdio.h>
23314#include <stdlib.h>
23315
23316int
23317main ()
23318{
23319 int major, minor, micro;
23320 char *tmp_version;
23321
23322 system ("touch conf.gtktest");
23323
23324 /* HP/UX 9 (%@#!) writes to sscanf strings */
23325 tmp_version = g_strdup("$min_gtk_version");
23326 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23327 printf("%s, bad version string\n", "$min_gtk_version");
23328 exit(1);
23329 }
23330
23331 if ((gtk_major_version != $gtk_config_major_version) ||
23332 (gtk_minor_version != $gtk_config_minor_version) ||
23333 (gtk_micro_version != $gtk_config_micro_version))
23334 {
23335 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23336 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23337 gtk_major_version, gtk_minor_version, gtk_micro_version);
23338 printf ("*** was found! If pkg-config was correct, then it is best\n");
23339 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23340 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23341 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23342 printf("*** required on your system.\n");
23343 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23344 printf("*** to point to the correct configuration files\n");
23345 }
23346 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23347 (gtk_minor_version != GTK_MINOR_VERSION) ||
23348 (gtk_micro_version != GTK_MICRO_VERSION))
23349 {
23350 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23351 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23352 printf("*** library (version %d.%d.%d)\n",
23353 gtk_major_version, gtk_minor_version, gtk_micro_version);
23354 }
23355 else
23356 {
23357 if ((gtk_major_version > major) ||
23358 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23359 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23360 {
23361 return 0;
23362 }
23363 else
23364 {
23365 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23366 gtk_major_version, gtk_minor_version, gtk_micro_version);
23367 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23368 major, minor, micro);
23369 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23370 printf("***\n");
23371 printf("*** If you have already installed a sufficiently new version, this error\n");
23372 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23373 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23374 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23375 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23376 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23377 printf("*** so that the correct libraries are found at run-time))\n");
23378 }
23379 }
23380 return 1;
23381}
23382
23383_ACEOF
23384rm -f conftest$ac_exeext
23385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23386 (eval $ac_link) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 :
23396else
23397 echo "$as_me: program exited with status $ac_status" >&5
23398echo "$as_me: failed program was:" >&5
23399sed 's/^/| /' conftest.$ac_ext >&5
23400
23401( exit $ac_status )
23402no_gtk=yes
23403fi
ac1cb8d3 23404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23405fi
23406 CFLAGS="$ac_save_CFLAGS"
23407 LIBS="$ac_save_LIBS"
23408 fi
23409 fi
23410 if test "x$no_gtk" = x ; then
23411 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23412echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23413 wx_cv_lib_gtk=2.0
23414 else
23415 echo "$as_me:$LINENO: result: no" >&5
23416echo "${ECHO_T}no" >&6
23417 if test "$PKG_CONFIG" = "no" ; then
23418 echo "*** A new enough version of pkg-config was not found."
23419 echo "*** See http://pkgconfig.sourceforge.net"
23420 else
23421 if test -f conf.gtktest ; then
23422 :
23423 else
23424 echo "*** Could not run GTK+ test program, checking why..."
23425 ac_save_CFLAGS="$CFLAGS"
23426 ac_save_LIBS="$LIBS"
23427 CFLAGS="$CFLAGS $GTK_CFLAGS"
23428 LIBS="$LIBS $GTK_LIBS"
23429 cat >conftest.$ac_ext <<_ACEOF
23430/* confdefs.h. */
23431_ACEOF
23432cat confdefs.h >>conftest.$ac_ext
23433cat >>conftest.$ac_ext <<_ACEOF
23434/* end confdefs.h. */
23435
23436#include <gtk/gtk.h>
23437#include <stdio.h>
23438
23439int
23440main ()
23441{
23442 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23443 ;
23444 return 0;
23445}
23446_ACEOF
23447rm -f conftest.$ac_objext conftest$ac_exeext
23448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23449 (eval $ac_link) 2>conftest.er1
a848cd7e 23450 ac_status=$?
ac1cb8d3
VS
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
a848cd7e
SC
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } &&
89be85c2
VS
23456 { ac_try='test -z "$ac_c_werror_flag"
23457 || test ! -s conftest.err'
ac1cb8d3
VS
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; } &&
23463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23465 (eval $ac_try) 2>&5
23466 ac_status=$?
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); }; }; then
23469 echo "*** The test program compiled, but did not run. This usually means"
23470 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23471 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23472 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23473 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23474 echo "*** is required on your system"
23475 echo "***"
23476 echo "*** If you have an old version installed, it is best to remove it, although"
23477 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23478else
23479 echo "$as_me: failed program was:" >&5
23480sed 's/^/| /' conftest.$ac_ext >&5
23481
23482 echo "*** The test program failed to compile or link. See the file config.log for the"
23483 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23484fi
ac1cb8d3
VS
23485rm -f conftest.err conftest.$ac_objext \
23486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23487 CFLAGS="$ac_save_CFLAGS"
23488 LIBS="$ac_save_LIBS"
23489 fi
23490 fi
23491 GTK_CFLAGS=""
23492 GTK_LIBS=""
23493 :
23494 fi
23495
23496
23497 rm -f conf.gtktest
23498
23499 else
23500
23501# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23502if test "${with_gtk_prefix+set}" = set; then
23503 withval="$with_gtk_prefix"
23504 gtk_config_prefix="$withval"
23505else
23506 gtk_config_prefix=""
23507fi;
23508
23509# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23510if test "${with_gtk_exec_prefix+set}" = set; then
23511 withval="$with_gtk_exec_prefix"
23512 gtk_config_exec_prefix="$withval"
23513else
23514 gtk_config_exec_prefix=""
23515fi;
23516# Check whether --enable-gtktest or --disable-gtktest was given.
23517if test "${enable_gtktest+set}" = set; then
23518 enableval="$enable_gtktest"
23519
23520else
23521 enable_gtktest=yes
23522fi;
23523
23524 for module in . $GTK_MODULES
23525 do
23526 case "$module" in
23527 gthread)
23528 gtk_config_args="$gtk_config_args gthread"
23529 ;;
23530 esac
23531 done
23532
23533 if test x$gtk_config_exec_prefix != x ; then
23534 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23535 if test x${GTK_CONFIG+set} != xset ; then
23536 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23537 fi
23538 fi
23539 if test x$gtk_config_prefix != x ; then
23540 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23541 if test x${GTK_CONFIG+set} != xset ; then
23542 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23543 fi
23544 fi
23545
23546 # Extract the first word of "gtk-config", so it can be a program name with args.
23547set dummy gtk-config; ac_word=$2
23548echo "$as_me:$LINENO: checking for $ac_word" >&5
23549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23550if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23552else
23553 case $GTK_CONFIG in
23554 [\\/]* | ?:[\\/]*)
23555 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23556 ;;
23557 *)
23558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23559for as_dir in $PATH
23560do
23561 IFS=$as_save_IFS
23562 test -z "$as_dir" && as_dir=.
23563 for ac_exec_ext in '' $ac_executable_extensions; do
23564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23565 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23567 break 2
23568 fi
23569done
23570done
23571
23572 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23573 ;;
23574esac
23575fi
23576GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23577
23578if test -n "$GTK_CONFIG"; then
23579 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23580echo "${ECHO_T}$GTK_CONFIG" >&6
23581else
23582 echo "$as_me:$LINENO: result: no" >&5
23583echo "${ECHO_T}no" >&6
23584fi
23585
23586 min_gtk_version=1.2.7
23587 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23588echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23589 no_gtk=""
23590 if test "$GTK_CONFIG" = "no" ; then
23591 no_gtk=yes
23592 else
23593 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23594 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23595 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23597 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23599 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23600 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23601 if test "x$enable_gtktest" = "xyes" ; then
23602 ac_save_CFLAGS="$CFLAGS"
23603 ac_save_LIBS="$LIBS"
23604 CFLAGS="$CFLAGS $GTK_CFLAGS"
23605 LIBS="$GTK_LIBS $LIBS"
23606 rm -f conf.gtktest
23607 if test "$cross_compiling" = yes; then
23608 echo $ac_n "cross compiling; assumed OK... $ac_c"
23609else
23610 cat >conftest.$ac_ext <<_ACEOF
23611/* confdefs.h. */
23612_ACEOF
23613cat confdefs.h >>conftest.$ac_ext
23614cat >>conftest.$ac_ext <<_ACEOF
23615/* end confdefs.h. */
23616
23617#include <gtk/gtk.h>
23618#include <stdio.h>
23619#include <stdlib.h>
23620
23621int
23622main ()
23623{
23624 int major, minor, micro;
23625 char *tmp_version;
23626
23627 system ("touch conf.gtktest");
23628
23629 /* HP/UX 9 (%@#!) writes to sscanf strings */
23630 tmp_version = g_strdup("$min_gtk_version");
23631 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23632 printf("%s, bad version string\n", "$min_gtk_version");
23633 exit(1);
23634 }
23635
23636 if ((gtk_major_version != $gtk_config_major_version) ||
23637 (gtk_minor_version != $gtk_config_minor_version) ||
23638 (gtk_micro_version != $gtk_config_micro_version))
23639 {
23640 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23641 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23642 gtk_major_version, gtk_minor_version, gtk_micro_version);
23643 printf ("*** was found! If gtk-config was correct, then it is best\n");
23644 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23645 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23646 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23647 printf("*** required on your system.\n");
23648 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23649 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23650 printf("*** before re-running configure\n");
23651 }
23652#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23653 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23654 (gtk_minor_version != GTK_MINOR_VERSION) ||
23655 (gtk_micro_version != GTK_MICRO_VERSION))
23656 {
23657 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23658 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23659 printf("*** library (version %d.%d.%d)\n",
23660 gtk_major_version, gtk_minor_version, gtk_micro_version);
23661 }
23662#endif /* defined (GTK_MAJOR_VERSION) ... */
23663 else
23664 {
23665 if ((gtk_major_version > major) ||
23666 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23667 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23668 {
23669 return 0;
23670 }
23671 else
23672 {
23673 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23674 gtk_major_version, gtk_minor_version, gtk_micro_version);
23675 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23676 major, minor, micro);
23677 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23678 printf("***\n");
23679 printf("*** If you have already installed a sufficiently new version, this error\n");
23680 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23681 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23682 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23683 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23684 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23685 printf("*** so that the correct libraries are found at run-time))\n");
23686 }
23687 }
23688 return 1;
23689}
23690
23691_ACEOF
23692rm -f conftest$ac_exeext
23693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23694 (eval $ac_link) 2>&5
23695 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699 (eval $ac_try) 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; }; then
23703 :
23704else
23705 echo "$as_me: program exited with status $ac_status" >&5
23706echo "$as_me: failed program was:" >&5
23707sed 's/^/| /' conftest.$ac_ext >&5
23708
23709( exit $ac_status )
23710no_gtk=yes
23711fi
ac1cb8d3 23712rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23713fi
23714 CFLAGS="$ac_save_CFLAGS"
23715 LIBS="$ac_save_LIBS"
23716 fi
23717 fi
23718 if test "x$no_gtk" = x ; then
23719 echo "$as_me:$LINENO: result: yes" >&5
23720echo "${ECHO_T}yes" >&6
23721 wx_cv_lib_gtk=1.2.7
23722 else
23723 echo "$as_me:$LINENO: result: no" >&5
23724echo "${ECHO_T}no" >&6
23725 if test "$GTK_CONFIG" = "no" ; then
23726 echo "*** The gtk-config script installed by GTK could not be found"
23727 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23728 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23729 echo "*** full path to gtk-config."
23730 else
23731 if test -f conf.gtktest ; then
23732 :
23733 else
23734 echo "*** Could not run GTK test program, checking why..."
23735 CFLAGS="$CFLAGS $GTK_CFLAGS"
23736 LIBS="$LIBS $GTK_LIBS"
23737 cat >conftest.$ac_ext <<_ACEOF
23738/* confdefs.h. */
23739_ACEOF
23740cat confdefs.h >>conftest.$ac_ext
23741cat >>conftest.$ac_ext <<_ACEOF
23742/* end confdefs.h. */
23743
23744#include <gtk/gtk.h>
23745#include <stdio.h>
23746
23747int
23748main ()
23749{
23750 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23751 ;
23752 return 0;
23753}
23754_ACEOF
23755rm -f conftest.$ac_objext conftest$ac_exeext
23756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23757 (eval $ac_link) 2>conftest.er1
a848cd7e 23758 ac_status=$?
ac1cb8d3
VS
23759 grep -v '^ *+' conftest.er1 >conftest.err
23760 rm -f conftest.er1
23761 cat conftest.err >&5
a848cd7e
SC
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } &&
89be85c2
VS
23764 { ac_try='test -z "$ac_c_werror_flag"
23765 || 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_exeext'
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 echo "*** The test program compiled, but did not run. This usually means"
23778 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23779 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23780 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23781 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23782 echo "*** is required on your system"
23783 echo "***"
23784 echo "*** If you have an old version installed, it is best to remove it, although"
23785 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23786 echo "***"
23787 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23788 echo "*** came with the system with the command"
23789 echo "***"
23790 echo "*** rpm --erase --nodeps gtk gtk-devel"
23791else
23792 echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
23795 echo "*** The test program failed to compile or link. See the file config.log for the"
23796 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23797 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23798 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23799fi
ac1cb8d3
VS
23800rm -f conftest.err conftest.$ac_objext \
23801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23802 CFLAGS="$ac_save_CFLAGS"
23803 LIBS="$ac_save_LIBS"
23804 fi
23805 fi
23806 GTK_CFLAGS=""
23807 GTK_LIBS=""
23808 :
23809 fi
23810
23811
23812 rm -f conf.gtktest
23813
23814
23815 if test -z "$wx_cv_lib_gtk"; then
23816
23817# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23818if test "${with_gtk_prefix+set}" = set; then
23819 withval="$with_gtk_prefix"
23820 gtk_config_prefix="$withval"
23821else
23822 gtk_config_prefix=""
23823fi;
23824
23825# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23826if test "${with_gtk_exec_prefix+set}" = set; then
23827 withval="$with_gtk_exec_prefix"
23828 gtk_config_exec_prefix="$withval"
23829else
23830 gtk_config_exec_prefix=""
23831fi;
23832# Check whether --enable-gtktest or --disable-gtktest was given.
23833if test "${enable_gtktest+set}" = set; then
23834 enableval="$enable_gtktest"
23835
23836else
23837 enable_gtktest=yes
23838fi;
23839
23840 for module in . $GTK_MODULES
23841 do
23842 case "$module" in
23843 gthread)
23844 gtk_config_args="$gtk_config_args gthread"
23845 ;;
23846 esac
23847 done
23848
23849 if test x$gtk_config_exec_prefix != x ; then
23850 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23851 if test x${GTK_CONFIG+set} != xset ; then
23852 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23853 fi
23854 fi
23855 if test x$gtk_config_prefix != x ; then
23856 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23857 if test x${GTK_CONFIG+set} != xset ; then
23858 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23859 fi
23860 fi
23861
23862 # Extract the first word of "gtk-config", so it can be a program name with args.
23863set dummy gtk-config; ac_word=$2
23864echo "$as_me:$LINENO: checking for $ac_word" >&5
23865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23866if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868else
23869 case $GTK_CONFIG in
23870 [\\/]* | ?:[\\/]*)
23871 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23872 ;;
23873 *)
23874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23875for as_dir in $PATH
23876do
23877 IFS=$as_save_IFS
23878 test -z "$as_dir" && as_dir=.
23879 for ac_exec_ext in '' $ac_executable_extensions; do
23880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23881 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23883 break 2
23884 fi
23885done
23886done
23887
23888 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23889 ;;
23890esac
23891fi
23892GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23893
23894if test -n "$GTK_CONFIG"; then
23895 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23896echo "${ECHO_T}$GTK_CONFIG" >&6
23897else
23898 echo "$as_me:$LINENO: result: no" >&5
23899echo "${ECHO_T}no" >&6
23900fi
23901
23902 min_gtk_version=1.2.3
23903 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23904echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23905 no_gtk=""
23906 if test "$GTK_CONFIG" = "no" ; then
23907 no_gtk=yes
23908 else
23909 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23910 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23911 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23913 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23915 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23917 if test "x$enable_gtktest" = "xyes" ; then
23918 ac_save_CFLAGS="$CFLAGS"
23919 ac_save_LIBS="$LIBS"
23920 CFLAGS="$CFLAGS $GTK_CFLAGS"
23921 LIBS="$GTK_LIBS $LIBS"
23922 rm -f conf.gtktest
23923 if test "$cross_compiling" = yes; then
23924 echo $ac_n "cross compiling; assumed OK... $ac_c"
23925else
23926 cat >conftest.$ac_ext <<_ACEOF
23927/* confdefs.h. */
23928_ACEOF
23929cat confdefs.h >>conftest.$ac_ext
23930cat >>conftest.$ac_ext <<_ACEOF
23931/* end confdefs.h. */
23932
23933#include <gtk/gtk.h>
23934#include <stdio.h>
23935#include <stdlib.h>
23936
23937int
23938main ()
23939{
23940 int major, minor, micro;
23941 char *tmp_version;
23942
23943 system ("touch conf.gtktest");
23944
23945 /* HP/UX 9 (%@#!) writes to sscanf strings */
23946 tmp_version = g_strdup("$min_gtk_version");
23947 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23948 printf("%s, bad version string\n", "$min_gtk_version");
23949 exit(1);
23950 }
23951
23952 if ((gtk_major_version != $gtk_config_major_version) ||
23953 (gtk_minor_version != $gtk_config_minor_version) ||
23954 (gtk_micro_version != $gtk_config_micro_version))
23955 {
23956 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23957 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23958 gtk_major_version, gtk_minor_version, gtk_micro_version);
23959 printf ("*** was found! If gtk-config was correct, then it is best\n");
23960 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23961 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23962 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23963 printf("*** required on your system.\n");
23964 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23965 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23966 printf("*** before re-running configure\n");
23967 }
23968#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23969 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23970 (gtk_minor_version != GTK_MINOR_VERSION) ||
23971 (gtk_micro_version != GTK_MICRO_VERSION))
23972 {
23973 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23974 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23975 printf("*** library (version %d.%d.%d)\n",
23976 gtk_major_version, gtk_minor_version, gtk_micro_version);
23977 }
23978#endif /* defined (GTK_MAJOR_VERSION) ... */
23979 else
23980 {
23981 if ((gtk_major_version > major) ||
23982 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23983 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23984 {
23985 return 0;
23986 }
23987 else
23988 {
23989 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23990 gtk_major_version, gtk_minor_version, gtk_micro_version);
23991 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23992 major, minor, micro);
23993 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23994 printf("***\n");
23995 printf("*** If you have already installed a sufficiently new version, this error\n");
23996 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23997 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23998 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23999 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24000 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24001 printf("*** so that the correct libraries are found at run-time))\n");
24002 }
24003 }
24004 return 1;
24005}
24006
24007_ACEOF
24008rm -f conftest$ac_exeext
24009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24010 (eval $ac_link) 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); }; }; then
24019 :
24020else
24021 echo "$as_me: program exited with status $ac_status" >&5
24022echo "$as_me: failed program was:" >&5
24023sed 's/^/| /' conftest.$ac_ext >&5
24024
24025( exit $ac_status )
24026no_gtk=yes
24027fi
ac1cb8d3 24028rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24029fi
24030 CFLAGS="$ac_save_CFLAGS"
24031 LIBS="$ac_save_LIBS"
24032 fi
24033 fi
24034 if test "x$no_gtk" = x ; then
24035 echo "$as_me:$LINENO: result: yes" >&5
24036echo "${ECHO_T}yes" >&6
24037 wx_cv_lib_gtk=1.2.3
24038 else
24039 echo "$as_me:$LINENO: result: no" >&5
24040echo "${ECHO_T}no" >&6
24041 if test "$GTK_CONFIG" = "no" ; then
24042 echo "*** The gtk-config script installed by GTK could not be found"
24043 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24044 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24045 echo "*** full path to gtk-config."
24046 else
24047 if test -f conf.gtktest ; then
24048 :
24049 else
24050 echo "*** Could not run GTK test program, checking why..."
24051 CFLAGS="$CFLAGS $GTK_CFLAGS"
24052 LIBS="$LIBS $GTK_LIBS"
24053 cat >conftest.$ac_ext <<_ACEOF
24054/* confdefs.h. */
24055_ACEOF
24056cat confdefs.h >>conftest.$ac_ext
24057cat >>conftest.$ac_ext <<_ACEOF
24058/* end confdefs.h. */
24059
24060#include <gtk/gtk.h>
24061#include <stdio.h>
24062
24063int
24064main ()
24065{
24066 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24067 ;
24068 return 0;
24069}
24070_ACEOF
24071rm -f conftest.$ac_objext conftest$ac_exeext
24072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24073 (eval $ac_link) 2>conftest.er1
a848cd7e 24074 ac_status=$?
ac1cb8d3
VS
24075 grep -v '^ *+' conftest.er1 >conftest.err
24076 rm -f conftest.er1
24077 cat conftest.err >&5
a848cd7e
SC
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); } &&
89be85c2
VS
24080 { ac_try='test -z "$ac_c_werror_flag"
24081 || test ! -s conftest.err'
ac1cb8d3
VS
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; } &&
24087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; }; then
24093 echo "*** The test program compiled, but did not run. This usually means"
24094 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24095 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24096 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24097 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24098 echo "*** is required on your system"
24099 echo "***"
24100 echo "*** If you have an old version installed, it is best to remove it, although"
24101 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24102 echo "***"
24103 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24104 echo "*** came with the system with the command"
24105 echo "***"
24106 echo "*** rpm --erase --nodeps gtk gtk-devel"
24107else
24108 echo "$as_me: failed program was:" >&5
24109sed 's/^/| /' conftest.$ac_ext >&5
24110
24111 echo "*** The test program failed to compile or link. See the file config.log for the"
24112 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24113 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24114 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24115fi
ac1cb8d3
VS
24116rm -f conftest.err conftest.$ac_objext \
24117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24118 CFLAGS="$ac_save_CFLAGS"
24119 LIBS="$ac_save_LIBS"
24120 fi
24121 fi
24122 GTK_CFLAGS=""
24123 GTK_LIBS=""
24124 :
24125 fi
24126
24127
24128 rm -f conf.gtktest
24129
24130 fi
24131 fi
24132
24133 if test -z "$wx_cv_lib_gtk"; then
24134 wx_cv_lib_gtk=none
24135 else
24136 wx_cv_cflags_gtk=$GTK_CFLAGS
24137 wx_cv_libs_gtk=$GTK_LIBS
24138 fi
24139
24140
24141fi
24142
24143
24144 if test "$gtk_version_cached" = 1; then
24145 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
24146echo "${ECHO_T}$wx_cv_lib_gtk" >&6
24147 fi
24148
24149 case "$wx_cv_lib_gtk" in
24150 2.0) WXGTK20=1
24151 TOOLKIT_VERSION=2
24152 ;;
24153 1.2.7) WXGTK127=1
24154 WXGTK12=1
24155 ;;
24156 1.2.3) WXGTK12=1
24157 ;;
24158 *) { { echo "$as_me:$LINENO: error:
24159Please check that gtk-config is in path, the directory
24160where GTK+ libraries are installed (returned by
24161'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24162equivalent variable and GTK+ is version 1.2.3 or above.
24163 " >&5
24164echo "$as_me: error:
24165Please check that gtk-config is in path, the directory
24166where GTK+ libraries are installed (returned by
24167'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24168equivalent variable and GTK+ is version 1.2.3 or above.
24169 " >&2;}
24170 { (exit 1); exit 1; }; }
24171 ;;
24172 esac
24173
24174 if test "$WXGTK20" = 1; then
304205f1
VS
24175 save_CFLAGS="$CFLAGS"
24176 save_LIBS="$LIBS"
24177 CFLAGS="$CFLAGS $GTK_CFLAGS"
24178 LIBS="$LIBS $GTK_LIBS"
24179
9755e73b 24180
304205f1
VS
24181for ac_func in pango_font_family_is_monospace
24182do
24183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24184echo "$as_me:$LINENO: checking for $ac_func" >&5
24185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24186if eval "test \"\${$as_ac_var+set}\" = set"; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188else
24189 cat >conftest.$ac_ext <<_ACEOF
24190/* confdefs.h. */
24191_ACEOF
24192cat confdefs.h >>conftest.$ac_ext
24193cat >>conftest.$ac_ext <<_ACEOF
24194/* end confdefs.h. */
24195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24197#define $ac_func innocuous_$ac_func
24198
24199/* System header to define __stub macros and hopefully few prototypes,
24200 which can conflict with char $ac_func (); below.
24201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24202 <limits.h> exists even on freestanding compilers. */
24203
24204#ifdef __STDC__
24205# include <limits.h>
24206#else
24207# include <assert.h>
24208#endif
24209
24210#undef $ac_func
24211
24212/* Override any gcc2 internal prototype to avoid an error. */
24213#ifdef __cplusplus
24214extern "C"
24215{
24216#endif
24217/* We use char because int might match the return type of a gcc2
24218 builtin and then its argument prototype would still apply. */
24219char $ac_func ();
24220/* The GNU C library defines this for functions which it implements
24221 to always fail with ENOSYS. Some functions are actually named
24222 something starting with __ and the normal name is an alias. */
24223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24224choke me
24225#else
24226char (*f) () = $ac_func;
24227#endif
24228#ifdef __cplusplus
24229}
24230#endif
24231
24232int
24233main ()
24234{
24235return f != $ac_func;
24236 ;
24237 return 0;
24238}
24239_ACEOF
24240rm -f conftest.$ac_objext conftest$ac_exeext
24241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24242 (eval $ac_link) 2>conftest.er1
24243 ac_status=$?
24244 grep -v '^ *+' conftest.er1 >conftest.err
24245 rm -f conftest.er1
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
89be85c2
VS
24249 { ac_try='test -z "$ac_c_werror_flag"
24250 || test ! -s conftest.err'
304205f1
VS
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24253 ac_status=$?
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; } &&
24256 { ac_try='test -s conftest$ac_exeext'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24259 ac_status=$?
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; }; then
24262 eval "$as_ac_var=yes"
24263else
24264 echo "$as_me: failed program was:" >&5
24265sed 's/^/| /' conftest.$ac_ext >&5
24266
24267eval "$as_ac_var=no"
24268fi
24269rm -f conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
24271fi
24272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24274if test `eval echo '${'$as_ac_var'}'` = yes; then
24275 cat >>confdefs.h <<_ACEOF
24276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24277_ACEOF
24278
24279fi
24280done
24281
9755e73b
VS
24282
24283 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24284echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24285 cat >conftest.$ac_ext <<_ACEOF
24286/* confdefs.h. */
24287_ACEOF
24288cat confdefs.h >>conftest.$ac_ext
24289cat >>conftest.$ac_ext <<_ACEOF
24290/* end confdefs.h. */
24291
24292 #include <gtk/gtk.h>
24293
24294int
24295main ()
24296{
24297
24298 #if !GTK_CHECK_VERSION(2,4,0)
24299 #error "Not GTK+ 2.4"
24300 #endif
24301
24302 ;
24303 return 0;
24304}
24305_ACEOF
24306rm -f conftest.$ac_objext
24307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24308 (eval $ac_compile) 2>conftest.er1
24309 ac_status=$?
24310 grep -v '^ *+' conftest.er1 >conftest.err
24311 rm -f conftest.er1
24312 cat conftest.err >&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } &&
89be85c2
VS
24315 { ac_try='test -z "$ac_c_werror_flag"
24316 || test ! -s conftest.err'
9755e73b
VS
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest.$ac_objext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328
24329 cat >>confdefs.h <<\_ACEOF
24330#define __WXGTK24__ 1
24331_ACEOF
24332
24333 echo "$as_me:$LINENO: result: yes" >&5
24334echo "${ECHO_T}yes" >&6
24335
24336else
24337 echo "$as_me: failed program was:" >&5
24338sed 's/^/| /' conftest.$ac_ext >&5
24339
24340
24341 echo "$as_me:$LINENO: result: no" >&5
24342echo "${ECHO_T}no" >&6
24343
24344fi
24345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24346
304205f1
VS
24347 CFLAGS="$save_CFLAGS"
24348 LIBS="$save_LIBS"
a848cd7e
SC
24349 else
24350 if test "$wxUSE_UNICODE" = "yes"; then
24351 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24352echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24353 wxUSE_UNICODE=no
24354 fi
24355 fi
24356
24357 if test "$USE_DARWIN" != 1; then
24358
24359for ac_func in poll
24360do
24361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24362echo "$as_me:$LINENO: checking for $ac_func" >&5
24363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24364if eval "test \"\${$as_ac_var+set}\" = set"; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24366else
24367 cat >conftest.$ac_ext <<_ACEOF
24368/* confdefs.h. */
24369_ACEOF
24370cat confdefs.h >>conftest.$ac_ext
24371cat >>conftest.$ac_ext <<_ACEOF
24372/* end confdefs.h. */
ac1cb8d3
VS
24373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24375#define $ac_func innocuous_$ac_func
24376
a848cd7e
SC
24377/* System header to define __stub macros and hopefully few prototypes,
24378 which can conflict with char $ac_func (); below.
24379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24380 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24381
a848cd7e
SC
24382#ifdef __STDC__
24383# include <limits.h>
24384#else
24385# include <assert.h>
24386#endif
ac1cb8d3
VS
24387
24388#undef $ac_func
24389
a848cd7e
SC
24390/* Override any gcc2 internal prototype to avoid an error. */
24391#ifdef __cplusplus
24392extern "C"
24393{
24394#endif
24395/* We use char because int might match the return type of a gcc2
24396 builtin and then its argument prototype would still apply. */
24397char $ac_func ();
24398/* The GNU C library defines this for functions which it implements
24399 to always fail with ENOSYS. Some functions are actually named
24400 something starting with __ and the normal name is an alias. */
24401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24402choke me
24403#else
24404char (*f) () = $ac_func;
24405#endif
24406#ifdef __cplusplus
24407}
24408#endif
24409
24410int
24411main ()
24412{
24413return f != $ac_func;
24414 ;
24415 return 0;
24416}
24417_ACEOF
24418rm -f conftest.$ac_objext conftest$ac_exeext
24419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24420 (eval $ac_link) 2>conftest.er1
a848cd7e 24421 ac_status=$?
ac1cb8d3
VS
24422 grep -v '^ *+' conftest.er1 >conftest.err
24423 rm -f conftest.er1
24424 cat conftest.err >&5
a848cd7e
SC
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } &&
89be85c2
VS
24427 { ac_try='test -z "$ac_c_werror_flag"
24428 || test ! -s conftest.err'
ac1cb8d3
VS
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 eval "$as_ac_var=yes"
24441else
24442 echo "$as_me: failed program was:" >&5
24443sed 's/^/| /' conftest.$ac_ext >&5
24444
24445eval "$as_ac_var=no"
24446fi
ac1cb8d3
VS
24447rm -f conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24449fi
24450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24452if test `eval echo '${'$as_ac_var'}'` = yes; then
24453 cat >>confdefs.h <<_ACEOF
24454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24455_ACEOF
24456
24457fi
24458done
24459
24460 fi
24461
24462 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24463 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24464
24465 AFMINSTALL=afminstall
24466 TOOLKIT=GTK
24467 GUIDIST=GTK_DIST
24468
24469 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24470echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24471if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24473else
24474 ac_check_lib_save_LIBS=$LIBS
24475LIBS="-lgdk $LIBS"
24476cat >conftest.$ac_ext <<_ACEOF
24477/* confdefs.h. */
24478_ACEOF
24479cat confdefs.h >>conftest.$ac_ext
24480cat >>conftest.$ac_ext <<_ACEOF
24481/* end confdefs.h. */
24482
24483/* Override any gcc2 internal prototype to avoid an error. */
24484#ifdef __cplusplus
24485extern "C"
24486#endif
24487/* We use char because int might match the return type of a gcc2
24488 builtin and then its argument prototype would still apply. */
24489char gdk_im_open ();
24490int
24491main ()
24492{
24493gdk_im_open ();
24494 ;
24495 return 0;
24496}
24497_ACEOF
24498rm -f conftest.$ac_objext conftest$ac_exeext
24499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24500 (eval $ac_link) 2>conftest.er1
a848cd7e 24501 ac_status=$?
ac1cb8d3
VS
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
a848cd7e
SC
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } &&
89be85c2
VS
24507 { ac_try='test -z "$ac_c_werror_flag"
24508 || test ! -s conftest.err'
ac1cb8d3
VS
24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; } &&
24514 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; }; then
24520 ac_cv_lib_gdk_gdk_im_open=yes
24521else
24522 echo "$as_me: failed program was:" >&5
24523sed 's/^/| /' conftest.$ac_ext >&5
24524
24525ac_cv_lib_gdk_gdk_im_open=no
24526fi
ac1cb8d3
VS
24527rm -f conftest.err conftest.$ac_objext \
24528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24529LIBS=$ac_check_lib_save_LIBS
24530fi
24531echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24532echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24533if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24534 cat >>confdefs.h <<\_ACEOF
24535#define HAVE_XIM 1
24536_ACEOF
24537
24538fi
24539
24540
24541
24542 if test "$wxUSE_GPE" = "yes"; then
24543 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24544echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24545
24546ac_find_libraries=
24547for ac_dir in $SEARCH_LIB /usr/lib;
24548 do
24549 for ac_extension in a so sl dylib; do
24550 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24551 ac_find_libraries=$ac_dir
24552 break 2
24553 fi
24554 done
24555 done
24556
24557 if test "$ac_find_libraries" != "" ; then
24558
24559 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24560 result=$?
24561 if test $result = 0; then
24562 ac_path_to_link=""
24563 else
24564 ac_path_to_link=" -L$ac_find_libraries"
24565 fi
24566
24567 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24568 WXGPE=1
24569 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24570echo "${ECHO_T}found at $ac_find_libraries" >&6
24571 else
24572 echo "$as_me:$LINENO: result: not found" >&5
24573echo "${ECHO_T}not found" >&6
24574 fi
24575
24576 fi
24577 fi
24578
24579 if test "$wxUSE_MGL" = 1; then
24580 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24581echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24582 if test "x$MGL_ROOT" = x ; then
24583 echo "$as_me:$LINENO: result: not found" >&5
24584echo "${ECHO_T}not found" >&6
24585 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24586echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24587 { (exit 1); exit 1; }; }
24588 else
24589 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24590echo "${ECHO_T}$MGL_ROOT" >&6
24591 fi
24592
24593 echo "$as_me:$LINENO: checking for libmgl location" >&5
24594echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24595 case "${host}" in
24596 *-*-linux* )
24597 if test "x$wxUSE_SHARED" = xyes ; then
24598 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24599 else
24600 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24601 fi
24602 ;;
24603 *-pc-msdosdjgpp )
24604 mgl_os_candidates="dos32/dj2"
24605 ;;
24606 *)
24607 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24608echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24609 { (exit 1); exit 1; }; }
24610 esac
24611
24612 mgl_lib_type=""
24613 mgl_os=""
24614
24615 for mgl_os_i in $mgl_os_candidates ; do
24616 if test "x$mgl_os" = x ; then
24617 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24618 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24619 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24620 mgl_lib_type=debug
24621 mgl_os=$mgl_os_i
24622 fi
24623 fi
24624 if test "x$mgl_lib_type" = x ; then
24625 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24626 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24627 mgl_lib_type=release
24628 mgl_os=$mgl_os_i
24629 fi
24630 fi
24631 fi
24632 done
24633
24634 if test "x$mgl_os" = x ; then
24635 echo "$as_me:$LINENO: result: not found" >&5
24636echo "${ECHO_T}not found" >&6
24637 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24638echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24639 { (exit 1); exit 1; }; }
24640 fi
24641 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24642echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24643
24644 wxUSE_UNIVERSAL="yes"
24645
24646 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24647 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24648
24649 AFMINSTALL=afminstall
24650 TOOLKIT=MGL
24651 GUIDIST=MGL_DIST
24652 fi
24653
24654 if test "$wxUSE_MICROWIN" = 1; then
24655 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24656echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24657 if test "x$MICROWINDOWS" = x ; then
24658 echo "$as_me:$LINENO: result: not found" >&5
24659echo "${ECHO_T}not found" >&6
24660 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24661echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24662 { (exit 1); exit 1; }; }
24663 else
24664 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24665echo "${ECHO_T}$MICROWINDOWS" >&6
24666 fi
24667
24668 if test -f $MICROWINDOWS/lib/libmwin.a; then
24669 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24670echo "${ECHO_T}MicroWindows' libraries found." >&6
24671 else
24672 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24673echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24674 { (exit 1); exit 1; }; }
24675 fi
24676
24677 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24678 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24679
24680 wxUSE_UNIVERSAL="yes"
24681
24682 AFMINSTALL=afminstall
24683 TOOLKIT=MICROWIN
24684 GUIDIST=MICROWIN_DIST
24685
24686 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24687 fi
24688
74b84332 24689 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 24690 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24691echo $ECHO_N "checking for X... $ECHO_C" >&6
24692
24693
24694# Check whether --with-x or --without-x was given.
24695if test "${with_x+set}" = set; then
24696 withval="$with_x"
24697
24698fi;
24699# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24700if test "x$with_x" = xno; then
24701 # The user explicitly disabled X.
24702 have_x=disabled
24703else
24704 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24705 # Both variables are already set.
24706 have_x=yes
24707 else
24708 if test "${ac_cv_have_x+set}" = set; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24710else
24711 # One or both of the vars are not set, and there is no cached value.
24712ac_x_includes=no ac_x_libraries=no
24713rm -fr conftest.dir
24714if mkdir conftest.dir; then
24715 cd conftest.dir
24716 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24717 cat >Imakefile <<'_ACEOF'
24718acfindx:
24719 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24720_ACEOF
24721 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24723 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24724 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24725 for ac_extension in a so sl; do
24726 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24727 test -f $ac_im_libdir/libX11.$ac_extension; then
24728 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24729 fi
24730 done
24731 # Screen out bogus values from the imake configuration. They are
24732 # bogus both because they are the default anyway, and because
24733 # using them would break gcc on systems where it needs fixed includes.
24734 case $ac_im_incroot in
24735 /usr/include) ;;
24736 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24737 esac
24738 case $ac_im_usrlibdir in
24739 /usr/lib | /lib) ;;
24740 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24741 esac
24742 fi
24743 cd ..
24744 rm -fr conftest.dir
24745fi
24746
24747# Standard set of common directories for X headers.
24748# Check X11 before X11Rn because it is often a symlink to the current release.
24749ac_x_header_dirs='
24750/usr/X11/include
24751/usr/X11R6/include
24752/usr/X11R5/include
24753/usr/X11R4/include
24754
24755/usr/include/X11
24756/usr/include/X11R6
24757/usr/include/X11R5
24758/usr/include/X11R4
24759
24760/usr/local/X11/include
24761/usr/local/X11R6/include
24762/usr/local/X11R5/include
24763/usr/local/X11R4/include
24764
24765/usr/local/include/X11
24766/usr/local/include/X11R6
24767/usr/local/include/X11R5
24768/usr/local/include/X11R4
24769
24770/usr/X386/include
24771/usr/x386/include
24772/usr/XFree86/include/X11
24773
24774/usr/include
24775/usr/local/include
24776/usr/unsupported/include
24777/usr/athena/include
24778/usr/local/x11r5/include
24779/usr/lpp/Xamples/include
24780
24781/usr/openwin/include
24782/usr/openwin/share/include'
24783
24784if test "$ac_x_includes" = no; then
89be85c2 24785 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24786 # First, try using that file with no special directory specified.
24787 cat >conftest.$ac_ext <<_ACEOF
24788/* confdefs.h. */
24789_ACEOF
24790cat confdefs.h >>conftest.$ac_ext
24791cat >>conftest.$ac_ext <<_ACEOF
24792/* end confdefs.h. */
24793#include <X11/Intrinsic.h>
24794_ACEOF
24795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24797 ac_status=$?
24798 grep -v '^ *+' conftest.er1 >conftest.err
24799 rm -f conftest.er1
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } >/dev/null; then
24803 if test -s conftest.err; then
24804 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24806 else
24807 ac_cpp_err=
24808 fi
24809else
24810 ac_cpp_err=yes
24811fi
24812if test -z "$ac_cpp_err"; then
24813 # We can compile using X headers with no special include directory.
24814ac_x_includes=
24815else
24816 echo "$as_me: failed program was:" >&5
24817sed 's/^/| /' conftest.$ac_ext >&5
24818
24819 for ac_dir in $ac_x_header_dirs; do
24820 if test -r "$ac_dir/X11/Intrinsic.h"; then
24821 ac_x_includes=$ac_dir
24822 break
24823 fi
24824done
24825fi
24826rm -f conftest.err conftest.$ac_ext
24827fi # $ac_x_includes = no
24828
24829if test "$ac_x_libraries" = no; then
24830 # Check for the libraries.
24831 # See if we find them without any special options.
24832 # Don't add to $LIBS permanently.
24833 ac_save_LIBS=$LIBS
24834 LIBS="-lXt $LIBS"
24835 cat >conftest.$ac_ext <<_ACEOF
24836/* confdefs.h. */
24837_ACEOF
24838cat confdefs.h >>conftest.$ac_ext
24839cat >>conftest.$ac_ext <<_ACEOF
24840/* end confdefs.h. */
24841#include <X11/Intrinsic.h>
24842int
24843main ()
24844{
24845XtMalloc (0)
24846 ;
24847 return 0;
24848}
24849_ACEOF
24850rm -f conftest.$ac_objext conftest$ac_exeext
24851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24852 (eval $ac_link) 2>conftest.er1
a848cd7e 24853 ac_status=$?
ac1cb8d3
VS
24854 grep -v '^ *+' conftest.er1 >conftest.err
24855 rm -f conftest.er1
24856 cat conftest.err >&5
a848cd7e
SC
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } &&
89be85c2
VS
24859 { ac_try='test -z "$ac_c_werror_flag"
24860 || test ! -s conftest.err'
ac1cb8d3
VS
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; } &&
24866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); }; }; then
24872 LIBS=$ac_save_LIBS
24873# We can link X programs with no special library path.
24874ac_x_libraries=
24875else
24876 echo "$as_me: failed program was:" >&5
24877sed 's/^/| /' conftest.$ac_ext >&5
24878
24879LIBS=$ac_save_LIBS
24880for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24881do
24882 # Don't even attempt the hair of trying to link an X program!
24883 for ac_extension in a so sl; do
24884 if test -r $ac_dir/libXt.$ac_extension; then
24885 ac_x_libraries=$ac_dir
24886 break 2
24887 fi
24888 done
24889done
24890fi
ac1cb8d3
VS
24891rm -f conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24893fi # $ac_x_libraries = no
24894
24895if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24896 # Didn't find X anywhere. Cache the known absence of X.
24897 ac_cv_have_x="have_x=no"
24898else
24899 # Record where we found X for the cache.
24900 ac_cv_have_x="have_x=yes \
ac1cb8d3 24901 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24902fi
24903fi
24904
24905 fi
24906 eval "$ac_cv_have_x"
24907fi # $with_x != no
24908
24909if test "$have_x" != yes; then
24910 echo "$as_me:$LINENO: result: $have_x" >&5
24911echo "${ECHO_T}$have_x" >&6
24912 no_x=yes
24913else
24914 # If each of the values was on the command line, it overrides each guess.
24915 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24916 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24917 # Update the cache value to reflect the command line values.
24918 ac_cv_have_x="have_x=yes \
24919 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
24920 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24921echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24922fi
24923
24924if test "$no_x" = yes; then
24925 # Not all programs may use this symbol, but it does not hurt to define it.
24926
24927cat >>confdefs.h <<\_ACEOF
24928#define X_DISPLAY_MISSING 1
24929_ACEOF
24930
24931 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24932else
24933 if test -n "$x_includes"; then
24934 X_CFLAGS="$X_CFLAGS -I$x_includes"
24935 fi
24936
24937 # It would also be nice to do this for all -L options, not just this one.
24938 if test -n "$x_libraries"; then
24939 X_LIBS="$X_LIBS -L$x_libraries"
24940 # For Solaris; some versions of Sun CC require a space after -R and
24941 # others require no space. Words are not sufficient . . . .
24942 case `(uname -sr) 2>/dev/null` in
24943 "SunOS 5"*)
24944 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24945echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24946 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24947 cat >conftest.$ac_ext <<_ACEOF
24948/* confdefs.h. */
24949_ACEOF
24950cat confdefs.h >>conftest.$ac_ext
24951cat >>conftest.$ac_ext <<_ACEOF
24952/* end confdefs.h. */
24953
24954int
24955main ()
24956{
24957
24958 ;
24959 return 0;
24960}
24961_ACEOF
24962rm -f conftest.$ac_objext conftest$ac_exeext
24963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24964 (eval $ac_link) 2>conftest.er1
a848cd7e 24965 ac_status=$?
ac1cb8d3
VS
24966 grep -v '^ *+' conftest.er1 >conftest.err
24967 rm -f conftest.er1
24968 cat conftest.err >&5
a848cd7e
SC
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } &&
89be85c2
VS
24971 { ac_try='test -z "$ac_c_werror_flag"
24972 || test ! -s conftest.err'
ac1cb8d3
VS
24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; } &&
24978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; }; then
24984 ac_R_nospace=yes
24985else
24986 echo "$as_me: failed program was:" >&5
24987sed 's/^/| /' conftest.$ac_ext >&5
24988
24989ac_R_nospace=no
24990fi
ac1cb8d3
VS
24991rm -f conftest.err conftest.$ac_objext \
24992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24993 if test $ac_R_nospace = yes; then
24994 echo "$as_me:$LINENO: result: no" >&5
24995echo "${ECHO_T}no" >&6
24996 X_LIBS="$X_LIBS -R$x_libraries"
24997 else
24998 LIBS="$ac_xsave_LIBS -R $x_libraries"
24999 cat >conftest.$ac_ext <<_ACEOF
25000/* confdefs.h. */
25001_ACEOF
25002cat confdefs.h >>conftest.$ac_ext
25003cat >>conftest.$ac_ext <<_ACEOF
25004/* end confdefs.h. */
25005
25006int
25007main ()
25008{
25009
25010 ;
25011 return 0;
25012}
25013_ACEOF
25014rm -f conftest.$ac_objext conftest$ac_exeext
25015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25016 (eval $ac_link) 2>conftest.er1
a848cd7e 25017 ac_status=$?
ac1cb8d3
VS
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
a848cd7e
SC
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
89be85c2
VS
25023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
ac1cb8d3
VS
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_R_space=yes
25037else
25038 echo "$as_me: failed program was:" >&5
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
25041ac_R_space=no
25042fi
ac1cb8d3
VS
25043rm -f conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25045 if test $ac_R_space = yes; then
25046 echo "$as_me:$LINENO: result: yes" >&5
25047echo "${ECHO_T}yes" >&6
25048 X_LIBS="$X_LIBS -R $x_libraries"
25049 else
25050 echo "$as_me:$LINENO: result: neither works" >&5
25051echo "${ECHO_T}neither works" >&6
25052 fi
25053 fi
25054 LIBS=$ac_xsave_LIBS
25055 esac
25056 fi
25057
25058 # Check for system-dependent libraries X programs must link with.
25059 # Do this before checking for the system-independent R6 libraries
25060 # (-lICE), since we may need -lsocket or whatever for X linking.
25061
25062 if test "$ISC" = yes; then
25063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25064 else
25065 # Martyn Johnson says this is needed for Ultrix, if the X
25066 # libraries were built with DECnet support. And Karl Berry says
25067 # the Alpha needs dnet_stub (dnet does not exist).
25068 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25069 cat >conftest.$ac_ext <<_ACEOF
25070/* confdefs.h. */
25071_ACEOF
25072cat confdefs.h >>conftest.$ac_ext
25073cat >>conftest.$ac_ext <<_ACEOF
25074/* end confdefs.h. */
25075
25076/* Override any gcc2 internal prototype to avoid an error. */
25077#ifdef __cplusplus
25078extern "C"
25079#endif
25080/* We use char because int might match the return type of a gcc2
25081 builtin and then its argument prototype would still apply. */
25082char XOpenDisplay ();
25083int
25084main ()
25085{
25086XOpenDisplay ();
25087 ;
25088 return 0;
25089}
25090_ACEOF
25091rm -f conftest.$ac_objext conftest$ac_exeext
25092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25093 (eval $ac_link) 2>conftest.er1
a848cd7e 25094 ac_status=$?
ac1cb8d3
VS
25095 grep -v '^ *+' conftest.er1 >conftest.err
25096 rm -f conftest.er1
25097 cat conftest.err >&5
a848cd7e
SC
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } &&
89be85c2
VS
25100 { ac_try='test -z "$ac_c_werror_flag"
25101 || test ! -s conftest.err'
ac1cb8d3
VS
25102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; } &&
25107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109 (eval $ac_try) 2>&5
25110 ac_status=$?
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; }; then
25113 :
25114else
25115 echo "$as_me: failed program was:" >&5
25116sed 's/^/| /' conftest.$ac_ext >&5
25117
25118echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25119echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25120if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25121 echo $ECHO_N "(cached) $ECHO_C" >&6
25122else
25123 ac_check_lib_save_LIBS=$LIBS
25124LIBS="-ldnet $LIBS"
25125cat >conftest.$ac_ext <<_ACEOF
25126/* confdefs.h. */
25127_ACEOF
25128cat confdefs.h >>conftest.$ac_ext
25129cat >>conftest.$ac_ext <<_ACEOF
25130/* end confdefs.h. */
25131
25132/* Override any gcc2 internal prototype to avoid an error. */
25133#ifdef __cplusplus
25134extern "C"
25135#endif
25136/* We use char because int might match the return type of a gcc2
25137 builtin and then its argument prototype would still apply. */
25138char dnet_ntoa ();
25139int
25140main ()
25141{
25142dnet_ntoa ();
25143 ;
25144 return 0;
25145}
25146_ACEOF
25147rm -f conftest.$ac_objext conftest$ac_exeext
25148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25149 (eval $ac_link) 2>conftest.er1
a848cd7e 25150 ac_status=$?
ac1cb8d3
VS
25151 grep -v '^ *+' conftest.er1 >conftest.err
25152 rm -f conftest.er1
25153 cat conftest.err >&5
a848cd7e
SC
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } &&
89be85c2
VS
25156 { ac_try='test -z "$ac_c_werror_flag"
25157 || test ! -s conftest.err'
ac1cb8d3
VS
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; } &&
25163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; }; then
25169 ac_cv_lib_dnet_dnet_ntoa=yes
25170else
25171 echo "$as_me: failed program was:" >&5
25172sed 's/^/| /' conftest.$ac_ext >&5
25173
25174ac_cv_lib_dnet_dnet_ntoa=no
25175fi
ac1cb8d3
VS
25176rm -f conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25178LIBS=$ac_check_lib_save_LIBS
25179fi
25180echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25181echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25182if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25183 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25184fi
25185
25186 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25187 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25188echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25189if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191else
25192 ac_check_lib_save_LIBS=$LIBS
25193LIBS="-ldnet_stub $LIBS"
25194cat >conftest.$ac_ext <<_ACEOF
25195/* confdefs.h. */
25196_ACEOF
25197cat confdefs.h >>conftest.$ac_ext
25198cat >>conftest.$ac_ext <<_ACEOF
25199/* end confdefs.h. */
25200
25201/* Override any gcc2 internal prototype to avoid an error. */
25202#ifdef __cplusplus
25203extern "C"
25204#endif
25205/* We use char because int might match the return type of a gcc2
25206 builtin and then its argument prototype would still apply. */
25207char dnet_ntoa ();
25208int
25209main ()
25210{
25211dnet_ntoa ();
25212 ;
25213 return 0;
25214}
25215_ACEOF
25216rm -f conftest.$ac_objext conftest$ac_exeext
25217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25218 (eval $ac_link) 2>conftest.er1
a848cd7e 25219 ac_status=$?
ac1cb8d3
VS
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
a848cd7e
SC
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } &&
89be85c2
VS
25225 { ac_try='test -z "$ac_c_werror_flag"
25226 || test ! -s conftest.err'
ac1cb8d3
VS
25227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25228 (eval $ac_try) 2>&5
25229 ac_status=$?
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); }; } &&
25232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; }; then
25238 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25239else
25240 echo "$as_me: failed program was:" >&5
25241sed 's/^/| /' conftest.$ac_ext >&5
25242
25243ac_cv_lib_dnet_stub_dnet_ntoa=no
25244fi
ac1cb8d3
VS
25245rm -f conftest.err conftest.$ac_objext \
25246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25247LIBS=$ac_check_lib_save_LIBS
25248fi
25249echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25250echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25251if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25252 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25253fi
25254
25255 fi
25256fi
ac1cb8d3
VS
25257rm -f conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25259 LIBS="$ac_xsave_LIBS"
25260
25261 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25262 # to get the SysV transport functions.
25263 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25264 # needs -lnsl.
25265 # The nsl library prevents programs from opening the X display
25266 # on Irix 5.2, according to T.E. Dickey.
25267 # The functions gethostbyname, getservbyname, and inet_addr are
25268 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25269 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25270echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25271if test "${ac_cv_func_gethostbyname+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25273else
25274 cat >conftest.$ac_ext <<_ACEOF
25275/* confdefs.h. */
25276_ACEOF
25277cat confdefs.h >>conftest.$ac_ext
25278cat >>conftest.$ac_ext <<_ACEOF
25279/* end confdefs.h. */
ac1cb8d3
VS
25280/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25282#define gethostbyname innocuous_gethostbyname
25283
a848cd7e
SC
25284/* System header to define __stub macros and hopefully few prototypes,
25285 which can conflict with char gethostbyname (); below.
25286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25287 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25288
a848cd7e
SC
25289#ifdef __STDC__
25290# include <limits.h>
25291#else
25292# include <assert.h>
25293#endif
ac1cb8d3
VS
25294
25295#undef gethostbyname
25296
a848cd7e
SC
25297/* Override any gcc2 internal prototype to avoid an error. */
25298#ifdef __cplusplus
25299extern "C"
25300{
25301#endif
25302/* We use char because int might match the return type of a gcc2
25303 builtin and then its argument prototype would still apply. */
25304char gethostbyname ();
25305/* The GNU C library defines this for functions which it implements
25306 to always fail with ENOSYS. Some functions are actually named
25307 something starting with __ and the normal name is an alias. */
25308#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25309choke me
25310#else
25311char (*f) () = gethostbyname;
25312#endif
25313#ifdef __cplusplus
25314}
25315#endif
25316
25317int
25318main ()
25319{
25320return f != gethostbyname;
25321 ;
25322 return 0;
25323}
25324_ACEOF
25325rm -f conftest.$ac_objext conftest$ac_exeext
25326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25327 (eval $ac_link) 2>conftest.er1
a848cd7e 25328 ac_status=$?
ac1cb8d3
VS
25329 grep -v '^ *+' conftest.er1 >conftest.err
25330 rm -f conftest.er1
25331 cat conftest.err >&5
a848cd7e
SC
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
89be85c2
VS
25334 { ac_try='test -z "$ac_c_werror_flag"
25335 || test ! -s conftest.err'
ac1cb8d3
VS
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25338 ac_status=$?
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; } &&
25341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
25347 ac_cv_func_gethostbyname=yes
25348else
25349 echo "$as_me: failed program was:" >&5
25350sed 's/^/| /' conftest.$ac_ext >&5
25351
25352ac_cv_func_gethostbyname=no
25353fi
ac1cb8d3
VS
25354rm -f conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25356fi
25357echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25358echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25359
25360 if test $ac_cv_func_gethostbyname = no; then
25361 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25362echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25363if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25364 echo $ECHO_N "(cached) $ECHO_C" >&6
25365else
25366 ac_check_lib_save_LIBS=$LIBS
25367LIBS="-lnsl $LIBS"
25368cat >conftest.$ac_ext <<_ACEOF
25369/* confdefs.h. */
25370_ACEOF
25371cat confdefs.h >>conftest.$ac_ext
25372cat >>conftest.$ac_ext <<_ACEOF
25373/* end confdefs.h. */
25374
25375/* Override any gcc2 internal prototype to avoid an error. */
25376#ifdef __cplusplus
25377extern "C"
25378#endif
25379/* We use char because int might match the return type of a gcc2
25380 builtin and then its argument prototype would still apply. */
25381char gethostbyname ();
25382int
25383main ()
25384{
25385gethostbyname ();
25386 ;
25387 return 0;
25388}
25389_ACEOF
25390rm -f conftest.$ac_objext conftest$ac_exeext
25391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25392 (eval $ac_link) 2>conftest.er1
25393 ac_status=$?
25394 grep -v '^ *+' conftest.er1 >conftest.err
25395 rm -f conftest.er1
25396 cat conftest.err >&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); } &&
89be85c2
VS
25399 { ac_try='test -z "$ac_c_werror_flag"
25400 || test ! -s conftest.err'
ac1cb8d3
VS
25401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25402 (eval $ac_try) 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }; } &&
25406 { ac_try='test -s conftest$ac_exeext'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; }; then
25412 ac_cv_lib_nsl_gethostbyname=yes
25413else
25414 echo "$as_me: failed program was:" >&5
25415sed 's/^/| /' conftest.$ac_ext >&5
25416
25417ac_cv_lib_nsl_gethostbyname=no
25418fi
25419rm -f conftest.err conftest.$ac_objext \
25420 conftest$ac_exeext conftest.$ac_ext
25421LIBS=$ac_check_lib_save_LIBS
25422fi
25423echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25424echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25425if test $ac_cv_lib_nsl_gethostbyname = yes; then
25426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25427fi
25428
25429 if test $ac_cv_lib_nsl_gethostbyname = no; then
25430 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25431echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25432if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25433 echo $ECHO_N "(cached) $ECHO_C" >&6
25434else
25435 ac_check_lib_save_LIBS=$LIBS
25436LIBS="-lbsd $LIBS"
25437cat >conftest.$ac_ext <<_ACEOF
25438/* confdefs.h. */
25439_ACEOF
25440cat confdefs.h >>conftest.$ac_ext
25441cat >>conftest.$ac_ext <<_ACEOF
25442/* end confdefs.h. */
25443
25444/* Override any gcc2 internal prototype to avoid an error. */
25445#ifdef __cplusplus
25446extern "C"
25447#endif
25448/* We use char because int might match the return type of a gcc2
25449 builtin and then its argument prototype would still apply. */
25450char gethostbyname ();
25451int
25452main ()
25453{
25454gethostbyname ();
25455 ;
25456 return 0;
25457}
25458_ACEOF
25459rm -f conftest.$ac_objext conftest$ac_exeext
25460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25461 (eval $ac_link) 2>conftest.er1
a848cd7e 25462 ac_status=$?
ac1cb8d3
VS
25463 grep -v '^ *+' conftest.er1 >conftest.err
25464 rm -f conftest.er1
25465 cat conftest.err >&5
a848cd7e
SC
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } &&
89be85c2
VS
25468 { ac_try='test -z "$ac_c_werror_flag"
25469 || test ! -s conftest.err'
a848cd7e
SC
25470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25474 (exit $ac_status); }; } &&
25475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; }; then
25481 ac_cv_lib_bsd_gethostbyname=yes
25482else
25483 echo "$as_me: failed program was:" >&5
25484sed 's/^/| /' conftest.$ac_ext >&5
25485
25486ac_cv_lib_bsd_gethostbyname=no
25487fi
ac1cb8d3
VS
25488rm -f conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25490LIBS=$ac_check_lib_save_LIBS
25491fi
25492echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25493echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25494if test $ac_cv_lib_bsd_gethostbyname = yes; then
25495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25496fi
25497
25498 fi
25499 fi
25500
25501 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25502 # socket/setsockopt and other routines are undefined under SCO ODT
25503 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25504 # on later versions), says Simon Leinen: it contains gethostby*
25505 # variants that don't use the name server (or something). -lsocket
25506 # must be given before -lnsl if both are needed. We assume that
25507 # if connect needs -lnsl, so does gethostbyname.
25508 echo "$as_me:$LINENO: checking for connect" >&5
25509echo $ECHO_N "checking for connect... $ECHO_C" >&6
25510if test "${ac_cv_func_connect+set}" = set; then
25511 echo $ECHO_N "(cached) $ECHO_C" >&6
25512else
25513 cat >conftest.$ac_ext <<_ACEOF
25514/* confdefs.h. */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h. */
ac1cb8d3
VS
25519/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25521#define connect innocuous_connect
25522
a848cd7e
SC
25523/* System header to define __stub macros and hopefully few prototypes,
25524 which can conflict with char connect (); below.
25525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25526 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25527
a848cd7e
SC
25528#ifdef __STDC__
25529# include <limits.h>
25530#else
25531# include <assert.h>
25532#endif
ac1cb8d3
VS
25533
25534#undef connect
25535
a848cd7e
SC
25536/* Override any gcc2 internal prototype to avoid an error. */
25537#ifdef __cplusplus
25538extern "C"
25539{
25540#endif
25541/* We use char because int might match the return type of a gcc2
25542 builtin and then its argument prototype would still apply. */
25543char connect ();
25544/* The GNU C library defines this for functions which it implements
25545 to always fail with ENOSYS. Some functions are actually named
25546 something starting with __ and the normal name is an alias. */
25547#if defined (__stub_connect) || defined (__stub___connect)
25548choke me
25549#else
25550char (*f) () = connect;
25551#endif
25552#ifdef __cplusplus
25553}
25554#endif
25555
25556int
25557main ()
25558{
25559return f != connect;
25560 ;
25561 return 0;
25562}
25563_ACEOF
25564rm -f conftest.$ac_objext conftest$ac_exeext
25565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25566 (eval $ac_link) 2>conftest.er1
a848cd7e 25567 ac_status=$?
ac1cb8d3
VS
25568 grep -v '^ *+' conftest.er1 >conftest.err
25569 rm -f conftest.er1
25570 cat conftest.err >&5
a848cd7e
SC
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } &&
89be85c2
VS
25573 { ac_try='test -z "$ac_c_werror_flag"
25574 || test ! -s conftest.err'
ac1cb8d3
VS
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; } &&
25580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
25586 ac_cv_func_connect=yes
25587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
25591ac_cv_func_connect=no
25592fi
ac1cb8d3
VS
25593rm -f conftest.err conftest.$ac_objext \
25594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25595fi
25596echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25597echo "${ECHO_T}$ac_cv_func_connect" >&6
25598
25599 if test $ac_cv_func_connect = no; then
25600 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25601echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25602if test "${ac_cv_lib_socket_connect+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25604else
25605 ac_check_lib_save_LIBS=$LIBS
25606LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25607cat >conftest.$ac_ext <<_ACEOF
25608/* confdefs.h. */
25609_ACEOF
25610cat confdefs.h >>conftest.$ac_ext
25611cat >>conftest.$ac_ext <<_ACEOF
25612/* end confdefs.h. */
25613
25614/* Override any gcc2 internal prototype to avoid an error. */
25615#ifdef __cplusplus
25616extern "C"
25617#endif
25618/* We use char because int might match the return type of a gcc2
25619 builtin and then its argument prototype would still apply. */
25620char connect ();
25621int
25622main ()
25623{
25624connect ();
25625 ;
25626 return 0;
25627}
25628_ACEOF
25629rm -f conftest.$ac_objext conftest$ac_exeext
25630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25631 (eval $ac_link) 2>conftest.er1
a848cd7e 25632 ac_status=$?
ac1cb8d3
VS
25633 grep -v '^ *+' conftest.er1 >conftest.err
25634 rm -f conftest.er1
25635 cat conftest.err >&5
a848cd7e
SC
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } &&
89be85c2
VS
25638 { ac_try='test -z "$ac_c_werror_flag"
25639 || test ! -s conftest.err'
ac1cb8d3
VS
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; } &&
25645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; }; then
25651 ac_cv_lib_socket_connect=yes
25652else
25653 echo "$as_me: failed program was:" >&5
25654sed 's/^/| /' conftest.$ac_ext >&5
25655
25656ac_cv_lib_socket_connect=no
25657fi
ac1cb8d3
VS
25658rm -f conftest.err conftest.$ac_objext \
25659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25660LIBS=$ac_check_lib_save_LIBS
25661fi
25662echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25663echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25664if test $ac_cv_lib_socket_connect = yes; then
25665 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25666fi
25667
25668 fi
25669
25670 # Guillermo Gomez says -lposix is necessary on A/UX.
25671 echo "$as_me:$LINENO: checking for remove" >&5
25672echo $ECHO_N "checking for remove... $ECHO_C" >&6
25673if test "${ac_cv_func_remove+set}" = set; then
25674 echo $ECHO_N "(cached) $ECHO_C" >&6
25675else
25676 cat >conftest.$ac_ext <<_ACEOF
25677/* confdefs.h. */
25678_ACEOF
25679cat confdefs.h >>conftest.$ac_ext
25680cat >>conftest.$ac_ext <<_ACEOF
25681/* end confdefs.h. */
ac1cb8d3
VS
25682/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25684#define remove innocuous_remove
25685
a848cd7e
SC
25686/* System header to define __stub macros and hopefully few prototypes,
25687 which can conflict with char remove (); below.
25688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25689 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25690
a848cd7e
SC
25691#ifdef __STDC__
25692# include <limits.h>
25693#else
25694# include <assert.h>
25695#endif
ac1cb8d3
VS
25696
25697#undef remove
25698
a848cd7e
SC
25699/* Override any gcc2 internal prototype to avoid an error. */
25700#ifdef __cplusplus
25701extern "C"
25702{
25703#endif
25704/* We use char because int might match the return type of a gcc2
25705 builtin and then its argument prototype would still apply. */
25706char remove ();
25707/* The GNU C library defines this for functions which it implements
25708 to always fail with ENOSYS. Some functions are actually named
25709 something starting with __ and the normal name is an alias. */
25710#if defined (__stub_remove) || defined (__stub___remove)
25711choke me
25712#else
25713char (*f) () = remove;
25714#endif
25715#ifdef __cplusplus
25716}
25717#endif
25718
25719int
25720main ()
25721{
25722return f != remove;
25723 ;
25724 return 0;
25725}
25726_ACEOF
25727rm -f conftest.$ac_objext conftest$ac_exeext
25728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25729 (eval $ac_link) 2>conftest.er1
a848cd7e 25730 ac_status=$?
ac1cb8d3
VS
25731 grep -v '^ *+' conftest.er1 >conftest.err
25732 rm -f conftest.er1
25733 cat conftest.err >&5
a848cd7e
SC
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
89be85c2
VS
25736 { ac_try='test -z "$ac_c_werror_flag"
25737 || test ! -s conftest.err'
ac1cb8d3
VS
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; } &&
25743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_cv_func_remove=yes
25750else
25751 echo "$as_me: failed program was:" >&5
25752sed 's/^/| /' conftest.$ac_ext >&5
25753
25754ac_cv_func_remove=no
25755fi
ac1cb8d3
VS
25756rm -f conftest.err conftest.$ac_objext \
25757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25758fi
25759echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25760echo "${ECHO_T}$ac_cv_func_remove" >&6
25761
25762 if test $ac_cv_func_remove = no; then
25763 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25764echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25765if test "${ac_cv_lib_posix_remove+set}" = set; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25767else
25768 ac_check_lib_save_LIBS=$LIBS
25769LIBS="-lposix $LIBS"
25770cat >conftest.$ac_ext <<_ACEOF
25771/* confdefs.h. */
25772_ACEOF
25773cat confdefs.h >>conftest.$ac_ext
25774cat >>conftest.$ac_ext <<_ACEOF
25775/* end confdefs.h. */
25776
25777/* Override any gcc2 internal prototype to avoid an error. */
25778#ifdef __cplusplus
25779extern "C"
25780#endif
25781/* We use char because int might match the return type of a gcc2
25782 builtin and then its argument prototype would still apply. */
25783char remove ();
25784int
25785main ()
25786{
25787remove ();
25788 ;
25789 return 0;
25790}
25791_ACEOF
25792rm -f conftest.$ac_objext conftest$ac_exeext
25793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25794 (eval $ac_link) 2>conftest.er1
a848cd7e 25795 ac_status=$?
ac1cb8d3
VS
25796 grep -v '^ *+' conftest.er1 >conftest.err
25797 rm -f conftest.er1
25798 cat conftest.err >&5
a848cd7e
SC
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); } &&
89be85c2
VS
25801 { ac_try='test -z "$ac_c_werror_flag"
25802 || test ! -s conftest.err'
ac1cb8d3
VS
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; } &&
25808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; }; then
25814 ac_cv_lib_posix_remove=yes
25815else
25816 echo "$as_me: failed program was:" >&5
25817sed 's/^/| /' conftest.$ac_ext >&5
25818
25819ac_cv_lib_posix_remove=no
25820fi
ac1cb8d3
VS
25821rm -f conftest.err conftest.$ac_objext \
25822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25823LIBS=$ac_check_lib_save_LIBS
25824fi
25825echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25826echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25827if test $ac_cv_lib_posix_remove = yes; then
25828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25829fi
25830
25831 fi
25832
25833 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25834 echo "$as_me:$LINENO: checking for shmat" >&5
25835echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25836if test "${ac_cv_func_shmat+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
25838else
25839 cat >conftest.$ac_ext <<_ACEOF
25840/* confdefs.h. */
25841_ACEOF
25842cat confdefs.h >>conftest.$ac_ext
25843cat >>conftest.$ac_ext <<_ACEOF
25844/* end confdefs.h. */
ac1cb8d3
VS
25845/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25847#define shmat innocuous_shmat
25848
a848cd7e
SC
25849/* System header to define __stub macros and hopefully few prototypes,
25850 which can conflict with char shmat (); below.
25851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25852 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25853
a848cd7e
SC
25854#ifdef __STDC__
25855# include <limits.h>
25856#else
25857# include <assert.h>
25858#endif
ac1cb8d3
VS
25859
25860#undef shmat
25861
a848cd7e
SC
25862/* Override any gcc2 internal prototype to avoid an error. */
25863#ifdef __cplusplus
25864extern "C"
25865{
25866#endif
25867/* We use char because int might match the return type of a gcc2
25868 builtin and then its argument prototype would still apply. */
25869char shmat ();
25870/* The GNU C library defines this for functions which it implements
25871 to always fail with ENOSYS. Some functions are actually named
25872 something starting with __ and the normal name is an alias. */
25873#if defined (__stub_shmat) || defined (__stub___shmat)
25874choke me
25875#else
25876char (*f) () = shmat;
25877#endif
25878#ifdef __cplusplus
25879}
25880#endif
25881
25882int
25883main ()
25884{
25885return f != shmat;
25886 ;
25887 return 0;
25888}
25889_ACEOF
25890rm -f conftest.$ac_objext conftest$ac_exeext
25891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25892 (eval $ac_link) 2>conftest.er1
a848cd7e 25893 ac_status=$?
ac1cb8d3
VS
25894 grep -v '^ *+' conftest.er1 >conftest.err
25895 rm -f conftest.er1
25896 cat conftest.err >&5
a848cd7e
SC
25897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); } &&
89be85c2
VS
25899 { ac_try='test -z "$ac_c_werror_flag"
25900 || test ! -s conftest.err'
ac1cb8d3
VS
25901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902 (eval $ac_try) 2>&5
25903 ac_status=$?
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; } &&
25906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); }; }; then
25912 ac_cv_func_shmat=yes
25913else
25914 echo "$as_me: failed program was:" >&5
25915sed 's/^/| /' conftest.$ac_ext >&5
25916
25917ac_cv_func_shmat=no
25918fi
ac1cb8d3
VS
25919rm -f conftest.err conftest.$ac_objext \
25920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25921fi
25922echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25923echo "${ECHO_T}$ac_cv_func_shmat" >&6
25924
25925 if test $ac_cv_func_shmat = no; then
25926 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25927echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25928if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25929 echo $ECHO_N "(cached) $ECHO_C" >&6
25930else
25931 ac_check_lib_save_LIBS=$LIBS
25932LIBS="-lipc $LIBS"
25933cat >conftest.$ac_ext <<_ACEOF
25934/* confdefs.h. */
25935_ACEOF
25936cat confdefs.h >>conftest.$ac_ext
25937cat >>conftest.$ac_ext <<_ACEOF
25938/* end confdefs.h. */
25939
25940/* Override any gcc2 internal prototype to avoid an error. */
25941#ifdef __cplusplus
25942extern "C"
25943#endif
25944/* We use char because int might match the return type of a gcc2
25945 builtin and then its argument prototype would still apply. */
25946char shmat ();
25947int
25948main ()
25949{
25950shmat ();
25951 ;
25952 return 0;
25953}
25954_ACEOF
25955rm -f conftest.$ac_objext conftest$ac_exeext
25956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25957 (eval $ac_link) 2>conftest.er1
a848cd7e 25958 ac_status=$?
ac1cb8d3
VS
25959 grep -v '^ *+' conftest.er1 >conftest.err
25960 rm -f conftest.er1
25961 cat conftest.err >&5
a848cd7e
SC
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); } &&
89be85c2
VS
25964 { ac_try='test -z "$ac_c_werror_flag"
25965 || test ! -s conftest.err'
ac1cb8d3
VS
25966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25967 (eval $ac_try) 2>&5
25968 ac_status=$?
25969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970 (exit $ac_status); }; } &&
25971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 ac_cv_lib_ipc_shmat=yes
25978else
25979 echo "$as_me: failed program was:" >&5
25980sed 's/^/| /' conftest.$ac_ext >&5
25981
25982ac_cv_lib_ipc_shmat=no
25983fi
ac1cb8d3
VS
25984rm -f conftest.err conftest.$ac_objext \
25985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25986LIBS=$ac_check_lib_save_LIBS
25987fi
25988echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25989echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25990if test $ac_cv_lib_ipc_shmat = yes; then
25991 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25992fi
25993
25994 fi
25995 fi
25996
25997 # Check for libraries that X11R6 Xt/Xaw programs need.
25998 ac_save_LDFLAGS=$LDFLAGS
25999 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26000 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26001 # check for ICE first), but we must link in the order -lSM -lICE or
26002 # we get undefined symbols. So assume we have SM if we have ICE.
26003 # These have to be linked with before -lX11, unlike the other
26004 # libraries we check for below, so use a different variable.
26005 # John Interrante, Karl Berry
26006 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26007echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26008if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26010else
26011 ac_check_lib_save_LIBS=$LIBS
26012LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26013cat >conftest.$ac_ext <<_ACEOF
26014/* confdefs.h. */
26015_ACEOF
26016cat confdefs.h >>conftest.$ac_ext
26017cat >>conftest.$ac_ext <<_ACEOF
26018/* end confdefs.h. */
26019
26020/* Override any gcc2 internal prototype to avoid an error. */
26021#ifdef __cplusplus
26022extern "C"
26023#endif
26024/* We use char because int might match the return type of a gcc2
26025 builtin and then its argument prototype would still apply. */
26026char IceConnectionNumber ();
26027int
26028main ()
26029{
26030IceConnectionNumber ();
26031 ;
26032 return 0;
26033}
26034_ACEOF
26035rm -f conftest.$ac_objext conftest$ac_exeext
26036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26037 (eval $ac_link) 2>conftest.er1
a848cd7e 26038 ac_status=$?
ac1cb8d3
VS
26039 grep -v '^ *+' conftest.er1 >conftest.err
26040 rm -f conftest.er1
26041 cat conftest.err >&5
a848cd7e
SC
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } &&
89be85c2
VS
26044 { ac_try='test -z "$ac_c_werror_flag"
26045 || test ! -s conftest.err'
ac1cb8d3
VS
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; } &&
26051 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; }; then
26057 ac_cv_lib_ICE_IceConnectionNumber=yes
26058else
26059 echo "$as_me: failed program was:" >&5
26060sed 's/^/| /' conftest.$ac_ext >&5
26061
26062ac_cv_lib_ICE_IceConnectionNumber=no
26063fi
ac1cb8d3
VS
26064rm -f conftest.err conftest.$ac_objext \
26065 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26066LIBS=$ac_check_lib_save_LIBS
26067fi
26068echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26069echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26070if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26071 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26072fi
26073
26074 LDFLAGS=$ac_save_LDFLAGS
26075
26076fi
26077
26078
26079 if test "$no_x" = "yes"; then
26080 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26081echo "$as_me: error: X11 not found" >&2;}
26082 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26083 fi
26084
74b84332
VS
26085 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26086 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26087 AFMINSTALL=afminstall
26088 COMPILED_X_PROGRAM=0
26089
74b84332
VS
26090 fi
26091
26092 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26093 if test "$wxUSE_NANOX" = "yes"; then
26094 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26095echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26096 if test "x$MICROWIN" = x ; then
26097 echo "$as_me:$LINENO: result: not found" >&5
26098echo "${ECHO_T}not found" >&6
26099 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26100echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26101 { (exit 1); exit 1; }; }
26102 else
26103 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26104echo "${ECHO_T}$MICROWIN" >&6
26105 cat >>confdefs.h <<\_ACEOF
26106#define wxUSE_NANOX 1
26107_ACEOF
26108
26109 fi
26110 fi
26111
26112 if test "$wxUSE_UNICODE" = "yes"; then
26113
26114 succeeded=no
26115
26116 if test -z "$PKG_CONFIG"; then
26117 # Extract the first word of "pkg-config", so it can be a program name with args.
26118set dummy pkg-config; ac_word=$2
26119echo "$as_me:$LINENO: checking for $ac_word" >&5
26120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26121if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26122 echo $ECHO_N "(cached) $ECHO_C" >&6
26123else
26124 case $PKG_CONFIG in
26125 [\\/]* | ?:[\\/]*)
26126 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26127 ;;
26128 *)
26129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26130for as_dir in $PATH
26131do
26132 IFS=$as_save_IFS
26133 test -z "$as_dir" && as_dir=.
26134 for ac_exec_ext in '' $ac_executable_extensions; do
26135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26136 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26138 break 2
26139 fi
26140done
26141done
26142
26143 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26144 ;;
26145esac
26146fi
26147PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26148
26149if test -n "$PKG_CONFIG"; then
26150 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26151echo "${ECHO_T}$PKG_CONFIG" >&6
26152else
26153 echo "$as_me:$LINENO: result: no" >&5
26154echo "${ECHO_T}no" >&6
26155fi
26156
26157 fi
26158
26159 if test "$PKG_CONFIG" = "no" ; then
26160 echo "*** The pkg-config script could not be found. Make sure it is"
26161 echo "*** in your path, or set the PKG_CONFIG environment variable"
26162 echo "*** to the full path to pkg-config."
26163 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26164 else
26165 PKG_CONFIG_MIN_VERSION=0.9.0
26166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26167 echo "$as_me:$LINENO: checking for pangox" >&5
26168echo $ECHO_N "checking for pangox... $ECHO_C" >&6
26169
26170 if $PKG_CONFIG --exists "pangox" ; then
26171 echo "$as_me:$LINENO: result: yes" >&5
26172echo "${ECHO_T}yes" >&6
26173 succeeded=yes
26174
26175 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
26176echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
26177 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
26178 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
26179echo "${ECHO_T}$PANGOX_CFLAGS" >&6
26180
26181 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
26182echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
26183 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
26184 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
26185echo "${ECHO_T}$PANGOX_LIBS" >&6
26186 else
26187 PANGOX_CFLAGS=""
26188 PANGOX_LIBS=""
26189 ## If we have a custom action on failure, don't print errors, but
26190 ## do set a variable so people can do so.
26191 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
26192
26193 fi
26194
26195
26196
26197 else
26198 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26199 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26200 fi
26201 fi
26202
26203 if test $succeeded = yes; then
26204
26205 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
26206 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26207
26208 else
26209
26210 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26211echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26212 { (exit 1); exit 1; }; }
26213
26214
26215 fi
26216
26217
26218 succeeded=no
26219
26220 if test -z "$PKG_CONFIG"; then
26221 # Extract the first word of "pkg-config", so it can be a program name with args.
26222set dummy pkg-config; ac_word=$2
26223echo "$as_me:$LINENO: checking for $ac_word" >&5
26224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26225if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26226 echo $ECHO_N "(cached) $ECHO_C" >&6
26227else
26228 case $PKG_CONFIG in
26229 [\\/]* | ?:[\\/]*)
26230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26231 ;;
26232 *)
26233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26234for as_dir in $PATH
26235do
26236 IFS=$as_save_IFS
26237 test -z "$as_dir" && as_dir=.
26238 for ac_exec_ext in '' $ac_executable_extensions; do
26239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26242 break 2
26243 fi
26244done
26245done
26246
26247 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26248 ;;
26249esac
26250fi
26251PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26252
26253if test -n "$PKG_CONFIG"; then
26254 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26255echo "${ECHO_T}$PKG_CONFIG" >&6
26256else
26257 echo "$as_me:$LINENO: result: no" >&5
26258echo "${ECHO_T}no" >&6
26259fi
26260
26261 fi
26262
26263 if test "$PKG_CONFIG" = "no" ; then
26264 echo "*** The pkg-config script could not be found. Make sure it is"
26265 echo "*** in your path, or set the PKG_CONFIG environment variable"
26266 echo "*** to the full path to pkg-config."
26267 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26268 else
26269 PKG_CONFIG_MIN_VERSION=0.9.0
26270 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26271 echo "$as_me:$LINENO: checking for pangoft2" >&5
26272echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26273
26274 if $PKG_CONFIG --exists "pangoft2" ; then
26275 echo "$as_me:$LINENO: result: yes" >&5
26276echo "${ECHO_T}yes" >&6
26277 succeeded=yes
26278
26279 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26280echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26281 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26282 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26283echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26284
26285 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26286echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26287 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26288 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26289echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26290 else
26291 PANGOFT2_CFLAGS=""
26292 PANGOFT2_LIBS=""
26293 ## If we have a custom action on failure, don't print errors, but
26294 ## do set a variable so people can do so.
26295 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26296
26297 fi
26298
26299
26300
26301 else
26302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26304 fi
26305 fi
26306
26307 if test $succeeded = yes; then
26308
26309 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26310 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26311
26312 else
26313
26314 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26315echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26316 wxUSE_PRINTING_ARCHITECTURE="no"
26317
26318
26319 fi
26320
26321
26322 succeeded=no
26323
26324 if test -z "$PKG_CONFIG"; then
26325 # Extract the first word of "pkg-config", so it can be a program name with args.
26326set dummy pkg-config; ac_word=$2
26327echo "$as_me:$LINENO: checking for $ac_word" >&5
26328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26329if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26330 echo $ECHO_N "(cached) $ECHO_C" >&6
26331else
26332 case $PKG_CONFIG in
26333 [\\/]* | ?:[\\/]*)
26334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26335 ;;
26336 *)
26337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26338for as_dir in $PATH
26339do
26340 IFS=$as_save_IFS
26341 test -z "$as_dir" && as_dir=.
26342 for ac_exec_ext in '' $ac_executable_extensions; do
26343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26344 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26346 break 2
26347 fi
26348done
26349done
26350
26351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26352 ;;
26353esac
26354fi
26355PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26356
26357if test -n "$PKG_CONFIG"; then
26358 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26359echo "${ECHO_T}$PKG_CONFIG" >&6
26360else
26361 echo "$as_me:$LINENO: result: no" >&5
26362echo "${ECHO_T}no" >&6
26363fi
26364
26365 fi
26366
26367 if test "$PKG_CONFIG" = "no" ; then
26368 echo "*** The pkg-config script could not be found. Make sure it is"
26369 echo "*** in your path, or set the PKG_CONFIG environment variable"
26370 echo "*** to the full path to pkg-config."
26371 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26372 else
26373 PKG_CONFIG_MIN_VERSION=0.9.0
26374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26375 echo "$as_me:$LINENO: checking for pangoxft" >&5
26376echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26377
26378 if $PKG_CONFIG --exists "pangoxft" ; then
26379 echo "$as_me:$LINENO: result: yes" >&5
26380echo "${ECHO_T}yes" >&6
26381 succeeded=yes
26382
26383 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26384echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26385 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26386 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26387echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26388
26389 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26390echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26391 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26392 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26393echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26394 else
26395 PANGOXFT_CFLAGS=""
26396 PANGOXFT_LIBS=""
26397 ## If we have a custom action on failure, don't print errors, but
26398 ## do set a variable so people can do so.
26399 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26400
26401 fi
26402
26403
26404
26405 else
26406 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26407 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26408 fi
26409 fi
26410
26411 if test $succeeded = yes; then
26412
4ae1af05
MB
26413 cat >>confdefs.h <<\_ACEOF
26414#define HAVE_PANGO_XFT 1
26415_ACEOF
26416
a848cd7e
SC
26417 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26418 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26419
26420 else
26421
26422 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26423echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26424
26425
26426 fi
26427
304205f1
VS
26428 save_CFLAGS="$CFLAGS"
26429 save_LIBS="$LIBS"
26430 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26431 LIBS="$LIBS $PANGOX_LIBS"
26432
26433for ac_func in pango_font_family_is_monospace
26434do
26435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26436echo "$as_me:$LINENO: checking for $ac_func" >&5
26437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26438if eval "test \"\${$as_ac_var+set}\" = set"; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26440else
26441 cat >conftest.$ac_ext <<_ACEOF
26442/* confdefs.h. */
26443_ACEOF
26444cat confdefs.h >>conftest.$ac_ext
26445cat >>conftest.$ac_ext <<_ACEOF
26446/* end confdefs.h. */
26447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26449#define $ac_func innocuous_$ac_func
26450
26451/* System header to define __stub macros and hopefully few prototypes,
26452 which can conflict with char $ac_func (); below.
26453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26454 <limits.h> exists even on freestanding compilers. */
26455
26456#ifdef __STDC__
26457# include <limits.h>
26458#else
26459# include <assert.h>
26460#endif
26461
26462#undef $ac_func
26463
26464/* Override any gcc2 internal prototype to avoid an error. */
26465#ifdef __cplusplus
26466extern "C"
26467{
26468#endif
26469/* We use char because int might match the return type of a gcc2
26470 builtin and then its argument prototype would still apply. */
26471char $ac_func ();
26472/* The GNU C library defines this for functions which it implements
26473 to always fail with ENOSYS. Some functions are actually named
26474 something starting with __ and the normal name is an alias. */
26475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26476choke me
26477#else
26478char (*f) () = $ac_func;
26479#endif
26480#ifdef __cplusplus
26481}
26482#endif
26483
26484int
26485main ()
26486{
26487return f != $ac_func;
26488 ;
26489 return 0;
26490}
26491_ACEOF
26492rm -f conftest.$ac_objext conftest$ac_exeext
26493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26494 (eval $ac_link) 2>conftest.er1
26495 ac_status=$?
26496 grep -v '^ *+' conftest.er1 >conftest.err
26497 rm -f conftest.er1
26498 cat conftest.err >&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); } &&
89be85c2
VS
26501 { ac_try='test -z "$ac_c_werror_flag"
26502 || test ! -s conftest.err'
304205f1
VS
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26505 ac_status=$?
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; } &&
26508 { ac_try='test -s conftest$ac_exeext'
26509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510 (eval $ac_try) 2>&5
26511 ac_status=$?
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); }; }; then
26514 eval "$as_ac_var=yes"
26515else
26516 echo "$as_me: failed program was:" >&5
26517sed 's/^/| /' conftest.$ac_ext >&5
26518
26519eval "$as_ac_var=no"
26520fi
26521rm -f conftest.err conftest.$ac_objext \
26522 conftest$ac_exeext conftest.$ac_ext
26523fi
26524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26526if test `eval echo '${'$as_ac_var'}'` = yes; then
26527 cat >>confdefs.h <<_ACEOF
26528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26529_ACEOF
26530
26531fi
26532done
26533
26534 CFLAGS="$save_CFLAGS"
26535 LIBS="$save_LIBS"
a848cd7e
SC
26536 fi
26537
26538 wxUSE_UNIVERSAL="yes"
26539
26540 if test "$wxUSE_NANOX" = "yes"; then
26541 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26542 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"
26543 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26544 else
26545 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26546 fi
26547
a848cd7e
SC
26548 TOOLKIT=X11
26549 GUIDIST=X11_DIST
26550 fi
26551
26552 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26553 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26554echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26555
74b84332
VS
26556ac_find_includes=
26557for ac_dir in $SEARCH_INCLUDE /usr/include;
26558 do
26559 if test -f "$ac_dir/Xm/Xm.h"; then
26560 ac_find_includes=$ac_dir
26561 break
26562 fi
26563 done
a848cd7e 26564
74b84332
VS
26565 if test "$ac_find_includes" != "" ; then
26566 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26567echo "${ECHO_T}found in $ac_find_includes" >&6
26568
26569 if test "x$ac_find_includes" = "x/usr/include"; then
26570 ac_path_to_include=""
26571 else
26572 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26573 result=$?
26574 if test $result = 0; then
26575 ac_path_to_include=""
26576 else
26577 ac_path_to_include=" -I$ac_find_includes"
26578 fi
a848cd7e
SC
26579 fi
26580
74b84332
VS
26581 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26582 else
26583 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26584/* confdefs.h. */
26585_ACEOF
26586cat confdefs.h >>conftest.$ac_ext
26587cat >>conftest.$ac_ext <<_ACEOF
26588/* end confdefs.h. */
26589
74b84332
VS
26590 #include <Xm/Xm.h>
26591
a848cd7e
SC
26592int
26593main ()
26594{
26595
74b84332
VS
26596 int version;
26597 version = xmUseVersion;
26598
a848cd7e
SC
26599 ;
26600 return 0;
26601}
26602_ACEOF
74b84332
VS
26603rm -f conftest.$ac_objext
26604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26605 (eval $ac_compile) 2>conftest.er1
a848cd7e 26606 ac_status=$?
ac1cb8d3
VS
26607 grep -v '^ *+' conftest.er1 >conftest.err
26608 rm -f conftest.er1
26609 cat conftest.err >&5
a848cd7e
SC
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); } &&
89be85c2
VS
26612 { ac_try='test -z "$ac_c_werror_flag"
26613 || test ! -s conftest.err'
ac1cb8d3
VS
26614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); }; } &&
74b84332 26619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621 (eval $ac_try) 2>&5
26622 ac_status=$?
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; }; then
74b84332
VS
26625
26626 echo "$as_me:$LINENO: result: found in default search path" >&5
26627echo "${ECHO_T}found in default search path" >&6
26628 COMPILED_X_PROGRAM=1
26629
a848cd7e
SC
26630else
26631 echo "$as_me: failed program was:" >&5
26632sed 's/^/| /' conftest.$ac_ext >&5
26633
a848cd7e 26634
74b84332
VS
26635 echo "$as_me:$LINENO: result: no" >&5
26636echo "${ECHO_T}no" >&6
26637 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26638echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26639 { (exit 1); exit 1; }; }
a848cd7e 26640
a848cd7e 26641
a848cd7e 26642fi
74b84332
VS
26643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26644 fi
26645
26646 if test "$COMPILED_X_PROGRAM" = 0; then
26647 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26648echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26649
26650ac_find_libraries=
26651for ac_dir in $SEARCH_LIB /usr/lib;
26652 do
26653 for ac_extension in a so sl dylib; do
26654 if test -f "$ac_dir/libXm.$ac_extension"; then
26655 ac_find_libraries=$ac_dir
26656 break 2
a848cd7e 26657 fi
74b84332
VS
26658 done
26659 done
a848cd7e 26660
74b84332
VS
26661 if test "$ac_find_libraries" != "" ; then
26662 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26663echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26664
74b84332
VS
26665
26666 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26667 result=$?
26668 if test $result = 0; then
26669 ac_path_to_link=""
a848cd7e 26670 else
74b84332
VS
26671 ac_path_to_link=" -L$ac_find_libraries"
26672 fi
26673
26674 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26675 else
26676 save_CFLAGS=$CFLAGS
26677 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26678
26679 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26680/* confdefs.h. */
26681_ACEOF
26682cat confdefs.h >>conftest.$ac_ext
26683cat >>conftest.$ac_ext <<_ACEOF
26684/* end confdefs.h. */
26685
74b84332
VS
26686 #include <Xm/Xm.h>
26687
a848cd7e
SC
26688int
26689main ()
26690{
74b84332
VS
26691
26692 int version;
26693 version = xmUseVersion;
26694
a848cd7e
SC
26695 ;
26696 return 0;
26697}
26698_ACEOF
74b84332
VS
26699rm -f conftest.$ac_objext
26700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26701 (eval $ac_compile) 2>conftest.er1
a848cd7e 26702 ac_status=$?
ac1cb8d3
VS
26703 grep -v '^ *+' conftest.er1 >conftest.err
26704 rm -f conftest.er1
26705 cat conftest.err >&5
a848cd7e
SC
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); } &&
89be85c2
VS
26708 { ac_try='test -z "$ac_c_werror_flag"
26709 || 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); }; } &&
74b84332 26715 { ac_try='test -s conftest.$ac_objext'
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
74b84332
VS
26721
26722 echo "$as_me:$LINENO: result: found in default search path" >&5
26723echo "${ECHO_T}found in default search path" >&6
26724 COMPILED_X_PROGRAM=1
26725
a848cd7e
SC
26726else
26727 echo "$as_me: failed program was:" >&5
26728sed 's/^/| /' conftest.$ac_ext >&5
26729
74b84332
VS
26730
26731 echo "$as_me:$LINENO: result: no" >&5
26732echo "${ECHO_T}no" >&6
26733 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26734echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26735 { (exit 1); exit 1; }; }
26736
26737
26738fi
26739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26740
26741 CFLAGS=$save_CFLAGS
26742 fi
26743 fi
26744
26745 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26746echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26747 libp_link=""
26748 libsm_ice_link=""
26749 libs_found=0
26750 for libp in "" " -lXp"; do
26751 if test "$libs_found" = "0"; then
26752 for libsm_ice in "" " -lSM -lICE"; do
26753 if test "$libs_found" = "0"; then
26754 save_LIBS="$LIBS"
26755 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26756 save_CFLAGS=$CFLAGS
26757 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26758
26759 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26760/* confdefs.h. */
26761_ACEOF
26762cat confdefs.h >>conftest.$ac_ext
26763cat >>conftest.$ac_ext <<_ACEOF
26764/* end confdefs.h. */
26765
74b84332
VS
26766 #include <Xm/Xm.h>
26767 #include <Xm/List.h>
26768
a848cd7e
SC
26769int
26770main ()
26771{
74b84332
VS
26772
26773 XmString string = NULL;
26774 Widget w = NULL;
26775 int position = 0;
26776 XmListAddItem(w, string, position);
26777
a848cd7e
SC
26778 ;
26779 return 0;
26780}
26781_ACEOF
26782rm -f conftest.$ac_objext conftest$ac_exeext
26783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26784 (eval $ac_link) 2>conftest.er1
a848cd7e 26785 ac_status=$?
ac1cb8d3
VS
26786 grep -v '^ *+' conftest.er1 >conftest.err
26787 rm -f conftest.er1
26788 cat conftest.err >&5
a848cd7e
SC
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } &&
89be85c2
VS
26791 { ac_try='test -z "$ac_c_werror_flag"
26792 || test ! -s conftest.err'
ac1cb8d3
VS
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; } &&
26798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; }; then
26804
26805 libp_link="$libp"
26806 libsm_ice_link="$libsm_ice"
26807 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26808echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26809 libs_found=1
26810
26811else
26812 echo "$as_me: failed program was:" >&5
26813sed 's/^/| /' conftest.$ac_ext >&5
26814
26815
26816
26817fi
ac1cb8d3
VS
26818rm -f conftest.err conftest.$ac_objext \
26819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26820
26821 LIBS="$save_LIBS"
26822 CFLAGS=$save_CFLAGS
26823 fi
26824 done
26825 fi
26826 done
26827
26828 if test "$libs_found" = "0"; then
26829 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26830echo "${ECHO_T}can't find the right libraries" >&6
26831 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26832echo "$as_me: error: can't link a simple motif program" >&2;}
26833 { (exit 1); exit 1; }; }
26834 fi
26835
26836 save_CFLAGS=$CFLAGS
26837 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26838 echo "$as_me:$LINENO: checking for Motif 2" >&5
26839echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26840 cat >conftest.$ac_ext <<_ACEOF
26841/* confdefs.h. */
26842_ACEOF
26843cat confdefs.h >>conftest.$ac_ext
26844cat >>conftest.$ac_ext <<_ACEOF
26845/* end confdefs.h. */
26846
26847 #include <Xm/Xm.h>
26848
26849int
26850main ()
26851{
26852
26853 #if XmVersion < 2000
26854 #error "Not Motif 2"
26855 #endif
26856
26857 ;
26858 return 0;
26859}
26860_ACEOF
26861rm -f conftest.$ac_objext
26862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26863 (eval $ac_compile) 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); } &&
89be85c2
VS
26870 { ac_try='test -z "$ac_c_werror_flag"
26871 || test ! -s conftest.err'
ac1cb8d3
VS
26872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873 (eval $ac_try) 2>&5
26874 ac_status=$?
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); }; } &&
26877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; }; then
26883
26884 cat >>confdefs.h <<\_ACEOF
26885#define __WXMOTIF20__ 1
26886_ACEOF
26887
26888 echo "$as_me:$LINENO: result: found" >&5
26889echo "${ECHO_T}found" >&6
26890
26891else
26892 echo "$as_me: failed program was:" >&5
26893sed 's/^/| /' conftest.$ac_ext >&5
26894
26895
26896 cat >>confdefs.h <<\_ACEOF
26897#define __WXMOTIF20__ 0
26898_ACEOF
26899
26900 echo "$as_me:$LINENO: result: not found" >&5
26901echo "${ECHO_T}not found" >&6
26902
26903fi
ac1cb8d3 26904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26905 CFLAGS=$save_CFLAGS
26906
26907 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26908 TOOLKIT=MOTIF
26909 GUIDIST=MOTIF_DIST
26910 fi
26911
74b84332 26912 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26913 if test "$wxUSE_LIBXPM" = "sys"; then
26914 echo "$as_me:$LINENO: checking for Xpm library" >&5
26915echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26916
26917ac_find_libraries=
26918for ac_dir in $SEARCH_LIB /usr/lib;
26919 do
26920 for ac_extension in a so sl dylib; do
26921 if test -f "$ac_dir/libXpm.$ac_extension"; then
26922 ac_find_libraries=$ac_dir
26923 break 2
26924 fi
26925 done
26926 done
26927
26928 if test "$ac_find_libraries" != "" ; then
26929
26930 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26931 result=$?
26932 if test $result = 0; then
26933 ac_path_to_link=""
26934 else
26935 ac_path_to_link=" -L$ac_find_libraries"
26936 fi
26937
26938 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26939 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26940echo "${ECHO_T}found at $ac_find_libraries" >&6
26941
26942 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26943echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26944if test "${wx_cv_x11_xpm_h+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26946else
26947
26948 save_CFLAGS=$CFLAGS
26949 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26950
26951 cat >conftest.$ac_ext <<_ACEOF
26952/* confdefs.h. */
26953_ACEOF
26954cat confdefs.h >>conftest.$ac_ext
26955cat >>conftest.$ac_ext <<_ACEOF
26956/* end confdefs.h. */
26957
26958 #include <X11/xpm.h>
26959
26960int
26961main ()
26962{
26963
26964 int version;
26965 version = XpmLibraryVersion();
26966
26967 ;
26968 return 0;
26969}
26970_ACEOF
26971rm -f conftest.$ac_objext
26972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26973 (eval $ac_compile) 2>conftest.er1
a848cd7e 26974 ac_status=$?
ac1cb8d3
VS
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
a848cd7e
SC
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
89be85c2
VS
26980 { ac_try='test -z "$ac_c_werror_flag"
26981 || test ! -s conftest.err'
ac1cb8d3
VS
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; } &&
26987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 wx_cv_x11_xpm_h=yes
26994else
26995 echo "$as_me: failed program was:" >&5
26996sed 's/^/| /' conftest.$ac_ext >&5
26997
26998wx_cv_x11_xpm_h=no
26999
27000fi
ac1cb8d3 27001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27002
27003 CFLAGS=$save_CFLAGS
27004
27005
27006fi
27007echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27008echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27009
27010 if test $wx_cv_x11_xpm_h = "yes"; then
27011 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27012 cat >>confdefs.h <<\_ACEOF
27013#define wxHAVE_LIB_XPM 1
27014_ACEOF
27015
27016 else
27017 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27018echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27019 fi
27020 fi
27021
27022 fi
27023
27024 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27025echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27026if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029 ac_check_lib_save_LIBS=$LIBS
27030LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27031cat >conftest.$ac_ext <<_ACEOF
27032/* confdefs.h. */
27033_ACEOF
27034cat confdefs.h >>conftest.$ac_ext
27035cat >>conftest.$ac_ext <<_ACEOF
27036/* end confdefs.h. */
27037
27038/* Override any gcc2 internal prototype to avoid an error. */
27039#ifdef __cplusplus
27040extern "C"
27041#endif
27042/* We use char because int might match the return type of a gcc2
27043 builtin and then its argument prototype would still apply. */
27044char XShapeQueryExtension ();
27045int
27046main ()
27047{
27048XShapeQueryExtension ();
27049 ;
27050 return 0;
27051}
27052_ACEOF
27053rm -f conftest.$ac_objext conftest$ac_exeext
27054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27055 (eval $ac_link) 2>conftest.er1
a848cd7e 27056 ac_status=$?
ac1cb8d3
VS
27057 grep -v '^ *+' conftest.er1 >conftest.err
27058 rm -f conftest.er1
27059 cat conftest.err >&5
a848cd7e
SC
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } &&
89be85c2
VS
27062 { ac_try='test -z "$ac_c_werror_flag"
27063 || test ! -s conftest.err'
ac1cb8d3
VS
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; } &&
27069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27072 ac_status=$?
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
27075 ac_cv_lib_Xext_XShapeQueryExtension=yes
27076else
27077 echo "$as_me: failed program was:" >&5
27078sed 's/^/| /' conftest.$ac_ext >&5
27079
27080ac_cv_lib_Xext_XShapeQueryExtension=no
27081fi
ac1cb8d3
VS
27082rm -f conftest.err conftest.$ac_objext \
27083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27084LIBS=$ac_check_lib_save_LIBS
27085fi
27086echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27087echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27088if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27089
27090 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27091 wxHAVE_XEXT_LIB=1
27092
27093fi
27094
27095
27096 if test "$wxHAVE_XEXT_LIB" = 1; then
27097 save_CFLAGS="$CFLAGS"
27098 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27099
27100 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27101echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27102 cat >conftest.$ac_ext <<_ACEOF
27103/* confdefs.h. */
27104_ACEOF
27105cat confdefs.h >>conftest.$ac_ext
27106cat >>conftest.$ac_ext <<_ACEOF
27107/* end confdefs.h. */
27108
27109 #include <X11/Xlib.h>
27110 #include <X11/extensions/shape.h>
27111
27112int
27113main ()
27114{
27115
27116 int dummy1, dummy2;
27117 XShapeQueryExtension((Display*)NULL,
27118 (int*)NULL, (int*)NULL);
27119
27120 ;
27121 return 0;
27122}
27123_ACEOF
27124rm -f conftest.$ac_objext
27125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27126 (eval $ac_compile) 2>conftest.er1
a848cd7e 27127 ac_status=$?
ac1cb8d3
VS
27128 grep -v '^ *+' conftest.er1 >conftest.err
27129 rm -f conftest.er1
27130 cat conftest.err >&5
a848cd7e
SC
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } &&
89be85c2
VS
27133 { ac_try='test -z "$ac_c_werror_flag"
27134 || test ! -s conftest.err'
ac1cb8d3
VS
27135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27136 (eval $ac_try) 2>&5
27137 ac_status=$?
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; } &&
27140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; }; then
27146
27147 cat >>confdefs.h <<\_ACEOF
27148#define HAVE_XSHAPE 1
27149_ACEOF
27150
27151 echo "$as_me:$LINENO: result: found" >&5
27152echo "${ECHO_T}found" >&6
27153
27154else
27155 echo "$as_me: failed program was:" >&5
27156sed 's/^/| /' conftest.$ac_ext >&5
27157
27158
27159 echo "$as_me:$LINENO: result: not found" >&5
27160echo "${ECHO_T}not found" >&6
27161
27162fi
ac1cb8d3 27163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27164 CFLAGS="$save_CFLAGS"
27165
27166 fi
27167 fi
27168
27169 if test "$wxUSE_MAC" = 1; then
27170 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27171echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27172 if test "$GCC" = yes; then
27173 echo "$as_me:$LINENO: result: gcc" >&5
27174echo "${ECHO_T}gcc" >&6
27175 CPPFLAGS_PASCAL="-fpascal-strings"
27176 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27177 echo "$as_me:$LINENO: result: xlc" >&5
27178echo "${ECHO_T}xlc" >&6
27179 CPPFLAGS_PASCAL="-qmacpstr"
27180 else
27181 echo "$as_me:$LINENO: result: none" >&5
27182echo "${ECHO_T}none" >&6
27183 fi
27184
1e9e8aba
DE
27185 if test "x$wxUSE_UNIX" = "xyes"; then
27186 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27187 else
27188 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
27189 fi
a848cd7e 27190
a848cd7e
SC
27191 TOOLKIT=MAC
27192 GUIDIST=MACX_DIST
dd21ced8 27193 WXBASEPORT="_carbon"
a848cd7e
SC
27194 fi
27195
27196 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
27197 TOOLKIT=COCOA
27198 GUIDIST=COCOA_DIST
27199 fi
27200
27201 if test "$wxUSE_PM" = 1; then
27202 TOOLKIT=PM
de59c161
RD
27203 GUIDIST=PM_DIST
27204 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27205echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27206if test "${wx_cv_spbcdata+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27208else
27209
27210 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27211/* confdefs.h. */
27212_ACEOF
27213cat confdefs.h >>conftest.$ac_ext
27214cat >>conftest.$ac_ext <<_ACEOF
27215/* end confdefs.h. */
27216
27217 #define INCL_PM
27218 #include <os2.h>
27219
27220int
27221main ()
27222{
27223
27224 SPBCDATA test;
27225
27226 ;
27227 return 0;
27228}
27229_ACEOF
27230rm -f conftest.$ac_objext
27231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27232 (eval $ac_compile) 2>conftest.er1
de59c161 27233 ac_status=$?
ac1cb8d3
VS
27234 grep -v '^ *+' conftest.er1 >conftest.err
27235 rm -f conftest.er1
27236 cat conftest.err >&5
de59c161
RD
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); } &&
89be85c2
VS
27239 { ac_try='test -z "$ac_c_werror_flag"
27240 || test ! -s conftest.err'
ac1cb8d3
VS
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; } &&
27246 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248 (eval $ac_try) 2>&5
27249 ac_status=$?
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); }; }; then
27252 wx_cv_spbcdata=yes
27253else
27254 echo "$as_me: failed program was:" >&5
27255sed 's/^/| /' conftest.$ac_ext >&5
27256
27257wx_cv_spbcdata=no
27258
27259fi
ac1cb8d3 27260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27261
27262
27263fi
27264echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27265echo "${ECHO_T}$wx_cv_spbcdata" >&6
27266
27267 if test $wx_cv_spbcdata = "yes"; then
27268 cat >>confdefs.h <<\_ACEOF
27269#define HAVE_SPBCDATA 1
27270_ACEOF
27271
27272 fi
a848cd7e
SC
27273 fi
27274
27275 if test "$TOOLKIT" = "PM" ; then
27276 TOOLKIT_DIR="os2"
27277 else
27278 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27279 fi
27280
a848cd7e 27281 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27282 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27283 WIDGET_SET=univ
a848cd7e
SC
27284 fi
27285
27286 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27287 DISTDIR="wx\$(TOOLKIT)"
27288else
27289 USE_GUI=0
27290
27291 TOOLKIT_DIR="base"
27292
27293 if test "$USE_WIN32" = 1 ; then
a848cd7e 27294 TOOLKIT="MSW"
a848cd7e
SC
27295 fi
27296
a848cd7e
SC
27297 GUIDIST="BASE_DIST"
27298 DISTDIR="wxBase"
27299fi
27300
27301
27302
27303
27304IODBC_C_SRC=""
27305
27306
27307if test "$TOOLKIT" != "MSW" ; then
27308
27309 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27310
27311 if test "${ac_cv_header_sql_h+set}" = set; then
27312 echo "$as_me:$LINENO: checking for sql.h" >&5
27313echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27314if test "${ac_cv_header_sql_h+set}" = set; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27316fi
27317echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27318echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27319else
27320 # Is the header compilable?
27321echo "$as_me:$LINENO: checking sql.h usability" >&5
27322echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27323cat >conftest.$ac_ext <<_ACEOF
27324/* confdefs.h. */
27325_ACEOF
27326cat confdefs.h >>conftest.$ac_ext
27327cat >>conftest.$ac_ext <<_ACEOF
27328/* end confdefs.h. */
27329$ac_includes_default
27330#include <sql.h>
27331_ACEOF
27332rm -f conftest.$ac_objext
27333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27334 (eval $ac_compile) 2>conftest.er1
a848cd7e 27335 ac_status=$?
ac1cb8d3
VS
27336 grep -v '^ *+' conftest.er1 >conftest.err
27337 rm -f conftest.er1
27338 cat conftest.err >&5
a848cd7e
SC
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } &&
89be85c2
VS
27341 { ac_try='test -z "$ac_c_werror_flag"
27342 || test ! -s conftest.err'
ac1cb8d3
VS
27343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344 (eval $ac_try) 2>&5
27345 ac_status=$?
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); }; } &&
27348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350 (eval $ac_try) 2>&5
27351 ac_status=$?
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
27354 ac_header_compiler=yes
27355else
27356 echo "$as_me: failed program was:" >&5
27357sed 's/^/| /' conftest.$ac_ext >&5
27358
27359ac_header_compiler=no
27360fi
ac1cb8d3 27361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27362echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27363echo "${ECHO_T}$ac_header_compiler" >&6
27364
27365# Is the header present?
27366echo "$as_me:$LINENO: checking sql.h presence" >&5
27367echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27368cat >conftest.$ac_ext <<_ACEOF
27369/* confdefs.h. */
27370_ACEOF
27371cat confdefs.h >>conftest.$ac_ext
27372cat >>conftest.$ac_ext <<_ACEOF
27373/* end confdefs.h. */
27374#include <sql.h>
27375_ACEOF
27376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27378 ac_status=$?
27379 grep -v '^ *+' conftest.er1 >conftest.err
27380 rm -f conftest.er1
27381 cat conftest.err >&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); } >/dev/null; then
27384 if test -s conftest.err; then
27385 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27387 else
27388 ac_cpp_err=
27389 fi
27390else
27391 ac_cpp_err=yes
27392fi
27393if test -z "$ac_cpp_err"; then
27394 ac_header_preproc=yes
27395else
27396 echo "$as_me: failed program was:" >&5
27397sed 's/^/| /' conftest.$ac_ext >&5
27398
27399 ac_header_preproc=no
27400fi
27401rm -f conftest.err conftest.$ac_ext
27402echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27403echo "${ECHO_T}$ac_header_preproc" >&6
27404
27405# So? What about this header?
ac1cb8d3
VS
27406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27407 yes:no: )
a848cd7e
SC
27408 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27409echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27410 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27411echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27412 ac_header_preproc=yes
a848cd7e 27413 ;;
ac1cb8d3 27414 no:yes:* )
a848cd7e
SC
27415 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27416echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27417 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27418echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27419 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27420echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27421 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27422echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27423 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27424echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27425 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27426echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27427 (
27428 cat <<\_ASBOX
ac1cb8d3
VS
27429## ----------------------------------------- ##
27430## Report this to wx-dev@lists.wxwidgets.org ##
27431## ----------------------------------------- ##
a848cd7e
SC
27432_ASBOX
27433 ) |
27434 sed "s/^/$as_me: WARNING: /" >&2
27435 ;;
27436esac
27437echo "$as_me:$LINENO: checking for sql.h" >&5
27438echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27439if test "${ac_cv_header_sql_h+set}" = set; then
27440 echo $ECHO_N "(cached) $ECHO_C" >&6
27441else
27442 ac_cv_header_sql_h=$ac_header_preproc
27443fi
27444echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27445echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27446
27447fi
27448if test $ac_cv_header_sql_h = yes; then
27449 found_sql_h=1
27450fi
27451
27452
27453 if test "x$found_sql_h" = "x1" ; then
27454 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27455echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27456if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27457 echo $ECHO_N "(cached) $ECHO_C" >&6
27458else
27459 ac_check_lib_save_LIBS=$LIBS
27460LIBS="-liodbc $LIBS"
27461cat >conftest.$ac_ext <<_ACEOF
27462/* confdefs.h. */
27463_ACEOF
27464cat confdefs.h >>conftest.$ac_ext
27465cat >>conftest.$ac_ext <<_ACEOF
27466/* end confdefs.h. */
27467
27468/* Override any gcc2 internal prototype to avoid an error. */
27469#ifdef __cplusplus
27470extern "C"
27471#endif
27472/* We use char because int might match the return type of a gcc2
27473 builtin and then its argument prototype would still apply. */
27474char SQLAllocEnv ();
27475int
27476main ()
27477{
27478SQLAllocEnv ();
27479 ;
27480 return 0;
27481}
27482_ACEOF
27483rm -f conftest.$ac_objext conftest$ac_exeext
27484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27485 (eval $ac_link) 2>conftest.er1
a848cd7e 27486 ac_status=$?
ac1cb8d3
VS
27487 grep -v '^ *+' conftest.er1 >conftest.err
27488 rm -f conftest.er1
27489 cat conftest.err >&5
a848cd7e
SC
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } &&
89be85c2
VS
27492 { ac_try='test -z "$ac_c_werror_flag"
27493 || test ! -s conftest.err'
ac1cb8d3
VS
27494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495 (eval $ac_try) 2>&5
27496 ac_status=$?
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 ac_cv_lib_iodbc_SQLAllocEnv=yes
27506else
27507 echo "$as_me: failed program was:" >&5
27508sed 's/^/| /' conftest.$ac_ext >&5
27509
27510ac_cv_lib_iodbc_SQLAllocEnv=no
27511fi
ac1cb8d3
VS
27512rm -f conftest.err conftest.$ac_objext \
27513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27514LIBS=$ac_check_lib_save_LIBS
27515fi
27516echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27517echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27518if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27519 ODBC_LINK=" -liodbc"
27520else
27521
27522 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27523echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27524if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27525 echo $ECHO_N "(cached) $ECHO_C" >&6
27526else
27527 ac_check_lib_save_LIBS=$LIBS
27528LIBS="-lunixodbc $LIBS"
27529cat >conftest.$ac_ext <<_ACEOF
27530/* confdefs.h. */
27531_ACEOF
27532cat confdefs.h >>conftest.$ac_ext
27533cat >>conftest.$ac_ext <<_ACEOF
27534/* end confdefs.h. */
27535
27536/* Override any gcc2 internal prototype to avoid an error. */
27537#ifdef __cplusplus
27538extern "C"
27539#endif
27540/* We use char because int might match the return type of a gcc2
27541 builtin and then its argument prototype would still apply. */
27542char SQLAllocEnv ();
27543int
27544main ()
27545{
27546SQLAllocEnv ();
27547 ;
27548 return 0;
27549}
27550_ACEOF
27551rm -f conftest.$ac_objext conftest$ac_exeext
27552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27553 (eval $ac_link) 2>conftest.er1
a848cd7e 27554 ac_status=$?
ac1cb8d3
VS
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
a848cd7e
SC
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
89be85c2
VS
27560 { ac_try='test -z "$ac_c_werror_flag"
27561 || test ! -s conftest.err'
ac1cb8d3
VS
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27564 ac_status=$?
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27574else
27575 echo "$as_me: failed program was:" >&5
27576sed 's/^/| /' conftest.$ac_ext >&5
27577
27578ac_cv_lib_unixodbc_SQLAllocEnv=no
27579fi
ac1cb8d3
VS
27580rm -f conftest.err conftest.$ac_objext \
27581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27582LIBS=$ac_check_lib_save_LIBS
27583fi
27584echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27585echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27586if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27587 ODBC_LINK=" -lunixodbc"
27588else
27589
27590 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27591echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27592if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
27594else
27595 ac_check_lib_save_LIBS=$LIBS
27596LIBS="-lodbc $LIBS"
27597cat >conftest.$ac_ext <<_ACEOF
27598/* confdefs.h. */
27599_ACEOF
27600cat confdefs.h >>conftest.$ac_ext
27601cat >>conftest.$ac_ext <<_ACEOF
27602/* end confdefs.h. */
27603
27604/* Override any gcc2 internal prototype to avoid an error. */
27605#ifdef __cplusplus
27606extern "C"
27607#endif
27608/* We use char because int might match the return type of a gcc2
27609 builtin and then its argument prototype would still apply. */
27610char SQLAllocEnv ();
27611int
27612main ()
27613{
27614SQLAllocEnv ();
27615 ;
27616 return 0;
27617}
27618_ACEOF
27619rm -f conftest.$ac_objext conftest$ac_exeext
27620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27621 (eval $ac_link) 2>conftest.er1
a848cd7e 27622 ac_status=$?
ac1cb8d3
VS
27623 grep -v '^ *+' conftest.er1 >conftest.err
27624 rm -f conftest.er1
27625 cat conftest.err >&5
a848cd7e
SC
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } &&
89be85c2
VS
27628 { ac_try='test -z "$ac_c_werror_flag"
27629 || test ! -s conftest.err'
ac1cb8d3
VS
27630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; } &&
27635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27638 ac_status=$?
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; }; then
27641 ac_cv_lib_odbc_SQLAllocEnv=yes
27642else
27643 echo "$as_me: failed program was:" >&5
27644sed 's/^/| /' conftest.$ac_ext >&5
27645
27646ac_cv_lib_odbc_SQLAllocEnv=no
27647fi
ac1cb8d3
VS
27648rm -f conftest.err conftest.$ac_objext \
27649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27650LIBS=$ac_check_lib_save_LIBS
27651fi
27652echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27653echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27654if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27655 ODBC_LINK=" -lodbc"
27656fi
27657
27658
27659fi
27660
27661
27662fi
27663
27664 fi
27665 if test "x$ODBC_LINK" = "x" ; then
27666 if test "$wxUSE_ODBC" = "sys" ; then
27667 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27668echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27669 { (exit 1); exit 1; }; }
27670 else
27671 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27672echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27673 wxUSE_ODBC=builtin
27674 fi
27675 else
27676 wxUSE_ODBC=sys
27677 fi
27678 fi
27679 if test "$wxUSE_ODBC" != "no" ; then
27680 cat >>confdefs.h <<\_ACEOF
27681#define wxUSE_ODBC 1
27682_ACEOF
27683
27684 if test "$wxUSE_ODBC" = "builtin" ; then
27685 cat >>confdefs.h <<\_ACEOF
27686#define wxUSE_BUILTIN_IODBC 1
27687_ACEOF
27688
27689 fi
27690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27691
27692 WXODBCFLAG="-D_IODBC_"
27693 fi
27694fi
27695
a848cd7e 27696
01cb68df 27697
a848cd7e 27698if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27699 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27700 echo "$as_me:$LINENO: checking for Xinerama" >&5
27701echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27702
27703ac_find_libraries=
27704for ac_dir in $SEARCH_LIB /usr/lib;
27705 do
27706 for ac_extension in a so sl dylib; do
27707 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27708 ac_find_libraries=$ac_dir
27709 break 2
27710 fi
27711 done
27712 done
27713
27714 if test "$ac_find_libraries" != "" ; then
27715
27716 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27717 result=$?
27718 if test $result = 0; then
27719 ac_path_to_link=""
27720 else
27721 ac_path_to_link=" -L$ac_find_libraries"
27722 fi
27723
27724 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27725 LDFLAGS="$LDFLAGS $ac_path_to_link"
27726 fi
27727 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27728 echo "$as_me:$LINENO: result: yes" >&5
27729echo "${ECHO_T}yes" >&6
27730
27731 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27732echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27733
27734ac_find_libraries=
27735for ac_dir in $SEARCH_LIB /usr/lib;
27736 do
27737 for ac_extension in a so sl dylib; do
27738 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27739 ac_find_libraries=$ac_dir
27740 break 2
27741 fi
27742 done
27743 done
27744
27745 if test "$ac_find_libraries" != "" ; then
27746 echo "$as_me:$LINENO: result: yes" >&5
27747echo "${ECHO_T}yes" >&6
27748
27749for ac_header in X11/extensions/xf86vmode.h
27750do
27751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27752echo "$as_me:$LINENO: checking for $ac_header" >&5
27753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27754if eval "test \"\${$as_ac_Header+set}\" = set"; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27756else
27757 cat >conftest.$ac_ext <<_ACEOF
27758/* confdefs.h. */
27759_ACEOF
27760cat confdefs.h >>conftest.$ac_ext
27761cat >>conftest.$ac_ext <<_ACEOF
27762/* end confdefs.h. */
27763
27764 #if HAVE_X11_XLIB_H
27765 #include <X11/Xlib.h>
27766 #endif
27767
27768
27769#include <$ac_header>
27770_ACEOF
27771rm -f conftest.$ac_objext
27772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27773 (eval $ac_compile) 2>conftest.er1
a848cd7e 27774 ac_status=$?
ac1cb8d3
VS
27775 grep -v '^ *+' conftest.er1 >conftest.err
27776 rm -f conftest.er1
27777 cat conftest.err >&5
a848cd7e
SC
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
89be85c2
VS
27780 { ac_try='test -z "$ac_c_werror_flag"
27781 || test ! -s conftest.err'
ac1cb8d3
VS
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 eval "$as_ac_Header=yes"
27794else
27795 echo "$as_me: failed program was:" >&5
27796sed 's/^/| /' conftest.$ac_ext >&5
27797
27798eval "$as_ac_Header=no"
27799fi
ac1cb8d3 27800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27801fi
27802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27804if test `eval echo '${'$as_ac_Header'}'` = yes; then
27805 cat >>confdefs.h <<_ACEOF
27806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27807_ACEOF
27808
27809 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27810
27811fi
27812
27813done
27814
27815 else
27816 echo "$as_me:$LINENO: result: no" >&5
27817echo "${ECHO_T}no" >&6
27818 fi
27819
27820 else
27821 echo "$as_me:$LINENO: result: no" >&5
27822echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27823 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27824echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27825 wxUSE_DISPLAY="no"
27826 fi
01cb68df
RG
27827 elif test "$wxUSE_MSW" = 1; then
27828
27829
27830for ac_header in multimon.h ddraw.h
27831do
27832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27833echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27835if eval "test \"\${$as_ac_Header+set}\" = set"; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27837else
5294a27e 27838 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27839/* confdefs.h. */
27840_ACEOF
27841cat confdefs.h >>conftest.$ac_ext
27842cat >>conftest.$ac_ext <<_ACEOF
27843/* end confdefs.h. */
5294a27e
VZ
27844#include <windows.h>
27845
01cb68df
RG
27846#include <$ac_header>
27847_ACEOF
27848rm -f conftest.$ac_objext
27849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27850 (eval $ac_compile) 2>conftest.er1
01cb68df 27851 ac_status=$?
ac1cb8d3
VS
27852 grep -v '^ *+' conftest.er1 >conftest.err
27853 rm -f conftest.er1
27854 cat conftest.err >&5
01cb68df
RG
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } &&
89be85c2
VS
27857 { ac_try='test -z "$ac_c_werror_flag"
27858 || test ! -s conftest.err'
ac1cb8d3
VS
27859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860 (eval $ac_try) 2>&5
27861 ac_status=$?
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; } &&
27864 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27866 (eval $ac_try) 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; }; then
5294a27e 27870 eval "$as_ac_Header=yes"
01cb68df
RG
27871else
27872 echo "$as_me: failed program was:" >&5
27873sed 's/^/| /' conftest.$ac_ext >&5
27874
5294a27e 27875eval "$as_ac_Header=no"
01cb68df 27876fi
ac1cb8d3 27877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27878fi
27879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27881if test `eval echo '${'$as_ac_Header'}'` = yes; then
27882 cat >>confdefs.h <<_ACEOF
27883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27884_ACEOF
27885
27886else
27887
5294a27e
VZ
27888 wxUSE_DISPLAY="no"
27889 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27890echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27891
27892fi
27893
27894done
27895
a848cd7e
SC
27896 fi
27897fi
27898
27899
27900USE_OPENGL=0
27901if test "$wxUSE_OPENGL" = "yes"; then
27902 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27903 OPENGL_LIBS="-framework OpenGL -framework AGL"
27904 elif test "$wxUSE_MSW" = 1; then
27905 OPENGL_LIBS="-lopengl32 -lglu32"
27906 else
27907
27908
27909ac_find_includes=
27910for ac_dir in $SEARCH_INCLUDE /usr/include;
27911 do
27912 if test -f "$ac_dir/GL/gl.h"; then
27913 ac_find_includes=$ac_dir
27914 break
27915 fi
27916 done
27917
27918 if test "$ac_find_includes" != "" ; then
27919 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27920echo "${ECHO_T}found in $ac_find_includes" >&6
27921
27922 if test "x$ac_find_includes" = "x/usr/include"; then
27923 ac_path_to_include=""
27924 else
27925 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27926 result=$?
27927 if test $result = 0; then
27928 ac_path_to_include=""
27929 else
27930 ac_path_to_include=" -I$ac_find_includes"
27931 fi
27932 fi
27933
27934 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27935 fi
27936
27937 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27938 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27939echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27940if test "${ac_cv_header_GL_gl_h+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27942fi
27943echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27944echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27945else
27946 # Is the header compilable?
27947echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27948echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27949cat >conftest.$ac_ext <<_ACEOF
27950/* confdefs.h. */
27951_ACEOF
27952cat confdefs.h >>conftest.$ac_ext
27953cat >>conftest.$ac_ext <<_ACEOF
27954/* end confdefs.h. */
27955$ac_includes_default
27956#include <GL/gl.h>
27957_ACEOF
27958rm -f conftest.$ac_objext
27959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27960 (eval $ac_compile) 2>conftest.er1
a848cd7e 27961 ac_status=$?
ac1cb8d3
VS
27962 grep -v '^ *+' conftest.er1 >conftest.err
27963 rm -f conftest.er1
27964 cat conftest.err >&5
a848cd7e
SC
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } &&
89be85c2
VS
27967 { ac_try='test -z "$ac_c_werror_flag"
27968 || test ! -s conftest.err'
ac1cb8d3
VS
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; } &&
27974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 ac_header_compiler=yes
27981else
27982 echo "$as_me: failed program was:" >&5
27983sed 's/^/| /' conftest.$ac_ext >&5
27984
27985ac_header_compiler=no
27986fi
ac1cb8d3 27987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27989echo "${ECHO_T}$ac_header_compiler" >&6
27990
27991# Is the header present?
27992echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27993echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27994cat >conftest.$ac_ext <<_ACEOF
27995/* confdefs.h. */
27996_ACEOF
27997cat confdefs.h >>conftest.$ac_ext
27998cat >>conftest.$ac_ext <<_ACEOF
27999/* end confdefs.h. */
28000#include <GL/gl.h>
28001_ACEOF
28002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28004 ac_status=$?
28005 grep -v '^ *+' conftest.er1 >conftest.err
28006 rm -f conftest.er1
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } >/dev/null; then
28010 if test -s conftest.err; then
28011 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28013 else
28014 ac_cpp_err=
28015 fi
28016else
28017 ac_cpp_err=yes
28018fi
28019if test -z "$ac_cpp_err"; then
28020 ac_header_preproc=yes
28021else
28022 echo "$as_me: failed program was:" >&5
28023sed 's/^/| /' conftest.$ac_ext >&5
28024
28025 ac_header_preproc=no
28026fi
28027rm -f conftest.err conftest.$ac_ext
28028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28029echo "${ECHO_T}$ac_header_preproc" >&6
28030
28031# So? What about this header?
ac1cb8d3
VS
28032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28033 yes:no: )
a848cd7e
SC
28034 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28035echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28036 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28037echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28038 ac_header_preproc=yes
a848cd7e 28039 ;;
ac1cb8d3 28040 no:yes:* )
a848cd7e
SC
28041 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28042echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28043 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28044echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28045 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28046echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28047 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28048echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28049 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28050echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28051 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28052echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28053 (
28054 cat <<\_ASBOX
ac1cb8d3
VS
28055## ----------------------------------------- ##
28056## Report this to wx-dev@lists.wxwidgets.org ##
28057## ----------------------------------------- ##
a848cd7e
SC
28058_ASBOX
28059 ) |
28060 sed "s/^/$as_me: WARNING: /" >&2
28061 ;;
28062esac
28063echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28064echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28065if test "${ac_cv_header_GL_gl_h+set}" = set; then
28066 echo $ECHO_N "(cached) $ECHO_C" >&6
28067else
28068 ac_cv_header_GL_gl_h=$ac_header_preproc
28069fi
28070echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28071echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28072
28073fi
28074if test $ac_cv_header_GL_gl_h = yes; then
28075
28076 found_gl=0
28077
28078 echo "$as_me:$LINENO: checking for -lGL" >&5
28079echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28080
28081ac_find_libraries=
28082for ac_dir in $SEARCH_LIB /usr/lib;
28083 do
28084 for ac_extension in a so sl dylib; do
28085 if test -f "$ac_dir/libGL.$ac_extension"; then
28086 ac_find_libraries=$ac_dir
28087 break 2
28088 fi
28089 done
28090 done
28091
28092 if test "$ac_find_libraries" != "" ; then
28093
28094 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28095 result=$?
28096 if test $result = 0; then
28097 ac_path_to_link=""
28098 else
28099 ac_path_to_link=" -L$ac_find_libraries"
28100 fi
28101
28102 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28103 LDFLAGS_GL="$ac_path_to_link"
28104 fi
28105
28106
28107ac_find_libraries=
28108for ac_dir in $SEARCH_LIB /usr/lib;
28109 do
28110 for ac_extension in a so sl dylib; do
28111 if test -f "$ac_dir/libGLU.$ac_extension"; then
28112 ac_find_libraries=$ac_dir
28113 break 2
28114 fi
28115 done
28116 done
28117
28118 if test "$ac_find_libraries" != "" ; then
28119
28120 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28121 result=$?
28122 if test $result = 0; then
28123 ac_path_to_link=""
28124 else
28125 ac_path_to_link=" -L$ac_find_libraries"
28126 fi
28127
28128 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28129 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28130 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28131 fi
28132
28133 found_gl=1
28134 OPENGL_LIBS="-lGL -lGLU"
28135 echo "$as_me:$LINENO: result: yes" >&5
28136echo "${ECHO_T}yes" >&6
28137 fi
28138 fi
28139
28140 if test "$found_gl" != 1; then
28141 echo "$as_me:$LINENO: result: no" >&5
28142echo "${ECHO_T}no" >&6
28143 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28144echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28145
28146ac_find_libraries=
28147for ac_dir in $SEARCH_LIB /usr/lib;
28148 do
28149 for ac_extension in a so sl dylib; do
28150 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28151 ac_find_libraries=$ac_dir
28152 break 2
28153 fi
28154 done
28155 done
28156
28157 if test "$ac_find_libraries" != "" ; then
28158
28159 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28160 result=$?
28161 if test $result = 0; then
28162 ac_path_to_link=""
28163 else
28164 ac_path_to_link=" -L$ac_find_libraries"
28165 fi
28166
28167 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28168 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28169 echo "$as_me:$LINENO: result: yes" >&5
28170echo "${ECHO_T}yes" >&6
28171 else
28172 echo "$as_me:$LINENO: result: no" >&5
28173echo "${ECHO_T}no" >&6
28174 fi
28175 fi
28176
28177fi
28178
28179
28180
28181 if test "x$OPENGL_LIBS" = "x"; then
28182 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28183echo "$as_me: error: OpenGL libraries not available" >&2;}
28184 { (exit 1); exit 1; }; }
28185 fi
28186 fi
28187
28188 if test "$wxUSE_OPENGL" = "yes"; then
28189 USE_OPENGL=1
28190 cat >>confdefs.h <<\_ACEOF
28191#define wxUSE_OPENGL 1
28192_ACEOF
28193
28194 cat >>confdefs.h <<\_ACEOF
28195#define wxUSE_GLCANVAS 1
28196_ACEOF
28197
28198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28199 fi
28200fi
28201
a848cd7e
SC
28202
28203if test -n "$TOOLKIT" ; then
28204 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28205fi
28206
a848cd7e
SC
28207
28208
28209if test "$wxUSE_SHARED" = "yes"; then
28210 case "${host}" in
28211 *-pc-msdosdjgpp )
28212 wxUSE_SHARED=no
28213 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28214echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28215 ;;
28216 esac
28217fi
28218
a848cd7e 28219if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28220
28221
28222 found_versioning=no
28223
28224
28225 if test $found_versioning = no ; then
28226 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28227echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28228if test "${wx_cv_version_script+set}" = set; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28230else
28231
28232 echo "VER_1 { *; };" >conftest.sym
28233 echo "int main() { return 0; }" >conftest.cpp
28234
28235 if { ac_try='
28236 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28237 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28240 ac_status=$?
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; } ; then
28243 if test -s conftest.stderr ; then
28244 wx_cv_version_script=no
28245 else
28246 wx_cv_version_script=yes
28247 fi
28248 else
28249 wx_cv_version_script=no
28250 fi
28251 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28252
28253fi
28254echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28255echo "${ECHO_T}$wx_cv_version_script" >&6
28256 if test $wx_cv_version_script = yes ; then
28257 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28258 fi
28259 fi
28260
28261
28262 case "${host}" in
28263 *-*-linux* | *-*-gnu* )
28264 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28265 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28266 ;;
28267
28268 *-*-solaris2* )
28269 if test "$GCC" = yes ; then
28270 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28271
28272 saveLdflags="$LDFLAGS"
28273 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28274 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28275echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28276 cat >conftest.$ac_ext <<_ACEOF
28277/* confdefs.h. */
28278_ACEOF
28279cat confdefs.h >>conftest.$ac_ext
28280cat >>conftest.$ac_ext <<_ACEOF
28281/* end confdefs.h. */
28282
28283int
28284main ()
28285{
28286
28287 ;
28288 return 0;
28289}
28290_ACEOF
28291rm -f conftest.$ac_objext conftest$ac_exeext
28292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28293 (eval $ac_link) 2>conftest.er1
a848cd7e 28294 ac_status=$?
ac1cb8d3
VS
28295 grep -v '^ *+' conftest.er1 >conftest.err
28296 rm -f conftest.er1
28297 cat conftest.err >&5
a848cd7e
SC
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } &&
89be85c2
VS
28300 { ac_try='test -z "$ac_c_werror_flag"
28301 || test ! -s conftest.err'
ac1cb8d3
VS
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28313
28314 echo "$as_me:$LINENO: result: yes" >&5
28315echo "${ECHO_T}yes" >&6
28316 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28317 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28318
28319else
28320 echo "$as_me: failed program was:" >&5
28321sed 's/^/| /' conftest.$ac_ext >&5
28322
28323
28324 echo "$as_me:$LINENO: result: no" >&5
28325echo "${ECHO_T}no" >&6
28326 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28327echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28328 LDFLAGS="$saveLdflags -Wl,-R,/"
28329 cat >conftest.$ac_ext <<_ACEOF
28330/* confdefs.h. */
28331_ACEOF
28332cat confdefs.h >>conftest.$ac_ext
28333cat >>conftest.$ac_ext <<_ACEOF
28334/* end confdefs.h. */
28335
28336int
28337main ()
28338{
28339
28340 ;
28341 return 0;
28342}
28343_ACEOF
28344rm -f conftest.$ac_objext conftest$ac_exeext
28345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28346 (eval $ac_link) 2>conftest.er1
a848cd7e 28347 ac_status=$?
ac1cb8d3
VS
28348 grep -v '^ *+' conftest.er1 >conftest.err
28349 rm -f conftest.er1
28350 cat conftest.err >&5
a848cd7e
SC
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } &&
89be85c2
VS
28353 { ac_try='test -z "$ac_c_werror_flag"
28354 || test ! -s conftest.err'
ac1cb8d3
VS
28355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356 (eval $ac_try) 2>&5
28357 ac_status=$?
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; } &&
28360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28362 (eval $ac_try) 2>&5
28363 ac_status=$?
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); }; }; then
28366
ffa0583f 28367 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28368echo "${ECHO_T}yes" >&6
ffa0583f
RL
28369 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28370 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28371
a848cd7e
SC
28372else
28373 echo "$as_me: failed program was:" >&5
28374sed 's/^/| /' conftest.$ac_ext >&5
28375
28376
28377 echo "$as_me:$LINENO: result: no" >&5
28378echo "${ECHO_T}no" >&6
28379
28380fi
ac1cb8d3
VS
28381rm -f conftest.err conftest.$ac_objext \
28382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28383
28384fi
ac1cb8d3
VS
28385rm -f conftest.err conftest.$ac_objext \
28386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28387 LDFLAGS="$saveLdflags"
28388 else
a848cd7e 28389 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28390 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28391 fi
28392 ;;
28393
28394 powerpc-*-darwin* )
28395 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28396 cat <<EOF >change-install-names
28397#!/bin/sh
28398libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28399inst_cmd="install_name_tool "
28400for i in \${libnames} ; do
28401 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28402done
28403\${inst_cmd} \${3}
28404EOF
28405 chmod +x change-install-names
28406 ;;
28407
28408 *-*-cygwin* | *-*-mingw32* )
28409 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28410 ;;
28411
81f90336
MW
28412 *-*-hpux* )
28413 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
28414 WXCONFIG_RPATH="-Wl,+b,\$libdir"
28415 ;;
28416
a848cd7e 28417 esac
ceec2216 28418
ffa0583f
RL
28419 if test $wxUSE_RPATH = "no"; then
28420 SAMPLES_RPATH_FLAG=''
28421 SAMPLES_RPATH_POSTLINK=''
28422 WXCONFIG_RPATH=''
28423 fi
28424
28425 SHARED=1
28426
28427else
28428
ceec2216
RL
28429 config_linkage_component="-static"
28430 SHARED=0
ffa0583f 28431
ceec2216 28432fi
a848cd7e 28433
a848cd7e 28434
ceec2216
RL
28435UNICODE=0
28436lib_unicode_suffix=
28437WX_CHARTYPE="ansi"
28438if test "$wxUSE_UNICODE" = "yes"; then
28439 lib_unicode_suffix=u
28440 WX_CHARTYPE="unicode"
28441 UNICODE=1
a848cd7e
SC
28442fi
28443
ceec2216
RL
28444lib_debug_suffix=
28445WX_DEBUGTYPE="release"
28446DEBUG_FLAG=0
28447if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28448 lib_debug_suffix=d
28449 WX_DEBUGTYPE="debug"
28450 DEBUG_FLAG=1
28451fi
a848cd7e 28452
ceec2216
RL
28453WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28454WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28455
ceec2216
RL
28456DEBUG_INFO=0
28457if test "$wxUSE_DEBUG_INFO" = "yes"; then
28458 DEBUG_INFO=1
28459fi
a848cd7e 28460
ceec2216 28461WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28462
ceec2216 28463TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28464
ceec2216 28465TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28466
ceec2216
RL
28467if test "$cross_compiling" = "yes"; then
28468 HOST_SUFFIX="-$host_alias"
28469 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28470 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28471fi
28472
dd21ced8 28473WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28474WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28475
28476
28477
a848cd7e 28478if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28479 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28480 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28481
a848cd7e 28482 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28483
28484 # Extract the first word of "Rez", so it can be a program name with args.
28485set dummy Rez; ac_word=$2
28486echo "$as_me:$LINENO: checking for $ac_word" >&5
28487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28488if test "${ac_cv_prog_RESCOMP+set}" = set; then
28489 echo $ECHO_N "(cached) $ECHO_C" >&6
28490else
28491 if test -n "$RESCOMP"; then
28492 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28493else
28494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28495for as_dir in $PATH
28496do
28497 IFS=$as_save_IFS
28498 test -z "$as_dir" && as_dir=.
28499 for ac_exec_ext in '' $ac_executable_extensions; do
28500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28501 ac_cv_prog_RESCOMP="Rez"
28502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28503 break 2
28504 fi
28505done
28506done
28507
28508 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28509fi
28510fi
28511RESCOMP=$ac_cv_prog_RESCOMP
28512if test -n "$RESCOMP"; then
28513 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28514echo "${ECHO_T}$RESCOMP" >&6
28515else
28516 echo "$as_me:$LINENO: result: no" >&5
28517echo "${ECHO_T}no" >&6
28518fi
28519
28520 # Extract the first word of "DeRez", so it can be a program name with args.
28521set dummy DeRez; ac_word=$2
28522echo "$as_me:$LINENO: checking for $ac_word" >&5
28523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28524if test "${ac_cv_prog_DEREZ+set}" = set; then
28525 echo $ECHO_N "(cached) $ECHO_C" >&6
28526else
28527 if test -n "$DEREZ"; then
28528 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28529else
28530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28531for as_dir in $PATH
28532do
28533 IFS=$as_save_IFS
28534 test -z "$as_dir" && as_dir=.
28535 for ac_exec_ext in '' $ac_executable_extensions; do
28536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28537 ac_cv_prog_DEREZ="DeRez"
28538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28539 break 2
28540 fi
28541done
28542done
28543
28544 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28545fi
28546fi
28547DEREZ=$ac_cv_prog_DEREZ
28548if test -n "$DEREZ"; then
28549 echo "$as_me:$LINENO: result: $DEREZ" >&5
28550echo "${ECHO_T}$DEREZ" >&6
28551else
28552 echo "$as_me:$LINENO: result: no" >&5
28553echo "${ECHO_T}no" >&6
28554fi
28555
28556 # Extract the first word of "SetFile", so it can be a program name with args.
28557set dummy SetFile; ac_word=$2
28558echo "$as_me:$LINENO: checking for $ac_word" >&5
28559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28560if test "${ac_cv_prog_SETFILE+set}" = set; then
28561 echo $ECHO_N "(cached) $ECHO_C" >&6
28562else
28563 if test -n "$SETFILE"; then
28564 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28565else
28566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28567for as_dir in $PATH
28568do
28569 IFS=$as_save_IFS
28570 test -z "$as_dir" && as_dir=.
28571 for ac_exec_ext in '' $ac_executable_extensions; do
28572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28573 ac_cv_prog_SETFILE="SetFile"
28574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28575 break 2
28576 fi
28577done
28578done
28579
28580 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28581fi
28582fi
28583SETFILE=$ac_cv_prog_SETFILE
28584if test -n "$SETFILE"; then
28585 echo "$as_me:$LINENO: result: $SETFILE" >&5
28586echo "${ECHO_T}$SETFILE" >&6
28587else
28588 echo "$as_me:$LINENO: result: no" >&5
28589echo "${ECHO_T}no" >&6
28590fi
28591
28592
28593 MACSETFILE="\$(SETFILE)"
28594
28595 if test "$wxUSE_MAC" = 1; then
28596 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28597
28598 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28599 else
28600 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28601 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28602 fi
28603else
ffa0583f
RL
28604 MACSETFILE="@true"
28605 MACRESWXCONFIG="@true"
a848cd7e
SC
28606
28607 if test "$wxUSE_PM" = 1; then
28608 MACRESCOMP="emxbind -ep"
28609 else
ffa0583f 28610 MACRESCOMP="@true"
a848cd7e
SC
28611 fi
28612fi
28613
28614
28615
28616echo "$as_me:$LINENO: checking for mode_t" >&5
28617echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28618if test "${ac_cv_type_mode_t+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620else
28621 cat >conftest.$ac_ext <<_ACEOF
28622/* confdefs.h. */
28623_ACEOF
28624cat confdefs.h >>conftest.$ac_ext
28625cat >>conftest.$ac_ext <<_ACEOF
28626/* end confdefs.h. */
28627$ac_includes_default
28628int
28629main ()
28630{
28631if ((mode_t *) 0)
28632 return 0;
28633if (sizeof (mode_t))
28634 return 0;
28635 ;
28636 return 0;
28637}
28638_ACEOF
28639rm -f conftest.$ac_objext
28640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28641 (eval $ac_compile) 2>conftest.er1
a848cd7e 28642 ac_status=$?
ac1cb8d3
VS
28643 grep -v '^ *+' conftest.er1 >conftest.err
28644 rm -f conftest.er1
28645 cat conftest.err >&5
a848cd7e
SC
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); } &&
89be85c2
VS
28648 { ac_try='test -z "$ac_c_werror_flag"
28649 || test ! -s conftest.err'
ac1cb8d3
VS
28650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651 (eval $ac_try) 2>&5
28652 ac_status=$?
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; } &&
28655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657 (eval $ac_try) 2>&5
28658 ac_status=$?
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; }; then
28661 ac_cv_type_mode_t=yes
28662else
28663 echo "$as_me: failed program was:" >&5
28664sed 's/^/| /' conftest.$ac_ext >&5
28665
28666ac_cv_type_mode_t=no
28667fi
ac1cb8d3 28668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28669fi
28670echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28671echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28672if test $ac_cv_type_mode_t = yes; then
28673 :
28674else
28675
28676cat >>confdefs.h <<_ACEOF
28677#define mode_t int
28678_ACEOF
28679
28680fi
28681
28682echo "$as_me:$LINENO: checking for off_t" >&5
28683echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28684if test "${ac_cv_type_off_t+set}" = set; then
28685 echo $ECHO_N "(cached) $ECHO_C" >&6
28686else
28687 cat >conftest.$ac_ext <<_ACEOF
28688/* confdefs.h. */
28689_ACEOF
28690cat confdefs.h >>conftest.$ac_ext
28691cat >>conftest.$ac_ext <<_ACEOF
28692/* end confdefs.h. */
28693$ac_includes_default
28694int
28695main ()
28696{
28697if ((off_t *) 0)
28698 return 0;
28699if (sizeof (off_t))
28700 return 0;
28701 ;
28702 return 0;
28703}
28704_ACEOF
28705rm -f conftest.$ac_objext
28706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28707 (eval $ac_compile) 2>conftest.er1
a848cd7e 28708 ac_status=$?
ac1cb8d3
VS
28709 grep -v '^ *+' conftest.er1 >conftest.err
28710 rm -f conftest.er1
28711 cat conftest.err >&5
a848cd7e
SC
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); } &&
89be85c2
VS
28714 { ac_try='test -z "$ac_c_werror_flag"
28715 || test ! -s conftest.err'
ac1cb8d3
VS
28716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717 (eval $ac_try) 2>&5
28718 ac_status=$?
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); }; } &&
28721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; }; then
28727 ac_cv_type_off_t=yes
28728else
28729 echo "$as_me: failed program was:" >&5
28730sed 's/^/| /' conftest.$ac_ext >&5
28731
28732ac_cv_type_off_t=no
28733fi
ac1cb8d3 28734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28735fi
28736echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28737echo "${ECHO_T}$ac_cv_type_off_t" >&6
28738if test $ac_cv_type_off_t = yes; then
28739 :
28740else
28741
28742cat >>confdefs.h <<_ACEOF
28743#define off_t long
28744_ACEOF
28745
28746fi
28747
28748echo "$as_me:$LINENO: checking for pid_t" >&5
28749echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28750if test "${ac_cv_type_pid_t+set}" = set; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28752else
28753 cat >conftest.$ac_ext <<_ACEOF
28754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
28759$ac_includes_default
28760int
28761main ()
28762{
28763if ((pid_t *) 0)
28764 return 0;
28765if (sizeof (pid_t))
28766 return 0;
28767 ;
28768 return 0;
28769}
28770_ACEOF
28771rm -f conftest.$ac_objext
28772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28773 (eval $ac_compile) 2>conftest.er1
a848cd7e 28774 ac_status=$?
ac1cb8d3
VS
28775 grep -v '^ *+' conftest.er1 >conftest.err
28776 rm -f conftest.er1
28777 cat conftest.err >&5
a848cd7e
SC
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); } &&
89be85c2
VS
28780 { ac_try='test -z "$ac_c_werror_flag"
28781 || test ! -s conftest.err'
ac1cb8d3
VS
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28784 ac_status=$?
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; } &&
28787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789 (eval $ac_try) 2>&5
28790 ac_status=$?
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; }; then
28793 ac_cv_type_pid_t=yes
28794else
28795 echo "$as_me: failed program was:" >&5
28796sed 's/^/| /' conftest.$ac_ext >&5
28797
28798ac_cv_type_pid_t=no
28799fi
ac1cb8d3 28800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28801fi
28802echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28803echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28804if test $ac_cv_type_pid_t = yes; then
28805 :
28806else
28807
28808cat >>confdefs.h <<_ACEOF
28809#define pid_t int
28810_ACEOF
28811
28812fi
28813
28814echo "$as_me:$LINENO: checking for size_t" >&5
28815echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28816if test "${ac_cv_type_size_t+set}" = set; then
28817 echo $ECHO_N "(cached) $ECHO_C" >&6
28818else
28819 cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
28825$ac_includes_default
28826int
28827main ()
28828{
28829if ((size_t *) 0)
28830 return 0;
28831if (sizeof (size_t))
28832 return 0;
28833 ;
28834 return 0;
28835}
28836_ACEOF
28837rm -f conftest.$ac_objext
28838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28839 (eval $ac_compile) 2>conftest.er1
a848cd7e 28840 ac_status=$?
ac1cb8d3
VS
28841 grep -v '^ *+' conftest.er1 >conftest.err
28842 rm -f conftest.er1
28843 cat conftest.err >&5
a848cd7e
SC
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); } &&
89be85c2
VS
28846 { ac_try='test -z "$ac_c_werror_flag"
28847 || test ! -s conftest.err'
ac1cb8d3
VS
28848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28849 (eval $ac_try) 2>&5
28850 ac_status=$?
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; } &&
28853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28855 (eval $ac_try) 2>&5
28856 ac_status=$?
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); }; }; then
28859 ac_cv_type_size_t=yes
28860else
28861 echo "$as_me: failed program was:" >&5
28862sed 's/^/| /' conftest.$ac_ext >&5
28863
28864ac_cv_type_size_t=no
28865fi
ac1cb8d3 28866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28867fi
28868echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28869echo "${ECHO_T}$ac_cv_type_size_t" >&6
28870if test $ac_cv_type_size_t = yes; then
28871 :
28872else
28873
28874cat >>confdefs.h <<_ACEOF
28875#define size_t unsigned
28876_ACEOF
28877
28878fi
28879
28880echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28881echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28882if test "${ac_cv_type_uid_t+set}" = set; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28884else
28885 cat >conftest.$ac_ext <<_ACEOF
28886/* confdefs.h. */
28887_ACEOF
28888cat confdefs.h >>conftest.$ac_ext
28889cat >>conftest.$ac_ext <<_ACEOF
28890/* end confdefs.h. */
28891#include <sys/types.h>
28892
28893_ACEOF
28894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28895 $EGREP "uid_t" >/dev/null 2>&1; then
28896 ac_cv_type_uid_t=yes
28897else
28898 ac_cv_type_uid_t=no
28899fi
28900rm -f conftest*
28901
28902fi
28903echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28904echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28905if test $ac_cv_type_uid_t = no; then
28906
28907cat >>confdefs.h <<\_ACEOF
28908#define uid_t int
28909_ACEOF
28910
28911
28912cat >>confdefs.h <<\_ACEOF
28913#define gid_t int
28914_ACEOF
28915
28916fi
28917
28918
d51253e8
RL
28919echo "$as_me:$LINENO: checking for ssize_t" >&5
28920echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28921if test "${ac_cv_type_ssize_t+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28923else
28924 cat >conftest.$ac_ext <<_ACEOF
28925/* confdefs.h. */
28926_ACEOF
28927cat confdefs.h >>conftest.$ac_ext
28928cat >>conftest.$ac_ext <<_ACEOF
28929/* end confdefs.h. */
28930$ac_includes_default
28931int
28932main ()
28933{
28934if ((ssize_t *) 0)
28935 return 0;
28936if (sizeof (ssize_t))
28937 return 0;
28938 ;
28939 return 0;
28940}
28941_ACEOF
28942rm -f conftest.$ac_objext
28943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28944 (eval $ac_compile) 2>conftest.er1
28945 ac_status=$?
28946 grep -v '^ *+' conftest.er1 >conftest.err
28947 rm -f conftest.er1
28948 cat conftest.err >&5
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } &&
89be85c2
VS
28951 { ac_try='test -z "$ac_c_werror_flag"
28952 || test ! -s conftest.err'
d51253e8
RL
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; } &&
28958 { ac_try='test -s conftest.$ac_objext'
28959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28960 (eval $ac_try) 2>&5
28961 ac_status=$?
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; }; then
28964 ac_cv_type_ssize_t=yes
28965else
28966 echo "$as_me: failed program was:" >&5
28967sed 's/^/| /' conftest.$ac_ext >&5
28968
28969ac_cv_type_ssize_t=no
28970fi
28971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28972fi
28973echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28974echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28975if test $ac_cv_type_ssize_t = yes; then
28976
28977cat >>confdefs.h <<_ACEOF
28978#define HAVE_SSIZE_T 1
28979_ACEOF
28980
28981
28982fi
28983
28984
a848cd7e
SC
28985
28986
28987ac_ext=cc
28988ac_cpp='$CXXCPP $CPPFLAGS'
28989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28992
28993echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28994echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28995if test "${wx_cv_size_t_is_uint+set}" = set; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
28997else
28998
28999 cat >conftest.$ac_ext <<_ACEOF
29000/* confdefs.h. */
29001_ACEOF
29002cat confdefs.h >>conftest.$ac_ext
29003cat >>conftest.$ac_ext <<_ACEOF
29004/* end confdefs.h. */
29005#include <stddef.h>
29006int
29007main ()
29008{
29009
29010 return 0; }
29011
29012 struct Foo { void foo(size_t); void foo(unsigned int); };
29013
29014 int bar() {
29015
29016 ;
29017 return 0;
29018}
29019_ACEOF
29020rm -f conftest.$ac_objext
29021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29022 (eval $ac_compile) 2>conftest.er1
a848cd7e 29023 ac_status=$?
ac1cb8d3
VS
29024 grep -v '^ *+' conftest.er1 >conftest.err
29025 rm -f conftest.er1
29026 cat conftest.err >&5
a848cd7e
SC
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } &&
89be85c2
VS
29029 { ac_try='test -z "$ac_cxx_werror_flag"
29030 || test ! -s conftest.err'
ac1cb8d3
VS
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038 (eval $ac_try) 2>&5
29039 ac_status=$?
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); }; }; then
29042 wx_cv_size_t_is_uint=no
29043else
29044 echo "$as_me: failed program was:" >&5
29045sed 's/^/| /' conftest.$ac_ext >&5
29046
29047wx_cv_size_t_is_uint=yes
29048
29049fi
ac1cb8d3 29050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29051
29052
29053fi
29054echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29055echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29056
29057if test "$wx_cv_size_t_is_uint" = "yes"; then
29058 cat >>confdefs.h <<\_ACEOF
29059#define wxSIZE_T_IS_UINT 1
29060_ACEOF
29061
29062else
29063 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29064echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29065if test "${wx_cv_size_t_is_ulong+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
29068 cat >conftest.$ac_ext <<_ACEOF
29069/* confdefs.h. */
29070_ACEOF
29071cat confdefs.h >>conftest.$ac_ext
29072cat >>conftest.$ac_ext <<_ACEOF
29073/* end confdefs.h. */
29074#include <stddef.h>
29075int
29076main ()
29077{
29078
29079 return 0; }
29080
29081 struct Foo { void foo(size_t); void foo(unsigned long); };
29082
29083 int bar() {
29084
29085 ;
29086 return 0;
29087}
29088_ACEOF
29089rm -f conftest.$ac_objext
29090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29091 (eval $ac_compile) 2>conftest.er1
a848cd7e 29092 ac_status=$?
ac1cb8d3
VS
29093 grep -v '^ *+' conftest.er1 >conftest.err
29094 rm -f conftest.er1
29095 cat conftest.err >&5
a848cd7e
SC
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
89be85c2
VS
29098 { ac_try='test -z "$ac_cxx_werror_flag"
29099 || test ! -s conftest.err'
ac1cb8d3
VS
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 wx_cv_size_t_is_ulong=no
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116wx_cv_size_t_is_ulong=yes
29117
29118fi
ac1cb8d3 29119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29120
29121fi
29122echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29123echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29124
29125 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29126 cat >>confdefs.h <<\_ACEOF
29127#define wxSIZE_T_IS_ULONG 1
29128_ACEOF
29129
29130 fi
29131fi
29132
29133ac_ext=c
29134ac_cpp='$CPP $CPPFLAGS'
29135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29137ac_compiler_gnu=$ac_cv_c_compiler_gnu
29138
29139
29140
29141echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29142echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29143if test "${wx_cv_struct_pw_gecos+set}" = set; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29145else
29146
29147 cat >conftest.$ac_ext <<_ACEOF
29148/* confdefs.h. */
29149_ACEOF
29150cat confdefs.h >>conftest.$ac_ext
29151cat >>conftest.$ac_ext <<_ACEOF
29152/* end confdefs.h. */
29153#include <pwd.h>
29154int
29155main ()
29156{
29157
29158 char *p;
29159 struct passwd *pw;
29160 p = pw->pw_gecos;
29161
29162 ;
29163 return 0;
29164}
29165_ACEOF
29166rm -f conftest.$ac_objext
29167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29168 (eval $ac_compile) 2>conftest.er1
a848cd7e 29169 ac_status=$?
ac1cb8d3
VS
29170 grep -v '^ *+' conftest.er1 >conftest.err
29171 rm -f conftest.er1
29172 cat conftest.err >&5
a848cd7e
SC
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } &&
89be85c2
VS
29175 { ac_try='test -z "$ac_c_werror_flag"
29176 || test ! -s conftest.err'
ac1cb8d3
VS
29177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178 (eval $ac_try) 2>&5
29179 ac_status=$?
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); }; } &&
29182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; }; then
29188
29189 wx_cv_struct_pw_gecos=yes
29190
29191else
29192 echo "$as_me: failed program was:" >&5
29193sed 's/^/| /' conftest.$ac_ext >&5
29194
29195
29196 wx_cv_struct_pw_gecos=no
29197
29198
29199fi
ac1cb8d3 29200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29201
29202
29203fi
29204echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29205echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29206
29207if test "$wx_cv_struct_pw_gecos" = "yes"; then
29208 cat >>confdefs.h <<\_ACEOF
29209#define HAVE_PW_GECOS 1
29210_ACEOF
29211
29212fi
29213
29214
29215if test "$wx_cv_sizeof_wchar_t" != "0"; then
29216 cat >>confdefs.h <<\_ACEOF
29217#define wxUSE_WCHAR_T 1
29218_ACEOF
29219
29220
29221 WCSLEN_FOUND=0
29222 WCHAR_LINK=
29223
29224for ac_func in wcslen
29225do
29226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29227echo "$as_me:$LINENO: checking for $ac_func" >&5
29228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29229if eval "test \"\${$as_ac_var+set}\" = set"; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29231else
29232 cat >conftest.$ac_ext <<_ACEOF
29233/* confdefs.h. */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h. */
ac1cb8d3
VS
29238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29240#define $ac_func innocuous_$ac_func
29241
a848cd7e
SC
29242/* System header to define __stub macros and hopefully few prototypes,
29243 which can conflict with char $ac_func (); below.
29244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29245 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29246
a848cd7e
SC
29247#ifdef __STDC__
29248# include <limits.h>
29249#else
29250# include <assert.h>
29251#endif
ac1cb8d3
VS
29252
29253#undef $ac_func
29254
a848cd7e
SC
29255/* Override any gcc2 internal prototype to avoid an error. */
29256#ifdef __cplusplus
29257extern "C"
29258{
29259#endif
29260/* We use char because int might match the return type of a gcc2
29261 builtin and then its argument prototype would still apply. */
29262char $ac_func ();
29263/* The GNU C library defines this for functions which it implements
29264 to always fail with ENOSYS. Some functions are actually named
29265 something starting with __ and the normal name is an alias. */
29266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29267choke me
29268#else
29269char (*f) () = $ac_func;
29270#endif
29271#ifdef __cplusplus
29272}
29273#endif
29274
29275int
29276main ()
29277{
29278return f != $ac_func;
29279 ;
29280 return 0;
29281}
29282_ACEOF
29283rm -f conftest.$ac_objext conftest$ac_exeext
29284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29285 (eval $ac_link) 2>conftest.er1
a848cd7e 29286 ac_status=$?
ac1cb8d3
VS
29287 grep -v '^ *+' conftest.er1 >conftest.err
29288 rm -f conftest.er1
29289 cat conftest.err >&5
a848cd7e
SC
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); } &&
89be85c2
VS
29292 { ac_try='test -z "$ac_c_werror_flag"
29293 || test ! -s conftest.err'
ac1cb8d3
VS
29294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295 (eval $ac_try) 2>&5
29296 ac_status=$?
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); }; } &&
29299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301 (eval $ac_try) 2>&5
29302 ac_status=$?
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; }; then
29305 eval "$as_ac_var=yes"
29306else
29307 echo "$as_me: failed program was:" >&5
29308sed 's/^/| /' conftest.$ac_ext >&5
29309
29310eval "$as_ac_var=no"
29311fi
ac1cb8d3
VS
29312rm -f conftest.err conftest.$ac_objext \
29313 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29314fi
29315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29317if test `eval echo '${'$as_ac_var'}'` = yes; then
29318 cat >>confdefs.h <<_ACEOF
29319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29320_ACEOF
29321 WCSLEN_FOUND=1
29322fi
29323done
29324
29325
29326 if test "$WCSLEN_FOUND" = 0; then
29327 if test "$TOOLKIT" = "MSW"; then
29328 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29329echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29330if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332else
29333 ac_check_lib_save_LIBS=$LIBS
29334LIBS="-lmsvcrt $LIBS"
29335cat >conftest.$ac_ext <<_ACEOF
29336/* confdefs.h. */
29337_ACEOF
29338cat confdefs.h >>conftest.$ac_ext
29339cat >>conftest.$ac_ext <<_ACEOF
29340/* end confdefs.h. */
29341
29342/* Override any gcc2 internal prototype to avoid an error. */
29343#ifdef __cplusplus
29344extern "C"
29345#endif
29346/* We use char because int might match the return type of a gcc2
29347 builtin and then its argument prototype would still apply. */
29348char wcslen ();
29349int
29350main ()
29351{
29352wcslen ();
29353 ;
29354 return 0;
29355}
29356_ACEOF
29357rm -f conftest.$ac_objext conftest$ac_exeext
29358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29359 (eval $ac_link) 2>conftest.er1
a848cd7e 29360 ac_status=$?
ac1cb8d3
VS
29361 grep -v '^ *+' conftest.er1 >conftest.err
29362 rm -f conftest.er1
29363 cat conftest.err >&5
a848cd7e
SC
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } &&
89be85c2
VS
29366 { ac_try='test -z "$ac_c_werror_flag"
29367 || test ! -s conftest.err'
ac1cb8d3
VS
29368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29369 (eval $ac_try) 2>&5
29370 ac_status=$?
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; } &&
29373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29376 ac_status=$?
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; }; then
29379 ac_cv_lib_msvcrt_wcslen=yes
29380else
29381 echo "$as_me: failed program was:" >&5
29382sed 's/^/| /' conftest.$ac_ext >&5
29383
29384ac_cv_lib_msvcrt_wcslen=no
29385fi
ac1cb8d3
VS
29386rm -f conftest.err conftest.$ac_objext \
29387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29388LIBS=$ac_check_lib_save_LIBS
29389fi
29390echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29391echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29392if test $ac_cv_lib_msvcrt_wcslen = yes; then
29393 WCHAR_OK=1
29394fi
29395
29396 else
29397 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29398echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29399if test "${ac_cv_lib_w_wcslen+set}" = set; then
29400 echo $ECHO_N "(cached) $ECHO_C" >&6
29401else
29402 ac_check_lib_save_LIBS=$LIBS
29403LIBS="-lw $LIBS"
29404cat >conftest.$ac_ext <<_ACEOF
29405/* confdefs.h. */
29406_ACEOF
29407cat confdefs.h >>conftest.$ac_ext
29408cat >>conftest.$ac_ext <<_ACEOF
29409/* end confdefs.h. */
29410
29411/* Override any gcc2 internal prototype to avoid an error. */
29412#ifdef __cplusplus
29413extern "C"
29414#endif
29415/* We use char because int might match the return type of a gcc2
29416 builtin and then its argument prototype would still apply. */
29417char wcslen ();
29418int
29419main ()
29420{
29421wcslen ();
29422 ;
29423 return 0;
29424}
29425_ACEOF
29426rm -f conftest.$ac_objext conftest$ac_exeext
29427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29428 (eval $ac_link) 2>conftest.er1
a848cd7e 29429 ac_status=$?
ac1cb8d3
VS
29430 grep -v '^ *+' conftest.er1 >conftest.err
29431 rm -f conftest.er1
29432 cat conftest.err >&5
a848cd7e
SC
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); } &&
89be85c2
VS
29435 { ac_try='test -z "$ac_c_werror_flag"
29436 || test ! -s conftest.err'
ac1cb8d3
VS
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448 ac_cv_lib_w_wcslen=yes
29449else
29450 echo "$as_me: failed program was:" >&5
29451sed 's/^/| /' conftest.$ac_ext >&5
29452
29453ac_cv_lib_w_wcslen=no
29454fi
ac1cb8d3
VS
29455rm -f conftest.err conftest.$ac_objext \
29456 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29457LIBS=$ac_check_lib_save_LIBS
29458fi
29459echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29460echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29461if test $ac_cv_lib_w_wcslen = yes; then
29462
29463 WCHAR_LINK=" -lw"
29464 WCSLEN_FOUND=1
29465
29466fi
29467
29468 fi
29469 fi
29470
29471 if test "$WCSLEN_FOUND" = 1; then
29472 cat >>confdefs.h <<\_ACEOF
29473#define HAVE_WCSLEN 1
29474_ACEOF
29475
29476 fi
29477
81f90336 29478 if test "$USE_HPUX" = 1; then
473276a9
VS
29479 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29480 fi
29481
a848cd7e
SC
29482
29483for ac_func in wcsrtombs
29484do
29485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29486echo "$as_me:$LINENO: checking for $ac_func" >&5
29487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29488if eval "test \"\${$as_ac_var+set}\" = set"; then
29489 echo $ECHO_N "(cached) $ECHO_C" >&6
29490else
29491 cat >conftest.$ac_ext <<_ACEOF
29492/* confdefs.h. */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h. */
ac1cb8d3
VS
29497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29499#define $ac_func innocuous_$ac_func
29500
a848cd7e
SC
29501/* System header to define __stub macros and hopefully few prototypes,
29502 which can conflict with char $ac_func (); below.
29503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29504 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29505
a848cd7e
SC
29506#ifdef __STDC__
29507# include <limits.h>
29508#else
29509# include <assert.h>
29510#endif
ac1cb8d3
VS
29511
29512#undef $ac_func
29513
a848cd7e
SC
29514/* Override any gcc2 internal prototype to avoid an error. */
29515#ifdef __cplusplus
29516extern "C"
29517{
29518#endif
29519/* We use char because int might match the return type of a gcc2
29520 builtin and then its argument prototype would still apply. */
29521char $ac_func ();
29522/* The GNU C library defines this for functions which it implements
29523 to always fail with ENOSYS. Some functions are actually named
29524 something starting with __ and the normal name is an alias. */
29525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29526choke me
29527#else
29528char (*f) () = $ac_func;
29529#endif
29530#ifdef __cplusplus
29531}
29532#endif
29533
29534int
29535main ()
29536{
29537return f != $ac_func;
29538 ;
29539 return 0;
29540}
29541_ACEOF
29542rm -f conftest.$ac_objext conftest$ac_exeext
29543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29544 (eval $ac_link) 2>conftest.er1
a848cd7e 29545 ac_status=$?
ac1cb8d3
VS
29546 grep -v '^ *+' conftest.er1 >conftest.err
29547 rm -f conftest.er1
29548 cat conftest.err >&5
a848cd7e
SC
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } &&
89be85c2
VS
29551 { ac_try='test -z "$ac_c_werror_flag"
29552 || test ! -s conftest.err'
ac1cb8d3
VS
29553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554 (eval $ac_try) 2>&5
29555 ac_status=$?
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; } &&
29558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560 (eval $ac_try) 2>&5
29561 ac_status=$?
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); }; }; then
29564 eval "$as_ac_var=yes"
29565else
29566 echo "$as_me: failed program was:" >&5
29567sed 's/^/| /' conftest.$ac_ext >&5
29568
29569eval "$as_ac_var=no"
29570fi
ac1cb8d3
VS
29571rm -f conftest.err conftest.$ac_objext \
29572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29573fi
29574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29575echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29576if test `eval echo '${'$as_ac_var'}'` = yes; then
29577 cat >>confdefs.h <<_ACEOF
29578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29579_ACEOF
29580
29581fi
29582done
29583
29584else
29585 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29586echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29587fi
29588
29589
29590
29591ac_ext=cc
29592ac_cpp='$CXXCPP $CPPFLAGS'
29593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29596
29597
29598
29599for ac_func in vsnprintf
29600do
29601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29602echo "$as_me:$LINENO: checking for $ac_func" >&5
29603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29604if eval "test \"\${$as_ac_var+set}\" = set"; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29606else
29607 cat >conftest.$ac_ext <<_ACEOF
29608/* confdefs.h. */
29609_ACEOF
29610cat confdefs.h >>conftest.$ac_ext
29611cat >>conftest.$ac_ext <<_ACEOF
29612/* end confdefs.h. */
ac1cb8d3
VS
29613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29615#define $ac_func innocuous_$ac_func
29616
a848cd7e
SC
29617/* System header to define __stub macros and hopefully few prototypes,
29618 which can conflict with char $ac_func (); below.
29619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29621
a848cd7e
SC
29622#ifdef __STDC__
29623# include <limits.h>
29624#else
29625# include <assert.h>
29626#endif
ac1cb8d3
VS
29627
29628#undef $ac_func
29629
a848cd7e
SC
29630/* Override any gcc2 internal prototype to avoid an error. */
29631#ifdef __cplusplus
29632extern "C"
29633{
29634#endif
29635/* We use char because int might match the return type of a gcc2
29636 builtin and then its argument prototype would still apply. */
29637char $ac_func ();
29638/* The GNU C library defines this for functions which it implements
29639 to always fail with ENOSYS. Some functions are actually named
29640 something starting with __ and the normal name is an alias. */
29641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29642choke me
29643#else
29644char (*f) () = $ac_func;
29645#endif
29646#ifdef __cplusplus
29647}
29648#endif
29649
29650int
29651main ()
29652{
29653return f != $ac_func;
29654 ;
29655 return 0;
29656}
29657_ACEOF
29658rm -f conftest.$ac_objext conftest$ac_exeext
29659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29660 (eval $ac_link) 2>conftest.er1
a848cd7e 29661 ac_status=$?
ac1cb8d3
VS
29662 grep -v '^ *+' conftest.er1 >conftest.err
29663 rm -f conftest.er1
29664 cat conftest.err >&5
a848cd7e
SC
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); } &&
89be85c2
VS
29667 { ac_try='test -z "$ac_cxx_werror_flag"
29668 || test ! -s conftest.err'
ac1cb8d3
VS
29669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670 (eval $ac_try) 2>&5
29671 ac_status=$?
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; } &&
29674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
29680 eval "$as_ac_var=yes"
29681else
29682 echo "$as_me: failed program was:" >&5
29683sed 's/^/| /' conftest.$ac_ext >&5
29684
29685eval "$as_ac_var=no"
29686fi
ac1cb8d3
VS
29687rm -f conftest.err conftest.$ac_objext \
29688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29689fi
29690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29692if test `eval echo '${'$as_ac_var'}'` = yes; then
29693 cat >>confdefs.h <<_ACEOF
29694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29695_ACEOF
29696
29697fi
29698done
29699
29700
29701if test "$ac_cv_func_vsnprintf" = "yes"; then
29702 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29703echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29704if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29705 echo $ECHO_N "(cached) $ECHO_C" >&6
29706else
29707
29708 cat >conftest.$ac_ext <<_ACEOF
29709/* confdefs.h. */
29710_ACEOF
29711cat confdefs.h >>conftest.$ac_ext
29712cat >>conftest.$ac_ext <<_ACEOF
29713/* end confdefs.h. */
29714
29715 #include <stdio.h>
29716 #include <stdarg.h>
29717
29718int
29719main ()
29720{
29721
29722 char *buf;
29723 va_list ap;
29724 vsnprintf(buf, 10u, "%s", ap);
29725
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); } &&
89be85c2
VS
29739 { ac_try='test -z "$ac_cxx_werror_flag"
29740 || test ! -s conftest.err'
ac1cb8d3
VS
29741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742 (eval $ac_try) 2>&5
29743 ac_status=$?
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); }; } &&
29746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748 (eval $ac_try) 2>&5
29749 ac_status=$?
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; }; then
29752 wx_cv_func_vsnprintf_decl=yes
29753else
29754 echo "$as_me: failed program was:" >&5
29755sed 's/^/| /' conftest.$ac_ext >&5
29756
c122b164
DE
29757
29758 cat >conftest.$ac_ext <<_ACEOF
29759/* confdefs.h. */
29760_ACEOF
29761cat confdefs.h >>conftest.$ac_ext
29762cat >>conftest.$ac_ext <<_ACEOF
29763/* end confdefs.h. */
29764
29765 #include <stdio.h>
29766 #include <stdarg.h>
29767 using namespace std;
29768
29769int
29770main ()
29771{
29772
29773 char *buf;
29774 va_list ap;
29775 vsnprintf(buf, 10u, "%s", ap);
29776
29777 ;
29778 return 0;
29779}
29780_ACEOF
29781rm -f conftest.$ac_objext
29782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29783 (eval $ac_compile) 2>conftest.er1
29784 ac_status=$?
29785 grep -v '^ *+' conftest.er1 >conftest.err
29786 rm -f conftest.er1
29787 cat conftest.err >&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); } &&
89be85c2
VS
29790 { ac_try='test -z "$ac_cxx_werror_flag"
29791 || test ! -s conftest.err'
c122b164
DE
29792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29793 (eval $ac_try) 2>&5
29794 ac_status=$?
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; } &&
29797 { ac_try='test -s conftest.$ac_objext'
29798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799 (eval $ac_try) 2>&5
29800 ac_status=$?
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; }; then
29803 wx_cv_func_vsnprintf_decl=yes
29804else
29805 echo "$as_me: failed program was:" >&5
29806sed 's/^/| /' conftest.$ac_ext >&5
29807
a848cd7e
SC
29808wx_cv_func_vsnprintf_decl=no
29809
29810fi
ac1cb8d3 29811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29812
29813
c122b164
DE
29814fi
29815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29816
29817
a848cd7e
SC
29818fi
29819echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29820echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29821
29822 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29823 cat >>confdefs.h <<\_ACEOF
29824#define HAVE_VSNPRINTF_DECL 1
29825_ACEOF
29826
29827 fi
29828fi
29829
29830if test "$wxUSE_UNICODE" = yes; then
29831
29832
29833
fbe47c7b
VS
29834
29835
29836
29837for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29838do
29839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29840echo "$as_me:$LINENO: checking for $ac_func" >&5
29841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29842if eval "test \"\${$as_ac_var+set}\" = set"; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29844else
29845 cat >conftest.$ac_ext <<_ACEOF
29846/* confdefs.h. */
29847_ACEOF
29848cat confdefs.h >>conftest.$ac_ext
29849cat >>conftest.$ac_ext <<_ACEOF
29850/* end confdefs.h. */
ac1cb8d3
VS
29851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29853#define $ac_func innocuous_$ac_func
29854
a848cd7e
SC
29855/* System header to define __stub macros and hopefully few prototypes,
29856 which can conflict with char $ac_func (); below.
29857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29858 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29859
a848cd7e
SC
29860#ifdef __STDC__
29861# include <limits.h>
29862#else
29863# include <assert.h>
29864#endif
ac1cb8d3
VS
29865
29866#undef $ac_func
29867
a848cd7e
SC
29868/* Override any gcc2 internal prototype to avoid an error. */
29869#ifdef __cplusplus
29870extern "C"
29871{
29872#endif
29873/* We use char because int might match the return type of a gcc2
29874 builtin and then its argument prototype would still apply. */
29875char $ac_func ();
29876/* The GNU C library defines this for functions which it implements
29877 to always fail with ENOSYS. Some functions are actually named
29878 something starting with __ and the normal name is an alias. */
29879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29880choke me
29881#else
29882char (*f) () = $ac_func;
29883#endif
29884#ifdef __cplusplus
29885}
29886#endif
29887
29888int
29889main ()
29890{
29891return f != $ac_func;
29892 ;
29893 return 0;
29894}
29895_ACEOF
29896rm -f conftest.$ac_objext conftest$ac_exeext
29897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29898 (eval $ac_link) 2>conftest.er1
a848cd7e 29899 ac_status=$?
ac1cb8d3
VS
29900 grep -v '^ *+' conftest.er1 >conftest.err
29901 rm -f conftest.er1
29902 cat conftest.err >&5
a848cd7e
SC
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } &&
89be85c2
VS
29905 { ac_try='test -z "$ac_cxx_werror_flag"
29906 || test ! -s conftest.err'
ac1cb8d3
VS
29907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908 (eval $ac_try) 2>&5
29909 ac_status=$?
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; } &&
29912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29915 ac_status=$?
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; }; then
29918 eval "$as_ac_var=yes"
29919else
29920 echo "$as_me: failed program was:" >&5
29921sed 's/^/| /' conftest.$ac_ext >&5
29922
29923eval "$as_ac_var=no"
29924fi
ac1cb8d3
VS
29925rm -f conftest.err conftest.$ac_objext \
29926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29927fi
29928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29930if test `eval echo '${'$as_ac_var'}'` = yes; then
29931 cat >>confdefs.h <<_ACEOF
29932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29933_ACEOF
29934
29935fi
29936done
29937
29938
29939 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29940echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29941 cat >conftest.$ac_ext <<_ACEOF
29942/* confdefs.h. */
29943_ACEOF
29944cat confdefs.h >>conftest.$ac_ext
29945cat >>conftest.$ac_ext <<_ACEOF
29946/* end confdefs.h. */
29947#include <wchar.h>
29948int
29949main ()
29950{
29951&_vsnwprintf;
29952 ;
29953 return 0;
29954}
29955_ACEOF
29956rm -f conftest.$ac_objext
29957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29958 (eval $ac_compile) 2>conftest.er1
a848cd7e 29959 ac_status=$?
ac1cb8d3
VS
29960 grep -v '^ *+' conftest.er1 >conftest.err
29961 rm -f conftest.er1
29962 cat conftest.err >&5
a848cd7e
SC
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); } &&
89be85c2
VS
29965 { ac_try='test -z "$ac_cxx_werror_flag"
29966 || test ! -s conftest.err'
ac1cb8d3
VS
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; } &&
29972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29978 echo "$as_me:$LINENO: result: yes" >&5
29979echo "${ECHO_T}yes" >&6
29980 cat >>confdefs.h <<\_ACEOF
29981#define HAVE__VSNWPRINTF 1
29982_ACEOF
29983
29984else
29985 echo "$as_me: failed program was:" >&5
29986sed 's/^/| /' conftest.$ac_ext >&5
29987
29988echo "$as_me:$LINENO: result: no" >&5
29989echo "${ECHO_T}no" >&6
29990fi
ac1cb8d3 29991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29992fi
29993
29994ac_ext=c
29995ac_cpp='$CPP $CPPFLAGS'
29996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29998ac_compiler_gnu=$ac_cv_c_compiler_gnu
29999
30000
30001
30002
30003if test "$TOOLKIT" != "MSW"; then
30004
30005
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
30014
30015
30016
30017# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30018if test "${with_libiconv_prefix+set}" = set; then
30019 withval="$with_libiconv_prefix"
30020
30021 for dir in `echo "$withval" | tr : ' '`; do
30022 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30023 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30024 done
30025
30026fi;
30027
30028 echo "$as_me:$LINENO: checking for iconv" >&5
30029echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30030if test "${am_cv_func_iconv+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30032else
30033
30034 am_cv_func_iconv="no, consider installing GNU libiconv"
30035 am_cv_lib_iconv=no
30036 cat >conftest.$ac_ext <<_ACEOF
30037/* confdefs.h. */
30038_ACEOF
30039cat confdefs.h >>conftest.$ac_ext
30040cat >>conftest.$ac_ext <<_ACEOF
30041/* end confdefs.h. */
30042#include <stdlib.h>
30043#include <iconv.h>
30044int
30045main ()
30046{
30047iconv_t cd = iconv_open("","");
30048 iconv(cd,NULL,NULL,NULL,NULL);
30049 iconv_close(cd);
30050 ;
30051 return 0;
30052}
30053_ACEOF
30054rm -f conftest.$ac_objext conftest$ac_exeext
30055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30056 (eval $ac_link) 2>conftest.er1
a848cd7e 30057 ac_status=$?
ac1cb8d3
VS
30058 grep -v '^ *+' conftest.er1 >conftest.err
30059 rm -f conftest.er1
30060 cat conftest.err >&5
a848cd7e
SC
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); } &&
89be85c2
VS
30063 { ac_try='test -z "$ac_cxx_werror_flag"
30064 || test ! -s conftest.err'
ac1cb8d3
VS
30065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066 (eval $ac_try) 2>&5
30067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; } &&
30070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072 (eval $ac_try) 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }; then
30076 am_cv_func_iconv=yes
30077else
30078 echo "$as_me: failed program was:" >&5
30079sed 's/^/| /' conftest.$ac_ext >&5
30080
30081fi
ac1cb8d3
VS
30082rm -f conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30084 if test "$am_cv_func_iconv" != yes; then
30085 am_save_LIBS="$LIBS"
30086 LIBS="$LIBS -liconv"
30087 cat >conftest.$ac_ext <<_ACEOF
30088/* confdefs.h. */
30089_ACEOF
30090cat confdefs.h >>conftest.$ac_ext
30091cat >>conftest.$ac_ext <<_ACEOF
30092/* end confdefs.h. */
30093#include <stdlib.h>
30094#include <iconv.h>
30095int
30096main ()
30097{
30098iconv_t cd = iconv_open("","");
30099 iconv(cd,NULL,NULL,NULL,NULL);
30100 iconv_close(cd);
30101 ;
30102 return 0;
30103}
30104_ACEOF
30105rm -f conftest.$ac_objext conftest$ac_exeext
30106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30107 (eval $ac_link) 2>conftest.er1
a848cd7e 30108 ac_status=$?
ac1cb8d3
VS
30109 grep -v '^ *+' conftest.er1 >conftest.err
30110 rm -f conftest.er1
30111 cat conftest.err >&5
a848cd7e
SC
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); } &&
89be85c2
VS
30114 { ac_try='test -z "$ac_cxx_werror_flag"
30115 || test ! -s conftest.err'
ac1cb8d3
VS
30116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30117 (eval $ac_try) 2>&5
30118 ac_status=$?
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); }; } &&
30121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123 (eval $ac_try) 2>&5
30124 ac_status=$?
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; }; then
30127 am_cv_lib_iconv=yes
30128 am_cv_func_iconv=yes
30129else
30130 echo "$as_me: failed program was:" >&5
30131sed 's/^/| /' conftest.$ac_ext >&5
30132
30133fi
ac1cb8d3
VS
30134rm -f conftest.err conftest.$ac_objext \
30135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30136 LIBS="$am_save_LIBS"
30137 fi
30138
30139fi
30140echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30141echo "${ECHO_T}$am_cv_func_iconv" >&6
30142 if test "$am_cv_func_iconv" = yes; then
30143
30144cat >>confdefs.h <<\_ACEOF
30145#define HAVE_ICONV 1
30146_ACEOF
30147
30148 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30149echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30150if test "${wx_cv_func_iconv_const+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152else
30153 cat >conftest.$ac_ext <<_ACEOF
30154/* confdefs.h. */
30155_ACEOF
30156cat confdefs.h >>conftest.$ac_ext
30157cat >>conftest.$ac_ext <<_ACEOF
30158/* end confdefs.h. */
30159
30160#include <stdlib.h>
30161#include <iconv.h>
30162extern
30163#ifdef __cplusplus
30164"C"
30165#endif
30166#if defined(__STDC__) || defined(__cplusplus)
30167size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30168#else
30169size_t iconv();
30170#endif
30171
30172int
30173main ()
30174{
30175
30176 ;
30177 return 0;
30178}
30179_ACEOF
30180rm -f conftest.$ac_objext
30181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30182 (eval $ac_compile) 2>conftest.er1
a848cd7e 30183 ac_status=$?
ac1cb8d3
VS
30184 grep -v '^ *+' conftest.er1 >conftest.err
30185 rm -f conftest.er1
30186 cat conftest.err >&5
a848cd7e
SC
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); } &&
89be85c2
VS
30189 { ac_try='test -z "$ac_cxx_werror_flag"
30190 || test ! -s conftest.err'
ac1cb8d3
VS
30191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192 (eval $ac_try) 2>&5
30193 ac_status=$?
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30198 (eval $ac_try) 2>&5
30199 ac_status=$?
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); }; }; then
30202 wx_cv_func_iconv_const="no"
30203else
30204 echo "$as_me: failed program was:" >&5
30205sed 's/^/| /' conftest.$ac_ext >&5
30206
30207wx_cv_func_iconv_const="yes"
30208
30209fi
ac1cb8d3 30210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30211
30212fi
30213echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30214echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30215
30216 iconv_const=
30217 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30218 iconv_const="const"
30219 fi
30220
30221
30222cat >>confdefs.h <<_ACEOF
30223#define ICONV_CONST $iconv_const
30224_ACEOF
30225
30226 fi
30227 LIBICONV=
30228 if test "$am_cv_lib_iconv" = yes; then
30229 LIBICONV="-liconv"
30230 fi
30231
30232
30233LIBS="$LIBICONV $LIBS"
30234ac_ext=c
30235ac_cpp='$CPP $CPPFLAGS'
30236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30238ac_compiler_gnu=$ac_cv_c_compiler_gnu
30239
30240
30241if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30242
30243for ac_func in sigaction
30244do
30245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30246echo "$as_me:$LINENO: checking for $ac_func" >&5
30247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30248if eval "test \"\${$as_ac_var+set}\" = set"; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30250else
30251 cat >conftest.$ac_ext <<_ACEOF
30252/* confdefs.h. */
30253_ACEOF
30254cat confdefs.h >>conftest.$ac_ext
30255cat >>conftest.$ac_ext <<_ACEOF
30256/* end confdefs.h. */
ac1cb8d3
VS
30257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30259#define $ac_func innocuous_$ac_func
30260
a848cd7e
SC
30261/* System header to define __stub macros and hopefully few prototypes,
30262 which can conflict with char $ac_func (); below.
30263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30265
a848cd7e
SC
30266#ifdef __STDC__
30267# include <limits.h>
30268#else
30269# include <assert.h>
30270#endif
ac1cb8d3
VS
30271
30272#undef $ac_func
30273
a848cd7e
SC
30274/* Override any gcc2 internal prototype to avoid an error. */
30275#ifdef __cplusplus
30276extern "C"
30277{
30278#endif
30279/* We use char because int might match the return type of a gcc2
30280 builtin and then its argument prototype would still apply. */
30281char $ac_func ();
30282/* The GNU C library defines this for functions which it implements
30283 to always fail with ENOSYS. Some functions are actually named
30284 something starting with __ and the normal name is an alias. */
30285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30286choke me
30287#else
30288char (*f) () = $ac_func;
30289#endif
30290#ifdef __cplusplus
30291}
30292#endif
30293
30294int
30295main ()
30296{
30297return f != $ac_func;
30298 ;
30299 return 0;
30300}
30301_ACEOF
30302rm -f conftest.$ac_objext conftest$ac_exeext
30303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30304 (eval $ac_link) 2>conftest.er1
a848cd7e 30305 ac_status=$?
ac1cb8d3
VS
30306 grep -v '^ *+' conftest.er1 >conftest.err
30307 rm -f conftest.er1
30308 cat conftest.err >&5
a848cd7e
SC
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); } &&
89be85c2
VS
30311 { ac_try='test -z "$ac_c_werror_flag"
30312 || test ! -s conftest.err'
ac1cb8d3
VS
30313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30314 (eval $ac_try) 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; } &&
30318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30320 (eval $ac_try) 2>&5
30321 ac_status=$?
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); }; }; then
30324 eval "$as_ac_var=yes"
30325else
30326 echo "$as_me: failed program was:" >&5
30327sed 's/^/| /' conftest.$ac_ext >&5
30328
30329eval "$as_ac_var=no"
30330fi
ac1cb8d3
VS
30331rm -f conftest.err conftest.$ac_objext \
30332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30333fi
30334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30336if test `eval echo '${'$as_ac_var'}'` = yes; then
30337 cat >>confdefs.h <<_ACEOF
30338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30339_ACEOF
30340
30341fi
30342done
30343
30344
30345 if test "$ac_cv_func_sigaction" = "no"; then
30346 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30347echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30348 wxUSE_ON_FATAL_EXCEPTION=no
30349 fi
30350
30351 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30352
30353
30354 ac_ext=cc
30355ac_cpp='$CXXCPP $CPPFLAGS'
30356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30359
30360
30361 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30362echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30363if test "${wx_cv_type_sa_handler+set}" = set; then
30364 echo $ECHO_N "(cached) $ECHO_C" >&6
30365else
30366
30367 cat >conftest.$ac_ext <<_ACEOF
30368/* confdefs.h. */
30369_ACEOF
30370cat confdefs.h >>conftest.$ac_ext
30371cat >>conftest.$ac_ext <<_ACEOF
30372/* end confdefs.h. */
30373#include <signal.h>
30374int
30375main ()
30376{
30377
30378 extern void testSigHandler(int);
30379
30380 struct sigaction sa;
30381 sa.sa_handler = testSigHandler;
30382
30383 ;
30384 return 0;
30385}
30386_ACEOF
30387rm -f conftest.$ac_objext
30388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30389 (eval $ac_compile) 2>conftest.er1
a848cd7e 30390 ac_status=$?
ac1cb8d3
VS
30391 grep -v '^ *+' conftest.er1 >conftest.err
30392 rm -f conftest.er1
30393 cat conftest.err >&5
a848cd7e
SC
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } &&
89be85c2
VS
30396 { ac_try='test -z "$ac_cxx_werror_flag"
30397 || test ! -s conftest.err'
ac1cb8d3
VS
30398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30399 (eval $ac_try) 2>&5
30400 ac_status=$?
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); }; } &&
30403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405 (eval $ac_try) 2>&5
30406 ac_status=$?
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; }; then
30409
30410 wx_cv_type_sa_handler=int
30411
30412else
30413 echo "$as_me: failed program was:" >&5
30414sed 's/^/| /' conftest.$ac_ext >&5
30415
30416
30417 wx_cv_type_sa_handler=void
30418
30419fi
ac1cb8d3 30420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30421
30422fi
30423echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30424echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30425
30426 ac_ext=c
30427ac_cpp='$CPP $CPPFLAGS'
30428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30430ac_compiler_gnu=$ac_cv_c_compiler_gnu
30431
30432
30433 cat >>confdefs.h <<_ACEOF
30434#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30435_ACEOF
30436
30437 fi
30438fi
30439
eaff0f0d
VZ
30440if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30441
30442
30443 ac_ext=cc
30444ac_cpp='$CXXCPP $CPPFLAGS'
30445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30448
30449
30450 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30451echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30452if test "${wx_cv_func_backtrace+set}" = set; then
30453 echo $ECHO_N "(cached) $ECHO_C" >&6
30454else
30455
30456 cat >conftest.$ac_ext <<_ACEOF
30457/* confdefs.h. */
30458_ACEOF
30459cat confdefs.h >>conftest.$ac_ext
30460cat >>conftest.$ac_ext <<_ACEOF
30461/* end confdefs.h. */
30462#include <execinfo.h>
30463int
30464main ()
30465{
30466
30467 void *trace[1];
30468 char **messages;
30469
30470 backtrace(trace, 1);
30471 messages = backtrace_symbols(trace, 1);
30472
30473 ;
30474 return 0;
30475}
30476_ACEOF
30477rm -f conftest.$ac_objext
30478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30479 (eval $ac_compile) 2>conftest.er1
30480 ac_status=$?
30481 grep -v '^ *+' conftest.er1 >conftest.err
30482 rm -f conftest.er1
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } &&
89be85c2
VS
30486 { ac_try='test -z "$ac_cxx_werror_flag"
30487 || test ! -s conftest.err'
eaff0f0d
VZ
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30490 ac_status=$?
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; } &&
30493 { ac_try='test -s conftest.$ac_objext'
30494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495 (eval $ac_try) 2>&5
30496 ac_status=$?
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; }; then
30499 wx_cv_func_backtrace=yes
30500else
30501 echo "$as_me: failed program was:" >&5
30502sed 's/^/| /' conftest.$ac_ext >&5
30503
30504wx_cv_func_backtrace=no
30505
30506fi
30507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30508
30509
30510fi
30511echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30512echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30513
30514
30515 if test "$wx_cv_func_backtrace" = "no"; then
30516 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30517echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30518 wxUSE_STACKWALKER=no
30519 else
30520 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30521echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30522if test "${wx_cv_func_cxa_demangle+set}" = set; then
30523 echo $ECHO_N "(cached) $ECHO_C" >&6
30524else
30525
30526 cat >conftest.$ac_ext <<_ACEOF
30527/* confdefs.h. */
30528_ACEOF
30529cat confdefs.h >>conftest.$ac_ext
30530cat >>conftest.$ac_ext <<_ACEOF
30531/* end confdefs.h. */
30532#include <cxxabi.h>
30533int
30534main ()
30535{
30536
30537 int rc;
30538 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30539
30540 ;
30541 return 0;
30542}
30543_ACEOF
30544rm -f conftest.$ac_objext
30545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30546 (eval $ac_compile) 2>conftest.er1
30547 ac_status=$?
30548 grep -v '^ *+' conftest.er1 >conftest.err
30549 rm -f conftest.er1
30550 cat conftest.err >&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } &&
89be85c2
VS
30553 { ac_try='test -z "$ac_cxx_werror_flag"
30554 || test ! -s conftest.err'
eaff0f0d
VZ
30555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30557 ac_status=$?
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; } &&
30560 { ac_try='test -s conftest.$ac_objext'
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; }; then
30566 wx_cv_func_cxa_demangle=yes
30567else
30568 echo "$as_me: failed program was:" >&5
30569sed 's/^/| /' conftest.$ac_ext >&5
30570
30571wx_cv_func_cxa_demangle=no
30572
30573fi
30574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30575
30576
30577fi
30578echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30579echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30580
30581 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30582 cat >>confdefs.h <<\_ACEOF
30583#define HAVE_CXA_DEMANGLE 1
30584_ACEOF
30585
30586 fi
30587 fi
30588
30589 ac_ext=c
30590ac_cpp='$CPP $CPPFLAGS'
30591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30593ac_compiler_gnu=$ac_cv_c_compiler_gnu
30594
30595fi
30596
a848cd7e
SC
30597
30598
30599for ac_func in mkstemp mktemp
30600do
30601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30602echo "$as_me:$LINENO: checking for $ac_func" >&5
30603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30604if eval "test \"\${$as_ac_var+set}\" = set"; then
30605 echo $ECHO_N "(cached) $ECHO_C" >&6
30606else
30607 cat >conftest.$ac_ext <<_ACEOF
30608/* confdefs.h. */
30609_ACEOF
30610cat confdefs.h >>conftest.$ac_ext
30611cat >>conftest.$ac_ext <<_ACEOF
30612/* end confdefs.h. */
ac1cb8d3
VS
30613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30615#define $ac_func innocuous_$ac_func
30616
a848cd7e
SC
30617/* System header to define __stub macros and hopefully few prototypes,
30618 which can conflict with char $ac_func (); below.
30619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30621
a848cd7e
SC
30622#ifdef __STDC__
30623# include <limits.h>
30624#else
30625# include <assert.h>
30626#endif
ac1cb8d3
VS
30627
30628#undef $ac_func
30629
a848cd7e
SC
30630/* Override any gcc2 internal prototype to avoid an error. */
30631#ifdef __cplusplus
30632extern "C"
30633{
30634#endif
30635/* We use char because int might match the return type of a gcc2
30636 builtin and then its argument prototype would still apply. */
30637char $ac_func ();
30638/* The GNU C library defines this for functions which it implements
30639 to always fail with ENOSYS. Some functions are actually named
30640 something starting with __ and the normal name is an alias. */
30641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30642choke me
30643#else
30644char (*f) () = $ac_func;
30645#endif
30646#ifdef __cplusplus
30647}
30648#endif
30649
30650int
30651main ()
30652{
30653return f != $ac_func;
30654 ;
30655 return 0;
30656}
30657_ACEOF
30658rm -f conftest.$ac_objext conftest$ac_exeext
30659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30660 (eval $ac_link) 2>conftest.er1
a848cd7e 30661 ac_status=$?
ac1cb8d3
VS
30662 grep -v '^ *+' conftest.er1 >conftest.err
30663 rm -f conftest.er1
30664 cat conftest.err >&5
a848cd7e
SC
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); } &&
89be85c2
VS
30667 { ac_try='test -z "$ac_c_werror_flag"
30668 || test ! -s conftest.err'
ac1cb8d3
VS
30669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670 (eval $ac_try) 2>&5
30671 ac_status=$?
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); }; } &&
30674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; }; then
30680 eval "$as_ac_var=yes"
30681else
30682 echo "$as_me: failed program was:" >&5
30683sed 's/^/| /' conftest.$ac_ext >&5
30684
30685eval "$as_ac_var=no"
30686fi
ac1cb8d3
VS
30687rm -f conftest.err conftest.$ac_objext \
30688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30689fi
30690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30692if test `eval echo '${'$as_ac_var'}'` = yes; then
30693 cat >>confdefs.h <<_ACEOF
30694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30695_ACEOF
30696 break
30697fi
30698done
30699
30700
30701echo "$as_me:$LINENO: checking for statfs" >&5
30702echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30703if test "${wx_cv_func_statfs+set}" = set; then
30704 echo $ECHO_N "(cached) $ECHO_C" >&6
30705else
30706 cat >conftest.$ac_ext <<_ACEOF
30707/* confdefs.h. */
30708_ACEOF
30709cat confdefs.h >>conftest.$ac_ext
30710cat >>conftest.$ac_ext <<_ACEOF
30711/* end confdefs.h. */
30712
30713 #if defined(__BSD__)
30714 #include <sys/param.h>
30715 #include <sys/mount.h>
30716 #else
30717 #include <sys/vfs.h>
30718 #endif
30719
30720int
30721main ()
30722{
30723
30724 long l;
30725 struct statfs fs;
30726 statfs("/", &fs);
30727 l = fs.f_bsize;
30728 l += fs.f_blocks;
30729 l += fs.f_bavail;
30730
30731 ;
30732 return 0;
30733}
30734_ACEOF
30735rm -f conftest.$ac_objext
30736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30737 (eval $ac_compile) 2>conftest.er1
a848cd7e 30738 ac_status=$?
ac1cb8d3
VS
30739 grep -v '^ *+' conftest.er1 >conftest.err
30740 rm -f conftest.er1
30741 cat conftest.err >&5
a848cd7e
SC
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); } &&
89be85c2
VS
30744 { ac_try='test -z "$ac_c_werror_flag"
30745 || test ! -s conftest.err'
ac1cb8d3
VS
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; } &&
30751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30753 (eval $ac_try) 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757
30758 wx_cv_func_statfs=yes
30759
30760else
30761 echo "$as_me: failed program was:" >&5
30762sed 's/^/| /' conftest.$ac_ext >&5
30763
30764
30765 wx_cv_func_statfs=no
30766
30767
30768fi
ac1cb8d3 30769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30770
30771fi
30772echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30773echo "${ECHO_T}$wx_cv_func_statfs" >&6
30774
30775if test "$wx_cv_func_statfs" = "yes"; then
30776 wx_cv_type_statvfs_t="struct statfs"
30777 cat >>confdefs.h <<\_ACEOF
30778#define HAVE_STATFS 1
30779_ACEOF
30780
30781else
30782 echo "$as_me:$LINENO: checking for statvfs" >&5
30783echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30784if test "${wx_cv_func_statvfs+set}" = set; then
30785 echo $ECHO_N "(cached) $ECHO_C" >&6
30786else
30787 cat >conftest.$ac_ext <<_ACEOF
30788/* confdefs.h. */
30789_ACEOF
30790cat confdefs.h >>conftest.$ac_ext
30791cat >>conftest.$ac_ext <<_ACEOF
30792/* end confdefs.h. */
30793
30794 #include <stddef.h>
30795 #include <sys/statvfs.h>
30796
30797int
30798main ()
30799{
30800
30801 statvfs("/", NULL);
30802
30803 ;
30804 return 0;
30805}
30806_ACEOF
30807rm -f conftest.$ac_objext
30808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30809 (eval $ac_compile) 2>conftest.er1
a848cd7e 30810 ac_status=$?
ac1cb8d3
VS
30811 grep -v '^ *+' conftest.er1 >conftest.err
30812 rm -f conftest.er1
30813 cat conftest.err >&5
a848cd7e
SC
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); } &&
89be85c2
VS
30816 { ac_try='test -z "$ac_c_werror_flag"
30817 || test ! -s conftest.err'
ac1cb8d3
VS
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; } &&
30823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30825 (eval $ac_try) 2>&5
30826 ac_status=$?
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; }; then
30829 wx_cv_func_statvfs=yes
30830else
30831 echo "$as_me: failed program was:" >&5
30832sed 's/^/| /' conftest.$ac_ext >&5
30833
30834wx_cv_func_statvfs=no
30835
30836fi
ac1cb8d3 30837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30838
30839fi
30840echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30841echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30842
30843 if test "$wx_cv_func_statvfs" = "yes"; then
30844
30845
30846 ac_ext=cc
30847ac_cpp='$CXXCPP $CPPFLAGS'
30848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30851
30852
30853 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30854echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30855if test "${wx_cv_type_statvfs_t+set}" = set; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30857else
30858 cat >conftest.$ac_ext <<_ACEOF
30859/* confdefs.h. */
30860_ACEOF
30861cat confdefs.h >>conftest.$ac_ext
30862cat >>conftest.$ac_ext <<_ACEOF
30863/* end confdefs.h. */
30864
30865 #include <sys/statvfs.h>
30866
30867int
30868main ()
30869{
30870
30871 long l;
30872 statvfs_t fs;
30873 statvfs("/", &fs);
30874 l = fs.f_bsize;
30875 l += fs.f_blocks;
30876 l += fs.f_bavail;
30877
30878 ;
30879 return 0;
30880}
30881_ACEOF
30882rm -f conftest.$ac_objext
30883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30884 (eval $ac_compile) 2>conftest.er1
a848cd7e 30885 ac_status=$?
ac1cb8d3
VS
30886 grep -v '^ *+' conftest.er1 >conftest.err
30887 rm -f conftest.er1
30888 cat conftest.err >&5
a848cd7e
SC
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); } &&
89be85c2
VS
30891 { ac_try='test -z "$ac_cxx_werror_flag"
30892 || test ! -s conftest.err'
ac1cb8d3
VS
30893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894 (eval $ac_try) 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; } &&
30898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900 (eval $ac_try) 2>&5
30901 ac_status=$?
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); }; }; then
30904 wx_cv_type_statvfs_t=statvfs_t
30905else
30906 echo "$as_me: failed program was:" >&5
30907sed 's/^/| /' conftest.$ac_ext >&5
30908
30909
30910 cat >conftest.$ac_ext <<_ACEOF
30911/* confdefs.h. */
30912_ACEOF
30913cat confdefs.h >>conftest.$ac_ext
30914cat >>conftest.$ac_ext <<_ACEOF
30915/* end confdefs.h. */
30916
30917 #include <sys/statvfs.h>
30918
30919int
30920main ()
30921{
30922
30923 long l;
30924 struct statvfs fs;
30925 statvfs("/", &fs);
30926 l = fs.f_bsize;
30927 l += fs.f_blocks;
30928 l += fs.f_bavail;
30929
30930 ;
30931 return 0;
30932}
30933_ACEOF
30934rm -f conftest.$ac_objext
30935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30936 (eval $ac_compile) 2>conftest.er1
a848cd7e 30937 ac_status=$?
ac1cb8d3
VS
30938 grep -v '^ *+' conftest.er1 >conftest.err
30939 rm -f conftest.er1
30940 cat conftest.err >&5
a848cd7e
SC
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); } &&
89be85c2
VS
30943 { ac_try='test -z "$ac_cxx_werror_flag"
30944 || test ! -s conftest.err'
ac1cb8d3
VS
30945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30946 (eval $ac_try) 2>&5
30947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952 (eval $ac_try) 2>&5
30953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
30956 wx_cv_type_statvfs_t="struct statvfs"
30957else
30958 echo "$as_me: failed program was:" >&5
30959sed 's/^/| /' conftest.$ac_ext >&5
30960
30961wx_cv_type_statvfs_t="unknown"
30962
30963fi
ac1cb8d3 30964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30965
30966
30967fi
ac1cb8d3 30968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30969
30970fi
30971echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30972echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30973
30974 ac_ext=c
30975ac_cpp='$CPP $CPPFLAGS'
30976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30978ac_compiler_gnu=$ac_cv_c_compiler_gnu
30979
30980
30981 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30982 cat >>confdefs.h <<\_ACEOF
30983#define HAVE_STATVFS 1
30984_ACEOF
30985
30986 fi
30987 else
30988 wx_cv_type_statvfs_t="unknown"
30989 fi
30990fi
30991
30992if test "$wx_cv_type_statvfs_t" != "unknown"; then
30993 cat >>confdefs.h <<_ACEOF
30994#define WX_STATFS_T $wx_cv_type_statvfs_t
30995_ACEOF
30996
30997else
30998 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30999echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31000fi
31001
31002if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31003
31004
31005for ac_func in fcntl flock
31006do
31007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31008echo "$as_me:$LINENO: checking for $ac_func" >&5
31009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31010if eval "test \"\${$as_ac_var+set}\" = set"; then
31011 echo $ECHO_N "(cached) $ECHO_C" >&6
31012else
31013 cat >conftest.$ac_ext <<_ACEOF
31014/* confdefs.h. */
31015_ACEOF
31016cat confdefs.h >>conftest.$ac_ext
31017cat >>conftest.$ac_ext <<_ACEOF
31018/* end confdefs.h. */
ac1cb8d3
VS
31019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31021#define $ac_func innocuous_$ac_func
31022
a848cd7e
SC
31023/* System header to define __stub macros and hopefully few prototypes,
31024 which can conflict with char $ac_func (); below.
31025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31026 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31027
a848cd7e
SC
31028#ifdef __STDC__
31029# include <limits.h>
31030#else
31031# include <assert.h>
31032#endif
ac1cb8d3
VS
31033
31034#undef $ac_func
31035
a848cd7e
SC
31036/* Override any gcc2 internal prototype to avoid an error. */
31037#ifdef __cplusplus
31038extern "C"
31039{
31040#endif
31041/* We use char because int might match the return type of a gcc2
31042 builtin and then its argument prototype would still apply. */
31043char $ac_func ();
31044/* The GNU C library defines this for functions which it implements
31045 to always fail with ENOSYS. Some functions are actually named
31046 something starting with __ and the normal name is an alias. */
31047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31048choke me
31049#else
31050char (*f) () = $ac_func;
31051#endif
31052#ifdef __cplusplus
31053}
31054#endif
31055
31056int
31057main ()
31058{
31059return f != $ac_func;
31060 ;
31061 return 0;
31062}
31063_ACEOF
31064rm -f conftest.$ac_objext conftest$ac_exeext
31065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31066 (eval $ac_link) 2>conftest.er1
a848cd7e 31067 ac_status=$?
ac1cb8d3
VS
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
a848cd7e
SC
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
89be85c2
VS
31073 { ac_try='test -z "$ac_c_werror_flag"
31074 || test ! -s conftest.err'
ac1cb8d3
VS
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31082 (eval $ac_try) 2>&5
31083 ac_status=$?
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); }; }; then
31086 eval "$as_ac_var=yes"
31087else
31088 echo "$as_me: failed program was:" >&5
31089sed 's/^/| /' conftest.$ac_ext >&5
31090
31091eval "$as_ac_var=no"
31092fi
ac1cb8d3
VS
31093rm -f conftest.err conftest.$ac_objext \
31094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31095fi
31096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31098if test `eval echo '${'$as_ac_var'}'` = yes; then
31099 cat >>confdefs.h <<_ACEOF
31100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31101_ACEOF
31102 break
31103fi
31104done
31105
31106
31107 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31108 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31109echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31110 wxUSE_SNGLINST_CHECKER=no
31111 fi
31112fi
31113
31114
31115for ac_func in timegm
31116do
31117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31118echo "$as_me:$LINENO: checking for $ac_func" >&5
31119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31120if eval "test \"\${$as_ac_var+set}\" = set"; then
31121 echo $ECHO_N "(cached) $ECHO_C" >&6
31122else
31123 cat >conftest.$ac_ext <<_ACEOF
31124/* confdefs.h. */
31125_ACEOF
31126cat confdefs.h >>conftest.$ac_ext
31127cat >>conftest.$ac_ext <<_ACEOF
31128/* end confdefs.h. */
ac1cb8d3
VS
31129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31131#define $ac_func innocuous_$ac_func
31132
a848cd7e
SC
31133/* System header to define __stub macros and hopefully few prototypes,
31134 which can conflict with char $ac_func (); below.
31135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31136 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31137
a848cd7e
SC
31138#ifdef __STDC__
31139# include <limits.h>
31140#else
31141# include <assert.h>
31142#endif
ac1cb8d3
VS
31143
31144#undef $ac_func
31145
a848cd7e
SC
31146/* Override any gcc2 internal prototype to avoid an error. */
31147#ifdef __cplusplus
31148extern "C"
31149{
31150#endif
31151/* We use char because int might match the return type of a gcc2
31152 builtin and then its argument prototype would still apply. */
31153char $ac_func ();
31154/* The GNU C library defines this for functions which it implements
31155 to always fail with ENOSYS. Some functions are actually named
31156 something starting with __ and the normal name is an alias. */
31157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31158choke me
31159#else
31160char (*f) () = $ac_func;
31161#endif
31162#ifdef __cplusplus
31163}
31164#endif
31165
31166int
31167main ()
31168{
31169return f != $ac_func;
31170 ;
31171 return 0;
31172}
31173_ACEOF
31174rm -f conftest.$ac_objext conftest$ac_exeext
31175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31176 (eval $ac_link) 2>conftest.er1
a848cd7e 31177 ac_status=$?
ac1cb8d3
VS
31178 grep -v '^ *+' conftest.er1 >conftest.err
31179 rm -f conftest.er1
31180 cat conftest.err >&5
a848cd7e
SC
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); } &&
89be85c2
VS
31183 { ac_try='test -z "$ac_c_werror_flag"
31184 || test ! -s conftest.err'
ac1cb8d3
VS
31185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31186 (eval $ac_try) 2>&5
31187 ac_status=$?
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); }; } &&
31190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192 (eval $ac_try) 2>&5
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; }; then
31196 eval "$as_ac_var=yes"
31197else
31198 echo "$as_me: failed program was:" >&5
31199sed 's/^/| /' conftest.$ac_ext >&5
31200
31201eval "$as_ac_var=no"
31202fi
ac1cb8d3
VS
31203rm -f conftest.err conftest.$ac_objext \
31204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31205fi
31206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31208if test `eval echo '${'$as_ac_var'}'` = yes; then
31209 cat >>confdefs.h <<_ACEOF
31210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31211_ACEOF
31212
31213fi
31214done
31215
31216
31217
31218
31219for ac_func in putenv setenv
31220do
31221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31222echo "$as_me:$LINENO: checking for $ac_func" >&5
31223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31224if eval "test \"\${$as_ac_var+set}\" = set"; then
31225 echo $ECHO_N "(cached) $ECHO_C" >&6
31226else
31227 cat >conftest.$ac_ext <<_ACEOF
31228/* confdefs.h. */
31229_ACEOF
31230cat confdefs.h >>conftest.$ac_ext
31231cat >>conftest.$ac_ext <<_ACEOF
31232/* end confdefs.h. */
ac1cb8d3
VS
31233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31235#define $ac_func innocuous_$ac_func
31236
a848cd7e
SC
31237/* System header to define __stub macros and hopefully few prototypes,
31238 which can conflict with char $ac_func (); below.
31239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31240 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31241
a848cd7e
SC
31242#ifdef __STDC__
31243# include <limits.h>
31244#else
31245# include <assert.h>
31246#endif
ac1cb8d3
VS
31247
31248#undef $ac_func
31249
a848cd7e
SC
31250/* Override any gcc2 internal prototype to avoid an error. */
31251#ifdef __cplusplus
31252extern "C"
31253{
31254#endif
31255/* We use char because int might match the return type of a gcc2
31256 builtin and then its argument prototype would still apply. */
31257char $ac_func ();
31258/* The GNU C library defines this for functions which it implements
31259 to always fail with ENOSYS. Some functions are actually named
31260 something starting with __ and the normal name is an alias. */
31261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31262choke me
31263#else
31264char (*f) () = $ac_func;
31265#endif
31266#ifdef __cplusplus
31267}
31268#endif
31269
31270int
31271main ()
31272{
31273return f != $ac_func;
31274 ;
31275 return 0;
31276}
31277_ACEOF
31278rm -f conftest.$ac_objext conftest$ac_exeext
31279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31280 (eval $ac_link) 2>conftest.er1
a848cd7e 31281 ac_status=$?
ac1cb8d3
VS
31282 grep -v '^ *+' conftest.er1 >conftest.err
31283 rm -f conftest.er1
31284 cat conftest.err >&5
a848cd7e
SC
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } &&
89be85c2
VS
31287 { ac_try='test -z "$ac_c_werror_flag"
31288 || test ! -s conftest.err'
ac1cb8d3
VS
31289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290 (eval $ac_try) 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; } &&
31294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31296 (eval $ac_try) 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
31300 eval "$as_ac_var=yes"
31301else
31302 echo "$as_me: failed program was:" >&5
31303sed 's/^/| /' conftest.$ac_ext >&5
31304
31305eval "$as_ac_var=no"
31306fi
ac1cb8d3
VS
31307rm -f conftest.err conftest.$ac_objext \
31308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31309fi
31310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31312if test `eval echo '${'$as_ac_var'}'` = yes; then
31313 cat >>confdefs.h <<_ACEOF
31314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31315_ACEOF
31316 break
31317fi
31318done
31319
31320
31321HAVE_SOME_SLEEP_FUNC=0
31322if test "$USE_BEOS" = 1; then
31323 cat >>confdefs.h <<\_ACEOF
31324#define HAVE_SLEEP 1
31325_ACEOF
31326
31327 HAVE_SOME_SLEEP_FUNC=1
31328fi
31329
31330if test "$USE_DARWIN" = 1; then
31331 cat >>confdefs.h <<\_ACEOF
31332#define HAVE_USLEEP 1
31333_ACEOF
31334
31335 HAVE_SOME_SLEEP_FUNC=1
31336fi
31337
31338if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31339 POSIX4_LINK=
31340
31341for ac_func in nanosleep
31342do
31343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31344echo "$as_me:$LINENO: checking for $ac_func" >&5
31345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31346if eval "test \"\${$as_ac_var+set}\" = set"; then
31347 echo $ECHO_N "(cached) $ECHO_C" >&6
31348else
31349 cat >conftest.$ac_ext <<_ACEOF
31350/* confdefs.h. */
31351_ACEOF
31352cat confdefs.h >>conftest.$ac_ext
31353cat >>conftest.$ac_ext <<_ACEOF
31354/* end confdefs.h. */
ac1cb8d3
VS
31355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31357#define $ac_func innocuous_$ac_func
31358
a848cd7e
SC
31359/* System header to define __stub macros and hopefully few prototypes,
31360 which can conflict with char $ac_func (); below.
31361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31363
a848cd7e
SC
31364#ifdef __STDC__
31365# include <limits.h>
31366#else
31367# include <assert.h>
31368#endif
ac1cb8d3
VS
31369
31370#undef $ac_func
31371
a848cd7e
SC
31372/* Override any gcc2 internal prototype to avoid an error. */
31373#ifdef __cplusplus
31374extern "C"
31375{
31376#endif
31377/* We use char because int might match the return type of a gcc2
31378 builtin and then its argument prototype would still apply. */
31379char $ac_func ();
31380/* The GNU C library defines this for functions which it implements
31381 to always fail with ENOSYS. Some functions are actually named
31382 something starting with __ and the normal name is an alias. */
31383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31384choke me
31385#else
31386char (*f) () = $ac_func;
31387#endif
31388#ifdef __cplusplus
31389}
31390#endif
31391
31392int
31393main ()
31394{
31395return f != $ac_func;
31396 ;
31397 return 0;
31398}
31399_ACEOF
31400rm -f conftest.$ac_objext conftest$ac_exeext
31401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31402 (eval $ac_link) 2>conftest.er1
a848cd7e 31403 ac_status=$?
ac1cb8d3
VS
31404 grep -v '^ *+' conftest.er1 >conftest.err
31405 rm -f conftest.er1
31406 cat conftest.err >&5
a848cd7e
SC
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); } &&
89be85c2
VS
31409 { ac_try='test -z "$ac_c_werror_flag"
31410 || test ! -s conftest.err'
ac1cb8d3
VS
31411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31412 (eval $ac_try) 2>&5
31413 ac_status=$?
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); }; } &&
31416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31418 (eval $ac_try) 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; }; then
31422 eval "$as_ac_var=yes"
31423else
31424 echo "$as_me: failed program was:" >&5
31425sed 's/^/| /' conftest.$ac_ext >&5
31426
31427eval "$as_ac_var=no"
31428fi
ac1cb8d3
VS
31429rm -f conftest.err conftest.$ac_objext \
31430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31431fi
31432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31434if test `eval echo '${'$as_ac_var'}'` = yes; then
31435 cat >>confdefs.h <<_ACEOF
31436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31437_ACEOF
31438 cat >>confdefs.h <<\_ACEOF
31439#define HAVE_NANOSLEEP 1
31440_ACEOF
31441
31442else
31443
31444 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31445echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31446if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31447 echo $ECHO_N "(cached) $ECHO_C" >&6
31448else
31449 ac_check_lib_save_LIBS=$LIBS
31450LIBS="-lposix4 $LIBS"
31451cat >conftest.$ac_ext <<_ACEOF
31452/* confdefs.h. */
31453_ACEOF
31454cat confdefs.h >>conftest.$ac_ext
31455cat >>conftest.$ac_ext <<_ACEOF
31456/* end confdefs.h. */
31457
31458/* Override any gcc2 internal prototype to avoid an error. */
31459#ifdef __cplusplus
31460extern "C"
31461#endif
31462/* We use char because int might match the return type of a gcc2
31463 builtin and then its argument prototype would still apply. */
31464char nanosleep ();
31465int
31466main ()
31467{
31468nanosleep ();
31469 ;
31470 return 0;
31471}
31472_ACEOF
31473rm -f conftest.$ac_objext conftest$ac_exeext
31474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31475 (eval $ac_link) 2>conftest.er1
a848cd7e 31476 ac_status=$?
ac1cb8d3
VS
31477 grep -v '^ *+' conftest.er1 >conftest.err
31478 rm -f conftest.er1
31479 cat conftest.err >&5
a848cd7e
SC
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } &&
89be85c2
VS
31482 { ac_try='test -z "$ac_c_werror_flag"
31483 || test ! -s conftest.err'
ac1cb8d3
VS
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; } &&
31489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31492 ac_status=$?
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; }; then
31495 ac_cv_lib_posix4_nanosleep=yes
31496else
31497 echo "$as_me: failed program was:" >&5
31498sed 's/^/| /' conftest.$ac_ext >&5
31499
31500ac_cv_lib_posix4_nanosleep=no
31501fi
ac1cb8d3
VS
31502rm -f conftest.err conftest.$ac_objext \
31503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31504LIBS=$ac_check_lib_save_LIBS
31505fi
31506echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31507echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31508if test $ac_cv_lib_posix4_nanosleep = yes; then
31509
31510 cat >>confdefs.h <<\_ACEOF
31511#define HAVE_NANOSLEEP 1
31512_ACEOF
31513
31514 POSIX4_LINK=" -lposix4"
31515
31516else
31517
31518
31519for ac_func in usleep
31520do
31521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31522echo "$as_me:$LINENO: checking for $ac_func" >&5
31523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31524if eval "test \"\${$as_ac_var+set}\" = set"; then
31525 echo $ECHO_N "(cached) $ECHO_C" >&6
31526else
31527 cat >conftest.$ac_ext <<_ACEOF
31528/* confdefs.h. */
31529_ACEOF
31530cat confdefs.h >>conftest.$ac_ext
31531cat >>conftest.$ac_ext <<_ACEOF
31532/* end confdefs.h. */
ac1cb8d3
VS
31533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31535#define $ac_func innocuous_$ac_func
31536
a848cd7e
SC
31537/* System header to define __stub macros and hopefully few prototypes,
31538 which can conflict with char $ac_func (); below.
31539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31540 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31541
a848cd7e
SC
31542#ifdef __STDC__
31543# include <limits.h>
31544#else
31545# include <assert.h>
31546#endif
ac1cb8d3
VS
31547
31548#undef $ac_func
31549
a848cd7e
SC
31550/* Override any gcc2 internal prototype to avoid an error. */
31551#ifdef __cplusplus
31552extern "C"
31553{
31554#endif
31555/* We use char because int might match the return type of a gcc2
31556 builtin and then its argument prototype would still apply. */
31557char $ac_func ();
31558/* The GNU C library defines this for functions which it implements
31559 to always fail with ENOSYS. Some functions are actually named
31560 something starting with __ and the normal name is an alias. */
31561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31562choke me
31563#else
31564char (*f) () = $ac_func;
31565#endif
31566#ifdef __cplusplus
31567}
31568#endif
31569
31570int
31571main ()
31572{
31573return f != $ac_func;
31574 ;
31575 return 0;
31576}
31577_ACEOF
31578rm -f conftest.$ac_objext conftest$ac_exeext
31579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31580 (eval $ac_link) 2>conftest.er1
a848cd7e 31581 ac_status=$?
ac1cb8d3
VS
31582 grep -v '^ *+' conftest.er1 >conftest.err
31583 rm -f conftest.er1
31584 cat conftest.err >&5
a848cd7e
SC
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); } &&
89be85c2
VS
31587 { ac_try='test -z "$ac_c_werror_flag"
31588 || test ! -s conftest.err'
ac1cb8d3
VS
31589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31590 (eval $ac_try) 2>&5
31591 ac_status=$?
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); }; } &&
31594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31596 (eval $ac_try) 2>&5
31597 ac_status=$?
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; }; then
31600 eval "$as_ac_var=yes"
31601else
31602 echo "$as_me: failed program was:" >&5
31603sed 's/^/| /' conftest.$ac_ext >&5
31604
31605eval "$as_ac_var=no"
31606fi
ac1cb8d3
VS
31607rm -f conftest.err conftest.$ac_objext \
31608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31609fi
31610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31612if test `eval echo '${'$as_ac_var'}'` = yes; then
31613 cat >>confdefs.h <<_ACEOF
31614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31615_ACEOF
31616 cat >>confdefs.h <<\_ACEOF
31617#define HAVE_USLEEP 1
31618_ACEOF
31619
31620else
31621 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31622echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31623
31624fi
31625done
31626
31627
31628
31629fi
31630
31631
31632
31633fi
31634done
31635
31636fi
31637
31638
31639
31640for ac_func in uname gethostname
31641do
31642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31643echo "$as_me:$LINENO: checking for $ac_func" >&5
31644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31645if eval "test \"\${$as_ac_var+set}\" = set"; then
31646 echo $ECHO_N "(cached) $ECHO_C" >&6
31647else
31648 cat >conftest.$ac_ext <<_ACEOF
31649/* confdefs.h. */
31650_ACEOF
31651cat confdefs.h >>conftest.$ac_ext
31652cat >>conftest.$ac_ext <<_ACEOF
31653/* end confdefs.h. */
ac1cb8d3
VS
31654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31656#define $ac_func innocuous_$ac_func
31657
a848cd7e
SC
31658/* System header to define __stub macros and hopefully few prototypes,
31659 which can conflict with char $ac_func (); below.
31660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31661 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31662
a848cd7e
SC
31663#ifdef __STDC__
31664# include <limits.h>
31665#else
31666# include <assert.h>
31667#endif
ac1cb8d3
VS
31668
31669#undef $ac_func
31670
a848cd7e
SC
31671/* Override any gcc2 internal prototype to avoid an error. */
31672#ifdef __cplusplus
31673extern "C"
31674{
31675#endif
31676/* We use char because int might match the return type of a gcc2
31677 builtin and then its argument prototype would still apply. */
31678char $ac_func ();
31679/* The GNU C library defines this for functions which it implements
31680 to always fail with ENOSYS. Some functions are actually named
31681 something starting with __ and the normal name is an alias. */
31682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31683choke me
31684#else
31685char (*f) () = $ac_func;
31686#endif
31687#ifdef __cplusplus
31688}
31689#endif
31690
31691int
31692main ()
31693{
31694return f != $ac_func;
31695 ;
31696 return 0;
31697}
31698_ACEOF
31699rm -f conftest.$ac_objext conftest$ac_exeext
31700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31701 (eval $ac_link) 2>conftest.er1
a848cd7e 31702 ac_status=$?
ac1cb8d3
VS
31703 grep -v '^ *+' conftest.er1 >conftest.err
31704 rm -f conftest.er1
31705 cat conftest.err >&5
a848cd7e
SC
31706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707 (exit $ac_status); } &&
89be85c2
VS
31708 { ac_try='test -z "$ac_c_werror_flag"
31709 || test ! -s conftest.err'
ac1cb8d3
VS
31710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711 (eval $ac_try) 2>&5
31712 ac_status=$?
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; } &&
31715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717 (eval $ac_try) 2>&5
31718 ac_status=$?
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); }; }; then
31721 eval "$as_ac_var=yes"
31722else
31723 echo "$as_me: failed program was:" >&5
31724sed 's/^/| /' conftest.$ac_ext >&5
31725
31726eval "$as_ac_var=no"
31727fi
ac1cb8d3
VS
31728rm -f conftest.err conftest.$ac_objext \
31729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31730fi
31731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31732echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31733if test `eval echo '${'$as_ac_var'}'` = yes; then
31734 cat >>confdefs.h <<_ACEOF
31735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31736_ACEOF
31737 break
31738fi
31739done
31740
31741
31742
31743
31744ac_ext=cc
31745ac_cpp='$CXXCPP $CPPFLAGS'
31746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31749
31750
31751
31752for ac_func in strtok_r
31753do
31754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31755echo "$as_me:$LINENO: checking for $ac_func" >&5
31756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31757if eval "test \"\${$as_ac_var+set}\" = set"; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31759else
31760 cat >conftest.$ac_ext <<_ACEOF
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
ac1cb8d3
VS
31766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31768#define $ac_func innocuous_$ac_func
31769
a848cd7e
SC
31770/* System header to define __stub macros and hopefully few prototypes,
31771 which can conflict with char $ac_func (); below.
31772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31773 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31774
a848cd7e
SC
31775#ifdef __STDC__
31776# include <limits.h>
31777#else
31778# include <assert.h>
31779#endif
ac1cb8d3
VS
31780
31781#undef $ac_func
31782
a848cd7e
SC
31783/* Override any gcc2 internal prototype to avoid an error. */
31784#ifdef __cplusplus
31785extern "C"
31786{
31787#endif
31788/* We use char because int might match the return type of a gcc2
31789 builtin and then its argument prototype would still apply. */
31790char $ac_func ();
31791/* The GNU C library defines this for functions which it implements
31792 to always fail with ENOSYS. Some functions are actually named
31793 something starting with __ and the normal name is an alias. */
31794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31795choke me
31796#else
31797char (*f) () = $ac_func;
31798#endif
31799#ifdef __cplusplus
31800}
31801#endif
31802
31803int
31804main ()
31805{
31806return f != $ac_func;
31807 ;
31808 return 0;
31809}
31810_ACEOF
31811rm -f conftest.$ac_objext conftest$ac_exeext
31812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31813 (eval $ac_link) 2>conftest.er1
a848cd7e 31814 ac_status=$?
ac1cb8d3
VS
31815 grep -v '^ *+' conftest.er1 >conftest.err
31816 rm -f conftest.er1
31817 cat conftest.err >&5
a848cd7e
SC
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); } &&
89be85c2
VS
31820 { ac_try='test -z "$ac_cxx_werror_flag"
31821 || test ! -s conftest.err'
ac1cb8d3
VS
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31824 ac_status=$?
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; } &&
31827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 eval "$as_ac_var=yes"
31834else
31835 echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
31838eval "$as_ac_var=no"
31839fi
ac1cb8d3
VS
31840rm -f conftest.err conftest.$ac_objext \
31841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31842fi
31843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31845if test `eval echo '${'$as_ac_var'}'` = yes; then
31846 cat >>confdefs.h <<_ACEOF
31847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31848_ACEOF
31849
31850fi
31851done
31852
31853
31854ac_ext=c
31855ac_cpp='$CPP $CPPFLAGS'
31856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31858ac_compiler_gnu=$ac_cv_c_compiler_gnu
31859
31860
31861INET_LINK=
31862
31863for ac_func in inet_addr
31864do
31865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31866echo "$as_me:$LINENO: checking for $ac_func" >&5
31867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31868if eval "test \"\${$as_ac_var+set}\" = set"; then
31869 echo $ECHO_N "(cached) $ECHO_C" >&6
31870else
31871 cat >conftest.$ac_ext <<_ACEOF
31872/* confdefs.h. */
31873_ACEOF
31874cat confdefs.h >>conftest.$ac_ext
31875cat >>conftest.$ac_ext <<_ACEOF
31876/* end confdefs.h. */
ac1cb8d3
VS
31877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31879#define $ac_func innocuous_$ac_func
31880
a848cd7e
SC
31881/* System header to define __stub macros and hopefully few prototypes,
31882 which can conflict with char $ac_func (); below.
31883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31884 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31885
a848cd7e
SC
31886#ifdef __STDC__
31887# include <limits.h>
31888#else
31889# include <assert.h>
31890#endif
ac1cb8d3
VS
31891
31892#undef $ac_func
31893
a848cd7e
SC
31894/* Override any gcc2 internal prototype to avoid an error. */
31895#ifdef __cplusplus
31896extern "C"
31897{
31898#endif
31899/* We use char because int might match the return type of a gcc2
31900 builtin and then its argument prototype would still apply. */
31901char $ac_func ();
31902/* The GNU C library defines this for functions which it implements
31903 to always fail with ENOSYS. Some functions are actually named
31904 something starting with __ and the normal name is an alias. */
31905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31906choke me
31907#else
31908char (*f) () = $ac_func;
31909#endif
31910#ifdef __cplusplus
31911}
31912#endif
31913
31914int
31915main ()
31916{
31917return f != $ac_func;
31918 ;
31919 return 0;
31920}
31921_ACEOF
31922rm -f conftest.$ac_objext conftest$ac_exeext
31923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31924 (eval $ac_link) 2>conftest.er1
a848cd7e 31925 ac_status=$?
ac1cb8d3
VS
31926 grep -v '^ *+' conftest.er1 >conftest.err
31927 rm -f conftest.er1
31928 cat conftest.err >&5
a848cd7e
SC
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); } &&
89be85c2
VS
31931 { ac_try='test -z "$ac_c_werror_flag"
31932 || test ! -s conftest.err'
ac1cb8d3
VS
31933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31934 (eval $ac_try) 2>&5
31935 ac_status=$?
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); }; } &&
31938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; }; then
31944 eval "$as_ac_var=yes"
31945else
31946 echo "$as_me: failed program was:" >&5
31947sed 's/^/| /' conftest.$ac_ext >&5
31948
31949eval "$as_ac_var=no"
31950fi
ac1cb8d3
VS
31951rm -f conftest.err conftest.$ac_objext \
31952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31953fi
31954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31956if test `eval echo '${'$as_ac_var'}'` = yes; then
31957 cat >>confdefs.h <<_ACEOF
31958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31959_ACEOF
31960 cat >>confdefs.h <<\_ACEOF
31961#define HAVE_INET_ADDR 1
31962_ACEOF
31963
31964else
31965
31966 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31967echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31968if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31969 echo $ECHO_N "(cached) $ECHO_C" >&6
31970else
31971 ac_check_lib_save_LIBS=$LIBS
31972LIBS="-lnsl $LIBS"
31973cat >conftest.$ac_ext <<_ACEOF
31974/* confdefs.h. */
31975_ACEOF
31976cat confdefs.h >>conftest.$ac_ext
31977cat >>conftest.$ac_ext <<_ACEOF
31978/* end confdefs.h. */
31979
31980/* Override any gcc2 internal prototype to avoid an error. */
31981#ifdef __cplusplus
31982extern "C"
31983#endif
31984/* We use char because int might match the return type of a gcc2
31985 builtin and then its argument prototype would still apply. */
31986char inet_addr ();
31987int
31988main ()
31989{
31990inet_addr ();
31991 ;
31992 return 0;
31993}
31994_ACEOF
31995rm -f conftest.$ac_objext conftest$ac_exeext
31996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31997 (eval $ac_link) 2>conftest.er1
a848cd7e 31998 ac_status=$?
ac1cb8d3
VS
31999 grep -v '^ *+' conftest.er1 >conftest.err
32000 rm -f conftest.er1
32001 cat conftest.err >&5
a848cd7e
SC
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
89be85c2
VS
32004 { ac_try='test -z "$ac_c_werror_flag"
32005 || test ! -s conftest.err'
ac1cb8d3
VS
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32008 ac_status=$?
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; } &&
32011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
32014 ac_status=$?
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; }; then
32017 ac_cv_lib_nsl_inet_addr=yes
32018else
32019 echo "$as_me: failed program was:" >&5
32020sed 's/^/| /' conftest.$ac_ext >&5
32021
32022ac_cv_lib_nsl_inet_addr=no
32023fi
ac1cb8d3
VS
32024rm -f conftest.err conftest.$ac_objext \
32025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32026LIBS=$ac_check_lib_save_LIBS
32027fi
32028echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32029echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32030if test $ac_cv_lib_nsl_inet_addr = yes; then
32031 INET_LINK="nsl"
32032else
32033
32034 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32035echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32036if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32037 echo $ECHO_N "(cached) $ECHO_C" >&6
32038else
32039 ac_check_lib_save_LIBS=$LIBS
32040LIBS="-lresolv $LIBS"
32041cat >conftest.$ac_ext <<_ACEOF
32042/* confdefs.h. */
32043_ACEOF
32044cat confdefs.h >>conftest.$ac_ext
32045cat >>conftest.$ac_ext <<_ACEOF
32046/* end confdefs.h. */
32047
32048/* Override any gcc2 internal prototype to avoid an error. */
32049#ifdef __cplusplus
32050extern "C"
32051#endif
32052/* We use char because int might match the return type of a gcc2
32053 builtin and then its argument prototype would still apply. */
32054char inet_addr ();
32055int
32056main ()
32057{
32058inet_addr ();
32059 ;
32060 return 0;
32061}
32062_ACEOF
32063rm -f conftest.$ac_objext conftest$ac_exeext
32064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32065 (eval $ac_link) 2>conftest.er1
a848cd7e 32066 ac_status=$?
ac1cb8d3
VS
32067 grep -v '^ *+' conftest.er1 >conftest.err
32068 rm -f conftest.er1
32069 cat conftest.err >&5
a848cd7e
SC
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); } &&
89be85c2
VS
32072 { ac_try='test -z "$ac_c_werror_flag"
32073 || test ! -s conftest.err'
ac1cb8d3
VS
32074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32075 (eval $ac_try) 2>&5
32076 ac_status=$?
32077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 (exit $ac_status); }; } &&
32079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081 (eval $ac_try) 2>&5
32082 ac_status=$?
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; }; then
32085 ac_cv_lib_resolv_inet_addr=yes
32086else
32087 echo "$as_me: failed program was:" >&5
32088sed 's/^/| /' conftest.$ac_ext >&5
32089
32090ac_cv_lib_resolv_inet_addr=no
32091fi
ac1cb8d3
VS
32092rm -f conftest.err conftest.$ac_objext \
32093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32094LIBS=$ac_check_lib_save_LIBS
32095fi
32096echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32097echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32098if test $ac_cv_lib_resolv_inet_addr = yes; then
32099 INET_LINK="resolv"
32100else
32101
32102 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32103echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32104if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32105 echo $ECHO_N "(cached) $ECHO_C" >&6
32106else
32107 ac_check_lib_save_LIBS=$LIBS
32108LIBS="-lsocket $LIBS"
32109cat >conftest.$ac_ext <<_ACEOF
32110/* confdefs.h. */
32111_ACEOF
32112cat confdefs.h >>conftest.$ac_ext
32113cat >>conftest.$ac_ext <<_ACEOF
32114/* end confdefs.h. */
32115
32116/* Override any gcc2 internal prototype to avoid an error. */
32117#ifdef __cplusplus
32118extern "C"
32119#endif
32120/* We use char because int might match the return type of a gcc2
32121 builtin and then its argument prototype would still apply. */
32122char inet_addr ();
32123int
32124main ()
32125{
32126inet_addr ();
32127 ;
32128 return 0;
32129}
32130_ACEOF
32131rm -f conftest.$ac_objext conftest$ac_exeext
32132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32133 (eval $ac_link) 2>conftest.er1
a848cd7e 32134 ac_status=$?
ac1cb8d3
VS
32135 grep -v '^ *+' conftest.er1 >conftest.err
32136 rm -f conftest.er1
32137 cat conftest.err >&5
a848cd7e
SC
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); } &&
89be85c2
VS
32140 { ac_try='test -z "$ac_c_werror_flag"
32141 || test ! -s conftest.err'
ac1cb8d3
VS
32142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32143 (eval $ac_try) 2>&5
32144 ac_status=$?
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); }; } &&
32147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32149 (eval $ac_try) 2>&5
32150 ac_status=$?
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); }; }; then
32153 ac_cv_lib_socket_inet_addr=yes
32154else
32155 echo "$as_me: failed program was:" >&5
32156sed 's/^/| /' conftest.$ac_ext >&5
32157
32158ac_cv_lib_socket_inet_addr=no
32159fi
ac1cb8d3
VS
32160rm -f conftest.err conftest.$ac_objext \
32161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32162LIBS=$ac_check_lib_save_LIBS
32163fi
32164echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32165echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32166if test $ac_cv_lib_socket_inet_addr = yes; then
32167 INET_LINK="socket"
32168
32169fi
32170
32171
32172
32173fi
32174
32175
32176
32177fi
32178
32179
32180
32181fi
32182done
32183
32184
32185
32186for ac_func in inet_aton
32187do
32188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32189echo "$as_me:$LINENO: checking for $ac_func" >&5
32190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32191if eval "test \"\${$as_ac_var+set}\" = set"; then
32192 echo $ECHO_N "(cached) $ECHO_C" >&6
32193else
32194 cat >conftest.$ac_ext <<_ACEOF
32195/* confdefs.h. */
32196_ACEOF
32197cat confdefs.h >>conftest.$ac_ext
32198cat >>conftest.$ac_ext <<_ACEOF
32199/* end confdefs.h. */
ac1cb8d3
VS
32200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32202#define $ac_func innocuous_$ac_func
32203
a848cd7e
SC
32204/* System header to define __stub macros and hopefully few prototypes,
32205 which can conflict with char $ac_func (); below.
32206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32207 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32208
a848cd7e
SC
32209#ifdef __STDC__
32210# include <limits.h>
32211#else
32212# include <assert.h>
32213#endif
ac1cb8d3
VS
32214
32215#undef $ac_func
32216
a848cd7e
SC
32217/* Override any gcc2 internal prototype to avoid an error. */
32218#ifdef __cplusplus
32219extern "C"
32220{
32221#endif
32222/* We use char because int might match the return type of a gcc2
32223 builtin and then its argument prototype would still apply. */
32224char $ac_func ();
32225/* The GNU C library defines this for functions which it implements
32226 to always fail with ENOSYS. Some functions are actually named
32227 something starting with __ and the normal name is an alias. */
32228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32229choke me
32230#else
32231char (*f) () = $ac_func;
32232#endif
32233#ifdef __cplusplus
32234}
32235#endif
32236
32237int
32238main ()
32239{
32240return f != $ac_func;
32241 ;
32242 return 0;
32243}
32244_ACEOF
32245rm -f conftest.$ac_objext conftest$ac_exeext
32246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32247 (eval $ac_link) 2>conftest.er1
a848cd7e 32248 ac_status=$?
ac1cb8d3
VS
32249 grep -v '^ *+' conftest.er1 >conftest.err
32250 rm -f conftest.er1
32251 cat conftest.err >&5
a848cd7e
SC
32252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253 (exit $ac_status); } &&
89be85c2
VS
32254 { ac_try='test -z "$ac_c_werror_flag"
32255 || test ! -s conftest.err'
ac1cb8d3
VS
32256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32257 (eval $ac_try) 2>&5
32258 ac_status=$?
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; } &&
32261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32263 (eval $ac_try) 2>&5
32264 ac_status=$?
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); }; }; then
32267 eval "$as_ac_var=yes"
32268else
32269 echo "$as_me: failed program was:" >&5
32270sed 's/^/| /' conftest.$ac_ext >&5
32271
32272eval "$as_ac_var=no"
32273fi
ac1cb8d3
VS
32274rm -f conftest.err conftest.$ac_objext \
32275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32276fi
32277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32279if test `eval echo '${'$as_ac_var'}'` = yes; then
32280 cat >>confdefs.h <<_ACEOF
32281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32282_ACEOF
32283 cat >>confdefs.h <<\_ACEOF
32284#define HAVE_INET_ATON 1
32285_ACEOF
32286
32287else
32288
32289 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32290echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32291echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32292if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32293 echo $ECHO_N "(cached) $ECHO_C" >&6
32294else
32295 ac_check_lib_save_LIBS=$LIBS
32296LIBS="-l$INET_LINK $LIBS"
32297cat >conftest.$ac_ext <<_ACEOF
32298/* confdefs.h. */
32299_ACEOF
32300cat confdefs.h >>conftest.$ac_ext
32301cat >>conftest.$ac_ext <<_ACEOF
32302/* end confdefs.h. */
32303
32304/* Override any gcc2 internal prototype to avoid an error. */
32305#ifdef __cplusplus
32306extern "C"
32307#endif
32308/* We use char because int might match the return type of a gcc2
32309 builtin and then its argument prototype would still apply. */
32310char inet_aton ();
32311int
32312main ()
32313{
32314inet_aton ();
32315 ;
32316 return 0;
32317}
32318_ACEOF
32319rm -f conftest.$ac_objext conftest$ac_exeext
32320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32321 (eval $ac_link) 2>conftest.er1
a848cd7e 32322 ac_status=$?
ac1cb8d3
VS
32323 grep -v '^ *+' conftest.er1 >conftest.err
32324 rm -f conftest.er1
32325 cat conftest.err >&5
a848cd7e
SC
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
89be85c2
VS
32328 { ac_try='test -z "$ac_c_werror_flag"
32329 || test ! -s conftest.err'
ac1cb8d3
VS
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32332 ac_status=$?
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; } &&
32335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32337 (eval $ac_try) 2>&5
32338 ac_status=$?
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); }; }; then
32341 eval "$as_ac_Lib=yes"
32342else
32343 echo "$as_me: failed program was:" >&5
32344sed 's/^/| /' conftest.$ac_ext >&5
32345
32346eval "$as_ac_Lib=no"
32347fi
ac1cb8d3
VS
32348rm -f conftest.err conftest.$ac_objext \
32349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32350LIBS=$ac_check_lib_save_LIBS
32351fi
32352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32353echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32354if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32355 cat >>confdefs.h <<\_ACEOF
32356#define HAVE_INET_ATON 1
32357_ACEOF
32358
32359fi
32360
32361
32362fi
32363done
32364
32365
32366if test "x$INET_LINK" != "x"; then
32367 cat >>confdefs.h <<\_ACEOF
32368#define HAVE_INET_ADDR 1
32369_ACEOF
32370
32371 INET_LINK=" -l$INET_LINK"
32372fi
32373
32374fi
32375
32376
32377
32378EXTRALIBS_ESD=
32379echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32380echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32381if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32382 echo $ECHO_N "(cached) $ECHO_C" >&6
32383else
32384 ac_check_lib_save_LIBS=$LIBS
32385LIBS="-lesd $LIBS"
32386cat >conftest.$ac_ext <<_ACEOF
32387/* confdefs.h. */
32388_ACEOF
32389cat confdefs.h >>conftest.$ac_ext
32390cat >>conftest.$ac_ext <<_ACEOF
32391/* end confdefs.h. */
32392
32393/* Override any gcc2 internal prototype to avoid an error. */
32394#ifdef __cplusplus
32395extern "C"
32396#endif
32397/* We use char because int might match the return type of a gcc2
32398 builtin and then its argument prototype would still apply. */
32399char esd_close ();
32400int
32401main ()
32402{
32403esd_close ();
32404 ;
32405 return 0;
32406}
32407_ACEOF
32408rm -f conftest.$ac_objext conftest$ac_exeext
32409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32410 (eval $ac_link) 2>conftest.er1
a848cd7e 32411 ac_status=$?
ac1cb8d3
VS
32412 grep -v '^ *+' conftest.er1 >conftest.err
32413 rm -f conftest.er1
32414 cat conftest.err >&5
a848cd7e
SC
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); } &&
89be85c2
VS
32417 { ac_try='test -z "$ac_c_werror_flag"
32418 || test ! -s conftest.err'
ac1cb8d3
VS
32419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32420 (eval $ac_try) 2>&5
32421 ac_status=$?
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); }; } &&
32424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32426 (eval $ac_try) 2>&5
32427 ac_status=$?
32428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 (exit $ac_status); }; }; then
32430 ac_cv_lib_esd_esd_close=yes
32431else
32432 echo "$as_me: failed program was:" >&5
32433sed 's/^/| /' conftest.$ac_ext >&5
32434
32435ac_cv_lib_esd_esd_close=no
32436fi
ac1cb8d3
VS
32437rm -f conftest.err conftest.$ac_objext \
32438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32439LIBS=$ac_check_lib_save_LIBS
32440fi
32441echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32442echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32443if test $ac_cv_lib_esd_esd_close = yes; then
32444
32445
32446for ac_header in esd.h
32447do
32448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32449if eval "test \"\${$as_ac_Header+set}\" = set"; then
32450 echo "$as_me:$LINENO: checking for $ac_header" >&5
32451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32452if eval "test \"\${$as_ac_Header+set}\" = set"; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
32454fi
32455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32457else
32458 # Is the header compilable?
32459echo "$as_me:$LINENO: checking $ac_header usability" >&5
32460echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32461cat >conftest.$ac_ext <<_ACEOF
32462/* confdefs.h. */
32463_ACEOF
32464cat confdefs.h >>conftest.$ac_ext
32465cat >>conftest.$ac_ext <<_ACEOF
32466/* end confdefs.h. */
32467$ac_includes_default
32468#include <$ac_header>
32469_ACEOF
32470rm -f conftest.$ac_objext
32471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32472 (eval $ac_compile) 2>conftest.er1
a848cd7e 32473 ac_status=$?
ac1cb8d3
VS
32474 grep -v '^ *+' conftest.er1 >conftest.err
32475 rm -f conftest.er1
32476 cat conftest.err >&5
a848cd7e
SC
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } &&
89be85c2
VS
32479 { ac_try='test -z "$ac_c_werror_flag"
32480 || test ! -s conftest.err'
ac1cb8d3
VS
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; } &&
32486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32488 (eval $ac_try) 2>&5
32489 ac_status=$?
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
32492 ac_header_compiler=yes
32493else
32494 echo "$as_me: failed program was:" >&5
32495sed 's/^/| /' conftest.$ac_ext >&5
32496
32497ac_header_compiler=no
32498fi
ac1cb8d3 32499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32501echo "${ECHO_T}$ac_header_compiler" >&6
32502
32503# Is the header present?
32504echo "$as_me:$LINENO: checking $ac_header presence" >&5
32505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32506cat >conftest.$ac_ext <<_ACEOF
32507/* confdefs.h. */
32508_ACEOF
32509cat confdefs.h >>conftest.$ac_ext
32510cat >>conftest.$ac_ext <<_ACEOF
32511/* end confdefs.h. */
32512#include <$ac_header>
32513_ACEOF
32514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32516 ac_status=$?
32517 grep -v '^ *+' conftest.er1 >conftest.err
32518 rm -f conftest.er1
32519 cat conftest.err >&5
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); } >/dev/null; then
32522 if test -s conftest.err; then
32523 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32525 else
32526 ac_cpp_err=
32527 fi
32528else
32529 ac_cpp_err=yes
32530fi
32531if test -z "$ac_cpp_err"; then
32532 ac_header_preproc=yes
32533else
32534 echo "$as_me: failed program was:" >&5
32535sed 's/^/| /' conftest.$ac_ext >&5
32536
32537 ac_header_preproc=no
32538fi
32539rm -f conftest.err conftest.$ac_ext
32540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32541echo "${ECHO_T}$ac_header_preproc" >&6
32542
32543# So? What about this header?
ac1cb8d3
VS
32544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32545 yes:no: )
a848cd7e
SC
32546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32550 ac_header_preproc=yes
a848cd7e 32551 ;;
ac1cb8d3 32552 no:yes:* )
a848cd7e
SC
32553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32560echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32565 (
32566 cat <<\_ASBOX
ac1cb8d3
VS
32567## ----------------------------------------- ##
32568## Report this to wx-dev@lists.wxwidgets.org ##
32569## ----------------------------------------- ##
a848cd7e
SC
32570_ASBOX
32571 ) |
32572 sed "s/^/$as_me: WARNING: /" >&2
32573 ;;
32574esac
32575echo "$as_me:$LINENO: checking for $ac_header" >&5
32576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32577if eval "test \"\${$as_ac_Header+set}\" = set"; then
32578 echo $ECHO_N "(cached) $ECHO_C" >&6
32579else
ac1cb8d3 32580 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32581fi
32582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32584
32585fi
32586if test `eval echo '${'$as_ac_Header'}'` = yes; then
32587 cat >>confdefs.h <<_ACEOF
32588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32589_ACEOF
32590
32591 EXTRALIBS_ESD="-lesd"
32592
32593fi
32594
32595done
32596
32597
32598fi
32599
32600
32601
32602echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32603echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32604cat >conftest.$ac_ext <<_ACEOF
32605/* confdefs.h. */
32606_ACEOF
32607cat confdefs.h >>conftest.$ac_ext
32608cat >>conftest.$ac_ext <<_ACEOF
32609/* end confdefs.h. */
32610#ifdef __linux__
32611 #include <linux/cdrom.h>
32612 #else
32613 /* For Solaris */
32614 #include <sys/cdio.h>
32615 #endif
32616
32617int
32618main ()
32619{
32620struct cdrom_tocentry entry, old_entry;
32621 ;
32622 return 0;
32623}
32624_ACEOF
32625rm -f conftest.$ac_objext
32626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32627 (eval $ac_compile) 2>conftest.er1
a848cd7e 32628 ac_status=$?
ac1cb8d3
VS
32629 grep -v '^ *+' conftest.er1 >conftest.err
32630 rm -f conftest.er1
32631 cat conftest.err >&5
a848cd7e
SC
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); } &&
89be85c2
VS
32634 { ac_try='test -z "$ac_c_werror_flag"
32635 || test ! -s conftest.err'
ac1cb8d3
VS
32636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32637 (eval $ac_try) 2>&5
32638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; } &&
32641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32643 (eval $ac_try) 2>&5
32644 ac_status=$?
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); }; }; then
32647 echo "$as_me:$LINENO: result: yes" >&5
32648echo "${ECHO_T}yes" >&6
32649 cat >>confdefs.h <<\_ACEOF
32650#define HAVE_KNOWN_CDROM_INTERFACE 1
32651_ACEOF
32652
32653else
32654 echo "$as_me: failed program was:" >&5
32655sed 's/^/| /' conftest.$ac_ext >&5
32656
32657echo "$as_me:$LINENO: result: no" >&5
32658echo "${ECHO_T}no" >&6
32659fi
ac1cb8d3 32660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32661
32662
32663cat >confcache <<\_ACEOF
32664# This file is a shell script that caches the results of configure
32665# tests run on this system so they can be shared between configure
32666# scripts and configure runs, see configure's option --config-cache.
32667# It is not useful on other systems. If it contains results you don't
32668# want to keep, you may remove or edit it.
32669#
32670# config.status only pays attention to the cache file if you give it
32671# the --recheck option to rerun configure.
32672#
32673# `ac_cv_env_foo' variables (set or unset) will be overridden when
32674# loading this file, other *unset* `ac_cv_foo' will be assigned the
32675# following values.
32676
32677_ACEOF
32678
32679# The following way of writing the cache mishandles newlines in values,
32680# but we know of no workaround that is simple, portable, and efficient.
32681# So, don't put newlines in cache variables' values.
32682# Ultrix sh set writes to stderr and can't be redirected directly,
32683# and sets the high bit in the cache file unless we assign to the vars.
32684{
32685 (set) 2>&1 |
32686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32687 *ac_space=\ *)
32688 # `set' does not quote correctly, so add quotes (double-quote
32689 # substitution turns \\\\ into \\, and sed turns \\ into \).
32690 sed -n \
ac1cb8d3
VS
32691 "s/'/'\\\\''/g;
32692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32693 ;;
32694 *)
32695 # `set' quotes correctly as required by POSIX, so do not add quotes.
32696 sed -n \
ac1cb8d3 32697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32698 ;;
32699 esac;
32700} |
32701 sed '
32702 t clear
32703 : clear
32704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32705 t end
32706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32707 : end' >>confcache
32708if diff $cache_file confcache >/dev/null 2>&1; then :; else
32709 if test -w $cache_file; then
32710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32711 cat confcache >$cache_file
32712 else
32713 echo "not updating unwritable cache $cache_file"
32714 fi
32715fi
32716rm -f confcache
32717
32718
32719CPP_MT_FLAG=
32720if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32721
32722
32723 THREADS_LINK=
32724 THREADS_CFLAGS=
32725
32726 if test "$wxUSE_THREADS" = "yes" ; then
32727 if test "$USE_BEOS" = 1; then
32728 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32729echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32730 wxUSE_THREADS="no"
32731 fi
32732 fi
32733
32734 if test "$wxUSE_THREADS" = "yes" ; then
32735
32736
32737 THREAD_OPTS="-pthread"
32738 case "${host}" in
32739 *-*-solaris2* | *-*-sunos4* )
32740 if test "x$GCC" = "xyes"; then
32741 THREAD_OPTS="-pthreads $THREAD_OPTS"
32742 else
32743 THREAD_OPTS="-mt $THREAD_OPTS"
32744 fi
32745 ;;
32746 *-*-freebsd*)
32747 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32748 ;;
32749 *-*-darwin* | *-*-cygwin* )
32750 THREAD_OPTS=""
32751 ;;
32752 *-*-aix*)
32753 THREAD_OPTS="pthreads"
32754 ;;
32755 *-hp-hpux* )
32756 if test "x$GCC" != "xyes"; then
32757 THREAD_OPTS=""
32758 fi
32759 ;;
32760
32761 *-*-irix* )
32762 if test "x$GCC" = "xyes"; then
32763 THREAD_OPTS=""
32764 fi
32765 ;;
32766
32767 *-*-*UnixWare*)
32768 if test "x$GCC" != "xyes"; then
32769 THREAD_OPTS="-Ethread"
32770 fi
32771 ;;
32772 esac
32773
32774 THREAD_OPTS="$THREAD_OPTS pthread none"
32775
32776 THREADS_OK=no
32777 for flag in $THREAD_OPTS; do
32778 case $flag in
32779 none)
32780 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32781echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32782 ;;
32783
32784 -*)
32785 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32786echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32787 THREADS_CFLAGS="$flag"
32788 ;;
32789
32790 *)
32791 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32792echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32793 THREADS_LINK="-l$flag"
32794 ;;
32795 esac
32796
32797 save_LIBS="$LIBS"
32798 save_CFLAGS="$CFLAGS"
32799 LIBS="$THREADS_LINK $LIBS"
32800 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32801
32802 cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h. */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h. */
32808#include <pthread.h>
32809int
32810main ()
32811{
32812pthread_create(0,0,0,0);
32813 ;
32814 return 0;
32815}
32816_ACEOF
32817rm -f conftest.$ac_objext conftest$ac_exeext
32818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32819 (eval $ac_link) 2>conftest.er1
a848cd7e 32820 ac_status=$?
ac1cb8d3
VS
32821 grep -v '^ *+' conftest.er1 >conftest.err
32822 rm -f conftest.er1
32823 cat conftest.err >&5
a848cd7e
SC
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); } &&
89be85c2
VS
32826 { ac_try='test -z "$ac_c_werror_flag"
32827 || test ! -s conftest.err'
ac1cb8d3
VS
32828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32829 (eval $ac_try) 2>&5
32830 ac_status=$?
32831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); }; } &&
32833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32835 (eval $ac_try) 2>&5
32836 ac_status=$?
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); }; }; then
32839 THREADS_OK=yes
32840else
32841 echo "$as_me: failed program was:" >&5
32842sed 's/^/| /' conftest.$ac_ext >&5
32843
32844fi
ac1cb8d3
VS
32845rm -f conftest.err conftest.$ac_objext \
32846 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32847
32848 LIBS="$save_LIBS"
32849 CFLAGS="$save_CFLAGS"
32850
32851 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32852echo "${ECHO_T}$THREADS_OK" >&6
32853 if test "x$THREADS_OK" = "xyes"; then
32854 break;
32855 fi
32856
32857 THREADS_LINK=""
32858 THREADS_CFLAGS=""
32859 done
32860
32861 if test "x$THREADS_OK" != "xyes"; then
32862 wxUSE_THREADS=no
32863 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32864echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32865 else
32866 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32867 LIBS="$THREADS_LINK $LIBS"
32868
32869 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32870echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32871 flag=no
32872 case "${host}" in
32873 *-aix*)
32874 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32875 flag="-D_THREAD_SAFE"
32876 ;;
32877 *-freebsd*)
32878 flag="-D_THREAD_SAFE"
32879 ;;
32880 *-hp-hpux* )
32881 flag="-D_REENTRANT"
32882 if test "x$GCC" != "xyes"; then
32883 flag="$flag -D_RWSTD_MULTI_THREAD"
32884 fi
32885 ;;
32886 *solaris* | alpha*-osf*)
32887 flag="-D_REENTRANT"
32888 ;;
32889 esac
32890 echo "$as_me:$LINENO: result: ${flag}" >&5
32891echo "${ECHO_T}${flag}" >&6
32892 if test "x$flag" != xno; then
32893 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32894 fi
32895
32896 if test "x$THREADS_CFLAGS" != "x"; then
32897 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32898 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32899 fi
32900 fi
32901 fi
32902
32903 if test "$wxUSE_THREADS" = "yes" ; then
32904
32905for ac_func in thr_setconcurrency
32906do
32907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32908echo "$as_me:$LINENO: checking for $ac_func" >&5
32909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32910if eval "test \"\${$as_ac_var+set}\" = set"; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32912else
32913 cat >conftest.$ac_ext <<_ACEOF
32914/* confdefs.h. */
32915_ACEOF
32916cat confdefs.h >>conftest.$ac_ext
32917cat >>conftest.$ac_ext <<_ACEOF
32918/* end confdefs.h. */
ac1cb8d3
VS
32919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32921#define $ac_func innocuous_$ac_func
32922
a848cd7e
SC
32923/* System header to define __stub macros and hopefully few prototypes,
32924 which can conflict with char $ac_func (); below.
32925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32926 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32927
a848cd7e
SC
32928#ifdef __STDC__
32929# include <limits.h>
32930#else
32931# include <assert.h>
32932#endif
ac1cb8d3
VS
32933
32934#undef $ac_func
32935
a848cd7e
SC
32936/* Override any gcc2 internal prototype to avoid an error. */
32937#ifdef __cplusplus
32938extern "C"
32939{
32940#endif
32941/* We use char because int might match the return type of a gcc2
32942 builtin and then its argument prototype would still apply. */
32943char $ac_func ();
32944/* The GNU C library defines this for functions which it implements
32945 to always fail with ENOSYS. Some functions are actually named
32946 something starting with __ and the normal name is an alias. */
32947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32948choke me
32949#else
32950char (*f) () = $ac_func;
32951#endif
32952#ifdef __cplusplus
32953}
32954#endif
32955
32956int
32957main ()
32958{
32959return f != $ac_func;
32960 ;
32961 return 0;
32962}
32963_ACEOF
32964rm -f conftest.$ac_objext conftest$ac_exeext
32965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32966 (eval $ac_link) 2>conftest.er1
a848cd7e 32967 ac_status=$?
ac1cb8d3
VS
32968 grep -v '^ *+' conftest.er1 >conftest.err
32969 rm -f conftest.er1
32970 cat conftest.err >&5
a848cd7e
SC
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } &&
89be85c2
VS
32973 { ac_try='test -z "$ac_c_werror_flag"
32974 || test ! -s conftest.err'
ac1cb8d3
VS
32975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32976 (eval $ac_try) 2>&5
32977 ac_status=$?
32978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); }; } &&
32980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; }; then
32986 eval "$as_ac_var=yes"
32987else
32988 echo "$as_me: failed program was:" >&5
32989sed 's/^/| /' conftest.$ac_ext >&5
32990
32991eval "$as_ac_var=no"
32992fi
ac1cb8d3
VS
32993rm -f conftest.err conftest.$ac_objext \
32994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32995fi
32996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32997echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32998if test `eval echo '${'$as_ac_var'}'` = yes; then
32999 cat >>confdefs.h <<_ACEOF
33000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33001_ACEOF
33002
33003fi
33004done
33005
33006
33007
33008for ac_header in sched.h
33009do
33010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33011if eval "test \"\${$as_ac_Header+set}\" = set"; then
33012 echo "$as_me:$LINENO: checking for $ac_header" >&5
33013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33014if eval "test \"\${$as_ac_Header+set}\" = set"; then
33015 echo $ECHO_N "(cached) $ECHO_C" >&6
33016fi
33017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33019else
33020 # Is the header compilable?
33021echo "$as_me:$LINENO: checking $ac_header usability" >&5
33022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33023cat >conftest.$ac_ext <<_ACEOF
33024/* confdefs.h. */
33025_ACEOF
33026cat confdefs.h >>conftest.$ac_ext
33027cat >>conftest.$ac_ext <<_ACEOF
33028/* end confdefs.h. */
33029$ac_includes_default
33030#include <$ac_header>
33031_ACEOF
33032rm -f conftest.$ac_objext
33033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33034 (eval $ac_compile) 2>conftest.er1
a848cd7e 33035 ac_status=$?
ac1cb8d3
VS
33036 grep -v '^ *+' conftest.er1 >conftest.err
33037 rm -f conftest.er1
33038 cat conftest.err >&5
a848cd7e
SC
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); } &&
89be85c2
VS
33041 { ac_try='test -z "$ac_c_werror_flag"
33042 || test ! -s conftest.err'
ac1cb8d3
VS
33043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33044 (eval $ac_try) 2>&5
33045 ac_status=$?
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); }; } &&
33048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; }; then
33054 ac_header_compiler=yes
33055else
33056 echo "$as_me: failed program was:" >&5
33057sed 's/^/| /' conftest.$ac_ext >&5
33058
33059ac_header_compiler=no
33060fi
ac1cb8d3 33061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33063echo "${ECHO_T}$ac_header_compiler" >&6
33064
33065# Is the header present?
33066echo "$as_me:$LINENO: checking $ac_header presence" >&5
33067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33068cat >conftest.$ac_ext <<_ACEOF
33069/* confdefs.h. */
33070_ACEOF
33071cat confdefs.h >>conftest.$ac_ext
33072cat >>conftest.$ac_ext <<_ACEOF
33073/* end confdefs.h. */
33074#include <$ac_header>
33075_ACEOF
33076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33078 ac_status=$?
33079 grep -v '^ *+' conftest.er1 >conftest.err
33080 rm -f conftest.er1
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } >/dev/null; then
33084 if test -s conftest.err; then
33085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33087 else
33088 ac_cpp_err=
33089 fi
33090else
33091 ac_cpp_err=yes
33092fi
33093if test -z "$ac_cpp_err"; then
33094 ac_header_preproc=yes
33095else
33096 echo "$as_me: failed program was:" >&5
33097sed 's/^/| /' conftest.$ac_ext >&5
33098
33099 ac_header_preproc=no
33100fi
33101rm -f conftest.err conftest.$ac_ext
33102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33103echo "${ECHO_T}$ac_header_preproc" >&6
33104
33105# So? What about this header?
ac1cb8d3
VS
33106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33107 yes:no: )
a848cd7e
SC
33108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33112 ac_header_preproc=yes
a848cd7e 33113 ;;
ac1cb8d3 33114 no:yes:* )
a848cd7e
SC
33115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33127 (
33128 cat <<\_ASBOX
ac1cb8d3
VS
33129## ----------------------------------------- ##
33130## Report this to wx-dev@lists.wxwidgets.org ##
33131## ----------------------------------------- ##
a848cd7e
SC
33132_ASBOX
33133 ) |
33134 sed "s/^/$as_me: WARNING: /" >&2
33135 ;;
33136esac
33137echo "$as_me:$LINENO: checking for $ac_header" >&5
33138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33139if eval "test \"\${$as_ac_Header+set}\" = set"; then
33140 echo $ECHO_N "(cached) $ECHO_C" >&6
33141else
ac1cb8d3 33142 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33143fi
33144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33146
33147fi
33148if test `eval echo '${'$as_ac_Header'}'` = yes; then
33149 cat >>confdefs.h <<_ACEOF
33150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33151_ACEOF
33152
33153fi
33154
33155done
33156
33157 if test "$ac_cv_header_sched_h" = "yes"; then
33158 echo "$as_me:$LINENO: checking for sched_yield" >&5
33159echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33160if test "${ac_cv_func_sched_yield+set}" = set; then
33161 echo $ECHO_N "(cached) $ECHO_C" >&6
33162else
33163 cat >conftest.$ac_ext <<_ACEOF
33164/* confdefs.h. */
33165_ACEOF
33166cat confdefs.h >>conftest.$ac_ext
33167cat >>conftest.$ac_ext <<_ACEOF
33168/* end confdefs.h. */
ac1cb8d3
VS
33169/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33171#define sched_yield innocuous_sched_yield
33172
a848cd7e
SC
33173/* System header to define __stub macros and hopefully few prototypes,
33174 which can conflict with char sched_yield (); below.
33175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33176 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33177
a848cd7e
SC
33178#ifdef __STDC__
33179# include <limits.h>
33180#else
33181# include <assert.h>
33182#endif
ac1cb8d3
VS
33183
33184#undef sched_yield
33185
a848cd7e
SC
33186/* Override any gcc2 internal prototype to avoid an error. */
33187#ifdef __cplusplus
33188extern "C"
33189{
33190#endif
33191/* We use char because int might match the return type of a gcc2
33192 builtin and then its argument prototype would still apply. */
33193char sched_yield ();
33194/* The GNU C library defines this for functions which it implements
33195 to always fail with ENOSYS. Some functions are actually named
33196 something starting with __ and the normal name is an alias. */
33197#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33198choke me
33199#else
33200char (*f) () = sched_yield;
33201#endif
33202#ifdef __cplusplus
33203}
33204#endif
33205
33206int
33207main ()
33208{
33209return f != sched_yield;
33210 ;
33211 return 0;
33212}
33213_ACEOF
33214rm -f conftest.$ac_objext conftest$ac_exeext
33215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33216 (eval $ac_link) 2>conftest.er1
a848cd7e 33217 ac_status=$?
ac1cb8d3
VS
33218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
a848cd7e
SC
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
89be85c2
VS
33223 { ac_try='test -z "$ac_c_werror_flag"
33224 || test ! -s conftest.err'
ac1cb8d3
VS
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33227 ac_status=$?
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; } &&
33230 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232 (eval $ac_try) 2>&5
33233 ac_status=$?
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; }; then
33236 ac_cv_func_sched_yield=yes
33237else
33238 echo "$as_me: failed program was:" >&5
33239sed 's/^/| /' conftest.$ac_ext >&5
33240
33241ac_cv_func_sched_yield=no
33242fi
ac1cb8d3
VS
33243rm -f conftest.err conftest.$ac_objext \
33244 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33245fi
33246echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33247echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33248if test $ac_cv_func_sched_yield = yes; then
33249 cat >>confdefs.h <<\_ACEOF
33250#define HAVE_SCHED_YIELD 1
33251_ACEOF
33252
33253else
33254
33255 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33256echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33257if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33258 echo $ECHO_N "(cached) $ECHO_C" >&6
33259else
33260 ac_check_lib_save_LIBS=$LIBS
33261LIBS="-lposix4 $LIBS"
33262cat >conftest.$ac_ext <<_ACEOF
33263/* confdefs.h. */
33264_ACEOF
33265cat confdefs.h >>conftest.$ac_ext
33266cat >>conftest.$ac_ext <<_ACEOF
33267/* end confdefs.h. */
33268
33269/* Override any gcc2 internal prototype to avoid an error. */
33270#ifdef __cplusplus
33271extern "C"
33272#endif
33273/* We use char because int might match the return type of a gcc2
33274 builtin and then its argument prototype would still apply. */
33275char sched_yield ();
33276int
33277main ()
33278{
33279sched_yield ();
33280 ;
33281 return 0;
33282}
33283_ACEOF
33284rm -f conftest.$ac_objext conftest$ac_exeext
33285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33286 (eval $ac_link) 2>conftest.er1
a848cd7e 33287 ac_status=$?
ac1cb8d3
VS
33288 grep -v '^ *+' conftest.er1 >conftest.err
33289 rm -f conftest.er1
33290 cat conftest.err >&5
a848cd7e
SC
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); } &&
89be85c2
VS
33293 { ac_try='test -z "$ac_c_werror_flag"
33294 || test ! -s conftest.err'
ac1cb8d3
VS
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; } &&
33300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33302 (eval $ac_try) 2>&5
33303 ac_status=$?
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); }; }; then
33306 ac_cv_lib_posix4_sched_yield=yes
33307else
33308 echo "$as_me: failed program was:" >&5
33309sed 's/^/| /' conftest.$ac_ext >&5
33310
33311ac_cv_lib_posix4_sched_yield=no
33312fi
ac1cb8d3
VS
33313rm -f conftest.err conftest.$ac_objext \
33314 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33315LIBS=$ac_check_lib_save_LIBS
33316fi
33317echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33318echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33319if test $ac_cv_lib_posix4_sched_yield = yes; then
33320 cat >>confdefs.h <<\_ACEOF
33321#define HAVE_SCHED_YIELD 1
33322_ACEOF
33323 POSIX4_LINK=" -lposix4"
33324else
33325 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33326echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33327
33328fi
33329
33330
33331
33332fi
33333
33334 fi
33335
33336 HAVE_PRIOR_FUNCS=0
33337 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33338echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33339if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33340 echo $ECHO_N "(cached) $ECHO_C" >&6
33341else
33342 cat >conftest.$ac_ext <<_ACEOF
33343/* confdefs.h. */
33344_ACEOF
33345cat confdefs.h >>conftest.$ac_ext
33346cat >>conftest.$ac_ext <<_ACEOF
33347/* end confdefs.h. */
ac1cb8d3
VS
33348/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33350#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33351
a848cd7e
SC
33352/* System header to define __stub macros and hopefully few prototypes,
33353 which can conflict with char pthread_attr_getschedpolicy (); below.
33354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33355 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33356
a848cd7e
SC
33357#ifdef __STDC__
33358# include <limits.h>
33359#else
33360# include <assert.h>
33361#endif
ac1cb8d3
VS
33362
33363#undef pthread_attr_getschedpolicy
33364
a848cd7e
SC
33365/* Override any gcc2 internal prototype to avoid an error. */
33366#ifdef __cplusplus
33367extern "C"
33368{
33369#endif
33370/* We use char because int might match the return type of a gcc2
33371 builtin and then its argument prototype would still apply. */
33372char pthread_attr_getschedpolicy ();
33373/* The GNU C library defines this for functions which it implements
33374 to always fail with ENOSYS. Some functions are actually named
33375 something starting with __ and the normal name is an alias. */
33376#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33377choke me
33378#else
33379char (*f) () = pthread_attr_getschedpolicy;
33380#endif
33381#ifdef __cplusplus
33382}
33383#endif
33384
33385int
33386main ()
33387{
33388return f != pthread_attr_getschedpolicy;
33389 ;
33390 return 0;
33391}
33392_ACEOF
33393rm -f conftest.$ac_objext conftest$ac_exeext
33394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33395 (eval $ac_link) 2>conftest.er1
a848cd7e 33396 ac_status=$?
ac1cb8d3
VS
33397 grep -v '^ *+' conftest.er1 >conftest.err
33398 rm -f conftest.er1
33399 cat conftest.err >&5
a848cd7e
SC
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); } &&
89be85c2
VS
33402 { ac_try='test -z "$ac_c_werror_flag"
33403 || test ! -s conftest.err'
ac1cb8d3
VS
33404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33405 (eval $ac_try) 2>&5
33406 ac_status=$?
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); }; } &&
33409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33412 ac_status=$?
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; }; then
33415 ac_cv_func_pthread_attr_getschedpolicy=yes
33416else
33417 echo "$as_me: failed program was:" >&5
33418sed 's/^/| /' conftest.$ac_ext >&5
33419
33420ac_cv_func_pthread_attr_getschedpolicy=no
33421fi
ac1cb8d3
VS
33422rm -f conftest.err conftest.$ac_objext \
33423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33424fi
33425echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33426echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33427if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33428 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33429echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33430if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33431 echo $ECHO_N "(cached) $ECHO_C" >&6
33432else
33433 cat >conftest.$ac_ext <<_ACEOF
33434/* confdefs.h. */
33435_ACEOF
33436cat confdefs.h >>conftest.$ac_ext
33437cat >>conftest.$ac_ext <<_ACEOF
33438/* end confdefs.h. */
ac1cb8d3
VS
33439/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33441#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33442
a848cd7e
SC
33443/* System header to define __stub macros and hopefully few prototypes,
33444 which can conflict with char pthread_attr_setschedparam (); below.
33445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33446 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33447
a848cd7e
SC
33448#ifdef __STDC__
33449# include <limits.h>
33450#else
33451# include <assert.h>
33452#endif
ac1cb8d3
VS
33453
33454#undef pthread_attr_setschedparam
33455
a848cd7e
SC
33456/* Override any gcc2 internal prototype to avoid an error. */
33457#ifdef __cplusplus
33458extern "C"
33459{
33460#endif
33461/* We use char because int might match the return type of a gcc2
33462 builtin and then its argument prototype would still apply. */
33463char pthread_attr_setschedparam ();
33464/* The GNU C library defines this for functions which it implements
33465 to always fail with ENOSYS. Some functions are actually named
33466 something starting with __ and the normal name is an alias. */
33467#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33468choke me
33469#else
33470char (*f) () = pthread_attr_setschedparam;
33471#endif
33472#ifdef __cplusplus
33473}
33474#endif
33475
33476int
33477main ()
33478{
33479return f != pthread_attr_setschedparam;
33480 ;
33481 return 0;
33482}
33483_ACEOF
33484rm -f conftest.$ac_objext conftest$ac_exeext
33485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33486 (eval $ac_link) 2>conftest.er1
a848cd7e 33487 ac_status=$?
ac1cb8d3
VS
33488 grep -v '^ *+' conftest.er1 >conftest.err
33489 rm -f conftest.er1
33490 cat conftest.err >&5
a848cd7e
SC
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); } &&
89be85c2
VS
33493 { ac_try='test -z "$ac_c_werror_flag"
33494 || test ! -s conftest.err'
ac1cb8d3
VS
33495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33496 (eval $ac_try) 2>&5
33497 ac_status=$?
33498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499 (exit $ac_status); }; } &&
33500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33502 (eval $ac_try) 2>&5
33503 ac_status=$?
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); }; }; then
33506 ac_cv_func_pthread_attr_setschedparam=yes
33507else
33508 echo "$as_me: failed program was:" >&5
33509sed 's/^/| /' conftest.$ac_ext >&5
33510
33511ac_cv_func_pthread_attr_setschedparam=no
33512fi
ac1cb8d3
VS
33513rm -f conftest.err conftest.$ac_objext \
33514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33515fi
33516echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33517echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33518if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33519 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33520echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33521if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33522 echo $ECHO_N "(cached) $ECHO_C" >&6
33523else
33524 cat >conftest.$ac_ext <<_ACEOF
33525/* confdefs.h. */
33526_ACEOF
33527cat confdefs.h >>conftest.$ac_ext
33528cat >>conftest.$ac_ext <<_ACEOF
33529/* end confdefs.h. */
ac1cb8d3
VS
33530/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33532#define sched_get_priority_max innocuous_sched_get_priority_max
33533
a848cd7e
SC
33534/* System header to define __stub macros and hopefully few prototypes,
33535 which can conflict with char sched_get_priority_max (); below.
33536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33537 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33538
a848cd7e
SC
33539#ifdef __STDC__
33540# include <limits.h>
33541#else
33542# include <assert.h>
33543#endif
ac1cb8d3
VS
33544
33545#undef sched_get_priority_max
33546
a848cd7e
SC
33547/* Override any gcc2 internal prototype to avoid an error. */
33548#ifdef __cplusplus
33549extern "C"
33550{
33551#endif
33552/* We use char because int might match the return type of a gcc2
33553 builtin and then its argument prototype would still apply. */
33554char sched_get_priority_max ();
33555/* The GNU C library defines this for functions which it implements
33556 to always fail with ENOSYS. Some functions are actually named
33557 something starting with __ and the normal name is an alias. */
33558#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33559choke me
33560#else
33561char (*f) () = sched_get_priority_max;
33562#endif
33563#ifdef __cplusplus
33564}
33565#endif
33566
33567int
33568main ()
33569{
33570return f != sched_get_priority_max;
33571 ;
33572 return 0;
33573}
33574_ACEOF
33575rm -f conftest.$ac_objext conftest$ac_exeext
33576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33577 (eval $ac_link) 2>conftest.er1
a848cd7e 33578 ac_status=$?
ac1cb8d3
VS
33579 grep -v '^ *+' conftest.er1 >conftest.err
33580 rm -f conftest.er1
33581 cat conftest.err >&5
a848cd7e
SC
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); } &&
89be85c2
VS
33584 { ac_try='test -z "$ac_c_werror_flag"
33585 || test ! -s conftest.err'
ac1cb8d3
VS
33586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587 (eval $ac_try) 2>&5
33588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); }; } &&
33591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33594 ac_status=$?
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; }; then
33597 ac_cv_func_sched_get_priority_max=yes
33598else
33599 echo "$as_me: failed program was:" >&5
33600sed 's/^/| /' conftest.$ac_ext >&5
33601
33602ac_cv_func_sched_get_priority_max=no
33603fi
ac1cb8d3
VS
33604rm -f conftest.err conftest.$ac_objext \
33605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33606fi
33607echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33608echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33609if test $ac_cv_func_sched_get_priority_max = yes; then
33610 HAVE_PRIOR_FUNCS=1
33611else
33612 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33613echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33614if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33615 echo $ECHO_N "(cached) $ECHO_C" >&6
33616else
33617 ac_check_lib_save_LIBS=$LIBS
33618LIBS="-lposix4 $LIBS"
33619cat >conftest.$ac_ext <<_ACEOF
33620/* confdefs.h. */
33621_ACEOF
33622cat confdefs.h >>conftest.$ac_ext
33623cat >>conftest.$ac_ext <<_ACEOF
33624/* end confdefs.h. */
33625
33626/* Override any gcc2 internal prototype to avoid an error. */
33627#ifdef __cplusplus
33628extern "C"
33629#endif
33630/* We use char because int might match the return type of a gcc2
33631 builtin and then its argument prototype would still apply. */
33632char sched_get_priority_max ();
33633int
33634main ()
33635{
33636sched_get_priority_max ();
33637 ;
33638 return 0;
33639}
33640_ACEOF
33641rm -f conftest.$ac_objext conftest$ac_exeext
33642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33643 (eval $ac_link) 2>conftest.er1
a848cd7e 33644 ac_status=$?
ac1cb8d3
VS
33645 grep -v '^ *+' conftest.er1 >conftest.err
33646 rm -f conftest.er1
33647 cat conftest.err >&5
a848cd7e
SC
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); } &&
89be85c2
VS
33650 { ac_try='test -z "$ac_c_werror_flag"
33651 || test ! -s conftest.err'
ac1cb8d3
VS
33652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33653 (eval $ac_try) 2>&5
33654 ac_status=$?
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; } &&
33657 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33659 (eval $ac_try) 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; }; then
33663 ac_cv_lib_posix4_sched_get_priority_max=yes
33664else
33665 echo "$as_me: failed program was:" >&5
33666sed 's/^/| /' conftest.$ac_ext >&5
33667
33668ac_cv_lib_posix4_sched_get_priority_max=no
33669fi
ac1cb8d3
VS
33670rm -f conftest.err conftest.$ac_objext \
33671 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33672LIBS=$ac_check_lib_save_LIBS
33673fi
33674echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33675echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33676if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33677
33678 HAVE_PRIOR_FUNCS=1
33679 POSIX4_LINK=" -lposix4"
33680
33681fi
33682
33683
33684fi
33685
33686
33687fi
33688
33689
33690fi
33691
33692
33693 if test "$HAVE_PRIOR_FUNCS" = 1; then
33694 cat >>confdefs.h <<\_ACEOF
33695#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33696_ACEOF
33697
33698 else
33699 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33700echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33701 fi
33702
33703 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33704echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33705if test "${ac_cv_func_pthread_cancel+set}" = set; then
33706 echo $ECHO_N "(cached) $ECHO_C" >&6
33707else
33708 cat >conftest.$ac_ext <<_ACEOF
33709/* confdefs.h. */
33710_ACEOF
33711cat confdefs.h >>conftest.$ac_ext
33712cat >>conftest.$ac_ext <<_ACEOF
33713/* end confdefs.h. */
ac1cb8d3
VS
33714/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33716#define pthread_cancel innocuous_pthread_cancel
33717
a848cd7e
SC
33718/* System header to define __stub macros and hopefully few prototypes,
33719 which can conflict with char pthread_cancel (); below.
33720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33721 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33722
a848cd7e
SC
33723#ifdef __STDC__
33724# include <limits.h>
33725#else
33726# include <assert.h>
33727#endif
ac1cb8d3
VS
33728
33729#undef pthread_cancel
33730
a848cd7e
SC
33731/* Override any gcc2 internal prototype to avoid an error. */
33732#ifdef __cplusplus
33733extern "C"
33734{
33735#endif
33736/* We use char because int might match the return type of a gcc2
33737 builtin and then its argument prototype would still apply. */
33738char pthread_cancel ();
33739/* The GNU C library defines this for functions which it implements
33740 to always fail with ENOSYS. Some functions are actually named
33741 something starting with __ and the normal name is an alias. */
33742#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33743choke me
33744#else
33745char (*f) () = pthread_cancel;
33746#endif
33747#ifdef __cplusplus
33748}
33749#endif
33750
33751int
33752main ()
33753{
33754return f != pthread_cancel;
33755 ;
33756 return 0;
33757}
33758_ACEOF
33759rm -f conftest.$ac_objext conftest$ac_exeext
33760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33761 (eval $ac_link) 2>conftest.er1
a848cd7e 33762 ac_status=$?
ac1cb8d3
VS
33763 grep -v '^ *+' conftest.er1 >conftest.err
33764 rm -f conftest.er1
33765 cat conftest.err >&5
a848cd7e
SC
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); } &&
89be85c2
VS
33768 { ac_try='test -z "$ac_c_werror_flag"
33769 || test ! -s conftest.err'
ac1cb8d3
VS
33770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33771 (eval $ac_try) 2>&5
33772 ac_status=$?
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); }; } &&
33775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33777 (eval $ac_try) 2>&5
33778 ac_status=$?
33779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780 (exit $ac_status); }; }; then
33781 ac_cv_func_pthread_cancel=yes
33782else
33783 echo "$as_me: failed program was:" >&5
33784sed 's/^/| /' conftest.$ac_ext >&5
33785
33786ac_cv_func_pthread_cancel=no
33787fi
ac1cb8d3
VS
33788rm -f conftest.err conftest.$ac_objext \
33789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33790fi
33791echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33792echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33793if test $ac_cv_func_pthread_cancel = yes; then
33794 cat >>confdefs.h <<\_ACEOF
33795#define HAVE_PTHREAD_CANCEL 1
33796_ACEOF
33797
33798else
33799 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33800echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33801fi
33802
33803
33804
33805
33806 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33807echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33808if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33809 echo $ECHO_N "(cached) $ECHO_C" >&6
33810else
33811
33812 cat >conftest.$ac_ext <<_ACEOF
33813/* confdefs.h. */
33814_ACEOF
33815cat confdefs.h >>conftest.$ac_ext
33816cat >>conftest.$ac_ext <<_ACEOF
33817/* end confdefs.h. */
33818#include <pthread.h>
33819int
33820main ()
33821{
33822
33823 pthread_mutexattr_t attr;
33824 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33825
33826 ;
33827 return 0;
33828}
33829_ACEOF
33830rm -f conftest.$ac_objext
33831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33832 (eval $ac_compile) 2>conftest.er1
a848cd7e 33833 ac_status=$?
ac1cb8d3
VS
33834 grep -v '^ *+' conftest.er1 >conftest.err
33835 rm -f conftest.er1
33836 cat conftest.err >&5
a848cd7e
SC
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); } &&
89be85c2
VS
33839 { ac_try='test -z "$ac_c_werror_flag"
33840 || test ! -s conftest.err'
ac1cb8d3
VS
33841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33842 (eval $ac_try) 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; } &&
33846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33848 (eval $ac_try) 2>&5
33849 ac_status=$?
33850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851 (exit $ac_status); }; }; then
33852
33853 wx_cv_type_pthread_mutexattr_t=yes
33854
33855else
33856 echo "$as_me: failed program was:" >&5
33857sed 's/^/| /' conftest.$ac_ext >&5
33858
33859
33860 wx_cv_type_pthread_mutexattr_t=no
33861
33862
33863fi
ac1cb8d3 33864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33865
33866fi
33867echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33868echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33869
33870 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33871 cat >>confdefs.h <<\_ACEOF
33872#define HAVE_PTHREAD_MUTEXATTR_T 1
33873_ACEOF
33874
33875 else
33876 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33877echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33878if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33880else
33881
33882 cat >conftest.$ac_ext <<_ACEOF
33883/* confdefs.h. */
33884_ACEOF
33885cat confdefs.h >>conftest.$ac_ext
33886cat >>conftest.$ac_ext <<_ACEOF
33887/* end confdefs.h. */
33888#include <pthread.h>
33889int
33890main ()
33891{
33892
33893 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33894
33895 ;
33896 return 0;
33897}
33898_ACEOF
33899rm -f conftest.$ac_objext
33900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33901 (eval $ac_compile) 2>conftest.er1
a848cd7e 33902 ac_status=$?
ac1cb8d3
VS
33903 grep -v '^ *+' conftest.er1 >conftest.err
33904 rm -f conftest.er1
33905 cat conftest.err >&5
a848cd7e
SC
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); } &&
89be85c2
VS
33908 { ac_try='test -z "$ac_c_werror_flag"
33909 || test ! -s conftest.err'
ac1cb8d3
VS
33910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33911 (eval $ac_try) 2>&5
33912 ac_status=$?
33913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914 (exit $ac_status); }; } &&
33915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33917 (eval $ac_try) 2>&5
33918 ac_status=$?
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); }; }; then
33921
33922 wx_cv_type_pthread_rec_mutex_init=yes
33923
33924else
33925 echo "$as_me: failed program was:" >&5
33926sed 's/^/| /' conftest.$ac_ext >&5
33927
33928
33929 wx_cv_type_pthread_rec_mutex_init=no
33930
33931
33932fi
ac1cb8d3 33933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33934
33935fi
33936echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33937echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33938 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33939 cat >>confdefs.h <<\_ACEOF
33940#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33941_ACEOF
33942
33943 else
33944 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33945echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33946 fi
33947 fi
33948 fi
33949
33950else
33951 if test "$wxUSE_THREADS" = "yes" ; then
33952 case "${host}" in
33953 *-*-mingw32* )
33954 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33955echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33956if test "${wx_cv_cflags_mthread+set}" = set; then
33957 echo $ECHO_N "(cached) $ECHO_C" >&6
33958else
33959
33960 CFLAGS_OLD="$CFLAGS"
33961 CFLAGS="$CFLAGS -mthreads"
33962 cat >conftest.$ac_ext <<_ACEOF
33963/* confdefs.h. */
33964_ACEOF
33965cat confdefs.h >>conftest.$ac_ext
33966cat >>conftest.$ac_ext <<_ACEOF
33967/* end confdefs.h. */
33968
33969int
33970main ()
33971{
33972
33973 ;
33974 return 0;
33975}
33976_ACEOF
33977rm -f conftest.$ac_objext
33978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33979 (eval $ac_compile) 2>conftest.er1
a848cd7e 33980 ac_status=$?
ac1cb8d3
VS
33981 grep -v '^ *+' conftest.er1 >conftest.err
33982 rm -f conftest.er1
33983 cat conftest.err >&5
a848cd7e
SC
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); } &&
89be85c2
VS
33986 { ac_try='test -z "$ac_c_werror_flag"
33987 || test ! -s conftest.err'
ac1cb8d3
VS
33988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33989 (eval $ac_try) 2>&5
33990 ac_status=$?
33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); }; } &&
33993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33995 (eval $ac_try) 2>&5
33996 ac_status=$?
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); }; }; then
33999 wx_cv_cflags_mthread=yes
34000else
34001 echo "$as_me: failed program was:" >&5
34002sed 's/^/| /' conftest.$ac_ext >&5
34003
34004wx_cv_cflags_mthread=no
34005
34006fi
ac1cb8d3 34007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34008
34009
34010fi
34011echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34012echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34013
34014 if test "$wx_cv_cflags_mthread" = "yes"; then
34015 CXXFLAGS="$CXXFLAGS -mthreads"
34016 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34017 LDFLAGS="$LDFLAGS -mthreads"
34018 else
34019 CFLAGS="$CFLAGS_OLD"
34020 fi
34021 ;;
34022 *-pc-os2*emx )
34023 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34024 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34025 LDFLAGS="$LDFLAGS -Zmt"
34026 ;;
34027 esac
34028 fi
34029fi
34030
34031if test "$wxUSE_THREADS" = "yes"; then
34032 cat >>confdefs.h <<\_ACEOF
34033#define wxUSE_THREADS 1
34034_ACEOF
34035
34036
34037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34038else
34039 if test "$ac_cv_func_strtok_r" = "yes"; then
34040 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34041echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34042 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34043 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34044 echo "$as_me:$LINENO: result: yes" >&5
34045echo "${ECHO_T}yes" >&6
34046 else
34047 echo "$as_me:$LINENO: result: no" >&5
34048echo "${ECHO_T}no" >&6
34049 fi
34050 fi
34051fi
34052
34053if test "$WXGTK20" = 1 ; then
34054 cat >>confdefs.h <<_ACEOF
34055#define __WXGTK20__ $WXGTK20
34056_ACEOF
34057
34058 WXGTK12=1
34059fi
34060
34061if test "$WXGTK12" = 1 ; then
34062 cat >>confdefs.h <<_ACEOF
34063#define __WXGTK12__ $WXGTK12
34064_ACEOF
34065
34066fi
34067
34068if test "$WXGTK127" = 1 ; then
34069 cat >>confdefs.h <<_ACEOF
34070#define __WXGTK127__ $WXGTK127
34071_ACEOF
34072
34073fi
34074
34075if test "$WXGPE" = 1 ; then
34076 cat >>confdefs.h <<_ACEOF
34077#define __WXGPE__ $WXGPE
34078_ACEOF
34079
34080fi
34081
34082WXDEBUG=
34083
34084if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34085 WXDEBUG="-g"
34086 wxUSE_OPTIMISE=no
34087fi
34088
34089if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34090 wxUSE_DEBUG_INFO=yes
34091 WXDEBUG="-ggdb"
34092fi
34093
34094if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34095 cat >>confdefs.h <<\_ACEOF
34096#define WXDEBUG 1
34097_ACEOF
34098
34099 WXDEBUG_DEFINE="-D__WXDEBUG__"
34100else
34101 if test "$wxUSE_GTK" = 1 ; then
34102 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34103 fi
34104fi
34105
34106if test "$wxUSE_MEM_TRACING" = "yes" ; then
34107 cat >>confdefs.h <<\_ACEOF
34108#define wxUSE_MEMORY_TRACING 1
34109_ACEOF
34110
34111 cat >>confdefs.h <<\_ACEOF
34112#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34113_ACEOF
34114
34115 cat >>confdefs.h <<\_ACEOF
34116#define wxUSE_DEBUG_NEW_ALWAYS 1
34117_ACEOF
34118
34119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34120fi
34121
34122if test "$wxUSE_DMALLOC" = "yes" ; then
34123 DMALLOC_LIBS="-ldmalloc"
34124fi
34125
34126PROFILE=
34127if test "$wxUSE_PROFILE" = "yes" ; then
34128 PROFILE=" -pg"
34129fi
34130
34131CODE_GEN_FLAGS=
34132CODE_GEN_FLAGS_CXX=
34133if test "$GCC" = "yes" ; then
34134 if test "$wxUSE_NO_RTTI" = "yes" ; then
34135 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34136 fi
34137 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34138 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34139 fi
34140 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34141 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34142 fi
34143
34144 case "${host}" in
34145 powerpc*-*-aix* )
34146 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34147 ;;
34148 *-hppa* )
34149 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34150 ;;
34151 esac
34152fi
34153
34154OPTIMISE=
34155if test "$wxUSE_OPTIMISE" = "no" ; then
34156 if test "$GCC" = yes ; then
34157 OPTIMISE="-O0"
34158 fi
34159else
34160 if test "$GCC" = yes ; then
34161 OPTIMISE="-O2"
34162
34163 case "${host}" in
34164 i586-*-*|i686-*-* )
34165 OPTIMISE="${OPTIMISE} "
34166 ;;
34167 esac
34168 else
34169 OPTIMISE="-O"
34170 fi
34171fi
34172
34173
34174if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34175 cat >>confdefs.h <<\_ACEOF
34176#define WXWIN_COMPATIBILITY_2_2 1
34177_ACEOF
34178
34179
34180 WXWIN_COMPATIBILITY_2_4="yes"
34181fi
34182
34183if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34184 cat >>confdefs.h <<\_ACEOF
34185#define WXWIN_COMPATIBILITY_2_4 1
34186_ACEOF
34187
34188fi
34189
34190
34191if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34192 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34193#define wxUSE_GUI 1
34194_ACEOF
34195
34196
370fd4c2 34197 fi
a848cd7e
SC
34198
34199
34200if test "$wxUSE_UNIX" = "yes"; then
34201 cat >>confdefs.h <<\_ACEOF
34202#define wxUSE_UNIX 1
34203_ACEOF
34204
34205fi
34206
34207
34208if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34209
34210 HAVE_DL_FUNCS=0
34211 HAVE_SHL_FUNCS=0
34212 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34213 if test "$USE_DARWIN" = 1; then
34214 HAVE_DL_FUNCS=1
34215 else
34216
34217for ac_func in dlopen
34218do
34219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34220echo "$as_me:$LINENO: checking for $ac_func" >&5
34221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34222if eval "test \"\${$as_ac_var+set}\" = set"; then
34223 echo $ECHO_N "(cached) $ECHO_C" >&6
34224else
34225 cat >conftest.$ac_ext <<_ACEOF
34226/* confdefs.h. */
34227_ACEOF
34228cat confdefs.h >>conftest.$ac_ext
34229cat >>conftest.$ac_ext <<_ACEOF
34230/* end confdefs.h. */
ac1cb8d3
VS
34231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34233#define $ac_func innocuous_$ac_func
34234
a848cd7e
SC
34235/* System header to define __stub macros and hopefully few prototypes,
34236 which can conflict with char $ac_func (); below.
34237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34238 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34239
a848cd7e
SC
34240#ifdef __STDC__
34241# include <limits.h>
34242#else
34243# include <assert.h>
34244#endif
ac1cb8d3
VS
34245
34246#undef $ac_func
34247
a848cd7e
SC
34248/* Override any gcc2 internal prototype to avoid an error. */
34249#ifdef __cplusplus
34250extern "C"
34251{
34252#endif
34253/* We use char because int might match the return type of a gcc2
34254 builtin and then its argument prototype would still apply. */
34255char $ac_func ();
34256/* The GNU C library defines this for functions which it implements
34257 to always fail with ENOSYS. Some functions are actually named
34258 something starting with __ and the normal name is an alias. */
34259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34260choke me
34261#else
34262char (*f) () = $ac_func;
34263#endif
34264#ifdef __cplusplus
34265}
34266#endif
34267
34268int
34269main ()
34270{
34271return f != $ac_func;
34272 ;
34273 return 0;
34274}
34275_ACEOF
34276rm -f conftest.$ac_objext conftest$ac_exeext
34277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34278 (eval $ac_link) 2>conftest.er1
a848cd7e 34279 ac_status=$?
ac1cb8d3
VS
34280 grep -v '^ *+' conftest.er1 >conftest.err
34281 rm -f conftest.er1
34282 cat conftest.err >&5
a848cd7e
SC
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); } &&
89be85c2
VS
34285 { ac_try='test -z "$ac_c_werror_flag"
34286 || test ! -s conftest.err'
ac1cb8d3
VS
34287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34288 (eval $ac_try) 2>&5
34289 ac_status=$?
34290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291 (exit $ac_status); }; } &&
34292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34294 (eval $ac_try) 2>&5
34295 ac_status=$?
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); }; }; then
34298 eval "$as_ac_var=yes"
34299else
34300 echo "$as_me: failed program was:" >&5
34301sed 's/^/| /' conftest.$ac_ext >&5
34302
34303eval "$as_ac_var=no"
34304fi
ac1cb8d3
VS
34305rm -f conftest.err conftest.$ac_objext \
34306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34307fi
34308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34309echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34310if test `eval echo '${'$as_ac_var'}'` = yes; then
34311 cat >>confdefs.h <<_ACEOF
34312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34313_ACEOF
34314
34315 cat >>confdefs.h <<\_ACEOF
34316#define HAVE_DLOPEN 1
34317_ACEOF
34318
34319 HAVE_DL_FUNCS=1
34320
34321else
34322
34323 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34324echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34325if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34326 echo $ECHO_N "(cached) $ECHO_C" >&6
34327else
34328 ac_check_lib_save_LIBS=$LIBS
34329LIBS="-ldl $LIBS"
34330cat >conftest.$ac_ext <<_ACEOF
34331/* confdefs.h. */
34332_ACEOF
34333cat confdefs.h >>conftest.$ac_ext
34334cat >>conftest.$ac_ext <<_ACEOF
34335/* end confdefs.h. */
34336
34337/* Override any gcc2 internal prototype to avoid an error. */
34338#ifdef __cplusplus
34339extern "C"
34340#endif
34341/* We use char because int might match the return type of a gcc2
34342 builtin and then its argument prototype would still apply. */
34343char dlopen ();
34344int
34345main ()
34346{
34347dlopen ();
34348 ;
34349 return 0;
34350}
34351_ACEOF
34352rm -f conftest.$ac_objext conftest$ac_exeext
34353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34354 (eval $ac_link) 2>conftest.er1
a848cd7e 34355 ac_status=$?
ac1cb8d3
VS
34356 grep -v '^ *+' conftest.er1 >conftest.err
34357 rm -f conftest.er1
34358 cat conftest.err >&5
a848cd7e
SC
34359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360 (exit $ac_status); } &&
89be85c2
VS
34361 { ac_try='test -z "$ac_c_werror_flag"
34362 || test ! -s conftest.err'
ac1cb8d3
VS
34363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34364 (eval $ac_try) 2>&5
34365 ac_status=$?
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); }; } &&
34368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34370 (eval $ac_try) 2>&5
34371 ac_status=$?
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); }; }; then
34374 ac_cv_lib_dl_dlopen=yes
34375else
34376 echo "$as_me: failed program was:" >&5
34377sed 's/^/| /' conftest.$ac_ext >&5
34378
34379ac_cv_lib_dl_dlopen=no
34380fi
ac1cb8d3
VS
34381rm -f conftest.err conftest.$ac_objext \
34382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34383LIBS=$ac_check_lib_save_LIBS
34384fi
34385echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34386echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34387if test $ac_cv_lib_dl_dlopen = yes; then
34388
34389 cat >>confdefs.h <<\_ACEOF
34390#define HAVE_DLOPEN 1
34391_ACEOF
34392
34393 HAVE_DL_FUNCS=1
34394 DL_LINK=" -ldl$DL_LINK"
34395
34396else
34397
34398
34399for ac_func in shl_load
34400do
34401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34402echo "$as_me:$LINENO: checking for $ac_func" >&5
34403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34404if eval "test \"\${$as_ac_var+set}\" = set"; then
34405 echo $ECHO_N "(cached) $ECHO_C" >&6
34406else
34407 cat >conftest.$ac_ext <<_ACEOF
34408/* confdefs.h. */
34409_ACEOF
34410cat confdefs.h >>conftest.$ac_ext
34411cat >>conftest.$ac_ext <<_ACEOF
34412/* end confdefs.h. */
ac1cb8d3
VS
34413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34415#define $ac_func innocuous_$ac_func
34416
a848cd7e
SC
34417/* System header to define __stub macros and hopefully few prototypes,
34418 which can conflict with char $ac_func (); below.
34419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34421
a848cd7e
SC
34422#ifdef __STDC__
34423# include <limits.h>
34424#else
34425# include <assert.h>
34426#endif
ac1cb8d3
VS
34427
34428#undef $ac_func
34429
a848cd7e
SC
34430/* Override any gcc2 internal prototype to avoid an error. */
34431#ifdef __cplusplus
34432extern "C"
34433{
34434#endif
34435/* We use char because int might match the return type of a gcc2
34436 builtin and then its argument prototype would still apply. */
34437char $ac_func ();
34438/* The GNU C library defines this for functions which it implements
34439 to always fail with ENOSYS. Some functions are actually named
34440 something starting with __ and the normal name is an alias. */
34441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34442choke me
34443#else
34444char (*f) () = $ac_func;
34445#endif
34446#ifdef __cplusplus
34447}
34448#endif
34449
34450int
34451main ()
34452{
34453return f != $ac_func;
34454 ;
34455 return 0;
34456}
34457_ACEOF
34458rm -f conftest.$ac_objext conftest$ac_exeext
34459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34460 (eval $ac_link) 2>conftest.er1
a848cd7e 34461 ac_status=$?
ac1cb8d3
VS
34462 grep -v '^ *+' conftest.er1 >conftest.err
34463 rm -f conftest.er1
34464 cat conftest.err >&5
a848cd7e
SC
34465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34466 (exit $ac_status); } &&
89be85c2
VS
34467 { ac_try='test -z "$ac_c_werror_flag"
34468 || test ! -s conftest.err'
ac1cb8d3
VS
34469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470 (eval $ac_try) 2>&5
34471 ac_status=$?
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); }; } &&
34474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476 (eval $ac_try) 2>&5
34477 ac_status=$?
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); }; }; then
34480 eval "$as_ac_var=yes"
34481else
34482 echo "$as_me: failed program was:" >&5
34483sed 's/^/| /' conftest.$ac_ext >&5
34484
34485eval "$as_ac_var=no"
34486fi
ac1cb8d3
VS
34487rm -f conftest.err conftest.$ac_objext \
34488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34489fi
34490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34491echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34492if test `eval echo '${'$as_ac_var'}'` = yes; then
34493 cat >>confdefs.h <<_ACEOF
34494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34495_ACEOF
34496
34497 cat >>confdefs.h <<\_ACEOF
34498#define HAVE_SHL_LOAD 1
34499_ACEOF
34500
34501 HAVE_SHL_FUNCS=1
34502
34503else
34504
34505 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34506echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34507if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34508 echo $ECHO_N "(cached) $ECHO_C" >&6
34509else
34510 ac_check_lib_save_LIBS=$LIBS
34511LIBS="-lshl_load $LIBS"
34512cat >conftest.$ac_ext <<_ACEOF
34513/* confdefs.h. */
34514_ACEOF
34515cat confdefs.h >>conftest.$ac_ext
34516cat >>conftest.$ac_ext <<_ACEOF
34517/* end confdefs.h. */
34518
34519/* Override any gcc2 internal prototype to avoid an error. */
34520#ifdef __cplusplus
34521extern "C"
34522#endif
34523/* We use char because int might match the return type of a gcc2
34524 builtin and then its argument prototype would still apply. */
34525char dld ();
34526int
34527main ()
34528{
34529dld ();
34530 ;
34531 return 0;
34532}
34533_ACEOF
34534rm -f conftest.$ac_objext conftest$ac_exeext
34535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34536 (eval $ac_link) 2>conftest.er1
a848cd7e 34537 ac_status=$?
ac1cb8d3
VS
34538 grep -v '^ *+' conftest.er1 >conftest.err
34539 rm -f conftest.er1
34540 cat conftest.err >&5
a848cd7e
SC
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); } &&
89be85c2
VS
34543 { ac_try='test -z "$ac_c_werror_flag"
34544 || test ! -s conftest.err'
ac1cb8d3
VS
34545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34546 (eval $ac_try) 2>&5
34547 ac_status=$?
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); }; } &&
34550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552 (eval $ac_try) 2>&5
34553 ac_status=$?
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); }; }; then
34556 ac_cv_lib_shl_load_dld=yes
34557else
34558 echo "$as_me: failed program was:" >&5
34559sed 's/^/| /' conftest.$ac_ext >&5
34560
34561ac_cv_lib_shl_load_dld=no
34562fi
ac1cb8d3
VS
34563rm -f conftest.err conftest.$ac_objext \
34564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34565LIBS=$ac_check_lib_save_LIBS
34566fi
34567echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34568echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34569if test $ac_cv_lib_shl_load_dld = yes; then
34570
34571 HAVE_SHL_FUNCS=1
34572 DL_LINK=" -ldld$DL_LINK"
34573
34574fi
34575
34576
34577fi
34578done
34579
34580
34581fi
34582
34583
34584fi
34585done
34586
34587
34588 if test "$HAVE_DL_FUNCS" = 1; then
34589
34590for ac_func in dlerror
34591do
34592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34593echo "$as_me:$LINENO: checking for $ac_func" >&5
34594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34595if eval "test \"\${$as_ac_var+set}\" = set"; then
34596 echo $ECHO_N "(cached) $ECHO_C" >&6
34597else
34598 cat >conftest.$ac_ext <<_ACEOF
34599/* confdefs.h. */
34600_ACEOF
34601cat confdefs.h >>conftest.$ac_ext
34602cat >>conftest.$ac_ext <<_ACEOF
34603/* end confdefs.h. */
ac1cb8d3
VS
34604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34606#define $ac_func innocuous_$ac_func
34607
a848cd7e
SC
34608/* System header to define __stub macros and hopefully few prototypes,
34609 which can conflict with char $ac_func (); below.
34610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34611 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34612
a848cd7e
SC
34613#ifdef __STDC__
34614# include <limits.h>
34615#else
34616# include <assert.h>
34617#endif
ac1cb8d3
VS
34618
34619#undef $ac_func
34620
a848cd7e
SC
34621/* Override any gcc2 internal prototype to avoid an error. */
34622#ifdef __cplusplus
34623extern "C"
34624{
34625#endif
34626/* We use char because int might match the return type of a gcc2
34627 builtin and then its argument prototype would still apply. */
34628char $ac_func ();
34629/* The GNU C library defines this for functions which it implements
34630 to always fail with ENOSYS. Some functions are actually named
34631 something starting with __ and the normal name is an alias. */
34632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34633choke me
34634#else
34635char (*f) () = $ac_func;
34636#endif
34637#ifdef __cplusplus
34638}
34639#endif
34640
34641int
34642main ()
34643{
34644return f != $ac_func;
34645 ;
34646 return 0;
34647}
34648_ACEOF
34649rm -f conftest.$ac_objext conftest$ac_exeext
34650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34651 (eval $ac_link) 2>conftest.er1
a848cd7e 34652 ac_status=$?
ac1cb8d3
VS
34653 grep -v '^ *+' conftest.er1 >conftest.err
34654 rm -f conftest.er1
34655 cat conftest.err >&5
a848cd7e
SC
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); } &&
89be85c2
VS
34658 { ac_try='test -z "$ac_c_werror_flag"
34659 || test ! -s conftest.err'
ac1cb8d3
VS
34660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34661 (eval $ac_try) 2>&5
34662 ac_status=$?
34663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); }; } &&
34665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667 (eval $ac_try) 2>&5
34668 ac_status=$?
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; }; then
34671 eval "$as_ac_var=yes"
34672else
34673 echo "$as_me: failed program was:" >&5
34674sed 's/^/| /' conftest.$ac_ext >&5
34675
34676eval "$as_ac_var=no"
34677fi
ac1cb8d3
VS
34678rm -f conftest.err conftest.$ac_objext \
34679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34680fi
34681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34683if test `eval echo '${'$as_ac_var'}'` = yes; then
34684 cat >>confdefs.h <<_ACEOF
34685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34686_ACEOF
34687 cat >>confdefs.h <<\_ACEOF
34688#define HAVE_DLERROR 1
34689_ACEOF
34690
34691else
34692
34693 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34694echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34695if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34696 echo $ECHO_N "(cached) $ECHO_C" >&6
34697else
34698 ac_check_lib_save_LIBS=$LIBS
34699LIBS="-ldl $LIBS"
34700cat >conftest.$ac_ext <<_ACEOF
34701/* confdefs.h. */
34702_ACEOF
34703cat confdefs.h >>conftest.$ac_ext
34704cat >>conftest.$ac_ext <<_ACEOF
34705/* end confdefs.h. */
34706
34707/* Override any gcc2 internal prototype to avoid an error. */
34708#ifdef __cplusplus
34709extern "C"
34710#endif
34711/* We use char because int might match the return type of a gcc2
34712 builtin and then its argument prototype would still apply. */
34713char dlerror ();
34714int
34715main ()
34716{
34717dlerror ();
34718 ;
34719 return 0;
34720}
34721_ACEOF
34722rm -f conftest.$ac_objext conftest$ac_exeext
34723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34724 (eval $ac_link) 2>conftest.er1
a848cd7e 34725 ac_status=$?
ac1cb8d3
VS
34726 grep -v '^ *+' conftest.er1 >conftest.err
34727 rm -f conftest.er1
34728 cat conftest.err >&5
a848cd7e
SC
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } &&
89be85c2
VS
34731 { ac_try='test -z "$ac_c_werror_flag"
34732 || test ! -s conftest.err'
ac1cb8d3
VS
34733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34734 (eval $ac_try) 2>&5
34735 ac_status=$?
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); }; } &&
34738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34740 (eval $ac_try) 2>&5
34741 ac_status=$?
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); }; }; then
34744 ac_cv_lib_dl_dlerror=yes
34745else
34746 echo "$as_me: failed program was:" >&5
34747sed 's/^/| /' conftest.$ac_ext >&5
34748
34749ac_cv_lib_dl_dlerror=no
34750fi
ac1cb8d3
VS
34751rm -f conftest.err conftest.$ac_objext \
34752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34753LIBS=$ac_check_lib_save_LIBS
34754fi
34755echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34756echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34757if test $ac_cv_lib_dl_dlerror = yes; then
34758 cat >>confdefs.h <<\_ACEOF
34759#define HAVE_DLERROR 1
34760_ACEOF
34761
34762fi
34763
34764
34765
34766fi
34767done
34768
34769 fi
34770 fi
34771
34772 if test "$HAVE_DL_FUNCS" = 0; then
34773 if test "$HAVE_SHL_FUNCS" = 0; then
34774 if test "$USE_UNIX" = 1; then
34775 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34776echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34777 wxUSE_DYNAMIC_LOADER=no
34778 wxUSE_DYNLIB_CLASS=no
34779 else
34780 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34781echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34782 fi
34783 fi
34784 fi
34785 fi
34786fi
34787
34788if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34789 cat >>confdefs.h <<\_ACEOF
34790#define wxUSE_DYNAMIC_LOADER 1
34791_ACEOF
34792
34793fi
34794if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34795 cat >>confdefs.h <<\_ACEOF
34796#define wxUSE_DYNLIB_CLASS 1
34797_ACEOF
34798
34799fi
34800
34801
34802
34803if test "$wxUSE_PLUGINS" = "yes" ; then
34804 if test "$wxUSE_SHARED" = "no" ; then
34805 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34806echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34807 wxUSE_PLUGINS=no
34808 fi
34809 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34810 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34811echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34812 wxUSE_PLUGINS=no
34813 fi
34814 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34815 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34816echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34817 wxUSE_PLUGINS=no
34818 fi
34819 if test "$wxUSE_PLUGINS" = "yes" ; then
34820 cat >>confdefs.h <<\_ACEOF
34821#define wxUSE_PLUGINS 1
34822_ACEOF
34823
34824 fi
34825fi
34826
34827
34828if test "$wxUSE_STL" = "yes"; then
34829 cat >>confdefs.h <<\_ACEOF
34830#define wxUSE_STL 1
34831_ACEOF
34832
34833fi
34834
34835if test "$wxUSE_APPLE_IEEE" = "yes"; then
34836 cat >>confdefs.h <<\_ACEOF
34837#define wxUSE_APPLE_IEEE 1
34838_ACEOF
34839
34840fi
34841
34842if test "$wxUSE_TIMER" = "yes"; then
34843 cat >>confdefs.h <<\_ACEOF
34844#define wxUSE_TIMER 1
34845_ACEOF
34846
34847fi
34848
34849WITH_PLUGIN_SDL=0
34850if test "$wxUSE_SOUND" = "yes"; then
34851 if test "$USE_UNIX" = "1" ; then
34852
34853for ac_header in sys/soundcard.h
34854do
34855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34856if eval "test \"\${$as_ac_Header+set}\" = set"; then
34857 echo "$as_me:$LINENO: checking for $ac_header" >&5
34858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34859if eval "test \"\${$as_ac_Header+set}\" = set"; then
34860 echo $ECHO_N "(cached) $ECHO_C" >&6
34861fi
34862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34864else
34865 # Is the header compilable?
34866echo "$as_me:$LINENO: checking $ac_header usability" >&5
34867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34868cat >conftest.$ac_ext <<_ACEOF
34869/* confdefs.h. */
34870_ACEOF
34871cat confdefs.h >>conftest.$ac_ext
34872cat >>conftest.$ac_ext <<_ACEOF
34873/* end confdefs.h. */
34874$ac_includes_default
34875#include <$ac_header>
34876_ACEOF
34877rm -f conftest.$ac_objext
34878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34879 (eval $ac_compile) 2>conftest.er1
a848cd7e 34880 ac_status=$?
ac1cb8d3
VS
34881 grep -v '^ *+' conftest.er1 >conftest.err
34882 rm -f conftest.er1
34883 cat conftest.err >&5
a848cd7e
SC
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); } &&
89be85c2
VS
34886 { ac_try='test -z "$ac_c_werror_flag"
34887 || test ! -s conftest.err'
ac1cb8d3
VS
34888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34889 (eval $ac_try) 2>&5
34890 ac_status=$?
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); }; } &&
34893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34895 (eval $ac_try) 2>&5
34896 ac_status=$?
34897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34898 (exit $ac_status); }; }; then
34899 ac_header_compiler=yes
34900else
34901 echo "$as_me: failed program was:" >&5
34902sed 's/^/| /' conftest.$ac_ext >&5
34903
34904ac_header_compiler=no
34905fi
ac1cb8d3 34906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34908echo "${ECHO_T}$ac_header_compiler" >&6
34909
34910# Is the header present?
34911echo "$as_me:$LINENO: checking $ac_header presence" >&5
34912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34913cat >conftest.$ac_ext <<_ACEOF
34914/* confdefs.h. */
34915_ACEOF
34916cat confdefs.h >>conftest.$ac_ext
34917cat >>conftest.$ac_ext <<_ACEOF
34918/* end confdefs.h. */
34919#include <$ac_header>
34920_ACEOF
34921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34923 ac_status=$?
34924 grep -v '^ *+' conftest.er1 >conftest.err
34925 rm -f conftest.er1
34926 cat conftest.err >&5
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); } >/dev/null; then
34929 if test -s conftest.err; then
34930 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34932 else
34933 ac_cpp_err=
34934 fi
34935else
34936 ac_cpp_err=yes
34937fi
34938if test -z "$ac_cpp_err"; then
34939 ac_header_preproc=yes
34940else
34941 echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944 ac_header_preproc=no
34945fi
34946rm -f conftest.err conftest.$ac_ext
34947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34948echo "${ECHO_T}$ac_header_preproc" >&6
34949
34950# So? What about this header?
ac1cb8d3
VS
34951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34952 yes:no: )
a848cd7e
SC
34953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34957 ac_header_preproc=yes
a848cd7e 34958 ;;
ac1cb8d3 34959 no:yes:* )
a848cd7e
SC
34960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34972 (
34973 cat <<\_ASBOX
ac1cb8d3
VS
34974## ----------------------------------------- ##
34975## Report this to wx-dev@lists.wxwidgets.org ##
34976## ----------------------------------------- ##
a848cd7e
SC
34977_ASBOX
34978 ) |
34979 sed "s/^/$as_me: WARNING: /" >&2
34980 ;;
34981esac
34982echo "$as_me:$LINENO: checking for $ac_header" >&5
34983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34984if eval "test \"\${$as_ac_Header+set}\" = set"; then
34985 echo $ECHO_N "(cached) $ECHO_C" >&6
34986else
ac1cb8d3 34987 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34988fi
34989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34991
34992fi
34993if test `eval echo '${'$as_ac_Header'}'` = yes; then
34994 cat >>confdefs.h <<_ACEOF
34995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34996_ACEOF
34997
34998fi
34999
35000done
35001
35002
35003 if test "$wxUSE_LIBSDL" != "no"; then
35004
35005# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35006if test "${with_sdl_prefix+set}" = set; then
35007 withval="$with_sdl_prefix"
35008 sdl_prefix="$withval"
35009else
35010 sdl_prefix=""
35011fi;
35012
35013# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35014if test "${with_sdl_exec_prefix+set}" = set; then
35015 withval="$with_sdl_exec_prefix"
35016 sdl_exec_prefix="$withval"
35017else
35018 sdl_exec_prefix=""
35019fi;
35020# Check whether --enable-sdltest or --disable-sdltest was given.
35021if test "${enable_sdltest+set}" = set; then
35022 enableval="$enable_sdltest"
35023
35024else
35025 enable_sdltest=yes
35026fi;
35027
35028 if test x$sdl_exec_prefix != x ; then
35029 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35030 if test x${SDL_CONFIG+set} != xset ; then
35031 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35032 fi
35033 fi
35034 if test x$sdl_prefix != x ; then
35035 sdl_args="$sdl_args --prefix=$sdl_prefix"
35036 if test x${SDL_CONFIG+set} != xset ; then
35037 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35038 fi
35039 fi
35040
35041
35042 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35043 # Extract the first word of "sdl-config", so it can be a program name with args.
35044set dummy sdl-config; ac_word=$2
35045echo "$as_me:$LINENO: checking for $ac_word" >&5
35046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35047if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35048 echo $ECHO_N "(cached) $ECHO_C" >&6
35049else
35050 case $SDL_CONFIG in
35051 [\\/]* | ?:[\\/]*)
35052 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35053 ;;
35054 *)
35055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35056for as_dir in $PATH
35057do
35058 IFS=$as_save_IFS
35059 test -z "$as_dir" && as_dir=.
35060 for ac_exec_ext in '' $ac_executable_extensions; do
35061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35062 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35064 break 2
35065 fi
35066done
35067done
35068
35069 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35070 ;;
35071esac
35072fi
35073SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35074
35075if test -n "$SDL_CONFIG"; then
35076 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35077echo "${ECHO_T}$SDL_CONFIG" >&6
35078else
35079 echo "$as_me:$LINENO: result: no" >&5
35080echo "${ECHO_T}no" >&6
35081fi
35082
35083 min_sdl_version=1.2.0
35084 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35085echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35086 no_sdl=""
35087 if test "$SDL_CONFIG" = "no" ; then
35088 no_sdl=yes
35089 else
35090 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35091 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35092
35093 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35094 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35095 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35096 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35097 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35098 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35099 if test "x$enable_sdltest" = "xyes" ; then
35100 ac_save_CFLAGS="$CFLAGS"
35101 ac_save_LIBS="$LIBS"
35102 CFLAGS="$CFLAGS $SDL_CFLAGS"
35103 LIBS="$LIBS $SDL_LIBS"
35104 rm -f conf.sdltest
35105 if test "$cross_compiling" = yes; then
35106 echo $ac_n "cross compiling; assumed OK... $ac_c"
35107else
35108 cat >conftest.$ac_ext <<_ACEOF
35109/* confdefs.h. */
35110_ACEOF
35111cat confdefs.h >>conftest.$ac_ext
35112cat >>conftest.$ac_ext <<_ACEOF
35113/* end confdefs.h. */
35114
35115#include <stdio.h>
35116#include <stdlib.h>
35117#include <string.h>
35118#include "SDL.h"
35119
35120char*
35121my_strdup (char *str)
35122{
35123 char *new_str;
35124
35125 if (str)
35126 {
35127 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35128 strcpy (new_str, str);
35129 }
35130 else
35131 new_str = NULL;
35132
35133 return new_str;
35134}
35135
35136int main (int argc, char *argv[])
35137{
35138 int major, minor, micro;
35139 char *tmp_version;
35140
35141 /* This hangs on some systems (?)
35142 system ("touch conf.sdltest");
35143 */
35144 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35145
35146 /* HP/UX 9 (%@#!) writes to sscanf strings */
35147 tmp_version = my_strdup("$min_sdl_version");
35148 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35149 printf("%s, bad version string\n", "$min_sdl_version");
35150 exit(1);
35151 }
35152
35153 if (($sdl_major_version > major) ||
35154 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35155 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35156 {
35157 return 0;
35158 }
35159 else
35160 {
35161 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35162 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35163 printf("*** best to upgrade to the required version.\n");
35164 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35165 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35166 printf("*** config.cache before re-running configure\n");
35167 return 1;
35168 }
35169}
35170
35171
35172_ACEOF
35173rm -f conftest$ac_exeext
35174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35175 (eval $ac_link) 2>&5
35176 ac_status=$?
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35180 (eval $ac_try) 2>&5
35181 ac_status=$?
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); }; }; then
35184 :
35185else
35186 echo "$as_me: program exited with status $ac_status" >&5
35187echo "$as_me: failed program was:" >&5
35188sed 's/^/| /' conftest.$ac_ext >&5
35189
35190( exit $ac_status )
35191no_sdl=yes
35192fi
ac1cb8d3 35193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35194fi
35195 CFLAGS="$ac_save_CFLAGS"
35196 LIBS="$ac_save_LIBS"
35197 fi
35198 fi
35199 if test "x$no_sdl" = x ; then
35200 echo "$as_me:$LINENO: result: yes" >&5
35201echo "${ECHO_T}yes" >&6
35202
35203 EXTRALIBS_SDL="$SDL_LIBS"
35204 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35205 cat >>confdefs.h <<\_ACEOF
35206#define wxUSE_LIBSDL 1
35207_ACEOF
35208
35209
35210 else
35211 echo "$as_me:$LINENO: result: no" >&5
35212echo "${ECHO_T}no" >&6
35213 if test "$SDL_CONFIG" = "no" ; then
35214 echo "*** The sdl-config script installed by SDL could not be found"
35215 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35216 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35217 echo "*** full path to sdl-config."
35218 else
35219 if test -f conf.sdltest ; then
35220 :
35221 else
35222 echo "*** Could not run SDL test program, checking why..."
35223 CFLAGS="$CFLAGS $SDL_CFLAGS"
35224 LIBS="$LIBS $SDL_LIBS"
35225 cat >conftest.$ac_ext <<_ACEOF
35226/* confdefs.h. */
35227_ACEOF
35228cat confdefs.h >>conftest.$ac_ext
35229cat >>conftest.$ac_ext <<_ACEOF
35230/* end confdefs.h. */
35231
35232#include <stdio.h>
35233#include "SDL.h"
35234
35235int main(int argc, char *argv[])
35236{ return 0; }
35237#undef main
35238#define main K_and_R_C_main
35239
35240int
35241main ()
35242{
35243 return 0;
35244 ;
35245 return 0;
35246}
35247_ACEOF
35248rm -f conftest.$ac_objext conftest$ac_exeext
35249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35250 (eval $ac_link) 2>conftest.er1
a848cd7e 35251 ac_status=$?
ac1cb8d3
VS
35252 grep -v '^ *+' conftest.er1 >conftest.err
35253 rm -f conftest.er1
35254 cat conftest.err >&5
a848cd7e
SC
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); } &&
89be85c2
VS
35257 { ac_try='test -z "$ac_c_werror_flag"
35258 || test ! -s conftest.err'
ac1cb8d3
VS
35259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35260 (eval $ac_try) 2>&5
35261 ac_status=$?
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); }; } &&
35264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35266 (eval $ac_try) 2>&5
35267 ac_status=$?
35268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269 (exit $ac_status); }; }; then
35270 echo "*** The test program compiled, but did not run. This usually means"
35271 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35272 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35273 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35274 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35275 echo "*** is required on your system"
35276 echo "***"
35277 echo "*** If you have an old version installed, it is best to remove it, although"
35278 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35279else
35280 echo "$as_me: failed program was:" >&5
35281sed 's/^/| /' conftest.$ac_ext >&5
35282
35283 echo "*** The test program failed to compile or link. See the file config.log for the"
35284 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35285 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35286 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35287fi
ac1cb8d3
VS
35288rm -f conftest.err conftest.$ac_objext \
35289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35290 CFLAGS="$ac_save_CFLAGS"
35291 LIBS="$ac_save_LIBS"
35292 fi
35293 fi
35294 SDL_CFLAGS=""
35295 SDL_LIBS=""
35296 wxUSE_LIBSDL="no"
35297 fi
35298
35299
35300 rm -f conf.sdltest
35301
35302 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35303 WITH_PLUGIN_SDL=1
35304 fi
35305 fi
35306 fi
35307
35308 cat >>confdefs.h <<\_ACEOF
35309#define wxUSE_SOUND 1
35310_ACEOF
35311
35312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35313fi
35314
d1c38808
VZ
35315if test "$WXGTK20" = 1; then
35316 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35317 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35318
35319
35320 succeeded=no
35321
35322 if test -z "$PKG_CONFIG"; then
35323 # Extract the first word of "pkg-config", so it can be a program name with args.
35324set dummy pkg-config; ac_word=$2
35325echo "$as_me:$LINENO: checking for $ac_word" >&5
35326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35327if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35328 echo $ECHO_N "(cached) $ECHO_C" >&6
35329else
35330 case $PKG_CONFIG in
35331 [\\/]* | ?:[\\/]*)
35332 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35333 ;;
35334 *)
35335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35336for as_dir in $PATH
35337do
35338 IFS=$as_save_IFS
35339 test -z "$as_dir" && as_dir=.
35340 for ac_exec_ext in '' $ac_executable_extensions; do
35341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35342 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35344 break 2
35345 fi
35346done
35347done
35348
35349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35350 ;;
35351esac
35352fi
35353PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35354
35355if test -n "$PKG_CONFIG"; then
35356 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35357echo "${ECHO_T}$PKG_CONFIG" >&6
35358else
35359 echo "$as_me:$LINENO: result: no" >&5
35360echo "${ECHO_T}no" >&6
35361fi
35362
35363 fi
35364
35365 if test "$PKG_CONFIG" = "no" ; then
35366 echo "*** The pkg-config script could not be found. Make sure it is"
35367 echo "*** in your path, or set the PKG_CONFIG environment variable"
35368 echo "*** to the full path to pkg-config."
35369 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35370 else
35371 PKG_CONFIG_MIN_VERSION=0.9.0
35372 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35373 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35374echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35375
ffa762ff 35376 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35377 echo "$as_me:$LINENO: result: yes" >&5
35378echo "${ECHO_T}yes" >&6
35379 succeeded=yes
35380
35381 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35382echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35383 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35384 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35385echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35386
35387 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35388echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35389 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35390 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35391echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35392 else
35393 LIBGNOMEPRINTUI_CFLAGS=""
35394 LIBGNOMEPRINTUI_LIBS=""
35395 ## If we have a custom action on failure, don't print errors, but
35396 ## do set a variable so people can do so.
ffa762ff 35397 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35398
35399 fi
35400
35401
35402
35403 else
35404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35406 fi
35407 fi
35408
35409 if test $succeeded = yes; then
35410
d1c38808
VZ
35411 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35412 cat >>confdefs.h <<\_ACEOF
35413#define wxUSE_LIBGNOMEPRINT 1
35414_ACEOF
35415
35416
35417 else
35418
35419 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35420echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35421 wxUSE_LIBGNOMEPRINT="no"
35422
35423
35424 fi
35425
35426 fi
35427 fi
35428fi
35429
35430
a848cd7e
SC
35431if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35432 cat >>confdefs.h <<\_ACEOF
35433#define wxUSE_CMDLINE_PARSER 1
35434_ACEOF
35435
35436fi
35437
35438if test "$wxUSE_STOPWATCH" = "yes"; then
35439 cat >>confdefs.h <<\_ACEOF
35440#define wxUSE_STOPWATCH 1
35441_ACEOF
35442
35443fi
35444
35445if test "$wxUSE_DATETIME" = "yes"; then
35446 cat >>confdefs.h <<\_ACEOF
35447#define wxUSE_DATETIME 1
35448_ACEOF
35449
35450fi
35451
35452if test "$wxUSE_FILE" = "yes"; then
35453 cat >>confdefs.h <<\_ACEOF
35454#define wxUSE_FILE 1
35455_ACEOF
35456
35457fi
35458
35459if test "$wxUSE_FFILE" = "yes"; then
35460 cat >>confdefs.h <<\_ACEOF
35461#define wxUSE_FFILE 1
35462_ACEOF
35463
35464fi
35465
35466if test "$wxUSE_FILESYSTEM" = "yes"; then
35467 cat >>confdefs.h <<\_ACEOF
35468#define wxUSE_FILESYSTEM 1
35469_ACEOF
35470
35471fi
35472
35473if test "$wxUSE_FS_ZIP" = "yes"; then
35474 cat >>confdefs.h <<\_ACEOF
35475#define wxUSE_FS_ZIP 1
35476_ACEOF
35477
35478fi
35479
81f90336 35480if test "$wxUSE_ARCSTREAM" = "yes"; then
a848cd7e 35481 cat >>confdefs.h <<\_ACEOF
81f90336
MW
35482#define wxUSE_ARCSTREAM 1
35483_ACEOF
35484
35485fi
35486
35487if test "$wxUSE_ZIPSTREAM" = "yes"; then
35488 if test "$wxUSE_ARCSTREAM" != "yes"; then
35489 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
35490echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
35491 elif test "$wxUSE_ZLIB" = "no"; then
35492 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
35493echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
35494 else
35495 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35496#define wxUSE_ZIPSTREAM 1
35497_ACEOF
35498
81f90336 35499 fi
a848cd7e
SC
35500fi
35501
a848cd7e
SC
35502if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35503 cat >>confdefs.h <<\_ACEOF
35504#define wxUSE_ON_FATAL_EXCEPTION 1
35505_ACEOF
35506
35507fi
35508
eaff0f0d
VZ
35509if test "$wxUSE_STACKWALKER" = "yes"; then
35510 cat >>confdefs.h <<\_ACEOF
35511#define wxUSE_STACKWALKER 1
35512_ACEOF
35513
35514fi
35515
a848cd7e
SC
35516if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35517 cat >>confdefs.h <<\_ACEOF
35518#define wxUSE_SNGLINST_CHECKER 1
35519_ACEOF
35520
35521fi
35522
35523if test "$wxUSE_BUSYINFO" = "yes"; then
35524 cat >>confdefs.h <<\_ACEOF
35525#define wxUSE_BUSYINFO 1
35526_ACEOF
35527
35528fi
35529
35530if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35531 cat >>confdefs.h <<\_ACEOF
35532#define wxUSE_STD_IOSTREAM 1
35533_ACEOF
35534
35535fi
35536
35537if test "$wxUSE_TEXTBUFFER" = "yes"; then
35538 cat >>confdefs.h <<\_ACEOF
35539#define wxUSE_TEXTBUFFER 1
35540_ACEOF
35541
35542fi
35543
35544if test "$wxUSE_TEXTFILE" = "yes"; then
35545 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35546 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35547echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35548 else
35549 cat >>confdefs.h <<\_ACEOF
35550#define wxUSE_TEXTFILE 1
35551_ACEOF
35552
35553 fi
35554fi
35555
35556if test "$wxUSE_CONFIG" = "yes" ; then
35557 if test "$wxUSE_TEXTFILE" != "yes"; then
35558 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35559echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35560 else
35561 cat >>confdefs.h <<\_ACEOF
35562#define wxUSE_CONFIG 1
89be85c2
VS
35563_ACEOF
35564
35565 cat >>confdefs.h <<\_ACEOF
35566#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
35567_ACEOF
35568
35569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35570 fi
35571fi
35572
35573if test "$wxUSE_INTL" = "yes" ; then
35574 if test "$wxUSE_FILE" != "yes"; then
35575 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35576echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35577 else
35578 cat >>confdefs.h <<\_ACEOF
35579#define wxUSE_INTL 1
35580_ACEOF
35581
35582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35583 GUIDIST="$GUIDIST INTL_DIST"
35584 fi
35585fi
35586
35587if test "$wxUSE_LOG" = "yes"; then
35588 cat >>confdefs.h <<\_ACEOF
35589#define wxUSE_LOG 1
35590_ACEOF
35591
35592
35593 if test "$wxUSE_LOGGUI" = "yes"; then
35594 cat >>confdefs.h <<\_ACEOF
35595#define wxUSE_LOGGUI 1
35596_ACEOF
35597
35598 fi
35599
35600 if test "$wxUSE_LOGWINDOW" = "yes"; then
35601 cat >>confdefs.h <<\_ACEOF
35602#define wxUSE_LOGWINDOW 1
35603_ACEOF
35604
35605 fi
35606
35607 if test "$wxUSE_LOGDIALOG" = "yes"; then
35608 cat >>confdefs.h <<\_ACEOF
35609#define wxUSE_LOG_DIALOG 1
35610_ACEOF
35611
35612 fi
35613fi
35614
35615if test "$wxUSE_LONGLONG" = "yes"; then
35616 cat >>confdefs.h <<\_ACEOF
35617#define wxUSE_LONGLONG 1
35618_ACEOF
35619
35620fi
35621
35622if test "$wxUSE_GEOMETRY" = "yes"; then
35623 cat >>confdefs.h <<\_ACEOF
35624#define wxUSE_GEOMETRY 1
35625_ACEOF
35626
35627fi
35628
a848cd7e
SC
35629if test "$wxUSE_STREAMS" = "yes" ; then
35630 cat >>confdefs.h <<\_ACEOF
35631#define wxUSE_STREAMS 1
35632_ACEOF
35633
35634fi
35635
35636
35637if test "$wxUSE_DATETIME" = "yes"; then
35638
35639for ac_func in strptime
35640do
35641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35642echo "$as_me:$LINENO: checking for $ac_func" >&5
35643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35644if eval "test \"\${$as_ac_var+set}\" = set"; then
35645 echo $ECHO_N "(cached) $ECHO_C" >&6
35646else
35647 cat >conftest.$ac_ext <<_ACEOF
35648/* confdefs.h. */
35649_ACEOF
35650cat confdefs.h >>conftest.$ac_ext
35651cat >>conftest.$ac_ext <<_ACEOF
35652/* end confdefs.h. */
ac1cb8d3
VS
35653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35655#define $ac_func innocuous_$ac_func
35656
a848cd7e
SC
35657/* System header to define __stub macros and hopefully few prototypes,
35658 which can conflict with char $ac_func (); below.
35659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35661
a848cd7e
SC
35662#ifdef __STDC__
35663# include <limits.h>
35664#else
35665# include <assert.h>
35666#endif
ac1cb8d3
VS
35667
35668#undef $ac_func
35669
a848cd7e
SC
35670/* Override any gcc2 internal prototype to avoid an error. */
35671#ifdef __cplusplus
35672extern "C"
35673{
35674#endif
35675/* We use char because int might match the return type of a gcc2
35676 builtin and then its argument prototype would still apply. */
35677char $ac_func ();
35678/* The GNU C library defines this for functions which it implements
35679 to always fail with ENOSYS. Some functions are actually named
35680 something starting with __ and the normal name is an alias. */
35681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35682choke me
35683#else
35684char (*f) () = $ac_func;
35685#endif
35686#ifdef __cplusplus
35687}
35688#endif
35689
35690int
35691main ()
35692{
35693return f != $ac_func;
35694 ;
35695 return 0;
35696}
35697_ACEOF
35698rm -f conftest.$ac_objext conftest$ac_exeext
35699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35700 (eval $ac_link) 2>conftest.er1
a848cd7e 35701 ac_status=$?
ac1cb8d3
VS
35702 grep -v '^ *+' conftest.er1 >conftest.err
35703 rm -f conftest.er1
35704 cat conftest.err >&5
a848cd7e
SC
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); } &&
89be85c2
VS
35707 { ac_try='test -z "$ac_c_werror_flag"
35708 || test ! -s conftest.err'
ac1cb8d3
VS
35709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35710 (eval $ac_try) 2>&5
35711 ac_status=$?
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); }; } &&
35714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35716 (eval $ac_try) 2>&5
35717 ac_status=$?
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); }; }; then
35720 eval "$as_ac_var=yes"
35721else
35722 echo "$as_me: failed program was:" >&5
35723sed 's/^/| /' conftest.$ac_ext >&5
35724
35725eval "$as_ac_var=no"
35726fi
ac1cb8d3
VS
35727rm -f conftest.err conftest.$ac_objext \
35728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35729fi
35730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35732if test `eval echo '${'$as_ac_var'}'` = yes; then
35733 cat >>confdefs.h <<_ACEOF
35734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35735_ACEOF
35736
35737fi
35738done
35739
35740
35741 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35742echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35743if test "${wx_cv_var_timezone+set}" = set; then
35744 echo $ECHO_N "(cached) $ECHO_C" >&6
35745else
35746
35747 cat >conftest.$ac_ext <<_ACEOF
35748/* confdefs.h. */
35749_ACEOF
35750cat confdefs.h >>conftest.$ac_ext
35751cat >>conftest.$ac_ext <<_ACEOF
35752/* end confdefs.h. */
35753
35754 #include <time.h>
35755
35756int
35757main ()
35758{
35759
35760 int tz;
35761 tz = timezone;
35762
35763 ;
35764 return 0;
35765}
35766_ACEOF
35767rm -f conftest.$ac_objext
35768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35769 (eval $ac_compile) 2>conftest.er1
a848cd7e 35770 ac_status=$?
ac1cb8d3
VS
35771 grep -v '^ *+' conftest.er1 >conftest.err
35772 rm -f conftest.er1
35773 cat conftest.err >&5
a848cd7e
SC
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); } &&
89be85c2
VS
35776 { ac_try='test -z "$ac_c_werror_flag"
35777 || test ! -s conftest.err'
ac1cb8d3
VS
35778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35779 (eval $ac_try) 2>&5
35780 ac_status=$?
35781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782 (exit $ac_status); }; } &&
35783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785 (eval $ac_try) 2>&5
35786 ac_status=$?
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); }; }; then
35789
35790 wx_cv_var_timezone=timezone
35791
35792else
35793 echo "$as_me: failed program was:" >&5
35794sed 's/^/| /' conftest.$ac_ext >&5
35795
35796
35797 cat >conftest.$ac_ext <<_ACEOF
35798/* confdefs.h. */
35799_ACEOF
35800cat confdefs.h >>conftest.$ac_ext
35801cat >>conftest.$ac_ext <<_ACEOF
35802/* end confdefs.h. */
35803
35804 #include <time.h>
35805
35806int
35807main ()
35808{
35809
35810 int tz;
35811 tz = _timezone;
35812
35813 ;
35814 return 0;
35815}
35816_ACEOF
35817rm -f conftest.$ac_objext
35818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35819 (eval $ac_compile) 2>conftest.er1
a848cd7e 35820 ac_status=$?
ac1cb8d3
VS
35821 grep -v '^ *+' conftest.er1 >conftest.err
35822 rm -f conftest.er1
35823 cat conftest.err >&5
a848cd7e
SC
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); } &&
89be85c2
VS
35826 { ac_try='test -z "$ac_c_werror_flag"
35827 || test ! -s conftest.err'
ac1cb8d3
VS
35828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35829 (eval $ac_try) 2>&5
35830 ac_status=$?
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); }; } &&
35833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35835 (eval $ac_try) 2>&5
35836 ac_status=$?
35837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); }; }; then
35839
35840 wx_cv_var_timezone=_timezone
35841
35842else
35843 echo "$as_me: failed program was:" >&5
35844sed 's/^/| /' conftest.$ac_ext >&5
35845
35846
35847 cat >conftest.$ac_ext <<_ACEOF
35848/* confdefs.h. */
35849_ACEOF
35850cat confdefs.h >>conftest.$ac_ext
35851cat >>conftest.$ac_ext <<_ACEOF
35852/* end confdefs.h. */
35853
35854 #include <time.h>
35855
35856int
35857main ()
35858{
35859
35860 int tz;
35861 tz = __timezone;
35862
35863 ;
35864 return 0;
35865}
35866_ACEOF
35867rm -f conftest.$ac_objext
35868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35869 (eval $ac_compile) 2>conftest.er1
a848cd7e 35870 ac_status=$?
ac1cb8d3
VS
35871 grep -v '^ *+' conftest.er1 >conftest.err
35872 rm -f conftest.er1
35873 cat conftest.err >&5
a848cd7e
SC
35874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 (exit $ac_status); } &&
89be85c2
VS
35876 { ac_try='test -z "$ac_c_werror_flag"
35877 || test ! -s conftest.err'
ac1cb8d3
VS
35878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879 (eval $ac_try) 2>&5
35880 ac_status=$?
35881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 (exit $ac_status); }; } &&
35883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35885 (eval $ac_try) 2>&5
35886 ac_status=$?
35887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888 (exit $ac_status); }; }; then
35889
35890 wx_cv_var_timezone=__timezone
35891
35892else
35893 echo "$as_me: failed program was:" >&5
35894sed 's/^/| /' conftest.$ac_ext >&5
35895
35896
35897 if test "$USE_DOS" = 0 ; then
35898 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35899echo "$as_me: WARNING: no timezone variable" >&2;}
35900 fi
35901
35902
35903fi
ac1cb8d3 35904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35905
35906
35907fi
ac1cb8d3 35908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35909
35910
35911fi
ac1cb8d3 35912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35913
35914
35915fi
35916echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35917echo "${ECHO_T}$wx_cv_var_timezone" >&6
35918
35919 if test "x$wx_cv_var_timezone" != x ; then
35920 cat >>confdefs.h <<_ACEOF
35921#define WX_TIMEZONE $wx_cv_var_timezone
35922_ACEOF
35923
35924 fi
35925
35926
35927for ac_func in localtime
35928do
35929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35930echo "$as_me:$LINENO: checking for $ac_func" >&5
35931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35932if eval "test \"\${$as_ac_var+set}\" = set"; then
35933 echo $ECHO_N "(cached) $ECHO_C" >&6
35934else
35935 cat >conftest.$ac_ext <<_ACEOF
35936/* confdefs.h. */
35937_ACEOF
35938cat confdefs.h >>conftest.$ac_ext
35939cat >>conftest.$ac_ext <<_ACEOF
35940/* end confdefs.h. */
ac1cb8d3
VS
35941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35943#define $ac_func innocuous_$ac_func
35944
a848cd7e
SC
35945/* System header to define __stub macros and hopefully few prototypes,
35946 which can conflict with char $ac_func (); below.
35947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35948 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35949
a848cd7e
SC
35950#ifdef __STDC__
35951# include <limits.h>
35952#else
35953# include <assert.h>
35954#endif
ac1cb8d3
VS
35955
35956#undef $ac_func
35957
a848cd7e
SC
35958/* Override any gcc2 internal prototype to avoid an error. */
35959#ifdef __cplusplus
35960extern "C"
35961{
35962#endif
35963/* We use char because int might match the return type of a gcc2
35964 builtin and then its argument prototype would still apply. */
35965char $ac_func ();
35966/* The GNU C library defines this for functions which it implements
35967 to always fail with ENOSYS. Some functions are actually named
35968 something starting with __ and the normal name is an alias. */
35969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35970choke me
35971#else
35972char (*f) () = $ac_func;
35973#endif
35974#ifdef __cplusplus
35975}
35976#endif
35977
35978int
35979main ()
35980{
35981return f != $ac_func;
35982 ;
35983 return 0;
35984}
35985_ACEOF
35986rm -f conftest.$ac_objext conftest$ac_exeext
35987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35988 (eval $ac_link) 2>conftest.er1
a848cd7e 35989 ac_status=$?
ac1cb8d3
VS
35990 grep -v '^ *+' conftest.er1 >conftest.err
35991 rm -f conftest.er1
35992 cat conftest.err >&5
a848cd7e
SC
35993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35994 (exit $ac_status); } &&
89be85c2
VS
35995 { ac_try='test -z "$ac_c_werror_flag"
35996 || test ! -s conftest.err'
ac1cb8d3
VS
35997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35998 (eval $ac_try) 2>&5
35999 ac_status=$?
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); }; } &&
36002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004 (eval $ac_try) 2>&5
36005 ac_status=$?
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); }; }; then
36008 eval "$as_ac_var=yes"
36009else
36010 echo "$as_me: failed program was:" >&5
36011sed 's/^/| /' conftest.$ac_ext >&5
36012
36013eval "$as_ac_var=no"
36014fi
ac1cb8d3
VS
36015rm -f conftest.err conftest.$ac_objext \
36016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36017fi
36018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36020if test `eval echo '${'$as_ac_var'}'` = yes; then
36021 cat >>confdefs.h <<_ACEOF
36022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36023_ACEOF
36024
36025fi
36026done
36027
36028
36029 if test "$ac_cv_func_localtime" = "yes"; then
36030 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36031echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36032if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36033 echo $ECHO_N "(cached) $ECHO_C" >&6
36034else
36035
36036 cat >conftest.$ac_ext <<_ACEOF
36037/* confdefs.h. */
36038_ACEOF
36039cat confdefs.h >>conftest.$ac_ext
36040cat >>conftest.$ac_ext <<_ACEOF
36041/* end confdefs.h. */
36042
36043 #include <time.h>
36044
36045int
36046main ()
36047{
36048
36049 struct tm tm;
36050 tm.tm_gmtoff++;
36051
36052 ;
36053 return 0;
36054}
36055_ACEOF
36056rm -f conftest.$ac_objext
36057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36058 (eval $ac_compile) 2>conftest.er1
a848cd7e 36059 ac_status=$?
ac1cb8d3
VS
36060 grep -v '^ *+' conftest.er1 >conftest.err
36061 rm -f conftest.er1
36062 cat conftest.err >&5
a848cd7e
SC
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } &&
89be85c2
VS
36065 { ac_try='test -z "$ac_c_werror_flag"
36066 || test ! -s conftest.err'
ac1cb8d3
VS
36067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36068 (eval $ac_try) 2>&5
36069 ac_status=$?
36070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); }; } &&
36072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36074 (eval $ac_try) 2>&5
36075 ac_status=$?
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); }; }; then
36078
36079 wx_cv_struct_tm_has_gmtoff=yes
36080
36081else
36082 echo "$as_me: failed program was:" >&5
36083sed 's/^/| /' conftest.$ac_ext >&5
36084
36085wx_cv_struct_tm_has_gmtoff=no
36086
36087fi
ac1cb8d3 36088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36089
36090fi
36091echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36092echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36093 fi
36094
36095 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36096 cat >>confdefs.h <<\_ACEOF
36097#define WX_GMTOFF_IN_TM 1
36098_ACEOF
36099
36100 fi
36101
36102
36103
36104for ac_func in gettimeofday ftime
36105do
36106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36107echo "$as_me:$LINENO: checking for $ac_func" >&5
36108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36109if eval "test \"\${$as_ac_var+set}\" = set"; then
36110 echo $ECHO_N "(cached) $ECHO_C" >&6
36111else
36112 cat >conftest.$ac_ext <<_ACEOF
36113/* confdefs.h. */
36114_ACEOF
36115cat confdefs.h >>conftest.$ac_ext
36116cat >>conftest.$ac_ext <<_ACEOF
36117/* end confdefs.h. */
ac1cb8d3
VS
36118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36120#define $ac_func innocuous_$ac_func
36121
a848cd7e
SC
36122/* System header to define __stub macros and hopefully few prototypes,
36123 which can conflict with char $ac_func (); below.
36124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36125 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36126
a848cd7e
SC
36127#ifdef __STDC__
36128# include <limits.h>
36129#else
36130# include <assert.h>
36131#endif
ac1cb8d3
VS
36132
36133#undef $ac_func
36134
a848cd7e
SC
36135/* Override any gcc2 internal prototype to avoid an error. */
36136#ifdef __cplusplus
36137extern "C"
36138{
36139#endif
36140/* We use char because int might match the return type of a gcc2
36141 builtin and then its argument prototype would still apply. */
36142char $ac_func ();
36143/* The GNU C library defines this for functions which it implements
36144 to always fail with ENOSYS. Some functions are actually named
36145 something starting with __ and the normal name is an alias. */
36146#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36147choke me
36148#else
36149char (*f) () = $ac_func;
36150#endif
36151#ifdef __cplusplus
36152}
36153#endif
36154
36155int
36156main ()
36157{
36158return f != $ac_func;
36159 ;
36160 return 0;
36161}
36162_ACEOF
36163rm -f conftest.$ac_objext conftest$ac_exeext
36164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36165 (eval $ac_link) 2>conftest.er1
a848cd7e 36166 ac_status=$?
ac1cb8d3
VS
36167 grep -v '^ *+' conftest.er1 >conftest.err
36168 rm -f conftest.er1
36169 cat conftest.err >&5
a848cd7e
SC
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); } &&
89be85c2
VS
36172 { ac_try='test -z "$ac_c_werror_flag"
36173 || test ! -s conftest.err'
ac1cb8d3
VS
36174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36175 (eval $ac_try) 2>&5
36176 ac_status=$?
36177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); }; } &&
36179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36181 (eval $ac_try) 2>&5
36182 ac_status=$?
36183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184 (exit $ac_status); }; }; then
36185 eval "$as_ac_var=yes"
36186else
36187 echo "$as_me: failed program was:" >&5
36188sed 's/^/| /' conftest.$ac_ext >&5
36189
36190eval "$as_ac_var=no"
36191fi
ac1cb8d3
VS
36192rm -f conftest.err conftest.$ac_objext \
36193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36194fi
36195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36197if test `eval echo '${'$as_ac_var'}'` = yes; then
36198 cat >>confdefs.h <<_ACEOF
36199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36200_ACEOF
36201 break
36202fi
36203done
36204
36205
36206 if test "$ac_cv_func_gettimeofday" = "yes"; then
36207 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36208echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36209if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36210 echo $ECHO_N "(cached) $ECHO_C" >&6
36211else
36212
36213
36214
36215 ac_ext=cc
36216ac_cpp='$CXXCPP $CPPFLAGS'
36217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36220
36221
36222 cat >conftest.$ac_ext <<_ACEOF
36223/* confdefs.h. */
36224_ACEOF
36225cat confdefs.h >>conftest.$ac_ext
36226cat >>conftest.$ac_ext <<_ACEOF
36227/* end confdefs.h. */
36228
36229 #include <sys/time.h>
36230 #include <unistd.h>
36231
36232int
36233main ()
36234{
36235
36236 struct timeval tv;
36237 gettimeofday(&tv, NULL);
36238
36239 ;
36240 return 0;
36241}
36242_ACEOF
36243rm -f conftest.$ac_objext
36244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36245 (eval $ac_compile) 2>conftest.er1
a848cd7e 36246 ac_status=$?
ac1cb8d3
VS
36247 grep -v '^ *+' conftest.er1 >conftest.err
36248 rm -f conftest.er1
36249 cat conftest.err >&5
a848cd7e
SC
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); } &&
89be85c2
VS
36252 { ac_try='test -z "$ac_cxx_werror_flag"
36253 || test ! -s conftest.err'
ac1cb8d3
VS
36254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36255 (eval $ac_try) 2>&5
36256 ac_status=$?
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); }; } &&
36259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36261 (eval $ac_try) 2>&5
36262 ac_status=$?
36263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264 (exit $ac_status); }; }; then
36265 wx_cv_func_gettimeofday_has_2_args=yes
36266else
36267 echo "$as_me: failed program was:" >&5
36268sed 's/^/| /' conftest.$ac_ext >&5
36269
36270cat >conftest.$ac_ext <<_ACEOF
36271/* confdefs.h. */
36272_ACEOF
36273cat confdefs.h >>conftest.$ac_ext
36274cat >>conftest.$ac_ext <<_ACEOF
36275/* end confdefs.h. */
36276
36277 #include <sys/time.h>
36278 #include <unistd.h>
36279
36280int
36281main ()
36282{
36283
36284 struct timeval tv;
36285 gettimeofday(&tv);
36286
36287 ;
36288 return 0;
36289}
36290_ACEOF
36291rm -f conftest.$ac_objext
36292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36293 (eval $ac_compile) 2>conftest.er1
a848cd7e 36294 ac_status=$?
ac1cb8d3
VS
36295 grep -v '^ *+' conftest.er1 >conftest.err
36296 rm -f conftest.er1
36297 cat conftest.err >&5
a848cd7e
SC
36298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299 (exit $ac_status); } &&
89be85c2
VS
36300 { ac_try='test -z "$ac_cxx_werror_flag"
36301 || test ! -s conftest.err'
ac1cb8d3
VS
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303 (eval $ac_try) 2>&5
36304 ac_status=$?
36305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; } &&
36307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309 (eval $ac_try) 2>&5
36310 ac_status=$?
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); }; }; then
36313 wx_cv_func_gettimeofday_has_2_args=no
36314else
36315 echo "$as_me: failed program was:" >&5
36316sed 's/^/| /' conftest.$ac_ext >&5
36317
36318
36319 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36320echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36321 wx_cv_func_gettimeofday_has_2_args=unknown
36322
36323
36324fi
ac1cb8d3 36325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36326
36327fi
ac1cb8d3 36328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36329 ac_ext=c
36330ac_cpp='$CPP $CPPFLAGS'
36331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36333ac_compiler_gnu=$ac_cv_c_compiler_gnu
36334
36335
36336fi
36337echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36338echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36339
36340 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36341 cat >>confdefs.h <<\_ACEOF
36342#define WX_GETTIMEOFDAY_NO_TZ 1
36343_ACEOF
36344
36345 fi
36346 fi
36347
36348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36349fi
36350
36351
36352if test "$wxUSE_SOCKETS" = "yes"; then
36353 if test "$wxUSE_MGL" = "1"; then
36354 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36355echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36356 wxUSE_SOCKETS="no"
36357 fi
36358fi
36359
36360if test "$wxUSE_SOCKETS" = "yes"; then
36361 if test "$TOOLKIT" != "MSW"; then
36362 echo "$as_me:$LINENO: checking for socket" >&5
36363echo $ECHO_N "checking for socket... $ECHO_C" >&6
36364if test "${ac_cv_func_socket+set}" = set; then
36365 echo $ECHO_N "(cached) $ECHO_C" >&6
36366else
36367 cat >conftest.$ac_ext <<_ACEOF
36368/* confdefs.h. */
36369_ACEOF
36370cat confdefs.h >>conftest.$ac_ext
36371cat >>conftest.$ac_ext <<_ACEOF
36372/* end confdefs.h. */
ac1cb8d3
VS
36373/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36375#define socket innocuous_socket
36376
a848cd7e
SC
36377/* System header to define __stub macros and hopefully few prototypes,
36378 which can conflict with char socket (); below.
36379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36380 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36381
a848cd7e
SC
36382#ifdef __STDC__
36383# include <limits.h>
36384#else
36385# include <assert.h>
36386#endif
ac1cb8d3
VS
36387
36388#undef socket
36389
a848cd7e
SC
36390/* Override any gcc2 internal prototype to avoid an error. */
36391#ifdef __cplusplus
36392extern "C"
36393{
36394#endif
36395/* We use char because int might match the return type of a gcc2
36396 builtin and then its argument prototype would still apply. */
36397char socket ();
36398/* The GNU C library defines this for functions which it implements
36399 to always fail with ENOSYS. Some functions are actually named
36400 something starting with __ and the normal name is an alias. */
36401#if defined (__stub_socket) || defined (__stub___socket)
36402choke me
36403#else
36404char (*f) () = socket;
36405#endif
36406#ifdef __cplusplus
36407}
36408#endif
36409
36410int
36411main ()
36412{
36413return f != socket;
36414 ;
36415 return 0;
36416}
36417_ACEOF
36418rm -f conftest.$ac_objext conftest$ac_exeext
36419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36420 (eval $ac_link) 2>conftest.er1
a848cd7e 36421 ac_status=$?
ac1cb8d3
VS
36422 grep -v '^ *+' conftest.er1 >conftest.err
36423 rm -f conftest.er1
36424 cat conftest.err >&5
a848cd7e
SC
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); } &&
89be85c2
VS
36427 { ac_try='test -z "$ac_c_werror_flag"
36428 || test ! -s conftest.err'
ac1cb8d3
VS
36429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36430 (eval $ac_try) 2>&5
36431 ac_status=$?
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); }; } &&
36434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36436 (eval $ac_try) 2>&5
36437 ac_status=$?
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); }; }; then
36440 ac_cv_func_socket=yes
36441else
36442 echo "$as_me: failed program was:" >&5
36443sed 's/^/| /' conftest.$ac_ext >&5
36444
36445ac_cv_func_socket=no
36446fi
ac1cb8d3
VS
36447rm -f conftest.err conftest.$ac_objext \
36448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36449fi
36450echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36451echo "${ECHO_T}$ac_cv_func_socket" >&6
36452if test $ac_cv_func_socket = yes; then
36453 :
36454else
36455
36456 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36457echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36458if test "${ac_cv_lib_socket_socket+set}" = set; then
36459 echo $ECHO_N "(cached) $ECHO_C" >&6
36460else
36461 ac_check_lib_save_LIBS=$LIBS
36462LIBS="-lsocket $LIBS"
36463cat >conftest.$ac_ext <<_ACEOF
36464/* confdefs.h. */
36465_ACEOF
36466cat confdefs.h >>conftest.$ac_ext
36467cat >>conftest.$ac_ext <<_ACEOF
36468/* end confdefs.h. */
36469
36470/* Override any gcc2 internal prototype to avoid an error. */
36471#ifdef __cplusplus
36472extern "C"
36473#endif
36474/* We use char because int might match the return type of a gcc2
36475 builtin and then its argument prototype would still apply. */
36476char socket ();
36477int
36478main ()
36479{
36480socket ();
36481 ;
36482 return 0;
36483}
36484_ACEOF
36485rm -f conftest.$ac_objext conftest$ac_exeext
36486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36487 (eval $ac_link) 2>conftest.er1
a848cd7e 36488 ac_status=$?
ac1cb8d3
VS
36489 grep -v '^ *+' conftest.er1 >conftest.err
36490 rm -f conftest.er1
36491 cat conftest.err >&5
a848cd7e
SC
36492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36493 (exit $ac_status); } &&
89be85c2
VS
36494 { ac_try='test -z "$ac_c_werror_flag"
36495 || test ! -s conftest.err'
ac1cb8d3
VS
36496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36497 (eval $ac_try) 2>&5
36498 ac_status=$?
36499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); }; } &&
36501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36503 (eval $ac_try) 2>&5
36504 ac_status=$?
36505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506 (exit $ac_status); }; }; then
36507 ac_cv_lib_socket_socket=yes
36508else
36509 echo "$as_me: failed program was:" >&5
36510sed 's/^/| /' conftest.$ac_ext >&5
36511
36512ac_cv_lib_socket_socket=no
36513fi
ac1cb8d3
VS
36514rm -f conftest.err conftest.$ac_objext \
36515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36516LIBS=$ac_check_lib_save_LIBS
36517fi
36518echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36519echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36520if test $ac_cv_lib_socket_socket = yes; then
36521 if test "$INET_LINK" != " -lsocket"; then
36522 INET_LINK="$INET_LINK -lsocket"
36523 fi
36524else
36525
36526 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36527echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36528 wxUSE_SOCKETS=no
36529
36530
36531fi
36532
36533
36534
36535fi
36536
36537 fi
36538fi
36539
36540if test "$wxUSE_SOCKETS" = "yes" ; then
36541 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36542 ac_ext=cc
36543ac_cpp='$CXXCPP $CPPFLAGS'
36544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36547
36548 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36549echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36550if test "${wx_cv_type_getsockname3+set}" = set; then
36551 echo $ECHO_N "(cached) $ECHO_C" >&6
36552else
36553
36554 cat >conftest.$ac_ext <<_ACEOF
36555/* confdefs.h. */
36556_ACEOF
36557cat confdefs.h >>conftest.$ac_ext
36558cat >>conftest.$ac_ext <<_ACEOF
36559/* end confdefs.h. */
36560
36561 #include <sys/types.h>
36562 #include <sys/socket.h>
36563
36564int
36565main ()
36566{
36567
36568 socklen_t len;
36569 getsockname(0, 0, &len);
36570
36571 ;
36572 return 0;
36573}
36574_ACEOF
36575rm -f conftest.$ac_objext
36576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36577 (eval $ac_compile) 2>conftest.er1
a848cd7e 36578 ac_status=$?
ac1cb8d3
VS
36579 grep -v '^ *+' conftest.er1 >conftest.err
36580 rm -f conftest.er1
36581 cat conftest.err >&5
a848cd7e
SC
36582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } &&
89be85c2
VS
36584 { ac_try='test -z "$ac_cxx_werror_flag"
36585 || test ! -s conftest.err'
ac1cb8d3
VS
36586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36587 (eval $ac_try) 2>&5
36588 ac_status=$?
36589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590 (exit $ac_status); }; } &&
36591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36593 (eval $ac_try) 2>&5
36594 ac_status=$?
36595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596 (exit $ac_status); }; }; then
36597 wx_cv_type_getsockname3=socklen_t
36598else
36599 echo "$as_me: failed program was:" >&5
36600sed 's/^/| /' conftest.$ac_ext >&5
36601
36602
36603 CFLAGS_OLD="$CFLAGS"
36604 if test "$GCC" = yes ; then
36605 CFLAGS="$CFLAGS -Werror"
36606 fi
36607
36608 cat >conftest.$ac_ext <<_ACEOF
36609/* confdefs.h. */
36610_ACEOF
36611cat confdefs.h >>conftest.$ac_ext
36612cat >>conftest.$ac_ext <<_ACEOF
36613/* end confdefs.h. */
36614
36615 #include <sys/types.h>
36616 #include <sys/socket.h>
36617
36618int
36619main ()
36620{
36621
36622 size_t len;
36623 getsockname(0, 0, &len);
36624
36625 ;
36626 return 0;
36627}
36628_ACEOF
36629rm -f conftest.$ac_objext
36630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36631 (eval $ac_compile) 2>conftest.er1
a848cd7e 36632 ac_status=$?
ac1cb8d3
VS
36633 grep -v '^ *+' conftest.er1 >conftest.err
36634 rm -f conftest.er1
36635 cat conftest.err >&5
a848cd7e
SC
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); } &&
89be85c2
VS
36638 { ac_try='test -z "$ac_cxx_werror_flag"
36639 || test ! -s conftest.err'
ac1cb8d3
VS
36640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36641 (eval $ac_try) 2>&5
36642 ac_status=$?
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); }; } &&
36645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36647 (eval $ac_try) 2>&5
36648 ac_status=$?
36649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 (exit $ac_status); }; }; then
36651 wx_cv_type_getsockname3=size_t
36652else
36653 echo "$as_me: failed program was:" >&5
36654sed 's/^/| /' conftest.$ac_ext >&5
36655
36656cat >conftest.$ac_ext <<_ACEOF
36657/* confdefs.h. */
36658_ACEOF
36659cat confdefs.h >>conftest.$ac_ext
36660cat >>conftest.$ac_ext <<_ACEOF
36661/* end confdefs.h. */
36662
36663 #include <sys/types.h>
36664 #include <sys/socket.h>
36665
36666int
36667main ()
36668{
36669
36670 int len;
36671 getsockname(0, 0, &len);
36672
36673 ;
36674 return 0;
36675}
36676_ACEOF
36677rm -f conftest.$ac_objext
36678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36679 (eval $ac_compile) 2>conftest.er1
a848cd7e 36680 ac_status=$?
ac1cb8d3
VS
36681 grep -v '^ *+' conftest.er1 >conftest.err
36682 rm -f conftest.er1
36683 cat conftest.err >&5
a848cd7e
SC
36684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685 (exit $ac_status); } &&
89be85c2
VS
36686 { ac_try='test -z "$ac_cxx_werror_flag"
36687 || test ! -s conftest.err'
ac1cb8d3
VS
36688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36689 (eval $ac_try) 2>&5
36690 ac_status=$?
36691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36692 (exit $ac_status); }; } &&
36693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36695 (eval $ac_try) 2>&5
36696 ac_status=$?
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); }; }; then
36699 wx_cv_type_getsockname3=int
36700else
36701 echo "$as_me: failed program was:" >&5
36702sed 's/^/| /' conftest.$ac_ext >&5
36703
36704wx_cv_type_getsockname3=unknown
36705
36706fi
ac1cb8d3 36707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36708
36709fi
ac1cb8d3 36710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36711
36712 CFLAGS="$CFLAGS_OLD"
36713
36714
36715fi
ac1cb8d3 36716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36717
36718fi
36719echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36720echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36721
36722 if test "$wx_cv_type_getsockname3" = "unknown"; then
36723 wxUSE_SOCKETS=no
36724 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36725echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36726 else
36727 cat >>confdefs.h <<_ACEOF
36728#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36729_ACEOF
36730
36731 fi
36732 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36733echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36734if test "${wx_cv_type_getsockopt5+set}" = set; then
36735 echo $ECHO_N "(cached) $ECHO_C" >&6
36736else
36737
36738 cat >conftest.$ac_ext <<_ACEOF
36739/* confdefs.h. */
36740_ACEOF
36741cat confdefs.h >>conftest.$ac_ext
36742cat >>conftest.$ac_ext <<_ACEOF
36743/* end confdefs.h. */
36744
36745 #include <sys/types.h>
36746 #include <sys/socket.h>
36747
36748int
36749main ()
36750{
36751
36752 socklen_t len;
36753 getsockopt(0, 0, 0, 0, &len);
36754
36755 ;
36756 return 0;
36757}
36758_ACEOF
36759rm -f conftest.$ac_objext
36760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36761 (eval $ac_compile) 2>conftest.er1
36762 ac_status=$?
36763 grep -v '^ *+' conftest.er1 >conftest.err
36764 rm -f conftest.er1
36765 cat conftest.err >&5
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); } &&
89be85c2
VS
36768 { ac_try='test -z "$ac_cxx_werror_flag"
36769 || test ! -s conftest.err'
5b674b9d
DE
36770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36771 (eval $ac_try) 2>&5
36772 ac_status=$?
36773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774 (exit $ac_status); }; } &&
36775 { ac_try='test -s conftest.$ac_objext'
36776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36777 (eval $ac_try) 2>&5
36778 ac_status=$?
36779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780 (exit $ac_status); }; }; then
36781 wx_cv_type_getsockopt5=socklen_t
36782else
36783 echo "$as_me: failed program was:" >&5
36784sed 's/^/| /' conftest.$ac_ext >&5
36785
36786
36787 CFLAGS_OLD="$CFLAGS"
36788 if test "$GCC" = yes ; then
36789 CFLAGS="$CFLAGS -Werror"
36790 fi
36791
36792 cat >conftest.$ac_ext <<_ACEOF
36793/* confdefs.h. */
36794_ACEOF
36795cat confdefs.h >>conftest.$ac_ext
36796cat >>conftest.$ac_ext <<_ACEOF
36797/* end confdefs.h. */
36798
36799 #include <sys/types.h>
36800 #include <sys/socket.h>
36801
36802int
36803main ()
36804{
36805
36806 size_t len;
36807 getsockopt(0, 0, 0, 0, &len);
36808
36809 ;
36810 return 0;
36811}
36812_ACEOF
36813rm -f conftest.$ac_objext
36814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36815 (eval $ac_compile) 2>conftest.er1
36816 ac_status=$?
36817 grep -v '^ *+' conftest.er1 >conftest.err
36818 rm -f conftest.er1
36819 cat conftest.err >&5
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); } &&
89be85c2
VS
36822 { ac_try='test -z "$ac_cxx_werror_flag"
36823 || test ! -s conftest.err'
5b674b9d
DE
36824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36825 (eval $ac_try) 2>&5
36826 ac_status=$?
36827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828 (exit $ac_status); }; } &&
36829 { ac_try='test -s conftest.$ac_objext'
36830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36831 (eval $ac_try) 2>&5
36832 ac_status=$?
36833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834 (exit $ac_status); }; }; then
36835 wx_cv_type_getsockopt5=size_t
36836else
36837 echo "$as_me: failed program was:" >&5
36838sed 's/^/| /' conftest.$ac_ext >&5
36839
36840cat >conftest.$ac_ext <<_ACEOF
36841/* confdefs.h. */
36842_ACEOF
36843cat confdefs.h >>conftest.$ac_ext
36844cat >>conftest.$ac_ext <<_ACEOF
36845/* end confdefs.h. */
36846
36847 #include <sys/types.h>
36848 #include <sys/socket.h>
36849
36850int
36851main ()
36852{
36853
36854 int len;
36855 getsockopt(0, 0, 0, 0, &len);
36856
36857 ;
36858 return 0;
36859}
36860_ACEOF
36861rm -f conftest.$ac_objext
36862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36863 (eval $ac_compile) 2>conftest.er1
36864 ac_status=$?
36865 grep -v '^ *+' conftest.er1 >conftest.err
36866 rm -f conftest.er1
36867 cat conftest.err >&5
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } &&
89be85c2
VS
36870 { ac_try='test -z "$ac_cxx_werror_flag"
36871 || test ! -s conftest.err'
5b674b9d
DE
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36874 ac_status=$?
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; } &&
36877 { ac_try='test -s conftest.$ac_objext'
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36880 ac_status=$?
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 wx_cv_type_getsockopt5=int
36884else
36885 echo "$as_me: failed program was:" >&5
36886sed 's/^/| /' conftest.$ac_ext >&5
36887
36888wx_cv_type_getsockopt5=unknown
36889
36890fi
36891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36892
36893fi
36894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36895
36896 CFLAGS="$CFLAGS_OLD"
36897
36898
36899fi
36900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36901
36902fi
36903echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36904echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36905
36906 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36907 wxUSE_SOCKETS=no
36908 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36909echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36910 else
36911 cat >>confdefs.h <<_ACEOF
36912#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36913_ACEOF
36914
36915 fi
4d4ff94c
VZ
36916 ac_ext=c
36917ac_cpp='$CPP $CPPFLAGS'
36918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36920ac_compiler_gnu=$ac_cv_c_compiler_gnu
36921
a848cd7e
SC
36922 fi
36923fi
36924
36925if test "$wxUSE_SOCKETS" = "yes" ; then
36926 cat >>confdefs.h <<\_ACEOF
36927#define wxUSE_SOCKETS 1
36928_ACEOF
36929
36930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36931fi
36932
36933if test "$wxUSE_PROTOCOL" = "yes"; then
36934 if test "$wxUSE_SOCKETS" != "yes"; then
36935 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36936echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36937 wxUSE_PROTOCOL=no
36938 fi
36939fi
36940
36941if test "$wxUSE_PROTOCOL" = "yes"; then
36942 cat >>confdefs.h <<\_ACEOF
36943#define wxUSE_PROTOCOL 1
36944_ACEOF
36945
36946
36947 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36948 cat >>confdefs.h <<\_ACEOF
36949#define wxUSE_PROTOCOL_HTTP 1
36950_ACEOF
36951
36952 fi
36953 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36954 cat >>confdefs.h <<\_ACEOF
36955#define wxUSE_PROTOCOL_FTP 1
36956_ACEOF
36957
36958 fi
36959 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36960 cat >>confdefs.h <<\_ACEOF
36961#define wxUSE_PROTOCOL_FILE 1
36962_ACEOF
36963
36964 fi
36965else
36966 if test "$wxUSE_FS_INET" = "yes"; then
36967 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36968echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36969 wxUSE_FS_INET="no"
36970 fi
36971fi
36972
36973if test "$wxUSE_URL" = "yes"; then
36974 if test "$wxUSE_PROTOCOL" != "yes"; then
36975 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36976echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36977 wxUSE_URL=no
36978 fi
36979 if test "$wxUSE_URL" = "yes"; then
36980 cat >>confdefs.h <<\_ACEOF
36981#define wxUSE_URL 1
36982_ACEOF
36983
36984 fi
36985fi
36986
36987if test "$wxUSE_FS_INET" = "yes"; then
36988 cat >>confdefs.h <<\_ACEOF
36989#define wxUSE_FS_INET 1
36990_ACEOF
36991
36992fi
36993
36994
36995if test "$wxUSE_GUI" = "yes"; then
36996
36997 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36998 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36999echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
37000 wxUSE_JOYSTICK=no
37001 fi
37002
37003 if test "$TOOLKIT" != "MSW"; then
37004 if test "$wxUSE_JOYSTICK" = "yes"; then
37005
37006for ac_header in linux/joystick.h
37007do
37008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37009if eval "test \"\${$as_ac_Header+set}\" = set"; then
37010 echo "$as_me:$LINENO: checking for $ac_header" >&5
37011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37012if eval "test \"\${$as_ac_Header+set}\" = set"; then
37013 echo $ECHO_N "(cached) $ECHO_C" >&6
37014fi
37015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37017else
37018 # Is the header compilable?
37019echo "$as_me:$LINENO: checking $ac_header usability" >&5
37020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37021cat >conftest.$ac_ext <<_ACEOF
37022/* confdefs.h. */
37023_ACEOF
37024cat confdefs.h >>conftest.$ac_ext
37025cat >>conftest.$ac_ext <<_ACEOF
37026/* end confdefs.h. */
37027$ac_includes_default
37028#include <$ac_header>
37029_ACEOF
37030rm -f conftest.$ac_objext
37031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37032 (eval $ac_compile) 2>conftest.er1
a848cd7e 37033 ac_status=$?
ac1cb8d3
VS
37034 grep -v '^ *+' conftest.er1 >conftest.err
37035 rm -f conftest.er1
37036 cat conftest.err >&5
a848cd7e
SC
37037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); } &&
89be85c2
VS
37039 { ac_try='test -z "$ac_c_werror_flag"
37040 || test ! -s conftest.err'
ac1cb8d3
VS
37041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37042 (eval $ac_try) 2>&5
37043 ac_status=$?
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); }; } &&
37046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37048 (eval $ac_try) 2>&5
37049 ac_status=$?
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); }; }; then
37052 ac_header_compiler=yes
37053else
37054 echo "$as_me: failed program was:" >&5
37055sed 's/^/| /' conftest.$ac_ext >&5
37056
37057ac_header_compiler=no
37058fi
ac1cb8d3 37059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37061echo "${ECHO_T}$ac_header_compiler" >&6
37062
37063# Is the header present?
37064echo "$as_me:$LINENO: checking $ac_header presence" >&5
37065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37066cat >conftest.$ac_ext <<_ACEOF
37067/* confdefs.h. */
37068_ACEOF
37069cat confdefs.h >>conftest.$ac_ext
37070cat >>conftest.$ac_ext <<_ACEOF
37071/* end confdefs.h. */
37072#include <$ac_header>
37073_ACEOF
37074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37076 ac_status=$?
37077 grep -v '^ *+' conftest.er1 >conftest.err
37078 rm -f conftest.er1
37079 cat conftest.err >&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); } >/dev/null; then
37082 if test -s conftest.err; then
37083 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37085 else
37086 ac_cpp_err=
37087 fi
37088else
37089 ac_cpp_err=yes
37090fi
37091if test -z "$ac_cpp_err"; then
37092 ac_header_preproc=yes
37093else
37094 echo "$as_me: failed program was:" >&5
37095sed 's/^/| /' conftest.$ac_ext >&5
37096
37097 ac_header_preproc=no
37098fi
37099rm -f conftest.err conftest.$ac_ext
37100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37101echo "${ECHO_T}$ac_header_preproc" >&6
37102
37103# So? What about this header?
ac1cb8d3
VS
37104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37105 yes:no: )
a848cd7e
SC
37106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37110 ac_header_preproc=yes
a848cd7e 37111 ;;
ac1cb8d3 37112 no:yes:* )
a848cd7e
SC
37113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37125 (
37126 cat <<\_ASBOX
ac1cb8d3
VS
37127## ----------------------------------------- ##
37128## Report this to wx-dev@lists.wxwidgets.org ##
37129## ----------------------------------------- ##
a848cd7e
SC
37130_ASBOX
37131 ) |
37132 sed "s/^/$as_me: WARNING: /" >&2
37133 ;;
37134esac
37135echo "$as_me:$LINENO: checking for $ac_header" >&5
37136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37137if eval "test \"\${$as_ac_Header+set}\" = set"; then
37138 echo $ECHO_N "(cached) $ECHO_C" >&6
37139else
ac1cb8d3 37140 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37141fi
37142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37144
37145fi
37146if test `eval echo '${'$as_ac_Header'}'` = yes; then
37147 cat >>confdefs.h <<_ACEOF
37148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37149_ACEOF
37150
37151fi
37152
37153done
37154
37155 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37156 wxUSE_JOYSTICK=no
37157 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37158echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37159 fi
37160 fi
37161 fi
37162
37163 if test "$wxUSE_JOYSTICK" = "yes"; then
37164 cat >>confdefs.h <<\_ACEOF
37165#define wxUSE_JOYSTICK 1
37166_ACEOF
37167
37168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37169 fi
37170fi
37171
37172
37173
37174if test "$wxUSE_FONTMAP" = "yes" ; then
37175 cat >>confdefs.h <<\_ACEOF
37176#define wxUSE_FONTMAP 1
37177_ACEOF
37178
37179fi
37180
37181if test "$wxUSE_UNICODE" = "yes" ; then
37182 cat >>confdefs.h <<\_ACEOF
37183#define wxUSE_UNICODE 1
37184_ACEOF
37185
37186
37187 if test "$USE_WIN32" != 1; then
37188 wxUSE_UNICODE_MSLU=no
37189 fi
37190
37191 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37192 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37193echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37194if test "${ac_cv_lib_unicows_main+set}" = set; then
37195 echo $ECHO_N "(cached) $ECHO_C" >&6
37196else
37197 ac_check_lib_save_LIBS=$LIBS
37198LIBS="-lunicows $LIBS"
37199cat >conftest.$ac_ext <<_ACEOF
37200/* confdefs.h. */
37201_ACEOF
37202cat confdefs.h >>conftest.$ac_ext
37203cat >>conftest.$ac_ext <<_ACEOF
37204/* end confdefs.h. */
37205
37206
37207int
37208main ()
37209{
37210main ();
37211 ;
37212 return 0;
37213}
37214_ACEOF
37215rm -f conftest.$ac_objext conftest$ac_exeext
37216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37217 (eval $ac_link) 2>conftest.er1
a848cd7e 37218 ac_status=$?
ac1cb8d3
VS
37219 grep -v '^ *+' conftest.er1 >conftest.err
37220 rm -f conftest.er1
37221 cat conftest.err >&5
a848cd7e
SC
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); } &&
89be85c2
VS
37224 { ac_try='test -z "$ac_c_werror_flag"
37225 || test ! -s conftest.err'
ac1cb8d3
VS
37226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227 (eval $ac_try) 2>&5
37228 ac_status=$?
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; } &&
37231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37233 (eval $ac_try) 2>&5
37234 ac_status=$?
37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); }; }; then
37237 ac_cv_lib_unicows_main=yes
37238else
37239 echo "$as_me: failed program was:" >&5
37240sed 's/^/| /' conftest.$ac_ext >&5
37241
37242ac_cv_lib_unicows_main=no
37243fi
ac1cb8d3
VS
37244rm -f conftest.err conftest.$ac_objext \
37245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37246LIBS=$ac_check_lib_save_LIBS
37247fi
37248echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37249echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37250if test $ac_cv_lib_unicows_main = yes; then
37251
37252 cat >>confdefs.h <<\_ACEOF
37253#define wxUSE_UNICODE_MSLU 1
37254_ACEOF
37255
37256
37257else
37258
37259 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37260 Applications will only run on Windows NT/2000/XP!" >&5
37261echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37262 Applications will only run on Windows NT/2000/XP!" >&2;}
37263 wxUSE_UNICODE_MSLU=no
37264
37265fi
37266
37267 fi
37268fi
37269
37270if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37271 cat >>confdefs.h <<\_ACEOF
37272#define wxUSE_EXPERIMENTAL_PRINTF 1
37273_ACEOF
37274
37275fi
37276
37277
37278if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37279 cat >>confdefs.h <<\_ACEOF
37280#define wxUSE_POSTSCRIPT 1
37281_ACEOF
37282
37283fi
37284
37285cat >>confdefs.h <<\_ACEOF
37286#define wxUSE_AFM_FOR_POSTSCRIPT 1
37287_ACEOF
37288
37289
37290cat >>confdefs.h <<\_ACEOF
37291#define wxUSE_NORMALIZED_PS_FONTS 1
37292_ACEOF
37293
37294
37295
37296if test "$wxUSE_CONSTRAINTS" = "yes"; then
37297 cat >>confdefs.h <<\_ACEOF
37298#define wxUSE_CONSTRAINTS 1
37299_ACEOF
37300
37301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37302fi
37303
8a7b1113
VZ
37304if test "$wxUSE_MDI" = "yes"; then
37305 cat >>confdefs.h <<\_ACEOF
37306#define wxUSE_MDI 1
37307_ACEOF
37308
37309
37310 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37311 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37312#define wxUSE_MDI_ARCHITECTURE 1
37313_ACEOF
37314
8a7b1113
VZ
37315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37316 fi
a848cd7e
SC
37317fi
37318
37319if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37320 cat >>confdefs.h <<\_ACEOF
37321#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37322_ACEOF
37323
37324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37325 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37327 fi
37328fi
37329
37330if test "$wxUSE_HELP" = "yes"; then
37331 cat >>confdefs.h <<\_ACEOF
37332#define wxUSE_HELP 1
37333_ACEOF
37334
37335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37336
37337 if test "$wxUSE_MSW" = 1; then
37338 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37339 cat >>confdefs.h <<\_ACEOF
37340#define wxUSE_MS_HTML_HELP 1
37341_ACEOF
37342
37343 fi
37344 fi
37345
37346 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37347 if test "$wxUSE_HTML" = "yes"; then
37348 cat >>confdefs.h <<\_ACEOF
37349#define wxUSE_WXHTML_HELP 1
37350_ACEOF
37351
37352 else
37353 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37354echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37355 wxUSE_WXHTML_HELP=no
37356 fi
37357 fi
37358fi
37359
37360if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37361 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37362 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37363echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37364 else
37365 cat >>confdefs.h <<\_ACEOF
37366#define wxUSE_PRINTING_ARCHITECTURE 1
37367_ACEOF
37368
37369 fi
37370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37371fi
37372
37373if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37374 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37375echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37376 { (exit 1); exit 1; }; }
37377fi
37378
37379
37380if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37381 -o "$wxUSE_CLIPBOARD" = "yes" \
37382 -o "$wxUSE_OLE" = "yes" \
37383 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37384
37385for ac_header in ole2.h
37386do
37387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37388if eval "test \"\${$as_ac_Header+set}\" = set"; then
37389 echo "$as_me:$LINENO: checking for $ac_header" >&5
37390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37391if eval "test \"\${$as_ac_Header+set}\" = set"; then
37392 echo $ECHO_N "(cached) $ECHO_C" >&6
37393fi
37394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37396else
37397 # Is the header compilable?
37398echo "$as_me:$LINENO: checking $ac_header usability" >&5
37399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37400cat >conftest.$ac_ext <<_ACEOF
37401/* confdefs.h. */
37402_ACEOF
37403cat confdefs.h >>conftest.$ac_ext
37404cat >>conftest.$ac_ext <<_ACEOF
37405/* end confdefs.h. */
37406$ac_includes_default
37407#include <$ac_header>
37408_ACEOF
37409rm -f conftest.$ac_objext
37410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37411 (eval $ac_compile) 2>conftest.er1
a848cd7e 37412 ac_status=$?
ac1cb8d3
VS
37413 grep -v '^ *+' conftest.er1 >conftest.err
37414 rm -f conftest.er1
37415 cat conftest.err >&5
a848cd7e
SC
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); } &&
89be85c2
VS
37418 { ac_try='test -z "$ac_c_werror_flag"
37419 || test ! -s conftest.err'
ac1cb8d3
VS
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; } &&
37425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37427 (eval $ac_try) 2>&5
37428 ac_status=$?
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); }; }; then
37431 ac_header_compiler=yes
37432else
37433 echo "$as_me: failed program was:" >&5
37434sed 's/^/| /' conftest.$ac_ext >&5
37435
37436ac_header_compiler=no
37437fi
ac1cb8d3 37438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37440echo "${ECHO_T}$ac_header_compiler" >&6
37441
37442# Is the header present?
37443echo "$as_me:$LINENO: checking $ac_header presence" >&5
37444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37445cat >conftest.$ac_ext <<_ACEOF
37446/* confdefs.h. */
37447_ACEOF
37448cat confdefs.h >>conftest.$ac_ext
37449cat >>conftest.$ac_ext <<_ACEOF
37450/* end confdefs.h. */
37451#include <$ac_header>
37452_ACEOF
37453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37455 ac_status=$?
37456 grep -v '^ *+' conftest.er1 >conftest.err
37457 rm -f conftest.er1
37458 cat conftest.err >&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); } >/dev/null; then
37461 if test -s conftest.err; then
37462 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37464 else
37465 ac_cpp_err=
37466 fi
37467else
37468 ac_cpp_err=yes
37469fi
37470if test -z "$ac_cpp_err"; then
37471 ac_header_preproc=yes
37472else
37473 echo "$as_me: failed program was:" >&5
37474sed 's/^/| /' conftest.$ac_ext >&5
37475
37476 ac_header_preproc=no
37477fi
37478rm -f conftest.err conftest.$ac_ext
37479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37480echo "${ECHO_T}$ac_header_preproc" >&6
37481
37482# So? What about this header?
ac1cb8d3
VS
37483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37484 yes:no: )
a848cd7e
SC
37485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37489 ac_header_preproc=yes
a848cd7e 37490 ;;
ac1cb8d3 37491 no:yes:* )
a848cd7e
SC
37492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37504 (
37505 cat <<\_ASBOX
ac1cb8d3
VS
37506## ----------------------------------------- ##
37507## Report this to wx-dev@lists.wxwidgets.org ##
37508## ----------------------------------------- ##
a848cd7e
SC
37509_ASBOX
37510 ) |
37511 sed "s/^/$as_me: WARNING: /" >&2
37512 ;;
37513esac
37514echo "$as_me:$LINENO: checking for $ac_header" >&5
37515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37516if eval "test \"\${$as_ac_Header+set}\" = set"; then
37517 echo $ECHO_N "(cached) $ECHO_C" >&6
37518else
ac1cb8d3 37519 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37520fi
37521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37523
37524fi
37525if test `eval echo '${'$as_ac_Header'}'` = yes; then
37526 cat >>confdefs.h <<_ACEOF
37527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37528_ACEOF
37529
37530fi
37531
37532done
37533
37534
37535 if test "$ac_cv_header_ole2_h" = "yes" ; then
37536 if test "$GCC" = yes ; then
37537
37538
37539 ac_ext=cc
37540ac_cpp='$CXXCPP $CPPFLAGS'
37541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37544
37545
37546 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37547echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37548 cat >conftest.$ac_ext <<_ACEOF
37549/* confdefs.h. */
37550_ACEOF
37551cat confdefs.h >>conftest.$ac_ext
37552cat >>conftest.$ac_ext <<_ACEOF
37553/* end confdefs.h. */
37554#include <windows.h>
37555 #include <ole2.h>
37556int
37557main ()
37558{
37559
37560 ;
37561 return 0;
37562}
37563_ACEOF
37564rm -f conftest.$ac_objext
37565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37566 (eval $ac_compile) 2>conftest.er1
a848cd7e 37567 ac_status=$?
ac1cb8d3
VS
37568 grep -v '^ *+' conftest.er1 >conftest.err
37569 rm -f conftest.er1
37570 cat conftest.err >&5
a848cd7e
SC
37571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572 (exit $ac_status); } &&
89be85c2
VS
37573 { ac_try='test -z "$ac_cxx_werror_flag"
37574 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
37580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582 (eval $ac_try) 2>&5
37583 ac_status=$?
37584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585 (exit $ac_status); }; }; then
37586 echo "$as_me:$LINENO: result: no" >&5
37587echo "${ECHO_T}no" >&6
37588else
37589 echo "$as_me: failed program was:" >&5
37590sed 's/^/| /' conftest.$ac_ext >&5
37591
37592echo "$as_me:$LINENO: result: yes" >&5
37593echo "${ECHO_T}yes" >&6
37594 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37595fi
ac1cb8d3 37596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37597 ac_ext=c
37598ac_cpp='$CPP $CPPFLAGS'
37599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37601ac_compiler_gnu=$ac_cv_c_compiler_gnu
37602
a848cd7e
SC
37603 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37604 if test "$wxUSE_OLE" = "yes" ; then
37605 cat >>confdefs.h <<\_ACEOF
37606#define wxUSE_OLE 1
37607_ACEOF
37608
37609 fi
37610 fi
37611
37612 if test "$wxUSE_DATAOBJ" = "yes" ; then
37613 cat >>confdefs.h <<\_ACEOF
37614#define wxUSE_DATAOBJ 1
37615_ACEOF
37616
37617 fi
37618 else
37619 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37620echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37621
37622 wxUSE_CLIPBOARD=no
37623 wxUSE_DRAG_AND_DROP=no
37624 wxUSE_DATAOBJ=no
37625 wxUSE_OLE=no
37626 fi
37627
37628 if test "$wxUSE_METAFILE" = "yes"; then
37629 cat >>confdefs.h <<\_ACEOF
37630#define wxUSE_METAFILE 1
37631_ACEOF
37632
37633
37634 cat >>confdefs.h <<\_ACEOF
37635#define wxUSE_ENH_METAFILE 1
37636_ACEOF
37637
37638 fi
37639fi
37640
37641if test "$wxUSE_IPC" = "yes"; then
37642 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37643 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37644echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37645 fi
37646
37647 cat >>confdefs.h <<\_ACEOF
37648#define wxUSE_IPC 1
37649_ACEOF
37650
37651fi
37652
37653if test "$wxUSE_CLIPBOARD" = "yes"; then
37654 if test "$wxUSE_MGL" = 1; then
37655 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37656echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37657 wxUSE_CLIPBOARD=no
37658 fi
37659
37660 if test "$wxUSE_CLIPBOARD" = "yes"; then
37661 cat >>confdefs.h <<\_ACEOF
37662#define wxUSE_CLIPBOARD 1
37663_ACEOF
37664
37665
37666 cat >>confdefs.h <<\_ACEOF
37667#define wxUSE_DATAOBJ 1
37668_ACEOF
37669
37670 fi
37671fi
37672
37673if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37674 if test "$wxUSE_GTK" = 1; then
37675 if test "$WXGTK12" != 1; then
37676 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37677echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37678 wxUSE_DRAG_AND_DROP=no
37679 fi
37680 fi
37681
37682 if test "$wxUSE_MOTIF" = 1; then
37683 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37684echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37685 wxUSE_DRAG_AND_DROP=no
37686 fi
37687
37688 if test "$wxUSE_X11" = 1; then
37689 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37690echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37691 wxUSE_DRAG_AND_DROP=no
37692 fi
37693
37694 if test "$wxUSE_MGL" = 1; then
37695 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37696echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37697 wxUSE_DRAG_AND_DROP=no
37698 fi
37699
37700 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37701 cat >>confdefs.h <<\_ACEOF
37702#define wxUSE_DRAG_AND_DROP 1
37703_ACEOF
37704
37705 fi
37706
37707fi
37708
37709if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37711fi
37712
37713if test "$wxUSE_SPLINES" = "yes" ; then
37714 cat >>confdefs.h <<\_ACEOF
37715#define wxUSE_SPLINES 1
37716_ACEOF
37717
37718fi
37719
37720
37721USES_CONTROLS=0
37722if test "$wxUSE_CONTROLS" = "yes"; then
37723 USES_CONTROLS=1
37724fi
37725
37726if test "$wxUSE_ACCEL" = "yes"; then
37727 cat >>confdefs.h <<\_ACEOF
37728#define wxUSE_ACCEL 1
37729_ACEOF
37730
37731 USES_CONTROLS=1
37732fi
37733
37734if test "$wxUSE_BUTTON" = "yes"; then
37735 cat >>confdefs.h <<\_ACEOF
37736#define wxUSE_BUTTON 1
37737_ACEOF
37738
37739 USES_CONTROLS=1
37740fi
37741
37742if test "$wxUSE_BMPBUTTON" = "yes"; then
37743 cat >>confdefs.h <<\_ACEOF
37744#define wxUSE_BMPBUTTON 1
37745_ACEOF
37746
37747 USES_CONTROLS=1
37748fi
37749
37750if test "$wxUSE_CALCTRL" = "yes"; then
37751 cat >>confdefs.h <<\_ACEOF
37752#define wxUSE_CALENDARCTRL 1
37753_ACEOF
37754
37755 USES_CONTROLS=1
37756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37757fi
37758
37759if test "$wxUSE_CARET" = "yes"; then
37760 cat >>confdefs.h <<\_ACEOF
37761#define wxUSE_CARET 1
37762_ACEOF
37763
37764 USES_CONTROLS=1
37765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37766fi
37767
37768if test "$wxUSE_COMBOBOX" = "yes"; then
37769 cat >>confdefs.h <<\_ACEOF
37770#define wxUSE_COMBOBOX 1
37771_ACEOF
37772
37773 USES_CONTROLS=1
37774fi
37775
37776if test "$wxUSE_CHOICE" = "yes"; then
37777 cat >>confdefs.h <<\_ACEOF
37778#define wxUSE_CHOICE 1
37779_ACEOF
37780
37781 USES_CONTROLS=1
37782fi
37783
92bbdbcd
WS
37784if test "$wxUSE_CHOICEBOOK" = "yes"; then
37785 cat >>confdefs.h <<\_ACEOF
37786#define wxUSE_CHOICEBOOK 1
37787_ACEOF
37788
37789 USES_CONTROLS=1
37790fi
37791
a848cd7e
SC
37792if test "$wxUSE_CHECKBOX" = "yes"; then
37793 cat >>confdefs.h <<\_ACEOF
37794#define wxUSE_CHECKBOX 1
37795_ACEOF
37796
37797 USES_CONTROLS=1
37798fi
37799
37800if test "$wxUSE_CHECKLST" = "yes"; then
37801 cat >>confdefs.h <<\_ACEOF
37802#define wxUSE_CHECKLISTBOX 1
37803_ACEOF
37804
37805 USES_CONTROLS=1
37806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37807fi
37808
da98e9be
VZ
37809if test "$wxUSE_DATEPICKCTRL" = "yes"; then
37810 cat >>confdefs.h <<\_ACEOF
37811#define wxUSE_DATEPICKCTRL 1
37812_ACEOF
37813
37814 USES_CONTROLS=1
37815fi
37816
a848cd7e
SC
37817if test "$wxUSE_DISPLAY" = "yes"; then
37818 cat >>confdefs.h <<\_ACEOF
37819#define wxUSE_DISPLAY 1
37820_ACEOF
37821
37822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37823fi
37824
37825if test "$wxUSE_GAUGE" = "yes"; then
37826 cat >>confdefs.h <<\_ACEOF
37827#define wxUSE_GAUGE 1
37828_ACEOF
37829
37830 USES_CONTROLS=1
37831fi
37832
37833if test "$wxUSE_GRID" = "yes"; then
37834 cat >>confdefs.h <<\_ACEOF
37835#define wxUSE_GRID 1
37836_ACEOF
37837
37838 USES_CONTROLS=1
37839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37840fi
37841
37842if test "$wxUSE_IMAGLIST" = "yes"; then
37843 cat >>confdefs.h <<\_ACEOF
37844#define wxUSE_IMAGLIST 1
37845_ACEOF
37846
37847fi
37848
37849if test "$wxUSE_LISTBOOK" = "yes"; then
37850 cat >>confdefs.h <<\_ACEOF
37851#define wxUSE_LISTBOOK 1
37852_ACEOF
37853
37854 USES_CONTROLS=1
37855fi
37856
37857if test "$wxUSE_LISTBOX" = "yes"; then
37858 cat >>confdefs.h <<\_ACEOF
37859#define wxUSE_LISTBOX 1
37860_ACEOF
37861
37862 USES_CONTROLS=1
37863fi
37864
37865if test "$wxUSE_LISTCTRL" = "yes"; then
37866 if test "$wxUSE_IMAGLIST" = "yes"; then
37867 cat >>confdefs.h <<\_ACEOF
37868#define wxUSE_LISTCTRL 1
37869_ACEOF
37870
37871 USES_CONTROLS=1
37872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37873 else
37874 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37875echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37876 fi
37877fi
37878
37879if test "$wxUSE_NOTEBOOK" = "yes"; then
37880 cat >>confdefs.h <<\_ACEOF
37881#define wxUSE_NOTEBOOK 1
37882_ACEOF
37883
37884 USES_CONTROLS=1
37885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37886fi
37887
37888
37889if test "$wxUSE_RADIOBOX" = "yes"; then
37890 cat >>confdefs.h <<\_ACEOF
37891#define wxUSE_RADIOBOX 1
37892_ACEOF
37893
37894 USES_CONTROLS=1
37895fi
37896
37897if test "$wxUSE_RADIOBTN" = "yes"; then
37898 cat >>confdefs.h <<\_ACEOF
37899#define wxUSE_RADIOBTN 1
37900_ACEOF
37901
37902 USES_CONTROLS=1
37903fi
37904
37905if test "$wxUSE_SASH" = "yes"; then
37906 cat >>confdefs.h <<\_ACEOF
37907#define wxUSE_SASH 1
37908_ACEOF
37909
37910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37911fi
37912
37913if test "$wxUSE_SCROLLBAR" = "yes"; then
37914 cat >>confdefs.h <<\_ACEOF
37915#define wxUSE_SCROLLBAR 1
37916_ACEOF
37917
37918 USES_CONTROLS=1
37919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37920fi
37921
37922if test "$wxUSE_SLIDER" = "yes"; then
37923 cat >>confdefs.h <<\_ACEOF
37924#define wxUSE_SLIDER 1
37925_ACEOF
37926
37927 USES_CONTROLS=1
37928fi
37929
37930if test "$wxUSE_SPINBTN" = "yes"; then
37931 cat >>confdefs.h <<\_ACEOF
37932#define wxUSE_SPINBTN 1
37933_ACEOF
37934
37935 USES_CONTROLS=1
37936fi
37937
37938if test "$wxUSE_SPINCTRL" = "yes"; then
37939 cat >>confdefs.h <<\_ACEOF
37940#define wxUSE_SPINCTRL 1
37941_ACEOF
37942
37943 USES_CONTROLS=1
37944fi
37945
37946if test "$wxUSE_SPLITTER" = "yes"; then
37947 cat >>confdefs.h <<\_ACEOF
37948#define wxUSE_SPLITTER 1
37949_ACEOF
37950
37951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37952fi
37953
37954if test "$wxUSE_STATBMP" = "yes"; then
37955 cat >>confdefs.h <<\_ACEOF
37956#define wxUSE_STATBMP 1
37957_ACEOF
37958
37959 USES_CONTROLS=1
37960fi
37961
37962if test "$wxUSE_STATBOX" = "yes"; then
37963 cat >>confdefs.h <<\_ACEOF
37964#define wxUSE_STATBOX 1
37965_ACEOF
37966
37967 USES_CONTROLS=1
37968fi
37969
37970if test "$wxUSE_STATTEXT" = "yes"; then
37971 cat >>confdefs.h <<\_ACEOF
37972#define wxUSE_STATTEXT 1
37973_ACEOF
37974
37975 USES_CONTROLS=1
37976fi
37977
37978if test "$wxUSE_STATLINE" = "yes"; then
37979 cat >>confdefs.h <<\_ACEOF
37980#define wxUSE_STATLINE 1
37981_ACEOF
37982
37983 USES_CONTROLS=1
37984fi
37985
37986if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
37987 cat >>confdefs.h <<\_ACEOF
37988#define wxUSE_NATIVE_STATUSBAR 1
37989_ACEOF
37990
a848cd7e
SC
37991 cat >>confdefs.h <<\_ACEOF
37992#define wxUSE_STATUSBAR 1
37993_ACEOF
37994
37995 USES_CONTROLS=1
37996
37997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37998fi
37999
38000if test "$wxUSE_TABDIALOG" = "yes"; then
38001 cat >>confdefs.h <<\_ACEOF
38002#define wxUSE_TAB_DIALOG 1
38003_ACEOF
38004
a848cd7e
SC
38005fi
38006
38007if test "$wxUSE_TEXTCTRL" = "yes"; then
38008 cat >>confdefs.h <<\_ACEOF
38009#define wxUSE_TEXTCTRL 1
38010_ACEOF
38011
38012 USES_CONTROLS=1
38013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38014fi
38015
38016if test "$wxUSE_TOGGLEBTN" = "yes"; then
38017 if test "$wxUSE_COCOA" = 1 ; then
38018 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38019echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38020 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38021 else
38022 if test "$wxUSE_PM" = 1; then
38023 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38024echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38025 wxUSE_TOGGLEBTN=no
38026 fi
a848cd7e
SC
38027 fi
38028 if test "$wxUSE_UNIVERSAL" = "yes"; then
38029 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38030echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38031 wxUSE_TOGGLEBTN=no
38032 fi
38033
38034 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38035 cat >>confdefs.h <<\_ACEOF
38036#define wxUSE_TOGGLEBTN 1
38037_ACEOF
38038
38039 USES_CONTROLS=1
38040 fi
38041fi
38042
38043if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38044 cat >>confdefs.h <<\_ACEOF
38045#define wxUSE_TOOLBAR_SIMPLE 1
38046_ACEOF
38047
38048 wxUSE_TOOLBAR="yes"
38049 USES_CONTROLS=1
38050fi
38051
38052if test "$wxUSE_TOOLBAR" = "yes"; then
38053 cat >>confdefs.h <<\_ACEOF
38054#define wxUSE_TOOLBAR 1
38055_ACEOF
38056
38057 USES_CONTROLS=1
38058
38059 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38060 wxUSE_TOOLBAR_NATIVE="yes"
38061 fi
38062
38063 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38064 cat >>confdefs.h <<\_ACEOF
38065#define wxUSE_TOOLBAR_NATIVE 1
38066_ACEOF
38067
38068 USES_CONTROLS=1
38069 fi
38070
38071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38072fi
38073
38074if test "$wxUSE_TOOLTIPS" = "yes"; then
38075 if test "$wxUSE_MOTIF" = 1; then
38076 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38077echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38078 else
38079 if test "$wxUSE_UNIVERSAL" = "yes"; then
38080 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38081echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38082 else
38083 cat >>confdefs.h <<\_ACEOF
38084#define wxUSE_TOOLTIPS 1
38085_ACEOF
38086
38087 fi
38088 fi
38089fi
38090
38091if test "$wxUSE_TREECTRL" = "yes"; then
38092 if test "$wxUSE_IMAGLIST" = "yes"; then
38093 cat >>confdefs.h <<\_ACEOF
38094#define wxUSE_TREECTRL 1
38095_ACEOF
38096
38097 USES_CONTROLS=1
38098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38099 else
38100 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38101echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38102 fi
38103fi
38104
38105if test "$wxUSE_POPUPWIN" = "yes"; then
38106 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38107 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38108echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38109 else
38110 if test "$wxUSE_PM" = 1; then
38111 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38112echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38113 else
38114 cat >>confdefs.h <<\_ACEOF
38115#define wxUSE_POPUPWIN 1
38116_ACEOF
38117
38118
38119 USES_CONTROLS=1
38120 fi
38121 fi
38122fi
38123
0dcd06dd 38124if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38125 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38126 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38127echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38128 else
38129 cat >>confdefs.h <<\_ACEOF
38130#define wxUSE_DIALUP_MANAGER 1
38131_ACEOF
38132
38133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38134 fi
38135fi
38136
a848cd7e
SC
38137if test "$wxUSE_TIPWINDOW" = "yes"; then
38138 if test "$wxUSE_PM" = 1; then
38139 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38140echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38141 else
38142 cat >>confdefs.h <<\_ACEOF
38143#define wxUSE_TIPWINDOW 1
38144_ACEOF
38145
38146 fi
38147fi
38148
38149if test "$USES_CONTROLS" = 1; then
38150 cat >>confdefs.h <<\_ACEOF
38151#define wxUSE_CONTROLS 1
38152_ACEOF
38153
38154fi
38155
38156
38157if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38158 cat >>confdefs.h <<\_ACEOF
38159#define wxUSE_ACCESSIBILITY 1
38160_ACEOF
38161
38162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38163fi
38164
38165if test "$wxUSE_DRAGIMAGE" = "yes"; then
38166 cat >>confdefs.h <<\_ACEOF
38167#define wxUSE_DRAGIMAGE 1
38168_ACEOF
38169
38170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38171fi
38172
38173if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38174 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38175 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38176echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38177 else
38178 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38179#define wxUSE_EXCEPTIONS 1
38180_ACEOF
38181
07bea8f0
VS
38182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38183 fi
a848cd7e
SC
38184fi
38185
38186USE_HTML=0
38187if test "$wxUSE_HTML" = "yes"; then
38188 cat >>confdefs.h <<\_ACEOF
38189#define wxUSE_HTML 1
38190_ACEOF
38191
38192 USE_HTML=1
38193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38194 if test "$wxUSE_MAC" = 1; then
38195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38196 fi
a848cd7e 38197fi
646b6ec1 38198if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38199 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38200 old_CPPFLAGS="$CPPFLAGS"
38201 CPPFLAGS="$CPPFLAGS -x objective-c++"
38202 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38203echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38204if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38205 echo $ECHO_N "(cached) $ECHO_C" >&6
38206else
38207 cat >conftest.$ac_ext <<_ACEOF
38208/* confdefs.h. */
38209_ACEOF
38210cat confdefs.h >>conftest.$ac_ext
38211cat >>conftest.$ac_ext <<_ACEOF
38212/* end confdefs.h. */
38213#include <Carbon/Carbon.h>
38214
38215#include <WebKit/HIWebView.h>
38216_ACEOF
38217rm -f conftest.$ac_objext
38218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38219 (eval $ac_compile) 2>conftest.er1
38220 ac_status=$?
38221 grep -v '^ *+' conftest.er1 >conftest.err
38222 rm -f conftest.er1
38223 cat conftest.err >&5
38224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225 (exit $ac_status); } &&
89be85c2
VS
38226 { ac_try='test -z "$ac_c_werror_flag"
38227 || test ! -s conftest.err'
07bea8f0
VS
38228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38229 (eval $ac_try) 2>&5
38230 ac_status=$?
38231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232 (exit $ac_status); }; } &&
38233 { ac_try='test -s conftest.$ac_objext'
38234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38235 (eval $ac_try) 2>&5
38236 ac_status=$?
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); }; }; then
38239 ac_cv_header_WebKit_HIWebView_h=yes
38240else
38241 echo "$as_me: failed program was:" >&5
38242sed 's/^/| /' conftest.$ac_ext >&5
38243
38244ac_cv_header_WebKit_HIWebView_h=no
38245fi
38246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38247fi
38248echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38249echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38250if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38251
38252 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38253#define wxUSE_WEBKIT 1
38254_ACEOF
38255
07bea8f0
VS
38256 WEBKIT_LINK="-framework WebKit"
38257
38258else
38259
38260 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38261echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38262 wxUSE_WEBKIT=no
38263
646b6ec1
VS
38264fi
38265
07bea8f0
VS
38266
38267 CPPFLAGS="$old_CPPFLAGS"
38268 elif test "$wxUSE_COCOA" = 1; then
38269 cat >>confdefs.h <<\_ACEOF
38270#define wxUSE_WEBKIT 1
38271_ACEOF
38272
38273 else
38274 wxUSE_WEBKIT=no
38275 fi
38276fi
38277
9a8f0513
VS
38278USE_XRC=0
38279if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38280 if test "$wxUSE_XML" != "yes"; then
38281 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38282echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38283 wxUSE_XRC=no
38284 else
38285 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38286#define wxUSE_XRC 1
38287_ACEOF
38288
d2ebf0b7
VS
38289 USE_XRC=1
38290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38291 fi
9a8f0513 38292fi
07bea8f0 38293
a848cd7e
SC
38294if test "$wxUSE_MENUS" = "yes"; then
38295 cat >>confdefs.h <<\_ACEOF
38296#define wxUSE_MENUS 1
38297_ACEOF
38298
38299 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38300fi
38301
38302if test "$wxUSE_METAFILE" = "yes"; then
38303 cat >>confdefs.h <<\_ACEOF
38304#define wxUSE_METAFILE 1
38305_ACEOF
38306
38307fi
38308
38309if test "$wxUSE_MIMETYPE" = "yes"; then
38310 cat >>confdefs.h <<\_ACEOF
38311#define wxUSE_MIMETYPE 1
38312_ACEOF
38313
38314fi
38315
38316if test "$wxUSE_MINIFRAME" = "yes"; then
38317 cat >>confdefs.h <<\_ACEOF
38318#define wxUSE_MINIFRAME 1
38319_ACEOF
38320
38321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38322fi
38323
38324if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38325 cat >>confdefs.h <<\_ACEOF
38326#define wxUSE_SYSTEM_OPTIONS 1
38327_ACEOF
38328
38329 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38330 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38332 fi
38333fi
38334
38335
38336if test "$wxUSE_VALIDATORS" = "yes"; then
38337 cat >>confdefs.h <<\_ACEOF
38338#define wxUSE_VALIDATORS 1
38339_ACEOF
38340
38341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38342fi
38343
38344if test "$wxUSE_PALETTE" = "yes" ; then
38345 cat >>confdefs.h <<\_ACEOF
38346#define wxUSE_PALETTE 1
38347_ACEOF
38348
38349fi
38350
38351if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38352 LIBS=" -lunicows $LIBS"
38353fi
38354
38355
38356if test "$wxUSE_IMAGE" = "yes" ; then
38357 cat >>confdefs.h <<\_ACEOF
38358#define wxUSE_IMAGE 1
38359_ACEOF
38360
38361
38362 if test "$wxUSE_GIF" = "yes" ; then
38363 cat >>confdefs.h <<\_ACEOF
38364#define wxUSE_GIF 1
38365_ACEOF
38366
38367 fi
38368
38369 if test "$wxUSE_PCX" = "yes" ; then
38370 cat >>confdefs.h <<\_ACEOF
38371#define wxUSE_PCX 1
38372_ACEOF
38373
38374 fi
38375
38376 if test "$wxUSE_IFF" = "yes" ; then
38377 cat >>confdefs.h <<\_ACEOF
38378#define wxUSE_IFF 1
38379_ACEOF
38380
38381 fi
38382
38383 if test "$wxUSE_PNM" = "yes" ; then
38384 cat >>confdefs.h <<\_ACEOF
38385#define wxUSE_PNM 1
38386_ACEOF
38387
38388 fi
38389
38390 if test "$wxUSE_XPM" = "yes" ; then
38391 cat >>confdefs.h <<\_ACEOF
38392#define wxUSE_XPM 1
38393_ACEOF
38394
38395 fi
38396
38397 if test "$wxUSE_ICO_CUR" = "yes" ; then
38398 cat >>confdefs.h <<\_ACEOF
38399#define wxUSE_ICO_CUR 1
38400_ACEOF
38401
38402 fi
38403fi
38404
38405
38406if test "$wxUSE_CHOICEDLG" = "yes"; then
38407 cat >>confdefs.h <<\_ACEOF
38408#define wxUSE_CHOICEDLG 1
38409_ACEOF
38410
38411fi
38412
38413if test "$wxUSE_COLOURDLG" = "yes"; then
38414 cat >>confdefs.h <<\_ACEOF
38415#define wxUSE_COLOURDLG 1
38416_ACEOF
38417
38418fi
38419
38420if test "$wxUSE_FILEDLG" = "yes"; then
38421 cat >>confdefs.h <<\_ACEOF
38422#define wxUSE_FILEDLG 1
38423_ACEOF
38424
38425fi
38426
38427if test "$wxUSE_FINDREPLDLG" = "yes"; then
38428 cat >>confdefs.h <<\_ACEOF
38429#define wxUSE_FINDREPLDLG 1
38430_ACEOF
38431
38432fi
38433
38434if test "$wxUSE_FONTDLG" = "yes"; then
38435 cat >>confdefs.h <<\_ACEOF
38436#define wxUSE_FONTDLG 1
38437_ACEOF
38438
38439fi
38440
38441if test "$wxUSE_DIRDLG" = "yes"; then
38442 if test "$wxUSE_TREECTRL" != "yes"; then
38443 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38444echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38445 else
38446 cat >>confdefs.h <<\_ACEOF
38447#define wxUSE_DIRDLG 1
38448_ACEOF
38449
38450 fi
38451fi
38452
38453if test "$wxUSE_MSGDLG" = "yes"; then
38454 cat >>confdefs.h <<\_ACEOF
38455#define wxUSE_MSGDLG 1
38456_ACEOF
38457
38458fi
38459
38460if test "$wxUSE_NUMBERDLG" = "yes"; then
38461 cat >>confdefs.h <<\_ACEOF
38462#define wxUSE_NUMBERDLG 1
38463_ACEOF
38464
38465fi
38466
38467if test "$wxUSE_PROGRESSDLG" = "yes"; then
38468 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38469 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38470echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38471 else
38472 cat >>confdefs.h <<\_ACEOF
38473#define wxUSE_PROGRESSDLG 1
38474_ACEOF
38475
38476 fi
38477fi
38478
38479if test "$wxUSE_SPLASH" = "yes"; then
38480 cat >>confdefs.h <<\_ACEOF
38481#define wxUSE_SPLASH 1
38482_ACEOF
38483
2057db16 38484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38485fi
38486
38487if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38488 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38489 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38490echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38491 else
38492 cat >>confdefs.h <<\_ACEOF
38493#define wxUSE_STARTUP_TIPS 1
38494_ACEOF
38495
38496 fi
38497fi
38498
38499if test "$wxUSE_TEXTDLG" = "yes"; then
38500 cat >>confdefs.h <<\_ACEOF
38501#define wxUSE_TEXTDLG 1
38502_ACEOF
38503
38504fi
38505
38506if test "$wxUSE_WIZARDDLG" = "yes"; then
38507 cat >>confdefs.h <<\_ACEOF
38508#define wxUSE_WIZARDDLG 1
38509_ACEOF
38510
38511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38512fi
38513
38514
ce756cb0
RN
38515if test "$wxUSE_MEDIACTRL" = "yes"; then
38516 if test "$wxUSE_MSW" = 1; then
38517 wxUSE_DIRECTSHOW="yes"
38518
38519for ac_header in dshow.h
38520do
38521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38522echo "$as_me:$LINENO: checking for $ac_header" >&5
38523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38524if eval "test \"\${$as_ac_Header+set}\" = set"; then
38525 echo $ECHO_N "(cached) $ECHO_C" >&6
38526else
38527 cat >conftest.$ac_ext <<_ACEOF
38528/* confdefs.h. */
38529_ACEOF
38530cat confdefs.h >>conftest.$ac_ext
38531cat >>conftest.$ac_ext <<_ACEOF
38532/* end confdefs.h. */
38533#include <windows.h>
38534
38535#include <$ac_header>
38536_ACEOF
38537rm -f conftest.$ac_objext
38538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38539 (eval $ac_compile) 2>conftest.er1
38540 ac_status=$?
38541 grep -v '^ *+' conftest.er1 >conftest.err
38542 rm -f conftest.er1
38543 cat conftest.err >&5
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); } &&
38546 { ac_try='test -z "$ac_c_werror_flag"
38547 || test ! -s conftest.err'
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38550 ac_status=$?
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; } &&
38553 { ac_try='test -s conftest.$ac_objext'
38554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38555 (eval $ac_try) 2>&5
38556 ac_status=$?
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); }; }; then
38559 eval "$as_ac_Header=yes"
38560else
38561 echo "$as_me: failed program was:" >&5
38562sed 's/^/| /' conftest.$ac_ext >&5
38563
38564eval "$as_ac_Header=no"
38565fi
38566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38567fi
38568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38570if test `eval echo '${'$as_ac_Header'}'` = yes; then
38571 cat >>confdefs.h <<_ACEOF
38572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38573_ACEOF
38574
38575else
38576
38577 wxUSE_DIRECTSHOW="no"
38578 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
38579echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
38580
38581fi
38582
38583done
38584
38585
38586 if test "$wxUSE_DIRECTSHOW" = "yes"; then
38587 cat >>confdefs.h <<\_ACEOF
38588#define wxUSE_DIRECTSHOW 1
38589_ACEOF
38590
38591 LIBS="$LIBS -lstrmiids"
38592 fi
38593 fi
38594
38595 if test "$wxUSE_GTK" = 1; then
38596 wxUSE_GSTREAMER="yes"
38597
38598 echo "$as_me:$LINENO: checking for libxml2" >&5
38599echo $ECHO_N "checking for libxml2... $ECHO_C" >&6
38600
38601ac_find_libraries=
38602for ac_dir in $SEARCH_LIB /usr/lib;
38603 do
38604 for ac_extension in a so sl dylib; do
38605 if test -f "$ac_dir/libxml2.$ac_extension"; then
38606 ac_find_libraries=$ac_dir
38607 break 2
38608 fi
38609 done
38610 done
38611
38612 if test "$ac_find_libraries" != "" ; then
38613 echo "$as_me:$LINENO: result: yes" >&5
38614echo "${ECHO_T}yes" >&6
38615 echo "$as_me:$LINENO: checking for libxml2 headers" >&5
38616echo $ECHO_N "checking for libxml2 headers... $ECHO_C" >&6
38617
38618ac_find_includes=
38619for ac_dir in $SEARCH_INCLUDE /usr/include;
38620 do
38621 if test -f "$ac_dir/libxml/xmlstring.h"; then
38622 ac_find_includes=$ac_dir
38623 break
38624 fi
38625 done
38626
38627 if test "$ac_find_includes" != "" ; then
38628 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
38629echo "${ECHO_T}found in $ac_find_includes" >&6
38630
38631 if test "x$ac_find_includes" = "x/usr/include"; then
38632 ac_path_to_include=""
38633 else
38634 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
38635 result=$?
38636 if test $result = 0; then
38637 ac_path_to_include=""
38638 else
38639 ac_path_to_include=" -I$ac_find_includes"
38640 fi
38641 fi
38642
38643 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
38644 else
38645 cat >conftest.$ac_ext <<_ACEOF
38646/* confdefs.h. */
38647_ACEOF
38648cat confdefs.h >>conftest.$ac_ext
38649cat >>conftest.$ac_ext <<_ACEOF
38650/* end confdefs.h. */
38651
38652 #include <libxml/xmlstring.h>
38653
38654int
38655main ()
38656{
38657
38658 ;
38659 return 0;
38660}
38661_ACEOF
38662rm -f conftest.$ac_objext
38663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38664 (eval $ac_compile) 2>conftest.er1
38665 ac_status=$?
38666 grep -v '^ *+' conftest.er1 >conftest.err
38667 rm -f conftest.er1
38668 cat conftest.err >&5
38669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670 (exit $ac_status); } &&
38671 { ac_try='test -z "$ac_c_werror_flag"
38672 || test ! -s conftest.err'
38673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674 (eval $ac_try) 2>&5
38675 ac_status=$?
38676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); }; } &&
38678 { ac_try='test -s conftest.$ac_objext'
38679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38680 (eval $ac_try) 2>&5
38681 ac_status=$?
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); }; }; then
38684 echo "$as_me:$LINENO: result: found in default search path" >&5
38685echo "${ECHO_T}found in default search path" >&6
38686else
38687 echo "$as_me: failed program was:" >&5
38688sed 's/^/| /' conftest.$ac_ext >&5
38689
38690wxUSE_GSTREAMER="no"
38691fi
38692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38693 fi
38694 else
38695 wxUSE_GSTREAMER="no"
38696 fi
38697
38698 if test "$wxUSE_GSTREAMER" = "yes"; then
38699 echo "$as_me:$LINENO: checking for gstreamer 0.8" >&5
38700echo $ECHO_N "checking for gstreamer 0.8... $ECHO_C" >&6
38701
38702ac_find_libraries=
38703for ac_dir in $SEARCH_LIB /usr/lib;
38704 do
38705 for ac_extension in a so sl dylib; do
38706 if test -f "$ac_dir/libgstreamer-0.8.$ac_extension"; then
38707 ac_find_libraries=$ac_dir
38708 break 2
38709 fi
38710 done
38711 done
38712
38713 if test "$ac_find_libraries" != "" ; then
38714 echo "$as_me:$LINENO: result: yes" >&5
38715echo "${ECHO_T}yes" >&6
38716 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
38717echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
38718
38719ac_find_libraries=
38720for ac_dir in $SEARCH_LIB /usr/lib;
38721 do
38722 for ac_extension in a so sl dylib; do
38723 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
38724 ac_find_libraries=$ac_dir
38725 break 2
38726 fi
38727 done
38728 done
38729
38730 if test "$ac_find_libraries" != "" ; then
38731 echo "$as_me:$LINENO: result: yes" >&5
38732echo "${ECHO_T}yes" >&6
38733 echo "$as_me:$LINENO: checking for gstinterfaces 0.8" >&5
38734echo $ECHO_N "checking for gstinterfaces 0.8... $ECHO_C" >&6
38735
38736ac_find_libraries=
38737for ac_dir in $SEARCH_LIB /usr/lib;
38738 do
38739 for ac_extension in a so sl dylib; do
38740 if test -f "$ac_dir/libgstinterfaces-0.8.$ac_extension"; then
38741 ac_find_libraries=$ac_dir
38742 break 2
38743 fi
38744 done
38745 done
38746
38747 if test "$ac_find_libraries" != "" ; then
38748 echo "$as_me:$LINENO: result: yes" >&5
38749echo "${ECHO_T}yes" >&6
38750 echo "$as_me:$LINENO: checking for GStreamer headers" >&5
38751echo $ECHO_N "checking for GStreamer headers... $ECHO_C" >&6
38752
38753ac_find_includes=
38754for ac_dir in $SEARCH_INCLUDE /usr/include;
38755 do
38756 if test -f "$ac_dir/gst/gst.h"; then
38757 ac_find_includes=$ac_dir
38758 break
38759 fi
38760 done
38761
38762 if test "$ac_find_includes" != "" ; then
38763 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
38764echo "${ECHO_T}found in $ac_find_includes" >&6
38765
38766 if test "x$ac_find_includes" = "x/usr/include"; then
38767 ac_path_to_include=""
38768 else
38769 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
38770 result=$?
38771 if test $result = 0; then
38772 ac_path_to_include=""
38773 else
38774 ac_path_to_include=" -I$ac_find_includes"
38775 fi
38776 fi
38777
38778 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
38779 else
38780 cat >conftest.$ac_ext <<_ACEOF
38781/* confdefs.h. */
38782_ACEOF
38783cat confdefs.h >>conftest.$ac_ext
38784cat >>conftest.$ac_ext <<_ACEOF
38785/* end confdefs.h. */
38786
38787 #include <gst/gst.h>
38788
38789int
38790main ()
38791{
38792
38793 ;
38794 return 0;
38795}
38796_ACEOF
38797rm -f conftest.$ac_objext
38798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38799 (eval $ac_compile) 2>conftest.er1
38800 ac_status=$?
38801 grep -v '^ *+' conftest.er1 >conftest.err
38802 rm -f conftest.er1
38803 cat conftest.err >&5
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); } &&
38806 { ac_try='test -z "$ac_c_werror_flag"
38807 || test ! -s conftest.err'
38808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38809 (eval $ac_try) 2>&5
38810 ac_status=$?
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); }; } &&
38813 { ac_try='test -s conftest.$ac_objext'
38814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38815 (eval $ac_try) 2>&5
38816 ac_status=$?
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); }; }; then
38819 echo "$as_me:$LINENO: result: found in default search path" >&5
38820echo "${ECHO_T}found in default search path" >&6
38821else
38822 echo "$as_me: failed program was:" >&5
38823sed 's/^/| /' conftest.$ac_ext >&5
38824
38825wxUSE_GSTREAMER="no"
38826fi
38827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38828 fi
38829 else
38830 wxUSE_GSTREAMER="no"
38831 fi
38832 else
38833 wxUSE_GSTREAMER="no"
38834 fi
38835 else
38836 wxUSE_GSTREAMER="no"
38837 fi
38838
38839 if test "$wxUSE_GSTREAMER" = "yes"; then
38840 cat >>confdefs.h <<\_ACEOF
38841#define wxUSE_GSTREAMER 1
38842_ACEOF
38843
38844 LIBS="$LIBS -lgstreamer-0.8 -lgstplay-0.8"
38845 LIBS="$LIBS -lgstinterfaces-0.8 -lxml2"
38846 else
38847 echo "$as_me:$LINENO: result: no" >&5
38848echo "${ECHO_T}no" >&6
38849 fi
38850 fi
38851 fi
38852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
38853 cat >>confdefs.h <<\_ACEOF
38854#define wxUSE_MEDIACTRL 1
38855_ACEOF
38856
38857fi
38858
38859
a848cd7e
SC
38860if test "$cross_compiling" = "yes"; then
38861 OSINFO="\"$host\""
38862else
38863 OSINFO=`uname -s -r -m`
38864 OSINFO="\"$OSINFO\""
38865fi
38866
38867cat >>confdefs.h <<_ACEOF
38868#define WXWIN_OS_DESCRIPTION $OSINFO
38869_ACEOF
38870
38871
38872
38873if test "x$prefix" != "xNONE"; then
38874 wxPREFIX=$prefix
38875else
38876 wxPREFIX=$ac_default_prefix
38877fi
38878
38879cat >>confdefs.h <<_ACEOF
38880#define wxINSTALL_PREFIX "$wxPREFIX"
38881_ACEOF
38882
38883
a848cd7e
SC
38884
38885
38886CORE_BASE_LIBS="net base"
38887CORE_GUI_LIBS="adv core"
38888
38889if test "$wxUSE_XML" = "yes" ; then
38890 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38891fi
38892if test "$wxUSE_ODBC" != "no" ; then
38893 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38894 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38895fi
38896if test "$wxUSE_HTML" = "yes" ; then
38897 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38898fi
9a8f0513
VS
38899if test "$wxUSE_XRC" = "yes" ; then
38900 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38901fi
a848cd7e
SC
38902
38903if test "$wxUSE_GUI" != "yes"; then
38904 CORE_GUI_LIBS=""
38905fi
38906
38907
38908
38909
38910
38911
38912
38913
38914if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38915 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38916 if test "$USE_DARWIN" = 1; then
38917 LDFLAGS="$LDFLAGS -framework QuickTime"
38918 else
38919 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38920 fi
07bea8f0 38921 fi
5dcf30a0 38922 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38923 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38924 else
38925 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38926 fi
a848cd7e
SC
38927fi
38928if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 38929 LDFLAGS="$LDFLAGS -framework Cocoa"
4fc81cbc
RN
38930 if test "$wxUSE_MEDIACTRL" = "yes"; then
38931 LDFLAGS="$LDFLAGS -framework QuickTime"
38932 fi
a848cd7e
SC
38933fi
38934
38935
38936LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38937
38938have_cos=0
38939have_floor=0
38940
38941for ac_func in cos
38942do
38943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38944echo "$as_me:$LINENO: checking for $ac_func" >&5
38945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38946if eval "test \"\${$as_ac_var+set}\" = set"; then
38947 echo $ECHO_N "(cached) $ECHO_C" >&6
38948else
38949 cat >conftest.$ac_ext <<_ACEOF
38950/* confdefs.h. */
38951_ACEOF
38952cat confdefs.h >>conftest.$ac_ext
38953cat >>conftest.$ac_ext <<_ACEOF
38954/* end confdefs.h. */
ac1cb8d3
VS
38955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38957#define $ac_func innocuous_$ac_func
38958
a848cd7e
SC
38959/* System header to define __stub macros and hopefully few prototypes,
38960 which can conflict with char $ac_func (); below.
38961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38962 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38963
a848cd7e
SC
38964#ifdef __STDC__
38965# include <limits.h>
38966#else
38967# include <assert.h>
38968#endif
ac1cb8d3
VS
38969
38970#undef $ac_func
38971
a848cd7e
SC
38972/* Override any gcc2 internal prototype to avoid an error. */
38973#ifdef __cplusplus
38974extern "C"
38975{
38976#endif
38977/* We use char because int might match the return type of a gcc2
38978 builtin and then its argument prototype would still apply. */
38979char $ac_func ();
38980/* The GNU C library defines this for functions which it implements
38981 to always fail with ENOSYS. Some functions are actually named
38982 something starting with __ and the normal name is an alias. */
38983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38984choke me
38985#else
38986char (*f) () = $ac_func;
38987#endif
38988#ifdef __cplusplus
38989}
38990#endif
38991
38992int
38993main ()
38994{
38995return f != $ac_func;
38996 ;
38997 return 0;
38998}
38999_ACEOF
39000rm -f conftest.$ac_objext conftest$ac_exeext
39001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39002 (eval $ac_link) 2>conftest.er1
a848cd7e 39003 ac_status=$?
ac1cb8d3
VS
39004 grep -v '^ *+' conftest.er1 >conftest.err
39005 rm -f conftest.er1
39006 cat conftest.err >&5
a848cd7e
SC
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); } &&
89be85c2
VS
39009 { ac_try='test -z "$ac_c_werror_flag"
39010 || test ! -s conftest.err'
ac1cb8d3
VS
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39013 ac_status=$?
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; } &&
39016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39019 ac_status=$?
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; }; then
39022 eval "$as_ac_var=yes"
39023else
39024 echo "$as_me: failed program was:" >&5
39025sed 's/^/| /' conftest.$ac_ext >&5
39026
39027eval "$as_ac_var=no"
39028fi
ac1cb8d3
VS
39029rm -f conftest.err conftest.$ac_objext \
39030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39031fi
39032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39034if test `eval echo '${'$as_ac_var'}'` = yes; then
39035 cat >>confdefs.h <<_ACEOF
39036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39037_ACEOF
39038 have_cos=1
39039fi
39040done
39041
39042
39043for ac_func in floor
39044do
39045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39046echo "$as_me:$LINENO: checking for $ac_func" >&5
39047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39048if eval "test \"\${$as_ac_var+set}\" = set"; then
39049 echo $ECHO_N "(cached) $ECHO_C" >&6
39050else
39051 cat >conftest.$ac_ext <<_ACEOF
39052/* confdefs.h. */
39053_ACEOF
39054cat confdefs.h >>conftest.$ac_ext
39055cat >>conftest.$ac_ext <<_ACEOF
39056/* end confdefs.h. */
ac1cb8d3
VS
39057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39059#define $ac_func innocuous_$ac_func
39060
a848cd7e
SC
39061/* System header to define __stub macros and hopefully few prototypes,
39062 which can conflict with char $ac_func (); below.
39063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39064 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39065
a848cd7e
SC
39066#ifdef __STDC__
39067# include <limits.h>
39068#else
39069# include <assert.h>
39070#endif
ac1cb8d3
VS
39071
39072#undef $ac_func
39073
a848cd7e
SC
39074/* Override any gcc2 internal prototype to avoid an error. */
39075#ifdef __cplusplus
39076extern "C"
39077{
39078#endif
39079/* We use char because int might match the return type of a gcc2
39080 builtin and then its argument prototype would still apply. */
39081char $ac_func ();
39082/* The GNU C library defines this for functions which it implements
39083 to always fail with ENOSYS. Some functions are actually named
39084 something starting with __ and the normal name is an alias. */
39085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39086choke me
39087#else
39088char (*f) () = $ac_func;
39089#endif
39090#ifdef __cplusplus
39091}
39092#endif
39093
39094int
39095main ()
39096{
39097return f != $ac_func;
39098 ;
39099 return 0;
39100}
39101_ACEOF
39102rm -f conftest.$ac_objext conftest$ac_exeext
39103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39104 (eval $ac_link) 2>conftest.er1
a848cd7e 39105 ac_status=$?
ac1cb8d3
VS
39106 grep -v '^ *+' conftest.er1 >conftest.err
39107 rm -f conftest.er1
39108 cat conftest.err >&5
a848cd7e
SC
39109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39110 (exit $ac_status); } &&
89be85c2
VS
39111 { ac_try='test -z "$ac_c_werror_flag"
39112 || test ! -s conftest.err'
ac1cb8d3
VS
39113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39114 (eval $ac_try) 2>&5
39115 ac_status=$?
39116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117 (exit $ac_status); }; } &&
39118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39120 (eval $ac_try) 2>&5
39121 ac_status=$?
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); }; }; then
39124 eval "$as_ac_var=yes"
39125else
39126 echo "$as_me: failed program was:" >&5
39127sed 's/^/| /' conftest.$ac_ext >&5
39128
39129eval "$as_ac_var=no"
39130fi
ac1cb8d3
VS
39131rm -f conftest.err conftest.$ac_objext \
39132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39133fi
39134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39136if test `eval echo '${'$as_ac_var'}'` = yes; then
39137 cat >>confdefs.h <<_ACEOF
39138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39139_ACEOF
39140 have_floor=1
39141fi
39142done
39143
39144echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39145echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39146if test "$have_cos" = 1 -a "$have_floor" = 1; then
39147 echo "$as_me:$LINENO: result: yes" >&5
39148echo "${ECHO_T}yes" >&6
39149else
39150 echo "$as_me:$LINENO: result: no" >&5
39151echo "${ECHO_T}no" >&6
39152 LIBS="$LIBS -lm"
39153 # use different functions to avoid configure caching
39154 have_sin=0
39155 have_ceil=0
39156
39157for ac_func in sin
39158do
39159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39160echo "$as_me:$LINENO: checking for $ac_func" >&5
39161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39162if eval "test \"\${$as_ac_var+set}\" = set"; then
39163 echo $ECHO_N "(cached) $ECHO_C" >&6
39164else
39165 cat >conftest.$ac_ext <<_ACEOF
39166/* confdefs.h. */
39167_ACEOF
39168cat confdefs.h >>conftest.$ac_ext
39169cat >>conftest.$ac_ext <<_ACEOF
39170/* end confdefs.h. */
ac1cb8d3
VS
39171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39173#define $ac_func innocuous_$ac_func
39174
a848cd7e
SC
39175/* System header to define __stub macros and hopefully few prototypes,
39176 which can conflict with char $ac_func (); below.
39177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39178 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39179
a848cd7e
SC
39180#ifdef __STDC__
39181# include <limits.h>
39182#else
39183# include <assert.h>
39184#endif
ac1cb8d3
VS
39185
39186#undef $ac_func
39187
a848cd7e
SC
39188/* Override any gcc2 internal prototype to avoid an error. */
39189#ifdef __cplusplus
39190extern "C"
39191{
39192#endif
39193/* We use char because int might match the return type of a gcc2
39194 builtin and then its argument prototype would still apply. */
39195char $ac_func ();
39196/* The GNU C library defines this for functions which it implements
39197 to always fail with ENOSYS. Some functions are actually named
39198 something starting with __ and the normal name is an alias. */
39199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39200choke me
39201#else
39202char (*f) () = $ac_func;
39203#endif
39204#ifdef __cplusplus
39205}
39206#endif
39207
39208int
39209main ()
39210{
39211return f != $ac_func;
39212 ;
39213 return 0;
39214}
39215_ACEOF
39216rm -f conftest.$ac_objext conftest$ac_exeext
39217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39218 (eval $ac_link) 2>conftest.er1
a848cd7e 39219 ac_status=$?
ac1cb8d3
VS
39220 grep -v '^ *+' conftest.er1 >conftest.err
39221 rm -f conftest.er1
39222 cat conftest.err >&5
a848cd7e
SC
39223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224 (exit $ac_status); } &&
89be85c2
VS
39225 { ac_try='test -z "$ac_c_werror_flag"
39226 || test ! -s conftest.err'
ac1cb8d3
VS
39227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228 (eval $ac_try) 2>&5
39229 ac_status=$?
39230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 (exit $ac_status); }; } &&
39232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39234 (eval $ac_try) 2>&5
39235 ac_status=$?
39236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39237 (exit $ac_status); }; }; then
39238 eval "$as_ac_var=yes"
39239else
39240 echo "$as_me: failed program was:" >&5
39241sed 's/^/| /' conftest.$ac_ext >&5
39242
39243eval "$as_ac_var=no"
39244fi
ac1cb8d3
VS
39245rm -f conftest.err conftest.$ac_objext \
39246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39247fi
39248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39250if test `eval echo '${'$as_ac_var'}'` = yes; then
39251 cat >>confdefs.h <<_ACEOF
39252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39253_ACEOF
39254 have_sin=1
39255fi
39256done
39257
39258
39259for ac_func in ceil
39260do
39261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39262echo "$as_me:$LINENO: checking for $ac_func" >&5
39263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39264if eval "test \"\${$as_ac_var+set}\" = set"; then
39265 echo $ECHO_N "(cached) $ECHO_C" >&6
39266else
39267 cat >conftest.$ac_ext <<_ACEOF
39268/* confdefs.h. */
39269_ACEOF
39270cat confdefs.h >>conftest.$ac_ext
39271cat >>conftest.$ac_ext <<_ACEOF
39272/* end confdefs.h. */
ac1cb8d3
VS
39273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39275#define $ac_func innocuous_$ac_func
39276
a848cd7e
SC
39277/* System header to define __stub macros and hopefully few prototypes,
39278 which can conflict with char $ac_func (); below.
39279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39281
a848cd7e
SC
39282#ifdef __STDC__
39283# include <limits.h>
39284#else
39285# include <assert.h>
39286#endif
ac1cb8d3
VS
39287
39288#undef $ac_func
39289
a848cd7e
SC
39290/* Override any gcc2 internal prototype to avoid an error. */
39291#ifdef __cplusplus
39292extern "C"
39293{
39294#endif
39295/* We use char because int might match the return type of a gcc2
39296 builtin and then its argument prototype would still apply. */
39297char $ac_func ();
39298/* The GNU C library defines this for functions which it implements
39299 to always fail with ENOSYS. Some functions are actually named
39300 something starting with __ and the normal name is an alias. */
39301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39302choke me
39303#else
39304char (*f) () = $ac_func;
39305#endif
39306#ifdef __cplusplus
39307}
39308#endif
39309
39310int
39311main ()
39312{
39313return f != $ac_func;
39314 ;
39315 return 0;
39316}
39317_ACEOF
39318rm -f conftest.$ac_objext conftest$ac_exeext
39319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39320 (eval $ac_link) 2>conftest.er1
a848cd7e 39321 ac_status=$?
ac1cb8d3
VS
39322 grep -v '^ *+' conftest.er1 >conftest.err
39323 rm -f conftest.er1
39324 cat conftest.err >&5
a848cd7e
SC
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); } &&
89be85c2
VS
39327 { ac_try='test -z "$ac_c_werror_flag"
39328 || test ! -s conftest.err'
ac1cb8d3
VS
39329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330 (eval $ac_try) 2>&5
39331 ac_status=$?
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); }; } &&
39334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336 (eval $ac_try) 2>&5
39337 ac_status=$?
39338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339 (exit $ac_status); }; }; then
39340 eval "$as_ac_var=yes"
39341else
39342 echo "$as_me: failed program was:" >&5
39343sed 's/^/| /' conftest.$ac_ext >&5
39344
39345eval "$as_ac_var=no"
39346fi
ac1cb8d3
VS
39347rm -f conftest.err conftest.$ac_objext \
39348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39349fi
39350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39352if test `eval echo '${'$as_ac_var'}'` = yes; then
39353 cat >>confdefs.h <<_ACEOF
39354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39355_ACEOF
39356 have_ceil=1
39357fi
39358done
39359
39360 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
39361echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
39362 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
39363 echo "$as_me:$LINENO: result: yes" >&5
39364echo "${ECHO_T}yes" >&6
39365 else
39366 echo "$as_me:$LINENO: result: no" >&5
39367echo "${ECHO_T}no" >&6
39368 # not sure we should warn the user, crash, etc.
39369 fi
39370fi
39371
39372if test "$wxUSE_GUI" = "yes"; then
39373
39374
39375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
39376 drawing dynamic erase event exec font image \
39377 minimal propsize rotate shaped widgets render"
39378
39379 if test "$wxUSE_MONOLITHIC" != "yes"; then
39380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
39381 fi
39382else
39383 SAMPLES_SUBDIRS="console"
39384fi
39385
39386
ceec2216 39387INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
39388-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
39389
39390if test "$GXX" = yes ; then
5294a27e
VZ
39391 CWARNINGS="-Wall"
39392 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
39393 fi
39394
39395EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
39396
0c3c69fc 39397CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 39398CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 39399CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 39400
95986553
DE
39401if test "x$MWCC" = "xyes"; then
39402
39403 CC="$CC -cwd source -I-"
39404 CXX="$CXX -cwd source -I-"
39405fi
39406
a848cd7e 39407
0c3c69fc 39408LIBS=`echo $LIBS`
a848cd7e
SC
39409EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
39410EXTRALIBS_XML="$EXPAT_LINK"
39411EXTRALIBS_HTML="$MSPACK_LINK"
39412EXTRALIBS_ODBC="$ODBC_LINK"
39413if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 39414 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
39415fi
39416if test "$wxUSE_OPENGL" = "yes"; then
39417 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
39418fi
39419
39420LDFLAGS="$LDFLAGS $PROFILE"
39421
39422if test "$wxUSE_GTK" = 1; then
39423 WXCONFIG_INCLUDE=
39424else
39425 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
39426fi
39427
39428WXCONFIG_EXTRALIBS="$LIBS"
39429
39430if test "$wxUSE_REGEX" = "builtin" ; then
39431 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
39432fi
39433if test "$wxUSE_EXPAT" = "builtin" ; then
39434 wxconfig_3rdparty="$wxconfig_3rdparty expat"
39435fi
39436if test "$wxUSE_ODBC" = "builtin" ; then
39437 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39438fi
39439if test "$wxUSE_LIBTIFF" = "builtin" ; then
39440 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
39441fi
39442if test "$wxUSE_LIBJPEG" = "builtin" ; then
39443 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
39444fi
39445if test "$wxUSE_LIBPNG" = "builtin" ; then
39446 wxconfig_3rdparty="$wxconfig_3rdparty png"
39447fi
39448if test "$wxUSE_ZLIB" = "builtin" ; then
39449 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
39450fi
39451if test "$wxUSE_ODBC" = "builtin" ; then
39452 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39453fi
39454
39455for i in $wxconfig_3rdparty ; do
ceec2216 39456 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
39457done
39458
39459
39460if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
39461 WXUNIV=1
39462else
39463 WXUNIV=0
39464fi
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474if test $wxUSE_MONOLITHIC = "yes" ; then
39475 MONOLITHIC=1
39476else
39477 MONOLITHIC=0
39478fi
39479
39480if test $wxUSE_PLUGINS = "yes" ; then
39481 USE_PLUGINS=1
39482else
39483 USE_PLUGINS=0
39484fi
39485
39486if test $wxUSE_ODBC != "no" ; then
39487 USE_ODBC=1
39488else
39489 USE_ODBC=0
39490fi
39491
39492if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
39493 OFFICIAL_BUILD=1
39494else
39495 OFFICIAL_BUILD=0
39496fi
39497
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
ceec2216 39516
d1c38808 39517
a848cd7e
SC
39518
39519
39520TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
39521
39522
39523
39524
39525
39526
39527
39528
4d4ff94c
VZ
39529case "$TOOLKIT" in
39530 GTK)
39531 TOOLKIT_USER="GTK+"
39532 if test "$WXGTK20" = 1; then
39533 TOOLKIT_USER="$TOOLKIT_USER 2"
39534 fi
9a8f0513 39535 ;;
4d4ff94c
VZ
39536
39537 *)
39538 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 39539 ;;
4d4ff94c 39540esac
a848cd7e 39541
9a8f0513 39542
1e9e8aba
DE
39543
39544
a848cd7e
SC
39545 if test "x$BAKEFILE_HOST" = "x"; then
39546 BAKEFILE_HOST="${host}"
39547 fi
39548
39549 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
39550
39551 if test -n "$ac_tool_prefix"; then
39552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
39553set dummy ${ac_tool_prefix}ranlib; ac_word=$2
39554echo "$as_me:$LINENO: checking for $ac_word" >&5
39555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39556if test "${ac_cv_prog_RANLIB+set}" = set; then
39557 echo $ECHO_N "(cached) $ECHO_C" >&6
39558else
39559 if test -n "$RANLIB"; then
39560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
39561else
39562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39563for as_dir in $PATH
39564do
39565 IFS=$as_save_IFS
39566 test -z "$as_dir" && as_dir=.
39567 for ac_exec_ext in '' $ac_executable_extensions; do
39568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
39570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39571 break 2
39572 fi
39573done
39574done
39575
39576fi
39577fi
39578RANLIB=$ac_cv_prog_RANLIB
39579if test -n "$RANLIB"; then
39580 echo "$as_me:$LINENO: result: $RANLIB" >&5
39581echo "${ECHO_T}$RANLIB" >&6
39582else
39583 echo "$as_me:$LINENO: result: no" >&5
39584echo "${ECHO_T}no" >&6
39585fi
39586
39587fi
39588if test -z "$ac_cv_prog_RANLIB"; then
39589 ac_ct_RANLIB=$RANLIB
39590 # Extract the first word of "ranlib", so it can be a program name with args.
39591set dummy ranlib; ac_word=$2
39592echo "$as_me:$LINENO: checking for $ac_word" >&5
39593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39594if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
39595 echo $ECHO_N "(cached) $ECHO_C" >&6
39596else
39597 if test -n "$ac_ct_RANLIB"; then
39598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
39599else
39600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39601for as_dir in $PATH
39602do
39603 IFS=$as_save_IFS
39604 test -z "$as_dir" && as_dir=.
39605 for ac_exec_ext in '' $ac_executable_extensions; do
39606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39607 ac_cv_prog_ac_ct_RANLIB="ranlib"
39608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39609 break 2
39610 fi
39611done
39612done
39613
39614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39615fi
39616fi
39617ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39618if test -n "$ac_ct_RANLIB"; then
39619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39620echo "${ECHO_T}$ac_ct_RANLIB" >&6
39621else
39622 echo "$as_me:$LINENO: result: no" >&5
39623echo "${ECHO_T}no" >&6
39624fi
39625
39626 RANLIB=$ac_ct_RANLIB
39627else
39628 RANLIB="$ac_cv_prog_RANLIB"
39629fi
39630
39631 # Find a good install program. We prefer a C program (faster),
39632# so one script is as good as another. But avoid the broken or
39633# incompatible versions:
39634# SysV /etc/install, /usr/sbin/install
39635# SunOS /usr/etc/install
39636# IRIX /sbin/install
39637# AIX /bin/install
39638# AmigaOS /C/install, which installs bootblocks on floppy discs
39639# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39640# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39641# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39642# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39643# ./install, which can be erroneously created by make from ./install.sh.
39644echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39645echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39646if test -z "$INSTALL"; then
39647if test "${ac_cv_path_install+set}" = set; then
39648 echo $ECHO_N "(cached) $ECHO_C" >&6
39649else
39650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39651for as_dir in $PATH
39652do
39653 IFS=$as_save_IFS
39654 test -z "$as_dir" && as_dir=.
39655 # Account for people who put trailing slashes in PATH elements.
39656case $as_dir/ in
39657 ./ | .// | /cC/* | \
39658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39659 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39660 /usr/ucb/* ) ;;
39661 *)
39662 # OSF1 and SCO ODT 3.0 have their own names for install.
39663 # Don't use installbsd from OSF since it installs stuff as root
39664 # by default.
39665 for ac_prog in ginstall scoinst install; do
39666 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39667 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39668 if test $ac_prog = install &&
39669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39670 # AIX install. It has an incompatible calling convention.
39671 :
39672 elif test $ac_prog = install &&
39673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39674 # program-specific install script used by HP pwplus--don't use.
39675 :
39676 else
39677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39678 break 3
39679 fi
39680 fi
a848cd7e
SC
39681 done
39682 done
39683 ;;
39684esac
39685done
39686
39687
39688fi
39689 if test "${ac_cv_path_install+set}" = set; then
39690 INSTALL=$ac_cv_path_install
39691 else
39692 # As a last resort, use the slow shell script. We don't cache a
39693 # path for INSTALL within a source directory, because that will
39694 # break other packages using the cache if that directory is
39695 # removed, or if the path is relative.
39696 INSTALL=$ac_install_sh
39697 fi
39698fi
39699echo "$as_me:$LINENO: result: $INSTALL" >&5
39700echo "${ECHO_T}$INSTALL" >&6
39701
39702# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39703# It thinks the first close brace ends the variable substitution.
39704test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39705
39706test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39707
39708test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39709
39710 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39711echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39712LN_S=$as_ln_s
39713if test "$LN_S" = "ln -s"; then
39714 echo "$as_me:$LINENO: result: yes" >&5
39715echo "${ECHO_T}yes" >&6
39716else
39717 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39718echo "${ECHO_T}no, using $LN_S" >&6
39719fi
39720
39721
39722 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39723echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39724set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39725if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39726 echo $ECHO_N "(cached) $ECHO_C" >&6
39727else
39728 cat >conftest.make <<\_ACEOF
39729all:
39730 @echo 'ac_maketemp="$(MAKE)"'
39731_ACEOF
39732# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39733eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39734if test -n "$ac_maketemp"; then
39735 eval ac_cv_prog_make_${ac_make}_set=yes
39736else
39737 eval ac_cv_prog_make_${ac_make}_set=no
39738fi
39739rm -f conftest.make
39740fi
39741if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39742 echo "$as_me:$LINENO: result: yes" >&5
39743echo "${ECHO_T}yes" >&6
39744 SET_MAKE=
39745else
39746 echo "$as_me:$LINENO: result: no" >&5
39747echo "${ECHO_T}no" >&6
39748 SET_MAKE="MAKE=${MAKE-make}"
39749fi
39750
39751
39752
39753 if test -n "$ac_tool_prefix"; then
39754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39755set dummy ${ac_tool_prefix}ar; ac_word=$2
39756echo "$as_me:$LINENO: checking for $ac_word" >&5
39757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39758if test "${ac_cv_prog_AR+set}" = set; then
39759 echo $ECHO_N "(cached) $ECHO_C" >&6
39760else
39761 if test -n "$AR"; then
39762 ac_cv_prog_AR="$AR" # Let the user override the test.
39763else
39764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39765for as_dir in $PATH
39766do
39767 IFS=$as_save_IFS
39768 test -z "$as_dir" && as_dir=.
39769 for ac_exec_ext in '' $ac_executable_extensions; do
39770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39771 ac_cv_prog_AR="${ac_tool_prefix}ar"
39772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39773 break 2
39774 fi
39775done
39776done
39777
39778fi
39779fi
39780AR=$ac_cv_prog_AR
39781if test -n "$AR"; then
39782 echo "$as_me:$LINENO: result: $AR" >&5
39783echo "${ECHO_T}$AR" >&6
39784else
39785 echo "$as_me:$LINENO: result: no" >&5
39786echo "${ECHO_T}no" >&6
39787fi
39788
39789fi
39790if test -z "$ac_cv_prog_AR"; then
39791 ac_ct_AR=$AR
39792 # Extract the first word of "ar", so it can be a program name with args.
39793set dummy ar; ac_word=$2
39794echo "$as_me:$LINENO: checking for $ac_word" >&5
39795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39796if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39797 echo $ECHO_N "(cached) $ECHO_C" >&6
39798else
39799 if test -n "$ac_ct_AR"; then
39800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39801else
39802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39803for as_dir in $PATH
39804do
39805 IFS=$as_save_IFS
39806 test -z "$as_dir" && as_dir=.
39807 for ac_exec_ext in '' $ac_executable_extensions; do
39808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39809 ac_cv_prog_ac_ct_AR="ar"
39810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39811 break 2
39812 fi
39813done
39814done
39815
39816 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39817fi
39818fi
39819ac_ct_AR=$ac_cv_prog_ac_ct_AR
39820if test -n "$ac_ct_AR"; then
39821 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39822echo "${ECHO_T}$ac_ct_AR" >&6
39823else
39824 echo "$as_me:$LINENO: result: no" >&5
39825echo "${ECHO_T}no" >&6
39826fi
39827
39828 AR=$ac_ct_AR
39829else
39830 AR="$ac_cv_prog_AR"
39831fi
39832
39833 if test -n "$ac_tool_prefix"; then
39834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39835set dummy ${ac_tool_prefix}strip; ac_word=$2
39836echo "$as_me:$LINENO: checking for $ac_word" >&5
39837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39838if test "${ac_cv_prog_STRIP+set}" = set; then
39839 echo $ECHO_N "(cached) $ECHO_C" >&6
39840else
39841 if test -n "$STRIP"; then
39842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39843else
39844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39845for as_dir in $PATH
39846do
39847 IFS=$as_save_IFS
39848 test -z "$as_dir" && as_dir=.
39849 for ac_exec_ext in '' $ac_executable_extensions; do
39850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39851 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39853 break 2
39854 fi
39855done
39856done
39857
39858fi
39859fi
39860STRIP=$ac_cv_prog_STRIP
39861if test -n "$STRIP"; then
39862 echo "$as_me:$LINENO: result: $STRIP" >&5
39863echo "${ECHO_T}$STRIP" >&6
39864else
39865 echo "$as_me:$LINENO: result: no" >&5
39866echo "${ECHO_T}no" >&6
39867fi
39868
39869fi
39870if test -z "$ac_cv_prog_STRIP"; then
39871 ac_ct_STRIP=$STRIP
39872 # Extract the first word of "strip", so it can be a program name with args.
39873set dummy strip; ac_word=$2
39874echo "$as_me:$LINENO: checking for $ac_word" >&5
39875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39876if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39877 echo $ECHO_N "(cached) $ECHO_C" >&6
39878else
39879 if test -n "$ac_ct_STRIP"; then
39880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39881else
39882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39883for as_dir in $PATH
39884do
39885 IFS=$as_save_IFS
39886 test -z "$as_dir" && as_dir=.
39887 for ac_exec_ext in '' $ac_executable_extensions; do
39888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39889 ac_cv_prog_ac_ct_STRIP="strip"
39890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39891 break 2
39892 fi
39893done
39894done
39895
39896 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39897fi
39898fi
39899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39900if test -n "$ac_ct_STRIP"; then
39901 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39902echo "${ECHO_T}$ac_ct_STRIP" >&6
39903else
39904 echo "$as_me:$LINENO: result: no" >&5
39905echo "${ECHO_T}no" >&6
39906fi
39907
39908 STRIP=$ac_ct_STRIP
39909else
39910 STRIP="$ac_cv_prog_STRIP"
39911fi
39912
39913 if test -n "$ac_tool_prefix"; then
39914 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39915set dummy ${ac_tool_prefix}nm; ac_word=$2
39916echo "$as_me:$LINENO: checking for $ac_word" >&5
39917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39918if test "${ac_cv_prog_NM+set}" = set; then
39919 echo $ECHO_N "(cached) $ECHO_C" >&6
39920else
39921 if test -n "$NM"; then
39922 ac_cv_prog_NM="$NM" # Let the user override the test.
39923else
39924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39925for as_dir in $PATH
39926do
39927 IFS=$as_save_IFS
39928 test -z "$as_dir" && as_dir=.
39929 for ac_exec_ext in '' $ac_executable_extensions; do
39930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39931 ac_cv_prog_NM="${ac_tool_prefix}nm"
39932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39933 break 2
39934 fi
39935done
39936done
39937
39938fi
39939fi
39940NM=$ac_cv_prog_NM
39941if test -n "$NM"; then
39942 echo "$as_me:$LINENO: result: $NM" >&5
39943echo "${ECHO_T}$NM" >&6
39944else
39945 echo "$as_me:$LINENO: result: no" >&5
39946echo "${ECHO_T}no" >&6
39947fi
39948
39949fi
39950if test -z "$ac_cv_prog_NM"; then
39951 ac_ct_NM=$NM
39952 # Extract the first word of "nm", so it can be a program name with args.
39953set dummy nm; ac_word=$2
39954echo "$as_me:$LINENO: checking for $ac_word" >&5
39955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39956if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39957 echo $ECHO_N "(cached) $ECHO_C" >&6
39958else
39959 if test -n "$ac_ct_NM"; then
39960 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39961else
39962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39963for as_dir in $PATH
39964do
39965 IFS=$as_save_IFS
39966 test -z "$as_dir" && as_dir=.
39967 for ac_exec_ext in '' $ac_executable_extensions; do
39968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39969 ac_cv_prog_ac_ct_NM="nm"
39970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39971 break 2
39972 fi
39973done
39974done
39975
39976 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39977fi
39978fi
39979ac_ct_NM=$ac_cv_prog_ac_ct_NM
39980if test -n "$ac_ct_NM"; then
39981 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39982echo "${ECHO_T}$ac_ct_NM" >&6
39983else
39984 echo "$as_me:$LINENO: result: no" >&5
39985echo "${ECHO_T}no" >&6
39986fi
39987
39988 NM=$ac_ct_NM
39989else
39990 NM="$ac_cv_prog_NM"
39991fi
39992
39993
39994 case ${BAKEFILE_HOST} in
39995 *-hp-hpux* )
1e9e8aba 39996 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39997 ;;
39998 *) INSTALL_DIR="$INSTALL -d"
39999 ;;
40000 esac
40001
40002
40003 LDFLAGS_GUI=
40004 case ${BAKEFILE_HOST} in
40005 *-*-cygwin* | *-*-mingw32* )
40006 LDFLAGS_GUI="-mwindows"
40007 esac
40008
40009
40010 fi
40011
40012 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40013echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40014if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40015 echo $ECHO_N "(cached) $ECHO_C" >&6
40016else
40017
40018 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40019 egrep -s GNU > /dev/null); then
40020 bakefile_cv_prog_makeisgnu="yes"
40021 else
40022 bakefile_cv_prog_makeisgnu="no"
40023 fi
40024
40025fi
40026echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
40027echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
40028
40029 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
40030 IF_GNU_MAKE=""
40031 else
40032 IF_GNU_MAKE="#"
40033 fi
40034
40035
40036
40037 PLATFORM_UNIX=0
40038 PLATFORM_WIN32=0
40039 PLATFORM_MSDOS=0
40040 PLATFORM_MAC=0
1e9e8aba 40041 PLATFORM_MACOS=0
a848cd7e
SC
40042 PLATFORM_MACOSX=0
40043 PLATFORM_OS2=0
1e9e8aba 40044 PLATFORM_BEOS=0
a848cd7e
SC
40045
40046 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
40047 case "${BAKEFILE_HOST}" in
40048 *-*-cygwin* | *-*-mingw32* )
40049 PLATFORM_WIN32=1
40050 ;;
40051 *-pc-msdosdjgpp )
40052 PLATFORM_MSDOS=1
40053 ;;
40054 *-pc-os2_emx | *-pc-os2-emx )
40055 PLATFORM_OS2=1
40056 ;;
40057 powerpc-*-darwin* )
40058 PLATFORM_MAC=1
40059 PLATFORM_MACOSX=1
40060 ;;
1e9e8aba
DE
40061 *-*-beos* )
40062 PLATFORM_BEOS=1
40063 ;;
40064 powerpc-apple-macos* )
40065 PLATFORM_MAC=1
40066 PLATFORM_MACOS=1
40067 ;;
a848cd7e
SC
40068 * )
40069 PLATFORM_UNIX=1
40070 ;;
40071 esac
40072 else
40073 case "$BAKEFILE_FORCE_PLATFORM" in
40074 win32 )
40075 PLATFORM_WIN32=1
40076 ;;
40077 msdos )
40078 PLATFORM_MSDOS=1
40079 ;;
40080 os2 )
40081 PLATFORM_OS2=1
40082 ;;
40083 darwin )
40084 PLATFORM_MAC=1
40085 PLATFORM_MACOSX=1
40086 ;;
40087 unix )
40088 PLATFORM_UNIX=1
40089 ;;
1e9e8aba
DE
40090 beos )
40091 PLATFORM_BEOS=1
40092 ;;
a848cd7e
SC
40093 * )
40094 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40095echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40096 { (exit 1); exit 1; }; }
40097 ;;
40098 esac
40099 fi
40100
40101
40102
40103
40104
40105
40106
40107
40108
1e9e8aba
DE
40109
40110
a848cd7e
SC
40111 # Check whether --enable-omf or --disable-omf was given.
40112if test "${enable_omf+set}" = set; then
40113 enableval="$enable_omf"
40114 bk_os2_use_omf="$enableval"
40115fi;
40116
40117 case "${BAKEFILE_HOST}" in
40118 *-*-darwin* )
40119 CFLAGS="$CFLAGS -fno-common"
40120 CXXFLAGS="$CXXFLAGS -fno-common"
40121 ;;
40122
40123 *-pc-os2_emx | *-pc-os2-emx )
40124 if test "x$bk_os2_use_omf" = "xyes" ; then
40125 AR=emxomfar
40126 RANLIB=:
40127 LDFLAGS="-Zomf $LDFLAGS"
40128 CFLAGS="-Zomf $CFLAGS"
40129 CXXFLAGS="-Zomf $CXXFLAGS"
40130 OS2_LIBEXT="lib"
40131 else
40132 OS2_LIBEXT="a"
40133 fi
40134 ;;
1e9e8aba
DE
40135
40136 i*86-*-beos* )
40137 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40138 ;;
a848cd7e
SC
40139 esac
40140
40141
40142 SO_SUFFIX="so"
40143 SO_SUFFIX_MODULE="so"
40144 EXEEXT=""
40145 LIBPREFIX="lib"
40146 LIBEXT=".a"
40147 DLLPREFIX="lib"
40148 DLLPREFIX_MODULE=""
40149 DLLIMP_SUFFIX=""
40150
40151 case "${BAKEFILE_HOST}" in
40152 *-hp-hpux* )
40153 SO_SUFFIX="sl"
40154 SO_SUFFIX_MODULE="sl"
40155 ;;
40156 *-*-aix* )
40157 SO_SUFFIX="a"
40158 SO_SUFFIX_MODULE="a"
40159 ;;
40160 *-*-cygwin* | *-*-mingw32* )
40161 SO_SUFFIX="dll"
40162 SO_SUFFIX_MODULE="dll"
40163 DLLIMP_SUFFIX="dll.a"
40164 EXEEXT=".exe"
40165 DLLPREFIX=""
40166 ;;
40167 *-pc-msdosdjgpp )
40168 EXEEXT=".exe"
40169 DLLPREFIX=""
40170 ;;
40171 *-pc-os2_emx | *-pc-os2-emx )
40172 SO_SUFFIX="dll"
40173 SO_SUFFIX_MODULE="dll"
40174 DLLIMP_SUFFIX=$OS2_LIBEXT
40175 EXEEXT=".exe"
40176 DLLPREFIX=""
40177 LIBPREFIX=""
40178 LIBEXT=".$OS2_LIBEXT"
40179 ;;
40180 powerpc-*-darwin* )
40181 SO_SUFFIX="dylib"
40182 SO_SUFFIX_MODULE="bundle"
40183 ;;
40184 esac
40185
40186 if test "x$DLLIMP_SUFFIX" = "x" ; then
40187 DLLIMP_SUFFIX="$SO_SUFFIX"
40188 fi
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
1e9e8aba
DE
40200 PIC_FLAG=""
40201 if test "x$GCC" = "xyes"; then
a848cd7e
SC
40202 PIC_FLAG="-fPIC"
40203 fi
40204
1e9e8aba
DE
40205 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
40206 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
40207
a848cd7e
SC
40208 case "${BAKEFILE_HOST}" in
40209 *-hp-hpux* )
1e9e8aba 40210 if test "x$GCC" != "xyes"; then
a848cd7e
SC
40211 LDFLAGS="$LDFLAGS -L/usr/lib"
40212
40213 SHARED_LD_CC="${CC} -b -o"
40214 SHARED_LD_CXX="${CXX} -b -o"
40215 PIC_FLAG="+Z"
40216 fi
40217 ;;
40218
40219 *-*-linux* )
40220 if test "x$GCC" != "xyes"; then
40221 echo "$as_me:$LINENO: checking for Intel compiler" >&5
40222echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
40223if test "${bakefile_cv_prog_icc+set}" = set; then
40224 echo $ECHO_N "(cached) $ECHO_C" >&6
40225else
40226
40227 cat >conftest.$ac_ext <<_ACEOF
40228/* confdefs.h. */
40229_ACEOF
40230cat confdefs.h >>conftest.$ac_ext
40231cat >>conftest.$ac_ext <<_ACEOF
40232/* end confdefs.h. */
40233
40234int
40235main ()
40236{
40237
40238 #ifndef __INTEL_COMPILER
40239 #error Not icc
40240 #endif
40241
40242 ;
40243 return 0;
40244}
40245_ACEOF
40246rm -f conftest.$ac_objext
40247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40248 (eval $ac_compile) 2>conftest.er1
a848cd7e 40249 ac_status=$?
ac1cb8d3
VS
40250 grep -v '^ *+' conftest.er1 >conftest.err
40251 rm -f conftest.er1
40252 cat conftest.err >&5
a848cd7e
SC
40253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254 (exit $ac_status); } &&
89be85c2
VS
40255 { ac_try='test -z "$ac_c_werror_flag"
40256 || test ! -s conftest.err'
ac1cb8d3
VS
40257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40258 (eval $ac_try) 2>&5
40259 ac_status=$?
40260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40261 (exit $ac_status); }; } &&
40262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40264 (eval $ac_try) 2>&5
40265 ac_status=$?
40266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40267 (exit $ac_status); }; }; then
40268 bakefile_cv_prog_icc=yes
40269else
40270 echo "$as_me: failed program was:" >&5
40271sed 's/^/| /' conftest.$ac_ext >&5
40272
40273bakefile_cv_prog_icc=no
40274
40275fi
ac1cb8d3 40276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40277
40278fi
40279echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
40280echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
40281 if test "$bakefile_cv_prog_icc" = "yes"; then
40282 PIC_FLAG="-KPIC"
40283 fi
40284 fi
40285 ;;
40286
40287 *-*-solaris2* )
40288 if test "x$GCC" != xyes ; then
40289 SHARED_LD_CC="${CC} -G -o"
40290 SHARED_LD_CXX="${CXX} -G -o"
40291 PIC_FLAG="-KPIC"
40292 fi
40293 ;;
40294
40295 *-*-darwin* )
40296
40297 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
40298echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
40299if test "${wx_cv_gcc31+set}" = set; then
40300 echo $ECHO_N "(cached) $ECHO_C" >&6
40301else
40302
40303 cat >conftest.$ac_ext <<_ACEOF
40304/* confdefs.h. */
40305_ACEOF
40306cat confdefs.h >>conftest.$ac_ext
40307cat >>conftest.$ac_ext <<_ACEOF
40308/* end confdefs.h. */
40309
40310int
40311main ()
40312{
40313
40314 #if (__GNUC__ < 3) || \
40315 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
40316 #error old gcc
40317 #endif
40318
40319 ;
40320 return 0;
40321}
40322_ACEOF
40323rm -f conftest.$ac_objext
40324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40325 (eval $ac_compile) 2>conftest.er1
a848cd7e 40326 ac_status=$?
ac1cb8d3
VS
40327 grep -v '^ *+' conftest.er1 >conftest.err
40328 rm -f conftest.er1
40329 cat conftest.err >&5
a848cd7e
SC
40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331 (exit $ac_status); } &&
89be85c2
VS
40332 { ac_try='test -z "$ac_c_werror_flag"
40333 || test ! -s conftest.err'
ac1cb8d3
VS
40334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40335 (eval $ac_try) 2>&5
40336 ac_status=$?
40337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40338 (exit $ac_status); }; } &&
40339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40341 (eval $ac_try) 2>&5
40342 ac_status=$?
40343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40344 (exit $ac_status); }; }; then
40345
40346 wx_cv_gcc31=yes
40347
40348else
40349 echo "$as_me: failed program was:" >&5
40350sed 's/^/| /' conftest.$ac_ext >&5
40351
40352
40353 wx_cv_gcc31=no
40354
40355
40356fi
ac1cb8d3 40357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40358
40359fi
40360echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
40361echo "${ECHO_T}$wx_cv_gcc31" >&6
40362 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
40363
40364D='$'
40365cat <<EOF >shared-ld-sh
a848cd7e
SC
40366#!/bin/sh
40367#-----------------------------------------------------------------------------
40368#-- Name: distrib/mac/shared-ld-sh
40369#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
40370#-- Author: Gilles Depeyrot
40371#-- Copyright: (c) 2002 Gilles Depeyrot
40372#-- Licence: any use permitted
40373#-----------------------------------------------------------------------------
40374
40375verbose=0
40376args=""
40377objects=""
40378linking_flag="-dynamiclib"
40379
473276a9
VS
40380while test ${D}# -gt 0; do
40381 case ${D}1 in
a848cd7e
SC
40382
40383 -v)
40384 verbose=1
40385 ;;
40386
40387 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
40388 # collect these options and values
473276a9 40389 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
40390 shift
40391 ;;
40392
40393 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
40394 # collect these options
473276a9 40395 args="${D}{args} ${D}1"
a848cd7e
SC
40396 ;;
40397
40398 -dynamiclib|-bundle)
473276a9 40399 linking_flag="${D}1"
a848cd7e
SC
40400 ;;
40401
40402 -*)
473276a9 40403 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
40404 exit 1
40405 ;;
40406
40407 *.o | *.a | *.dylib)
40408 # collect object files
473276a9 40409 objects="${D}{objects} ${D}1"
a848cd7e
SC
40410 ;;
40411
40412 *)
473276a9 40413 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
40414 exit 1
40415 ;;
40416
40417 esac
40418 shift
40419done
40420
40421#
40422# Link one module containing all the others
40423#
473276a9
VS
40424if test ${D}{verbose} = 1; then
40425 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 40426fi
473276a9
VS
40427c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
40428status=${D}?
40429if test ${D}{status} != 0; then
40430 exit ${D}{status}
a848cd7e
SC
40431fi
40432
40433#
40434# Link the shared library from the single module created
40435#
473276a9
VS
40436if test ${D}{verbose} = 1; then
40437 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 40438fi
473276a9
VS
40439c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
40440status=${D}?
40441if test ${D}{status} != 0; then
40442 exit ${D}{status}
a848cd7e
SC
40443fi
40444
40445#
40446# Remove intermediate module
40447#
473276a9 40448rm -f master.${D}${D}.o
a848cd7e
SC
40449
40450exit 0
40451EOF
473276a9 40452
a848cd7e
SC
40453 chmod +x shared-ld-sh
40454
40455 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
40456 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
40457 SHARED_LD_CXX="$SHARED_LD_CC"
40458 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
40459 else
40460 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
40461 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
40462 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
40463 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
40464 fi
40465
40466 PIC_FLAG="-dynamic -fPIC"
40467 ;;
40468
40469 *-*-aix* )
40470 if test "x$GCC" != "xyes"; then
40471 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
40472set dummy makeC++SharedLib; ac_word=$2
40473echo "$as_me:$LINENO: checking for $ac_word" >&5
40474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40475if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
40476 echo $ECHO_N "(cached) $ECHO_C" >&6
40477else
40478 if test -n "$AIX_CXX_LD"; then
40479 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
40480else
40481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40482for as_dir in $PATH
40483do
40484 IFS=$as_save_IFS
40485 test -z "$as_dir" && as_dir=.
40486 for ac_exec_ext in '' $ac_executable_extensions; do
40487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40488 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
40489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40490 break 2
40491 fi
40492done
40493done
40494
40495 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
40496fi
40497fi
40498AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
40499if test -n "$AIX_CXX_LD"; then
40500 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
40501echo "${ECHO_T}$AIX_CXX_LD" >&6
40502else
40503 echo "$as_me:$LINENO: result: no" >&5
40504echo "${ECHO_T}no" >&6
40505fi
40506
40507 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
40508 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
40509 fi
40510 ;;
40511
40512 *-*-beos* )
1e9e8aba
DE
40513 SHARED_LD_CC="${LD} -nostart -o"
40514 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
40515 ;;
40516
40517 *-*-irix* )
40518 if test "x$GCC" != "xyes"; then
40519 PIC_FLAG="-KPIC"
40520 fi
40521 ;;
40522
40523 *-*-cygwin* | *-*-mingw32* )
40524 PIC_FLAG=""
1e9e8aba
DE
40525 SHARED_LD_CC="\$(CC) -shared -o"
40526 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
40527 ;;
40528
40529 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
40530 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
40531 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 40532 PIC_FLAG=""
473276a9
VS
40533
40534D='$'
40535cat <<EOF >dllar.sh
40536#!/bin/sh
40537#
40538# dllar - a tool to build both a .dll and an .a file
40539# from a set of object (.o) files for EMX/OS2.
40540#
40541# Written by Andrew Zabolotny, bit@freya.etu.ru
40542# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
40543#
40544# This script will accept a set of files on the command line.
40545# All the public symbols from the .o files will be exported into
40546# a .DEF file, then linker will be run (through gcc) against them to
40547# build a shared library consisting of all given .o files. All libraries
40548# (.a) will be first decompressed into component .o files then act as
40549# described above. You can optionally give a description (-d "description")
40550# which will be put into .DLL. To see the list of accepted options (as well
40551# as command-line format) simply run this program without options. The .DLL
40552# is built to be imported by name (there is no guarantee that new versions
40553# of the library you build will have same ordinals for same symbols).
40554#
40555# dllar is free software; you can redistribute it and/or modify
40556# it under the terms of the GNU General Public License as published by
40557# the Free Software Foundation; either version 2, or (at your option)
40558# any later version.
40559#
40560# dllar is distributed in the hope that it will be useful,
40561# but WITHOUT ANY WARRANTY; without even the implied warranty of
40562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40563# GNU General Public License for more details.
40564#
40565# You should have received a copy of the GNU General Public License
40566# along with dllar; see the file COPYING. If not, write to the Free
40567# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
40568# 02111-1307, USA.
40569
40570# To successfuly run this program you will need:
40571# - Current drive should have LFN support (HPFS, ext2, network, etc)
40572# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
40573# - gcc
40574# (used to build the .dll)
40575# - emxexp
40576# (used to create .def file from .o files)
40577# - emximp
40578# (used to create .a file from .def file)
40579# - GNU text utilites (cat, sort, uniq)
40580# used to process emxexp output
40581# - GNU file utilities (mv, rm)
40582# - GNU sed
40583# - lxlite (optional, see flag below)
40584# (used for general .dll cleanup)
40585#
40586
40587flag_USE_LXLITE=1;
40588
40589#
40590# helper functions
40591# basnam, variant of basename, which does _not_ remove the path, _iff_
40592# second argument (suffix to remove) is given
40593basnam(){
40594 case ${D}# in
40595 1)
1e9e8aba 40596 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
40597 ;;
40598 2)
40599 echo ${D}1 | sed 's/'${D}2'${D}//'
40600 ;;
40601 *)
40602 echo "error in basnam ${D}*"
40603 exit 8
40604 ;;
40605 esac
40606}
40607
40608# Cleanup temporary files and output
40609CleanUp() {
40610 cd ${D}curDir
40611 for i in ${D}inputFiles ; do
40612 case ${D}i in
40613 *!)
40614 rm -rf \`basnam ${D}i !\`
40615 ;;
40616 *)
40617 ;;
40618 esac
40619 done
40620
40621 # Kill result in case of failure as there is just to many stupid make/nmake
40622 # things out there which doesn't do this.
1e9e8aba 40623 if [ ${D}# -eq 0 ]; then
473276a9
VS
40624 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40625 fi
40626}
40627
40628# Print usage and exit script with rc=1.
40629PrintHelp() {
b1d22ded
DE
40630 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40631 echo ' [-name-mangler-script script.sh]'
40632 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40633 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
40634 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 40635 echo ' [*.o] [*.a]'
473276a9
VS
40636 echo '*> "output_file" should have no extension.'
40637 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40638 echo ' The import library name is derived from this and is set to "name".a,'
40639 echo ' unless overridden by -import'
40640 echo '*> "importlib_name" should have no extension.'
40641 echo ' If it has the .o, or .a extension, it is automatically removed.'
40642 echo ' This name is used as the import library name and may be longer and'
40643 echo ' more descriptive than the DLL name which has to follow the old '
40644 echo ' 8.3 convention of FAT.'
b1d22ded
DE
40645 echo '*> "script.sh may be given to override the output_file name by a'
40646 echo ' different name. It is mainly useful if the regular make process'
40647 echo ' of some package does not take into account OS/2 restriction of'
40648 echo ' DLL name lengths. It takes the importlib name as input and is'
40649 echo ' supposed to procude a shorter name as output. The script should'
40650 echo ' expect to get importlib_name without extension and should produce'
40651 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
40652 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40653 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40654 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
40655 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40656 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
40657 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40658 echo ' If the last character of a symbol is "*", all symbols beginning'
40659 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 40660 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 40661 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 40662 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40663 echo ' C runtime DLLs.'
b1d22ded 40664 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40665 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40666 echo ' unchanged to GCC at the end of command line.'
40667 echo '*> If you create a DLL from a library and you do not specify -o,'
40668 echo ' the basename for DLL and import library will be set to library name,'
40669 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40670 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40671 echo ' library will be renamed into gcc_s.a.'
40672 echo '--------'
40673 echo 'Example:'
40674 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40675 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40676 CleanUp
40677 exit 1
40678}
40679
40680# Execute a command.
40681# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40682# @Uses Whatever CleanUp() uses.
40683doCommand() {
40684 echo "${D}*"
40685 eval ${D}*
40686 rcCmd=${D}?
40687
1e9e8aba 40688 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40689 echo "command failed, exit code="${D}rcCmd
40690 CleanUp
40691 exit ${D}rcCmd
40692 fi
40693}
40694
40695# main routine
40696# setup globals
40697cmdLine=${D}*
40698outFile=""
40699outimpFile=""
40700inputFiles=""
b1d22ded 40701renameScript=""
473276a9
VS
40702description=""
40703CC=gcc.exe
40704CFLAGS="-s -Zcrtdll"
40705EXTRA_CFLAGS=""
40706EXPORT_BY_ORDINALS=0
40707exclude_symbols=""
40708library_flags=""
40709curDir=\`pwd\`
40710curDirS=curDir
40711case ${D}curDirS in
40712*/)
40713 ;;
40714*)
40715 curDirS=${D}{curDirS}"/"
40716 ;;
40717esac
40718# Parse commandline
40719libsToLink=0
b1d22ded 40720omfLinking=0
1e9e8aba 40721while [ ${D}1 ]; do
473276a9
VS
40722 case ${D}1 in
40723 -ord*)
40724 EXPORT_BY_ORDINALS=1;
40725 ;;
40726 -o*)
40727 shift
40728 outFile=${D}1
40729 ;;
40730 -i*)
40731 shift
40732 outimpFile=${D}1
40733 ;;
b1d22ded
DE
40734 -name-mangler-script)
40735 shift
40736 renameScript=${D}1
40737 ;;
473276a9
VS
40738 -d*)
40739 shift
40740 description=${D}1
40741 ;;
40742 -f*)
40743 shift
40744 CFLAGS=${D}1
40745 ;;
40746 -c*)
40747 shift
40748 CC=${D}1
40749 ;;
40750 -h*)
40751 PrintHelp
40752 ;;
40753 -ex*)
40754 shift
40755 exclude_symbols=${D}{exclude_symbols}${D}1" "
40756 ;;
40757 -libf*)
40758 shift
40759 library_flags=${D}{library_flags}${D}1" "
40760 ;;
40761 -nocrt*)
40762 CFLAGS="-s"
40763 ;;
40764 -nolxl*)
40765 flag_USE_LXLITE=0
40766 ;;
40767 -* | /*)
40768 case ${D}1 in
40769 -L* | -l*)
40770 libsToLink=1
40771 ;;
b1d22ded
DE
40772 -Zomf)
40773 omfLinking=1
40774 ;;
473276a9
VS
40775 *)
40776 ;;
40777 esac
40778 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40779 ;;
b1d22ded
DE
40780 *.dll)
40781 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40782 if [ ${D}omfLinking -eq 1 ]; then
40783 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40784 else
40785 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40786 fi
40787 ;;
473276a9
VS
40788 *)
40789 found=0;
1e9e8aba 40790 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40791 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40792 else
40793 for file in ${D}1 ; do
1e9e8aba 40794 if [ -f ${D}file ]; then
473276a9
VS
40795 inputFiles="${D}{inputFiles} ${D}file"
40796 found=1
40797 fi
40798 done
1e9e8aba 40799 if [ ${D}found -eq 0 ]; then
473276a9
VS
40800 echo "ERROR: No file(s) found: "${D}1
40801 exit 8
40802 fi
40803 fi
40804 ;;
40805 esac
40806 shift
40807done # iterate cmdline words
40808
40809#
1e9e8aba 40810if [ -z "${D}inputFiles" ]; then
473276a9
VS
40811 echo "dllar: no input files"
40812 PrintHelp
40813fi
40814
40815# Now extract all .o files from .a files
40816newInputFiles=""
40817for file in ${D}inputFiles ; do
40818 case ${D}file in
40819 *.a | *.lib)
40820 case ${D}file in
40821 *.a)
40822 suffix=".a"
40823 AR="ar"
40824 ;;
40825 *.lib)
40826 suffix=".lib"
40827 AR="emxomfar"
40828 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40829 ;;
40830 *)
40831 ;;
40832 esac
40833 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40834 mkdir ${D}dirname
1e9e8aba 40835 if [ ${D}? -ne 0 ]; then
473276a9
VS
40836 echo "Failed to create subdirectory ./${D}dirname"
40837 CleanUp
40838 exit 8;
40839 fi
40840 # Append '!' to indicate archive
40841 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40842 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40843 cd ${D}curDir
40844 found=0;
40845 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40846 if [ -f ${D}subfile ]; then
473276a9 40847 found=1
1e9e8aba 40848 if [ -s ${D}subfile ]; then
473276a9
VS
40849 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40850 newInputFiles="${D}newInputFiles ${D}subfile"
40851 fi
40852 fi
40853 done
1e9e8aba
DE
40854 if [ ${D}found -eq 0 ]; then
40855 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40856 fi
40857 ;;
40858 *)
40859 newInputFiles="${D}{newInputFiles} ${D}file"
40860 ;;
40861 esac
40862done
40863inputFiles="${D}newInputFiles"
40864
40865# Output filename(s).
40866do_backup=0;
1e9e8aba 40867if [ -z ${D}outFile ]; then
473276a9
VS
40868 do_backup=1;
40869 set outFile ${D}inputFiles; outFile=${D}2
40870fi
40871
40872# If it is an archive, remove the '!' and the '_%' suffixes
40873case ${D}outFile in
40874*_%!)
40875 outFile=\`basnam ${D}outFile _%!\`
40876 ;;
40877*)
40878 ;;
40879esac
40880case ${D}outFile in
40881*.dll)
40882 outFile=\`basnam ${D}outFile .dll\`
40883 ;;
40884*.DLL)
40885 outFile=\`basnam ${D}outFile .DLL\`
40886 ;;
40887*.o)
40888 outFile=\`basnam ${D}outFile .o\`
40889 ;;
40890*.obj)
40891 outFile=\`basnam ${D}outFile .obj\`
40892 ;;
40893*.a)
40894 outFile=\`basnam ${D}outFile .a\`
40895 ;;
40896*.lib)
40897 outFile=\`basnam ${D}outFile .lib\`
40898 ;;
40899*)
40900 ;;
40901esac
40902case ${D}outimpFile in
40903*.a)
40904 outimpFile=\`basnam ${D}outimpFile .a\`
40905 ;;
40906*.lib)
40907 outimpFile=\`basnam ${D}outimpFile .lib\`
40908 ;;
40909*)
40910 ;;
40911esac
1e9e8aba 40912if [ -z ${D}outimpFile ]; then
473276a9
VS
40913 outimpFile=${D}outFile
40914fi
40915defFile="${D}{outFile}.def"
40916arcFile="${D}{outimpFile}.a"
40917arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40918
40919#create ${D}dllFile as something matching 8.3 restrictions,
40920if [ -z ${D}renameScript ] ; then
40921 dllFile="${D}outFile"
40922else
40923 dllFile=\`${D}renameScript ${D}outimpFile\`
40924fi
473276a9 40925
1e9e8aba
DE
40926if [ ${D}do_backup -ne 0 ] ; then
40927 if [ -f ${D}arcFile ] ; then
473276a9
VS
40928 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40929 fi
1e9e8aba 40930 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40931 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40932 fi
40933fi
40934
40935# Extract public symbols from all the object files.
40936tmpdefFile=${D}{defFile}_%
40937rm -f ${D}tmpdefFile
40938for file in ${D}inputFiles ; do
40939 case ${D}file in
40940 *!)
40941 ;;
40942 *)
40943 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40944 ;;
40945 esac
40946done
40947
40948# Create the def file.
40949rm -f ${D}defFile
40950echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40951dllFile="${D}{dllFile}.dll"
40952if [ ! -z ${D}description ]; then
1e9e8aba 40953 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40954fi
40955echo "EXPORTS" >> ${D}defFile
40956
40957doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40958grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40959
40960# Checks if the export is ok or not.
40961for word in ${D}exclude_symbols; do
40962 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40963 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40964done
40965
40966
1e9e8aba
DE
40967if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40968 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40969 sed '
40970 N
40971 : loop
1e9e8aba 40972 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40973 t loop
40974 ' > ${D}{tmpdefFile}%
40975 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40976else
40977 rm -f ${D}{tmpdefFile}%
40978fi
40979cat ${D}tmpdefFile >> ${D}defFile
40980rm -f ${D}tmpdefFile
40981
40982# Do linking, create implib, and apply lxlite.
40983gccCmdl="";
40984for file in ${D}inputFiles ; do
40985 case ${D}file in
40986 *!)
40987 ;;
40988 *)
40989 gccCmdl="${D}gccCmdl ${D}file"
40990 ;;
40991 esac
40992done
40993doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40994touch "${D}{outFile}.dll"
40995
40996doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40997if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40998 add_flags="";
1e9e8aba 40999 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41000 add_flags="-ynd"
41001 fi
41002 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41003fi
41004doCommand "emxomf -s -l ${D}arcFile"
41005
41006# Successful exit.
41007CleanUp 1
41008exit 0
41009EOF
41010
41011 chmod +x dllar.sh
a848cd7e
SC
41012 ;;
41013
1e9e8aba 41014 powerpc-apple-macos* | \
a848cd7e
SC
41015 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41016 *-*-sunos4* | \
41017 *-*-osf* | \
41018 *-*-dgux5* | \
41019 *-*-sysv5* )
41020 ;;
41021
41022 *)
41023 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41024echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41025 { (exit 1); exit 1; }; }
41026 esac
41027
2057db16
VS
41028 if test "x$PIC_FLAG" != "x" ; then
41029 PIC_FLAG="$PIC_FLAG -DPIC"
41030 fi
41031
a848cd7e
SC
41032 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
41033 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
41034 fi
41035 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
41036 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
41037 fi
41038
41039
41040
41041
41042
41043
41044
41045
41046 USE_SOVERSION=0
41047 USE_SOVERLINUX=0
41048 USE_SOVERSOLARIS=0
41049 USE_SOSYMLINKS=0
41050 USE_MACVERSION=0
41051 SONAME_FLAG=
41052
41053 case "${BAKEFILE_HOST}" in
b1d22ded 41054 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41055 SONAME_FLAG="-Wl,-soname,"
41056 USE_SOVERSION=1
41057 USE_SOVERLINUX=1
41058 USE_SOSYMLINKS=1
41059 ;;
41060
a848cd7e
SC
41061 *-*-solaris2* )
41062 SONAME_FLAG="-h "
41063 USE_SOVERSION=1
41064 USE_SOVERSOLARIS=1
41065 USE_SOSYMLINKS=1
41066 ;;
41067
41068 *-*-darwin* )
41069 USE_MACVERSION=1
41070 USE_SOVERSION=1
41071 USE_SOSYMLINKS=1
41072 ;;
41073 esac
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41084echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41085 DEPS_TRACKING=0
41086
41087 if test "x$GCC" = "xyes"; then
41088 DEPSMODE=gcc
41089 DEPS_TRACKING=1
41090 case "${BAKEFILE_HOST}" in
41091 powerpc-*-darwin* )
41092 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41093 ;;
41094 * )
41095 DEPSFLAG_GCC="-MMD"
41096 ;;
41097 esac
41098 echo "$as_me:$LINENO: result: gcc" >&5
41099echo "${ECHO_T}gcc" >&6
b1d22ded 41100 elif test "x$MWCC" = "xyes"; then
81f90336 41101 DEPSMODE=mwcc
b1d22ded 41102 DEPS_TRACKING=1
81f90336 41103 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41104 echo "$as_me:$LINENO: result: mwcc" >&5
41105echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41106 else
41107 echo "$as_me:$LINENO: result: none" >&5
41108echo "${ECHO_T}none" >&6
41109 fi
41110
41111 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41112
41113D='$'
41114cat <<EOF >bk-deps
a848cd7e
SC
41115#!/bin/sh
41116
41117# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41118# script. It is used to track C/C++ files dependencies in portable way.
41119#
41120# Permission is given to use this file in any way.
41121
473276a9 41122DEPSMODE=${DEPSMODE}
a848cd7e 41123DEPSDIR=.deps
473276a9 41124DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41125DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41126
473276a9 41127mkdir -p ${D}DEPSDIR
a848cd7e 41128
473276a9
VS
41129if test ${D}DEPSMODE = gcc ; then
41130 ${D}* ${D}{DEPSFLAG_GCC}
41131 status=${D}?
41132 if test ${D}{status} != 0 ; then
41133 exit ${D}{status}
a848cd7e
SC
41134 fi
41135 # move created file to the location we want it in:
473276a9
VS
41136 while test ${D}# -gt 0; do
41137 case "${D}1" in
a848cd7e
SC
41138 -o )
41139 shift
473276a9 41140 objfile=${D}1
a848cd7e
SC
41141 ;;
41142 -* )
41143 ;;
41144 * )
473276a9 41145 srcfile=${D}1
a848cd7e
SC
41146 ;;
41147 esac
41148 shift
41149 done
1e9e8aba
DE
41150 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41151 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41152 if test -f ${D}depfile ; then
41153 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41154 rm -f ${D}depfile
a848cd7e 41155 else
1e9e8aba 41156 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41157 if test -f ${D}depfile ; then
41158 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41159 rm -f ${D}depfile
a848cd7e
SC
41160 fi
41161 fi
41162 exit 0
81f90336
MW
41163elif test ${D}DEPSMODE = mwcc ; then
41164 ${D}*
41165 status=${D}?
41166 if test ${D}{status} != 0 ; then
41167 exit ${D}{status}
41168 fi
41169 # Run mwcc again with -MM and redirect into the dep file we want
41170 # NOTE: We can't use shift here because we need ${D}* to be valid
41171 prevarg=
41172 for arg in ${D}* ; do
41173 if test "${D}prevarg" = "-o"; then
41174 objfile=${D}arg
41175 else
41176 case "${D}arg" in
41177 -* )
41178 ;;
41179 * )
41180 srcfile=${D}arg
41181 ;;
41182 esac
41183 fi
41184 prevarg="${D}arg"
41185 done
41186 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
41187 exit 0
a848cd7e 41188else
473276a9
VS
41189 ${D}*
41190 exit ${D}?
a848cd7e
SC
41191fi
41192EOF
473276a9 41193
a848cd7e
SC
41194 chmod +x bk-deps
41195 fi
41196
41197
41198
41199
41200 RESCOMP=
41201 SETFILE=
41202
41203 case ${BAKEFILE_HOST} in
41204 *-*-cygwin* | *-*-mingw32* )
41205 if test "$build" != "$host" ; then
41206 RESCOMP=$host_alias-windres
41207 else
41208 # Extract the first word of "windres", so it can be a program name with args.
41209set dummy windres; ac_word=$2
41210echo "$as_me:$LINENO: checking for $ac_word" >&5
41211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41212if test "${ac_cv_prog_RESCOMP+set}" = set; then
41213 echo $ECHO_N "(cached) $ECHO_C" >&6
41214else
41215 if test -n "$RESCOMP"; then
41216 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41217else
41218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41219for as_dir in $PATH
41220do
41221 IFS=$as_save_IFS
41222 test -z "$as_dir" && as_dir=.
41223 for ac_exec_ext in '' $ac_executable_extensions; do
41224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41225 ac_cv_prog_RESCOMP="windres"
41226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41227 break 2
41228 fi
41229done
41230done
41231
41232 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
41233fi
41234fi
41235RESCOMP=$ac_cv_prog_RESCOMP
41236if test -n "$RESCOMP"; then
41237 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41238echo "${ECHO_T}$RESCOMP" >&6
41239else
41240 echo "$as_me:$LINENO: result: no" >&5
41241echo "${ECHO_T}no" >&6
41242fi
41243
41244 fi
41245 ;;
41246
1e9e8aba 41247 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
41248 # Extract the first word of "Rez", so it can be a program name with args.
41249set dummy Rez; ac_word=$2
41250echo "$as_me:$LINENO: checking for $ac_word" >&5
41251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41252if test "${ac_cv_prog_RESCOMP+set}" = set; then
41253 echo $ECHO_N "(cached) $ECHO_C" >&6
41254else
41255 if test -n "$RESCOMP"; then
41256 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41257else
41258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41259for as_dir in $PATH
41260do
41261 IFS=$as_save_IFS
41262 test -z "$as_dir" && as_dir=.
41263 for ac_exec_ext in '' $ac_executable_extensions; do
41264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41265 ac_cv_prog_RESCOMP="Rez"
41266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41267 break 2
41268 fi
41269done
41270done
41271
41272 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
41273fi
41274fi
41275RESCOMP=$ac_cv_prog_RESCOMP
41276if test -n "$RESCOMP"; then
41277 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41278echo "${ECHO_T}$RESCOMP" >&6
41279else
41280 echo "$as_me:$LINENO: result: no" >&5
41281echo "${ECHO_T}no" >&6
41282fi
41283
41284 # Extract the first word of "SetFile", so it can be a program name with args.
41285set dummy SetFile; ac_word=$2
41286echo "$as_me:$LINENO: checking for $ac_word" >&5
41287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41288if test "${ac_cv_prog_SETFILE+set}" = set; then
41289 echo $ECHO_N "(cached) $ECHO_C" >&6
41290else
41291 if test -n "$SETFILE"; then
41292 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
41293else
41294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41295for as_dir in $PATH
41296do
41297 IFS=$as_save_IFS
41298 test -z "$as_dir" && as_dir=.
41299 for ac_exec_ext in '' $ac_executable_extensions; do
41300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41301 ac_cv_prog_SETFILE="SetFile"
41302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41303 break 2
41304 fi
41305done
41306done
41307
41308 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
41309fi
41310fi
41311SETFILE=$ac_cv_prog_SETFILE
41312if test -n "$SETFILE"; then
41313 echo "$as_me:$LINENO: result: $SETFILE" >&5
41314echo "${ECHO_T}$SETFILE" >&6
41315else
41316 echo "$as_me:$LINENO: result: no" >&5
41317echo "${ECHO_T}no" >&6
41318fi
41319
41320 ;;
41321 esac
41322
41323
41324
41325
41326
81f90336 41327 BAKEFILE_BAKEFILE_M4_VERSION="0.1.6"
a848cd7e 41328
dcc1b6ad 41329
81f90336 41330BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.6"
a848cd7e 41331
646b6ec1 41332
74b84332 41333
a848cd7e
SC
41334 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
41335if test "${enable_precomp_headers+set}" = set; then
41336 enableval="$enable_precomp_headers"
41337 bk_use_pch="$enableval"
41338fi;
41339
41340 GCC_PCH=0
41341
41342 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
41343 if test "x$GCC" = "xyes"; then
41344 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
41345echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
41346 cat >conftest.$ac_ext <<_ACEOF
41347/* confdefs.h. */
41348_ACEOF
41349cat confdefs.h >>conftest.$ac_ext
41350cat >>conftest.$ac_ext <<_ACEOF
41351/* end confdefs.h. */
41352
41353int
41354main ()
41355{
41356
41357 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
41358 #error "no pch support"
41359 #endif
41360 #if (__GNUC__ < 3)
41361 #error "no pch support"
41362 #endif
41363 #if (__GNUC__ == 3) && \
41364 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
41365 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
41366 #error "no pch support"
41367 #endif
41368
41369 ;
41370 return 0;
41371}
41372_ACEOF
41373rm -f conftest.$ac_objext
41374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41375 (eval $ac_compile) 2>conftest.er1
a848cd7e 41376 ac_status=$?
ac1cb8d3
VS
41377 grep -v '^ *+' conftest.er1 >conftest.err
41378 rm -f conftest.er1
41379 cat conftest.err >&5
a848cd7e
SC
41380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41381 (exit $ac_status); } &&
89be85c2
VS
41382 { ac_try='test -z "$ac_c_werror_flag"
41383 || test ! -s conftest.err'
ac1cb8d3
VS
41384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41385 (eval $ac_try) 2>&5
41386 ac_status=$?
41387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388 (exit $ac_status); }; } &&
41389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41391 (eval $ac_try) 2>&5
41392 ac_status=$?
41393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41394 (exit $ac_status); }; }; then
41395
41396 echo "$as_me:$LINENO: result: yes" >&5
41397echo "${ECHO_T}yes" >&6
a848cd7e
SC
41398 GCC_PCH=1
41399
41400else
41401 echo "$as_me: failed program was:" >&5
41402sed 's/^/| /' conftest.$ac_ext >&5
41403
41404
41405 echo "$as_me:$LINENO: result: no" >&5
41406echo "${ECHO_T}no" >&6
41407
41408fi
ac1cb8d3 41409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41410 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
41411
41412D='$'
41413cat <<EOF >bk-make-pch
a848cd7e
SC
41414#!/bin/sh
41415
41416# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41417# script. It is used to generated precompiled headers.
41418#
41419# Permission is given to use this file in any way.
41420
1e9e8aba
DE
41421outfile="${D}{1}"
41422header="${D}{2}"
a848cd7e
SC
41423shift
41424shift
41425
41426compiler=
41427headerfile=
1e9e8aba
DE
41428while test ${D}{#} -gt 0; do
41429 case "${D}{1}" in
a848cd7e 41430 -I* )
1e9e8aba
DE
41431 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
41432 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
41433 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
41434 fi
41435 ;;
41436 esac
1e9e8aba 41437 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
41438 shift
41439done
41440
1e9e8aba
DE
41441if test "x${D}{headerfile}" = "x" ; then
41442 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 41443else
1e9e8aba
DE
41444 if test -f ${D}{outfile} ; then
41445 rm -f ${D}{outfile}
a848cd7e 41446 else
1e9e8aba 41447 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 41448 fi
1e9e8aba 41449 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
41450 mkdir -p .deps
41451 # can do this because gcc is >= 3.4:
1e9e8aba
DE
41452 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
41453 exit ${D}{?}
a848cd7e
SC
41454fi
41455EOF
1e9e8aba 41456
a848cd7e
SC
41457 chmod +x bk-make-pch
41458 fi
41459 fi
41460 fi
41461
41462
41463
a848cd7e
SC
41464 COND_BUILD_DEBUG="#"
41465 if test "x$BUILD" = "xdebug" ; then
41466 COND_BUILD_DEBUG=""
41467 fi
41468
41469 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41470 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41471 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41472 fi
41473
41474 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41475 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41476 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41477 fi
41478
41479 COND_BUILD_DEBUG_UNICODE_0="#"
41480 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41481 COND_BUILD_DEBUG_UNICODE_0=""
41482 fi
41483
41484 COND_BUILD_DEBUG_UNICODE_1="#"
41485 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41486 COND_BUILD_DEBUG_UNICODE_1=""
41487 fi
41488
41489 COND_BUILD_RELEASE="#"
41490 if test "x$BUILD" = "xrelease" ; then
41491 COND_BUILD_RELEASE=""
41492 fi
41493
41494 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41495 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41496 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41497 fi
41498
41499 COND_BUILD_RELEASE_UNICODE_0="#"
41500 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41501 COND_BUILD_RELEASE_UNICODE_0=""
41502 fi
41503
41504 COND_BUILD_RELEASE_UNICODE_1="#"
41505 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41506 COND_BUILD_RELEASE_UNICODE_1=""
41507 fi
41508
41509 COND_DEBUG_FLAG_1="#"
41510 if test "x$DEBUG_FLAG" = "x1" ; then
41511 COND_DEBUG_FLAG_1=""
41512 fi
41513
41514 COND_DEBUG_INFO_0="#"
41515 if test "x$DEBUG_INFO" = "x0" ; then
41516 COND_DEBUG_INFO_0=""
41517 fi
41518
41519 COND_DEBUG_INFO_1="#"
41520 if test "x$DEBUG_INFO" = "x1" ; then
41521 COND_DEBUG_INFO_1=""
41522 fi
41523
41524 COND_DEPS_TRACKING_0="#"
41525 if test "x$DEPS_TRACKING" = "x0" ; then
41526 COND_DEPS_TRACKING_0=""
41527 fi
41528
41529 COND_DEPS_TRACKING_1="#"
41530 if test "x$DEPS_TRACKING" = "x1" ; then
41531 COND_DEPS_TRACKING_1=""
41532 fi
41533
41534 COND_GCC_PCH_1="#"
41535 if test "x$GCC_PCH" = "x1" ; then
41536 COND_GCC_PCH_1=""
41537 fi
41538
41539 COND_MONOLITHIC_0="#"
41540 if test "x$MONOLITHIC" = "x0" ; then
41541 COND_MONOLITHIC_0=""
41542 fi
41543
41544 COND_MONOLITHIC_0_SHARED_0="#"
41545 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41546 COND_MONOLITHIC_0_SHARED_0=""
41547 fi
41548
41549 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41550 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41551 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41552 fi
41553
90970d69
DE
41554 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
41555 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41556 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
41557 fi
41558
a848cd7e
SC
41559 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41560 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41561 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41562 fi
41563
a848cd7e
SC
41564 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41565 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41566 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41567 fi
41568
ceec2216
RL
41569 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41570 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41571 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41572 fi
41573
a848cd7e
SC
41574 COND_MONOLITHIC_0_SHARED_1="#"
41575 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41576 COND_MONOLITHIC_0_SHARED_1=""
41577 fi
41578
41579 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41580 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41581 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41582 fi
41583
90970d69
DE
41584 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41585 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41586 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41587 fi
41588
a848cd7e
SC
41589 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41590 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41591 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41592 fi
41593
a848cd7e
SC
41594 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41595 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41596 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41597 fi
41598
ceec2216
RL
41599 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41600 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41601 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41602 fi
41603
a848cd7e
SC
41604 COND_MONOLITHIC_0_USE_ODBC_1="#"
41605 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41606 COND_MONOLITHIC_0_USE_ODBC_1=""
41607 fi
41608
41609 COND_MONOLITHIC_1="#"
41610 if test "x$MONOLITHIC" = "x1" ; then
41611 COND_MONOLITHIC_1=""
41612 fi
41613
41614 COND_MONOLITHIC_1_SHARED_0="#"
41615 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41616 COND_MONOLITHIC_1_SHARED_0=""
41617 fi
41618
41619 COND_MONOLITHIC_1_SHARED_1="#"
41620 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41621 COND_MONOLITHIC_1_SHARED_1=""
41622 fi
41623
41624 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41625 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41626 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41627 fi
41628
41629 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41630 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41631 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41632 fi
41633
41634 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41635 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41636 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41637 fi
41638
41639 COND_PLATFORM_MACOSX_1="#"
41640 if test "x$PLATFORM_MACOSX" = "x1" ; then
41641 COND_PLATFORM_MACOSX_1=""
41642 fi
41643
a30f955f
VS
41644 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41645 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41646 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41647 fi
41648
a848cd7e
SC
41649 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41650 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41651 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41652 fi
41653
41654 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41655 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41656 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41657 fi
41658
41659 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41660 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41661 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41662 fi
41663
fc480dc1
DE
41664 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41665 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41666 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41667 fi
41668
1e9e8aba
DE
41669 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41670 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41671 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41672 fi
41673
ebee3cd0
VS
41674 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41675 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41676 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41677 fi
41678
41679 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41680 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41681 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41682 fi
41683
a848cd7e
SC
41684 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41685 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41686 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41687 fi
41688
41689 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41690 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41691 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41692 fi
41693
b48a2016
DE
41694 COND_PLATFORM_MACOS_1="#"
41695 if test "x$PLATFORM_MACOS" = "x1" ; then
41696 COND_PLATFORM_MACOS_1=""
41697 fi
41698
a848cd7e
SC
41699 COND_PLATFORM_MAC_1="#"
41700 if test "x$PLATFORM_MAC" = "x1" ; then
41701 COND_PLATFORM_MAC_1=""
41702 fi
41703
41704 COND_PLATFORM_OS2_1="#"
41705 if test "x$PLATFORM_OS2" = "x1" ; then
41706 COND_PLATFORM_OS2_1=""
41707 fi
41708
41709 COND_PLATFORM_UNIX_0="#"
41710 if test "x$PLATFORM_UNIX" = "x0" ; then
41711 COND_PLATFORM_UNIX_0=""
41712 fi
41713
41714 COND_PLATFORM_UNIX_1="#"
41715 if test "x$PLATFORM_UNIX" = "x1" ; then
41716 COND_PLATFORM_UNIX_1=""
41717 fi
41718
41719 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41720 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41721 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41722 fi
41723
41724 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41725 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41726 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41727 fi
41728
41729 COND_PLATFORM_WIN32_0="#"
41730 if test "x$PLATFORM_WIN32" = "x0" ; then
41731 COND_PLATFORM_WIN32_0=""
41732 fi
41733
41734 COND_PLATFORM_WIN32_1="#"
41735 if test "x$PLATFORM_WIN32" = "x1" ; then
41736 COND_PLATFORM_WIN32_1=""
41737 fi
41738
41739 COND_SHARED_0="#"
41740 if test "x$SHARED" = "x0" ; then
41741 COND_SHARED_0=""
41742 fi
41743
ceec2216
RL
41744 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41745 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41746 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41747 fi
41748
41749 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41750 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41751 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41752 fi
41753
41754 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41755 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41756 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41757 fi
41758
a848cd7e
SC
41759 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41760 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41761 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41762 fi
41763
41764 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41765 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41766 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41767 fi
41768
41769 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41770 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41771 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41772 fi
41773
41774 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41775 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41776 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41777 fi
41778
41779 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41780 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41781 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41782 fi
41783
41784 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41785 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41786 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41787 fi
41788
41789 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41790 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41791 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41792 fi
41793
41794 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41795 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41796 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41797 fi
41798
41799 COND_SHARED_1="#"
41800 if test "x$SHARED" = "x1" ; then
41801 COND_SHARED_1=""
41802 fi
41803
41804 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41805 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41806 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41807 fi
41808
a30f955f
VS
41809 COND_TOOLKIT_="#"
41810 if test "x$TOOLKIT" = "x" ; then
41811 COND_TOOLKIT_=""
41812 fi
41813
a848cd7e
SC
41814 COND_TOOLKIT_COCOA="#"
41815 if test "x$TOOLKIT" = "xCOCOA" ; then
41816 COND_TOOLKIT_COCOA=""
41817 fi
41818
a49baeab
DE
41819 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41820 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41821 COND_TOOLKIT_COCOA_USE_GUI_1=""
41822 fi
41823
a848cd7e
SC
41824 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41825 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41826 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41827 fi
41828
41829 COND_TOOLKIT_GTK="#"
41830 if test "x$TOOLKIT" = "xGTK" ; then
41831 COND_TOOLKIT_GTK=""
41832 fi
41833
41834 COND_TOOLKIT_GTK_USE_GUI_1="#"
41835 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41836 COND_TOOLKIT_GTK_USE_GUI_1=""
41837 fi
41838
41839 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41840 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41841 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41842 fi
41843
41844 COND_TOOLKIT_MAC="#"
41845 if test "x$TOOLKIT" = "xMAC" ; then
41846 COND_TOOLKIT_MAC=""
41847 fi
41848
41849 COND_TOOLKIT_MAC_USE_GUI_1="#"
41850 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41851 COND_TOOLKIT_MAC_USE_GUI_1=""
41852 fi
41853
41854 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41855 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41856 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41857 fi
41858
41859 COND_TOOLKIT_MGL="#"
41860 if test "x$TOOLKIT" = "xMGL" ; then
41861 COND_TOOLKIT_MGL=""
41862 fi
41863
41864 COND_TOOLKIT_MGL_USE_GUI_1="#"
41865 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41866 COND_TOOLKIT_MGL_USE_GUI_1=""
41867 fi
41868
41869 COND_TOOLKIT_MOTIF="#"
41870 if test "x$TOOLKIT" = "xMOTIF" ; then
41871 COND_TOOLKIT_MOTIF=""
41872 fi
41873
41874 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41875 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41876 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41877 fi
41878
41879 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41880 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41881 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41882 fi
41883
41884 COND_TOOLKIT_MSW="#"
41885 if test "x$TOOLKIT" = "xMSW" ; then
41886 COND_TOOLKIT_MSW=""
41887 fi
41888
41889 COND_TOOLKIT_MSW_USE_GUI_1="#"
41890 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41891 COND_TOOLKIT_MSW_USE_GUI_1=""
41892 fi
41893
41894 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41895 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41896 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41897 fi
41898
41899 COND_TOOLKIT_PM="#"
41900 if test "x$TOOLKIT" = "xPM" ; then
41901 COND_TOOLKIT_PM=""
41902 fi
41903
41904 COND_TOOLKIT_PM_USE_GUI_1="#"
41905 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41906 COND_TOOLKIT_PM_USE_GUI_1=""
41907 fi
41908
41909 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41910 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41911 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41912 fi
41913
3fd9c298
DE
41914 COND_TOOLKIT_WINCE="#"
41915 if test "x$TOOLKIT" = "xWINCE" ; then
41916 COND_TOOLKIT_WINCE=""
41917 fi
41918
41919 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41920 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41921 COND_TOOLKIT_WINCE_USE_GUI_1=""
41922 fi
41923
41924 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41925 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41926 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41927 fi
41928
a848cd7e
SC
41929 COND_TOOLKIT_X11="#"
41930 if test "x$TOOLKIT" = "xX11" ; then
41931 COND_TOOLKIT_X11=""
41932 fi
41933
41934 COND_TOOLKIT_X11_USE_GUI_1="#"
41935 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41936 COND_TOOLKIT_X11_USE_GUI_1=""
41937 fi
41938
41939 COND_UNICODE_1="#"
41940 if test "x$UNICODE" = "x1" ; then
41941 COND_UNICODE_1=""
41942 fi
41943
41944 COND_USE_EXCEPTIONS_0="#"
41945 if test "x$USE_EXCEPTIONS" = "x0" ; then
41946 COND_USE_EXCEPTIONS_0=""
41947 fi
41948
41949 COND_USE_EXCEPTIONS_1="#"
41950 if test "x$USE_EXCEPTIONS" = "x1" ; then
41951 COND_USE_EXCEPTIONS_1=""
41952 fi
41953
41954 COND_USE_GUI_0="#"
41955 if test "x$USE_GUI" = "x0" ; then
41956 COND_USE_GUI_0=""
41957 fi
41958
41959 COND_USE_GUI_1="#"
41960 if test "x$USE_GUI" = "x1" ; then
41961 COND_USE_GUI_1=""
41962 fi
41963
41964 COND_USE_GUI_1_WXUNIV_0="#"
41965 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41966 COND_USE_GUI_1_WXUNIV_0=""
41967 fi
41968
41969 COND_USE_GUI_1_WXUNIV_1="#"
41970 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41971 COND_USE_GUI_1_WXUNIV_1=""
41972 fi
41973
41974 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41975 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41976 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41977 fi
41978
41979 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41980 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41981 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41982 fi
41983
41984 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41985 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41986 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41987 fi
41988
ceec2216
RL
41989 COND_USE_ODBC_1="#"
41990 if test "x$USE_ODBC" = "x1" ; then
41991 COND_USE_ODBC_1=""
41992 fi
41993
ffa0583f
RL
41994 COND_USE_OPENGL_1="#"
41995 if test "x$USE_OPENGL" = "x1" ; then
41996 COND_USE_OPENGL_1=""
41997 fi
41998
a848cd7e
SC
41999 COND_USE_PLUGINS_0="#"
42000 if test "x$USE_PLUGINS" = "x0" ; then
42001 COND_USE_PLUGINS_0=""
42002 fi
42003
42004 COND_USE_SOSYMLINKS_1="#"
42005 if test "x$USE_SOSYMLINKS" = "x1" ; then
42006 COND_USE_SOSYMLINKS_1=""
42007 fi
42008
42009 COND_USE_SOVERLINUX_1="#"
42010 if test "x$USE_SOVERLINUX" = "x1" ; then
42011 COND_USE_SOVERLINUX_1=""
42012 fi
42013
42014 COND_USE_SOVERSION_0="#"
42015 if test "x$USE_SOVERSION" = "x0" ; then
42016 COND_USE_SOVERSION_0=""
42017 fi
42018
42019 COND_USE_SOVERSOLARIS_1="#"
42020 if test "x$USE_SOVERSOLARIS" = "x1" ; then
42021 COND_USE_SOVERSOLARIS_1=""
42022 fi
42023
a13a7f89
RL
42024 COND_USE_XRC_1="#"
42025 if test "x$USE_XRC" = "x1" ; then
42026 COND_USE_XRC_1=""
42027 fi
42028
a848cd7e
SC
42029 COND_WITH_PLUGIN_SDL_1="#"
42030 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
42031 COND_WITH_PLUGIN_SDL_1=""
42032 fi
42033
1e6eb025
VZ
42034 COND_WXUNIV_0="#"
42035 if test "x$WXUNIV" = "x0" ; then
42036 COND_WXUNIV_0=""
42037 fi
42038
a848cd7e
SC
42039 COND_WXUNIV_1="#"
42040 if test "x$WXUNIV" = "x1" ; then
42041 COND_WXUNIV_1=""
42042 fi
42043
42044 COND_WXUSE_EXPAT_BUILTIN="#"
42045 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
42046 COND_WXUSE_EXPAT_BUILTIN=""
42047 fi
42048
42049 COND_WXUSE_LIBJPEG_BUILTIN="#"
42050 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42051 COND_WXUSE_LIBJPEG_BUILTIN=""
42052 fi
42053
42054 COND_WXUSE_LIBPNG_BUILTIN="#"
42055 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42056 COND_WXUSE_LIBPNG_BUILTIN=""
42057 fi
42058
42059 COND_WXUSE_LIBTIFF_BUILTIN="#"
42060 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42061 COND_WXUSE_LIBTIFF_BUILTIN=""
42062 fi
42063
42064 COND_WXUSE_ODBC_BUILTIN="#"
42065 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42066 COND_WXUSE_ODBC_BUILTIN=""
42067 fi
42068
42069 COND_WXUSE_REGEX_BUILTIN="#"
42070 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42071 COND_WXUSE_REGEX_BUILTIN=""
42072 fi
42073
42074 COND_WXUSE_ZLIB_BUILTIN="#"
42075 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42076 COND_WXUSE_ZLIB_BUILTIN=""
42077 fi
42078
42079
42080
2057db16
VS
42081 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42082 { { 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
42083echo "$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;}
42084 { (exit 1); exit 1; }; }
42085 fi
42086
a848cd7e 42087
ceec2216
RL
42088if test "$wxUSE_SHARED" = "yes"; then
42089
42090 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42091 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42092
5b674b9d
DE
42093 case "${host}" in
42094 *-pc-os2_emx | *-pc-os2-emx )
42095 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42096 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42097 cp -p ${srcdir}/src/os2/dllnames.sh .
42098 cp -p ${srcdir}/src/os2/dllar.sh .
42099 ;;
42100 esac
ceec2216
RL
42101else
42102
42103 EXE_LINKER="$CXX -o"
42104
42105fi
a848cd7e 42106
74b84332 42107GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42108PCH_FLAGS=""
42109if test $GCC_PCH = 1 ; then
42110 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42111 PCH_FLAGS="-DWX_PRECOMP"
42112else
a848cd7e
SC
42113 case "${host}" in
42114 powerpc-*-darwin* )
74b84332 42115 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42116 ;;
bea8e651 42117 *-*-mingw32* )
1f344abf
VS
42118 if test "$wxUSE_STL" = "yes" -o \
42119 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42120 "$wxUSE_NO_RTTI" != "yes"; then
42121 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42122echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42123 cat >conftest.$ac_ext <<_ACEOF
42124/* confdefs.h. */
42125_ACEOF
42126cat confdefs.h >>conftest.$ac_ext
42127cat >>conftest.$ac_ext <<_ACEOF
42128/* end confdefs.h. */
42129
3314e67b
RR
42130int
42131main ()
42132{
42133#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42134 #error "Not GCC 3.2 or greater"
42135 #endif
42136
42137 ;
42138 return 0;
42139}
42140_ACEOF
42141rm -f conftest.$ac_objext
42142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42143 (eval $ac_compile) 2>conftest.er1
42144 ac_status=$?
42145 grep -v '^ *+' conftest.er1 >conftest.err
42146 rm -f conftest.er1
42147 cat conftest.err >&5
42148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42149 (exit $ac_status); } &&
89be85c2
VS
42150 { ac_try='test -z "$ac_c_werror_flag"
42151 || test ! -s conftest.err'
3314e67b
RR
42152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42153 (eval $ac_try) 2>&5
42154 ac_status=$?
42155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42156 (exit $ac_status); }; } &&
42157 { ac_try='test -s conftest.$ac_objext'
42158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42159 (eval $ac_try) 2>&5
42160 ac_status=$?
42161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162 (exit $ac_status); }; }; then
42163 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42164 echo "$as_me:$LINENO: result: yes" >&5
42165echo "${ECHO_T}yes" >&6
42166else
42167 echo "$as_me: failed program was:" >&5
42168sed 's/^/| /' conftest.$ac_ext >&5
42169
42170echo "$as_me:$LINENO: result: no" >&5
42171echo "${ECHO_T}no" >&6
42172fi
42173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42174 fi
42175 ;;
42176 *-pc-os2_emx | *-pc-os2-emx )
42177 if test "$wxUSE_STL" = "yes"; then
42178 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
42179echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
42180 cat >conftest.$ac_ext <<_ACEOF
42181/* confdefs.h. */
42182_ACEOF
42183cat confdefs.h >>conftest.$ac_ext
42184cat >>conftest.$ac_ext <<_ACEOF
42185/* end confdefs.h. */
42186
bea8e651
MB
42187int
42188main ()
42189{
1f344abf 42190#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42191 #error "Not GCC 3.2 or greater"
42192 #endif
42193
42194 ;
42195 return 0;
42196}
42197_ACEOF
42198rm -f conftest.$ac_objext
42199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42200 (eval $ac_compile) 2>conftest.er1
bea8e651 42201 ac_status=$?
ac1cb8d3
VS
42202 grep -v '^ *+' conftest.er1 >conftest.err
42203 rm -f conftest.er1
42204 cat conftest.err >&5
bea8e651
MB
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); } &&
89be85c2
VS
42207 { ac_try='test -z "$ac_c_werror_flag"
42208 || test ! -s conftest.err'
ac1cb8d3
VS
42209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42210 (eval $ac_try) 2>&5
42211 ac_status=$?
42212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42213 (exit $ac_status); }; } &&
42214 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
42215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42216 (eval $ac_try) 2>&5
42217 ac_status=$?
42218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42219 (exit $ac_status); }; }; then
74b84332 42220 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
42221 echo "$as_me:$LINENO: result: yes" >&5
42222echo "${ECHO_T}yes" >&6
42223else
42224 echo "$as_me: failed program was:" >&5
42225sed 's/^/| /' conftest.$ac_ext >&5
42226
42227echo "$as_me:$LINENO: result: no" >&5
42228echo "${ECHO_T}no" >&6
42229fi
ac1cb8d3 42230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
42231 fi
42232 ;;
a848cd7e
SC
42233 esac
42234fi
d2083416 42235CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
42236
42237
42238SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42239
42240
42241
42242
42243
42244
42245
42246
42247
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258
42259
42260
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
42276
42277
42278
42279
42280
a848cd7e
SC
42281
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293
42294
42295
42296
42297
42298
74b84332 42299
a848cd7e
SC
42300
42301
42302echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42303echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42304set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42305if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42306 echo $ECHO_N "(cached) $ECHO_C" >&6
42307else
42308 cat >conftest.make <<\_ACEOF
42309all:
42310 @echo 'ac_maketemp="$(MAKE)"'
42311_ACEOF
42312# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42313eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42314if test -n "$ac_maketemp"; then
42315 eval ac_cv_prog_make_${ac_make}_set=yes
42316else
42317 eval ac_cv_prog_make_${ac_make}_set=no
42318fi
42319rm -f conftest.make
42320fi
42321if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42322 echo "$as_me:$LINENO: result: yes" >&5
42323echo "${ECHO_T}yes" >&6
42324 SET_MAKE=
42325else
42326 echo "$as_me:$LINENO: result: no" >&5
42327echo "${ECHO_T}no" >&6
42328 SET_MAKE="MAKE=${MAKE-make}"
42329fi
42330
42331
a848cd7e 42332
ceec2216
RL
42333 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
42334
a848cd7e 42335
ceec2216 42336 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 42337
a848cd7e 42338
ceec2216 42339 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 42340
ceec2216
RL
42341
42342 ac_config_files="$ac_config_files version-script Makefile"
42343
42344
42345 ac_config_commands="$ac_config_commands wx-config
42346 "
a848cd7e
SC
42347
42348
9103d280
RL
42349
42350
a848cd7e
SC
42351if test "$wxUSE_GUI" = "yes"; then
42352 SUBDIRS="samples demos utils contrib"
42353else SUBDIRS="samples utils"
42354fi
42355
42356
42357
42358# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42359if test "${with_cppunit_prefix+set}" = set; then
42360 withval="$with_cppunit_prefix"
42361 cppunit_config_prefix="$withval"
42362else
42363 cppunit_config_prefix=""
42364fi;
42365
42366# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42367if test "${with_cppunit_exec_prefix+set}" = set; then
42368 withval="$with_cppunit_exec_prefix"
42369 cppunit_config_exec_prefix="$withval"
42370else
42371 cppunit_config_exec_prefix=""
42372fi;
42373
42374 if test x$cppunit_config_exec_prefix != x ; then
42375 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42376 if test x${CPPUNIT_CONFIG+set} != xset ; then
42377 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42378 fi
42379 fi
42380 if test x$cppunit_config_prefix != x ; then
42381 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42382 if test x${CPPUNIT_CONFIG+set} != xset ; then
42383 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42384 fi
42385 fi
42386
42387 # Extract the first word of "cppunit-config", so it can be a program name with args.
42388set dummy cppunit-config; ac_word=$2
42389echo "$as_me:$LINENO: checking for $ac_word" >&5
42390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42391if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42392 echo $ECHO_N "(cached) $ECHO_C" >&6
42393else
42394 case $CPPUNIT_CONFIG in
42395 [\\/]* | ?:[\\/]*)
42396 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42397 ;;
42398 *)
42399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42400for as_dir in $PATH
42401do
42402 IFS=$as_save_IFS
42403 test -z "$as_dir" && as_dir=.
42404 for ac_exec_ext in '' $ac_executable_extensions; do
42405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42406 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42408 break 2
42409 fi
42410done
42411done
42412
42413 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42414 ;;
42415esac
42416fi
42417CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42418
42419if test -n "$CPPUNIT_CONFIG"; then
42420 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42421echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42422else
42423 echo "$as_me:$LINENO: result: no" >&5
42424echo "${ECHO_T}no" >&6
42425fi
42426
42427 cppunit_version_min=1.8.0
42428
42429 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42430echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42431 no_cppunit=""
42432 if test "$CPPUNIT_CONFIG" = "no" ; then
42433 no_cppunit=yes
42434 else
42435 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42436 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42437 cppunit_version=`$CPPUNIT_CONFIG --version`
42438
42439 cppunit_major_version=`echo $cppunit_version | \
42440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42441 cppunit_minor_version=`echo $cppunit_version | \
42442 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42443 cppunit_micro_version=`echo $cppunit_version | \
42444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42445
42446 cppunit_major_min=`echo $cppunit_version_min | \
42447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42448 cppunit_minor_min=`echo $cppunit_version_min | \
42449 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42450 cppunit_micro_min=`echo $cppunit_version_min | \
42451 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42452
42453 cppunit_version_proper=`expr \
42454 $cppunit_major_version \> $cppunit_major_min \| \
42455 $cppunit_major_version \= $cppunit_major_min \& \
42456 $cppunit_minor_version \> $cppunit_minor_min \| \
42457 $cppunit_major_version \= $cppunit_major_min \& \
42458 $cppunit_minor_version \= $cppunit_minor_min \& \
42459 $cppunit_micro_version \>= $cppunit_micro_min `
42460
42461 if test "$cppunit_version_proper" = "1" ; then
42462 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42463echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42464 else
42465 echo "$as_me:$LINENO: result: no" >&5
42466echo "${ECHO_T}no" >&6
42467 no_cppunit=yes
42468 fi
42469 fi
42470
42471 if test "x$no_cppunit" = x ; then
c2218763 42472 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42473 else
42474 CPPUNIT_CFLAGS=""
42475 CPPUNIT_LIBS=""
c2218763 42476 :
a848cd7e
SC
42477 fi
42478
42479
42480
42481
42482
42483for subdir in `echo $SUBDIRS`; do
42484 if test -d ${srcdir}/${subdir} ; then
42485 if test "$wxUSE_GUI" = "yes"; then
42486 if test ${subdir} = "samples"; then
42487 makefiles="samples/Makefile.in $makefiles"
42488 for sample in `echo $SAMPLES_SUBDIRS`; do
42489 if test -d $srcdir/samples/$sample; then
42490 makefiles="samples/$sample/Makefile.in $makefiles"
42491 fi
42492 done
42493 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42494 fi
42495 else if test ${subdir} = "samples"; then
42496 makefiles="samples/Makefile.in samples/console/Makefile.in"
42497 elif test ${subdir} = "utils"; then
6537ccf8
VS
42498 makefiles=""
42499 for util in HelpGen tex2rtf ; do
42500 if test -d $srcdir/utils/$util ; then
42501 makefiles="utils/$util/Makefile.in \
42502 utils/$util/src/Makefile.in \
42503 $makefiles"
42504 fi
42505 done
a848cd7e
SC
42506 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42507 fi
42508 fi
42509
42510 for mkin in $makefiles ; do
42511 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42512 ac_config_files="$ac_config_files $mk"
42513
42514 done
42515 fi
42516done
42517
42518
42519cat >confcache <<\_ACEOF
42520# This file is a shell script that caches the results of configure
42521# tests run on this system so they can be shared between configure
42522# scripts and configure runs, see configure's option --config-cache.
42523# It is not useful on other systems. If it contains results you don't
42524# want to keep, you may remove or edit it.
42525#
42526# config.status only pays attention to the cache file if you give it
42527# the --recheck option to rerun configure.
42528#
42529# `ac_cv_env_foo' variables (set or unset) will be overridden when
42530# loading this file, other *unset* `ac_cv_foo' will be assigned the
42531# following values.
42532
42533_ACEOF
42534
42535# The following way of writing the cache mishandles newlines in values,
42536# but we know of no workaround that is simple, portable, and efficient.
42537# So, don't put newlines in cache variables' values.
42538# Ultrix sh set writes to stderr and can't be redirected directly,
42539# and sets the high bit in the cache file unless we assign to the vars.
42540{
42541 (set) 2>&1 |
42542 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42543 *ac_space=\ *)
42544 # `set' does not quote correctly, so add quotes (double-quote
42545 # substitution turns \\\\ into \\, and sed turns \\ into \).
42546 sed -n \
ac1cb8d3
VS
42547 "s/'/'\\\\''/g;
42548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42549 ;;
42550 *)
42551 # `set' quotes correctly as required by POSIX, so do not add quotes.
42552 sed -n \
ac1cb8d3 42553 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42554 ;;
42555 esac;
42556} |
42557 sed '
42558 t clear
42559 : clear
42560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42561 t end
42562 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42563 : end' >>confcache
42564if diff $cache_file confcache >/dev/null 2>&1; then :; else
42565 if test -w $cache_file; then
42566 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42567 cat confcache >$cache_file
42568 else
42569 echo "not updating unwritable cache $cache_file"
42570 fi
42571fi
42572rm -f confcache
42573
42574test "x$prefix" = xNONE && prefix=$ac_default_prefix
42575# Let make expand exec_prefix.
42576test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42577
42578# VPATH may cause trouble with some makes, so we remove $(srcdir),
42579# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42580# trailing colons and then remove the whole line if VPATH becomes empty
42581# (actually we leave an empty line to preserve line numbers).
42582if test "x$srcdir" = x.; then
ac1cb8d3 42583 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42584s/:*\$(srcdir):*/:/;
42585s/:*\${srcdir}:*/:/;
42586s/:*@srcdir@:*/:/;
ac1cb8d3 42587s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42588s/:*$//;
ac1cb8d3 42589s/^[^=]*=[ ]*$//;
a848cd7e
SC
42590}'
42591fi
42592
42593DEFS=-DHAVE_CONFIG_H
42594
42595ac_libobjs=
42596ac_ltlibobjs=
42597for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42598 # 1. Remove the extension, and $U if already installed.
42599 ac_i=`echo "$ac_i" |
ac1cb8d3 42600 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42601 # 2. Add them.
42602 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42603 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42604done
42605LIBOBJS=$ac_libobjs
42606
42607LTLIBOBJS=$ac_ltlibobjs
42608
42609
42610
42611: ${CONFIG_STATUS=./config.status}
42612ac_clean_files_save=$ac_clean_files
42613ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42614{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42615echo "$as_me: creating $CONFIG_STATUS" >&6;}
42616cat >$CONFIG_STATUS <<_ACEOF
42617#! $SHELL
42618# Generated by $as_me.
42619# Run this file to recreate the current configuration.
42620# Compiler output produced by configure, useful for debugging
42621# configure, is in config.log if it exists.
42622
42623debug=false
42624ac_cs_recheck=false
42625ac_cs_silent=false
42626SHELL=\${CONFIG_SHELL-$SHELL}
42627_ACEOF
42628
42629cat >>$CONFIG_STATUS <<\_ACEOF
42630## --------------------- ##
42631## M4sh Initialization. ##
42632## --------------------- ##
42633
42634# Be Bourne compatible
42635if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42636 emulate sh
42637 NULLCMD=:
42638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42639 # is contrary to our usage. Disable this feature.
42640 alias -g '${1+"$@"}'='"$@"'
42641elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42642 set -o posix
42643fi
ac1cb8d3 42644DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42645
42646# Support unset when possible.
ac1cb8d3 42647if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42648 as_unset=unset
42649else
42650 as_unset=false
42651fi
42652
42653
42654# Work around bugs in pre-3.0 UWIN ksh.
42655$as_unset ENV MAIL MAILPATH
42656PS1='$ '
42657PS2='> '
42658PS4='+ '
42659
42660# NLS nuisances.
42661for as_var in \
42662 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42663 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42664 LC_TELEPHONE LC_TIME
42665do
ac1cb8d3 42666 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42667 eval $as_var=C; export $as_var
42668 else
42669 $as_unset $as_var
42670 fi
42671done
42672
42673# Required to use basename.
42674if expr a : '\(a\)' >/dev/null 2>&1; then
42675 as_expr=expr
42676else
42677 as_expr=false
42678fi
42679
42680if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42681 as_basename=basename
42682else
42683 as_basename=false
42684fi
42685
42686
42687# Name of the executable.
42688as_me=`$as_basename "$0" ||
42689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42690 X"$0" : 'X\(//\)$' \| \
42691 X"$0" : 'X\(/\)$' \| \
42692 . : '\(.\)' 2>/dev/null ||
42693echo X/"$0" |
42694 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42695 /^X\/\(\/\/\)$/{ s//\1/; q; }
42696 /^X\/\(\/\).*/{ s//\1/; q; }
42697 s/.*/./; q'`
42698
42699
42700# PATH needs CR, and LINENO needs CR and PATH.
42701# Avoid depending upon Character Ranges.
42702as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42703as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42704as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42705as_cr_digits='0123456789'
42706as_cr_alnum=$as_cr_Letters$as_cr_digits
42707
42708# The user is always right.
42709if test "${PATH_SEPARATOR+set}" != set; then
42710 echo "#! /bin/sh" >conf$$.sh
42711 echo "exit 0" >>conf$$.sh
42712 chmod +x conf$$.sh
42713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42714 PATH_SEPARATOR=';'
42715 else
42716 PATH_SEPARATOR=:
42717 fi
42718 rm -f conf$$.sh
42719fi
42720
42721
42722 as_lineno_1=$LINENO
42723 as_lineno_2=$LINENO
42724 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42725 test "x$as_lineno_1" != "x$as_lineno_2" &&
42726 test "x$as_lineno_3" = "x$as_lineno_2" || {
42727 # Find who we are. Look in the path if we contain no path at all
42728 # relative or not.
42729 case $0 in
42730 *[\\/]* ) as_myself=$0 ;;
42731 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42732for as_dir in $PATH
42733do
42734 IFS=$as_save_IFS
42735 test -z "$as_dir" && as_dir=.
42736 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42737done
42738
42739 ;;
42740 esac
42741 # We did not find ourselves, most probably we were run as `sh COMMAND'
42742 # in which case we are not to be found in the path.
42743 if test "x$as_myself" = x; then
42744 as_myself=$0
42745 fi
42746 if test ! -f "$as_myself"; then
42747 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42748echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42749 { (exit 1); exit 1; }; }
42750 fi
42751 case $CONFIG_SHELL in
42752 '')
42753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42754for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42755do
42756 IFS=$as_save_IFS
42757 test -z "$as_dir" && as_dir=.
42758 for as_base in sh bash ksh sh5; do
42759 case $as_dir in
42760 /*)
42761 if ("$as_dir/$as_base" -c '
42762 as_lineno_1=$LINENO
42763 as_lineno_2=$LINENO
42764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42765 test "x$as_lineno_1" != "x$as_lineno_2" &&
42766 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42767 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42768 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42769 CONFIG_SHELL=$as_dir/$as_base
42770 export CONFIG_SHELL
42771 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42772 fi;;
42773 esac
42774 done
42775done
42776;;
42777 esac
42778
42779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42780 # uniformly replaced by the line number. The first 'sed' inserts a
42781 # line-number line before each line; the second 'sed' does the real
42782 # work. The second script uses 'N' to pair each line-number line
42783 # with the numbered line, and appends trailing '-' during
42784 # substitution so that $LINENO is not a special case at line end.
42785 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42786 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42787 sed '=' <$as_myself |
42788 sed '
42789 N
42790 s,$,-,
42791 : loop
42792 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42793 t loop
42794 s,-$,,
42795 s,^['$as_cr_digits']*\n,,
42796 ' >$as_me.lineno &&
42797 chmod +x $as_me.lineno ||
42798 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42799echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42800 { (exit 1); exit 1; }; }
42801
42802 # Don't try to exec as it changes $[0], causing all sort of problems
42803 # (the dirname of $[0] is not the place where we might find the
42804 # original and so on. Autoconf is especially sensible to this).
42805 . ./$as_me.lineno
42806 # Exit status is that of the last command.
42807 exit
42808}
42809
42810
42811case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42812 *c*,-n*) ECHO_N= ECHO_C='
42813' ECHO_T=' ' ;;
42814 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42815 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42816esac
42817
42818if expr a : '\(a\)' >/dev/null 2>&1; then
42819 as_expr=expr
42820else
42821 as_expr=false
42822fi
42823
42824rm -f conf$$ conf$$.exe conf$$.file
42825echo >conf$$.file
42826if ln -s conf$$.file conf$$ 2>/dev/null; then
42827 # We could just check for DJGPP; but this test a) works b) is more generic
42828 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42829 if test -f conf$$.exe; then
42830 # Don't use ln at all; we don't have any links
42831 as_ln_s='cp -p'
42832 else
42833 as_ln_s='ln -s'
42834 fi
42835elif ln conf$$.file conf$$ 2>/dev/null; then
42836 as_ln_s=ln
42837else
42838 as_ln_s='cp -p'
42839fi
42840rm -f conf$$ conf$$.exe conf$$.file
42841
42842if mkdir -p . 2>/dev/null; then
42843 as_mkdir_p=:
42844else
ac1cb8d3 42845 test -d ./-p && rmdir ./-p
a848cd7e
SC
42846 as_mkdir_p=false
42847fi
42848
42849as_executable_p="test -f"
42850
42851# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42852as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42853
42854# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42855as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42856
42857
42858# IFS
42859# We need space, tab and new line, in precisely that order.
42860as_nl='
42861'
42862IFS=" $as_nl"
42863
42864# CDPATH.
42865$as_unset CDPATH
42866
42867exec 6>&1
42868
42869# Open the log real soon, to keep \$[0] and so on meaningful, and to
42870# report actual input values of CONFIG_FILES etc. instead of their
42871# values after options handling. Logging --version etc. is OK.
42872exec 5>>config.log
42873{
42874 echo
42875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42876## Running $as_me. ##
42877_ASBOX
42878} >&5
42879cat >&5 <<_CSEOF
42880
81f90336 42881This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 42882generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42883
42884 CONFIG_FILES = $CONFIG_FILES
42885 CONFIG_HEADERS = $CONFIG_HEADERS
42886 CONFIG_LINKS = $CONFIG_LINKS
42887 CONFIG_COMMANDS = $CONFIG_COMMANDS
42888 $ $0 $@
42889
42890_CSEOF
42891echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42892echo >&5
42893_ACEOF
42894
42895# Files that config.status was made for.
42896if test -n "$ac_config_files"; then
42897 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42898fi
42899
42900if test -n "$ac_config_headers"; then
42901 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42902fi
42903
42904if test -n "$ac_config_links"; then
42905 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42906fi
42907
42908if test -n "$ac_config_commands"; then
42909 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42910fi
42911
42912cat >>$CONFIG_STATUS <<\_ACEOF
42913
42914ac_cs_usage="\
42915\`$as_me' instantiates files from templates according to the
42916current configuration.
42917
42918Usage: $0 [OPTIONS] [FILE]...
42919
42920 -h, --help print this help, then exit
42921 -V, --version print version number, then exit
42922 -q, --quiet do not print progress messages
42923 -d, --debug don't remove temporary files
42924 --recheck update $as_me by reconfiguring in the same conditions
42925 --file=FILE[:TEMPLATE]
ac1cb8d3 42926 instantiate the configuration file FILE
a848cd7e 42927 --header=FILE[:TEMPLATE]
ac1cb8d3 42928 instantiate the configuration header FILE
a848cd7e
SC
42929
42930Configuration files:
42931$config_files
42932
42933Configuration headers:
42934$config_headers
42935
42936Configuration commands:
42937$config_commands
42938
42939Report bugs to <bug-autoconf@gnu.org>."
42940_ACEOF
42941
42942cat >>$CONFIG_STATUS <<_ACEOF
42943ac_cs_version="\\
81f90336 42944wxWidgets config.status 2.5.4
ac1cb8d3 42945configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42946 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42947
ac1cb8d3 42948Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42949This config.status script is free software; the Free Software Foundation
42950gives unlimited permission to copy, distribute and modify it."
42951srcdir=$srcdir
42952INSTALL="$INSTALL"
42953_ACEOF
42954
42955cat >>$CONFIG_STATUS <<\_ACEOF
42956# If no file are specified by the user, then we need to provide default
42957# value. By we need to know if files were specified by the user.
42958ac_need_defaults=:
42959while test $# != 0
42960do
42961 case $1 in
42962 --*=*)
42963 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42964 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42965 ac_shift=:
42966 ;;
42967 -*)
42968 ac_option=$1
42969 ac_optarg=$2
42970 ac_shift=shift
42971 ;;
42972 *) # This is not an option, so the user has probably given explicit
42973 # arguments.
42974 ac_option=$1
42975 ac_need_defaults=false;;
42976 esac
42977
42978 case $ac_option in
42979 # Handling of the options.
42980_ACEOF
42981cat >>$CONFIG_STATUS <<\_ACEOF
42982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42983 ac_cs_recheck=: ;;
42984 --version | --vers* | -V )
42985 echo "$ac_cs_version"; exit 0 ;;
42986 --he | --h)
42987 # Conflict between --help and --header
42988 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42989Try \`$0 --help' for more information." >&5
42990echo "$as_me: error: ambiguous option: $1
42991Try \`$0 --help' for more information." >&2;}
42992 { (exit 1); exit 1; }; };;
42993 --help | --hel | -h )
42994 echo "$ac_cs_usage"; exit 0 ;;
42995 --debug | --d* | -d )
42996 debug=: ;;
42997 --file | --fil | --fi | --f )
42998 $ac_shift
42999 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43000 ac_need_defaults=false;;
43001 --header | --heade | --head | --hea )
43002 $ac_shift
43003 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43004 ac_need_defaults=false;;
43005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43007 ac_cs_silent=: ;;
43008
43009 # This is an error.
43010 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43011Try \`$0 --help' for more information." >&5
43012echo "$as_me: error: unrecognized option: $1
43013Try \`$0 --help' for more information." >&2;}
43014 { (exit 1); exit 1; }; } ;;
43015
43016 *) ac_config_targets="$ac_config_targets $1" ;;
43017
43018 esac
43019 shift
43020done
43021
43022ac_configure_extra_args=
43023
43024if $ac_cs_silent; then
43025 exec 6>/dev/null
43026 ac_configure_extra_args="$ac_configure_extra_args --silent"
43027fi
43028
43029_ACEOF
43030cat >>$CONFIG_STATUS <<_ACEOF
43031if \$ac_cs_recheck; then
43032 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43033 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43034fi
43035
43036_ACEOF
43037
43038cat >>$CONFIG_STATUS <<_ACEOF
43039#
43040# INIT-COMMANDS section.
43041#
43042
ceec2216
RL
43043 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43044 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43045 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43046 LN_S="${LN_S}"
a848cd7e
SC
43047
43048
43049_ACEOF
43050
43051
43052
43053cat >>$CONFIG_STATUS <<\_ACEOF
43054for ac_config_target in $ac_config_targets
43055do
43056 case "$ac_config_target" in
43057 # Handling of arguments.
ceec2216
RL
43058 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43059 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43060 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43061 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43062 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43063 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43064 "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
43065 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43066echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43067 { (exit 1); exit 1; }; };;
43068 esac
43069done
43070
43071# If the user did not use the arguments to specify the items to instantiate,
43072# then the envvar interface is used. Set only those that are not.
43073# We use the long form for the default assignment because of an extremely
43074# bizarre bug on SunOS 4.1.3.
43075if $ac_need_defaults; then
43076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43079fi
43080
43081# Have a temporary directory for convenience. Make it in the build tree
43082# simply because there is no reason to put it here, and in addition,
43083# creating and moving files from /tmp can sometimes cause problems.
43084# Create a temporary directory, and hook for its removal unless debugging.
43085$debug ||
43086{
43087 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43088 trap '{ (exit 1); exit 1; }' 1 2 13 15
43089}
43090
43091# Create a (secure) tmp directory for tmp files.
43092
43093{
43094 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43095 test -n "$tmp" && test -d "$tmp"
43096} ||
43097{
43098 tmp=./confstat$$-$RANDOM
43099 (umask 077 && mkdir $tmp)
43100} ||
43101{
43102 echo "$me: cannot create a temporary directory in ." >&2
43103 { (exit 1); exit 1; }
43104}
43105
43106_ACEOF
43107
43108cat >>$CONFIG_STATUS <<_ACEOF
43109
43110#
43111# CONFIG_FILES section.
43112#
43113
43114# No need to generate the scripts if there are no CONFIG_FILES.
43115# This happens for instance when ./config.status config.h
43116if test -n "\$CONFIG_FILES"; then
43117 # Protect against being on the right side of a sed subst in config.status.
43118 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43119 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43120s,@SHELL@,$SHELL,;t t
43121s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43122s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43123s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43124s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43125s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43126s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43127s,@exec_prefix@,$exec_prefix,;t t
43128s,@prefix@,$prefix,;t t
43129s,@program_transform_name@,$program_transform_name,;t t
43130s,@bindir@,$bindir,;t t
43131s,@sbindir@,$sbindir,;t t
43132s,@libexecdir@,$libexecdir,;t t
43133s,@datadir@,$datadir,;t t
43134s,@sysconfdir@,$sysconfdir,;t t
43135s,@sharedstatedir@,$sharedstatedir,;t t
43136s,@localstatedir@,$localstatedir,;t t
43137s,@libdir@,$libdir,;t t
43138s,@includedir@,$includedir,;t t
43139s,@oldincludedir@,$oldincludedir,;t t
43140s,@infodir@,$infodir,;t t
43141s,@mandir@,$mandir,;t t
43142s,@build_alias@,$build_alias,;t t
43143s,@host_alias@,$host_alias,;t t
43144s,@target_alias@,$target_alias,;t t
43145s,@DEFS@,$DEFS,;t t
43146s,@ECHO_C@,$ECHO_C,;t t
43147s,@ECHO_N@,$ECHO_N,;t t
43148s,@ECHO_T@,$ECHO_T,;t t
43149s,@LIBS@,$LIBS,;t t
43150s,@build@,$build,;t t
43151s,@build_cpu@,$build_cpu,;t t
43152s,@build_vendor@,$build_vendor,;t t
43153s,@build_os@,$build_os,;t t
43154s,@host@,$host,;t t
43155s,@host_cpu@,$host_cpu,;t t
43156s,@host_vendor@,$host_vendor,;t t
43157s,@host_os@,$host_os,;t t
43158s,@target@,$target,;t t
43159s,@target_cpu@,$target_cpu,;t t
43160s,@target_vendor@,$target_vendor,;t t
43161s,@target_os@,$target_os,;t t
43162s,@CC@,$CC,;t t
43163s,@CFLAGS@,$CFLAGS,;t t
43164s,@LDFLAGS@,$LDFLAGS,;t t
43165s,@CPPFLAGS@,$CPPFLAGS,;t t
43166s,@ac_ct_CC@,$ac_ct_CC,;t t
43167s,@EXEEXT@,$EXEEXT,;t t
43168s,@OBJEXT@,$OBJEXT,;t t
43169s,@CPP@,$CPP,;t t
43170s,@EGREP@,$EGREP,;t t
43171s,@CXX@,$CXX,;t t
43172s,@CXXFLAGS@,$CXXFLAGS,;t t
43173s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43174s,@RANLIB@,$RANLIB,;t t
43175s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43176s,@AR@,$AR,;t t
43177s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43178s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43179s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43180s,@STRIP@,$STRIP,;t t
43181s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43182s,@LN_S@,$LN_S,;t t
43183s,@CXXCPP@,$CXXCPP,;t t
43184s,@subdirs@,$subdirs,;t t
43185s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43186s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43187s,@GTK_LIBS@,$GTK_LIBS,;t t
43188s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
43189s,@X_CFLAGS@,$X_CFLAGS,;t t
43190s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43191s,@X_LIBS@,$X_LIBS,;t t
43192s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43193s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43194s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
43195s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43196s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
43197s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43198s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43199s,@RESCOMP@,$RESCOMP,;t t
43200s,@DEREZ@,$DEREZ,;t t
43201s,@SETFILE@,$SETFILE,;t t
43202s,@LIBICONV@,$LIBICONV,;t t
43203s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43204s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43205s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43206s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
43207s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
43208s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
43209s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43210s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43211s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43212s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43213s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43214s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43215s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43216s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43217s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43218s,@VENDOR@,$VENDOR,;t t
43219s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
43220s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
43221s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
43222s,@WXUNIV@,$WXUNIV,;t t
43223s,@MONOLITHIC@,$MONOLITHIC,;t t
43224s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43225s,@EXTRALIBS@,$EXTRALIBS,;t t
43226s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43227s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43228s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43229s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43230s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43231s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43232s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 43233s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
43234s,@UNICODE@,$UNICODE,;t t
43235s,@BUILD@,$BUILD,;t t
43236s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43237s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
43238s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43239s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43240s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43241s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43242s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43243s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43244s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43245s,@SET_MAKE@,$SET_MAKE,;t t
43246s,@MAKE_SET@,$MAKE_SET,;t t
43247s,@ac_ct_AR@,$ac_ct_AR,;t t
43248s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43249s,@NM@,$NM,;t t
43250s,@ac_ct_NM@,$ac_ct_NM,;t t
43251s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43252s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43253s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43254s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43255s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43256s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 43257s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
43258s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43259s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 43260s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
43261s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43262s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43263s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43264s,@LIBPREFIX@,$LIBPREFIX,;t t
43265s,@LIBEXT@,$LIBEXT,;t t
43266s,@DLLPREFIX@,$DLLPREFIX,;t t
43267s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43268s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43269s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43270s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43271s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43272s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43273s,@PIC_FLAG@,$PIC_FLAG,;t t
43274s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43275s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43276s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43277s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43278s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43279s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43280s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43281s,@GCC_PCH@,$GCC_PCH,;t t
43282s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43283s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43284s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43285s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43286s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43287s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43288s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43289s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43290s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43291s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43292s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43293s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43294s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43295s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43296s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43297s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43298s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43299s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 43300s,@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 43301s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 43302s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 43303s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
43304s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43305s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 43306s,@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 43307s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 43308s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 43309s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
43310s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43311s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43312s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43313s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43314s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43315s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43316s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43317s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 43318s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
43319s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43320s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43321s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 43322s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 43323s,@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
43324s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
43325s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
43326s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43327s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 43328s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
43329s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43330s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43331s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43332s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43333s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43334s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43335s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43336s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43337s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
43338s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
43339s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
43340s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
43341s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43342s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43343s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43344s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43345s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43346s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43347s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43348s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43349s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43350s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43351s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43352s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43353s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43354s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43355s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43356s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43357s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43358s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43359s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43360s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43361s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43362s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43363s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43364s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43365s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43366s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43367s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43368s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43369s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43370s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43371s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43372s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43373s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43374s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43375s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43376s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43377s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43378s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43379s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43380s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43381s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43382s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43383s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43384s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43385s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43386s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43387s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43388s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43389s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43390s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43391s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43392s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43393s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43394s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43395s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 43396s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
43397s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43398s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43399s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43400s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43401s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43402s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43403s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43404s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 43405s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43406s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43407s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43408s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43409s,@USE_GUI@,$USE_GUI,;t t
43410s,@AFMINSTALL@,$AFMINSTALL,;t t
43411s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43412s,@TOOLKIT@,$TOOLKIT,;t t
43413s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43414s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43415s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43416s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43417s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43418s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43419s,@WIDGET_SET@,$WIDGET_SET,;t t
43420s,@WX_RELEASE@,$WX_RELEASE,;t t
43421s,@WX_VERSION@,$WX_VERSION,;t t
43422s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43423s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43424s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43425s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43426s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43427s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43428s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43429s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43430s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43431s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43432s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43433s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43434s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43435s,@DISTDIR@,$DISTDIR,;t t
43436s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43437s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43438s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43439s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43440s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43441s,@RESFLAGS@,$RESFLAGS,;t t
43442s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43443s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43444s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43445s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43446s,@MACRESCOMP@,$MACRESCOMP,;t t
43447s,@MACSETFILE@,$MACSETFILE,;t t
43448s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43449s,@GCC@,$GCC,;t t
a848cd7e 43450s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43451s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43452s,@LIBOBJS@,$LIBOBJS,;t t
43453s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43454CEOF
43455
43456_ACEOF
43457
43458 cat >>$CONFIG_STATUS <<\_ACEOF
43459 # Split the substitutions into bite-sized pieces for seds with
43460 # small command number limits, like on Digital OSF/1 and HP-UX.
43461 ac_max_sed_lines=48
43462 ac_sed_frag=1 # Number of current file.
43463 ac_beg=1 # First line for current file.
43464 ac_end=$ac_max_sed_lines # Line after last line for current file.
43465 ac_more_lines=:
43466 ac_sed_cmds=
43467 while $ac_more_lines; do
43468 if test $ac_beg -gt 1; then
43469 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43470 else
43471 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43472 fi
43473 if test ! -s $tmp/subs.frag; then
43474 ac_more_lines=false
43475 else
43476 # The purpose of the label and of the branching condition is to
43477 # speed up the sed processing (if there are no `@' at all, there
43478 # is no need to browse any of the substitutions).
43479 # These are the two extra sed commands mentioned above.
43480 (echo ':t
43481 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43482 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43483 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43484 else
ac1cb8d3 43485 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43486 fi
43487 ac_sed_frag=`expr $ac_sed_frag + 1`
43488 ac_beg=$ac_end
43489 ac_end=`expr $ac_end + $ac_max_sed_lines`
43490 fi
43491 done
43492 if test -z "$ac_sed_cmds"; then
43493 ac_sed_cmds=cat
43494 fi
43495fi # test -n "$CONFIG_FILES"
43496
43497_ACEOF
43498cat >>$CONFIG_STATUS <<\_ACEOF
43499for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43500 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43501 case $ac_file in
43502 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43503 cat >$tmp/stdin
43504 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43505 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43506 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43508 * ) ac_file_in=$ac_file.in ;;
43509 esac
43510
43511 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43512 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43513$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43514 X"$ac_file" : 'X\(//\)[^/]' \| \
43515 X"$ac_file" : 'X\(//\)$' \| \
43516 X"$ac_file" : 'X\(/\)' \| \
43517 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43518echo X"$ac_file" |
43519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43521 /^X\(\/\/\)$/{ s//\1/; q; }
43522 /^X\(\/\).*/{ s//\1/; q; }
43523 s/.*/./; q'`
43524 { if $as_mkdir_p; then
43525 mkdir -p "$ac_dir"
43526 else
43527 as_dir="$ac_dir"
43528 as_dirs=
43529 while test ! -d "$as_dir"; do
43530 as_dirs="$as_dir $as_dirs"
43531 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43533 X"$as_dir" : 'X\(//\)[^/]' \| \
43534 X"$as_dir" : 'X\(//\)$' \| \
43535 X"$as_dir" : 'X\(/\)' \| \
43536 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43537echo X"$as_dir" |
43538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43540 /^X\(\/\/\)$/{ s//\1/; q; }
43541 /^X\(\/\).*/{ s//\1/; q; }
43542 s/.*/./; q'`
43543 done
43544 test ! -n "$as_dirs" || mkdir $as_dirs
43545 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43546echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43547 { (exit 1); exit 1; }; }; }
43548
43549 ac_builddir=.
43550
43551if test "$ac_dir" != .; then
43552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43553 # A "../" for each directory in $ac_dir_suffix.
43554 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43555else
43556 ac_dir_suffix= ac_top_builddir=
43557fi
43558
43559case $srcdir in
43560 .) # No --srcdir option. We are building in place.
43561 ac_srcdir=.
43562 if test -z "$ac_top_builddir"; then
43563 ac_top_srcdir=.
43564 else
43565 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43566 fi ;;
43567 [\\/]* | ?:[\\/]* ) # Absolute path.
43568 ac_srcdir=$srcdir$ac_dir_suffix;
43569 ac_top_srcdir=$srcdir ;;
43570 *) # Relative path.
43571 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43572 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43573esac
ac1cb8d3
VS
43574
43575# Do not use `cd foo && pwd` to compute absolute paths, because
43576# the directories may not exist.
43577case `pwd` in
43578.) ac_abs_builddir="$ac_dir";;
43579*)
43580 case "$ac_dir" in
43581 .) ac_abs_builddir=`pwd`;;
43582 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43583 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43584 esac;;
43585esac
43586case $ac_abs_builddir in
43587.) ac_abs_top_builddir=${ac_top_builddir}.;;
43588*)
43589 case ${ac_top_builddir}. in
43590 .) ac_abs_top_builddir=$ac_abs_builddir;;
43591 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43592 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43593 esac;;
43594esac
43595case $ac_abs_builddir in
43596.) ac_abs_srcdir=$ac_srcdir;;
43597*)
43598 case $ac_srcdir in
43599 .) ac_abs_srcdir=$ac_abs_builddir;;
43600 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43601 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43602 esac;;
43603esac
43604case $ac_abs_builddir in
43605.) ac_abs_top_srcdir=$ac_top_srcdir;;
43606*)
43607 case $ac_top_srcdir in
43608 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43609 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43610 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43611 esac;;
43612esac
a848cd7e
SC
43613
43614
43615 case $INSTALL in
43616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43617 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43618 esac
43619
89be85c2
VS
43620 if test x"$ac_file" != x-; then
43621 { echo "$as_me:$LINENO: creating $ac_file" >&5
43622echo "$as_me: creating $ac_file" >&6;}
43623 rm -f "$ac_file"
43624 fi
a848cd7e
SC
43625 # Let's still pretend it is `configure' which instantiates (i.e., don't
43626 # use $as_me), people would be surprised to read:
43627 # /* config.h. Generated by config.status. */
43628 if test x"$ac_file" = x-; then
43629 configure_input=
43630 else
43631 configure_input="$ac_file. "
43632 fi
43633 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43634 sed 's,.*/,,'` by configure."
a848cd7e
SC
43635
43636 # First look for the input files in the build tree, otherwise in the
43637 # src tree.
43638 ac_file_inputs=`IFS=:
43639 for f in $ac_file_in; do
43640 case $f in
43641 -) echo $tmp/stdin ;;
43642 [\\/$]*)
ac1cb8d3
VS
43643 # Absolute (can't be DOS-style, as IFS=:)
43644 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43645echo "$as_me: error: cannot find input file: $f" >&2;}
43646 { (exit 1); exit 1; }; }
ac1cb8d3 43647 echo "$f";;
a848cd7e 43648 *) # Relative
ac1cb8d3
VS
43649 if test -f "$f"; then
43650 # Build tree
43651 echo "$f"
43652 elif test -f "$srcdir/$f"; then
43653 # Source tree
43654 echo "$srcdir/$f"
43655 else
43656 # /dev/null tree
43657 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43658echo "$as_me: error: cannot find input file: $f" >&2;}
43659 { (exit 1); exit 1; }; }
ac1cb8d3 43660 fi;;
a848cd7e
SC
43661 esac
43662 done` || { (exit 1); exit 1; }
43663_ACEOF
43664cat >>$CONFIG_STATUS <<_ACEOF
43665 sed "$ac_vpsub
43666$extrasub
43667_ACEOF
43668cat >>$CONFIG_STATUS <<\_ACEOF
43669:t
43670/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43671s,@configure_input@,$configure_input,;t t
43672s,@srcdir@,$ac_srcdir,;t t
43673s,@abs_srcdir@,$ac_abs_srcdir,;t t
43674s,@top_srcdir@,$ac_top_srcdir,;t t
43675s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43676s,@builddir@,$ac_builddir,;t t
43677s,@abs_builddir@,$ac_abs_builddir,;t t
43678s,@top_builddir@,$ac_top_builddir,;t t
43679s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43680s,@INSTALL@,$ac_INSTALL,;t t
43681" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43682 rm -f $tmp/stdin
43683 if test x"$ac_file" != x-; then
43684 mv $tmp/out $ac_file
43685 else
43686 cat $tmp/out
43687 rm -f $tmp/out
43688 fi
43689
ceec2216
RL
43690 # Run the commands associated with the file.
43691 case $ac_file in
43692 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43693 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43694 esac
a848cd7e
SC
43695done
43696_ACEOF
43697cat >>$CONFIG_STATUS <<\_ACEOF
43698
43699#
43700# CONFIG_HEADER section.
43701#
43702
43703# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43704# NAME is the cpp macro being defined and VALUE is the value it is being given.
43705#
43706# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43707ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43708ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43709ac_dC=' '
43710ac_dD=',;t'
43711# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43712ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43713ac_uB='$,\1#\2define\3'
43714ac_uC=' '
43715ac_uD=',;t'
43716
43717for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43719 case $ac_file in
43720 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43721 cat >$tmp/stdin
43722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43726 * ) ac_file_in=$ac_file.in ;;
43727 esac
43728
43729 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43730echo "$as_me: creating $ac_file" >&6;}
43731
43732 # First look for the input files in the build tree, otherwise in the
43733 # src tree.
43734 ac_file_inputs=`IFS=:
43735 for f in $ac_file_in; do
43736 case $f in
43737 -) echo $tmp/stdin ;;
43738 [\\/$]*)
ac1cb8d3
VS
43739 # Absolute (can't be DOS-style, as IFS=:)
43740 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43741echo "$as_me: error: cannot find input file: $f" >&2;}
43742 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43743 # Do quote $f, to prevent DOS paths from being IFS'd.
43744 echo "$f";;
a848cd7e 43745 *) # Relative
ac1cb8d3
VS
43746 if test -f "$f"; then
43747 # Build tree
43748 echo "$f"
43749 elif test -f "$srcdir/$f"; then
43750 # Source tree
43751 echo "$srcdir/$f"
43752 else
43753 # /dev/null tree
43754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43755echo "$as_me: error: cannot find input file: $f" >&2;}
43756 { (exit 1); exit 1; }; }
ac1cb8d3 43757 fi;;
a848cd7e
SC
43758 esac
43759 done` || { (exit 1); exit 1; }
43760 # Remove the trailing spaces.
ac1cb8d3 43761 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43762
43763_ACEOF
43764
43765# Transform confdefs.h into two sed scripts, `conftest.defines' and
43766# `conftest.undefs', that substitutes the proper values into
43767# config.h.in to produce config.h. The first handles `#define'
43768# templates, and the second `#undef' templates.
43769# And first: Protect against being on the right side of a sed subst in
43770# config.status. Protect against being in an unquoted here document
43771# in config.status.
43772rm -f conftest.defines conftest.undefs
43773# Using a here document instead of a string reduces the quoting nightmare.
43774# Putting comments in sed scripts is not portable.
43775#
43776# `end' is used to avoid that the second main sed command (meant for
43777# 0-ary CPP macros) applies to n-ary macro definitions.
43778# See the Autoconf documentation for `clear'.
43779cat >confdef2sed.sed <<\_ACEOF
43780s/[\\&,]/\\&/g
43781s,[\\$`],\\&,g
43782t clear
43783: clear
ac1cb8d3 43784s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43785t end
ac1cb8d3 43786s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43787: end
43788_ACEOF
43789# If some macros were called several times there might be several times
43790# the same #defines, which is useless. Nevertheless, we may not want to
43791# sort them, since we want the *last* AC-DEFINE to be honored.
43792uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43793sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43794rm -f confdef2sed.sed
43795
43796# This sed command replaces #undef with comments. This is necessary, for
43797# example, in the case of _POSIX_SOURCE, which is predefined and required
43798# on some systems where configure will not decide to define it.
43799cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43800s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43801_ACEOF
43802
43803# Break up conftest.defines because some shells have a limit on the size
43804# of here documents, and old seds have small limits too (100 cmds).
43805echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43806echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43807echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43808echo ' :' >>$CONFIG_STATUS
43809rm -f conftest.tail
43810while grep . conftest.defines >/dev/null
43811do
43812 # Write a limited-size here document to $tmp/defines.sed.
43813 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43814 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43815 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43816 # Work around the forget-to-reset-the-flag bug.
43817 echo 't clr' >>$CONFIG_STATUS
43818 echo ': clr' >>$CONFIG_STATUS
43819 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43820 echo 'CEOF
43821 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43822 rm -f $tmp/in
43823 mv $tmp/out $tmp/in
43824' >>$CONFIG_STATUS
43825 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43826 rm -f conftest.defines
43827 mv conftest.tail conftest.defines
43828done
43829rm -f conftest.defines
43830echo ' fi # grep' >>$CONFIG_STATUS
43831echo >>$CONFIG_STATUS
43832
43833# Break up conftest.undefs because some shells have a limit on the size
43834# of here documents, and old seds have small limits too (100 cmds).
43835echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43836rm -f conftest.tail
43837while grep . conftest.undefs >/dev/null
43838do
43839 # Write a limited-size here document to $tmp/undefs.sed.
43840 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43841 # Speed up: don't consider the non `#undef'
ac1cb8d3 43842 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43843 # Work around the forget-to-reset-the-flag bug.
43844 echo 't clr' >>$CONFIG_STATUS
43845 echo ': clr' >>$CONFIG_STATUS
43846 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43847 echo 'CEOF
43848 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43849 rm -f $tmp/in
43850 mv $tmp/out $tmp/in
43851' >>$CONFIG_STATUS
43852 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43853 rm -f conftest.undefs
43854 mv conftest.tail conftest.undefs
43855done
43856rm -f conftest.undefs
43857
43858cat >>$CONFIG_STATUS <<\_ACEOF
43859 # Let's still pretend it is `configure' which instantiates (i.e., don't
43860 # use $as_me), people would be surprised to read:
43861 # /* config.h. Generated by config.status. */
43862 if test x"$ac_file" = x-; then
43863 echo "/* Generated by configure. */" >$tmp/config.h
43864 else
43865 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43866 fi
43867 cat $tmp/in >>$tmp/config.h
43868 rm -f $tmp/in
43869 if test x"$ac_file" != x-; then
43870 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43871 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43872echo "$as_me: $ac_file is unchanged" >&6;}
43873 else
43874 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43875$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43876 X"$ac_file" : 'X\(//\)[^/]' \| \
43877 X"$ac_file" : 'X\(//\)$' \| \
43878 X"$ac_file" : 'X\(/\)' \| \
43879 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43880echo X"$ac_file" |
43881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43883 /^X\(\/\/\)$/{ s//\1/; q; }
43884 /^X\(\/\).*/{ s//\1/; q; }
43885 s/.*/./; q'`
43886 { if $as_mkdir_p; then
43887 mkdir -p "$ac_dir"
43888 else
43889 as_dir="$ac_dir"
43890 as_dirs=
43891 while test ! -d "$as_dir"; do
43892 as_dirs="$as_dir $as_dirs"
43893 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43894$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43895 X"$as_dir" : 'X\(//\)[^/]' \| \
43896 X"$as_dir" : 'X\(//\)$' \| \
43897 X"$as_dir" : 'X\(/\)' \| \
43898 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43899echo X"$as_dir" |
43900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43902 /^X\(\/\/\)$/{ s//\1/; q; }
43903 /^X\(\/\).*/{ s//\1/; q; }
43904 s/.*/./; q'`
43905 done
43906 test ! -n "$as_dirs" || mkdir $as_dirs
43907 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43908echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43909 { (exit 1); exit 1; }; }; }
43910
43911 rm -f $ac_file
43912 mv $tmp/config.h $ac_file
43913 fi
43914 else
43915 cat $tmp/config.h
43916 rm -f $tmp/config.h
43917 fi
43918done
43919_ACEOF
43920cat >>$CONFIG_STATUS <<\_ACEOF
43921
43922#
43923# CONFIG_COMMANDS section.
43924#
43925for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43926 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43927 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43928 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43929$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43930 X"$ac_dest" : 'X\(//\)[^/]' \| \
43931 X"$ac_dest" : 'X\(//\)$' \| \
43932 X"$ac_dest" : 'X\(/\)' \| \
43933 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43934echo X"$ac_dest" |
43935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43937 /^X\(\/\/\)$/{ s//\1/; q; }
43938 /^X\(\/\).*/{ s//\1/; q; }
43939 s/.*/./; q'`
ac1cb8d3
VS
43940 { if $as_mkdir_p; then
43941 mkdir -p "$ac_dir"
43942 else
43943 as_dir="$ac_dir"
43944 as_dirs=
43945 while test ! -d "$as_dir"; do
43946 as_dirs="$as_dir $as_dirs"
43947 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43948$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43949 X"$as_dir" : 'X\(//\)[^/]' \| \
43950 X"$as_dir" : 'X\(//\)$' \| \
43951 X"$as_dir" : 'X\(/\)' \| \
43952 . : '\(.\)' 2>/dev/null ||
43953echo X"$as_dir" |
43954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43956 /^X\(\/\/\)$/{ s//\1/; q; }
43957 /^X\(\/\).*/{ s//\1/; q; }
43958 s/.*/./; q'`
43959 done
43960 test ! -n "$as_dirs" || mkdir $as_dirs
43961 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43962echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43963 { (exit 1); exit 1; }; }; }
43964
a848cd7e
SC
43965 ac_builddir=.
43966
43967if test "$ac_dir" != .; then
43968 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43969 # A "../" for each directory in $ac_dir_suffix.
43970 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43971else
43972 ac_dir_suffix= ac_top_builddir=
43973fi
43974
43975case $srcdir in
43976 .) # No --srcdir option. We are building in place.
43977 ac_srcdir=.
43978 if test -z "$ac_top_builddir"; then
43979 ac_top_srcdir=.
43980 else
43981 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43982 fi ;;
43983 [\\/]* | ?:[\\/]* ) # Absolute path.
43984 ac_srcdir=$srcdir$ac_dir_suffix;
43985 ac_top_srcdir=$srcdir ;;
43986 *) # Relative path.
43987 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43988 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43989esac
ac1cb8d3
VS
43990
43991# Do not use `cd foo && pwd` to compute absolute paths, because
43992# the directories may not exist.
43993case `pwd` in
43994.) ac_abs_builddir="$ac_dir";;
43995*)
43996 case "$ac_dir" in
43997 .) ac_abs_builddir=`pwd`;;
43998 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43999 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44000 esac;;
44001esac
44002case $ac_abs_builddir in
44003.) ac_abs_top_builddir=${ac_top_builddir}.;;
44004*)
44005 case ${ac_top_builddir}. in
44006 .) ac_abs_top_builddir=$ac_abs_builddir;;
44007 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44008 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44009 esac;;
44010esac
44011case $ac_abs_builddir in
44012.) ac_abs_srcdir=$ac_srcdir;;
44013*)
44014 case $ac_srcdir in
44015 .) ac_abs_srcdir=$ac_abs_builddir;;
44016 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44017 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44018 esac;;
44019esac
44020case $ac_abs_builddir in
44021.) ac_abs_top_srcdir=$ac_top_srcdir;;
44022*)
44023 case $ac_top_srcdir in
44024 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44025 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44026 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44027 esac;;
44028esac
a848cd7e
SC
44029
44030
44031 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44032echo "$as_me: executing $ac_dest commands" >&6;}
44033 case $ac_dest in
ceec2216
RL
44034 wx-config ) rm -f wx-config
44035 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
44036 ;;
a848cd7e
SC
44037 esac
44038done
44039_ACEOF
44040
44041cat >>$CONFIG_STATUS <<\_ACEOF
44042
44043{ (exit 0); exit 0; }
44044_ACEOF
44045chmod +x $CONFIG_STATUS
44046ac_clean_files=$ac_clean_files_save
44047
44048
44049# configure is writing to config.log, and then calls config.status.
44050# config.status does its own redirection, appending to config.log.
44051# Unfortunately, on DOS this fails, as config.log is still kept open
44052# by configure, so config.status won't be able to write to it; its
44053# output is simply discarded. So we exec the FD to /dev/null,
44054# effectively closing config.log, so it can be properly (re)opened and
44055# appended to by config.status. When coming back to configure, we
44056# need to make the FD available again.
44057if test "$no_create" != yes; then
44058 ac_cs_success=:
44059 ac_config_status_args=
44060 test "$silent" = yes &&
44061 ac_config_status_args="$ac_config_status_args --quiet"
44062 exec 5>/dev/null
44063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44064 exec 5>>config.log
44065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44066 # would make configure fail if this is the last instruction.
44067 $ac_cs_success || { (exit 1); exit 1; }
44068fi
44069
44070#
44071# CONFIG_SUBDIRS section.
44072#
44073if test "$no_recursion" != yes; then
44074
44075 # Remove --cache-file and --srcdir arguments so they do not pile up.
44076 ac_sub_configure_args=
44077 ac_prev=
44078 for ac_arg in $ac_configure_args; do
44079 if test -n "$ac_prev"; then
44080 ac_prev=
44081 continue
44082 fi
44083 case $ac_arg in
44084 -cache-file | --cache-file | --cache-fil | --cache-fi \
44085 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44086 ac_prev=cache_file ;;
44087 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44088 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44089 | --c=*)
44090 ;;
44091 --config-cache | -C)
44092 ;;
44093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44094 ac_prev=srcdir ;;
44095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44096 ;;
44097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44098 ac_prev=prefix ;;
44099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44100 ;;
44101 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44102 esac
44103 done
44104
44105 # Always prepend --prefix to ensure using the same prefix
44106 # in subdir configurations.
44107 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44108
44109 ac_popdir=`pwd`
44110 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44111
44112 # Do not complain, so a configure script can configure whichever
44113 # parts of a large source tree are present.
44114 test -d $srcdir/$ac_dir || continue
44115
44116 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44117echo "$as_me: configuring in $ac_dir" >&6;}
44118 { if $as_mkdir_p; then
44119 mkdir -p "$ac_dir"
44120 else
44121 as_dir="$ac_dir"
44122 as_dirs=
44123 while test ! -d "$as_dir"; do
44124 as_dirs="$as_dir $as_dirs"
44125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44127 X"$as_dir" : 'X\(//\)[^/]' \| \
44128 X"$as_dir" : 'X\(//\)$' \| \
44129 X"$as_dir" : 'X\(/\)' \| \
44130 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44131echo X"$as_dir" |
44132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44134 /^X\(\/\/\)$/{ s//\1/; q; }
44135 /^X\(\/\).*/{ s//\1/; q; }
44136 s/.*/./; q'`
44137 done
44138 test ! -n "$as_dirs" || mkdir $as_dirs
44139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44140echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44141 { (exit 1); exit 1; }; }; }
44142
44143 ac_builddir=.
44144
44145if test "$ac_dir" != .; then
44146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44147 # A "../" for each directory in $ac_dir_suffix.
44148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44149else
44150 ac_dir_suffix= ac_top_builddir=
44151fi
44152
44153case $srcdir in
44154 .) # No --srcdir option. We are building in place.
44155 ac_srcdir=.
44156 if test -z "$ac_top_builddir"; then
44157 ac_top_srcdir=.
44158 else
44159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44160 fi ;;
44161 [\\/]* | ?:[\\/]* ) # Absolute path.
44162 ac_srcdir=$srcdir$ac_dir_suffix;
44163 ac_top_srcdir=$srcdir ;;
44164 *) # Relative path.
44165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44167esac
ac1cb8d3
VS
44168
44169# Do not use `cd foo && pwd` to compute absolute paths, because
44170# the directories may not exist.
44171case `pwd` in
44172.) ac_abs_builddir="$ac_dir";;
44173*)
44174 case "$ac_dir" in
44175 .) ac_abs_builddir=`pwd`;;
44176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44178 esac;;
44179esac
44180case $ac_abs_builddir in
44181.) ac_abs_top_builddir=${ac_top_builddir}.;;
44182*)
44183 case ${ac_top_builddir}. in
44184 .) ac_abs_top_builddir=$ac_abs_builddir;;
44185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44187 esac;;
44188esac
44189case $ac_abs_builddir in
44190.) ac_abs_srcdir=$ac_srcdir;;
44191*)
44192 case $ac_srcdir in
44193 .) ac_abs_srcdir=$ac_abs_builddir;;
44194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44196 esac;;
44197esac
44198case $ac_abs_builddir in
44199.) ac_abs_top_srcdir=$ac_top_srcdir;;
44200*)
44201 case $ac_top_srcdir in
44202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44205 esac;;
44206esac
a848cd7e
SC
44207
44208
44209 cd $ac_dir
44210
44211 # Check for guested configure; otherwise get Cygnus style configure.
44212 if test -f $ac_srcdir/configure.gnu; then
44213 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44214 elif test -f $ac_srcdir/configure; then
44215 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44216 elif test -f $ac_srcdir/configure.in; then
44217 ac_sub_configure=$ac_configure
44218 else
44219 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44220echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44221 ac_sub_configure=
44222 fi
44223
44224 # The recursion is here.
44225 if test -n "$ac_sub_configure"; then
44226 # Make the cache file name correct relative to the subdirectory.
44227 case $cache_file in
44228 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44229 *) # Relative path.
ac1cb8d3 44230 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44231 esac
44232
44233 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44234echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44235 # The eval makes quoting arguments work.
44236 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44237 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44238 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44239echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44240 { (exit 1); exit 1; }; }
44241 fi
44242
89be85c2 44243 cd $ac_popdir
a848cd7e
SC
44244 done
44245fi
44246
44247
44248echo
77ffb593 44249echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44250echo ""
4d4ff94c 44251echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 44252echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44253
77ffb593
JS
44254echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44255echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44256echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44257
77ffb593
JS
44258echo " What level of wxWidgets compatibility should be enabled?"
44259echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44260echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44261
77ffb593 44262echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44263echo " jpeg ${wxUSE_LIBJPEG-none}"
44264echo " png ${wxUSE_LIBPNG-none}"
44265echo " regex ${wxUSE_REGEX}"
44266echo " tiff ${wxUSE_LIBTIFF-none}"
44267if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44268echo " xpm ${wxUSE_LIBXPM-none}"
44269fi
44270echo " zlib ${wxUSE_ZLIB}"
44271echo " odbc ${wxUSE_ODBC}"
44272echo " expat ${wxUSE_EXPAT}"
44273echo " libmspack ${wxUSE_LIBMSPACK}"
44274echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 44275echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
44276
44277echo ""
44278