]> git.saurik.com Git - wxWidgets.git/blame - configure
Verified and applied [ 1042133 ] GTK2.0: DrawRotatedText dumb 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.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
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'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
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"
a13a7f89 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 PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_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 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_MACOSX PLATFORM_OS2 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_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_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_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_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_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC 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_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_COCOA 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_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_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 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 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
7714864e 797\`configure' configures wxWidgets 2.5.3 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
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
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
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
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
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
1064 --with-opengl use OpenGL (or Mesa)
1065 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1066 --with-regex enable support for wxRegEx class
1067 --with-zlib use zlib for LZW compression
1068 --with-odbc use the IODBC and wxODBC classes
1069 --with-expat enable XML support using expat parser
ceec2216 1070 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1071 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1072 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1073 --with-x use the X Window System
1074 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1075 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1076 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1077 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1078 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1079
1080Some influential environment variables:
dcc1b6ad
VS
1081 CC C compiler command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084 nonstandard directory <lib dir>
1085 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086 headers in a nonstandard directory <include dir>
1087 CPP C preprocessor
1088 CXX C++ compiler command
1089 CXXFLAGS C++ compiler flags
1090 CXXCPP C++ preprocessor
a848cd7e
SC
1091
1092Use these variables to override the choices made by `configure' or to help
1093it to find libraries and programs with nonstandard names/locations.
1094
77ffb593 1095Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1096_ACEOF
1097fi
1098
1099if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
1101 ac_popdir=`pwd`
1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1103 test -d $ac_dir || continue
1104 ac_builddir=.
1105
1106if test "$ac_dir" != .; then
1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110else
1111 ac_dir_suffix= ac_top_builddir=
1112fi
1113
1114case $srcdir in
1115 .) # No --srcdir option. We are building in place.
1116 ac_srcdir=.
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
1123 ac_srcdir=$srcdir$ac_dir_suffix;
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128esac
ac1cb8d3
VS
1129
1130# Do not use `cd foo && pwd` to compute absolute paths, because
1131# the directories may not exist.
1132case `pwd` in
1133.) ac_abs_builddir="$ac_dir";;
1134*)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_builddir=${ac_top_builddir}.;;
1143*)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_srcdir=$ac_srcdir;;
1152*)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_top_srcdir=$ac_top_srcdir;;
1161*)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
1167esac
a848cd7e
SC
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1178 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1179 echo
1180 $ac_configure --help
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 fi
c228d3a4 1184 cd $ac_popdir
a848cd7e
SC
1185 done
1186fi
1187
1188test -n "$ac_init_help" && exit 0
1189if $ac_init_version; then
1190 cat <<\_ACEOF
7714864e 1191wxWidgets configure 2.5.3
ac1cb8d3 1192generated by GNU Autoconf 2.59
a848cd7e 1193
ac1cb8d3 1194Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1195This configure script is free software; the Free Software Foundation
1196gives unlimited permission to copy, distribute and modify it.
1197_ACEOF
1198 exit 0
1199fi
1200exec 5>config.log
1201cat >&5 <<_ACEOF
1202This file contains any messages produced by compilers while
1203running configure, to aid debugging if configure makes a mistake.
1204
7714864e 1205It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1206generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1207
1208 $ $0 $@
1209
1210_ACEOF
1211{
1212cat <<_ASUNAME
1213## --------- ##
1214## Platform. ##
1215## --------- ##
1216
1217hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1218uname -m = `(uname -m) 2>/dev/null || echo unknown`
1219uname -r = `(uname -r) 2>/dev/null || echo unknown`
1220uname -s = `(uname -s) 2>/dev/null || echo unknown`
1221uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
1223/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1224/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
1226/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1227/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1228/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1229hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1230/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1231/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1232/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1233
1234_ASUNAME
1235
1236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237for as_dir in $PATH
1238do
1239 IFS=$as_save_IFS
1240 test -z "$as_dir" && as_dir=.
1241 echo "PATH: $as_dir"
1242done
1243
1244} >&5
1245
1246cat >&5 <<_ACEOF
1247
1248
1249## ----------- ##
1250## Core tests. ##
1251## ----------- ##
1252
1253_ACEOF
1254
1255
1256# Keep a trace of the command line.
1257# Strip out --no-create and --no-recursion so they do not pile up.
1258# Strip out --silent because we don't want to record it for future runs.
1259# Also quote any args containing shell meta-characters.
1260# Make two passes to allow for proper duplicate-argument suppression.
1261ac_configure_args=
1262ac_configure_args0=
1263ac_configure_args1=
1264ac_sep=
1265ac_must_keep_next=false
1266for ac_pass in 1 2
1267do
1268 for ac_arg
1269 do
1270 case $ac_arg in
1271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 continue ;;
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 esac
1278 case $ac_pass in
1279 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280 2)
1281 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1282 if test $ac_must_keep_next = true; then
ac1cb8d3 1283 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1284 else
ac1cb8d3
VS
1285 case $ac_arg in
1286 *=* | --config-cache | -C | -disable-* | --disable-* \
1287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1289 | -with-* | --with-* | -without-* | --without-* | --x)
1290 case "$ac_configure_args0 " in
1291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292 esac
1293 ;;
1294 -* ) ac_must_keep_next=true ;;
1295 esac
a848cd7e
SC
1296 fi
1297 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1298 # Get rid of the leading space.
1299 ac_sep=" "
1300 ;;
1301 esac
1302 done
1303done
1304$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1305$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
1307# When interrupted or exit'd, cleanup temporary files, and complete
1308# config.log. We remove comments because anyway the quotes in there
1309# would cause problems or look ugly.
1310# WARNING: Be sure not to use single quotes in there, as some shells,
1311# such as our DU 5.0 friend, will then `close' the trap.
1312trap 'exit_status=$?
1313 # Save into config.log some information that might help in debugging.
1314 {
1315 echo
1316
1317 cat <<\_ASBOX
1318## ---------------- ##
1319## Cache variables. ##
1320## ---------------- ##
1321_ASBOX
1322 echo
1323 # The following way of writing the cache mishandles newlines in values,
1324{
1325 (set) 2>&1 |
1326 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327 *ac_space=\ *)
1328 sed -n \
ac1cb8d3
VS
1329 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1331 ;;
1332 *)
1333 sed -n \
ac1cb8d3 1334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1335 ;;
1336 esac;
1337}
1338 echo
1339
1340 cat <<\_ASBOX
1341## ----------------- ##
1342## Output variables. ##
1343## ----------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_vars
1347 do
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1350 done | sort
1351 echo
1352
1353 if test -n "$ac_subst_files"; then
1354 cat <<\_ASBOX
1355## ------------- ##
1356## Output files. ##
1357## ------------- ##
1358_ASBOX
1359 echo
1360 for ac_var in $ac_subst_files
1361 do
1362 eval ac_val=$`echo $ac_var`
ac1cb8d3 1363 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1364 done | sort
1365 echo
1366 fi
1367
1368 if test -s confdefs.h; then
1369 cat <<\_ASBOX
1370## ----------- ##
1371## confdefs.h. ##
1372## ----------- ##
1373_ASBOX
1374 echo
1375 sed "/^$/d" confdefs.h | sort
1376 echo
1377 fi
1378 test "$ac_signal" != 0 &&
1379 echo "$as_me: caught signal $ac_signal"
1380 echo "$as_me: exit $exit_status"
1381 } >&5
ac1cb8d3 1382 rm -f core *.core &&
a848cd7e
SC
1383 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384 exit $exit_status
1385 ' 0
1386for ac_signal in 1 2 13 15; do
1387 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388done
1389ac_signal=0
1390
1391# confdefs.h avoids OS command line length limits that DEFS can exceed.
1392rm -rf conftest* confdefs.h
1393# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394echo >confdefs.h
1395
1396# Predefined preprocessor variables.
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_NAME "$PACKAGE_NAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_VERSION "$PACKAGE_VERSION"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_STRING "$PACKAGE_STRING"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1420_ACEOF
1421
1422
1423# Let the site file select an alternate cache file if it wants to.
1424# Prefer explicitly selected file to automatically selected ones.
1425if test -z "$CONFIG_SITE"; then
1426 if test "x$prefix" != xNONE; then
1427 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 else
1429 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 fi
1431fi
1432for ac_site_file in $CONFIG_SITE; do
1433 if test -r "$ac_site_file"; then
1434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1435echo "$as_me: loading site script $ac_site_file" >&6;}
1436 sed 's/^/| /' "$ac_site_file" >&5
1437 . "$ac_site_file"
1438 fi
1439done
1440
1441if test -r "$cache_file"; then
1442 # Some versions of bash will fail to source /dev/null (special
1443 # files actually), so we avoid doing that.
1444 if test -f "$cache_file"; then
1445 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1446echo "$as_me: loading cache $cache_file" >&6;}
1447 case $cache_file in
1448 [\\/]* | ?:[\\/]* ) . $cache_file;;
1449 *) . ./$cache_file;;
1450 esac
1451 fi
1452else
1453 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1454echo "$as_me: creating cache $cache_file" >&6;}
1455 >$cache_file
1456fi
1457
1458# Check that the precious variables saved in the cache have kept the same
1459# value.
1460ac_cache_corrupted=false
1461for ac_var in `(set) 2>&1 |
ac1cb8d3 1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1468 set,)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,set)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,);;
1477 *)
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1480echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1482echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1484echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1485 ac_cache_corrupted=:
a848cd7e
SC
1486 fi;;
1487 esac
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1490 case $ac_new_val in
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1494 esac
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 esac
1499 fi
1500done
1501if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508
1509ac_ext=c
1510ac_cpp='$CPP $CPPFLAGS'
1511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
1516
1517
1518
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
1544ac_aux_dir=
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564fi
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569# Make sure we can run config.sub.
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking host system type" >&5
1602echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_host_alias=$host_alias
1607test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616echo "${ECHO_T}$ac_cv_host" >&6
1617host=$ac_cv_host
1618host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking target system type" >&5
1624echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_target_alias=$target_alias
1629test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638echo "${ECHO_T}$ac_cv_target" >&6
1639target=$ac_cv_target
1640target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645# The aliases save the names the user supplied, while $host etc.
1646# will get canonicalized.
1647test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
1652
1653
ceec2216
RL
1654wx_major_version_number=2
1655wx_minor_version_number=5
7714864e
RL
1656wx_release_number=3
1657wx_subrelease_number=0
a848cd7e 1658
ceec2216
RL
1659WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1660WX_VERSION=$WX_RELEASE.$wx_release_number
1661WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1662
ceec2216 1663WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1664
7714864e 1665WX_CURRENT=3
a848cd7e
SC
1666WX_REVISION=0
1667WX_AGE=0
1668
1669
1670
1671USE_UNIX=1
1672USE_OS2=0
1673USE_WIN32=0
1674USE_DOS=0
1675USE_BEOS=0
1676USE_MAC=0
1677
1678USE_AIX=
1679USE_BSD= USE_DARWIN= USE_FREEBSD=
1680USE_GNU= USE_HPUX=
1681USE_LINUX=
1682USE_NETBSD=
1683USE_OPENBSD=
1684USE_OSF= USE_SGI=
1685USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1686USE_ULTRIX=
1687USE_UNIXWARE=
1688
1689USE_ALPHA=
1690
1691NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1692
1693ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1694
1695DEFAULT_wxUSE_COCOA=0
1696DEFAULT_wxUSE_GTK=0
1697DEFAULT_wxUSE_MAC=0
1698DEFAULT_wxUSE_MGL=0
1699DEFAULT_wxUSE_MICROWIN=0
1700DEFAULT_wxUSE_MOTIF=0
1701DEFAULT_wxUSE_MSW=0
1702DEFAULT_wxUSE_PM=0
1703DEFAULT_wxUSE_X11=0
1704
1705DEFAULT_DEFAULT_wxUSE_COCOA=0
1706DEFAULT_DEFAULT_wxUSE_GTK=0
1707DEFAULT_DEFAULT_wxUSE_MAC=0
1708DEFAULT_DEFAULT_wxUSE_MGL=0
1709DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_DEFAULT_wxUSE_MSW=0
1712DEFAULT_DEFAULT_wxUSE_PM=0
1713DEFAULT_DEFAULT_wxUSE_X11=0
1714
1715PROGRAM_EXT=
1716SO_SUFFIX=so
1717SAMPLES_RPATH_FLAG=
1718SAMPLES_RPATH_POSTLINK=
1719
1720case "${host}" in
1721 *-hp-hpux* )
1722 USE_HPUX=1
1723 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1724 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1725 SO_SUFFIX=sl
1726 cat >>confdefs.h <<\_ACEOF
1727#define __HPUX__ 1
1728_ACEOF
1729
1730 ;;
1731 *-*-linux* )
1732 USE_LINUX=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __LINUX__ 1
1735_ACEOF
1736
1737 TMP=`uname -m`
1738 if test "x$TMP" = "xalpha"; then
1739 USE_ALPHA=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __ALPHA__ 1
1742_ACEOF
1743
1744 fi
1745 DEFAULT_DEFAULT_wxUSE_GTK=1
1746 ;;
1747 *-*-gnu* | *-*-k*bsd*-gnu )
1748 USE_GNU=1
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-irix5* | *-*-irix6* )
1760 USE_SGI=1
1761 USE_SVR4=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SGI__ 1
1764_ACEOF
1765
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SVR4__ 1
1768_ACEOF
1769
1770 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1771 ;;
1772 *-*-solaris2* )
1773 USE_SUN=1
1774 USE_SOLARIS=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SUN__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SOLARIS__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SVR4__ 1
1786_ACEOF
1787
1788 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1789 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1790 ;;
1791 *-*-sunos4* )
1792 USE_SUN=1
1793 USE_SUNOS=1
1794 USE_BSD=1
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUN__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUNOS__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __BSD__ 1
1805_ACEOF
1806
1807 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1808 ;;
1809 *-*-freebsd*)
1810 USE_BSD=1
1811 USE_FREEBSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813#define __FREEBSD__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __BSD__ 1
1818_ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-openbsd*)
1823 USE_BSD=1
1824 USE_OPENBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __OPENBSD__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-netbsd*)
1836 USE_BSD=1
1837 USE_NETBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __NETBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-osf* )
1849 USE_ALPHA=1
1850 USE_OSF=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __ALPHA__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __OSF__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1860 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1861 ;;
1862 *-*-dgux5* )
1863 USE_ALPHA=1
1864 USE_SVR4=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __SVR4__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-sysv5* )
1876 USE_SYSV=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SYSV__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-aix* )
1889 USE_AIX=1
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 SO_SUFFIX=a
1893 cat >>confdefs.h <<\_ACEOF
1894#define __AIX__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SYSV__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SVR4__ 1
1903_ACEOF
1904
1905 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1906 ;;
1907
1908 *-*-*UnixWare*)
1909 USE_SYSV=1
1910 USE_SVR4=1
1911 USE_UNIXWARE=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __UNIXWARE__ 1
1914_ACEOF
1915
1916 ;;
1917
1918 *-*-cygwin* | *-*-mingw32* )
1919 SO_SUFFIX=dll
1920 PROGRAM_EXT=".exe"
1921 RESCOMP=windres
1922 DEFAULT_DEFAULT_wxUSE_MSW=1
1923 ;;
1924
1925 *-pc-msdosdjgpp )
1926 USE_UNIX=0
1927 USE_DOS=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __DOS__ 1
1930_ACEOF
1931
1932 PROGRAM_EXT=".exe"
1933 DEFAULT_DEFAULT_wxUSE_MGL=1
1934 LIBS="$LIBS -lstdc++"
1935 ;;
1936
1937 *-pc-os2_emx | *-pc-os2-emx )
1938 cat >>confdefs.h <<\_ACEOF
1939#define __EMX__ 1
1940_ACEOF
1941
1942 USE_OS2=1
1943 cat >>confdefs.h <<\_ACEOF
1944#define __OS2__ 1
1945_ACEOF
1946
1947 PROGRAM_EXT=".exe"
1948 DEFAULT_DEFAULT_wxUSE_PM=1
1949 CXX=gcc
1950 LDFLAGS="$LDFLAGS -Zcrtdll"
1951 ac_executable_extensions=".exe"
1952 export ac_executable_extensions
1953 ac_save_IFS="$IFS"
1954 IFS='\\'
1955 ac_TEMP_PATH=
1956 for ac_dir in $PATH; do
1957 IFS=$ac_save_IFS
1958 if test -z "$ac_TEMP_PATH"; then
1959 ac_TEMP_PATH="$ac_dir"
1960 else
1961 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1962 fi
1963 done
1964 export PATH="$ac_TEMP_PATH"
1965 unset ac_TEMP_PATH
1966 ;;
1967
1968 powerpc-*-darwin* )
1969 USE_BSD=1
1970 USE_DARWIN=1
1971 SO_SUFFIX=dylib
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __DARWIN__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __POWERPC__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define TARGET_CARBON 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_MAC=1
1989 ;;
1990
1991 *-*-beos* )
1992 USE_BEOS=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BEOS__ 1
1995_ACEOF
1996
1997 ;;
1998
1999 *)
2000 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2001echo "$as_me: error: unknown system type ${host}." >&2;}
2002 { (exit 1); exit 1; }; }
2003esac
2004
2005
2006
2007
2008 wx_arg_cache_file="configarg.cache"
2009 echo "loading argument cache $wx_arg_cache_file"
2010 rm -f ${wx_arg_cache_file}.tmp
2011 touch ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}
2013
2014
2015DEBUG_CONFIGURE=0
2016if test $DEBUG_CONFIGURE = 1; then
2017 DEFAULT_wxUSE_UNIVERSAL=no
2018 DEFAULT_wxUSE_STL=no
2019
2020 DEFAULT_wxUSE_NANOX=no
2021
2022 DEFAULT_wxUSE_THREADS=yes
2023
2024 DEFAULT_wxUSE_SHARED=yes
2025 DEFAULT_wxUSE_OPTIMISE=no
2026 DEFAULT_wxUSE_PROFILE=no
2027 DEFAULT_wxUSE_NO_DEPS=no
2028 DEFAULT_wxUSE_NO_RTTI=no
2029 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2030 DEFAULT_wxUSE_PERMISSIVE=no
2031 DEFAULT_wxUSE_DEBUG_FLAG=yes
2032 DEFAULT_wxUSE_DEBUG_INFO=yes
2033 DEFAULT_wxUSE_DEBUG_GDB=yes
2034 DEFAULT_wxUSE_MEM_TRACING=no
2035 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2036 DEFAULT_wxUSE_DMALLOC=no
2037 DEFAULT_wxUSE_APPLE_IEEE=no
2038
2039 DEFAULT_wxUSE_EXCEPTIONS=no
2040 DEFAULT_wxUSE_LOG=yes
2041 DEFAULT_wxUSE_LOGWINDOW=no
2042 DEFAULT_wxUSE_LOGGUI=no
2043 DEFAULT_wxUSE_LOGDIALOG=no
2044
2045 DEFAULT_wxUSE_GUI=yes
2046 DEFAULT_wxUSE_CONTROLS=no
2047
2048 DEFAULT_wxUSE_REGEX=no
2049 DEFAULT_wxUSE_XML=no
2050 DEFAULT_wxUSE_EXPAT=no
2051 DEFAULT_wxUSE_ZLIB=no
2052 DEFAULT_wxUSE_LIBPNG=no
2053 DEFAULT_wxUSE_LIBJPEG=no
2054 DEFAULT_wxUSE_LIBTIFF=no
2055 DEFAULT_wxUSE_LIBXPM=no
2056 DEFAULT_wxUSE_LIBMSPACK=no
2057 DEFAULT_wxUSE_LIBSDL=no
2058 DEFAULT_wxUSE_ODBC=no
2059 DEFAULT_wxUSE_OPENGL=no
2060
2061 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2062 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2063 DEFAULT_wxUSE_STD_IOSTREAM=no
2064 DEFAULT_wxUSE_CMDLINE_PARSER=no
2065 DEFAULT_wxUSE_DATETIME=no
2066 DEFAULT_wxUSE_TIMER=no
2067 DEFAULT_wxUSE_STOPWATCH=no
2068 DEFAULT_wxUSE_FILE=no
2069 DEFAULT_wxUSE_FFILE=no
2070 DEFAULT_wxUSE_TEXTBUFFER=no
2071 DEFAULT_wxUSE_TEXTFILE=no
2072 DEFAULT_wxUSE_SOUND=no
2073 DEFAULT_wxUSE_INTL=no
2074 DEFAULT_wxUSE_CONFIG=no
2075 DEFAULT_wxUSE_FONTMAP=no
2076 DEFAULT_wxUSE_STREAMS=no
2077 DEFAULT_wxUSE_SOCKETS=no
2078 DEFAULT_wxUSE_OLE=no
2079 DEFAULT_wxUSE_DATAOBJ=no
2080 DEFAULT_wxUSE_DIALUP_MANAGER=no
2081 DEFAULT_wxUSE_JOYSTICK=no
2082 DEFAULT_wxUSE_DYNLIB_CLASS=no
2083 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2084 DEFAULT_wxUSE_LONGLONG=no
2085 DEFAULT_wxUSE_GEOMETRY=no
2086
2087 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2088 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2089 DEFAULT_wxUSE_POSTSCRIPT=no
2090
2091 DEFAULT_wxUSE_CLIPBOARD=no
2092 DEFAULT_wxUSE_TOOLTIPS=no
2093 DEFAULT_wxUSE_DRAG_AND_DROP=no
2094 DEFAULT_wxUSE_DRAGIMAGE=no
2095 DEFAULT_wxUSE_SPLINES=no
2096
8a7b1113 2097 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2098 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2099 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2100 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2101
2102 DEFAULT_wxUSE_RESOURCES=no
2103 DEFAULT_wxUSE_CONSTRAINTS=no
2104 DEFAULT_wxUSE_IPC=no
2105 DEFAULT_wxUSE_HELP=no
2106 DEFAULT_wxUSE_MS_HTML_HELP=no
2107 DEFAULT_wxUSE_WXHTML_HELP=no
2108 DEFAULT_wxUSE_TREELAYOUT=no
2109 DEFAULT_wxUSE_METAFILE=no
2110 DEFAULT_wxUSE_MIMETYPE=no
2111 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2112 DEFAULT_wxUSE_PROTOCOL=no
2113 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2114 DEFAULT_wxUSE_PROTOCOL_FTP=no
2115 DEFAULT_wxUSE_PROTOCOL_FILE=no
2116 DEFAULT_wxUSE_URL=no
2117
2118 DEFAULT_wxUSE_COMMONDLGS=no
2119 DEFAULT_wxUSE_CHOICEDLG=no
2120 DEFAULT_wxUSE_COLOURDLG=no
2121 DEFAULT_wxUSE_DIRDLG=no
2122 DEFAULT_wxUSE_FILEDLG=no
2123 DEFAULT_wxUSE_FINDREPLDLG=no
2124 DEFAULT_wxUSE_FONTDLG=no
2125 DEFAULT_wxUSE_MSGDLG=no
2126 DEFAULT_wxUSE_NUMBERDLG=no
2127 DEFAULT_wxUSE_TEXTDLG=no
2128 DEFAULT_wxUSE_SPLASH=no
2129 DEFAULT_wxUSE_STARTUP_TIPS=no
2130 DEFAULT_wxUSE_PROGRESSDLG=no
2131 DEFAULT_wxUSE_WIZARDDLG=no
2132
2133 DEFAULT_wxUSE_MENUS=no
2134 DEFAULT_wxUSE_MINIFRAME=no
2135 DEFAULT_wxUSE_HTML=no
9a8f0513 2136 DEFAULT_wxUSE_XRC=no
646b6ec1 2137 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2138 DEFAULT_wxUSE_FILESYSTEM=no
2139 DEFAULT_wxUSE_FS_INET=no
2140 DEFAULT_wxUSE_FS_ZIP=no
2141 DEFAULT_wxUSE_BUSYINFO=no
2142 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2143 DEFAULT_wxUSE_VALIDATORS=no
2144
2145 DEFAULT_wxUSE_ACCEL=no
2146 DEFAULT_wxUSE_BUTTON=no
2147 DEFAULT_wxUSE_BMPBUTTON=no
2148 DEFAULT_wxUSE_CALCTRL=no
2149 DEFAULT_wxUSE_CARET=no
2150 DEFAULT_wxUSE_CHECKBOX=no
2151 DEFAULT_wxUSE_CHECKLST=no
2152 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2153 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2154 DEFAULT_wxUSE_COMBOBOX=no
2155 DEFAULT_wxUSE_DISPLAY=no
2156 DEFAULT_wxUSE_GAUGE=no
2157 DEFAULT_wxUSE_GRID=no
2158 DEFAULT_wxUSE_IMAGLIST=no
2159 DEFAULT_wxUSE_LISTBOOK=no
2160 DEFAULT_wxUSE_LISTBOX=no
2161 DEFAULT_wxUSE_LISTCTRL=no
2162 DEFAULT_wxUSE_NOTEBOOK=no
2163 DEFAULT_wxUSE_RADIOBOX=no
2164 DEFAULT_wxUSE_RADIOBTN=no
2165 DEFAULT_wxUSE_SASH=no
2166 DEFAULT_wxUSE_SCROLLBAR=no
2167 DEFAULT_wxUSE_SLIDER=no
2168 DEFAULT_wxUSE_SPINBTN=no
2169 DEFAULT_wxUSE_SPINCTRL=no
2170 DEFAULT_wxUSE_SPLITTER=no
2171 DEFAULT_wxUSE_STATBMP=no
2172 DEFAULT_wxUSE_STATBOX=no
2173 DEFAULT_wxUSE_STATLINE=no
2174 DEFAULT_wxUSE_STATTEXT=no
2175 DEFAULT_wxUSE_STATUSBAR=yes
2176 DEFAULT_wxUSE_TABDIALOG=no
2177 DEFAULT_wxUSE_TEXTCTRL=no
2178 DEFAULT_wxUSE_TOGGLEBTN=no
2179 DEFAULT_wxUSE_TOOLBAR=no
2180 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2181 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2182 DEFAULT_wxUSE_TREECTRL=no
2183 DEFAULT_wxUSE_POPUPWIN=no
2184 DEFAULT_wxUSE_TIPWINDOW=no
2185
2186 DEFAULT_wxUSE_UNICODE=no
2187 DEFAULT_wxUSE_UNICODE_MSLU=no
2188 DEFAULT_wxUSE_WCSRTOMBS=no
2189
2190 DEFAULT_wxUSE_PALETTE=no
2191 DEFAULT_wxUSE_IMAGE=no
2192 DEFAULT_wxUSE_GIF=no
2193 DEFAULT_wxUSE_PCX=no
2194 DEFAULT_wxUSE_PNM=no
2195 DEFAULT_wxUSE_IFF=no
2196 DEFAULT_wxUSE_XPM=no
2197 DEFAULT_wxUSE_ICO_CUR=no
2198 DEFAULT_wxUSE_ACCESSIBILITY=no
2199
2200 DEFAULT_wxUSE_MONOLITHIC=no
2201 DEFAULT_wxUSE_PLUGINS=no
2202 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2203else
2204 DEFAULT_wxUSE_UNIVERSAL=no
2205 DEFAULT_wxUSE_STL=no
2206
2207 DEFAULT_wxUSE_NANOX=no
2208
2209 DEFAULT_wxUSE_THREADS=yes
2210
2211 DEFAULT_wxUSE_SHARED=yes
2212 DEFAULT_wxUSE_OPTIMISE=yes
2213 DEFAULT_wxUSE_PROFILE=no
2214 DEFAULT_wxUSE_NO_DEPS=no
2215 DEFAULT_wxUSE_NO_RTTI=no
2216 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2217 DEFAULT_wxUSE_PERMISSIVE=no
2218 DEFAULT_wxUSE_DEBUG_FLAG=no
2219 DEFAULT_wxUSE_DEBUG_INFO=no
2220 DEFAULT_wxUSE_DEBUG_GDB=no
2221 DEFAULT_wxUSE_MEM_TRACING=no
2222 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2223 DEFAULT_wxUSE_DMALLOC=no
2224 DEFAULT_wxUSE_APPLE_IEEE=yes
2225
2226 DEFAULT_wxUSE_EXCEPTIONS=yes
2227 DEFAULT_wxUSE_LOG=yes
2228 DEFAULT_wxUSE_LOGWINDOW=yes
2229 DEFAULT_wxUSE_LOGGUI=yes
2230 DEFAULT_wxUSE_LOGDIALOG=yes
2231
2232 DEFAULT_wxUSE_GUI=yes
2233
2234 DEFAULT_wxUSE_REGEX=yes
2235 DEFAULT_wxUSE_XML=yes
2236 DEFAULT_wxUSE_EXPAT=yes
2237 DEFAULT_wxUSE_ZLIB=yes
2238 DEFAULT_wxUSE_LIBPNG=yes
2239 DEFAULT_wxUSE_LIBJPEG=yes
2240 DEFAULT_wxUSE_LIBTIFF=yes
2241 DEFAULT_wxUSE_LIBXPM=yes
2242 DEFAULT_wxUSE_LIBMSPACK=yes
2243 DEFAULT_wxUSE_LIBSDL=no
2244 DEFAULT_wxUSE_ODBC=no
2245 DEFAULT_wxUSE_OPENGL=no
2246
2247 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2248 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2249 DEFAULT_wxUSE_STD_IOSTREAM=no
2250 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2251 DEFAULT_wxUSE_DATETIME=yes
2252 DEFAULT_wxUSE_TIMER=yes
2253 DEFAULT_wxUSE_STOPWATCH=yes
2254 DEFAULT_wxUSE_FILE=yes
2255 DEFAULT_wxUSE_FFILE=yes
2256 DEFAULT_wxUSE_TEXTBUFFER=yes
2257 DEFAULT_wxUSE_TEXTFILE=yes
2258 DEFAULT_wxUSE_SOUND=yes
2259 DEFAULT_wxUSE_INTL=yes
2260 DEFAULT_wxUSE_CONFIG=yes
2261 DEFAULT_wxUSE_FONTMAP=yes
2262 DEFAULT_wxUSE_STREAMS=yes
2263 DEFAULT_wxUSE_SOCKETS=yes
2264 DEFAULT_wxUSE_OLE=yes
2265 DEFAULT_wxUSE_DATAOBJ=yes
2266 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2267 DEFAULT_wxUSE_JOYSTICK=yes
2268 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2269 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2270 DEFAULT_wxUSE_LONGLONG=yes
2271 DEFAULT_wxUSE_GEOMETRY=yes
2272
2273 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2274 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2275 DEFAULT_wxUSE_POSTSCRIPT=yes
2276
2277 DEFAULT_wxUSE_CLIPBOARD=yes
2278 DEFAULT_wxUSE_TOOLTIPS=yes
2279 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2280 DEFAULT_wxUSE_DRAGIMAGE=yes
2281 DEFAULT_wxUSE_SPLINES=yes
2282
8a7b1113 2283 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2285 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2286 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2287
2288 DEFAULT_wxUSE_RESOURCES=no
2289 DEFAULT_wxUSE_CONSTRAINTS=yes
2290 DEFAULT_wxUSE_IPC=yes
2291 DEFAULT_wxUSE_HELP=yes
2292 DEFAULT_wxUSE_MS_HTML_HELP=yes
2293 DEFAULT_wxUSE_WXHTML_HELP=yes
2294 DEFAULT_wxUSE_TREELAYOUT=yes
2295 DEFAULT_wxUSE_METAFILE=yes
2296 DEFAULT_wxUSE_MIMETYPE=yes
2297 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2298 DEFAULT_wxUSE_PROTOCOL=yes
2299 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2300 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2301 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2302 DEFAULT_wxUSE_URL=yes
2303
2304 DEFAULT_wxUSE_COMMONDLGS=yes
2305 DEFAULT_wxUSE_CHOICEDLG=yes
2306 DEFAULT_wxUSE_COLOURDLG=yes
2307 DEFAULT_wxUSE_DIRDLG=yes
2308 DEFAULT_wxUSE_FILEDLG=yes
2309 DEFAULT_wxUSE_FINDREPLDLG=yes
2310 DEFAULT_wxUSE_FONTDLG=yes
2311 DEFAULT_wxUSE_MSGDLG=yes
2312 DEFAULT_wxUSE_NUMBERDLG=yes
2313 DEFAULT_wxUSE_TEXTDLG=yes
2314 DEFAULT_wxUSE_SPLASH=yes
2315 DEFAULT_wxUSE_STARTUP_TIPS=yes
2316 DEFAULT_wxUSE_PROGRESSDLG=yes
2317 DEFAULT_wxUSE_WIZARDDLG=yes
2318
2319 DEFAULT_wxUSE_MENUS=yes
2320 DEFAULT_wxUSE_MINIFRAME=yes
2321 DEFAULT_wxUSE_HTML=yes
9a8f0513 2322 DEFAULT_wxUSE_XRC=yes
646b6ec1 2323 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2324 DEFAULT_wxUSE_FILESYSTEM=yes
2325 DEFAULT_wxUSE_FS_INET=yes
2326 DEFAULT_wxUSE_FS_ZIP=yes
2327 DEFAULT_wxUSE_BUSYINFO=yes
2328 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2329 DEFAULT_wxUSE_VALIDATORS=yes
2330
2331 DEFAULT_wxUSE_ACCEL=yes
2332 DEFAULT_wxUSE_BUTTON=yes
2333 DEFAULT_wxUSE_BMPBUTTON=yes
2334 DEFAULT_wxUSE_CALCTRL=yes
2335 DEFAULT_wxUSE_CARET=yes
2336 DEFAULT_wxUSE_CHECKBOX=yes
2337 DEFAULT_wxUSE_CHECKLST=yes
2338 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2339 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_COMBOBOX=yes
2341 DEFAULT_wxUSE_DISPLAY=yes
2342 DEFAULT_wxUSE_GAUGE=yes
2343 DEFAULT_wxUSE_GRID=yes
2344 DEFAULT_wxUSE_IMAGLIST=yes
2345 DEFAULT_wxUSE_LISTBOOK=yes
2346 DEFAULT_wxUSE_LISTBOX=yes
2347 DEFAULT_wxUSE_LISTCTRL=yes
2348 DEFAULT_wxUSE_NOTEBOOK=yes
2349 DEFAULT_wxUSE_RADIOBOX=yes
2350 DEFAULT_wxUSE_RADIOBTN=yes
2351 DEFAULT_wxUSE_SASH=yes
2352 DEFAULT_wxUSE_SCROLLBAR=yes
2353 DEFAULT_wxUSE_SLIDER=yes
2354 DEFAULT_wxUSE_SPINBTN=yes
2355 DEFAULT_wxUSE_SPINCTRL=yes
2356 DEFAULT_wxUSE_SPLITTER=yes
2357 DEFAULT_wxUSE_STATBMP=yes
2358 DEFAULT_wxUSE_STATBOX=yes
2359 DEFAULT_wxUSE_STATLINE=yes
2360 DEFAULT_wxUSE_STATTEXT=yes
2361 DEFAULT_wxUSE_STATUSBAR=yes
2362 DEFAULT_wxUSE_TABDIALOG=no
2363 DEFAULT_wxUSE_TEXTCTRL=yes
2364 DEFAULT_wxUSE_TOGGLEBTN=yes
2365 DEFAULT_wxUSE_TOOLBAR=yes
2366 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2367 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2368 DEFAULT_wxUSE_TREECTRL=yes
2369 DEFAULT_wxUSE_POPUPWIN=yes
2370 DEFAULT_wxUSE_TIPWINDOW=yes
2371
2372 DEFAULT_wxUSE_UNICODE=no
2373 DEFAULT_wxUSE_UNICODE_MSLU=yes
2374 DEFAULT_wxUSE_WCSRTOMBS=no
2375
2376 DEFAULT_wxUSE_PALETTE=yes
2377 DEFAULT_wxUSE_IMAGE=yes
2378 DEFAULT_wxUSE_GIF=yes
2379 DEFAULT_wxUSE_PCX=yes
2380 DEFAULT_wxUSE_IFF=no
2381 DEFAULT_wxUSE_PNM=yes
2382 DEFAULT_wxUSE_XPM=yes
2383 DEFAULT_wxUSE_ICO_CUR=yes
2384 DEFAULT_wxUSE_ACCESSIBILITY=no
2385
2386 DEFAULT_wxUSE_MONOLITHIC=no
2387 DEFAULT_wxUSE_PLUGINS=no
2388 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2389
2390 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2391fi
2392
2393
2394
2395for toolkit in `echo $ALL_TOOLKITS`; do
2396 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2397 if test "x$LINE" != "x" ; then
2398 has_toolkit_in_cache=1
2399 eval "DEFAULT_$LINE"
2400 eval "CACHE_$toolkit=1"
2401 fi
2402done
2403
2404
2405
2406 enablestring=
2407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2408echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2409 no_cache=0
2410 # Check whether --enable-gui or --disable-gui was given.
2411if test "${enable_gui+set}" = set; then
2412 enableval="$enable_gui"
2413
2414 if test "$enableval" = yes; then
2415 ac_cv_use_gui='wxUSE_GUI=yes'
2416 else
2417 ac_cv_use_gui='wxUSE_GUI=no'
2418 fi
2419
2420else
2421
2422 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2423 if test "x$LINE" != x ; then
2424 eval "DEFAULT_$LINE"
2425 else
2426 no_cache=1
2427 fi
2428
2429 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2430
2431fi;
2432
2433 eval "$ac_cv_use_gui"
2434 if test "$no_cache" != 1; then
2435 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2436 fi
2437
2438 if test "$wxUSE_GUI" = yes; then
2439 echo "$as_me:$LINENO: result: yes" >&5
2440echo "${ECHO_T}yes" >&6
2441 else
2442 echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6
2444 fi
2445
2446
2447 enablestring=
2448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2449echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2450 no_cache=0
2451 # Check whether --enable-monolithic or --disable-monolithic was given.
2452if test "${enable_monolithic+set}" = set; then
2453 enableval="$enable_monolithic"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2457 else
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2471
2472fi;
2473
2474 eval "$ac_cv_use_monolithic"
2475 if test "$no_cache" != 1; then
2476 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2477 fi
2478
2479 if test "$wxUSE_MONOLITHIC" = yes; then
2480 echo "$as_me:$LINENO: result: yes" >&5
2481echo "${ECHO_T}yes" >&6
2482 else
2483 echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6
2485 fi
2486
2487
2488 enablestring=
2489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2490echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2491 no_cache=0
2492 # Check whether --enable-plugins or --disable-plugins was given.
2493if test "${enable_plugins+set}" = set; then
2494 enableval="$enable_plugins"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2498 else
2499 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2500 fi
2501
2502else
2503
2504 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2512
2513fi;
2514
2515 eval "$ac_cv_use_plugins"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_PLUGINS" = yes; then
2521 echo "$as_me:$LINENO: result: yes" >&5
2522echo "${ECHO_T}yes" >&6
2523 else
2524 echo "$as_me:$LINENO: result: no" >&5
2525echo "${ECHO_T}no" >&6
2526 fi
2527
2528
2529if test "$wxUSE_GUI" = "yes"; then
2530
2531
2532 enablestring=
2533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2534echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2535 no_cache=0
2536 # Check whether --enable-universal or --disable-universal was given.
2537if test "${enable_universal+set}" = set; then
2538 enableval="$enable_universal"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2542 else
2543 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2556
2557fi;
2558
2559 eval "$ac_cv_use_universal"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_UNIVERSAL" = yes; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567 else
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
2570 fi
2571
2572
2573# Check whether --with-gtk or --without-gtk was given.
2574if test "${with_gtk+set}" = set; then
2575 withval="$with_gtk"
2576 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-motif or --without-motif was given.
2580if test "${with_motif+set}" = set; then
2581 withval="$with_motif"
2582 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2583fi;
2584
2585# Check whether --with-mac or --without-mac was given.
2586if test "${with_mac+set}" = set; then
2587 withval="$with_mac"
c228d3a4 2588 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2589fi;
2590
2591# Check whether --with-cocoa or --without-cocoa was given.
2592if test "${with_cocoa+set}" = set; then
2593 withval="$with_cocoa"
c228d3a4 2594 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2595fi;
2596
2597# Check whether --with-wine or --without-wine was given.
2598if test "${with_wine+set}" = set; then
2599 withval="$with_wine"
2600 wxUSE_WINE="$withval" CACHE_WINE=1
2601fi;
2602
2603# Check whether --with-msw or --without-msw was given.
2604if test "${with_msw+set}" = set; then
2605 withval="$with_msw"
2606 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-pm or --without-pm was given.
2610if test "${with_pm+set}" = set; then
2611 withval="$with_pm"
2612 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615# Check whether --with-mgl or --without-mgl was given.
2616if test "${with_mgl+set}" = set; then
2617 withval="$with_mgl"
2618 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621# Check whether --with-microwin or --without-microwin was given.
2622if test "${with_microwin+set}" = set; then
2623 withval="$with_microwin"
2624 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2625fi;
2626
2627# Check whether --with-x11 or --without-x11 was given.
2628if test "${with_x11+set}" = set; then
2629 withval="$with_x11"
2630 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2631fi;
2632
2633 enablestring=
2634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2635echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2636 no_cache=0
2637 # Check whether --enable-nanox or --disable-nanox was given.
2638if test "${enable_nanox+set}" = set; then
2639 enableval="$enable_nanox"
2640
2641 if test "$enableval" = yes; then
2642 ac_cv_use_nanox='wxUSE_NANOX=yes'
2643 else
2644 ac_cv_use_nanox='wxUSE_NANOX=no'
2645 fi
2646
2647else
2648
2649 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2650 if test "x$LINE" != x ; then
2651 eval "DEFAULT_$LINE"
2652 else
2653 no_cache=1
2654 fi
2655
2656 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2657
2658fi;
2659
2660 eval "$ac_cv_use_nanox"
2661 if test "$no_cache" != 1; then
2662 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2663 fi
2664
2665 if test "$wxUSE_NANOX" = yes; then
2666 echo "$as_me:$LINENO: result: yes" >&5
2667echo "${ECHO_T}yes" >&6
2668 else
2669 echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6
2671 fi
2672
2673
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2680if test "${enable_gtk2+set}" = set; then
2681 enableval="$enable_gtk2"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2685 else
2686 ac_cv_use_gtk2='wxUSE_GTK2=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2699
2700fi;
2701
2702 eval "$ac_cv_use_gtk2"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_GTK2" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
2716 enablestring=
2717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2718echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2719 no_cache=0
2720 # Check whether --enable-gpe or --disable-gpe was given.
2721if test "${enable_gpe+set}" = set; then
2722 enableval="$enable_gpe"
2723
2724 if test "$enableval" = yes; then
2725 ac_cv_use_gpe='wxUSE_GPE=yes'
2726 else
2727 ac_cv_use_gpe='wxUSE_GPE=no'
2728 fi
2729
2730else
2731
2732 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2733 if test "x$LINE" != x ; then
2734 eval "DEFAULT_$LINE"
2735 else
2736 no_cache=1
2737 fi
2738
2739 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2740
2741fi;
2742
2743 eval "$ac_cv_use_gpe"
2744 if test "$no_cache" != 1; then
2745 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2746 fi
2747
2748 if test "$wxUSE_GPE" = yes; then
2749 echo "$as_me:$LINENO: result: yes" >&5
2750echo "${ECHO_T}yes" >&6
2751 else
2752 echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
2754 fi
2755
2756
2757
2758 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2759echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2760 no_cache=0
2761
2762# Check whether --with-libpng or --without-libpng was given.
2763if test "${with_libpng+set}" = set; then
2764 withval="$with_libpng"
2765
2766 if test "$withval" = yes; then
2767 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2768 elif test "$withval" = no; then
2769 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2770 elif test "$withval" = sys; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2772 elif test "$withval" = builtin; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2774 else
2775 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2776echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2777 { (exit 1); exit 1; }; }
2778 fi
2779
2780else
2781
2782 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2790
2791fi;
2792
2793 eval "$ac_cv_use_libpng"
2794 if test "$no_cache" != 1; then
2795 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2796 fi
2797
2798 if test "$wxUSE_LIBPNG" = yes; then
2799 echo "$as_me:$LINENO: result: yes" >&5
2800echo "${ECHO_T}yes" >&6
2801 elif test "$wxUSE_LIBPNG" = no; then
2802 echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804 elif test "$wxUSE_LIBPNG" = sys; then
2805 echo "$as_me:$LINENO: result: system version" >&5
2806echo "${ECHO_T}system version" >&6
2807 elif test "$wxUSE_LIBPNG" = builtin; then
2808 echo "$as_me:$LINENO: result: builtin version" >&5
2809echo "${ECHO_T}builtin version" >&6
2810 else
2811 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2812echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2813 { (exit 1); exit 1; }; }
2814 fi
2815
2816
2817 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2818echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2819 no_cache=0
2820
2821# Check whether --with-libjpeg or --without-libjpeg was given.
2822if test "${with_libjpeg+set}" = set; then
2823 withval="$with_libjpeg"
2824
2825 if test "$withval" = yes; then
2826 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2827 elif test "$withval" = no; then
2828 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2829 elif test "$withval" = sys; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2831 elif test "$withval" = builtin; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2833 else
2834 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2835echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2836 { (exit 1); exit 1; }; }
2837 fi
2838
2839else
2840
2841 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2849
2850fi;
2851
2852 eval "$ac_cv_use_libjpeg"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_LIBJPEG" = yes; then
2858 echo "$as_me:$LINENO: result: yes" >&5
2859echo "${ECHO_T}yes" >&6
2860 elif test "$wxUSE_LIBJPEG" = no; then
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
2863 elif test "$wxUSE_LIBJPEG" = sys; then
2864 echo "$as_me:$LINENO: result: system version" >&5
2865echo "${ECHO_T}system version" >&6
2866 elif test "$wxUSE_LIBJPEG" = builtin; then
2867 echo "$as_me:$LINENO: result: builtin version" >&5
2868echo "${ECHO_T}builtin version" >&6
2869 else
2870 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2871echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2872 { (exit 1); exit 1; }; }
2873 fi
2874
2875
2876 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2877echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2878 no_cache=0
2879
2880# Check whether --with-libtiff or --without-libtiff was given.
2881if test "${with_libtiff+set}" = set; then
2882 withval="$with_libtiff"
2883
2884 if test "$withval" = yes; then
2885 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2886 elif test "$withval" = no; then
2887 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2888 elif test "$withval" = sys; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2890 elif test "$withval" = builtin; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2892 else
2893 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2894echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897
2898else
2899
2900 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2908
2909fi;
2910
2911 eval "$ac_cv_use_libtiff"
2912 if test "$no_cache" != 1; then
2913 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2914 fi
2915
2916 if test "$wxUSE_LIBTIFF" = yes; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6
2919 elif test "$wxUSE_LIBTIFF" = no; then
2920 echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6
2922 elif test "$wxUSE_LIBTIFF" = sys; then
2923 echo "$as_me:$LINENO: result: system version" >&5
2924echo "${ECHO_T}system version" >&6
2925 elif test "$wxUSE_LIBTIFF" = builtin; then
2926 echo "$as_me:$LINENO: result: builtin version" >&5
2927echo "${ECHO_T}builtin version" >&6
2928 else
2929 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2930echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2931 { (exit 1); exit 1; }; }
2932 fi
2933
2934
2935 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2936echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2937 no_cache=0
2938
2939# Check whether --with-libxpm or --without-libxpm was given.
2940if test "${with_libxpm+set}" = set; then
2941 withval="$with_libxpm"
2942
2943 if test "$withval" = yes; then
2944 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2945 elif test "$withval" = no; then
2946 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2947 elif test "$withval" = sys; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2949 elif test "$withval" = builtin; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2951 else
2952 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2953echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2954 { (exit 1); exit 1; }; }
2955 fi
2956
2957else
2958
2959 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2967
2968fi;
2969
2970 eval "$ac_cv_use_libxpm"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_LIBXPM" = yes; then
2976 echo "$as_me:$LINENO: result: yes" >&5
2977echo "${ECHO_T}yes" >&6
2978 elif test "$wxUSE_LIBXPM" = no; then
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981 elif test "$wxUSE_LIBXPM" = sys; then
2982 echo "$as_me:$LINENO: result: system version" >&5
2983echo "${ECHO_T}system version" >&6
2984 elif test "$wxUSE_LIBXPM" = builtin; then
2985 echo "$as_me:$LINENO: result: builtin version" >&5
2986echo "${ECHO_T}builtin version" >&6
2987 else
2988 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2989echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2990 { (exit 1); exit 1; }; }
2991 fi
2992
2993
2994 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2995echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2996 no_cache=0
2997
2998# Check whether --with-libmspack or --without-libmspack was given.
2999if test "${with_libmspack+set}" = set; then
3000 withval="$with_libmspack"
3001
3002 if test "$withval" = yes; then
3003 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3004 else
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3018
3019fi;
3020
3021 eval "$ac_cv_use_libmspack"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_LIBMSPACK" = yes; then
3027 echo "$as_me:$LINENO: result: yes" >&5
3028echo "${ECHO_T}yes" >&6
3029 else
3030 echo "$as_me:$LINENO: result: no" >&5
3031echo "${ECHO_T}no" >&6
3032 fi
3033
3034
3035 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3036echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3037 no_cache=0
3038
3039# Check whether --with-sdl or --without-sdl was given.
3040if test "${with_sdl+set}" = set; then
3041 withval="$with_sdl"
3042
3043 if test "$withval" = yes; then
3044 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3045 else
3046 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3059
3060fi;
3061
3062 eval "$ac_cv_use_sdl"
3063 if test "$no_cache" != 1; then
3064 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3065 fi
3066
3067 if test "$wxUSE_LIBSDL" = yes; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069echo "${ECHO_T}yes" >&6
3070 else
3071 echo "$as_me:$LINENO: result: no" >&5
3072echo "${ECHO_T}no" >&6
3073 fi
3074
3075
3076 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3077echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3078 no_cache=0
3079
3080# Check whether --with-opengl or --without-opengl was given.
3081if test "${with_opengl+set}" = set; then
3082 withval="$with_opengl"
3083
3084 if test "$withval" = yes; then
3085 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3086 else
3087 ac_cv_use_opengl='wxUSE_OPENGL=no'
3088 fi
3089
3090else
3091
3092 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3100
3101fi;
3102
3103 eval "$ac_cv_use_opengl"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_OPENGL" = yes; then
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114 fi
3115
3116
3117fi
3118
3119
3120 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3121echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-dmalloc or --without-dmalloc was given.
3125if test "${with_dmalloc+set}" = set; then
3126 withval="$with_dmalloc"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3130 else
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3144
3145fi;
3146
3147 eval "$ac_cv_use_dmalloc"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_DMALLOC" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161 echo "$as_me:$LINENO: checking for --with-regex" >&5
3162echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3163 no_cache=0
3164
3165# Check whether --with-regex or --without-regex was given.
3166if test "${with_regex+set}" = set; then
3167 withval="$with_regex"
3168
3169 if test "$withval" = yes; then
3170 ac_cv_use_regex='wxUSE_REGEX=yes'
3171 elif test "$withval" = no; then
3172 ac_cv_use_regex='wxUSE_REGEX=no'
3173 elif test "$withval" = sys; then
3174 ac_cv_use_regex='wxUSE_REGEX=sys'
3175 elif test "$withval" = builtin; then
3176 ac_cv_use_regex='wxUSE_REGEX=builtin'
3177 else
3178 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3179echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3193
3194fi;
3195
3196 eval "$ac_cv_use_regex"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_REGEX" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 elif test "$wxUSE_REGEX" = no; then
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 elif test "$wxUSE_REGEX" = sys; then
3208 echo "$as_me:$LINENO: result: system version" >&5
3209echo "${ECHO_T}system version" >&6
3210 elif test "$wxUSE_REGEX" = builtin; then
3211 echo "$as_me:$LINENO: result: builtin version" >&5
3212echo "${ECHO_T}builtin version" >&6
3213 else
3214 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3215echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3216 { (exit 1); exit 1; }; }
3217 fi
3218
3219
3220 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3221echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3222 no_cache=0
3223
3224# Check whether --with-zlib or --without-zlib was given.
3225if test "${with_zlib+set}" = set; then
3226 withval="$with_zlib"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3230 elif test "$withval" = no; then
3231 ac_cv_use_zlib='wxUSE_ZLIB=no'
3232 elif test "$withval" = sys; then
3233 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3234 elif test "$withval" = builtin; then
3235 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3236 else
3237 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3238echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3239 { (exit 1); exit 1; }; }
3240 fi
3241
3242else
3243
3244 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3252
3253fi;
3254
3255 eval "$ac_cv_use_zlib"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_ZLIB" = yes; then
3261 echo "$as_me:$LINENO: result: yes" >&5
3262echo "${ECHO_T}yes" >&6
3263 elif test "$wxUSE_ZLIB" = no; then
3264 echo "$as_me:$LINENO: result: no" >&5
3265echo "${ECHO_T}no" >&6
3266 elif test "$wxUSE_ZLIB" = sys; then
3267 echo "$as_me:$LINENO: result: system version" >&5
3268echo "${ECHO_T}system version" >&6
3269 elif test "$wxUSE_ZLIB" = builtin; then
3270 echo "$as_me:$LINENO: result: builtin version" >&5
3271echo "${ECHO_T}builtin version" >&6
3272 else
3273 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3274echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3275 { (exit 1); exit 1; }; }
3276 fi
3277
3278
3279 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3280echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3281 no_cache=0
3282
3283# Check whether --with-odbc or --without-odbc was given.
3284if test "${with_odbc+set}" = set; then
3285 withval="$with_odbc"
3286
3287 if test "$withval" = yes; then
3288 ac_cv_use_odbc='wxUSE_ODBC=yes'
3289 elif test "$withval" = no; then
3290 ac_cv_use_odbc='wxUSE_ODBC=no'
3291 elif test "$withval" = sys; then
3292 ac_cv_use_odbc='wxUSE_ODBC=sys'
3293 elif test "$withval" = builtin; then
3294 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3295 else
3296 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3297echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3298 { (exit 1); exit 1; }; }
3299 fi
3300
3301else
3302
3303 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3304 if test "x$LINE" != x ; then
3305 eval "DEFAULT_$LINE"
3306 else
3307 no_cache=1
3308 fi
3309
3310 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3311
3312fi;
3313
3314 eval "$ac_cv_use_odbc"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_ODBC" = yes; then
3320 echo "$as_me:$LINENO: result: yes" >&5
3321echo "${ECHO_T}yes" >&6
3322 elif test "$wxUSE_ODBC" = no; then
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325 elif test "$wxUSE_ODBC" = sys; then
3326 echo "$as_me:$LINENO: result: system version" >&5
3327echo "${ECHO_T}system version" >&6
3328 elif test "$wxUSE_ODBC" = builtin; then
3329 echo "$as_me:$LINENO: result: builtin version" >&5
3330echo "${ECHO_T}builtin version" >&6
3331 else
3332 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3333echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3334 { (exit 1); exit 1; }; }
3335 fi
3336
3337
3338 echo "$as_me:$LINENO: checking for --with-expat" >&5
3339echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3340 no_cache=0
3341
3342# Check whether --with-expat or --without-expat was given.
3343if test "${with_expat+set}" = set; then
3344 withval="$with_expat"
3345
3346 if test "$withval" = yes; then
3347 ac_cv_use_expat='wxUSE_EXPAT=yes'
3348 elif test "$withval" = no; then
3349 ac_cv_use_expat='wxUSE_EXPAT=no'
3350 elif test "$withval" = sys; then
3351 ac_cv_use_expat='wxUSE_EXPAT=sys'
3352 elif test "$withval" = builtin; then
3353 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3354 else
3355 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3356echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3357 { (exit 1); exit 1; }; }
3358 fi
3359
3360else
3361
3362 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3363 if test "x$LINE" != x ; then
3364 eval "DEFAULT_$LINE"
3365 else
3366 no_cache=1
3367 fi
3368
3369 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3370
3371fi;
3372
3373 eval "$ac_cv_use_expat"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_EXPAT" = yes; then
3379 echo "$as_me:$LINENO: result: yes" >&5
3380echo "${ECHO_T}yes" >&6
3381 elif test "$wxUSE_EXPAT" = no; then
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
3384 elif test "$wxUSE_EXPAT" = sys; then
3385 echo "$as_me:$LINENO: result: system version" >&5
3386echo "${ECHO_T}system version" >&6
3387 elif test "$wxUSE_EXPAT" = builtin; then
3388 echo "$as_me:$LINENO: result: builtin version" >&5
3389echo "${ECHO_T}builtin version" >&6
3390 else
3391 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3392echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3393 { (exit 1); exit 1; }; }
3394 fi
3395
3396
3397
3398
3399 enablestring=
3400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3401echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3402 no_cache=0
3403 # Check whether --enable-shared or --disable-shared was given.
3404if test "${enable_shared+set}" = set; then
3405 enableval="$enable_shared"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_shared='wxUSE_SHARED=yes'
3409 else
3410 ac_cv_use_shared='wxUSE_SHARED=no'
3411 fi
3412
3413else
3414
3415 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3423
3424fi;
3425
3426 eval "$ac_cv_use_shared"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_SHARED" = yes; then
3432 echo "$as_me:$LINENO: result: yes" >&5
3433echo "${ECHO_T}yes" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437 fi
3438
3439
3440 enablestring=
3441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3442echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3443 no_cache=0
3444 # Check whether --enable-optimise or --disable-optimise was given.
3445if test "${enable_optimise+set}" = set; then
3446 enableval="$enable_optimise"
3447
3448 if test "$enableval" = yes; then
3449 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3450 else
3451 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3464
3465fi;
3466
3467 eval "$ac_cv_use_optimise"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_OPTIMISE" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 fi
3479
3480
3481 enablestring=
3482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3483echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3484 no_cache=0
3485 # Check whether --enable-debug or --disable-debug was given.
3486if test "${enable_debug+set}" = set; then
3487 enableval="$enable_debug"
3488
3489 if test "$enableval" = yes; then
3490 ac_cv_use_debug='wxUSE_DEBUG=yes'
3491 else
3492 ac_cv_use_debug='wxUSE_DEBUG=no'
3493 fi
3494
3495else
3496
3497 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3505
3506fi;
3507
3508 eval "$ac_cv_use_debug"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_DEBUG" = yes; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515echo "${ECHO_T}yes" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518echo "${ECHO_T}no" >&6
3519 fi
3520
3521
3522 enablestring=
3523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3524echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3525 no_cache=0
3526 # Check whether --enable-stl or --disable-stl was given.
3527if test "${enable_stl+set}" = set; then
3528 enableval="$enable_stl"
3529
3530 if test "$enableval" = yes; then
3531 ac_cv_use_stl='wxUSE_STL=yes'
3532 else
3533 ac_cv_use_stl='wxUSE_STL=no'
3534 fi
3535
3536else
3537
3538 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3546
3547fi;
3548
3549 eval "$ac_cv_use_stl"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_STL" = yes; then
3555 echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
3557 else
3558 echo "$as_me:$LINENO: result: no" >&5
3559echo "${ECHO_T}no" >&6
3560 fi
3561
3562if test "$USE_OS2" = "1"; then
3563
3564 enablestring=
3565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3566echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3567 no_cache=0
3568 # Check whether --enable-omf or --disable-omf was given.
3569if test "${enable_omf+set}" = set; then
3570 enableval="$enable_omf"
3571
3572 if test "$enableval" = yes; then
3573 ac_cv_use_omf='wxUSE_OMF=yes'
3574 else
3575 ac_cv_use_omf='wxUSE_OMF=no'
3576 fi
3577
3578else
3579
3580 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3581 if test "x$LINE" != x ; then
3582 eval "DEFAULT_$LINE"
3583 else
3584 no_cache=1
3585 fi
3586
3587 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3588
3589fi;
3590
3591 eval "$ac_cv_use_omf"
3592 if test "$no_cache" != 1; then
3593 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3594 fi
3595
3596 if test "$wxUSE_OMF" = yes; then
3597 echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
3602 fi
3603
3604fi
3605
3606if test "$wxUSE_DEBUG" = "yes"; then
3607 DEFAULT_wxUSE_DEBUG_FLAG=yes
3608 DEFAULT_wxUSE_DEBUG_INFO=yes
3609 BUILD=debug
3610elif test "$wxUSE_DEBUG" = "no"; then
3611 DEFAULT_wxUSE_DEBUG_FLAG=no
3612 DEFAULT_wxUSE_DEBUG_INFO=no
3613 BUILD=release
3614fi
3615
3616
3617 enablestring=
3618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3619echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3620 no_cache=0
3621 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3622if test "${enable_debug_flag+set}" = set; then
3623 enableval="$enable_debug_flag"
3624
3625 if test "$enableval" = yes; then
3626 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3627 else
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3629 fi
3630
3631else
3632
3633 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3634 if test "x$LINE" != x ; then
3635 eval "DEFAULT_$LINE"
3636 else
3637 no_cache=1
3638 fi
3639
3640 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3641
3642fi;
3643
3644 eval "$ac_cv_use_debug_flag"
3645 if test "$no_cache" != 1; then
3646 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3647 fi
3648
3649 if test "$wxUSE_DEBUG_FLAG" = yes; then
3650 echo "$as_me:$LINENO: result: yes" >&5
3651echo "${ECHO_T}yes" >&6
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
3655 fi
3656
3657
3658 enablestring=
3659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3660echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3661 no_cache=0
3662 # Check whether --enable-debug_info or --disable-debug_info was given.
3663if test "${enable_debug_info+set}" = set; then
3664 enableval="$enable_debug_info"
3665
3666 if test "$enableval" = yes; then
3667 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3668 else
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3670 fi
3671
3672else
3673
3674 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3682
3683fi;
3684
3685 eval "$ac_cv_use_debug_info"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_DEBUG_INFO" = yes; then
3691 echo "$as_me:$LINENO: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
3693 else
3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696 fi
3697
3698
3699 enablestring=
3700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3701echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3702 no_cache=0
3703 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3704if test "${enable_debug_gdb+set}" = set; then
3705 enableval="$enable_debug_gdb"
3706
3707 if test "$enableval" = yes; then
3708 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3709 else
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3711 fi
3712
3713else
3714
3715 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3716 if test "x$LINE" != x ; then
3717 eval "DEFAULT_$LINE"
3718 else
3719 no_cache=1
3720 fi
3721
3722 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3723
3724fi;
3725
3726 eval "$ac_cv_use_debug_gdb"
3727 if test "$no_cache" != 1; then
3728 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3729 fi
3730
3731 if test "$wxUSE_DEBUG_GDB" = yes; then
3732 echo "$as_me:$LINENO: result: yes" >&5
3733echo "${ECHO_T}yes" >&6
3734 else
3735 echo "$as_me:$LINENO: result: no" >&5
3736echo "${ECHO_T}no" >&6
3737 fi
3738
3739
3740 enablestring=
3741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3742echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3743 no_cache=0
3744 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3745if test "${enable_debug_cntxt+set}" = set; then
3746 enableval="$enable_debug_cntxt"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3750 else
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3764
3765fi;
3766
3767 eval "$ac_cv_use_debug_cntxt"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3773 echo "$as_me:$LINENO: result: yes" >&5
3774echo "${ECHO_T}yes" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778 fi
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3786if test "${enable_mem_tracing+set}" = set; then
3787 enableval="$enable_mem_tracing"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3791 else
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3805
3806fi;
3807
3808 eval "$ac_cv_use_mem_tracing"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_MEM_TRACING" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-profile or --disable-profile was given.
3827if test "${enable_profile+set}" = set; then
3828 enableval="$enable_profile"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_profile='wxUSE_PROFILE=yes'
3832 else
3833 ac_cv_use_profile='wxUSE_PROFILE=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3846
3847fi;
3848
3849 eval "$ac_cv_use_profile"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_PROFILE" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3868if test "${enable_no_rtti+set}" = set; then
3869 enableval="$enable_no_rtti"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3873 else
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3887
3888fi;
3889
3890 eval "$ac_cv_use_no_rtti"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_NO_RTTI" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903
3904 enablestring=
3905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3906echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3907 no_cache=0
3908 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3909if test "${enable_no_exceptions+set}" = set; then
3910 enableval="$enable_no_exceptions"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3914 else
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3928
3929fi;
3930
3931 eval "$ac_cv_use_no_exceptions"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938echo "${ECHO_T}yes" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941echo "${ECHO_T}no" >&6
3942 fi
3943
3944
3945 enablestring=
3946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3947echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3948 no_cache=0
3949 # Check whether --enable-permissive or --disable-permissive was given.
3950if test "${enable_permissive+set}" = set; then
3951 enableval="$enable_permissive"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3955 else
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3957 fi
3958
3959else
3960
3961 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3969
3970fi;
3971
3972 eval "$ac_cv_use_permissive"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_PERMISSIVE" = yes; then
3978 echo "$as_me:$LINENO: result: yes" >&5
3979echo "${ECHO_T}yes" >&6
3980 else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983 fi
3984
3985
3986 enablestring=
3987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3988echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3989 no_cache=0
3990 # Check whether --enable-no_deps or --disable-no_deps was given.
3991if test "${enable_no_deps+set}" = set; then
3992 enableval="$enable_no_deps"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3996 else
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3998 fi
3999
4000else
4001
4002 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4010
4011fi;
4012
4013 eval "$ac_cv_use_no_deps"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_NO_DEPS" = yes; then
4019 echo "$as_me:$LINENO: result: yes" >&5
4020echo "${ECHO_T}yes" >&6
4021 else
4022 echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6
4024 fi
4025
4026
4027
4028 enablestring=
4029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4030echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4031 no_cache=0
4032 # Check whether --enable-compat22 or --disable-compat22 was given.
4033if test "${enable_compat22+set}" = set; then
4034 enableval="$enable_compat22"
4035
4036 if test "$enableval" = yes; then
4037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4038 else
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4040 fi
4041
4042else
4043
4044 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
4051 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4052
4053fi;
4054
4055 eval "$ac_cv_use_compat22"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4061 echo "$as_me:$LINENO: result: yes" >&5
4062echo "${ECHO_T}yes" >&6
4063 else
4064 echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6
4066 fi
4067
4068
4069 enablestring=disable
4070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4071echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4072 no_cache=0
4073 # Check whether --enable-compat24 or --disable-compat24 was given.
4074if test "${enable_compat24+set}" = set; then
4075 enableval="$enable_compat24"
4076
4077 if test "$enableval" = yes; then
4078 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4079 else
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4081 fi
4082
4083else
4084
4085 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4086 if test "x$LINE" != x ; then
4087 eval "DEFAULT_$LINE"
4088 else
4089 no_cache=1
4090 fi
4091
4092 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4093
4094fi;
4095
4096 eval "$ac_cv_use_compat24"
4097 if test "$no_cache" != 1; then
4098 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4099 fi
4100
4101 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103echo "${ECHO_T}yes" >&6
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106echo "${ECHO_T}no" >&6
4107 fi
4108
4109
4110# Check whether --enable-rpath or --disable-rpath was given.
4111if test "${enable_rpath+set}" = set; then
4112 enableval="$enable_rpath"
4113 wxRPATH_DIR="$enableval"
4114fi;
4115
ac1cb8d3 4116if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4117 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4118fi
4119
4120
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-intl or --disable-intl was given.
4128if test "${enable_intl+set}" = set; then
4129 enableval="$enable_intl"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_intl='wxUSE_INTL=yes'
4133 else
4134 ac_cv_use_intl='wxUSE_INTL=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4147
4148fi;
4149
4150 eval "$ac_cv_use_intl"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_INTL" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-config or --disable-config was given.
4169if test "${enable_config+set}" = set; then
4170 enableval="$enable_config"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_config='wxUSE_CONFIG=yes'
4174 else
4175 ac_cv_use_config='wxUSE_CONFIG=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4188
4189fi;
4190
4191 eval "$ac_cv_use_config"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_CONFIG" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-protocols or --disable-protocols was given.
4211if test "${enable_protocols+set}" = set; then
4212 enableval="$enable_protocols"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4216 else
4217 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4230
4231fi;
4232
4233 eval "$ac_cv_use_protocols"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_PROTOCOL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-ftp or --disable-ftp was given.
4252if test "${enable_ftp+set}" = set; then
4253 enableval="$enable_ftp"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4257 else
4258 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4271
4272fi;
4273
4274 eval "$ac_cv_use_ftp"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288 enablestring=
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4291 no_cache=0
4292 # Check whether --enable-http or --disable-http was given.
4293if test "${enable_http+set}" = set; then
4294 enableval="$enable_http"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4298 else
4299 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4312
4313fi;
4314
4315 eval "$ac_cv_use_http"
4316 if test "$no_cache" != 1; then
4317 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4318 fi
4319
4320 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
4323 else
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
4326 fi
4327
4328
4329 enablestring=
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4332 no_cache=0
4333 # Check whether --enable-fileproto or --disable-fileproto was given.
4334if test "${enable_fileproto+set}" = set; then
4335 enableval="$enable_fileproto"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4339 else
4340 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4353
4354fi;
4355
4356 eval "$ac_cv_use_fileproto"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
4364 else
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367 fi
4368
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-sockets or --disable-sockets was given.
4375if test "${enable_sockets+set}" = set; then
4376 enableval="$enable_sockets"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4380 else
4381 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4382 fi
4383
4384else
4385
4386 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4394
4395fi;
4396
4397 eval "$ac_cv_use_sockets"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_SOCKETS" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408 fi
4409
4410
4411 enablestring=
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4414 no_cache=0
4415 # Check whether --enable-ole or --disable-ole was given.
4416if test "${enable_ole+set}" = set; then
4417 enableval="$enable_ole"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_ole='wxUSE_OLE=yes'
4421 else
4422 ac_cv_use_ole='wxUSE_OLE=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4435
4436fi;
4437
4438 eval "$ac_cv_use_ole"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_OLE" = yes; then
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449 fi
4450
4451
4452 enablestring=
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4455 no_cache=0
4456 # Check whether --enable-dataobj or --disable-dataobj was given.
4457if test "${enable_dataobj+set}" = set; then
4458 enableval="$enable_dataobj"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4462 else
4463 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4476
4477fi;
4478
4479 eval "$ac_cv_use_dataobj"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_DATAOBJ" = yes; then
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487 else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
4490 fi
4491
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ipc or --disable-ipc was given.
4499if test "${enable_ipc+set}" = set; then
4500 enableval="$enable_ipc"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ipc='wxUSE_IPC=yes'
4504 else
4505 ac_cv_use_ipc='wxUSE_IPC=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4518
4519fi;
4520
4521 eval "$ac_cv_use_ipc"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_IPC" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535
4536 enablestring=
4537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4538echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4539 no_cache=0
4540 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4541if test "${enable_apple_ieee+set}" = set; then
4542 enableval="$enable_apple_ieee"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4546 else
4547 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4560
4561fi;
4562
4563 eval "$ac_cv_use_apple_ieee"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_APPLE_IEEE" = yes; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574 fi
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4582if test "${enable_catch_segvs+set}" = set; then
4583 enableval="$enable_catch_segvs"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4587 else
4588 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4601
4602fi;
4603
4604 eval "$ac_cv_use_catch_segvs"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618 enablestring=
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4621 no_cache=0
4622 # Check whether --enable-cmdline or --disable-cmdline was given.
4623if test "${enable_cmdline+set}" = set; then
4624 enableval="$enable_cmdline"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4628 else
4629 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4642
4643fi;
4644
4645 eval "$ac_cv_use_cmdline"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656 fi
4657
4658
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-datetime or --disable-datetime was given.
4664if test "${enable_datetime+set}" = set; then
4665 enableval="$enable_datetime"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4669 else
4670 ac_cv_use_datetime='wxUSE_DATETIME=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4683
4684fi;
4685
4686 eval "$ac_cv_use_datetime"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_DATETIME" = yes; then
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
4700 enablestring=
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4703 no_cache=0
4704 # Check whether --enable-dialupman or --disable-dialupman was given.
4705if test "${enable_dialupman+set}" = set; then
4706 enableval="$enable_dialupman"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4710 else
4711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4712 fi
4713
4714else
4715
4716 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4724
4725fi;
4726
4727 eval "$ac_cv_use_dialupman"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
4741 enablestring=
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4744 no_cache=0
4745 # Check whether --enable-dynlib or --disable-dynlib was given.
4746if test "${enable_dynlib+set}" = set; then
4747 enableval="$enable_dynlib"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4751 else
4752 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4753 fi
4754
4755else
4756
4757 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4765
4766fi;
4767
4768 eval "$ac_cv_use_dynlib"
4769 if test "$no_cache" != 1; then
4770 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4771 fi
4772
4773 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4787if test "${enable_dynamicloader+set}" = set; then
4788 enableval="$enable_dynamicloader"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4792 else
4793 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4806
4807fi;
4808
4809 eval "$ac_cv_use_dynamicloader"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-exceptions or --disable-exceptions was given.
4828if test "${enable_exceptions+set}" = set; then
4829 enableval="$enable_exceptions"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4833 else
4834 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4847
4848fi;
4849
4850 eval "$ac_cv_use_exceptions"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_EXCEPTIONS" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-ffile or --disable-ffile was given.
4869if test "${enable_ffile+set}" = set; then
4870 enableval="$enable_ffile"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_ffile='wxUSE_FFILE=yes'
4874 else
4875 ac_cv_use_ffile='wxUSE_FFILE=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4888
4889fi;
4890
4891 eval "$ac_cv_use_ffile"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_FFILE" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
4905 enablestring=
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4908 no_cache=0
4909 # Check whether --enable-file or --disable-file was given.
4910if test "${enable_file+set}" = set; then
4911 enableval="$enable_file"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_file='wxUSE_FILE=yes'
4915 else
4916 ac_cv_use_file='wxUSE_FILE=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4929
4930fi;
4931
4932 eval "$ac_cv_use_file"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_FILE" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946 enablestring=
4947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4948echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4949 no_cache=0
4950 # Check whether --enable-filesystem or --disable-filesystem was given.
4951if test "${enable_filesystem+set}" = set; then
4952 enableval="$enable_filesystem"
4953
4954 if test "$enableval" = yes; then
4955 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4956 else
4957 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4958 fi
4959
4960else
4961
4962 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4963 if test "x$LINE" != x ; then
4964 eval "DEFAULT_$LINE"
4965 else
4966 no_cache=1
4967 fi
4968
4969 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4970
4971fi;
4972
4973 eval "$ac_cv_use_filesystem"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_FILESYSTEM" = yes; then
4979 echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984 fi
4985
4986
4987 enablestring=
4988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4989echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4990 no_cache=0
4991 # Check whether --enable-fontmap or --disable-fontmap was given.
4992if test "${enable_fontmap+set}" = set; then
4993 enableval="$enable_fontmap"
4994
4995 if test "$enableval" = yes; then
4996 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4997 else
4998 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4999 fi
5000
5001else
5002
5003 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5011
5012fi;
5013
5014 eval "$ac_cv_use_fontmap"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_FONTMAP" = yes; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021echo "${ECHO_T}yes" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025 fi
5026
5027
5028 enablestring=
5029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5030echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5031 no_cache=0
5032 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5033if test "${enable_fs_inet+set}" = set; then
5034 enableval="$enable_fs_inet"
5035
5036 if test "$enableval" = yes; then
5037 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5038 else
5039 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5040 fi
5041
5042else
5043
5044 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 else
5048 no_cache=1
5049 fi
5050
5051 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5052
5053fi;
5054
5055 eval "$ac_cv_use_fs_inet"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_FS_INET" = yes; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066 fi
5067
5068
5069 enablestring=
5070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5072 no_cache=0
5073 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5074if test "${enable_fs_zip+set}" = set; then
5075 enableval="$enable_fs_zip"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5079 else
5080 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5093
5094fi;
5095
5096 eval "$ac_cv_use_fs_zip"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_FS_ZIP" = yes; then
5102 echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104 else
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107 fi
5108
5109
5110 enablestring=
5111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5112echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5113 no_cache=0
5114 # Check whether --enable-geometry or --disable-geometry was given.
5115if test "${enable_geometry+set}" = set; then
5116 enableval="$enable_geometry"
5117
5118 if test "$enableval" = yes; then
5119 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5120 else
5121 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5122 fi
5123
5124else
5125
5126 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5127 if test "x$LINE" != x ; then
5128 eval "DEFAULT_$LINE"
5129 else
5130 no_cache=1
5131 fi
5132
5133 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5134
5135fi;
5136
5137 eval "$ac_cv_use_geometry"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_GEOMETRY" = yes; then
5143 echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148 fi
5149
5150
5151 enablestring=
5152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5153echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5154 no_cache=0
5155 # Check whether --enable-log or --disable-log was given.
5156if test "${enable_log+set}" = set; then
5157 enableval="$enable_log"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_log='wxUSE_LOG=yes'
5161 else
5162 ac_cv_use_log='wxUSE_LOG=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5175
5176fi;
5177
5178 eval "$ac_cv_use_log"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_LOG" = yes; then
5184 echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
5186 else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189 fi
5190
5191
5192 enablestring=
5193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5194echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5195 no_cache=0
5196 # Check whether --enable-longlong or --disable-longlong was given.
5197if test "${enable_longlong+set}" = set; then
5198 enableval="$enable_longlong"
5199
5200 if test "$enableval" = yes; then
5201 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5202 else
5203 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5204 fi
5205
5206else
5207
5208 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5209 if test "x$LINE" != x ; then
5210 eval "DEFAULT_$LINE"
5211 else
5212 no_cache=1
5213 fi
5214
5215 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5216
5217fi;
5218
5219 eval "$ac_cv_use_longlong"
5220 if test "$no_cache" != 1; then
5221 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5222 fi
5223
5224 if test "$wxUSE_LONGLONG" = yes; then
5225 echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230 fi
5231
5232
5233 enablestring=
5234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5235echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5236 no_cache=0
5237 # Check whether --enable-mimetype or --disable-mimetype was given.
5238if test "${enable_mimetype+set}" = set; then
5239 enableval="$enable_mimetype"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5243 else
5244 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5257
5258fi;
5259
5260 eval "$ac_cv_use_mimetype"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_MIMETYPE" = yes; then
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 fi
5272
5273
5274 enablestring=
5275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5276echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5277 no_cache=0
5278 # Check whether --enable-mslu or --disable-mslu was given.
5279if test "${enable_mslu+set}" = set; then
5280 enableval="$enable_mslu"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5284 else
5285 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5298
5299fi;
5300
5301 eval "$ac_cv_use_mslu"
5302 if test "$no_cache" != 1; then
5303 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5304 fi
5305
5306 if test "$wxUSE_UNICODE_MSLU" = yes; then
5307 echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312 fi
5313
5314
5315 enablestring=
5316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5317echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5318 no_cache=0
5319 # Check whether --enable-snglinst or --disable-snglinst was given.
5320if test "${enable_snglinst+set}" = set; then
5321 enableval="$enable_snglinst"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5325 else
5326 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5339
5340fi;
5341
5342 eval "$ac_cv_use_snglinst"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5348 echo "$as_me:$LINENO: result: yes" >&5
5349echo "${ECHO_T}yes" >&6
5350 else
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353 fi
5354
5355
5356 enablestring=
5357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5358echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5359 no_cache=0
5360 # Check whether --enable-streams or --disable-streams was given.
5361if test "${enable_streams+set}" = set; then
5362 enableval="$enable_streams"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_streams='wxUSE_STREAMS=yes'
5366 else
5367 ac_cv_use_streams='wxUSE_STREAMS=no'
5368 fi
5369
5370else
5371
5372 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5380
5381fi;
5382
5383 eval "$ac_cv_use_streams"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_STREAMS" = yes; then
5389 echo "$as_me:$LINENO: result: yes" >&5
5390echo "${ECHO_T}yes" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394 fi
5395
5396
5397 enablestring=
5398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5399echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5400 no_cache=0
5401 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5402if test "${enable_std_iostreams+set}" = set; then
5403 enableval="$enable_std_iostreams"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5407 else
5408 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5421
5422fi;
5423
5424 eval "$ac_cv_use_std_iostreams"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_STD_IOSTREAM" = yes; then
5430 echo "$as_me:$LINENO: result: yes" >&5
5431echo "${ECHO_T}yes" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435 fi
5436
5437
5438 enablestring=
5439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5440echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5441 no_cache=0
5442 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5443if test "${enable_stopwatch+set}" = set; then
5444 enableval="$enable_stopwatch"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5448 else
5449 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5450 fi
5451
5452else
5453
5454 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5462
5463fi;
5464
5465 eval "$ac_cv_use_stopwatch"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_STOPWATCH" = yes; then
5471 echo "$as_me:$LINENO: result: yes" >&5
5472echo "${ECHO_T}yes" >&6
5473 else
5474 echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
5476 fi
5477
5478
5479 enablestring=
5480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5481echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5482 no_cache=0
5483 # Check whether --enable-system_options or --disable-system_options was given.
5484if test "${enable_system_options+set}" = set; then
5485 enableval="$enable_system_options"
5486
5487 if test "$enableval" = yes; then
5488 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5489 else
5490 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5491 fi
5492
5493else
5494
5495 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5503
5504fi;
5505
5506 eval "$ac_cv_use_system_options"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5512 echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
5514 else
5515 echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
5517 fi
5518
5519
5520 enablestring=
5521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5522echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5523 no_cache=0
5524 # Check whether --enable-textbuf or --disable-textbuf was given.
5525if test "${enable_textbuf+set}" = set; then
5526 enableval="$enable_textbuf"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5530 else
5531 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5532 fi
5533
5534else
5535
5536 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5544
5545fi;
5546
5547 eval "$ac_cv_use_textbuf"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_TEXTBUFFER" = yes; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554echo "${ECHO_T}yes" >&6
5555 else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558 fi
5559
5560
5561 enablestring=
5562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5563echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5564 no_cache=0
5565 # Check whether --enable-textfile or --disable-textfile was given.
5566if test "${enable_textfile+set}" = set; then
5567 enableval="$enable_textfile"
5568
5569 if test "$enableval" = yes; then
5570 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5571 else
5572 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5573 fi
5574
5575else
5576
5577 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5585
5586fi;
5587
5588 eval "$ac_cv_use_textfile"
5589 if test "$no_cache" != 1; then
5590 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5591 fi
5592
5593 if test "$wxUSE_TEXTFILE" = yes; then
5594 echo "$as_me:$LINENO: result: yes" >&5
5595echo "${ECHO_T}yes" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599 fi
5600
5601
5602 enablestring=
5603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5604echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5605 no_cache=0
5606 # Check whether --enable-timer or --disable-timer was given.
5607if test "${enable_timer+set}" = set; then
5608 enableval="$enable_timer"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_timer='wxUSE_TIMER=yes'
5612 else
5613 ac_cv_use_timer='wxUSE_TIMER=no'
5614 fi
5615
5616else
5617
5618 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5626
5627fi;
5628
5629 eval "$ac_cv_use_timer"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_TIMER" = yes; then
5635 echo "$as_me:$LINENO: result: yes" >&5
5636echo "${ECHO_T}yes" >&6
5637 else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640 fi
5641
5642
5643 enablestring=
5644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5645echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5646 no_cache=0
5647 # Check whether --enable-unicode or --disable-unicode was given.
5648if test "${enable_unicode+set}" = set; then
5649 enableval="$enable_unicode"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5653 else
5654 ac_cv_use_unicode='wxUSE_UNICODE=no'
5655 fi
5656
5657else
5658
5659 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5667
5668fi;
5669
5670 eval "$ac_cv_use_unicode"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_UNICODE" = yes; then
5676 echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680echo "${ECHO_T}no" >&6
5681 fi
5682
5683
5684 enablestring=
5685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5686echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5687 no_cache=0
5688 # Check whether --enable-sound or --disable-sound was given.
5689if test "${enable_sound+set}" = set; then
5690 enableval="$enable_sound"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_sound='wxUSE_SOUND=yes'
5694 else
5695 ac_cv_use_sound='wxUSE_SOUND=no'
5696 fi
5697
5698else
5699
5700 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5708
5709fi;
5710
5711 eval "$ac_cv_use_sound"
5712 if test "$no_cache" != 1; then
5713 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5714 fi
5715
5716 if test "$wxUSE_SOUND" = yes; then
5717 echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6
5719 else
5720 echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722 fi
5723
5724
5725 enablestring=
5726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5727echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5728 no_cache=0
5729 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5730if test "${enable_wxprintfv+set}" = set; then
5731 enableval="$enable_wxprintfv"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5735 else
5736 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5749
5750fi;
5751
5752 eval "$ac_cv_use_wxprintfv"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5758 echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760 else
5761 echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763 fi
5764
5765
5766 enablestring=
5767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5768echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5769 no_cache=0
5770 # Check whether --enable-zipstream or --disable-zipstream was given.
5771if test "${enable_zipstream+set}" = set; then
5772 enableval="$enable_zipstream"
5773
5774 if test "$enableval" = yes; then
5775 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5776 else
5777 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5778 fi
5779
5780else
5781
5782 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5790
5791fi;
5792
5793 eval "$ac_cv_use_zipstream"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_ZIPSTREAM" = yes; then
5799 echo "$as_me:$LINENO: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
5801 else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804 fi
5805
5806
a848cd7e
SC
5807
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-url or --disable-url was given.
5813if test "${enable_url+set}" = set; then
5814 enableval="$enable_url"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_url='wxUSE_URL=yes'
5818 else
5819 ac_cv_use_url='wxUSE_URL=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5832
5833fi;
5834
5835 eval "$ac_cv_use_url"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_URL" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-protocol or --disable-protocol was given.
5854if test "${enable_protocol+set}" = set; then
5855 enableval="$enable_protocol"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5859 else
5860 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5873
5874fi;
5875
5876 eval "$ac_cv_use_protocol"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_PROTOCOL" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5895if test "${enable_protocol_http+set}" = set; then
5896 enableval="$enable_protocol_http"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5900 else
5901 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5914
5915fi;
5916
5917 eval "$ac_cv_use_protocol_http"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
5931 enablestring=
5932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5933echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5934 no_cache=0
5935 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5936if test "${enable_protocol_ftp+set}" = set; then
5937 enableval="$enable_protocol_ftp"
5938
5939 if test "$enableval" = yes; then
5940 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5941 else
5942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5943 fi
5944
5945else
5946
5947 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5948 if test "x$LINE" != x ; then
5949 eval "DEFAULT_$LINE"
5950 else
5951 no_cache=1
5952 fi
5953
5954 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5955
5956fi;
5957
5958 eval "$ac_cv_use_protocol_ftp"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969 fi
5970
5971
5972 enablestring=
5973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5974echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5975 no_cache=0
5976 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5977if test "${enable_protocol_file+set}" = set; then
5978 enableval="$enable_protocol_file"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5982 else
5983 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5996
5997fi;
5998
5999 eval "$ac_cv_use_protocol_file"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6005 echo "$as_me:$LINENO: result: yes" >&5
6006echo "${ECHO_T}yes" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010 fi
6011
6012
6013
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-threads or --disable-threads was given.
6021if test "${enable_threads+set}" = set; then
6022 enableval="$enable_threads"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_threads='wxUSE_THREADS=yes'
6026 else
6027 ac_cv_use_threads='wxUSE_THREADS=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6040
6041fi;
6042
6043 eval "$ac_cv_use_threads"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_THREADS" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
6057if test "$wxUSE_GUI" = "yes"; then
6058
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-docview or --disable-docview was given.
6066if test "${enable_docview+set}" = set; then
6067 enableval="$enable_docview"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6071 else
6072 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6085
6086fi;
6087
6088 eval "$ac_cv_use_docview"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099 fi
6100
6101
6102 enablestring=
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-help or --disable-help was given.
6107if test "${enable_help+set}" = set; then
6108 enableval="$enable_help"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_help='wxUSE_HELP=yes'
6112 else
6113 ac_cv_use_help='wxUSE_HELP=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6126
6127fi;
6128
6129 eval "$ac_cv_use_help"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_HELP" = yes; then
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
6137 else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140 fi
6141
6142
6143 enablestring=
6144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6145echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6146 no_cache=0
6147 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6148if test "${enable_mshtmlhelp+set}" = set; then
6149 enableval="$enable_mshtmlhelp"
6150
6151 if test "$enableval" = yes; then
6152 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6153 else
6154 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6155 fi
6156
6157else
6158
6159 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6167
6168fi;
6169
6170 eval "$ac_cv_use_mshtmlhelp"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_MS_HTML_HELP" = yes; then
6176 echo "$as_me:$LINENO: result: yes" >&5
6177echo "${ECHO_T}yes" >&6
6178 else
6179 echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6
6181 fi
6182
6183
6184 enablestring=
6185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6186echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6187 no_cache=0
6188 # Check whether --enable-html or --disable-html was given.
6189if test "${enable_html+set}" = set; then
6190 enableval="$enable_html"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_html='wxUSE_HTML=yes'
6194 else
6195 ac_cv_use_html='wxUSE_HTML=no'
6196 fi
6197
6198else
6199
6200 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6208
6209fi;
6210
6211 eval "$ac_cv_use_html"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_HTML" = yes; then
6217 echo "$as_me:$LINENO: result: yes" >&5
6218echo "${ECHO_T}yes" >&6
6219 else
6220 echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6
6222 fi
6223
6224
6225 enablestring=
6226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6227echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6228 no_cache=0
6229 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6230if test "${enable_htmlhelp+set}" = set; then
6231 enableval="$enable_htmlhelp"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6235 else
6236 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6237 fi
6238
6239else
6240
6241 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6249
6250fi;
6251
6252 eval "$ac_cv_use_htmlhelp"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_WXHTML_HELP" = yes; then
6258 echo "$as_me:$LINENO: result: yes" >&5
6259echo "${ECHO_T}yes" >&6
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
6263 fi
6264
6265
9a8f0513
VS
6266 enablestring=
6267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6268echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6269 no_cache=0
6270 # Check whether --enable-xrc or --disable-xrc was given.
6271if test "${enable_xrc+set}" = set; then
6272 enableval="$enable_xrc"
6273
6274 if test "$enableval" = yes; then
6275 ac_cv_use_xrc='wxUSE_XRC=yes'
6276 else
6277 ac_cv_use_xrc='wxUSE_XRC=no'
6278 fi
6279
6280else
6281
6282 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6290
6291fi;
6292
6293 eval "$ac_cv_use_xrc"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_XRC" = yes; then
6299 echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6
6304 fi
6305
6306
a848cd7e
SC
6307 enablestring=
6308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6309echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6310 no_cache=0
6311 # Check whether --enable-constraints or --disable-constraints was given.
6312if test "${enable_constraints+set}" = set; then
6313 enableval="$enable_constraints"
6314
6315 if test "$enableval" = yes; then
6316 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6317 else
6318 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6319 fi
6320
6321else
6322
6323 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6324 if test "x$LINE" != x ; then
6325 eval "DEFAULT_$LINE"
6326 else
6327 no_cache=1
6328 fi
6329
6330 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6331
6332fi;
6333
6334 eval "$ac_cv_use_constraints"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_CONSTRAINTS" = yes; then
6340 echo "$as_me:$LINENO: result: yes" >&5
6341echo "${ECHO_T}yes" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345 fi
6346
6347
6348 enablestring=
6349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6350echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6351 no_cache=0
6352 # Check whether --enable-printarch or --disable-printarch was given.
6353if test "${enable_printarch+set}" = set; then
6354 enableval="$enable_printarch"
6355
6356 if test "$enableval" = yes; then
6357 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6358 else
6359 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6360 fi
6361
6362else
6363
6364 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6365 if test "x$LINE" != x ; then
6366 eval "DEFAULT_$LINE"
6367 else
6368 no_cache=1
6369 fi
6370
6371 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6372
6373fi;
6374
6375 eval "$ac_cv_use_printarch"
6376 if test "$no_cache" != 1; then
6377 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6378 fi
6379
6380 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6381 echo "$as_me:$LINENO: result: yes" >&5
6382echo "${ECHO_T}yes" >&6
6383 else
6384 echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386 fi
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-mdi or --disable-mdi was given.
6394if test "${enable_mdi+set}" = set; then
6395 enableval="$enable_mdi"
6396
6397 if test "$enableval" = yes; then
8a7b1113 6398 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6399 else
8a7b1113 6400 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6401 fi
6402
6403else
6404
8a7b1113 6405 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
8a7b1113 6412 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6413
6414fi;
6415
6416 eval "$ac_cv_use_mdi"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6419 fi
6420
8a7b1113
VZ
6421 if test "$wxUSE_MDI" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430 enablestring=
6431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6432echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6433 no_cache=0
6434 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6435if test "${enable_mdidoc+set}" = set; then
6436 enableval="$enable_mdidoc"
6437
6438 if test "$enableval" = yes; then
6439 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6440 else
6441 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6442 fi
6443
6444else
6445
6446 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6454
6455fi;
6456
6457 eval "$ac_cv_use_mdidoc"
6458 if test "$no_cache" != 1; then
6459 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6460 fi
6461
a848cd7e
SC
6462 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6463 echo "$as_me:$LINENO: result: yes" >&5
6464echo "${ECHO_T}yes" >&6
6465 else
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
6468 fi
6469
6470
6471 enablestring=
6472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6473echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6474 no_cache=0
6475 # Check whether --enable-loggui or --disable-loggui was given.
6476if test "${enable_loggui+set}" = set; then
6477 enableval="$enable_loggui"
6478
6479 if test "$enableval" = yes; then
6480 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6481 else
6482 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6483 fi
6484
6485else
6486
6487 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6488 if test "x$LINE" != x ; then
6489 eval "DEFAULT_$LINE"
6490 else
6491 no_cache=1
6492 fi
6493
6494 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6495
6496fi;
6497
6498 eval "$ac_cv_use_loggui"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_LOGGUI" = yes; then
6504 echo "$as_me:$LINENO: result: yes" >&5
6505echo "${ECHO_T}yes" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6
6509 fi
6510
6511
6512 enablestring=
6513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6514echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6515 no_cache=0
6516 # Check whether --enable-logwin or --disable-logwin was given.
6517if test "${enable_logwin+set}" = set; then
6518 enableval="$enable_logwin"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6522 else
6523 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6536
6537fi;
6538
6539 eval "$ac_cv_use_logwin"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_LOGWINDOW" = yes; then
6545 echo "$as_me:$LINENO: result: yes" >&5
6546echo "${ECHO_T}yes" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
6550 fi
6551
6552
6553 enablestring=
6554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6555echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6556 no_cache=0
6557 # Check whether --enable-logdialog or --disable-logdialog was given.
6558if test "${enable_logdialog+set}" = set; then
6559 enableval="$enable_logdialog"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6563 else
6564 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6565 fi
6566
6567else
6568
6569 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6577
6578fi;
6579
6580 eval "$ac_cv_use_logdialog"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_LOGDIALOG" = yes; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 else
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591 fi
6592
6593
646b6ec1
VS
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6596echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-webkit or --disable-webkit was given.
6599if test "${enable_webkit+set}" = set; then
6600 enableval="$enable_webkit"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6604 else
6605 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6606 fi
6607
6608else
6609
6610 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6618
6619fi;
6620
6621 eval "$ac_cv_use_webkit"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_WEBKIT" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6
6632 fi
6633
6634
a848cd7e
SC
6635
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-postscript or --disable-postscript was given.
6641if test "${enable_postscript+set}" = set; then
6642 enableval="$enable_postscript"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6646 else
6647 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6660
6661fi;
6662
6663 eval "$ac_cv_use_postscript"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_POSTSCRIPT" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677
6678
6679
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6682echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-prologio or --disable-prologio was given.
6685if test "${enable_prologio+set}" = set; then
6686 enableval="$enable_prologio"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6690 else
6691 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6692 fi
6693
6694else
6695
6696 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6704
6705fi;
6706
6707 eval "$ac_cv_use_prologio"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_PROLOGIO" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6723echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-resources or --disable-resources was given.
6726if test "${enable_resources+set}" = set; then
6727 enableval="$enable_resources"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6731 else
6732 ac_cv_use_resources='wxUSE_RESOURCES=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6745
6746fi;
6747
6748 eval "$ac_cv_use_resources"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_RESOURCES" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762
6763
6764 enablestring=
6765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6766echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6767 no_cache=0
6768 # Check whether --enable-clipboard or --disable-clipboard was given.
6769if test "${enable_clipboard+set}" = set; then
6770 enableval="$enable_clipboard"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6774 else
6775 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6788
6789fi;
6790
6791 eval "$ac_cv_use_clipboard"
6792 if test "$no_cache" != 1; then
6793 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6794 fi
6795
6796 if test "$wxUSE_CLIPBOARD" = yes; then
6797 echo "$as_me:$LINENO: result: yes" >&5
6798echo "${ECHO_T}yes" >&6
6799 else
6800 echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6
6802 fi
6803
6804
6805 enablestring=
6806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6807echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6808 no_cache=0
6809 # Check whether --enable-dnd or --disable-dnd was given.
6810if test "${enable_dnd+set}" = set; then
6811 enableval="$enable_dnd"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6815 else
6816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6829
6830fi;
6831
6832 eval "$ac_cv_use_dnd"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6838 echo "$as_me:$LINENO: result: yes" >&5
6839echo "${ECHO_T}yes" >&6
6840 else
6841 echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
6843 fi
6844
6845
6846 enablestring=
6847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6848echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6849 no_cache=0
6850 # Check whether --enable-metafile or --disable-metafile was given.
6851if test "${enable_metafile+set}" = set; then
6852 enableval="$enable_metafile"
6853
6854 if test "$enableval" = yes; then
6855 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6856 else
6857 ac_cv_use_metafile='wxUSE_METAFILE=no'
6858 fi
6859
6860else
6861
6862 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6870
6871fi;
6872
6873 eval "$ac_cv_use_metafile"
6874 if test "$no_cache" != 1; then
6875 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6876 fi
6877
6878 if test "$wxUSE_METAFILE" = yes; then
6879 echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6
6881 else
6882 echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6
6884 fi
6885
6886
6887
6888
6889
6890 enablestring=
6891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6892echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6893 no_cache=0
6894 # Check whether --enable-controls or --disable-controls was given.
6895if test "${enable_controls+set}" = set; then
6896 enableval="$enable_controls"
6897
6898 if test "$enableval" = yes; then
6899 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6900 else
6901 ac_cv_use_controls='wxUSE_CONTROLS=no'
6902 fi
6903
6904else
6905
6906 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6907 if test "x$LINE" != x ; then
6908 eval "DEFAULT_$LINE"
6909 else
6910 no_cache=1
6911 fi
6912
6913 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6914
6915fi;
6916
6917 eval "$ac_cv_use_controls"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_CONTROLS" = yes; then
6923 echo "$as_me:$LINENO: result: yes" >&5
6924echo "${ECHO_T}yes" >&6
6925 else
6926 echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6
6928 fi
6929
6930
6931if test "$wxUSE_CONTROLS" = "yes"; then
6932 DEFAULT_wxUSE_ACCEL=yes
6933 DEFAULT_wxUSE_BMPBUTTON=yes
6934 DEFAULT_wxUSE_BUTTON=yes
6935 DEFAULT_wxUSE_CALCTRL=no
6936 DEFAULT_wxUSE_CARET=yes
6937 DEFAULT_wxUSE_COMBOBOX=yes
6938 DEFAULT_wxUSE_CHECKBOX=yes
6939 DEFAULT_wxUSE_CHECKLISTBOX=yes
6940 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6941 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6942 DEFAULT_wxUSE_GAUGE=yes
6943 DEFAULT_wxUSE_GRID=yes
6944 DEFAULT_wxUSE_IMAGLIST=yes
6945 DEFAULT_wxUSE_LISTBOOK=yes
6946 DEFAULT_wxUSE_LISTBOX=yes
6947 DEFAULT_wxUSE_LISTCTRL=yes
6948 DEFAULT_wxUSE_NOTEBOOK=yes
6949 DEFAULT_wxUSE_RADIOBOX=yes
6950 DEFAULT_wxUSE_RADIOBTN=yes
6951 DEFAULT_wxUSE_SASH=yes
6952 DEFAULT_wxUSE_SCROLLBAR=yes
6953 DEFAULT_wxUSE_SLIDER=yes
6954 DEFAULT_wxUSE_SPINBTN=yes
6955 DEFAULT_wxUSE_SPINCTRL=yes
6956 DEFAULT_wxUSE_SPLITTER=yes
6957 DEFAULT_wxUSE_STATBMP=yes
6958 DEFAULT_wxUSE_STATBOX=yes
6959 DEFAULT_wxUSE_STATLINE=yes
6960 DEFAULT_wxUSE_STATUSBAR=yes
6961 DEFAULT_wxUSE_TAB_DIALOG=yes
6962 DEFAULT_wxUSE_TOGGLEBTN=yes
6963 DEFAULT_wxUSE_TOOLBAR=yes
6964 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6965 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6966 DEFAULT_wxUSE_TOOLTIPS=yes
6967 DEFAULT_wxUSE_TREECTRL=yes
6968 DEFAULT_wxUSE_POPUPWIN=yes
6969 DEFAULT_wxUSE_TIPWINDOW=yes
6970elif test "$wxUSE_CONTROLS" = "no"; then
6971 DEFAULT_wxUSE_ACCEL=no
6972 DEFAULT_wxUSE_BMPBUTTON=no
6973 DEFAULT_wxUSE_BUTTON=no
6974 DEFAULT_wxUSE_CALCTRL=no
6975 DEFAULT_wxUSE_CARET=no
6976 DEFAULT_wxUSE_COMBOBOX=no
6977 DEFAULT_wxUSE_CHECKBOX=no
6978 DEFAULT_wxUSE_CHECKLISTBOX=no
6979 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 6980 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
6981 DEFAULT_wxUSE_GAUGE=no
6982 DEFAULT_wxUSE_GRID=no
6983 DEFAULT_wxUSE_IMAGLIST=no
6984 DEFAULT_wxUSE_LISTBOOK=no
6985 DEFAULT_wxUSE_LISTBOX=no
6986 DEFAULT_wxUSE_LISTCTRL=no
6987 DEFAULT_wxUSE_NOTEBOOK=no
6988 DEFAULT_wxUSE_RADIOBOX=no
6989 DEFAULT_wxUSE_RADIOBTN=no
6990 DEFAULT_wxUSE_SASH=no
6991 DEFAULT_wxUSE_SCROLLBAR=no
6992 DEFAULT_wxUSE_SLIDER=no
6993 DEFAULT_wxUSE_SPINBTN=no
6994 DEFAULT_wxUSE_SPINCTRL=no
6995 DEFAULT_wxUSE_SPLITTER=no
6996 DEFAULT_wxUSE_STATBMP=no
6997 DEFAULT_wxUSE_STATBOX=no
6998 DEFAULT_wxUSE_STATLINE=no
6999 DEFAULT_wxUSE_STATUSBAR=no
7000 DEFAULT_wxUSE_TAB_DIALOG=no
7001 DEFAULT_wxUSE_TOGGLEBTN=no
7002 DEFAULT_wxUSE_TOOLBAR=no
7003 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7004 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7005 DEFAULT_wxUSE_TOOLTIPS=no
7006 DEFAULT_wxUSE_TREECTRL=no
7007 DEFAULT_wxUSE_POPUPWIN=no
7008 DEFAULT_wxUSE_TIPWINDOW=no
7009fi
7010
7011## FIXME: This is a blatant hack
7012if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
7013 wxUSE_PRINTING_ARCHITECTURE=no
7014 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
7015 DEFAULT_wxUSE_DRAGIMAGE=no
7016fi
7017
7018
7019 enablestring=
7020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7021echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7022 no_cache=0
7023 # Check whether --enable-accel or --disable-accel was given.
7024if test "${enable_accel+set}" = set; then
7025 enableval="$enable_accel"
7026
7027 if test "$enableval" = yes; then
7028 ac_cv_use_accel='wxUSE_ACCEL=yes'
7029 else
7030 ac_cv_use_accel='wxUSE_ACCEL=no'
7031 fi
7032
7033else
7034
7035 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7036 if test "x$LINE" != x ; then
7037 eval "DEFAULT_$LINE"
7038 else
7039 no_cache=1
7040 fi
7041
7042 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7043
7044fi;
7045
7046 eval "$ac_cv_use_accel"
7047 if test "$no_cache" != 1; then
7048 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7049 fi
7050
7051 if test "$wxUSE_ACCEL" = yes; then
7052 echo "$as_me:$LINENO: result: yes" >&5
7053echo "${ECHO_T}yes" >&6
7054 else
7055 echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6
7057 fi
7058
7059
7060 enablestring=
7061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7062echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7063 no_cache=0
7064 # Check whether --enable-button or --disable-button was given.
7065if test "${enable_button+set}" = set; then
7066 enableval="$enable_button"
7067
7068 if test "$enableval" = yes; then
7069 ac_cv_use_button='wxUSE_BUTTON=yes'
7070 else
7071 ac_cv_use_button='wxUSE_BUTTON=no'
7072 fi
7073
7074else
7075
7076 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7077 if test "x$LINE" != x ; then
7078 eval "DEFAULT_$LINE"
7079 else
7080 no_cache=1
7081 fi
7082
7083 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7084
7085fi;
7086
7087 eval "$ac_cv_use_button"
7088 if test "$no_cache" != 1; then
7089 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7090 fi
7091
7092 if test "$wxUSE_BUTTON" = yes; then
7093 echo "$as_me:$LINENO: result: yes" >&5
7094echo "${ECHO_T}yes" >&6
7095 else
7096 echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098 fi
7099
7100
7101 enablestring=
7102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7103echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7104 no_cache=0
7105 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7106if test "${enable_bmpbutton+set}" = set; then
7107 enableval="$enable_bmpbutton"
7108
7109 if test "$enableval" = yes; then
7110 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7111 else
7112 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7113 fi
7114
7115else
7116
7117 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7118 if test "x$LINE" != x ; then
7119 eval "DEFAULT_$LINE"
7120 else
7121 no_cache=1
7122 fi
7123
7124 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7125
7126fi;
7127
7128 eval "$ac_cv_use_bmpbutton"
7129 if test "$no_cache" != 1; then
7130 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7131 fi
7132
7133 if test "$wxUSE_BMPBUTTON" = yes; then
7134 echo "$as_me:$LINENO: result: yes" >&5
7135echo "${ECHO_T}yes" >&6
7136 else
7137 echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
7139 fi
7140
7141
7142 enablestring=
7143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7145 no_cache=0
7146 # Check whether --enable-calendar or --disable-calendar was given.
7147if test "${enable_calendar+set}" = set; then
7148 enableval="$enable_calendar"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7152 else
7153 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7154 fi
7155
7156else
7157
7158 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7166
7167fi;
7168
7169 eval "$ac_cv_use_calendar"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_CALCTRL" = yes; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180 fi
7181
7182
7183 enablestring=
7184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7185echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7186 no_cache=0
7187 # Check whether --enable-caret or --disable-caret was given.
7188if test "${enable_caret+set}" = set; then
7189 enableval="$enable_caret"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_caret='wxUSE_CARET=yes'
7193 else
7194 ac_cv_use_caret='wxUSE_CARET=no'
7195 fi
7196
7197else
7198
7199 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7207
7208fi;
7209
7210 eval "$ac_cv_use_caret"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_CARET" = yes; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217echo "${ECHO_T}yes" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221 fi
7222
7223
7224 enablestring=
7225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7226echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7227 no_cache=0
7228 # Check whether --enable-checkbox or --disable-checkbox was given.
7229if test "${enable_checkbox+set}" = set; then
7230 enableval="$enable_checkbox"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7234 else
7235 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7248
7249fi;
7250
7251 eval "$ac_cv_use_checkbox"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_CHECKBOX" = yes; then
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 enablestring=
7266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7267echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7268 no_cache=0
7269 # Check whether --enable-checklst or --disable-checklst was given.
7270if test "${enable_checklst+set}" = set; then
7271 enableval="$enable_checklst"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7275 else
7276 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7289
7290fi;
7291
7292 eval "$ac_cv_use_checklst"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_CHECKLST" = yes; then
7298 echo "$as_me:$LINENO: result: yes" >&5
7299echo "${ECHO_T}yes" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303 fi
7304
7305
7306 enablestring=
7307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7308echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7309 no_cache=0
7310 # Check whether --enable-choice or --disable-choice was given.
7311if test "${enable_choice+set}" = set; then
7312 enableval="$enable_choice"
7313
7314 if test "$enableval" = yes; then
7315 ac_cv_use_choice='wxUSE_CHOICE=yes'
7316 else
7317 ac_cv_use_choice='wxUSE_CHOICE=no'
7318 fi
7319
7320else
7321
7322 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7323 if test "x$LINE" != x ; then
7324 eval "DEFAULT_$LINE"
7325 else
7326 no_cache=1
7327 fi
7328
7329 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7330
7331fi;
7332
7333 eval "$ac_cv_use_choice"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_CHOICE" = yes; then
7339 echo "$as_me:$LINENO: result: yes" >&5
7340echo "${ECHO_T}yes" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344 fi
7345
7346
92bbdbcd
WS
7347 enablestring=
7348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7349echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7350 no_cache=0
7351 # Check whether --enable-choicebook or --disable-choicebook was given.
7352if test "${enable_choicebook+set}" = set; then
7353 enableval="$enable_choicebook"
7354
7355 if test "$enableval" = yes; then
7356 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7357 else
7358 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7359 fi
7360
7361else
7362
7363 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7364 if test "x$LINE" != x ; then
7365 eval "DEFAULT_$LINE"
7366 else
7367 no_cache=1
7368 fi
7369
7370 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7371
7372fi;
7373
7374 eval "$ac_cv_use_choicebook"
7375 if test "$no_cache" != 1; then
7376 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7377 fi
7378
7379 if test "$wxUSE_CHOICEBOOK" = yes; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385 fi
7386
7387
a848cd7e
SC
7388 enablestring=
7389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7390echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7391 no_cache=0
7392 # Check whether --enable-combobox or --disable-combobox was given.
7393if test "${enable_combobox+set}" = set; then
7394 enableval="$enable_combobox"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7398 else
7399 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7412
7413fi;
7414
7415 eval "$ac_cv_use_combobox"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_COMBOBOX" = yes; then
7421 echo "$as_me:$LINENO: result: yes" >&5
7422echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426 fi
7427
7428
7429 enablestring=
7430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7432 no_cache=0
7433 # Check whether --enable-display or --disable-display was given.
7434if test "${enable_display+set}" = set; then
7435 enableval="$enable_display"
7436
7437 if test "$enableval" = yes; then
7438 ac_cv_use_display='wxUSE_DISPLAY=yes'
7439 else
7440 ac_cv_use_display='wxUSE_DISPLAY=no'
7441 fi
7442
7443else
7444
7445 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7446 if test "x$LINE" != x ; then
7447 eval "DEFAULT_$LINE"
7448 else
7449 no_cache=1
7450 fi
7451
7452 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7453
7454fi;
7455
7456 eval "$ac_cv_use_display"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_DISPLAY" = yes; then
7462 echo "$as_me:$LINENO: result: yes" >&5
7463echo "${ECHO_T}yes" >&6
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467 fi
7468
7469
7470 enablestring=
7471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7472echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7473 no_cache=0
7474 # Check whether --enable-gauge or --disable-gauge was given.
7475if test "${enable_gauge+set}" = set; then
7476 enableval="$enable_gauge"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7480 else
7481 ac_cv_use_gauge='wxUSE_GAUGE=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7494
7495fi;
7496
7497 eval "$ac_cv_use_gauge"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_GAUGE" = yes; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508 fi
7509
7510
7511 enablestring=
7512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7513echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7514 no_cache=0
7515 # Check whether --enable-grid or --disable-grid was given.
7516if test "${enable_grid+set}" = set; then
7517 enableval="$enable_grid"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_grid='wxUSE_GRID=yes'
7521 else
7522 ac_cv_use_grid='wxUSE_GRID=no'
7523 fi
7524
7525else
7526
7527 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7535
7536fi;
7537
7538 eval "$ac_cv_use_grid"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_GRID" = yes; then
7544 echo "$as_me:$LINENO: result: yes" >&5
7545echo "${ECHO_T}yes" >&6
7546 else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549 fi
7550
7551
7552 enablestring=
7553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7554echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7555 no_cache=0
7556 # Check whether --enable-imaglist or --disable-imaglist was given.
7557if test "${enable_imaglist+set}" = set; then
7558 enableval="$enable_imaglist"
7559
7560 if test "$enableval" = yes; then
7561 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7562 else
7563 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7564 fi
7565
7566else
7567
7568 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7576
7577fi;
7578
7579 eval "$ac_cv_use_imaglist"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_IMAGLIST" = yes; then
7585 echo "$as_me:$LINENO: result: yes" >&5
7586echo "${ECHO_T}yes" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590 fi
7591
7592
7593 enablestring=
7594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7595echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7596 no_cache=0
7597 # Check whether --enable-listbook or --disable-listbook was given.
7598if test "${enable_listbook+set}" = set; then
7599 enableval="$enable_listbook"
7600
7601 if test "$enableval" = yes; then
7602 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7603 else
7604 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7605 fi
7606
7607else
7608
7609 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7617
7618fi;
7619
7620 eval "$ac_cv_use_listbook"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_LISTBOOK" = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
7628 else
7629 echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
7631 fi
7632
7633
7634 enablestring=
7635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7636echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7637 no_cache=0
7638 # Check whether --enable-listbox or --disable-listbox was given.
7639if test "${enable_listbox+set}" = set; then
7640 enableval="$enable_listbox"
7641
7642 if test "$enableval" = yes; then
7643 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7644 else
7645 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7646 fi
7647
7648else
7649
7650 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7658
7659fi;
7660
7661 eval "$ac_cv_use_listbox"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_LISTBOX" = yes; then
7667 echo "$as_me:$LINENO: result: yes" >&5
7668echo "${ECHO_T}yes" >&6
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
7672 fi
7673
7674
7675 enablestring=
7676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7677echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7678 no_cache=0
7679 # Check whether --enable-listctrl or --disable-listctrl was given.
7680if test "${enable_listctrl+set}" = set; then
7681 enableval="$enable_listctrl"
7682
7683 if test "$enableval" = yes; then
7684 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7685 else
7686 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7687 fi
7688
7689else
7690
7691 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7692 if test "x$LINE" != x ; then
7693 eval "DEFAULT_$LINE"
7694 else
7695 no_cache=1
7696 fi
7697
7698 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7699
7700fi;
7701
7702 eval "$ac_cv_use_listctrl"
7703 if test "$no_cache" != 1; then
7704 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7705 fi
7706
7707 if test "$wxUSE_LISTCTRL" = yes; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709echo "${ECHO_T}yes" >&6
7710 else
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713 fi
7714
7715
7716 enablestring=
7717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7718echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7719 no_cache=0
7720 # Check whether --enable-notebook or --disable-notebook was given.
7721if test "${enable_notebook+set}" = set; then
7722 enableval="$enable_notebook"
7723
7724 if test "$enableval" = yes; then
7725 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7726 else
7727 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7728 fi
7729
7730else
7731
7732 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7733 if test "x$LINE" != x ; then
7734 eval "DEFAULT_$LINE"
7735 else
7736 no_cache=1
7737 fi
7738
7739 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7740
7741fi;
7742
7743 eval "$ac_cv_use_notebook"
7744 if test "$no_cache" != 1; then
7745 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7746 fi
7747
7748 if test "$wxUSE_NOTEBOOK" = yes; then
7749 echo "$as_me:$LINENO: result: yes" >&5
7750echo "${ECHO_T}yes" >&6
7751 else
7752 echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754 fi
7755
7756
7757 enablestring=
7758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7759echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7760 no_cache=0
7761 # Check whether --enable-radiobox or --disable-radiobox was given.
7762if test "${enable_radiobox+set}" = set; then
7763 enableval="$enable_radiobox"
7764
7765 if test "$enableval" = yes; then
7766 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7767 else
7768 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7769 fi
7770
7771else
7772
7773 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7781
7782fi;
7783
7784 eval "$ac_cv_use_radiobox"
7785 if test "$no_cache" != 1; then
7786 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7787 fi
7788
7789 if test "$wxUSE_RADIOBOX" = yes; then
7790 echo "$as_me:$LINENO: result: yes" >&5
7791echo "${ECHO_T}yes" >&6
7792 else
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
7795 fi
7796
7797
7798 enablestring=
7799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7800echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7801 no_cache=0
7802 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7803if test "${enable_radiobtn+set}" = set; then
7804 enableval="$enable_radiobtn"
7805
7806 if test "$enableval" = yes; then
7807 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7808 else
7809 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7810 fi
7811
7812else
7813
7814 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7815 if test "x$LINE" != x ; then
7816 eval "DEFAULT_$LINE"
7817 else
7818 no_cache=1
7819 fi
7820
7821 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7822
7823fi;
7824
7825 eval "$ac_cv_use_radiobtn"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_RADIOBTN" = yes; then
7831 echo "$as_me:$LINENO: result: yes" >&5
7832echo "${ECHO_T}yes" >&6
7833 else
7834 echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6
7836 fi
7837
7838
7839 enablestring=
7840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7841echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7842 no_cache=0
7843 # Check whether --enable-sash or --disable-sash was given.
7844if test "${enable_sash+set}" = set; then
7845 enableval="$enable_sash"
7846
7847 if test "$enableval" = yes; then
7848 ac_cv_use_sash='wxUSE_SASH=yes'
7849 else
7850 ac_cv_use_sash='wxUSE_SASH=no'
7851 fi
7852
7853else
7854
7855 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7863
7864fi;
7865
7866 eval "$ac_cv_use_sash"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_SASH" = yes; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873echo "${ECHO_T}yes" >&6
7874 else
7875 echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877 fi
7878
7879
7880 enablestring=
7881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7882echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7883 no_cache=0
7884 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7885if test "${enable_scrollbar+set}" = set; then
7886 enableval="$enable_scrollbar"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7890 else
7891 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7892 fi
7893
7894else
7895
7896 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7904
7905fi;
7906
7907 eval "$ac_cv_use_scrollbar"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_SCROLLBAR" = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914echo "${ECHO_T}yes" >&6
7915 else
7916 echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6
7918 fi
7919
7920
7921 enablestring=
7922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7923echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7924 no_cache=0
7925 # Check whether --enable-slider or --disable-slider was given.
7926if test "${enable_slider+set}" = set; then
7927 enableval="$enable_slider"
7928
7929 if test "$enableval" = yes; then
7930 ac_cv_use_slider='wxUSE_SLIDER=yes'
7931 else
7932 ac_cv_use_slider='wxUSE_SLIDER=no'
7933 fi
7934
7935else
7936
7937 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7938 if test "x$LINE" != x ; then
7939 eval "DEFAULT_$LINE"
7940 else
7941 no_cache=1
7942 fi
7943
7944 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7945
7946fi;
7947
7948 eval "$ac_cv_use_slider"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_SLIDER" = yes; then
7954 echo "$as_me:$LINENO: result: yes" >&5
7955echo "${ECHO_T}yes" >&6
7956 else
7957 echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6
7959 fi
7960
7961
7962 enablestring=
7963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7964echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7965 no_cache=0
7966 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7967if test "${enable_spinbtn+set}" = set; then
7968 enableval="$enable_spinbtn"
7969
7970 if test "$enableval" = yes; then
7971 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7972 else
7973 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7974 fi
7975
7976else
7977
7978 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7979 if test "x$LINE" != x ; then
7980 eval "DEFAULT_$LINE"
7981 else
7982 no_cache=1
7983 fi
7984
7985 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7986
7987fi;
7988
7989 eval "$ac_cv_use_spinbtn"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_SPINBTN" = yes; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996echo "${ECHO_T}yes" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000 fi
8001
8002
8003 enablestring=
8004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8005echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8006 no_cache=0
8007 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8008if test "${enable_spinctrl+set}" = set; then
8009 enableval="$enable_spinctrl"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8013 else
8014 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8027
8028fi;
8029
8030 eval "$ac_cv_use_spinctrl"
8031 if test "$no_cache" != 1; then
8032 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8033 fi
8034
8035 if test "$wxUSE_SPINCTRL" = yes; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
8041 fi
8042
8043
8044 enablestring=
8045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8046echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8047 no_cache=0
8048 # Check whether --enable-splitter or --disable-splitter was given.
8049if test "${enable_splitter+set}" = set; then
8050 enableval="$enable_splitter"
8051
8052 if test "$enableval" = yes; then
8053 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8054 else
8055 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8056 fi
8057
8058else
8059
8060 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8068
8069fi;
8070
8071 eval "$ac_cv_use_splitter"
8072 if test "$no_cache" != 1; then
8073 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8074 fi
8075
8076 if test "$wxUSE_SPLITTER" = yes; then
8077 echo "$as_me:$LINENO: result: yes" >&5
8078echo "${ECHO_T}yes" >&6
8079 else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082 fi
8083
8084
8085 enablestring=
8086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8087echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8088 no_cache=0
8089 # Check whether --enable-statbmp or --disable-statbmp was given.
8090if test "${enable_statbmp+set}" = set; then
8091 enableval="$enable_statbmp"
8092
8093 if test "$enableval" = yes; then
8094 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8095 else
8096 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8097 fi
8098
8099else
8100
8101 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8102 if test "x$LINE" != x ; then
8103 eval "DEFAULT_$LINE"
8104 else
8105 no_cache=1
8106 fi
8107
8108 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8109
8110fi;
8111
8112 eval "$ac_cv_use_statbmp"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_STATBMP" = yes; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
8120 else
8121 echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6
8123 fi
8124
8125
8126 enablestring=
8127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8128echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8129 no_cache=0
8130 # Check whether --enable-statbox or --disable-statbox was given.
8131if test "${enable_statbox+set}" = set; then
8132 enableval="$enable_statbox"
8133
8134 if test "$enableval" = yes; then
8135 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8136 else
8137 ac_cv_use_statbox='wxUSE_STATBOX=no'
8138 fi
8139
8140else
8141
8142 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8143 if test "x$LINE" != x ; then
8144 eval "DEFAULT_$LINE"
8145 else
8146 no_cache=1
8147 fi
8148
8149 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8150
8151fi;
8152
8153 eval "$ac_cv_use_statbox"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_STATBOX" = yes; then
8159 echo "$as_me:$LINENO: result: yes" >&5
8160echo "${ECHO_T}yes" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164 fi
8165
8166
8167 enablestring=
8168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8169echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8170 no_cache=0
8171 # Check whether --enable-statline or --disable-statline was given.
8172if test "${enable_statline+set}" = set; then
8173 enableval="$enable_statline"
8174
8175 if test "$enableval" = yes; then
8176 ac_cv_use_statline='wxUSE_STATLINE=yes'
8177 else
8178 ac_cv_use_statline='wxUSE_STATLINE=no'
8179 fi
8180
8181else
8182
8183 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8184 if test "x$LINE" != x ; then
8185 eval "DEFAULT_$LINE"
8186 else
8187 no_cache=1
8188 fi
8189
8190 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8191
8192fi;
8193
8194 eval "$ac_cv_use_statline"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_STATLINE" = yes; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201echo "${ECHO_T}yes" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6
8205 fi
8206
8207
8208 enablestring=
8209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8210echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8211 no_cache=0
8212 # Check whether --enable-stattext or --disable-stattext was given.
8213if test "${enable_stattext+set}" = set; then
8214 enableval="$enable_stattext"
8215
8216 if test "$enableval" = yes; then
8217 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8218 else
8219 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8220 fi
8221
8222else
8223
8224 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8225 if test "x$LINE" != x ; then
8226 eval "DEFAULT_$LINE"
8227 else
8228 no_cache=1
8229 fi
8230
8231 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8232
8233fi;
8234
8235 eval "$ac_cv_use_stattext"
8236 if test "$no_cache" != 1; then
8237 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8238 fi
8239
8240 if test "$wxUSE_STATTEXT" = yes; then
8241 echo "$as_me:$LINENO: result: yes" >&5
8242echo "${ECHO_T}yes" >&6
8243 else
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246 fi
8247
8248
8249 enablestring=
8250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8251echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8252 no_cache=0
8253 # Check whether --enable-statusbar or --disable-statusbar was given.
8254if test "${enable_statusbar+set}" = set; then
8255 enableval="$enable_statusbar"
8256
8257 if test "$enableval" = yes; then
8258 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8259 else
8260 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8261 fi
8262
8263else
8264
8265 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8266 if test "x$LINE" != x ; then
8267 eval "DEFAULT_$LINE"
8268 else
8269 no_cache=1
8270 fi
8271
8272 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8273
8274fi;
8275
8276 eval "$ac_cv_use_statusbar"
8277 if test "$no_cache" != 1; then
8278 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8279 fi
8280
8281 if test "$wxUSE_STATUSBAR" = yes; then
8282 echo "$as_me:$LINENO: result: yes" >&5
8283echo "${ECHO_T}yes" >&6
8284 else
8285 echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6
8287 fi
8288
8289
8290 enablestring=
8291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8292echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8293 no_cache=0
8294 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8295if test "${enable_tabdialog+set}" = set; then
8296 enableval="$enable_tabdialog"
8297
8298 if test "$enableval" = yes; then
8299 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8300 else
8301 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8302 fi
8303
8304else
8305
8306 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8307 if test "x$LINE" != x ; then
8308 eval "DEFAULT_$LINE"
8309 else
8310 no_cache=1
8311 fi
8312
8313 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8314
8315fi;
8316
8317 eval "$ac_cv_use_tabdialog"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_TABDIALOG" = yes; then
8323 echo "$as_me:$LINENO: result: yes" >&5
8324echo "${ECHO_T}yes" >&6
8325 else
8326 echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6
8328 fi
8329
8330
8331 enablestring=
8332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8333echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8334 no_cache=0
8335 # Check whether --enable-textctrl or --disable-textctrl was given.
8336if test "${enable_textctrl+set}" = set; then
8337 enableval="$enable_textctrl"
8338
8339 if test "$enableval" = yes; then
8340 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8341 else
8342 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8343 fi
8344
8345else
8346
8347 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8348 if test "x$LINE" != x ; then
8349 eval "DEFAULT_$LINE"
8350 else
8351 no_cache=1
8352 fi
8353
8354 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8355
8356fi;
8357
8358 eval "$ac_cv_use_textctrl"
8359 if test "$no_cache" != 1; then
8360 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8361 fi
8362
8363 if test "$wxUSE_TEXTCTRL" = yes; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365echo "${ECHO_T}yes" >&6
8366 else
8367 echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6
8369 fi
8370
8371
8372 enablestring=
8373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8374echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8375 no_cache=0
8376 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8377if test "${enable_togglebtn+set}" = set; then
8378 enableval="$enable_togglebtn"
8379
8380 if test "$enableval" = yes; then
8381 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8382 else
8383 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8384 fi
8385
8386else
8387
8388 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8396
8397fi;
8398
8399 eval "$ac_cv_use_togglebtn"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_TOGGLEBTN" = yes; then
8405 echo "$as_me:$LINENO: result: yes" >&5
8406echo "${ECHO_T}yes" >&6
8407 else
8408 echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6
8410 fi
8411
8412
8413 enablestring=
8414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8415echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8416 no_cache=0
8417 # Check whether --enable-toolbar or --disable-toolbar was given.
8418if test "${enable_toolbar+set}" = set; then
8419 enableval="$enable_toolbar"
8420
8421 if test "$enableval" = yes; then
8422 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8423 else
8424 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8425 fi
8426
8427else
8428
8429 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8430 if test "x$LINE" != x ; then
8431 eval "DEFAULT_$LINE"
8432 else
8433 no_cache=1
8434 fi
8435
8436 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8437
8438fi;
8439
8440 eval "$ac_cv_use_toolbar"
8441 if test "$no_cache" != 1; then
8442 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8443 fi
8444
8445 if test "$wxUSE_TOOLBAR" = yes; then
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6
8451 fi
8452
8453
8454 enablestring=
8455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8456echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8457 no_cache=0
8458 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8459if test "${enable_tbarnative+set}" = set; then
8460 enableval="$enable_tbarnative"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8464 else
8465 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8478
8479fi;
8480
8481 eval "$ac_cv_use_tbarnative"
8482 if test "$no_cache" != 1; then
8483 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8484 fi
8485
8486 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8487 echo "$as_me:$LINENO: result: yes" >&5
8488echo "${ECHO_T}yes" >&6
8489 else
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
8492 fi
8493
8494
8495 enablestring=
8496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8497echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8498 no_cache=0
8499 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8500if test "${enable_tbarsmpl+set}" = set; then
8501 enableval="$enable_tbarsmpl"
8502
8503 if test "$enableval" = yes; then
8504 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8505 else
8506 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8507 fi
8508
8509else
8510
8511 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8519
8520fi;
8521
8522 eval "$ac_cv_use_tbarsmpl"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8528 echo "$as_me:$LINENO: result: yes" >&5
8529echo "${ECHO_T}yes" >&6
8530 else
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
8533 fi
8534
8535
8536 enablestring=
8537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8538echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8539 no_cache=0
8540 # Check whether --enable-treectrl or --disable-treectrl was given.
8541if test "${enable_treectrl+set}" = set; then
8542 enableval="$enable_treectrl"
8543
8544 if test "$enableval" = yes; then
8545 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8546 else
8547 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8548 fi
8549
8550else
8551
8552 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8553 if test "x$LINE" != x ; then
8554 eval "DEFAULT_$LINE"
8555 else
8556 no_cache=1
8557 fi
8558
8559 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8560
8561fi;
8562
8563 eval "$ac_cv_use_treectrl"
8564 if test "$no_cache" != 1; then
8565 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8566 fi
8567
8568 if test "$wxUSE_TREECTRL" = yes; then
8569 echo "$as_me:$LINENO: result: yes" >&5
8570echo "${ECHO_T}yes" >&6
8571 else
8572 echo "$as_me:$LINENO: result: no" >&5
8573echo "${ECHO_T}no" >&6
8574 fi
8575
8576
8577 enablestring=
8578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8579echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8580 no_cache=0
8581 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8582if test "${enable_tipwindow+set}" = set; then
8583 enableval="$enable_tipwindow"
8584
8585 if test "$enableval" = yes; then
8586 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8587 else
8588 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8589 fi
8590
8591else
8592
8593 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8594 if test "x$LINE" != x ; then
8595 eval "DEFAULT_$LINE"
8596 else
8597 no_cache=1
8598 fi
8599
8600 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8601
8602fi;
8603
8604 eval "$ac_cv_use_tipwindow"
8605 if test "$no_cache" != 1; then
8606 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8607 fi
8608
8609 if test "$wxUSE_TIPWINDOW" = yes; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611echo "${ECHO_T}yes" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
8615 fi
8616
8617
8618 enablestring=
8619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8620echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8621 no_cache=0
8622 # Check whether --enable-popupwin or --disable-popupwin was given.
8623if test "${enable_popupwin+set}" = set; then
8624 enableval="$enable_popupwin"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8628 else
8629 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8642
8643fi;
8644
8645 eval "$ac_cv_use_popupwin"
8646 if test "$no_cache" != 1; then
8647 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8648 fi
8649
8650 if test "$wxUSE_POPUPWIN" = yes; then
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
8656 fi
8657
8658
8659
8660
8661 enablestring=
8662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8663echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8664 no_cache=0
8665 # Check whether --enable-commondlg or --disable-commondlg was given.
8666if test "${enable_commondlg+set}" = set; then
8667 enableval="$enable_commondlg"
8668
8669 if test "$enableval" = yes; then
8670 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8671 else
8672 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8673 fi
8674
8675else
8676
8677 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8678 if test "x$LINE" != x ; then
8679 eval "DEFAULT_$LINE"
8680 else
8681 no_cache=1
8682 fi
8683
8684 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8685
8686fi;
8687
8688 eval "$ac_cv_use_commondlg"
8689 if test "$no_cache" != 1; then
8690 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8691 fi
8692
8693 if test "$wxUSE_COMMONDLGS" = yes; then
8694 echo "$as_me:$LINENO: result: yes" >&5
8695echo "${ECHO_T}yes" >&6
8696 else
8697 echo "$as_me:$LINENO: result: no" >&5
8698echo "${ECHO_T}no" >&6
8699 fi
8700
8701
8702 enablestring=
8703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8704echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8705 no_cache=0
8706 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8707if test "${enable_choicedlg+set}" = set; then
8708 enableval="$enable_choicedlg"
8709
8710 if test "$enableval" = yes; then
8711 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8712 else
8713 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8714 fi
8715
8716else
8717
8718 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8719 if test "x$LINE" != x ; then
8720 eval "DEFAULT_$LINE"
8721 else
8722 no_cache=1
8723 fi
8724
8725 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8726
8727fi;
8728
8729 eval "$ac_cv_use_choicedlg"
8730 if test "$no_cache" != 1; then
8731 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8732 fi
8733
8734 if test "$wxUSE_CHOICEDLG" = yes; then
8735 echo "$as_me:$LINENO: result: yes" >&5
8736echo "${ECHO_T}yes" >&6
8737 else
8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
8740 fi
8741
8742
8743 enablestring=
8744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8745echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8746 no_cache=0
8747 # Check whether --enable-coldlg or --disable-coldlg was given.
8748if test "${enable_coldlg+set}" = set; then
8749 enableval="$enable_coldlg"
8750
8751 if test "$enableval" = yes; then
8752 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8753 else
8754 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8755 fi
8756
8757else
8758
8759 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8760 if test "x$LINE" != x ; then
8761 eval "DEFAULT_$LINE"
8762 else
8763 no_cache=1
8764 fi
8765
8766 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8767
8768fi;
8769
8770 eval "$ac_cv_use_coldlg"
8771 if test "$no_cache" != 1; then
8772 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8773 fi
8774
8775 if test "$wxUSE_COLOURDLG" = yes; then
8776 echo "$as_me:$LINENO: result: yes" >&5
8777echo "${ECHO_T}yes" >&6
8778 else
8779 echo "$as_me:$LINENO: result: no" >&5
8780echo "${ECHO_T}no" >&6
8781 fi
8782
8783
8784 enablestring=
8785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8786echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8787 no_cache=0
8788 # Check whether --enable-filedlg or --disable-filedlg was given.
8789if test "${enable_filedlg+set}" = set; then
8790 enableval="$enable_filedlg"
8791
8792 if test "$enableval" = yes; then
8793 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8794 else
8795 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8796 fi
8797
8798else
8799
8800 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8801 if test "x$LINE" != x ; then
8802 eval "DEFAULT_$LINE"
8803 else
8804 no_cache=1
8805 fi
8806
8807 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8808
8809fi;
8810
8811 eval "$ac_cv_use_filedlg"
8812 if test "$no_cache" != 1; then
8813 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8814 fi
8815
8816 if test "$wxUSE_FILEDLG" = yes; then
8817 echo "$as_me:$LINENO: result: yes" >&5
8818echo "${ECHO_T}yes" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
8822 fi
8823
8824
8825 enablestring=
8826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8827echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8828 no_cache=0
8829 # Check whether --enable-finddlg or --disable-finddlg was given.
8830if test "${enable_finddlg+set}" = set; then
8831 enableval="$enable_finddlg"
8832
8833 if test "$enableval" = yes; then
8834 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8835 else
8836 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8837 fi
8838
8839else
8840
8841 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8842 if test "x$LINE" != x ; then
8843 eval "DEFAULT_$LINE"
8844 else
8845 no_cache=1
8846 fi
8847
8848 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8849
8850fi;
8851
8852 eval "$ac_cv_use_finddlg"
8853 if test "$no_cache" != 1; then
8854 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8855 fi
8856
8857 if test "$wxUSE_FINDREPLDLG" = yes; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859echo "${ECHO_T}yes" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863 fi
8864
8865
8866 enablestring=
8867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8868echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8869 no_cache=0
8870 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8871if test "${enable_fontdlg+set}" = set; then
8872 enableval="$enable_fontdlg"
8873
8874 if test "$enableval" = yes; then
8875 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8876 else
8877 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8878 fi
8879
8880else
8881
8882 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8883 if test "x$LINE" != x ; then
8884 eval "DEFAULT_$LINE"
8885 else
8886 no_cache=1
8887 fi
8888
8889 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8890
8891fi;
8892
8893 eval "$ac_cv_use_fontdlg"
8894 if test "$no_cache" != 1; then
8895 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8896 fi
8897
8898 if test "$wxUSE_FONTDLG" = yes; then
8899 echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901 else
8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904 fi
8905
8906
8907 enablestring=
8908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8909echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8910 no_cache=0
8911 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8912if test "${enable_dirdlg+set}" = set; then
8913 enableval="$enable_dirdlg"
8914
8915 if test "$enableval" = yes; then
8916 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8917 else
8918 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8919 fi
8920
8921else
8922
8923 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8924 if test "x$LINE" != x ; then
8925 eval "DEFAULT_$LINE"
8926 else
8927 no_cache=1
8928 fi
8929
8930 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8931
8932fi;
8933
8934 eval "$ac_cv_use_dirdlg"
8935 if test "$no_cache" != 1; then
8936 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8937 fi
8938
8939 if test "$wxUSE_DIRDLG" = yes; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 else
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
8945 fi
8946
8947
8948 enablestring=
8949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8950echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8951 no_cache=0
8952 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8953if test "${enable_msgdlg+set}" = set; then
8954 enableval="$enable_msgdlg"
8955
8956 if test "$enableval" = yes; then
8957 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8958 else
8959 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8960 fi
8961
8962else
8963
8964 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8965 if test "x$LINE" != x ; then
8966 eval "DEFAULT_$LINE"
8967 else
8968 no_cache=1
8969 fi
8970
8971 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8972
8973fi;
8974
8975 eval "$ac_cv_use_msgdlg"
8976 if test "$no_cache" != 1; then
8977 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8978 fi
8979
8980 if test "$wxUSE_MSGDLG" = yes; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986 fi
8987
8988
8989 enablestring=
8990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8991echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8992 no_cache=0
8993 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8994if test "${enable_numberdlg+set}" = set; then
8995 enableval="$enable_numberdlg"
8996
8997 if test "$enableval" = yes; then
8998 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8999 else
9000 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9001 fi
9002
9003else
9004
9005 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9006 if test "x$LINE" != x ; then
9007 eval "DEFAULT_$LINE"
9008 else
9009 no_cache=1
9010 fi
9011
9012 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9013
9014fi;
9015
9016 eval "$ac_cv_use_numberdlg"
9017 if test "$no_cache" != 1; then
9018 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9019 fi
9020
9021 if test "$wxUSE_NUMBERDLG" = yes; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6
9024 else
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
9027 fi
9028
9029
9030 enablestring=
9031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9032echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9033 no_cache=0
9034 # Check whether --enable-splash or --disable-splash was given.
9035if test "${enable_splash+set}" = set; then
9036 enableval="$enable_splash"
9037
9038 if test "$enableval" = yes; then
9039 ac_cv_use_splash='wxUSE_SPLASH=yes'
9040 else
9041 ac_cv_use_splash='wxUSE_SPLASH=no'
9042 fi
9043
9044else
9045
9046 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9047 if test "x$LINE" != x ; then
9048 eval "DEFAULT_$LINE"
9049 else
9050 no_cache=1
9051 fi
9052
9053 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9054
9055fi;
9056
9057 eval "$ac_cv_use_splash"
9058 if test "$no_cache" != 1; then
9059 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9060 fi
9061
9062 if test "$wxUSE_SPLASH" = yes; then
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
9065 else
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
9068 fi
9069
9070
9071 enablestring=
9072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9073echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9074 no_cache=0
9075 # Check whether --enable-textdlg or --disable-textdlg was given.
9076if test "${enable_textdlg+set}" = set; then
9077 enableval="$enable_textdlg"
9078
9079 if test "$enableval" = yes; then
9080 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9081 else
9082 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9083 fi
9084
9085else
9086
9087 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9088 if test "x$LINE" != x ; then
9089 eval "DEFAULT_$LINE"
9090 else
9091 no_cache=1
9092 fi
9093
9094 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9095
9096fi;
9097
9098 eval "$ac_cv_use_textdlg"
9099 if test "$no_cache" != 1; then
9100 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9101 fi
9102
9103 if test "$wxUSE_TEXTDLG" = yes; then
9104 echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109 fi
9110
9111
9112 enablestring=
9113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9114echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9115 no_cache=0
9116 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9117if test "${enable_tipdlg+set}" = set; then
9118 enableval="$enable_tipdlg"
9119
9120 if test "$enableval" = yes; then
9121 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9122 else
9123 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9124 fi
9125
9126else
9127
9128 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9129 if test "x$LINE" != x ; then
9130 eval "DEFAULT_$LINE"
9131 else
9132 no_cache=1
9133 fi
9134
9135 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9136
9137fi;
9138
9139 eval "$ac_cv_use_tipdlg"
9140 if test "$no_cache" != 1; then
9141 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9142 fi
9143
9144 if test "$wxUSE_STARTUP_TIPS" = yes; then
9145 echo "$as_me:$LINENO: result: yes" >&5
9146echo "${ECHO_T}yes" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150 fi
9151
9152
9153 enablestring=
9154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9155echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9156 no_cache=0
9157 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9158if test "${enable_progressdlg+set}" = set; then
9159 enableval="$enable_progressdlg"
9160
9161 if test "$enableval" = yes; then
9162 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9163 else
9164 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9165 fi
9166
9167else
9168
9169 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9170 if test "x$LINE" != x ; then
9171 eval "DEFAULT_$LINE"
9172 else
9173 no_cache=1
9174 fi
9175
9176 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9177
9178fi;
9179
9180 eval "$ac_cv_use_progressdlg"
9181 if test "$no_cache" != 1; then
9182 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9183 fi
9184
9185 if test "$wxUSE_PROGRESSDLG" = yes; then
9186 echo "$as_me:$LINENO: result: yes" >&5
9187echo "${ECHO_T}yes" >&6
9188 else
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191 fi
9192
9193
9194 enablestring=
9195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9196echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9197 no_cache=0
9198 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9199if test "${enable_wizarddlg+set}" = set; then
9200 enableval="$enable_wizarddlg"
9201
9202 if test "$enableval" = yes; then
9203 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9204 else
9205 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9206 fi
9207
9208else
9209
9210 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9211 if test "x$LINE" != x ; then
9212 eval "DEFAULT_$LINE"
9213 else
9214 no_cache=1
9215 fi
9216
9217 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9218
9219fi;
9220
9221 eval "$ac_cv_use_wizarddlg"
9222 if test "$no_cache" != 1; then
9223 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9224 fi
9225
9226 if test "$wxUSE_WIZARDDLG" = yes; then
9227 echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229 else
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232 fi
9233
9234
9235
9236
9237 enablestring=
9238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9239echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9240 no_cache=0
9241 # Check whether --enable-menus or --disable-menus was given.
9242if test "${enable_menus+set}" = set; then
9243 enableval="$enable_menus"
9244
9245 if test "$enableval" = yes; then
9246 ac_cv_use_menus='wxUSE_MENUS=yes'
9247 else
9248 ac_cv_use_menus='wxUSE_MENUS=no'
9249 fi
9250
9251else
9252
9253 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9254 if test "x$LINE" != x ; then
9255 eval "DEFAULT_$LINE"
9256 else
9257 no_cache=1
9258 fi
9259
9260 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9261
9262fi;
9263
9264 eval "$ac_cv_use_menus"
9265 if test "$no_cache" != 1; then
9266 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9267 fi
9268
9269 if test "$wxUSE_MENUS" = yes; then
9270 echo "$as_me:$LINENO: result: yes" >&5
9271echo "${ECHO_T}yes" >&6
9272 else
9273 echo "$as_me:$LINENO: result: no" >&5
9274echo "${ECHO_T}no" >&6
9275 fi
9276
9277
9278 enablestring=
9279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9280echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9281 no_cache=0
9282 # Check whether --enable-miniframe or --disable-miniframe was given.
9283if test "${enable_miniframe+set}" = set; then
9284 enableval="$enable_miniframe"
9285
9286 if test "$enableval" = yes; then
9287 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9288 else
9289 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9290 fi
9291
9292else
9293
9294 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9295 if test "x$LINE" != x ; then
9296 eval "DEFAULT_$LINE"
9297 else
9298 no_cache=1
9299 fi
9300
9301 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9302
9303fi;
9304
9305 eval "$ac_cv_use_miniframe"
9306 if test "$no_cache" != 1; then
9307 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9308 fi
9309
9310 if test "$wxUSE_MINIFRAME" = yes; then
9311 echo "$as_me:$LINENO: result: yes" >&5
9312echo "${ECHO_T}yes" >&6
9313 else
9314 echo "$as_me:$LINENO: result: no" >&5
9315echo "${ECHO_T}no" >&6
9316 fi
9317
9318
9319 enablestring=
9320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9321echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9322 no_cache=0
9323 # Check whether --enable-tooltips or --disable-tooltips was given.
9324if test "${enable_tooltips+set}" = set; then
9325 enableval="$enable_tooltips"
9326
9327 if test "$enableval" = yes; then
9328 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9329 else
9330 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9331 fi
9332
9333else
9334
9335 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9336 if test "x$LINE" != x ; then
9337 eval "DEFAULT_$LINE"
9338 else
9339 no_cache=1
9340 fi
9341
9342 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9343
9344fi;
9345
9346 eval "$ac_cv_use_tooltips"
9347 if test "$no_cache" != 1; then
9348 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9349 fi
9350
9351 if test "$wxUSE_TOOLTIPS" = yes; then
9352 echo "$as_me:$LINENO: result: yes" >&5
9353echo "${ECHO_T}yes" >&6
9354 else
9355 echo "$as_me:$LINENO: result: no" >&5
9356echo "${ECHO_T}no" >&6
9357 fi
9358
9359
9360 enablestring=
9361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9362echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9363 no_cache=0
9364 # Check whether --enable-splines or --disable-splines was given.
9365if test "${enable_splines+set}" = set; then
9366 enableval="$enable_splines"
9367
9368 if test "$enableval" = yes; then
9369 ac_cv_use_splines='wxUSE_SPLINES=yes'
9370 else
9371 ac_cv_use_splines='wxUSE_SPLINES=no'
9372 fi
9373
9374else
9375
9376 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9377 if test "x$LINE" != x ; then
9378 eval "DEFAULT_$LINE"
9379 else
9380 no_cache=1
9381 fi
9382
9383 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9384
9385fi;
9386
9387 eval "$ac_cv_use_splines"
9388 if test "$no_cache" != 1; then
9389 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9390 fi
9391
9392 if test "$wxUSE_SPLINES" = yes; then
9393 echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
9395 else
9396 echo "$as_me:$LINENO: result: no" >&5
9397echo "${ECHO_T}no" >&6
9398 fi
9399
9400
9401 enablestring=
9402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9403echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9404 no_cache=0
9405 # Check whether --enable-validators or --disable-validators was given.
9406if test "${enable_validators+set}" = set; then
9407 enableval="$enable_validators"
9408
9409 if test "$enableval" = yes; then
9410 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9411 else
9412 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9413 fi
9414
9415else
9416
9417 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9418 if test "x$LINE" != x ; then
9419 eval "DEFAULT_$LINE"
9420 else
9421 no_cache=1
9422 fi
9423
9424 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9425
9426fi;
9427
9428 eval "$ac_cv_use_validators"
9429 if test "$no_cache" != 1; then
9430 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9431 fi
9432
9433 if test "$wxUSE_VALIDATORS" = yes; then
9434 echo "$as_me:$LINENO: result: yes" >&5
9435echo "${ECHO_T}yes" >&6
9436 else
9437 echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6
9439 fi
9440
9441
9442 enablestring=
9443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9444echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9445 no_cache=0
9446 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9447if test "${enable_busyinfo+set}" = set; then
9448 enableval="$enable_busyinfo"
9449
9450 if test "$enableval" = yes; then
9451 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9452 else
9453 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9454 fi
9455
9456else
9457
9458 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9459 if test "x$LINE" != x ; then
9460 eval "DEFAULT_$LINE"
9461 else
9462 no_cache=1
9463 fi
9464
9465 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9466
9467fi;
9468
9469 eval "$ac_cv_use_busyinfo"
9470 if test "$no_cache" != 1; then
9471 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9472 fi
9473
9474 if test "$wxUSE_BUSYINFO" = yes; then
9475 echo "$as_me:$LINENO: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
9477 else
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
9480 fi
9481
9482
9483 enablestring=
9484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9485echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9486 no_cache=0
9487 # Check whether --enable-joystick or --disable-joystick was given.
9488if test "${enable_joystick+set}" = set; then
9489 enableval="$enable_joystick"
9490
9491 if test "$enableval" = yes; then
9492 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9493 else
9494 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9495 fi
9496
9497else
9498
9499 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9500 if test "x$LINE" != x ; then
9501 eval "DEFAULT_$LINE"
9502 else
9503 no_cache=1
9504 fi
9505
9506 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9507
9508fi;
9509
9510 eval "$ac_cv_use_joystick"
9511 if test "$no_cache" != 1; then
9512 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9513 fi
9514
9515 if test "$wxUSE_JOYSTICK" = yes; then
9516 echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521 fi
9522
9523
9524 enablestring=
9525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9526echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9527 no_cache=0
9528 # Check whether --enable-metafile or --disable-metafile was given.
9529if test "${enable_metafile+set}" = set; then
9530 enableval="$enable_metafile"
9531
9532 if test "$enableval" = yes; then
9533 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9534 else
9535 ac_cv_use_metafile='wxUSE_METAFILE=no'
9536 fi
9537
9538else
9539
9540 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9541 if test "x$LINE" != x ; then
9542 eval "DEFAULT_$LINE"
9543 else
9544 no_cache=1
9545 fi
9546
9547 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9548
9549fi;
9550
9551 eval "$ac_cv_use_metafile"
9552 if test "$no_cache" != 1; then
9553 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9554 fi
9555
9556 if test "$wxUSE_METAFILE" = yes; then
9557 echo "$as_me:$LINENO: result: yes" >&5
9558echo "${ECHO_T}yes" >&6
9559 else
9560 echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6
9562 fi
9563
9564
9565 enablestring=
9566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9567echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9568 no_cache=0
9569 # Check whether --enable-dragimage or --disable-dragimage was given.
9570if test "${enable_dragimage+set}" = set; then
9571 enableval="$enable_dragimage"
9572
9573 if test "$enableval" = yes; then
9574 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9575 else
9576 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9577 fi
9578
9579else
9580
9581 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9582 if test "x$LINE" != x ; then
9583 eval "DEFAULT_$LINE"
9584 else
9585 no_cache=1
9586 fi
9587
9588 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9589
9590fi;
9591
9592 eval "$ac_cv_use_dragimage"
9593 if test "$no_cache" != 1; then
9594 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9595 fi
9596
9597 if test "$wxUSE_DRAGIMAGE" = yes; then
9598 echo "$as_me:$LINENO: result: yes" >&5
9599echo "${ECHO_T}yes" >&6
9600 else
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
9603 fi
9604
9605
9606 enablestring=
9607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9608echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9609 no_cache=0
9610 # Check whether --enable-accessibility or --disable-accessibility was given.
9611if test "${enable_accessibility+set}" = set; then
9612 enableval="$enable_accessibility"
9613
9614 if test "$enableval" = yes; then
9615 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9616 else
9617 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9618 fi
9619
9620else
9621
9622 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9623 if test "x$LINE" != x ; then
9624 eval "DEFAULT_$LINE"
9625 else
9626 no_cache=1
9627 fi
9628
9629 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9630
9631fi;
9632
9633 eval "$ac_cv_use_accessibility"
9634 if test "$no_cache" != 1; then
9635 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9636 fi
9637
9638 if test "$wxUSE_ACCESSIBILITY" = yes; then
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
9641 else
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644 fi
9645
9646
9647
9648
9649 enablestring=
9650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9651echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9652 no_cache=0
9653 # Check whether --enable-palette or --disable-palette was given.
9654if test "${enable_palette+set}" = set; then
9655 enableval="$enable_palette"
9656
9657 if test "$enableval" = yes; then
9658 ac_cv_use_palette='wxUSE_PALETTE=yes'
9659 else
9660 ac_cv_use_palette='wxUSE_PALETTE=no'
9661 fi
9662
9663else
9664
9665 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9666 if test "x$LINE" != x ; then
9667 eval "DEFAULT_$LINE"
9668 else
9669 no_cache=1
9670 fi
9671
9672 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9673
9674fi;
9675
9676 eval "$ac_cv_use_palette"
9677 if test "$no_cache" != 1; then
9678 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9679 fi
9680
9681 if test "$wxUSE_PALETTE" = yes; then
9682 echo "$as_me:$LINENO: result: yes" >&5
9683echo "${ECHO_T}yes" >&6
9684 else
9685 echo "$as_me:$LINENO: result: no" >&5
9686echo "${ECHO_T}no" >&6
9687 fi
9688
9689
9690 enablestring=
9691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9692echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9693 no_cache=0
9694 # Check whether --enable-image or --disable-image was given.
9695if test "${enable_image+set}" = set; then
9696 enableval="$enable_image"
9697
9698 if test "$enableval" = yes; then
9699 ac_cv_use_image='wxUSE_IMAGE=yes'
9700 else
9701 ac_cv_use_image='wxUSE_IMAGE=no'
9702 fi
9703
9704else
9705
9706 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9707 if test "x$LINE" != x ; then
9708 eval "DEFAULT_$LINE"
9709 else
9710 no_cache=1
9711 fi
9712
9713 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9714
9715fi;
9716
9717 eval "$ac_cv_use_image"
9718 if test "$no_cache" != 1; then
9719 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9720 fi
9721
9722 if test "$wxUSE_IMAGE" = yes; then
9723 echo "$as_me:$LINENO: result: yes" >&5
9724echo "${ECHO_T}yes" >&6
9725 else
9726 echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6
9728 fi
9729
9730
9731 enablestring=
9732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9733echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9734 no_cache=0
9735 # Check whether --enable-gif or --disable-gif was given.
9736if test "${enable_gif+set}" = set; then
9737 enableval="$enable_gif"
9738
9739 if test "$enableval" = yes; then
9740 ac_cv_use_gif='wxUSE_GIF=yes'
9741 else
9742 ac_cv_use_gif='wxUSE_GIF=no'
9743 fi
9744
9745else
9746
9747 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9748 if test "x$LINE" != x ; then
9749 eval "DEFAULT_$LINE"
9750 else
9751 no_cache=1
9752 fi
9753
9754 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9755
9756fi;
9757
9758 eval "$ac_cv_use_gif"
9759 if test "$no_cache" != 1; then
9760 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9761 fi
9762
9763 if test "$wxUSE_GIF" = yes; then
9764 echo "$as_me:$LINENO: result: yes" >&5
9765echo "${ECHO_T}yes" >&6
9766 else
9767 echo "$as_me:$LINENO: result: no" >&5
9768echo "${ECHO_T}no" >&6
9769 fi
9770
9771
9772 enablestring=
9773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9774echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9775 no_cache=0
9776 # Check whether --enable-pcx or --disable-pcx was given.
9777if test "${enable_pcx+set}" = set; then
9778 enableval="$enable_pcx"
9779
9780 if test "$enableval" = yes; then
9781 ac_cv_use_pcx='wxUSE_PCX=yes'
9782 else
9783 ac_cv_use_pcx='wxUSE_PCX=no'
9784 fi
9785
9786else
9787
9788 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9789 if test "x$LINE" != x ; then
9790 eval "DEFAULT_$LINE"
9791 else
9792 no_cache=1
9793 fi
9794
9795 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9796
9797fi;
9798
9799 eval "$ac_cv_use_pcx"
9800 if test "$no_cache" != 1; then
9801 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9802 fi
9803
9804 if test "$wxUSE_PCX" = yes; then
9805 echo "$as_me:$LINENO: result: yes" >&5
9806echo "${ECHO_T}yes" >&6
9807 else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810 fi
9811
9812
9813 enablestring=
9814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9815echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9816 no_cache=0
9817 # Check whether --enable-iff or --disable-iff was given.
9818if test "${enable_iff+set}" = set; then
9819 enableval="$enable_iff"
9820
9821 if test "$enableval" = yes; then
9822 ac_cv_use_iff='wxUSE_IFF=yes'
9823 else
9824 ac_cv_use_iff='wxUSE_IFF=no'
9825 fi
9826
9827else
9828
9829 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9830 if test "x$LINE" != x ; then
9831 eval "DEFAULT_$LINE"
9832 else
9833 no_cache=1
9834 fi
9835
9836 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9837
9838fi;
9839
9840 eval "$ac_cv_use_iff"
9841 if test "$no_cache" != 1; then
9842 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9843 fi
9844
9845 if test "$wxUSE_IFF" = yes; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847echo "${ECHO_T}yes" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
9851 fi
9852
9853
9854 enablestring=
9855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9856echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9857 no_cache=0
9858 # Check whether --enable-pnm or --disable-pnm was given.
9859if test "${enable_pnm+set}" = set; then
9860 enableval="$enable_pnm"
9861
9862 if test "$enableval" = yes; then
9863 ac_cv_use_pnm='wxUSE_PNM=yes'
9864 else
9865 ac_cv_use_pnm='wxUSE_PNM=no'
9866 fi
9867
9868else
9869
9870 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9871 if test "x$LINE" != x ; then
9872 eval "DEFAULT_$LINE"
9873 else
9874 no_cache=1
9875 fi
9876
9877 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9878
9879fi;
9880
9881 eval "$ac_cv_use_pnm"
9882 if test "$no_cache" != 1; then
9883 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9884 fi
9885
9886 if test "$wxUSE_PNM" = yes; then
9887 echo "$as_me:$LINENO: result: yes" >&5
9888echo "${ECHO_T}yes" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893
9894
9895 enablestring=
9896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9897echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9898 no_cache=0
9899 # Check whether --enable-xpm or --disable-xpm was given.
9900if test "${enable_xpm+set}" = set; then
9901 enableval="$enable_xpm"
9902
9903 if test "$enableval" = yes; then
9904 ac_cv_use_xpm='wxUSE_XPM=yes'
9905 else
9906 ac_cv_use_xpm='wxUSE_XPM=no'
9907 fi
9908
9909else
9910
9911 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9912 if test "x$LINE" != x ; then
9913 eval "DEFAULT_$LINE"
9914 else
9915 no_cache=1
9916 fi
9917
9918 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9919
9920fi;
9921
9922 eval "$ac_cv_use_xpm"
9923 if test "$no_cache" != 1; then
9924 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9925 fi
9926
9927 if test "$wxUSE_XPM" = yes; then
9928 echo "$as_me:$LINENO: result: yes" >&5
9929echo "${ECHO_T}yes" >&6
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
9933 fi
9934
9935
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9941if test "${enable_ico_cur+set}" = set; then
9942 enableval="$enable_ico_cur"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9946 else
9947 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9960
9961fi;
9962
9963 eval "$ac_cv_use_ico_cur"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_ICO_CUR" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976
9977fi
9978
9979
9980
ceec2216
RL
9981# Check whether --with-flavour or --without-flavour was given.
9982if test "${with_flavour+set}" = set; then
9983 withval="$with_flavour"
9984 WX_FLAVOUR="$withval"
9985fi;
9986
9987
9988
a848cd7e
SC
9989 enablestring=
9990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9991echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9992 no_cache=0
9993 # Check whether --enable-official_build or --disable-official_build was given.
9994if test "${enable_official_build+set}" = set; then
9995 enableval="$enable_official_build"
9996
9997 if test "$enableval" = yes; then
9998 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9999 else
10000 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10001 fi
10002
10003else
10004
10005 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10006 if test "x$LINE" != x ; then
10007 eval "DEFAULT_$LINE"
10008 else
10009 no_cache=1
10010 fi
10011
10012 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10013
10014fi;
10015
10016 eval "$ac_cv_use_official_build"
10017 if test "$no_cache" != 1; then
10018 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10019 fi
10020
10021 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10022 echo "$as_me:$LINENO: result: yes" >&5
10023echo "${ECHO_T}yes" >&6
10024 else
10025 echo "$as_me:$LINENO: result: no" >&5
10026echo "${ECHO_T}no" >&6
10027 fi
10028
10029# Check whether --enable-vendor or --disable-vendor was given.
10030if test "${enable_vendor+set}" = set; then
10031 enableval="$enable_vendor"
10032 VENDOR="$enableval"
10033fi;
10034if test "x$VENDOR" = "x"; then
10035 VENDOR="custom"
10036fi
10037
a848cd7e
SC
10038
10039
10040
10041 echo "saving argument cache $wx_arg_cache_file"
10042 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10043
10044
10045
10046echo "$as_me:$LINENO: checking for toolkit" >&5
10047echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10048
10049# In Wine, we need to default to MSW, not GTK or MOTIF
10050if test "$wxUSE_WINE" = "yes"; then
10051 DEFAULT_DEFAULT_wxUSE_GTK=0
10052 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10053 DEFAULT_DEFAULT_wxUSE_MSW=1
10054 wxUSE_SHARED=no
10055fi
10056
10057if test "$wxUSE_GUI" = "yes"; then
10058
10059 if test "$USE_BEOS" = 1; then
10060 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10061echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10062 { (exit 1); exit 1; }; }
10063 fi
10064
10065 if test "$TOOLKIT_GIVEN" = 1; then
10066 for toolkit in `echo $ALL_TOOLKITS`; do
10067 var=wxUSE_$toolkit
10068 eval "value=\$${var}"
10069 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10070 done
10071 else
10072 for toolkit in `echo $ALL_TOOLKITS`; do
10073 if test "$has_toolkit_in_cache" != 1; then
10074 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10075 else
10076 var=DEFAULT_wxUSE_$toolkit
10077 fi
10078 eval "wxUSE_$toolkit=\$${var}"
10079 done
10080 fi
10081
10082 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10083 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10084 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10085
10086 case "${host}" in
10087 *-pc-os2_emx | *-pc-os2-emx )
10088 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10089 esac
10090
10091 case "$NUM_TOOLKITS" in
10092 1)
10093 ;;
10094 0)
10095 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10096echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10097 { (exit 1); exit 1; }; }
10098 ;;
10099 *)
10100 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10101echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10102 { (exit 1); exit 1; }; }
10103 esac
10104
10105 for toolkit in `echo $ALL_TOOLKITS`; do
10106 var=wxUSE_$toolkit
10107 eval "value=\$${var}"
10108 if test "x$value" != x; then
10109 cache_var=CACHE_$toolkit
10110 eval "cache=\$${cache_var}"
10111 if test "$cache" = 1; then
10112 echo "$var=$value" >> ${wx_arg_cache_file}
10113 fi
10114 if test "$value" = 1; then
10115 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10116 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10117echo "${ECHO_T}$toolkit_echo" >&6
10118 fi
10119 fi
10120 done
10121else
10122 if test "x$host_alias" != "x"; then
10123 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10124echo "${ECHO_T}base ($host_alias hosted) only" >&6
10125 else
10126 echo "$as_me:$LINENO: result: base only" >&5
10127echo "${ECHO_T}base only" >&6
10128 fi
10129fi
10130
10131wants_win32=0
10132doesnt_want_win32=0
10133case "${host}" in
10134 *-*-cygwin*)
10135 if test "$wxUSE_MSW" = 1 ; then
10136 wants_win32=1
10137 else
10138 doesnt_want_win32=1
10139 fi
10140 ;;
10141 *-*-mingw*)
10142 wants_win32=1
10143 ;;
10144esac
10145
10146if test "$wxUSE_WINE" = "yes"; then
10147 wants_win32=1
10148 CC=winegcc
10149 CXX=wineg++
10150 RESCOMP=wrc
10151 LDFLAGS_GUI="-mwindows"
10152fi
10153
10154if test "$wants_win32" = 1 ; then
10155 USE_UNIX=0
10156 USE_WIN32=1
10157 cat >>confdefs.h <<\_ACEOF
10158#define __WIN32__ 1
10159_ACEOF
10160
10161 cat >>confdefs.h <<\_ACEOF
10162#define __WIN95__ 1
10163_ACEOF
10164
10165 cat >>confdefs.h <<\_ACEOF
10166#define __WINDOWS__ 1
10167_ACEOF
10168
10169 cat >>confdefs.h <<\_ACEOF
10170#define __GNUWIN32__ 1
10171_ACEOF
10172
10173 cat >>confdefs.h <<\_ACEOF
10174#define STRICT 1
10175_ACEOF
10176
10177 cat >>confdefs.h <<\_ACEOF
10178#define WINVER 0x0400
10179_ACEOF
10180
10181fi
10182if test "$doesnt_want_win32" = 1 ; then
10183 USE_UNIX=1
10184 USE_WIN32=0
10185fi
10186
10187if test "$USE_UNIX" = 1 ; then
10188 wxUSE_UNIX=yes
10189 cat >>confdefs.h <<\_ACEOF
10190#define __UNIX__ 1
10191_ACEOF
10192
10193fi
10194
10195
10196cat >confcache <<\_ACEOF
10197# This file is a shell script that caches the results of configure
10198# tests run on this system so they can be shared between configure
10199# scripts and configure runs, see configure's option --config-cache.
10200# It is not useful on other systems. If it contains results you don't
10201# want to keep, you may remove or edit it.
10202#
10203# config.status only pays attention to the cache file if you give it
10204# the --recheck option to rerun configure.
10205#
10206# `ac_cv_env_foo' variables (set or unset) will be overridden when
10207# loading this file, other *unset* `ac_cv_foo' will be assigned the
10208# following values.
10209
10210_ACEOF
10211
10212# The following way of writing the cache mishandles newlines in values,
10213# but we know of no workaround that is simple, portable, and efficient.
10214# So, don't put newlines in cache variables' values.
10215# Ultrix sh set writes to stderr and can't be redirected directly,
10216# and sets the high bit in the cache file unless we assign to the vars.
10217{
10218 (set) 2>&1 |
10219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10220 *ac_space=\ *)
10221 # `set' does not quote correctly, so add quotes (double-quote
10222 # substitution turns \\\\ into \\, and sed turns \\ into \).
10223 sed -n \
ac1cb8d3
VS
10224 "s/'/'\\\\''/g;
10225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10226 ;;
10227 *)
10228 # `set' quotes correctly as required by POSIX, so do not add quotes.
10229 sed -n \
ac1cb8d3 10230 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10231 ;;
10232 esac;
10233} |
10234 sed '
10235 t clear
10236 : clear
10237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10238 t end
10239 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10240 : end' >>confcache
10241if diff $cache_file confcache >/dev/null 2>&1; then :; else
10242 if test -w $cache_file; then
10243 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10244 cat confcache >$cache_file
10245 else
10246 echo "not updating unwritable cache $cache_file"
10247 fi
10248fi
10249rm -f confcache
10250
10251if test "$build" != "$host" ; then
10252 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10253 CC=$host_alias-gcc
10254 CXX=$host_alias-c++
10255 AR=$host_alias-ar
10256 RANLIB=$host_alias-ranlib
10257 DLLTOOL=$host_alias-dlltool
10258 RESCOMP=$host_alias-windres
a848cd7e
SC
10259 STRIP=$host_alias-strip
10260 else
10261 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10262echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10263 { (exit 1); exit 1; }; }
10264 fi
10265fi
10266
10267CFLAGS=${CFLAGS:=}
10268ac_ext=c
10269ac_cpp='$CPP $CPPFLAGS'
10270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10272ac_compiler_gnu=$ac_cv_c_compiler_gnu
10273if test -n "$ac_tool_prefix"; then
10274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10275set dummy ${ac_tool_prefix}gcc; ac_word=$2
10276echo "$as_me:$LINENO: checking for $ac_word" >&5
10277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10278if test "${ac_cv_prog_CC+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 if test -n "$CC"; then
10282 ac_cv_prog_CC="$CC" # Let the user override the test.
10283else
10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296done
10297
10298fi
10299fi
10300CC=$ac_cv_prog_CC
10301if test -n "$CC"; then
10302 echo "$as_me:$LINENO: result: $CC" >&5
10303echo "${ECHO_T}$CC" >&6
10304else
10305 echo "$as_me:$LINENO: result: no" >&5
10306echo "${ECHO_T}no" >&6
10307fi
10308
10309fi
10310if test -z "$ac_cv_prog_CC"; then
10311 ac_ct_CC=$CC
10312 # Extract the first word of "gcc", so it can be a program name with args.
10313set dummy gcc; ac_word=$2
10314echo "$as_me:$LINENO: checking for $ac_word" >&5
10315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 if test -n "$ac_ct_CC"; then
10320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10321else
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329 ac_cv_prog_ac_ct_CC="gcc"
10330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10332 fi
10333done
10334done
10335
10336fi
10337fi
10338ac_ct_CC=$ac_cv_prog_ac_ct_CC
10339if test -n "$ac_ct_CC"; then
10340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10341echo "${ECHO_T}$ac_ct_CC" >&6
10342else
10343 echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
10345fi
10346
10347 CC=$ac_ct_CC
10348else
10349 CC="$ac_cv_prog_CC"
10350fi
10351
10352if test -z "$CC"; then
10353 if test -n "$ac_tool_prefix"; then
10354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10355set dummy ${ac_tool_prefix}cc; ac_word=$2
10356echo "$as_me:$LINENO: checking for $ac_word" >&5
10357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10358if test "${ac_cv_prog_CC+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361 if test -n "$CC"; then
10362 ac_cv_prog_CC="$CC" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_prog_CC="${ac_tool_prefix}cc"
10372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10374 fi
10375done
10376done
10377
10378fi
10379fi
10380CC=$ac_cv_prog_CC
10381if test -n "$CC"; then
10382 echo "$as_me:$LINENO: result: $CC" >&5
10383echo "${ECHO_T}$CC" >&6
10384else
10385 echo "$as_me:$LINENO: result: no" >&5
10386echo "${ECHO_T}no" >&6
10387fi
10388
10389fi
10390if test -z "$ac_cv_prog_CC"; then
10391 ac_ct_CC=$CC
10392 # Extract the first word of "cc", so it can be a program name with args.
10393set dummy cc; ac_word=$2
10394echo "$as_me:$LINENO: checking for $ac_word" >&5
10395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398else
10399 if test -n "$ac_ct_CC"; then
10400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10401else
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_ac_ct_CC="cc"
10410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10412 fi
10413done
10414done
10415
10416fi
10417fi
10418ac_ct_CC=$ac_cv_prog_ac_ct_CC
10419if test -n "$ac_ct_CC"; then
10420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10421echo "${ECHO_T}$ac_ct_CC" >&6
10422else
10423 echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6
10425fi
10426
10427 CC=$ac_ct_CC
10428else
10429 CC="$ac_cv_prog_CC"
10430fi
10431
10432fi
10433if test -z "$CC"; then
10434 # Extract the first word of "cc", so it can be a program name with args.
10435set dummy cc; ac_word=$2
10436echo "$as_me:$LINENO: checking for $ac_word" >&5
10437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10438if test "${ac_cv_prog_CC+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
10441 if test -n "$CC"; then
10442 ac_cv_prog_CC="$CC" # Let the user override the test.
10443else
10444 ac_prog_rejected=no
10445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $PATH
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10453 ac_prog_rejected=yes
10454 continue
10455 fi
10456 ac_cv_prog_CC="cc"
10457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10459 fi
10460done
10461done
10462
10463if test $ac_prog_rejected = yes; then
10464 # We found a bogon in the path, so make sure we never use it.
10465 set dummy $ac_cv_prog_CC
10466 shift
10467 if test $# != 0; then
10468 # We chose a different compiler from the bogus one.
10469 # However, it has the same basename, so the bogon will be chosen
10470 # first if we set CC to just the basename; use the full file name.
10471 shift
10472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10473 fi
10474fi
10475fi
10476fi
10477CC=$ac_cv_prog_CC
10478if test -n "$CC"; then
10479 echo "$as_me:$LINENO: result: $CC" >&5
10480echo "${ECHO_T}$CC" >&6
10481else
10482 echo "$as_me:$LINENO: result: no" >&5
10483echo "${ECHO_T}no" >&6
10484fi
10485
10486fi
10487if test -z "$CC"; then
10488 if test -n "$ac_tool_prefix"; then
10489 for ac_prog in cl
10490 do
10491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10493echo "$as_me:$LINENO: checking for $ac_word" >&5
10494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10495if test "${ac_cv_prog_CC+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497else
10498 if test -n "$CC"; then
10499 ac_cv_prog_CC="$CC" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513done
10514
10515fi
10516fi
10517CC=$ac_cv_prog_CC
10518if test -n "$CC"; then
10519 echo "$as_me:$LINENO: result: $CC" >&5
10520echo "${ECHO_T}$CC" >&6
10521else
10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
10524fi
10525
10526 test -n "$CC" && break
10527 done
10528fi
10529if test -z "$CC"; then
10530 ac_ct_CC=$CC
10531 for ac_prog in cl
10532do
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540 if test -n "$ac_ct_CC"; then
10541 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
10551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555done
10556
10557fi
10558fi
10559ac_ct_CC=$ac_cv_prog_ac_ct_CC
10560if test -n "$ac_ct_CC"; then
10561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10562echo "${ECHO_T}$ac_ct_CC" >&6
10563else
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
10566fi
10567
10568 test -n "$ac_ct_CC" && break
10569done
10570
10571 CC=$ac_ct_CC
10572fi
10573
10574fi
10575
10576
10577test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10578See \`config.log' for more details." >&5
10579echo "$as_me: error: no acceptable C compiler found in \$PATH
10580See \`config.log' for more details." >&2;}
10581 { (exit 1); exit 1; }; }
10582
10583# Provide some information about the compiler.
10584echo "$as_me:$LINENO:" \
10585 "checking for C compiler version" >&5
10586ac_compiler=`set X $ac_compile; echo $2`
10587{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10588 (eval $ac_compiler --version </dev/null >&5) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }
10592{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10593 (eval $ac_compiler -v </dev/null >&5) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }
10597{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10598 (eval $ac_compiler -V </dev/null >&5) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }
10602
10603cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
10609
10610int
10611main ()
10612{
10613
10614 ;
10615 return 0;
10616}
10617_ACEOF
10618ac_clean_files_save=$ac_clean_files
10619ac_clean_files="$ac_clean_files a.out a.exe b.out"
10620# Try to create an executable without -o first, disregard a.out.
10621# It will help us diagnose broken compilers, and finding out an intuition
10622# of exeext.
ac1cb8d3
VS
10623echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10624echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10625ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10626if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10627 (eval $ac_link_default) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; then
10631 # Find the output, starting from the most likely. This scheme is
10632# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10633# resort.
10634
10635# Be careful to initialize this variable, since it used to be cached.
10636# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10637ac_cv_exeext=
10638# b.out is created by i960 compilers.
10639for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10640do
10641 test -f "$ac_file" || continue
10642 case $ac_file in
10643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10644 ;;
a848cd7e 10645 conftest.$ac_ext )
ac1cb8d3
VS
10646 # This is the source file.
10647 ;;
a848cd7e 10648 [ab].out )
ac1cb8d3
VS
10649 # We found the default executable, but exeext='' is most
10650 # certainly right.
10651 break;;
a848cd7e 10652 *.* )
ac1cb8d3
VS
10653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10654 # FIXME: I believe we export ac_cv_exeext for Libtool,
10655 # but it would be cool to find out if it's true. Does anybody
10656 # maintain Libtool? --akim.
10657 export ac_cv_exeext
10658 break;;
a848cd7e 10659 * )
ac1cb8d3 10660 break;;
a848cd7e
SC
10661 esac
10662done
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10668See \`config.log' for more details." >&5
10669echo "$as_me: error: C compiler cannot create executables
10670See \`config.log' for more details." >&2;}
10671 { (exit 77); exit 77; }; }
10672fi
10673
10674ac_exeext=$ac_cv_exeext
10675echo "$as_me:$LINENO: result: $ac_file" >&5
10676echo "${ECHO_T}$ac_file" >&6
10677
10678# Check the compiler produces executables we can run. If not, either
10679# the compiler is broken, or we cross compile.
10680echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10681echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10682# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10683# If not cross compiling, check that we can run a simple program.
10684if test "$cross_compiling" != yes; then
10685 if { ac_try='./$ac_file'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 cross_compiling=no
10692 else
10693 if test "$cross_compiling" = maybe; then
10694 cross_compiling=yes
10695 else
10696 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10697If you meant to cross compile, use \`--host'.
10698See \`config.log' for more details." >&5
10699echo "$as_me: error: cannot run C compiled programs.
10700If you meant to cross compile, use \`--host'.
10701See \`config.log' for more details." >&2;}
10702 { (exit 1); exit 1; }; }
10703 fi
10704 fi
10705fi
10706echo "$as_me:$LINENO: result: yes" >&5
10707echo "${ECHO_T}yes" >&6
10708
10709rm -f a.out a.exe conftest$ac_cv_exeext b.out
10710ac_clean_files=$ac_clean_files_save
10711# Check the compiler produces executables we can run. If not, either
10712# the compiler is broken, or we cross compile.
10713echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10714echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10715echo "$as_me:$LINENO: result: $cross_compiling" >&5
10716echo "${ECHO_T}$cross_compiling" >&6
10717
10718echo "$as_me:$LINENO: checking for suffix of executables" >&5
10719echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721 (eval $ac_link) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; then
10725 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10726# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10727# work properly (i.e., refer to `conftest.exe'), while it won't with
10728# `rm'.
10729for ac_file in conftest.exe conftest conftest.*; do
10730 test -f "$ac_file" || continue
10731 case $ac_file in
10732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10733 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10734 export ac_cv_exeext
10735 break;;
a848cd7e
SC
10736 * ) break;;
10737 esac
10738done
10739else
10740 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10741See \`config.log' for more details." >&5
10742echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10743See \`config.log' for more details." >&2;}
10744 { (exit 1); exit 1; }; }
10745fi
10746
10747rm -f conftest$ac_cv_exeext
10748echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10749echo "${ECHO_T}$ac_cv_exeext" >&6
10750
10751rm -f conftest.$ac_ext
10752EXEEXT=$ac_cv_exeext
10753ac_exeext=$EXEEXT
10754echo "$as_me:$LINENO: checking for suffix of object files" >&5
10755echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10756if test "${ac_cv_objext+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10758else
10759 cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765
10766int
10767main ()
10768{
10769
10770 ;
10771 return 0;
10772}
10773_ACEOF
10774rm -f conftest.o conftest.obj
10775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776 (eval $ac_compile) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; then
10780 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10781 case $ac_file in
10782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10784 break;;
10785 esac
10786done
10787else
10788 echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
10790
10791{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10792See \`config.log' for more details." >&5
10793echo "$as_me: error: cannot compute suffix of object files: cannot compile
10794See \`config.log' for more details." >&2;}
10795 { (exit 1); exit 1; }; }
10796fi
10797
10798rm -f conftest.$ac_cv_objext conftest.$ac_ext
10799fi
10800echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10801echo "${ECHO_T}$ac_cv_objext" >&6
10802OBJEXT=$ac_cv_objext
10803ac_objext=$OBJEXT
10804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10806if test "${ac_cv_c_compiler_gnu+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809 cat >conftest.$ac_ext <<_ACEOF
10810/* confdefs.h. */
10811_ACEOF
10812cat confdefs.h >>conftest.$ac_ext
10813cat >>conftest.$ac_ext <<_ACEOF
10814/* end confdefs.h. */
10815
10816int
10817main ()
10818{
10819#ifndef __GNUC__
10820 choke me
10821#endif
10822
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext
10828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10829 (eval $ac_compile) 2>conftest.er1
a848cd7e 10830 ac_status=$?
ac1cb8d3
VS
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
a848cd7e
SC
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
c228d3a4
RN
10836 { ac_try='test -z "$ac_c_werror_flag"
10837 || test ! -s conftest.err'
ac1cb8d3
VS
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_compiler_gnu=yes
10850else
10851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
10853
10854ac_compiler_gnu=no
10855fi
ac1cb8d3 10856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10857ac_cv_c_compiler_gnu=$ac_compiler_gnu
10858
10859fi
10860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10862GCC=`test $ac_compiler_gnu = yes && echo yes`
10863ac_test_CFLAGS=${CFLAGS+set}
10864ac_save_CFLAGS=$CFLAGS
10865CFLAGS="-g"
10866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10868if test "${ac_cv_prog_cc_g+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 cat >conftest.$ac_ext <<_ACEOF
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
10877
10878int
10879main ()
10880{
10881
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886rm -f conftest.$ac_objext
10887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10888 (eval $ac_compile) 2>conftest.er1
a848cd7e 10889 ac_status=$?
ac1cb8d3
VS
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
a848cd7e
SC
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
c228d3a4
RN
10895 { ac_try='test -z "$ac_c_werror_flag"
10896 || test ! -s conftest.err'
ac1cb8d3
VS
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; } &&
10902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_cv_prog_cc_g=yes
10909else
10910 echo "$as_me: failed program was:" >&5
10911sed 's/^/| /' conftest.$ac_ext >&5
10912
10913ac_cv_prog_cc_g=no
10914fi
ac1cb8d3 10915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10916fi
10917echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10918echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10919if test "$ac_test_CFLAGS" = set; then
10920 CFLAGS=$ac_save_CFLAGS
10921elif test $ac_cv_prog_cc_g = yes; then
10922 if test "$GCC" = yes; then
10923 CFLAGS="-g -O2"
10924 else
10925 CFLAGS="-g"
10926 fi
10927else
10928 if test "$GCC" = yes; then
10929 CFLAGS="-O2"
10930 else
10931 CFLAGS=
10932 fi
10933fi
10934echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10935echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10936if test "${ac_cv_prog_cc_stdc+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 ac_cv_prog_cc_stdc=no
10940ac_save_CC=$CC
10941cat >conftest.$ac_ext <<_ACEOF
10942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947#include <stdarg.h>
10948#include <stdio.h>
10949#include <sys/types.h>
10950#include <sys/stat.h>
10951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10952struct buf { int x; };
10953FILE * (*rcsopen) (struct buf *, struct stat *, int);
10954static char *e (p, i)
10955 char **p;
10956 int i;
10957{
10958 return p[i];
10959}
10960static char *f (char * (*g) (char **, int), char **p, ...)
10961{
10962 char *s;
10963 va_list v;
10964 va_start (v,p);
10965 s = g (p, va_arg (v,int));
10966 va_end (v);
10967 return s;
10968}
ac1cb8d3
VS
10969
10970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10971 function prototypes and stuff, but not '\xHH' hex character constants.
10972 These don't provoke an error unfortunately, instead are silently treated
10973 as 'x'. The following induces an error, until -std1 is added to get
10974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10975 array size at least. It's necessary to write '\x00'==0 to get something
10976 that's true only with -std1. */
10977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10978
a848cd7e
SC
10979int test (int i, double x);
10980struct s1 {int (*f) (int a);};
10981struct s2 {int (*f) (double a);};
10982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10983int argc;
10984char **argv;
10985int
10986main ()
10987{
10988return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10989 ;
10990 return 0;
10991}
10992_ACEOF
10993# Don't try gcc -ansi; that turns off useful extensions and
10994# breaks some systems' header files.
10995# AIX -qlanglvl=ansi
10996# Ultrix and OSF/1 -std1
10997# HP-UX 10.20 and later -Ae
10998# HP-UX older versions -Aa -D_HPUX_SOURCE
10999# SVR4 -Xc -D__EXTENSIONS__
11000for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11001do
11002 CC="$ac_save_CC $ac_arg"
11003 rm -f conftest.$ac_objext
11004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11005 (eval $ac_compile) 2>conftest.er1
a848cd7e 11006 ac_status=$?
ac1cb8d3
VS
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
a848cd7e
SC
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
c228d3a4
RN
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
ac1cb8d3
VS
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_prog_cc_stdc=$ac_arg
11026break
11027else
11028 echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
11031fi
ac1cb8d3 11032rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11033done
11034rm -f conftest.$ac_ext conftest.$ac_objext
11035CC=$ac_save_CC
11036
11037fi
11038
11039case "x$ac_cv_prog_cc_stdc" in
11040 x|xno)
11041 echo "$as_me:$LINENO: result: none needed" >&5
11042echo "${ECHO_T}none needed" >&6 ;;
11043 *)
11044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11045echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11046 CC="$CC $ac_cv_prog_cc_stdc" ;;
11047esac
11048
11049# Some people use a C++ compiler to compile C. Since we use `exit',
11050# in C++ we need to declare it. In case someone uses the same compiler
11051# for both compiling C and C++ we need to have the C++ compiler decide
11052# the declaration of exit, since it's the most demanding environment.
11053cat >conftest.$ac_ext <<_ACEOF
11054#ifndef __cplusplus
11055 choke me
11056#endif
11057_ACEOF
11058rm -f conftest.$ac_objext
11059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11060 (eval $ac_compile) 2>conftest.er1
a848cd7e 11061 ac_status=$?
ac1cb8d3
VS
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
a848cd7e
SC
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
c228d3a4
RN
11067 { ac_try='test -z "$ac_c_werror_flag"
11068 || test ! -s conftest.err'
ac1cb8d3
VS
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 for ac_declaration in \
ac1cb8d3 11081 '' \
a848cd7e
SC
11082 'extern "C" void std::exit (int) throw (); using std::exit;' \
11083 'extern "C" void std::exit (int); using std::exit;' \
11084 'extern "C" void exit (int) throw ();' \
11085 'extern "C" void exit (int);' \
11086 'void exit (int);'
11087do
11088 cat >conftest.$ac_ext <<_ACEOF
11089/* confdefs.h. */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
11093/* end confdefs.h. */
de59c161 11094$ac_declaration
ac1cb8d3 11095#include <stdlib.h>
a848cd7e
SC
11096int
11097main ()
11098{
11099exit (42);
11100 ;
11101 return 0;
11102}
11103_ACEOF
11104rm -f conftest.$ac_objext
11105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11106 (eval $ac_compile) 2>conftest.er1
a848cd7e 11107 ac_status=$?
ac1cb8d3
VS
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
a848cd7e
SC
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
c228d3a4
RN
11113 { ac_try='test -z "$ac_c_werror_flag"
11114 || test ! -s conftest.err'
ac1cb8d3
VS
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 :
11127else
11128 echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
11131continue
11132fi
ac1cb8d3 11133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11134 cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h. */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h. */
11140$ac_declaration
11141int
11142main ()
11143{
11144exit (42);
11145 ;
11146 return 0;
11147}
11148_ACEOF
11149rm -f conftest.$ac_objext
11150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11151 (eval $ac_compile) 2>conftest.er1
a848cd7e 11152 ac_status=$?
ac1cb8d3
VS
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
a848cd7e
SC
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
c228d3a4
RN
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
ac1cb8d3
VS
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 break
11172else
11173 echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
11175
11176fi
ac1cb8d3 11177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11178done
11179rm -f conftest*
11180if test -n "$ac_declaration"; then
11181 echo '#ifdef __cplusplus' >>confdefs.h
11182 echo $ac_declaration >>confdefs.h
11183 echo '#endif' >>confdefs.h
11184fi
11185
11186else
11187 echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5
11189
11190fi
ac1cb8d3 11191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11192ac_ext=c
11193ac_cpp='$CPP $CPPFLAGS'
11194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196ac_compiler_gnu=$ac_cv_c_compiler_gnu
11197
11198
11199
11200ac_ext=c
11201ac_cpp='$CPP $CPPFLAGS'
11202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204ac_compiler_gnu=$ac_cv_c_compiler_gnu
11205echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11206echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11207# On Suns, sometimes $CPP names a directory.
11208if test -n "$CPP" && test -d "$CPP"; then
11209 CPP=
11210fi
11211if test -z "$CPP"; then
11212 if test "${ac_cv_prog_CPP+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 # Double quotes because CPP needs to be expanded
11216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11217 do
11218 ac_preproc_ok=false
11219for ac_c_preproc_warn_flag in '' yes
11220do
11221 # Use a header file that comes with gcc, so configuring glibc
11222 # with a fresh cross-compiler works.
11223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11224 # <limits.h> exists even on freestanding compilers.
11225 # On the NeXT, cc -E runs the code through the compiler's parser,
11226 # not just through cpp. "Syntax error" is here to catch this case.
11227 cat >conftest.$ac_ext <<_ACEOF
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233#ifdef __STDC__
11234# include <limits.h>
11235#else
11236# include <assert.h>
11237#endif
ac1cb8d3 11238 Syntax error
a848cd7e
SC
11239_ACEOF
11240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } >/dev/null; then
11248 if test -s conftest.err; then
11249 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11251 else
11252 ac_cpp_err=
11253 fi
11254else
11255 ac_cpp_err=yes
11256fi
11257if test -z "$ac_cpp_err"; then
11258 :
11259else
11260 echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263 # Broken: fails on valid input.
11264continue
11265fi
11266rm -f conftest.err conftest.$ac_ext
11267
11268 # OK, works on sane cases. Now check whether non-existent headers
11269 # can be detected and how.
11270 cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276#include <ac_nonexistent.h>
11277_ACEOF
11278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } >/dev/null; then
11286 if test -s conftest.err; then
11287 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11289 else
11290 ac_cpp_err=
11291 fi
11292else
11293 ac_cpp_err=yes
11294fi
11295if test -z "$ac_cpp_err"; then
11296 # Broken: success on invalid input.
11297continue
11298else
11299 echo "$as_me: failed program was:" >&5
11300sed 's/^/| /' conftest.$ac_ext >&5
11301
11302 # Passes both tests.
11303ac_preproc_ok=:
11304break
11305fi
11306rm -f conftest.err conftest.$ac_ext
11307
11308done
11309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11310rm -f conftest.err conftest.$ac_ext
11311if $ac_preproc_ok; then
11312 break
11313fi
11314
11315 done
11316 ac_cv_prog_CPP=$CPP
11317
11318fi
11319 CPP=$ac_cv_prog_CPP
11320else
11321 ac_cv_prog_CPP=$CPP
11322fi
11323echo "$as_me:$LINENO: result: $CPP" >&5
11324echo "${ECHO_T}$CPP" >&6
11325ac_preproc_ok=false
11326for ac_c_preproc_warn_flag in '' yes
11327do
11328 # Use a header file that comes with gcc, so configuring glibc
11329 # with a fresh cross-compiler works.
11330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331 # <limits.h> exists even on freestanding compilers.
11332 # On the NeXT, cc -E runs the code through the compiler's parser,
11333 # not just through cpp. "Syntax error" is here to catch this case.
11334 cat >conftest.$ac_ext <<_ACEOF
11335/* confdefs.h. */
11336_ACEOF
11337cat confdefs.h >>conftest.$ac_ext
11338cat >>conftest.$ac_ext <<_ACEOF
11339/* end confdefs.h. */
11340#ifdef __STDC__
11341# include <limits.h>
11342#else
11343# include <assert.h>
11344#endif
ac1cb8d3 11345 Syntax error
a848cd7e
SC
11346_ACEOF
11347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11358 else
11359 ac_cpp_err=
11360 fi
11361else
11362 ac_cpp_err=yes
11363fi
11364if test -z "$ac_cpp_err"; then
11365 :
11366else
11367 echo "$as_me: failed program was:" >&5
11368sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 # Broken: fails on valid input.
11371continue
11372fi
11373rm -f conftest.err conftest.$ac_ext
11374
11375 # OK, works on sane cases. Now check whether non-existent headers
11376 # can be detected and how.
11377 cat >conftest.$ac_ext <<_ACEOF
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383#include <ac_nonexistent.h>
11384_ACEOF
11385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null; then
11393 if test -s conftest.err; then
11394 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11396 else
11397 ac_cpp_err=
11398 fi
11399else
11400 ac_cpp_err=yes
11401fi
11402if test -z "$ac_cpp_err"; then
11403 # Broken: success on invalid input.
11404continue
11405else
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 # Passes both tests.
11410ac_preproc_ok=:
11411break
11412fi
11413rm -f conftest.err conftest.$ac_ext
11414
11415done
11416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11417rm -f conftest.err conftest.$ac_ext
11418if $ac_preproc_ok; then
11419 :
11420else
11421 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11422See \`config.log' for more details." >&5
11423echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11424See \`config.log' for more details." >&2;}
11425 { (exit 1); exit 1; }; }
11426fi
11427
11428ac_ext=c
11429ac_cpp='$CPP $CPPFLAGS'
11430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11432ac_compiler_gnu=$ac_cv_c_compiler_gnu
11433
11434
11435echo "$as_me:$LINENO: checking for egrep" >&5
11436echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11437if test "${ac_cv_prog_egrep+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439else
11440 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11441 then ac_cv_prog_egrep='grep -E'
11442 else ac_cv_prog_egrep='egrep'
11443 fi
11444fi
11445echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11446echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11447 EGREP=$ac_cv_prog_egrep
11448
11449
11450if test $ac_cv_c_compiler_gnu = yes; then
11451 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11452echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11453if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455else
11456 ac_pattern="Autoconf.*'x'"
11457 cat >conftest.$ac_ext <<_ACEOF
11458/* confdefs.h. */
11459_ACEOF
11460cat confdefs.h >>conftest.$ac_ext
11461cat >>conftest.$ac_ext <<_ACEOF
11462/* end confdefs.h. */
11463#include <sgtty.h>
11464Autoconf TIOCGETP
11465_ACEOF
11466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11467 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11468 ac_cv_prog_gcc_traditional=yes
11469else
11470 ac_cv_prog_gcc_traditional=no
11471fi
11472rm -f conftest*
11473
11474
11475 if test $ac_cv_prog_gcc_traditional = no; then
11476 cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482#include <termio.h>
11483Autoconf TCGETA
11484_ACEOF
11485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11486 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11487 ac_cv_prog_gcc_traditional=yes
11488fi
11489rm -f conftest*
11490
11491 fi
11492fi
11493echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11494echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11495 if test $ac_cv_prog_gcc_traditional = yes; then
11496 CC="$CC -traditional"
11497 fi
11498fi
11499
11500
11501
11502
11503ac_ext=cc
11504ac_cpp='$CXXCPP $CPPFLAGS'
11505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11508
11509
11510CXXFLAGS=${CXXFLAGS:=}
11511ac_ext=cc
11512ac_cpp='$CXXCPP $CPPFLAGS'
11513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11516if test -n "$ac_tool_prefix"; then
11517 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11518 do
11519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11521echo "$as_me:$LINENO: checking for $ac_word" >&5
11522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11523if test "${ac_cv_prog_CXX+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525else
11526 if test -n "$CXX"; then
11527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11528else
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540done
11541done
11542
11543fi
11544fi
11545CXX=$ac_cv_prog_CXX
11546if test -n "$CXX"; then
11547 echo "$as_me:$LINENO: result: $CXX" >&5
11548echo "${ECHO_T}$CXX" >&6
11549else
11550 echo "$as_me:$LINENO: result: no" >&5
11551echo "${ECHO_T}no" >&6
11552fi
11553
11554 test -n "$CXX" && break
11555 done
11556fi
11557if test -z "$CXX"; then
11558 ac_ct_CXX=$CXX
11559 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11560do
11561 # Extract the first word of "$ac_prog", so it can be a program name with args.
11562set dummy $ac_prog; ac_word=$2
11563echo "$as_me:$LINENO: checking for $ac_word" >&5
11564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 if test -n "$ac_ct_CXX"; then
11569 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11570else
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_prog_ac_ct_CXX="$ac_prog"
11579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582done
11583done
11584
11585fi
11586fi
11587ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11588if test -n "$ac_ct_CXX"; then
11589 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11590echo "${ECHO_T}$ac_ct_CXX" >&6
11591else
11592 echo "$as_me:$LINENO: result: no" >&5
11593echo "${ECHO_T}no" >&6
11594fi
11595
11596 test -n "$ac_ct_CXX" && break
11597done
11598test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11599
11600 CXX=$ac_ct_CXX
11601fi
11602
11603
11604# Provide some information about the compiler.
11605echo "$as_me:$LINENO:" \
11606 "checking for C++ compiler version" >&5
11607ac_compiler=`set X $ac_compile; echo $2`
11608{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11609 (eval $ac_compiler --version </dev/null >&5) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }
11613{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11614 (eval $ac_compiler -v </dev/null >&5) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }
11618{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11619 (eval $ac_compiler -V </dev/null >&5) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }
11623
11624echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11625echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11626if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628else
11629 cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
11635
11636int
11637main ()
11638{
11639#ifndef __GNUC__
11640 choke me
11641#endif
11642
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext
11648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11649 (eval $ac_compile) 2>conftest.er1
a848cd7e 11650 ac_status=$?
ac1cb8d3
VS
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
a848cd7e
SC
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
c228d3a4
RN
11656 { ac_try='test -z "$ac_cxx_werror_flag"
11657 || test ! -s conftest.err'
ac1cb8d3
VS
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_compiler_gnu=yes
11670else
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674ac_compiler_gnu=no
11675fi
ac1cb8d3 11676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11677ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11678
11679fi
11680echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11681echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11682GXX=`test $ac_compiler_gnu = yes && echo yes`
11683ac_test_CXXFLAGS=${CXXFLAGS+set}
11684ac_save_CXXFLAGS=$CXXFLAGS
11685CXXFLAGS="-g"
11686echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11687echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11688if test "${ac_cv_prog_cxx_g+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690else
11691 cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
11697
11698int
11699main ()
11700{
11701
11702 ;
11703 return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext
11707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11708 (eval $ac_compile) 2>conftest.er1
a848cd7e 11709 ac_status=$?
ac1cb8d3
VS
11710 grep -v '^ *+' conftest.er1 >conftest.err
11711 rm -f conftest.er1
11712 cat conftest.err >&5
a848cd7e
SC
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
c228d3a4
RN
11715 { ac_try='test -z "$ac_cxx_werror_flag"
11716 || test ! -s conftest.err'
ac1cb8d3
VS
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_prog_cxx_g=yes
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733ac_cv_prog_cxx_g=no
11734fi
ac1cb8d3 11735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11736fi
11737echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11738echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11739if test "$ac_test_CXXFLAGS" = set; then
11740 CXXFLAGS=$ac_save_CXXFLAGS
11741elif test $ac_cv_prog_cxx_g = yes; then
11742 if test "$GXX" = yes; then
11743 CXXFLAGS="-g -O2"
11744 else
11745 CXXFLAGS="-g"
11746 fi
11747else
11748 if test "$GXX" = yes; then
11749 CXXFLAGS="-O2"
11750 else
11751 CXXFLAGS=
11752 fi
11753fi
11754for ac_declaration in \
ac1cb8d3 11755 '' \
a848cd7e
SC
11756 'extern "C" void std::exit (int) throw (); using std::exit;' \
11757 'extern "C" void std::exit (int); using std::exit;' \
11758 'extern "C" void exit (int) throw ();' \
11759 'extern "C" void exit (int);' \
11760 'void exit (int);'
11761do
11762 cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h. */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h. */
de59c161 11768$ac_declaration
ac1cb8d3 11769#include <stdlib.h>
a848cd7e
SC
11770int
11771main ()
11772{
11773exit (42);
11774 ;
11775 return 0;
11776}
11777_ACEOF
11778rm -f conftest.$ac_objext
11779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11780 (eval $ac_compile) 2>conftest.er1
a848cd7e 11781 ac_status=$?
ac1cb8d3
VS
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
a848cd7e
SC
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
c228d3a4
RN
11787 { ac_try='test -z "$ac_cxx_werror_flag"
11788 || test ! -s conftest.err'
ac1cb8d3
VS
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 :
11801else
11802 echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805continue
11806fi
ac1cb8d3 11807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
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$ac_declaration
11815int
11816main ()
11817{
11818exit (42);
11819 ;
11820 return 0;
11821}
11822_ACEOF
11823rm -f conftest.$ac_objext
11824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11825 (eval $ac_compile) 2>conftest.er1
a848cd7e 11826 ac_status=$?
ac1cb8d3
VS
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
a848cd7e
SC
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
c228d3a4
RN
11832 { ac_try='test -z "$ac_cxx_werror_flag"
11833 || test ! -s conftest.err'
ac1cb8d3
VS
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 break
11846else
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
11850fi
ac1cb8d3 11851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11852done
11853rm -f conftest*
11854if test -n "$ac_declaration"; then
11855 echo '#ifdef __cplusplus' >>confdefs.h
11856 echo $ac_declaration >>confdefs.h
11857 echo '#endif' >>confdefs.h
11858fi
11859
11860ac_ext=cc
11861ac_cpp='$CXXCPP $CPPFLAGS'
11862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11865
11866
11867ac_ext=c
11868ac_cpp='$CPP $CPPFLAGS'
11869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11871ac_compiler_gnu=$ac_cv_c_compiler_gnu
11872
11873
a848cd7e
SC
11874if test -n "$ac_tool_prefix"; then
11875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11876set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11877echo "$as_me:$LINENO: checking for $ac_word" >&5
11878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11879if test "${ac_cv_prog_RANLIB+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 if test -n "$RANLIB"; then
11883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11884else
11885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886for as_dir in $PATH
11887do
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11895 fi
11896done
11897done
11898
11899fi
11900fi
11901RANLIB=$ac_cv_prog_RANLIB
11902if test -n "$RANLIB"; then
11903 echo "$as_me:$LINENO: result: $RANLIB" >&5
11904echo "${ECHO_T}$RANLIB" >&6
11905else
11906 echo "$as_me:$LINENO: result: no" >&5
11907echo "${ECHO_T}no" >&6
11908fi
11909
11910fi
11911if test -z "$ac_cv_prog_RANLIB"; then
11912 ac_ct_RANLIB=$RANLIB
11913 # Extract the first word of "ranlib", so it can be a program name with args.
11914set dummy ranlib; ac_word=$2
11915echo "$as_me:$LINENO: checking for $ac_word" >&5
11916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11917if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919else
11920 if test -n "$ac_ct_RANLIB"; then
11921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11922else
11923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_prog_ac_ct_RANLIB="ranlib"
11931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11933 fi
11934done
11935done
11936
11937 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11938fi
11939fi
11940ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11941if test -n "$ac_ct_RANLIB"; then
11942 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11943echo "${ECHO_T}$ac_ct_RANLIB" >&6
11944else
11945 echo "$as_me:$LINENO: result: no" >&5
11946echo "${ECHO_T}no" >&6
11947fi
11948
11949 RANLIB=$ac_ct_RANLIB
11950else
11951 RANLIB="$ac_cv_prog_RANLIB"
11952fi
11953
11954
11955# Extract the first word of "ar", so it can be a program name with args.
11956set dummy ar; ac_word=$2
11957echo "$as_me:$LINENO: checking for $ac_word" >&5
11958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11959if test "${ac_cv_prog_AR+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 if test -n "$AR"; then
11963 ac_cv_prog_AR="$AR" # Let the user override the test.
11964else
11965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966for as_dir in $PATH
11967do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972 ac_cv_prog_AR="ar"
11973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 break 2
11975 fi
11976done
11977done
11978
11979fi
11980fi
11981AR=$ac_cv_prog_AR
11982if test -n "$AR"; then
11983 echo "$as_me:$LINENO: result: $AR" >&5
11984echo "${ECHO_T}$AR" >&6
11985else
11986 echo "$as_me:$LINENO: result: no" >&5
11987echo "${ECHO_T}no" >&6
11988fi
11989
11990if test "x$AR" = "x" ; then
77ffb593
JS
11991 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11992echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11993 { (exit 1); exit 1; }; }
11994fi
11995
11996# Find a good install program. We prefer a C program (faster),
11997# so one script is as good as another. But avoid the broken or
11998# incompatible versions:
11999# SysV /etc/install, /usr/sbin/install
12000# SunOS /usr/etc/install
12001# IRIX /sbin/install
12002# AIX /bin/install
12003# AmigaOS /C/install, which installs bootblocks on floppy discs
12004# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12005# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12006# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12007# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12008# ./install, which can be erroneously created by make from ./install.sh.
12009echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12010echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12011if test -z "$INSTALL"; then
12012if test "${ac_cv_path_install+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014else
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 # Account for people who put trailing slashes in PATH elements.
12021case $as_dir/ in
12022 ./ | .// | /cC/* | \
12023 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12024 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12025 /usr/ucb/* ) ;;
12026 *)
12027 # OSF1 and SCO ODT 3.0 have their own names for install.
12028 # Don't use installbsd from OSF since it installs stuff as root
12029 # by default.
12030 for ac_prog in ginstall scoinst install; do
12031 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12032 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12033 if test $ac_prog = install &&
12034 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12035 # AIX install. It has an incompatible calling convention.
12036 :
12037 elif test $ac_prog = install &&
12038 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12039 # program-specific install script used by HP pwplus--don't use.
12040 :
12041 else
12042 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12043 break 3
12044 fi
12045 fi
a848cd7e
SC
12046 done
12047 done
12048 ;;
12049esac
12050done
12051
12052
12053fi
12054 if test "${ac_cv_path_install+set}" = set; then
12055 INSTALL=$ac_cv_path_install
12056 else
12057 # As a last resort, use the slow shell script. We don't cache a
12058 # path for INSTALL within a source directory, because that will
12059 # break other packages using the cache if that directory is
12060 # removed, or if the path is relative.
12061 INSTALL=$ac_install_sh
12062 fi
12063fi
12064echo "$as_me:$LINENO: result: $INSTALL" >&5
12065echo "${ECHO_T}$INSTALL" >&6
12066
12067# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12068# It thinks the first close brace ends the variable substitution.
12069test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12070
12071test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12072
12073test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12074
12075
12076case ${INSTALL} in
12077 /* ) # Absolute
12078 ;;
12079 ?:* ) # Drive letter, considered as absolute.
12080 ;;
12081 *)
12082 INSTALL=`pwd`/${INSTALL} ;;
12083esac
12084
a848cd7e
SC
12085
12086case "${host}" in
12087
12088 powerpc-*-darwin* )
12089 INSTALL_PROGRAM="cp -fp"
12090 INSTALL_DATA="cp -fp"
12091 ;;
12092 *)
12093 ;;
12094esac
12095
12096# Extract the first word of "strip", so it can be a program name with args.
12097set dummy strip; ac_word=$2
12098echo "$as_me:$LINENO: checking for $ac_word" >&5
12099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12100if test "${ac_cv_prog_STRIP+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 if test -n "$STRIP"; then
12104 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12105else
12106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107for as_dir in $PATH
12108do
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_prog_STRIP="strip"
12114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12116 fi
12117done
12118done
12119
12120 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12121fi
12122fi
12123STRIP=$ac_cv_prog_STRIP
12124if test -n "$STRIP"; then
12125 echo "$as_me:$LINENO: result: $STRIP" >&5
12126echo "${ECHO_T}$STRIP" >&6
12127else
12128 echo "$as_me:$LINENO: result: no" >&5
12129echo "${ECHO_T}no" >&6
12130fi
12131
12132
12133echo "$as_me:$LINENO: checking if make is GNU make" >&5
12134echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12135if test "${wx_cv_prog_makeisgnu+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138
12139 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12140 egrep -s GNU > /dev/null); then
12141 wx_cv_prog_makeisgnu="yes"
12142 else
12143 wx_cv_prog_makeisgnu="no"
12144 fi
12145
12146fi
12147echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12148echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12149
12150if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12151 IF_GNU_MAKE=""
12152else
12153 IF_GNU_MAKE="#"
12154fi
12155
12156
12157
12158if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12159echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12160echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12161if test "${wx_cv_prog_makevpath+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163else
12164
12165cat - << EOF > confMake
12166check : file
12167 cp \$? \$@
12168 cp \$? final_file
12169EOF
12170
12171if test ! -d sub ; then
12172 mkdir sub
12173fi
12174echo dummy > sub/file
12175${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12176RESULT=$?
12177rm -f sub/file check final_file confMake
12178rmdir sub
12179if test "$RESULT" = 0; then
12180 wx_cv_prog_makevpath="yes"
12181else
12182 wx_cv_prog_makevpath="no"
12183fi
12184
12185fi
12186echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12187echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12188
12189if test "x$wx_cv_prog_makevpath" != "xyes"; then
12190{ { echo "$as_me:$LINENO: error:
12191You need a make-utility that is able to use the variable
12192VPATH correctly.
12193If your version of make does not support VPATH correctly,
12194please install GNU-make (possibly as gmake), and start
12195configure with the following command:
12196export MAKE=gmake; ./configure for sh-type shells
12197setenv MAKE gmake; ./configure for csh-type shells
12198Also please do remember to use gmake in this case every time
12199you are trying to compile.
12200" >&5
12201echo "$as_me: error:
12202You need a make-utility that is able to use the variable
12203VPATH correctly.
12204If your version of make does not support VPATH correctly,
12205please install GNU-make (possibly as gmake), and start
12206configure with the following command:
12207export MAKE=gmake; ./configure for sh-type shells
12208setenv MAKE gmake; ./configure for csh-type shells
12209Also please do remember to use gmake in this case every time
12210you are trying to compile.
12211" >&2;}
12212 { (exit 1); exit 1; }; }
12213fi fi
12214echo "$as_me:$LINENO: checking whether ln -s works" >&5
12215echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12216LN_S=$as_ln_s
12217if test "$LN_S" = "ln -s"; then
12218 echo "$as_me:$LINENO: result: yes" >&5
12219echo "${ECHO_T}yes" >&6
12220else
12221 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12222echo "${ECHO_T}no, using $LN_S" >&6
12223fi
12224
12225
12226
12227case "${host}" in
12228 *-pc-os2_emx | *-pc-os2-emx )
12229 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12230 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12231echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12232if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235 ac_check_lib_save_LIBS=$LIBS
12236LIBS="-lcExt $LIBS"
12237cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h. */
12243
12244/* Override any gcc2 internal prototype to avoid an error. */
12245#ifdef __cplusplus
12246extern "C"
12247#endif
12248/* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12250char drand48 ();
12251int
12252main ()
12253{
12254drand48 ();
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext conftest$ac_exeext
12260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12261 (eval $ac_link) 2>conftest.er1
a848cd7e 12262 ac_status=$?
ac1cb8d3
VS
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
a848cd7e
SC
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
c228d3a4
RN
12268 { ac_try='test -z "$ac_c_werror_flag"
12269 || test ! -s conftest.err'
ac1cb8d3
VS
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_cv_lib_cExt_drand48=yes
12282else
12283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
12286ac_cv_lib_cExt_drand48=no
12287fi
ac1cb8d3
VS
12288rm -f conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12290LIBS=$ac_check_lib_save_LIBS
12291fi
12292echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12293echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12294if test $ac_cv_lib_cExt_drand48 = yes; then
12295 LIBS="$LIBS -lcExt"
12296fi
12297
12298 else
12299 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12300 fi
12301 echo "$as_me:$LINENO: checking for gcc version" >&5
12302echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12303if test "${wx_cv_gccversion+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313
12314int
12315main ()
12316{
12317
12318 #if (__GNUC__ < 3)
12319 #error old gcc
12320 #endif
12321
12322 ;
12323 return 0;
12324}
12325_ACEOF
12326rm -f conftest.$ac_objext
12327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12328 (eval $ac_compile) 2>conftest.er1
a848cd7e 12329 ac_status=$?
ac1cb8d3
VS
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
a848cd7e
SC
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
c228d3a4
RN
12335 { ac_try='test -z "$ac_c_werror_flag"
12336 || test ! -s conftest.err'
ac1cb8d3
VS
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348
12349 cat >conftest.$ac_ext <<_ACEOF
12350/* confdefs.h. */
12351_ACEOF
12352cat confdefs.h >>conftest.$ac_ext
12353cat >>conftest.$ac_ext <<_ACEOF
12354/* end confdefs.h. */
12355
12356int
12357main ()
12358{
12359
12360 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12361 #error intermediate gcc
12362 #endif
12363
12364 ;
12365 return 0;
12366}
12367_ACEOF
12368rm -f conftest.$ac_objext
12369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12370 (eval $ac_compile) 2>conftest.er1
a848cd7e 12371 ac_status=$?
ac1cb8d3
VS
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
a848cd7e
SC
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
c228d3a4
RN
12377 { ac_try='test -z "$ac_c_werror_flag"
12378 || test ! -s conftest.err'
ac1cb8d3
VS
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390
12391 wx_cv_gccversion=Innotek
12392
12393else
12394 echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397
12398 wx_cv_gccversion=3
12399
12400
12401fi
ac1cb8d3 12402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12403
12404else
12405 echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408
12409 wx_cv_gccversion=2
12410
12411
12412fi
ac1cb8d3 12413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12414
12415fi
12416echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12417echo "${ECHO_T}$wx_cv_gccversion" >&6
12418 if test "$wx_cv_gccversion" = "2"; then
12419 LIBS="$LIBS -lstdcpp"
12420 LDFLAGS="$LDFLAGS -Zsysv-signals"
12421 else
12422 if test "$wx_cv_gccversion" = "3"; then
12423 LIBS="$LIBS -lstdcxx"
12424 LDFLAGS="$LDFLAGS -Zsysv-signals"
12425 else
12426 LIBS="$LIBS -lstdc++"
12427 fi
12428 fi
12429 if test "$wxUSE_OMF" = "yes"; then
de59c161 12430 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12431 fi
12432 ;;
12433 *)
12434
12435
12436
12437 ac_ext=cc
12438ac_cpp='$CXXCPP $CPPFLAGS'
12439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12442
12443
12444
12445echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12446echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12447if test "${ac_cv_string_strcasecmp+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449else
12450
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457
12458 #include <string.h>
12459
12460int
12461main ()
12462{
12463
12464 strcasecmp("foo", "bar");
12465
12466 ;
12467 return 0;
12468}
12469_ACEOF
12470rm -f conftest.$ac_objext conftest$ac_exeext
12471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12472 (eval $ac_link) 2>conftest.er1
a848cd7e 12473 ac_status=$?
ac1cb8d3
VS
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
a848cd7e
SC
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
c228d3a4
RN
12479 { ac_try='test -z "$ac_cxx_werror_flag"
12480 || test ! -s conftest.err'
ac1cb8d3
VS
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_string_strcasecmp=yes
12493else
12494 echo "$as_me: failed program was:" >&5
12495sed 's/^/| /' conftest.$ac_ext >&5
12496
12497ac_cv_string_strcasecmp=no
12498
12499fi
ac1cb8d3
VS
12500rm -f conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12502
12503fi
12504echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12505echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12506
12507 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12508 cat >>confdefs.h <<\_ACEOF
12509#define HAVE_STRCASECMP_IN_STRING_H 1
12510_ACEOF
12511
12512 else
12513 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12514echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12515if test "${ac_cv_strings_strcasecmp+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517else
12518
12519 cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525
12526 #include <strings.h>
12527
12528int
12529main ()
12530{
12531
12532 strcasecmp("foo", "bar");
12533
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538rm -f conftest.$ac_objext conftest$ac_exeext
12539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12540 (eval $ac_link) 2>conftest.er1
a848cd7e 12541 ac_status=$?
ac1cb8d3
VS
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
a848cd7e
SC
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
c228d3a4
RN
12547 { ac_try='test -z "$ac_cxx_werror_flag"
12548 || test ! -s conftest.err'
ac1cb8d3
VS
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_cv_strings_strcasecmp=yes
12561else
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565ac_cv_strings_strcasecmp=no
12566
12567fi
ac1cb8d3
VS
12568rm -f conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12570
12571fi
12572echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12573echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12574
0c3c69fc 12575 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12576 cat >>confdefs.h <<\_ACEOF
12577#define HAVE_STRCASECMP_IN_STRINGS_H 1
12578_ACEOF
12579
12580 else
12581 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12582echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12583 { (exit 1); exit 1; }; }
12584 fi
12585 fi
12586
12587 ac_ext=c
12588ac_cpp='$CPP $CPPFLAGS'
12589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592
12593 ;;
12594esac
12595
12596
12597echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12598echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12599if test "${ac_cv_header_stdc+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601else
12602 cat >conftest.$ac_ext <<_ACEOF
12603/* confdefs.h. */
12604_ACEOF
12605cat confdefs.h >>conftest.$ac_ext
12606cat >>conftest.$ac_ext <<_ACEOF
12607/* end confdefs.h. */
12608#include <stdlib.h>
12609#include <stdarg.h>
12610#include <string.h>
12611#include <float.h>
12612
12613int
12614main ()
12615{
12616
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext
12622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12623 (eval $ac_compile) 2>conftest.er1
a848cd7e 12624 ac_status=$?
ac1cb8d3
VS
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
a848cd7e
SC
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
c228d3a4
RN
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
ac1cb8d3
VS
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_header_stdc=yes
12644else
12645 echo "$as_me: failed program was:" >&5
12646sed 's/^/| /' conftest.$ac_ext >&5
12647
12648ac_cv_header_stdc=no
12649fi
ac1cb8d3 12650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12651
12652if test $ac_cv_header_stdc = yes; then
12653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12654 cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660#include <string.h>
12661
12662_ACEOF
12663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12664 $EGREP "memchr" >/dev/null 2>&1; then
12665 :
12666else
12667 ac_cv_header_stdc=no
12668fi
12669rm -f conftest*
12670
12671fi
12672
12673if test $ac_cv_header_stdc = yes; then
12674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12675 cat >conftest.$ac_ext <<_ACEOF
12676/* confdefs.h. */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h. */
12681#include <stdlib.h>
12682
12683_ACEOF
12684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12685 $EGREP "free" >/dev/null 2>&1; then
12686 :
12687else
12688 ac_cv_header_stdc=no
12689fi
12690rm -f conftest*
12691
12692fi
12693
12694if test $ac_cv_header_stdc = yes; then
12695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12696 if test "$cross_compiling" = yes; then
12697 :
12698else
12699 cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705#include <ctype.h>
12706#if ((' ' & 0x0FF) == 0x020)
12707# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12708# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12709#else
12710# define ISLOWER(c) \
ac1cb8d3
VS
12711 (('a' <= (c) && (c) <= 'i') \
12712 || ('j' <= (c) && (c) <= 'r') \
12713 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12714# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12715#endif
12716
12717#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12718int
12719main ()
12720{
12721 int i;
12722 for (i = 0; i < 256; i++)
12723 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12724 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12725 exit(2);
12726 exit (0);
12727}
12728_ACEOF
12729rm -f conftest$ac_exeext
12730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12731 (eval $ac_link) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 :
12741else
12742 echo "$as_me: program exited with status $ac_status" >&5
12743echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746( exit $ac_status )
12747ac_cv_header_stdc=no
12748fi
ac1cb8d3 12749rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12750fi
12751fi
12752fi
12753echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12754echo "${ECHO_T}$ac_cv_header_stdc" >&6
12755if test $ac_cv_header_stdc = yes; then
12756
12757cat >>confdefs.h <<\_ACEOF
12758#define STDC_HEADERS 1
12759_ACEOF
12760
12761fi
12762
12763# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12774 inttypes.h stdint.h unistd.h
a848cd7e
SC
12775do
12776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777echo "$as_me:$LINENO: checking for $ac_header" >&5
12778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12779if eval "test \"\${$as_ac_Header+set}\" = set"; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 cat >conftest.$ac_ext <<_ACEOF
12783/* confdefs.h. */
12784_ACEOF
12785cat confdefs.h >>conftest.$ac_ext
12786cat >>conftest.$ac_ext <<_ACEOF
12787/* end confdefs.h. */
12788$ac_includes_default
12789
12790#include <$ac_header>
12791_ACEOF
12792rm -f conftest.$ac_objext
12793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12794 (eval $ac_compile) 2>conftest.er1
a848cd7e 12795 ac_status=$?
ac1cb8d3
VS
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
a848cd7e
SC
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
c228d3a4
RN
12801 { ac_try='test -z "$ac_c_werror_flag"
12802 || test ! -s conftest.err'
ac1cb8d3
VS
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 eval "$as_ac_Header=yes"
12815else
12816 echo "$as_me: failed program was:" >&5
12817sed 's/^/| /' conftest.$ac_ext >&5
12818
12819eval "$as_ac_Header=no"
12820fi
ac1cb8d3 12821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12822fi
12823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12825if test `eval echo '${'$as_ac_Header'}'` = yes; then
12826 cat >>confdefs.h <<_ACEOF
12827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12828_ACEOF
12829
12830fi
12831
12832done
12833
12834
12835
12836for ac_header in stdlib.h
12837do
12838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12839if eval "test \"\${$as_ac_Header+set}\" = set"; then
12840 echo "$as_me:$LINENO: checking for $ac_header" >&5
12841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12842if eval "test \"\${$as_ac_Header+set}\" = set"; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844fi
12845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12847else
12848 # Is the header compilable?
12849echo "$as_me:$LINENO: checking $ac_header usability" >&5
12850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12851cat >conftest.$ac_ext <<_ACEOF
12852/* confdefs.h. */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
12856/* end confdefs.h. */
12857$ac_includes_default
12858#include <$ac_header>
12859_ACEOF
12860rm -f conftest.$ac_objext
12861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12862 (eval $ac_compile) 2>conftest.er1
a848cd7e 12863 ac_status=$?
ac1cb8d3
VS
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
a848cd7e
SC
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } &&
c228d3a4
RN
12869 { ac_try='test -z "$ac_c_werror_flag"
12870 || test ! -s conftest.err'
ac1cb8d3
VS
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; } &&
12876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 ac_header_compiler=yes
12883else
12884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887ac_header_compiler=no
12888fi
ac1cb8d3 12889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12891echo "${ECHO_T}$ac_header_compiler" >&6
12892
12893# Is the header present?
12894echo "$as_me:$LINENO: checking $ac_header presence" >&5
12895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12896cat >conftest.$ac_ext <<_ACEOF
12897/* confdefs.h. */
12898_ACEOF
12899cat confdefs.h >>conftest.$ac_ext
12900cat >>conftest.$ac_ext <<_ACEOF
12901/* end confdefs.h. */
12902#include <$ac_header>
12903_ACEOF
12904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } >/dev/null; then
12912 if test -s conftest.err; then
12913 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12915 else
12916 ac_cpp_err=
12917 fi
12918else
12919 ac_cpp_err=yes
12920fi
12921if test -z "$ac_cpp_err"; then
12922 ac_header_preproc=yes
12923else
12924 echo "$as_me: failed program was:" >&5
12925sed 's/^/| /' conftest.$ac_ext >&5
12926
12927 ac_header_preproc=no
12928fi
12929rm -f conftest.err conftest.$ac_ext
12930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12931echo "${ECHO_T}$ac_header_preproc" >&6
12932
12933# So? What about this header?
ac1cb8d3
VS
12934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12935 yes:no: )
a848cd7e
SC
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12940 ac_header_preproc=yes
a848cd7e 12941 ;;
ac1cb8d3 12942 no:yes:* )
a848cd7e
SC
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12955 (
12956 cat <<\_ASBOX
ac1cb8d3
VS
12957## ----------------------------------------- ##
12958## Report this to wx-dev@lists.wxwidgets.org ##
12959## ----------------------------------------- ##
a848cd7e
SC
12960_ASBOX
12961 ) |
12962 sed "s/^/$as_me: WARNING: /" >&2
12963 ;;
12964esac
12965echo "$as_me:$LINENO: checking for $ac_header" >&5
12966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12967if eval "test \"\${$as_ac_Header+set}\" = set"; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969else
ac1cb8d3 12970 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12971fi
12972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12974
12975fi
12976if test `eval echo '${'$as_ac_Header'}'` = yes; then
12977 cat >>confdefs.h <<_ACEOF
12978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12979_ACEOF
12980
12981fi
12982
12983done
12984
12985
12986for ac_header in malloc.h
12987do
12988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12989if eval "test \"\${$as_ac_Header+set}\" = set"; then
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994fi
12995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12997else
12998 # Is the header compilable?
12999echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13001cat >conftest.$ac_ext <<_ACEOF
13002/* confdefs.h. */
13003_ACEOF
13004cat confdefs.h >>conftest.$ac_ext
13005cat >>conftest.$ac_ext <<_ACEOF
13006/* end confdefs.h. */
13007$ac_includes_default
13008#include <$ac_header>
13009_ACEOF
13010rm -f conftest.$ac_objext
13011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13012 (eval $ac_compile) 2>conftest.er1
a848cd7e 13013 ac_status=$?
ac1cb8d3
VS
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
a848cd7e
SC
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
c228d3a4
RN
13019 { ac_try='test -z "$ac_c_werror_flag"
13020 || test ! -s conftest.err'
ac1cb8d3
VS
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_header_compiler=yes
13033else
13034 echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
13036
13037ac_header_compiler=no
13038fi
ac1cb8d3 13039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13041echo "${ECHO_T}$ac_header_compiler" >&6
13042
13043# Is the header present?
13044echo "$as_me:$LINENO: checking $ac_header presence" >&5
13045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13046cat >conftest.$ac_ext <<_ACEOF
13047/* confdefs.h. */
13048_ACEOF
13049cat confdefs.h >>conftest.$ac_ext
13050cat >>conftest.$ac_ext <<_ACEOF
13051/* end confdefs.h. */
13052#include <$ac_header>
13053_ACEOF
13054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } >/dev/null; then
13062 if test -s conftest.err; then
13063 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13065 else
13066 ac_cpp_err=
13067 fi
13068else
13069 ac_cpp_err=yes
13070fi
13071if test -z "$ac_cpp_err"; then
13072 ac_header_preproc=yes
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 ac_header_preproc=no
13078fi
13079rm -f conftest.err conftest.$ac_ext
13080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13081echo "${ECHO_T}$ac_header_preproc" >&6
13082
13083# So? What about this header?
ac1cb8d3
VS
13084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13085 yes:no: )
a848cd7e
SC
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13090 ac_header_preproc=yes
a848cd7e 13091 ;;
ac1cb8d3 13092 no:yes:* )
a848cd7e
SC
13093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13105 (
13106 cat <<\_ASBOX
ac1cb8d3
VS
13107## ----------------------------------------- ##
13108## Report this to wx-dev@lists.wxwidgets.org ##
13109## ----------------------------------------- ##
a848cd7e
SC
13110_ASBOX
13111 ) |
13112 sed "s/^/$as_me: WARNING: /" >&2
13113 ;;
13114esac
13115echo "$as_me:$LINENO: checking for $ac_header" >&5
13116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119else
ac1cb8d3 13120 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13121fi
13122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13124
13125fi
13126if test `eval echo '${'$as_ac_Header'}'` = yes; then
13127 cat >>confdefs.h <<_ACEOF
13128#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13129_ACEOF
13130
13131fi
13132
13133done
13134
13135
13136for ac_header in unistd.h
13137do
13138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13139if eval "test \"\${$as_ac_Header+set}\" = set"; then
13140 echo "$as_me:$LINENO: checking for $ac_header" >&5
13141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13142if eval "test \"\${$as_ac_Header+set}\" = set"; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144fi
13145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13147else
13148 # Is the header compilable?
13149echo "$as_me:$LINENO: checking $ac_header usability" >&5
13150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13151cat >conftest.$ac_ext <<_ACEOF
13152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
13157$ac_includes_default
13158#include <$ac_header>
13159_ACEOF
13160rm -f conftest.$ac_objext
13161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13162 (eval $ac_compile) 2>conftest.er1
a848cd7e 13163 ac_status=$?
ac1cb8d3
VS
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
a848cd7e
SC
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
c228d3a4
RN
13169 { ac_try='test -z "$ac_c_werror_flag"
13170 || test ! -s conftest.err'
ac1cb8d3
VS
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_header_compiler=yes
13183else
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
13187ac_header_compiler=no
13188fi
ac1cb8d3 13189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13191echo "${ECHO_T}$ac_header_compiler" >&6
13192
13193# Is the header present?
13194echo "$as_me:$LINENO: checking $ac_header presence" >&5
13195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13196cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
13201/* end confdefs.h. */
13202#include <$ac_header>
13203_ACEOF
13204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } >/dev/null; then
13212 if test -s conftest.err; then
13213 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13215 else
13216 ac_cpp_err=
13217 fi
13218else
13219 ac_cpp_err=yes
13220fi
13221if test -z "$ac_cpp_err"; then
13222 ac_header_preproc=yes
13223else
13224 echo "$as_me: failed program was:" >&5
13225sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 ac_header_preproc=no
13228fi
13229rm -f conftest.err conftest.$ac_ext
13230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13231echo "${ECHO_T}$ac_header_preproc" >&6
13232
13233# So? What about this header?
ac1cb8d3
VS
13234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13235 yes:no: )
a848cd7e
SC
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13240 ac_header_preproc=yes
a848cd7e 13241 ;;
ac1cb8d3 13242 no:yes:* )
a848cd7e
SC
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13255 (
13256 cat <<\_ASBOX
ac1cb8d3
VS
13257## ----------------------------------------- ##
13258## Report this to wx-dev@lists.wxwidgets.org ##
13259## ----------------------------------------- ##
a848cd7e
SC
13260_ASBOX
13261 ) |
13262 sed "s/^/$as_me: WARNING: /" >&2
13263 ;;
13264esac
13265echo "$as_me:$LINENO: checking for $ac_header" >&5
13266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13267if eval "test \"\${$as_ac_Header+set}\" = set"; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269else
ac1cb8d3 13270 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13271fi
13272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13274
13275fi
13276if test `eval echo '${'$as_ac_Header'}'` = yes; then
13277 cat >>confdefs.h <<_ACEOF
13278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13279_ACEOF
13280
13281fi
13282
13283done
13284
13285
13286for ac_header in wchar.h
13287do
13288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13289if eval "test \"\${$as_ac_Header+set}\" = set"; then
13290 echo "$as_me:$LINENO: checking for $ac_header" >&5
13291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13292if eval "test \"\${$as_ac_Header+set}\" = set"; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294fi
13295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13297else
13298 # Is the header compilable?
13299echo "$as_me:$LINENO: checking $ac_header usability" >&5
13300echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
13308#include <$ac_header>
13309_ACEOF
13310rm -f conftest.$ac_objext
13311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13312 (eval $ac_compile) 2>conftest.er1
a848cd7e 13313 ac_status=$?
ac1cb8d3
VS
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
a848cd7e
SC
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
c228d3a4
RN
13319 { ac_try='test -z "$ac_c_werror_flag"
13320 || test ! -s conftest.err'
ac1cb8d3
VS
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_header_compiler=yes
13333else
13334 echo "$as_me: failed program was:" >&5
13335sed 's/^/| /' conftest.$ac_ext >&5
13336
13337ac_header_compiler=no
13338fi
ac1cb8d3 13339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13341echo "${ECHO_T}$ac_header_compiler" >&6
13342
13343# Is the header present?
13344echo "$as_me:$LINENO: checking $ac_header presence" >&5
13345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13346cat >conftest.$ac_ext <<_ACEOF
13347/* confdefs.h. */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h. */
13352#include <$ac_header>
13353_ACEOF
13354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13356 ac_status=$?
13357 grep -v '^ *+' conftest.er1 >conftest.err
13358 rm -f conftest.er1
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } >/dev/null; then
13362 if test -s conftest.err; then
13363 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13365 else
13366 ac_cpp_err=
13367 fi
13368else
13369 ac_cpp_err=yes
13370fi
13371if test -z "$ac_cpp_err"; then
13372 ac_header_preproc=yes
13373else
13374 echo "$as_me: failed program was:" >&5
13375sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 ac_header_preproc=no
13378fi
13379rm -f conftest.err conftest.$ac_ext
13380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13381echo "${ECHO_T}$ac_header_preproc" >&6
13382
13383# So? What about this header?
ac1cb8d3
VS
13384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13385 yes:no: )
a848cd7e
SC
13386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13390 ac_header_preproc=yes
a848cd7e 13391 ;;
ac1cb8d3 13392 no:yes:* )
a848cd7e
SC
13393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13405 (
13406 cat <<\_ASBOX
ac1cb8d3
VS
13407## ----------------------------------------- ##
13408## Report this to wx-dev@lists.wxwidgets.org ##
13409## ----------------------------------------- ##
a848cd7e
SC
13410_ASBOX
13411 ) |
13412 sed "s/^/$as_me: WARNING: /" >&2
13413 ;;
13414esac
13415echo "$as_me:$LINENO: checking for $ac_header" >&5
13416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13417if eval "test \"\${$as_ac_Header+set}\" = set"; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419else
ac1cb8d3 13420 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13421fi
13422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13424
13425fi
13426if test `eval echo '${'$as_ac_Header'}'` = yes; then
13427 cat >>confdefs.h <<_ACEOF
13428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13429_ACEOF
13430
13431fi
13432
13433done
13434
13435
13436if test "$ac_cv_header_wchar_h" != "yes"; then
13437
13438for ac_header in wcstr.h
13439do
13440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13441if eval "test \"\${$as_ac_Header+set}\" = set"; then
13442 echo "$as_me:$LINENO: checking for $ac_header" >&5
13443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13444if eval "test \"\${$as_ac_Header+set}\" = set"; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446fi
13447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449else
13450 # Is the header compilable?
13451echo "$as_me:$LINENO: checking $ac_header usability" >&5
13452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13453cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
13459$ac_includes_default
13460#include <$ac_header>
13461_ACEOF
13462rm -f conftest.$ac_objext
13463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13464 (eval $ac_compile) 2>conftest.er1
a848cd7e 13465 ac_status=$?
ac1cb8d3
VS
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
a848cd7e
SC
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
c228d3a4
RN
13471 { ac_try='test -z "$ac_c_werror_flag"
13472 || test ! -s conftest.err'
ac1cb8d3
VS
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 ac_header_compiler=yes
13485else
13486 echo "$as_me: failed program was:" >&5
13487sed 's/^/| /' conftest.$ac_ext >&5
13488
13489ac_header_compiler=no
13490fi
ac1cb8d3 13491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493echo "${ECHO_T}$ac_header_compiler" >&6
13494
13495# Is the header present?
13496echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13498cat >conftest.$ac_ext <<_ACEOF
13499/* confdefs.h. */
13500_ACEOF
13501cat confdefs.h >>conftest.$ac_ext
13502cat >>conftest.$ac_ext <<_ACEOF
13503/* end confdefs.h. */
13504#include <$ac_header>
13505_ACEOF
13506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } >/dev/null; then
13514 if test -s conftest.err; then
13515 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13517 else
13518 ac_cpp_err=
13519 fi
13520else
13521 ac_cpp_err=yes
13522fi
13523if test -z "$ac_cpp_err"; then
13524 ac_header_preproc=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_header_preproc=no
13530fi
13531rm -f conftest.err conftest.$ac_ext
13532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13533echo "${ECHO_T}$ac_header_preproc" >&6
13534
13535# So? What about this header?
ac1cb8d3
VS
13536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537 yes:no: )
a848cd7e
SC
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13542 ac_header_preproc=yes
a848cd7e 13543 ;;
ac1cb8d3 13544 no:yes:* )
a848cd7e
SC
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13557 (
13558 cat <<\_ASBOX
ac1cb8d3
VS
13559## ----------------------------------------- ##
13560## Report this to wx-dev@lists.wxwidgets.org ##
13561## ----------------------------------------- ##
a848cd7e
SC
13562_ASBOX
13563 ) |
13564 sed "s/^/$as_me: WARNING: /" >&2
13565 ;;
13566esac
13567echo "$as_me:$LINENO: checking for $ac_header" >&5
13568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13569if eval "test \"\${$as_ac_Header+set}\" = set"; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
ac1cb8d3 13572 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13573fi
13574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13576
13577fi
13578if test `eval echo '${'$as_ac_Header'}'` = yes; then
13579 cat >>confdefs.h <<_ACEOF
13580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13581_ACEOF
13582
13583fi
13584
13585done
13586
13587fi
13588
13589
13590for ac_header in fnmatch.h
13591do
13592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13593if eval "test \"\${$as_ac_Header+set}\" = set"; then
13594 echo "$as_me:$LINENO: checking for $ac_header" >&5
13595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13596if eval "test \"\${$as_ac_Header+set}\" = set"; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598fi
13599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13601else
13602 # Is the header compilable?
13603echo "$as_me:$LINENO: checking $ac_header usability" >&5
13604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13605cat >conftest.$ac_ext <<_ACEOF
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
13610/* end confdefs.h. */
13611$ac_includes_default
13612#include <$ac_header>
13613_ACEOF
13614rm -f conftest.$ac_objext
13615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13616 (eval $ac_compile) 2>conftest.er1
a848cd7e 13617 ac_status=$?
ac1cb8d3
VS
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
a848cd7e
SC
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
c228d3a4
RN
13623 { ac_try='test -z "$ac_c_werror_flag"
13624 || test ! -s conftest.err'
ac1cb8d3
VS
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_header_compiler=yes
13637else
13638 echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641ac_header_compiler=no
13642fi
ac1cb8d3 13643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13645echo "${ECHO_T}$ac_header_compiler" >&6
13646
13647# Is the header present?
13648echo "$as_me:$LINENO: checking $ac_header presence" >&5
13649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
13655/* end confdefs.h. */
13656#include <$ac_header>
13657_ACEOF
13658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } >/dev/null; then
13666 if test -s conftest.err; then
13667 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13669 else
13670 ac_cpp_err=
13671 fi
13672else
13673 ac_cpp_err=yes
13674fi
13675if test -z "$ac_cpp_err"; then
13676 ac_header_preproc=yes
13677else
13678 echo "$as_me: failed program was:" >&5
13679sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ac_header_preproc=no
13682fi
13683rm -f conftest.err conftest.$ac_ext
13684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13685echo "${ECHO_T}$ac_header_preproc" >&6
13686
13687# So? What about this header?
ac1cb8d3
VS
13688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13689 yes:no: )
a848cd7e
SC
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13694 ac_header_preproc=yes
a848cd7e 13695 ;;
ac1cb8d3 13696 no:yes:* )
a848cd7e
SC
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13709 (
13710 cat <<\_ASBOX
ac1cb8d3
VS
13711## ----------------------------------------- ##
13712## Report this to wx-dev@lists.wxwidgets.org ##
13713## ----------------------------------------- ##
a848cd7e
SC
13714_ASBOX
13715 ) |
13716 sed "s/^/$as_me: WARNING: /" >&2
13717 ;;
13718esac
13719echo "$as_me:$LINENO: checking for $ac_header" >&5
13720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13721if eval "test \"\${$as_ac_Header+set}\" = set"; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723else
ac1cb8d3 13724 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13725fi
13726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13728
13729fi
13730if test `eval echo '${'$as_ac_Header'}'` = yes; then
13731 cat >>confdefs.h <<_ACEOF
13732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13733_ACEOF
13734
13735fi
13736
13737done
13738
13739
13740if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13741
13742for ac_func in fnmatch
13743do
13744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13745echo "$as_me:$LINENO: checking for $ac_func" >&5
13746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13747if eval "test \"\${$as_ac_var+set}\" = set"; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 cat >conftest.$ac_ext <<_ACEOF
13751/* confdefs.h. */
13752_ACEOF
13753cat confdefs.h >>conftest.$ac_ext
13754cat >>conftest.$ac_ext <<_ACEOF
13755/* end confdefs.h. */
ac1cb8d3
VS
13756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13758#define $ac_func innocuous_$ac_func
13759
a848cd7e
SC
13760/* System header to define __stub macros and hopefully few prototypes,
13761 which can conflict with char $ac_func (); below.
13762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13763 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13764
a848cd7e
SC
13765#ifdef __STDC__
13766# include <limits.h>
13767#else
13768# include <assert.h>
13769#endif
ac1cb8d3
VS
13770
13771#undef $ac_func
13772
a848cd7e
SC
13773/* Override any gcc2 internal prototype to avoid an error. */
13774#ifdef __cplusplus
13775extern "C"
13776{
13777#endif
13778/* We use char because int might match the return type of a gcc2
13779 builtin and then its argument prototype would still apply. */
13780char $ac_func ();
13781/* The GNU C library defines this for functions which it implements
13782 to always fail with ENOSYS. Some functions are actually named
13783 something starting with __ and the normal name is an alias. */
13784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13785choke me
13786#else
13787char (*f) () = $ac_func;
13788#endif
13789#ifdef __cplusplus
13790}
13791#endif
13792
13793int
13794main ()
13795{
13796return f != $ac_func;
13797 ;
13798 return 0;
13799}
13800_ACEOF
13801rm -f conftest.$ac_objext conftest$ac_exeext
13802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13803 (eval $ac_link) 2>conftest.er1
a848cd7e 13804 ac_status=$?
ac1cb8d3
VS
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
a848cd7e
SC
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
c228d3a4
RN
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
ac1cb8d3
VS
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 eval "$as_ac_var=yes"
13824else
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828eval "$as_ac_var=no"
13829fi
ac1cb8d3
VS
13830rm -f conftest.err conftest.$ac_objext \
13831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13832fi
13833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13835if test `eval echo '${'$as_ac_var'}'` = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13838_ACEOF
13839
13840fi
13841done
13842
13843fi
13844
13845
13846for ac_header in langinfo.h
13847do
13848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13849if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo "$as_me:$LINENO: checking for $ac_header" >&5
13851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13852if eval "test \"\${$as_ac_Header+set}\" = set"; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854fi
13855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13857else
13858 # Is the header compilable?
13859echo "$as_me:$LINENO: checking $ac_header usability" >&5
13860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13861cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867$ac_includes_default
13868#include <$ac_header>
13869_ACEOF
13870rm -f conftest.$ac_objext
13871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13872 (eval $ac_compile) 2>conftest.er1
a848cd7e 13873 ac_status=$?
ac1cb8d3
VS
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
a848cd7e
SC
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
c228d3a4
RN
13879 { ac_try='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
ac1cb8d3
VS
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_header_compiler=yes
13893else
13894 echo "$as_me: failed program was:" >&5
13895sed 's/^/| /' conftest.$ac_ext >&5
13896
13897ac_header_compiler=no
13898fi
ac1cb8d3 13899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13901echo "${ECHO_T}$ac_header_compiler" >&6
13902
13903# Is the header present?
13904echo "$as_me:$LINENO: checking $ac_header presence" >&5
13905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13906cat >conftest.$ac_ext <<_ACEOF
13907/* confdefs.h. */
13908_ACEOF
13909cat confdefs.h >>conftest.$ac_ext
13910cat >>conftest.$ac_ext <<_ACEOF
13911/* end confdefs.h. */
13912#include <$ac_header>
13913_ACEOF
13914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13916 ac_status=$?
13917 grep -v '^ *+' conftest.er1 >conftest.err
13918 rm -f conftest.er1
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } >/dev/null; then
13922 if test -s conftest.err; then
13923 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13925 else
13926 ac_cpp_err=
13927 fi
13928else
13929 ac_cpp_err=yes
13930fi
13931if test -z "$ac_cpp_err"; then
13932 ac_header_preproc=yes
13933else
13934 echo "$as_me: failed program was:" >&5
13935sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 ac_header_preproc=no
13938fi
13939rm -f conftest.err conftest.$ac_ext
13940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941echo "${ECHO_T}$ac_header_preproc" >&6
13942
13943# So? What about this header?
ac1cb8d3
VS
13944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13945 yes:no: )
a848cd7e
SC
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13947echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13949echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13950 ac_header_preproc=yes
a848cd7e 13951 ;;
ac1cb8d3 13952 no:yes:* )
a848cd7e
SC
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13954echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13956echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13958echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13960echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13964echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13965 (
13966 cat <<\_ASBOX
ac1cb8d3
VS
13967## ----------------------------------------- ##
13968## Report this to wx-dev@lists.wxwidgets.org ##
13969## ----------------------------------------- ##
a848cd7e
SC
13970_ASBOX
13971 ) |
13972 sed "s/^/$as_me: WARNING: /" >&2
13973 ;;
13974esac
13975echo "$as_me:$LINENO: checking for $ac_header" >&5
13976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13977if eval "test \"\${$as_ac_Header+set}\" = set"; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979else
ac1cb8d3 13980 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13981fi
13982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13984
13985fi
13986if test `eval echo '${'$as_ac_Header'}'` = yes; then
13987 cat >>confdefs.h <<_ACEOF
13988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13989_ACEOF
13990
13991fi
13992
13993done
13994
13995
13996case "${host}" in
13997 *-pc-os2_emx | *-pc-os2-emx )
13998 if test $ac_cv_header_langinfo_h = "yes"; then
13999 LIBS="$LIBS -lintl"
14000 fi
14001 ;;
14002esac
14003
14004if test "$wxUSE_GUI" = "yes"; then
14005 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14006
14007for ac_header in X11/Xlib.h
14008do
14009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14010if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo "$as_me:$LINENO: checking for $ac_header" >&5
14012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14013if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015fi
14016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14018else
14019 # Is the header compilable?
14020echo "$as_me:$LINENO: checking $ac_header usability" >&5
14021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14022cat >conftest.$ac_ext <<_ACEOF
14023/* confdefs.h. */
14024_ACEOF
14025cat confdefs.h >>conftest.$ac_ext
14026cat >>conftest.$ac_ext <<_ACEOF
14027/* end confdefs.h. */
14028$ac_includes_default
14029#include <$ac_header>
14030_ACEOF
14031rm -f conftest.$ac_objext
14032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14033 (eval $ac_compile) 2>conftest.er1
a848cd7e 14034 ac_status=$?
ac1cb8d3
VS
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
a848cd7e
SC
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
c228d3a4
RN
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
ac1cb8d3
VS
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_header_compiler=yes
14054else
14055 echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058ac_header_compiler=no
14059fi
ac1cb8d3 14060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062echo "${ECHO_T}$ac_header_compiler" >&6
14063
14064# Is the header present?
14065echo "$as_me:$LINENO: checking $ac_header presence" >&5
14066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14067cat >conftest.$ac_ext <<_ACEOF
14068/* confdefs.h. */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
14072/* end confdefs.h. */
14073#include <$ac_header>
14074_ACEOF
14075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } >/dev/null; then
14083 if test -s conftest.err; then
14084 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14086 else
14087 ac_cpp_err=
14088 fi
14089else
14090 ac_cpp_err=yes
14091fi
14092if test -z "$ac_cpp_err"; then
14093 ac_header_preproc=yes
14094else
14095 echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098 ac_header_preproc=no
14099fi
14100rm -f conftest.err conftest.$ac_ext
14101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14102echo "${ECHO_T}$ac_header_preproc" >&6
14103
14104# So? What about this header?
ac1cb8d3
VS
14105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14106 yes:no: )
a848cd7e
SC
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14111 ac_header_preproc=yes
a848cd7e 14112 ;;
ac1cb8d3 14113 no:yes:* )
a848cd7e
SC
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14126 (
14127 cat <<\_ASBOX
ac1cb8d3
VS
14128## ----------------------------------------- ##
14129## Report this to wx-dev@lists.wxwidgets.org ##
14130## ----------------------------------------- ##
a848cd7e
SC
14131_ASBOX
14132 ) |
14133 sed "s/^/$as_me: WARNING: /" >&2
14134 ;;
14135esac
14136echo "$as_me:$LINENO: checking for $ac_header" >&5
14137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140else
ac1cb8d3 14141 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14142fi
14143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145
14146fi
14147if test `eval echo '${'$as_ac_Header'}'` = yes; then
14148 cat >>confdefs.h <<_ACEOF
14149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14150_ACEOF
14151
14152fi
14153
14154done
14155
14156
14157for ac_header in X11/XKBlib.h
14158do
14159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14160echo "$as_me:$LINENO: checking for $ac_header" >&5
14161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14162if eval "test \"\${$as_ac_Header+set}\" = set"; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164else
14165 cat >conftest.$ac_ext <<_ACEOF
14166/* confdefs.h. */
14167_ACEOF
14168cat confdefs.h >>conftest.$ac_ext
14169cat >>conftest.$ac_ext <<_ACEOF
14170/* end confdefs.h. */
14171
14172 #if HAVE_X11_XLIB_H
14173 #include <X11/Xlib.h>
14174 #endif
14175
14176
14177#include <$ac_header>
14178_ACEOF
14179rm -f conftest.$ac_objext
14180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14181 (eval $ac_compile) 2>conftest.er1
a848cd7e 14182 ac_status=$?
ac1cb8d3
VS
14183 grep -v '^ *+' conftest.er1 >conftest.err
14184 rm -f conftest.er1
14185 cat conftest.err >&5
a848cd7e
SC
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } &&
c228d3a4
RN
14188 { ac_try='test -z "$ac_c_werror_flag"
14189 || test ! -s conftest.err'
ac1cb8d3
VS
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; } &&
14195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; }; then
14201 eval "$as_ac_Header=yes"
14202else
14203 echo "$as_me: failed program was:" >&5
14204sed 's/^/| /' conftest.$ac_ext >&5
14205
14206eval "$as_ac_Header=no"
14207fi
ac1cb8d3 14208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14209fi
14210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14212if test `eval echo '${'$as_ac_Header'}'` = yes; then
14213 cat >>confdefs.h <<_ACEOF
14214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215_ACEOF
14216
14217fi
14218
14219done
14220
14221 fi
14222fi
14223
14224
14225echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14226echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14227if test "${ac_cv_c_const+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229else
14230 cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h. */
14236
14237int
14238main ()
14239{
14240/* FIXME: Include the comments suggested by Paul. */
14241#ifndef __cplusplus
14242 /* Ultrix mips cc rejects this. */
14243 typedef int charset[2];
14244 const charset x;
14245 /* SunOS 4.1.1 cc rejects this. */
14246 char const *const *ccp;
14247 char **p;
14248 /* NEC SVR4.0.2 mips cc rejects this. */
14249 struct point {int x, y;};
14250 static struct point const zero = {0,0};
14251 /* AIX XL C 1.02.0.0 rejects this.
14252 It does not let you subtract one const X* pointer from another in
14253 an arm of an if-expression whose if-part is not a constant
14254 expression */
14255 const char *g = "string";
14256 ccp = &g + (g ? g-g : 0);
14257 /* HPUX 7.0 cc rejects these. */
14258 ++ccp;
14259 p = (char**) ccp;
14260 ccp = (char const *const *) p;
14261 { /* SCO 3.2v4 cc rejects this. */
14262 char *t;
14263 char const *s = 0 ? (char *) 0 : (char const *) 0;
14264
14265 *t++ = 0;
14266 }
14267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14268 int x[] = {25, 17};
14269 const int *foo = &x[0];
14270 ++foo;
14271 }
14272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14273 typedef const int *iptr;
14274 iptr p = 0;
14275 ++p;
14276 }
14277 { /* AIX XL C 1.02.0.0 rejects this saying
14278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14279 struct s { int j; const int *ap[3]; };
14280 struct s *b; b->j = 5;
14281 }
14282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14283 const int foo = 10;
14284 }
14285#endif
14286
14287 ;
14288 return 0;
14289}
14290_ACEOF
14291rm -f conftest.$ac_objext
14292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14293 (eval $ac_compile) 2>conftest.er1
a848cd7e 14294 ac_status=$?
ac1cb8d3
VS
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
a848cd7e
SC
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
c228d3a4
RN
14300 { ac_try='test -z "$ac_c_werror_flag"
14301 || test ! -s conftest.err'
ac1cb8d3
VS
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_cv_c_const=yes
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
14318ac_cv_c_const=no
14319fi
ac1cb8d3 14320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14321fi
14322echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14323echo "${ECHO_T}$ac_cv_c_const" >&6
14324if test $ac_cv_c_const = no; then
14325
14326cat >>confdefs.h <<\_ACEOF
14327#define const
14328_ACEOF
14329
14330fi
14331
14332echo "$as_me:$LINENO: checking for inline" >&5
14333echo $ECHO_N "checking for inline... $ECHO_C" >&6
14334if test "${ac_cv_c_inline+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336else
14337 ac_cv_c_inline=no
14338for ac_kw in inline __inline__ __inline; do
14339 cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h. */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
14344/* end confdefs.h. */
14345#ifndef __cplusplus
14346typedef int foo_t;
14347static $ac_kw foo_t static_foo () {return 0; }
14348$ac_kw foo_t foo () {return 0; }
14349#endif
14350
14351_ACEOF
14352rm -f conftest.$ac_objext
14353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14354 (eval $ac_compile) 2>conftest.er1
a848cd7e 14355 ac_status=$?
ac1cb8d3
VS
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
a848cd7e
SC
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
c228d3a4
RN
14361 { ac_try='test -z "$ac_c_werror_flag"
14362 || test ! -s conftest.err'
ac1cb8d3
VS
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; } &&
14368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14374 ac_cv_c_inline=$ac_kw; break
14375else
14376 echo "$as_me: failed program was:" >&5
14377sed 's/^/| /' conftest.$ac_ext >&5
14378
14379fi
ac1cb8d3 14380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14381done
14382
14383fi
14384echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14385echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14386
14387
a848cd7e
SC
14388case $ac_cv_c_inline in
14389 inline | yes) ;;
ac1cb8d3
VS
14390 *)
14391 case $ac_cv_c_inline in
14392 no) ac_val=;;
14393 *) ac_val=$ac_cv_c_inline;;
14394 esac
14395 cat >>confdefs.h <<_ACEOF
14396#ifndef __cplusplus
14397#define inline $ac_val
14398#endif
de59c161 14399_ACEOF
ac1cb8d3 14400 ;;
a848cd7e
SC
14401esac
14402
14403
14404echo "$as_me:$LINENO: checking for char" >&5
14405echo $ECHO_N "checking for char... $ECHO_C" >&6
14406if test "${ac_cv_type_char+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14408else
14409 cat >conftest.$ac_ext <<_ACEOF
14410/* confdefs.h. */
14411_ACEOF
14412cat confdefs.h >>conftest.$ac_ext
14413cat >>conftest.$ac_ext <<_ACEOF
14414/* end confdefs.h. */
14415$ac_includes_default
14416int
14417main ()
14418{
14419if ((char *) 0)
14420 return 0;
14421if (sizeof (char))
14422 return 0;
14423 ;
14424 return 0;
14425}
14426_ACEOF
14427rm -f conftest.$ac_objext
14428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14429 (eval $ac_compile) 2>conftest.er1
a848cd7e 14430 ac_status=$?
ac1cb8d3
VS
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
a848cd7e
SC
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
c228d3a4
RN
14436 { ac_try='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
ac1cb8d3
VS
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_type_char=yes
14450else
14451 echo "$as_me: failed program was:" >&5
14452sed 's/^/| /' conftest.$ac_ext >&5
14453
14454ac_cv_type_char=no
14455fi
ac1cb8d3 14456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14457fi
14458echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14459echo "${ECHO_T}$ac_cv_type_char" >&6
14460
14461echo "$as_me:$LINENO: checking size of char" >&5
14462echo $ECHO_N "checking size of char... $ECHO_C" >&6
14463if test "${ac_cv_sizeof_char+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465else
14466 if test "$ac_cv_type_char" = yes; then
14467 # The cast to unsigned long works around a bug in the HP C Compiler
14468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14470 # This bug is HP SR number 8606223364.
14471 if test "$cross_compiling" = yes; then
14472 # Depending upon the size, compute the lo and hi bounds.
14473cat >conftest.$ac_ext <<_ACEOF
14474/* confdefs.h. */
14475_ACEOF
14476cat confdefs.h >>conftest.$ac_ext
14477cat >>conftest.$ac_ext <<_ACEOF
14478/* end confdefs.h. */
14479$ac_includes_default
14480int
14481main ()
14482{
14483static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14484test_array [0] = 0
14485
14486 ;
14487 return 0;
14488}
14489_ACEOF
14490rm -f conftest.$ac_objext
14491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14492 (eval $ac_compile) 2>conftest.er1
a848cd7e 14493 ac_status=$?
ac1cb8d3
VS
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
a848cd7e
SC
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
c228d3a4
RN
14499 { ac_try='test -z "$ac_c_werror_flag"
14500 || test ! -s conftest.err'
ac1cb8d3
VS
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_lo=0 ac_mid=0
14513 while :; do
14514 cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
14520$ac_includes_default
14521int
14522main ()
14523{
14524static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14525test_array [0] = 0
14526
14527 ;
14528 return 0;
14529}
14530_ACEOF
14531rm -f conftest.$ac_objext
14532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14533 (eval $ac_compile) 2>conftest.er1
a848cd7e 14534 ac_status=$?
ac1cb8d3
VS
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
a848cd7e
SC
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
c228d3a4
RN
14540 { ac_try='test -z "$ac_c_werror_flag"
14541 || test ! -s conftest.err'
ac1cb8d3
VS
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_hi=$ac_mid; break
14554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14559 if test $ac_lo -le $ac_mid; then
14560 ac_lo= ac_hi=
14561 break
14562 fi
14563 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14564fi
ac1cb8d3 14565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14566 done
14567else
14568 echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
14571cat >conftest.$ac_ext <<_ACEOF
14572/* confdefs.h. */
14573_ACEOF
14574cat confdefs.h >>conftest.$ac_ext
14575cat >>conftest.$ac_ext <<_ACEOF
14576/* end confdefs.h. */
14577$ac_includes_default
14578int
14579main ()
14580{
14581static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14582test_array [0] = 0
14583
14584 ;
14585 return 0;
14586}
14587_ACEOF
14588rm -f conftest.$ac_objext
14589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14590 (eval $ac_compile) 2>conftest.er1
a848cd7e 14591 ac_status=$?
ac1cb8d3
VS
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
a848cd7e
SC
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
c228d3a4
RN
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
ac1cb8d3
VS
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_hi=-1 ac_mid=-1
14611 while :; do
14612 cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618$ac_includes_default
14619int
14620main ()
14621{
14622static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14623test_array [0] = 0
14624
14625 ;
14626 return 0;
14627}
14628_ACEOF
14629rm -f conftest.$ac_objext
14630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14631 (eval $ac_compile) 2>conftest.er1
a848cd7e 14632 ac_status=$?
ac1cb8d3
VS
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
a848cd7e
SC
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
c228d3a4
RN
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
ac1cb8d3
VS
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_lo=$ac_mid; break
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14657 if test $ac_mid -le $ac_hi; then
14658 ac_lo= ac_hi=
14659 break
14660 fi
14661 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14662fi
ac1cb8d3 14663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14664 done
14665else
14666 echo "$as_me: failed program was:" >&5
14667sed 's/^/| /' conftest.$ac_ext >&5
14668
14669ac_lo= ac_hi=
14670fi
ac1cb8d3 14671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14672fi
ac1cb8d3 14673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14674# Binary search between lo and hi bounds.
14675while test "x$ac_lo" != "x$ac_hi"; do
14676 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14677 cat >conftest.$ac_ext <<_ACEOF
14678/* confdefs.h. */
14679_ACEOF
14680cat confdefs.h >>conftest.$ac_ext
14681cat >>conftest.$ac_ext <<_ACEOF
14682/* end confdefs.h. */
14683$ac_includes_default
14684int
14685main ()
14686{
14687static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14688test_array [0] = 0
14689
14690 ;
14691 return 0;
14692}
14693_ACEOF
14694rm -f conftest.$ac_objext
14695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14696 (eval $ac_compile) 2>conftest.er1
a848cd7e 14697 ac_status=$?
ac1cb8d3
VS
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
a848cd7e
SC
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
c228d3a4
RN
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
ac1cb8d3
VS
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_hi=$ac_mid
14717else
14718 echo "$as_me: failed program was:" >&5
14719sed 's/^/| /' conftest.$ac_ext >&5
14720
14721ac_lo=`expr '(' $ac_mid ')' + 1`
14722fi
ac1cb8d3 14723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14724done
14725case $ac_lo in
14726?*) ac_cv_sizeof_char=$ac_lo;;
14727'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14728See \`config.log' for more details." >&5
14729echo "$as_me: error: cannot compute sizeof (char), 77
14730See \`config.log' for more details." >&2;}
14731 { (exit 1); exit 1; }; } ;;
14732esac
14733else
14734 if test "$cross_compiling" = yes; then
c228d3a4
RN
14735 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14736See \`config.log' for more details." >&5
14737echo "$as_me: error: cannot run test program while cross compiling
14738See \`config.log' for more details." >&2;}
a848cd7e
SC
14739 { (exit 1); exit 1; }; }
14740else
14741 cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747$ac_includes_default
14748long longval () { return (long) (sizeof (char)); }
14749unsigned long ulongval () { return (long) (sizeof (char)); }
14750#include <stdio.h>
14751#include <stdlib.h>
14752int
14753main ()
14754{
14755
14756 FILE *f = fopen ("conftest.val", "w");
14757 if (! f)
14758 exit (1);
14759 if (((long) (sizeof (char))) < 0)
14760 {
14761 long i = longval ();
14762 if (i != ((long) (sizeof (char))))
14763 exit (1);
14764 fprintf (f, "%ld\n", i);
14765 }
14766 else
14767 {
14768 unsigned long i = ulongval ();
14769 if (i != ((long) (sizeof (char))))
14770 exit (1);
14771 fprintf (f, "%lu\n", i);
14772 }
14773 exit (ferror (f) || fclose (f) != 0);
14774
14775 ;
14776 return 0;
14777}
14778_ACEOF
14779rm -f conftest$ac_exeext
14780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14781 (eval $ac_link) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 ac_cv_sizeof_char=`cat conftest.val`
14791else
14792 echo "$as_me: program exited with status $ac_status" >&5
14793echo "$as_me: failed program was:" >&5
14794sed 's/^/| /' conftest.$ac_ext >&5
14795
14796( exit $ac_status )
14797{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14798See \`config.log' for more details." >&5
14799echo "$as_me: error: cannot compute sizeof (char), 77
14800See \`config.log' for more details." >&2;}
14801 { (exit 1); exit 1; }; }
14802fi
ac1cb8d3 14803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14804fi
14805fi
14806rm -f conftest.val
14807else
14808 ac_cv_sizeof_char=0
14809fi
14810fi
14811echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14812echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14813cat >>confdefs.h <<_ACEOF
14814#define SIZEOF_CHAR $ac_cv_sizeof_char
14815_ACEOF
14816
14817
14818echo "$as_me:$LINENO: checking for short" >&5
14819echo $ECHO_N "checking for short... $ECHO_C" >&6
14820if test "${ac_cv_type_short+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822else
14823 cat >conftest.$ac_ext <<_ACEOF
14824/* confdefs.h. */
14825_ACEOF
14826cat confdefs.h >>conftest.$ac_ext
14827cat >>conftest.$ac_ext <<_ACEOF
14828/* end confdefs.h. */
14829$ac_includes_default
14830int
14831main ()
14832{
14833if ((short *) 0)
14834 return 0;
14835if (sizeof (short))
14836 return 0;
14837 ;
14838 return 0;
14839}
14840_ACEOF
14841rm -f conftest.$ac_objext
14842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14843 (eval $ac_compile) 2>conftest.er1
a848cd7e 14844 ac_status=$?
ac1cb8d3
VS
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
a848cd7e
SC
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
c228d3a4
RN
14850 { ac_try='test -z "$ac_c_werror_flag"
14851 || test ! -s conftest.err'
ac1cb8d3
VS
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_cv_type_short=yes
14864else
14865 echo "$as_me: failed program was:" >&5
14866sed 's/^/| /' conftest.$ac_ext >&5
14867
14868ac_cv_type_short=no
14869fi
ac1cb8d3 14870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14871fi
14872echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14873echo "${ECHO_T}$ac_cv_type_short" >&6
14874
14875echo "$as_me:$LINENO: checking size of short" >&5
14876echo $ECHO_N "checking size of short... $ECHO_C" >&6
14877if test "${ac_cv_sizeof_short+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879else
14880 if test "$ac_cv_type_short" = yes; then
14881 # The cast to unsigned long works around a bug in the HP C Compiler
14882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14884 # This bug is HP SR number 8606223364.
14885 if test "$cross_compiling" = yes; then
14886 # Depending upon the size, compute the lo and hi bounds.
14887cat >conftest.$ac_ext <<_ACEOF
14888/* confdefs.h. */
14889_ACEOF
14890cat confdefs.h >>conftest.$ac_ext
14891cat >>conftest.$ac_ext <<_ACEOF
14892/* end confdefs.h. */
14893$ac_includes_default
14894int
14895main ()
14896{
14897static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14898test_array [0] = 0
14899
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904rm -f conftest.$ac_objext
14905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14906 (eval $ac_compile) 2>conftest.er1
a848cd7e 14907 ac_status=$?
ac1cb8d3
VS
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
a848cd7e
SC
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
c228d3a4
RN
14913 { ac_try='test -z "$ac_c_werror_flag"
14914 || test ! -s conftest.err'
ac1cb8d3
VS
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_lo=0 ac_mid=0
14927 while :; do
14928 cat >conftest.$ac_ext <<_ACEOF
14929/* confdefs.h. */
14930_ACEOF
14931cat confdefs.h >>conftest.$ac_ext
14932cat >>conftest.$ac_ext <<_ACEOF
14933/* end confdefs.h. */
14934$ac_includes_default
14935int
14936main ()
14937{
14938static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14939test_array [0] = 0
14940
14941 ;
14942 return 0;
14943}
14944_ACEOF
14945rm -f conftest.$ac_objext
14946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14947 (eval $ac_compile) 2>conftest.er1
a848cd7e 14948 ac_status=$?
ac1cb8d3
VS
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
a848cd7e
SC
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
c228d3a4
RN
14954 { ac_try='test -z "$ac_c_werror_flag"
14955 || test ! -s conftest.err'
ac1cb8d3
VS
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; } &&
14961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_hi=$ac_mid; break
14968else
14969 echo "$as_me: failed program was:" >&5
14970sed 's/^/| /' conftest.$ac_ext >&5
14971
14972ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14973 if test $ac_lo -le $ac_mid; then
14974 ac_lo= ac_hi=
14975 break
14976 fi
14977 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14978fi
ac1cb8d3 14979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14980 done
14981else
14982 echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985cat >conftest.$ac_ext <<_ACEOF
14986/* confdefs.h. */
14987_ACEOF
14988cat confdefs.h >>conftest.$ac_ext
14989cat >>conftest.$ac_ext <<_ACEOF
14990/* end confdefs.h. */
14991$ac_includes_default
14992int
14993main ()
14994{
14995static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14996test_array [0] = 0
14997
14998 ;
14999 return 0;
15000}
15001_ACEOF
15002rm -f conftest.$ac_objext
15003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15004 (eval $ac_compile) 2>conftest.er1
a848cd7e 15005 ac_status=$?
ac1cb8d3
VS
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
a848cd7e
SC
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
c228d3a4
RN
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
ac1cb8d3
VS
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_hi=-1 ac_mid=-1
15025 while :; do
15026 cat >conftest.$ac_ext <<_ACEOF
15027/* confdefs.h. */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
15031/* end confdefs.h. */
15032$ac_includes_default
15033int
15034main ()
15035{
15036static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15037test_array [0] = 0
15038
15039 ;
15040 return 0;
15041}
15042_ACEOF
15043rm -f conftest.$ac_objext
15044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15045 (eval $ac_compile) 2>conftest.er1
a848cd7e 15046 ac_status=$?
ac1cb8d3
VS
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
a848cd7e
SC
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } &&
c228d3a4
RN
15052 { ac_try='test -z "$ac_c_werror_flag"
15053 || test ! -s conftest.err'
ac1cb8d3
VS
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } &&
15059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 ac_lo=$ac_mid; break
15066else
15067 echo "$as_me: failed program was:" >&5
15068sed 's/^/| /' conftest.$ac_ext >&5
15069
15070ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15071 if test $ac_mid -le $ac_hi; then
15072 ac_lo= ac_hi=
15073 break
15074 fi
15075 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15076fi
ac1cb8d3 15077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15078 done
15079else
15080 echo "$as_me: failed program was:" >&5
15081sed 's/^/| /' conftest.$ac_ext >&5
15082
15083ac_lo= ac_hi=
15084fi
ac1cb8d3 15085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15086fi
ac1cb8d3 15087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15088# Binary search between lo and hi bounds.
15089while test "x$ac_lo" != "x$ac_hi"; do
15090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15091 cat >conftest.$ac_ext <<_ACEOF
15092/* confdefs.h. */
15093_ACEOF
15094cat confdefs.h >>conftest.$ac_ext
15095cat >>conftest.$ac_ext <<_ACEOF
15096/* end confdefs.h. */
15097$ac_includes_default
15098int
15099main ()
15100{
15101static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15102test_array [0] = 0
15103
15104 ;
15105 return 0;
15106}
15107_ACEOF
15108rm -f conftest.$ac_objext
15109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15110 (eval $ac_compile) 2>conftest.er1
a848cd7e 15111 ac_status=$?
ac1cb8d3
VS
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
a848cd7e
SC
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
c228d3a4
RN
15117 { ac_try='test -z "$ac_c_werror_flag"
15118 || test ! -s conftest.err'
ac1cb8d3
VS
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_hi=$ac_mid
15131else
15132 echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135ac_lo=`expr '(' $ac_mid ')' + 1`
15136fi
ac1cb8d3 15137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15138done
15139case $ac_lo in
15140?*) ac_cv_sizeof_short=$ac_lo;;
15141'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15142See \`config.log' for more details." >&5
15143echo "$as_me: error: cannot compute sizeof (short), 77
15144See \`config.log' for more details." >&2;}
15145 { (exit 1); exit 1; }; } ;;
15146esac
15147else
15148 if test "$cross_compiling" = yes; then
c228d3a4
RN
15149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15150See \`config.log' for more details." >&5
15151echo "$as_me: error: cannot run test program while cross compiling
15152See \`config.log' for more details." >&2;}
a848cd7e
SC
15153 { (exit 1); exit 1; }; }
15154else
15155 cat >conftest.$ac_ext <<_ACEOF
15156/* confdefs.h. */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h. */
15161$ac_includes_default
15162long longval () { return (long) (sizeof (short)); }
15163unsigned long ulongval () { return (long) (sizeof (short)); }
15164#include <stdio.h>
15165#include <stdlib.h>
15166int
15167main ()
15168{
15169
15170 FILE *f = fopen ("conftest.val", "w");
15171 if (! f)
15172 exit (1);
15173 if (((long) (sizeof (short))) < 0)
15174 {
15175 long i = longval ();
15176 if (i != ((long) (sizeof (short))))
15177 exit (1);
15178 fprintf (f, "%ld\n", i);
15179 }
15180 else
15181 {
15182 unsigned long i = ulongval ();
15183 if (i != ((long) (sizeof (short))))
15184 exit (1);
15185 fprintf (f, "%lu\n", i);
15186 }
15187 exit (ferror (f) || fclose (f) != 0);
15188
15189 ;
15190 return 0;
15191}
15192_ACEOF
15193rm -f conftest$ac_exeext
15194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_cv_sizeof_short=`cat conftest.val`
15205else
15206 echo "$as_me: program exited with status $ac_status" >&5
15207echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5
15209
15210( exit $ac_status )
15211{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15212See \`config.log' for more details." >&5
15213echo "$as_me: error: cannot compute sizeof (short), 77
15214See \`config.log' for more details." >&2;}
15215 { (exit 1); exit 1; }; }
15216fi
ac1cb8d3 15217rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15218fi
15219fi
15220rm -f conftest.val
15221else
15222 ac_cv_sizeof_short=0
15223fi
15224fi
15225echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15226echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15227cat >>confdefs.h <<_ACEOF
15228#define SIZEOF_SHORT $ac_cv_sizeof_short
15229_ACEOF
15230
15231
15232echo "$as_me:$LINENO: checking for void *" >&5
15233echo $ECHO_N "checking for void *... $ECHO_C" >&6
15234if test "${ac_cv_type_void_p+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15236else
15237 cat >conftest.$ac_ext <<_ACEOF
15238/* confdefs.h. */
15239_ACEOF
15240cat confdefs.h >>conftest.$ac_ext
15241cat >>conftest.$ac_ext <<_ACEOF
15242/* end confdefs.h. */
15243$ac_includes_default
15244int
15245main ()
15246{
15247if ((void * *) 0)
15248 return 0;
15249if (sizeof (void *))
15250 return 0;
15251 ;
15252 return 0;
15253}
15254_ACEOF
15255rm -f conftest.$ac_objext
15256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15257 (eval $ac_compile) 2>conftest.er1
a848cd7e 15258 ac_status=$?
ac1cb8d3
VS
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
a848cd7e
SC
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
c228d3a4
RN
15264 { ac_try='test -z "$ac_c_werror_flag"
15265 || test ! -s conftest.err'
ac1cb8d3
VS
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_cv_type_void_p=yes
15278else
15279 echo "$as_me: failed program was:" >&5
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
15282ac_cv_type_void_p=no
15283fi
ac1cb8d3 15284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15285fi
15286echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15287echo "${ECHO_T}$ac_cv_type_void_p" >&6
15288
15289echo "$as_me:$LINENO: checking size of void *" >&5
15290echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15291if test "${ac_cv_sizeof_void_p+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293else
15294 if test "$ac_cv_type_void_p" = yes; then
15295 # The cast to unsigned long works around a bug in the HP C Compiler
15296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15298 # This bug is HP SR number 8606223364.
15299 if test "$cross_compiling" = yes; then
15300 # Depending upon the size, compute the lo and hi bounds.
15301cat >conftest.$ac_ext <<_ACEOF
15302/* confdefs.h. */
15303_ACEOF
15304cat confdefs.h >>conftest.$ac_ext
15305cat >>conftest.$ac_ext <<_ACEOF
15306/* end confdefs.h. */
15307$ac_includes_default
15308int
15309main ()
15310{
15311static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15312test_array [0] = 0
15313
15314 ;
15315 return 0;
15316}
15317_ACEOF
15318rm -f conftest.$ac_objext
15319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15320 (eval $ac_compile) 2>conftest.er1
a848cd7e 15321 ac_status=$?
ac1cb8d3
VS
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
a848cd7e
SC
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
c228d3a4
RN
15327 { ac_try='test -z "$ac_c_werror_flag"
15328 || test ! -s conftest.err'
ac1cb8d3
VS
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_lo=0 ac_mid=0
15341 while :; do
15342 cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h. */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
15347/* end confdefs.h. */
15348$ac_includes_default
15349int
15350main ()
15351{
15352static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15353test_array [0] = 0
15354
15355 ;
15356 return 0;
15357}
15358_ACEOF
15359rm -f conftest.$ac_objext
15360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15361 (eval $ac_compile) 2>conftest.er1
a848cd7e 15362 ac_status=$?
ac1cb8d3
VS
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
a848cd7e
SC
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
c228d3a4
RN
15368 { ac_try='test -z "$ac_c_werror_flag"
15369 || test ! -s conftest.err'
ac1cb8d3
VS
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_hi=$ac_mid; break
15382else
15383 echo "$as_me: failed program was:" >&5
15384sed 's/^/| /' conftest.$ac_ext >&5
15385
15386ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15387 if test $ac_lo -le $ac_mid; then
15388 ac_lo= ac_hi=
15389 break
15390 fi
15391 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15392fi
ac1cb8d3 15393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15394 done
15395else
15396 echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
15399cat >conftest.$ac_ext <<_ACEOF
15400/* confdefs.h. */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
15404/* end confdefs.h. */
15405$ac_includes_default
15406int
15407main ()
15408{
15409static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15410test_array [0] = 0
15411
15412 ;
15413 return 0;
15414}
15415_ACEOF
15416rm -f conftest.$ac_objext
15417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15418 (eval $ac_compile) 2>conftest.er1
a848cd7e 15419 ac_status=$?
ac1cb8d3
VS
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
a848cd7e
SC
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
c228d3a4
RN
15425 { ac_try='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
ac1cb8d3
VS
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_hi=-1 ac_mid=-1
15439 while :; do
15440 cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446$ac_includes_default
15447int
15448main ()
15449{
15450static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15451test_array [0] = 0
15452
15453 ;
15454 return 0;
15455}
15456_ACEOF
15457rm -f conftest.$ac_objext
15458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15459 (eval $ac_compile) 2>conftest.er1
a848cd7e 15460 ac_status=$?
ac1cb8d3
VS
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
a848cd7e
SC
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
c228d3a4
RN
15466 { ac_try='test -z "$ac_c_werror_flag"
15467 || test ! -s conftest.err'
ac1cb8d3
VS
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_lo=$ac_mid; break
15480else
15481 echo "$as_me: failed program was:" >&5
15482sed 's/^/| /' conftest.$ac_ext >&5
15483
15484ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15485 if test $ac_mid -le $ac_hi; then
15486 ac_lo= ac_hi=
15487 break
15488 fi
15489 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15490fi
ac1cb8d3 15491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15492 done
15493else
15494 echo "$as_me: failed program was:" >&5
15495sed 's/^/| /' conftest.$ac_ext >&5
15496
15497ac_lo= ac_hi=
15498fi
ac1cb8d3 15499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15500fi
ac1cb8d3 15501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15502# Binary search between lo and hi bounds.
15503while test "x$ac_lo" != "x$ac_hi"; do
15504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15505 cat >conftest.$ac_ext <<_ACEOF
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */
15511$ac_includes_default
15512int
15513main ()
15514{
15515static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15516test_array [0] = 0
15517
15518 ;
15519 return 0;
15520}
15521_ACEOF
15522rm -f conftest.$ac_objext
15523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15524 (eval $ac_compile) 2>conftest.er1
a848cd7e 15525 ac_status=$?
ac1cb8d3
VS
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
a848cd7e
SC
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
c228d3a4
RN
15531 { ac_try='test -z "$ac_c_werror_flag"
15532 || test ! -s conftest.err'
ac1cb8d3
VS
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_hi=$ac_mid
15545else
15546 echo "$as_me: failed program was:" >&5
15547sed 's/^/| /' conftest.$ac_ext >&5
15548
15549ac_lo=`expr '(' $ac_mid ')' + 1`
15550fi
ac1cb8d3 15551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15552done
15553case $ac_lo in
15554?*) ac_cv_sizeof_void_p=$ac_lo;;
15555'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15556See \`config.log' for more details." >&5
15557echo "$as_me: error: cannot compute sizeof (void *), 77
15558See \`config.log' for more details." >&2;}
15559 { (exit 1); exit 1; }; } ;;
15560esac
15561else
15562 if test "$cross_compiling" = yes; then
c228d3a4
RN
15563 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15564See \`config.log' for more details." >&5
15565echo "$as_me: error: cannot run test program while cross compiling
15566See \`config.log' for more details." >&2;}
a848cd7e
SC
15567 { (exit 1); exit 1; }; }
15568else
15569 cat >conftest.$ac_ext <<_ACEOF
15570/* confdefs.h. */
15571_ACEOF
15572cat confdefs.h >>conftest.$ac_ext
15573cat >>conftest.$ac_ext <<_ACEOF
15574/* end confdefs.h. */
15575$ac_includes_default
15576long longval () { return (long) (sizeof (void *)); }
15577unsigned long ulongval () { return (long) (sizeof (void *)); }
15578#include <stdio.h>
15579#include <stdlib.h>
15580int
15581main ()
15582{
15583
15584 FILE *f = fopen ("conftest.val", "w");
15585 if (! f)
15586 exit (1);
15587 if (((long) (sizeof (void *))) < 0)
15588 {
15589 long i = longval ();
15590 if (i != ((long) (sizeof (void *))))
15591 exit (1);
15592 fprintf (f, "%ld\n", i);
15593 }
15594 else
15595 {
15596 unsigned long i = ulongval ();
15597 if (i != ((long) (sizeof (void *))))
15598 exit (1);
15599 fprintf (f, "%lu\n", i);
15600 }
15601 exit (ferror (f) || fclose (f) != 0);
15602
15603 ;
15604 return 0;
15605}
15606_ACEOF
15607rm -f conftest$ac_exeext
15608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609 (eval $ac_link) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_cv_sizeof_void_p=`cat conftest.val`
15619else
15620 echo "$as_me: program exited with status $ac_status" >&5
15621echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5
15623
15624( exit $ac_status )
15625{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15626See \`config.log' for more details." >&5
15627echo "$as_me: error: cannot compute sizeof (void *), 77
15628See \`config.log' for more details." >&2;}
15629 { (exit 1); exit 1; }; }
15630fi
ac1cb8d3 15631rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15632fi
15633fi
15634rm -f conftest.val
15635else
15636 ac_cv_sizeof_void_p=0
15637fi
15638fi
15639echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15640echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15641cat >>confdefs.h <<_ACEOF
15642#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15643_ACEOF
15644
15645
15646echo "$as_me:$LINENO: checking for int" >&5
15647echo $ECHO_N "checking for int... $ECHO_C" >&6
15648if test "${ac_cv_type_int+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650else
15651 cat >conftest.$ac_ext <<_ACEOF
15652/* confdefs.h. */
15653_ACEOF
15654cat confdefs.h >>conftest.$ac_ext
15655cat >>conftest.$ac_ext <<_ACEOF
15656/* end confdefs.h. */
15657$ac_includes_default
15658int
15659main ()
15660{
15661if ((int *) 0)
15662 return 0;
15663if (sizeof (int))
15664 return 0;
15665 ;
15666 return 0;
15667}
15668_ACEOF
15669rm -f conftest.$ac_objext
15670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15671 (eval $ac_compile) 2>conftest.er1
a848cd7e 15672 ac_status=$?
ac1cb8d3
VS
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
a848cd7e
SC
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
c228d3a4
RN
15678 { ac_try='test -z "$ac_c_werror_flag"
15679 || test ! -s conftest.err'
ac1cb8d3
VS
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_cv_type_int=yes
15692else
15693 echo "$as_me: failed program was:" >&5
15694sed 's/^/| /' conftest.$ac_ext >&5
15695
15696ac_cv_type_int=no
15697fi
ac1cb8d3 15698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15699fi
15700echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15701echo "${ECHO_T}$ac_cv_type_int" >&6
15702
15703echo "$as_me:$LINENO: checking size of int" >&5
15704echo $ECHO_N "checking size of int... $ECHO_C" >&6
15705if test "${ac_cv_sizeof_int+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707else
15708 if test "$ac_cv_type_int" = yes; then
15709 # The cast to unsigned long works around a bug in the HP C Compiler
15710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15712 # This bug is HP SR number 8606223364.
15713 if test "$cross_compiling" = yes; then
15714 # Depending upon the size, compute the lo and hi bounds.
15715cat >conftest.$ac_ext <<_ACEOF
15716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
15721$ac_includes_default
15722int
15723main ()
15724{
15725static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15726test_array [0] = 0
15727
15728 ;
15729 return 0;
15730}
15731_ACEOF
15732rm -f conftest.$ac_objext
15733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15734 (eval $ac_compile) 2>conftest.er1
a848cd7e 15735 ac_status=$?
ac1cb8d3
VS
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
a848cd7e
SC
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
c228d3a4
RN
15741 { ac_try='test -z "$ac_c_werror_flag"
15742 || test ! -s conftest.err'
ac1cb8d3
VS
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_lo=0 ac_mid=0
15755 while :; do
15756 cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h. */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h. */
15762$ac_includes_default
15763int
15764main ()
15765{
15766static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15767test_array [0] = 0
15768
15769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext
15774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15775 (eval $ac_compile) 2>conftest.er1
a848cd7e 15776 ac_status=$?
ac1cb8d3
VS
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
a848cd7e
SC
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
c228d3a4
RN
15782 { ac_try='test -z "$ac_c_werror_flag"
15783 || test ! -s conftest.err'
ac1cb8d3
VS
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_hi=$ac_mid; break
15796else
15797 echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15801 if test $ac_lo -le $ac_mid; then
15802 ac_lo= ac_hi=
15803 break
15804 fi
15805 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15806fi
ac1cb8d3 15807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15808 done
15809else
15810 echo "$as_me: failed program was:" >&5
15811sed 's/^/| /' conftest.$ac_ext >&5
15812
15813cat >conftest.$ac_ext <<_ACEOF
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
15819$ac_includes_default
15820int
15821main ()
15822{
15823static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15824test_array [0] = 0
15825
15826 ;
15827 return 0;
15828}
15829_ACEOF
15830rm -f conftest.$ac_objext
15831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15832 (eval $ac_compile) 2>conftest.er1
a848cd7e 15833 ac_status=$?
ac1cb8d3
VS
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
a848cd7e
SC
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
c228d3a4
RN
15839 { ac_try='test -z "$ac_c_werror_flag"
15840 || test ! -s conftest.err'
ac1cb8d3
VS
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_hi=-1 ac_mid=-1
15853 while :; do
15854 cat >conftest.$ac_ext <<_ACEOF
15855/* confdefs.h. */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
15859/* end confdefs.h. */
15860$ac_includes_default
15861int
15862main ()
15863{
15864static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15865test_array [0] = 0
15866
15867 ;
15868 return 0;
15869}
15870_ACEOF
15871rm -f conftest.$ac_objext
15872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15873 (eval $ac_compile) 2>conftest.er1
a848cd7e 15874 ac_status=$?
ac1cb8d3
VS
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
a848cd7e
SC
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
c228d3a4
RN
15880 { ac_try='test -z "$ac_c_werror_flag"
15881 || test ! -s conftest.err'
ac1cb8d3
VS
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_lo=$ac_mid; break
15894else
15895 echo "$as_me: failed program was:" >&5
15896sed 's/^/| /' conftest.$ac_ext >&5
15897
15898ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15899 if test $ac_mid -le $ac_hi; then
15900 ac_lo= ac_hi=
15901 break
15902 fi
15903 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15904fi
ac1cb8d3 15905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15906 done
15907else
15908 echo "$as_me: failed program was:" >&5
15909sed 's/^/| /' conftest.$ac_ext >&5
15910
15911ac_lo= ac_hi=
15912fi
ac1cb8d3 15913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15914fi
ac1cb8d3 15915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15916# Binary search between lo and hi bounds.
15917while test "x$ac_lo" != "x$ac_hi"; do
15918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925$ac_includes_default
15926int
15927main ()
15928{
15929static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15930test_array [0] = 0
15931
15932 ;
15933 return 0;
15934}
15935_ACEOF
15936rm -f conftest.$ac_objext
15937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15938 (eval $ac_compile) 2>conftest.er1
a848cd7e 15939 ac_status=$?
ac1cb8d3
VS
15940 grep -v '^ *+' conftest.er1 >conftest.err
15941 rm -f conftest.er1
15942 cat conftest.err >&5
a848cd7e
SC
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } &&
c228d3a4
RN
15945 { ac_try='test -z "$ac_c_werror_flag"
15946 || test ! -s conftest.err'
ac1cb8d3
VS
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_hi=$ac_mid
15959else
15960 echo "$as_me: failed program was:" >&5
15961sed 's/^/| /' conftest.$ac_ext >&5
15962
15963ac_lo=`expr '(' $ac_mid ')' + 1`
15964fi
ac1cb8d3 15965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15966done
15967case $ac_lo in
15968?*) ac_cv_sizeof_int=$ac_lo;;
15969'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15970See \`config.log' for more details." >&5
15971echo "$as_me: error: cannot compute sizeof (int), 77
15972See \`config.log' for more details." >&2;}
15973 { (exit 1); exit 1; }; } ;;
15974esac
15975else
15976 if test "$cross_compiling" = yes; then
c228d3a4
RN
15977 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15978See \`config.log' for more details." >&5
15979echo "$as_me: error: cannot run test program while cross compiling
15980See \`config.log' for more details." >&2;}
a848cd7e
SC
15981 { (exit 1); exit 1; }; }
15982else
15983 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989$ac_includes_default
15990long longval () { return (long) (sizeof (int)); }
15991unsigned long ulongval () { return (long) (sizeof (int)); }
15992#include <stdio.h>
15993#include <stdlib.h>
15994int
15995main ()
15996{
15997
15998 FILE *f = fopen ("conftest.val", "w");
15999 if (! f)
16000 exit (1);
16001 if (((long) (sizeof (int))) < 0)
16002 {
16003 long i = longval ();
16004 if (i != ((long) (sizeof (int))))
16005 exit (1);
16006 fprintf (f, "%ld\n", i);
16007 }
16008 else
16009 {
16010 unsigned long i = ulongval ();
16011 if (i != ((long) (sizeof (int))))
16012 exit (1);
16013 fprintf (f, "%lu\n", i);
16014 }
16015 exit (ferror (f) || fclose (f) != 0);
16016
16017 ;
16018 return 0;
16019}
16020_ACEOF
16021rm -f conftest$ac_exeext
16022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023 (eval $ac_link) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 ac_cv_sizeof_int=`cat conftest.val`
16033else
16034 echo "$as_me: program exited with status $ac_status" >&5
16035echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038( exit $ac_status )
16039{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16040See \`config.log' for more details." >&5
16041echo "$as_me: error: cannot compute sizeof (int), 77
16042See \`config.log' for more details." >&2;}
16043 { (exit 1); exit 1; }; }
16044fi
ac1cb8d3 16045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16046fi
16047fi
16048rm -f conftest.val
16049else
16050 ac_cv_sizeof_int=0
16051fi
16052fi
16053echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16054echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16055cat >>confdefs.h <<_ACEOF
16056#define SIZEOF_INT $ac_cv_sizeof_int
16057_ACEOF
16058
16059
16060echo "$as_me:$LINENO: checking for long" >&5
16061echo $ECHO_N "checking for long... $ECHO_C" >&6
16062if test "${ac_cv_type_long+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064else
16065 cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071$ac_includes_default
16072int
16073main ()
16074{
16075if ((long *) 0)
16076 return 0;
16077if (sizeof (long))
16078 return 0;
16079 ;
16080 return 0;
16081}
16082_ACEOF
16083rm -f conftest.$ac_objext
16084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16085 (eval $ac_compile) 2>conftest.er1
a848cd7e 16086 ac_status=$?
ac1cb8d3
VS
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
a848cd7e
SC
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
c228d3a4
RN
16092 { ac_try='test -z "$ac_c_werror_flag"
16093 || test ! -s conftest.err'
ac1cb8d3
VS
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 ac_cv_type_long=yes
16106else
16107 echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
16110ac_cv_type_long=no
16111fi
ac1cb8d3 16112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16113fi
16114echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16115echo "${ECHO_T}$ac_cv_type_long" >&6
16116
16117echo "$as_me:$LINENO: checking size of long" >&5
16118echo $ECHO_N "checking size of long... $ECHO_C" >&6
16119if test "${ac_cv_sizeof_long+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16121else
16122 if test "$ac_cv_type_long" = yes; then
16123 # The cast to unsigned long works around a bug in the HP C Compiler
16124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16126 # This bug is HP SR number 8606223364.
16127 if test "$cross_compiling" = yes; then
16128 # Depending upon the size, compute the lo and hi bounds.
16129cat >conftest.$ac_ext <<_ACEOF
16130/* confdefs.h. */
16131_ACEOF
16132cat confdefs.h >>conftest.$ac_ext
16133cat >>conftest.$ac_ext <<_ACEOF
16134/* end confdefs.h. */
16135$ac_includes_default
16136int
16137main ()
16138{
16139static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16140test_array [0] = 0
16141
16142 ;
16143 return 0;
16144}
16145_ACEOF
16146rm -f conftest.$ac_objext
16147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16148 (eval $ac_compile) 2>conftest.er1
a848cd7e 16149 ac_status=$?
ac1cb8d3
VS
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
a848cd7e
SC
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
c228d3a4
RN
16155 { ac_try='test -z "$ac_c_werror_flag"
16156 || test ! -s conftest.err'
ac1cb8d3
VS
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_lo=0 ac_mid=0
16169 while :; do
16170 cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176$ac_includes_default
16177int
16178main ()
16179{
16180static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16181test_array [0] = 0
16182
16183 ;
16184 return 0;
16185}
16186_ACEOF
16187rm -f conftest.$ac_objext
16188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16189 (eval $ac_compile) 2>conftest.er1
a848cd7e 16190 ac_status=$?
ac1cb8d3
VS
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
a848cd7e
SC
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
c228d3a4
RN
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
ac1cb8d3
VS
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_hi=$ac_mid; break
16210else
16211 echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16215 if test $ac_lo -le $ac_mid; then
16216 ac_lo= ac_hi=
16217 break
16218 fi
16219 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16220fi
ac1cb8d3 16221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16222 done
16223else
16224 echo "$as_me: failed program was:" >&5
16225sed 's/^/| /' conftest.$ac_ext >&5
16226
16227cat >conftest.$ac_ext <<_ACEOF
16228/* confdefs.h. */
16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h. */
16233$ac_includes_default
16234int
16235main ()
16236{
16237static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16238test_array [0] = 0
16239
16240 ;
16241 return 0;
16242}
16243_ACEOF
16244rm -f conftest.$ac_objext
16245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16246 (eval $ac_compile) 2>conftest.er1
a848cd7e 16247 ac_status=$?
ac1cb8d3
VS
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
a848cd7e
SC
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
c228d3a4
RN
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
ac1cb8d3
VS
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 ac_hi=-1 ac_mid=-1
16267 while :; do
16268 cat >conftest.$ac_ext <<_ACEOF
16269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
16274$ac_includes_default
16275int
16276main ()
16277{
16278static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16279test_array [0] = 0
16280
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext
16286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16287 (eval $ac_compile) 2>conftest.er1
a848cd7e 16288 ac_status=$?
ac1cb8d3
VS
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
a848cd7e
SC
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
c228d3a4
RN
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
ac1cb8d3
VS
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ac_lo=$ac_mid; break
16308else
16309 echo "$as_me: failed program was:" >&5
16310sed 's/^/| /' conftest.$ac_ext >&5
16311
16312ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16313 if test $ac_mid -le $ac_hi; then
16314 ac_lo= ac_hi=
16315 break
16316 fi
16317 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16318fi
ac1cb8d3 16319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16320 done
16321else
16322 echo "$as_me: failed program was:" >&5
16323sed 's/^/| /' conftest.$ac_ext >&5
16324
16325ac_lo= ac_hi=
16326fi
ac1cb8d3 16327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16328fi
ac1cb8d3 16329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16330# Binary search between lo and hi bounds.
16331while test "x$ac_lo" != "x$ac_hi"; do
16332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16333 cat >conftest.$ac_ext <<_ACEOF
16334/* confdefs.h. */
16335_ACEOF
16336cat confdefs.h >>conftest.$ac_ext
16337cat >>conftest.$ac_ext <<_ACEOF
16338/* end confdefs.h. */
16339$ac_includes_default
16340int
16341main ()
16342{
16343static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16344test_array [0] = 0
16345
16346 ;
16347 return 0;
16348}
16349_ACEOF
16350rm -f conftest.$ac_objext
16351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16352 (eval $ac_compile) 2>conftest.er1
a848cd7e 16353 ac_status=$?
ac1cb8d3
VS
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
a848cd7e
SC
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
c228d3a4
RN
16359 { ac_try='test -z "$ac_c_werror_flag"
16360 || test ! -s conftest.err'
ac1cb8d3
VS
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_hi=$ac_mid
16373else
16374 echo "$as_me: failed program was:" >&5
16375sed 's/^/| /' conftest.$ac_ext >&5
16376
16377ac_lo=`expr '(' $ac_mid ')' + 1`
16378fi
ac1cb8d3 16379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16380done
16381case $ac_lo in
16382?*) ac_cv_sizeof_long=$ac_lo;;
16383'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16384See \`config.log' for more details." >&5
16385echo "$as_me: error: cannot compute sizeof (long), 77
16386See \`config.log' for more details." >&2;}
16387 { (exit 1); exit 1; }; } ;;
16388esac
16389else
16390 if test "$cross_compiling" = yes; then
c228d3a4
RN
16391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16392See \`config.log' for more details." >&5
16393echo "$as_me: error: cannot run test program while cross compiling
16394See \`config.log' for more details." >&2;}
a848cd7e
SC
16395 { (exit 1); exit 1; }; }
16396else
16397 cat >conftest.$ac_ext <<_ACEOF
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
16403$ac_includes_default
16404long longval () { return (long) (sizeof (long)); }
16405unsigned long ulongval () { return (long) (sizeof (long)); }
16406#include <stdio.h>
16407#include <stdlib.h>
16408int
16409main ()
16410{
16411
16412 FILE *f = fopen ("conftest.val", "w");
16413 if (! f)
16414 exit (1);
16415 if (((long) (sizeof (long))) < 0)
16416 {
16417 long i = longval ();
16418 if (i != ((long) (sizeof (long))))
16419 exit (1);
16420 fprintf (f, "%ld\n", i);
16421 }
16422 else
16423 {
16424 unsigned long i = ulongval ();
16425 if (i != ((long) (sizeof (long))))
16426 exit (1);
16427 fprintf (f, "%lu\n", i);
16428 }
16429 exit (ferror (f) || fclose (f) != 0);
16430
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435rm -f conftest$ac_exeext
16436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_sizeof_long=`cat conftest.val`
16447else
16448 echo "$as_me: program exited with status $ac_status" >&5
16449echo "$as_me: failed program was:" >&5
16450sed 's/^/| /' conftest.$ac_ext >&5
16451
16452( exit $ac_status )
16453{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16454See \`config.log' for more details." >&5
16455echo "$as_me: error: cannot compute sizeof (long), 77
16456See \`config.log' for more details." >&2;}
16457 { (exit 1); exit 1; }; }
16458fi
ac1cb8d3 16459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16460fi
16461fi
16462rm -f conftest.val
16463else
16464 ac_cv_sizeof_long=0
16465fi
16466fi
16467echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16468echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16469cat >>confdefs.h <<_ACEOF
16470#define SIZEOF_LONG $ac_cv_sizeof_long
16471_ACEOF
16472
16473
16474echo "$as_me:$LINENO: checking for size_t" >&5
16475echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16476if test "${ac_cv_type_size_t+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478else
16479 cat >conftest.$ac_ext <<_ACEOF
16480/* confdefs.h. */
16481_ACEOF
16482cat confdefs.h >>conftest.$ac_ext
16483cat >>conftest.$ac_ext <<_ACEOF
16484/* end confdefs.h. */
16485$ac_includes_default
16486int
16487main ()
16488{
16489if ((size_t *) 0)
16490 return 0;
16491if (sizeof (size_t))
16492 return 0;
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16499 (eval $ac_compile) 2>conftest.er1
a848cd7e 16500 ac_status=$?
ac1cb8d3
VS
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
a848cd7e
SC
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
c228d3a4
RN
16506 { ac_try='test -z "$ac_c_werror_flag"
16507 || test ! -s conftest.err'
ac1cb8d3
VS
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } &&
16513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 ac_cv_type_size_t=yes
16520else
16521 echo "$as_me: failed program was:" >&5
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
16524ac_cv_type_size_t=no
16525fi
ac1cb8d3 16526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16527fi
16528echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16529echo "${ECHO_T}$ac_cv_type_size_t" >&6
16530
16531echo "$as_me:$LINENO: checking size of size_t" >&5
16532echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16533if test "${ac_cv_sizeof_size_t+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535else
16536 if test "$ac_cv_type_size_t" = yes; then
16537 # The cast to unsigned long works around a bug in the HP C Compiler
16538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16540 # This bug is HP SR number 8606223364.
16541 if test "$cross_compiling" = yes; then
16542 # Depending upon the size, compute the lo and hi bounds.
16543cat >conftest.$ac_ext <<_ACEOF
16544/* confdefs.h. */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h. */
16549$ac_includes_default
16550int
16551main ()
16552{
16553static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16554test_array [0] = 0
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560rm -f conftest.$ac_objext
16561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16562 (eval $ac_compile) 2>conftest.er1
a848cd7e 16563 ac_status=$?
ac1cb8d3
VS
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
a848cd7e
SC
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
c228d3a4
RN
16569 { ac_try='test -z "$ac_c_werror_flag"
16570 || test ! -s conftest.err'
ac1cb8d3
VS
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 ac_lo=0 ac_mid=0
16583 while :; do
16584 cat >conftest.$ac_ext <<_ACEOF
16585/* confdefs.h. */
16586_ACEOF
16587cat confdefs.h >>conftest.$ac_ext
16588cat >>conftest.$ac_ext <<_ACEOF
16589/* end confdefs.h. */
16590$ac_includes_default
16591int
16592main ()
16593{
16594static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16595test_array [0] = 0
16596
16597 ;
16598 return 0;
16599}
16600_ACEOF
16601rm -f conftest.$ac_objext
16602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16603 (eval $ac_compile) 2>conftest.er1
a848cd7e 16604 ac_status=$?
ac1cb8d3
VS
16605 grep -v '^ *+' conftest.er1 >conftest.err
16606 rm -f conftest.er1
16607 cat conftest.err >&5
a848cd7e
SC
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
c228d3a4
RN
16610 { ac_try='test -z "$ac_c_werror_flag"
16611 || test ! -s conftest.err'
ac1cb8d3
VS
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; } &&
16617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 ac_hi=$ac_mid; break
16624else
16625 echo "$as_me: failed program was:" >&5
16626sed 's/^/| /' conftest.$ac_ext >&5
16627
16628ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16629 if test $ac_lo -le $ac_mid; then
16630 ac_lo= ac_hi=
16631 break
16632 fi
16633 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16634fi
ac1cb8d3 16635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16636 done
16637else
16638 echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
16641cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647$ac_includes_default
16648int
16649main ()
16650{
16651static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16652test_array [0] = 0
16653
16654 ;
16655 return 0;
16656}
16657_ACEOF
16658rm -f conftest.$ac_objext
16659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16660 (eval $ac_compile) 2>conftest.er1
a848cd7e 16661 ac_status=$?
ac1cb8d3
VS
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
a848cd7e
SC
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
c228d3a4
RN
16667 { ac_try='test -z "$ac_c_werror_flag"
16668 || test ! -s conftest.err'
ac1cb8d3
VS
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_hi=-1 ac_mid=-1
16681 while :; do
16682 cat >conftest.$ac_ext <<_ACEOF
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
16688$ac_includes_default
16689int
16690main ()
16691{
16692static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16693test_array [0] = 0
16694
16695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext
16700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16701 (eval $ac_compile) 2>conftest.er1
a848cd7e 16702 ac_status=$?
ac1cb8d3
VS
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
a848cd7e
SC
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
c228d3a4
RN
16708 { ac_try='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
ac1cb8d3
VS
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_lo=$ac_mid; break
16722else
16723 echo "$as_me: failed program was:" >&5
16724sed 's/^/| /' conftest.$ac_ext >&5
16725
16726ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16727 if test $ac_mid -le $ac_hi; then
16728 ac_lo= ac_hi=
16729 break
16730 fi
16731 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16732fi
ac1cb8d3 16733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16734 done
16735else
16736 echo "$as_me: failed program was:" >&5
16737sed 's/^/| /' conftest.$ac_ext >&5
16738
16739ac_lo= ac_hi=
16740fi
ac1cb8d3 16741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16742fi
ac1cb8d3 16743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16744# Binary search between lo and hi bounds.
16745while test "x$ac_lo" != "x$ac_hi"; do
16746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16747 cat >conftest.$ac_ext <<_ACEOF
16748/* confdefs.h. */
16749_ACEOF
16750cat confdefs.h >>conftest.$ac_ext
16751cat >>conftest.$ac_ext <<_ACEOF
16752/* end confdefs.h. */
16753$ac_includes_default
16754int
16755main ()
16756{
16757static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16758test_array [0] = 0
16759
16760 ;
16761 return 0;
16762}
16763_ACEOF
16764rm -f conftest.$ac_objext
16765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16766 (eval $ac_compile) 2>conftest.er1
a848cd7e 16767 ac_status=$?
ac1cb8d3
VS
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
a848cd7e
SC
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
c228d3a4
RN
16773 { ac_try='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
ac1cb8d3
VS
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_hi=$ac_mid
16787else
16788 echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791ac_lo=`expr '(' $ac_mid ')' + 1`
16792fi
ac1cb8d3 16793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16794done
16795case $ac_lo in
16796?*) ac_cv_sizeof_size_t=$ac_lo;;
16797'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16798See \`config.log' for more details." >&5
16799echo "$as_me: error: cannot compute sizeof (size_t), 77
16800See \`config.log' for more details." >&2;}
16801 { (exit 1); exit 1; }; } ;;
16802esac
16803else
16804 if test "$cross_compiling" = yes; then
c228d3a4
RN
16805 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16806See \`config.log' for more details." >&5
16807echo "$as_me: error: cannot run test program while cross compiling
16808See \`config.log' for more details." >&2;}
a848cd7e
SC
16809 { (exit 1); exit 1; }; }
16810else
16811 cat >conftest.$ac_ext <<_ACEOF
16812/* confdefs.h. */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h. */
16817$ac_includes_default
16818long longval () { return (long) (sizeof (size_t)); }
16819unsigned long ulongval () { return (long) (sizeof (size_t)); }
16820#include <stdio.h>
16821#include <stdlib.h>
16822int
16823main ()
16824{
16825
16826 FILE *f = fopen ("conftest.val", "w");
16827 if (! f)
16828 exit (1);
16829 if (((long) (sizeof (size_t))) < 0)
16830 {
16831 long i = longval ();
16832 if (i != ((long) (sizeof (size_t))))
16833 exit (1);
16834 fprintf (f, "%ld\n", i);
16835 }
16836 else
16837 {
16838 unsigned long i = ulongval ();
16839 if (i != ((long) (sizeof (size_t))))
16840 exit (1);
16841 fprintf (f, "%lu\n", i);
16842 }
16843 exit (ferror (f) || fclose (f) != 0);
16844
16845 ;
16846 return 0;
16847}
16848_ACEOF
16849rm -f conftest$ac_exeext
16850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_sizeof_size_t=`cat conftest.val`
16861else
16862 echo "$as_me: program exited with status $ac_status" >&5
16863echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866( exit $ac_status )
16867{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16868See \`config.log' for more details." >&5
16869echo "$as_me: error: cannot compute sizeof (size_t), 77
16870See \`config.log' for more details." >&2;}
16871 { (exit 1); exit 1; }; }
16872fi
ac1cb8d3 16873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16874fi
16875fi
16876rm -f conftest.val
16877else
16878 ac_cv_sizeof_size_t=0
16879fi
16880fi
16881echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16882echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16883cat >>confdefs.h <<_ACEOF
16884#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16885_ACEOF
16886
16887
16888
16889case "${host}" in
16890 arm-*-linux* )
16891 echo "$as_me:$LINENO: checking for long long" >&5
16892echo $ECHO_N "checking for long long... $ECHO_C" >&6
16893if test "${ac_cv_type_long_long+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895else
16896 cat >conftest.$ac_ext <<_ACEOF
16897/* confdefs.h. */
16898_ACEOF
16899cat confdefs.h >>conftest.$ac_ext
16900cat >>conftest.$ac_ext <<_ACEOF
16901/* end confdefs.h. */
16902$ac_includes_default
16903int
16904main ()
16905{
16906if ((long long *) 0)
16907 return 0;
16908if (sizeof (long long))
16909 return 0;
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext
16915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16916 (eval $ac_compile) 2>conftest.er1
a848cd7e 16917 ac_status=$?
ac1cb8d3
VS
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
a848cd7e
SC
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
c228d3a4
RN
16923 { ac_try='test -z "$ac_c_werror_flag"
16924 || test ! -s conftest.err'
ac1cb8d3
VS
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 ac_cv_type_long_long=yes
16937else
16938 echo "$as_me: failed program was:" >&5
16939sed 's/^/| /' conftest.$ac_ext >&5
16940
16941ac_cv_type_long_long=no
16942fi
ac1cb8d3 16943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16944fi
16945echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16946echo "${ECHO_T}$ac_cv_type_long_long" >&6
16947
16948echo "$as_me:$LINENO: checking size of long long" >&5
16949echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16950if test "${ac_cv_sizeof_long_long+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952else
16953 if test "$ac_cv_type_long_long" = yes; then
16954 # The cast to unsigned long works around a bug in the HP C Compiler
16955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16957 # This bug is HP SR number 8606223364.
16958 if test "$cross_compiling" = yes; then
16959 # Depending upon the size, compute the lo and hi bounds.
16960cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966$ac_includes_default
16967int
16968main ()
16969{
16970static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16971test_array [0] = 0
16972
16973 ;
16974 return 0;
16975}
16976_ACEOF
16977rm -f conftest.$ac_objext
16978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16979 (eval $ac_compile) 2>conftest.er1
a848cd7e 16980 ac_status=$?
ac1cb8d3
VS
16981 grep -v '^ *+' conftest.er1 >conftest.err
16982 rm -f conftest.er1
16983 cat conftest.err >&5
a848cd7e
SC
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } &&
c228d3a4
RN
16986 { ac_try='test -z "$ac_c_werror_flag"
16987 || test ! -s conftest.err'
ac1cb8d3
VS
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_lo=0 ac_mid=0
17000 while :; do
17001 cat >conftest.$ac_ext <<_ACEOF
17002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
17007$ac_includes_default
17008int
17009main ()
17010{
17011static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17012test_array [0] = 0
17013
17014 ;
17015 return 0;
17016}
17017_ACEOF
17018rm -f conftest.$ac_objext
17019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17020 (eval $ac_compile) 2>conftest.er1
a848cd7e 17021 ac_status=$?
ac1cb8d3
VS
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
a848cd7e
SC
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
c228d3a4
RN
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
ac1cb8d3
VS
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_hi=$ac_mid; break
17041else
17042 echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17046 if test $ac_lo -le $ac_mid; then
17047 ac_lo= ac_hi=
17048 break
17049 fi
17050 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17051fi
ac1cb8d3 17052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17053 done
17054else
17055 echo "$as_me: failed program was:" >&5
17056sed 's/^/| /' conftest.$ac_ext >&5
17057
17058cat >conftest.$ac_ext <<_ACEOF
17059/* confdefs.h. */
17060_ACEOF
17061cat confdefs.h >>conftest.$ac_ext
17062cat >>conftest.$ac_ext <<_ACEOF
17063/* end confdefs.h. */
17064$ac_includes_default
17065int
17066main ()
17067{
17068static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17069test_array [0] = 0
17070
17071 ;
17072 return 0;
17073}
17074_ACEOF
17075rm -f conftest.$ac_objext
17076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17077 (eval $ac_compile) 2>conftest.er1
a848cd7e 17078 ac_status=$?
ac1cb8d3
VS
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
a848cd7e
SC
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
c228d3a4
RN
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
ac1cb8d3
VS
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_hi=-1 ac_mid=-1
17098 while :; do
17099 cat >conftest.$ac_ext <<_ACEOF
17100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h. */
17105$ac_includes_default
17106int
17107main ()
17108{
17109static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17110test_array [0] = 0
17111
17112 ;
17113 return 0;
17114}
17115_ACEOF
17116rm -f conftest.$ac_objext
17117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17118 (eval $ac_compile) 2>conftest.er1
a848cd7e 17119 ac_status=$?
ac1cb8d3
VS
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
a848cd7e
SC
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
c228d3a4
RN
17125 { ac_try='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
ac1cb8d3
VS
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_lo=$ac_mid; break
17139else
17140 echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17144 if test $ac_mid -le $ac_hi; then
17145 ac_lo= ac_hi=
17146 break
17147 fi
17148 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17149fi
ac1cb8d3 17150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17151 done
17152else
17153 echo "$as_me: failed program was:" >&5
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
17156ac_lo= ac_hi=
17157fi
ac1cb8d3 17158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17159fi
ac1cb8d3 17160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17161# Binary search between lo and hi bounds.
17162while test "x$ac_lo" != "x$ac_hi"; do
17163 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17164 cat >conftest.$ac_ext <<_ACEOF
17165/* confdefs.h. */
17166_ACEOF
17167cat confdefs.h >>conftest.$ac_ext
17168cat >>conftest.$ac_ext <<_ACEOF
17169/* end confdefs.h. */
17170$ac_includes_default
17171int
17172main ()
17173{
17174static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17175test_array [0] = 0
17176
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext
17182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17183 (eval $ac_compile) 2>conftest.er1
a848cd7e 17184 ac_status=$?
ac1cb8d3
VS
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
a848cd7e
SC
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
c228d3a4
RN
17190 { ac_try='test -z "$ac_c_werror_flag"
17191 || test ! -s conftest.err'
ac1cb8d3
VS
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_hi=$ac_mid
17204else
17205 echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208ac_lo=`expr '(' $ac_mid ')' + 1`
17209fi
ac1cb8d3 17210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17211done
17212case $ac_lo in
17213?*) ac_cv_sizeof_long_long=$ac_lo;;
17214'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17215See \`config.log' for more details." >&5
17216echo "$as_me: error: cannot compute sizeof (long long), 77
17217See \`config.log' for more details." >&2;}
17218 { (exit 1); exit 1; }; } ;;
17219esac
17220else
17221 if test "$cross_compiling" = yes; then
c228d3a4
RN
17222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17223See \`config.log' for more details." >&5
17224echo "$as_me: error: cannot run test program while cross compiling
17225See \`config.log' for more details." >&2;}
a848cd7e
SC
17226 { (exit 1); exit 1; }; }
17227else
17228 cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
17234$ac_includes_default
17235long longval () { return (long) (sizeof (long long)); }
17236unsigned long ulongval () { return (long) (sizeof (long long)); }
17237#include <stdio.h>
17238#include <stdlib.h>
17239int
17240main ()
17241{
17242
17243 FILE *f = fopen ("conftest.val", "w");
17244 if (! f)
17245 exit (1);
17246 if (((long) (sizeof (long long))) < 0)
17247 {
17248 long i = longval ();
17249 if (i != ((long) (sizeof (long long))))
17250 exit (1);
17251 fprintf (f, "%ld\n", i);
17252 }
17253 else
17254 {
17255 unsigned long i = ulongval ();
17256 if (i != ((long) (sizeof (long long))))
17257 exit (1);
17258 fprintf (f, "%lu\n", i);
17259 }
17260 exit (ferror (f) || fclose (f) != 0);
17261
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266rm -f conftest$ac_exeext
17267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_sizeof_long_long=`cat conftest.val`
17278else
17279 echo "$as_me: program exited with status $ac_status" >&5
17280echo "$as_me: failed program was:" >&5
17281sed 's/^/| /' conftest.$ac_ext >&5
17282
17283( exit $ac_status )
17284{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17285See \`config.log' for more details." >&5
17286echo "$as_me: error: cannot compute sizeof (long long), 77
17287See \`config.log' for more details." >&2;}
17288 { (exit 1); exit 1; }; }
17289fi
ac1cb8d3 17290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17291fi
17292fi
17293rm -f conftest.val
17294else
17295 ac_cv_sizeof_long_long=0
17296fi
17297fi
17298echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17299echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17300cat >>confdefs.h <<_ACEOF
17301#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17302_ACEOF
17303
17304
17305 ;;
17306 *-hp-hpux* )
17307 echo "$as_me:$LINENO: checking for long long" >&5
17308echo $ECHO_N "checking for long long... $ECHO_C" >&6
17309if test "${ac_cv_type_long_long+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311else
17312 cat >conftest.$ac_ext <<_ACEOF
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318$ac_includes_default
17319int
17320main ()
17321{
17322if ((long long *) 0)
17323 return 0;
17324if (sizeof (long long))
17325 return 0;
17326 ;
17327 return 0;
17328}
17329_ACEOF
17330rm -f conftest.$ac_objext
17331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17332 (eval $ac_compile) 2>conftest.er1
a848cd7e 17333 ac_status=$?
ac1cb8d3
VS
17334 grep -v '^ *+' conftest.er1 >conftest.err
17335 rm -f conftest.er1
17336 cat conftest.err >&5
a848cd7e
SC
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } &&
c228d3a4
RN
17339 { ac_try='test -z "$ac_c_werror_flag"
17340 || test ! -s conftest.err'
ac1cb8d3
VS
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 ac_cv_type_long_long=yes
17353else
17354 echo "$as_me: failed program was:" >&5
17355sed 's/^/| /' conftest.$ac_ext >&5
17356
17357ac_cv_type_long_long=no
17358fi
ac1cb8d3 17359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17360fi
17361echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17362echo "${ECHO_T}$ac_cv_type_long_long" >&6
17363
17364echo "$as_me:$LINENO: checking size of long long" >&5
17365echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17366if test "${ac_cv_sizeof_long_long+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17368else
17369 if test "$ac_cv_type_long_long" = yes; then
17370 # The cast to unsigned long works around a bug in the HP C Compiler
17371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17373 # This bug is HP SR number 8606223364.
17374 if test "$cross_compiling" = yes; then
17375 # Depending upon the size, compute the lo and hi bounds.
17376cat >conftest.$ac_ext <<_ACEOF
17377/* confdefs.h. */
17378_ACEOF
17379cat confdefs.h >>conftest.$ac_ext
17380cat >>conftest.$ac_ext <<_ACEOF
17381/* end confdefs.h. */
17382$ac_includes_default
17383int
17384main ()
17385{
17386static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17387test_array [0] = 0
17388
17389 ;
17390 return 0;
17391}
17392_ACEOF
17393rm -f conftest.$ac_objext
17394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17395 (eval $ac_compile) 2>conftest.er1
a848cd7e 17396 ac_status=$?
ac1cb8d3
VS
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
a848cd7e
SC
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } &&
c228d3a4
RN
17402 { ac_try='test -z "$ac_c_werror_flag"
17403 || test ! -s conftest.err'
ac1cb8d3
VS
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_lo=0 ac_mid=0
17416 while :; do
17417 cat >conftest.$ac_ext <<_ACEOF
17418/* confdefs.h. */
17419_ACEOF
17420cat confdefs.h >>conftest.$ac_ext
17421cat >>conftest.$ac_ext <<_ACEOF
17422/* end confdefs.h. */
17423$ac_includes_default
17424int
17425main ()
17426{
17427static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17428test_array [0] = 0
17429
17430 ;
17431 return 0;
17432}
17433_ACEOF
17434rm -f conftest.$ac_objext
17435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17436 (eval $ac_compile) 2>conftest.er1
a848cd7e 17437 ac_status=$?
ac1cb8d3
VS
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
a848cd7e
SC
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } &&
c228d3a4
RN
17443 { ac_try='test -z "$ac_c_werror_flag"
17444 || test ! -s conftest.err'
ac1cb8d3
VS
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; } &&
17450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_hi=$ac_mid; break
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17462 if test $ac_lo -le $ac_mid; then
17463 ac_lo= ac_hi=
17464 break
17465 fi
17466 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17467fi
ac1cb8d3 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17469 done
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474cat >conftest.$ac_ext <<_ACEOF
17475/* confdefs.h. */
17476_ACEOF
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
17480$ac_includes_default
17481int
17482main ()
17483{
17484static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17485test_array [0] = 0
17486
17487 ;
17488 return 0;
17489}
17490_ACEOF
17491rm -f conftest.$ac_objext
17492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17493 (eval $ac_compile) 2>conftest.er1
a848cd7e 17494 ac_status=$?
ac1cb8d3
VS
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
a848cd7e
SC
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
c228d3a4
RN
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
ac1cb8d3
VS
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_hi=-1 ac_mid=-1
17514 while :; do
17515 cat >conftest.$ac_ext <<_ACEOF
17516/* confdefs.h. */
17517_ACEOF
17518cat confdefs.h >>conftest.$ac_ext
17519cat >>conftest.$ac_ext <<_ACEOF
17520/* end confdefs.h. */
17521$ac_includes_default
17522int
17523main ()
17524{
17525static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17526test_array [0] = 0
17527
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext
17533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17534 (eval $ac_compile) 2>conftest.er1
a848cd7e 17535 ac_status=$?
ac1cb8d3
VS
17536 grep -v '^ *+' conftest.er1 >conftest.err
17537 rm -f conftest.er1
17538 cat conftest.err >&5
a848cd7e
SC
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
c228d3a4
RN
17541 { ac_try='test -z "$ac_c_werror_flag"
17542 || test ! -s conftest.err'
ac1cb8d3
VS
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; } &&
17548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 ac_lo=$ac_mid; break
17555else
17556 echo "$as_me: failed program was:" >&5
17557sed 's/^/| /' conftest.$ac_ext >&5
17558
17559ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17560 if test $ac_mid -le $ac_hi; then
17561 ac_lo= ac_hi=
17562 break
17563 fi
17564 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17565fi
ac1cb8d3 17566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17567 done
17568else
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
17572ac_lo= ac_hi=
17573fi
ac1cb8d3 17574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17575fi
ac1cb8d3 17576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17577# Binary search between lo and hi bounds.
17578while test "x$ac_lo" != "x$ac_hi"; do
17579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17580 cat >conftest.$ac_ext <<_ACEOF
17581/* confdefs.h. */
17582_ACEOF
17583cat confdefs.h >>conftest.$ac_ext
17584cat >>conftest.$ac_ext <<_ACEOF
17585/* end confdefs.h. */
17586$ac_includes_default
17587int
17588main ()
17589{
17590static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17591test_array [0] = 0
17592
17593 ;
17594 return 0;
17595}
17596_ACEOF
17597rm -f conftest.$ac_objext
17598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17599 (eval $ac_compile) 2>conftest.er1
a848cd7e 17600 ac_status=$?
ac1cb8d3
VS
17601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
a848cd7e
SC
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
c228d3a4
RN
17606 { ac_try='test -z "$ac_c_werror_flag"
17607 || test ! -s conftest.err'
ac1cb8d3
VS
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 ac_hi=$ac_mid
17620else
17621 echo "$as_me: failed program was:" >&5
17622sed 's/^/| /' conftest.$ac_ext >&5
17623
17624ac_lo=`expr '(' $ac_mid ')' + 1`
17625fi
ac1cb8d3 17626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17627done
17628case $ac_lo in
17629?*) ac_cv_sizeof_long_long=$ac_lo;;
17630'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17631See \`config.log' for more details." >&5
17632echo "$as_me: error: cannot compute sizeof (long long), 77
17633See \`config.log' for more details." >&2;}
17634 { (exit 1); exit 1; }; } ;;
17635esac
17636else
17637 if test "$cross_compiling" = yes; then
c228d3a4
RN
17638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17639See \`config.log' for more details." >&5
17640echo "$as_me: error: cannot run test program while cross compiling
17641See \`config.log' for more details." >&2;}
a848cd7e
SC
17642 { (exit 1); exit 1; }; }
17643else
17644 cat >conftest.$ac_ext <<_ACEOF
17645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
17650$ac_includes_default
17651long longval () { return (long) (sizeof (long long)); }
17652unsigned long ulongval () { return (long) (sizeof (long long)); }
17653#include <stdio.h>
17654#include <stdlib.h>
17655int
17656main ()
17657{
17658
17659 FILE *f = fopen ("conftest.val", "w");
17660 if (! f)
17661 exit (1);
17662 if (((long) (sizeof (long long))) < 0)
17663 {
17664 long i = longval ();
17665 if (i != ((long) (sizeof (long long))))
17666 exit (1);
17667 fprintf (f, "%ld\n", i);
17668 }
17669 else
17670 {
17671 unsigned long i = ulongval ();
17672 if (i != ((long) (sizeof (long long))))
17673 exit (1);
17674 fprintf (f, "%lu\n", i);
17675 }
17676 exit (ferror (f) || fclose (f) != 0);
17677
17678 ;
17679 return 0;
17680}
17681_ACEOF
17682rm -f conftest$ac_exeext
17683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_sizeof_long_long=`cat conftest.val`
17694else
17695 echo "$as_me: program exited with status $ac_status" >&5
17696echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
17699( exit $ac_status )
17700{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17701See \`config.log' for more details." >&5
17702echo "$as_me: error: cannot compute sizeof (long long), 77
17703See \`config.log' for more details." >&2;}
17704 { (exit 1); exit 1; }; }
17705fi
ac1cb8d3 17706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17707fi
17708fi
17709rm -f conftest.val
17710else
17711 ac_cv_sizeof_long_long=0
17712fi
17713fi
17714echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17715echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17716cat >>confdefs.h <<_ACEOF
17717#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17718_ACEOF
17719
17720
17721 if test "$ac_cv_sizeof_long_long" != "0"; then
17722 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17723 fi
17724 ;;
17725 * )
17726 echo "$as_me:$LINENO: checking for long long" >&5
17727echo $ECHO_N "checking for long long... $ECHO_C" >&6
17728if test "${ac_cv_type_long_long+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730else
17731 cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737$ac_includes_default
17738int
17739main ()
17740{
17741if ((long long *) 0)
17742 return 0;
17743if (sizeof (long long))
17744 return 0;
17745 ;
17746 return 0;
17747}
17748_ACEOF
17749rm -f conftest.$ac_objext
17750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17751 (eval $ac_compile) 2>conftest.er1
a848cd7e 17752 ac_status=$?
ac1cb8d3
VS
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
a848cd7e
SC
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
c228d3a4
RN
17758 { ac_try='test -z "$ac_c_werror_flag"
17759 || test ! -s conftest.err'
ac1cb8d3
VS
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_type_long_long=yes
17772else
17773 echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776ac_cv_type_long_long=no
17777fi
ac1cb8d3 17778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17779fi
17780echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17781echo "${ECHO_T}$ac_cv_type_long_long" >&6
17782
17783echo "$as_me:$LINENO: checking size of long long" >&5
17784echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17785if test "${ac_cv_sizeof_long_long+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17787else
17788 if test "$ac_cv_type_long_long" = yes; then
17789 # The cast to unsigned long works around a bug in the HP C Compiler
17790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17792 # This bug is HP SR number 8606223364.
17793 if test "$cross_compiling" = yes; then
17794 # Depending upon the size, compute the lo and hi bounds.
17795cat >conftest.$ac_ext <<_ACEOF
17796/* confdefs.h. */
17797_ACEOF
17798cat confdefs.h >>conftest.$ac_ext
17799cat >>conftest.$ac_ext <<_ACEOF
17800/* end confdefs.h. */
17801$ac_includes_default
17802int
17803main ()
17804{
17805static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17806test_array [0] = 0
17807
17808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext
17813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17814 (eval $ac_compile) 2>conftest.er1
a848cd7e 17815 ac_status=$?
ac1cb8d3
VS
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
a848cd7e
SC
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
c228d3a4
RN
17821 { ac_try='test -z "$ac_c_werror_flag"
17822 || test ! -s conftest.err'
ac1cb8d3
VS
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_lo=0 ac_mid=0
17835 while :; do
17836 cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842$ac_includes_default
17843int
17844main ()
17845{
17846static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17847test_array [0] = 0
17848
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext
17854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17855 (eval $ac_compile) 2>conftest.er1
a848cd7e 17856 ac_status=$?
ac1cb8d3
VS
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
a848cd7e
SC
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
c228d3a4
RN
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
ac1cb8d3
VS
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_hi=$ac_mid; break
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17881 if test $ac_lo -le $ac_mid; then
17882 ac_lo= ac_hi=
17883 break
17884 fi
17885 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17886fi
ac1cb8d3 17887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17888 done
17889else
17890 echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893cat >conftest.$ac_ext <<_ACEOF
17894/* confdefs.h. */
17895_ACEOF
17896cat confdefs.h >>conftest.$ac_ext
17897cat >>conftest.$ac_ext <<_ACEOF
17898/* end confdefs.h. */
17899$ac_includes_default
17900int
17901main ()
17902{
17903static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17904test_array [0] = 0
17905
17906 ;
17907 return 0;
17908}
17909_ACEOF
17910rm -f conftest.$ac_objext
17911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17912 (eval $ac_compile) 2>conftest.er1
a848cd7e 17913 ac_status=$?
ac1cb8d3
VS
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
a848cd7e
SC
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
c228d3a4
RN
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
ac1cb8d3
VS
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_hi=-1 ac_mid=-1
17933 while :; do
17934 cat >conftest.$ac_ext <<_ACEOF
17935/* confdefs.h. */
17936_ACEOF
17937cat confdefs.h >>conftest.$ac_ext
17938cat >>conftest.$ac_ext <<_ACEOF
17939/* end confdefs.h. */
17940$ac_includes_default
17941int
17942main ()
17943{
17944static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17945test_array [0] = 0
17946
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext
17952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17953 (eval $ac_compile) 2>conftest.er1
a848cd7e 17954 ac_status=$?
ac1cb8d3
VS
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
a848cd7e
SC
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
c228d3a4
RN
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
ac1cb8d3
VS
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_lo=$ac_mid; break
17974else
17975 echo "$as_me: failed program was:" >&5
17976sed 's/^/| /' conftest.$ac_ext >&5
17977
17978ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17979 if test $ac_mid -le $ac_hi; then
17980 ac_lo= ac_hi=
17981 break
17982 fi
17983 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17984fi
ac1cb8d3 17985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17986 done
17987else
17988 echo "$as_me: failed program was:" >&5
17989sed 's/^/| /' conftest.$ac_ext >&5
17990
17991ac_lo= ac_hi=
17992fi
ac1cb8d3 17993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17994fi
ac1cb8d3 17995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17996# Binary search between lo and hi bounds.
17997while test "x$ac_lo" != "x$ac_hi"; do
17998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17999 cat >conftest.$ac_ext <<_ACEOF
18000/* confdefs.h. */
18001_ACEOF
18002cat confdefs.h >>conftest.$ac_ext
18003cat >>conftest.$ac_ext <<_ACEOF
18004/* end confdefs.h. */
18005$ac_includes_default
18006int
18007main ()
18008{
18009static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18010test_array [0] = 0
18011
18012 ;
18013 return 0;
18014}
18015_ACEOF
18016rm -f conftest.$ac_objext
18017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18018 (eval $ac_compile) 2>conftest.er1
a848cd7e 18019 ac_status=$?
ac1cb8d3
VS
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
a848cd7e
SC
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
c228d3a4
RN
18025 { ac_try='test -z "$ac_c_werror_flag"
18026 || test ! -s conftest.err'
ac1cb8d3
VS
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 ac_hi=$ac_mid
18039else
18040 echo "$as_me: failed program was:" >&5
18041sed 's/^/| /' conftest.$ac_ext >&5
18042
18043ac_lo=`expr '(' $ac_mid ')' + 1`
18044fi
ac1cb8d3 18045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18046done
18047case $ac_lo in
18048?*) ac_cv_sizeof_long_long=$ac_lo;;
18049'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18050See \`config.log' for more details." >&5
18051echo "$as_me: error: cannot compute sizeof (long long), 77
18052See \`config.log' for more details." >&2;}
18053 { (exit 1); exit 1; }; } ;;
18054esac
18055else
18056 if test "$cross_compiling" = yes; then
c228d3a4
RN
18057 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18058See \`config.log' for more details." >&5
18059echo "$as_me: error: cannot run test program while cross compiling
18060See \`config.log' for more details." >&2;}
a848cd7e
SC
18061 { (exit 1); exit 1; }; }
18062else
18063 cat >conftest.$ac_ext <<_ACEOF
18064/* confdefs.h. */
18065_ACEOF
18066cat confdefs.h >>conftest.$ac_ext
18067cat >>conftest.$ac_ext <<_ACEOF
18068/* end confdefs.h. */
18069$ac_includes_default
18070long longval () { return (long) (sizeof (long long)); }
18071unsigned long ulongval () { return (long) (sizeof (long long)); }
18072#include <stdio.h>
18073#include <stdlib.h>
18074int
18075main ()
18076{
18077
18078 FILE *f = fopen ("conftest.val", "w");
18079 if (! f)
18080 exit (1);
18081 if (((long) (sizeof (long long))) < 0)
18082 {
18083 long i = longval ();
18084 if (i != ((long) (sizeof (long long))))
18085 exit (1);
18086 fprintf (f, "%ld\n", i);
18087 }
18088 else
18089 {
18090 unsigned long i = ulongval ();
18091 if (i != ((long) (sizeof (long long))))
18092 exit (1);
18093 fprintf (f, "%lu\n", i);
18094 }
18095 exit (ferror (f) || fclose (f) != 0);
18096
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest$ac_exeext
18102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18103 (eval $ac_link) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_sizeof_long_long=`cat conftest.val`
18113else
18114 echo "$as_me: program exited with status $ac_status" >&5
18115echo "$as_me: failed program was:" >&5
18116sed 's/^/| /' conftest.$ac_ext >&5
18117
18118( exit $ac_status )
18119{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18120See \`config.log' for more details." >&5
18121echo "$as_me: error: cannot compute sizeof (long long), 77
18122See \`config.log' for more details." >&2;}
18123 { (exit 1); exit 1; }; }
18124fi
ac1cb8d3 18125rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18126fi
18127fi
18128rm -f conftest.val
18129else
18130 ac_cv_sizeof_long_long=0
18131fi
18132fi
18133echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18134echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18135cat >>confdefs.h <<_ACEOF
18136#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18137_ACEOF
18138
18139
18140esac
18141
18142echo "$as_me:$LINENO: checking size of wchar_t" >&5
18143echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18144if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147
18148 if test "$cross_compiling" = yes; then
18149
18150 case "${host}" in
18151 *-pc-msdosdjgpp )
18152 wx_cv_sizeof_wchar_t=0
18153 ;;
18154 * )
18155 wx_cv_sizeof_wchar_t=4
18156 ;;
18157 esac
18158
18159
18160else
18161 cat >conftest.$ac_ext <<_ACEOF
18162/* confdefs.h. */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
18166/* end confdefs.h. */
18167
18168 /* DJGPP only has fake wchar_t: */
18169 #ifdef __DJGPP__
18170 # error "fake wchar_t"
18171 #endif
18172 #ifdef HAVE_WCHAR_H
18173 # ifdef __CYGWIN__
18174 # include <stddef.h>
18175 # endif
18176 # include <wchar.h>
18177 #endif
18178 #ifdef HAVE_STDLIB_H
18179 # include <stdlib.h>
18180 #endif
18181 #include <stdio.h>
18182 int main()
18183 {
18184 FILE *f=fopen("conftestval", "w");
18185 if (!f) exit(1);
18186 fprintf(f, "%i", sizeof(wchar_t));
18187 exit(0);
18188 }
18189
18190_ACEOF
18191rm -f conftest$ac_exeext
18192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18193 (eval $ac_link) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 wx_cv_sizeof_wchar_t=`cat conftestval`
18203else
18204 echo "$as_me: program exited with status $ac_status" >&5
18205echo "$as_me: failed program was:" >&5
18206sed 's/^/| /' conftest.$ac_ext >&5
18207
18208( exit $ac_status )
18209wx_cv_sizeof_wchar_t=0
18210fi
ac1cb8d3 18211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18212fi
18213
18214fi
18215echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18216echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18217
18218cat >>confdefs.h <<_ACEOF
18219#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18220_ACEOF
18221
18222
ba3d13e1
VZ
18223echo "$as_me:$LINENO: checking for va_copy" >&5
18224echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18225if test "${wx_cv_func_va_copy+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18227else
18228
18229 cat >conftest.$ac_ext <<_ACEOF
18230
18231 #include <stdarg.h>
18232 void foo(char *f, ...)
18233 {
18234 va_list ap1, ap2;
18235 va_start(ap1, f);
18236 va_copy(ap2, ap1);
18237 va_end(ap2);
18238 va_end(ap1);
18239 }
18240_ACEOF
18241rm -f conftest.$ac_objext conftest$ac_exeext
18242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18243 (eval $ac_link) 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
c228d3a4
RN
18250 { ac_try='test -z "$ac_c_werror_flag"
18251 || test ! -s conftest.err'
ba3d13e1
VZ
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest$ac_exeext'
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 wx_cv_func_va_copy=yes
18264else
18265 echo "$as_me: failed program was:" >&5
18266sed 's/^/| /' conftest.$ac_ext >&5
18267
18268wx_cv_func_va_copy=no
18269
18270fi
18271rm -f conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18273
18274
18275fi
18276echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18277echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18278
18279if test $wx_cv_func_va_copy = "yes"; then
18280 cat >>confdefs.h <<\_ACEOF
18281#define HAVE_VA_COPY 1
18282_ACEOF
18283
18284else
18285 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18286echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18287if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289else
18290
18291 if test "$cross_compiling" = yes; then
18292 wx_cv_type_va_list_lvalue=yes
18293
18294else
18295 cat >conftest.$ac_ext <<_ACEOF
18296
18297 #include <stdarg.h>
18298 int foo(char *f, ...)
18299 {
18300 va_list ap1, ap2;
18301 va_start(ap1, f);
18302 ap2 = ap1;
18303 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18304 return 1;
18305 va_end(ap2);
18306 va_end(ap1);
18307 return 0;
18308 }
18309 int main()
18310 {
18311 return foo("hi", 17);
18312 }
18313_ACEOF
18314rm -f conftest$ac_exeext
18315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 wx_cv_type_va_list_lvalue=yes
18326else
18327 echo "$as_me: program exited with status $ac_status" >&5
18328echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331( exit $ac_status )
18332wx_cv_type_va_list_lvalue=no
18333fi
18334rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18335fi
18336
18337
18338fi
18339echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18340echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18341
18342 if test $wx_cv_type_va_list_lvalue != "yes"; then
18343 cat >>confdefs.h <<\_ACEOF
18344#define VA_LIST_IS_ARRAY 1
18345_ACEOF
18346
18347 fi
18348fi
18349
a848cd7e
SC
18350# Check whether --enable-largefile or --disable-largefile was given.
18351if test "${enable_largefile+set}" = set; then
18352 enableval="$enable_largefile"
18353
18354fi;
18355if test "$enable_largefile" != no; then
18356 wx_largefile=no
18357
18358 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18359echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18360if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362else
18363
18364 cat >conftest.$ac_ext <<_ACEOF
18365/* confdefs.h. */
18366_ACEOF
18367cat confdefs.h >>conftest.$ac_ext
18368cat >>conftest.$ac_ext <<_ACEOF
18369/* end confdefs.h. */
18370#define _FILE_OFFSET_BITS 64
18371 #include <sys/types.h>
18372int
18373main ()
18374{
18375typedef struct {
18376 unsigned int field: sizeof(off_t) == 8;
18377} wxlf;
18378
18379 ;
18380 return 0;
18381}
18382_ACEOF
18383rm -f conftest.$ac_objext
18384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18385 (eval $ac_compile) 2>conftest.er1
a848cd7e 18386 ac_status=$?
ac1cb8d3
VS
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
a848cd7e
SC
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
c228d3a4
RN
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
ac1cb8d3
VS
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_cv_sys_file_offset_bits=64
18406else
18407 echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
18410ac_cv_sys_file_offset_bits=no
18411fi
ac1cb8d3 18412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18413
18414
18415fi
18416echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18417echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18418
18419 if test "$ac_cv_sys_file_offset_bits" != no; then
18420 wx_largefile=yes
18421 cat >>confdefs.h <<_ACEOF
18422#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18423_ACEOF
18424
18425 fi
18426
18427 if test "x$wx_largefile" != "xyes"; then
18428
18429 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18430echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18431if test "${ac_cv_sys_large_files+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433else
18434
18435 cat >conftest.$ac_ext <<_ACEOF
18436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
18441#define _LARGE_FILES 1
18442 #include <sys/types.h>
18443int
18444main ()
18445{
18446typedef struct {
18447 unsigned int field: sizeof(off_t) == 8;
18448} wxlf;
18449
18450 ;
18451 return 0;
18452}
18453_ACEOF
18454rm -f conftest.$ac_objext
18455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18456 (eval $ac_compile) 2>conftest.er1
a848cd7e 18457 ac_status=$?
ac1cb8d3
VS
18458 grep -v '^ *+' conftest.er1 >conftest.err
18459 rm -f conftest.er1
18460 cat conftest.err >&5
a848cd7e
SC
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
c228d3a4
RN
18463 { ac_try='test -z "$ac_c_werror_flag"
18464 || test ! -s conftest.err'
ac1cb8d3
VS
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_sys_large_files=1
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481ac_cv_sys_large_files=no
18482fi
ac1cb8d3 18483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484
18485
18486fi
18487echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18488echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18489
18490 if test "$ac_cv_sys_large_files" != no; then
18491 wx_largefile=yes
18492 cat >>confdefs.h <<_ACEOF
18493#define _LARGE_FILES $ac_cv_sys_large_files
18494_ACEOF
18495
18496 fi
18497
18498 fi
18499
18500 echo "$as_me:$LINENO: checking if large file support is available" >&5
18501echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18502 if test "x$wx_largefile" = "xyes"; then
18503 cat >>confdefs.h <<\_ACEOF
18504#define HAVE_LARGEFILE_SUPPORT 1
18505_ACEOF
18506
18507 fi
18508 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18509echo "${ECHO_T}$wx_largefile" >&6
18510fi
18511
18512
18513if test "x$wx_largefile" = "xyes"; then
18514 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18515 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18516 else
18517 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18518 fi
18519 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18520fi
18521
18522echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18523echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18524if test "${ac_cv_c_bigendian+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526else
18527 ac_cv_c_bigendian=unknown
18528# See if sys/param.h defines the BYTE_ORDER macro.
18529cat >conftest.$ac_ext <<_ACEOF
18530/* confdefs.h. */
18531_ACEOF
18532cat confdefs.h >>conftest.$ac_ext
18533cat >>conftest.$ac_ext <<_ACEOF
18534/* end confdefs.h. */
18535#include <sys/types.h>
18536#include <sys/param.h>
18537int
18538main ()
18539{
18540
18541#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18542 bogus endian macros
18543#endif
18544 ;
18545 return 0;
18546}
18547_ACEOF
18548rm -f conftest.$ac_objext
18549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18550 (eval $ac_compile) 2>conftest.er1
a848cd7e 18551 ac_status=$?
ac1cb8d3
VS
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
a848cd7e
SC
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
c228d3a4
RN
18557 { ac_try='test -z "$ac_c_werror_flag"
18558 || test ! -s conftest.err'
ac1cb8d3
VS
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 # It does; now see whether it defined to BIG_ENDIAN or not.
18571cat >conftest.$ac_ext <<_ACEOF
18572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
18577#include <sys/types.h>
18578#include <sys/param.h>
18579int
18580main ()
18581{
18582
18583#if BYTE_ORDER != BIG_ENDIAN
18584 not big endian
18585#endif
18586 ;
18587 return 0;
18588}
18589_ACEOF
18590rm -f conftest.$ac_objext
18591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18592 (eval $ac_compile) 2>conftest.er1
a848cd7e 18593 ac_status=$?
ac1cb8d3
VS
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
a848cd7e
SC
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
c228d3a4
RN
18599 { ac_try='test -z "$ac_c_werror_flag"
18600 || test ! -s conftest.err'
ac1cb8d3
VS
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } &&
18606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 ac_cv_c_bigendian=yes
18613else
18614 echo "$as_me: failed program was:" >&5
18615sed 's/^/| /' conftest.$ac_ext >&5
18616
18617ac_cv_c_bigendian=no
18618fi
ac1cb8d3 18619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18620else
18621 echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624fi
ac1cb8d3 18625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18626if test $ac_cv_c_bigendian = unknown; then
18627if test "$cross_compiling" = yes; then
18628 ac_cv_c_bigendian=unknown
18629else
18630 cat >conftest.$ac_ext <<_ACEOF
18631/* confdefs.h. */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
18635/* end confdefs.h. */
18636main () {
18637 /* Are we little or big endian? From Harbison&Steele. */
18638 union
18639 {
18640 long l;
18641 char c[sizeof (long)];
18642 } u;
18643 u.l = 1;
18644 exit (u.c[sizeof (long) - 1] == 1);
18645}
18646_ACEOF
18647rm -f conftest$ac_exeext
18648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18649 (eval $ac_link) 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 ac_cv_c_bigendian=no
18659else
18660 echo "$as_me: program exited with status $ac_status" >&5
18661echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664( exit $ac_status )
18665ac_cv_c_bigendian=yes
18666fi
ac1cb8d3 18667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18668fi
18669fi
18670fi
18671echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18672echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18673if test $ac_cv_c_bigendian = unknown; then
18674 { 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
18675echo "$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;}
18676fi
18677if test $ac_cv_c_bigendian = yes; then
18678 cat >>confdefs.h <<\_ACEOF
18679#define WORDS_BIGENDIAN 1
18680_ACEOF
18681
18682fi
18683
18684
18685ac_ext=cc
18686ac_cpp='$CXXCPP $CPPFLAGS'
18687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18690echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18691echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18692if test -z "$CXXCPP"; then
18693 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695else
18696 # Double quotes because CXXCPP needs to be expanded
18697 for CXXCPP in "$CXX -E" "/lib/cpp"
18698 do
18699 ac_preproc_ok=false
18700for ac_cxx_preproc_warn_flag in '' yes
18701do
18702 # Use a header file that comes with gcc, so configuring glibc
18703 # with a fresh cross-compiler works.
18704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 # <limits.h> exists even on freestanding compilers.
18706 # On the NeXT, cc -E runs the code through the compiler's parser,
18707 # not just through cpp. "Syntax error" is here to catch this case.
18708 cat >conftest.$ac_ext <<_ACEOF
18709/* confdefs.h. */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h. */
18714#ifdef __STDC__
18715# include <limits.h>
18716#else
18717# include <assert.h>
18718#endif
ac1cb8d3 18719 Syntax error
a848cd7e
SC
18720_ACEOF
18721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } >/dev/null; then
18729 if test -s conftest.err; then
18730 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18732 else
18733 ac_cpp_err=
18734 fi
18735else
18736 ac_cpp_err=yes
18737fi
18738if test -z "$ac_cpp_err"; then
18739 :
18740else
18741 echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 # Broken: fails on valid input.
18745continue
18746fi
18747rm -f conftest.err conftest.$ac_ext
18748
18749 # OK, works on sane cases. Now check whether non-existent headers
18750 # can be detected and how.
18751 cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
18757#include <ac_nonexistent.h>
18758_ACEOF
18759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18761 ac_status=$?
18762 grep -v '^ *+' conftest.er1 >conftest.err
18763 rm -f conftest.er1
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } >/dev/null; then
18767 if test -s conftest.err; then
18768 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18769 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18770 else
18771 ac_cpp_err=
18772 fi
18773else
18774 ac_cpp_err=yes
18775fi
18776if test -z "$ac_cpp_err"; then
18777 # Broken: success on invalid input.
18778continue
18779else
18780 echo "$as_me: failed program was:" >&5
18781sed 's/^/| /' conftest.$ac_ext >&5
18782
18783 # Passes both tests.
18784ac_preproc_ok=:
18785break
18786fi
18787rm -f conftest.err conftest.$ac_ext
18788
18789done
18790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18791rm -f conftest.err conftest.$ac_ext
18792if $ac_preproc_ok; then
18793 break
18794fi
18795
18796 done
18797 ac_cv_prog_CXXCPP=$CXXCPP
18798
18799fi
18800 CXXCPP=$ac_cv_prog_CXXCPP
18801else
18802 ac_cv_prog_CXXCPP=$CXXCPP
18803fi
18804echo "$as_me:$LINENO: result: $CXXCPP" >&5
18805echo "${ECHO_T}$CXXCPP" >&6
18806ac_preproc_ok=false
18807for ac_cxx_preproc_warn_flag in '' yes
18808do
18809 # Use a header file that comes with gcc, so configuring glibc
18810 # with a fresh cross-compiler works.
18811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18812 # <limits.h> exists even on freestanding compilers.
18813 # On the NeXT, cc -E runs the code through the compiler's parser,
18814 # not just through cpp. "Syntax error" is here to catch this case.
18815 cat >conftest.$ac_ext <<_ACEOF
18816/* confdefs.h. */
18817_ACEOF
18818cat confdefs.h >>conftest.$ac_ext
18819cat >>conftest.$ac_ext <<_ACEOF
18820/* end confdefs.h. */
18821#ifdef __STDC__
18822# include <limits.h>
18823#else
18824# include <assert.h>
18825#endif
ac1cb8d3 18826 Syntax error
a848cd7e
SC
18827_ACEOF
18828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } >/dev/null; then
18836 if test -s conftest.err; then
18837 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18838 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18839 else
18840 ac_cpp_err=
18841 fi
18842else
18843 ac_cpp_err=yes
18844fi
18845if test -z "$ac_cpp_err"; then
18846 :
18847else
18848 echo "$as_me: failed program was:" >&5
18849sed 's/^/| /' conftest.$ac_ext >&5
18850
18851 # Broken: fails on valid input.
18852continue
18853fi
18854rm -f conftest.err conftest.$ac_ext
18855
18856 # OK, works on sane cases. Now check whether non-existent headers
18857 # can be detected and how.
18858 cat >conftest.$ac_ext <<_ACEOF
18859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
18864#include <ac_nonexistent.h>
18865_ACEOF
18866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18868 ac_status=$?
18869 grep -v '^ *+' conftest.er1 >conftest.err
18870 rm -f conftest.er1
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } >/dev/null; then
18874 if test -s conftest.err; then
18875 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18877 else
18878 ac_cpp_err=
18879 fi
18880else
18881 ac_cpp_err=yes
18882fi
18883if test -z "$ac_cpp_err"; then
18884 # Broken: success on invalid input.
18885continue
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890 # Passes both tests.
18891ac_preproc_ok=:
18892break
18893fi
18894rm -f conftest.err conftest.$ac_ext
18895
18896done
18897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18898rm -f conftest.err conftest.$ac_ext
18899if $ac_preproc_ok; then
18900 :
18901else
18902 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18903See \`config.log' for more details." >&5
18904echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18905See \`config.log' for more details." >&2;}
18906 { (exit 1); exit 1; }; }
18907fi
18908
18909ac_ext=cc
18910ac_cpp='$CXXCPP $CPPFLAGS'
18911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18914
18915
18916
18917
18918
18919 ac_ext=cc
18920ac_cpp='$CXXCPP $CPPFLAGS'
18921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18924
18925
18926
18927for ac_header in iostream
18928do
18929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930if eval "test \"\${$as_ac_Header+set}\" = set"; then
18931 echo "$as_me:$LINENO: checking for $ac_header" >&5
18932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18933if eval "test \"\${$as_ac_Header+set}\" = set"; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18935fi
18936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18938else
18939 # Is the header compilable?
18940echo "$as_me:$LINENO: checking $ac_header usability" >&5
18941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18942cat >conftest.$ac_ext <<_ACEOF
18943/* confdefs.h. */
18944_ACEOF
18945cat confdefs.h >>conftest.$ac_ext
18946cat >>conftest.$ac_ext <<_ACEOF
18947/* end confdefs.h. */
18948$ac_includes_default
18949#include <$ac_header>
18950_ACEOF
18951rm -f conftest.$ac_objext
18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18953 (eval $ac_compile) 2>conftest.er1
a848cd7e 18954 ac_status=$?
ac1cb8d3
VS
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
a848cd7e
SC
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
c228d3a4
RN
18960 { ac_try='test -z "$ac_cxx_werror_flag"
18961 || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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 ac_header_compiler=yes
18974else
18975 echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978ac_header_compiler=no
18979fi
ac1cb8d3 18980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18982echo "${ECHO_T}$ac_header_compiler" >&6
18983
18984# Is the header present?
18985echo "$as_me:$LINENO: checking $ac_header presence" >&5
18986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18987cat >conftest.$ac_ext <<_ACEOF
18988/* confdefs.h. */
18989_ACEOF
18990cat confdefs.h >>conftest.$ac_ext
18991cat >>conftest.$ac_ext <<_ACEOF
18992/* end confdefs.h. */
18993#include <$ac_header>
18994_ACEOF
18995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } >/dev/null; then
19003 if test -s conftest.err; then
19004 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19005 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19006 else
19007 ac_cpp_err=
19008 fi
19009else
19010 ac_cpp_err=yes
19011fi
19012if test -z "$ac_cpp_err"; then
19013 ac_header_preproc=yes
19014else
19015 echo "$as_me: failed program was:" >&5
19016sed 's/^/| /' conftest.$ac_ext >&5
19017
19018 ac_header_preproc=no
19019fi
19020rm -f conftest.err conftest.$ac_ext
19021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19022echo "${ECHO_T}$ac_header_preproc" >&6
19023
19024# So? What about this header?
ac1cb8d3
VS
19025case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19026 yes:no: )
a848cd7e
SC
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19031 ac_header_preproc=yes
a848cd7e 19032 ;;
ac1cb8d3 19033 no:yes:* )
a848cd7e
SC
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19046 (
19047 cat <<\_ASBOX
ac1cb8d3
VS
19048## ----------------------------------------- ##
19049## Report this to wx-dev@lists.wxwidgets.org ##
19050## ----------------------------------------- ##
a848cd7e
SC
19051_ASBOX
19052 ) |
19053 sed "s/^/$as_me: WARNING: /" >&2
19054 ;;
19055esac
19056echo "$as_me:$LINENO: checking for $ac_header" >&5
19057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
ac1cb8d3 19061 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19062fi
19063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19065
19066fi
19067if test `eval echo '${'$as_ac_Header'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19070_ACEOF
19071
19072fi
19073
19074done
19075
19076
19077 if test "$ac_cv_header_iostream" = "yes" ; then
19078 :
19079 else
19080 cat >>confdefs.h <<\_ACEOF
19081#define wxUSE_IOSTREAMH 1
19082_ACEOF
19083
19084 fi
19085
19086 ac_ext=c
19087ac_cpp='$CPP $CPPFLAGS'
19088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090ac_compiler_gnu=$ac_cv_c_compiler_gnu
19091
19092
19093
19094
19095 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19096echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19097if test "${wx_cv_cpp_bool+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100
19101
19102
19103 ac_ext=cc
19104ac_cpp='$CXXCPP $CPPFLAGS'
19105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19108
19109
19110 cat >conftest.$ac_ext <<_ACEOF
19111/* confdefs.h. */
19112_ACEOF
19113cat confdefs.h >>conftest.$ac_ext
19114cat >>conftest.$ac_ext <<_ACEOF
19115/* end confdefs.h. */
19116
19117
19118int
19119main ()
19120{
19121
19122 bool b = true;
19123
19124 return 0;
19125
19126 ;
19127 return 0;
19128}
19129_ACEOF
19130rm -f conftest.$ac_objext
19131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19132 (eval $ac_compile) 2>conftest.er1
a848cd7e 19133 ac_status=$?
ac1cb8d3
VS
19134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
a848cd7e
SC
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
c228d3a4
RN
19139 { ac_try='test -z "$ac_cxx_werror_flag"
19140 || test ! -s conftest.err'
ac1cb8d3
VS
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19152
19153 wx_cv_cpp_bool=yes
19154
19155else
19156 echo "$as_me: failed program was:" >&5
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
19159
19160 wx_cv_cpp_bool=no
19161
19162
19163fi
ac1cb8d3 19164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19165
19166 ac_ext=c
19167ac_cpp='$CPP $CPPFLAGS'
19168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19170ac_compiler_gnu=$ac_cv_c_compiler_gnu
19171
19172
19173fi
19174echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19175echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19176
19177 if test "$wx_cv_cpp_bool" = "yes"; then
19178 cat >>confdefs.h <<\_ACEOF
19179#define HAVE_BOOL 1
19180_ACEOF
19181
19182 fi
19183
19184
19185
19186 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19187echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19188if test "${wx_cv_explicit+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190else
19191
19192
19193
19194 ac_ext=cc
19195ac_cpp='$CXXCPP $CPPFLAGS'
19196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19199
19200
19201 cat >conftest.$ac_ext <<_ACEOF
19202/* confdefs.h. */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h. */
19207
19208 class Foo { public: explicit Foo(int) {} };
19209
19210int
19211main ()
19212{
19213
19214 return 0;
19215
19216 ;
19217 return 0;
19218}
19219_ACEOF
19220rm -f conftest.$ac_objext
19221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19222 (eval $ac_compile) 2>conftest.er1
a848cd7e 19223 ac_status=$?
ac1cb8d3
VS
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
a848cd7e
SC
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
c228d3a4
RN
19229 { ac_try='test -z "$ac_cxx_werror_flag"
19230 || test ! -s conftest.err'
ac1cb8d3
VS
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242
19243 cat >conftest.$ac_ext <<_ACEOF
19244/* confdefs.h. */
19245_ACEOF
19246cat confdefs.h >>conftest.$ac_ext
19247cat >>conftest.$ac_ext <<_ACEOF
19248/* end confdefs.h. */
19249
19250 class Foo { public: explicit Foo(int) {} };
19251 static void TakeFoo(const Foo& foo) { }
19252
19253int
19254main ()
19255{
19256
19257 TakeFoo(17);
19258 return 0;
19259
19260 ;
19261 return 0;
19262}
19263_ACEOF
19264rm -f conftest.$ac_objext
19265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19266 (eval $ac_compile) 2>conftest.er1
a848cd7e 19267 ac_status=$?
ac1cb8d3
VS
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
a848cd7e
SC
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
c228d3a4
RN
19273 { ac_try='test -z "$ac_cxx_werror_flag"
19274 || test ! -s conftest.err'
ac1cb8d3
VS
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 wx_cv_explicit=no
19287else
19288 echo "$as_me: failed program was:" >&5
19289sed 's/^/| /' conftest.$ac_ext >&5
19290
19291wx_cv_explicit=yes
19292
19293fi
ac1cb8d3 19294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19295
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300wx_cv_explicit=no
19301
19302fi
ac1cb8d3 19303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19304
19305 ac_ext=c
19306ac_cpp='$CPP $CPPFLAGS'
19307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309ac_compiler_gnu=$ac_cv_c_compiler_gnu
19310
19311
19312fi
19313echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19314echo "${ECHO_T}$wx_cv_explicit" >&6
19315
19316 if test "$wx_cv_explicit" = "yes"; then
19317 cat >>confdefs.h <<\_ACEOF
19318#define HAVE_EXPLICIT 1
19319_ACEOF
19320
19321 fi
19322
19323
19324echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19325echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19326if test "${ac_cv_cxx_const_cast+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328else
19329
19330
19331 ac_ext=cc
19332ac_cpp='$CXXCPP $CPPFLAGS'
19333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19336
19337 cat >conftest.$ac_ext <<_ACEOF
19338/* confdefs.h. */
19339_ACEOF
19340cat confdefs.h >>conftest.$ac_ext
19341cat >>conftest.$ac_ext <<_ACEOF
19342/* end confdefs.h. */
19343
19344int
19345main ()
19346{
19347int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19354 (eval $ac_compile) 2>conftest.er1
a848cd7e 19355 ac_status=$?
ac1cb8d3
VS
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
a848cd7e
SC
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
c228d3a4
RN
19361 { ac_try='test -z "$ac_cxx_werror_flag"
19362 || test ! -s conftest.err'
ac1cb8d3
VS
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_cxx_const_cast=yes
19375else
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379ac_cv_cxx_const_cast=no
19380fi
ac1cb8d3 19381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19382 ac_ext=c
19383ac_cpp='$CPP $CPPFLAGS'
19384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19386ac_compiler_gnu=$ac_cv_c_compiler_gnu
19387
19388
19389fi
19390echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19391echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19392if test "$ac_cv_cxx_const_cast" = yes; then
19393
19394cat >>confdefs.h <<\_ACEOF
19395#define HAVE_CONST_CAST
19396_ACEOF
19397
19398fi
19399
7714864e
RL
19400echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19401echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19402if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404else
19405
19406
19407 ac_ext=cc
19408ac_cpp='$CXXCPP $CPPFLAGS'
19409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19412
19413 cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419#include <typeinfo>
19420class Base { public : Base () {} virtual void f () = 0;};
19421class Derived : public Base { public : Derived () {} virtual void f () {} };
19422class Unrelated { public : Unrelated () {} };
19423int g (Unrelated&) { return 0; }
19424int
19425main ()
19426{
19427
19428Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19429 ;
19430 return 0;
19431}
19432_ACEOF
19433rm -f conftest.$ac_objext
19434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19435 (eval $ac_compile) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
c228d3a4
RN
19442 { ac_try='test -z "$ac_cxx_werror_flag"
19443 || test ! -s conftest.err'
7714864e
RL
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest.$ac_objext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 ac_cv_cxx_reinterpret_cast=yes
19456else
19457 echo "$as_me: failed program was:" >&5
19458sed 's/^/| /' conftest.$ac_ext >&5
19459
19460ac_cv_cxx_reinterpret_cast=no
19461fi
19462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19463 ac_ext=c
19464ac_cpp='$CPP $CPPFLAGS'
19465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19467ac_compiler_gnu=$ac_cv_c_compiler_gnu
19468
19469
19470fi
19471echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19472echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19473if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19474
19475cat >>confdefs.h <<\_ACEOF
19476#define HAVE_REINTERPRET_CAST
19477_ACEOF
19478
19479fi
19480
a848cd7e
SC
19481echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19482echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19483if test "${ac_cv_cxx_static_cast+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485else
19486
19487
19488 ac_ext=cc
19489ac_cpp='$CXXCPP $CPPFLAGS'
19490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19493
19494 cat >conftest.$ac_ext <<_ACEOF
19495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h. */
19500#include <typeinfo>
19501class Base { public : Base () {} virtual void f () = 0; };
19502class Derived : public Base { public : Derived () {} virtual void f () {} };
19503int g (Derived&) { return 0; }
19504int
19505main ()
19506{
19507
19508Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19509 ;
19510 return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext
19514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19515 (eval $ac_compile) 2>conftest.er1
a848cd7e 19516 ac_status=$?
ac1cb8d3
VS
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
a848cd7e
SC
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
c228d3a4
RN
19522 { ac_try='test -z "$ac_cxx_werror_flag"
19523 || test ! -s conftest.err'
ac1cb8d3
VS
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_cxx_static_cast=yes
19536else
19537 echo "$as_me: failed program was:" >&5
19538sed 's/^/| /' conftest.$ac_ext >&5
19539
19540ac_cv_cxx_static_cast=no
19541fi
ac1cb8d3 19542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19543 ac_ext=c
19544ac_cpp='$CPP $CPPFLAGS'
19545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547ac_compiler_gnu=$ac_cv_c_compiler_gnu
19548
19549
19550fi
19551echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19552echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19553if test "$ac_cv_cxx_static_cast" = yes; then
19554
19555cat >>confdefs.h <<\_ACEOF
19556#define HAVE_STATIC_CAST
19557_ACEOF
19558
19559fi
19560
19561
19562if test "$wxUSE_STL" = "yes"; then
19563 ac_ext=cc
19564ac_cpp='$CXXCPP $CPPFLAGS'
19565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19568
19569
19570 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19571echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h. */
19578#include <string>
19579 #include <functional>
19580 #include <algorithm>
19581 #include <vector>
19582 #include <list>
19583int
19584main ()
19585{
19586std::vector<int> moo;
19587 std::list<int> foo;
19588 std::vector<int>::iterator it =
19589 std::find_if(moo.begin(), moo.end(),
19590 std::bind2nd(std::less<int>(), 3));
19591 ;
19592 return 0;
19593}
19594_ACEOF
19595rm -f conftest.$ac_objext
19596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19597 (eval $ac_compile) 2>conftest.er1
a848cd7e 19598 ac_status=$?
ac1cb8d3
VS
19599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
a848cd7e
SC
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
c228d3a4
RN
19604 { ac_try='test -z "$ac_cxx_werror_flag"
19605 || test ! -s conftest.err'
ac1cb8d3
VS
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 echo "$as_me:$LINENO: result: yes" >&5
19618echo "${ECHO_T}yes" >&6
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623echo "$as_me:$LINENO: result: no" >&5
19624echo "${ECHO_T}no" >&6
19625 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19626echo "$as_me: error: Basic STL functionality missing" >&2;}
19627 { (exit 1); exit 1; }; }
19628fi
ac1cb8d3 19629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19630
19631 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19632echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19633 cat >conftest.$ac_ext <<_ACEOF
19634/* confdefs.h. */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h. */
19639#include <string>
19640int
19641main ()
19642{
19643std::wstring foo;
19644 ;
19645 return 0;
19646}
19647_ACEOF
19648rm -f conftest.$ac_objext
19649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19650 (eval $ac_compile) 2>conftest.er1
a848cd7e 19651 ac_status=$?
ac1cb8d3
VS
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
a848cd7e
SC
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
c228d3a4
RN
19657 { ac_try='test -z "$ac_cxx_werror_flag"
19658 || test ! -s conftest.err'
ac1cb8d3
VS
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; } &&
19664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666 (eval $ac_try) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; }; then
19670 echo "$as_me:$LINENO: result: yes" >&5
19671echo "${ECHO_T}yes" >&6
19672 cat >>confdefs.h <<\_ACEOF
19673#define HAVE_STD_WSTRING 1
19674_ACEOF
19675
19676else
19677 echo "$as_me: failed program was:" >&5
19678sed 's/^/| /' conftest.$ac_ext >&5
19679
19680echo "$as_me:$LINENO: result: no" >&5
19681echo "${ECHO_T}no" >&6
19682fi
ac1cb8d3 19683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19684
19685 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19686echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
19693#include <string>
19694int
19695main ()
19696{
19697std::string foo, bar;
19698 foo.compare(bar);
19699 foo.compare(1, 1, bar);
19700 foo.compare(1, 1, bar, 1, 1);
19701 foo.compare("");
19702 foo.compare(1, 1, "");
19703 foo.compare(1, 1, "", 2);
19704 ;
19705 return 0;
19706}
19707_ACEOF
19708rm -f conftest.$ac_objext
19709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19710 (eval $ac_compile) 2>conftest.er1
a848cd7e 19711 ac_status=$?
ac1cb8d3
VS
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
a848cd7e
SC
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
c228d3a4
RN
19717 { ac_try='test -z "$ac_cxx_werror_flag"
19718 || test ! -s conftest.err'
ac1cb8d3
VS
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 echo "$as_me:$LINENO: result: yes" >&5
19731echo "${ECHO_T}yes" >&6
19732 cat >>confdefs.h <<\_ACEOF
19733#define HAVE_STD_STRING_COMPARE 1
19734_ACEOF
19735
19736else
19737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740echo "$as_me:$LINENO: result: no" >&5
19741echo "${ECHO_T}no" >&6
19742fi
ac1cb8d3 19743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19744
19745 if test "${ac_cv_header_hash_map+set}" = set; then
19746 echo "$as_me:$LINENO: checking for hash_map" >&5
19747echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19748if test "${ac_cv_header_hash_map+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750fi
19751echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19752echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19753else
19754 # Is the header compilable?
19755echo "$as_me:$LINENO: checking hash_map usability" >&5
19756echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19757cat >conftest.$ac_ext <<_ACEOF
19758/* confdefs.h. */
19759_ACEOF
19760cat confdefs.h >>conftest.$ac_ext
19761cat >>conftest.$ac_ext <<_ACEOF
19762/* end confdefs.h. */
19763$ac_includes_default
19764#include <hash_map>
19765_ACEOF
19766rm -f conftest.$ac_objext
19767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19768 (eval $ac_compile) 2>conftest.er1
bdcade0a 19769 ac_status=$?
ac1cb8d3
VS
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
bdcade0a
MB
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
c228d3a4
RN
19775 { ac_try='test -z "$ac_cxx_werror_flag"
19776 || test ! -s conftest.err'
ac1cb8d3
VS
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_header_compiler=yes
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793ac_header_compiler=no
19794fi
ac1cb8d3 19795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19797echo "${ECHO_T}$ac_header_compiler" >&6
19798
19799# Is the header present?
19800echo "$as_me:$LINENO: checking hash_map presence" >&5
19801echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19802cat >conftest.$ac_ext <<_ACEOF
19803/* confdefs.h. */
19804_ACEOF
19805cat confdefs.h >>conftest.$ac_ext
19806cat >>conftest.$ac_ext <<_ACEOF
19807/* end confdefs.h. */
19808#include <hash_map>
19809_ACEOF
19810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } >/dev/null; then
19818 if test -s conftest.err; then
19819 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19820 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19821 else
19822 ac_cpp_err=
19823 fi
19824else
19825 ac_cpp_err=yes
19826fi
19827if test -z "$ac_cpp_err"; then
19828 ac_header_preproc=yes
19829else
19830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ac_header_preproc=no
19834fi
19835rm -f conftest.err conftest.$ac_ext
19836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19837echo "${ECHO_T}$ac_header_preproc" >&6
19838
19839# So? What about this header?
ac1cb8d3
VS
19840case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19841 yes:no: )
bdcade0a
MB
19842 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19843echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19844 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19845echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19846 ac_header_preproc=yes
bdcade0a 19847 ;;
ac1cb8d3 19848 no:yes:* )
bdcade0a
MB
19849 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19850echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19851 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19852echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19854echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19856echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19857 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19858echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19859 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19860echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19861 (
19862 cat <<\_ASBOX
ac1cb8d3
VS
19863## ----------------------------------------- ##
19864## Report this to wx-dev@lists.wxwidgets.org ##
19865## ----------------------------------------- ##
bdcade0a
MB
19866_ASBOX
19867 ) |
19868 sed "s/^/$as_me: WARNING: /" >&2
19869 ;;
19870esac
19871echo "$as_me:$LINENO: checking for hash_map" >&5
19872echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19873if test "${ac_cv_header_hash_map+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876 ac_cv_header_hash_map=$ac_header_preproc
19877fi
19878echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19879echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19880
19881fi
19882if test $ac_cv_header_hash_map = yes; then
19883 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19884echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
19891#include <hash_map>
19892 #include <hash_set>
19893int
19894main ()
19895{
19896std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19897 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19898 ;
19899 return 0;
19900}
19901_ACEOF
19902rm -f conftest.$ac_objext
19903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19904 (eval $ac_compile) 2>conftest.er1
bdcade0a 19905 ac_status=$?
ac1cb8d3
VS
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
bdcade0a
MB
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
c228d3a4
RN
19911 { ac_try='test -z "$ac_cxx_werror_flag"
19912 || test ! -s conftest.err'
ac1cb8d3
VS
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; } &&
19918 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 echo "$as_me:$LINENO: result: yes" >&5
19925echo "${ECHO_T}yes" >&6
19926 cat >>confdefs.h <<\_ACEOF
19927#define HAVE_HASH_MAP 1
19928_ACEOF
19929
19930 cat >>confdefs.h <<\_ACEOF
19931#define HAVE_STD_HASH_MAP 1
19932_ACEOF
19933
19934else
19935 echo "$as_me: failed program was:" >&5
19936sed 's/^/| /' conftest.$ac_ext >&5
19937
19938echo "$as_me:$LINENO: result: no" >&5
19939echo "${ECHO_T}no" >&6
19940fi
ac1cb8d3 19941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19942
19943fi
19944
19945
19946
19947 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19948 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19949echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19950if test "${ac_cv_header_ext_hash_map+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952fi
19953echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19954echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19955else
19956 # Is the header compilable?
19957echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19958echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19959cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965$ac_includes_default
19966#include <ext/hash_map>
19967_ACEOF
19968rm -f conftest.$ac_objext
19969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19970 (eval $ac_compile) 2>conftest.er1
bdcade0a 19971 ac_status=$?
ac1cb8d3
VS
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
bdcade0a
MB
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
c228d3a4
RN
19977 { ac_try='test -z "$ac_cxx_werror_flag"
19978 || test ! -s conftest.err'
ac1cb8d3
VS
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_header_compiler=yes
19991else
19992 echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995ac_header_compiler=no
19996fi
ac1cb8d3 19997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19999echo "${ECHO_T}$ac_header_compiler" >&6
20000
20001# Is the header present?
20002echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20003echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20004cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010#include <ext/hash_map>
20011_ACEOF
20012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } >/dev/null; then
20020 if test -s conftest.err; then
20021 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20022 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20023 else
20024 ac_cpp_err=
20025 fi
20026else
20027 ac_cpp_err=yes
20028fi
20029if test -z "$ac_cpp_err"; then
20030 ac_header_preproc=yes
20031else
20032 echo "$as_me: failed program was:" >&5
20033sed 's/^/| /' conftest.$ac_ext >&5
20034
20035 ac_header_preproc=no
20036fi
20037rm -f conftest.err conftest.$ac_ext
20038echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20039echo "${ECHO_T}$ac_header_preproc" >&6
20040
20041# So? What about this header?
ac1cb8d3
VS
20042case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20043 yes:no: )
bdcade0a
MB
20044 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20045echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20046 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20047echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20048 ac_header_preproc=yes
bdcade0a 20049 ;;
ac1cb8d3 20050 no:yes:* )
bdcade0a
MB
20051 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20052echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20053 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20054echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20056echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20058echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20059 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20060echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20061 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20062echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20063 (
20064 cat <<\_ASBOX
ac1cb8d3
VS
20065## ----------------------------------------- ##
20066## Report this to wx-dev@lists.wxwidgets.org ##
20067## ----------------------------------------- ##
bdcade0a
MB
20068_ASBOX
20069 ) |
20070 sed "s/^/$as_me: WARNING: /" >&2
20071 ;;
20072esac
20073echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20074echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20075if test "${ac_cv_header_ext_hash_map+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077else
20078 ac_cv_header_ext_hash_map=$ac_header_preproc
20079fi
20080echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20081echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20082
20083fi
20084if test $ac_cv_header_ext_hash_map = yes; then
20085 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20086echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20087 cat >conftest.$ac_ext <<_ACEOF
20088/* confdefs.h. */
20089_ACEOF
20090cat confdefs.h >>conftest.$ac_ext
20091cat >>conftest.$ac_ext <<_ACEOF
20092/* end confdefs.h. */
20093#include <ext/hash_map>
20094 #include <ext/hash_set>
20095int
20096main ()
20097{
20098__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20099 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20100 ;
20101 return 0;
20102}
20103_ACEOF
20104rm -f conftest.$ac_objext
20105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20106 (eval $ac_compile) 2>conftest.er1
bdcade0a 20107 ac_status=$?
ac1cb8d3
VS
20108 grep -v '^ *+' conftest.er1 >conftest.err
20109 rm -f conftest.er1
20110 cat conftest.err >&5
bdcade0a
MB
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
c228d3a4
RN
20113 { ac_try='test -z "$ac_cxx_werror_flag"
20114 || test ! -s conftest.err'
ac1cb8d3
VS
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 echo "$as_me:$LINENO: result: yes" >&5
20127echo "${ECHO_T}yes" >&6
20128 cat >>confdefs.h <<\_ACEOF
20129#define HAVE_EXT_HASH_MAP 1
20130_ACEOF
20131
20132 cat >>confdefs.h <<\_ACEOF
20133#define HAVE_GNU_CXX_HASH_MAP 1
20134_ACEOF
20135
20136else
20137 echo "$as_me: failed program was:" >&5
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140echo "$as_me:$LINENO: result: no" >&5
20141echo "${ECHO_T}no" >&6
20142fi
ac1cb8d3 20143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20144
20145fi
20146
20147
a848cd7e
SC
20148
20149 ac_ext=c
20150ac_cpp='$CPP $CPPFLAGS'
20151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154
20155fi
20156
20157
20158SEARCH_INCLUDE="\
20159 /usr/local/include \
20160 \
20161 /usr/Motif-2.1/include \
20162 /usr/Motif-1.2/include \
20163 /usr/include/Motif1.2 \
20164 /opt/xpm/include/X11 \
20165 /opt/GBxpm/include/ \
20166 /opt/GBxpm/X11/include/ \
20167 \
20168 /usr/dt/include \
20169 /usr/openwin/include \
20170 \
20171 /usr/include/Xm \
20172 \
20173 /usr/X11R6/include \
20174 /usr/X11R6.4/include \
20175 /usr/X11R5/include \
20176 /usr/X11R4/include \
20177 \
20178 /usr/include/X11R6 \
20179 /usr/include/X11R5 \
20180 /usr/include/X11R4 \
20181 \
20182 /usr/local/X11R6/include \
20183 /usr/local/X11R5/include \
20184 /usr/local/X11R4/include \
20185 \
20186 /usr/local/include/X11R6 \
20187 /usr/local/include/X11R5 \
20188 /usr/local/include/X11R4 \
20189 \
20190 /usr/X11/include \
20191 /usr/include/X11 \
20192 /usr/local/X11/include \
20193 /usr/local/include/X11 \
20194 \
20195 /usr/X386/include \
20196 /usr/x386/include \
20197 /usr/XFree86/include/X11 \
20198 \
20199 X:/XFree86/include \
20200 X:/XFree86/include/X11 \
20201 \
20202 /usr/include/gtk \
20203 /usr/local/include/gtk \
20204 /usr/include/glib \
20205 /usr/local/include/glib \
20206 \
20207 /usr/include/qt \
20208 /usr/local/include/qt \
20209 \
20210 /usr/local/arm/3.3.2/include \
20211 \
20212 /usr/include/windows \
20213 /usr/include/wine \
20214 /usr/local/include/wine \
20215 \
20216 /usr/unsupported/include \
20217 /usr/athena/include \
20218 /usr/local/x11r5/include \
20219 /usr/lpp/Xamples/include \
20220 \
20221 /usr/openwin/share/include"
20222
20223SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20224
20225
20226cat >confcache <<\_ACEOF
20227# This file is a shell script that caches the results of configure
20228# tests run on this system so they can be shared between configure
20229# scripts and configure runs, see configure's option --config-cache.
20230# It is not useful on other systems. If it contains results you don't
20231# want to keep, you may remove or edit it.
20232#
20233# config.status only pays attention to the cache file if you give it
20234# the --recheck option to rerun configure.
20235#
20236# `ac_cv_env_foo' variables (set or unset) will be overridden when
20237# loading this file, other *unset* `ac_cv_foo' will be assigned the
20238# following values.
20239
20240_ACEOF
20241
20242# The following way of writing the cache mishandles newlines in values,
20243# but we know of no workaround that is simple, portable, and efficient.
20244# So, don't put newlines in cache variables' values.
20245# Ultrix sh set writes to stderr and can't be redirected directly,
20246# and sets the high bit in the cache file unless we assign to the vars.
20247{
20248 (set) 2>&1 |
20249 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20250 *ac_space=\ *)
20251 # `set' does not quote correctly, so add quotes (double-quote
20252 # substitution turns \\\\ into \\, and sed turns \\ into \).
20253 sed -n \
ac1cb8d3
VS
20254 "s/'/'\\\\''/g;
20255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20256 ;;
20257 *)
20258 # `set' quotes correctly as required by POSIX, so do not add quotes.
20259 sed -n \
ac1cb8d3 20260 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20261 ;;
20262 esac;
20263} |
20264 sed '
20265 t clear
20266 : clear
20267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20268 t end
20269 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20270 : end' >>confcache
20271if diff $cache_file confcache >/dev/null 2>&1; then :; else
20272 if test -w $cache_file; then
20273 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20274 cat confcache >$cache_file
20275 else
20276 echo "not updating unwritable cache $cache_file"
20277 fi
20278fi
20279rm -f confcache
20280
20281if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20282 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20283echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20284if test "${wx_cv_lib_glibc21+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else
20287
20288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294#include <features.h>
20295int
20296main ()
20297{
20298
20299 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20300 #error not glibc2.1
20301 #endif
20302
20303 ;
20304 return 0;
20305}
20306_ACEOF
20307rm -f conftest.$ac_objext
20308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20309 (eval $ac_compile) 2>conftest.er1
a848cd7e 20310 ac_status=$?
ac1cb8d3
VS
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
a848cd7e
SC
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
c228d3a4
RN
20316 { ac_try='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
ac1cb8d3
VS
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329
20330 wx_cv_lib_glibc21=yes
20331
20332else
20333 echo "$as_me: failed program was:" >&5
20334sed 's/^/| /' conftest.$ac_ext >&5
20335
20336
20337 wx_cv_lib_glibc21=no
20338
20339
20340fi
ac1cb8d3 20341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20342
20343fi
20344echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20345echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20346 if test "$wx_cv_lib_glibc21" = "yes"; then
20347 cat >>confdefs.h <<\_ACEOF
20348#define wxHAVE_GLIBC2 1
20349_ACEOF
20350
20351 fi
20352fi
20353
20354if test "x$wx_cv_lib_glibc21" = "xyes"; then
20355 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20356 cat >>confdefs.h <<\_ACEOF
20357#define _GNU_SOURCE 1
20358_ACEOF
20359
20360 fi
20361fi
20362
20363
20364
20365if test "$wxUSE_REGEX" != "no"; then
20366 cat >>confdefs.h <<\_ACEOF
20367#define wxUSE_REGEX 1
20368_ACEOF
20369
20370
20371 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20372 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20373echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20374 wxUSE_REGEX=builtin
20375 fi
20376
20377 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20378 if test "${ac_cv_header_regex_h+set}" = set; then
20379 echo "$as_me:$LINENO: checking for regex.h" >&5
20380echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20381if test "${ac_cv_header_regex_h+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383fi
20384echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20385echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20386else
20387 # Is the header compilable?
20388echo "$as_me:$LINENO: checking regex.h usability" >&5
20389echo $ECHO_N "checking regex.h usability... $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$ac_includes_default
20397#include <regex.h>
20398_ACEOF
20399rm -f conftest.$ac_objext
20400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20401 (eval $ac_compile) 2>conftest.er1
a848cd7e 20402 ac_status=$?
ac1cb8d3
VS
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
a848cd7e
SC
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
c228d3a4
RN
20408 { ac_try='test -z "$ac_c_werror_flag"
20409 || test ! -s conftest.err'
ac1cb8d3
VS
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 ac_header_compiler=yes
20422else
20423 echo "$as_me: failed program was:" >&5
20424sed 's/^/| /' conftest.$ac_ext >&5
20425
20426ac_header_compiler=no
20427fi
ac1cb8d3 20428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20430echo "${ECHO_T}$ac_header_compiler" >&6
20431
20432# Is the header present?
20433echo "$as_me:$LINENO: checking regex.h presence" >&5
20434echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20435cat >conftest.$ac_ext <<_ACEOF
20436/* confdefs.h. */
20437_ACEOF
20438cat confdefs.h >>conftest.$ac_ext
20439cat >>conftest.$ac_ext <<_ACEOF
20440/* end confdefs.h. */
20441#include <regex.h>
20442_ACEOF
20443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } >/dev/null; then
20451 if test -s conftest.err; then
20452 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20454 else
20455 ac_cpp_err=
20456 fi
20457else
20458 ac_cpp_err=yes
20459fi
20460if test -z "$ac_cpp_err"; then
20461 ac_header_preproc=yes
20462else
20463 echo "$as_me: failed program was:" >&5
20464sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 ac_header_preproc=no
20467fi
20468rm -f conftest.err conftest.$ac_ext
20469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20470echo "${ECHO_T}$ac_header_preproc" >&6
20471
20472# So? What about this header?
ac1cb8d3
VS
20473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20474 yes:no: )
a848cd7e
SC
20475 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20476echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20477 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20478echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20479 ac_header_preproc=yes
a848cd7e 20480 ;;
ac1cb8d3 20481 no:yes:* )
a848cd7e
SC
20482 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20483echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20484 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20485echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20487echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20489echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20490 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20491echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20492 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20493echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20494 (
20495 cat <<\_ASBOX
ac1cb8d3
VS
20496## ----------------------------------------- ##
20497## Report this to wx-dev@lists.wxwidgets.org ##
20498## ----------------------------------------- ##
a848cd7e
SC
20499_ASBOX
20500 ) |
20501 sed "s/^/$as_me: WARNING: /" >&2
20502 ;;
20503esac
20504echo "$as_me:$LINENO: checking for regex.h" >&5
20505echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20506if test "${ac_cv_header_regex_h+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508else
20509 ac_cv_header_regex_h=$ac_header_preproc
20510fi
20511echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20512echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20513
20514fi
20515if test $ac_cv_header_regex_h = yes; then
20516
20517for ac_func in regcomp
20518do
20519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20520echo "$as_me:$LINENO: checking for $ac_func" >&5
20521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20522if eval "test \"\${$as_ac_var+set}\" = set"; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20524else
20525 cat >conftest.$ac_ext <<_ACEOF
20526/* confdefs.h. */
20527_ACEOF
20528cat confdefs.h >>conftest.$ac_ext
20529cat >>conftest.$ac_ext <<_ACEOF
20530/* end confdefs.h. */
ac1cb8d3
VS
20531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20533#define $ac_func innocuous_$ac_func
20534
a848cd7e
SC
20535/* System header to define __stub macros and hopefully few prototypes,
20536 which can conflict with char $ac_func (); below.
20537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20539
a848cd7e
SC
20540#ifdef __STDC__
20541# include <limits.h>
20542#else
20543# include <assert.h>
20544#endif
ac1cb8d3
VS
20545
20546#undef $ac_func
20547
a848cd7e
SC
20548/* Override any gcc2 internal prototype to avoid an error. */
20549#ifdef __cplusplus
20550extern "C"
20551{
20552#endif
20553/* We use char because int might match the return type of a gcc2
20554 builtin and then its argument prototype would still apply. */
20555char $ac_func ();
20556/* The GNU C library defines this for functions which it implements
20557 to always fail with ENOSYS. Some functions are actually named
20558 something starting with __ and the normal name is an alias. */
20559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20560choke me
20561#else
20562char (*f) () = $ac_func;
20563#endif
20564#ifdef __cplusplus
20565}
20566#endif
20567
20568int
20569main ()
20570{
20571return f != $ac_func;
20572 ;
20573 return 0;
20574}
20575_ACEOF
20576rm -f conftest.$ac_objext conftest$ac_exeext
20577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20578 (eval $ac_link) 2>conftest.er1
a848cd7e 20579 ac_status=$?
ac1cb8d3
VS
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
a848cd7e
SC
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
c228d3a4
RN
20585 { ac_try='test -z "$ac_c_werror_flag"
20586 || test ! -s conftest.err'
ac1cb8d3
VS
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 eval "$as_ac_var=yes"
20599else
20600 echo "$as_me: failed program was:" >&5
20601sed 's/^/| /' conftest.$ac_ext >&5
20602
20603eval "$as_ac_var=no"
20604fi
ac1cb8d3
VS
20605rm -f conftest.err conftest.$ac_objext \
20606 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20607fi
20608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20609echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20610if test `eval echo '${'$as_ac_var'}'` = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20613_ACEOF
20614
20615fi
20616done
20617
20618fi
20619
20620
20621
20622 if test "x$ac_cv_func_regcomp" != "xyes"; then
20623 if test "$wxUSE_REGEX" = "sys" ; then
20624 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20625echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20626 { (exit 1); exit 1; }; }
20627 else
20628 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20629echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20630 wxUSE_REGEX=builtin
20631 fi
20632 else
20633 wxUSE_REGEX=sys
20634 cat >>confdefs.h <<\_ACEOF
20635#define WX_NO_REGEX_ADVANCED 1
20636_ACEOF
20637
20638 fi
20639 fi
20640fi
20641
20642
20643ZLIB_LINK=
20644if test "$wxUSE_ZLIB" != "no" ; then
20645 cat >>confdefs.h <<\_ACEOF
20646#define wxUSE_ZLIB 1
20647_ACEOF
20648
20649
20650 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20651 if test "$USE_DARWIN" = 1; then
20652 system_zlib_h_ok="yes"
20653 else
20654 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20655echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20656if test "${ac_cv_header_zlib_h+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658else
20659 if test "$cross_compiling" = yes; then
20660 unset ac_cv_header_zlib_h
20661
20662else
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
20669
20670 #include <zlib.h>
20671 #include <stdio.h>
20672
20673 int main()
20674 {
20675 FILE *f=fopen("conftestval", "w");
20676 if (!f) exit(1);
20677 fprintf(f, "%s",
20678 ZLIB_VERSION[0] == '1' &&
20679 (ZLIB_VERSION[2] > '1' ||
20680 (ZLIB_VERSION[2] == '1' &&
20681 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20682 exit(0);
20683 }
20684
20685_ACEOF
20686rm -f conftest$ac_exeext
20687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20688 (eval $ac_link) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 ac_cv_header_zlib_h=`cat conftestval`
20698else
20699 echo "$as_me: program exited with status $ac_status" >&5
20700echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703( exit $ac_status )
20704ac_cv_header_zlib_h=no
20705fi
ac1cb8d3 20706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20707fi
20708
20709fi
20710echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20711echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20712 if test "${ac_cv_header_zlib_h+set}" = set; then
20713 echo "$as_me:$LINENO: checking for zlib.h" >&5
20714echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20715if test "${ac_cv_header_zlib_h+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20717fi
20718echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20719echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20720else
20721 # Is the header compilable?
20722echo "$as_me:$LINENO: checking zlib.h usability" >&5
20723echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20724cat >conftest.$ac_ext <<_ACEOF
20725/* confdefs.h. */
20726_ACEOF
20727cat confdefs.h >>conftest.$ac_ext
20728cat >>conftest.$ac_ext <<_ACEOF
20729/* end confdefs.h. */
20730$ac_includes_default
20731#include <zlib.h>
20732_ACEOF
20733rm -f conftest.$ac_objext
20734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20735 (eval $ac_compile) 2>conftest.er1
a848cd7e 20736 ac_status=$?
ac1cb8d3
VS
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -f conftest.er1
20739 cat conftest.err >&5
a848cd7e
SC
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } &&
c228d3a4
RN
20742 { ac_try='test -z "$ac_c_werror_flag"
20743 || test ! -s conftest.err'
ac1cb8d3
VS
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; } &&
20749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_header_compiler=yes
20756else
20757 echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
20760ac_header_compiler=no
20761fi
ac1cb8d3 20762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20764echo "${ECHO_T}$ac_header_compiler" >&6
20765
20766# Is the header present?
20767echo "$as_me:$LINENO: checking zlib.h presence" >&5
20768echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20769cat >conftest.$ac_ext <<_ACEOF
20770/* confdefs.h. */
20771_ACEOF
20772cat confdefs.h >>conftest.$ac_ext
20773cat >>conftest.$ac_ext <<_ACEOF
20774/* end confdefs.h. */
20775#include <zlib.h>
20776_ACEOF
20777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20779 ac_status=$?
20780 grep -v '^ *+' conftest.er1 >conftest.err
20781 rm -f conftest.er1
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } >/dev/null; then
20785 if test -s conftest.err; then
20786 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20788 else
20789 ac_cpp_err=
20790 fi
20791else
20792 ac_cpp_err=yes
20793fi
20794if test -z "$ac_cpp_err"; then
20795 ac_header_preproc=yes
20796else
20797 echo "$as_me: failed program was:" >&5
20798sed 's/^/| /' conftest.$ac_ext >&5
20799
20800 ac_header_preproc=no
20801fi
20802rm -f conftest.err conftest.$ac_ext
20803echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20804echo "${ECHO_T}$ac_header_preproc" >&6
20805
20806# So? What about this header?
ac1cb8d3
VS
20807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20808 yes:no: )
a848cd7e
SC
20809 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20810echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20811 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20812echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20813 ac_header_preproc=yes
a848cd7e 20814 ;;
ac1cb8d3 20815 no:yes:* )
a848cd7e
SC
20816 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20817echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20818 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20819echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20821echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20823echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20824 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20825echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20826 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20827echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20828 (
20829 cat <<\_ASBOX
ac1cb8d3
VS
20830## ----------------------------------------- ##
20831## Report this to wx-dev@lists.wxwidgets.org ##
20832## ----------------------------------------- ##
a848cd7e
SC
20833_ASBOX
20834 ) |
20835 sed "s/^/$as_me: WARNING: /" >&2
20836 ;;
20837esac
20838echo "$as_me:$LINENO: checking for zlib.h" >&5
20839echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20840if test "${ac_cv_header_zlib_h+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20842else
20843 ac_cv_header_zlib_h=$ac_header_preproc
20844fi
20845echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20846echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20847
20848fi
20849
20850
20851
20852 system_zlib_h_ok=$ac_cv_header_zlib_h
20853 fi
20854
20855 if test "$system_zlib_h_ok" = "yes"; then
20856 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20857echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20858if test "${ac_cv_lib_z_deflate+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860else
20861 ac_check_lib_save_LIBS=$LIBS
20862LIBS="-lz $LIBS"
20863cat >conftest.$ac_ext <<_ACEOF
20864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
20869
20870/* Override any gcc2 internal prototype to avoid an error. */
20871#ifdef __cplusplus
20872extern "C"
20873#endif
20874/* We use char because int might match the return type of a gcc2
20875 builtin and then its argument prototype would still apply. */
20876char deflate ();
20877int
20878main ()
20879{
20880deflate ();
20881 ;
20882 return 0;
20883}
20884_ACEOF
20885rm -f conftest.$ac_objext conftest$ac_exeext
20886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20887 (eval $ac_link) 2>conftest.er1
a848cd7e 20888 ac_status=$?
ac1cb8d3
VS
20889 grep -v '^ *+' conftest.er1 >conftest.err
20890 rm -f conftest.er1
20891 cat conftest.err >&5
a848cd7e
SC
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } &&
c228d3a4
RN
20894 { ac_try='test -z "$ac_c_werror_flag"
20895 || test ! -s conftest.err'
ac1cb8d3
VS
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_lib_z_deflate=yes
20908else
20909 echo "$as_me: failed program was:" >&5
20910sed 's/^/| /' conftest.$ac_ext >&5
20911
20912ac_cv_lib_z_deflate=no
20913fi
ac1cb8d3
VS
20914rm -f conftest.err conftest.$ac_objext \
20915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20916LIBS=$ac_check_lib_save_LIBS
20917fi
20918echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20919echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20920if test $ac_cv_lib_z_deflate = yes; then
20921 ZLIB_LINK=" -lz"
20922fi
20923
20924 fi
20925
20926 if test "x$ZLIB_LINK" = "x" ; then
20927 if test "$wxUSE_ZLIB" = "sys" ; then
20928 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20929echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20930 { (exit 1); exit 1; }; }
20931 else
20932 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20933echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20934 wxUSE_ZLIB=builtin
20935 fi
20936 else
20937 wxUSE_ZLIB=sys
20938 fi
20939 fi
20940fi
20941
20942
20943PNG_LINK=
20944if test "$wxUSE_LIBPNG" != "no" ; then
20945 cat >>confdefs.h <<\_ACEOF
20946#define wxUSE_LIBPNG 1
20947_ACEOF
20948
20949
20950 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20951 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20952echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20953 wxUSE_LIBPNG=sys
20954 fi
20955
20956 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20957 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20958echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20959 wxUSE_LIBPNG=builtin
20960 fi
20961
20962 if test "$wxUSE_MGL" != 1 ; then
20963 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20964 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20965echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20966if test "${ac_cv_header_png_h+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968else
20969 if test "$cross_compiling" = yes; then
20970 unset ac_cv_header_png_h
20971
20972else
20973 cat >conftest.$ac_ext <<_ACEOF
20974/* confdefs.h. */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h. */
20979
20980 #include <png.h>
20981 #include <stdio.h>
20982
20983 int main()
20984 {
20985 FILE *f=fopen("conftestval", "w");
20986 if (!f) exit(1);
20987 fprintf(f, "%s",
20988 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20989 exit(0);
20990 }
20991
20992_ACEOF
20993rm -f conftest$ac_exeext
20994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995 (eval $ac_link) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 ac_cv_header_png_h=`cat conftestval`
21005else
21006 echo "$as_me: program exited with status $ac_status" >&5
21007echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
21010( exit $ac_status )
21011ac_cv_header_png_h=no
21012fi
ac1cb8d3 21013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21014fi
21015
21016fi
21017echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21018echo "${ECHO_T}$ac_cv_header_png_h" >&6
21019 if test "${ac_cv_header_png_h+set}" = set; then
21020 echo "$as_me:$LINENO: checking for png.h" >&5
21021echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21022if test "${ac_cv_header_png_h+set}" = set; then
21023 echo $ECHO_N "(cached) $ECHO_C" >&6
21024fi
21025echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21026echo "${ECHO_T}$ac_cv_header_png_h" >&6
21027else
21028 # Is the header compilable?
21029echo "$as_me:$LINENO: checking png.h usability" >&5
21030echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21031cat >conftest.$ac_ext <<_ACEOF
21032/* confdefs.h. */
21033_ACEOF
21034cat confdefs.h >>conftest.$ac_ext
21035cat >>conftest.$ac_ext <<_ACEOF
21036/* end confdefs.h. */
21037$ac_includes_default
21038#include <png.h>
21039_ACEOF
21040rm -f conftest.$ac_objext
21041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21042 (eval $ac_compile) 2>conftest.er1
a848cd7e 21043 ac_status=$?
ac1cb8d3
VS
21044 grep -v '^ *+' conftest.er1 >conftest.err
21045 rm -f conftest.er1
21046 cat conftest.err >&5
a848cd7e
SC
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
c228d3a4
RN
21049 { ac_try='test -z "$ac_c_werror_flag"
21050 || test ! -s conftest.err'
ac1cb8d3
VS
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; } &&
21056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_header_compiler=yes
21063else
21064 echo "$as_me: failed program was:" >&5
21065sed 's/^/| /' conftest.$ac_ext >&5
21066
21067ac_header_compiler=no
21068fi
ac1cb8d3 21069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21071echo "${ECHO_T}$ac_header_compiler" >&6
21072
21073# Is the header present?
21074echo "$as_me:$LINENO: checking png.h presence" >&5
21075echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21076cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082#include <png.h>
21083_ACEOF
21084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21086 ac_status=$?
21087 grep -v '^ *+' conftest.er1 >conftest.err
21088 rm -f conftest.er1
21089 cat conftest.err >&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } >/dev/null; then
21092 if test -s conftest.err; then
21093 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21095 else
21096 ac_cpp_err=
21097 fi
21098else
21099 ac_cpp_err=yes
21100fi
21101if test -z "$ac_cpp_err"; then
21102 ac_header_preproc=yes
21103else
21104 echo "$as_me: failed program was:" >&5
21105sed 's/^/| /' conftest.$ac_ext >&5
21106
21107 ac_header_preproc=no
21108fi
21109rm -f conftest.err conftest.$ac_ext
21110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21111echo "${ECHO_T}$ac_header_preproc" >&6
21112
21113# So? What about this header?
ac1cb8d3
VS
21114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21115 yes:no: )
a848cd7e
SC
21116 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21117echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21118 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21119echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21120 ac_header_preproc=yes
a848cd7e 21121 ;;
ac1cb8d3 21122 no:yes:* )
a848cd7e
SC
21123 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21124echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21125 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21126echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21128echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21130echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21131 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21132echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21133 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21134echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21135 (
21136 cat <<\_ASBOX
ac1cb8d3
VS
21137## ----------------------------------------- ##
21138## Report this to wx-dev@lists.wxwidgets.org ##
21139## ----------------------------------------- ##
a848cd7e
SC
21140_ASBOX
21141 ) |
21142 sed "s/^/$as_me: WARNING: /" >&2
21143 ;;
21144esac
21145echo "$as_me:$LINENO: checking for png.h" >&5
21146echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21147if test "${ac_cv_header_png_h+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 ac_cv_header_png_h=$ac_header_preproc
21151fi
21152echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21153echo "${ECHO_T}$ac_cv_header_png_h" >&6
21154
21155fi
21156
21157
21158
21159 if test "$ac_cv_header_png_h" = "yes"; then
21160 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21161echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21162if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21164else
21165 ac_check_lib_save_LIBS=$LIBS
21166LIBS="-lpng -lz -lm $LIBS"
21167cat >conftest.$ac_ext <<_ACEOF
21168/* confdefs.h. */
21169_ACEOF
21170cat confdefs.h >>conftest.$ac_ext
21171cat >>conftest.$ac_ext <<_ACEOF
21172/* end confdefs.h. */
21173
21174/* Override any gcc2 internal prototype to avoid an error. */
21175#ifdef __cplusplus
21176extern "C"
21177#endif
21178/* We use char because int might match the return type of a gcc2
21179 builtin and then its argument prototype would still apply. */
21180char png_check_sig ();
21181int
21182main ()
21183{
21184png_check_sig ();
21185 ;
21186 return 0;
21187}
21188_ACEOF
21189rm -f conftest.$ac_objext conftest$ac_exeext
21190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21191 (eval $ac_link) 2>conftest.er1
a848cd7e 21192 ac_status=$?
ac1cb8d3
VS
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
a848cd7e
SC
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
c228d3a4
RN
21198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
ac1cb8d3
VS
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_lib_png_png_check_sig=yes
21212else
21213 echo "$as_me: failed program was:" >&5
21214sed 's/^/| /' conftest.$ac_ext >&5
21215
21216ac_cv_lib_png_png_check_sig=no
21217fi
ac1cb8d3
VS
21218rm -f conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21220LIBS=$ac_check_lib_save_LIBS
21221fi
21222echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21223echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21224if test $ac_cv_lib_png_png_check_sig = yes; then
21225 PNG_LINK=" -lpng -lz"
21226fi
21227
21228 fi
21229
21230 if test "x$PNG_LINK" = "x" ; then
21231 if test "$wxUSE_LIBPNG" = "sys" ; then
21232 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21233echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21234 { (exit 1); exit 1; }; }
21235 else
21236 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21237echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21238 wxUSE_LIBPNG=builtin
21239 fi
21240 else
21241 wxUSE_LIBPNG=sys
21242 fi
21243 fi
21244 fi
21245
21246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21247fi
21248
21249
21250JPEG_LINK=
21251if test "$wxUSE_LIBJPEG" != "no" ; then
21252 cat >>confdefs.h <<\_ACEOF
21253#define wxUSE_LIBJPEG 1
21254_ACEOF
21255
21256
21257 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21258 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21259echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21260 wxUSE_LIBJPEG=sys
21261 fi
21262
21263 if test "$wxUSE_MGL" != 1 ; then
21264 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21265 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21266echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21267 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21269else
21270 cat >conftest.$ac_ext <<_ACEOF
21271/* confdefs.h. */
21272_ACEOF
21273cat confdefs.h >>conftest.$ac_ext
21274cat >>conftest.$ac_ext <<_ACEOF
21275/* end confdefs.h. */
21276
21277 #undef HAVE_STDLIB_H
21278 #include <stdio.h>
21279 #include <jpeglib.h>
21280
21281int
21282main ()
21283{
21284
21285
21286 ;
21287 return 0;
21288}
21289_ACEOF
21290rm -f conftest.$ac_objext
21291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21292 (eval $ac_compile) 2>conftest.er1
a848cd7e 21293 ac_status=$?
ac1cb8d3
VS
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
a848cd7e
SC
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
c228d3a4
RN
21299 { ac_try='test -z "$ac_c_werror_flag"
21300 || test ! -s conftest.err'
ac1cb8d3
VS
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; } &&
21306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308 (eval $ac_try) 2>&5
21309 ac_status=$?
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); }; }; then
21312 ac_cv_header_jpeglib_h=yes
21313else
21314 echo "$as_me: failed program was:" >&5
21315sed 's/^/| /' conftest.$ac_ext >&5
21316
21317ac_cv_header_jpeglib_h=no
21318
21319fi
ac1cb8d3 21320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21321
21322fi
21323
21324 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21325echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21326
21327 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21328 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21329echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21330if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332else
21333 ac_check_lib_save_LIBS=$LIBS
21334LIBS="-ljpeg $LIBS"
21335cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
21341
21342/* Override any gcc2 internal prototype to avoid an error. */
21343#ifdef __cplusplus
21344extern "C"
21345#endif
21346/* We use char because int might match the return type of a gcc2
21347 builtin and then its argument prototype would still apply. */
21348char jpeg_read_header ();
21349int
21350main ()
21351{
21352jpeg_read_header ();
21353 ;
21354 return 0;
21355}
21356_ACEOF
21357rm -f conftest.$ac_objext conftest$ac_exeext
21358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21359 (eval $ac_link) 2>conftest.er1
a848cd7e 21360 ac_status=$?
ac1cb8d3
VS
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
a848cd7e
SC
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
c228d3a4
RN
21366 { ac_try='test -z "$ac_c_werror_flag"
21367 || test ! -s conftest.err'
ac1cb8d3
VS
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_cv_lib_jpeg_jpeg_read_header=yes
21380else
21381 echo "$as_me: failed program was:" >&5
21382sed 's/^/| /' conftest.$ac_ext >&5
21383
21384ac_cv_lib_jpeg_jpeg_read_header=no
21385fi
ac1cb8d3
VS
21386rm -f conftest.err conftest.$ac_objext \
21387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21388LIBS=$ac_check_lib_save_LIBS
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21391echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21392if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21393 JPEG_LINK=" -ljpeg"
21394fi
21395
21396 fi
21397
21398 if test "x$JPEG_LINK" = "x" ; then
21399 if test "$wxUSE_LIBJPEG" = "sys" ; then
21400 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21401echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21402 { (exit 1); exit 1; }; }
21403 else
21404 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21405echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21406 wxUSE_LIBJPEG=builtin
21407 fi
21408 else
21409 wxUSE_LIBJPEG=sys
21410 fi
21411 fi
21412 fi
21413fi
21414
21415
21416TIFF_LINK=
21417TIFF_PREREQ_LINKS=-lm
21418if test "$wxUSE_LIBTIFF" != "no" ; then
21419 cat >>confdefs.h <<\_ACEOF
21420#define wxUSE_LIBTIFF 1
21421_ACEOF
21422
21423
21424 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21425 if test "$wxUSE_LIBJPEG" = "sys"; then
21426 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21427 fi
21428 if test "$wxUSE_ZLIB" = "sys"; then
21429 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21430 fi
21431 if test "${ac_cv_header_tiffio_h+set}" = set; then
21432 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21433echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21434if test "${ac_cv_header_tiffio_h+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21436fi
21437echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21438echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21439else
21440 # Is the header compilable?
21441echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21442echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21443cat >conftest.$ac_ext <<_ACEOF
21444/* confdefs.h. */
21445_ACEOF
21446cat confdefs.h >>conftest.$ac_ext
21447cat >>conftest.$ac_ext <<_ACEOF
21448/* end confdefs.h. */
21449$ac_includes_default
21450#include <tiffio.h>
21451_ACEOF
21452rm -f conftest.$ac_objext
21453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21454 (eval $ac_compile) 2>conftest.er1
a848cd7e 21455 ac_status=$?
ac1cb8d3
VS
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
a848cd7e
SC
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } &&
c228d3a4
RN
21461 { ac_try='test -z "$ac_c_werror_flag"
21462 || test ! -s conftest.err'
ac1cb8d3
VS
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; } &&
21468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21471 ac_status=$?
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; }; then
21474 ac_header_compiler=yes
21475else
21476 echo "$as_me: failed program was:" >&5
21477sed 's/^/| /' conftest.$ac_ext >&5
21478
21479ac_header_compiler=no
21480fi
ac1cb8d3 21481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21483echo "${ECHO_T}$ac_header_compiler" >&6
21484
21485# Is the header present?
21486echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21487echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21488cat >conftest.$ac_ext <<_ACEOF
21489/* confdefs.h. */
21490_ACEOF
21491cat confdefs.h >>conftest.$ac_ext
21492cat >>conftest.$ac_ext <<_ACEOF
21493/* end confdefs.h. */
21494#include <tiffio.h>
21495_ACEOF
21496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21498 ac_status=$?
21499 grep -v '^ *+' conftest.er1 >conftest.err
21500 rm -f conftest.er1
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } >/dev/null; then
21504 if test -s conftest.err; then
21505 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21507 else
21508 ac_cpp_err=
21509 fi
21510else
21511 ac_cpp_err=yes
21512fi
21513if test -z "$ac_cpp_err"; then
21514 ac_header_preproc=yes
21515else
21516 echo "$as_me: failed program was:" >&5
21517sed 's/^/| /' conftest.$ac_ext >&5
21518
21519 ac_header_preproc=no
21520fi
21521rm -f conftest.err conftest.$ac_ext
21522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21523echo "${ECHO_T}$ac_header_preproc" >&6
21524
21525# So? What about this header?
ac1cb8d3
VS
21526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21527 yes:no: )
a848cd7e
SC
21528 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21529echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21530 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21531echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21532 ac_header_preproc=yes
a848cd7e 21533 ;;
ac1cb8d3 21534 no:yes:* )
a848cd7e
SC
21535 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21536echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21537 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21538echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21540echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21542echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21543 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21544echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21545 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21546echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21547 (
21548 cat <<\_ASBOX
ac1cb8d3
VS
21549## ----------------------------------------- ##
21550## Report this to wx-dev@lists.wxwidgets.org ##
21551## ----------------------------------------- ##
a848cd7e
SC
21552_ASBOX
21553 ) |
21554 sed "s/^/$as_me: WARNING: /" >&2
21555 ;;
21556esac
21557echo "$as_me:$LINENO: checking for tiffio.h" >&5
21558echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21559if test "${ac_cv_header_tiffio_h+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562 ac_cv_header_tiffio_h=$ac_header_preproc
21563fi
21564echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21565echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21566
21567fi
21568if test $ac_cv_header_tiffio_h = yes; then
21569
21570 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21571echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21572if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21574else
21575 ac_check_lib_save_LIBS=$LIBS
21576LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21577cat >conftest.$ac_ext <<_ACEOF
21578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
21583
21584/* Override any gcc2 internal prototype to avoid an error. */
21585#ifdef __cplusplus
21586extern "C"
21587#endif
21588/* We use char because int might match the return type of a gcc2
21589 builtin and then its argument prototype would still apply. */
21590char TIFFError ();
21591int
21592main ()
21593{
21594TIFFError ();
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599rm -f conftest.$ac_objext conftest$ac_exeext
21600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21601 (eval $ac_link) 2>conftest.er1
a848cd7e 21602 ac_status=$?
ac1cb8d3
VS
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
a848cd7e
SC
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
c228d3a4
RN
21608 { ac_try='test -z "$ac_c_werror_flag"
21609 || test ! -s conftest.err'
ac1cb8d3
VS
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_cv_lib_tiff_TIFFError=yes
21622else
21623 echo "$as_me: failed program was:" >&5
21624sed 's/^/| /' conftest.$ac_ext >&5
21625
21626ac_cv_lib_tiff_TIFFError=no
21627fi
ac1cb8d3
VS
21628rm -f conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21630LIBS=$ac_check_lib_save_LIBS
21631fi
21632echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21633echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21634if test $ac_cv_lib_tiff_TIFFError = yes; then
21635 TIFF_LINK=" -ltiff"
21636fi
21637
21638
21639
21640fi
21641
21642
21643
21644 if test "x$TIFF_LINK" = "x" ; then
21645 if test "$wxUSE_LIBTIFF" = "sys" ; then
21646 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21647echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21648 { (exit 1); exit 1; }; }
21649 else
21650 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21651echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21652 wxUSE_LIBTIFF=builtin
21653 fi
21654 else
21655 wxUSE_LIBTIFF=sys
21656 fi
21657 fi
21658fi
21659
21660
21661if test "$wxUSE_EXPAT" != "no"; then
21662 wxUSE_XML=yes
21663 cat >>confdefs.h <<\_ACEOF
21664#define wxUSE_EXPAT 1
21665_ACEOF
21666
21667 cat >>confdefs.h <<\_ACEOF
21668#define wxUSE_XML 1
21669_ACEOF
21670
21671
21672 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21673 if test "${ac_cv_header_expat_h+set}" = set; then
21674 echo "$as_me:$LINENO: checking for expat.h" >&5
21675echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21676if test "${ac_cv_header_expat_h+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678fi
21679echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21680echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21681else
21682 # Is the header compilable?
21683echo "$as_me:$LINENO: checking expat.h usability" >&5
21684echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21685cat >conftest.$ac_ext <<_ACEOF
21686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
21691$ac_includes_default
21692#include <expat.h>
21693_ACEOF
21694rm -f conftest.$ac_objext
21695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21696 (eval $ac_compile) 2>conftest.er1
a848cd7e 21697 ac_status=$?
ac1cb8d3
VS
21698 grep -v '^ *+' conftest.er1 >conftest.err
21699 rm -f conftest.er1
21700 cat conftest.err >&5
a848cd7e
SC
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
c228d3a4
RN
21703 { ac_try='test -z "$ac_c_werror_flag"
21704 || test ! -s conftest.err'
ac1cb8d3
VS
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; } &&
21710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 ac_header_compiler=yes
21717else
21718 echo "$as_me: failed program was:" >&5
21719sed 's/^/| /' conftest.$ac_ext >&5
21720
21721ac_header_compiler=no
21722fi
ac1cb8d3 21723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21725echo "${ECHO_T}$ac_header_compiler" >&6
21726
21727# Is the header present?
21728echo "$as_me:$LINENO: checking expat.h presence" >&5
21729echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21730cat >conftest.$ac_ext <<_ACEOF
21731/* confdefs.h. */
21732_ACEOF
21733cat confdefs.h >>conftest.$ac_ext
21734cat >>conftest.$ac_ext <<_ACEOF
21735/* end confdefs.h. */
21736#include <expat.h>
21737_ACEOF
21738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } >/dev/null; then
21746 if test -s conftest.err; then
21747 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21749 else
21750 ac_cpp_err=
21751 fi
21752else
21753 ac_cpp_err=yes
21754fi
21755if test -z "$ac_cpp_err"; then
21756 ac_header_preproc=yes
21757else
21758 echo "$as_me: failed program was:" >&5
21759sed 's/^/| /' conftest.$ac_ext >&5
21760
21761 ac_header_preproc=no
21762fi
21763rm -f conftest.err conftest.$ac_ext
21764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21765echo "${ECHO_T}$ac_header_preproc" >&6
21766
21767# So? What about this header?
ac1cb8d3
VS
21768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21769 yes:no: )
a848cd7e
SC
21770 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21771echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21772 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21773echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21774 ac_header_preproc=yes
a848cd7e 21775 ;;
ac1cb8d3 21776 no:yes:* )
a848cd7e
SC
21777 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21778echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21779 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21780echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21782echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21784echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21785 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21786echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21787 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21788echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21789 (
21790 cat <<\_ASBOX
ac1cb8d3
VS
21791## ----------------------------------------- ##
21792## Report this to wx-dev@lists.wxwidgets.org ##
21793## ----------------------------------------- ##
a848cd7e
SC
21794_ASBOX
21795 ) |
21796 sed "s/^/$as_me: WARNING: /" >&2
21797 ;;
21798esac
21799echo "$as_me:$LINENO: checking for expat.h" >&5
21800echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21801if test "${ac_cv_header_expat_h+set}" = set; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21803else
21804 ac_cv_header_expat_h=$ac_header_preproc
21805fi
21806echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21807echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21808
21809fi
21810if test $ac_cv_header_expat_h = yes; then
21811 found_expat_h=1
21812fi
21813
21814
21815 if test "x$found_expat_h" = "x1"; then
21816 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21817echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21818if test "${wx_cv_expat_is_not_broken+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21820else
21821
21822
21823
21824 ac_ext=cc
21825ac_cpp='$CXXCPP $CPPFLAGS'
21826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21829
21830 cat >conftest.$ac_ext <<_ACEOF
21831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
21836#include <expat.h>
21837int
21838main ()
21839{
21840
21841 ;
21842 return 0;
21843}
21844_ACEOF
21845rm -f conftest.$ac_objext
21846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21847 (eval $ac_compile) 2>conftest.er1
a848cd7e 21848 ac_status=$?
ac1cb8d3
VS
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
a848cd7e
SC
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
c228d3a4
RN
21854 { ac_try='test -z "$ac_cxx_werror_flag"
21855 || test ! -s conftest.err'
ac1cb8d3
VS
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; } &&
21861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 wx_cv_expat_is_not_broken=yes
21868else
21869 echo "$as_me: failed program was:" >&5
21870sed 's/^/| /' conftest.$ac_ext >&5
21871
21872wx_cv_expat_is_not_broken=no
21873
21874fi
ac1cb8d3 21875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21876 ac_ext=c
21877ac_cpp='$CPP $CPPFLAGS'
21878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21880ac_compiler_gnu=$ac_cv_c_compiler_gnu
21881
21882
21883
21884fi
21885echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21886echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21887 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21888 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21889echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21890if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21892else
21893 ac_check_lib_save_LIBS=$LIBS
21894LIBS="-lexpat $LIBS"
21895cat >conftest.$ac_ext <<_ACEOF
21896/* confdefs.h. */
21897_ACEOF
21898cat confdefs.h >>conftest.$ac_ext
21899cat >>conftest.$ac_ext <<_ACEOF
21900/* end confdefs.h. */
21901
21902/* Override any gcc2 internal prototype to avoid an error. */
21903#ifdef __cplusplus
21904extern "C"
21905#endif
21906/* We use char because int might match the return type of a gcc2
21907 builtin and then its argument prototype would still apply. */
21908char XML_ParserCreate ();
21909int
21910main ()
21911{
21912XML_ParserCreate ();
21913 ;
21914 return 0;
21915}
21916_ACEOF
21917rm -f conftest.$ac_objext conftest$ac_exeext
21918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21919 (eval $ac_link) 2>conftest.er1
a848cd7e 21920 ac_status=$?
ac1cb8d3
VS
21921 grep -v '^ *+' conftest.er1 >conftest.err
21922 rm -f conftest.er1
21923 cat conftest.err >&5
a848cd7e
SC
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } &&
c228d3a4
RN
21926 { ac_try='test -z "$ac_c_werror_flag"
21927 || test ! -s conftest.err'
ac1cb8d3
VS
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; } &&
21933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21936 ac_status=$?
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 ac_cv_lib_expat_XML_ParserCreate=yes
21940else
21941 echo "$as_me: failed program was:" >&5
21942sed 's/^/| /' conftest.$ac_ext >&5
21943
21944ac_cv_lib_expat_XML_ParserCreate=no
21945fi
ac1cb8d3
VS
21946rm -f conftest.err conftest.$ac_objext \
21947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21948LIBS=$ac_check_lib_save_LIBS
21949fi
21950echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21951echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21952if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21953 EXPAT_LINK=" -lexpat"
21954fi
21955
21956 fi
21957 fi
21958 if test "x$EXPAT_LINK" = "x" ; then
21959 if test "$wxUSE_EXPAT" = "sys" ; then
21960 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21961echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21962 { (exit 1); exit 1; }; }
21963 else
21964 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21965echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21966 wxUSE_EXPAT=builtin
21967 fi
21968 else
21969 wxUSE_EXPAT=sys
21970 fi
21971 fi
21972 if test "$wxUSE_EXPAT" = "builtin" ; then
21973
21974
21975subdirs="$subdirs src/expat"
21976
21977 fi
21978fi
21979
21980
21981
21982if test "$wxUSE_LIBMSPACK" != "no"; then
21983
21984 if test "${ac_cv_header_mspack_h+set}" = set; then
21985 echo "$as_me:$LINENO: checking for mspack.h" >&5
21986echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21987if test "${ac_cv_header_mspack_h+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989fi
21990echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21991echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21992else
21993 # Is the header compilable?
21994echo "$as_me:$LINENO: checking mspack.h usability" >&5
21995echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21996cat >conftest.$ac_ext <<_ACEOF
21997/* confdefs.h. */
21998_ACEOF
21999cat confdefs.h >>conftest.$ac_ext
22000cat >>conftest.$ac_ext <<_ACEOF
22001/* end confdefs.h. */
22002$ac_includes_default
22003#include <mspack.h>
22004_ACEOF
22005rm -f conftest.$ac_objext
22006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22007 (eval $ac_compile) 2>conftest.er1
a848cd7e 22008 ac_status=$?
ac1cb8d3
VS
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
a848cd7e
SC
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } &&
c228d3a4
RN
22014 { ac_try='test -z "$ac_c_werror_flag"
22015 || test ! -s conftest.err'
ac1cb8d3
VS
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; } &&
22021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22027 ac_header_compiler=yes
22028else
22029 echo "$as_me: failed program was:" >&5
22030sed 's/^/| /' conftest.$ac_ext >&5
22031
22032ac_header_compiler=no
22033fi
ac1cb8d3 22034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22036echo "${ECHO_T}$ac_header_compiler" >&6
22037
22038# Is the header present?
22039echo "$as_me:$LINENO: checking mspack.h presence" >&5
22040echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22041cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
22047#include <mspack.h>
22048_ACEOF
22049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22051 ac_status=$?
22052 grep -v '^ *+' conftest.er1 >conftest.err
22053 rm -f conftest.er1
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } >/dev/null; then
22057 if test -s conftest.err; then
22058 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22060 else
22061 ac_cpp_err=
22062 fi
22063else
22064 ac_cpp_err=yes
22065fi
22066if test -z "$ac_cpp_err"; then
22067 ac_header_preproc=yes
22068else
22069 echo "$as_me: failed program was:" >&5
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 ac_header_preproc=no
22073fi
22074rm -f conftest.err conftest.$ac_ext
22075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22076echo "${ECHO_T}$ac_header_preproc" >&6
22077
22078# So? What about this header?
ac1cb8d3
VS
22079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22080 yes:no: )
a848cd7e
SC
22081 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22082echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22083 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22084echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22085 ac_header_preproc=yes
a848cd7e 22086 ;;
ac1cb8d3 22087 no:yes:* )
a848cd7e
SC
22088 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22089echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22090 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22091echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22093echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22095echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22096 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22097echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22098 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22099echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22100 (
22101 cat <<\_ASBOX
ac1cb8d3
VS
22102## ----------------------------------------- ##
22103## Report this to wx-dev@lists.wxwidgets.org ##
22104## ----------------------------------------- ##
a848cd7e
SC
22105_ASBOX
22106 ) |
22107 sed "s/^/$as_me: WARNING: /" >&2
22108 ;;
22109esac
22110echo "$as_me:$LINENO: checking for mspack.h" >&5
22111echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22112if test "${ac_cv_header_mspack_h+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22114else
22115 ac_cv_header_mspack_h=$ac_header_preproc
22116fi
22117echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22118echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22119
22120fi
22121if test $ac_cv_header_mspack_h = yes; then
22122 found_mspack_h=1
22123fi
22124
22125
22126 if test "x$found_mspack_h" = "x1"; then
22127 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22128echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22129if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22130 echo $ECHO_N "(cached) $ECHO_C" >&6
22131else
22132 ac_check_lib_save_LIBS=$LIBS
22133LIBS="-lmspack $LIBS"
22134cat >conftest.$ac_ext <<_ACEOF
22135/* confdefs.h. */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h. */
22140
22141/* Override any gcc2 internal prototype to avoid an error. */
22142#ifdef __cplusplus
22143extern "C"
22144#endif
22145/* We use char because int might match the return type of a gcc2
22146 builtin and then its argument prototype would still apply. */
22147char mspack_create_chm_decompressor ();
22148int
22149main ()
22150{
22151mspack_create_chm_decompressor ();
22152 ;
22153 return 0;
22154}
22155_ACEOF
22156rm -f conftest.$ac_objext conftest$ac_exeext
22157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22158 (eval $ac_link) 2>conftest.er1
a848cd7e 22159 ac_status=$?
ac1cb8d3
VS
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
a848cd7e
SC
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
c228d3a4
RN
22165 { ac_try='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
ac1cb8d3
VS
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22179else
22180 echo "$as_me: failed program was:" >&5
22181sed 's/^/| /' conftest.$ac_ext >&5
22182
22183ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22184fi
ac1cb8d3
VS
22185rm -f conftest.err conftest.$ac_objext \
22186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22187LIBS=$ac_check_lib_save_LIBS
22188fi
22189echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22190echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22191if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22192 MSPACK_LINK=" -lmspack"
22193fi
22194
22195 fi
22196 if test "x$MSPACK_LINK" = "x" ; then
22197 wxUSE_LIBMSPACK=no
22198 else
22199 cat >>confdefs.h <<\_ACEOF
22200#define wxUSE_LIBMSPACK 1
22201_ACEOF
22202
22203 fi
22204fi
22205
22206
22207
22208AFMINSTALL=
22209WIN32INSTALL=
22210
22211TOOLKIT=
22212TOOLKIT_INCLUDE=
22213WIDGET_SET=
22214
22215if test "$USE_WIN32" = 1 ; then
22216
22217for ac_header in w32api.h
22218do
22219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22220if eval "test \"\${$as_ac_Header+set}\" = set"; then
22221 echo "$as_me:$LINENO: checking for $ac_header" >&5
22222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22223if eval "test \"\${$as_ac_Header+set}\" = set"; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22225fi
22226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22228else
22229 # Is the header compilable?
22230echo "$as_me:$LINENO: checking $ac_header usability" >&5
22231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22232cat >conftest.$ac_ext <<_ACEOF
22233/* confdefs.h. */
22234_ACEOF
22235cat confdefs.h >>conftest.$ac_ext
22236cat >>conftest.$ac_ext <<_ACEOF
22237/* end confdefs.h. */
22238$ac_includes_default
22239#include <$ac_header>
22240_ACEOF
22241rm -f conftest.$ac_objext
22242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22243 (eval $ac_compile) 2>conftest.er1
a848cd7e 22244 ac_status=$?
ac1cb8d3
VS
22245 grep -v '^ *+' conftest.er1 >conftest.err
22246 rm -f conftest.er1
22247 cat conftest.err >&5
a848cd7e
SC
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } &&
c228d3a4
RN
22250 { ac_try='test -z "$ac_c_werror_flag"
22251 || test ! -s conftest.err'
ac1cb8d3
VS
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; } &&
22257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 ac_header_compiler=yes
22264else
22265 echo "$as_me: failed program was:" >&5
22266sed 's/^/| /' conftest.$ac_ext >&5
22267
22268ac_header_compiler=no
22269fi
ac1cb8d3 22270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22272echo "${ECHO_T}$ac_header_compiler" >&6
22273
22274# Is the header present?
22275echo "$as_me:$LINENO: checking $ac_header presence" >&5
22276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22277cat >conftest.$ac_ext <<_ACEOF
22278/* confdefs.h. */
22279_ACEOF
22280cat confdefs.h >>conftest.$ac_ext
22281cat >>conftest.$ac_ext <<_ACEOF
22282/* end confdefs.h. */
22283#include <$ac_header>
22284_ACEOF
22285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22287 ac_status=$?
22288 grep -v '^ *+' conftest.er1 >conftest.err
22289 rm -f conftest.er1
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } >/dev/null; then
22293 if test -s conftest.err; then
22294 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22296 else
22297 ac_cpp_err=
22298 fi
22299else
22300 ac_cpp_err=yes
22301fi
22302if test -z "$ac_cpp_err"; then
22303 ac_header_preproc=yes
22304else
22305 echo "$as_me: failed program was:" >&5
22306sed 's/^/| /' conftest.$ac_ext >&5
22307
22308 ac_header_preproc=no
22309fi
22310rm -f conftest.err conftest.$ac_ext
22311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22312echo "${ECHO_T}$ac_header_preproc" >&6
22313
22314# So? What about this header?
ac1cb8d3
VS
22315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22316 yes:no: )
a848cd7e
SC
22317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22321 ac_header_preproc=yes
a848cd7e 22322 ;;
ac1cb8d3 22323 no:yes:* )
a848cd7e
SC
22324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22336 (
22337 cat <<\_ASBOX
ac1cb8d3
VS
22338## ----------------------------------------- ##
22339## Report this to wx-dev@lists.wxwidgets.org ##
22340## ----------------------------------------- ##
a848cd7e
SC
22341_ASBOX
22342 ) |
22343 sed "s/^/$as_me: WARNING: /" >&2
22344 ;;
22345esac
22346echo "$as_me:$LINENO: checking for $ac_header" >&5
22347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22348if eval "test \"\${$as_ac_Header+set}\" = set"; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350else
ac1cb8d3 22351 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22352fi
22353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22355
22356fi
22357if test `eval echo '${'$as_ac_Header'}'` = yes; then
22358 cat >>confdefs.h <<_ACEOF
22359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22360_ACEOF
22361
22362fi
22363
22364done
22365
22366 if test "${ac_cv_header_windows_h+set}" = set; then
22367 echo "$as_me:$LINENO: checking for windows.h" >&5
22368echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22369if test "${ac_cv_header_windows_h+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22371fi
22372echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22373echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22374else
22375 # Is the header compilable?
22376echo "$as_me:$LINENO: checking windows.h usability" >&5
22377echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22378cat >conftest.$ac_ext <<_ACEOF
22379/* confdefs.h. */
22380_ACEOF
22381cat confdefs.h >>conftest.$ac_ext
22382cat >>conftest.$ac_ext <<_ACEOF
22383/* end confdefs.h. */
22384$ac_includes_default
22385#include <windows.h>
22386_ACEOF
22387rm -f conftest.$ac_objext
22388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22389 (eval $ac_compile) 2>conftest.er1
a848cd7e 22390 ac_status=$?
ac1cb8d3
VS
22391 grep -v '^ *+' conftest.er1 >conftest.err
22392 rm -f conftest.er1
22393 cat conftest.err >&5
a848cd7e
SC
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } &&
c228d3a4
RN
22396 { ac_try='test -z "$ac_c_werror_flag"
22397 || test ! -s conftest.err'
ac1cb8d3
VS
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; } &&
22403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22406 ac_status=$?
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409 ac_header_compiler=yes
22410else
22411 echo "$as_me: failed program was:" >&5
22412sed 's/^/| /' conftest.$ac_ext >&5
22413
22414ac_header_compiler=no
22415fi
ac1cb8d3 22416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22418echo "${ECHO_T}$ac_header_compiler" >&6
22419
22420# Is the header present?
22421echo "$as_me:$LINENO: checking windows.h presence" >&5
22422echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22423cat >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 <windows.h>
22430_ACEOF
22431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22433 ac_status=$?
22434 grep -v '^ *+' conftest.er1 >conftest.err
22435 rm -f conftest.er1
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } >/dev/null; then
22439 if test -s conftest.err; then
22440 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22442 else
22443 ac_cpp_err=
22444 fi
22445else
22446 ac_cpp_err=yes
22447fi
22448if test -z "$ac_cpp_err"; then
22449 ac_header_preproc=yes
22450else
22451 echo "$as_me: failed program was:" >&5
22452sed 's/^/| /' conftest.$ac_ext >&5
22453
22454 ac_header_preproc=no
22455fi
22456rm -f conftest.err conftest.$ac_ext
22457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22458echo "${ECHO_T}$ac_header_preproc" >&6
22459
22460# So? What about this header?
ac1cb8d3
VS
22461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22462 yes:no: )
a848cd7e
SC
22463 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22464echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22465 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22466echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22467 ac_header_preproc=yes
a848cd7e 22468 ;;
ac1cb8d3 22469 no:yes:* )
a848cd7e
SC
22470 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22471echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22472 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22473echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22474 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22475echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22476 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22477echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22478 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22479echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22480 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22481echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22482 (
22483 cat <<\_ASBOX
ac1cb8d3
VS
22484## ----------------------------------------- ##
22485## Report this to wx-dev@lists.wxwidgets.org ##
22486## ----------------------------------------- ##
a848cd7e
SC
22487_ASBOX
22488 ) |
22489 sed "s/^/$as_me: WARNING: /" >&2
22490 ;;
22491esac
22492echo "$as_me:$LINENO: checking for windows.h" >&5
22493echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22494if test "${ac_cv_header_windows_h+set}" = set; then
22495 echo $ECHO_N "(cached) $ECHO_C" >&6
22496else
22497 ac_cv_header_windows_h=$ac_header_preproc
22498fi
22499echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22500echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22501
22502fi
22503if test $ac_cv_header_windows_h = yes; then
22504 :
22505else
22506
22507 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22508echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22509 { (exit 1); exit 1; }; }
22510
22511fi
22512
22513
22514
22515 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22516
22517 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22518 LIBS="$LIBS -loleacc"
22519 fi
22520
22521 case "${host}" in
22522 *-*-cygwin* )
22523 LIBS="$LIBS -lkernel32 -luser32"
22524 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22525 esac
22526
22527 if test "$wxUSE_ODBC" = "sys" ; then
22528 wxUSE_ODBC = "yes"
22529 fi
22530 if test "$wxUSE_ODBC" = "yes" ; then
22531 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22532 cat >>confdefs.h <<\_ACEOF
22533#define wxUSE_ODBC 1
22534_ACEOF
22535
22536 fi
22537
22538 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22539 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22540
22541 WIN32INSTALL=win32install
22542fi
22543
22544if test "$wxUSE_GUI" = "yes"; then
22545 USE_GUI=1
22546
22547 GUI_TK_LIBRARY=
22548
22549 WXGTK12=
22550 WXGTK127=
22551 WXGTK20=
22552 WXGPE=
22553
22554 if test "$wxUSE_MSW" = 1 ; then
22555 TOOLKIT=MSW
22556 GUIDIST=MSW_DIST
22557
ceec2216 22558 case "${host}" in
a848cd7e
SC
22559 *-*-mingw32* )
22560 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22561 esac
22562 fi
22563
22564 if test "$wxUSE_GTK" = 1; then
22565 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22566echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22567
22568 gtk_version_cached=1
22569 if test "${wx_cv_lib_gtk+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22571else
22572
22573 gtk_version_cached=0
22574 echo "$as_me:$LINENO: result: " >&5
22575echo "${ECHO_T}" >&6
22576
22577 GTK_MODULES=
22578 if test "$wxUSE_THREADS" = "yes"; then
22579 GTK_MODULES=gthread
22580 fi
22581
22582 wx_cv_lib_gtk=
22583 if test "x$wxUSE_GTK2" = "xyes"; then
22584 # Check whether --enable-gtktest or --disable-gtktest was given.
22585if test "${enable_gtktest+set}" = set; then
22586 enableval="$enable_gtktest"
22587
22588else
22589 enable_gtktest=yes
22590fi;
22591
22592 pkg_config_args=gtk+-2.0
22593 for module in . $GTK_MODULES
22594 do
22595 case "$module" in
22596 gthread)
22597 pkg_config_args="$pkg_config_args gthread-2.0"
22598 ;;
22599 esac
22600 done
22601
22602 no_gtk=""
22603
22604 # Extract the first word of "pkg-config", so it can be a program name with args.
22605set dummy pkg-config; ac_word=$2
22606echo "$as_me:$LINENO: checking for $ac_word" >&5
22607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22608if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610else
22611 case $PKG_CONFIG in
22612 [\\/]* | ?:[\\/]*)
22613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22614 ;;
22615 *)
22616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22617for as_dir in $PATH
22618do
22619 IFS=$as_save_IFS
22620 test -z "$as_dir" && as_dir=.
22621 for ac_exec_ext in '' $ac_executable_extensions; do
22622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22623 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22625 break 2
22626 fi
22627done
22628done
22629
22630 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22631 ;;
22632esac
22633fi
22634PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22635
22636if test -n "$PKG_CONFIG"; then
22637 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22638echo "${ECHO_T}$PKG_CONFIG" >&6
22639else
22640 echo "$as_me:$LINENO: result: no" >&5
22641echo "${ECHO_T}no" >&6
22642fi
22643
22644
22645 if test x$PKG_CONFIG != xno ; then
22646 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22647 :
22648 else
c2218763 22649 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22650 no_gtk=yes
22651 PKG_CONFIG=no
22652 fi
22653 else
22654 no_gtk=yes
22655 fi
22656
22657 min_gtk_version=2.0.0
22658 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22659echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22660
22661 if test x$PKG_CONFIG != xno ; then
22662 ## don't try to run the test against uninstalled libtool libs
22663 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22664 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22665 enable_gtktest=no
22666 fi
22667
22668 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22669 :
22670 else
22671 no_gtk=yes
22672 fi
22673 fi
22674
22675 if test x"$no_gtk" = x ; then
22676 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22677 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22678 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22679 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22680 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22681 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22682 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22683 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22684 if test "x$enable_gtktest" = "xyes" ; then
22685 ac_save_CFLAGS="$CFLAGS"
22686 ac_save_LIBS="$LIBS"
22687 CFLAGS="$CFLAGS $GTK_CFLAGS"
22688 LIBS="$GTK_LIBS $LIBS"
22689 rm -f conf.gtktest
22690 if test "$cross_compiling" = yes; then
22691 echo $ac_n "cross compiling; assumed OK... $ac_c"
22692else
22693 cat >conftest.$ac_ext <<_ACEOF
22694/* confdefs.h. */
22695_ACEOF
22696cat confdefs.h >>conftest.$ac_ext
22697cat >>conftest.$ac_ext <<_ACEOF
22698/* end confdefs.h. */
22699
22700#include <gtk/gtk.h>
22701#include <stdio.h>
22702#include <stdlib.h>
22703
22704int
22705main ()
22706{
22707 int major, minor, micro;
22708 char *tmp_version;
22709
22710 system ("touch conf.gtktest");
22711
22712 /* HP/UX 9 (%@#!) writes to sscanf strings */
22713 tmp_version = g_strdup("$min_gtk_version");
22714 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22715 printf("%s, bad version string\n", "$min_gtk_version");
22716 exit(1);
22717 }
22718
22719 if ((gtk_major_version != $gtk_config_major_version) ||
22720 (gtk_minor_version != $gtk_config_minor_version) ||
22721 (gtk_micro_version != $gtk_config_micro_version))
22722 {
22723 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22724 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22725 gtk_major_version, gtk_minor_version, gtk_micro_version);
22726 printf ("*** was found! If pkg-config was correct, then it is best\n");
22727 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22728 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22729 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22730 printf("*** required on your system.\n");
22731 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22732 printf("*** to point to the correct configuration files\n");
22733 }
22734 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22735 (gtk_minor_version != GTK_MINOR_VERSION) ||
22736 (gtk_micro_version != GTK_MICRO_VERSION))
22737 {
22738 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22739 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22740 printf("*** library (version %d.%d.%d)\n",
22741 gtk_major_version, gtk_minor_version, gtk_micro_version);
22742 }
22743 else
22744 {
22745 if ((gtk_major_version > major) ||
22746 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22747 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22748 {
22749 return 0;
22750 }
22751 else
22752 {
22753 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22754 gtk_major_version, gtk_minor_version, gtk_micro_version);
22755 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22756 major, minor, micro);
22757 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22758 printf("***\n");
22759 printf("*** If you have already installed a sufficiently new version, this error\n");
22760 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22761 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22762 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22763 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22764 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22765 printf("*** so that the correct libraries are found at run-time))\n");
22766 }
22767 }
22768 return 1;
22769}
22770
22771_ACEOF
22772rm -f conftest$ac_exeext
22773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22774 (eval $ac_link) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 :
22784else
22785 echo "$as_me: program exited with status $ac_status" >&5
22786echo "$as_me: failed program was:" >&5
22787sed 's/^/| /' conftest.$ac_ext >&5
22788
22789( exit $ac_status )
22790no_gtk=yes
22791fi
ac1cb8d3 22792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22793fi
22794 CFLAGS="$ac_save_CFLAGS"
22795 LIBS="$ac_save_LIBS"
22796 fi
22797 fi
22798 if test "x$no_gtk" = x ; then
22799 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22800echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22801 wx_cv_lib_gtk=2.0
22802 else
22803 echo "$as_me:$LINENO: result: no" >&5
22804echo "${ECHO_T}no" >&6
22805 if test "$PKG_CONFIG" = "no" ; then
22806 echo "*** A new enough version of pkg-config was not found."
22807 echo "*** See http://pkgconfig.sourceforge.net"
22808 else
22809 if test -f conf.gtktest ; then
22810 :
22811 else
22812 echo "*** Could not run GTK+ test program, checking why..."
22813 ac_save_CFLAGS="$CFLAGS"
22814 ac_save_LIBS="$LIBS"
22815 CFLAGS="$CFLAGS $GTK_CFLAGS"
22816 LIBS="$LIBS $GTK_LIBS"
22817 cat >conftest.$ac_ext <<_ACEOF
22818/* confdefs.h. */
22819_ACEOF
22820cat confdefs.h >>conftest.$ac_ext
22821cat >>conftest.$ac_ext <<_ACEOF
22822/* end confdefs.h. */
22823
22824#include <gtk/gtk.h>
22825#include <stdio.h>
22826
22827int
22828main ()
22829{
22830 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22831 ;
22832 return 0;
22833}
22834_ACEOF
22835rm -f conftest.$ac_objext conftest$ac_exeext
22836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22837 (eval $ac_link) 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); } &&
c228d3a4
RN
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_exeext'
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 echo "*** The test program compiled, but did not run. This usually means"
22858 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22859 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22860 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22861 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22862 echo "*** is required on your system"
22863 echo "***"
22864 echo "*** If you have an old version installed, it is best to remove it, although"
22865 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22866else
22867 echo "$as_me: failed program was:" >&5
22868sed 's/^/| /' conftest.$ac_ext >&5
22869
22870 echo "*** The test program failed to compile or link. See the file config.log for the"
22871 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22872fi
ac1cb8d3
VS
22873rm -f conftest.err conftest.$ac_objext \
22874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22875 CFLAGS="$ac_save_CFLAGS"
22876 LIBS="$ac_save_LIBS"
22877 fi
22878 fi
22879 GTK_CFLAGS=""
22880 GTK_LIBS=""
22881 :
22882 fi
22883
22884
22885 rm -f conf.gtktest
22886
22887 else
22888
22889# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22890if test "${with_gtk_prefix+set}" = set; then
22891 withval="$with_gtk_prefix"
22892 gtk_config_prefix="$withval"
22893else
22894 gtk_config_prefix=""
22895fi;
22896
22897# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22898if test "${with_gtk_exec_prefix+set}" = set; then
22899 withval="$with_gtk_exec_prefix"
22900 gtk_config_exec_prefix="$withval"
22901else
22902 gtk_config_exec_prefix=""
22903fi;
22904# Check whether --enable-gtktest or --disable-gtktest was given.
22905if test "${enable_gtktest+set}" = set; then
22906 enableval="$enable_gtktest"
22907
22908else
22909 enable_gtktest=yes
22910fi;
22911
22912 for module in . $GTK_MODULES
22913 do
22914 case "$module" in
22915 gthread)
22916 gtk_config_args="$gtk_config_args gthread"
22917 ;;
22918 esac
22919 done
22920
22921 if test x$gtk_config_exec_prefix != x ; then
22922 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22923 if test x${GTK_CONFIG+set} != xset ; then
22924 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22925 fi
22926 fi
22927 if test x$gtk_config_prefix != x ; then
22928 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22929 if test x${GTK_CONFIG+set} != xset ; then
22930 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22931 fi
22932 fi
22933
22934 # Extract the first word of "gtk-config", so it can be a program name with args.
22935set dummy gtk-config; ac_word=$2
22936echo "$as_me:$LINENO: checking for $ac_word" >&5
22937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22938if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22939 echo $ECHO_N "(cached) $ECHO_C" >&6
22940else
22941 case $GTK_CONFIG in
22942 [\\/]* | ?:[\\/]*)
22943 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22944 ;;
22945 *)
22946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22947for as_dir in $PATH
22948do
22949 IFS=$as_save_IFS
22950 test -z "$as_dir" && as_dir=.
22951 for ac_exec_ext in '' $ac_executable_extensions; do
22952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22953 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22955 break 2
22956 fi
22957done
22958done
22959
22960 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22961 ;;
22962esac
22963fi
22964GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22965
22966if test -n "$GTK_CONFIG"; then
22967 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22968echo "${ECHO_T}$GTK_CONFIG" >&6
22969else
22970 echo "$as_me:$LINENO: result: no" >&5
22971echo "${ECHO_T}no" >&6
22972fi
22973
22974 min_gtk_version=1.2.7
22975 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22976echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22977 no_gtk=""
22978 if test "$GTK_CONFIG" = "no" ; then
22979 no_gtk=yes
22980 else
22981 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22982 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22983 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22985 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22986 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22987 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22988 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22989 if test "x$enable_gtktest" = "xyes" ; then
22990 ac_save_CFLAGS="$CFLAGS"
22991 ac_save_LIBS="$LIBS"
22992 CFLAGS="$CFLAGS $GTK_CFLAGS"
22993 LIBS="$GTK_LIBS $LIBS"
22994 rm -f conf.gtktest
22995 if test "$cross_compiling" = yes; then
22996 echo $ac_n "cross compiling; assumed OK... $ac_c"
22997else
22998 cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h. */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h. */
23004
23005#include <gtk/gtk.h>
23006#include <stdio.h>
23007#include <stdlib.h>
23008
23009int
23010main ()
23011{
23012 int major, minor, micro;
23013 char *tmp_version;
23014
23015 system ("touch conf.gtktest");
23016
23017 /* HP/UX 9 (%@#!) writes to sscanf strings */
23018 tmp_version = g_strdup("$min_gtk_version");
23019 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23020 printf("%s, bad version string\n", "$min_gtk_version");
23021 exit(1);
23022 }
23023
23024 if ((gtk_major_version != $gtk_config_major_version) ||
23025 (gtk_minor_version != $gtk_config_minor_version) ||
23026 (gtk_micro_version != $gtk_config_micro_version))
23027 {
23028 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23029 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23030 gtk_major_version, gtk_minor_version, gtk_micro_version);
23031 printf ("*** was found! If gtk-config was correct, then it is best\n");
23032 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23033 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23034 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23035 printf("*** required on your system.\n");
23036 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23037 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23038 printf("*** before re-running configure\n");
23039 }
23040#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23041 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23042 (gtk_minor_version != GTK_MINOR_VERSION) ||
23043 (gtk_micro_version != GTK_MICRO_VERSION))
23044 {
23045 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23046 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23047 printf("*** library (version %d.%d.%d)\n",
23048 gtk_major_version, gtk_minor_version, gtk_micro_version);
23049 }
23050#endif /* defined (GTK_MAJOR_VERSION) ... */
23051 else
23052 {
23053 if ((gtk_major_version > major) ||
23054 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23055 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23056 {
23057 return 0;
23058 }
23059 else
23060 {
23061 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23062 gtk_major_version, gtk_minor_version, gtk_micro_version);
23063 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23064 major, minor, micro);
23065 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23066 printf("***\n");
23067 printf("*** If you have already installed a sufficiently new version, this error\n");
23068 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23069 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23070 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23071 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23072 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23073 printf("*** so that the correct libraries are found at run-time))\n");
23074 }
23075 }
23076 return 1;
23077}
23078
23079_ACEOF
23080rm -f conftest$ac_exeext
23081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23082 (eval $ac_link) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 :
23092else
23093 echo "$as_me: program exited with status $ac_status" >&5
23094echo "$as_me: failed program was:" >&5
23095sed 's/^/| /' conftest.$ac_ext >&5
23096
23097( exit $ac_status )
23098no_gtk=yes
23099fi
ac1cb8d3 23100rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23101fi
23102 CFLAGS="$ac_save_CFLAGS"
23103 LIBS="$ac_save_LIBS"
23104 fi
23105 fi
23106 if test "x$no_gtk" = x ; then
23107 echo "$as_me:$LINENO: result: yes" >&5
23108echo "${ECHO_T}yes" >&6
23109 wx_cv_lib_gtk=1.2.7
23110 else
23111 echo "$as_me:$LINENO: result: no" >&5
23112echo "${ECHO_T}no" >&6
23113 if test "$GTK_CONFIG" = "no" ; then
23114 echo "*** The gtk-config script installed by GTK could not be found"
23115 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23116 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23117 echo "*** full path to gtk-config."
23118 else
23119 if test -f conf.gtktest ; then
23120 :
23121 else
23122 echo "*** Could not run GTK test program, checking why..."
23123 CFLAGS="$CFLAGS $GTK_CFLAGS"
23124 LIBS="$LIBS $GTK_LIBS"
23125 cat >conftest.$ac_ext <<_ACEOF
23126/* confdefs.h. */
23127_ACEOF
23128cat confdefs.h >>conftest.$ac_ext
23129cat >>conftest.$ac_ext <<_ACEOF
23130/* end confdefs.h. */
23131
23132#include <gtk/gtk.h>
23133#include <stdio.h>
23134
23135int
23136main ()
23137{
23138 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23139 ;
23140 return 0;
23141}
23142_ACEOF
23143rm -f conftest.$ac_objext conftest$ac_exeext
23144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23145 (eval $ac_link) 2>conftest.er1
a848cd7e 23146 ac_status=$?
ac1cb8d3
VS
23147 grep -v '^ *+' conftest.er1 >conftest.err
23148 rm -f conftest.er1
23149 cat conftest.err >&5
a848cd7e
SC
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } &&
c228d3a4
RN
23152 { ac_try='test -z "$ac_c_werror_flag"
23153 || test ! -s conftest.err'
ac1cb8d3
VS
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23156 ac_status=$?
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; } &&
23159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23165 echo "*** The test program compiled, but did not run. This usually means"
23166 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23167 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23168 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23169 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23170 echo "*** is required on your system"
23171 echo "***"
23172 echo "*** If you have an old version installed, it is best to remove it, although"
23173 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23174 echo "***"
23175 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23176 echo "*** came with the system with the command"
23177 echo "***"
23178 echo "*** rpm --erase --nodeps gtk gtk-devel"
23179else
23180 echo "$as_me: failed program was:" >&5
23181sed 's/^/| /' conftest.$ac_ext >&5
23182
23183 echo "*** The test program failed to compile or link. See the file config.log for the"
23184 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23185 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23186 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23187fi
ac1cb8d3
VS
23188rm -f conftest.err conftest.$ac_objext \
23189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23190 CFLAGS="$ac_save_CFLAGS"
23191 LIBS="$ac_save_LIBS"
23192 fi
23193 fi
23194 GTK_CFLAGS=""
23195 GTK_LIBS=""
23196 :
23197 fi
23198
23199
23200 rm -f conf.gtktest
23201
23202
23203 if test -z "$wx_cv_lib_gtk"; then
23204
23205# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23206if test "${with_gtk_prefix+set}" = set; then
23207 withval="$with_gtk_prefix"
23208 gtk_config_prefix="$withval"
23209else
23210 gtk_config_prefix=""
23211fi;
23212
23213# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23214if test "${with_gtk_exec_prefix+set}" = set; then
23215 withval="$with_gtk_exec_prefix"
23216 gtk_config_exec_prefix="$withval"
23217else
23218 gtk_config_exec_prefix=""
23219fi;
23220# Check whether --enable-gtktest or --disable-gtktest was given.
23221if test "${enable_gtktest+set}" = set; then
23222 enableval="$enable_gtktest"
23223
23224else
23225 enable_gtktest=yes
23226fi;
23227
23228 for module in . $GTK_MODULES
23229 do
23230 case "$module" in
23231 gthread)
23232 gtk_config_args="$gtk_config_args gthread"
23233 ;;
23234 esac
23235 done
23236
23237 if test x$gtk_config_exec_prefix != x ; then
23238 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23239 if test x${GTK_CONFIG+set} != xset ; then
23240 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23241 fi
23242 fi
23243 if test x$gtk_config_prefix != x ; then
23244 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23245 if test x${GTK_CONFIG+set} != xset ; then
23246 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23247 fi
23248 fi
23249
23250 # Extract the first word of "gtk-config", so it can be a program name with args.
23251set dummy gtk-config; ac_word=$2
23252echo "$as_me:$LINENO: checking for $ac_word" >&5
23253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23254if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23256else
23257 case $GTK_CONFIG in
23258 [\\/]* | ?:[\\/]*)
23259 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23260 ;;
23261 *)
23262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23263for as_dir in $PATH
23264do
23265 IFS=$as_save_IFS
23266 test -z "$as_dir" && as_dir=.
23267 for ac_exec_ext in '' $ac_executable_extensions; do
23268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23269 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23271 break 2
23272 fi
23273done
23274done
23275
23276 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23277 ;;
23278esac
23279fi
23280GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23281
23282if test -n "$GTK_CONFIG"; then
23283 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23284echo "${ECHO_T}$GTK_CONFIG" >&6
23285else
23286 echo "$as_me:$LINENO: result: no" >&5
23287echo "${ECHO_T}no" >&6
23288fi
23289
23290 min_gtk_version=1.2.3
23291 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23292echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23293 no_gtk=""
23294 if test "$GTK_CONFIG" = "no" ; then
23295 no_gtk=yes
23296 else
23297 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23298 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23299 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23300 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23301 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23302 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23303 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23304 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23305 if test "x$enable_gtktest" = "xyes" ; then
23306 ac_save_CFLAGS="$CFLAGS"
23307 ac_save_LIBS="$LIBS"
23308 CFLAGS="$CFLAGS $GTK_CFLAGS"
23309 LIBS="$GTK_LIBS $LIBS"
23310 rm -f conf.gtktest
23311 if test "$cross_compiling" = yes; then
23312 echo $ac_n "cross compiling; assumed OK... $ac_c"
23313else
23314 cat >conftest.$ac_ext <<_ACEOF
23315/* confdefs.h. */
23316_ACEOF
23317cat confdefs.h >>conftest.$ac_ext
23318cat >>conftest.$ac_ext <<_ACEOF
23319/* end confdefs.h. */
23320
23321#include <gtk/gtk.h>
23322#include <stdio.h>
23323#include <stdlib.h>
23324
23325int
23326main ()
23327{
23328 int major, minor, micro;
23329 char *tmp_version;
23330
23331 system ("touch conf.gtktest");
23332
23333 /* HP/UX 9 (%@#!) writes to sscanf strings */
23334 tmp_version = g_strdup("$min_gtk_version");
23335 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23336 printf("%s, bad version string\n", "$min_gtk_version");
23337 exit(1);
23338 }
23339
23340 if ((gtk_major_version != $gtk_config_major_version) ||
23341 (gtk_minor_version != $gtk_config_minor_version) ||
23342 (gtk_micro_version != $gtk_config_micro_version))
23343 {
23344 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23345 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23346 gtk_major_version, gtk_minor_version, gtk_micro_version);
23347 printf ("*** was found! If gtk-config was correct, then it is best\n");
23348 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23349 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23350 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23351 printf("*** required on your system.\n");
23352 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23353 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23354 printf("*** before re-running configure\n");
23355 }
23356#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23357 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23358 (gtk_minor_version != GTK_MINOR_VERSION) ||
23359 (gtk_micro_version != GTK_MICRO_VERSION))
23360 {
23361 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23362 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23363 printf("*** library (version %d.%d.%d)\n",
23364 gtk_major_version, gtk_minor_version, gtk_micro_version);
23365 }
23366#endif /* defined (GTK_MAJOR_VERSION) ... */
23367 else
23368 {
23369 if ((gtk_major_version > major) ||
23370 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23371 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23372 {
23373 return 0;
23374 }
23375 else
23376 {
23377 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23378 gtk_major_version, gtk_minor_version, gtk_micro_version);
23379 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23380 major, minor, micro);
23381 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23382 printf("***\n");
23383 printf("*** If you have already installed a sufficiently new version, this error\n");
23384 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23385 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23386 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23387 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23388 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23389 printf("*** so that the correct libraries are found at run-time))\n");
23390 }
23391 }
23392 return 1;
23393}
23394
23395_ACEOF
23396rm -f conftest$ac_exeext
23397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23398 (eval $ac_link) 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23404 ac_status=$?
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23407 :
23408else
23409 echo "$as_me: program exited with status $ac_status" >&5
23410echo "$as_me: failed program was:" >&5
23411sed 's/^/| /' conftest.$ac_ext >&5
23412
23413( exit $ac_status )
23414no_gtk=yes
23415fi
ac1cb8d3 23416rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23417fi
23418 CFLAGS="$ac_save_CFLAGS"
23419 LIBS="$ac_save_LIBS"
23420 fi
23421 fi
23422 if test "x$no_gtk" = x ; then
23423 echo "$as_me:$LINENO: result: yes" >&5
23424echo "${ECHO_T}yes" >&6
23425 wx_cv_lib_gtk=1.2.3
23426 else
23427 echo "$as_me:$LINENO: result: no" >&5
23428echo "${ECHO_T}no" >&6
23429 if test "$GTK_CONFIG" = "no" ; then
23430 echo "*** The gtk-config script installed by GTK could not be found"
23431 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23432 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23433 echo "*** full path to gtk-config."
23434 else
23435 if test -f conf.gtktest ; then
23436 :
23437 else
23438 echo "*** Could not run GTK test program, checking why..."
23439 CFLAGS="$CFLAGS $GTK_CFLAGS"
23440 LIBS="$LIBS $GTK_LIBS"
23441 cat >conftest.$ac_ext <<_ACEOF
23442/* confdefs.h. */
23443_ACEOF
23444cat confdefs.h >>conftest.$ac_ext
23445cat >>conftest.$ac_ext <<_ACEOF
23446/* end confdefs.h. */
23447
23448#include <gtk/gtk.h>
23449#include <stdio.h>
23450
23451int
23452main ()
23453{
23454 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23455 ;
23456 return 0;
23457}
23458_ACEOF
23459rm -f conftest.$ac_objext conftest$ac_exeext
23460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23461 (eval $ac_link) 2>conftest.er1
a848cd7e 23462 ac_status=$?
ac1cb8d3
VS
23463 grep -v '^ *+' conftest.er1 >conftest.err
23464 rm -f conftest.er1
23465 cat conftest.err >&5
a848cd7e
SC
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } &&
c228d3a4
RN
23468 { ac_try='test -z "$ac_c_werror_flag"
23469 || test ! -s conftest.err'
ac1cb8d3
VS
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; } &&
23475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23478 ac_status=$?
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; }; then
23481 echo "*** The test program compiled, but did not run. This usually means"
23482 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23483 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23484 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23485 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23486 echo "*** is required on your system"
23487 echo "***"
23488 echo "*** If you have an old version installed, it is best to remove it, although"
23489 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23490 echo "***"
23491 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23492 echo "*** came with the system with the command"
23493 echo "***"
23494 echo "*** rpm --erase --nodeps gtk gtk-devel"
23495else
23496 echo "$as_me: failed program was:" >&5
23497sed 's/^/| /' conftest.$ac_ext >&5
23498
23499 echo "*** The test program failed to compile or link. See the file config.log for the"
23500 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23501 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23502 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23503fi
ac1cb8d3
VS
23504rm -f conftest.err conftest.$ac_objext \
23505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23506 CFLAGS="$ac_save_CFLAGS"
23507 LIBS="$ac_save_LIBS"
23508 fi
23509 fi
23510 GTK_CFLAGS=""
23511 GTK_LIBS=""
23512 :
23513 fi
23514
23515
23516 rm -f conf.gtktest
23517
23518 fi
23519 fi
23520
23521 if test -z "$wx_cv_lib_gtk"; then
23522 wx_cv_lib_gtk=none
23523 else
23524 wx_cv_cflags_gtk=$GTK_CFLAGS
23525 wx_cv_libs_gtk=$GTK_LIBS
23526 fi
23527
23528
23529fi
23530
23531
23532 if test "$gtk_version_cached" = 1; then
23533 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23534echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23535 fi
23536
23537 case "$wx_cv_lib_gtk" in
23538 2.0) WXGTK20=1
23539 TOOLKIT_VERSION=2
23540 ;;
23541 1.2.7) WXGTK127=1
23542 WXGTK12=1
23543 ;;
23544 1.2.3) WXGTK12=1
23545 ;;
23546 *) { { echo "$as_me:$LINENO: error:
23547Please check that gtk-config is in path, the directory
23548where GTK+ libraries are installed (returned by
23549'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23550equivalent variable and GTK+ is version 1.2.3 or above.
23551 " >&5
23552echo "$as_me: error:
23553Please check that gtk-config is in path, the directory
23554where GTK+ libraries are installed (returned by
23555'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23556equivalent variable and GTK+ is version 1.2.3 or above.
23557 " >&2;}
23558 { (exit 1); exit 1; }; }
23559 ;;
23560 esac
23561
23562 if test "$WXGTK20" = 1; then
23563 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23564
23565 succeeded=no
23566
23567 if test -z "$PKG_CONFIG"; then
23568 # Extract the first word of "pkg-config", so it can be a program name with args.
23569set dummy pkg-config; ac_word=$2
23570echo "$as_me:$LINENO: checking for $ac_word" >&5
23571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23572if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23574else
23575 case $PKG_CONFIG in
23576 [\\/]* | ?:[\\/]*)
23577 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23578 ;;
23579 *)
23580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23581for as_dir in $PATH
23582do
23583 IFS=$as_save_IFS
23584 test -z "$as_dir" && as_dir=.
23585 for ac_exec_ext in '' $ac_executable_extensions; do
23586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23587 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23589 break 2
23590 fi
23591done
23592done
23593
23594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23595 ;;
23596esac
23597fi
23598PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23599
23600if test -n "$PKG_CONFIG"; then
23601 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23602echo "${ECHO_T}$PKG_CONFIG" >&6
23603else
23604 echo "$as_me:$LINENO: result: no" >&5
23605echo "${ECHO_T}no" >&6
23606fi
23607
23608 fi
23609
23610 if test "$PKG_CONFIG" = "no" ; then
23611 echo "*** The pkg-config script could not be found. Make sure it is"
23612 echo "*** in your path, or set the PKG_CONFIG environment variable"
23613 echo "*** to the full path to pkg-config."
23614 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23615 else
23616 PKG_CONFIG_MIN_VERSION=0.9.0
23617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23618 echo "$as_me:$LINENO: checking for pangoft2" >&5
23619echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23620
23621 if $PKG_CONFIG --exists "pangoft2" ; then
23622 echo "$as_me:$LINENO: result: yes" >&5
23623echo "${ECHO_T}yes" >&6
23624 succeeded=yes
23625
23626 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23627echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23628 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23629 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23630echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23631
23632 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23633echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23634 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23635 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23636echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23637 else
23638 PANGOFT2_CFLAGS=""
23639 PANGOFT2_LIBS=""
23640 ## If we have a custom action on failure, don't print errors, but
23641 ## do set a variable so people can do so.
23642 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23643
23644 fi
23645
23646
23647
23648 else
23649 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23650 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23651 fi
23652 fi
23653
23654 if test $succeeded = yes; then
23655
23656 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
ceec2216
RL
23657 # FIXME: GTK_LIBS already has a lot of what this is
23658 # about to add, but we go ahead and just add
23659 # it all again anyway.
23660 # This is not a good way to manage things. And simply
23661 # uniq'ing the list later is hardly better.
a848cd7e
SC
23662 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23663
23664 else
23665
23666 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23667echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23668 wxUSE_PRINTING_ARCHITECTURE="no"
23669
23670
23671 fi
23672
23673 fi
304205f1
VS
23674
23675 save_CFLAGS="$CFLAGS"
23676 save_LIBS="$LIBS"
23677 CFLAGS="$CFLAGS $GTK_CFLAGS"
23678 LIBS="$LIBS $GTK_LIBS"
23679
23680for ac_func in pango_font_family_is_monospace
23681do
23682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23683echo "$as_me:$LINENO: checking for $ac_func" >&5
23684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23685if eval "test \"\${$as_ac_var+set}\" = set"; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23687else
23688 cat >conftest.$ac_ext <<_ACEOF
23689/* confdefs.h. */
23690_ACEOF
23691cat confdefs.h >>conftest.$ac_ext
23692cat >>conftest.$ac_ext <<_ACEOF
23693/* end confdefs.h. */
23694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23696#define $ac_func innocuous_$ac_func
23697
23698/* System header to define __stub macros and hopefully few prototypes,
23699 which can conflict with char $ac_func (); below.
23700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23701 <limits.h> exists even on freestanding compilers. */
23702
23703#ifdef __STDC__
23704# include <limits.h>
23705#else
23706# include <assert.h>
23707#endif
23708
23709#undef $ac_func
23710
23711/* Override any gcc2 internal prototype to avoid an error. */
23712#ifdef __cplusplus
23713extern "C"
23714{
23715#endif
23716/* We use char because int might match the return type of a gcc2
23717 builtin and then its argument prototype would still apply. */
23718char $ac_func ();
23719/* The GNU C library defines this for functions which it implements
23720 to always fail with ENOSYS. Some functions are actually named
23721 something starting with __ and the normal name is an alias. */
23722#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23723choke me
23724#else
23725char (*f) () = $ac_func;
23726#endif
23727#ifdef __cplusplus
23728}
23729#endif
23730
23731int
23732main ()
23733{
23734return f != $ac_func;
23735 ;
23736 return 0;
23737}
23738_ACEOF
23739rm -f conftest.$ac_objext conftest$ac_exeext
23740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23741 (eval $ac_link) 2>conftest.er1
23742 ac_status=$?
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } &&
c228d3a4
RN
23748 { ac_try='test -z "$ac_c_werror_flag"
23749 || test ! -s conftest.err'
304205f1
VS
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; } &&
23755 { ac_try='test -s conftest$ac_exeext'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 eval "$as_ac_var=yes"
23762else
23763 echo "$as_me: failed program was:" >&5
23764sed 's/^/| /' conftest.$ac_ext >&5
23765
23766eval "$as_ac_var=no"
23767fi
23768rm -f conftest.err conftest.$ac_objext \
23769 conftest$ac_exeext conftest.$ac_ext
23770fi
23771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23773if test `eval echo '${'$as_ac_var'}'` = yes; then
23774 cat >>confdefs.h <<_ACEOF
23775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23776_ACEOF
23777
23778fi
23779done
23780
23781 CFLAGS="$save_CFLAGS"
23782 LIBS="$save_LIBS"
a848cd7e
SC
23783 else
23784 if test "$wxUSE_UNICODE" = "yes"; then
23785 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23786echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23787 wxUSE_UNICODE=no
23788 fi
23789 fi
23790
23791 if test "$USE_DARWIN" != 1; then
23792
23793for ac_func in poll
23794do
23795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23796echo "$as_me:$LINENO: checking for $ac_func" >&5
23797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23798if eval "test \"\${$as_ac_var+set}\" = set"; then
23799 echo $ECHO_N "(cached) $ECHO_C" >&6
23800else
23801 cat >conftest.$ac_ext <<_ACEOF
23802/* confdefs.h. */
23803_ACEOF
23804cat confdefs.h >>conftest.$ac_ext
23805cat >>conftest.$ac_ext <<_ACEOF
23806/* end confdefs.h. */
ac1cb8d3
VS
23807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23809#define $ac_func innocuous_$ac_func
23810
a848cd7e
SC
23811/* System header to define __stub macros and hopefully few prototypes,
23812 which can conflict with char $ac_func (); below.
23813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23814 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23815
a848cd7e
SC
23816#ifdef __STDC__
23817# include <limits.h>
23818#else
23819# include <assert.h>
23820#endif
ac1cb8d3
VS
23821
23822#undef $ac_func
23823
a848cd7e
SC
23824/* Override any gcc2 internal prototype to avoid an error. */
23825#ifdef __cplusplus
23826extern "C"
23827{
23828#endif
23829/* We use char because int might match the return type of a gcc2
23830 builtin and then its argument prototype would still apply. */
23831char $ac_func ();
23832/* The GNU C library defines this for functions which it implements
23833 to always fail with ENOSYS. Some functions are actually named
23834 something starting with __ and the normal name is an alias. */
23835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23836choke me
23837#else
23838char (*f) () = $ac_func;
23839#endif
23840#ifdef __cplusplus
23841}
23842#endif
23843
23844int
23845main ()
23846{
23847return f != $ac_func;
23848 ;
23849 return 0;
23850}
23851_ACEOF
23852rm -f conftest.$ac_objext conftest$ac_exeext
23853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23854 (eval $ac_link) 2>conftest.er1
a848cd7e 23855 ac_status=$?
ac1cb8d3
VS
23856 grep -v '^ *+' conftest.er1 >conftest.err
23857 rm -f conftest.er1
23858 cat conftest.err >&5
a848cd7e
SC
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } &&
c228d3a4
RN
23861 { ac_try='test -z "$ac_c_werror_flag"
23862 || test ! -s conftest.err'
ac1cb8d3
VS
23863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23864 (eval $ac_try) 2>&5
23865 ac_status=$?
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); }; } &&
23868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870 (eval $ac_try) 2>&5
23871 ac_status=$?
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); }; }; then
23874 eval "$as_ac_var=yes"
23875else
23876 echo "$as_me: failed program was:" >&5
23877sed 's/^/| /' conftest.$ac_ext >&5
23878
23879eval "$as_ac_var=no"
23880fi
ac1cb8d3
VS
23881rm -f conftest.err conftest.$ac_objext \
23882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23883fi
23884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23886if test `eval echo '${'$as_ac_var'}'` = yes; then
23887 cat >>confdefs.h <<_ACEOF
23888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23889_ACEOF
23890
23891fi
23892done
23893
23894 fi
23895
23896 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23897 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23898
23899 AFMINSTALL=afminstall
23900 TOOLKIT=GTK
23901 GUIDIST=GTK_DIST
23902
23903 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23904echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23905if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23907else
23908 ac_check_lib_save_LIBS=$LIBS
23909LIBS="-lgdk $LIBS"
23910cat >conftest.$ac_ext <<_ACEOF
23911/* confdefs.h. */
23912_ACEOF
23913cat confdefs.h >>conftest.$ac_ext
23914cat >>conftest.$ac_ext <<_ACEOF
23915/* end confdefs.h. */
23916
23917/* Override any gcc2 internal prototype to avoid an error. */
23918#ifdef __cplusplus
23919extern "C"
23920#endif
23921/* We use char because int might match the return type of a gcc2
23922 builtin and then its argument prototype would still apply. */
23923char gdk_im_open ();
23924int
23925main ()
23926{
23927gdk_im_open ();
23928 ;
23929 return 0;
23930}
23931_ACEOF
23932rm -f conftest.$ac_objext conftest$ac_exeext
23933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23934 (eval $ac_link) 2>conftest.er1
a848cd7e 23935 ac_status=$?
ac1cb8d3
VS
23936 grep -v '^ *+' conftest.er1 >conftest.err
23937 rm -f conftest.er1
23938 cat conftest.err >&5
a848cd7e
SC
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } &&
c228d3a4
RN
23941 { ac_try='test -z "$ac_c_werror_flag"
23942 || test ! -s conftest.err'
ac1cb8d3
VS
23943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23944 (eval $ac_try) 2>&5
23945 ac_status=$?
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); }; } &&
23948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950 (eval $ac_try) 2>&5
23951 ac_status=$?
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); }; }; then
23954 ac_cv_lib_gdk_gdk_im_open=yes
23955else
23956 echo "$as_me: failed program was:" >&5
23957sed 's/^/| /' conftest.$ac_ext >&5
23958
23959ac_cv_lib_gdk_gdk_im_open=no
23960fi
ac1cb8d3
VS
23961rm -f conftest.err conftest.$ac_objext \
23962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23963LIBS=$ac_check_lib_save_LIBS
23964fi
23965echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23966echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23967if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23968 cat >>confdefs.h <<\_ACEOF
23969#define HAVE_XIM 1
23970_ACEOF
23971
23972fi
23973
23974
23975
23976 if test "$wxUSE_GPE" = "yes"; then
23977 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23978echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23979
23980ac_find_libraries=
23981for ac_dir in $SEARCH_LIB /usr/lib;
23982 do
23983 for ac_extension in a so sl dylib; do
23984 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23985 ac_find_libraries=$ac_dir
23986 break 2
23987 fi
23988 done
23989 done
23990
23991 if test "$ac_find_libraries" != "" ; then
23992
23993 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23994 result=$?
23995 if test $result = 0; then
23996 ac_path_to_link=""
23997 else
23998 ac_path_to_link=" -L$ac_find_libraries"
23999 fi
24000
24001 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24002 WXGPE=1
24003 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24004echo "${ECHO_T}found at $ac_find_libraries" >&6
24005 else
24006 echo "$as_me:$LINENO: result: not found" >&5
24007echo "${ECHO_T}not found" >&6
24008 fi
24009
24010 fi
24011 fi
24012
24013 if test "$wxUSE_MGL" = 1; then
24014 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24015echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24016 if test "x$MGL_ROOT" = x ; then
24017 echo "$as_me:$LINENO: result: not found" >&5
24018echo "${ECHO_T}not found" >&6
24019 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24020echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24021 { (exit 1); exit 1; }; }
24022 else
24023 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24024echo "${ECHO_T}$MGL_ROOT" >&6
24025 fi
24026
24027 echo "$as_me:$LINENO: checking for libmgl location" >&5
24028echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24029 case "${host}" in
24030 *-*-linux* )
24031 if test "x$wxUSE_SHARED" = xyes ; then
24032 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24033 else
24034 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24035 fi
24036 ;;
24037 *-pc-msdosdjgpp )
24038 mgl_os_candidates="dos32/dj2"
24039 ;;
24040 *)
24041 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24042echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24043 { (exit 1); exit 1; }; }
24044 esac
24045
24046 mgl_lib_type=""
24047 mgl_os=""
24048
24049 for mgl_os_i in $mgl_os_candidates ; do
24050 if test "x$mgl_os" = x ; then
24051 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24052 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24053 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24054 mgl_lib_type=debug
24055 mgl_os=$mgl_os_i
24056 fi
24057 fi
24058 if test "x$mgl_lib_type" = x ; then
24059 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24060 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24061 mgl_lib_type=release
24062 mgl_os=$mgl_os_i
24063 fi
24064 fi
24065 fi
24066 done
24067
24068 if test "x$mgl_os" = x ; then
24069 echo "$as_me:$LINENO: result: not found" >&5
24070echo "${ECHO_T}not found" >&6
24071 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24072echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24073 { (exit 1); exit 1; }; }
24074 fi
24075 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24076echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24077
24078 wxUSE_UNIVERSAL="yes"
24079
24080 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24081 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24082
24083 AFMINSTALL=afminstall
24084 TOOLKIT=MGL
24085 GUIDIST=MGL_DIST
24086 fi
24087
24088 if test "$wxUSE_MICROWIN" = 1; then
24089 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24090echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24091 if test "x$MICROWINDOWS" = x ; then
24092 echo "$as_me:$LINENO: result: not found" >&5
24093echo "${ECHO_T}not found" >&6
24094 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24095echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24096 { (exit 1); exit 1; }; }
24097 else
24098 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24099echo "${ECHO_T}$MICROWINDOWS" >&6
24100 fi
24101
24102 if test -f $MICROWINDOWS/lib/libmwin.a; then
24103 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24104echo "${ECHO_T}MicroWindows' libraries found." >&6
24105 else
24106 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24107echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24108 { (exit 1); exit 1; }; }
24109 fi
24110
24111 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24112 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24113
24114 wxUSE_UNIVERSAL="yes"
24115
24116 AFMINSTALL=afminstall
24117 TOOLKIT=MICROWIN
24118 GUIDIST=MICROWIN_DIST
24119
24120 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24121 fi
24122
74b84332 24123 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c228d3a4 24124 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24125echo $ECHO_N "checking for X... $ECHO_C" >&6
24126
24127
24128# Check whether --with-x or --without-x was given.
24129if test "${with_x+set}" = set; then
24130 withval="$with_x"
24131
24132fi;
24133# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24134if test "x$with_x" = xno; then
24135 # The user explicitly disabled X.
24136 have_x=disabled
24137else
24138 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24139 # Both variables are already set.
24140 have_x=yes
24141 else
24142 if test "${ac_cv_have_x+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24144else
24145 # One or both of the vars are not set, and there is no cached value.
24146ac_x_includes=no ac_x_libraries=no
24147rm -fr conftest.dir
24148if mkdir conftest.dir; then
24149 cd conftest.dir
24150 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24151 cat >Imakefile <<'_ACEOF'
24152acfindx:
24153 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24154_ACEOF
24155 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24157 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24159 for ac_extension in a so sl; do
24160 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24161 test -f $ac_im_libdir/libX11.$ac_extension; then
24162 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24163 fi
24164 done
24165 # Screen out bogus values from the imake configuration. They are
24166 # bogus both because they are the default anyway, and because
24167 # using them would break gcc on systems where it needs fixed includes.
24168 case $ac_im_incroot in
24169 /usr/include) ;;
24170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24171 esac
24172 case $ac_im_usrlibdir in
24173 /usr/lib | /lib) ;;
24174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24175 esac
24176 fi
24177 cd ..
24178 rm -fr conftest.dir
24179fi
24180
24181# Standard set of common directories for X headers.
24182# Check X11 before X11Rn because it is often a symlink to the current release.
24183ac_x_header_dirs='
24184/usr/X11/include
24185/usr/X11R6/include
24186/usr/X11R5/include
24187/usr/X11R4/include
24188
24189/usr/include/X11
24190/usr/include/X11R6
24191/usr/include/X11R5
24192/usr/include/X11R4
24193
24194/usr/local/X11/include
24195/usr/local/X11R6/include
24196/usr/local/X11R5/include
24197/usr/local/X11R4/include
24198
24199/usr/local/include/X11
24200/usr/local/include/X11R6
24201/usr/local/include/X11R5
24202/usr/local/include/X11R4
24203
24204/usr/X386/include
24205/usr/x386/include
24206/usr/XFree86/include/X11
24207
24208/usr/include
24209/usr/local/include
24210/usr/unsupported/include
24211/usr/athena/include
24212/usr/local/x11r5/include
24213/usr/lpp/Xamples/include
24214
24215/usr/openwin/include
24216/usr/openwin/share/include'
24217
24218if test "$ac_x_includes" = no; then
c228d3a4 24219 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24220 # First, try using that file with no special directory specified.
24221 cat >conftest.$ac_ext <<_ACEOF
24222/* confdefs.h. */
24223_ACEOF
24224cat confdefs.h >>conftest.$ac_ext
24225cat >>conftest.$ac_ext <<_ACEOF
24226/* end confdefs.h. */
24227#include <X11/Intrinsic.h>
24228_ACEOF
24229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24231 ac_status=$?
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } >/dev/null; then
24237 if test -s conftest.err; then
24238 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24240 else
24241 ac_cpp_err=
24242 fi
24243else
24244 ac_cpp_err=yes
24245fi
24246if test -z "$ac_cpp_err"; then
24247 # We can compile using X headers with no special include directory.
24248ac_x_includes=
24249else
24250 echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 for ac_dir in $ac_x_header_dirs; do
24254 if test -r "$ac_dir/X11/Intrinsic.h"; then
24255 ac_x_includes=$ac_dir
24256 break
24257 fi
24258done
24259fi
24260rm -f conftest.err conftest.$ac_ext
24261fi # $ac_x_includes = no
24262
24263if test "$ac_x_libraries" = no; then
24264 # Check for the libraries.
24265 # See if we find them without any special options.
24266 # Don't add to $LIBS permanently.
24267 ac_save_LIBS=$LIBS
24268 LIBS="-lXt $LIBS"
24269 cat >conftest.$ac_ext <<_ACEOF
24270/* confdefs.h. */
24271_ACEOF
24272cat confdefs.h >>conftest.$ac_ext
24273cat >>conftest.$ac_ext <<_ACEOF
24274/* end confdefs.h. */
24275#include <X11/Intrinsic.h>
24276int
24277main ()
24278{
24279XtMalloc (0)
24280 ;
24281 return 0;
24282}
24283_ACEOF
24284rm -f conftest.$ac_objext conftest$ac_exeext
24285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24286 (eval $ac_link) 2>conftest.er1
a848cd7e 24287 ac_status=$?
ac1cb8d3
VS
24288 grep -v '^ *+' conftest.er1 >conftest.err
24289 rm -f conftest.er1
24290 cat conftest.err >&5
a848cd7e
SC
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } &&
c228d3a4
RN
24293 { ac_try='test -z "$ac_c_werror_flag"
24294 || test ! -s conftest.err'
ac1cb8d3
VS
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24297 ac_status=$?
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; } &&
24300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302 (eval $ac_try) 2>&5
24303 ac_status=$?
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); }; }; then
24306 LIBS=$ac_save_LIBS
24307# We can link X programs with no special library path.
24308ac_x_libraries=
24309else
24310 echo "$as_me: failed program was:" >&5
24311sed 's/^/| /' conftest.$ac_ext >&5
24312
24313LIBS=$ac_save_LIBS
24314for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24315do
24316 # Don't even attempt the hair of trying to link an X program!
24317 for ac_extension in a so sl; do
24318 if test -r $ac_dir/libXt.$ac_extension; then
24319 ac_x_libraries=$ac_dir
24320 break 2
24321 fi
24322 done
24323done
24324fi
ac1cb8d3
VS
24325rm -f conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24327fi # $ac_x_libraries = no
24328
24329if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24330 # Didn't find X anywhere. Cache the known absence of X.
24331 ac_cv_have_x="have_x=no"
24332else
24333 # Record where we found X for the cache.
24334 ac_cv_have_x="have_x=yes \
ac1cb8d3 24335 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24336fi
24337fi
24338
24339 fi
24340 eval "$ac_cv_have_x"
24341fi # $with_x != no
24342
24343if test "$have_x" != yes; then
24344 echo "$as_me:$LINENO: result: $have_x" >&5
24345echo "${ECHO_T}$have_x" >&6
24346 no_x=yes
24347else
24348 # If each of the values was on the command line, it overrides each guess.
24349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24351 # Update the cache value to reflect the command line values.
24352 ac_cv_have_x="have_x=yes \
24353 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c228d3a4
RN
24354 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24355echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24356fi
24357
24358if test "$no_x" = yes; then
24359 # Not all programs may use this symbol, but it does not hurt to define it.
24360
24361cat >>confdefs.h <<\_ACEOF
24362#define X_DISPLAY_MISSING 1
24363_ACEOF
24364
24365 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24366else
24367 if test -n "$x_includes"; then
24368 X_CFLAGS="$X_CFLAGS -I$x_includes"
24369 fi
24370
24371 # It would also be nice to do this for all -L options, not just this one.
24372 if test -n "$x_libraries"; then
24373 X_LIBS="$X_LIBS -L$x_libraries"
24374 # For Solaris; some versions of Sun CC require a space after -R and
24375 # others require no space. Words are not sufficient . . . .
24376 case `(uname -sr) 2>/dev/null` in
24377 "SunOS 5"*)
24378 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24379echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24380 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24381 cat >conftest.$ac_ext <<_ACEOF
24382/* confdefs.h. */
24383_ACEOF
24384cat confdefs.h >>conftest.$ac_ext
24385cat >>conftest.$ac_ext <<_ACEOF
24386/* end confdefs.h. */
24387
24388int
24389main ()
24390{
24391
24392 ;
24393 return 0;
24394}
24395_ACEOF
24396rm -f conftest.$ac_objext conftest$ac_exeext
24397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24398 (eval $ac_link) 2>conftest.er1
a848cd7e 24399 ac_status=$?
ac1cb8d3
VS
24400 grep -v '^ *+' conftest.er1 >conftest.err
24401 rm -f conftest.er1
24402 cat conftest.err >&5
a848cd7e
SC
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } &&
c228d3a4
RN
24405 { ac_try='test -z "$ac_c_werror_flag"
24406 || test ! -s conftest.err'
ac1cb8d3
VS
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; } &&
24412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24414 (eval $ac_try) 2>&5
24415 ac_status=$?
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); }; }; then
24418 ac_R_nospace=yes
24419else
24420 echo "$as_me: failed program was:" >&5
24421sed 's/^/| /' conftest.$ac_ext >&5
24422
24423ac_R_nospace=no
24424fi
ac1cb8d3
VS
24425rm -f conftest.err conftest.$ac_objext \
24426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24427 if test $ac_R_nospace = yes; then
24428 echo "$as_me:$LINENO: result: no" >&5
24429echo "${ECHO_T}no" >&6
24430 X_LIBS="$X_LIBS -R$x_libraries"
24431 else
24432 LIBS="$ac_xsave_LIBS -R $x_libraries"
24433 cat >conftest.$ac_ext <<_ACEOF
24434/* confdefs.h. */
24435_ACEOF
24436cat confdefs.h >>conftest.$ac_ext
24437cat >>conftest.$ac_ext <<_ACEOF
24438/* end confdefs.h. */
24439
24440int
24441main ()
24442{
24443
24444 ;
24445 return 0;
24446}
24447_ACEOF
24448rm -f conftest.$ac_objext conftest$ac_exeext
24449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24450 (eval $ac_link) 2>conftest.er1
a848cd7e 24451 ac_status=$?
ac1cb8d3
VS
24452 grep -v '^ *+' conftest.er1 >conftest.err
24453 rm -f conftest.er1
24454 cat conftest.err >&5
a848cd7e
SC
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } &&
c228d3a4
RN
24457 { ac_try='test -z "$ac_c_werror_flag"
24458 || test ! -s conftest.err'
ac1cb8d3
VS
24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24461 ac_status=$?
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; } &&
24464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; }; then
24470 ac_R_space=yes
24471else
24472 echo "$as_me: failed program was:" >&5
24473sed 's/^/| /' conftest.$ac_ext >&5
24474
24475ac_R_space=no
24476fi
ac1cb8d3
VS
24477rm -f conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24479 if test $ac_R_space = yes; then
24480 echo "$as_me:$LINENO: result: yes" >&5
24481echo "${ECHO_T}yes" >&6
24482 X_LIBS="$X_LIBS -R $x_libraries"
24483 else
24484 echo "$as_me:$LINENO: result: neither works" >&5
24485echo "${ECHO_T}neither works" >&6
24486 fi
24487 fi
24488 LIBS=$ac_xsave_LIBS
24489 esac
24490 fi
24491
24492 # Check for system-dependent libraries X programs must link with.
24493 # Do this before checking for the system-independent R6 libraries
24494 # (-lICE), since we may need -lsocket or whatever for X linking.
24495
24496 if test "$ISC" = yes; then
24497 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24498 else
24499 # Martyn Johnson says this is needed for Ultrix, if the X
24500 # libraries were built with DECnet support. And Karl Berry says
24501 # the Alpha needs dnet_stub (dnet does not exist).
24502 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24503 cat >conftest.$ac_ext <<_ACEOF
24504/* confdefs.h. */
24505_ACEOF
24506cat confdefs.h >>conftest.$ac_ext
24507cat >>conftest.$ac_ext <<_ACEOF
24508/* end confdefs.h. */
24509
24510/* Override any gcc2 internal prototype to avoid an error. */
24511#ifdef __cplusplus
24512extern "C"
24513#endif
24514/* We use char because int might match the return type of a gcc2
24515 builtin and then its argument prototype would still apply. */
24516char XOpenDisplay ();
24517int
24518main ()
24519{
24520XOpenDisplay ();
24521 ;
24522 return 0;
24523}
24524_ACEOF
24525rm -f conftest.$ac_objext conftest$ac_exeext
24526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24527 (eval $ac_link) 2>conftest.er1
a848cd7e 24528 ac_status=$?
ac1cb8d3
VS
24529 grep -v '^ *+' conftest.er1 >conftest.err
24530 rm -f conftest.er1
24531 cat conftest.err >&5
a848cd7e
SC
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
c228d3a4
RN
24534 { ac_try='test -z "$ac_c_werror_flag"
24535 || test ! -s conftest.err'
ac1cb8d3
VS
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 :
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24553echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24554if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24556else
24557 ac_check_lib_save_LIBS=$LIBS
24558LIBS="-ldnet $LIBS"
24559cat >conftest.$ac_ext <<_ACEOF
24560/* confdefs.h. */
24561_ACEOF
24562cat confdefs.h >>conftest.$ac_ext
24563cat >>conftest.$ac_ext <<_ACEOF
24564/* end confdefs.h. */
24565
24566/* Override any gcc2 internal prototype to avoid an error. */
24567#ifdef __cplusplus
24568extern "C"
24569#endif
24570/* We use char because int might match the return type of a gcc2
24571 builtin and then its argument prototype would still apply. */
24572char dnet_ntoa ();
24573int
24574main ()
24575{
24576dnet_ntoa ();
24577 ;
24578 return 0;
24579}
24580_ACEOF
24581rm -f conftest.$ac_objext conftest$ac_exeext
24582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24583 (eval $ac_link) 2>conftest.er1
a848cd7e 24584 ac_status=$?
ac1cb8d3
VS
24585 grep -v '^ *+' conftest.er1 >conftest.err
24586 rm -f conftest.er1
24587 cat conftest.err >&5
a848cd7e
SC
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } &&
c228d3a4
RN
24590 { ac_try='test -z "$ac_c_werror_flag"
24591 || test ! -s conftest.err'
ac1cb8d3
VS
24592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593 (eval $ac_try) 2>&5
24594 ac_status=$?
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; } &&
24597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; }; then
24603 ac_cv_lib_dnet_dnet_ntoa=yes
24604else
24605 echo "$as_me: failed program was:" >&5
24606sed 's/^/| /' conftest.$ac_ext >&5
24607
24608ac_cv_lib_dnet_dnet_ntoa=no
24609fi
ac1cb8d3
VS
24610rm -f conftest.err conftest.$ac_objext \
24611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24612LIBS=$ac_check_lib_save_LIBS
24613fi
24614echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24615echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24616if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24617 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24618fi
24619
24620 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24621 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24622echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24623if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24625else
24626 ac_check_lib_save_LIBS=$LIBS
24627LIBS="-ldnet_stub $LIBS"
24628cat >conftest.$ac_ext <<_ACEOF
24629/* confdefs.h. */
24630_ACEOF
24631cat confdefs.h >>conftest.$ac_ext
24632cat >>conftest.$ac_ext <<_ACEOF
24633/* end confdefs.h. */
24634
24635/* Override any gcc2 internal prototype to avoid an error. */
24636#ifdef __cplusplus
24637extern "C"
24638#endif
24639/* We use char because int might match the return type of a gcc2
24640 builtin and then its argument prototype would still apply. */
24641char dnet_ntoa ();
24642int
24643main ()
24644{
24645dnet_ntoa ();
24646 ;
24647 return 0;
24648}
24649_ACEOF
24650rm -f conftest.$ac_objext conftest$ac_exeext
24651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24652 (eval $ac_link) 2>conftest.er1
a848cd7e 24653 ac_status=$?
ac1cb8d3
VS
24654 grep -v '^ *+' conftest.er1 >conftest.err
24655 rm -f conftest.er1
24656 cat conftest.err >&5
a848cd7e
SC
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } &&
c228d3a4
RN
24659 { ac_try='test -z "$ac_c_werror_flag"
24660 || test ! -s conftest.err'
ac1cb8d3
VS
24661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24662 (eval $ac_try) 2>&5
24663 ac_status=$?
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; } &&
24666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; }; then
24672 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24673else
24674 echo "$as_me: failed program was:" >&5
24675sed 's/^/| /' conftest.$ac_ext >&5
24676
24677ac_cv_lib_dnet_stub_dnet_ntoa=no
24678fi
ac1cb8d3
VS
24679rm -f conftest.err conftest.$ac_objext \
24680 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24681LIBS=$ac_check_lib_save_LIBS
24682fi
24683echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24684echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24685if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24686 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24687fi
24688
24689 fi
24690fi
ac1cb8d3
VS
24691rm -f conftest.err conftest.$ac_objext \
24692 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24693 LIBS="$ac_xsave_LIBS"
24694
24695 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24696 # to get the SysV transport functions.
24697 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24698 # needs -lnsl.
24699 # The nsl library prevents programs from opening the X display
24700 # on Irix 5.2, according to T.E. Dickey.
24701 # The functions gethostbyname, getservbyname, and inet_addr are
24702 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24703 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24704echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24705if test "${ac_cv_func_gethostbyname+set}" = set; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
24707else
24708 cat >conftest.$ac_ext <<_ACEOF
24709/* confdefs.h. */
24710_ACEOF
24711cat confdefs.h >>conftest.$ac_ext
24712cat >>conftest.$ac_ext <<_ACEOF
24713/* end confdefs.h. */
ac1cb8d3
VS
24714/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24716#define gethostbyname innocuous_gethostbyname
24717
a848cd7e
SC
24718/* System header to define __stub macros and hopefully few prototypes,
24719 which can conflict with char gethostbyname (); below.
24720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24721 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24722
a848cd7e
SC
24723#ifdef __STDC__
24724# include <limits.h>
24725#else
24726# include <assert.h>
24727#endif
ac1cb8d3
VS
24728
24729#undef gethostbyname
24730
a848cd7e
SC
24731/* Override any gcc2 internal prototype to avoid an error. */
24732#ifdef __cplusplus
24733extern "C"
24734{
24735#endif
24736/* We use char because int might match the return type of a gcc2
24737 builtin and then its argument prototype would still apply. */
24738char gethostbyname ();
24739/* The GNU C library defines this for functions which it implements
24740 to always fail with ENOSYS. Some functions are actually named
24741 something starting with __ and the normal name is an alias. */
24742#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24743choke me
24744#else
24745char (*f) () = gethostbyname;
24746#endif
24747#ifdef __cplusplus
24748}
24749#endif
24750
24751int
24752main ()
24753{
24754return f != gethostbyname;
24755 ;
24756 return 0;
24757}
24758_ACEOF
24759rm -f conftest.$ac_objext conftest$ac_exeext
24760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24761 (eval $ac_link) 2>conftest.er1
a848cd7e 24762 ac_status=$?
ac1cb8d3
VS
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
a848cd7e
SC
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } &&
c228d3a4
RN
24768 { ac_try='test -z "$ac_c_werror_flag"
24769 || test ! -s conftest.err'
ac1cb8d3
VS
24770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24771 (eval $ac_try) 2>&5
24772 ac_status=$?
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); }; } &&
24775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 ac_cv_func_gethostbyname=yes
24782else
24783 echo "$as_me: failed program was:" >&5
24784sed 's/^/| /' conftest.$ac_ext >&5
24785
24786ac_cv_func_gethostbyname=no
24787fi
ac1cb8d3
VS
24788rm -f conftest.err conftest.$ac_objext \
24789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24790fi
24791echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24792echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24793
24794 if test $ac_cv_func_gethostbyname = no; then
24795 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24796echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24797if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24799else
24800 ac_check_lib_save_LIBS=$LIBS
24801LIBS="-lnsl $LIBS"
24802cat >conftest.$ac_ext <<_ACEOF
24803/* confdefs.h. */
24804_ACEOF
24805cat confdefs.h >>conftest.$ac_ext
24806cat >>conftest.$ac_ext <<_ACEOF
24807/* end confdefs.h. */
24808
24809/* Override any gcc2 internal prototype to avoid an error. */
24810#ifdef __cplusplus
24811extern "C"
24812#endif
24813/* We use char because int might match the return type of a gcc2
24814 builtin and then its argument prototype would still apply. */
24815char gethostbyname ();
24816int
24817main ()
24818{
24819gethostbyname ();
24820 ;
24821 return 0;
24822}
24823_ACEOF
24824rm -f conftest.$ac_objext conftest$ac_exeext
24825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24826 (eval $ac_link) 2>conftest.er1
24827 ac_status=$?
24828 grep -v '^ *+' conftest.er1 >conftest.err
24829 rm -f conftest.er1
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } &&
c228d3a4
RN
24833 { ac_try='test -z "$ac_c_werror_flag"
24834 || test ! -s conftest.err'
ac1cb8d3
VS
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; } &&
24840 { ac_try='test -s conftest$ac_exeext'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 ac_cv_lib_nsl_gethostbyname=yes
24847else
24848 echo "$as_me: failed program was:" >&5
24849sed 's/^/| /' conftest.$ac_ext >&5
24850
24851ac_cv_lib_nsl_gethostbyname=no
24852fi
24853rm -f conftest.err conftest.$ac_objext \
24854 conftest$ac_exeext conftest.$ac_ext
24855LIBS=$ac_check_lib_save_LIBS
24856fi
24857echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24858echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24859if test $ac_cv_lib_nsl_gethostbyname = yes; then
24860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24861fi
24862
24863 if test $ac_cv_lib_nsl_gethostbyname = no; then
24864 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24865echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24866if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24868else
24869 ac_check_lib_save_LIBS=$LIBS
24870LIBS="-lbsd $LIBS"
24871cat >conftest.$ac_ext <<_ACEOF
24872/* confdefs.h. */
24873_ACEOF
24874cat confdefs.h >>conftest.$ac_ext
24875cat >>conftest.$ac_ext <<_ACEOF
24876/* end confdefs.h. */
24877
24878/* Override any gcc2 internal prototype to avoid an error. */
24879#ifdef __cplusplus
24880extern "C"
24881#endif
24882/* We use char because int might match the return type of a gcc2
24883 builtin and then its argument prototype would still apply. */
24884char gethostbyname ();
24885int
24886main ()
24887{
24888gethostbyname ();
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext conftest$ac_exeext
24894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24895 (eval $ac_link) 2>conftest.er1
a848cd7e 24896 ac_status=$?
ac1cb8d3
VS
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
a848cd7e
SC
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
c228d3a4
RN
24902 { ac_try='test -z "$ac_c_werror_flag"
24903 || test ! -s conftest.err'
a848cd7e
SC
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24908 (exit $ac_status); }; } &&
24909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ac_cv_lib_bsd_gethostbyname=yes
24916else
24917 echo "$as_me: failed program was:" >&5
24918sed 's/^/| /' conftest.$ac_ext >&5
24919
24920ac_cv_lib_bsd_gethostbyname=no
24921fi
ac1cb8d3
VS
24922rm -f conftest.err conftest.$ac_objext \
24923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24924LIBS=$ac_check_lib_save_LIBS
24925fi
24926echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24927echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24928if test $ac_cv_lib_bsd_gethostbyname = yes; then
24929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24930fi
24931
24932 fi
24933 fi
24934
24935 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24936 # socket/setsockopt and other routines are undefined under SCO ODT
24937 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24938 # on later versions), says Simon Leinen: it contains gethostby*
24939 # variants that don't use the name server (or something). -lsocket
24940 # must be given before -lnsl if both are needed. We assume that
24941 # if connect needs -lnsl, so does gethostbyname.
24942 echo "$as_me:$LINENO: checking for connect" >&5
24943echo $ECHO_N "checking for connect... $ECHO_C" >&6
24944if test "${ac_cv_func_connect+set}" = set; then
24945 echo $ECHO_N "(cached) $ECHO_C" >&6
24946else
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. */
ac1cb8d3
VS
24953/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24955#define connect innocuous_connect
24956
a848cd7e
SC
24957/* System header to define __stub macros and hopefully few prototypes,
24958 which can conflict with char connect (); below.
24959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24961
a848cd7e
SC
24962#ifdef __STDC__
24963# include <limits.h>
24964#else
24965# include <assert.h>
24966#endif
ac1cb8d3
VS
24967
24968#undef connect
24969
a848cd7e
SC
24970/* Override any gcc2 internal prototype to avoid an error. */
24971#ifdef __cplusplus
24972extern "C"
24973{
24974#endif
24975/* We use char because int might match the return type of a gcc2
24976 builtin and then its argument prototype would still apply. */
24977char connect ();
24978/* The GNU C library defines this for functions which it implements
24979 to always fail with ENOSYS. Some functions are actually named
24980 something starting with __ and the normal name is an alias. */
24981#if defined (__stub_connect) || defined (__stub___connect)
24982choke me
24983#else
24984char (*f) () = connect;
24985#endif
24986#ifdef __cplusplus
24987}
24988#endif
24989
24990int
24991main ()
24992{
24993return f != connect;
24994 ;
24995 return 0;
24996}
24997_ACEOF
24998rm -f conftest.$ac_objext conftest$ac_exeext
24999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25000 (eval $ac_link) 2>conftest.er1
a848cd7e 25001 ac_status=$?
ac1cb8d3
VS
25002 grep -v '^ *+' conftest.er1 >conftest.err
25003 rm -f conftest.er1
25004 cat conftest.err >&5
a848cd7e
SC
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } &&
c228d3a4
RN
25007 { ac_try='test -z "$ac_c_werror_flag"
25008 || test ! -s conftest.err'
ac1cb8d3
VS
25009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); }; } &&
25014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25017 ac_status=$?
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 ac_cv_func_connect=yes
25021else
25022 echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025ac_cv_func_connect=no
25026fi
ac1cb8d3
VS
25027rm -f conftest.err conftest.$ac_objext \
25028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25029fi
25030echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25031echo "${ECHO_T}$ac_cv_func_connect" >&6
25032
25033 if test $ac_cv_func_connect = no; then
25034 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25035echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25036if test "${ac_cv_lib_socket_connect+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
25038else
25039 ac_check_lib_save_LIBS=$LIBS
25040LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25041cat >conftest.$ac_ext <<_ACEOF
25042/* confdefs.h. */
25043_ACEOF
25044cat confdefs.h >>conftest.$ac_ext
25045cat >>conftest.$ac_ext <<_ACEOF
25046/* end confdefs.h. */
25047
25048/* Override any gcc2 internal prototype to avoid an error. */
25049#ifdef __cplusplus
25050extern "C"
25051#endif
25052/* We use char because int might match the return type of a gcc2
25053 builtin and then its argument prototype would still apply. */
25054char connect ();
25055int
25056main ()
25057{
25058connect ();
25059 ;
25060 return 0;
25061}
25062_ACEOF
25063rm -f conftest.$ac_objext conftest$ac_exeext
25064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25065 (eval $ac_link) 2>conftest.er1
a848cd7e 25066 ac_status=$?
ac1cb8d3
VS
25067 grep -v '^ *+' conftest.er1 >conftest.err
25068 rm -f conftest.er1
25069 cat conftest.err >&5
a848cd7e
SC
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); } &&
c228d3a4
RN
25072 { ac_try='test -z "$ac_c_werror_flag"
25073 || test ! -s conftest.err'
ac1cb8d3
VS
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; } &&
25079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25081 (eval $ac_try) 2>&5
25082 ac_status=$?
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); }; }; then
25085 ac_cv_lib_socket_connect=yes
25086else
25087 echo "$as_me: failed program was:" >&5
25088sed 's/^/| /' conftest.$ac_ext >&5
25089
25090ac_cv_lib_socket_connect=no
25091fi
ac1cb8d3
VS
25092rm -f conftest.err conftest.$ac_objext \
25093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25094LIBS=$ac_check_lib_save_LIBS
25095fi
25096echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25097echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25098if test $ac_cv_lib_socket_connect = yes; then
25099 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25100fi
25101
25102 fi
25103
25104 # Guillermo Gomez says -lposix is necessary on A/UX.
25105 echo "$as_me:$LINENO: checking for remove" >&5
25106echo $ECHO_N "checking for remove... $ECHO_C" >&6
25107if test "${ac_cv_func_remove+set}" = set; then
25108 echo $ECHO_N "(cached) $ECHO_C" >&6
25109else
25110 cat >conftest.$ac_ext <<_ACEOF
25111/* confdefs.h. */
25112_ACEOF
25113cat confdefs.h >>conftest.$ac_ext
25114cat >>conftest.$ac_ext <<_ACEOF
25115/* end confdefs.h. */
ac1cb8d3
VS
25116/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25118#define remove innocuous_remove
25119
a848cd7e
SC
25120/* System header to define __stub macros and hopefully few prototypes,
25121 which can conflict with char remove (); below.
25122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25123 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25124
a848cd7e
SC
25125#ifdef __STDC__
25126# include <limits.h>
25127#else
25128# include <assert.h>
25129#endif
ac1cb8d3
VS
25130
25131#undef remove
25132
a848cd7e
SC
25133/* Override any gcc2 internal prototype to avoid an error. */
25134#ifdef __cplusplus
25135extern "C"
25136{
25137#endif
25138/* We use char because int might match the return type of a gcc2
25139 builtin and then its argument prototype would still apply. */
25140char remove ();
25141/* The GNU C library defines this for functions which it implements
25142 to always fail with ENOSYS. Some functions are actually named
25143 something starting with __ and the normal name is an alias. */
25144#if defined (__stub_remove) || defined (__stub___remove)
25145choke me
25146#else
25147char (*f) () = remove;
25148#endif
25149#ifdef __cplusplus
25150}
25151#endif
25152
25153int
25154main ()
25155{
25156return f != remove;
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext conftest$ac_exeext
25162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25163 (eval $ac_link) 2>conftest.er1
a848cd7e 25164 ac_status=$?
ac1cb8d3
VS
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
a848cd7e
SC
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
c228d3a4
RN
25170 { ac_try='test -z "$ac_c_werror_flag"
25171 || test ! -s conftest.err'
ac1cb8d3
VS
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; } &&
25177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; }; then
25183 ac_cv_func_remove=yes
25184else
25185 echo "$as_me: failed program was:" >&5
25186sed 's/^/| /' conftest.$ac_ext >&5
25187
25188ac_cv_func_remove=no
25189fi
ac1cb8d3
VS
25190rm -f conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25192fi
25193echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25194echo "${ECHO_T}$ac_cv_func_remove" >&6
25195
25196 if test $ac_cv_func_remove = no; then
25197 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25198echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25199if test "${ac_cv_lib_posix_remove+set}" = set; then
25200 echo $ECHO_N "(cached) $ECHO_C" >&6
25201else
25202 ac_check_lib_save_LIBS=$LIBS
25203LIBS="-lposix $LIBS"
25204cat >conftest.$ac_ext <<_ACEOF
25205/* confdefs.h. */
25206_ACEOF
25207cat confdefs.h >>conftest.$ac_ext
25208cat >>conftest.$ac_ext <<_ACEOF
25209/* end confdefs.h. */
25210
25211/* Override any gcc2 internal prototype to avoid an error. */
25212#ifdef __cplusplus
25213extern "C"
25214#endif
25215/* We use char because int might match the return type of a gcc2
25216 builtin and then its argument prototype would still apply. */
25217char remove ();
25218int
25219main ()
25220{
25221remove ();
25222 ;
25223 return 0;
25224}
25225_ACEOF
25226rm -f conftest.$ac_objext conftest$ac_exeext
25227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25228 (eval $ac_link) 2>conftest.er1
a848cd7e 25229 ac_status=$?
ac1cb8d3
VS
25230 grep -v '^ *+' conftest.er1 >conftest.err
25231 rm -f conftest.er1
25232 cat conftest.err >&5
a848cd7e
SC
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } &&
c228d3a4
RN
25235 { ac_try='test -z "$ac_c_werror_flag"
25236 || test ! -s conftest.err'
ac1cb8d3
VS
25237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238 (eval $ac_try) 2>&5
25239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); }; } &&
25242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
25248 ac_cv_lib_posix_remove=yes
25249else
25250 echo "$as_me: failed program was:" >&5
25251sed 's/^/| /' conftest.$ac_ext >&5
25252
25253ac_cv_lib_posix_remove=no
25254fi
ac1cb8d3
VS
25255rm -f conftest.err conftest.$ac_objext \
25256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25257LIBS=$ac_check_lib_save_LIBS
25258fi
25259echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25260echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25261if test $ac_cv_lib_posix_remove = yes; then
25262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25263fi
25264
25265 fi
25266
25267 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25268 echo "$as_me:$LINENO: checking for shmat" >&5
25269echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25270if test "${ac_cv_func_shmat+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25272else
25273 cat >conftest.$ac_ext <<_ACEOF
25274/* confdefs.h. */
25275_ACEOF
25276cat confdefs.h >>conftest.$ac_ext
25277cat >>conftest.$ac_ext <<_ACEOF
25278/* end confdefs.h. */
ac1cb8d3
VS
25279/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25281#define shmat innocuous_shmat
25282
a848cd7e
SC
25283/* System header to define __stub macros and hopefully few prototypes,
25284 which can conflict with char shmat (); below.
25285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25286 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25287
a848cd7e
SC
25288#ifdef __STDC__
25289# include <limits.h>
25290#else
25291# include <assert.h>
25292#endif
ac1cb8d3
VS
25293
25294#undef shmat
25295
a848cd7e
SC
25296/* Override any gcc2 internal prototype to avoid an error. */
25297#ifdef __cplusplus
25298extern "C"
25299{
25300#endif
25301/* We use char because int might match the return type of a gcc2
25302 builtin and then its argument prototype would still apply. */
25303char shmat ();
25304/* The GNU C library defines this for functions which it implements
25305 to always fail with ENOSYS. Some functions are actually named
25306 something starting with __ and the normal name is an alias. */
25307#if defined (__stub_shmat) || defined (__stub___shmat)
25308choke me
25309#else
25310char (*f) () = shmat;
25311#endif
25312#ifdef __cplusplus
25313}
25314#endif
25315
25316int
25317main ()
25318{
25319return f != shmat;
25320 ;
25321 return 0;
25322}
25323_ACEOF
25324rm -f conftest.$ac_objext conftest$ac_exeext
25325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25326 (eval $ac_link) 2>conftest.er1
a848cd7e 25327 ac_status=$?
ac1cb8d3
VS
25328 grep -v '^ *+' conftest.er1 >conftest.err
25329 rm -f conftest.er1
25330 cat conftest.err >&5
a848cd7e
SC
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } &&
c228d3a4
RN
25333 { ac_try='test -z "$ac_c_werror_flag"
25334 || test ! -s conftest.err'
ac1cb8d3
VS
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; } &&
25340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); }; }; then
25346 ac_cv_func_shmat=yes
25347else
25348 echo "$as_me: failed program was:" >&5
25349sed 's/^/| /' conftest.$ac_ext >&5
25350
25351ac_cv_func_shmat=no
25352fi
ac1cb8d3
VS
25353rm -f conftest.err conftest.$ac_objext \
25354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25355fi
25356echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25357echo "${ECHO_T}$ac_cv_func_shmat" >&6
25358
25359 if test $ac_cv_func_shmat = no; then
25360 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25361echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25362if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
25364else
25365 ac_check_lib_save_LIBS=$LIBS
25366LIBS="-lipc $LIBS"
25367cat >conftest.$ac_ext <<_ACEOF
25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
25373
25374/* Override any gcc2 internal prototype to avoid an error. */
25375#ifdef __cplusplus
25376extern "C"
25377#endif
25378/* We use char because int might match the return type of a gcc2
25379 builtin and then its argument prototype would still apply. */
25380char shmat ();
25381int
25382main ()
25383{
25384shmat ();
25385 ;
25386 return 0;
25387}
25388_ACEOF
25389rm -f conftest.$ac_objext conftest$ac_exeext
25390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25391 (eval $ac_link) 2>conftest.er1
a848cd7e 25392 ac_status=$?
ac1cb8d3
VS
25393 grep -v '^ *+' conftest.er1 >conftest.err
25394 rm -f conftest.er1
25395 cat conftest.err >&5
a848cd7e
SC
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } &&
c228d3a4
RN
25398 { ac_try='test -z "$ac_c_werror_flag"
25399 || test ! -s conftest.err'
ac1cb8d3
VS
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; } &&
25405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 ac_cv_lib_ipc_shmat=yes
25412else
25413 echo "$as_me: failed program was:" >&5
25414sed 's/^/| /' conftest.$ac_ext >&5
25415
25416ac_cv_lib_ipc_shmat=no
25417fi
ac1cb8d3
VS
25418rm -f conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25420LIBS=$ac_check_lib_save_LIBS
25421fi
25422echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25423echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25424if test $ac_cv_lib_ipc_shmat = yes; then
25425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25426fi
25427
25428 fi
25429 fi
25430
25431 # Check for libraries that X11R6 Xt/Xaw programs need.
25432 ac_save_LDFLAGS=$LDFLAGS
25433 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25434 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25435 # check for ICE first), but we must link in the order -lSM -lICE or
25436 # we get undefined symbols. So assume we have SM if we have ICE.
25437 # These have to be linked with before -lX11, unlike the other
25438 # libraries we check for below, so use a different variable.
25439 # John Interrante, Karl Berry
25440 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25441echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25442if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25443 echo $ECHO_N "(cached) $ECHO_C" >&6
25444else
25445 ac_check_lib_save_LIBS=$LIBS
25446LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25447cat >conftest.$ac_ext <<_ACEOF
25448/* confdefs.h. */
25449_ACEOF
25450cat confdefs.h >>conftest.$ac_ext
25451cat >>conftest.$ac_ext <<_ACEOF
25452/* end confdefs.h. */
25453
25454/* Override any gcc2 internal prototype to avoid an error. */
25455#ifdef __cplusplus
25456extern "C"
25457#endif
25458/* We use char because int might match the return type of a gcc2
25459 builtin and then its argument prototype would still apply. */
25460char IceConnectionNumber ();
25461int
25462main ()
25463{
25464IceConnectionNumber ();
25465 ;
25466 return 0;
25467}
25468_ACEOF
25469rm -f conftest.$ac_objext conftest$ac_exeext
25470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25471 (eval $ac_link) 2>conftest.er1
a848cd7e 25472 ac_status=$?
ac1cb8d3
VS
25473 grep -v '^ *+' conftest.er1 >conftest.err
25474 rm -f conftest.er1
25475 cat conftest.err >&5
a848cd7e
SC
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
c228d3a4
RN
25478 { ac_try='test -z "$ac_c_werror_flag"
25479 || test ! -s conftest.err'
ac1cb8d3
VS
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; } &&
25485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491 ac_cv_lib_ICE_IceConnectionNumber=yes
25492else
25493 echo "$as_me: failed program was:" >&5
25494sed 's/^/| /' conftest.$ac_ext >&5
25495
25496ac_cv_lib_ICE_IceConnectionNumber=no
25497fi
ac1cb8d3
VS
25498rm -f conftest.err conftest.$ac_objext \
25499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25500LIBS=$ac_check_lib_save_LIBS
25501fi
25502echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25503echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25504if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25505 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25506fi
25507
25508 LDFLAGS=$ac_save_LDFLAGS
25509
25510fi
25511
25512
25513 if test "$no_x" = "yes"; then
25514 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25515echo "$as_me: error: X11 not found" >&2;}
25516 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25517 fi
25518
74b84332
VS
25519 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25520 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25521 AFMINSTALL=afminstall
25522 COMPILED_X_PROGRAM=0
25523
74b84332
VS
25524 fi
25525
25526 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25527 if test "$wxUSE_NANOX" = "yes"; then
25528 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25529echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25530 if test "x$MICROWIN" = x ; then
25531 echo "$as_me:$LINENO: result: not found" >&5
25532echo "${ECHO_T}not found" >&6
25533 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25534echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25535 { (exit 1); exit 1; }; }
25536 else
25537 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25538echo "${ECHO_T}$MICROWIN" >&6
25539 cat >>confdefs.h <<\_ACEOF
25540#define wxUSE_NANOX 1
25541_ACEOF
25542
25543 fi
25544 fi
25545
25546 if test "$wxUSE_UNICODE" = "yes"; then
25547
25548 succeeded=no
25549
25550 if test -z "$PKG_CONFIG"; then
25551 # Extract the first word of "pkg-config", so it can be a program name with args.
25552set dummy pkg-config; ac_word=$2
25553echo "$as_me:$LINENO: checking for $ac_word" >&5
25554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25555if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25556 echo $ECHO_N "(cached) $ECHO_C" >&6
25557else
25558 case $PKG_CONFIG in
25559 [\\/]* | ?:[\\/]*)
25560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25561 ;;
25562 *)
25563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25564for as_dir in $PATH
25565do
25566 IFS=$as_save_IFS
25567 test -z "$as_dir" && as_dir=.
25568 for ac_exec_ext in '' $ac_executable_extensions; do
25569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25572 break 2
25573 fi
25574done
25575done
25576
25577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25578 ;;
25579esac
25580fi
25581PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25582
25583if test -n "$PKG_CONFIG"; then
25584 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25585echo "${ECHO_T}$PKG_CONFIG" >&6
25586else
25587 echo "$as_me:$LINENO: result: no" >&5
25588echo "${ECHO_T}no" >&6
25589fi
25590
25591 fi
25592
25593 if test "$PKG_CONFIG" = "no" ; then
25594 echo "*** The pkg-config script could not be found. Make sure it is"
25595 echo "*** in your path, or set the PKG_CONFIG environment variable"
25596 echo "*** to the full path to pkg-config."
25597 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25598 else
25599 PKG_CONFIG_MIN_VERSION=0.9.0
25600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25601 echo "$as_me:$LINENO: checking for pangox" >&5
25602echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25603
25604 if $PKG_CONFIG --exists "pangox" ; then
25605 echo "$as_me:$LINENO: result: yes" >&5
25606echo "${ECHO_T}yes" >&6
25607 succeeded=yes
25608
25609 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25610echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25611 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25612 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25613echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25614
25615 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25616echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25617 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25618 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25619echo "${ECHO_T}$PANGOX_LIBS" >&6
25620 else
25621 PANGOX_CFLAGS=""
25622 PANGOX_LIBS=""
25623 ## If we have a custom action on failure, don't print errors, but
25624 ## do set a variable so people can do so.
25625 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25626
25627 fi
25628
25629
25630
25631 else
25632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25634 fi
25635 fi
25636
25637 if test $succeeded = yes; then
25638
25639 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25640 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25641
25642 else
25643
25644 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25645echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25646 { (exit 1); exit 1; }; }
25647
25648
25649 fi
25650
25651
25652 succeeded=no
25653
25654 if test -z "$PKG_CONFIG"; then
25655 # Extract the first word of "pkg-config", so it can be a program name with args.
25656set dummy pkg-config; ac_word=$2
25657echo "$as_me:$LINENO: checking for $ac_word" >&5
25658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25659if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25661else
25662 case $PKG_CONFIG in
25663 [\\/]* | ?:[\\/]*)
25664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25665 ;;
25666 *)
25667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25668for as_dir in $PATH
25669do
25670 IFS=$as_save_IFS
25671 test -z "$as_dir" && as_dir=.
25672 for ac_exec_ext in '' $ac_executable_extensions; do
25673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25676 break 2
25677 fi
25678done
25679done
25680
25681 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25682 ;;
25683esac
25684fi
25685PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25686
25687if test -n "$PKG_CONFIG"; then
25688 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25689echo "${ECHO_T}$PKG_CONFIG" >&6
25690else
25691 echo "$as_me:$LINENO: result: no" >&5
25692echo "${ECHO_T}no" >&6
25693fi
25694
25695 fi
25696
25697 if test "$PKG_CONFIG" = "no" ; then
25698 echo "*** The pkg-config script could not be found. Make sure it is"
25699 echo "*** in your path, or set the PKG_CONFIG environment variable"
25700 echo "*** to the full path to pkg-config."
25701 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25702 else
25703 PKG_CONFIG_MIN_VERSION=0.9.0
25704 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25705 echo "$as_me:$LINENO: checking for pangoft2" >&5
25706echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25707
25708 if $PKG_CONFIG --exists "pangoft2" ; then
25709 echo "$as_me:$LINENO: result: yes" >&5
25710echo "${ECHO_T}yes" >&6
25711 succeeded=yes
25712
25713 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25714echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25715 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25716 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25717echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25718
25719 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25720echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25721 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25722 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25723echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25724 else
25725 PANGOFT2_CFLAGS=""
25726 PANGOFT2_LIBS=""
25727 ## If we have a custom action on failure, don't print errors, but
25728 ## do set a variable so people can do so.
25729 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25730
25731 fi
25732
25733
25734
25735 else
25736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25738 fi
25739 fi
25740
25741 if test $succeeded = yes; then
25742
25743 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25744 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25745
25746 else
25747
25748 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25749echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25750 wxUSE_PRINTING_ARCHITECTURE="no"
25751
25752
25753 fi
25754
25755
25756 succeeded=no
25757
25758 if test -z "$PKG_CONFIG"; then
25759 # Extract the first word of "pkg-config", so it can be a program name with args.
25760set dummy pkg-config; ac_word=$2
25761echo "$as_me:$LINENO: checking for $ac_word" >&5
25762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25763if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25764 echo $ECHO_N "(cached) $ECHO_C" >&6
25765else
25766 case $PKG_CONFIG in
25767 [\\/]* | ?:[\\/]*)
25768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25769 ;;
25770 *)
25771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25772for as_dir in $PATH
25773do
25774 IFS=$as_save_IFS
25775 test -z "$as_dir" && as_dir=.
25776 for ac_exec_ext in '' $ac_executable_extensions; do
25777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25780 break 2
25781 fi
25782done
25783done
25784
25785 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25786 ;;
25787esac
25788fi
25789PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25790
25791if test -n "$PKG_CONFIG"; then
25792 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25793echo "${ECHO_T}$PKG_CONFIG" >&6
25794else
25795 echo "$as_me:$LINENO: result: no" >&5
25796echo "${ECHO_T}no" >&6
25797fi
25798
25799 fi
25800
25801 if test "$PKG_CONFIG" = "no" ; then
25802 echo "*** The pkg-config script could not be found. Make sure it is"
25803 echo "*** in your path, or set the PKG_CONFIG environment variable"
25804 echo "*** to the full path to pkg-config."
25805 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25806 else
25807 PKG_CONFIG_MIN_VERSION=0.9.0
25808 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25809 echo "$as_me:$LINENO: checking for pangoxft" >&5
25810echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25811
25812 if $PKG_CONFIG --exists "pangoxft" ; then
25813 echo "$as_me:$LINENO: result: yes" >&5
25814echo "${ECHO_T}yes" >&6
25815 succeeded=yes
25816
25817 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25818echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25819 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25820 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25821echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25822
25823 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25824echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25825 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25826 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25827echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25828 else
25829 PANGOXFT_CFLAGS=""
25830 PANGOXFT_LIBS=""
25831 ## If we have a custom action on failure, don't print errors, but
25832 ## do set a variable so people can do so.
25833 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25834
25835 fi
25836
25837
25838
25839 else
25840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25842 fi
25843 fi
25844
25845 if test $succeeded = yes; then
25846
25847 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25848 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25849
25850 else
25851
25852 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25853echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25854
25855
25856 fi
25857
304205f1
VS
25858 save_CFLAGS="$CFLAGS"
25859 save_LIBS="$LIBS"
25860 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25861 LIBS="$LIBS $PANGOX_LIBS"
25862
25863for ac_func in pango_font_family_is_monospace
25864do
25865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25866echo "$as_me:$LINENO: checking for $ac_func" >&5
25867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25868if eval "test \"\${$as_ac_var+set}\" = set"; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25870else
25871 cat >conftest.$ac_ext <<_ACEOF
25872/* confdefs.h. */
25873_ACEOF
25874cat confdefs.h >>conftest.$ac_ext
25875cat >>conftest.$ac_ext <<_ACEOF
25876/* end confdefs.h. */
25877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25879#define $ac_func innocuous_$ac_func
25880
25881/* System header to define __stub macros and hopefully few prototypes,
25882 which can conflict with char $ac_func (); below.
25883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25884 <limits.h> exists even on freestanding compilers. */
25885
25886#ifdef __STDC__
25887# include <limits.h>
25888#else
25889# include <assert.h>
25890#endif
25891
25892#undef $ac_func
25893
25894/* Override any gcc2 internal prototype to avoid an error. */
25895#ifdef __cplusplus
25896extern "C"
25897{
25898#endif
25899/* We use char because int might match the return type of a gcc2
25900 builtin and then its argument prototype would still apply. */
25901char $ac_func ();
25902/* The GNU C library defines this for functions which it implements
25903 to always fail with ENOSYS. Some functions are actually named
25904 something starting with __ and the normal name is an alias. */
25905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25906choke me
25907#else
25908char (*f) () = $ac_func;
25909#endif
25910#ifdef __cplusplus
25911}
25912#endif
25913
25914int
25915main ()
25916{
25917return f != $ac_func;
25918 ;
25919 return 0;
25920}
25921_ACEOF
25922rm -f conftest.$ac_objext conftest$ac_exeext
25923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924 (eval $ac_link) 2>conftest.er1
25925 ac_status=$?
25926 grep -v '^ *+' conftest.er1 >conftest.err
25927 rm -f conftest.er1
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } &&
c228d3a4
RN
25931 { ac_try='test -z "$ac_c_werror_flag"
25932 || test ! -s conftest.err'
304205f1
VS
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; } &&
25938 { ac_try='test -s conftest$ac_exeext'
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; }; then
25944 eval "$as_ac_var=yes"
25945else
25946 echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
25949eval "$as_ac_var=no"
25950fi
25951rm -f conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
25953fi
25954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25956if test `eval echo '${'$as_ac_var'}'` = yes; then
25957 cat >>confdefs.h <<_ACEOF
25958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25959_ACEOF
25960
25961fi
25962done
25963
25964 CFLAGS="$save_CFLAGS"
25965 LIBS="$save_LIBS"
a848cd7e
SC
25966 fi
25967
25968 wxUSE_UNIVERSAL="yes"
25969
25970 if test "$wxUSE_NANOX" = "yes"; then
25971 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25972 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"
25973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25974 else
25975 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25976 fi
25977
a848cd7e
SC
25978 TOOLKIT=X11
25979 GUIDIST=X11_DIST
25980 fi
25981
25982 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25983 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25984echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25985
74b84332
VS
25986ac_find_includes=
25987for ac_dir in $SEARCH_INCLUDE /usr/include;
25988 do
25989 if test -f "$ac_dir/Xm/Xm.h"; then
25990 ac_find_includes=$ac_dir
25991 break
25992 fi
25993 done
a848cd7e 25994
74b84332
VS
25995 if test "$ac_find_includes" != "" ; then
25996 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25997echo "${ECHO_T}found in $ac_find_includes" >&6
25998
25999 if test "x$ac_find_includes" = "x/usr/include"; then
26000 ac_path_to_include=""
26001 else
26002 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26003 result=$?
26004 if test $result = 0; then
26005 ac_path_to_include=""
26006 else
26007 ac_path_to_include=" -I$ac_find_includes"
26008 fi
a848cd7e
SC
26009 fi
26010
74b84332
VS
26011 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26012 else
26013 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26014/* confdefs.h. */
26015_ACEOF
26016cat confdefs.h >>conftest.$ac_ext
26017cat >>conftest.$ac_ext <<_ACEOF
26018/* end confdefs.h. */
26019
74b84332
VS
26020 #include <Xm/Xm.h>
26021
a848cd7e
SC
26022int
26023main ()
26024{
26025
74b84332
VS
26026 int version;
26027 version = xmUseVersion;
26028
a848cd7e
SC
26029 ;
26030 return 0;
26031}
26032_ACEOF
74b84332
VS
26033rm -f conftest.$ac_objext
26034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26035 (eval $ac_compile) 2>conftest.er1
a848cd7e 26036 ac_status=$?
ac1cb8d3
VS
26037 grep -v '^ *+' conftest.er1 >conftest.err
26038 rm -f conftest.er1
26039 cat conftest.err >&5
a848cd7e
SC
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } &&
c228d3a4
RN
26042 { ac_try='test -z "$ac_c_werror_flag"
26043 || test ! -s conftest.err'
ac1cb8d3
VS
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; } &&
74b84332 26049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051 (eval $ac_try) 2>&5
26052 ac_status=$?
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); }; }; then
74b84332
VS
26055
26056 echo "$as_me:$LINENO: result: found in default search path" >&5
26057echo "${ECHO_T}found in default search path" >&6
26058 COMPILED_X_PROGRAM=1
26059
a848cd7e
SC
26060else
26061 echo "$as_me: failed program was:" >&5
26062sed 's/^/| /' conftest.$ac_ext >&5
26063
a848cd7e 26064
74b84332
VS
26065 echo "$as_me:$LINENO: result: no" >&5
26066echo "${ECHO_T}no" >&6
26067 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26068echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26069 { (exit 1); exit 1; }; }
a848cd7e 26070
a848cd7e 26071
a848cd7e 26072fi
74b84332
VS
26073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26074 fi
26075
26076 if test "$COMPILED_X_PROGRAM" = 0; then
26077 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26078echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26079
26080ac_find_libraries=
26081for ac_dir in $SEARCH_LIB /usr/lib;
26082 do
26083 for ac_extension in a so sl dylib; do
26084 if test -f "$ac_dir/libXm.$ac_extension"; then
26085 ac_find_libraries=$ac_dir
26086 break 2
a848cd7e 26087 fi
74b84332
VS
26088 done
26089 done
a848cd7e 26090
74b84332
VS
26091 if test "$ac_find_libraries" != "" ; then
26092 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26093echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26094
74b84332
VS
26095
26096 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26097 result=$?
26098 if test $result = 0; then
26099 ac_path_to_link=""
a848cd7e 26100 else
74b84332
VS
26101 ac_path_to_link=" -L$ac_find_libraries"
26102 fi
26103
26104 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26105 else
26106 save_CFLAGS=$CFLAGS
26107 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26108
26109 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26110/* confdefs.h. */
26111_ACEOF
26112cat confdefs.h >>conftest.$ac_ext
26113cat >>conftest.$ac_ext <<_ACEOF
26114/* end confdefs.h. */
26115
74b84332
VS
26116 #include <Xm/Xm.h>
26117
a848cd7e
SC
26118int
26119main ()
26120{
74b84332
VS
26121
26122 int version;
26123 version = xmUseVersion;
26124
a848cd7e
SC
26125 ;
26126 return 0;
26127}
26128_ACEOF
74b84332
VS
26129rm -f conftest.$ac_objext
26130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26131 (eval $ac_compile) 2>conftest.er1
a848cd7e 26132 ac_status=$?
ac1cb8d3
VS
26133 grep -v '^ *+' conftest.er1 >conftest.err
26134 rm -f conftest.er1
26135 cat conftest.err >&5
a848cd7e
SC
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } &&
c228d3a4
RN
26138 { ac_try='test -z "$ac_c_werror_flag"
26139 || test ! -s conftest.err'
ac1cb8d3
VS
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; } &&
74b84332 26145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; }; then
74b84332
VS
26151
26152 echo "$as_me:$LINENO: result: found in default search path" >&5
26153echo "${ECHO_T}found in default search path" >&6
26154 COMPILED_X_PROGRAM=1
26155
a848cd7e
SC
26156else
26157 echo "$as_me: failed program was:" >&5
26158sed 's/^/| /' conftest.$ac_ext >&5
26159
74b84332
VS
26160
26161 echo "$as_me:$LINENO: result: no" >&5
26162echo "${ECHO_T}no" >&6
26163 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26164echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26165 { (exit 1); exit 1; }; }
26166
26167
26168fi
26169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26170
26171 CFLAGS=$save_CFLAGS
26172 fi
26173 fi
26174
26175 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26176echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26177 libp_link=""
26178 libsm_ice_link=""
26179 libs_found=0
26180 for libp in "" " -lXp"; do
26181 if test "$libs_found" = "0"; then
26182 for libsm_ice in "" " -lSM -lICE"; do
26183 if test "$libs_found" = "0"; then
26184 save_LIBS="$LIBS"
26185 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26186 save_CFLAGS=$CFLAGS
26187 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26188
26189 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26190/* confdefs.h. */
26191_ACEOF
26192cat confdefs.h >>conftest.$ac_ext
26193cat >>conftest.$ac_ext <<_ACEOF
26194/* end confdefs.h. */
26195
74b84332
VS
26196 #include <Xm/Xm.h>
26197 #include <Xm/List.h>
26198
a848cd7e
SC
26199int
26200main ()
26201{
74b84332
VS
26202
26203 XmString string = NULL;
26204 Widget w = NULL;
26205 int position = 0;
26206 XmListAddItem(w, string, position);
26207
a848cd7e
SC
26208 ;
26209 return 0;
26210}
26211_ACEOF
26212rm -f conftest.$ac_objext conftest$ac_exeext
26213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26214 (eval $ac_link) 2>conftest.er1
a848cd7e 26215 ac_status=$?
ac1cb8d3
VS
26216 grep -v '^ *+' conftest.er1 >conftest.err
26217 rm -f conftest.er1
26218 cat conftest.err >&5
a848cd7e
SC
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); } &&
c228d3a4
RN
26221 { ac_try='test -z "$ac_c_werror_flag"
26222 || test ! -s conftest.err'
ac1cb8d3
VS
26223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224 (eval $ac_try) 2>&5
26225 ac_status=$?
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); }; } &&
26228 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230 (eval $ac_try) 2>&5
26231 ac_status=$?
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); }; }; then
26234
26235 libp_link="$libp"
26236 libsm_ice_link="$libsm_ice"
26237 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26238echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26239 libs_found=1
26240
26241else
26242 echo "$as_me: failed program was:" >&5
26243sed 's/^/| /' conftest.$ac_ext >&5
26244
26245
26246
26247fi
ac1cb8d3
VS
26248rm -f conftest.err conftest.$ac_objext \
26249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26250
26251 LIBS="$save_LIBS"
26252 CFLAGS=$save_CFLAGS
26253 fi
26254 done
26255 fi
26256 done
26257
26258 if test "$libs_found" = "0"; then
26259 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26260echo "${ECHO_T}can't find the right libraries" >&6
26261 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26262echo "$as_me: error: can't link a simple motif program" >&2;}
26263 { (exit 1); exit 1; }; }
26264 fi
26265
26266 save_CFLAGS=$CFLAGS
26267 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26268 echo "$as_me:$LINENO: checking for Motif 2" >&5
26269echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26270 cat >conftest.$ac_ext <<_ACEOF
26271/* confdefs.h. */
26272_ACEOF
26273cat confdefs.h >>conftest.$ac_ext
26274cat >>conftest.$ac_ext <<_ACEOF
26275/* end confdefs.h. */
26276
26277 #include <Xm/Xm.h>
26278
26279int
26280main ()
26281{
26282
26283 #if XmVersion < 2000
26284 #error "Not Motif 2"
26285 #endif
26286
26287 ;
26288 return 0;
26289}
26290_ACEOF
26291rm -f conftest.$ac_objext
26292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26293 (eval $ac_compile) 2>conftest.er1
a848cd7e 26294 ac_status=$?
ac1cb8d3
VS
26295 grep -v '^ *+' conftest.er1 >conftest.err
26296 rm -f conftest.er1
26297 cat conftest.err >&5
a848cd7e
SC
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } &&
c228d3a4
RN
26300 { ac_try='test -z "$ac_c_werror_flag"
26301 || test ! -s conftest.err'
ac1cb8d3
VS
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; } &&
26307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); }; }; then
26313
26314 cat >>confdefs.h <<\_ACEOF
26315#define __WXMOTIF20__ 1
26316_ACEOF
26317
26318 echo "$as_me:$LINENO: result: found" >&5
26319echo "${ECHO_T}found" >&6
26320
26321else
26322 echo "$as_me: failed program was:" >&5
26323sed 's/^/| /' conftest.$ac_ext >&5
26324
26325
26326 cat >>confdefs.h <<\_ACEOF
26327#define __WXMOTIF20__ 0
26328_ACEOF
26329
26330 echo "$as_me:$LINENO: result: not found" >&5
26331echo "${ECHO_T}not found" >&6
26332
26333fi
ac1cb8d3 26334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26335 CFLAGS=$save_CFLAGS
26336
26337 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26338 TOOLKIT=MOTIF
26339 GUIDIST=MOTIF_DIST
26340 fi
26341
74b84332 26342 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26343 if test "$wxUSE_LIBXPM" = "sys"; then
26344 echo "$as_me:$LINENO: checking for Xpm library" >&5
26345echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26346
26347ac_find_libraries=
26348for ac_dir in $SEARCH_LIB /usr/lib;
26349 do
26350 for ac_extension in a so sl dylib; do
26351 if test -f "$ac_dir/libXpm.$ac_extension"; then
26352 ac_find_libraries=$ac_dir
26353 break 2
26354 fi
26355 done
26356 done
26357
26358 if test "$ac_find_libraries" != "" ; then
26359
26360 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26361 result=$?
26362 if test $result = 0; then
26363 ac_path_to_link=""
26364 else
26365 ac_path_to_link=" -L$ac_find_libraries"
26366 fi
26367
26368 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26369 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26370echo "${ECHO_T}found at $ac_find_libraries" >&6
26371
26372 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26373echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26374if test "${wx_cv_x11_xpm_h+set}" = set; then
26375 echo $ECHO_N "(cached) $ECHO_C" >&6
26376else
26377
26378 save_CFLAGS=$CFLAGS
26379 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26380
26381 cat >conftest.$ac_ext <<_ACEOF
26382/* confdefs.h. */
26383_ACEOF
26384cat confdefs.h >>conftest.$ac_ext
26385cat >>conftest.$ac_ext <<_ACEOF
26386/* end confdefs.h. */
26387
26388 #include <X11/xpm.h>
26389
26390int
26391main ()
26392{
26393
26394 int version;
26395 version = XpmLibraryVersion();
26396
26397 ;
26398 return 0;
26399}
26400_ACEOF
26401rm -f conftest.$ac_objext
26402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26403 (eval $ac_compile) 2>conftest.er1
a848cd7e 26404 ac_status=$?
ac1cb8d3
VS
26405 grep -v '^ *+' conftest.er1 >conftest.err
26406 rm -f conftest.er1
26407 cat conftest.err >&5
a848cd7e
SC
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } &&
c228d3a4
RN
26410 { ac_try='test -z "$ac_c_werror_flag"
26411 || test ! -s conftest.err'
ac1cb8d3
VS
26412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); }; } &&
26417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26419 (eval $ac_try) 2>&5
26420 ac_status=$?
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); }; }; then
26423 wx_cv_x11_xpm_h=yes
26424else
26425 echo "$as_me: failed program was:" >&5
26426sed 's/^/| /' conftest.$ac_ext >&5
26427
26428wx_cv_x11_xpm_h=no
26429
26430fi
ac1cb8d3 26431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26432
26433 CFLAGS=$save_CFLAGS
26434
26435
26436fi
26437echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26438echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26439
26440 if test $wx_cv_x11_xpm_h = "yes"; then
26441 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26442 cat >>confdefs.h <<\_ACEOF
26443#define wxHAVE_LIB_XPM 1
26444_ACEOF
26445
26446 else
26447 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26448echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26449 fi
26450 fi
26451
26452 fi
26453
26454 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26455echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26456if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26457 echo $ECHO_N "(cached) $ECHO_C" >&6
26458else
26459 ac_check_lib_save_LIBS=$LIBS
26460LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26461cat >conftest.$ac_ext <<_ACEOF
26462/* confdefs.h. */
26463_ACEOF
26464cat confdefs.h >>conftest.$ac_ext
26465cat >>conftest.$ac_ext <<_ACEOF
26466/* end confdefs.h. */
26467
26468/* Override any gcc2 internal prototype to avoid an error. */
26469#ifdef __cplusplus
26470extern "C"
26471#endif
26472/* We use char because int might match the return type of a gcc2
26473 builtin and then its argument prototype would still apply. */
26474char XShapeQueryExtension ();
26475int
26476main ()
26477{
26478XShapeQueryExtension ();
26479 ;
26480 return 0;
26481}
26482_ACEOF
26483rm -f conftest.$ac_objext conftest$ac_exeext
26484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26485 (eval $ac_link) 2>conftest.er1
a848cd7e 26486 ac_status=$?
ac1cb8d3
VS
26487 grep -v '^ *+' conftest.er1 >conftest.err
26488 rm -f conftest.er1
26489 cat conftest.err >&5
a848cd7e
SC
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } &&
c228d3a4
RN
26492 { ac_try='test -z "$ac_c_werror_flag"
26493 || test ! -s conftest.err'
ac1cb8d3
VS
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; } &&
26499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 ac_cv_lib_Xext_XShapeQueryExtension=yes
26506else
26507 echo "$as_me: failed program was:" >&5
26508sed 's/^/| /' conftest.$ac_ext >&5
26509
26510ac_cv_lib_Xext_XShapeQueryExtension=no
26511fi
ac1cb8d3
VS
26512rm -f conftest.err conftest.$ac_objext \
26513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26514LIBS=$ac_check_lib_save_LIBS
26515fi
26516echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26517echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26518if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26519
26520 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26521 wxHAVE_XEXT_LIB=1
26522
26523fi
26524
26525
26526 if test "$wxHAVE_XEXT_LIB" = 1; then
26527 save_CFLAGS="$CFLAGS"
26528 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26529
26530 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26531echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26532 cat >conftest.$ac_ext <<_ACEOF
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
26538
26539 #include <X11/Xlib.h>
26540 #include <X11/extensions/shape.h>
26541
26542int
26543main ()
26544{
26545
26546 int dummy1, dummy2;
26547 XShapeQueryExtension((Display*)NULL,
26548 (int*)NULL, (int*)NULL);
26549
26550 ;
26551 return 0;
26552}
26553_ACEOF
26554rm -f conftest.$ac_objext
26555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26556 (eval $ac_compile) 2>conftest.er1
a848cd7e 26557 ac_status=$?
ac1cb8d3
VS
26558 grep -v '^ *+' conftest.er1 >conftest.err
26559 rm -f conftest.er1
26560 cat conftest.err >&5
a848cd7e
SC
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } &&
c228d3a4
RN
26563 { ac_try='test -z "$ac_c_werror_flag"
26564 || test ! -s conftest.err'
ac1cb8d3
VS
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576
26577 cat >>confdefs.h <<\_ACEOF
26578#define HAVE_XSHAPE 1
26579_ACEOF
26580
26581 echo "$as_me:$LINENO: result: found" >&5
26582echo "${ECHO_T}found" >&6
26583
26584else
26585 echo "$as_me: failed program was:" >&5
26586sed 's/^/| /' conftest.$ac_ext >&5
26587
26588
26589 echo "$as_me:$LINENO: result: not found" >&5
26590echo "${ECHO_T}not found" >&6
26591
26592fi
ac1cb8d3 26593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26594 CFLAGS="$save_CFLAGS"
26595
26596 fi
26597 fi
26598
26599 if test "$wxUSE_MAC" = 1; then
26600 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26601echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26602 if test "$GCC" = yes; then
26603 echo "$as_me:$LINENO: result: gcc" >&5
26604echo "${ECHO_T}gcc" >&6
26605 CPPFLAGS_PASCAL="-fpascal-strings"
26606 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26607 echo "$as_me:$LINENO: result: xlc" >&5
26608echo "${ECHO_T}xlc" >&6
26609 CPPFLAGS_PASCAL="-qmacpstr"
26610 else
26611 echo "$as_me:$LINENO: result: none" >&5
26612echo "${ECHO_T}none" >&6
26613 fi
26614
26615 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26616
a848cd7e
SC
26617 TOOLKIT=MAC
26618 GUIDIST=MACX_DIST
dd21ced8 26619 WXBASEPORT="_carbon"
a848cd7e
SC
26620 fi
26621
26622 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26623 TOOLKIT=COCOA
26624 GUIDIST=COCOA_DIST
26625 fi
26626
26627 if test "$wxUSE_PM" = 1; then
26628 TOOLKIT=PM
de59c161
RD
26629 GUIDIST=PM_DIST
26630 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26631echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26632if test "${wx_cv_spbcdata+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635
26636 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26637/* confdefs.h. */
26638_ACEOF
26639cat confdefs.h >>conftest.$ac_ext
26640cat >>conftest.$ac_ext <<_ACEOF
26641/* end confdefs.h. */
26642
26643 #define INCL_PM
26644 #include <os2.h>
26645
26646int
26647main ()
26648{
26649
26650 SPBCDATA test;
26651
26652 ;
26653 return 0;
26654}
26655_ACEOF
26656rm -f conftest.$ac_objext
26657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26658 (eval $ac_compile) 2>conftest.er1
de59c161 26659 ac_status=$?
ac1cb8d3
VS
26660 grep -v '^ *+' conftest.er1 >conftest.err
26661 rm -f conftest.er1
26662 cat conftest.err >&5
de59c161
RD
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); } &&
c228d3a4
RN
26665 { ac_try='test -z "$ac_c_werror_flag"
26666 || test ! -s conftest.err'
ac1cb8d3
VS
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26669 ac_status=$?
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; } &&
26672 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674 (eval $ac_try) 2>&5
26675 ac_status=$?
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; }; then
26678 wx_cv_spbcdata=yes
26679else
26680 echo "$as_me: failed program was:" >&5
26681sed 's/^/| /' conftest.$ac_ext >&5
26682
26683wx_cv_spbcdata=no
26684
26685fi
ac1cb8d3 26686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26687
26688
26689fi
26690echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26691echo "${ECHO_T}$wx_cv_spbcdata" >&6
26692
26693 if test $wx_cv_spbcdata = "yes"; then
26694 cat >>confdefs.h <<\_ACEOF
26695#define HAVE_SPBCDATA 1
26696_ACEOF
26697
26698 fi
a848cd7e
SC
26699 fi
26700
26701 if test "$TOOLKIT" = "PM" ; then
26702 TOOLKIT_DIR="os2"
26703 else
26704 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26705 fi
26706
a848cd7e 26707 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26708 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26709 WIDGET_SET=univ
a848cd7e
SC
26710 fi
26711
26712 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26713 DISTDIR="wx\$(TOOLKIT)"
26714else
26715 USE_GUI=0
26716
26717 TOOLKIT_DIR="base"
26718
26719 if test "$USE_WIN32" = 1 ; then
a848cd7e 26720 TOOLKIT="MSW"
a848cd7e
SC
26721 fi
26722
a848cd7e
SC
26723 GUIDIST="BASE_DIST"
26724 DISTDIR="wxBase"
26725fi
26726
26727
26728
26729
26730IODBC_C_SRC=""
26731
26732
26733if test "$TOOLKIT" != "MSW" ; then
26734
26735 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26736
26737 if test "${ac_cv_header_sql_h+set}" = set; then
26738 echo "$as_me:$LINENO: checking for sql.h" >&5
26739echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26740if test "${ac_cv_header_sql_h+set}" = set; then
26741 echo $ECHO_N "(cached) $ECHO_C" >&6
26742fi
26743echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26744echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26745else
26746 # Is the header compilable?
26747echo "$as_me:$LINENO: checking sql.h usability" >&5
26748echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26749cat >conftest.$ac_ext <<_ACEOF
26750/* confdefs.h. */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h. */
26755$ac_includes_default
26756#include <sql.h>
26757_ACEOF
26758rm -f conftest.$ac_objext
26759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26760 (eval $ac_compile) 2>conftest.er1
a848cd7e 26761 ac_status=$?
ac1cb8d3
VS
26762 grep -v '^ *+' conftest.er1 >conftest.err
26763 rm -f conftest.er1
26764 cat conftest.err >&5
a848cd7e
SC
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } &&
c228d3a4
RN
26767 { ac_try='test -z "$ac_c_werror_flag"
26768 || test ! -s conftest.err'
ac1cb8d3
VS
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; } &&
26774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776 (eval $ac_try) 2>&5
26777 ac_status=$?
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); }; }; then
26780 ac_header_compiler=yes
26781else
26782 echo "$as_me: failed program was:" >&5
26783sed 's/^/| /' conftest.$ac_ext >&5
26784
26785ac_header_compiler=no
26786fi
ac1cb8d3 26787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26789echo "${ECHO_T}$ac_header_compiler" >&6
26790
26791# Is the header present?
26792echo "$as_me:$LINENO: checking sql.h presence" >&5
26793echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26794cat >conftest.$ac_ext <<_ACEOF
26795/* confdefs.h. */
26796_ACEOF
26797cat confdefs.h >>conftest.$ac_ext
26798cat >>conftest.$ac_ext <<_ACEOF
26799/* end confdefs.h. */
26800#include <sql.h>
26801_ACEOF
26802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26804 ac_status=$?
26805 grep -v '^ *+' conftest.er1 >conftest.err
26806 rm -f conftest.er1
26807 cat conftest.err >&5
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } >/dev/null; then
26810 if test -s conftest.err; then
26811 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26813 else
26814 ac_cpp_err=
26815 fi
26816else
26817 ac_cpp_err=yes
26818fi
26819if test -z "$ac_cpp_err"; then
26820 ac_header_preproc=yes
26821else
26822 echo "$as_me: failed program was:" >&5
26823sed 's/^/| /' conftest.$ac_ext >&5
26824
26825 ac_header_preproc=no
26826fi
26827rm -f conftest.err conftest.$ac_ext
26828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26829echo "${ECHO_T}$ac_header_preproc" >&6
26830
26831# So? What about this header?
ac1cb8d3
VS
26832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26833 yes:no: )
a848cd7e
SC
26834 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26835echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26836 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26837echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26838 ac_header_preproc=yes
a848cd7e 26839 ;;
ac1cb8d3 26840 no:yes:* )
a848cd7e
SC
26841 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26842echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26843 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26844echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26845 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26846echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26847 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26848echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26849 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26850echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26851 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26852echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26853 (
26854 cat <<\_ASBOX
ac1cb8d3
VS
26855## ----------------------------------------- ##
26856## Report this to wx-dev@lists.wxwidgets.org ##
26857## ----------------------------------------- ##
a848cd7e
SC
26858_ASBOX
26859 ) |
26860 sed "s/^/$as_me: WARNING: /" >&2
26861 ;;
26862esac
26863echo "$as_me:$LINENO: checking for sql.h" >&5
26864echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26865if test "${ac_cv_header_sql_h+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867else
26868 ac_cv_header_sql_h=$ac_header_preproc
26869fi
26870echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26871echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26872
26873fi
26874if test $ac_cv_header_sql_h = yes; then
26875 found_sql_h=1
26876fi
26877
26878
26879 if test "x$found_sql_h" = "x1" ; then
26880 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26881echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26882if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26884else
26885 ac_check_lib_save_LIBS=$LIBS
26886LIBS="-liodbc $LIBS"
26887cat >conftest.$ac_ext <<_ACEOF
26888/* confdefs.h. */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h. */
26893
26894/* Override any gcc2 internal prototype to avoid an error. */
26895#ifdef __cplusplus
26896extern "C"
26897#endif
26898/* We use char because int might match the return type of a gcc2
26899 builtin and then its argument prototype would still apply. */
26900char SQLAllocEnv ();
26901int
26902main ()
26903{
26904SQLAllocEnv ();
26905 ;
26906 return 0;
26907}
26908_ACEOF
26909rm -f conftest.$ac_objext conftest$ac_exeext
26910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26911 (eval $ac_link) 2>conftest.er1
a848cd7e 26912 ac_status=$?
ac1cb8d3
VS
26913 grep -v '^ *+' conftest.er1 >conftest.err
26914 rm -f conftest.er1
26915 cat conftest.err >&5
a848cd7e
SC
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } &&
c228d3a4
RN
26918 { ac_try='test -z "$ac_c_werror_flag"
26919 || test ! -s conftest.err'
ac1cb8d3
VS
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; } &&
26925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927 (eval $ac_try) 2>&5
26928 ac_status=$?
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); }; }; then
26931 ac_cv_lib_iodbc_SQLAllocEnv=yes
26932else
26933 echo "$as_me: failed program was:" >&5
26934sed 's/^/| /' conftest.$ac_ext >&5
26935
26936ac_cv_lib_iodbc_SQLAllocEnv=no
26937fi
ac1cb8d3
VS
26938rm -f conftest.err conftest.$ac_objext \
26939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26940LIBS=$ac_check_lib_save_LIBS
26941fi
26942echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26943echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26944if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26945 ODBC_LINK=" -liodbc"
26946else
26947
26948 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26949echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26950if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26951 echo $ECHO_N "(cached) $ECHO_C" >&6
26952else
26953 ac_check_lib_save_LIBS=$LIBS
26954LIBS="-lunixodbc $LIBS"
26955cat >conftest.$ac_ext <<_ACEOF
26956/* confdefs.h. */
26957_ACEOF
26958cat confdefs.h >>conftest.$ac_ext
26959cat >>conftest.$ac_ext <<_ACEOF
26960/* end confdefs.h. */
26961
26962/* Override any gcc2 internal prototype to avoid an error. */
26963#ifdef __cplusplus
26964extern "C"
26965#endif
26966/* We use char because int might match the return type of a gcc2
26967 builtin and then its argument prototype would still apply. */
26968char SQLAllocEnv ();
26969int
26970main ()
26971{
26972SQLAllocEnv ();
26973 ;
26974 return 0;
26975}
26976_ACEOF
26977rm -f conftest.$ac_objext conftest$ac_exeext
26978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26979 (eval $ac_link) 2>conftest.er1
a848cd7e 26980 ac_status=$?
ac1cb8d3
VS
26981 grep -v '^ *+' conftest.er1 >conftest.err
26982 rm -f conftest.er1
26983 cat conftest.err >&5
a848cd7e
SC
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
c228d3a4
RN
26986 { ac_try='test -z "$ac_c_werror_flag"
26987 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
26993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
26999 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27000else
27001 echo "$as_me: failed program was:" >&5
27002sed 's/^/| /' conftest.$ac_ext >&5
27003
27004ac_cv_lib_unixodbc_SQLAllocEnv=no
27005fi
ac1cb8d3
VS
27006rm -f conftest.err conftest.$ac_objext \
27007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27008LIBS=$ac_check_lib_save_LIBS
27009fi
27010echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27011echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27012if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27013 ODBC_LINK=" -lunixodbc"
27014else
27015
27016 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27017echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27018if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27020else
27021 ac_check_lib_save_LIBS=$LIBS
27022LIBS="-lodbc $LIBS"
27023cat >conftest.$ac_ext <<_ACEOF
27024/* confdefs.h. */
27025_ACEOF
27026cat confdefs.h >>conftest.$ac_ext
27027cat >>conftest.$ac_ext <<_ACEOF
27028/* end confdefs.h. */
27029
27030/* Override any gcc2 internal prototype to avoid an error. */
27031#ifdef __cplusplus
27032extern "C"
27033#endif
27034/* We use char because int might match the return type of a gcc2
27035 builtin and then its argument prototype would still apply. */
27036char SQLAllocEnv ();
27037int
27038main ()
27039{
27040SQLAllocEnv ();
27041 ;
27042 return 0;
27043}
27044_ACEOF
27045rm -f conftest.$ac_objext conftest$ac_exeext
27046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27047 (eval $ac_link) 2>conftest.er1
a848cd7e 27048 ac_status=$?
ac1cb8d3
VS
27049 grep -v '^ *+' conftest.er1 >conftest.err
27050 rm -f conftest.er1
27051 cat conftest.err >&5
a848cd7e
SC
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); } &&
c228d3a4
RN
27054 { ac_try='test -z "$ac_c_werror_flag"
27055 || test ! -s conftest.err'
ac1cb8d3
VS
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27058 ac_status=$?
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; } &&
27061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27067 ac_cv_lib_odbc_SQLAllocEnv=yes
27068else
27069 echo "$as_me: failed program was:" >&5
27070sed 's/^/| /' conftest.$ac_ext >&5
27071
27072ac_cv_lib_odbc_SQLAllocEnv=no
27073fi
ac1cb8d3
VS
27074rm -f conftest.err conftest.$ac_objext \
27075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27076LIBS=$ac_check_lib_save_LIBS
27077fi
27078echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27079echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27080if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27081 ODBC_LINK=" -lodbc"
27082fi
27083
27084
27085fi
27086
27087
27088fi
27089
27090 fi
27091 if test "x$ODBC_LINK" = "x" ; then
27092 if test "$wxUSE_ODBC" = "sys" ; then
27093 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27094echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27095 { (exit 1); exit 1; }; }
27096 else
27097 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27098echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27099 wxUSE_ODBC=builtin
27100 fi
27101 else
27102 wxUSE_ODBC=sys
27103 fi
27104 fi
27105 if test "$wxUSE_ODBC" != "no" ; then
27106 cat >>confdefs.h <<\_ACEOF
27107#define wxUSE_ODBC 1
27108_ACEOF
27109
27110 if test "$wxUSE_ODBC" = "builtin" ; then
27111 cat >>confdefs.h <<\_ACEOF
27112#define wxUSE_BUILTIN_IODBC 1
27113_ACEOF
27114
27115 fi
27116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27117
27118 WXODBCFLAG="-D_IODBC_"
27119 fi
27120fi
27121
a848cd7e 27122
01cb68df 27123
a848cd7e 27124if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27125 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27126 echo "$as_me:$LINENO: checking for Xinerama" >&5
27127echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27128
27129ac_find_libraries=
27130for ac_dir in $SEARCH_LIB /usr/lib;
27131 do
27132 for ac_extension in a so sl dylib; do
27133 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27134 ac_find_libraries=$ac_dir
27135 break 2
27136 fi
27137 done
27138 done
27139
27140 if test "$ac_find_libraries" != "" ; then
27141
27142 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27143 result=$?
27144 if test $result = 0; then
27145 ac_path_to_link=""
27146 else
27147 ac_path_to_link=" -L$ac_find_libraries"
27148 fi
27149
27150 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27151 LDFLAGS="$LDFLAGS $ac_path_to_link"
27152 fi
27153 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27154 echo "$as_me:$LINENO: result: yes" >&5
27155echo "${ECHO_T}yes" >&6
27156
27157 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27158echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27159
27160ac_find_libraries=
27161for ac_dir in $SEARCH_LIB /usr/lib;
27162 do
27163 for ac_extension in a so sl dylib; do
27164 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27165 ac_find_libraries=$ac_dir
27166 break 2
27167 fi
27168 done
27169 done
27170
27171 if test "$ac_find_libraries" != "" ; then
27172 echo "$as_me:$LINENO: result: yes" >&5
27173echo "${ECHO_T}yes" >&6
27174
27175for ac_header in X11/extensions/xf86vmode.h
27176do
27177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27178echo "$as_me:$LINENO: checking for $ac_header" >&5
27179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27180if eval "test \"\${$as_ac_Header+set}\" = set"; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182else
27183 cat >conftest.$ac_ext <<_ACEOF
27184/* confdefs.h. */
27185_ACEOF
27186cat confdefs.h >>conftest.$ac_ext
27187cat >>conftest.$ac_ext <<_ACEOF
27188/* end confdefs.h. */
27189
27190 #if HAVE_X11_XLIB_H
27191 #include <X11/Xlib.h>
27192 #endif
27193
27194
27195#include <$ac_header>
27196_ACEOF
27197rm -f conftest.$ac_objext
27198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27199 (eval $ac_compile) 2>conftest.er1
a848cd7e 27200 ac_status=$?
ac1cb8d3
VS
27201 grep -v '^ *+' conftest.er1 >conftest.err
27202 rm -f conftest.er1
27203 cat conftest.err >&5
a848cd7e
SC
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } &&
c228d3a4
RN
27206 { ac_try='test -z "$ac_c_werror_flag"
27207 || test ! -s conftest.err'
ac1cb8d3
VS
27208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27209 (eval $ac_try) 2>&5
27210 ac_status=$?
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); }; } &&
27213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27215 (eval $ac_try) 2>&5
27216 ac_status=$?
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); }; }; then
27219 eval "$as_ac_Header=yes"
27220else
27221 echo "$as_me: failed program was:" >&5
27222sed 's/^/| /' conftest.$ac_ext >&5
27223
27224eval "$as_ac_Header=no"
27225fi
ac1cb8d3 27226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27227fi
27228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27230if test `eval echo '${'$as_ac_Header'}'` = yes; then
27231 cat >>confdefs.h <<_ACEOF
27232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27233_ACEOF
27234
27235 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27236
27237fi
27238
27239done
27240
27241 else
27242 echo "$as_me:$LINENO: result: no" >&5
27243echo "${ECHO_T}no" >&6
27244 fi
27245
27246 else
27247 echo "$as_me:$LINENO: result: no" >&5
27248echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27249 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27250echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27251 wxUSE_DISPLAY="no"
27252 fi
01cb68df
RG
27253 elif test "$wxUSE_MSW" = 1; then
27254
27255
27256for ac_header in multimon.h ddraw.h
27257do
27258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27259if eval "test \"\${$as_ac_Header+set}\" = set"; then
27260 echo "$as_me:$LINENO: checking for $ac_header" >&5
27261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27262if eval "test \"\${$as_ac_Header+set}\" = set"; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27264fi
27265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27267else
27268 # Is the header compilable?
27269echo "$as_me:$LINENO: checking $ac_header usability" >&5
27270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27271cat >conftest.$ac_ext <<_ACEOF
27272/* confdefs.h. */
27273_ACEOF
27274cat confdefs.h >>conftest.$ac_ext
27275cat >>conftest.$ac_ext <<_ACEOF
27276/* end confdefs.h. */
27277$ac_includes_default
27278#include <$ac_header>
27279_ACEOF
27280rm -f conftest.$ac_objext
27281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27282 (eval $ac_compile) 2>conftest.er1
01cb68df 27283 ac_status=$?
ac1cb8d3
VS
27284 grep -v '^ *+' conftest.er1 >conftest.err
27285 rm -f conftest.er1
27286 cat conftest.err >&5
01cb68df
RG
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } &&
c228d3a4
RN
27289 { ac_try='test -z "$ac_c_werror_flag"
27290 || test ! -s conftest.err'
ac1cb8d3
VS
27291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27292 (eval $ac_try) 2>&5
27293 ac_status=$?
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; } &&
27296 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; }; then
27302 ac_header_compiler=yes
27303else
27304 echo "$as_me: failed program was:" >&5
27305sed 's/^/| /' conftest.$ac_ext >&5
27306
27307ac_header_compiler=no
27308fi
ac1cb8d3 27309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27311echo "${ECHO_T}$ac_header_compiler" >&6
27312
27313# Is the header present?
27314echo "$as_me:$LINENO: checking $ac_header presence" >&5
27315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27316cat >conftest.$ac_ext <<_ACEOF
27317/* confdefs.h. */
27318_ACEOF
27319cat confdefs.h >>conftest.$ac_ext
27320cat >>conftest.$ac_ext <<_ACEOF
27321/* end confdefs.h. */
27322#include <$ac_header>
27323_ACEOF
27324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27326 ac_status=$?
27327 grep -v '^ *+' conftest.er1 >conftest.err
27328 rm -f conftest.er1
27329 cat conftest.err >&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } >/dev/null; then
27332 if test -s conftest.err; then
27333 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27335 else
27336 ac_cpp_err=
27337 fi
27338else
27339 ac_cpp_err=yes
27340fi
27341if test -z "$ac_cpp_err"; then
27342 ac_header_preproc=yes
27343else
27344 echo "$as_me: failed program was:" >&5
27345sed 's/^/| /' conftest.$ac_ext >&5
27346
27347 ac_header_preproc=no
27348fi
27349rm -f conftest.err conftest.$ac_ext
27350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27351echo "${ECHO_T}$ac_header_preproc" >&6
27352
27353# So? What about this header?
ac1cb8d3
VS
27354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27355 yes:no: )
01cb68df
RG
27356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27360 ac_header_preproc=yes
01cb68df 27361 ;;
ac1cb8d3 27362 no:yes:* )
01cb68df
RG
27363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27375 (
27376 cat <<\_ASBOX
ac1cb8d3
VS
27377## ----------------------------------------- ##
27378## Report this to wx-dev@lists.wxwidgets.org ##
27379## ----------------------------------------- ##
01cb68df
RG
27380_ASBOX
27381 ) |
27382 sed "s/^/$as_me: WARNING: /" >&2
27383 ;;
27384esac
27385echo "$as_me:$LINENO: checking for $ac_header" >&5
27386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27387if eval "test \"\${$as_ac_Header+set}\" = set"; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389else
ac1cb8d3 27390 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27391fi
27392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27394
27395fi
27396if test `eval echo '${'$as_ac_Header'}'` = yes; then
27397 cat >>confdefs.h <<_ACEOF
27398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27399_ACEOF
27400
27401else
27402
27403 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27404 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27405echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27406
27407fi
27408
27409done
27410
a848cd7e
SC
27411 fi
27412fi
27413
27414
27415USE_OPENGL=0
27416if test "$wxUSE_OPENGL" = "yes"; then
27417 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27418 OPENGL_LIBS="-framework OpenGL -framework AGL"
27419 elif test "$wxUSE_MSW" = 1; then
27420 OPENGL_LIBS="-lopengl32 -lglu32"
27421 else
27422
27423
27424ac_find_includes=
27425for ac_dir in $SEARCH_INCLUDE /usr/include;
27426 do
27427 if test -f "$ac_dir/GL/gl.h"; then
27428 ac_find_includes=$ac_dir
27429 break
27430 fi
27431 done
27432
27433 if test "$ac_find_includes" != "" ; then
27434 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27435echo "${ECHO_T}found in $ac_find_includes" >&6
27436
27437 if test "x$ac_find_includes" = "x/usr/include"; then
27438 ac_path_to_include=""
27439 else
27440 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27441 result=$?
27442 if test $result = 0; then
27443 ac_path_to_include=""
27444 else
27445 ac_path_to_include=" -I$ac_find_includes"
27446 fi
27447 fi
27448
27449 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27450 fi
27451
27452 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27453 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27454echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27455if test "${ac_cv_header_GL_gl_h+set}" = set; then
27456 echo $ECHO_N "(cached) $ECHO_C" >&6
27457fi
27458echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27459echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27460else
27461 # Is the header compilable?
27462echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27463echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27464cat >conftest.$ac_ext <<_ACEOF
27465/* confdefs.h. */
27466_ACEOF
27467cat confdefs.h >>conftest.$ac_ext
27468cat >>conftest.$ac_ext <<_ACEOF
27469/* end confdefs.h. */
27470$ac_includes_default
27471#include <GL/gl.h>
27472_ACEOF
27473rm -f conftest.$ac_objext
27474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27475 (eval $ac_compile) 2>conftest.er1
a848cd7e 27476 ac_status=$?
ac1cb8d3
VS
27477 grep -v '^ *+' conftest.er1 >conftest.err
27478 rm -f conftest.er1
27479 cat conftest.err >&5
a848cd7e
SC
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } &&
c228d3a4
RN
27482 { ac_try='test -z "$ac_c_werror_flag"
27483 || test ! -s conftest.err'
ac1cb8d3
VS
27484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485 (eval $ac_try) 2>&5
27486 ac_status=$?
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; } &&
27489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491 (eval $ac_try) 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
27495 ac_header_compiler=yes
27496else
27497 echo "$as_me: failed program was:" >&5
27498sed 's/^/| /' conftest.$ac_ext >&5
27499
27500ac_header_compiler=no
27501fi
ac1cb8d3 27502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27504echo "${ECHO_T}$ac_header_compiler" >&6
27505
27506# Is the header present?
27507echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27508echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27509cat >conftest.$ac_ext <<_ACEOF
27510/* confdefs.h. */
27511_ACEOF
27512cat confdefs.h >>conftest.$ac_ext
27513cat >>conftest.$ac_ext <<_ACEOF
27514/* end confdefs.h. */
27515#include <GL/gl.h>
27516_ACEOF
27517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27519 ac_status=$?
27520 grep -v '^ *+' conftest.er1 >conftest.err
27521 rm -f conftest.er1
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } >/dev/null; then
27525 if test -s conftest.err; then
27526 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27528 else
27529 ac_cpp_err=
27530 fi
27531else
27532 ac_cpp_err=yes
27533fi
27534if test -z "$ac_cpp_err"; then
27535 ac_header_preproc=yes
27536else
27537 echo "$as_me: failed program was:" >&5
27538sed 's/^/| /' conftest.$ac_ext >&5
27539
27540 ac_header_preproc=no
27541fi
27542rm -f conftest.err conftest.$ac_ext
27543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27544echo "${ECHO_T}$ac_header_preproc" >&6
27545
27546# So? What about this header?
ac1cb8d3
VS
27547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27548 yes:no: )
a848cd7e
SC
27549 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27550echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27551 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27552echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27553 ac_header_preproc=yes
a848cd7e 27554 ;;
ac1cb8d3 27555 no:yes:* )
a848cd7e
SC
27556 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27557echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27558 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27559echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27560 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27561echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27562 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27563echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27564 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27565echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27566 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27567echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27568 (
27569 cat <<\_ASBOX
ac1cb8d3
VS
27570## ----------------------------------------- ##
27571## Report this to wx-dev@lists.wxwidgets.org ##
27572## ----------------------------------------- ##
a848cd7e
SC
27573_ASBOX
27574 ) |
27575 sed "s/^/$as_me: WARNING: /" >&2
27576 ;;
27577esac
27578echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27579echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27580if test "${ac_cv_header_GL_gl_h+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27582else
27583 ac_cv_header_GL_gl_h=$ac_header_preproc
27584fi
27585echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27586echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27587
27588fi
27589if test $ac_cv_header_GL_gl_h = yes; then
27590
27591 found_gl=0
27592
27593 echo "$as_me:$LINENO: checking for -lGL" >&5
27594echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27595
27596ac_find_libraries=
27597for ac_dir in $SEARCH_LIB /usr/lib;
27598 do
27599 for ac_extension in a so sl dylib; do
27600 if test -f "$ac_dir/libGL.$ac_extension"; then
27601 ac_find_libraries=$ac_dir
27602 break 2
27603 fi
27604 done
27605 done
27606
27607 if test "$ac_find_libraries" != "" ; then
27608
27609 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27610 result=$?
27611 if test $result = 0; then
27612 ac_path_to_link=""
27613 else
27614 ac_path_to_link=" -L$ac_find_libraries"
27615 fi
27616
27617 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27618 LDFLAGS_GL="$ac_path_to_link"
27619 fi
27620
27621
27622ac_find_libraries=
27623for ac_dir in $SEARCH_LIB /usr/lib;
27624 do
27625 for ac_extension in a so sl dylib; do
27626 if test -f "$ac_dir/libGLU.$ac_extension"; then
27627 ac_find_libraries=$ac_dir
27628 break 2
27629 fi
27630 done
27631 done
27632
27633 if test "$ac_find_libraries" != "" ; then
27634
27635 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27636 result=$?
27637 if test $result = 0; then
27638 ac_path_to_link=""
27639 else
27640 ac_path_to_link=" -L$ac_find_libraries"
27641 fi
27642
27643 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27644 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27645 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27646 fi
27647
27648 found_gl=1
27649 OPENGL_LIBS="-lGL -lGLU"
27650 echo "$as_me:$LINENO: result: yes" >&5
27651echo "${ECHO_T}yes" >&6
27652 fi
27653 fi
27654
27655 if test "$found_gl" != 1; then
27656 echo "$as_me:$LINENO: result: no" >&5
27657echo "${ECHO_T}no" >&6
27658 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27659echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27660
27661ac_find_libraries=
27662for ac_dir in $SEARCH_LIB /usr/lib;
27663 do
27664 for ac_extension in a so sl dylib; do
27665 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27666 ac_find_libraries=$ac_dir
27667 break 2
27668 fi
27669 done
27670 done
27671
27672 if test "$ac_find_libraries" != "" ; then
27673
27674 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27675 result=$?
27676 if test $result = 0; then
27677 ac_path_to_link=""
27678 else
27679 ac_path_to_link=" -L$ac_find_libraries"
27680 fi
27681
27682 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27683 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27684 echo "$as_me:$LINENO: result: yes" >&5
27685echo "${ECHO_T}yes" >&6
27686 else
27687 echo "$as_me:$LINENO: result: no" >&5
27688echo "${ECHO_T}no" >&6
27689 fi
27690 fi
27691
27692fi
27693
27694
27695
27696 if test "x$OPENGL_LIBS" = "x"; then
27697 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27698echo "$as_me: error: OpenGL libraries not available" >&2;}
27699 { (exit 1); exit 1; }; }
27700 fi
27701 fi
27702
27703 if test "$wxUSE_OPENGL" = "yes"; then
27704 USE_OPENGL=1
27705 cat >>confdefs.h <<\_ACEOF
27706#define wxUSE_OPENGL 1
27707_ACEOF
27708
27709 cat >>confdefs.h <<\_ACEOF
27710#define wxUSE_GLCANVAS 1
27711_ACEOF
27712
27713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27714 fi
27715fi
27716
a848cd7e
SC
27717
27718if test -n "$TOOLKIT" ; then
27719 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27720fi
27721
a848cd7e
SC
27722
27723
27724if test "$wxUSE_SHARED" = "yes"; then
27725 case "${host}" in
27726 *-pc-msdosdjgpp )
27727 wxUSE_SHARED=no
27728 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27729echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27730 ;;
27731 esac
27732fi
27733
a848cd7e 27734if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27735
27736
27737 found_versioning=no
27738
27739
27740 if test $found_versioning = no ; then
27741 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27742echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27743if test "${wx_cv_version_script+set}" = set; then
27744 echo $ECHO_N "(cached) $ECHO_C" >&6
27745else
27746
27747 echo "VER_1 { *; };" >conftest.sym
27748 echo "int main() { return 0; }" >conftest.cpp
27749
27750 if { ac_try='
27751 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27752 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754 (eval $ac_try) 2>&5
27755 ac_status=$?
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); }; } ; then
27758 if test -s conftest.stderr ; then
27759 wx_cv_version_script=no
27760 else
27761 wx_cv_version_script=yes
27762 fi
27763 else
27764 wx_cv_version_script=no
27765 fi
27766 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27767
27768fi
27769echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27770echo "${ECHO_T}$wx_cv_version_script" >&6
27771 if test $wx_cv_version_script = yes ; then
27772 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27773 fi
27774 fi
27775
27776
27777 case "${host}" in
27778 *-*-linux* | *-*-gnu* )
27779 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27780 ;;
27781
27782 *-*-solaris2* )
27783 if test "$GCC" = yes ; then
27784 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27785
27786 saveLdflags="$LDFLAGS"
27787 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27788 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27789echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27790 cat >conftest.$ac_ext <<_ACEOF
27791/* confdefs.h. */
27792_ACEOF
27793cat confdefs.h >>conftest.$ac_ext
27794cat >>conftest.$ac_ext <<_ACEOF
27795/* end confdefs.h. */
27796
27797int
27798main ()
27799{
27800
27801 ;
27802 return 0;
27803}
27804_ACEOF
27805rm -f conftest.$ac_objext conftest$ac_exeext
27806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27807 (eval $ac_link) 2>conftest.er1
a848cd7e 27808 ac_status=$?
ac1cb8d3
VS
27809 grep -v '^ *+' conftest.er1 >conftest.err
27810 rm -f conftest.er1
27811 cat conftest.err >&5
a848cd7e
SC
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); } &&
c228d3a4
RN
27814 { ac_try='test -z "$ac_c_werror_flag"
27815 || test ! -s conftest.err'
ac1cb8d3
VS
27816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817 (eval $ac_try) 2>&5
27818 ac_status=$?
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; } &&
27821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823 (eval $ac_try) 2>&5
27824 ac_status=$?
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; }; then
27827
27828 echo "$as_me:$LINENO: result: yes" >&5
27829echo "${ECHO_T}yes" >&6
27830 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27831
27832else
27833 echo "$as_me: failed program was:" >&5
27834sed 's/^/| /' conftest.$ac_ext >&5
27835
27836
27837 echo "$as_me:$LINENO: result: no" >&5
27838echo "${ECHO_T}no" >&6
27839 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27840echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27841 LDFLAGS="$saveLdflags -Wl,-R,/"
27842 cat >conftest.$ac_ext <<_ACEOF
27843/* confdefs.h. */
27844_ACEOF
27845cat confdefs.h >>conftest.$ac_ext
27846cat >>conftest.$ac_ext <<_ACEOF
27847/* end confdefs.h. */
27848
27849int
27850main ()
27851{
27852
27853 ;
27854 return 0;
27855}
27856_ACEOF
27857rm -f conftest.$ac_objext conftest$ac_exeext
27858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27859 (eval $ac_link) 2>conftest.er1
a848cd7e 27860 ac_status=$?
ac1cb8d3
VS
27861 grep -v '^ *+' conftest.er1 >conftest.err
27862 rm -f conftest.er1
27863 cat conftest.err >&5
a848cd7e
SC
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); } &&
c228d3a4
RN
27866 { ac_try='test -z "$ac_c_werror_flag"
27867 || test ! -s conftest.err'
ac1cb8d3
VS
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; } &&
27873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875 (eval $ac_try) 2>&5
27876 ac_status=$?
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; }; then
27879
27880 echo "$as_me:$LINENO: result: yes" >&5
27881echo "${ECHO_T}yes" >&6
27882 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27883else
27884 echo "$as_me: failed program was:" >&5
27885sed 's/^/| /' conftest.$ac_ext >&5
27886
27887
27888 echo "$as_me:$LINENO: result: no" >&5
27889echo "${ECHO_T}no" >&6
27890
27891fi
ac1cb8d3
VS
27892rm -f conftest.err conftest.$ac_objext \
27893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27894
27895fi
ac1cb8d3
VS
27896rm -f conftest.err conftest.$ac_objext \
27897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27898 LDFLAGS="$saveLdflags"
27899 else
a848cd7e
SC
27900 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27901 fi
27902 ;;
27903
27904 powerpc-*-darwin* )
27905 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27906 cat <<EOF >change-install-names
27907#!/bin/sh
27908libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27909inst_cmd="install_name_tool "
27910for i in \${libnames} ; do
27911 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27912done
27913\${inst_cmd} \${3}
27914EOF
27915 chmod +x change-install-names
27916 ;;
27917
27918 *-*-cygwin* | *-*-mingw32* )
27919 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27920 ;;
27921
27922 esac
ceec2216
RL
27923fi
27924
27925if test "$wxUSE_SHARED" = "no"; then
27926 config_linkage_component="-static"
27927 SHARED=0
27928else
27929 SHARED=1
27930fi
a848cd7e 27931
a848cd7e 27932
ceec2216
RL
27933UNICODE=0
27934lib_unicode_suffix=
27935WX_CHARTYPE="ansi"
27936if test "$wxUSE_UNICODE" = "yes"; then
27937 lib_unicode_suffix=u
27938 WX_CHARTYPE="unicode"
27939 UNICODE=1
a848cd7e
SC
27940fi
27941
ceec2216
RL
27942lib_debug_suffix=
27943WX_DEBUGTYPE="release"
27944DEBUG_FLAG=0
27945if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27946 lib_debug_suffix=d
27947 WX_DEBUGTYPE="debug"
27948 DEBUG_FLAG=1
27949fi
a848cd7e 27950
ceec2216
RL
27951WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27952WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27953
ceec2216
RL
27954DEBUG_INFO=0
27955if test "$wxUSE_DEBUG_INFO" = "yes"; then
27956 DEBUG_INFO=1
27957fi
a848cd7e 27958
ceec2216 27959WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27960
ceec2216 27961TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27962
ceec2216 27963TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27964
ceec2216
RL
27965if test "$cross_compiling" = "yes"; then
27966 HOST_SUFFIX="-$host_alias"
27967 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
27968 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
27969fi
27970
dd21ced8 27971WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
27972WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27973
27974
27975
a848cd7e 27976if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
ceec2216
RL
27977 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r"
27978 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc"
27979
a848cd7e 27980 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
27981
27982 # Extract the first word of "Rez", so it can be a program name with args.
27983set dummy Rez; ac_word=$2
27984echo "$as_me:$LINENO: checking for $ac_word" >&5
27985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27986if test "${ac_cv_prog_RESCOMP+set}" = set; then
27987 echo $ECHO_N "(cached) $ECHO_C" >&6
27988else
27989 if test -n "$RESCOMP"; then
27990 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27991else
27992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27993for as_dir in $PATH
27994do
27995 IFS=$as_save_IFS
27996 test -z "$as_dir" && as_dir=.
27997 for ac_exec_ext in '' $ac_executable_extensions; do
27998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27999 ac_cv_prog_RESCOMP="Rez"
28000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28001 break 2
28002 fi
28003done
28004done
28005
28006 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28007fi
28008fi
28009RESCOMP=$ac_cv_prog_RESCOMP
28010if test -n "$RESCOMP"; then
28011 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28012echo "${ECHO_T}$RESCOMP" >&6
28013else
28014 echo "$as_me:$LINENO: result: no" >&5
28015echo "${ECHO_T}no" >&6
28016fi
28017
28018 # Extract the first word of "DeRez", so it can be a program name with args.
28019set dummy DeRez; ac_word=$2
28020echo "$as_me:$LINENO: checking for $ac_word" >&5
28021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28022if test "${ac_cv_prog_DEREZ+set}" = set; then
28023 echo $ECHO_N "(cached) $ECHO_C" >&6
28024else
28025 if test -n "$DEREZ"; then
28026 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28027else
28028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28029for as_dir in $PATH
28030do
28031 IFS=$as_save_IFS
28032 test -z "$as_dir" && as_dir=.
28033 for ac_exec_ext in '' $ac_executable_extensions; do
28034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28035 ac_cv_prog_DEREZ="DeRez"
28036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28037 break 2
28038 fi
28039done
28040done
28041
28042 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28043fi
28044fi
28045DEREZ=$ac_cv_prog_DEREZ
28046if test -n "$DEREZ"; then
28047 echo "$as_me:$LINENO: result: $DEREZ" >&5
28048echo "${ECHO_T}$DEREZ" >&6
28049else
28050 echo "$as_me:$LINENO: result: no" >&5
28051echo "${ECHO_T}no" >&6
28052fi
28053
28054 # Extract the first word of "SetFile", so it can be a program name with args.
28055set dummy SetFile; ac_word=$2
28056echo "$as_me:$LINENO: checking for $ac_word" >&5
28057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28058if test "${ac_cv_prog_SETFILE+set}" = set; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
28060else
28061 if test -n "$SETFILE"; then
28062 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28063else
28064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28065for as_dir in $PATH
28066do
28067 IFS=$as_save_IFS
28068 test -z "$as_dir" && as_dir=.
28069 for ac_exec_ext in '' $ac_executable_extensions; do
28070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28071 ac_cv_prog_SETFILE="SetFile"
28072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28073 break 2
28074 fi
28075done
28076done
28077
28078 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28079fi
28080fi
28081SETFILE=$ac_cv_prog_SETFILE
28082if test -n "$SETFILE"; then
28083 echo "$as_me:$LINENO: result: $SETFILE" >&5
28084echo "${ECHO_T}$SETFILE" >&6
28085else
28086 echo "$as_me:$LINENO: result: no" >&5
28087echo "${ECHO_T}no" >&6
28088fi
28089
28090
28091 MACSETFILE="\$(SETFILE)"
28092
28093 if test "$wxUSE_MAC" = 1; then
28094 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28095
28096 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28097 else
28098 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28099 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28100 fi
28101else
28102 MACSETFILE="@#"
28103 MACRESWXCONFIG="#"
28104
28105 if test "$wxUSE_PM" = 1; then
28106 MACRESCOMP="emxbind -ep"
28107 else
28108 MACRESCOMP="@#"
28109 fi
28110fi
28111
28112
28113
28114echo "$as_me:$LINENO: checking for mode_t" >&5
28115echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28116if test "${ac_cv_type_mode_t+set}" = set; then
28117 echo $ECHO_N "(cached) $ECHO_C" >&6
28118else
28119 cat >conftest.$ac_ext <<_ACEOF
28120/* confdefs.h. */
28121_ACEOF
28122cat confdefs.h >>conftest.$ac_ext
28123cat >>conftest.$ac_ext <<_ACEOF
28124/* end confdefs.h. */
28125$ac_includes_default
28126int
28127main ()
28128{
28129if ((mode_t *) 0)
28130 return 0;
28131if (sizeof (mode_t))
28132 return 0;
28133 ;
28134 return 0;
28135}
28136_ACEOF
28137rm -f conftest.$ac_objext
28138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28139 (eval $ac_compile) 2>conftest.er1
a848cd7e 28140 ac_status=$?
ac1cb8d3
VS
28141 grep -v '^ *+' conftest.er1 >conftest.err
28142 rm -f conftest.er1
28143 cat conftest.err >&5
a848cd7e
SC
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } &&
c228d3a4
RN
28146 { ac_try='test -z "$ac_c_werror_flag"
28147 || test ! -s conftest.err'
ac1cb8d3
VS
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; } &&
28153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28155 (eval $ac_try) 2>&5
28156 ac_status=$?
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); }; }; then
28159 ac_cv_type_mode_t=yes
28160else
28161 echo "$as_me: failed program was:" >&5
28162sed 's/^/| /' conftest.$ac_ext >&5
28163
28164ac_cv_type_mode_t=no
28165fi
ac1cb8d3 28166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28167fi
28168echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28169echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28170if test $ac_cv_type_mode_t = yes; then
28171 :
28172else
28173
28174cat >>confdefs.h <<_ACEOF
28175#define mode_t int
28176_ACEOF
28177
28178fi
28179
28180echo "$as_me:$LINENO: checking for off_t" >&5
28181echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28182if test "${ac_cv_type_off_t+set}" = set; then
28183 echo $ECHO_N "(cached) $ECHO_C" >&6
28184else
28185 cat >conftest.$ac_ext <<_ACEOF
28186/* confdefs.h. */
28187_ACEOF
28188cat confdefs.h >>conftest.$ac_ext
28189cat >>conftest.$ac_ext <<_ACEOF
28190/* end confdefs.h. */
28191$ac_includes_default
28192int
28193main ()
28194{
28195if ((off_t *) 0)
28196 return 0;
28197if (sizeof (off_t))
28198 return 0;
28199 ;
28200 return 0;
28201}
28202_ACEOF
28203rm -f conftest.$ac_objext
28204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28205 (eval $ac_compile) 2>conftest.er1
a848cd7e 28206 ac_status=$?
ac1cb8d3
VS
28207 grep -v '^ *+' conftest.er1 >conftest.err
28208 rm -f conftest.er1
28209 cat conftest.err >&5
a848cd7e
SC
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } &&
c228d3a4
RN
28212 { ac_try='test -z "$ac_c_werror_flag"
28213 || test ! -s conftest.err'
ac1cb8d3
VS
28214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215 (eval $ac_try) 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; } &&
28219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28221 (eval $ac_try) 2>&5
28222 ac_status=$?
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); }; }; then
28225 ac_cv_type_off_t=yes
28226else
28227 echo "$as_me: failed program was:" >&5
28228sed 's/^/| /' conftest.$ac_ext >&5
28229
28230ac_cv_type_off_t=no
28231fi
ac1cb8d3 28232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28233fi
28234echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28235echo "${ECHO_T}$ac_cv_type_off_t" >&6
28236if test $ac_cv_type_off_t = yes; then
28237 :
28238else
28239
28240cat >>confdefs.h <<_ACEOF
28241#define off_t long
28242_ACEOF
28243
28244fi
28245
28246echo "$as_me:$LINENO: checking for pid_t" >&5
28247echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28248if test "${ac_cv_type_pid_t+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28250else
28251 cat >conftest.$ac_ext <<_ACEOF
28252/* confdefs.h. */
28253_ACEOF
28254cat confdefs.h >>conftest.$ac_ext
28255cat >>conftest.$ac_ext <<_ACEOF
28256/* end confdefs.h. */
28257$ac_includes_default
28258int
28259main ()
28260{
28261if ((pid_t *) 0)
28262 return 0;
28263if (sizeof (pid_t))
28264 return 0;
28265 ;
28266 return 0;
28267}
28268_ACEOF
28269rm -f conftest.$ac_objext
28270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28271 (eval $ac_compile) 2>conftest.er1
a848cd7e 28272 ac_status=$?
ac1cb8d3
VS
28273 grep -v '^ *+' conftest.er1 >conftest.err
28274 rm -f conftest.er1
28275 cat conftest.err >&5
a848cd7e
SC
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
c228d3a4
RN
28278 { ac_try='test -z "$ac_c_werror_flag"
28279 || test ! -s conftest.err'
ac1cb8d3
VS
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; } &&
28285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
28291 ac_cv_type_pid_t=yes
28292else
28293 echo "$as_me: failed program was:" >&5
28294sed 's/^/| /' conftest.$ac_ext >&5
28295
28296ac_cv_type_pid_t=no
28297fi
ac1cb8d3 28298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28299fi
28300echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28301echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28302if test $ac_cv_type_pid_t = yes; then
28303 :
28304else
28305
28306cat >>confdefs.h <<_ACEOF
28307#define pid_t int
28308_ACEOF
28309
28310fi
28311
28312echo "$as_me:$LINENO: checking for size_t" >&5
28313echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28314if test "${ac_cv_type_size_t+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
28316else
28317 cat >conftest.$ac_ext <<_ACEOF
28318/* confdefs.h. */
28319_ACEOF
28320cat confdefs.h >>conftest.$ac_ext
28321cat >>conftest.$ac_ext <<_ACEOF
28322/* end confdefs.h. */
28323$ac_includes_default
28324int
28325main ()
28326{
28327if ((size_t *) 0)
28328 return 0;
28329if (sizeof (size_t))
28330 return 0;
28331 ;
28332 return 0;
28333}
28334_ACEOF
28335rm -f conftest.$ac_objext
28336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28337 (eval $ac_compile) 2>conftest.er1
a848cd7e 28338 ac_status=$?
ac1cb8d3
VS
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
a848cd7e
SC
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } &&
c228d3a4
RN
28344 { ac_try='test -z "$ac_c_werror_flag"
28345 || test ! -s conftest.err'
ac1cb8d3
VS
28346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28347 (eval $ac_try) 2>&5
28348 ac_status=$?
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350 (exit $ac_status); }; } &&
28351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28353 (eval $ac_try) 2>&5
28354 ac_status=$?
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); }; }; then
28357 ac_cv_type_size_t=yes
28358else
28359 echo "$as_me: failed program was:" >&5
28360sed 's/^/| /' conftest.$ac_ext >&5
28361
28362ac_cv_type_size_t=no
28363fi
ac1cb8d3 28364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28365fi
28366echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28367echo "${ECHO_T}$ac_cv_type_size_t" >&6
28368if test $ac_cv_type_size_t = yes; then
28369 :
28370else
28371
28372cat >>confdefs.h <<_ACEOF
28373#define size_t unsigned
28374_ACEOF
28375
28376fi
28377
28378echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28379echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28380if test "${ac_cv_type_uid_t+set}" = set; then
28381 echo $ECHO_N "(cached) $ECHO_C" >&6
28382else
28383 cat >conftest.$ac_ext <<_ACEOF
28384/* confdefs.h. */
28385_ACEOF
28386cat confdefs.h >>conftest.$ac_ext
28387cat >>conftest.$ac_ext <<_ACEOF
28388/* end confdefs.h. */
28389#include <sys/types.h>
28390
28391_ACEOF
28392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28393 $EGREP "uid_t" >/dev/null 2>&1; then
28394 ac_cv_type_uid_t=yes
28395else
28396 ac_cv_type_uid_t=no
28397fi
28398rm -f conftest*
28399
28400fi
28401echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28402echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28403if test $ac_cv_type_uid_t = no; then
28404
28405cat >>confdefs.h <<\_ACEOF
28406#define uid_t int
28407_ACEOF
28408
28409
28410cat >>confdefs.h <<\_ACEOF
28411#define gid_t int
28412_ACEOF
28413
28414fi
28415
28416
28417
28418
28419ac_ext=cc
28420ac_cpp='$CXXCPP $CPPFLAGS'
28421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28424
28425echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28426echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28427if test "${wx_cv_size_t_is_uint+set}" = set; then
28428 echo $ECHO_N "(cached) $ECHO_C" >&6
28429else
28430
28431 cat >conftest.$ac_ext <<_ACEOF
28432/* confdefs.h. */
28433_ACEOF
28434cat confdefs.h >>conftest.$ac_ext
28435cat >>conftest.$ac_ext <<_ACEOF
28436/* end confdefs.h. */
28437#include <stddef.h>
28438int
28439main ()
28440{
28441
28442 return 0; }
28443
28444 struct Foo { void foo(size_t); void foo(unsigned int); };
28445
28446 int bar() {
28447
28448 ;
28449 return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext
28453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28454 (eval $ac_compile) 2>conftest.er1
a848cd7e 28455 ac_status=$?
ac1cb8d3
VS
28456 grep -v '^ *+' conftest.er1 >conftest.err
28457 rm -f conftest.er1
28458 cat conftest.err >&5
a848cd7e
SC
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } &&
c228d3a4
RN
28461 { ac_try='test -z "$ac_cxx_werror_flag"
28462 || test ! -s conftest.err'
ac1cb8d3
VS
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28465 ac_status=$?
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; } &&
28468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28471 ac_status=$?
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; }; then
28474 wx_cv_size_t_is_uint=no
28475else
28476 echo "$as_me: failed program was:" >&5
28477sed 's/^/| /' conftest.$ac_ext >&5
28478
28479wx_cv_size_t_is_uint=yes
28480
28481fi
ac1cb8d3 28482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28483
28484
28485fi
28486echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28487echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28488
28489if test "$wx_cv_size_t_is_uint" = "yes"; then
28490 cat >>confdefs.h <<\_ACEOF
28491#define wxSIZE_T_IS_UINT 1
28492_ACEOF
28493
28494else
28495 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28496echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28497if test "${wx_cv_size_t_is_ulong+set}" = set; then
28498 echo $ECHO_N "(cached) $ECHO_C" >&6
28499else
28500 cat >conftest.$ac_ext <<_ACEOF
28501/* confdefs.h. */
28502_ACEOF
28503cat confdefs.h >>conftest.$ac_ext
28504cat >>conftest.$ac_ext <<_ACEOF
28505/* end confdefs.h. */
28506#include <stddef.h>
28507int
28508main ()
28509{
28510
28511 return 0; }
28512
28513 struct Foo { void foo(size_t); void foo(unsigned long); };
28514
28515 int bar() {
28516
28517 ;
28518 return 0;
28519}
28520_ACEOF
28521rm -f conftest.$ac_objext
28522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28523 (eval $ac_compile) 2>conftest.er1
a848cd7e 28524 ac_status=$?
ac1cb8d3
VS
28525 grep -v '^ *+' conftest.er1 >conftest.err
28526 rm -f conftest.er1
28527 cat conftest.err >&5
a848cd7e
SC
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } &&
c228d3a4
RN
28530 { ac_try='test -z "$ac_cxx_werror_flag"
28531 || test ! -s conftest.err'
ac1cb8d3
VS
28532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28533 (eval $ac_try) 2>&5
28534 ac_status=$?
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); }; } &&
28537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28539 (eval $ac_try) 2>&5
28540 ac_status=$?
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); }; }; then
28543 wx_cv_size_t_is_ulong=no
28544else
28545 echo "$as_me: failed program was:" >&5
28546sed 's/^/| /' conftest.$ac_ext >&5
28547
28548wx_cv_size_t_is_ulong=yes
28549
28550fi
ac1cb8d3 28551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28552
28553fi
28554echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28555echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28556
28557 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28558 cat >>confdefs.h <<\_ACEOF
28559#define wxSIZE_T_IS_ULONG 1
28560_ACEOF
28561
28562 fi
28563fi
28564
28565ac_ext=c
28566ac_cpp='$CPP $CPPFLAGS'
28567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28569ac_compiler_gnu=$ac_cv_c_compiler_gnu
28570
28571
28572
28573echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28574echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28575if test "${wx_cv_struct_pw_gecos+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577else
28578
28579 cat >conftest.$ac_ext <<_ACEOF
28580/* confdefs.h. */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h. */
28585#include <pwd.h>
28586int
28587main ()
28588{
28589
28590 char *p;
28591 struct passwd *pw;
28592 p = pw->pw_gecos;
28593
28594 ;
28595 return 0;
28596}
28597_ACEOF
28598rm -f conftest.$ac_objext
28599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28600 (eval $ac_compile) 2>conftest.er1
a848cd7e 28601 ac_status=$?
ac1cb8d3
VS
28602 grep -v '^ *+' conftest.er1 >conftest.err
28603 rm -f conftest.er1
28604 cat conftest.err >&5
a848cd7e
SC
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); } &&
c228d3a4
RN
28607 { ac_try='test -z "$ac_c_werror_flag"
28608 || test ! -s conftest.err'
ac1cb8d3
VS
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; } &&
28614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620
28621 wx_cv_struct_pw_gecos=yes
28622
28623else
28624 echo "$as_me: failed program was:" >&5
28625sed 's/^/| /' conftest.$ac_ext >&5
28626
28627
28628 wx_cv_struct_pw_gecos=no
28629
28630
28631fi
ac1cb8d3 28632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28633
28634
28635fi
28636echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28637echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28638
28639if test "$wx_cv_struct_pw_gecos" = "yes"; then
28640 cat >>confdefs.h <<\_ACEOF
28641#define HAVE_PW_GECOS 1
28642_ACEOF
28643
28644fi
28645
28646
28647if test "$wx_cv_sizeof_wchar_t" != "0"; then
28648 cat >>confdefs.h <<\_ACEOF
28649#define wxUSE_WCHAR_T 1
28650_ACEOF
28651
28652
28653 WCSLEN_FOUND=0
28654 WCHAR_LINK=
28655
28656for ac_func in wcslen
28657do
28658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28659echo "$as_me:$LINENO: checking for $ac_func" >&5
28660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28661if eval "test \"\${$as_ac_var+set}\" = set"; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28663else
28664 cat >conftest.$ac_ext <<_ACEOF
28665/* confdefs.h. */
28666_ACEOF
28667cat confdefs.h >>conftest.$ac_ext
28668cat >>conftest.$ac_ext <<_ACEOF
28669/* end confdefs.h. */
ac1cb8d3
VS
28670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28672#define $ac_func innocuous_$ac_func
28673
a848cd7e
SC
28674/* System header to define __stub macros and hopefully few prototypes,
28675 which can conflict with char $ac_func (); below.
28676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28677 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28678
a848cd7e
SC
28679#ifdef __STDC__
28680# include <limits.h>
28681#else
28682# include <assert.h>
28683#endif
ac1cb8d3
VS
28684
28685#undef $ac_func
28686
a848cd7e
SC
28687/* Override any gcc2 internal prototype to avoid an error. */
28688#ifdef __cplusplus
28689extern "C"
28690{
28691#endif
28692/* We use char because int might match the return type of a gcc2
28693 builtin and then its argument prototype would still apply. */
28694char $ac_func ();
28695/* The GNU C library defines this for functions which it implements
28696 to always fail with ENOSYS. Some functions are actually named
28697 something starting with __ and the normal name is an alias. */
28698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28699choke me
28700#else
28701char (*f) () = $ac_func;
28702#endif
28703#ifdef __cplusplus
28704}
28705#endif
28706
28707int
28708main ()
28709{
28710return f != $ac_func;
28711 ;
28712 return 0;
28713}
28714_ACEOF
28715rm -f conftest.$ac_objext conftest$ac_exeext
28716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28717 (eval $ac_link) 2>conftest.er1
a848cd7e 28718 ac_status=$?
ac1cb8d3
VS
28719 grep -v '^ *+' conftest.er1 >conftest.err
28720 rm -f conftest.er1
28721 cat conftest.err >&5
a848cd7e
SC
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } &&
c228d3a4
RN
28724 { ac_try='test -z "$ac_c_werror_flag"
28725 || test ! -s conftest.err'
ac1cb8d3
VS
28726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727 (eval $ac_try) 2>&5
28728 ac_status=$?
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; } &&
28731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733 (eval $ac_try) 2>&5
28734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 eval "$as_ac_var=yes"
28738else
28739 echo "$as_me: failed program was:" >&5
28740sed 's/^/| /' conftest.$ac_ext >&5
28741
28742eval "$as_ac_var=no"
28743fi
ac1cb8d3
VS
28744rm -f conftest.err conftest.$ac_objext \
28745 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28746fi
28747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28749if test `eval echo '${'$as_ac_var'}'` = yes; then
28750 cat >>confdefs.h <<_ACEOF
28751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28752_ACEOF
28753 WCSLEN_FOUND=1
28754fi
28755done
28756
28757
28758 if test "$WCSLEN_FOUND" = 0; then
28759 if test "$TOOLKIT" = "MSW"; then
28760 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28761echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28762if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28764else
28765 ac_check_lib_save_LIBS=$LIBS
28766LIBS="-lmsvcrt $LIBS"
28767cat >conftest.$ac_ext <<_ACEOF
28768/* confdefs.h. */
28769_ACEOF
28770cat confdefs.h >>conftest.$ac_ext
28771cat >>conftest.$ac_ext <<_ACEOF
28772/* end confdefs.h. */
28773
28774/* Override any gcc2 internal prototype to avoid an error. */
28775#ifdef __cplusplus
28776extern "C"
28777#endif
28778/* We use char because int might match the return type of a gcc2
28779 builtin and then its argument prototype would still apply. */
28780char wcslen ();
28781int
28782main ()
28783{
28784wcslen ();
28785 ;
28786 return 0;
28787}
28788_ACEOF
28789rm -f conftest.$ac_objext conftest$ac_exeext
28790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28791 (eval $ac_link) 2>conftest.er1
a848cd7e 28792 ac_status=$?
ac1cb8d3
VS
28793 grep -v '^ *+' conftest.er1 >conftest.err
28794 rm -f conftest.er1
28795 cat conftest.err >&5
a848cd7e
SC
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } &&
c228d3a4
RN
28798 { ac_try='test -z "$ac_c_werror_flag"
28799 || test ! -s conftest.err'
ac1cb8d3
VS
28800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28801 (eval $ac_try) 2>&5
28802 ac_status=$?
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); }; } &&
28805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807 (eval $ac_try) 2>&5
28808 ac_status=$?
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; }; then
28811 ac_cv_lib_msvcrt_wcslen=yes
28812else
28813 echo "$as_me: failed program was:" >&5
28814sed 's/^/| /' conftest.$ac_ext >&5
28815
28816ac_cv_lib_msvcrt_wcslen=no
28817fi
ac1cb8d3
VS
28818rm -f conftest.err conftest.$ac_objext \
28819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28820LIBS=$ac_check_lib_save_LIBS
28821fi
28822echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28823echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28824if test $ac_cv_lib_msvcrt_wcslen = yes; then
28825 WCHAR_OK=1
28826fi
28827
28828 else
28829 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28830echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28831if test "${ac_cv_lib_w_wcslen+set}" = set; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
28833else
28834 ac_check_lib_save_LIBS=$LIBS
28835LIBS="-lw $LIBS"
28836cat >conftest.$ac_ext <<_ACEOF
28837/* confdefs.h. */
28838_ACEOF
28839cat confdefs.h >>conftest.$ac_ext
28840cat >>conftest.$ac_ext <<_ACEOF
28841/* end confdefs.h. */
28842
28843/* Override any gcc2 internal prototype to avoid an error. */
28844#ifdef __cplusplus
28845extern "C"
28846#endif
28847/* We use char because int might match the return type of a gcc2
28848 builtin and then its argument prototype would still apply. */
28849char wcslen ();
28850int
28851main ()
28852{
28853wcslen ();
28854 ;
28855 return 0;
28856}
28857_ACEOF
28858rm -f conftest.$ac_objext conftest$ac_exeext
28859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28860 (eval $ac_link) 2>conftest.er1
a848cd7e 28861 ac_status=$?
ac1cb8d3
VS
28862 grep -v '^ *+' conftest.er1 >conftest.err
28863 rm -f conftest.er1
28864 cat conftest.err >&5
a848cd7e
SC
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } &&
c228d3a4
RN
28867 { ac_try='test -z "$ac_c_werror_flag"
28868 || test ! -s conftest.err'
ac1cb8d3
VS
28869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870 (eval $ac_try) 2>&5
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; } &&
28874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; }; then
28880 ac_cv_lib_w_wcslen=yes
28881else
28882 echo "$as_me: failed program was:" >&5
28883sed 's/^/| /' conftest.$ac_ext >&5
28884
28885ac_cv_lib_w_wcslen=no
28886fi
ac1cb8d3
VS
28887rm -f conftest.err conftest.$ac_objext \
28888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28889LIBS=$ac_check_lib_save_LIBS
28890fi
28891echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28892echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28893if test $ac_cv_lib_w_wcslen = yes; then
28894
28895 WCHAR_LINK=" -lw"
28896 WCSLEN_FOUND=1
28897
28898fi
28899
28900 fi
28901 fi
28902
28903 if test "$WCSLEN_FOUND" = 1; then
28904 cat >>confdefs.h <<\_ACEOF
28905#define HAVE_WCSLEN 1
28906_ACEOF
28907
28908 fi
28909
473276a9
VS
28910 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28911 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28912 fi
28913
a848cd7e
SC
28914
28915for ac_func in wcsrtombs
28916do
28917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28918echo "$as_me:$LINENO: checking for $ac_func" >&5
28919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28920if eval "test \"\${$as_ac_var+set}\" = set"; then
28921 echo $ECHO_N "(cached) $ECHO_C" >&6
28922else
28923 cat >conftest.$ac_ext <<_ACEOF
28924/* confdefs.h. */
28925_ACEOF
28926cat confdefs.h >>conftest.$ac_ext
28927cat >>conftest.$ac_ext <<_ACEOF
28928/* end confdefs.h. */
ac1cb8d3
VS
28929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28931#define $ac_func innocuous_$ac_func
28932
a848cd7e
SC
28933/* System header to define __stub macros and hopefully few prototypes,
28934 which can conflict with char $ac_func (); below.
28935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28936 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28937
a848cd7e
SC
28938#ifdef __STDC__
28939# include <limits.h>
28940#else
28941# include <assert.h>
28942#endif
ac1cb8d3
VS
28943
28944#undef $ac_func
28945
a848cd7e
SC
28946/* Override any gcc2 internal prototype to avoid an error. */
28947#ifdef __cplusplus
28948extern "C"
28949{
28950#endif
28951/* We use char because int might match the return type of a gcc2
28952 builtin and then its argument prototype would still apply. */
28953char $ac_func ();
28954/* The GNU C library defines this for functions which it implements
28955 to always fail with ENOSYS. Some functions are actually named
28956 something starting with __ and the normal name is an alias. */
28957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28958choke me
28959#else
28960char (*f) () = $ac_func;
28961#endif
28962#ifdef __cplusplus
28963}
28964#endif
28965
28966int
28967main ()
28968{
28969return f != $ac_func;
28970 ;
28971 return 0;
28972}
28973_ACEOF
28974rm -f conftest.$ac_objext conftest$ac_exeext
28975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28976 (eval $ac_link) 2>conftest.er1
a848cd7e 28977 ac_status=$?
ac1cb8d3
VS
28978 grep -v '^ *+' conftest.er1 >conftest.err
28979 rm -f conftest.er1
28980 cat conftest.err >&5
a848cd7e
SC
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); } &&
c228d3a4
RN
28983 { ac_try='test -z "$ac_c_werror_flag"
28984 || test ! -s conftest.err'
ac1cb8d3
VS
28985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28986 (eval $ac_try) 2>&5
28987 ac_status=$?
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; } &&
28990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28992 (eval $ac_try) 2>&5
28993 ac_status=$?
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); }; }; then
28996 eval "$as_ac_var=yes"
28997else
28998 echo "$as_me: failed program was:" >&5
28999sed 's/^/| /' conftest.$ac_ext >&5
29000
29001eval "$as_ac_var=no"
29002fi
ac1cb8d3
VS
29003rm -f conftest.err conftest.$ac_objext \
29004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29005fi
29006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29008if test `eval echo '${'$as_ac_var'}'` = yes; then
29009 cat >>confdefs.h <<_ACEOF
29010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29011_ACEOF
29012
29013fi
29014done
29015
29016else
29017 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29018echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29019fi
29020
29021
29022
29023ac_ext=cc
29024ac_cpp='$CXXCPP $CPPFLAGS'
29025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29028
29029
29030
29031for ac_func in vsnprintf
29032do
29033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29034echo "$as_me:$LINENO: checking for $ac_func" >&5
29035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29036if eval "test \"\${$as_ac_var+set}\" = set"; then
29037 echo $ECHO_N "(cached) $ECHO_C" >&6
29038else
29039 cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h. */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h. */
ac1cb8d3
VS
29045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29047#define $ac_func innocuous_$ac_func
29048
a848cd7e
SC
29049/* System header to define __stub macros and hopefully few prototypes,
29050 which can conflict with char $ac_func (); below.
29051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29053
a848cd7e
SC
29054#ifdef __STDC__
29055# include <limits.h>
29056#else
29057# include <assert.h>
29058#endif
ac1cb8d3
VS
29059
29060#undef $ac_func
29061
a848cd7e
SC
29062/* Override any gcc2 internal prototype to avoid an error. */
29063#ifdef __cplusplus
29064extern "C"
29065{
29066#endif
29067/* We use char because int might match the return type of a gcc2
29068 builtin and then its argument prototype would still apply. */
29069char $ac_func ();
29070/* The GNU C library defines this for functions which it implements
29071 to always fail with ENOSYS. Some functions are actually named
29072 something starting with __ and the normal name is an alias. */
29073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29074choke me
29075#else
29076char (*f) () = $ac_func;
29077#endif
29078#ifdef __cplusplus
29079}
29080#endif
29081
29082int
29083main ()
29084{
29085return f != $ac_func;
29086 ;
29087 return 0;
29088}
29089_ACEOF
29090rm -f conftest.$ac_objext conftest$ac_exeext
29091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29092 (eval $ac_link) 2>conftest.er1
a848cd7e 29093 ac_status=$?
ac1cb8d3
VS
29094 grep -v '^ *+' conftest.er1 >conftest.err
29095 rm -f conftest.er1
29096 cat conftest.err >&5
a848cd7e
SC
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } &&
c228d3a4
RN
29099 { ac_try='test -z "$ac_cxx_werror_flag"
29100 || test ! -s conftest.err'
ac1cb8d3
VS
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29109 ac_status=$?
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; }; then
29112 eval "$as_ac_var=yes"
29113else
29114 echo "$as_me: failed program was:" >&5
29115sed 's/^/| /' conftest.$ac_ext >&5
29116
29117eval "$as_ac_var=no"
29118fi
ac1cb8d3
VS
29119rm -f conftest.err conftest.$ac_objext \
29120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29121fi
29122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29124if test `eval echo '${'$as_ac_var'}'` = yes; then
29125 cat >>confdefs.h <<_ACEOF
29126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29127_ACEOF
29128
29129fi
29130done
29131
29132
29133if test "$ac_cv_func_vsnprintf" = "yes"; then
29134 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29135echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29136if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138else
29139
29140 cat >conftest.$ac_ext <<_ACEOF
29141/* confdefs.h. */
29142_ACEOF
29143cat confdefs.h >>conftest.$ac_ext
29144cat >>conftest.$ac_ext <<_ACEOF
29145/* end confdefs.h. */
29146
29147 #include <stdio.h>
29148 #include <stdarg.h>
29149
29150int
29151main ()
29152{
29153
29154 char *buf;
29155 va_list ap;
29156 vsnprintf(buf, 10u, "%s", ap);
29157
29158 ;
29159 return 0;
29160}
29161_ACEOF
29162rm -f conftest.$ac_objext
29163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29164 (eval $ac_compile) 2>conftest.er1
a848cd7e 29165 ac_status=$?
ac1cb8d3
VS
29166 grep -v '^ *+' conftest.er1 >conftest.err
29167 rm -f conftest.er1
29168 cat conftest.err >&5
a848cd7e
SC
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } &&
c228d3a4
RN
29171 { ac_try='test -z "$ac_cxx_werror_flag"
29172 || test ! -s conftest.err'
ac1cb8d3
VS
29173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29174 (eval $ac_try) 2>&5
29175 ac_status=$?
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; } &&
29178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180 (eval $ac_try) 2>&5
29181 ac_status=$?
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; }; then
29184 wx_cv_func_vsnprintf_decl=yes
29185else
29186 echo "$as_me: failed program was:" >&5
29187sed 's/^/| /' conftest.$ac_ext >&5
29188
29189wx_cv_func_vsnprintf_decl=no
29190
29191fi
ac1cb8d3 29192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29193
29194
29195fi
29196echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29197echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29198
29199 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29200 cat >>confdefs.h <<\_ACEOF
29201#define HAVE_VSNPRINTF_DECL 1
29202_ACEOF
29203
29204 fi
29205fi
29206
29207if test "$wxUSE_UNICODE" = yes; then
29208
29209
29210
fbe47c7b
VS
29211
29212
29213
29214for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29215do
29216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29217echo "$as_me:$LINENO: checking for $ac_func" >&5
29218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29219if eval "test \"\${$as_ac_var+set}\" = set"; then
29220 echo $ECHO_N "(cached) $ECHO_C" >&6
29221else
29222 cat >conftest.$ac_ext <<_ACEOF
29223/* confdefs.h. */
29224_ACEOF
29225cat confdefs.h >>conftest.$ac_ext
29226cat >>conftest.$ac_ext <<_ACEOF
29227/* end confdefs.h. */
ac1cb8d3
VS
29228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29230#define $ac_func innocuous_$ac_func
29231
a848cd7e
SC
29232/* System header to define __stub macros and hopefully few prototypes,
29233 which can conflict with char $ac_func (); below.
29234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29235 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29236
a848cd7e
SC
29237#ifdef __STDC__
29238# include <limits.h>
29239#else
29240# include <assert.h>
29241#endif
ac1cb8d3
VS
29242
29243#undef $ac_func
29244
a848cd7e
SC
29245/* Override any gcc2 internal prototype to avoid an error. */
29246#ifdef __cplusplus
29247extern "C"
29248{
29249#endif
29250/* We use char because int might match the return type of a gcc2
29251 builtin and then its argument prototype would still apply. */
29252char $ac_func ();
29253/* The GNU C library defines this for functions which it implements
29254 to always fail with ENOSYS. Some functions are actually named
29255 something starting with __ and the normal name is an alias. */
29256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29257choke me
29258#else
29259char (*f) () = $ac_func;
29260#endif
29261#ifdef __cplusplus
29262}
29263#endif
29264
29265int
29266main ()
29267{
29268return f != $ac_func;
29269 ;
29270 return 0;
29271}
29272_ACEOF
29273rm -f conftest.$ac_objext conftest$ac_exeext
29274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29275 (eval $ac_link) 2>conftest.er1
a848cd7e 29276 ac_status=$?
ac1cb8d3
VS
29277 grep -v '^ *+' conftest.er1 >conftest.err
29278 rm -f conftest.er1
29279 cat conftest.err >&5
a848cd7e
SC
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } &&
c228d3a4
RN
29282 { ac_try='test -z "$ac_cxx_werror_flag"
29283 || test ! -s conftest.err'
ac1cb8d3
VS
29284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; } &&
29289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29292 ac_status=$?
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; }; then
29295 eval "$as_ac_var=yes"
29296else
29297 echo "$as_me: failed program was:" >&5
29298sed 's/^/| /' conftest.$ac_ext >&5
29299
29300eval "$as_ac_var=no"
29301fi
ac1cb8d3
VS
29302rm -f conftest.err conftest.$ac_objext \
29303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29304fi
29305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29306echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29307if test `eval echo '${'$as_ac_var'}'` = yes; then
29308 cat >>confdefs.h <<_ACEOF
29309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29310_ACEOF
29311
29312fi
29313done
29314
29315
29316 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29317echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29318 cat >conftest.$ac_ext <<_ACEOF
29319/* confdefs.h. */
29320_ACEOF
29321cat confdefs.h >>conftest.$ac_ext
29322cat >>conftest.$ac_ext <<_ACEOF
29323/* end confdefs.h. */
29324#include <wchar.h>
29325int
29326main ()
29327{
29328&_vsnwprintf;
29329 ;
29330 return 0;
29331}
29332_ACEOF
29333rm -f conftest.$ac_objext
29334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29335 (eval $ac_compile) 2>conftest.er1
a848cd7e 29336 ac_status=$?
ac1cb8d3
VS
29337 grep -v '^ *+' conftest.er1 >conftest.err
29338 rm -f conftest.er1
29339 cat conftest.err >&5
a848cd7e
SC
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); } &&
c228d3a4
RN
29342 { ac_try='test -z "$ac_cxx_werror_flag"
29343 || test ! -s conftest.err'
ac1cb8d3
VS
29344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345 (eval $ac_try) 2>&5
29346 ac_status=$?
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); }; } &&
29349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351 (eval $ac_try) 2>&5
29352 ac_status=$?
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); }; }; then
29355 echo "$as_me:$LINENO: result: yes" >&5
29356echo "${ECHO_T}yes" >&6
29357 cat >>confdefs.h <<\_ACEOF
29358#define HAVE__VSNWPRINTF 1
29359_ACEOF
29360
29361else
29362 echo "$as_me: failed program was:" >&5
29363sed 's/^/| /' conftest.$ac_ext >&5
29364
29365echo "$as_me:$LINENO: result: no" >&5
29366echo "${ECHO_T}no" >&6
29367fi
ac1cb8d3 29368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29369fi
29370
29371ac_ext=c
29372ac_cpp='$CPP $CPPFLAGS'
29373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375ac_compiler_gnu=$ac_cv_c_compiler_gnu
29376
29377
29378
29379
29380if test "$TOOLKIT" != "MSW"; then
29381
29382
29383
29384
29385ac_ext=cc
29386ac_cpp='$CXXCPP $CPPFLAGS'
29387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29390
29391
29392
29393
29394# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29395if test "${with_libiconv_prefix+set}" = set; then
29396 withval="$with_libiconv_prefix"
29397
29398 for dir in `echo "$withval" | tr : ' '`; do
29399 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29400 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29401 done
29402
29403fi;
29404
29405 echo "$as_me:$LINENO: checking for iconv" >&5
29406echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29407if test "${am_cv_func_iconv+set}" = set; then
29408 echo $ECHO_N "(cached) $ECHO_C" >&6
29409else
29410
29411 am_cv_func_iconv="no, consider installing GNU libiconv"
29412 am_cv_lib_iconv=no
29413 cat >conftest.$ac_ext <<_ACEOF
29414/* confdefs.h. */
29415_ACEOF
29416cat confdefs.h >>conftest.$ac_ext
29417cat >>conftest.$ac_ext <<_ACEOF
29418/* end confdefs.h. */
29419#include <stdlib.h>
29420#include <iconv.h>
29421int
29422main ()
29423{
29424iconv_t cd = iconv_open("","");
29425 iconv(cd,NULL,NULL,NULL,NULL);
29426 iconv_close(cd);
29427 ;
29428 return 0;
29429}
29430_ACEOF
29431rm -f conftest.$ac_objext conftest$ac_exeext
29432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29433 (eval $ac_link) 2>conftest.er1
a848cd7e 29434 ac_status=$?
ac1cb8d3
VS
29435 grep -v '^ *+' conftest.er1 >conftest.err
29436 rm -f conftest.er1
29437 cat conftest.err >&5
a848cd7e
SC
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); } &&
c228d3a4
RN
29440 { ac_try='test -z "$ac_cxx_werror_flag"
29441 || test ! -s conftest.err'
ac1cb8d3
VS
29442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29443 (eval $ac_try) 2>&5
29444 ac_status=$?
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); }; } &&
29447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29449 (eval $ac_try) 2>&5
29450 ac_status=$?
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); }; }; then
29453 am_cv_func_iconv=yes
29454else
29455 echo "$as_me: failed program was:" >&5
29456sed 's/^/| /' conftest.$ac_ext >&5
29457
29458fi
ac1cb8d3
VS
29459rm -f conftest.err conftest.$ac_objext \
29460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29461 if test "$am_cv_func_iconv" != yes; then
29462 am_save_LIBS="$LIBS"
29463 LIBS="$LIBS -liconv"
29464 cat >conftest.$ac_ext <<_ACEOF
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
29470#include <stdlib.h>
29471#include <iconv.h>
29472int
29473main ()
29474{
29475iconv_t cd = iconv_open("","");
29476 iconv(cd,NULL,NULL,NULL,NULL);
29477 iconv_close(cd);
29478 ;
29479 return 0;
29480}
29481_ACEOF
29482rm -f conftest.$ac_objext conftest$ac_exeext
29483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29484 (eval $ac_link) 2>conftest.er1
a848cd7e 29485 ac_status=$?
ac1cb8d3
VS
29486 grep -v '^ *+' conftest.er1 >conftest.err
29487 rm -f conftest.er1
29488 cat conftest.err >&5
a848cd7e
SC
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
c228d3a4
RN
29491 { ac_try='test -z "$ac_cxx_werror_flag"
29492 || test ! -s conftest.err'
ac1cb8d3
VS
29493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494 (eval $ac_try) 2>&5
29495 ac_status=$?
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); }; } &&
29498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 am_cv_lib_iconv=yes
29505 am_cv_func_iconv=yes
29506else
29507 echo "$as_me: failed program was:" >&5
29508sed 's/^/| /' conftest.$ac_ext >&5
29509
29510fi
ac1cb8d3
VS
29511rm -f conftest.err conftest.$ac_objext \
29512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29513 LIBS="$am_save_LIBS"
29514 fi
29515
29516fi
29517echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29518echo "${ECHO_T}$am_cv_func_iconv" >&6
29519 if test "$am_cv_func_iconv" = yes; then
29520
29521cat >>confdefs.h <<\_ACEOF
29522#define HAVE_ICONV 1
29523_ACEOF
29524
29525 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29526echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29527if test "${wx_cv_func_iconv_const+set}" = set; then
29528 echo $ECHO_N "(cached) $ECHO_C" >&6
29529else
29530 cat >conftest.$ac_ext <<_ACEOF
29531/* confdefs.h. */
29532_ACEOF
29533cat confdefs.h >>conftest.$ac_ext
29534cat >>conftest.$ac_ext <<_ACEOF
29535/* end confdefs.h. */
29536
29537#include <stdlib.h>
29538#include <iconv.h>
29539extern
29540#ifdef __cplusplus
29541"C"
29542#endif
29543#if defined(__STDC__) || defined(__cplusplus)
29544size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29545#else
29546size_t iconv();
29547#endif
29548
29549int
29550main ()
29551{
29552
29553 ;
29554 return 0;
29555}
29556_ACEOF
29557rm -f conftest.$ac_objext
29558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29559 (eval $ac_compile) 2>conftest.er1
a848cd7e 29560 ac_status=$?
ac1cb8d3
VS
29561 grep -v '^ *+' conftest.er1 >conftest.err
29562 rm -f conftest.er1
29563 cat conftest.err >&5
a848cd7e
SC
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); } &&
c228d3a4
RN
29566 { ac_try='test -z "$ac_cxx_werror_flag"
29567 || test ! -s conftest.err'
ac1cb8d3
VS
29568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29569 (eval $ac_try) 2>&5
29570 ac_status=$?
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); }; } &&
29573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29575 (eval $ac_try) 2>&5
29576 ac_status=$?
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); }; }; then
29579 wx_cv_func_iconv_const="no"
29580else
29581 echo "$as_me: failed program was:" >&5
29582sed 's/^/| /' conftest.$ac_ext >&5
29583
29584wx_cv_func_iconv_const="yes"
29585
29586fi
ac1cb8d3 29587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29588
29589fi
29590echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29591echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29592
29593 iconv_const=
29594 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29595 iconv_const="const"
29596 fi
29597
29598
29599cat >>confdefs.h <<_ACEOF
29600#define ICONV_CONST $iconv_const
29601_ACEOF
29602
29603 fi
29604 LIBICONV=
29605 if test "$am_cv_lib_iconv" = yes; then
29606 LIBICONV="-liconv"
29607 fi
29608
29609
29610LIBS="$LIBICONV $LIBS"
29611ac_ext=c
29612ac_cpp='$CPP $CPPFLAGS'
29613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29615ac_compiler_gnu=$ac_cv_c_compiler_gnu
29616
29617
29618if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29619
29620for ac_func in sigaction
29621do
29622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29623echo "$as_me:$LINENO: checking for $ac_func" >&5
29624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29625if eval "test \"\${$as_ac_var+set}\" = set"; then
29626 echo $ECHO_N "(cached) $ECHO_C" >&6
29627else
29628 cat >conftest.$ac_ext <<_ACEOF
29629/* confdefs.h. */
29630_ACEOF
29631cat confdefs.h >>conftest.$ac_ext
29632cat >>conftest.$ac_ext <<_ACEOF
29633/* end confdefs.h. */
ac1cb8d3
VS
29634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29636#define $ac_func innocuous_$ac_func
29637
a848cd7e
SC
29638/* System header to define __stub macros and hopefully few prototypes,
29639 which can conflict with char $ac_func (); below.
29640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29642
a848cd7e
SC
29643#ifdef __STDC__
29644# include <limits.h>
29645#else
29646# include <assert.h>
29647#endif
ac1cb8d3
VS
29648
29649#undef $ac_func
29650
a848cd7e
SC
29651/* Override any gcc2 internal prototype to avoid an error. */
29652#ifdef __cplusplus
29653extern "C"
29654{
29655#endif
29656/* We use char because int might match the return type of a gcc2
29657 builtin and then its argument prototype would still apply. */
29658char $ac_func ();
29659/* The GNU C library defines this for functions which it implements
29660 to always fail with ENOSYS. Some functions are actually named
29661 something starting with __ and the normal name is an alias. */
29662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29663choke me
29664#else
29665char (*f) () = $ac_func;
29666#endif
29667#ifdef __cplusplus
29668}
29669#endif
29670
29671int
29672main ()
29673{
29674return f != $ac_func;
29675 ;
29676 return 0;
29677}
29678_ACEOF
29679rm -f conftest.$ac_objext conftest$ac_exeext
29680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29681 (eval $ac_link) 2>conftest.er1
a848cd7e 29682 ac_status=$?
ac1cb8d3
VS
29683 grep -v '^ *+' conftest.er1 >conftest.err
29684 rm -f conftest.er1
29685 cat conftest.err >&5
a848cd7e
SC
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); } &&
c228d3a4
RN
29688 { ac_try='test -z "$ac_c_werror_flag"
29689 || test ! -s conftest.err'
ac1cb8d3
VS
29690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691 (eval $ac_try) 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; } &&
29695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701 eval "$as_ac_var=yes"
29702else
29703 echo "$as_me: failed program was:" >&5
29704sed 's/^/| /' conftest.$ac_ext >&5
29705
29706eval "$as_ac_var=no"
29707fi
ac1cb8d3
VS
29708rm -f conftest.err conftest.$ac_objext \
29709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29710fi
29711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29713if test `eval echo '${'$as_ac_var'}'` = yes; then
29714 cat >>confdefs.h <<_ACEOF
29715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29716_ACEOF
29717
29718fi
29719done
29720
29721
29722 if test "$ac_cv_func_sigaction" = "no"; then
29723 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29724echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29725 wxUSE_ON_FATAL_EXCEPTION=no
29726 fi
29727
29728 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29729
29730
29731 ac_ext=cc
29732ac_cpp='$CXXCPP $CPPFLAGS'
29733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29736
29737
29738 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29739echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29740if test "${wx_cv_type_sa_handler+set}" = set; then
29741 echo $ECHO_N "(cached) $ECHO_C" >&6
29742else
29743
29744 cat >conftest.$ac_ext <<_ACEOF
29745/* confdefs.h. */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h. */
29750#include <signal.h>
29751int
29752main ()
29753{
29754
29755 extern void testSigHandler(int);
29756
29757 struct sigaction sa;
29758 sa.sa_handler = testSigHandler;
29759
29760 ;
29761 return 0;
29762}
29763_ACEOF
29764rm -f conftest.$ac_objext
29765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29766 (eval $ac_compile) 2>conftest.er1
a848cd7e 29767 ac_status=$?
ac1cb8d3
VS
29768 grep -v '^ *+' conftest.er1 >conftest.err
29769 rm -f conftest.er1
29770 cat conftest.err >&5
a848cd7e
SC
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } &&
c228d3a4
RN
29773 { ac_try='test -z "$ac_cxx_werror_flag"
29774 || test ! -s conftest.err'
ac1cb8d3
VS
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786
29787 wx_cv_type_sa_handler=int
29788
29789else
29790 echo "$as_me: failed program was:" >&5
29791sed 's/^/| /' conftest.$ac_ext >&5
29792
29793
29794 wx_cv_type_sa_handler=void
29795
29796fi
ac1cb8d3 29797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29798
29799fi
29800echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29801echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29802
29803 ac_ext=c
29804ac_cpp='$CPP $CPPFLAGS'
29805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29807ac_compiler_gnu=$ac_cv_c_compiler_gnu
29808
29809
29810 cat >>confdefs.h <<_ACEOF
29811#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29812_ACEOF
29813
29814 fi
29815fi
29816
29817
29818
29819for ac_func in mkstemp mktemp
29820do
29821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29822echo "$as_me:$LINENO: checking for $ac_func" >&5
29823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29824if eval "test \"\${$as_ac_var+set}\" = set"; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29826else
29827 cat >conftest.$ac_ext <<_ACEOF
29828/* confdefs.h. */
29829_ACEOF
29830cat confdefs.h >>conftest.$ac_ext
29831cat >>conftest.$ac_ext <<_ACEOF
29832/* end confdefs.h. */
ac1cb8d3
VS
29833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29835#define $ac_func innocuous_$ac_func
29836
a848cd7e
SC
29837/* System header to define __stub macros and hopefully few prototypes,
29838 which can conflict with char $ac_func (); below.
29839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29840 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29841
a848cd7e
SC
29842#ifdef __STDC__
29843# include <limits.h>
29844#else
29845# include <assert.h>
29846#endif
ac1cb8d3
VS
29847
29848#undef $ac_func
29849
a848cd7e
SC
29850/* Override any gcc2 internal prototype to avoid an error. */
29851#ifdef __cplusplus
29852extern "C"
29853{
29854#endif
29855/* We use char because int might match the return type of a gcc2
29856 builtin and then its argument prototype would still apply. */
29857char $ac_func ();
29858/* The GNU C library defines this for functions which it implements
29859 to always fail with ENOSYS. Some functions are actually named
29860 something starting with __ and the normal name is an alias. */
29861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29862choke me
29863#else
29864char (*f) () = $ac_func;
29865#endif
29866#ifdef __cplusplus
29867}
29868#endif
29869
29870int
29871main ()
29872{
29873return f != $ac_func;
29874 ;
29875 return 0;
29876}
29877_ACEOF
29878rm -f conftest.$ac_objext conftest$ac_exeext
29879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29880 (eval $ac_link) 2>conftest.er1
a848cd7e 29881 ac_status=$?
ac1cb8d3
VS
29882 grep -v '^ *+' conftest.er1 >conftest.err
29883 rm -f conftest.er1
29884 cat conftest.err >&5
a848cd7e
SC
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } &&
c228d3a4
RN
29887 { ac_try='test -z "$ac_c_werror_flag"
29888 || test ! -s conftest.err'
ac1cb8d3
VS
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29891 ac_status=$?
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; } &&
29894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896 (eval $ac_try) 2>&5
29897 ac_status=$?
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); }; }; then
29900 eval "$as_ac_var=yes"
29901else
29902 echo "$as_me: failed program was:" >&5
29903sed 's/^/| /' conftest.$ac_ext >&5
29904
29905eval "$as_ac_var=no"
29906fi
ac1cb8d3
VS
29907rm -f conftest.err conftest.$ac_objext \
29908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29909fi
29910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29912if test `eval echo '${'$as_ac_var'}'` = yes; then
29913 cat >>confdefs.h <<_ACEOF
29914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29915_ACEOF
29916 break
29917fi
29918done
29919
29920
29921echo "$as_me:$LINENO: checking for statfs" >&5
29922echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29923if test "${wx_cv_func_statfs+set}" = set; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925else
29926 cat >conftest.$ac_ext <<_ACEOF
29927/* confdefs.h. */
29928_ACEOF
29929cat confdefs.h >>conftest.$ac_ext
29930cat >>conftest.$ac_ext <<_ACEOF
29931/* end confdefs.h. */
29932
29933 #if defined(__BSD__)
29934 #include <sys/param.h>
29935 #include <sys/mount.h>
29936 #else
29937 #include <sys/vfs.h>
29938 #endif
29939
29940int
29941main ()
29942{
29943
29944 long l;
29945 struct statfs fs;
29946 statfs("/", &fs);
29947 l = fs.f_bsize;
29948 l += fs.f_blocks;
29949 l += fs.f_bavail;
29950
29951 ;
29952 return 0;
29953}
29954_ACEOF
29955rm -f conftest.$ac_objext
29956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29957 (eval $ac_compile) 2>conftest.er1
a848cd7e 29958 ac_status=$?
ac1cb8d3
VS
29959 grep -v '^ *+' conftest.er1 >conftest.err
29960 rm -f conftest.er1
29961 cat conftest.err >&5
a848cd7e
SC
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); } &&
c228d3a4
RN
29964 { ac_try='test -z "$ac_c_werror_flag"
29965 || test ! -s conftest.err'
ac1cb8d3
VS
29966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; } &&
29971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973 (eval $ac_try) 2>&5
29974 ac_status=$?
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; }; then
29977
29978 wx_cv_func_statfs=yes
29979
29980else
29981 echo "$as_me: failed program was:" >&5
29982sed 's/^/| /' conftest.$ac_ext >&5
29983
29984
29985 wx_cv_func_statfs=no
29986
29987
29988fi
ac1cb8d3 29989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29990
29991fi
29992echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29993echo "${ECHO_T}$wx_cv_func_statfs" >&6
29994
29995if test "$wx_cv_func_statfs" = "yes"; then
29996 wx_cv_type_statvfs_t="struct statfs"
29997 cat >>confdefs.h <<\_ACEOF
29998#define HAVE_STATFS 1
29999_ACEOF
30000
30001else
30002 echo "$as_me:$LINENO: checking for statvfs" >&5
30003echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30004if test "${wx_cv_func_statvfs+set}" = set; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30006else
30007 cat >conftest.$ac_ext <<_ACEOF
30008/* confdefs.h. */
30009_ACEOF
30010cat confdefs.h >>conftest.$ac_ext
30011cat >>conftest.$ac_ext <<_ACEOF
30012/* end confdefs.h. */
30013
30014 #include <stddef.h>
30015 #include <sys/statvfs.h>
30016
30017int
30018main ()
30019{
30020
30021 statvfs("/", NULL);
30022
30023 ;
30024 return 0;
30025}
30026_ACEOF
30027rm -f conftest.$ac_objext
30028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30029 (eval $ac_compile) 2>conftest.er1
a848cd7e 30030 ac_status=$?
ac1cb8d3
VS
30031 grep -v '^ *+' conftest.er1 >conftest.err
30032 rm -f conftest.er1
30033 cat conftest.err >&5
a848cd7e
SC
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); } &&
c228d3a4
RN
30036 { ac_try='test -z "$ac_c_werror_flag"
30037 || test ! -s conftest.err'
ac1cb8d3
VS
30038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30039 (eval $ac_try) 2>&5
30040 ac_status=$?
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; } &&
30043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30045 (eval $ac_try) 2>&5
30046 ac_status=$?
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; }; then
30049 wx_cv_func_statvfs=yes
30050else
30051 echo "$as_me: failed program was:" >&5
30052sed 's/^/| /' conftest.$ac_ext >&5
30053
30054wx_cv_func_statvfs=no
30055
30056fi
ac1cb8d3 30057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30058
30059fi
30060echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30061echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30062
30063 if test "$wx_cv_func_statvfs" = "yes"; then
30064
30065
30066 ac_ext=cc
30067ac_cpp='$CXXCPP $CPPFLAGS'
30068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30071
30072
30073 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30074echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30075if test "${wx_cv_type_statvfs_t+set}" = set; then
30076 echo $ECHO_N "(cached) $ECHO_C" >&6
30077else
30078 cat >conftest.$ac_ext <<_ACEOF
30079/* confdefs.h. */
30080_ACEOF
30081cat confdefs.h >>conftest.$ac_ext
30082cat >>conftest.$ac_ext <<_ACEOF
30083/* end confdefs.h. */
30084
30085 #include <sys/statvfs.h>
30086
30087int
30088main ()
30089{
30090
30091 long l;
30092 statvfs_t fs;
30093 statvfs("/", &fs);
30094 l = fs.f_bsize;
30095 l += fs.f_blocks;
30096 l += fs.f_bavail;
30097
30098 ;
30099 return 0;
30100}
30101_ACEOF
30102rm -f conftest.$ac_objext
30103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30104 (eval $ac_compile) 2>conftest.er1
a848cd7e 30105 ac_status=$?
ac1cb8d3
VS
30106 grep -v '^ *+' conftest.er1 >conftest.err
30107 rm -f conftest.er1
30108 cat conftest.err >&5
a848cd7e
SC
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } &&
c228d3a4
RN
30111 { ac_try='test -z "$ac_cxx_werror_flag"
30112 || test ! -s conftest.err'
ac1cb8d3
VS
30113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114 (eval $ac_try) 2>&5
30115 ac_status=$?
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; } &&
30118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30120 (eval $ac_try) 2>&5
30121 ac_status=$?
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); }; }; then
30124 wx_cv_type_statvfs_t=statvfs_t
30125else
30126 echo "$as_me: failed program was:" >&5
30127sed 's/^/| /' conftest.$ac_ext >&5
30128
30129
30130 cat >conftest.$ac_ext <<_ACEOF
30131/* confdefs.h. */
30132_ACEOF
30133cat confdefs.h >>conftest.$ac_ext
30134cat >>conftest.$ac_ext <<_ACEOF
30135/* end confdefs.h. */
30136
30137 #include <sys/statvfs.h>
30138
30139int
30140main ()
30141{
30142
30143 long l;
30144 struct statvfs fs;
30145 statvfs("/", &fs);
30146 l = fs.f_bsize;
30147 l += fs.f_blocks;
30148 l += fs.f_bavail;
30149
30150 ;
30151 return 0;
30152}
30153_ACEOF
30154rm -f conftest.$ac_objext
30155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30156 (eval $ac_compile) 2>conftest.er1
a848cd7e 30157 ac_status=$?
ac1cb8d3
VS
30158 grep -v '^ *+' conftest.er1 >conftest.err
30159 rm -f conftest.er1
30160 cat conftest.err >&5
a848cd7e
SC
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); } &&
c228d3a4
RN
30163 { ac_try='test -z "$ac_cxx_werror_flag"
30164 || test ! -s conftest.err'
ac1cb8d3
VS
30165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30166 (eval $ac_try) 2>&5
30167 ac_status=$?
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); }; } &&
30170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30172 (eval $ac_try) 2>&5
30173 ac_status=$?
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); }; }; then
30176 wx_cv_type_statvfs_t="struct statvfs"
30177else
30178 echo "$as_me: failed program was:" >&5
30179sed 's/^/| /' conftest.$ac_ext >&5
30180
30181wx_cv_type_statvfs_t="unknown"
30182
30183fi
ac1cb8d3 30184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30185
30186
30187fi
ac1cb8d3 30188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30189
30190fi
30191echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30192echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30193
30194 ac_ext=c
30195ac_cpp='$CPP $CPPFLAGS'
30196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30198ac_compiler_gnu=$ac_cv_c_compiler_gnu
30199
30200
30201 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30202 cat >>confdefs.h <<\_ACEOF
30203#define HAVE_STATVFS 1
30204_ACEOF
30205
30206 fi
30207 else
30208 wx_cv_type_statvfs_t="unknown"
30209 fi
30210fi
30211
30212if test "$wx_cv_type_statvfs_t" != "unknown"; then
30213 cat >>confdefs.h <<_ACEOF
30214#define WX_STATFS_T $wx_cv_type_statvfs_t
30215_ACEOF
30216
30217else
30218 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30219echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30220fi
30221
30222if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30223
30224
30225for ac_func in fcntl flock
30226do
30227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30228echo "$as_me:$LINENO: checking for $ac_func" >&5
30229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30230if eval "test \"\${$as_ac_var+set}\" = set"; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30232else
30233 cat >conftest.$ac_ext <<_ACEOF
30234/* confdefs.h. */
30235_ACEOF
30236cat confdefs.h >>conftest.$ac_ext
30237cat >>conftest.$ac_ext <<_ACEOF
30238/* end confdefs.h. */
ac1cb8d3
VS
30239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30241#define $ac_func innocuous_$ac_func
30242
a848cd7e
SC
30243/* System header to define __stub macros and hopefully few prototypes,
30244 which can conflict with char $ac_func (); below.
30245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30247
a848cd7e
SC
30248#ifdef __STDC__
30249# include <limits.h>
30250#else
30251# include <assert.h>
30252#endif
ac1cb8d3
VS
30253
30254#undef $ac_func
30255
a848cd7e
SC
30256/* Override any gcc2 internal prototype to avoid an error. */
30257#ifdef __cplusplus
30258extern "C"
30259{
30260#endif
30261/* We use char because int might match the return type of a gcc2
30262 builtin and then its argument prototype would still apply. */
30263char $ac_func ();
30264/* The GNU C library defines this for functions which it implements
30265 to always fail with ENOSYS. Some functions are actually named
30266 something starting with __ and the normal name is an alias. */
30267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30268choke me
30269#else
30270char (*f) () = $ac_func;
30271#endif
30272#ifdef __cplusplus
30273}
30274#endif
30275
30276int
30277main ()
30278{
30279return f != $ac_func;
30280 ;
30281 return 0;
30282}
30283_ACEOF
30284rm -f conftest.$ac_objext conftest$ac_exeext
30285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30286 (eval $ac_link) 2>conftest.er1
a848cd7e 30287 ac_status=$?
ac1cb8d3
VS
30288 grep -v '^ *+' conftest.er1 >conftest.err
30289 rm -f conftest.er1
30290 cat conftest.err >&5
a848cd7e
SC
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); } &&
c228d3a4
RN
30293 { ac_try='test -z "$ac_c_werror_flag"
30294 || test ! -s conftest.err'
ac1cb8d3
VS
30295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30296 (eval $ac_try) 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; } &&
30300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302 (eval $ac_try) 2>&5
30303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30306 eval "$as_ac_var=yes"
30307else
30308 echo "$as_me: failed program was:" >&5
30309sed 's/^/| /' conftest.$ac_ext >&5
30310
30311eval "$as_ac_var=no"
30312fi
ac1cb8d3
VS
30313rm -f conftest.err conftest.$ac_objext \
30314 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30315fi
30316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30318if test `eval echo '${'$as_ac_var'}'` = yes; then
30319 cat >>confdefs.h <<_ACEOF
30320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30321_ACEOF
30322 break
30323fi
30324done
30325
30326
30327 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30328 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30329echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30330 wxUSE_SNGLINST_CHECKER=no
30331 fi
30332fi
30333
30334
30335for ac_func in timegm
30336do
30337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30338echo "$as_me:$LINENO: checking for $ac_func" >&5
30339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30340if eval "test \"\${$as_ac_var+set}\" = set"; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30342else
30343 cat >conftest.$ac_ext <<_ACEOF
30344/* confdefs.h. */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h. */
ac1cb8d3
VS
30349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30351#define $ac_func innocuous_$ac_func
30352
a848cd7e
SC
30353/* System header to define __stub macros and hopefully few prototypes,
30354 which can conflict with char $ac_func (); below.
30355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30357
a848cd7e
SC
30358#ifdef __STDC__
30359# include <limits.h>
30360#else
30361# include <assert.h>
30362#endif
ac1cb8d3
VS
30363
30364#undef $ac_func
30365
a848cd7e
SC
30366/* Override any gcc2 internal prototype to avoid an error. */
30367#ifdef __cplusplus
30368extern "C"
30369{
30370#endif
30371/* We use char because int might match the return type of a gcc2
30372 builtin and then its argument prototype would still apply. */
30373char $ac_func ();
30374/* The GNU C library defines this for functions which it implements
30375 to always fail with ENOSYS. Some functions are actually named
30376 something starting with __ and the normal name is an alias. */
30377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30378choke me
30379#else
30380char (*f) () = $ac_func;
30381#endif
30382#ifdef __cplusplus
30383}
30384#endif
30385
30386int
30387main ()
30388{
30389return f != $ac_func;
30390 ;
30391 return 0;
30392}
30393_ACEOF
30394rm -f conftest.$ac_objext conftest$ac_exeext
30395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30396 (eval $ac_link) 2>conftest.er1
a848cd7e 30397 ac_status=$?
ac1cb8d3
VS
30398 grep -v '^ *+' conftest.er1 >conftest.err
30399 rm -f conftest.er1
30400 cat conftest.err >&5
a848cd7e
SC
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); } &&
c228d3a4
RN
30403 { ac_try='test -z "$ac_c_werror_flag"
30404 || test ! -s conftest.err'
ac1cb8d3
VS
30405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30406 (eval $ac_try) 2>&5
30407 ac_status=$?
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); }; } &&
30410 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30412 (eval $ac_try) 2>&5
30413 ac_status=$?
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); }; }; then
30416 eval "$as_ac_var=yes"
30417else
30418 echo "$as_me: failed program was:" >&5
30419sed 's/^/| /' conftest.$ac_ext >&5
30420
30421eval "$as_ac_var=no"
30422fi
ac1cb8d3
VS
30423rm -f conftest.err conftest.$ac_objext \
30424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30425fi
30426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30428if test `eval echo '${'$as_ac_var'}'` = yes; then
30429 cat >>confdefs.h <<_ACEOF
30430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30431_ACEOF
30432
30433fi
30434done
30435
30436
30437
30438
30439for ac_func in putenv setenv
30440do
30441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30442echo "$as_me:$LINENO: checking for $ac_func" >&5
30443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30444if eval "test \"\${$as_ac_var+set}\" = set"; then
30445 echo $ECHO_N "(cached) $ECHO_C" >&6
30446else
30447 cat >conftest.$ac_ext <<_ACEOF
30448/* confdefs.h. */
30449_ACEOF
30450cat confdefs.h >>conftest.$ac_ext
30451cat >>conftest.$ac_ext <<_ACEOF
30452/* end confdefs.h. */
ac1cb8d3
VS
30453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30455#define $ac_func innocuous_$ac_func
30456
a848cd7e
SC
30457/* System header to define __stub macros and hopefully few prototypes,
30458 which can conflict with char $ac_func (); below.
30459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30460 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30461
a848cd7e
SC
30462#ifdef __STDC__
30463# include <limits.h>
30464#else
30465# include <assert.h>
30466#endif
ac1cb8d3
VS
30467
30468#undef $ac_func
30469
a848cd7e
SC
30470/* Override any gcc2 internal prototype to avoid an error. */
30471#ifdef __cplusplus
30472extern "C"
30473{
30474#endif
30475/* We use char because int might match the return type of a gcc2
30476 builtin and then its argument prototype would still apply. */
30477char $ac_func ();
30478/* The GNU C library defines this for functions which it implements
30479 to always fail with ENOSYS. Some functions are actually named
30480 something starting with __ and the normal name is an alias. */
30481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30482choke me
30483#else
30484char (*f) () = $ac_func;
30485#endif
30486#ifdef __cplusplus
30487}
30488#endif
30489
30490int
30491main ()
30492{
30493return f != $ac_func;
30494 ;
30495 return 0;
30496}
30497_ACEOF
30498rm -f conftest.$ac_objext conftest$ac_exeext
30499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30500 (eval $ac_link) 2>conftest.er1
a848cd7e 30501 ac_status=$?
ac1cb8d3
VS
30502 grep -v '^ *+' conftest.er1 >conftest.err
30503 rm -f conftest.er1
30504 cat conftest.err >&5
a848cd7e
SC
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); } &&
c228d3a4
RN
30507 { ac_try='test -z "$ac_c_werror_flag"
30508 || test ! -s conftest.err'
ac1cb8d3
VS
30509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); }; } &&
30514 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30516 (eval $ac_try) 2>&5
30517 ac_status=$?
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); }; }; then
30520 eval "$as_ac_var=yes"
30521else
30522 echo "$as_me: failed program was:" >&5
30523sed 's/^/| /' conftest.$ac_ext >&5
30524
30525eval "$as_ac_var=no"
30526fi
ac1cb8d3
VS
30527rm -f conftest.err conftest.$ac_objext \
30528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30529fi
30530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30532if test `eval echo '${'$as_ac_var'}'` = yes; then
30533 cat >>confdefs.h <<_ACEOF
30534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30535_ACEOF
30536 break
30537fi
30538done
30539
30540
30541HAVE_SOME_SLEEP_FUNC=0
30542if test "$USE_BEOS" = 1; then
30543 cat >>confdefs.h <<\_ACEOF
30544#define HAVE_SLEEP 1
30545_ACEOF
30546
30547 HAVE_SOME_SLEEP_FUNC=1
30548fi
30549
30550if test "$USE_DARWIN" = 1; then
30551 cat >>confdefs.h <<\_ACEOF
30552#define HAVE_USLEEP 1
30553_ACEOF
30554
30555 HAVE_SOME_SLEEP_FUNC=1
30556fi
30557
30558if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30559 POSIX4_LINK=
30560
30561for ac_func in nanosleep
30562do
30563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30564echo "$as_me:$LINENO: checking for $ac_func" >&5
30565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30566if eval "test \"\${$as_ac_var+set}\" = set"; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30568else
30569 cat >conftest.$ac_ext <<_ACEOF
30570/* confdefs.h. */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
30574/* end confdefs.h. */
ac1cb8d3
VS
30575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30577#define $ac_func innocuous_$ac_func
30578
a848cd7e
SC
30579/* System header to define __stub macros and hopefully few prototypes,
30580 which can conflict with char $ac_func (); below.
30581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30583
a848cd7e
SC
30584#ifdef __STDC__
30585# include <limits.h>
30586#else
30587# include <assert.h>
30588#endif
ac1cb8d3
VS
30589
30590#undef $ac_func
30591
a848cd7e
SC
30592/* Override any gcc2 internal prototype to avoid an error. */
30593#ifdef __cplusplus
30594extern "C"
30595{
30596#endif
30597/* We use char because int might match the return type of a gcc2
30598 builtin and then its argument prototype would still apply. */
30599char $ac_func ();
30600/* The GNU C library defines this for functions which it implements
30601 to always fail with ENOSYS. Some functions are actually named
30602 something starting with __ and the normal name is an alias. */
30603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30604choke me
30605#else
30606char (*f) () = $ac_func;
30607#endif
30608#ifdef __cplusplus
30609}
30610#endif
30611
30612int
30613main ()
30614{
30615return f != $ac_func;
30616 ;
30617 return 0;
30618}
30619_ACEOF
30620rm -f conftest.$ac_objext conftest$ac_exeext
30621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30622 (eval $ac_link) 2>conftest.er1
a848cd7e 30623 ac_status=$?
ac1cb8d3
VS
30624 grep -v '^ *+' conftest.er1 >conftest.err
30625 rm -f conftest.er1
30626 cat conftest.err >&5
a848cd7e
SC
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } &&
c228d3a4
RN
30629 { ac_try='test -z "$ac_c_werror_flag"
30630 || test ! -s conftest.err'
ac1cb8d3
VS
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; } &&
30636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638 (eval $ac_try) 2>&5
30639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
30642 eval "$as_ac_var=yes"
30643else
30644 echo "$as_me: failed program was:" >&5
30645sed 's/^/| /' conftest.$ac_ext >&5
30646
30647eval "$as_ac_var=no"
30648fi
ac1cb8d3
VS
30649rm -f conftest.err conftest.$ac_objext \
30650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30651fi
30652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30654if test `eval echo '${'$as_ac_var'}'` = yes; then
30655 cat >>confdefs.h <<_ACEOF
30656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30657_ACEOF
30658 cat >>confdefs.h <<\_ACEOF
30659#define HAVE_NANOSLEEP 1
30660_ACEOF
30661
30662else
30663
30664 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30665echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30666if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30667 echo $ECHO_N "(cached) $ECHO_C" >&6
30668else
30669 ac_check_lib_save_LIBS=$LIBS
30670LIBS="-lposix4 $LIBS"
30671cat >conftest.$ac_ext <<_ACEOF
30672/* confdefs.h. */
30673_ACEOF
30674cat confdefs.h >>conftest.$ac_ext
30675cat >>conftest.$ac_ext <<_ACEOF
30676/* end confdefs.h. */
30677
30678/* Override any gcc2 internal prototype to avoid an error. */
30679#ifdef __cplusplus
30680extern "C"
30681#endif
30682/* We use char because int might match the return type of a gcc2
30683 builtin and then its argument prototype would still apply. */
30684char nanosleep ();
30685int
30686main ()
30687{
30688nanosleep ();
30689 ;
30690 return 0;
30691}
30692_ACEOF
30693rm -f conftest.$ac_objext conftest$ac_exeext
30694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30695 (eval $ac_link) 2>conftest.er1
a848cd7e 30696 ac_status=$?
ac1cb8d3
VS
30697 grep -v '^ *+' conftest.er1 >conftest.err
30698 rm -f conftest.er1
30699 cat conftest.err >&5
a848cd7e
SC
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); } &&
c228d3a4
RN
30702 { ac_try='test -z "$ac_c_werror_flag"
30703 || test ! -s conftest.err'
ac1cb8d3
VS
30704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30705 (eval $ac_try) 2>&5
30706 ac_status=$?
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); }; } &&
30709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711 (eval $ac_try) 2>&5
30712 ac_status=$?
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); }; }; then
30715 ac_cv_lib_posix4_nanosleep=yes
30716else
30717 echo "$as_me: failed program was:" >&5
30718sed 's/^/| /' conftest.$ac_ext >&5
30719
30720ac_cv_lib_posix4_nanosleep=no
30721fi
ac1cb8d3
VS
30722rm -f conftest.err conftest.$ac_objext \
30723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30724LIBS=$ac_check_lib_save_LIBS
30725fi
30726echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30727echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30728if test $ac_cv_lib_posix4_nanosleep = yes; then
30729
30730 cat >>confdefs.h <<\_ACEOF
30731#define HAVE_NANOSLEEP 1
30732_ACEOF
30733
30734 POSIX4_LINK=" -lposix4"
30735
30736else
30737
30738
30739for ac_func in usleep
30740do
30741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30742echo "$as_me:$LINENO: checking for $ac_func" >&5
30743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30744if eval "test \"\${$as_ac_var+set}\" = set"; then
30745 echo $ECHO_N "(cached) $ECHO_C" >&6
30746else
30747 cat >conftest.$ac_ext <<_ACEOF
30748/* confdefs.h. */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h. */
ac1cb8d3
VS
30753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30755#define $ac_func innocuous_$ac_func
30756
a848cd7e
SC
30757/* System header to define __stub macros and hopefully few prototypes,
30758 which can conflict with char $ac_func (); below.
30759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30760 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30761
a848cd7e
SC
30762#ifdef __STDC__
30763# include <limits.h>
30764#else
30765# include <assert.h>
30766#endif
ac1cb8d3
VS
30767
30768#undef $ac_func
30769
a848cd7e
SC
30770/* Override any gcc2 internal prototype to avoid an error. */
30771#ifdef __cplusplus
30772extern "C"
30773{
30774#endif
30775/* We use char because int might match the return type of a gcc2
30776 builtin and then its argument prototype would still apply. */
30777char $ac_func ();
30778/* The GNU C library defines this for functions which it implements
30779 to always fail with ENOSYS. Some functions are actually named
30780 something starting with __ and the normal name is an alias. */
30781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30782choke me
30783#else
30784char (*f) () = $ac_func;
30785#endif
30786#ifdef __cplusplus
30787}
30788#endif
30789
30790int
30791main ()
30792{
30793return f != $ac_func;
30794 ;
30795 return 0;
30796}
30797_ACEOF
30798rm -f conftest.$ac_objext conftest$ac_exeext
30799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30800 (eval $ac_link) 2>conftest.er1
a848cd7e 30801 ac_status=$?
ac1cb8d3
VS
30802 grep -v '^ *+' conftest.er1 >conftest.err
30803 rm -f conftest.er1
30804 cat conftest.err >&5
a848cd7e
SC
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); } &&
c228d3a4
RN
30807 { ac_try='test -z "$ac_c_werror_flag"
30808 || test ! -s conftest.err'
ac1cb8d3
VS
30809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810 (eval $ac_try) 2>&5
30811 ac_status=$?
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; } &&
30814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30816 (eval $ac_try) 2>&5
30817 ac_status=$?
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); }; }; then
30820 eval "$as_ac_var=yes"
30821else
30822 echo "$as_me: failed program was:" >&5
30823sed 's/^/| /' conftest.$ac_ext >&5
30824
30825eval "$as_ac_var=no"
30826fi
ac1cb8d3
VS
30827rm -f conftest.err conftest.$ac_objext \
30828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30829fi
30830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30832if test `eval echo '${'$as_ac_var'}'` = yes; then
30833 cat >>confdefs.h <<_ACEOF
30834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30835_ACEOF
30836 cat >>confdefs.h <<\_ACEOF
30837#define HAVE_USLEEP 1
30838_ACEOF
30839
30840else
30841 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30842echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30843
30844fi
30845done
30846
30847
30848
30849fi
30850
30851
30852
30853fi
30854done
30855
30856fi
30857
30858
30859
30860for ac_func in uname gethostname
30861do
30862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30863echo "$as_me:$LINENO: checking for $ac_func" >&5
30864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30865if eval "test \"\${$as_ac_var+set}\" = set"; then
30866 echo $ECHO_N "(cached) $ECHO_C" >&6
30867else
30868 cat >conftest.$ac_ext <<_ACEOF
30869/* confdefs.h. */
30870_ACEOF
30871cat confdefs.h >>conftest.$ac_ext
30872cat >>conftest.$ac_ext <<_ACEOF
30873/* end confdefs.h. */
ac1cb8d3
VS
30874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30876#define $ac_func innocuous_$ac_func
30877
a848cd7e
SC
30878/* System header to define __stub macros and hopefully few prototypes,
30879 which can conflict with char $ac_func (); below.
30880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30881 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30882
a848cd7e
SC
30883#ifdef __STDC__
30884# include <limits.h>
30885#else
30886# include <assert.h>
30887#endif
ac1cb8d3
VS
30888
30889#undef $ac_func
30890
a848cd7e
SC
30891/* Override any gcc2 internal prototype to avoid an error. */
30892#ifdef __cplusplus
30893extern "C"
30894{
30895#endif
30896/* We use char because int might match the return type of a gcc2
30897 builtin and then its argument prototype would still apply. */
30898char $ac_func ();
30899/* The GNU C library defines this for functions which it implements
30900 to always fail with ENOSYS. Some functions are actually named
30901 something starting with __ and the normal name is an alias. */
30902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30903choke me
30904#else
30905char (*f) () = $ac_func;
30906#endif
30907#ifdef __cplusplus
30908}
30909#endif
30910
30911int
30912main ()
30913{
30914return f != $ac_func;
30915 ;
30916 return 0;
30917}
30918_ACEOF
30919rm -f conftest.$ac_objext conftest$ac_exeext
30920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30921 (eval $ac_link) 2>conftest.er1
a848cd7e 30922 ac_status=$?
ac1cb8d3
VS
30923 grep -v '^ *+' conftest.er1 >conftest.err
30924 rm -f conftest.er1
30925 cat conftest.err >&5
a848cd7e
SC
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); } &&
c228d3a4
RN
30928 { ac_try='test -z "$ac_c_werror_flag"
30929 || test ! -s conftest.err'
ac1cb8d3
VS
30930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30931 (eval $ac_try) 2>&5
30932 ac_status=$?
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); }; } &&
30935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937 (eval $ac_try) 2>&5
30938 ac_status=$?
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; }; then
30941 eval "$as_ac_var=yes"
30942else
30943 echo "$as_me: failed program was:" >&5
30944sed 's/^/| /' conftest.$ac_ext >&5
30945
30946eval "$as_ac_var=no"
30947fi
ac1cb8d3
VS
30948rm -f conftest.err conftest.$ac_objext \
30949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30950fi
30951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30953if test `eval echo '${'$as_ac_var'}'` = yes; then
30954 cat >>confdefs.h <<_ACEOF
30955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30956_ACEOF
30957 break
30958fi
30959done
30960
30961
30962
30963
30964ac_ext=cc
30965ac_cpp='$CXXCPP $CPPFLAGS'
30966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30969
30970
30971
30972for ac_func in strtok_r
30973do
30974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30975echo "$as_me:$LINENO: checking for $ac_func" >&5
30976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30977if eval "test \"\${$as_ac_var+set}\" = set"; then
30978 echo $ECHO_N "(cached) $ECHO_C" >&6
30979else
30980 cat >conftest.$ac_ext <<_ACEOF
30981/* confdefs.h. */
30982_ACEOF
30983cat confdefs.h >>conftest.$ac_ext
30984cat >>conftest.$ac_ext <<_ACEOF
30985/* end confdefs.h. */
ac1cb8d3
VS
30986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30988#define $ac_func innocuous_$ac_func
30989
a848cd7e
SC
30990/* System header to define __stub macros and hopefully few prototypes,
30991 which can conflict with char $ac_func (); below.
30992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30993 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30994
a848cd7e
SC
30995#ifdef __STDC__
30996# include <limits.h>
30997#else
30998# include <assert.h>
30999#endif
ac1cb8d3
VS
31000
31001#undef $ac_func
31002
a848cd7e
SC
31003/* Override any gcc2 internal prototype to avoid an error. */
31004#ifdef __cplusplus
31005extern "C"
31006{
31007#endif
31008/* We use char because int might match the return type of a gcc2
31009 builtin and then its argument prototype would still apply. */
31010char $ac_func ();
31011/* The GNU C library defines this for functions which it implements
31012 to always fail with ENOSYS. Some functions are actually named
31013 something starting with __ and the normal name is an alias. */
31014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31015choke me
31016#else
31017char (*f) () = $ac_func;
31018#endif
31019#ifdef __cplusplus
31020}
31021#endif
31022
31023int
31024main ()
31025{
31026return f != $ac_func;
31027 ;
31028 return 0;
31029}
31030_ACEOF
31031rm -f conftest.$ac_objext conftest$ac_exeext
31032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31033 (eval $ac_link) 2>conftest.er1
a848cd7e 31034 ac_status=$?
ac1cb8d3
VS
31035 grep -v '^ *+' conftest.er1 >conftest.err
31036 rm -f conftest.er1
31037 cat conftest.err >&5
a848cd7e
SC
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); } &&
c228d3a4
RN
31040 { ac_try='test -z "$ac_cxx_werror_flag"
31041 || test ! -s conftest.err'
ac1cb8d3
VS
31042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043 (eval $ac_try) 2>&5
31044 ac_status=$?
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); }; } &&
31047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049 (eval $ac_try) 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; }; then
31053 eval "$as_ac_var=yes"
31054else
31055 echo "$as_me: failed program was:" >&5
31056sed 's/^/| /' conftest.$ac_ext >&5
31057
31058eval "$as_ac_var=no"
31059fi
ac1cb8d3
VS
31060rm -f conftest.err conftest.$ac_objext \
31061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31062fi
31063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31065if test `eval echo '${'$as_ac_var'}'` = yes; then
31066 cat >>confdefs.h <<_ACEOF
31067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31068_ACEOF
31069
31070fi
31071done
31072
31073
31074ac_ext=c
31075ac_cpp='$CPP $CPPFLAGS'
31076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31078ac_compiler_gnu=$ac_cv_c_compiler_gnu
31079
31080
31081INET_LINK=
31082
31083for ac_func in inet_addr
31084do
31085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31086echo "$as_me:$LINENO: checking for $ac_func" >&5
31087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31088if eval "test \"\${$as_ac_var+set}\" = set"; then
31089 echo $ECHO_N "(cached) $ECHO_C" >&6
31090else
31091 cat >conftest.$ac_ext <<_ACEOF
31092/* confdefs.h. */
31093_ACEOF
31094cat confdefs.h >>conftest.$ac_ext
31095cat >>conftest.$ac_ext <<_ACEOF
31096/* end confdefs.h. */
ac1cb8d3
VS
31097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31099#define $ac_func innocuous_$ac_func
31100
a848cd7e
SC
31101/* System header to define __stub macros and hopefully few prototypes,
31102 which can conflict with char $ac_func (); below.
31103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31105
a848cd7e
SC
31106#ifdef __STDC__
31107# include <limits.h>
31108#else
31109# include <assert.h>
31110#endif
ac1cb8d3
VS
31111
31112#undef $ac_func
31113
a848cd7e
SC
31114/* Override any gcc2 internal prototype to avoid an error. */
31115#ifdef __cplusplus
31116extern "C"
31117{
31118#endif
31119/* We use char because int might match the return type of a gcc2
31120 builtin and then its argument prototype would still apply. */
31121char $ac_func ();
31122/* The GNU C library defines this for functions which it implements
31123 to always fail with ENOSYS. Some functions are actually named
31124 something starting with __ and the normal name is an alias. */
31125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31126choke me
31127#else
31128char (*f) () = $ac_func;
31129#endif
31130#ifdef __cplusplus
31131}
31132#endif
31133
31134int
31135main ()
31136{
31137return f != $ac_func;
31138 ;
31139 return 0;
31140}
31141_ACEOF
31142rm -f conftest.$ac_objext conftest$ac_exeext
31143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31144 (eval $ac_link) 2>conftest.er1
a848cd7e 31145 ac_status=$?
ac1cb8d3
VS
31146 grep -v '^ *+' conftest.er1 >conftest.err
31147 rm -f conftest.er1
31148 cat conftest.err >&5
a848cd7e
SC
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); } &&
c228d3a4
RN
31151 { ac_try='test -z "$ac_c_werror_flag"
31152 || test ! -s conftest.err'
ac1cb8d3
VS
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; } &&
31158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31160 (eval $ac_try) 2>&5
31161 ac_status=$?
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); }; }; then
31164 eval "$as_ac_var=yes"
31165else
31166 echo "$as_me: failed program was:" >&5
31167sed 's/^/| /' conftest.$ac_ext >&5
31168
31169eval "$as_ac_var=no"
31170fi
ac1cb8d3
VS
31171rm -f conftest.err conftest.$ac_objext \
31172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31173fi
31174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31176if test `eval echo '${'$as_ac_var'}'` = yes; then
31177 cat >>confdefs.h <<_ACEOF
31178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31179_ACEOF
31180 cat >>confdefs.h <<\_ACEOF
31181#define HAVE_INET_ADDR 1
31182_ACEOF
31183
31184else
31185
31186 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31187echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31188if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31190else
31191 ac_check_lib_save_LIBS=$LIBS
31192LIBS="-lnsl $LIBS"
31193cat >conftest.$ac_ext <<_ACEOF
31194/* confdefs.h. */
31195_ACEOF
31196cat confdefs.h >>conftest.$ac_ext
31197cat >>conftest.$ac_ext <<_ACEOF
31198/* end confdefs.h. */
31199
31200/* Override any gcc2 internal prototype to avoid an error. */
31201#ifdef __cplusplus
31202extern "C"
31203#endif
31204/* We use char because int might match the return type of a gcc2
31205 builtin and then its argument prototype would still apply. */
31206char inet_addr ();
31207int
31208main ()
31209{
31210inet_addr ();
31211 ;
31212 return 0;
31213}
31214_ACEOF
31215rm -f conftest.$ac_objext conftest$ac_exeext
31216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31217 (eval $ac_link) 2>conftest.er1
a848cd7e 31218 ac_status=$?
ac1cb8d3
VS
31219 grep -v '^ *+' conftest.er1 >conftest.err
31220 rm -f conftest.er1
31221 cat conftest.err >&5
a848cd7e
SC
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); } &&
c228d3a4
RN
31224 { ac_try='test -z "$ac_c_werror_flag"
31225 || test ! -s conftest.err'
ac1cb8d3
VS
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; } &&
31231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233 (eval $ac_try) 2>&5
31234 ac_status=$?
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); }; }; then
31237 ac_cv_lib_nsl_inet_addr=yes
31238else
31239 echo "$as_me: failed program was:" >&5
31240sed 's/^/| /' conftest.$ac_ext >&5
31241
31242ac_cv_lib_nsl_inet_addr=no
31243fi
ac1cb8d3
VS
31244rm -f conftest.err conftest.$ac_objext \
31245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31246LIBS=$ac_check_lib_save_LIBS
31247fi
31248echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31249echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31250if test $ac_cv_lib_nsl_inet_addr = yes; then
31251 INET_LINK="nsl"
31252else
31253
31254 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31255echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31256if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31257 echo $ECHO_N "(cached) $ECHO_C" >&6
31258else
31259 ac_check_lib_save_LIBS=$LIBS
31260LIBS="-lresolv $LIBS"
31261cat >conftest.$ac_ext <<_ACEOF
31262/* confdefs.h. */
31263_ACEOF
31264cat confdefs.h >>conftest.$ac_ext
31265cat >>conftest.$ac_ext <<_ACEOF
31266/* end confdefs.h. */
31267
31268/* Override any gcc2 internal prototype to avoid an error. */
31269#ifdef __cplusplus
31270extern "C"
31271#endif
31272/* We use char because int might match the return type of a gcc2
31273 builtin and then its argument prototype would still apply. */
31274char inet_addr ();
31275int
31276main ()
31277{
31278inet_addr ();
31279 ;
31280 return 0;
31281}
31282_ACEOF
31283rm -f conftest.$ac_objext conftest$ac_exeext
31284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31285 (eval $ac_link) 2>conftest.er1
a848cd7e 31286 ac_status=$?
ac1cb8d3
VS
31287 grep -v '^ *+' conftest.er1 >conftest.err
31288 rm -f conftest.er1
31289 cat conftest.err >&5
a848cd7e
SC
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
c228d3a4
RN
31292 { ac_try='test -z "$ac_c_werror_flag"
31293 || test ! -s conftest.err'
ac1cb8d3
VS
31294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31295 (eval $ac_try) 2>&5
31296 ac_status=$?
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); }; } &&
31299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301 (eval $ac_try) 2>&5
31302 ac_status=$?
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; }; then
31305 ac_cv_lib_resolv_inet_addr=yes
31306else
31307 echo "$as_me: failed program was:" >&5
31308sed 's/^/| /' conftest.$ac_ext >&5
31309
31310ac_cv_lib_resolv_inet_addr=no
31311fi
ac1cb8d3
VS
31312rm -f conftest.err conftest.$ac_objext \
31313 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31314LIBS=$ac_check_lib_save_LIBS
31315fi
31316echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31317echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31318if test $ac_cv_lib_resolv_inet_addr = yes; then
31319 INET_LINK="resolv"
31320else
31321
31322 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31323echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31324if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31325 echo $ECHO_N "(cached) $ECHO_C" >&6
31326else
31327 ac_check_lib_save_LIBS=$LIBS
31328LIBS="-lsocket $LIBS"
31329cat >conftest.$ac_ext <<_ACEOF
31330/* confdefs.h. */
31331_ACEOF
31332cat confdefs.h >>conftest.$ac_ext
31333cat >>conftest.$ac_ext <<_ACEOF
31334/* end confdefs.h. */
31335
31336/* Override any gcc2 internal prototype to avoid an error. */
31337#ifdef __cplusplus
31338extern "C"
31339#endif
31340/* We use char because int might match the return type of a gcc2
31341 builtin and then its argument prototype would still apply. */
31342char inet_addr ();
31343int
31344main ()
31345{
31346inet_addr ();
31347 ;
31348 return 0;
31349}
31350_ACEOF
31351rm -f conftest.$ac_objext conftest$ac_exeext
31352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31353 (eval $ac_link) 2>conftest.er1
a848cd7e 31354 ac_status=$?
ac1cb8d3
VS
31355 grep -v '^ *+' conftest.er1 >conftest.err
31356 rm -f conftest.er1
31357 cat conftest.err >&5
a848cd7e
SC
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); } &&
c228d3a4
RN
31360 { ac_try='test -z "$ac_c_werror_flag"
31361 || test ! -s conftest.err'
ac1cb8d3
VS
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; } &&
31367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31370 ac_status=$?
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; }; then
31373 ac_cv_lib_socket_inet_addr=yes
31374else
31375 echo "$as_me: failed program was:" >&5
31376sed 's/^/| /' conftest.$ac_ext >&5
31377
31378ac_cv_lib_socket_inet_addr=no
31379fi
ac1cb8d3
VS
31380rm -f conftest.err conftest.$ac_objext \
31381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31382LIBS=$ac_check_lib_save_LIBS
31383fi
31384echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31385echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31386if test $ac_cv_lib_socket_inet_addr = yes; then
31387 INET_LINK="socket"
31388
31389fi
31390
31391
31392
31393fi
31394
31395
31396
31397fi
31398
31399
31400
31401fi
31402done
31403
31404
31405
31406for ac_func in inet_aton
31407do
31408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31409echo "$as_me:$LINENO: checking for $ac_func" >&5
31410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31411if eval "test \"\${$as_ac_var+set}\" = set"; then
31412 echo $ECHO_N "(cached) $ECHO_C" >&6
31413else
31414 cat >conftest.$ac_ext <<_ACEOF
31415/* confdefs.h. */
31416_ACEOF
31417cat confdefs.h >>conftest.$ac_ext
31418cat >>conftest.$ac_ext <<_ACEOF
31419/* end confdefs.h. */
ac1cb8d3
VS
31420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31422#define $ac_func innocuous_$ac_func
31423
a848cd7e
SC
31424/* System header to define __stub macros and hopefully few prototypes,
31425 which can conflict with char $ac_func (); below.
31426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31427 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31428
a848cd7e
SC
31429#ifdef __STDC__
31430# include <limits.h>
31431#else
31432# include <assert.h>
31433#endif
ac1cb8d3
VS
31434
31435#undef $ac_func
31436
a848cd7e
SC
31437/* Override any gcc2 internal prototype to avoid an error. */
31438#ifdef __cplusplus
31439extern "C"
31440{
31441#endif
31442/* We use char because int might match the return type of a gcc2
31443 builtin and then its argument prototype would still apply. */
31444char $ac_func ();
31445/* The GNU C library defines this for functions which it implements
31446 to always fail with ENOSYS. Some functions are actually named
31447 something starting with __ and the normal name is an alias. */
31448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31449choke me
31450#else
31451char (*f) () = $ac_func;
31452#endif
31453#ifdef __cplusplus
31454}
31455#endif
31456
31457int
31458main ()
31459{
31460return f != $ac_func;
31461 ;
31462 return 0;
31463}
31464_ACEOF
31465rm -f conftest.$ac_objext conftest$ac_exeext
31466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31467 (eval $ac_link) 2>conftest.er1
a848cd7e 31468 ac_status=$?
ac1cb8d3
VS
31469 grep -v '^ *+' conftest.er1 >conftest.err
31470 rm -f conftest.er1
31471 cat conftest.err >&5
a848cd7e
SC
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); } &&
c228d3a4
RN
31474 { ac_try='test -z "$ac_c_werror_flag"
31475 || test ! -s conftest.err'
ac1cb8d3
VS
31476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31477 (eval $ac_try) 2>&5
31478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; } &&
31481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31483 (eval $ac_try) 2>&5
31484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; }; then
31487 eval "$as_ac_var=yes"
31488else
31489 echo "$as_me: failed program was:" >&5
31490sed 's/^/| /' conftest.$ac_ext >&5
31491
31492eval "$as_ac_var=no"
31493fi
ac1cb8d3
VS
31494rm -f conftest.err conftest.$ac_objext \
31495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31496fi
31497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31499if test `eval echo '${'$as_ac_var'}'` = yes; then
31500 cat >>confdefs.h <<_ACEOF
31501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31502_ACEOF
31503 cat >>confdefs.h <<\_ACEOF
31504#define HAVE_INET_ATON 1
31505_ACEOF
31506
31507else
31508
31509 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31510echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31511echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31512if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31513 echo $ECHO_N "(cached) $ECHO_C" >&6
31514else
31515 ac_check_lib_save_LIBS=$LIBS
31516LIBS="-l$INET_LINK $LIBS"
31517cat >conftest.$ac_ext <<_ACEOF
31518/* confdefs.h. */
31519_ACEOF
31520cat confdefs.h >>conftest.$ac_ext
31521cat >>conftest.$ac_ext <<_ACEOF
31522/* end confdefs.h. */
31523
31524/* Override any gcc2 internal prototype to avoid an error. */
31525#ifdef __cplusplus
31526extern "C"
31527#endif
31528/* We use char because int might match the return type of a gcc2
31529 builtin and then its argument prototype would still apply. */
31530char inet_aton ();
31531int
31532main ()
31533{
31534inet_aton ();
31535 ;
31536 return 0;
31537}
31538_ACEOF
31539rm -f conftest.$ac_objext conftest$ac_exeext
31540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31541 (eval $ac_link) 2>conftest.er1
a848cd7e 31542 ac_status=$?
ac1cb8d3
VS
31543 grep -v '^ *+' conftest.er1 >conftest.err
31544 rm -f conftest.er1
31545 cat conftest.err >&5
a848cd7e
SC
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
c228d3a4
RN
31548 { ac_try='test -z "$ac_c_werror_flag"
31549 || test ! -s conftest.err'
ac1cb8d3
VS
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; } &&
31555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 eval "$as_ac_Lib=yes"
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566eval "$as_ac_Lib=no"
31567fi
ac1cb8d3
VS
31568rm -f conftest.err conftest.$ac_objext \
31569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31570LIBS=$ac_check_lib_save_LIBS
31571fi
31572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31573echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31574if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31575 cat >>confdefs.h <<\_ACEOF
31576#define HAVE_INET_ATON 1
31577_ACEOF
31578
31579fi
31580
31581
31582fi
31583done
31584
31585
31586if test "x$INET_LINK" != "x"; then
31587 cat >>confdefs.h <<\_ACEOF
31588#define HAVE_INET_ADDR 1
31589_ACEOF
31590
31591 INET_LINK=" -l$INET_LINK"
31592fi
31593
31594fi
31595
31596
31597
31598EXTRALIBS_ESD=
31599echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31600echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31601if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31603else
31604 ac_check_lib_save_LIBS=$LIBS
31605LIBS="-lesd $LIBS"
31606cat >conftest.$ac_ext <<_ACEOF
31607/* confdefs.h. */
31608_ACEOF
31609cat confdefs.h >>conftest.$ac_ext
31610cat >>conftest.$ac_ext <<_ACEOF
31611/* end confdefs.h. */
31612
31613/* Override any gcc2 internal prototype to avoid an error. */
31614#ifdef __cplusplus
31615extern "C"
31616#endif
31617/* We use char because int might match the return type of a gcc2
31618 builtin and then its argument prototype would still apply. */
31619char esd_close ();
31620int
31621main ()
31622{
31623esd_close ();
31624 ;
31625 return 0;
31626}
31627_ACEOF
31628rm -f conftest.$ac_objext conftest$ac_exeext
31629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31630 (eval $ac_link) 2>conftest.er1
a848cd7e 31631 ac_status=$?
ac1cb8d3
VS
31632 grep -v '^ *+' conftest.er1 >conftest.err
31633 rm -f conftest.er1
31634 cat conftest.err >&5
a848cd7e
SC
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); } &&
c228d3a4
RN
31637 { ac_try='test -z "$ac_c_werror_flag"
31638 || test ! -s conftest.err'
ac1cb8d3
VS
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31641 ac_status=$?
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; } &&
31644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646 (eval $ac_try) 2>&5
31647 ac_status=$?
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); }; }; then
31650 ac_cv_lib_esd_esd_close=yes
31651else
31652 echo "$as_me: failed program was:" >&5
31653sed 's/^/| /' conftest.$ac_ext >&5
31654
31655ac_cv_lib_esd_esd_close=no
31656fi
ac1cb8d3
VS
31657rm -f conftest.err conftest.$ac_objext \
31658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31659LIBS=$ac_check_lib_save_LIBS
31660fi
31661echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31662echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31663if test $ac_cv_lib_esd_esd_close = yes; then
31664
31665
31666for ac_header in esd.h
31667do
31668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31669if eval "test \"\${$as_ac_Header+set}\" = set"; then
31670 echo "$as_me:$LINENO: checking for $ac_header" >&5
31671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31672if eval "test \"\${$as_ac_Header+set}\" = set"; then
31673 echo $ECHO_N "(cached) $ECHO_C" >&6
31674fi
31675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31677else
31678 # Is the header compilable?
31679echo "$as_me:$LINENO: checking $ac_header usability" >&5
31680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31681cat >conftest.$ac_ext <<_ACEOF
31682/* confdefs.h. */
31683_ACEOF
31684cat confdefs.h >>conftest.$ac_ext
31685cat >>conftest.$ac_ext <<_ACEOF
31686/* end confdefs.h. */
31687$ac_includes_default
31688#include <$ac_header>
31689_ACEOF
31690rm -f conftest.$ac_objext
31691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31692 (eval $ac_compile) 2>conftest.er1
a848cd7e 31693 ac_status=$?
ac1cb8d3
VS
31694 grep -v '^ *+' conftest.er1 >conftest.err
31695 rm -f conftest.er1
31696 cat conftest.err >&5
a848cd7e
SC
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } &&
c228d3a4
RN
31699 { ac_try='test -z "$ac_c_werror_flag"
31700 || test ! -s conftest.err'
ac1cb8d3
VS
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; }; then
31712 ac_header_compiler=yes
31713else
31714 echo "$as_me: failed program was:" >&5
31715sed 's/^/| /' conftest.$ac_ext >&5
31716
31717ac_header_compiler=no
31718fi
ac1cb8d3 31719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31721echo "${ECHO_T}$ac_header_compiler" >&6
31722
31723# Is the header present?
31724echo "$as_me:$LINENO: checking $ac_header presence" >&5
31725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31726cat >conftest.$ac_ext <<_ACEOF
31727/* confdefs.h. */
31728_ACEOF
31729cat confdefs.h >>conftest.$ac_ext
31730cat >>conftest.$ac_ext <<_ACEOF
31731/* end confdefs.h. */
31732#include <$ac_header>
31733_ACEOF
31734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31736 ac_status=$?
31737 grep -v '^ *+' conftest.er1 >conftest.err
31738 rm -f conftest.er1
31739 cat conftest.err >&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } >/dev/null; then
31742 if test -s conftest.err; then
31743 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31745 else
31746 ac_cpp_err=
31747 fi
31748else
31749 ac_cpp_err=yes
31750fi
31751if test -z "$ac_cpp_err"; then
31752 ac_header_preproc=yes
31753else
31754 echo "$as_me: failed program was:" >&5
31755sed 's/^/| /' conftest.$ac_ext >&5
31756
31757 ac_header_preproc=no
31758fi
31759rm -f conftest.err conftest.$ac_ext
31760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31761echo "${ECHO_T}$ac_header_preproc" >&6
31762
31763# So? What about this header?
ac1cb8d3
VS
31764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31765 yes:no: )
a848cd7e
SC
31766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31770 ac_header_preproc=yes
a848cd7e 31771 ;;
ac1cb8d3 31772 no:yes:* )
a848cd7e
SC
31773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31780echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31785 (
31786 cat <<\_ASBOX
ac1cb8d3
VS
31787## ----------------------------------------- ##
31788## Report this to wx-dev@lists.wxwidgets.org ##
31789## ----------------------------------------- ##
a848cd7e
SC
31790_ASBOX
31791 ) |
31792 sed "s/^/$as_me: WARNING: /" >&2
31793 ;;
31794esac
31795echo "$as_me:$LINENO: checking for $ac_header" >&5
31796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31797if eval "test \"\${$as_ac_Header+set}\" = set"; then
31798 echo $ECHO_N "(cached) $ECHO_C" >&6
31799else
ac1cb8d3 31800 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31801fi
31802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31804
31805fi
31806if test `eval echo '${'$as_ac_Header'}'` = yes; then
31807 cat >>confdefs.h <<_ACEOF
31808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31809_ACEOF
31810
31811 EXTRALIBS_ESD="-lesd"
31812
31813fi
31814
31815done
31816
31817
31818fi
31819
31820
31821
31822echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31823echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31824cat >conftest.$ac_ext <<_ACEOF
31825/* confdefs.h. */
31826_ACEOF
31827cat confdefs.h >>conftest.$ac_ext
31828cat >>conftest.$ac_ext <<_ACEOF
31829/* end confdefs.h. */
31830#ifdef __linux__
31831 #include <linux/cdrom.h>
31832 #else
31833 /* For Solaris */
31834 #include <sys/cdio.h>
31835 #endif
31836
31837int
31838main ()
31839{
31840struct cdrom_tocentry entry, old_entry;
31841 ;
31842 return 0;
31843}
31844_ACEOF
31845rm -f conftest.$ac_objext
31846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31847 (eval $ac_compile) 2>conftest.er1
a848cd7e 31848 ac_status=$?
ac1cb8d3
VS
31849 grep -v '^ *+' conftest.er1 >conftest.err
31850 rm -f conftest.er1
31851 cat conftest.err >&5
a848cd7e
SC
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); } &&
c228d3a4
RN
31854 { ac_try='test -z "$ac_c_werror_flag"
31855 || test ! -s conftest.err'
ac1cb8d3
VS
31856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31857 (eval $ac_try) 2>&5
31858 ac_status=$?
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; } &&
31861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31863 (eval $ac_try) 2>&5
31864 ac_status=$?
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); }; }; then
31867 echo "$as_me:$LINENO: result: yes" >&5
31868echo "${ECHO_T}yes" >&6
31869 cat >>confdefs.h <<\_ACEOF
31870#define HAVE_KNOWN_CDROM_INTERFACE 1
31871_ACEOF
31872
31873else
31874 echo "$as_me: failed program was:" >&5
31875sed 's/^/| /' conftest.$ac_ext >&5
31876
31877echo "$as_me:$LINENO: result: no" >&5
31878echo "${ECHO_T}no" >&6
31879fi
ac1cb8d3 31880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31881
31882
31883cat >confcache <<\_ACEOF
31884# This file is a shell script that caches the results of configure
31885# tests run on this system so they can be shared between configure
31886# scripts and configure runs, see configure's option --config-cache.
31887# It is not useful on other systems. If it contains results you don't
31888# want to keep, you may remove or edit it.
31889#
31890# config.status only pays attention to the cache file if you give it
31891# the --recheck option to rerun configure.
31892#
31893# `ac_cv_env_foo' variables (set or unset) will be overridden when
31894# loading this file, other *unset* `ac_cv_foo' will be assigned the
31895# following values.
31896
31897_ACEOF
31898
31899# The following way of writing the cache mishandles newlines in values,
31900# but we know of no workaround that is simple, portable, and efficient.
31901# So, don't put newlines in cache variables' values.
31902# Ultrix sh set writes to stderr and can't be redirected directly,
31903# and sets the high bit in the cache file unless we assign to the vars.
31904{
31905 (set) 2>&1 |
31906 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31907 *ac_space=\ *)
31908 # `set' does not quote correctly, so add quotes (double-quote
31909 # substitution turns \\\\ into \\, and sed turns \\ into \).
31910 sed -n \
ac1cb8d3
VS
31911 "s/'/'\\\\''/g;
31912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31913 ;;
31914 *)
31915 # `set' quotes correctly as required by POSIX, so do not add quotes.
31916 sed -n \
ac1cb8d3 31917 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31918 ;;
31919 esac;
31920} |
31921 sed '
31922 t clear
31923 : clear
31924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31925 t end
31926 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31927 : end' >>confcache
31928if diff $cache_file confcache >/dev/null 2>&1; then :; else
31929 if test -w $cache_file; then
31930 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31931 cat confcache >$cache_file
31932 else
31933 echo "not updating unwritable cache $cache_file"
31934 fi
31935fi
31936rm -f confcache
31937
31938
31939CPP_MT_FLAG=
31940if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31941
31942
31943 THREADS_LINK=
31944 THREADS_CFLAGS=
31945
31946 if test "$wxUSE_THREADS" = "yes" ; then
31947 if test "$USE_BEOS" = 1; then
31948 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31949echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31950 wxUSE_THREADS="no"
31951 fi
31952 fi
31953
31954 if test "$wxUSE_THREADS" = "yes" ; then
31955
31956
31957 THREAD_OPTS="-pthread"
31958 case "${host}" in
31959 *-*-solaris2* | *-*-sunos4* )
31960 if test "x$GCC" = "xyes"; then
31961 THREAD_OPTS="-pthreads $THREAD_OPTS"
31962 else
31963 THREAD_OPTS="-mt $THREAD_OPTS"
31964 fi
31965 ;;
31966 *-*-freebsd*)
31967 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31968 ;;
31969 *-*-darwin* | *-*-cygwin* )
31970 THREAD_OPTS=""
31971 ;;
31972 *-*-aix*)
31973 THREAD_OPTS="pthreads"
31974 ;;
31975 *-hp-hpux* )
31976 if test "x$GCC" != "xyes"; then
31977 THREAD_OPTS=""
31978 fi
31979 ;;
31980
31981 *-*-irix* )
31982 if test "x$GCC" = "xyes"; then
31983 THREAD_OPTS=""
31984 fi
31985 ;;
31986
31987 *-*-*UnixWare*)
31988 if test "x$GCC" != "xyes"; then
31989 THREAD_OPTS="-Ethread"
31990 fi
31991 ;;
31992 esac
31993
31994 THREAD_OPTS="$THREAD_OPTS pthread none"
31995
31996 THREADS_OK=no
31997 for flag in $THREAD_OPTS; do
31998 case $flag in
31999 none)
32000 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32001echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32002 ;;
32003
32004 -*)
32005 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32006echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32007 THREADS_CFLAGS="$flag"
32008 ;;
32009
32010 *)
32011 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32012echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32013 THREADS_LINK="-l$flag"
32014 ;;
32015 esac
32016
32017 save_LIBS="$LIBS"
32018 save_CFLAGS="$CFLAGS"
32019 LIBS="$THREADS_LINK $LIBS"
32020 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32021
32022 cat >conftest.$ac_ext <<_ACEOF
32023/* confdefs.h. */
32024_ACEOF
32025cat confdefs.h >>conftest.$ac_ext
32026cat >>conftest.$ac_ext <<_ACEOF
32027/* end confdefs.h. */
32028#include <pthread.h>
32029int
32030main ()
32031{
32032pthread_create(0,0,0,0);
32033 ;
32034 return 0;
32035}
32036_ACEOF
32037rm -f conftest.$ac_objext conftest$ac_exeext
32038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32039 (eval $ac_link) 2>conftest.er1
a848cd7e 32040 ac_status=$?
ac1cb8d3
VS
32041 grep -v '^ *+' conftest.er1 >conftest.err
32042 rm -f conftest.er1
32043 cat conftest.err >&5
a848cd7e
SC
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); } &&
c228d3a4
RN
32046 { ac_try='test -z "$ac_c_werror_flag"
32047 || test ! -s conftest.err'
ac1cb8d3
VS
32048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32049 (eval $ac_try) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; } &&
32053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32055 (eval $ac_try) 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
32059 THREADS_OK=yes
32060else
32061 echo "$as_me: failed program was:" >&5
32062sed 's/^/| /' conftest.$ac_ext >&5
32063
32064fi
ac1cb8d3
VS
32065rm -f conftest.err conftest.$ac_objext \
32066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32067
32068 LIBS="$save_LIBS"
32069 CFLAGS="$save_CFLAGS"
32070
32071 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32072echo "${ECHO_T}$THREADS_OK" >&6
32073 if test "x$THREADS_OK" = "xyes"; then
32074 break;
32075 fi
32076
32077 THREADS_LINK=""
32078 THREADS_CFLAGS=""
32079 done
32080
32081 if test "x$THREADS_OK" != "xyes"; then
32082 wxUSE_THREADS=no
32083 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32084echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32085 else
32086 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32087 LIBS="$THREADS_LINK $LIBS"
32088
32089 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32090echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32091 flag=no
32092 case "${host}" in
32093 *-aix*)
32094 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32095 flag="-D_THREAD_SAFE"
32096 ;;
32097 *-freebsd*)
32098 flag="-D_THREAD_SAFE"
32099 ;;
32100 *-hp-hpux* )
32101 flag="-D_REENTRANT"
32102 if test "x$GCC" != "xyes"; then
32103 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32104
32105 LIBS="$LIBS -lcma"
a848cd7e
SC
32106 fi
32107 ;;
32108 *solaris* | alpha*-osf*)
32109 flag="-D_REENTRANT"
32110 ;;
32111 esac
32112 echo "$as_me:$LINENO: result: ${flag}" >&5
32113echo "${ECHO_T}${flag}" >&6
32114 if test "x$flag" != xno; then
32115 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32116 fi
32117
32118 if test "x$THREADS_CFLAGS" != "x"; then
32119 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32120 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32121 fi
32122 fi
32123 fi
32124
32125 if test "$wxUSE_THREADS" = "yes" ; then
32126
32127for ac_func in thr_setconcurrency
32128do
32129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32130echo "$as_me:$LINENO: checking for $ac_func" >&5
32131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32132if eval "test \"\${$as_ac_var+set}\" = set"; then
32133 echo $ECHO_N "(cached) $ECHO_C" >&6
32134else
32135 cat >conftest.$ac_ext <<_ACEOF
32136/* confdefs.h. */
32137_ACEOF
32138cat confdefs.h >>conftest.$ac_ext
32139cat >>conftest.$ac_ext <<_ACEOF
32140/* end confdefs.h. */
ac1cb8d3
VS
32141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32143#define $ac_func innocuous_$ac_func
32144
a848cd7e
SC
32145/* System header to define __stub macros and hopefully few prototypes,
32146 which can conflict with char $ac_func (); below.
32147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32148 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32149
a848cd7e
SC
32150#ifdef __STDC__
32151# include <limits.h>
32152#else
32153# include <assert.h>
32154#endif
ac1cb8d3
VS
32155
32156#undef $ac_func
32157
a848cd7e
SC
32158/* Override any gcc2 internal prototype to avoid an error. */
32159#ifdef __cplusplus
32160extern "C"
32161{
32162#endif
32163/* We use char because int might match the return type of a gcc2
32164 builtin and then its argument prototype would still apply. */
32165char $ac_func ();
32166/* The GNU C library defines this for functions which it implements
32167 to always fail with ENOSYS. Some functions are actually named
32168 something starting with __ and the normal name is an alias. */
32169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32170choke me
32171#else
32172char (*f) () = $ac_func;
32173#endif
32174#ifdef __cplusplus
32175}
32176#endif
32177
32178int
32179main ()
32180{
32181return f != $ac_func;
32182 ;
32183 return 0;
32184}
32185_ACEOF
32186rm -f conftest.$ac_objext conftest$ac_exeext
32187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32188 (eval $ac_link) 2>conftest.er1
a848cd7e 32189 ac_status=$?
ac1cb8d3
VS
32190 grep -v '^ *+' conftest.er1 >conftest.err
32191 rm -f conftest.er1
32192 cat conftest.err >&5
a848cd7e
SC
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); } &&
c228d3a4
RN
32195 { ac_try='test -z "$ac_c_werror_flag"
32196 || test ! -s conftest.err'
ac1cb8d3
VS
32197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32198 (eval $ac_try) 2>&5
32199 ac_status=$?
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; } &&
32202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; }; then
32208 eval "$as_ac_var=yes"
32209else
32210 echo "$as_me: failed program was:" >&5
32211sed 's/^/| /' conftest.$ac_ext >&5
32212
32213eval "$as_ac_var=no"
32214fi
ac1cb8d3
VS
32215rm -f conftest.err conftest.$ac_objext \
32216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32217fi
32218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32220if test `eval echo '${'$as_ac_var'}'` = yes; then
32221 cat >>confdefs.h <<_ACEOF
32222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32223_ACEOF
32224
32225fi
32226done
32227
32228
32229
32230for ac_header in sched.h
32231do
32232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32233if eval "test \"\${$as_ac_Header+set}\" = set"; then
32234 echo "$as_me:$LINENO: checking for $ac_header" >&5
32235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32236if eval "test \"\${$as_ac_Header+set}\" = set"; then
32237 echo $ECHO_N "(cached) $ECHO_C" >&6
32238fi
32239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32241else
32242 # Is the header compilable?
32243echo "$as_me:$LINENO: checking $ac_header usability" >&5
32244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32245cat >conftest.$ac_ext <<_ACEOF
32246/* confdefs.h. */
32247_ACEOF
32248cat confdefs.h >>conftest.$ac_ext
32249cat >>conftest.$ac_ext <<_ACEOF
32250/* end confdefs.h. */
32251$ac_includes_default
32252#include <$ac_header>
32253_ACEOF
32254rm -f conftest.$ac_objext
32255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32256 (eval $ac_compile) 2>conftest.er1
a848cd7e 32257 ac_status=$?
ac1cb8d3
VS
32258 grep -v '^ *+' conftest.er1 >conftest.err
32259 rm -f conftest.er1
32260 cat conftest.err >&5
a848cd7e
SC
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); } &&
c228d3a4
RN
32263 { ac_try='test -z "$ac_c_werror_flag"
32264 || test ! -s conftest.err'
ac1cb8d3
VS
32265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266 (eval $ac_try) 2>&5
32267 ac_status=$?
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); }; } &&
32270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32272 (eval $ac_try) 2>&5
32273 ac_status=$?
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); }; }; then
32276 ac_header_compiler=yes
32277else
32278 echo "$as_me: failed program was:" >&5
32279sed 's/^/| /' conftest.$ac_ext >&5
32280
32281ac_header_compiler=no
32282fi
ac1cb8d3 32283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32285echo "${ECHO_T}$ac_header_compiler" >&6
32286
32287# Is the header present?
32288echo "$as_me:$LINENO: checking $ac_header presence" >&5
32289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32290cat >conftest.$ac_ext <<_ACEOF
32291/* confdefs.h. */
32292_ACEOF
32293cat confdefs.h >>conftest.$ac_ext
32294cat >>conftest.$ac_ext <<_ACEOF
32295/* end confdefs.h. */
32296#include <$ac_header>
32297_ACEOF
32298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32300 ac_status=$?
32301 grep -v '^ *+' conftest.er1 >conftest.err
32302 rm -f conftest.er1
32303 cat conftest.err >&5
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); } >/dev/null; then
32306 if test -s conftest.err; then
32307 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32309 else
32310 ac_cpp_err=
32311 fi
32312else
32313 ac_cpp_err=yes
32314fi
32315if test -z "$ac_cpp_err"; then
32316 ac_header_preproc=yes
32317else
32318 echo "$as_me: failed program was:" >&5
32319sed 's/^/| /' conftest.$ac_ext >&5
32320
32321 ac_header_preproc=no
32322fi
32323rm -f conftest.err conftest.$ac_ext
32324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32325echo "${ECHO_T}$ac_header_preproc" >&6
32326
32327# So? What about this header?
ac1cb8d3
VS
32328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32329 yes:no: )
a848cd7e
SC
32330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32334 ac_header_preproc=yes
a848cd7e 32335 ;;
ac1cb8d3 32336 no:yes:* )
a848cd7e
SC
32337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32349 (
32350 cat <<\_ASBOX
ac1cb8d3
VS
32351## ----------------------------------------- ##
32352## Report this to wx-dev@lists.wxwidgets.org ##
32353## ----------------------------------------- ##
a848cd7e
SC
32354_ASBOX
32355 ) |
32356 sed "s/^/$as_me: WARNING: /" >&2
32357 ;;
32358esac
32359echo "$as_me:$LINENO: checking for $ac_header" >&5
32360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32361if eval "test \"\${$as_ac_Header+set}\" = set"; then
32362 echo $ECHO_N "(cached) $ECHO_C" >&6
32363else
ac1cb8d3 32364 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32365fi
32366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32368
32369fi
32370if test `eval echo '${'$as_ac_Header'}'` = yes; then
32371 cat >>confdefs.h <<_ACEOF
32372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32373_ACEOF
32374
32375fi
32376
32377done
32378
32379 if test "$ac_cv_header_sched_h" = "yes"; then
32380 echo "$as_me:$LINENO: checking for sched_yield" >&5
32381echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32382if test "${ac_cv_func_sched_yield+set}" = set; then
32383 echo $ECHO_N "(cached) $ECHO_C" >&6
32384else
32385 cat >conftest.$ac_ext <<_ACEOF
32386/* confdefs.h. */
32387_ACEOF
32388cat confdefs.h >>conftest.$ac_ext
32389cat >>conftest.$ac_ext <<_ACEOF
32390/* end confdefs.h. */
ac1cb8d3
VS
32391/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32393#define sched_yield innocuous_sched_yield
32394
a848cd7e
SC
32395/* System header to define __stub macros and hopefully few prototypes,
32396 which can conflict with char sched_yield (); below.
32397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32398 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32399
a848cd7e
SC
32400#ifdef __STDC__
32401# include <limits.h>
32402#else
32403# include <assert.h>
32404#endif
ac1cb8d3
VS
32405
32406#undef sched_yield
32407
a848cd7e
SC
32408/* Override any gcc2 internal prototype to avoid an error. */
32409#ifdef __cplusplus
32410extern "C"
32411{
32412#endif
32413/* We use char because int might match the return type of a gcc2
32414 builtin and then its argument prototype would still apply. */
32415char sched_yield ();
32416/* The GNU C library defines this for functions which it implements
32417 to always fail with ENOSYS. Some functions are actually named
32418 something starting with __ and the normal name is an alias. */
32419#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32420choke me
32421#else
32422char (*f) () = sched_yield;
32423#endif
32424#ifdef __cplusplus
32425}
32426#endif
32427
32428int
32429main ()
32430{
32431return f != sched_yield;
32432 ;
32433 return 0;
32434}
32435_ACEOF
32436rm -f conftest.$ac_objext conftest$ac_exeext
32437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32438 (eval $ac_link) 2>conftest.er1
a848cd7e 32439 ac_status=$?
ac1cb8d3
VS
32440 grep -v '^ *+' conftest.er1 >conftest.err
32441 rm -f conftest.er1
32442 cat conftest.err >&5
a848cd7e
SC
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); } &&
c228d3a4
RN
32445 { ac_try='test -z "$ac_c_werror_flag"
32446 || test ! -s conftest.err'
ac1cb8d3
VS
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
32449 ac_status=$?
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; } &&
32452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32455 ac_status=$?
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; }; then
32458 ac_cv_func_sched_yield=yes
32459else
32460 echo "$as_me: failed program was:" >&5
32461sed 's/^/| /' conftest.$ac_ext >&5
32462
32463ac_cv_func_sched_yield=no
32464fi
ac1cb8d3
VS
32465rm -f conftest.err conftest.$ac_objext \
32466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32467fi
32468echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32469echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32470if test $ac_cv_func_sched_yield = yes; then
32471 cat >>confdefs.h <<\_ACEOF
32472#define HAVE_SCHED_YIELD 1
32473_ACEOF
32474
32475else
32476
32477 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32478echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32479if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32480 echo $ECHO_N "(cached) $ECHO_C" >&6
32481else
32482 ac_check_lib_save_LIBS=$LIBS
32483LIBS="-lposix4 $LIBS"
32484cat >conftest.$ac_ext <<_ACEOF
32485/* confdefs.h. */
32486_ACEOF
32487cat confdefs.h >>conftest.$ac_ext
32488cat >>conftest.$ac_ext <<_ACEOF
32489/* end confdefs.h. */
32490
32491/* Override any gcc2 internal prototype to avoid an error. */
32492#ifdef __cplusplus
32493extern "C"
32494#endif
32495/* We use char because int might match the return type of a gcc2
32496 builtin and then its argument prototype would still apply. */
32497char sched_yield ();
32498int
32499main ()
32500{
32501sched_yield ();
32502 ;
32503 return 0;
32504}
32505_ACEOF
32506rm -f conftest.$ac_objext conftest$ac_exeext
32507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32508 (eval $ac_link) 2>conftest.er1
a848cd7e 32509 ac_status=$?
ac1cb8d3
VS
32510 grep -v '^ *+' conftest.er1 >conftest.err
32511 rm -f conftest.er1
32512 cat conftest.err >&5
a848cd7e
SC
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); } &&
c228d3a4
RN
32515 { ac_try='test -z "$ac_c_werror_flag"
32516 || test ! -s conftest.err'
ac1cb8d3
VS
32517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518 (eval $ac_try) 2>&5
32519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; } &&
32522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524 (eval $ac_try) 2>&5
32525 ac_status=$?
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; }; then
32528 ac_cv_lib_posix4_sched_yield=yes
32529else
32530 echo "$as_me: failed program was:" >&5
32531sed 's/^/| /' conftest.$ac_ext >&5
32532
32533ac_cv_lib_posix4_sched_yield=no
32534fi
ac1cb8d3
VS
32535rm -f conftest.err conftest.$ac_objext \
32536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32537LIBS=$ac_check_lib_save_LIBS
32538fi
32539echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32540echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32541if test $ac_cv_lib_posix4_sched_yield = yes; then
32542 cat >>confdefs.h <<\_ACEOF
32543#define HAVE_SCHED_YIELD 1
32544_ACEOF
32545 POSIX4_LINK=" -lposix4"
32546else
32547 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32548echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32549
32550fi
32551
32552
32553
32554fi
32555
32556 fi
32557
32558 HAVE_PRIOR_FUNCS=0
32559 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32560echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32561if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32563else
32564 cat >conftest.$ac_ext <<_ACEOF
32565/* confdefs.h. */
32566_ACEOF
32567cat confdefs.h >>conftest.$ac_ext
32568cat >>conftest.$ac_ext <<_ACEOF
32569/* end confdefs.h. */
ac1cb8d3
VS
32570/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32572#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32573
a848cd7e
SC
32574/* System header to define __stub macros and hopefully few prototypes,
32575 which can conflict with char pthread_attr_getschedpolicy (); below.
32576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32577 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32578
a848cd7e
SC
32579#ifdef __STDC__
32580# include <limits.h>
32581#else
32582# include <assert.h>
32583#endif
ac1cb8d3
VS
32584
32585#undef pthread_attr_getschedpolicy
32586
a848cd7e
SC
32587/* Override any gcc2 internal prototype to avoid an error. */
32588#ifdef __cplusplus
32589extern "C"
32590{
32591#endif
32592/* We use char because int might match the return type of a gcc2
32593 builtin and then its argument prototype would still apply. */
32594char pthread_attr_getschedpolicy ();
32595/* The GNU C library defines this for functions which it implements
32596 to always fail with ENOSYS. Some functions are actually named
32597 something starting with __ and the normal name is an alias. */
32598#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32599choke me
32600#else
32601char (*f) () = pthread_attr_getschedpolicy;
32602#endif
32603#ifdef __cplusplus
32604}
32605#endif
32606
32607int
32608main ()
32609{
32610return f != pthread_attr_getschedpolicy;
32611 ;
32612 return 0;
32613}
32614_ACEOF
32615rm -f conftest.$ac_objext conftest$ac_exeext
32616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32617 (eval $ac_link) 2>conftest.er1
a848cd7e 32618 ac_status=$?
ac1cb8d3
VS
32619 grep -v '^ *+' conftest.er1 >conftest.err
32620 rm -f conftest.er1
32621 cat conftest.err >&5
a848cd7e
SC
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } &&
c228d3a4
RN
32624 { ac_try='test -z "$ac_c_werror_flag"
32625 || test ! -s conftest.err'
ac1cb8d3
VS
32626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627 (eval $ac_try) 2>&5
32628 ac_status=$?
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; } &&
32631 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; }; then
32637 ac_cv_func_pthread_attr_getschedpolicy=yes
32638else
32639 echo "$as_me: failed program was:" >&5
32640sed 's/^/| /' conftest.$ac_ext >&5
32641
32642ac_cv_func_pthread_attr_getschedpolicy=no
32643fi
ac1cb8d3
VS
32644rm -f conftest.err conftest.$ac_objext \
32645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32646fi
32647echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32648echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32649if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32650 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32651echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32652if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32653 echo $ECHO_N "(cached) $ECHO_C" >&6
32654else
32655 cat >conftest.$ac_ext <<_ACEOF
32656/* confdefs.h. */
32657_ACEOF
32658cat confdefs.h >>conftest.$ac_ext
32659cat >>conftest.$ac_ext <<_ACEOF
32660/* end confdefs.h. */
ac1cb8d3
VS
32661/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32663#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32664
a848cd7e
SC
32665/* System header to define __stub macros and hopefully few prototypes,
32666 which can conflict with char pthread_attr_setschedparam (); below.
32667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32668 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32669
a848cd7e
SC
32670#ifdef __STDC__
32671# include <limits.h>
32672#else
32673# include <assert.h>
32674#endif
ac1cb8d3
VS
32675
32676#undef pthread_attr_setschedparam
32677
a848cd7e
SC
32678/* Override any gcc2 internal prototype to avoid an error. */
32679#ifdef __cplusplus
32680extern "C"
32681{
32682#endif
32683/* We use char because int might match the return type of a gcc2
32684 builtin and then its argument prototype would still apply. */
32685char pthread_attr_setschedparam ();
32686/* The GNU C library defines this for functions which it implements
32687 to always fail with ENOSYS. Some functions are actually named
32688 something starting with __ and the normal name is an alias. */
32689#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32690choke me
32691#else
32692char (*f) () = pthread_attr_setschedparam;
32693#endif
32694#ifdef __cplusplus
32695}
32696#endif
32697
32698int
32699main ()
32700{
32701return f != pthread_attr_setschedparam;
32702 ;
32703 return 0;
32704}
32705_ACEOF
32706rm -f conftest.$ac_objext conftest$ac_exeext
32707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32708 (eval $ac_link) 2>conftest.er1
a848cd7e 32709 ac_status=$?
ac1cb8d3
VS
32710 grep -v '^ *+' conftest.er1 >conftest.err
32711 rm -f conftest.er1
32712 cat conftest.err >&5
a848cd7e
SC
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); } &&
c228d3a4
RN
32715 { ac_try='test -z "$ac_c_werror_flag"
32716 || test ! -s conftest.err'
ac1cb8d3
VS
32717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32718 (eval $ac_try) 2>&5
32719 ac_status=$?
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; } &&
32722 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724 (eval $ac_try) 2>&5
32725 ac_status=$?
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); }; }; then
32728 ac_cv_func_pthread_attr_setschedparam=yes
32729else
32730 echo "$as_me: failed program was:" >&5
32731sed 's/^/| /' conftest.$ac_ext >&5
32732
32733ac_cv_func_pthread_attr_setschedparam=no
32734fi
ac1cb8d3
VS
32735rm -f conftest.err conftest.$ac_objext \
32736 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32737fi
32738echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32739echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32740if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32741 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32742echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32743if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32744 echo $ECHO_N "(cached) $ECHO_C" >&6
32745else
32746 cat >conftest.$ac_ext <<_ACEOF
32747/* confdefs.h. */
32748_ACEOF
32749cat confdefs.h >>conftest.$ac_ext
32750cat >>conftest.$ac_ext <<_ACEOF
32751/* end confdefs.h. */
ac1cb8d3
VS
32752/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32754#define sched_get_priority_max innocuous_sched_get_priority_max
32755
a848cd7e
SC
32756/* System header to define __stub macros and hopefully few prototypes,
32757 which can conflict with char sched_get_priority_max (); below.
32758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32759 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32760
a848cd7e
SC
32761#ifdef __STDC__
32762# include <limits.h>
32763#else
32764# include <assert.h>
32765#endif
ac1cb8d3
VS
32766
32767#undef sched_get_priority_max
32768
a848cd7e
SC
32769/* Override any gcc2 internal prototype to avoid an error. */
32770#ifdef __cplusplus
32771extern "C"
32772{
32773#endif
32774/* We use char because int might match the return type of a gcc2
32775 builtin and then its argument prototype would still apply. */
32776char sched_get_priority_max ();
32777/* The GNU C library defines this for functions which it implements
32778 to always fail with ENOSYS. Some functions are actually named
32779 something starting with __ and the normal name is an alias. */
32780#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32781choke me
32782#else
32783char (*f) () = sched_get_priority_max;
32784#endif
32785#ifdef __cplusplus
32786}
32787#endif
32788
32789int
32790main ()
32791{
32792return f != sched_get_priority_max;
32793 ;
32794 return 0;
32795}
32796_ACEOF
32797rm -f conftest.$ac_objext conftest$ac_exeext
32798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32799 (eval $ac_link) 2>conftest.er1
a848cd7e 32800 ac_status=$?
ac1cb8d3
VS
32801 grep -v '^ *+' conftest.er1 >conftest.err
32802 rm -f conftest.er1
32803 cat conftest.err >&5
a848cd7e
SC
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } &&
c228d3a4
RN
32806 { ac_try='test -z "$ac_c_werror_flag"
32807 || test ! -s conftest.err'
ac1cb8d3
VS
32808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32809 (eval $ac_try) 2>&5
32810 ac_status=$?
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; } &&
32813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32815 (eval $ac_try) 2>&5
32816 ac_status=$?
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); }; }; then
32819 ac_cv_func_sched_get_priority_max=yes
32820else
32821 echo "$as_me: failed program was:" >&5
32822sed 's/^/| /' conftest.$ac_ext >&5
32823
32824ac_cv_func_sched_get_priority_max=no
32825fi
ac1cb8d3
VS
32826rm -f conftest.err conftest.$ac_objext \
32827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32828fi
32829echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32830echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32831if test $ac_cv_func_sched_get_priority_max = yes; then
32832 HAVE_PRIOR_FUNCS=1
32833else
32834 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32835echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32836if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32837 echo $ECHO_N "(cached) $ECHO_C" >&6
32838else
32839 ac_check_lib_save_LIBS=$LIBS
32840LIBS="-lposix4 $LIBS"
32841cat >conftest.$ac_ext <<_ACEOF
32842/* confdefs.h. */
32843_ACEOF
32844cat confdefs.h >>conftest.$ac_ext
32845cat >>conftest.$ac_ext <<_ACEOF
32846/* end confdefs.h. */
32847
32848/* Override any gcc2 internal prototype to avoid an error. */
32849#ifdef __cplusplus
32850extern "C"
32851#endif
32852/* We use char because int might match the return type of a gcc2
32853 builtin and then its argument prototype would still apply. */
32854char sched_get_priority_max ();
32855int
32856main ()
32857{
32858sched_get_priority_max ();
32859 ;
32860 return 0;
32861}
32862_ACEOF
32863rm -f conftest.$ac_objext conftest$ac_exeext
32864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32865 (eval $ac_link) 2>conftest.er1
a848cd7e 32866 ac_status=$?
ac1cb8d3
VS
32867 grep -v '^ *+' conftest.er1 >conftest.err
32868 rm -f conftest.er1
32869 cat conftest.err >&5
a848cd7e
SC
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); } &&
c228d3a4
RN
32872 { ac_try='test -z "$ac_c_werror_flag"
32873 || test ! -s conftest.err'
ac1cb8d3
VS
32874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32875 (eval $ac_try) 2>&5
32876 ac_status=$?
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; } &&
32879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32881 (eval $ac_try) 2>&5
32882 ac_status=$?
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); }; }; then
32885 ac_cv_lib_posix4_sched_get_priority_max=yes
32886else
32887 echo "$as_me: failed program was:" >&5
32888sed 's/^/| /' conftest.$ac_ext >&5
32889
32890ac_cv_lib_posix4_sched_get_priority_max=no
32891fi
ac1cb8d3
VS
32892rm -f conftest.err conftest.$ac_objext \
32893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32894LIBS=$ac_check_lib_save_LIBS
32895fi
32896echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32897echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32898if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32899
32900 HAVE_PRIOR_FUNCS=1
32901 POSIX4_LINK=" -lposix4"
32902
32903fi
32904
32905
32906fi
32907
32908
32909fi
32910
32911
32912fi
32913
32914
32915 if test "$HAVE_PRIOR_FUNCS" = 1; then
32916 cat >>confdefs.h <<\_ACEOF
32917#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32918_ACEOF
32919
32920 else
32921 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32922echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32923 fi
32924
32925 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32926echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32927if test "${ac_cv_func_pthread_cancel+set}" = set; then
32928 echo $ECHO_N "(cached) $ECHO_C" >&6
32929else
32930 cat >conftest.$ac_ext <<_ACEOF
32931/* confdefs.h. */
32932_ACEOF
32933cat confdefs.h >>conftest.$ac_ext
32934cat >>conftest.$ac_ext <<_ACEOF
32935/* end confdefs.h. */
ac1cb8d3
VS
32936/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32938#define pthread_cancel innocuous_pthread_cancel
32939
a848cd7e
SC
32940/* System header to define __stub macros and hopefully few prototypes,
32941 which can conflict with char pthread_cancel (); below.
32942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32943 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32944
a848cd7e
SC
32945#ifdef __STDC__
32946# include <limits.h>
32947#else
32948# include <assert.h>
32949#endif
ac1cb8d3
VS
32950
32951#undef pthread_cancel
32952
a848cd7e
SC
32953/* Override any gcc2 internal prototype to avoid an error. */
32954#ifdef __cplusplus
32955extern "C"
32956{
32957#endif
32958/* We use char because int might match the return type of a gcc2
32959 builtin and then its argument prototype would still apply. */
32960char pthread_cancel ();
32961/* The GNU C library defines this for functions which it implements
32962 to always fail with ENOSYS. Some functions are actually named
32963 something starting with __ and the normal name is an alias. */
32964#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32965choke me
32966#else
32967char (*f) () = pthread_cancel;
32968#endif
32969#ifdef __cplusplus
32970}
32971#endif
32972
32973int
32974main ()
32975{
32976return f != pthread_cancel;
32977 ;
32978 return 0;
32979}
32980_ACEOF
32981rm -f conftest.$ac_objext conftest$ac_exeext
32982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32983 (eval $ac_link) 2>conftest.er1
a848cd7e 32984 ac_status=$?
ac1cb8d3
VS
32985 grep -v '^ *+' conftest.er1 >conftest.err
32986 rm -f conftest.er1
32987 cat conftest.err >&5
a848cd7e
SC
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); } &&
c228d3a4
RN
32990 { ac_try='test -z "$ac_c_werror_flag"
32991 || test ! -s conftest.err'
ac1cb8d3
VS
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; } &&
32997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32999 (eval $ac_try) 2>&5
33000 ac_status=$?
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; }; then
33003 ac_cv_func_pthread_cancel=yes
33004else
33005 echo "$as_me: failed program was:" >&5
33006sed 's/^/| /' conftest.$ac_ext >&5
33007
33008ac_cv_func_pthread_cancel=no
33009fi
ac1cb8d3
VS
33010rm -f conftest.err conftest.$ac_objext \
33011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33012fi
33013echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33014echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33015if test $ac_cv_func_pthread_cancel = yes; then
33016 cat >>confdefs.h <<\_ACEOF
33017#define HAVE_PTHREAD_CANCEL 1
33018_ACEOF
33019
33020else
33021 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33022echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33023fi
33024
33025
33026
33027
33028 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33029echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33030if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33031 echo $ECHO_N "(cached) $ECHO_C" >&6
33032else
33033
33034 cat >conftest.$ac_ext <<_ACEOF
33035/* confdefs.h. */
33036_ACEOF
33037cat confdefs.h >>conftest.$ac_ext
33038cat >>conftest.$ac_ext <<_ACEOF
33039/* end confdefs.h. */
33040#include <pthread.h>
33041int
33042main ()
33043{
33044
33045 pthread_mutexattr_t attr;
33046 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33047
33048 ;
33049 return 0;
33050}
33051_ACEOF
33052rm -f conftest.$ac_objext
33053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33054 (eval $ac_compile) 2>conftest.er1
a848cd7e 33055 ac_status=$?
ac1cb8d3
VS
33056 grep -v '^ *+' conftest.er1 >conftest.err
33057 rm -f conftest.er1
33058 cat conftest.err >&5
a848cd7e
SC
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); } &&
c228d3a4
RN
33061 { ac_try='test -z "$ac_c_werror_flag"
33062 || test ! -s conftest.err'
ac1cb8d3
VS
33063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064 (eval $ac_try) 2>&5
33065 ac_status=$?
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; } &&
33068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33070 (eval $ac_try) 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
33074
33075 wx_cv_type_pthread_mutexattr_t=yes
33076
33077else
33078 echo "$as_me: failed program was:" >&5
33079sed 's/^/| /' conftest.$ac_ext >&5
33080
33081
33082 wx_cv_type_pthread_mutexattr_t=no
33083
33084
33085fi
ac1cb8d3 33086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33087
33088fi
33089echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33090echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33091
33092 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33093 cat >>confdefs.h <<\_ACEOF
33094#define HAVE_PTHREAD_MUTEXATTR_T 1
33095_ACEOF
33096
33097 else
33098 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33099echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33100if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33101 echo $ECHO_N "(cached) $ECHO_C" >&6
33102else
33103
33104 cat >conftest.$ac_ext <<_ACEOF
33105/* confdefs.h. */
33106_ACEOF
33107cat confdefs.h >>conftest.$ac_ext
33108cat >>conftest.$ac_ext <<_ACEOF
33109/* end confdefs.h. */
33110#include <pthread.h>
33111int
33112main ()
33113{
33114
33115 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33116
33117 ;
33118 return 0;
33119}
33120_ACEOF
33121rm -f conftest.$ac_objext
33122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33123 (eval $ac_compile) 2>conftest.er1
a848cd7e 33124 ac_status=$?
ac1cb8d3
VS
33125 grep -v '^ *+' conftest.er1 >conftest.err
33126 rm -f conftest.er1
33127 cat conftest.err >&5
a848cd7e
SC
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); } &&
c228d3a4
RN
33130 { ac_try='test -z "$ac_c_werror_flag"
33131 || test ! -s conftest.err'
ac1cb8d3
VS
33132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33133 (eval $ac_try) 2>&5
33134 ac_status=$?
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); }; } &&
33137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139 (eval $ac_try) 2>&5
33140 ac_status=$?
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
33143
33144 wx_cv_type_pthread_rec_mutex_init=yes
33145
33146else
33147 echo "$as_me: failed program was:" >&5
33148sed 's/^/| /' conftest.$ac_ext >&5
33149
33150
33151 wx_cv_type_pthread_rec_mutex_init=no
33152
33153
33154fi
ac1cb8d3 33155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33156
33157fi
33158echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33159echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33160 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33161 cat >>confdefs.h <<\_ACEOF
33162#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33163_ACEOF
33164
33165 else
33166 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33167echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33168 fi
33169 fi
33170 fi
33171
33172else
33173 if test "$wxUSE_THREADS" = "yes" ; then
33174 case "${host}" in
33175 *-*-mingw32* )
33176 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33177echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33178if test "${wx_cv_cflags_mthread+set}" = set; then
33179 echo $ECHO_N "(cached) $ECHO_C" >&6
33180else
33181
33182 CFLAGS_OLD="$CFLAGS"
33183 CFLAGS="$CFLAGS -mthreads"
33184 cat >conftest.$ac_ext <<_ACEOF
33185/* confdefs.h. */
33186_ACEOF
33187cat confdefs.h >>conftest.$ac_ext
33188cat >>conftest.$ac_ext <<_ACEOF
33189/* end confdefs.h. */
33190
33191int
33192main ()
33193{
33194
33195 ;
33196 return 0;
33197}
33198_ACEOF
33199rm -f conftest.$ac_objext
33200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33201 (eval $ac_compile) 2>conftest.er1
a848cd7e 33202 ac_status=$?
ac1cb8d3
VS
33203 grep -v '^ *+' conftest.er1 >conftest.err
33204 rm -f conftest.er1
33205 cat conftest.err >&5
a848cd7e
SC
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); } &&
c228d3a4
RN
33208 { ac_try='test -z "$ac_c_werror_flag"
33209 || test ! -s conftest.err'
ac1cb8d3
VS
33210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211 (eval $ac_try) 2>&5
33212 ac_status=$?
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); }; } &&
33215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33218 ac_status=$?
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; }; then
33221 wx_cv_cflags_mthread=yes
33222else
33223 echo "$as_me: failed program was:" >&5
33224sed 's/^/| /' conftest.$ac_ext >&5
33225
33226wx_cv_cflags_mthread=no
33227
33228fi
ac1cb8d3 33229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33230
33231
33232fi
33233echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33234echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33235
33236 if test "$wx_cv_cflags_mthread" = "yes"; then
33237 CXXFLAGS="$CXXFLAGS -mthreads"
33238 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33239 LDFLAGS="$LDFLAGS -mthreads"
33240 else
33241 CFLAGS="$CFLAGS_OLD"
33242 fi
33243 ;;
33244 *-pc-os2*emx )
33245 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33246 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33247 LDFLAGS="$LDFLAGS -Zmt"
33248 ;;
33249 esac
33250 fi
33251fi
33252
33253if test "$wxUSE_THREADS" = "yes"; then
33254 cat >>confdefs.h <<\_ACEOF
33255#define wxUSE_THREADS 1
33256_ACEOF
33257
33258
33259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33260else
33261 if test "$ac_cv_func_strtok_r" = "yes"; then
33262 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33263echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33264 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33265 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33266 echo "$as_me:$LINENO: result: yes" >&5
33267echo "${ECHO_T}yes" >&6
33268 else
33269 echo "$as_me:$LINENO: result: no" >&5
33270echo "${ECHO_T}no" >&6
33271 fi
33272 fi
33273fi
33274
33275if test "$WXGTK20" = 1 ; then
33276 cat >>confdefs.h <<_ACEOF
33277#define __WXGTK20__ $WXGTK20
33278_ACEOF
33279
33280 WXGTK12=1
33281fi
33282
33283if test "$WXGTK12" = 1 ; then
33284 cat >>confdefs.h <<_ACEOF
33285#define __WXGTK12__ $WXGTK12
33286_ACEOF
33287
33288fi
33289
33290if test "$WXGTK127" = 1 ; then
33291 cat >>confdefs.h <<_ACEOF
33292#define __WXGTK127__ $WXGTK127
33293_ACEOF
33294
33295fi
33296
33297if test "$WXGPE" = 1 ; then
33298 cat >>confdefs.h <<_ACEOF
33299#define __WXGPE__ $WXGPE
33300_ACEOF
33301
33302fi
33303
33304WXDEBUG=
33305
33306if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33307 WXDEBUG="-g"
33308 wxUSE_OPTIMISE=no
33309fi
33310
33311if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33312 wxUSE_DEBUG_INFO=yes
33313 WXDEBUG="-ggdb"
33314fi
33315
33316if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33317 cat >>confdefs.h <<\_ACEOF
33318#define WXDEBUG 1
33319_ACEOF
33320
33321 WXDEBUG_DEFINE="-D__WXDEBUG__"
33322else
33323 if test "$wxUSE_GTK" = 1 ; then
33324 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33325 fi
33326fi
33327
33328if test "$wxUSE_MEM_TRACING" = "yes" ; then
33329 cat >>confdefs.h <<\_ACEOF
33330#define wxUSE_MEMORY_TRACING 1
33331_ACEOF
33332
33333 cat >>confdefs.h <<\_ACEOF
33334#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33335_ACEOF
33336
33337 cat >>confdefs.h <<\_ACEOF
33338#define wxUSE_DEBUG_NEW_ALWAYS 1
33339_ACEOF
33340
33341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33342fi
33343
33344if test "$wxUSE_DMALLOC" = "yes" ; then
33345 DMALLOC_LIBS="-ldmalloc"
33346fi
33347
33348PROFILE=
33349if test "$wxUSE_PROFILE" = "yes" ; then
33350 PROFILE=" -pg"
33351fi
33352
33353CODE_GEN_FLAGS=
33354CODE_GEN_FLAGS_CXX=
33355if test "$GCC" = "yes" ; then
33356 if test "$wxUSE_NO_RTTI" = "yes" ; then
33357 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33358 fi
33359 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33360 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33361 fi
33362 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33363 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33364 fi
33365
33366 case "${host}" in
33367 powerpc*-*-aix* )
33368 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33369 ;;
33370 *-hppa* )
33371 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33372 ;;
33373 esac
33374fi
33375
33376OPTIMISE=
33377if test "$wxUSE_OPTIMISE" = "no" ; then
33378 if test "$GCC" = yes ; then
33379 OPTIMISE="-O0"
33380 fi
33381else
33382 if test "$GCC" = yes ; then
33383 OPTIMISE="-O2"
33384
33385 case "${host}" in
33386 i586-*-*|i686-*-* )
33387 OPTIMISE="${OPTIMISE} "
33388 ;;
33389 esac
33390 else
33391 OPTIMISE="-O"
33392 fi
33393fi
33394
33395
33396if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33397 cat >>confdefs.h <<\_ACEOF
33398#define WXWIN_COMPATIBILITY_2_2 1
33399_ACEOF
33400
33401
33402 WXWIN_COMPATIBILITY_2_4="yes"
33403fi
33404
33405if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33406 cat >>confdefs.h <<\_ACEOF
33407#define WXWIN_COMPATIBILITY_2_4 1
33408_ACEOF
33409
33410fi
33411
33412
33413if test "$wxUSE_GUI" = "yes"; then
33414 cat >>confdefs.h <<\_ACEOF
33415#define wxUSE_GUI 1
33416_ACEOF
33417
33418
33419 else
33420 cat >>confdefs.h <<\_ACEOF
33421#define wxUSE_NOGUI 1
33422_ACEOF
33423
33424fi
33425
33426
33427if test "$wxUSE_UNIX" = "yes"; then
33428 cat >>confdefs.h <<\_ACEOF
33429#define wxUSE_UNIX 1
33430_ACEOF
33431
33432fi
33433
33434
33435if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33436
33437 HAVE_DL_FUNCS=0
33438 HAVE_SHL_FUNCS=0
33439 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33440 if test "$USE_DARWIN" = 1; then
33441 HAVE_DL_FUNCS=1
33442 else
33443
33444for ac_func in dlopen
33445do
33446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33447echo "$as_me:$LINENO: checking for $ac_func" >&5
33448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33449if eval "test \"\${$as_ac_var+set}\" = set"; then
33450 echo $ECHO_N "(cached) $ECHO_C" >&6
33451else
33452 cat >conftest.$ac_ext <<_ACEOF
33453/* confdefs.h. */
33454_ACEOF
33455cat confdefs.h >>conftest.$ac_ext
33456cat >>conftest.$ac_ext <<_ACEOF
33457/* end confdefs.h. */
ac1cb8d3
VS
33458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33460#define $ac_func innocuous_$ac_func
33461
a848cd7e
SC
33462/* System header to define __stub macros and hopefully few prototypes,
33463 which can conflict with char $ac_func (); below.
33464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33465 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33466
a848cd7e
SC
33467#ifdef __STDC__
33468# include <limits.h>
33469#else
33470# include <assert.h>
33471#endif
ac1cb8d3
VS
33472
33473#undef $ac_func
33474
a848cd7e
SC
33475/* Override any gcc2 internal prototype to avoid an error. */
33476#ifdef __cplusplus
33477extern "C"
33478{
33479#endif
33480/* We use char because int might match the return type of a gcc2
33481 builtin and then its argument prototype would still apply. */
33482char $ac_func ();
33483/* The GNU C library defines this for functions which it implements
33484 to always fail with ENOSYS. Some functions are actually named
33485 something starting with __ and the normal name is an alias. */
33486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33487choke me
33488#else
33489char (*f) () = $ac_func;
33490#endif
33491#ifdef __cplusplus
33492}
33493#endif
33494
33495int
33496main ()
33497{
33498return f != $ac_func;
33499 ;
33500 return 0;
33501}
33502_ACEOF
33503rm -f conftest.$ac_objext conftest$ac_exeext
33504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33505 (eval $ac_link) 2>conftest.er1
a848cd7e 33506 ac_status=$?
ac1cb8d3
VS
33507 grep -v '^ *+' conftest.er1 >conftest.err
33508 rm -f conftest.er1
33509 cat conftest.err >&5
a848cd7e
SC
33510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511 (exit $ac_status); } &&
c228d3a4
RN
33512 { ac_try='test -z "$ac_c_werror_flag"
33513 || test ! -s conftest.err'
ac1cb8d3
VS
33514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515 (eval $ac_try) 2>&5
33516 ac_status=$?
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; } &&
33519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; }; then
33525 eval "$as_ac_var=yes"
33526else
33527 echo "$as_me: failed program was:" >&5
33528sed 's/^/| /' conftest.$ac_ext >&5
33529
33530eval "$as_ac_var=no"
33531fi
ac1cb8d3
VS
33532rm -f conftest.err conftest.$ac_objext \
33533 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33534fi
33535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33537if test `eval echo '${'$as_ac_var'}'` = yes; then
33538 cat >>confdefs.h <<_ACEOF
33539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33540_ACEOF
33541
33542 cat >>confdefs.h <<\_ACEOF
33543#define HAVE_DLOPEN 1
33544_ACEOF
33545
33546 HAVE_DL_FUNCS=1
33547
33548else
33549
33550 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33551echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33552if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33553 echo $ECHO_N "(cached) $ECHO_C" >&6
33554else
33555 ac_check_lib_save_LIBS=$LIBS
33556LIBS="-ldl $LIBS"
33557cat >conftest.$ac_ext <<_ACEOF
33558/* confdefs.h. */
33559_ACEOF
33560cat confdefs.h >>conftest.$ac_ext
33561cat >>conftest.$ac_ext <<_ACEOF
33562/* end confdefs.h. */
33563
33564/* Override any gcc2 internal prototype to avoid an error. */
33565#ifdef __cplusplus
33566extern "C"
33567#endif
33568/* We use char because int might match the return type of a gcc2
33569 builtin and then its argument prototype would still apply. */
33570char dlopen ();
33571int
33572main ()
33573{
33574dlopen ();
33575 ;
33576 return 0;
33577}
33578_ACEOF
33579rm -f conftest.$ac_objext conftest$ac_exeext
33580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33581 (eval $ac_link) 2>conftest.er1
a848cd7e 33582 ac_status=$?
ac1cb8d3
VS
33583 grep -v '^ *+' conftest.er1 >conftest.err
33584 rm -f conftest.er1
33585 cat conftest.err >&5
a848cd7e
SC
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
c228d3a4
RN
33588 { ac_try='test -z "$ac_c_werror_flag"
33589 || test ! -s conftest.err'
ac1cb8d3
VS
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; } &&
33595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33597 (eval $ac_try) 2>&5
33598 ac_status=$?
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); }; }; then
33601 ac_cv_lib_dl_dlopen=yes
33602else
33603 echo "$as_me: failed program was:" >&5
33604sed 's/^/| /' conftest.$ac_ext >&5
33605
33606ac_cv_lib_dl_dlopen=no
33607fi
ac1cb8d3
VS
33608rm -f conftest.err conftest.$ac_objext \
33609 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33610LIBS=$ac_check_lib_save_LIBS
33611fi
33612echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33613echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33614if test $ac_cv_lib_dl_dlopen = yes; then
33615
33616 cat >>confdefs.h <<\_ACEOF
33617#define HAVE_DLOPEN 1
33618_ACEOF
33619
33620 HAVE_DL_FUNCS=1
33621 DL_LINK=" -ldl$DL_LINK"
33622
33623else
33624
33625
33626for ac_func in shl_load
33627do
33628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33629echo "$as_me:$LINENO: checking for $ac_func" >&5
33630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33631if eval "test \"\${$as_ac_var+set}\" = set"; then
33632 echo $ECHO_N "(cached) $ECHO_C" >&6
33633else
33634 cat >conftest.$ac_ext <<_ACEOF
33635/* confdefs.h. */
33636_ACEOF
33637cat confdefs.h >>conftest.$ac_ext
33638cat >>conftest.$ac_ext <<_ACEOF
33639/* end confdefs.h. */
ac1cb8d3
VS
33640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33642#define $ac_func innocuous_$ac_func
33643
a848cd7e
SC
33644/* System header to define __stub macros and hopefully few prototypes,
33645 which can conflict with char $ac_func (); below.
33646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33647 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33648
a848cd7e
SC
33649#ifdef __STDC__
33650# include <limits.h>
33651#else
33652# include <assert.h>
33653#endif
ac1cb8d3
VS
33654
33655#undef $ac_func
33656
a848cd7e
SC
33657/* Override any gcc2 internal prototype to avoid an error. */
33658#ifdef __cplusplus
33659extern "C"
33660{
33661#endif
33662/* We use char because int might match the return type of a gcc2
33663 builtin and then its argument prototype would still apply. */
33664char $ac_func ();
33665/* The GNU C library defines this for functions which it implements
33666 to always fail with ENOSYS. Some functions are actually named
33667 something starting with __ and the normal name is an alias. */
33668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33669choke me
33670#else
33671char (*f) () = $ac_func;
33672#endif
33673#ifdef __cplusplus
33674}
33675#endif
33676
33677int
33678main ()
33679{
33680return f != $ac_func;
33681 ;
33682 return 0;
33683}
33684_ACEOF
33685rm -f conftest.$ac_objext conftest$ac_exeext
33686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33687 (eval $ac_link) 2>conftest.er1
a848cd7e 33688 ac_status=$?
ac1cb8d3
VS
33689 grep -v '^ *+' conftest.er1 >conftest.err
33690 rm -f conftest.er1
33691 cat conftest.err >&5
a848cd7e
SC
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); } &&
c228d3a4
RN
33694 { ac_try='test -z "$ac_c_werror_flag"
33695 || test ! -s conftest.err'
ac1cb8d3
VS
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33698 ac_status=$?
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; } &&
33701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33704 ac_status=$?
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; }; then
33707 eval "$as_ac_var=yes"
33708else
33709 echo "$as_me: failed program was:" >&5
33710sed 's/^/| /' conftest.$ac_ext >&5
33711
33712eval "$as_ac_var=no"
33713fi
ac1cb8d3
VS
33714rm -f conftest.err conftest.$ac_objext \
33715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33716fi
33717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33719if test `eval echo '${'$as_ac_var'}'` = yes; then
33720 cat >>confdefs.h <<_ACEOF
33721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33722_ACEOF
33723
33724 cat >>confdefs.h <<\_ACEOF
33725#define HAVE_SHL_LOAD 1
33726_ACEOF
33727
33728 HAVE_SHL_FUNCS=1
33729
33730else
33731
33732 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33733echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33734if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33735 echo $ECHO_N "(cached) $ECHO_C" >&6
33736else
33737 ac_check_lib_save_LIBS=$LIBS
33738LIBS="-lshl_load $LIBS"
33739cat >conftest.$ac_ext <<_ACEOF
33740/* confdefs.h. */
33741_ACEOF
33742cat confdefs.h >>conftest.$ac_ext
33743cat >>conftest.$ac_ext <<_ACEOF
33744/* end confdefs.h. */
33745
33746/* Override any gcc2 internal prototype to avoid an error. */
33747#ifdef __cplusplus
33748extern "C"
33749#endif
33750/* We use char because int might match the return type of a gcc2
33751 builtin and then its argument prototype would still apply. */
33752char dld ();
33753int
33754main ()
33755{
33756dld ();
33757 ;
33758 return 0;
33759}
33760_ACEOF
33761rm -f conftest.$ac_objext conftest$ac_exeext
33762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33763 (eval $ac_link) 2>conftest.er1
a848cd7e 33764 ac_status=$?
ac1cb8d3
VS
33765 grep -v '^ *+' conftest.er1 >conftest.err
33766 rm -f conftest.er1
33767 cat conftest.err >&5
a848cd7e
SC
33768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); } &&
c228d3a4
RN
33770 { ac_try='test -z "$ac_c_werror_flag"
33771 || test ! -s conftest.err'
ac1cb8d3
VS
33772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773 (eval $ac_try) 2>&5
33774 ac_status=$?
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; } &&
33777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779 (eval $ac_try) 2>&5
33780 ac_status=$?
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); }; }; then
33783 ac_cv_lib_shl_load_dld=yes
33784else
33785 echo "$as_me: failed program was:" >&5
33786sed 's/^/| /' conftest.$ac_ext >&5
33787
33788ac_cv_lib_shl_load_dld=no
33789fi
ac1cb8d3
VS
33790rm -f conftest.err conftest.$ac_objext \
33791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33792LIBS=$ac_check_lib_save_LIBS
33793fi
33794echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33795echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33796if test $ac_cv_lib_shl_load_dld = yes; then
33797
33798 HAVE_SHL_FUNCS=1
33799 DL_LINK=" -ldld$DL_LINK"
33800
33801fi
33802
33803
33804fi
33805done
33806
33807
33808fi
33809
33810
33811fi
33812done
33813
33814
33815 if test "$HAVE_DL_FUNCS" = 1; then
33816
33817for ac_func in dlerror
33818do
33819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33820echo "$as_me:$LINENO: checking for $ac_func" >&5
33821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33822if eval "test \"\${$as_ac_var+set}\" = set"; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33824else
33825 cat >conftest.$ac_ext <<_ACEOF
33826/* confdefs.h. */
33827_ACEOF
33828cat confdefs.h >>conftest.$ac_ext
33829cat >>conftest.$ac_ext <<_ACEOF
33830/* end confdefs.h. */
ac1cb8d3
VS
33831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33833#define $ac_func innocuous_$ac_func
33834
a848cd7e
SC
33835/* System header to define __stub macros and hopefully few prototypes,
33836 which can conflict with char $ac_func (); below.
33837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33839
a848cd7e
SC
33840#ifdef __STDC__
33841# include <limits.h>
33842#else
33843# include <assert.h>
33844#endif
ac1cb8d3
VS
33845
33846#undef $ac_func
33847
a848cd7e
SC
33848/* Override any gcc2 internal prototype to avoid an error. */
33849#ifdef __cplusplus
33850extern "C"
33851{
33852#endif
33853/* We use char because int might match the return type of a gcc2
33854 builtin and then its argument prototype would still apply. */
33855char $ac_func ();
33856/* The GNU C library defines this for functions which it implements
33857 to always fail with ENOSYS. Some functions are actually named
33858 something starting with __ and the normal name is an alias. */
33859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33860choke me
33861#else
33862char (*f) () = $ac_func;
33863#endif
33864#ifdef __cplusplus
33865}
33866#endif
33867
33868int
33869main ()
33870{
33871return f != $ac_func;
33872 ;
33873 return 0;
33874}
33875_ACEOF
33876rm -f conftest.$ac_objext conftest$ac_exeext
33877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33878 (eval $ac_link) 2>conftest.er1
a848cd7e 33879 ac_status=$?
ac1cb8d3
VS
33880 grep -v '^ *+' conftest.er1 >conftest.err
33881 rm -f conftest.er1
33882 cat conftest.err >&5
a848cd7e
SC
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); } &&
c228d3a4
RN
33885 { ac_try='test -z "$ac_c_werror_flag"
33886 || test ! -s conftest.err'
ac1cb8d3
VS
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33889 ac_status=$?
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; } &&
33892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894 (eval $ac_try) 2>&5
33895 ac_status=$?
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); }; }; then
33898 eval "$as_ac_var=yes"
33899else
33900 echo "$as_me: failed program was:" >&5
33901sed 's/^/| /' conftest.$ac_ext >&5
33902
33903eval "$as_ac_var=no"
33904fi
ac1cb8d3
VS
33905rm -f conftest.err conftest.$ac_objext \
33906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33907fi
33908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33910if test `eval echo '${'$as_ac_var'}'` = yes; then
33911 cat >>confdefs.h <<_ACEOF
33912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33913_ACEOF
33914 cat >>confdefs.h <<\_ACEOF
33915#define HAVE_DLERROR 1
33916_ACEOF
33917
33918else
33919
33920 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33921echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33922if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33923 echo $ECHO_N "(cached) $ECHO_C" >&6
33924else
33925 ac_check_lib_save_LIBS=$LIBS
33926LIBS="-ldl $LIBS"
33927cat >conftest.$ac_ext <<_ACEOF
33928/* confdefs.h. */
33929_ACEOF
33930cat confdefs.h >>conftest.$ac_ext
33931cat >>conftest.$ac_ext <<_ACEOF
33932/* end confdefs.h. */
33933
33934/* Override any gcc2 internal prototype to avoid an error. */
33935#ifdef __cplusplus
33936extern "C"
33937#endif
33938/* We use char because int might match the return type of a gcc2
33939 builtin and then its argument prototype would still apply. */
33940char dlerror ();
33941int
33942main ()
33943{
33944dlerror ();
33945 ;
33946 return 0;
33947}
33948_ACEOF
33949rm -f conftest.$ac_objext conftest$ac_exeext
33950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33951 (eval $ac_link) 2>conftest.er1
a848cd7e 33952 ac_status=$?
ac1cb8d3
VS
33953 grep -v '^ *+' conftest.er1 >conftest.err
33954 rm -f conftest.er1
33955 cat conftest.err >&5
a848cd7e
SC
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); } &&
c228d3a4
RN
33958 { ac_try='test -z "$ac_c_werror_flag"
33959 || test ! -s conftest.err'
ac1cb8d3
VS
33960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961 (eval $ac_try) 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967 (eval $ac_try) 2>&5
33968 ac_status=$?
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); }; }; then
33971 ac_cv_lib_dl_dlerror=yes
33972else
33973 echo "$as_me: failed program was:" >&5
33974sed 's/^/| /' conftest.$ac_ext >&5
33975
33976ac_cv_lib_dl_dlerror=no
33977fi
ac1cb8d3
VS
33978rm -f conftest.err conftest.$ac_objext \
33979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33980LIBS=$ac_check_lib_save_LIBS
33981fi
33982echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33983echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33984if test $ac_cv_lib_dl_dlerror = yes; then
33985 cat >>confdefs.h <<\_ACEOF
33986#define HAVE_DLERROR 1
33987_ACEOF
33988
33989fi
33990
33991
33992
33993fi
33994done
33995
33996 fi
33997 fi
33998
33999 if test "$HAVE_DL_FUNCS" = 0; then
34000 if test "$HAVE_SHL_FUNCS" = 0; then
34001 if test "$USE_UNIX" = 1; then
34002 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34003echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34004 wxUSE_DYNAMIC_LOADER=no
34005 wxUSE_DYNLIB_CLASS=no
34006 else
34007 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34008echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34009 fi
34010 fi
34011 fi
34012 fi
34013fi
34014
34015if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34016 cat >>confdefs.h <<\_ACEOF
34017#define wxUSE_DYNAMIC_LOADER 1
34018_ACEOF
34019
34020fi
34021if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34022 cat >>confdefs.h <<\_ACEOF
34023#define wxUSE_DYNLIB_CLASS 1
34024_ACEOF
34025
34026fi
34027
34028
34029
34030if test "$wxUSE_PLUGINS" = "yes" ; then
34031 if test "$wxUSE_SHARED" = "no" ; then
34032 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34033echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34034 wxUSE_PLUGINS=no
34035 fi
34036 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34037 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34038echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34039 wxUSE_PLUGINS=no
34040 fi
34041 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34042 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34043echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34044 wxUSE_PLUGINS=no
34045 fi
34046 if test "$wxUSE_PLUGINS" = "yes" ; then
34047 cat >>confdefs.h <<\_ACEOF
34048#define wxUSE_PLUGINS 1
34049_ACEOF
34050
34051 fi
34052fi
34053
34054
34055if test "$wxUSE_STL" = "yes"; then
34056 cat >>confdefs.h <<\_ACEOF
34057#define wxUSE_STL 1
34058_ACEOF
34059
34060fi
34061
34062if test "$wxUSE_APPLE_IEEE" = "yes"; then
34063 cat >>confdefs.h <<\_ACEOF
34064#define wxUSE_APPLE_IEEE 1
34065_ACEOF
34066
34067fi
34068
34069if test "$wxUSE_TIMER" = "yes"; then
34070 cat >>confdefs.h <<\_ACEOF
34071#define wxUSE_TIMER 1
34072_ACEOF
34073
34074fi
34075
34076WITH_PLUGIN_SDL=0
34077if test "$wxUSE_SOUND" = "yes"; then
34078 if test "$USE_UNIX" = "1" ; then
34079
34080for ac_header in sys/soundcard.h
34081do
34082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34083if eval "test \"\${$as_ac_Header+set}\" = set"; then
34084 echo "$as_me:$LINENO: checking for $ac_header" >&5
34085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34086if eval "test \"\${$as_ac_Header+set}\" = set"; then
34087 echo $ECHO_N "(cached) $ECHO_C" >&6
34088fi
34089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34091else
34092 # Is the header compilable?
34093echo "$as_me:$LINENO: checking $ac_header usability" >&5
34094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34095cat >conftest.$ac_ext <<_ACEOF
34096/* confdefs.h. */
34097_ACEOF
34098cat confdefs.h >>conftest.$ac_ext
34099cat >>conftest.$ac_ext <<_ACEOF
34100/* end confdefs.h. */
34101$ac_includes_default
34102#include <$ac_header>
34103_ACEOF
34104rm -f conftest.$ac_objext
34105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34106 (eval $ac_compile) 2>conftest.er1
a848cd7e 34107 ac_status=$?
ac1cb8d3
VS
34108 grep -v '^ *+' conftest.er1 >conftest.err
34109 rm -f conftest.er1
34110 cat conftest.err >&5
a848cd7e
SC
34111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112 (exit $ac_status); } &&
c228d3a4
RN
34113 { ac_try='test -z "$ac_c_werror_flag"
34114 || test ! -s conftest.err'
ac1cb8d3
VS
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34117 ac_status=$?
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; } &&
34120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122 (eval $ac_try) 2>&5
34123 ac_status=$?
34124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125 (exit $ac_status); }; }; then
34126 ac_header_compiler=yes
34127else
34128 echo "$as_me: failed program was:" >&5
34129sed 's/^/| /' conftest.$ac_ext >&5
34130
34131ac_header_compiler=no
34132fi
ac1cb8d3 34133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34135echo "${ECHO_T}$ac_header_compiler" >&6
34136
34137# Is the header present?
34138echo "$as_me:$LINENO: checking $ac_header presence" >&5
34139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34140cat >conftest.$ac_ext <<_ACEOF
34141/* confdefs.h. */
34142_ACEOF
34143cat confdefs.h >>conftest.$ac_ext
34144cat >>conftest.$ac_ext <<_ACEOF
34145/* end confdefs.h. */
34146#include <$ac_header>
34147_ACEOF
34148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34150 ac_status=$?
34151 grep -v '^ *+' conftest.er1 >conftest.err
34152 rm -f conftest.er1
34153 cat conftest.err >&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); } >/dev/null; then
34156 if test -s conftest.err; then
34157 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34159 else
34160 ac_cpp_err=
34161 fi
34162else
34163 ac_cpp_err=yes
34164fi
34165if test -z "$ac_cpp_err"; then
34166 ac_header_preproc=yes
34167else
34168 echo "$as_me: failed program was:" >&5
34169sed 's/^/| /' conftest.$ac_ext >&5
34170
34171 ac_header_preproc=no
34172fi
34173rm -f conftest.err conftest.$ac_ext
34174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34175echo "${ECHO_T}$ac_header_preproc" >&6
34176
34177# So? What about this header?
ac1cb8d3
VS
34178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34179 yes:no: )
a848cd7e
SC
34180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34184 ac_header_preproc=yes
a848cd7e 34185 ;;
ac1cb8d3 34186 no:yes:* )
a848cd7e
SC
34187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34194echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34199 (
34200 cat <<\_ASBOX
ac1cb8d3
VS
34201## ----------------------------------------- ##
34202## Report this to wx-dev@lists.wxwidgets.org ##
34203## ----------------------------------------- ##
a848cd7e
SC
34204_ASBOX
34205 ) |
34206 sed "s/^/$as_me: WARNING: /" >&2
34207 ;;
34208esac
34209echo "$as_me:$LINENO: checking for $ac_header" >&5
34210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34211if eval "test \"\${$as_ac_Header+set}\" = set"; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34213else
ac1cb8d3 34214 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34215fi
34216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34218
34219fi
34220if test `eval echo '${'$as_ac_Header'}'` = yes; then
34221 cat >>confdefs.h <<_ACEOF
34222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34223_ACEOF
34224
34225fi
34226
34227done
34228
34229
34230 if test "$wxUSE_LIBSDL" != "no"; then
34231
34232# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34233if test "${with_sdl_prefix+set}" = set; then
34234 withval="$with_sdl_prefix"
34235 sdl_prefix="$withval"
34236else
34237 sdl_prefix=""
34238fi;
34239
34240# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34241if test "${with_sdl_exec_prefix+set}" = set; then
34242 withval="$with_sdl_exec_prefix"
34243 sdl_exec_prefix="$withval"
34244else
34245 sdl_exec_prefix=""
34246fi;
34247# Check whether --enable-sdltest or --disable-sdltest was given.
34248if test "${enable_sdltest+set}" = set; then
34249 enableval="$enable_sdltest"
34250
34251else
34252 enable_sdltest=yes
34253fi;
34254
34255 if test x$sdl_exec_prefix != x ; then
34256 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34257 if test x${SDL_CONFIG+set} != xset ; then
34258 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34259 fi
34260 fi
34261 if test x$sdl_prefix != x ; then
34262 sdl_args="$sdl_args --prefix=$sdl_prefix"
34263 if test x${SDL_CONFIG+set} != xset ; then
34264 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34265 fi
34266 fi
34267
34268
34269 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34270 # Extract the first word of "sdl-config", so it can be a program name with args.
34271set dummy sdl-config; ac_word=$2
34272echo "$as_me:$LINENO: checking for $ac_word" >&5
34273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34274if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34275 echo $ECHO_N "(cached) $ECHO_C" >&6
34276else
34277 case $SDL_CONFIG in
34278 [\\/]* | ?:[\\/]*)
34279 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34280 ;;
34281 *)
34282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34283for as_dir in $PATH
34284do
34285 IFS=$as_save_IFS
34286 test -z "$as_dir" && as_dir=.
34287 for ac_exec_ext in '' $ac_executable_extensions; do
34288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34289 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34291 break 2
34292 fi
34293done
34294done
34295
34296 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34297 ;;
34298esac
34299fi
34300SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34301
34302if test -n "$SDL_CONFIG"; then
34303 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34304echo "${ECHO_T}$SDL_CONFIG" >&6
34305else
34306 echo "$as_me:$LINENO: result: no" >&5
34307echo "${ECHO_T}no" >&6
34308fi
34309
34310 min_sdl_version=1.2.0
34311 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34312echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34313 no_sdl=""
34314 if test "$SDL_CONFIG" = "no" ; then
34315 no_sdl=yes
34316 else
34317 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34318 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34319
34320 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34321 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34322 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34323 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34324 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34325 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34326 if test "x$enable_sdltest" = "xyes" ; then
34327 ac_save_CFLAGS="$CFLAGS"
34328 ac_save_LIBS="$LIBS"
34329 CFLAGS="$CFLAGS $SDL_CFLAGS"
34330 LIBS="$LIBS $SDL_LIBS"
34331 rm -f conf.sdltest
34332 if test "$cross_compiling" = yes; then
34333 echo $ac_n "cross compiling; assumed OK... $ac_c"
34334else
34335 cat >conftest.$ac_ext <<_ACEOF
34336/* confdefs.h. */
34337_ACEOF
34338cat confdefs.h >>conftest.$ac_ext
34339cat >>conftest.$ac_ext <<_ACEOF
34340/* end confdefs.h. */
34341
34342#include <stdio.h>
34343#include <stdlib.h>
34344#include <string.h>
34345#include "SDL.h"
34346
34347char*
34348my_strdup (char *str)
34349{
34350 char *new_str;
34351
34352 if (str)
34353 {
34354 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34355 strcpy (new_str, str);
34356 }
34357 else
34358 new_str = NULL;
34359
34360 return new_str;
34361}
34362
34363int main (int argc, char *argv[])
34364{
34365 int major, minor, micro;
34366 char *tmp_version;
34367
34368 /* This hangs on some systems (?)
34369 system ("touch conf.sdltest");
34370 */
34371 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34372
34373 /* HP/UX 9 (%@#!) writes to sscanf strings */
34374 tmp_version = my_strdup("$min_sdl_version");
34375 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34376 printf("%s, bad version string\n", "$min_sdl_version");
34377 exit(1);
34378 }
34379
34380 if (($sdl_major_version > major) ||
34381 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34382 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34383 {
34384 return 0;
34385 }
34386 else
34387 {
34388 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34389 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34390 printf("*** best to upgrade to the required version.\n");
34391 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34392 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34393 printf("*** config.cache before re-running configure\n");
34394 return 1;
34395 }
34396}
34397
34398
34399_ACEOF
34400rm -f conftest$ac_exeext
34401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34402 (eval $ac_link) 2>&5
34403 ac_status=$?
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407 (eval $ac_try) 2>&5
34408 ac_status=$?
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; }; then
34411 :
34412else
34413 echo "$as_me: program exited with status $ac_status" >&5
34414echo "$as_me: failed program was:" >&5
34415sed 's/^/| /' conftest.$ac_ext >&5
34416
34417( exit $ac_status )
34418no_sdl=yes
34419fi
ac1cb8d3 34420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34421fi
34422 CFLAGS="$ac_save_CFLAGS"
34423 LIBS="$ac_save_LIBS"
34424 fi
34425 fi
34426 if test "x$no_sdl" = x ; then
34427 echo "$as_me:$LINENO: result: yes" >&5
34428echo "${ECHO_T}yes" >&6
34429
34430 EXTRALIBS_SDL="$SDL_LIBS"
34431 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34432 cat >>confdefs.h <<\_ACEOF
34433#define wxUSE_LIBSDL 1
34434_ACEOF
34435
34436
34437 else
34438 echo "$as_me:$LINENO: result: no" >&5
34439echo "${ECHO_T}no" >&6
34440 if test "$SDL_CONFIG" = "no" ; then
34441 echo "*** The sdl-config script installed by SDL could not be found"
34442 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34443 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34444 echo "*** full path to sdl-config."
34445 else
34446 if test -f conf.sdltest ; then
34447 :
34448 else
34449 echo "*** Could not run SDL test program, checking why..."
34450 CFLAGS="$CFLAGS $SDL_CFLAGS"
34451 LIBS="$LIBS $SDL_LIBS"
34452 cat >conftest.$ac_ext <<_ACEOF
34453/* confdefs.h. */
34454_ACEOF
34455cat confdefs.h >>conftest.$ac_ext
34456cat >>conftest.$ac_ext <<_ACEOF
34457/* end confdefs.h. */
34458
34459#include <stdio.h>
34460#include "SDL.h"
34461
34462int main(int argc, char *argv[])
34463{ return 0; }
34464#undef main
34465#define main K_and_R_C_main
34466
34467int
34468main ()
34469{
34470 return 0;
34471 ;
34472 return 0;
34473}
34474_ACEOF
34475rm -f conftest.$ac_objext conftest$ac_exeext
34476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34477 (eval $ac_link) 2>conftest.er1
a848cd7e 34478 ac_status=$?
ac1cb8d3
VS
34479 grep -v '^ *+' conftest.er1 >conftest.err
34480 rm -f conftest.er1
34481 cat conftest.err >&5
a848cd7e
SC
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); } &&
c228d3a4
RN
34484 { ac_try='test -z "$ac_c_werror_flag"
34485 || test ! -s conftest.err'
ac1cb8d3
VS
34486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487 (eval $ac_try) 2>&5
34488 ac_status=$?
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); }; } &&
34491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34493 (eval $ac_try) 2>&5
34494 ac_status=$?
34495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496 (exit $ac_status); }; }; then
34497 echo "*** The test program compiled, but did not run. This usually means"
34498 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34499 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34500 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34501 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34502 echo "*** is required on your system"
34503 echo "***"
34504 echo "*** If you have an old version installed, it is best to remove it, although"
34505 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34506else
34507 echo "$as_me: failed program was:" >&5
34508sed 's/^/| /' conftest.$ac_ext >&5
34509
34510 echo "*** The test program failed to compile or link. See the file config.log for the"
34511 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34512 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34513 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34514fi
ac1cb8d3
VS
34515rm -f conftest.err conftest.$ac_objext \
34516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34517 CFLAGS="$ac_save_CFLAGS"
34518 LIBS="$ac_save_LIBS"
34519 fi
34520 fi
34521 SDL_CFLAGS=""
34522 SDL_LIBS=""
34523 wxUSE_LIBSDL="no"
34524 fi
34525
34526
34527 rm -f conf.sdltest
34528
34529 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34530 WITH_PLUGIN_SDL=1
34531 fi
34532 fi
34533 fi
34534
34535 cat >>confdefs.h <<\_ACEOF
34536#define wxUSE_SOUND 1
34537_ACEOF
34538
34539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34540fi
34541
34542if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34543 cat >>confdefs.h <<\_ACEOF
34544#define wxUSE_CMDLINE_PARSER 1
34545_ACEOF
34546
34547fi
34548
34549if test "$wxUSE_STOPWATCH" = "yes"; then
34550 cat >>confdefs.h <<\_ACEOF
34551#define wxUSE_STOPWATCH 1
34552_ACEOF
34553
34554fi
34555
34556if test "$wxUSE_DATETIME" = "yes"; then
34557 cat >>confdefs.h <<\_ACEOF
34558#define wxUSE_DATETIME 1
34559_ACEOF
34560
34561fi
34562
34563if test "$wxUSE_FILE" = "yes"; then
34564 cat >>confdefs.h <<\_ACEOF
34565#define wxUSE_FILE 1
34566_ACEOF
34567
34568fi
34569
34570if test "$wxUSE_FFILE" = "yes"; then
34571 cat >>confdefs.h <<\_ACEOF
34572#define wxUSE_FFILE 1
34573_ACEOF
34574
34575fi
34576
34577if test "$wxUSE_FILESYSTEM" = "yes"; then
34578 cat >>confdefs.h <<\_ACEOF
34579#define wxUSE_FILESYSTEM 1
34580_ACEOF
34581
34582fi
34583
34584if test "$wxUSE_FS_ZIP" = "yes"; then
34585 cat >>confdefs.h <<\_ACEOF
34586#define wxUSE_FS_ZIP 1
34587_ACEOF
34588
34589fi
34590
34591if test "$wxUSE_ZIPSTREAM" = "yes"; then
34592 cat >>confdefs.h <<\_ACEOF
34593#define wxUSE_ZIPSTREAM 1
34594_ACEOF
34595
34596fi
34597
a848cd7e
SC
34598if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34599 cat >>confdefs.h <<\_ACEOF
34600#define wxUSE_ON_FATAL_EXCEPTION 1
34601_ACEOF
34602
34603fi
34604
34605if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34606 cat >>confdefs.h <<\_ACEOF
34607#define wxUSE_SNGLINST_CHECKER 1
34608_ACEOF
34609
34610fi
34611
34612if test "$wxUSE_BUSYINFO" = "yes"; then
34613 cat >>confdefs.h <<\_ACEOF
34614#define wxUSE_BUSYINFO 1
34615_ACEOF
34616
34617fi
34618
34619if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34620 cat >>confdefs.h <<\_ACEOF
34621#define wxUSE_STD_IOSTREAM 1
34622_ACEOF
34623
34624fi
34625
34626if test "$wxUSE_TEXTBUFFER" = "yes"; then
34627 cat >>confdefs.h <<\_ACEOF
34628#define wxUSE_TEXTBUFFER 1
34629_ACEOF
34630
34631fi
34632
34633if test "$wxUSE_TEXTFILE" = "yes"; then
34634 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34635 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34636echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34637 else
34638 cat >>confdefs.h <<\_ACEOF
34639#define wxUSE_TEXTFILE 1
34640_ACEOF
34641
34642 fi
34643fi
34644
34645if test "$wxUSE_CONFIG" = "yes" ; then
34646 if test "$wxUSE_TEXTFILE" != "yes"; then
34647 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34648echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34649 else
34650 cat >>confdefs.h <<\_ACEOF
34651#define wxUSE_CONFIG 1
34652_ACEOF
34653
34654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34655 fi
34656fi
34657
34658if test "$wxUSE_INTL" = "yes" ; then
34659 if test "$wxUSE_FILE" != "yes"; then
34660 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34661echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34662 else
34663 cat >>confdefs.h <<\_ACEOF
34664#define wxUSE_INTL 1
34665_ACEOF
34666
34667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34668 GUIDIST="$GUIDIST INTL_DIST"
34669 fi
34670fi
34671
34672if test "$wxUSE_LOG" = "yes"; then
34673 cat >>confdefs.h <<\_ACEOF
34674#define wxUSE_LOG 1
34675_ACEOF
34676
34677
34678 if test "$wxUSE_LOGGUI" = "yes"; then
34679 cat >>confdefs.h <<\_ACEOF
34680#define wxUSE_LOGGUI 1
34681_ACEOF
34682
34683 fi
34684
34685 if test "$wxUSE_LOGWINDOW" = "yes"; then
34686 cat >>confdefs.h <<\_ACEOF
34687#define wxUSE_LOGWINDOW 1
34688_ACEOF
34689
34690 fi
34691
34692 if test "$wxUSE_LOGDIALOG" = "yes"; then
34693 cat >>confdefs.h <<\_ACEOF
34694#define wxUSE_LOG_DIALOG 1
34695_ACEOF
34696
34697 fi
34698fi
34699
34700if test "$wxUSE_LONGLONG" = "yes"; then
34701 cat >>confdefs.h <<\_ACEOF
34702#define wxUSE_LONGLONG 1
34703_ACEOF
34704
34705fi
34706
34707if test "$wxUSE_GEOMETRY" = "yes"; then
34708 cat >>confdefs.h <<\_ACEOF
34709#define wxUSE_GEOMETRY 1
34710_ACEOF
34711
34712fi
34713
34714if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34715 cat >>confdefs.h <<\_ACEOF
34716#define wxUSE_DIALUP_MANAGER 1
34717_ACEOF
34718
34719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34720fi
34721
34722if test "$wxUSE_STREAMS" = "yes" ; then
34723 cat >>confdefs.h <<\_ACEOF
34724#define wxUSE_STREAMS 1
34725_ACEOF
34726
34727fi
34728
34729
34730if test "$wxUSE_DATETIME" = "yes"; then
34731
34732for ac_func in strptime
34733do
34734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34735echo "$as_me:$LINENO: checking for $ac_func" >&5
34736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34737if eval "test \"\${$as_ac_var+set}\" = set"; then
34738 echo $ECHO_N "(cached) $ECHO_C" >&6
34739else
34740 cat >conftest.$ac_ext <<_ACEOF
34741/* confdefs.h. */
34742_ACEOF
34743cat confdefs.h >>conftest.$ac_ext
34744cat >>conftest.$ac_ext <<_ACEOF
34745/* end confdefs.h. */
ac1cb8d3
VS
34746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34748#define $ac_func innocuous_$ac_func
34749
a848cd7e
SC
34750/* System header to define __stub macros and hopefully few prototypes,
34751 which can conflict with char $ac_func (); below.
34752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34753 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34754
a848cd7e
SC
34755#ifdef __STDC__
34756# include <limits.h>
34757#else
34758# include <assert.h>
34759#endif
ac1cb8d3
VS
34760
34761#undef $ac_func
34762
a848cd7e
SC
34763/* Override any gcc2 internal prototype to avoid an error. */
34764#ifdef __cplusplus
34765extern "C"
34766{
34767#endif
34768/* We use char because int might match the return type of a gcc2
34769 builtin and then its argument prototype would still apply. */
34770char $ac_func ();
34771/* The GNU C library defines this for functions which it implements
34772 to always fail with ENOSYS. Some functions are actually named
34773 something starting with __ and the normal name is an alias. */
34774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34775choke me
34776#else
34777char (*f) () = $ac_func;
34778#endif
34779#ifdef __cplusplus
34780}
34781#endif
34782
34783int
34784main ()
34785{
34786return f != $ac_func;
34787 ;
34788 return 0;
34789}
34790_ACEOF
34791rm -f conftest.$ac_objext conftest$ac_exeext
34792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34793 (eval $ac_link) 2>conftest.er1
a848cd7e 34794 ac_status=$?
ac1cb8d3
VS
34795 grep -v '^ *+' conftest.er1 >conftest.err
34796 rm -f conftest.er1
34797 cat conftest.err >&5
a848cd7e
SC
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); } &&
c228d3a4
RN
34800 { ac_try='test -z "$ac_c_werror_flag"
34801 || test ! -s conftest.err'
ac1cb8d3
VS
34802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34803 (eval $ac_try) 2>&5
34804 ac_status=$?
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); }; } &&
34807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34809 (eval $ac_try) 2>&5
34810 ac_status=$?
34811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); }; }; then
34813 eval "$as_ac_var=yes"
34814else
34815 echo "$as_me: failed program was:" >&5
34816sed 's/^/| /' conftest.$ac_ext >&5
34817
34818eval "$as_ac_var=no"
34819fi
ac1cb8d3
VS
34820rm -f conftest.err conftest.$ac_objext \
34821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34822fi
34823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34825if test `eval echo '${'$as_ac_var'}'` = yes; then
34826 cat >>confdefs.h <<_ACEOF
34827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34828_ACEOF
34829
34830fi
34831done
34832
34833
34834 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34835echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34836if test "${wx_cv_var_timezone+set}" = set; then
34837 echo $ECHO_N "(cached) $ECHO_C" >&6
34838else
34839
34840 cat >conftest.$ac_ext <<_ACEOF
34841/* confdefs.h. */
34842_ACEOF
34843cat confdefs.h >>conftest.$ac_ext
34844cat >>conftest.$ac_ext <<_ACEOF
34845/* end confdefs.h. */
34846
34847 #include <time.h>
34848
34849int
34850main ()
34851{
34852
34853 int tz;
34854 tz = timezone;
34855
34856 ;
34857 return 0;
34858}
34859_ACEOF
34860rm -f conftest.$ac_objext
34861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34862 (eval $ac_compile) 2>conftest.er1
a848cd7e 34863 ac_status=$?
ac1cb8d3
VS
34864 grep -v '^ *+' conftest.er1 >conftest.err
34865 rm -f conftest.er1
34866 cat conftest.err >&5
a848cd7e
SC
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); } &&
c228d3a4
RN
34869 { ac_try='test -z "$ac_c_werror_flag"
34870 || test ! -s conftest.err'
ac1cb8d3
VS
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; } &&
34876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878 (eval $ac_try) 2>&5
34879 ac_status=$?
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); }; }; then
34882
34883 wx_cv_var_timezone=timezone
34884
34885else
34886 echo "$as_me: failed program was:" >&5
34887sed 's/^/| /' conftest.$ac_ext >&5
34888
34889
34890 cat >conftest.$ac_ext <<_ACEOF
34891/* confdefs.h. */
34892_ACEOF
34893cat confdefs.h >>conftest.$ac_ext
34894cat >>conftest.$ac_ext <<_ACEOF
34895/* end confdefs.h. */
34896
34897 #include <time.h>
34898
34899int
34900main ()
34901{
34902
34903 int tz;
34904 tz = _timezone;
34905
34906 ;
34907 return 0;
34908}
34909_ACEOF
34910rm -f conftest.$ac_objext
34911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34912 (eval $ac_compile) 2>conftest.er1
a848cd7e 34913 ac_status=$?
ac1cb8d3
VS
34914 grep -v '^ *+' conftest.er1 >conftest.err
34915 rm -f conftest.er1
34916 cat conftest.err >&5
a848cd7e
SC
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } &&
c228d3a4
RN
34919 { ac_try='test -z "$ac_c_werror_flag"
34920 || test ! -s conftest.err'
ac1cb8d3
VS
34921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34922 (eval $ac_try) 2>&5
34923 ac_status=$?
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); }; } &&
34926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928 (eval $ac_try) 2>&5
34929 ac_status=$?
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); }; }; then
34932
34933 wx_cv_var_timezone=_timezone
34934
34935else
34936 echo "$as_me: failed program was:" >&5
34937sed 's/^/| /' conftest.$ac_ext >&5
34938
34939
34940 cat >conftest.$ac_ext <<_ACEOF
34941/* confdefs.h. */
34942_ACEOF
34943cat confdefs.h >>conftest.$ac_ext
34944cat >>conftest.$ac_ext <<_ACEOF
34945/* end confdefs.h. */
34946
34947 #include <time.h>
34948
34949int
34950main ()
34951{
34952
34953 int tz;
34954 tz = __timezone;
34955
34956 ;
34957 return 0;
34958}
34959_ACEOF
34960rm -f conftest.$ac_objext
34961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34962 (eval $ac_compile) 2>conftest.er1
a848cd7e 34963 ac_status=$?
ac1cb8d3
VS
34964 grep -v '^ *+' conftest.er1 >conftest.err
34965 rm -f conftest.er1
34966 cat conftest.err >&5
a848cd7e
SC
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); } &&
c228d3a4
RN
34969 { ac_try='test -z "$ac_c_werror_flag"
34970 || test ! -s conftest.err'
ac1cb8d3
VS
34971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34972 (eval $ac_try) 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; } &&
34976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978 (eval $ac_try) 2>&5
34979 ac_status=$?
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); }; }; then
34982
34983 wx_cv_var_timezone=__timezone
34984
34985else
34986 echo "$as_me: failed program was:" >&5
34987sed 's/^/| /' conftest.$ac_ext >&5
34988
34989
34990 if test "$USE_DOS" = 0 ; then
34991 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34992echo "$as_me: WARNING: no timezone variable" >&2;}
34993 fi
34994
34995
34996fi
ac1cb8d3 34997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34998
34999
35000fi
ac1cb8d3 35001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35002
35003
35004fi
ac1cb8d3 35005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35006
35007
35008fi
35009echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35010echo "${ECHO_T}$wx_cv_var_timezone" >&6
35011
35012 if test "x$wx_cv_var_timezone" != x ; then
35013 cat >>confdefs.h <<_ACEOF
35014#define WX_TIMEZONE $wx_cv_var_timezone
35015_ACEOF
35016
35017 fi
35018
35019
35020for ac_func in localtime
35021do
35022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35023echo "$as_me:$LINENO: checking for $ac_func" >&5
35024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35025if eval "test \"\${$as_ac_var+set}\" = set"; then
35026 echo $ECHO_N "(cached) $ECHO_C" >&6
35027else
35028 cat >conftest.$ac_ext <<_ACEOF
35029/* confdefs.h. */
35030_ACEOF
35031cat confdefs.h >>conftest.$ac_ext
35032cat >>conftest.$ac_ext <<_ACEOF
35033/* end confdefs.h. */
ac1cb8d3
VS
35034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35036#define $ac_func innocuous_$ac_func
35037
a848cd7e
SC
35038/* System header to define __stub macros and hopefully few prototypes,
35039 which can conflict with char $ac_func (); below.
35040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35041 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35042
a848cd7e
SC
35043#ifdef __STDC__
35044# include <limits.h>
35045#else
35046# include <assert.h>
35047#endif
ac1cb8d3
VS
35048
35049#undef $ac_func
35050
a848cd7e
SC
35051/* Override any gcc2 internal prototype to avoid an error. */
35052#ifdef __cplusplus
35053extern "C"
35054{
35055#endif
35056/* We use char because int might match the return type of a gcc2
35057 builtin and then its argument prototype would still apply. */
35058char $ac_func ();
35059/* The GNU C library defines this for functions which it implements
35060 to always fail with ENOSYS. Some functions are actually named
35061 something starting with __ and the normal name is an alias. */
35062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35063choke me
35064#else
35065char (*f) () = $ac_func;
35066#endif
35067#ifdef __cplusplus
35068}
35069#endif
35070
35071int
35072main ()
35073{
35074return f != $ac_func;
35075 ;
35076 return 0;
35077}
35078_ACEOF
35079rm -f conftest.$ac_objext conftest$ac_exeext
35080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35081 (eval $ac_link) 2>conftest.er1
a848cd7e 35082 ac_status=$?
ac1cb8d3
VS
35083 grep -v '^ *+' conftest.er1 >conftest.err
35084 rm -f conftest.er1
35085 cat conftest.err >&5
a848cd7e
SC
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); } &&
c228d3a4
RN
35088 { ac_try='test -z "$ac_c_werror_flag"
35089 || test ! -s conftest.err'
ac1cb8d3
VS
35090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091 (eval $ac_try) 2>&5
35092 ac_status=$?
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); }; } &&
35095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35097 (eval $ac_try) 2>&5
35098 ac_status=$?
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); }; }; then
35101 eval "$as_ac_var=yes"
35102else
35103 echo "$as_me: failed program was:" >&5
35104sed 's/^/| /' conftest.$ac_ext >&5
35105
35106eval "$as_ac_var=no"
35107fi
ac1cb8d3
VS
35108rm -f conftest.err conftest.$ac_objext \
35109 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35110fi
35111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35113if test `eval echo '${'$as_ac_var'}'` = yes; then
35114 cat >>confdefs.h <<_ACEOF
35115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35116_ACEOF
35117
35118fi
35119done
35120
35121
35122 if test "$ac_cv_func_localtime" = "yes"; then
35123 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35124echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35125if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35126 echo $ECHO_N "(cached) $ECHO_C" >&6
35127else
35128
35129 cat >conftest.$ac_ext <<_ACEOF
35130/* confdefs.h. */
35131_ACEOF
35132cat confdefs.h >>conftest.$ac_ext
35133cat >>conftest.$ac_ext <<_ACEOF
35134/* end confdefs.h. */
35135
35136 #include <time.h>
35137
35138int
35139main ()
35140{
35141
35142 struct tm tm;
35143 tm.tm_gmtoff++;
35144
35145 ;
35146 return 0;
35147}
35148_ACEOF
35149rm -f conftest.$ac_objext
35150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35151 (eval $ac_compile) 2>conftest.er1
a848cd7e 35152 ac_status=$?
ac1cb8d3
VS
35153 grep -v '^ *+' conftest.er1 >conftest.err
35154 rm -f conftest.er1
35155 cat conftest.err >&5
a848cd7e
SC
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); } &&
c228d3a4
RN
35158 { ac_try='test -z "$ac_c_werror_flag"
35159 || test ! -s conftest.err'
ac1cb8d3
VS
35160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35161 (eval $ac_try) 2>&5
35162 ac_status=$?
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); }; } &&
35165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35167 (eval $ac_try) 2>&5
35168 ac_status=$?
35169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35170 (exit $ac_status); }; }; then
35171
35172 wx_cv_struct_tm_has_gmtoff=yes
35173
35174else
35175 echo "$as_me: failed program was:" >&5
35176sed 's/^/| /' conftest.$ac_ext >&5
35177
35178wx_cv_struct_tm_has_gmtoff=no
35179
35180fi
ac1cb8d3 35181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35182
35183fi
35184echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35185echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35186 fi
35187
35188 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35189 cat >>confdefs.h <<\_ACEOF
35190#define WX_GMTOFF_IN_TM 1
35191_ACEOF
35192
35193 fi
35194
35195
35196
35197for ac_func in gettimeofday ftime
35198do
35199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35200echo "$as_me:$LINENO: checking for $ac_func" >&5
35201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35202if eval "test \"\${$as_ac_var+set}\" = set"; then
35203 echo $ECHO_N "(cached) $ECHO_C" >&6
35204else
35205 cat >conftest.$ac_ext <<_ACEOF
35206/* confdefs.h. */
35207_ACEOF
35208cat confdefs.h >>conftest.$ac_ext
35209cat >>conftest.$ac_ext <<_ACEOF
35210/* end confdefs.h. */
ac1cb8d3
VS
35211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35213#define $ac_func innocuous_$ac_func
35214
a848cd7e
SC
35215/* System header to define __stub macros and hopefully few prototypes,
35216 which can conflict with char $ac_func (); below.
35217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35218 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35219
a848cd7e
SC
35220#ifdef __STDC__
35221# include <limits.h>
35222#else
35223# include <assert.h>
35224#endif
ac1cb8d3
VS
35225
35226#undef $ac_func
35227
a848cd7e
SC
35228/* Override any gcc2 internal prototype to avoid an error. */
35229#ifdef __cplusplus
35230extern "C"
35231{
35232#endif
35233/* We use char because int might match the return type of a gcc2
35234 builtin and then its argument prototype would still apply. */
35235char $ac_func ();
35236/* The GNU C library defines this for functions which it implements
35237 to always fail with ENOSYS. Some functions are actually named
35238 something starting with __ and the normal name is an alias. */
35239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35240choke me
35241#else
35242char (*f) () = $ac_func;
35243#endif
35244#ifdef __cplusplus
35245}
35246#endif
35247
35248int
35249main ()
35250{
35251return f != $ac_func;
35252 ;
35253 return 0;
35254}
35255_ACEOF
35256rm -f conftest.$ac_objext conftest$ac_exeext
35257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35258 (eval $ac_link) 2>conftest.er1
a848cd7e 35259 ac_status=$?
ac1cb8d3
VS
35260 grep -v '^ *+' conftest.er1 >conftest.err
35261 rm -f conftest.er1
35262 cat conftest.err >&5
a848cd7e
SC
35263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264 (exit $ac_status); } &&
c228d3a4
RN
35265 { ac_try='test -z "$ac_c_werror_flag"
35266 || test ! -s conftest.err'
ac1cb8d3
VS
35267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35268 (eval $ac_try) 2>&5
35269 ac_status=$?
35270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); }; } &&
35272 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35274 (eval $ac_try) 2>&5
35275 ac_status=$?
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); }; }; then
35278 eval "$as_ac_var=yes"
35279else
35280 echo "$as_me: failed program was:" >&5
35281sed 's/^/| /' conftest.$ac_ext >&5
35282
35283eval "$as_ac_var=no"
35284fi
ac1cb8d3
VS
35285rm -f conftest.err conftest.$ac_objext \
35286 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35287fi
35288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35290if test `eval echo '${'$as_ac_var'}'` = yes; then
35291 cat >>confdefs.h <<_ACEOF
35292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35293_ACEOF
35294 break
35295fi
35296done
35297
35298
35299 if test "$ac_cv_func_gettimeofday" = "yes"; then
35300 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35301echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35302if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35303 echo $ECHO_N "(cached) $ECHO_C" >&6
35304else
35305
35306
35307
35308 ac_ext=cc
35309ac_cpp='$CXXCPP $CPPFLAGS'
35310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35313
35314
35315 cat >conftest.$ac_ext <<_ACEOF
35316/* confdefs.h. */
35317_ACEOF
35318cat confdefs.h >>conftest.$ac_ext
35319cat >>conftest.$ac_ext <<_ACEOF
35320/* end confdefs.h. */
35321
35322 #include <sys/time.h>
35323 #include <unistd.h>
35324
35325int
35326main ()
35327{
35328
35329 struct timeval tv;
35330 gettimeofday(&tv, NULL);
35331
35332 ;
35333 return 0;
35334}
35335_ACEOF
35336rm -f conftest.$ac_objext
35337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35338 (eval $ac_compile) 2>conftest.er1
a848cd7e 35339 ac_status=$?
ac1cb8d3
VS
35340 grep -v '^ *+' conftest.er1 >conftest.err
35341 rm -f conftest.er1
35342 cat conftest.err >&5
a848cd7e
SC
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); } &&
c228d3a4
RN
35345 { ac_try='test -z "$ac_cxx_werror_flag"
35346 || test ! -s conftest.err'
ac1cb8d3
VS
35347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35348 (eval $ac_try) 2>&5
35349 ac_status=$?
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); }; } &&
35352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354 (eval $ac_try) 2>&5
35355 ac_status=$?
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); }; }; then
35358 wx_cv_func_gettimeofday_has_2_args=yes
35359else
35360 echo "$as_me: failed program was:" >&5
35361sed 's/^/| /' conftest.$ac_ext >&5
35362
35363cat >conftest.$ac_ext <<_ACEOF
35364/* confdefs.h. */
35365_ACEOF
35366cat confdefs.h >>conftest.$ac_ext
35367cat >>conftest.$ac_ext <<_ACEOF
35368/* end confdefs.h. */
35369
35370 #include <sys/time.h>
35371 #include <unistd.h>
35372
35373int
35374main ()
35375{
35376
35377 struct timeval tv;
35378 gettimeofday(&tv);
35379
35380 ;
35381 return 0;
35382}
35383_ACEOF
35384rm -f conftest.$ac_objext
35385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35386 (eval $ac_compile) 2>conftest.er1
a848cd7e 35387 ac_status=$?
ac1cb8d3
VS
35388 grep -v '^ *+' conftest.er1 >conftest.err
35389 rm -f conftest.er1
35390 cat conftest.err >&5
a848cd7e
SC
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); } &&
c228d3a4
RN
35393 { ac_try='test -z "$ac_cxx_werror_flag"
35394 || test ! -s conftest.err'
ac1cb8d3
VS
35395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35396 (eval $ac_try) 2>&5
35397 ac_status=$?
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); }; } &&
35400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35402 (eval $ac_try) 2>&5
35403 ac_status=$?
35404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); }; }; then
35406 wx_cv_func_gettimeofday_has_2_args=no
35407else
35408 echo "$as_me: failed program was:" >&5
35409sed 's/^/| /' conftest.$ac_ext >&5
35410
35411
35412 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35413echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35414 wx_cv_func_gettimeofday_has_2_args=unknown
35415
35416
35417fi
ac1cb8d3 35418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35419
35420fi
ac1cb8d3 35421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35422 ac_ext=c
35423ac_cpp='$CPP $CPPFLAGS'
35424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35426ac_compiler_gnu=$ac_cv_c_compiler_gnu
35427
35428
35429fi
35430echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35431echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35432
35433 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35434 cat >>confdefs.h <<\_ACEOF
35435#define WX_GETTIMEOFDAY_NO_TZ 1
35436_ACEOF
35437
35438 fi
35439 fi
35440
35441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35442fi
35443
35444
35445if test "$wxUSE_SOCKETS" = "yes"; then
35446 if test "$wxUSE_MGL" = "1"; then
35447 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35448echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35449 wxUSE_SOCKETS="no"
35450 fi
35451fi
35452
35453if test "$wxUSE_SOCKETS" = "yes"; then
35454 if test "$TOOLKIT" != "MSW"; then
35455 echo "$as_me:$LINENO: checking for socket" >&5
35456echo $ECHO_N "checking for socket... $ECHO_C" >&6
35457if test "${ac_cv_func_socket+set}" = set; then
35458 echo $ECHO_N "(cached) $ECHO_C" >&6
35459else
35460 cat >conftest.$ac_ext <<_ACEOF
35461/* confdefs.h. */
35462_ACEOF
35463cat confdefs.h >>conftest.$ac_ext
35464cat >>conftest.$ac_ext <<_ACEOF
35465/* end confdefs.h. */
ac1cb8d3
VS
35466/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35468#define socket innocuous_socket
35469
a848cd7e
SC
35470/* System header to define __stub macros and hopefully few prototypes,
35471 which can conflict with char socket (); below.
35472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35473 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35474
a848cd7e
SC
35475#ifdef __STDC__
35476# include <limits.h>
35477#else
35478# include <assert.h>
35479#endif
ac1cb8d3
VS
35480
35481#undef socket
35482
a848cd7e
SC
35483/* Override any gcc2 internal prototype to avoid an error. */
35484#ifdef __cplusplus
35485extern "C"
35486{
35487#endif
35488/* We use char because int might match the return type of a gcc2
35489 builtin and then its argument prototype would still apply. */
35490char socket ();
35491/* The GNU C library defines this for functions which it implements
35492 to always fail with ENOSYS. Some functions are actually named
35493 something starting with __ and the normal name is an alias. */
35494#if defined (__stub_socket) || defined (__stub___socket)
35495choke me
35496#else
35497char (*f) () = socket;
35498#endif
35499#ifdef __cplusplus
35500}
35501#endif
35502
35503int
35504main ()
35505{
35506return f != socket;
35507 ;
35508 return 0;
35509}
35510_ACEOF
35511rm -f conftest.$ac_objext conftest$ac_exeext
35512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35513 (eval $ac_link) 2>conftest.er1
a848cd7e 35514 ac_status=$?
ac1cb8d3
VS
35515 grep -v '^ *+' conftest.er1 >conftest.err
35516 rm -f conftest.er1
35517 cat conftest.err >&5
a848cd7e
SC
35518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35519 (exit $ac_status); } &&
c228d3a4
RN
35520 { ac_try='test -z "$ac_c_werror_flag"
35521 || test ! -s conftest.err'
ac1cb8d3
VS
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35524 ac_status=$?
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; } &&
35527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35530 ac_status=$?
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35533 ac_cv_func_socket=yes
35534else
35535 echo "$as_me: failed program was:" >&5
35536sed 's/^/| /' conftest.$ac_ext >&5
35537
35538ac_cv_func_socket=no
35539fi
ac1cb8d3
VS
35540rm -f conftest.err conftest.$ac_objext \
35541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35542fi
35543echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35544echo "${ECHO_T}$ac_cv_func_socket" >&6
35545if test $ac_cv_func_socket = yes; then
35546 :
35547else
35548
35549 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35550echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35551if test "${ac_cv_lib_socket_socket+set}" = set; then
35552 echo $ECHO_N "(cached) $ECHO_C" >&6
35553else
35554 ac_check_lib_save_LIBS=$LIBS
35555LIBS="-lsocket $LIBS"
35556cat >conftest.$ac_ext <<_ACEOF
35557/* confdefs.h. */
35558_ACEOF
35559cat confdefs.h >>conftest.$ac_ext
35560cat >>conftest.$ac_ext <<_ACEOF
35561/* end confdefs.h. */
35562
35563/* Override any gcc2 internal prototype to avoid an error. */
35564#ifdef __cplusplus
35565extern "C"
35566#endif
35567/* We use char because int might match the return type of a gcc2
35568 builtin and then its argument prototype would still apply. */
35569char socket ();
35570int
35571main ()
35572{
35573socket ();
35574 ;
35575 return 0;
35576}
35577_ACEOF
35578rm -f conftest.$ac_objext conftest$ac_exeext
35579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35580 (eval $ac_link) 2>conftest.er1
a848cd7e 35581 ac_status=$?
ac1cb8d3
VS
35582 grep -v '^ *+' conftest.er1 >conftest.err
35583 rm -f conftest.er1
35584 cat conftest.err >&5
a848cd7e
SC
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); } &&
c228d3a4
RN
35587 { ac_try='test -z "$ac_c_werror_flag"
35588 || test ! -s conftest.err'
ac1cb8d3
VS
35589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590 (eval $ac_try) 2>&5
35591 ac_status=$?
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }; } &&
35594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35596 (eval $ac_try) 2>&5
35597 ac_status=$?
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); }; }; then
35600 ac_cv_lib_socket_socket=yes
35601else
35602 echo "$as_me: failed program was:" >&5
35603sed 's/^/| /' conftest.$ac_ext >&5
35604
35605ac_cv_lib_socket_socket=no
35606fi
ac1cb8d3
VS
35607rm -f conftest.err conftest.$ac_objext \
35608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35609LIBS=$ac_check_lib_save_LIBS
35610fi
35611echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35612echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35613if test $ac_cv_lib_socket_socket = yes; then
35614 if test "$INET_LINK" != " -lsocket"; then
35615 INET_LINK="$INET_LINK -lsocket"
35616 fi
35617else
35618
35619 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35620echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35621 wxUSE_SOCKETS=no
35622
35623
35624fi
35625
35626
35627
35628fi
35629
35630 fi
35631fi
35632
35633if test "$wxUSE_SOCKETS" = "yes" ; then
35634 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35635 ac_ext=cc
35636ac_cpp='$CXXCPP $CPPFLAGS'
35637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35640
35641 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35642echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35643if test "${wx_cv_type_getsockname3+set}" = set; then
35644 echo $ECHO_N "(cached) $ECHO_C" >&6
35645else
35646
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. */
35653
35654 #include <sys/types.h>
35655 #include <sys/socket.h>
35656
35657int
35658main ()
35659{
35660
35661 socklen_t len;
35662 getsockname(0, 0, &len);
35663
35664 ;
35665 return 0;
35666}
35667_ACEOF
35668rm -f conftest.$ac_objext
35669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35670 (eval $ac_compile) 2>conftest.er1
a848cd7e 35671 ac_status=$?
ac1cb8d3
VS
35672 grep -v '^ *+' conftest.er1 >conftest.err
35673 rm -f conftest.er1
35674 cat conftest.err >&5
a848cd7e
SC
35675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676 (exit $ac_status); } &&
c228d3a4
RN
35677 { ac_try='test -z "$ac_cxx_werror_flag"
35678 || test ! -s conftest.err'
ac1cb8d3
VS
35679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35680 (eval $ac_try) 2>&5
35681 ac_status=$?
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); }; } &&
35684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35686 (eval $ac_try) 2>&5
35687 ac_status=$?
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); }; }; then
35690 wx_cv_type_getsockname3=socklen_t
35691else
35692 echo "$as_me: failed program was:" >&5
35693sed 's/^/| /' conftest.$ac_ext >&5
35694
35695
35696 CFLAGS_OLD="$CFLAGS"
35697 if test "$GCC" = yes ; then
35698 CFLAGS="$CFLAGS -Werror"
35699 fi
35700
35701 cat >conftest.$ac_ext <<_ACEOF
35702/* confdefs.h. */
35703_ACEOF
35704cat confdefs.h >>conftest.$ac_ext
35705cat >>conftest.$ac_ext <<_ACEOF
35706/* end confdefs.h. */
35707
35708 #include <sys/types.h>
35709 #include <sys/socket.h>
35710
35711int
35712main ()
35713{
35714
35715 size_t len;
35716 getsockname(0, 0, &len);
35717
35718 ;
35719 return 0;
35720}
35721_ACEOF
35722rm -f conftest.$ac_objext
35723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35724 (eval $ac_compile) 2>conftest.er1
a848cd7e 35725 ac_status=$?
ac1cb8d3
VS
35726 grep -v '^ *+' conftest.er1 >conftest.err
35727 rm -f conftest.er1
35728 cat conftest.err >&5
a848cd7e
SC
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); } &&
c228d3a4
RN
35731 { ac_try='test -z "$ac_cxx_werror_flag"
35732 || test ! -s conftest.err'
ac1cb8d3
VS
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35735 ac_status=$?
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; } &&
35738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 (eval $ac_try) 2>&5
35741 ac_status=$?
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; }; then
35744 wx_cv_type_getsockname3=size_t
35745else
35746 echo "$as_me: failed program was:" >&5
35747sed 's/^/| /' conftest.$ac_ext >&5
35748
35749cat >conftest.$ac_ext <<_ACEOF
35750/* confdefs.h. */
35751_ACEOF
35752cat confdefs.h >>conftest.$ac_ext
35753cat >>conftest.$ac_ext <<_ACEOF
35754/* end confdefs.h. */
35755
35756 #include <sys/types.h>
35757 #include <sys/socket.h>
35758
35759int
35760main ()
35761{
35762
35763 int len;
35764 getsockname(0, 0, &len);
35765
35766 ;
35767 return 0;
35768}
35769_ACEOF
35770rm -f conftest.$ac_objext
35771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35772 (eval $ac_compile) 2>conftest.er1
a848cd7e 35773 ac_status=$?
ac1cb8d3
VS
35774 grep -v '^ *+' conftest.er1 >conftest.err
35775 rm -f conftest.er1
35776 cat conftest.err >&5
a848cd7e
SC
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); } &&
c228d3a4
RN
35779 { ac_try='test -z "$ac_cxx_werror_flag"
35780 || test ! -s conftest.err'
ac1cb8d3
VS
35781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782 (eval $ac_try) 2>&5
35783 ac_status=$?
35784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785 (exit $ac_status); }; } &&
35786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35788 (eval $ac_try) 2>&5
35789 ac_status=$?
35790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791 (exit $ac_status); }; }; then
35792 wx_cv_type_getsockname3=int
35793else
35794 echo "$as_me: failed program was:" >&5
35795sed 's/^/| /' conftest.$ac_ext >&5
35796
35797wx_cv_type_getsockname3=unknown
35798
35799fi
ac1cb8d3 35800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35801
35802fi
ac1cb8d3 35803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35804
35805 CFLAGS="$CFLAGS_OLD"
35806
35807
35808fi
ac1cb8d3 35809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35810
35811fi
35812echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35813echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35814
35815 if test "$wx_cv_type_getsockname3" = "unknown"; then
35816 wxUSE_SOCKETS=no
35817 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35818echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35819 else
35820 cat >>confdefs.h <<_ACEOF
35821#define SOCKLEN_T $wx_cv_type_getsockname3
35822_ACEOF
35823
35824 fi
4d4ff94c
VZ
35825 ac_ext=c
35826ac_cpp='$CPP $CPPFLAGS'
35827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35829ac_compiler_gnu=$ac_cv_c_compiler_gnu
35830
a848cd7e
SC
35831 fi
35832fi
35833
35834if test "$wxUSE_SOCKETS" = "yes" ; then
35835 cat >>confdefs.h <<\_ACEOF
35836#define wxUSE_SOCKETS 1
35837_ACEOF
35838
35839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35840fi
35841
35842if test "$wxUSE_PROTOCOL" = "yes"; then
35843 if test "$wxUSE_SOCKETS" != "yes"; then
35844 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35845echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35846 wxUSE_PROTOCOL=no
35847 fi
35848fi
35849
35850if test "$wxUSE_PROTOCOL" = "yes"; then
35851 cat >>confdefs.h <<\_ACEOF
35852#define wxUSE_PROTOCOL 1
35853_ACEOF
35854
35855
35856 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35857 cat >>confdefs.h <<\_ACEOF
35858#define wxUSE_PROTOCOL_HTTP 1
35859_ACEOF
35860
35861 fi
35862 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35863 cat >>confdefs.h <<\_ACEOF
35864#define wxUSE_PROTOCOL_FTP 1
35865_ACEOF
35866
35867 fi
35868 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35869 cat >>confdefs.h <<\_ACEOF
35870#define wxUSE_PROTOCOL_FILE 1
35871_ACEOF
35872
35873 fi
35874else
35875 if test "$wxUSE_FS_INET" = "yes"; then
35876 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35877echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35878 wxUSE_FS_INET="no"
35879 fi
35880fi
35881
35882if test "$wxUSE_URL" = "yes"; then
35883 if test "$wxUSE_PROTOCOL" != "yes"; then
35884 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35885echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35886 wxUSE_URL=no
35887 fi
35888 if test "$wxUSE_URL" = "yes"; then
35889 cat >>confdefs.h <<\_ACEOF
35890#define wxUSE_URL 1
35891_ACEOF
35892
35893 fi
35894fi
35895
35896if test "$wxUSE_FS_INET" = "yes"; then
35897 cat >>confdefs.h <<\_ACEOF
35898#define wxUSE_FS_INET 1
35899_ACEOF
35900
35901fi
35902
35903
35904if test "$wxUSE_GUI" = "yes"; then
35905
35906 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35907 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35908echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35909 wxUSE_JOYSTICK=no
35910 fi
35911
35912 if test "$TOOLKIT" != "MSW"; then
35913 if test "$wxUSE_JOYSTICK" = "yes"; then
35914
35915for ac_header in linux/joystick.h
35916do
35917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35918if eval "test \"\${$as_ac_Header+set}\" = set"; then
35919 echo "$as_me:$LINENO: checking for $ac_header" >&5
35920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35921if eval "test \"\${$as_ac_Header+set}\" = set"; then
35922 echo $ECHO_N "(cached) $ECHO_C" >&6
35923fi
35924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35926else
35927 # Is the header compilable?
35928echo "$as_me:$LINENO: checking $ac_header usability" >&5
35929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35930cat >conftest.$ac_ext <<_ACEOF
35931/* confdefs.h. */
35932_ACEOF
35933cat confdefs.h >>conftest.$ac_ext
35934cat >>conftest.$ac_ext <<_ACEOF
35935/* end confdefs.h. */
35936$ac_includes_default
35937#include <$ac_header>
35938_ACEOF
35939rm -f conftest.$ac_objext
35940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35941 (eval $ac_compile) 2>conftest.er1
a848cd7e 35942 ac_status=$?
ac1cb8d3
VS
35943 grep -v '^ *+' conftest.er1 >conftest.err
35944 rm -f conftest.er1
35945 cat conftest.err >&5
a848cd7e
SC
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); } &&
c228d3a4
RN
35948 { ac_try='test -z "$ac_c_werror_flag"
35949 || test ! -s conftest.err'
ac1cb8d3
VS
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35952 ac_status=$?
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; } &&
35955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957 (eval $ac_try) 2>&5
35958 ac_status=$?
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); }; }; then
35961 ac_header_compiler=yes
35962else
35963 echo "$as_me: failed program was:" >&5
35964sed 's/^/| /' conftest.$ac_ext >&5
35965
35966ac_header_compiler=no
35967fi
ac1cb8d3 35968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35970echo "${ECHO_T}$ac_header_compiler" >&6
35971
35972# Is the header present?
35973echo "$as_me:$LINENO: checking $ac_header presence" >&5
35974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35975cat >conftest.$ac_ext <<_ACEOF
35976/* confdefs.h. */
35977_ACEOF
35978cat confdefs.h >>conftest.$ac_ext
35979cat >>conftest.$ac_ext <<_ACEOF
35980/* end confdefs.h. */
35981#include <$ac_header>
35982_ACEOF
35983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35985 ac_status=$?
35986 grep -v '^ *+' conftest.er1 >conftest.err
35987 rm -f conftest.er1
35988 cat conftest.err >&5
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); } >/dev/null; then
35991 if test -s conftest.err; then
35992 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35994 else
35995 ac_cpp_err=
35996 fi
35997else
35998 ac_cpp_err=yes
35999fi
36000if test -z "$ac_cpp_err"; then
36001 ac_header_preproc=yes
36002else
36003 echo "$as_me: failed program was:" >&5
36004sed 's/^/| /' conftest.$ac_ext >&5
36005
36006 ac_header_preproc=no
36007fi
36008rm -f conftest.err conftest.$ac_ext
36009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36010echo "${ECHO_T}$ac_header_preproc" >&6
36011
36012# So? What about this header?
ac1cb8d3
VS
36013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36014 yes:no: )
a848cd7e
SC
36015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36019 ac_header_preproc=yes
a848cd7e 36020 ;;
ac1cb8d3 36021 no:yes:* )
a848cd7e
SC
36022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36034 (
36035 cat <<\_ASBOX
ac1cb8d3
VS
36036## ----------------------------------------- ##
36037## Report this to wx-dev@lists.wxwidgets.org ##
36038## ----------------------------------------- ##
a848cd7e
SC
36039_ASBOX
36040 ) |
36041 sed "s/^/$as_me: WARNING: /" >&2
36042 ;;
36043esac
36044echo "$as_me:$LINENO: checking for $ac_header" >&5
36045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36046if eval "test \"\${$as_ac_Header+set}\" = set"; then
36047 echo $ECHO_N "(cached) $ECHO_C" >&6
36048else
ac1cb8d3 36049 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36050fi
36051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36053
36054fi
36055if test `eval echo '${'$as_ac_Header'}'` = yes; then
36056 cat >>confdefs.h <<_ACEOF
36057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36058_ACEOF
36059
36060fi
36061
36062done
36063
36064 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36065 wxUSE_JOYSTICK=no
36066 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36067echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36068 fi
36069 fi
36070 fi
36071
36072 if test "$wxUSE_JOYSTICK" = "yes"; then
36073 cat >>confdefs.h <<\_ACEOF
36074#define wxUSE_JOYSTICK 1
36075_ACEOF
36076
36077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36078 fi
36079fi
36080
36081
36082
36083if test "$wxUSE_FONTMAP" = "yes" ; then
36084 cat >>confdefs.h <<\_ACEOF
36085#define wxUSE_FONTMAP 1
36086_ACEOF
36087
36088fi
36089
36090if test "$wxUSE_UNICODE" = "yes" ; then
36091 cat >>confdefs.h <<\_ACEOF
36092#define wxUSE_UNICODE 1
36093_ACEOF
36094
36095
36096 if test "$USE_WIN32" != 1; then
36097 wxUSE_UNICODE_MSLU=no
36098 fi
36099
36100 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36101 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36102echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36103if test "${ac_cv_lib_unicows_main+set}" = set; then
36104 echo $ECHO_N "(cached) $ECHO_C" >&6
36105else
36106 ac_check_lib_save_LIBS=$LIBS
36107LIBS="-lunicows $LIBS"
36108cat >conftest.$ac_ext <<_ACEOF
36109/* confdefs.h. */
36110_ACEOF
36111cat confdefs.h >>conftest.$ac_ext
36112cat >>conftest.$ac_ext <<_ACEOF
36113/* end confdefs.h. */
36114
36115
36116int
36117main ()
36118{
36119main ();
36120 ;
36121 return 0;
36122}
36123_ACEOF
36124rm -f conftest.$ac_objext conftest$ac_exeext
36125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36126 (eval $ac_link) 2>conftest.er1
a848cd7e 36127 ac_status=$?
ac1cb8d3
VS
36128 grep -v '^ *+' conftest.er1 >conftest.err
36129 rm -f conftest.er1
36130 cat conftest.err >&5
a848cd7e
SC
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); } &&
c228d3a4
RN
36133 { ac_try='test -z "$ac_c_werror_flag"
36134 || test ! -s conftest.err'
ac1cb8d3
VS
36135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36136 (eval $ac_try) 2>&5
36137 ac_status=$?
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); }; } &&
36140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36142 (eval $ac_try) 2>&5
36143 ac_status=$?
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); }; }; then
36146 ac_cv_lib_unicows_main=yes
36147else
36148 echo "$as_me: failed program was:" >&5
36149sed 's/^/| /' conftest.$ac_ext >&5
36150
36151ac_cv_lib_unicows_main=no
36152fi
ac1cb8d3
VS
36153rm -f conftest.err conftest.$ac_objext \
36154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36155LIBS=$ac_check_lib_save_LIBS
36156fi
36157echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36158echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36159if test $ac_cv_lib_unicows_main = yes; then
36160
36161 cat >>confdefs.h <<\_ACEOF
36162#define wxUSE_UNICODE_MSLU 1
36163_ACEOF
36164
36165
36166else
36167
36168 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36169 Applications will only run on Windows NT/2000/XP!" >&5
36170echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36171 Applications will only run on Windows NT/2000/XP!" >&2;}
36172 wxUSE_UNICODE_MSLU=no
36173
36174fi
36175
36176 fi
36177fi
36178
36179if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36180 cat >>confdefs.h <<\_ACEOF
36181#define wxUSE_EXPERIMENTAL_PRINTF 1
36182_ACEOF
36183
36184fi
36185
36186
36187if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36188 cat >>confdefs.h <<\_ACEOF
36189#define wxUSE_POSTSCRIPT 1
36190_ACEOF
36191
36192fi
36193
36194cat >>confdefs.h <<\_ACEOF
36195#define wxUSE_AFM_FOR_POSTSCRIPT 1
36196_ACEOF
36197
36198
36199cat >>confdefs.h <<\_ACEOF
36200#define wxUSE_NORMALIZED_PS_FONTS 1
36201_ACEOF
36202
36203
36204
36205if test "$wxUSE_CONSTRAINTS" = "yes"; then
36206 cat >>confdefs.h <<\_ACEOF
36207#define wxUSE_CONSTRAINTS 1
36208_ACEOF
36209
36210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36211fi
36212
8a7b1113
VZ
36213if test "$wxUSE_MDI" = "yes"; then
36214 cat >>confdefs.h <<\_ACEOF
36215#define wxUSE_MDI 1
36216_ACEOF
36217
36218
36219 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36220 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36221#define wxUSE_MDI_ARCHITECTURE 1
36222_ACEOF
36223
8a7b1113
VZ
36224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36225 fi
a848cd7e
SC
36226fi
36227
36228if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36229 cat >>confdefs.h <<\_ACEOF
36230#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36231_ACEOF
36232
36233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36234 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36236 fi
36237fi
36238
36239if test "$wxUSE_HELP" = "yes"; then
36240 cat >>confdefs.h <<\_ACEOF
36241#define wxUSE_HELP 1
36242_ACEOF
36243
36244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36245
36246 if test "$wxUSE_MSW" = 1; then
36247 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36248 cat >>confdefs.h <<\_ACEOF
36249#define wxUSE_MS_HTML_HELP 1
36250_ACEOF
36251
36252 fi
36253 fi
36254
36255 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36256 if test "$wxUSE_HTML" = "yes"; then
36257 cat >>confdefs.h <<\_ACEOF
36258#define wxUSE_WXHTML_HELP 1
36259_ACEOF
36260
36261 else
36262 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36263echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36264 wxUSE_WXHTML_HELP=no
36265 fi
36266 fi
36267fi
36268
36269if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36270 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36271 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36272echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36273 else
36274 cat >>confdefs.h <<\_ACEOF
36275#define wxUSE_PRINTING_ARCHITECTURE 1
36276_ACEOF
36277
36278 fi
36279 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36280fi
36281
36282if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36283 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36284echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36285 { (exit 1); exit 1; }; }
36286fi
36287
36288
36289if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36290 -o "$wxUSE_CLIPBOARD" = "yes" \
36291 -o "$wxUSE_OLE" = "yes" \
36292 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36293
36294for ac_header in ole2.h
36295do
36296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36297if eval "test \"\${$as_ac_Header+set}\" = set"; then
36298 echo "$as_me:$LINENO: checking for $ac_header" >&5
36299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36300if eval "test \"\${$as_ac_Header+set}\" = set"; then
36301 echo $ECHO_N "(cached) $ECHO_C" >&6
36302fi
36303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36305else
36306 # Is the header compilable?
36307echo "$as_me:$LINENO: checking $ac_header usability" >&5
36308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36309cat >conftest.$ac_ext <<_ACEOF
36310/* confdefs.h. */
36311_ACEOF
36312cat confdefs.h >>conftest.$ac_ext
36313cat >>conftest.$ac_ext <<_ACEOF
36314/* end confdefs.h. */
36315$ac_includes_default
36316#include <$ac_header>
36317_ACEOF
36318rm -f conftest.$ac_objext
36319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36320 (eval $ac_compile) 2>conftest.er1
a848cd7e 36321 ac_status=$?
ac1cb8d3
VS
36322 grep -v '^ *+' conftest.er1 >conftest.err
36323 rm -f conftest.er1
36324 cat conftest.err >&5
a848cd7e
SC
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); } &&
c228d3a4
RN
36327 { ac_try='test -z "$ac_c_werror_flag"
36328 || test ! -s conftest.err'
ac1cb8d3
VS
36329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330 (eval $ac_try) 2>&5
36331 ac_status=$?
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); }; } &&
36334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336 (eval $ac_try) 2>&5
36337 ac_status=$?
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); }; }; then
36340 ac_header_compiler=yes
36341else
36342 echo "$as_me: failed program was:" >&5
36343sed 's/^/| /' conftest.$ac_ext >&5
36344
36345ac_header_compiler=no
36346fi
ac1cb8d3 36347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36349echo "${ECHO_T}$ac_header_compiler" >&6
36350
36351# Is the header present?
36352echo "$as_me:$LINENO: checking $ac_header presence" >&5
36353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36354cat >conftest.$ac_ext <<_ACEOF
36355/* confdefs.h. */
36356_ACEOF
36357cat confdefs.h >>conftest.$ac_ext
36358cat >>conftest.$ac_ext <<_ACEOF
36359/* end confdefs.h. */
36360#include <$ac_header>
36361_ACEOF
36362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36364 ac_status=$?
36365 grep -v '^ *+' conftest.er1 >conftest.err
36366 rm -f conftest.er1
36367 cat conftest.err >&5
36368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 (exit $ac_status); } >/dev/null; then
36370 if test -s conftest.err; then
36371 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36373 else
36374 ac_cpp_err=
36375 fi
36376else
36377 ac_cpp_err=yes
36378fi
36379if test -z "$ac_cpp_err"; then
36380 ac_header_preproc=yes
36381else
36382 echo "$as_me: failed program was:" >&5
36383sed 's/^/| /' conftest.$ac_ext >&5
36384
36385 ac_header_preproc=no
36386fi
36387rm -f conftest.err conftest.$ac_ext
36388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36389echo "${ECHO_T}$ac_header_preproc" >&6
36390
36391# So? What about this header?
ac1cb8d3
VS
36392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36393 yes:no: )
a848cd7e
SC
36394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36398 ac_header_preproc=yes
a848cd7e 36399 ;;
ac1cb8d3 36400 no:yes:* )
a848cd7e
SC
36401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36413 (
36414 cat <<\_ASBOX
ac1cb8d3
VS
36415## ----------------------------------------- ##
36416## Report this to wx-dev@lists.wxwidgets.org ##
36417## ----------------------------------------- ##
a848cd7e
SC
36418_ASBOX
36419 ) |
36420 sed "s/^/$as_me: WARNING: /" >&2
36421 ;;
36422esac
36423echo "$as_me:$LINENO: checking for $ac_header" >&5
36424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36425if eval "test \"\${$as_ac_Header+set}\" = set"; then
36426 echo $ECHO_N "(cached) $ECHO_C" >&6
36427else
ac1cb8d3 36428 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36429fi
36430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36432
36433fi
36434if test `eval echo '${'$as_ac_Header'}'` = yes; then
36435 cat >>confdefs.h <<_ACEOF
36436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36437_ACEOF
36438
36439fi
36440
36441done
36442
36443
36444 if test "$ac_cv_header_ole2_h" = "yes" ; then
36445 if test "$GCC" = yes ; then
36446
36447
36448 ac_ext=cc
36449ac_cpp='$CXXCPP $CPPFLAGS'
36450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36453
36454
36455 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36456echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36457 cat >conftest.$ac_ext <<_ACEOF
36458/* confdefs.h. */
36459_ACEOF
36460cat confdefs.h >>conftest.$ac_ext
36461cat >>conftest.$ac_ext <<_ACEOF
36462/* end confdefs.h. */
36463#include <windows.h>
36464 #include <ole2.h>
36465int
36466main ()
36467{
36468
36469 ;
36470 return 0;
36471}
36472_ACEOF
36473rm -f conftest.$ac_objext
36474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36475 (eval $ac_compile) 2>conftest.er1
a848cd7e 36476 ac_status=$?
ac1cb8d3
VS
36477 grep -v '^ *+' conftest.er1 >conftest.err
36478 rm -f conftest.er1
36479 cat conftest.err >&5
a848cd7e
SC
36480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481 (exit $ac_status); } &&
c228d3a4
RN
36482 { ac_try='test -z "$ac_cxx_werror_flag"
36483 || test ! -s conftest.err'
ac1cb8d3
VS
36484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36485 (eval $ac_try) 2>&5
36486 ac_status=$?
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); }; } &&
36489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491 (eval $ac_try) 2>&5
36492 ac_status=$?
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); }; }; then
36495 echo "$as_me:$LINENO: result: no" >&5
36496echo "${ECHO_T}no" >&6
36497else
36498 echo "$as_me: failed program was:" >&5
36499sed 's/^/| /' conftest.$ac_ext >&5
36500
36501echo "$as_me:$LINENO: result: yes" >&5
36502echo "${ECHO_T}yes" >&6
36503 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36504fi
ac1cb8d3 36505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36506 ac_ext=c
36507ac_cpp='$CPP $CPPFLAGS'
36508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36510ac_compiler_gnu=$ac_cv_c_compiler_gnu
36511
a848cd7e
SC
36512 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36513 if test "$wxUSE_OLE" = "yes" ; then
36514 cat >>confdefs.h <<\_ACEOF
36515#define wxUSE_OLE 1
36516_ACEOF
36517
36518 fi
36519 fi
36520
36521 if test "$wxUSE_DATAOBJ" = "yes" ; then
36522 cat >>confdefs.h <<\_ACEOF
36523#define wxUSE_DATAOBJ 1
36524_ACEOF
36525
36526 fi
36527 else
36528 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36529echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36530
36531 wxUSE_CLIPBOARD=no
36532 wxUSE_DRAG_AND_DROP=no
36533 wxUSE_DATAOBJ=no
36534 wxUSE_OLE=no
36535 fi
36536
36537 if test "$wxUSE_METAFILE" = "yes"; then
36538 cat >>confdefs.h <<\_ACEOF
36539#define wxUSE_METAFILE 1
36540_ACEOF
36541
36542
36543 cat >>confdefs.h <<\_ACEOF
36544#define wxUSE_ENH_METAFILE 1
36545_ACEOF
36546
36547 fi
36548fi
36549
36550if test "$wxUSE_IPC" = "yes"; then
36551 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36552 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36553echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36554 fi
36555
36556 cat >>confdefs.h <<\_ACEOF
36557#define wxUSE_IPC 1
36558_ACEOF
36559
36560fi
36561
36562if test "$wxUSE_CLIPBOARD" = "yes"; then
36563 if test "$wxUSE_MGL" = 1; then
36564 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36565echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36566 wxUSE_CLIPBOARD=no
36567 fi
36568
36569 if test "$wxUSE_CLIPBOARD" = "yes"; then
36570 cat >>confdefs.h <<\_ACEOF
36571#define wxUSE_CLIPBOARD 1
36572_ACEOF
36573
36574
36575 cat >>confdefs.h <<\_ACEOF
36576#define wxUSE_DATAOBJ 1
36577_ACEOF
36578
36579 fi
36580fi
36581
36582if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36583 if test "$wxUSE_GTK" = 1; then
36584 if test "$WXGTK12" != 1; then
36585 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36586echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36587 wxUSE_DRAG_AND_DROP=no
36588 fi
36589 fi
36590
36591 if test "$wxUSE_MOTIF" = 1; then
36592 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36593echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36594 wxUSE_DRAG_AND_DROP=no
36595 fi
36596
36597 if test "$wxUSE_X11" = 1; then
36598 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36599echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36600 wxUSE_DRAG_AND_DROP=no
36601 fi
36602
36603 if test "$wxUSE_MGL" = 1; then
36604 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36605echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36606 wxUSE_DRAG_AND_DROP=no
36607 fi
36608
36609 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36610 cat >>confdefs.h <<\_ACEOF
36611#define wxUSE_DRAG_AND_DROP 1
36612_ACEOF
36613
36614 fi
36615
36616fi
36617
36618if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36620fi
36621
36622if test "$wxUSE_SPLINES" = "yes" ; then
36623 cat >>confdefs.h <<\_ACEOF
36624#define wxUSE_SPLINES 1
36625_ACEOF
36626
36627fi
36628
36629
36630USES_CONTROLS=0
36631if test "$wxUSE_CONTROLS" = "yes"; then
36632 USES_CONTROLS=1
36633fi
36634
36635if test "$wxUSE_ACCEL" = "yes"; then
36636 cat >>confdefs.h <<\_ACEOF
36637#define wxUSE_ACCEL 1
36638_ACEOF
36639
36640 USES_CONTROLS=1
36641fi
36642
36643if test "$wxUSE_BUTTON" = "yes"; then
36644 cat >>confdefs.h <<\_ACEOF
36645#define wxUSE_BUTTON 1
36646_ACEOF
36647
36648 USES_CONTROLS=1
36649fi
36650
36651if test "$wxUSE_BMPBUTTON" = "yes"; then
36652 cat >>confdefs.h <<\_ACEOF
36653#define wxUSE_BMPBUTTON 1
36654_ACEOF
36655
36656 USES_CONTROLS=1
36657fi
36658
36659if test "$wxUSE_CALCTRL" = "yes"; then
36660 cat >>confdefs.h <<\_ACEOF
36661#define wxUSE_CALENDARCTRL 1
36662_ACEOF
36663
36664 USES_CONTROLS=1
36665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36666fi
36667
36668if test "$wxUSE_CARET" = "yes"; then
36669 cat >>confdefs.h <<\_ACEOF
36670#define wxUSE_CARET 1
36671_ACEOF
36672
36673 USES_CONTROLS=1
36674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36675fi
36676
36677if test "$wxUSE_COMBOBOX" = "yes"; then
36678 cat >>confdefs.h <<\_ACEOF
36679#define wxUSE_COMBOBOX 1
36680_ACEOF
36681
36682 USES_CONTROLS=1
36683fi
36684
36685if test "$wxUSE_CHOICE" = "yes"; then
36686 cat >>confdefs.h <<\_ACEOF
36687#define wxUSE_CHOICE 1
36688_ACEOF
36689
36690 USES_CONTROLS=1
36691fi
36692
92bbdbcd
WS
36693if test "$wxUSE_CHOICEBOOK" = "yes"; then
36694 cat >>confdefs.h <<\_ACEOF
36695#define wxUSE_CHOICEBOOK 1
36696_ACEOF
36697
36698 USES_CONTROLS=1
36699fi
36700
a848cd7e
SC
36701if test "$wxUSE_CHECKBOX" = "yes"; then
36702 cat >>confdefs.h <<\_ACEOF
36703#define wxUSE_CHECKBOX 1
36704_ACEOF
36705
36706 USES_CONTROLS=1
36707fi
36708
36709if test "$wxUSE_CHECKLST" = "yes"; then
36710 cat >>confdefs.h <<\_ACEOF
36711#define wxUSE_CHECKLISTBOX 1
36712_ACEOF
36713
36714 USES_CONTROLS=1
36715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36716fi
36717
36718if test "$wxUSE_DISPLAY" = "yes"; then
36719 cat >>confdefs.h <<\_ACEOF
36720#define wxUSE_DISPLAY 1
36721_ACEOF
36722
36723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36724fi
36725
36726if test "$wxUSE_GAUGE" = "yes"; then
36727 cat >>confdefs.h <<\_ACEOF
36728#define wxUSE_GAUGE 1
36729_ACEOF
36730
36731 USES_CONTROLS=1
36732fi
36733
36734if test "$wxUSE_GRID" = "yes"; then
36735 cat >>confdefs.h <<\_ACEOF
36736#define wxUSE_GRID 1
36737_ACEOF
36738
36739 USES_CONTROLS=1
36740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36741fi
36742
36743if test "$wxUSE_IMAGLIST" = "yes"; then
36744 cat >>confdefs.h <<\_ACEOF
36745#define wxUSE_IMAGLIST 1
36746_ACEOF
36747
36748fi
36749
36750if test "$wxUSE_LISTBOOK" = "yes"; then
36751 cat >>confdefs.h <<\_ACEOF
36752#define wxUSE_LISTBOOK 1
36753_ACEOF
36754
36755 USES_CONTROLS=1
36756fi
36757
36758if test "$wxUSE_LISTBOX" = "yes"; then
36759 cat >>confdefs.h <<\_ACEOF
36760#define wxUSE_LISTBOX 1
36761_ACEOF
36762
36763 USES_CONTROLS=1
36764fi
36765
36766if test "$wxUSE_LISTCTRL" = "yes"; then
36767 if test "$wxUSE_IMAGLIST" = "yes"; then
36768 cat >>confdefs.h <<\_ACEOF
36769#define wxUSE_LISTCTRL 1
36770_ACEOF
36771
36772 USES_CONTROLS=1
36773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36774 else
36775 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36776echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36777 fi
36778fi
36779
36780if test "$wxUSE_NOTEBOOK" = "yes"; then
36781 cat >>confdefs.h <<\_ACEOF
36782#define wxUSE_NOTEBOOK 1
36783_ACEOF
36784
36785 USES_CONTROLS=1
36786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36787fi
36788
36789
36790if test "$wxUSE_RADIOBOX" = "yes"; then
36791 cat >>confdefs.h <<\_ACEOF
36792#define wxUSE_RADIOBOX 1
36793_ACEOF
36794
36795 USES_CONTROLS=1
36796fi
36797
36798if test "$wxUSE_RADIOBTN" = "yes"; then
36799 cat >>confdefs.h <<\_ACEOF
36800#define wxUSE_RADIOBTN 1
36801_ACEOF
36802
36803 USES_CONTROLS=1
36804fi
36805
36806if test "$wxUSE_SASH" = "yes"; then
36807 cat >>confdefs.h <<\_ACEOF
36808#define wxUSE_SASH 1
36809_ACEOF
36810
36811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36812fi
36813
36814if test "$wxUSE_SCROLLBAR" = "yes"; then
36815 cat >>confdefs.h <<\_ACEOF
36816#define wxUSE_SCROLLBAR 1
36817_ACEOF
36818
36819 USES_CONTROLS=1
36820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36821fi
36822
36823if test "$wxUSE_SLIDER" = "yes"; then
36824 cat >>confdefs.h <<\_ACEOF
36825#define wxUSE_SLIDER 1
36826_ACEOF
36827
36828 USES_CONTROLS=1
36829fi
36830
36831if test "$wxUSE_SPINBTN" = "yes"; then
36832 cat >>confdefs.h <<\_ACEOF
36833#define wxUSE_SPINBTN 1
36834_ACEOF
36835
36836 USES_CONTROLS=1
36837fi
36838
36839if test "$wxUSE_SPINCTRL" = "yes"; then
36840 cat >>confdefs.h <<\_ACEOF
36841#define wxUSE_SPINCTRL 1
36842_ACEOF
36843
36844 USES_CONTROLS=1
36845fi
36846
36847if test "$wxUSE_SPLITTER" = "yes"; then
36848 cat >>confdefs.h <<\_ACEOF
36849#define wxUSE_SPLITTER 1
36850_ACEOF
36851
36852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36853fi
36854
36855if test "$wxUSE_STATBMP" = "yes"; then
36856 cat >>confdefs.h <<\_ACEOF
36857#define wxUSE_STATBMP 1
36858_ACEOF
36859
36860 USES_CONTROLS=1
36861fi
36862
36863if test "$wxUSE_STATBOX" = "yes"; then
36864 cat >>confdefs.h <<\_ACEOF
36865#define wxUSE_STATBOX 1
36866_ACEOF
36867
36868 USES_CONTROLS=1
36869fi
36870
36871if test "$wxUSE_STATTEXT" = "yes"; then
36872 cat >>confdefs.h <<\_ACEOF
36873#define wxUSE_STATTEXT 1
36874_ACEOF
36875
36876 USES_CONTROLS=1
36877fi
36878
36879if test "$wxUSE_STATLINE" = "yes"; then
36880 cat >>confdefs.h <<\_ACEOF
36881#define wxUSE_STATLINE 1
36882_ACEOF
36883
36884 USES_CONTROLS=1
36885fi
36886
36887if test "$wxUSE_STATUSBAR" = "yes"; then
36888 cat >>confdefs.h <<\_ACEOF
36889#define wxUSE_STATUSBAR 1
36890_ACEOF
36891
36892 USES_CONTROLS=1
36893
36894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36895fi
36896
36897if test "$wxUSE_TABDIALOG" = "yes"; then
36898 cat >>confdefs.h <<\_ACEOF
36899#define wxUSE_TAB_DIALOG 1
36900_ACEOF
36901
36902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36903fi
36904
36905if test "$wxUSE_TEXTCTRL" = "yes"; then
36906 cat >>confdefs.h <<\_ACEOF
36907#define wxUSE_TEXTCTRL 1
36908_ACEOF
36909
36910 USES_CONTROLS=1
36911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36912fi
36913
36914if test "$wxUSE_TOGGLEBTN" = "yes"; then
36915 if test "$wxUSE_COCOA" = 1 ; then
36916 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36917echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36918 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36919 else
36920 if test "$wxUSE_PM" = 1; then
36921 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36922echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36923 wxUSE_TOGGLEBTN=no
36924 fi
a848cd7e
SC
36925 fi
36926 if test "$wxUSE_UNIVERSAL" = "yes"; then
36927 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36928echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36929 wxUSE_TOGGLEBTN=no
36930 fi
36931
36932 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36933 cat >>confdefs.h <<\_ACEOF
36934#define wxUSE_TOGGLEBTN 1
36935_ACEOF
36936
36937 USES_CONTROLS=1
36938 fi
36939fi
36940
36941if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36942 cat >>confdefs.h <<\_ACEOF
36943#define wxUSE_TOOLBAR_SIMPLE 1
36944_ACEOF
36945
36946 wxUSE_TOOLBAR="yes"
36947 USES_CONTROLS=1
36948fi
36949
36950if test "$wxUSE_TOOLBAR" = "yes"; then
36951 cat >>confdefs.h <<\_ACEOF
36952#define wxUSE_TOOLBAR 1
36953_ACEOF
36954
36955 USES_CONTROLS=1
36956
36957 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36958 wxUSE_TOOLBAR_NATIVE="yes"
36959 fi
36960
36961 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36962 cat >>confdefs.h <<\_ACEOF
36963#define wxUSE_TOOLBAR_NATIVE 1
36964_ACEOF
36965
36966 USES_CONTROLS=1
36967 fi
36968
36969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36970fi
36971
36972if test "$wxUSE_TOOLTIPS" = "yes"; then
36973 if test "$wxUSE_MOTIF" = 1; then
36974 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36975echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36976 else
36977 if test "$wxUSE_UNIVERSAL" = "yes"; then
36978 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36979echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36980 else
36981 cat >>confdefs.h <<\_ACEOF
36982#define wxUSE_TOOLTIPS 1
36983_ACEOF
36984
36985 fi
36986 fi
36987fi
36988
36989if test "$wxUSE_TREECTRL" = "yes"; then
36990 if test "$wxUSE_IMAGLIST" = "yes"; then
36991 cat >>confdefs.h <<\_ACEOF
36992#define wxUSE_TREECTRL 1
36993_ACEOF
36994
36995 USES_CONTROLS=1
36996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36997 else
36998 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36999echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37000 fi
37001fi
37002
37003if test "$wxUSE_POPUPWIN" = "yes"; then
37004 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37005 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37006echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37007 else
37008 if test "$wxUSE_PM" = 1; then
37009 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37010echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37011 else
37012 cat >>confdefs.h <<\_ACEOF
37013#define wxUSE_POPUPWIN 1
37014_ACEOF
37015
37016
37017 USES_CONTROLS=1
37018 fi
37019 fi
37020fi
37021
37022if test "$wxUSE_TIPWINDOW" = "yes"; then
37023 if test "$wxUSE_PM" = 1; then
37024 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37025echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37026 else
37027 cat >>confdefs.h <<\_ACEOF
37028#define wxUSE_TIPWINDOW 1
37029_ACEOF
37030
37031 fi
37032fi
37033
37034if test "$USES_CONTROLS" = 1; then
37035 cat >>confdefs.h <<\_ACEOF
37036#define wxUSE_CONTROLS 1
37037_ACEOF
37038
37039fi
37040
37041
37042if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37043 cat >>confdefs.h <<\_ACEOF
37044#define wxUSE_ACCESSIBILITY 1
37045_ACEOF
37046
37047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37048fi
37049
37050if test "$wxUSE_DRAGIMAGE" = "yes"; then
37051 cat >>confdefs.h <<\_ACEOF
37052#define wxUSE_DRAGIMAGE 1
37053_ACEOF
37054
37055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37056fi
37057
37058if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37059 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37060 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37061echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37062 else
37063 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37064#define wxUSE_EXCEPTIONS 1
37065_ACEOF
37066
07bea8f0
VS
37067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37068 fi
a848cd7e
SC
37069fi
37070
37071USE_HTML=0
37072if test "$wxUSE_HTML" = "yes"; then
37073 cat >>confdefs.h <<\_ACEOF
37074#define wxUSE_HTML 1
37075_ACEOF
37076
37077 USE_HTML=1
37078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37079 if test "$wxUSE_MAC" = 1; then
37080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37081 fi
a848cd7e 37082fi
646b6ec1 37083if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
37084 if test "$wxUSE_MAC" = 1; then
37085 old_CPPFLAGS="$CPPFLAGS"
37086 CPPFLAGS="$CPPFLAGS -x objective-c++"
37087 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37088echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37089if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37090 echo $ECHO_N "(cached) $ECHO_C" >&6
37091else
37092 cat >conftest.$ac_ext <<_ACEOF
37093/* confdefs.h. */
37094_ACEOF
37095cat confdefs.h >>conftest.$ac_ext
37096cat >>conftest.$ac_ext <<_ACEOF
37097/* end confdefs.h. */
37098#include <Carbon/Carbon.h>
37099
37100#include <WebKit/HIWebView.h>
37101_ACEOF
37102rm -f conftest.$ac_objext
37103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37104 (eval $ac_compile) 2>conftest.er1
37105 ac_status=$?
37106 grep -v '^ *+' conftest.er1 >conftest.err
37107 rm -f conftest.er1
37108 cat conftest.err >&5
37109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); } &&
c228d3a4
RN
37111 { ac_try='test -z "$ac_c_werror_flag"
37112 || test ! -s conftest.err'
07bea8f0
VS
37113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114 (eval $ac_try) 2>&5
37115 ac_status=$?
37116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117 (exit $ac_status); }; } &&
37118 { ac_try='test -s conftest.$ac_objext'
37119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37120 (eval $ac_try) 2>&5
37121 ac_status=$?
37122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); }; }; then
37124 ac_cv_header_WebKit_HIWebView_h=yes
37125else
37126 echo "$as_me: failed program was:" >&5
37127sed 's/^/| /' conftest.$ac_ext >&5
37128
37129ac_cv_header_WebKit_HIWebView_h=no
37130fi
37131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37132fi
37133echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37134echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37135if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37136
37137 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37138#define wxUSE_WEBKIT 1
37139_ACEOF
37140
07bea8f0
VS
37141 WEBKIT_LINK="-framework WebKit"
37142
37143else
37144
37145 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37146echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37147 wxUSE_WEBKIT=no
37148
646b6ec1
VS
37149fi
37150
07bea8f0
VS
37151
37152 CPPFLAGS="$old_CPPFLAGS"
37153 elif test "$wxUSE_COCOA" = 1; then
37154 cat >>confdefs.h <<\_ACEOF
37155#define wxUSE_WEBKIT 1
37156_ACEOF
37157
37158 else
37159 wxUSE_WEBKIT=no
37160 fi
37161fi
37162
9a8f0513
VS
37163USE_XRC=0
37164if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37165 if test "$wxUSE_XML" != "yes"; then
37166 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37167echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37168 wxUSE_XRC=no
37169 else
37170 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37171#define wxUSE_XRC 1
37172_ACEOF
37173
d2ebf0b7
VS
37174 USE_XRC=1
37175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37176 fi
9a8f0513 37177fi
07bea8f0 37178
a848cd7e
SC
37179if test "$wxUSE_MENUS" = "yes"; then
37180 cat >>confdefs.h <<\_ACEOF
37181#define wxUSE_MENUS 1
37182_ACEOF
37183
37184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37185fi
37186
37187if test "$wxUSE_METAFILE" = "yes"; then
37188 cat >>confdefs.h <<\_ACEOF
37189#define wxUSE_METAFILE 1
37190_ACEOF
37191
37192fi
37193
37194if test "$wxUSE_MIMETYPE" = "yes"; then
37195 cat >>confdefs.h <<\_ACEOF
37196#define wxUSE_MIMETYPE 1
37197_ACEOF
37198
37199fi
37200
37201if test "$wxUSE_MINIFRAME" = "yes"; then
37202 cat >>confdefs.h <<\_ACEOF
37203#define wxUSE_MINIFRAME 1
37204_ACEOF
37205
37206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37207fi
37208
37209if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37210 cat >>confdefs.h <<\_ACEOF
37211#define wxUSE_SYSTEM_OPTIONS 1
37212_ACEOF
37213
37214 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37215 "$TOOLKIT" = "MOTIF"; then
37216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37217 fi
37218fi
37219
37220
37221if test "$wxUSE_VALIDATORS" = "yes"; then
37222 cat >>confdefs.h <<\_ACEOF
37223#define wxUSE_VALIDATORS 1
37224_ACEOF
37225
37226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37227fi
37228
37229if test "$wxUSE_PALETTE" = "yes" ; then
37230 cat >>confdefs.h <<\_ACEOF
37231#define wxUSE_PALETTE 1
37232_ACEOF
37233
37234fi
37235
37236if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37237 LIBS=" -lunicows $LIBS"
37238fi
37239
37240
37241if test "$wxUSE_IMAGE" = "yes" ; then
37242 cat >>confdefs.h <<\_ACEOF
37243#define wxUSE_IMAGE 1
37244_ACEOF
37245
37246
37247 if test "$wxUSE_GIF" = "yes" ; then
37248 cat >>confdefs.h <<\_ACEOF
37249#define wxUSE_GIF 1
37250_ACEOF
37251
37252 fi
37253
37254 if test "$wxUSE_PCX" = "yes" ; then
37255 cat >>confdefs.h <<\_ACEOF
37256#define wxUSE_PCX 1
37257_ACEOF
37258
37259 fi
37260
37261 if test "$wxUSE_IFF" = "yes" ; then
37262 cat >>confdefs.h <<\_ACEOF
37263#define wxUSE_IFF 1
37264_ACEOF
37265
37266 fi
37267
37268 if test "$wxUSE_PNM" = "yes" ; then
37269 cat >>confdefs.h <<\_ACEOF
37270#define wxUSE_PNM 1
37271_ACEOF
37272
37273 fi
37274
37275 if test "$wxUSE_XPM" = "yes" ; then
37276 cat >>confdefs.h <<\_ACEOF
37277#define wxUSE_XPM 1
37278_ACEOF
37279
37280 fi
37281
37282 if test "$wxUSE_ICO_CUR" = "yes" ; then
37283 cat >>confdefs.h <<\_ACEOF
37284#define wxUSE_ICO_CUR 1
37285_ACEOF
37286
37287 fi
37288fi
37289
37290
37291if test "$wxUSE_CHOICEDLG" = "yes"; then
37292 cat >>confdefs.h <<\_ACEOF
37293#define wxUSE_CHOICEDLG 1
37294_ACEOF
37295
37296fi
37297
37298if test "$wxUSE_COLOURDLG" = "yes"; then
37299 cat >>confdefs.h <<\_ACEOF
37300#define wxUSE_COLOURDLG 1
37301_ACEOF
37302
37303fi
37304
37305if test "$wxUSE_FILEDLG" = "yes"; then
37306 cat >>confdefs.h <<\_ACEOF
37307#define wxUSE_FILEDLG 1
37308_ACEOF
37309
37310fi
37311
37312if test "$wxUSE_FINDREPLDLG" = "yes"; then
37313 cat >>confdefs.h <<\_ACEOF
37314#define wxUSE_FINDREPLDLG 1
37315_ACEOF
37316
37317fi
37318
37319if test "$wxUSE_FONTDLG" = "yes"; then
37320 cat >>confdefs.h <<\_ACEOF
37321#define wxUSE_FONTDLG 1
37322_ACEOF
37323
37324fi
37325
37326if test "$wxUSE_DIRDLG" = "yes"; then
37327 if test "$wxUSE_TREECTRL" != "yes"; then
37328 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37329echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37330 else
37331 cat >>confdefs.h <<\_ACEOF
37332#define wxUSE_DIRDLG 1
37333_ACEOF
37334
37335 fi
37336fi
37337
37338if test "$wxUSE_MSGDLG" = "yes"; then
37339 cat >>confdefs.h <<\_ACEOF
37340#define wxUSE_MSGDLG 1
37341_ACEOF
37342
37343fi
37344
37345if test "$wxUSE_NUMBERDLG" = "yes"; then
37346 cat >>confdefs.h <<\_ACEOF
37347#define wxUSE_NUMBERDLG 1
37348_ACEOF
37349
37350fi
37351
37352if test "$wxUSE_PROGRESSDLG" = "yes"; then
37353 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37354 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37355echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37356 else
37357 cat >>confdefs.h <<\_ACEOF
37358#define wxUSE_PROGRESSDLG 1
37359_ACEOF
37360
37361 fi
37362fi
37363
37364if test "$wxUSE_SPLASH" = "yes"; then
37365 cat >>confdefs.h <<\_ACEOF
37366#define wxUSE_SPLASH 1
37367_ACEOF
37368
2057db16 37369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37370fi
37371
37372if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37373 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37374 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37375echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37376 else
37377 cat >>confdefs.h <<\_ACEOF
37378#define wxUSE_STARTUP_TIPS 1
37379_ACEOF
37380
37381 fi
37382fi
37383
37384if test "$wxUSE_TEXTDLG" = "yes"; then
37385 cat >>confdefs.h <<\_ACEOF
37386#define wxUSE_TEXTDLG 1
37387_ACEOF
37388
37389fi
37390
37391if test "$wxUSE_WIZARDDLG" = "yes"; then
37392 cat >>confdefs.h <<\_ACEOF
37393#define wxUSE_WIZARDDLG 1
37394_ACEOF
37395
37396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37397fi
37398
37399
37400if test "$cross_compiling" = "yes"; then
37401 OSINFO="\"$host\""
37402else
37403 OSINFO=`uname -s -r -m`
37404 OSINFO="\"$OSINFO\""
37405fi
37406
37407cat >>confdefs.h <<_ACEOF
37408#define WXWIN_OS_DESCRIPTION $OSINFO
37409_ACEOF
37410
37411
37412
37413if test "x$prefix" != "xNONE"; then
37414 wxPREFIX=$prefix
37415else
37416 wxPREFIX=$ac_default_prefix
37417fi
37418
37419cat >>confdefs.h <<_ACEOF
37420#define wxINSTALL_PREFIX "$wxPREFIX"
37421_ACEOF
37422
37423
a848cd7e
SC
37424
37425
37426CORE_BASE_LIBS="net base"
37427CORE_GUI_LIBS="adv core"
37428
37429if test "$wxUSE_XML" = "yes" ; then
37430 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37431fi
37432if test "$wxUSE_ODBC" != "no" ; then
37433 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37434 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37435fi
37436if test "$wxUSE_HTML" = "yes" ; then
37437 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37438fi
9a8f0513
VS
37439if test "$wxUSE_XRC" = "yes" ; then
37440 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37441fi
a848cd7e
SC
37442
37443if test "$wxUSE_GUI" != "yes"; then
37444 CORE_GUI_LIBS=""
37445fi
37446
37447
37448
37449
37450
37451
37452
37453
37454if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37455 if test "$wxUSE_SOUND" = "yes"; then
37456 LDFLAGS="$LDFLAGS -framework QuickTime"
37457 fi
5dcf30a0
RN
37458 if test "$USE_DARWIN" = 1; then
37459 LDFLAGS="$LDFLAGS -framework IOKit"
37460 fi
07bea8f0 37461 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37462fi
37463if test "$wxUSE_COCOA" = 1 ; then
37464 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37465fi
37466
37467
37468LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37469
37470have_cos=0
37471have_floor=0
37472
37473for ac_func in cos
37474do
37475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37476echo "$as_me:$LINENO: checking for $ac_func" >&5
37477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37478if eval "test \"\${$as_ac_var+set}\" = set"; then
37479 echo $ECHO_N "(cached) $ECHO_C" >&6
37480else
37481 cat >conftest.$ac_ext <<_ACEOF
37482/* confdefs.h. */
37483_ACEOF
37484cat confdefs.h >>conftest.$ac_ext
37485cat >>conftest.$ac_ext <<_ACEOF
37486/* end confdefs.h. */
ac1cb8d3
VS
37487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37489#define $ac_func innocuous_$ac_func
37490
a848cd7e
SC
37491/* System header to define __stub macros and hopefully few prototypes,
37492 which can conflict with char $ac_func (); below.
37493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37494 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37495
a848cd7e
SC
37496#ifdef __STDC__
37497# include <limits.h>
37498#else
37499# include <assert.h>
37500#endif
ac1cb8d3
VS
37501
37502#undef $ac_func
37503
a848cd7e
SC
37504/* Override any gcc2 internal prototype to avoid an error. */
37505#ifdef __cplusplus
37506extern "C"
37507{
37508#endif
37509/* We use char because int might match the return type of a gcc2
37510 builtin and then its argument prototype would still apply. */
37511char $ac_func ();
37512/* The GNU C library defines this for functions which it implements
37513 to always fail with ENOSYS. Some functions are actually named
37514 something starting with __ and the normal name is an alias. */
37515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37516choke me
37517#else
37518char (*f) () = $ac_func;
37519#endif
37520#ifdef __cplusplus
37521}
37522#endif
37523
37524int
37525main ()
37526{
37527return f != $ac_func;
37528 ;
37529 return 0;
37530}
37531_ACEOF
37532rm -f conftest.$ac_objext conftest$ac_exeext
37533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37534 (eval $ac_link) 2>conftest.er1
a848cd7e 37535 ac_status=$?
ac1cb8d3
VS
37536 grep -v '^ *+' conftest.er1 >conftest.err
37537 rm -f conftest.er1
37538 cat conftest.err >&5
a848cd7e
SC
37539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540 (exit $ac_status); } &&
c228d3a4
RN
37541 { ac_try='test -z "$ac_c_werror_flag"
37542 || test ! -s conftest.err'
ac1cb8d3
VS
37543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37544 (eval $ac_try) 2>&5
37545 ac_status=$?
37546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547 (exit $ac_status); }; } &&
37548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37550 (eval $ac_try) 2>&5
37551 ac_status=$?
37552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553 (exit $ac_status); }; }; then
37554 eval "$as_ac_var=yes"
37555else
37556 echo "$as_me: failed program was:" >&5
37557sed 's/^/| /' conftest.$ac_ext >&5
37558
37559eval "$as_ac_var=no"
37560fi
ac1cb8d3
VS
37561rm -f conftest.err conftest.$ac_objext \
37562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37563fi
37564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37566if test `eval echo '${'$as_ac_var'}'` = yes; then
37567 cat >>confdefs.h <<_ACEOF
37568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37569_ACEOF
37570 have_cos=1
37571fi
37572done
37573
37574
37575for ac_func in floor
37576do
37577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37578echo "$as_me:$LINENO: checking for $ac_func" >&5
37579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37580if eval "test \"\${$as_ac_var+set}\" = set"; then
37581 echo $ECHO_N "(cached) $ECHO_C" >&6
37582else
37583 cat >conftest.$ac_ext <<_ACEOF
37584/* confdefs.h. */
37585_ACEOF
37586cat confdefs.h >>conftest.$ac_ext
37587cat >>conftest.$ac_ext <<_ACEOF
37588/* end confdefs.h. */
ac1cb8d3
VS
37589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37591#define $ac_func innocuous_$ac_func
37592
a848cd7e
SC
37593/* System header to define __stub macros and hopefully few prototypes,
37594 which can conflict with char $ac_func (); below.
37595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37596 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37597
a848cd7e
SC
37598#ifdef __STDC__
37599# include <limits.h>
37600#else
37601# include <assert.h>
37602#endif
ac1cb8d3
VS
37603
37604#undef $ac_func
37605
a848cd7e
SC
37606/* Override any gcc2 internal prototype to avoid an error. */
37607#ifdef __cplusplus
37608extern "C"
37609{
37610#endif
37611/* We use char because int might match the return type of a gcc2
37612 builtin and then its argument prototype would still apply. */
37613char $ac_func ();
37614/* The GNU C library defines this for functions which it implements
37615 to always fail with ENOSYS. Some functions are actually named
37616 something starting with __ and the normal name is an alias. */
37617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37618choke me
37619#else
37620char (*f) () = $ac_func;
37621#endif
37622#ifdef __cplusplus
37623}
37624#endif
37625
37626int
37627main ()
37628{
37629return f != $ac_func;
37630 ;
37631 return 0;
37632}
37633_ACEOF
37634rm -f conftest.$ac_objext conftest$ac_exeext
37635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37636 (eval $ac_link) 2>conftest.er1
a848cd7e 37637 ac_status=$?
ac1cb8d3
VS
37638 grep -v '^ *+' conftest.er1 >conftest.err
37639 rm -f conftest.er1
37640 cat conftest.err >&5
a848cd7e
SC
37641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642 (exit $ac_status); } &&
c228d3a4
RN
37643 { ac_try='test -z "$ac_c_werror_flag"
37644 || test ! -s conftest.err'
ac1cb8d3
VS
37645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37646 (eval $ac_try) 2>&5
37647 ac_status=$?
37648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649 (exit $ac_status); }; } &&
37650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37652 (eval $ac_try) 2>&5
37653 ac_status=$?
37654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655 (exit $ac_status); }; }; then
37656 eval "$as_ac_var=yes"
37657else
37658 echo "$as_me: failed program was:" >&5
37659sed 's/^/| /' conftest.$ac_ext >&5
37660
37661eval "$as_ac_var=no"
37662fi
ac1cb8d3
VS
37663rm -f conftest.err conftest.$ac_objext \
37664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37665fi
37666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37668if test `eval echo '${'$as_ac_var'}'` = yes; then
37669 cat >>confdefs.h <<_ACEOF
37670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37671_ACEOF
37672 have_floor=1
37673fi
37674done
37675
37676echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37677echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37678if test "$have_cos" = 1 -a "$have_floor" = 1; then
37679 echo "$as_me:$LINENO: result: yes" >&5
37680echo "${ECHO_T}yes" >&6
37681else
37682 echo "$as_me:$LINENO: result: no" >&5
37683echo "${ECHO_T}no" >&6
37684 LIBS="$LIBS -lm"
37685 # use different functions to avoid configure caching
37686 have_sin=0
37687 have_ceil=0
37688
37689for ac_func in sin
37690do
37691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37692echo "$as_me:$LINENO: checking for $ac_func" >&5
37693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37694if eval "test \"\${$as_ac_var+set}\" = set"; then
37695 echo $ECHO_N "(cached) $ECHO_C" >&6
37696else
37697 cat >conftest.$ac_ext <<_ACEOF
37698/* confdefs.h. */
37699_ACEOF
37700cat confdefs.h >>conftest.$ac_ext
37701cat >>conftest.$ac_ext <<_ACEOF
37702/* end confdefs.h. */
ac1cb8d3
VS
37703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37705#define $ac_func innocuous_$ac_func
37706
a848cd7e
SC
37707/* System header to define __stub macros and hopefully few prototypes,
37708 which can conflict with char $ac_func (); below.
37709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37710 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37711
a848cd7e
SC
37712#ifdef __STDC__
37713# include <limits.h>
37714#else
37715# include <assert.h>
37716#endif
ac1cb8d3
VS
37717
37718#undef $ac_func
37719
a848cd7e
SC
37720/* Override any gcc2 internal prototype to avoid an error. */
37721#ifdef __cplusplus
37722extern "C"
37723{
37724#endif
37725/* We use char because int might match the return type of a gcc2
37726 builtin and then its argument prototype would still apply. */
37727char $ac_func ();
37728/* The GNU C library defines this for functions which it implements
37729 to always fail with ENOSYS. Some functions are actually named
37730 something starting with __ and the normal name is an alias. */
37731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37732choke me
37733#else
37734char (*f) () = $ac_func;
37735#endif
37736#ifdef __cplusplus
37737}
37738#endif
37739
37740int
37741main ()
37742{
37743return f != $ac_func;
37744 ;
37745 return 0;
37746}
37747_ACEOF
37748rm -f conftest.$ac_objext conftest$ac_exeext
37749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37750 (eval $ac_link) 2>conftest.er1
a848cd7e 37751 ac_status=$?
ac1cb8d3
VS
37752 grep -v '^ *+' conftest.er1 >conftest.err
37753 rm -f conftest.er1
37754 cat conftest.err >&5
a848cd7e
SC
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); } &&
c228d3a4
RN
37757 { ac_try='test -z "$ac_c_werror_flag"
37758 || test ! -s conftest.err'
ac1cb8d3
VS
37759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37760 (eval $ac_try) 2>&5
37761 ac_status=$?
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); }; } &&
37764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37766 (eval $ac_try) 2>&5
37767 ac_status=$?
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); }; }; then
37770 eval "$as_ac_var=yes"
37771else
37772 echo "$as_me: failed program was:" >&5
37773sed 's/^/| /' conftest.$ac_ext >&5
37774
37775eval "$as_ac_var=no"
37776fi
ac1cb8d3
VS
37777rm -f conftest.err conftest.$ac_objext \
37778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37779fi
37780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37782if test `eval echo '${'$as_ac_var'}'` = yes; then
37783 cat >>confdefs.h <<_ACEOF
37784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37785_ACEOF
37786 have_sin=1
37787fi
37788done
37789
37790
37791for ac_func in ceil
37792do
37793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37794echo "$as_me:$LINENO: checking for $ac_func" >&5
37795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37796if eval "test \"\${$as_ac_var+set}\" = set"; then
37797 echo $ECHO_N "(cached) $ECHO_C" >&6
37798else
37799 cat >conftest.$ac_ext <<_ACEOF
37800/* confdefs.h. */
37801_ACEOF
37802cat confdefs.h >>conftest.$ac_ext
37803cat >>conftest.$ac_ext <<_ACEOF
37804/* end confdefs.h. */
ac1cb8d3
VS
37805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37807#define $ac_func innocuous_$ac_func
37808
a848cd7e
SC
37809/* System header to define __stub macros and hopefully few prototypes,
37810 which can conflict with char $ac_func (); below.
37811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37812 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37813
a848cd7e
SC
37814#ifdef __STDC__
37815# include <limits.h>
37816#else
37817# include <assert.h>
37818#endif
ac1cb8d3
VS
37819
37820#undef $ac_func
37821
a848cd7e
SC
37822/* Override any gcc2 internal prototype to avoid an error. */
37823#ifdef __cplusplus
37824extern "C"
37825{
37826#endif
37827/* We use char because int might match the return type of a gcc2
37828 builtin and then its argument prototype would still apply. */
37829char $ac_func ();
37830/* The GNU C library defines this for functions which it implements
37831 to always fail with ENOSYS. Some functions are actually named
37832 something starting with __ and the normal name is an alias. */
37833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37834choke me
37835#else
37836char (*f) () = $ac_func;
37837#endif
37838#ifdef __cplusplus
37839}
37840#endif
37841
37842int
37843main ()
37844{
37845return f != $ac_func;
37846 ;
37847 return 0;
37848}
37849_ACEOF
37850rm -f conftest.$ac_objext conftest$ac_exeext
37851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37852 (eval $ac_link) 2>conftest.er1
a848cd7e 37853 ac_status=$?
ac1cb8d3
VS
37854 grep -v '^ *+' conftest.er1 >conftest.err
37855 rm -f conftest.er1
37856 cat conftest.err >&5
a848cd7e
SC
37857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858 (exit $ac_status); } &&
c228d3a4
RN
37859 { ac_try='test -z "$ac_c_werror_flag"
37860 || test ! -s conftest.err'
ac1cb8d3
VS
37861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37862 (eval $ac_try) 2>&5
37863 ac_status=$?
37864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865 (exit $ac_status); }; } &&
37866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37868 (eval $ac_try) 2>&5
37869 ac_status=$?
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); }; }; then
37872 eval "$as_ac_var=yes"
37873else
37874 echo "$as_me: failed program was:" >&5
37875sed 's/^/| /' conftest.$ac_ext >&5
37876
37877eval "$as_ac_var=no"
37878fi
ac1cb8d3
VS
37879rm -f conftest.err conftest.$ac_objext \
37880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37881fi
37882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37884if test `eval echo '${'$as_ac_var'}'` = yes; then
37885 cat >>confdefs.h <<_ACEOF
37886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37887_ACEOF
37888 have_ceil=1
37889fi
37890done
37891
37892 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37893echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37894 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37895 echo "$as_me:$LINENO: result: yes" >&5
37896echo "${ECHO_T}yes" >&6
37897 else
37898 echo "$as_me:$LINENO: result: no" >&5
37899echo "${ECHO_T}no" >&6
37900 # not sure we should warn the user, crash, etc.
37901 fi
37902fi
37903
37904if test "$wxUSE_GUI" = "yes"; then
37905
37906
37907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37908 drawing dynamic erase event exec font image \
37909 minimal propsize rotate shaped widgets render"
37910
37911 if test "$wxUSE_MONOLITHIC" != "yes"; then
37912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37913 fi
37914else
37915 SAMPLES_SUBDIRS="console"
37916fi
37917
37918
ceec2216 37919INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37920-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37921
37922if test "$GXX" = yes ; then
37923 CXXWARNINGS="-Wall"
37924 fi
37925
37926EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37927
0c3c69fc
VS
37928CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37929CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37930CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37931
37932
0c3c69fc 37933LIBS=`echo $LIBS`
a848cd7e
SC
37934EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37935EXTRALIBS_XML="$EXPAT_LINK"
37936EXTRALIBS_HTML="$MSPACK_LINK"
37937EXTRALIBS_ODBC="$ODBC_LINK"
37938if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37939 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37940fi
37941if test "$wxUSE_OPENGL" = "yes"; then
37942 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37943fi
37944
37945LDFLAGS="$LDFLAGS $PROFILE"
37946
37947if test "$wxUSE_GTK" = 1; then
37948 WXCONFIG_INCLUDE=
37949else
37950 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37951fi
37952
37953WXCONFIG_EXTRALIBS="$LIBS"
37954
37955if test "$wxUSE_REGEX" = "builtin" ; then
37956 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37957fi
37958if test "$wxUSE_EXPAT" = "builtin" ; then
37959 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37960fi
37961if test "$wxUSE_ODBC" = "builtin" ; then
37962 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37963fi
37964if test "$wxUSE_LIBTIFF" = "builtin" ; then
37965 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37966fi
37967if test "$wxUSE_LIBJPEG" = "builtin" ; then
37968 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37969fi
37970if test "$wxUSE_LIBPNG" = "builtin" ; then
37971 wxconfig_3rdparty="$wxconfig_3rdparty png"
37972fi
37973if test "$wxUSE_ZLIB" = "builtin" ; then
37974 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37975fi
37976if test "$wxUSE_ODBC" = "builtin" ; then
37977 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37978fi
37979
37980for i in $wxconfig_3rdparty ; do
ceec2216 37981 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
37982done
37983
37984
37985if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37986 WXUNIV=1
37987else
37988 WXUNIV=0
37989fi
37990
37991
37992
37993
37994
37995
37996
37997
37998
37999if test $wxUSE_MONOLITHIC = "yes" ; then
38000 MONOLITHIC=1
38001else
38002 MONOLITHIC=0
38003fi
38004
38005if test $wxUSE_PLUGINS = "yes" ; then
38006 USE_PLUGINS=1
38007else
38008 USE_PLUGINS=0
38009fi
38010
38011if test $wxUSE_ODBC != "no" ; then
38012 USE_ODBC=1
38013else
38014 USE_ODBC=0
38015fi
38016
38017if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38018 OFFICIAL_BUILD=1
38019else
38020 OFFICIAL_BUILD=0
38021fi
38022
38023
38024
38025
38026
38027
38028
38029
38030
38031
38032
38033
38034
38035
38036
38037
38038
38039
38040
ceec2216 38041
a848cd7e
SC
38042
38043
38044TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38045
38046
38047
38048
38049
38050
38051
38052
4d4ff94c
VZ
38053case "$TOOLKIT" in
38054 GTK)
38055 TOOLKIT_USER="GTK+"
38056 if test "$WXGTK20" = 1; then
38057 TOOLKIT_USER="$TOOLKIT_USER 2"
38058 fi
9a8f0513 38059 ;;
4d4ff94c
VZ
38060
38061 *)
38062 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38063 ;;
4d4ff94c 38064esac
a848cd7e 38065
9a8f0513 38066
a848cd7e
SC
38067 if test "x$BAKEFILE_HOST" = "x"; then
38068 BAKEFILE_HOST="${host}"
38069 fi
38070
38071 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38072
38073 if test -n "$ac_tool_prefix"; then
38074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38075set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38076echo "$as_me:$LINENO: checking for $ac_word" >&5
38077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38078if test "${ac_cv_prog_RANLIB+set}" = set; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38080else
38081 if test -n "$RANLIB"; then
38082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38083else
38084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38085for as_dir in $PATH
38086do
38087 IFS=$as_save_IFS
38088 test -z "$as_dir" && as_dir=.
38089 for ac_exec_ext in '' $ac_executable_extensions; do
38090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38093 break 2
38094 fi
38095done
38096done
38097
38098fi
38099fi
38100RANLIB=$ac_cv_prog_RANLIB
38101if test -n "$RANLIB"; then
38102 echo "$as_me:$LINENO: result: $RANLIB" >&5
38103echo "${ECHO_T}$RANLIB" >&6
38104else
38105 echo "$as_me:$LINENO: result: no" >&5
38106echo "${ECHO_T}no" >&6
38107fi
38108
38109fi
38110if test -z "$ac_cv_prog_RANLIB"; then
38111 ac_ct_RANLIB=$RANLIB
38112 # Extract the first word of "ranlib", so it can be a program name with args.
38113set dummy ranlib; ac_word=$2
38114echo "$as_me:$LINENO: checking for $ac_word" >&5
38115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38116if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38117 echo $ECHO_N "(cached) $ECHO_C" >&6
38118else
38119 if test -n "$ac_ct_RANLIB"; then
38120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38121else
38122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38123for as_dir in $PATH
38124do
38125 IFS=$as_save_IFS
38126 test -z "$as_dir" && as_dir=.
38127 for ac_exec_ext in '' $ac_executable_extensions; do
38128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38129 ac_cv_prog_ac_ct_RANLIB="ranlib"
38130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38131 break 2
38132 fi
38133done
38134done
38135
38136 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38137fi
38138fi
38139ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38140if test -n "$ac_ct_RANLIB"; then
38141 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38142echo "${ECHO_T}$ac_ct_RANLIB" >&6
38143else
38144 echo "$as_me:$LINENO: result: no" >&5
38145echo "${ECHO_T}no" >&6
38146fi
38147
38148 RANLIB=$ac_ct_RANLIB
38149else
38150 RANLIB="$ac_cv_prog_RANLIB"
38151fi
38152
38153 # Find a good install program. We prefer a C program (faster),
38154# so one script is as good as another. But avoid the broken or
38155# incompatible versions:
38156# SysV /etc/install, /usr/sbin/install
38157# SunOS /usr/etc/install
38158# IRIX /sbin/install
38159# AIX /bin/install
38160# AmigaOS /C/install, which installs bootblocks on floppy discs
38161# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38162# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38163# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38164# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38165# ./install, which can be erroneously created by make from ./install.sh.
38166echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38167echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38168if test -z "$INSTALL"; then
38169if test "${ac_cv_path_install+set}" = set; then
38170 echo $ECHO_N "(cached) $ECHO_C" >&6
38171else
38172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38173for as_dir in $PATH
38174do
38175 IFS=$as_save_IFS
38176 test -z "$as_dir" && as_dir=.
38177 # Account for people who put trailing slashes in PATH elements.
38178case $as_dir/ in
38179 ./ | .// | /cC/* | \
38180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38181 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38182 /usr/ucb/* ) ;;
38183 *)
38184 # OSF1 and SCO ODT 3.0 have their own names for install.
38185 # Don't use installbsd from OSF since it installs stuff as root
38186 # by default.
38187 for ac_prog in ginstall scoinst install; do
38188 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38189 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38190 if test $ac_prog = install &&
38191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38192 # AIX install. It has an incompatible calling convention.
38193 :
38194 elif test $ac_prog = install &&
38195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38196 # program-specific install script used by HP pwplus--don't use.
38197 :
38198 else
38199 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38200 break 3
38201 fi
38202 fi
a848cd7e
SC
38203 done
38204 done
38205 ;;
38206esac
38207done
38208
38209
38210fi
38211 if test "${ac_cv_path_install+set}" = set; then
38212 INSTALL=$ac_cv_path_install
38213 else
38214 # As a last resort, use the slow shell script. We don't cache a
38215 # path for INSTALL within a source directory, because that will
38216 # break other packages using the cache if that directory is
38217 # removed, or if the path is relative.
38218 INSTALL=$ac_install_sh
38219 fi
38220fi
38221echo "$as_me:$LINENO: result: $INSTALL" >&5
38222echo "${ECHO_T}$INSTALL" >&6
38223
38224# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38225# It thinks the first close brace ends the variable substitution.
38226test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38227
38228test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38229
38230test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38231
38232 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38233echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38234LN_S=$as_ln_s
38235if test "$LN_S" = "ln -s"; then
38236 echo "$as_me:$LINENO: result: yes" >&5
38237echo "${ECHO_T}yes" >&6
38238else
38239 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38240echo "${ECHO_T}no, using $LN_S" >&6
38241fi
38242
38243
38244 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38245echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38246set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38247if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38248 echo $ECHO_N "(cached) $ECHO_C" >&6
38249else
38250 cat >conftest.make <<\_ACEOF
38251all:
38252 @echo 'ac_maketemp="$(MAKE)"'
38253_ACEOF
38254# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38255eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38256if test -n "$ac_maketemp"; then
38257 eval ac_cv_prog_make_${ac_make}_set=yes
38258else
38259 eval ac_cv_prog_make_${ac_make}_set=no
38260fi
38261rm -f conftest.make
38262fi
38263if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38264 echo "$as_me:$LINENO: result: yes" >&5
38265echo "${ECHO_T}yes" >&6
38266 SET_MAKE=
38267else
38268 echo "$as_me:$LINENO: result: no" >&5
38269echo "${ECHO_T}no" >&6
38270 SET_MAKE="MAKE=${MAKE-make}"
38271fi
38272
38273
38274
38275 if test -n "$ac_tool_prefix"; then
38276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38277set dummy ${ac_tool_prefix}ar; ac_word=$2
38278echo "$as_me:$LINENO: checking for $ac_word" >&5
38279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38280if test "${ac_cv_prog_AR+set}" = set; then
38281 echo $ECHO_N "(cached) $ECHO_C" >&6
38282else
38283 if test -n "$AR"; then
38284 ac_cv_prog_AR="$AR" # Let the user override the test.
38285else
38286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38287for as_dir in $PATH
38288do
38289 IFS=$as_save_IFS
38290 test -z "$as_dir" && as_dir=.
38291 for ac_exec_ext in '' $ac_executable_extensions; do
38292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38293 ac_cv_prog_AR="${ac_tool_prefix}ar"
38294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38295 break 2
38296 fi
38297done
38298done
38299
38300fi
38301fi
38302AR=$ac_cv_prog_AR
38303if test -n "$AR"; then
38304 echo "$as_me:$LINENO: result: $AR" >&5
38305echo "${ECHO_T}$AR" >&6
38306else
38307 echo "$as_me:$LINENO: result: no" >&5
38308echo "${ECHO_T}no" >&6
38309fi
38310
38311fi
38312if test -z "$ac_cv_prog_AR"; then
38313 ac_ct_AR=$AR
38314 # Extract the first word of "ar", so it can be a program name with args.
38315set dummy ar; ac_word=$2
38316echo "$as_me:$LINENO: checking for $ac_word" >&5
38317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38318if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38319 echo $ECHO_N "(cached) $ECHO_C" >&6
38320else
38321 if test -n "$ac_ct_AR"; then
38322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38323else
38324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38325for as_dir in $PATH
38326do
38327 IFS=$as_save_IFS
38328 test -z "$as_dir" && as_dir=.
38329 for ac_exec_ext in '' $ac_executable_extensions; do
38330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38331 ac_cv_prog_ac_ct_AR="ar"
38332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38333 break 2
38334 fi
38335done
38336done
38337
38338 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38339fi
38340fi
38341ac_ct_AR=$ac_cv_prog_ac_ct_AR
38342if test -n "$ac_ct_AR"; then
38343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38344echo "${ECHO_T}$ac_ct_AR" >&6
38345else
38346 echo "$as_me:$LINENO: result: no" >&5
38347echo "${ECHO_T}no" >&6
38348fi
38349
38350 AR=$ac_ct_AR
38351else
38352 AR="$ac_cv_prog_AR"
38353fi
38354
38355 if test -n "$ac_tool_prefix"; then
38356 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38357set dummy ${ac_tool_prefix}strip; ac_word=$2
38358echo "$as_me:$LINENO: checking for $ac_word" >&5
38359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38360if test "${ac_cv_prog_STRIP+set}" = set; then
38361 echo $ECHO_N "(cached) $ECHO_C" >&6
38362else
38363 if test -n "$STRIP"; then
38364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38365else
38366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38367for as_dir in $PATH
38368do
38369 IFS=$as_save_IFS
38370 test -z "$as_dir" && as_dir=.
38371 for ac_exec_ext in '' $ac_executable_extensions; do
38372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38373 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38375 break 2
38376 fi
38377done
38378done
38379
38380fi
38381fi
38382STRIP=$ac_cv_prog_STRIP
38383if test -n "$STRIP"; then
38384 echo "$as_me:$LINENO: result: $STRIP" >&5
38385echo "${ECHO_T}$STRIP" >&6
38386else
38387 echo "$as_me:$LINENO: result: no" >&5
38388echo "${ECHO_T}no" >&6
38389fi
38390
38391fi
38392if test -z "$ac_cv_prog_STRIP"; then
38393 ac_ct_STRIP=$STRIP
38394 # Extract the first word of "strip", so it can be a program name with args.
38395set dummy strip; ac_word=$2
38396echo "$as_me:$LINENO: checking for $ac_word" >&5
38397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38398if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38399 echo $ECHO_N "(cached) $ECHO_C" >&6
38400else
38401 if test -n "$ac_ct_STRIP"; then
38402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38403else
38404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38405for as_dir in $PATH
38406do
38407 IFS=$as_save_IFS
38408 test -z "$as_dir" && as_dir=.
38409 for ac_exec_ext in '' $ac_executable_extensions; do
38410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38411 ac_cv_prog_ac_ct_STRIP="strip"
38412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38413 break 2
38414 fi
38415done
38416done
38417
38418 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38419fi
38420fi
38421ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38422if test -n "$ac_ct_STRIP"; then
38423 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38424echo "${ECHO_T}$ac_ct_STRIP" >&6
38425else
38426 echo "$as_me:$LINENO: result: no" >&5
38427echo "${ECHO_T}no" >&6
38428fi
38429
38430 STRIP=$ac_ct_STRIP
38431else
38432 STRIP="$ac_cv_prog_STRIP"
38433fi
38434
38435 if test -n "$ac_tool_prefix"; then
38436 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38437set dummy ${ac_tool_prefix}nm; ac_word=$2
38438echo "$as_me:$LINENO: checking for $ac_word" >&5
38439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38440if test "${ac_cv_prog_NM+set}" = set; then
38441 echo $ECHO_N "(cached) $ECHO_C" >&6
38442else
38443 if test -n "$NM"; then
38444 ac_cv_prog_NM="$NM" # Let the user override the test.
38445else
38446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38447for as_dir in $PATH
38448do
38449 IFS=$as_save_IFS
38450 test -z "$as_dir" && as_dir=.
38451 for ac_exec_ext in '' $ac_executable_extensions; do
38452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38453 ac_cv_prog_NM="${ac_tool_prefix}nm"
38454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38455 break 2
38456 fi
38457done
38458done
38459
38460fi
38461fi
38462NM=$ac_cv_prog_NM
38463if test -n "$NM"; then
38464 echo "$as_me:$LINENO: result: $NM" >&5
38465echo "${ECHO_T}$NM" >&6
38466else
38467 echo "$as_me:$LINENO: result: no" >&5
38468echo "${ECHO_T}no" >&6
38469fi
38470
38471fi
38472if test -z "$ac_cv_prog_NM"; then
38473 ac_ct_NM=$NM
38474 # Extract the first word of "nm", so it can be a program name with args.
38475set dummy nm; ac_word=$2
38476echo "$as_me:$LINENO: checking for $ac_word" >&5
38477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38478if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38479 echo $ECHO_N "(cached) $ECHO_C" >&6
38480else
38481 if test -n "$ac_ct_NM"; then
38482 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38483else
38484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38485for as_dir in $PATH
38486do
38487 IFS=$as_save_IFS
38488 test -z "$as_dir" && as_dir=.
38489 for ac_exec_ext in '' $ac_executable_extensions; do
38490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38491 ac_cv_prog_ac_ct_NM="nm"
38492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38493 break 2
38494 fi
38495done
38496done
38497
38498 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38499fi
38500fi
38501ac_ct_NM=$ac_cv_prog_ac_ct_NM
38502if test -n "$ac_ct_NM"; then
38503 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38504echo "${ECHO_T}$ac_ct_NM" >&6
38505else
38506 echo "$as_me:$LINENO: result: no" >&5
38507echo "${ECHO_T}no" >&6
38508fi
38509
38510 NM=$ac_ct_NM
38511else
38512 NM="$ac_cv_prog_NM"
38513fi
38514
38515
38516 case ${BAKEFILE_HOST} in
38517 *-hp-hpux* )
ecd16d74 38518 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38519 ;;
38520 *) INSTALL_DIR="$INSTALL -d"
38521 ;;
38522 esac
38523
38524
38525 LDFLAGS_GUI=
38526 case ${BAKEFILE_HOST} in
38527 *-*-cygwin* | *-*-mingw32* )
38528 LDFLAGS_GUI="-mwindows"
38529 esac
38530
38531
38532 fi
38533
38534 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38535echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38536if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38537 echo $ECHO_N "(cached) $ECHO_C" >&6
38538else
38539
38540 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38541 egrep -s GNU > /dev/null); then
38542 bakefile_cv_prog_makeisgnu="yes"
38543 else
38544 bakefile_cv_prog_makeisgnu="no"
38545 fi
38546
38547fi
38548echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38549echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38550
38551 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38552 IF_GNU_MAKE=""
38553 else
38554 IF_GNU_MAKE="#"
38555 fi
38556
38557
38558
38559 PLATFORM_UNIX=0
38560 PLATFORM_WIN32=0
38561 PLATFORM_MSDOS=0
38562 PLATFORM_MAC=0
38563 PLATFORM_MACOSX=0
38564 PLATFORM_OS2=0
38565
38566 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38567 case "${BAKEFILE_HOST}" in
38568 *-*-cygwin* | *-*-mingw32* )
38569 PLATFORM_WIN32=1
38570 ;;
38571 *-pc-msdosdjgpp )
38572 PLATFORM_MSDOS=1
38573 ;;
38574 *-pc-os2_emx | *-pc-os2-emx )
38575 PLATFORM_OS2=1
38576 ;;
38577 powerpc-*-darwin* )
38578 PLATFORM_MAC=1
38579 PLATFORM_MACOSX=1
38580 ;;
38581 * )
38582 PLATFORM_UNIX=1
38583 ;;
38584 esac
38585 else
38586 case "$BAKEFILE_FORCE_PLATFORM" in
38587 win32 )
38588 PLATFORM_WIN32=1
38589 ;;
38590 msdos )
38591 PLATFORM_MSDOS=1
38592 ;;
38593 os2 )
38594 PLATFORM_OS2=1
38595 ;;
38596 darwin )
38597 PLATFORM_MAC=1
38598 PLATFORM_MACOSX=1
38599 ;;
38600 unix )
38601 PLATFORM_UNIX=1
38602 ;;
38603 * )
38604 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38605echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38606 { (exit 1); exit 1; }; }
38607 ;;
38608 esac
38609 fi
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619 # Check whether --enable-omf or --disable-omf was given.
38620if test "${enable_omf+set}" = set; then
38621 enableval="$enable_omf"
38622 bk_os2_use_omf="$enableval"
38623fi;
38624
38625 case "${BAKEFILE_HOST}" in
38626 *-*-darwin* )
38627 CFLAGS="$CFLAGS -fno-common"
38628 CXXFLAGS="$CXXFLAGS -fno-common"
38629 ;;
38630
38631 *-pc-os2_emx | *-pc-os2-emx )
38632 if test "x$bk_os2_use_omf" = "xyes" ; then
38633 AR=emxomfar
38634 RANLIB=:
38635 LDFLAGS="-Zomf $LDFLAGS"
38636 CFLAGS="-Zomf $CFLAGS"
38637 CXXFLAGS="-Zomf $CXXFLAGS"
38638 OS2_LIBEXT="lib"
38639 else
38640 OS2_LIBEXT="a"
38641 fi
38642 ;;
38643 esac
38644
38645
38646 SO_SUFFIX="so"
38647 SO_SUFFIX_MODULE="so"
38648 EXEEXT=""
38649 LIBPREFIX="lib"
38650 LIBEXT=".a"
38651 DLLPREFIX="lib"
38652 DLLPREFIX_MODULE=""
38653 DLLIMP_SUFFIX=""
38654
38655 case "${BAKEFILE_HOST}" in
38656 *-hp-hpux* )
38657 SO_SUFFIX="sl"
38658 SO_SUFFIX_MODULE="sl"
38659 ;;
38660 *-*-aix* )
38661 SO_SUFFIX="a"
38662 SO_SUFFIX_MODULE="a"
38663 ;;
38664 *-*-cygwin* | *-*-mingw32* )
38665 SO_SUFFIX="dll"
38666 SO_SUFFIX_MODULE="dll"
38667 DLLIMP_SUFFIX="dll.a"
38668 EXEEXT=".exe"
38669 DLLPREFIX=""
38670 ;;
38671 *-pc-msdosdjgpp )
38672 EXEEXT=".exe"
38673 DLLPREFIX=""
38674 ;;
38675 *-pc-os2_emx | *-pc-os2-emx )
38676 SO_SUFFIX="dll"
38677 SO_SUFFIX_MODULE="dll"
38678 DLLIMP_SUFFIX=$OS2_LIBEXT
38679 EXEEXT=".exe"
38680 DLLPREFIX=""
38681 LIBPREFIX=""
38682 LIBEXT=".$OS2_LIBEXT"
38683 ;;
38684 powerpc-*-darwin* )
38685 SO_SUFFIX="dylib"
38686 SO_SUFFIX_MODULE="bundle"
38687 ;;
38688 esac
38689
38690 if test "x$DLLIMP_SUFFIX" = "x" ; then
38691 DLLIMP_SUFFIX="$SO_SUFFIX"
38692 fi
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704 SHARED_LD_CC="\$(CC) -shared -o"
38705 SHARED_LD_CXX="\$(CXX) -shared -o"
38706
38707 if test "x$GCC" = "xyes"; then
38708 PIC_FLAG="-fPIC"
38709 fi
38710
38711 case "${BAKEFILE_HOST}" in
38712 *-hp-hpux* )
38713 if test "x$GCC" = "xyes"; then
38714 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38715 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38716 else
38717 LDFLAGS="$LDFLAGS -L/usr/lib"
38718
38719 SHARED_LD_CC="${CC} -b -o"
38720 SHARED_LD_CXX="${CXX} -b -o"
38721 PIC_FLAG="+Z"
38722 fi
38723 ;;
38724
38725 *-*-linux* )
38726 if test "x$GCC" != "xyes"; then
38727 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38728echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38729if test "${bakefile_cv_prog_icc+set}" = set; then
38730 echo $ECHO_N "(cached) $ECHO_C" >&6
38731else
38732
38733 cat >conftest.$ac_ext <<_ACEOF
38734/* confdefs.h. */
38735_ACEOF
38736cat confdefs.h >>conftest.$ac_ext
38737cat >>conftest.$ac_ext <<_ACEOF
38738/* end confdefs.h. */
38739
38740int
38741main ()
38742{
38743
38744 #ifndef __INTEL_COMPILER
38745 #error Not icc
38746 #endif
38747
38748 ;
38749 return 0;
38750}
38751_ACEOF
38752rm -f conftest.$ac_objext
38753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38754 (eval $ac_compile) 2>conftest.er1
a848cd7e 38755 ac_status=$?
ac1cb8d3
VS
38756 grep -v '^ *+' conftest.er1 >conftest.err
38757 rm -f conftest.er1
38758 cat conftest.err >&5
a848cd7e
SC
38759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760 (exit $ac_status); } &&
c228d3a4
RN
38761 { ac_try='test -z "$ac_c_werror_flag"
38762 || test ! -s conftest.err'
ac1cb8d3
VS
38763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38764 (eval $ac_try) 2>&5
38765 ac_status=$?
38766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767 (exit $ac_status); }; } &&
38768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38770 (eval $ac_try) 2>&5
38771 ac_status=$?
38772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38773 (exit $ac_status); }; }; then
38774 bakefile_cv_prog_icc=yes
38775else
38776 echo "$as_me: failed program was:" >&5
38777sed 's/^/| /' conftest.$ac_ext >&5
38778
38779bakefile_cv_prog_icc=no
38780
38781fi
ac1cb8d3 38782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38783
38784fi
38785echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38786echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38787 if test "$bakefile_cv_prog_icc" = "yes"; then
38788 PIC_FLAG="-KPIC"
38789 fi
38790 fi
38791 ;;
38792
38793 *-*-solaris2* )
38794 if test "x$GCC" != xyes ; then
38795 SHARED_LD_CC="${CC} -G -o"
38796 SHARED_LD_CXX="${CXX} -G -o"
38797 PIC_FLAG="-KPIC"
38798 fi
38799 ;;
38800
38801 *-*-darwin* )
38802
38803 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38804echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38805if test "${wx_cv_gcc31+set}" = set; then
38806 echo $ECHO_N "(cached) $ECHO_C" >&6
38807else
38808
38809 cat >conftest.$ac_ext <<_ACEOF
38810/* confdefs.h. */
38811_ACEOF
38812cat confdefs.h >>conftest.$ac_ext
38813cat >>conftest.$ac_ext <<_ACEOF
38814/* end confdefs.h. */
38815
38816int
38817main ()
38818{
38819
38820 #if (__GNUC__ < 3) || \
38821 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38822 #error old gcc
38823 #endif
38824
38825 ;
38826 return 0;
38827}
38828_ACEOF
38829rm -f conftest.$ac_objext
38830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38831 (eval $ac_compile) 2>conftest.er1
a848cd7e 38832 ac_status=$?
ac1cb8d3
VS
38833 grep -v '^ *+' conftest.er1 >conftest.err
38834 rm -f conftest.er1
38835 cat conftest.err >&5
a848cd7e
SC
38836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); } &&
c228d3a4
RN
38838 { ac_try='test -z "$ac_c_werror_flag"
38839 || test ! -s conftest.err'
ac1cb8d3
VS
38840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38841 (eval $ac_try) 2>&5
38842 ac_status=$?
38843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38844 (exit $ac_status); }; } &&
38845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38847 (eval $ac_try) 2>&5
38848 ac_status=$?
38849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38850 (exit $ac_status); }; }; then
38851
38852 wx_cv_gcc31=yes
38853
38854else
38855 echo "$as_me: failed program was:" >&5
38856sed 's/^/| /' conftest.$ac_ext >&5
38857
38858
38859 wx_cv_gcc31=no
38860
38861
38862fi
ac1cb8d3 38863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38864
38865fi
38866echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38867echo "${ECHO_T}$wx_cv_gcc31" >&6
38868 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38869
38870D='$'
38871cat <<EOF >shared-ld-sh
a848cd7e
SC
38872#!/bin/sh
38873#-----------------------------------------------------------------------------
38874#-- Name: distrib/mac/shared-ld-sh
38875#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38876#-- Author: Gilles Depeyrot
38877#-- Copyright: (c) 2002 Gilles Depeyrot
38878#-- Licence: any use permitted
38879#-----------------------------------------------------------------------------
38880
38881verbose=0
38882args=""
38883objects=""
38884linking_flag="-dynamiclib"
38885
473276a9
VS
38886while test ${D}# -gt 0; do
38887 case ${D}1 in
a848cd7e
SC
38888
38889 -v)
38890 verbose=1
38891 ;;
38892
38893 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38894 # collect these options and values
473276a9 38895 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38896 shift
38897 ;;
38898
38899 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38900 # collect these options
473276a9 38901 args="${D}{args} ${D}1"
a848cd7e
SC
38902 ;;
38903
38904 -dynamiclib|-bundle)
473276a9 38905 linking_flag="${D}1"
a848cd7e
SC
38906 ;;
38907
38908 -*)
473276a9 38909 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38910 exit 1
38911 ;;
38912
38913 *.o | *.a | *.dylib)
38914 # collect object files
473276a9 38915 objects="${D}{objects} ${D}1"
a848cd7e
SC
38916 ;;
38917
38918 *)
473276a9 38919 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38920 exit 1
38921 ;;
38922
38923 esac
38924 shift
38925done
38926
38927#
38928# Link one module containing all the others
38929#
473276a9
VS
38930if test ${D}{verbose} = 1; then
38931 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38932fi
473276a9
VS
38933c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38934status=${D}?
38935if test ${D}{status} != 0; then
38936 exit ${D}{status}
a848cd7e
SC
38937fi
38938
38939#
38940# Link the shared library from the single module created
38941#
473276a9
VS
38942if test ${D}{verbose} = 1; then
38943 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38944fi
473276a9
VS
38945c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38946status=${D}?
38947if test ${D}{status} != 0; then
38948 exit ${D}{status}
a848cd7e
SC
38949fi
38950
38951#
38952# Remove intermediate module
38953#
473276a9 38954rm -f master.${D}${D}.o
a848cd7e
SC
38955
38956exit 0
38957EOF
473276a9 38958
a848cd7e
SC
38959 chmod +x shared-ld-sh
38960
38961 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38962 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38963 SHARED_LD_CXX="$SHARED_LD_CC"
38964 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38965 else
38966 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38967 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38968 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38969 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38970 fi
38971
38972 PIC_FLAG="-dynamic -fPIC"
38973 ;;
38974
38975 *-*-aix* )
38976 if test "x$GCC" != "xyes"; then
38977 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38978set dummy makeC++SharedLib; ac_word=$2
38979echo "$as_me:$LINENO: checking for $ac_word" >&5
38980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38981if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38982 echo $ECHO_N "(cached) $ECHO_C" >&6
38983else
38984 if test -n "$AIX_CXX_LD"; then
38985 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38986else
38987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38988for as_dir in $PATH
38989do
38990 IFS=$as_save_IFS
38991 test -z "$as_dir" && as_dir=.
38992 for ac_exec_ext in '' $ac_executable_extensions; do
38993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38994 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38996 break 2
38997 fi
38998done
38999done
39000
39001 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39002fi
39003fi
39004AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39005if test -n "$AIX_CXX_LD"; then
39006 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39007echo "${ECHO_T}$AIX_CXX_LD" >&6
39008else
39009 echo "$as_me:$LINENO: result: no" >&5
39010echo "${ECHO_T}no" >&6
39011fi
39012
39013 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39014 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39015 fi
39016 ;;
39017
39018 *-*-beos* )
39019 SHARED_LD_CC="${LD} -shared -o"
39020 SHARED_LD_CXX="${LD} -shared -o"
39021 ;;
39022
39023 *-*-irix* )
39024 if test "x$GCC" != "xyes"; then
39025 PIC_FLAG="-KPIC"
39026 fi
39027 ;;
39028
39029 *-*-cygwin* | *-*-mingw32* )
39030 PIC_FLAG=""
39031 ;;
39032
39033 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39034 SHARED_LD_CC="`pwd`/dllar.sh -o"
39035 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39036 PIC_FLAG=""
473276a9
VS
39037
39038D='$'
39039cat <<EOF >dllar.sh
39040#!/bin/sh
39041#
39042# dllar - a tool to build both a .dll and an .a file
39043# from a set of object (.o) files for EMX/OS2.
39044#
39045# Written by Andrew Zabolotny, bit@freya.etu.ru
39046# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39047#
39048# This script will accept a set of files on the command line.
39049# All the public symbols from the .o files will be exported into
39050# a .DEF file, then linker will be run (through gcc) against them to
39051# build a shared library consisting of all given .o files. All libraries
39052# (.a) will be first decompressed into component .o files then act as
39053# described above. You can optionally give a description (-d "description")
39054# which will be put into .DLL. To see the list of accepted options (as well
39055# as command-line format) simply run this program without options. The .DLL
39056# is built to be imported by name (there is no guarantee that new versions
39057# of the library you build will have same ordinals for same symbols).
39058#
39059# dllar is free software; you can redistribute it and/or modify
39060# it under the terms of the GNU General Public License as published by
39061# the Free Software Foundation; either version 2, or (at your option)
39062# any later version.
39063#
39064# dllar is distributed in the hope that it will be useful,
39065# but WITHOUT ANY WARRANTY; without even the implied warranty of
39066# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39067# GNU General Public License for more details.
39068#
39069# You should have received a copy of the GNU General Public License
39070# along with dllar; see the file COPYING. If not, write to the Free
39071# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39072# 02111-1307, USA.
39073
39074# To successfuly run this program you will need:
39075# - Current drive should have LFN support (HPFS, ext2, network, etc)
39076# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39077# - gcc
39078# (used to build the .dll)
39079# - emxexp
39080# (used to create .def file from .o files)
39081# - emximp
39082# (used to create .a file from .def file)
39083# - GNU text utilites (cat, sort, uniq)
39084# used to process emxexp output
39085# - GNU file utilities (mv, rm)
39086# - GNU sed
39087# - lxlite (optional, see flag below)
39088# (used for general .dll cleanup)
39089#
39090
39091flag_USE_LXLITE=1;
39092
39093#
39094# helper functions
39095# basnam, variant of basename, which does _not_ remove the path, _iff_
39096# second argument (suffix to remove) is given
39097basnam(){
39098 case ${D}# in
39099 1)
39100 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39101 ;;
39102 2)
39103 echo ${D}1 | sed 's/'${D}2'${D}//'
39104 ;;
39105 *)
39106 echo "error in basnam ${D}*"
39107 exit 8
39108 ;;
39109 esac
39110}
39111
39112# Cleanup temporary files and output
39113CleanUp() {
39114 cd ${D}curDir
39115 for i in ${D}inputFiles ; do
39116 case ${D}i in
39117 *!)
39118 rm -rf \`basnam ${D}i !\`
39119 ;;
39120 *)
39121 ;;
39122 esac
39123 done
39124
39125 # Kill result in case of failure as there is just to many stupid make/nmake
39126 # things out there which doesn't do this.
2057db16 39127 if [] ${D}# -eq 0 []; then
473276a9
VS
39128 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39129 fi
39130}
39131
39132# Print usage and exit script with rc=1.
39133PrintHelp() {
2057db16
VS
39134 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
39135 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
39136 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
39137 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
39138 echo ' []*.o[] []*.a[]'
473276a9
VS
39139 echo '*> "output_file" should have no extension.'
39140 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39141 echo ' The import library name is derived from this and is set to "name".a,'
39142 echo ' unless overridden by -import'
39143 echo '*> "importlib_name" should have no extension.'
39144 echo ' If it has the .o, or .a extension, it is automatically removed.'
39145 echo ' This name is used as the import library name and may be longer and'
39146 echo ' more descriptive than the DLL name which has to follow the old '
39147 echo ' 8.3 convention of FAT.'
39148 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39149 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39150 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
39151 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
39152 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
39153 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39154 echo ' If the last character of a symbol is "*", all symbols beginning'
39155 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 39156 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39157 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 39158 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 39159 echo ' C runtime DLLs.'
2057db16 39160 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39161 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39162 echo ' unchanged to GCC at the end of command line.'
39163 echo '*> If you create a DLL from a library and you do not specify -o,'
39164 echo ' the basename for DLL and import library will be set to library name,'
39165 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39166 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39167 echo ' library will be renamed into gcc_s.a.'
39168 echo '--------'
39169 echo 'Example:'
39170 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39171 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39172 CleanUp
39173 exit 1
39174}
39175
39176# Execute a command.
39177# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39178# @Uses Whatever CleanUp() uses.
39179doCommand() {
39180 echo "${D}*"
39181 eval ${D}*
39182 rcCmd=${D}?
39183
2057db16 39184 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
39185 echo "command failed, exit code="${D}rcCmd
39186 CleanUp
39187 exit ${D}rcCmd
39188 fi
39189}
39190
39191# main routine
39192# setup globals
39193cmdLine=${D}*
39194outFile=""
39195outimpFile=""
39196inputFiles=""
39197description=""
39198CC=gcc.exe
39199CFLAGS="-s -Zcrtdll"
39200EXTRA_CFLAGS=""
39201EXPORT_BY_ORDINALS=0
39202exclude_symbols=""
39203library_flags=""
39204curDir=\`pwd\`
39205curDirS=curDir
39206case ${D}curDirS in
39207*/)
39208 ;;
39209*)
39210 curDirS=${D}{curDirS}"/"
39211 ;;
39212esac
39213# Parse commandline
39214libsToLink=0
2057db16 39215while [] ${D}1 []; do
473276a9
VS
39216 case ${D}1 in
39217 -ord*)
39218 EXPORT_BY_ORDINALS=1;
39219 ;;
39220 -o*)
39221 shift
39222 outFile=${D}1
39223 ;;
39224 -i*)
39225 shift
39226 outimpFile=${D}1
39227 ;;
39228 -d*)
39229 shift
39230 description=${D}1
39231 ;;
39232 -f*)
39233 shift
39234 CFLAGS=${D}1
39235 ;;
39236 -c*)
39237 shift
39238 CC=${D}1
39239 ;;
39240 -h*)
39241 PrintHelp
39242 ;;
39243 -ex*)
39244 shift
39245 exclude_symbols=${D}{exclude_symbols}${D}1" "
39246 ;;
39247 -libf*)
39248 shift
39249 library_flags=${D}{library_flags}${D}1" "
39250 ;;
39251 -nocrt*)
39252 CFLAGS="-s"
39253 ;;
39254 -nolxl*)
39255 flag_USE_LXLITE=0
39256 ;;
39257 -* | /*)
39258 case ${D}1 in
39259 -L* | -l*)
39260 libsToLink=1
39261 ;;
39262 *)
39263 ;;
39264 esac
39265 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39266 ;;
39267 *)
39268 found=0;
2057db16 39269 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39270 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39271 else
39272 for file in ${D}1 ; do
2057db16 39273 if [] -f ${D}file []; then
473276a9
VS
39274 inputFiles="${D}{inputFiles} ${D}file"
39275 found=1
39276 fi
39277 done
2057db16 39278 if [] ${D}found -eq 0 []; then
473276a9
VS
39279 echo "ERROR: No file(s) found: "${D}1
39280 exit 8
39281 fi
39282 fi
39283 ;;
39284 esac
39285 shift
39286done # iterate cmdline words
39287
39288#
2057db16 39289if [] -z "${D}inputFiles" []; then
473276a9
VS
39290 echo "dllar: no input files"
39291 PrintHelp
39292fi
39293
39294# Now extract all .o files from .a files
39295newInputFiles=""
39296for file in ${D}inputFiles ; do
39297 case ${D}file in
39298 *.a | *.lib)
39299 case ${D}file in
39300 *.a)
39301 suffix=".a"
39302 AR="ar"
39303 ;;
39304 *.lib)
39305 suffix=".lib"
39306 AR="emxomfar"
39307 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39308 ;;
39309 *)
39310 ;;
39311 esac
39312 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39313 mkdir ${D}dirname
2057db16 39314 if [] ${D}? -ne 0 []; then
473276a9
VS
39315 echo "Failed to create subdirectory ./${D}dirname"
39316 CleanUp
39317 exit 8;
39318 fi
39319 # Append '!' to indicate archive
39320 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39321 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39322 cd ${D}curDir
39323 found=0;
39324 for subfile in ${D}dirname/*.o* ; do
2057db16 39325 if [] -f ${D}subfile []; then
473276a9 39326 found=1
2057db16 39327 if [] -s ${D}subfile []; then
473276a9
VS
39328 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39329 newInputFiles="${D}newInputFiles ${D}subfile"
39330 fi
39331 fi
39332 done
2057db16 39333 if [] ${D}found -eq 0 []; then
473276a9
VS
39334 echo "WARNING: there are no files in archive \'${D}file\'"
39335 fi
39336 ;;
39337 *)
39338 newInputFiles="${D}{newInputFiles} ${D}file"
39339 ;;
39340 esac
39341done
39342inputFiles="${D}newInputFiles"
39343
39344# Output filename(s).
39345do_backup=0;
2057db16 39346if [] -z ${D}outFile []; then
473276a9
VS
39347 do_backup=1;
39348 set outFile ${D}inputFiles; outFile=${D}2
39349fi
39350
39351# If it is an archive, remove the '!' and the '_%' suffixes
39352case ${D}outFile in
39353*_%!)
39354 outFile=\`basnam ${D}outFile _%!\`
39355 ;;
39356*)
39357 ;;
39358esac
39359case ${D}outFile in
39360*.dll)
39361 outFile=\`basnam ${D}outFile .dll\`
39362 ;;
39363*.DLL)
39364 outFile=\`basnam ${D}outFile .DLL\`
39365 ;;
39366*.o)
39367 outFile=\`basnam ${D}outFile .o\`
39368 ;;
39369*.obj)
39370 outFile=\`basnam ${D}outFile .obj\`
39371 ;;
39372*.a)
39373 outFile=\`basnam ${D}outFile .a\`
39374 ;;
39375*.lib)
39376 outFile=\`basnam ${D}outFile .lib\`
39377 ;;
39378*)
39379 ;;
39380esac
39381case ${D}outimpFile in
39382*.a)
39383 outimpFile=\`basnam ${D}outimpFile .a\`
39384 ;;
39385*.lib)
39386 outimpFile=\`basnam ${D}outimpFile .lib\`
39387 ;;
39388*)
39389 ;;
39390esac
2057db16 39391if [] -z ${D}outimpFile []; then
473276a9
VS
39392 outimpFile=${D}outFile
39393fi
39394defFile="${D}{outFile}.def"
39395arcFile="${D}{outimpFile}.a"
39396arcFile2="${D}{outimpFile}.lib"
39397dllFile="${D}outFile"
39398# Add suffix to dllFile later, first we need a version to use as
39399# name in .def file.
39400
2057db16
VS
39401if [] ${D}do_backup -ne 0 [] ; then
39402 if [] -f ${D}arcFile [] ; then
473276a9
VS
39403 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39404 fi
2057db16 39405 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39406 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39407 fi
39408fi
39409
39410# Extract public symbols from all the object files.
39411tmpdefFile=${D}{defFile}_%
39412rm -f ${D}tmpdefFile
39413for file in ${D}inputFiles ; do
39414 case ${D}file in
39415 *!)
39416 ;;
39417 *)
39418 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39419 ;;
39420 esac
39421done
39422
39423# Create the def file.
39424rm -f ${D}defFile
39425echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39426dllFile="${D}dllFile.dll"
2057db16 39427if [] -n ${D}description []; then
473276a9
VS
39428 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39429fi
39430echo "EXPORTS" >> ${D}defFile
39431
39432doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39433grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39434
39435# Checks if the export is ok or not.
39436for word in ${D}exclude_symbols; do
39437 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39438 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39439done
39440
39441
2057db16 39442if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39443 sed "=" < ${D}tmpdefFile | \
39444 sed '
39445 N
39446 : loop
2057db16 39447 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39448 t loop
39449 ' > ${D}{tmpdefFile}%
39450 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39451else
39452 rm -f ${D}{tmpdefFile}%
39453fi
39454cat ${D}tmpdefFile >> ${D}defFile
39455rm -f ${D}tmpdefFile
39456
39457# Do linking, create implib, and apply lxlite.
39458gccCmdl="";
39459for file in ${D}inputFiles ; do
39460 case ${D}file in
39461 *!)
39462 ;;
39463 *)
39464 gccCmdl="${D}gccCmdl ${D}file"
39465 ;;
39466 esac
39467done
39468doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39469touch "${D}{outFile}.dll"
39470
39471doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39472if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39473 add_flags="";
2057db16 39474 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39475 add_flags="-ynd"
39476 fi
39477 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39478fi
39479doCommand "emxomf -s -l ${D}arcFile"
39480
39481# Successful exit.
39482CleanUp 1
39483exit 0
39484EOF
39485
39486 chmod +x dllar.sh
a848cd7e
SC
39487 ;;
39488
39489 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39490 *-*-sunos4* | \
39491 *-*-osf* | \
39492 *-*-dgux5* | \
39493 *-*-sysv5* )
39494 ;;
39495
39496 *)
39497 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39498echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39499 { (exit 1); exit 1; }; }
39500 esac
39501
2057db16
VS
39502 if test "x$PIC_FLAG" != "x" ; then
39503 PIC_FLAG="$PIC_FLAG -DPIC"
39504 fi
39505
a848cd7e
SC
39506 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39507 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39508 fi
39509 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39510 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39511 fi
39512
39513
39514
39515
39516
39517
39518
39519
39520 USE_SOVERSION=0
39521 USE_SOVERLINUX=0
39522 USE_SOVERSOLARIS=0
39523 USE_SOSYMLINKS=0
39524 USE_MACVERSION=0
39525 SONAME_FLAG=
39526
39527 case "${BAKEFILE_HOST}" in
39528 *-*-linux* )
39529 SONAME_FLAG="-Wl,-soname,"
39530 USE_SOVERSION=1
39531 USE_SOVERLINUX=1
39532 USE_SOSYMLINKS=1
39533 ;;
39534
39535 *-*-solaris2* )
39536 SONAME_FLAG="-h "
39537 USE_SOVERSION=1
39538 USE_SOVERSOLARIS=1
39539 USE_SOSYMLINKS=1
39540 ;;
39541
39542 *-*-darwin* )
39543 USE_MACVERSION=1
39544 USE_SOVERSION=1
39545 USE_SOSYMLINKS=1
39546 ;;
39547 esac
39548
39549
39550
39551
39552
39553
39554
39555
39556
39557 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39558echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39559 DEPS_TRACKING=0
39560
39561 if test "x$GCC" = "xyes"; then
39562 DEPSMODE=gcc
39563 DEPS_TRACKING=1
39564 case "${BAKEFILE_HOST}" in
39565 powerpc-*-darwin* )
39566 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39567 ;;
39568 * )
39569 DEPSFLAG_GCC="-MMD"
39570 ;;
39571 esac
39572 echo "$as_me:$LINENO: result: gcc" >&5
39573echo "${ECHO_T}gcc" >&6
39574 else
39575 echo "$as_me:$LINENO: result: none" >&5
39576echo "${ECHO_T}none" >&6
39577 fi
39578
39579 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39580
39581D='$'
39582cat <<EOF >bk-deps
a848cd7e
SC
39583#!/bin/sh
39584
39585# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39586# script. It is used to track C/C++ files dependencies in portable way.
39587#
39588# Permission is given to use this file in any way.
39589
473276a9 39590DEPSMODE=${DEPSMODE}
a848cd7e 39591DEPSDIR=.deps
473276a9 39592DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39593
473276a9 39594mkdir -p ${D}DEPSDIR
a848cd7e 39595
473276a9
VS
39596if test ${D}DEPSMODE = gcc ; then
39597 ${D}* ${D}{DEPSFLAG_GCC}
39598 status=${D}?
39599 if test ${D}{status} != 0 ; then
39600 exit ${D}{status}
a848cd7e
SC
39601 fi
39602 # move created file to the location we want it in:
473276a9
VS
39603 while test ${D}# -gt 0; do
39604 case "${D}1" in
a848cd7e
SC
39605 -o )
39606 shift
473276a9 39607 objfile=${D}1
a848cd7e
SC
39608 ;;
39609 -* )
39610 ;;
39611 * )
473276a9 39612 srcfile=${D}1
a848cd7e
SC
39613 ;;
39614 esac
39615 shift
39616 done
473276a9
VS
39617 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39618 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39619 if test -f ${D}depfile ; then
39620 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39621 rm -f ${D}depfile
a848cd7e 39622 else
473276a9
VS
39623 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39624 if test -f ${D}depfile ; then
39625 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39626 rm -f ${D}depfile
a848cd7e
SC
39627 fi
39628 fi
39629 exit 0
39630else
473276a9
VS
39631 ${D}*
39632 exit ${D}?
a848cd7e
SC
39633fi
39634EOF
473276a9 39635
a848cd7e
SC
39636 chmod +x bk-deps
39637 fi
39638
39639
39640
39641
39642 RESCOMP=
39643 SETFILE=
39644
39645 case ${BAKEFILE_HOST} in
39646 *-*-cygwin* | *-*-mingw32* )
39647 if test "$build" != "$host" ; then
39648 RESCOMP=$host_alias-windres
39649 else
39650 # Extract the first word of "windres", so it can be a program name with args.
39651set dummy windres; ac_word=$2
39652echo "$as_me:$LINENO: checking for $ac_word" >&5
39653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39654if test "${ac_cv_prog_RESCOMP+set}" = set; then
39655 echo $ECHO_N "(cached) $ECHO_C" >&6
39656else
39657 if test -n "$RESCOMP"; then
39658 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39659else
39660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39661for as_dir in $PATH
39662do
39663 IFS=$as_save_IFS
39664 test -z "$as_dir" && as_dir=.
39665 for ac_exec_ext in '' $ac_executable_extensions; do
39666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39667 ac_cv_prog_RESCOMP="windres"
39668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39669 break 2
39670 fi
39671done
39672done
39673
39674 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39675fi
39676fi
39677RESCOMP=$ac_cv_prog_RESCOMP
39678if test -n "$RESCOMP"; then
39679 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39680echo "${ECHO_T}$RESCOMP" >&6
39681else
39682 echo "$as_me:$LINENO: result: no" >&5
39683echo "${ECHO_T}no" >&6
39684fi
39685
39686 fi
39687 ;;
39688
39689 *-*-darwin* )
39690 # Extract the first word of "Rez", so it can be a program name with args.
39691set dummy Rez; ac_word=$2
39692echo "$as_me:$LINENO: checking for $ac_word" >&5
39693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39694if test "${ac_cv_prog_RESCOMP+set}" = set; then
39695 echo $ECHO_N "(cached) $ECHO_C" >&6
39696else
39697 if test -n "$RESCOMP"; then
39698 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39699else
39700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39701for as_dir in $PATH
39702do
39703 IFS=$as_save_IFS
39704 test -z "$as_dir" && as_dir=.
39705 for ac_exec_ext in '' $ac_executable_extensions; do
39706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39707 ac_cv_prog_RESCOMP="Rez"
39708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39709 break 2
39710 fi
39711done
39712done
39713
39714 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39715fi
39716fi
39717RESCOMP=$ac_cv_prog_RESCOMP
39718if test -n "$RESCOMP"; then
39719 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39720echo "${ECHO_T}$RESCOMP" >&6
39721else
39722 echo "$as_me:$LINENO: result: no" >&5
39723echo "${ECHO_T}no" >&6
39724fi
39725
39726 # Extract the first word of "SetFile", so it can be a program name with args.
39727set dummy SetFile; ac_word=$2
39728echo "$as_me:$LINENO: checking for $ac_word" >&5
39729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39730if test "${ac_cv_prog_SETFILE+set}" = set; then
39731 echo $ECHO_N "(cached) $ECHO_C" >&6
39732else
39733 if test -n "$SETFILE"; then
39734 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39735else
39736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39737for as_dir in $PATH
39738do
39739 IFS=$as_save_IFS
39740 test -z "$as_dir" && as_dir=.
39741 for ac_exec_ext in '' $ac_executable_extensions; do
39742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39743 ac_cv_prog_SETFILE="SetFile"
39744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39745 break 2
39746 fi
39747done
39748done
39749
39750 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39751fi
39752fi
39753SETFILE=$ac_cv_prog_SETFILE
39754if test -n "$SETFILE"; then
39755 echo "$as_me:$LINENO: result: $SETFILE" >&5
39756echo "${ECHO_T}$SETFILE" >&6
39757else
39758 echo "$as_me:$LINENO: result: no" >&5
39759echo "${ECHO_T}no" >&6
39760fi
39761
39762 ;;
39763 esac
39764
39765
39766
39767
39768
2057db16 39769 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39770
dcc1b6ad 39771
ceec2216 39772
9f45f08e 39773BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39774
646b6ec1 39775
74b84332 39776
a848cd7e
SC
39777 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39778if test "${enable_precomp_headers+set}" = set; then
39779 enableval="$enable_precomp_headers"
39780 bk_use_pch="$enableval"
39781fi;
39782
39783 GCC_PCH=0
39784
39785 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39786 if test "x$GCC" = "xyes"; then
39787 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39788echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39789 cat >conftest.$ac_ext <<_ACEOF
39790/* confdefs.h. */
39791_ACEOF
39792cat confdefs.h >>conftest.$ac_ext
39793cat >>conftest.$ac_ext <<_ACEOF
39794/* end confdefs.h. */
39795
39796int
39797main ()
39798{
39799
39800 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39801 #error "no pch support"
39802 #endif
39803 #if (__GNUC__ < 3)
39804 #error "no pch support"
39805 #endif
39806 #if (__GNUC__ == 3) && \
39807 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39808 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39809 #error "no pch support"
39810 #endif
39811
39812 ;
39813 return 0;
39814}
39815_ACEOF
39816rm -f conftest.$ac_objext
39817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39818 (eval $ac_compile) 2>conftest.er1
a848cd7e 39819 ac_status=$?
ac1cb8d3
VS
39820 grep -v '^ *+' conftest.er1 >conftest.err
39821 rm -f conftest.er1
39822 cat conftest.err >&5
a848cd7e
SC
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); } &&
c228d3a4
RN
39825 { ac_try='test -z "$ac_c_werror_flag"
39826 || test ! -s conftest.err'
ac1cb8d3
VS
39827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39828 (eval $ac_try) 2>&5
39829 ac_status=$?
39830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831 (exit $ac_status); }; } &&
39832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39834 (eval $ac_try) 2>&5
39835 ac_status=$?
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); }; }; then
39838
39839 echo "$as_me:$LINENO: result: yes" >&5
39840echo "${ECHO_T}yes" >&6
a848cd7e
SC
39841 GCC_PCH=1
39842
39843else
39844 echo "$as_me: failed program was:" >&5
39845sed 's/^/| /' conftest.$ac_ext >&5
39846
39847
39848 echo "$as_me:$LINENO: result: no" >&5
39849echo "${ECHO_T}no" >&6
39850
39851fi
ac1cb8d3 39852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39853 if test $GCC_PCH = 1 ; then
39854 cat <<EOF >bk-make-pch
39855#!/bin/sh
39856
39857# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39858# script. It is used to generated precompiled headers.
39859#
39860# Permission is given to use this file in any way.
39861
39862outfile="\${1}"
39863header="\${2}"
39864shift
39865shift
39866
39867compiler=
39868headerfile=
39869while test \${#} -gt 0; do
39870 case "\${1}" in
39871 -I* )
39872 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39873 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39874 headerfile="\${incdir}/\${header}"
39875 fi
39876 ;;
39877 esac
39878 compiler="\${compiler} \${1}"
39879 shift
39880done
39881
39882if test "x\${headerfile}" = "x" ; then
39883 echo "error: can't find header \${header} in include paths" >2
39884else
39885 if test -f \${outfile} ; then
39886 rm -f \${outfile}
39887 else
39888 mkdir -p \`dirname \${outfile}\`
39889 fi
39890 depsfile=".deps/\`basename \${outfile}\`.d"
39891 mkdir -p .deps
39892 # can do this because gcc is >= 3.4:
39893 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39894 exit \${?}
39895fi
39896EOF
39897 chmod +x bk-make-pch
39898 fi
39899 fi
39900 fi
39901
39902
39903
39904
39905
dcc1b6ad
VS
39906
39907
39908 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39909if test "${enable_precomp_headers+set}" = set; then
39910 enableval="$enable_precomp_headers"
39911 bk_use_pch="$enableval"
39912fi;
39913
39914 GCC_PCH=0
39915
39916 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39917 if test "x$GCC" = "xyes"; then
39918 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39919echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39920 cat >conftest.$ac_ext <<_ACEOF
39921/* confdefs.h. */
39922_ACEOF
39923cat confdefs.h >>conftest.$ac_ext
39924cat >>conftest.$ac_ext <<_ACEOF
39925/* end confdefs.h. */
39926
39927int
39928main ()
39929{
39930
39931 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39932 #error "no pch support"
39933 #endif
39934 #if (__GNUC__ < 3)
39935 #error "no pch support"
39936 #endif
39937 #if (__GNUC__ == 3) && \
39938 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39939 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39940 #error "no pch support"
39941 #endif
39942
39943 ;
39944 return 0;
39945}
39946_ACEOF
39947rm -f conftest.$ac_objext
39948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39949 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39950 ac_status=$?
ac1cb8d3
VS
39951 grep -v '^ *+' conftest.er1 >conftest.err
39952 rm -f conftest.er1
39953 cat conftest.err >&5
dcc1b6ad
VS
39954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955 (exit $ac_status); } &&
c228d3a4
RN
39956 { ac_try='test -z "$ac_c_werror_flag"
39957 || test ! -s conftest.err'
ac1cb8d3
VS
39958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39959 (eval $ac_try) 2>&5
39960 ac_status=$?
39961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39962 (exit $ac_status); }; } &&
39963 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39965 (eval $ac_try) 2>&5
39966 ac_status=$?
39967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968 (exit $ac_status); }; }; then
39969
39970 echo "$as_me:$LINENO: result: yes" >&5
39971echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39972 GCC_PCH=1
39973
39974else
39975 echo "$as_me: failed program was:" >&5
39976sed 's/^/| /' conftest.$ac_ext >&5
39977
39978
39979 echo "$as_me:$LINENO: result: no" >&5
39980echo "${ECHO_T}no" >&6
39981
39982fi
ac1cb8d3 39983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39984 if test $GCC_PCH = 1 ; then
39985 cat <<EOF >bk-make-pch
39986#!/bin/sh
39987
39988# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39989# script. It is used to generated precompiled headers.
39990#
39991# Permission is given to use this file in any way.
39992
39993outfile="\${1}"
39994header="\${2}"
39995shift
39996shift
39997
39998compiler=
39999headerfile=
40000while test \${#} -gt 0; do
40001 case "\${1}" in
40002 -I* )
40003 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40004 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40005 headerfile="\${incdir}/\${header}"
40006 fi
40007 ;;
40008 esac
40009 compiler="\${compiler} \${1}"
40010 shift
40011done
40012
40013if test "x\${headerfile}" = "x" ; then
40014 echo "error: can't find header \${header} in include paths" >2
40015else
40016 if test -f \${outfile} ; then
40017 rm -f \${outfile}
40018 else
40019 mkdir -p \`dirname \${outfile}\`
40020 fi
40021 depsfile=".deps/\`basename \${outfile}\`.d"
40022 mkdir -p .deps
40023 # can do this because gcc is >= 3.4:
40024 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40025 exit \${?}
40026fi
40027EOF
40028 chmod +x bk-make-pch
40029 fi
40030 fi
40031 fi
40032
40033
40034
a848cd7e
SC
40035 COND_BUILD_DEBUG="#"
40036 if test "x$BUILD" = "xdebug" ; then
40037 COND_BUILD_DEBUG=""
40038 fi
40039
40040 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40041 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40042 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40043 fi
40044
40045 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40046 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40047 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40048 fi
40049
40050 COND_BUILD_DEBUG_UNICODE_0="#"
40051 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40052 COND_BUILD_DEBUG_UNICODE_0=""
40053 fi
40054
40055 COND_BUILD_DEBUG_UNICODE_1="#"
40056 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40057 COND_BUILD_DEBUG_UNICODE_1=""
40058 fi
40059
40060 COND_BUILD_RELEASE="#"
40061 if test "x$BUILD" = "xrelease" ; then
40062 COND_BUILD_RELEASE=""
40063 fi
40064
40065 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40066 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40067 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40068 fi
40069
40070 COND_BUILD_RELEASE_UNICODE_0="#"
40071 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40072 COND_BUILD_RELEASE_UNICODE_0=""
40073 fi
40074
40075 COND_BUILD_RELEASE_UNICODE_1="#"
40076 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40077 COND_BUILD_RELEASE_UNICODE_1=""
40078 fi
40079
40080 COND_DEBUG_FLAG_1="#"
40081 if test "x$DEBUG_FLAG" = "x1" ; then
40082 COND_DEBUG_FLAG_1=""
40083 fi
40084
40085 COND_DEBUG_INFO_0="#"
40086 if test "x$DEBUG_INFO" = "x0" ; then
40087 COND_DEBUG_INFO_0=""
40088 fi
40089
40090 COND_DEBUG_INFO_1="#"
40091 if test "x$DEBUG_INFO" = "x1" ; then
40092 COND_DEBUG_INFO_1=""
40093 fi
40094
40095 COND_DEPS_TRACKING_0="#"
40096 if test "x$DEPS_TRACKING" = "x0" ; then
40097 COND_DEPS_TRACKING_0=""
40098 fi
40099
40100 COND_DEPS_TRACKING_1="#"
40101 if test "x$DEPS_TRACKING" = "x1" ; then
40102 COND_DEPS_TRACKING_1=""
40103 fi
40104
40105 COND_GCC_PCH_1="#"
40106 if test "x$GCC_PCH" = "x1" ; then
40107 COND_GCC_PCH_1=""
40108 fi
40109
40110 COND_MONOLITHIC_0="#"
40111 if test "x$MONOLITHIC" = "x0" ; then
40112 COND_MONOLITHIC_0=""
40113 fi
40114
40115 COND_MONOLITHIC_0_SHARED_0="#"
40116 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40117 COND_MONOLITHIC_0_SHARED_0=""
40118 fi
40119
40120 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40121 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40122 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40123 fi
40124
40125 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40126 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40127 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40128 fi
40129
40130 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40131 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40132 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40133 fi
40134
40135 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40136 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40137 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40138 fi
40139
ceec2216
RL
40140 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40141 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40142 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40143 fi
40144
a848cd7e
SC
40145 COND_MONOLITHIC_0_SHARED_1="#"
40146 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40147 COND_MONOLITHIC_0_SHARED_1=""
40148 fi
40149
40150 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40151 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40152 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40153 fi
40154
40155 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40156 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40157 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40158 fi
40159
40160 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40161 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40162 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40163 fi
40164
40165 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40166 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40167 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40168 fi
40169
ceec2216
RL
40170 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40171 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40172 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40173 fi
40174
a848cd7e
SC
40175 COND_MONOLITHIC_0_USE_ODBC_1="#"
40176 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40177 COND_MONOLITHIC_0_USE_ODBC_1=""
40178 fi
40179
40180 COND_MONOLITHIC_1="#"
40181 if test "x$MONOLITHIC" = "x1" ; then
40182 COND_MONOLITHIC_1=""
40183 fi
40184
40185 COND_MONOLITHIC_1_SHARED_0="#"
40186 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40187 COND_MONOLITHIC_1_SHARED_0=""
40188 fi
40189
40190 COND_MONOLITHIC_1_SHARED_1="#"
40191 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40192 COND_MONOLITHIC_1_SHARED_1=""
40193 fi
40194
40195 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40196 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40197 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40198 fi
40199
40200 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40201 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40202 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40203 fi
40204
40205 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40206 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40207 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40208 fi
40209
40210 COND_PLATFORM_MACOSX_1="#"
40211 if test "x$PLATFORM_MACOSX" = "x1" ; then
40212 COND_PLATFORM_MACOSX_1=""
40213 fi
40214
40215 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40216 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40217 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40218 fi
40219
40220 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40221 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40222 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40223 fi
40224
40225 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40226 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40227 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40228 fi
40229
ebee3cd0
VS
40230 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40231 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40232 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40233 fi
40234
40235 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40236 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40237 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40238 fi
40239
a848cd7e
SC
40240 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40241 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40242 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40243 fi
40244
40245 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40246 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40247 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40248 fi
40249
40250 COND_PLATFORM_MAC_1="#"
40251 if test "x$PLATFORM_MAC" = "x1" ; then
40252 COND_PLATFORM_MAC_1=""
40253 fi
40254
40255 COND_PLATFORM_OS2_1="#"
40256 if test "x$PLATFORM_OS2" = "x1" ; then
40257 COND_PLATFORM_OS2_1=""
40258 fi
40259
40260 COND_PLATFORM_UNIX_0="#"
40261 if test "x$PLATFORM_UNIX" = "x0" ; then
40262 COND_PLATFORM_UNIX_0=""
40263 fi
40264
40265 COND_PLATFORM_UNIX_1="#"
40266 if test "x$PLATFORM_UNIX" = "x1" ; then
40267 COND_PLATFORM_UNIX_1=""
40268 fi
40269
40270 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40271 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40272 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40273 fi
40274
40275 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40276 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40277 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40278 fi
40279
40280 COND_PLATFORM_WIN32_0="#"
40281 if test "x$PLATFORM_WIN32" = "x0" ; then
40282 COND_PLATFORM_WIN32_0=""
40283 fi
40284
40285 COND_PLATFORM_WIN32_1="#"
40286 if test "x$PLATFORM_WIN32" = "x1" ; then
40287 COND_PLATFORM_WIN32_1=""
40288 fi
40289
40290 COND_SHARED_0="#"
40291 if test "x$SHARED" = "x0" ; then
40292 COND_SHARED_0=""
40293 fi
40294
ceec2216
RL
40295 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40296 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40297 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40298 fi
40299
40300 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40301 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40302 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40303 fi
40304
40305 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40306 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40307 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40308 fi
40309
a848cd7e
SC
40310 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40311 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40312 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40313 fi
40314
40315 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40316 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40317 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40318 fi
40319
40320 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40321 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40322 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40323 fi
40324
40325 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40326 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40327 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40328 fi
40329
40330 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40331 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40332 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40333 fi
40334
40335 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40336 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40337 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40338 fi
40339
40340 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40341 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40342 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40343 fi
40344
40345 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40346 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40347 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40348 fi
40349
40350 COND_SHARED_1="#"
40351 if test "x$SHARED" = "x1" ; then
40352 COND_SHARED_1=""
40353 fi
40354
40355 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40356 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40357 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40358 fi
40359
40360 COND_TOOLKIT_COCOA="#"
40361 if test "x$TOOLKIT" = "xCOCOA" ; then
40362 COND_TOOLKIT_COCOA=""
40363 fi
40364
40365 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40366 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40367 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40368 fi
40369
40370 COND_TOOLKIT_GTK="#"
40371 if test "x$TOOLKIT" = "xGTK" ; then
40372 COND_TOOLKIT_GTK=""
40373 fi
40374
40375 COND_TOOLKIT_GTK_USE_GUI_1="#"
40376 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40377 COND_TOOLKIT_GTK_USE_GUI_1=""
40378 fi
40379
40380 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40381 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40382 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40383 fi
40384
40385 COND_TOOLKIT_MAC="#"
40386 if test "x$TOOLKIT" = "xMAC" ; then
40387 COND_TOOLKIT_MAC=""
40388 fi
40389
40390 COND_TOOLKIT_MAC_USE_GUI_1="#"
40391 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40392 COND_TOOLKIT_MAC_USE_GUI_1=""
40393 fi
40394
40395 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40396 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40397 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40398 fi
40399
40400 COND_TOOLKIT_MGL="#"
40401 if test "x$TOOLKIT" = "xMGL" ; then
40402 COND_TOOLKIT_MGL=""
40403 fi
40404
40405 COND_TOOLKIT_MGL_USE_GUI_1="#"
40406 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40407 COND_TOOLKIT_MGL_USE_GUI_1=""
40408 fi
40409
40410 COND_TOOLKIT_MOTIF="#"
40411 if test "x$TOOLKIT" = "xMOTIF" ; then
40412 COND_TOOLKIT_MOTIF=""
40413 fi
40414
40415 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40416 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40417 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40418 fi
40419
40420 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40421 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40422 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40423 fi
40424
40425 COND_TOOLKIT_MSW="#"
40426 if test "x$TOOLKIT" = "xMSW" ; then
40427 COND_TOOLKIT_MSW=""
40428 fi
40429
40430 COND_TOOLKIT_MSW_USE_GUI_1="#"
40431 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40432 COND_TOOLKIT_MSW_USE_GUI_1=""
40433 fi
40434
40435 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40436 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40437 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40438 fi
40439
40440 COND_TOOLKIT_PM="#"
40441 if test "x$TOOLKIT" = "xPM" ; then
40442 COND_TOOLKIT_PM=""
40443 fi
40444
40445 COND_TOOLKIT_PM_USE_GUI_1="#"
40446 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40447 COND_TOOLKIT_PM_USE_GUI_1=""
40448 fi
40449
40450 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40451 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40452 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40453 fi
40454
3fd9c298
DE
40455 COND_TOOLKIT_WINCE="#"
40456 if test "x$TOOLKIT" = "xWINCE" ; then
40457 COND_TOOLKIT_WINCE=""
40458 fi
40459
40460 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40461 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40462 COND_TOOLKIT_WINCE_USE_GUI_1=""
40463 fi
40464
40465 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40466 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40467 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40468 fi
40469
a848cd7e
SC
40470 COND_TOOLKIT_X11="#"
40471 if test "x$TOOLKIT" = "xX11" ; then
40472 COND_TOOLKIT_X11=""
40473 fi
40474
40475 COND_TOOLKIT_X11_USE_GUI_1="#"
40476 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40477 COND_TOOLKIT_X11_USE_GUI_1=""
40478 fi
40479
40480 COND_UNICODE_1="#"
40481 if test "x$UNICODE" = "x1" ; then
40482 COND_UNICODE_1=""
40483 fi
40484
40485 COND_USE_EXCEPTIONS_0="#"
40486 if test "x$USE_EXCEPTIONS" = "x0" ; then
40487 COND_USE_EXCEPTIONS_0=""
40488 fi
40489
40490 COND_USE_EXCEPTIONS_1="#"
40491 if test "x$USE_EXCEPTIONS" = "x1" ; then
40492 COND_USE_EXCEPTIONS_1=""
40493 fi
40494
40495 COND_USE_GUI_0="#"
40496 if test "x$USE_GUI" = "x0" ; then
40497 COND_USE_GUI_0=""
40498 fi
40499
40500 COND_USE_GUI_1="#"
40501 if test "x$USE_GUI" = "x1" ; then
40502 COND_USE_GUI_1=""
40503 fi
40504
40505 COND_USE_GUI_1_WXUNIV_0="#"
40506 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40507 COND_USE_GUI_1_WXUNIV_0=""
40508 fi
40509
40510 COND_USE_GUI_1_WXUNIV_1="#"
40511 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40512 COND_USE_GUI_1_WXUNIV_1=""
40513 fi
40514
40515 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40516 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40517 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40518 fi
40519
40520 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40521 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40522 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40523 fi
40524
40525 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40526 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40527 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40528 fi
40529
ceec2216
RL
40530 COND_USE_ODBC_1="#"
40531 if test "x$USE_ODBC" = "x1" ; then
40532 COND_USE_ODBC_1=""
40533 fi
40534
a848cd7e
SC
40535 COND_USE_PLUGINS_0="#"
40536 if test "x$USE_PLUGINS" = "x0" ; then
40537 COND_USE_PLUGINS_0=""
40538 fi
40539
40540 COND_USE_SOSYMLINKS_1="#"
40541 if test "x$USE_SOSYMLINKS" = "x1" ; then
40542 COND_USE_SOSYMLINKS_1=""
40543 fi
40544
40545 COND_USE_SOVERLINUX_1="#"
40546 if test "x$USE_SOVERLINUX" = "x1" ; then
40547 COND_USE_SOVERLINUX_1=""
40548 fi
40549
40550 COND_USE_SOVERSION_0="#"
40551 if test "x$USE_SOVERSION" = "x0" ; then
40552 COND_USE_SOVERSION_0=""
40553 fi
40554
40555 COND_USE_SOVERSOLARIS_1="#"
40556 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40557 COND_USE_SOVERSOLARIS_1=""
40558 fi
40559
a13a7f89
RL
40560 COND_USE_XRC_1="#"
40561 if test "x$USE_XRC" = "x1" ; then
40562 COND_USE_XRC_1=""
40563 fi
40564
a848cd7e
SC
40565 COND_WITH_PLUGIN_SDL_1="#"
40566 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40567 COND_WITH_PLUGIN_SDL_1=""
40568 fi
40569
a848cd7e
SC
40570 COND_WXUNIV_1="#"
40571 if test "x$WXUNIV" = "x1" ; then
40572 COND_WXUNIV_1=""
40573 fi
40574
40575 COND_WXUSE_EXPAT_BUILTIN="#"
40576 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40577 COND_WXUSE_EXPAT_BUILTIN=""
40578 fi
40579
40580 COND_WXUSE_LIBJPEG_BUILTIN="#"
40581 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40582 COND_WXUSE_LIBJPEG_BUILTIN=""
40583 fi
40584
40585 COND_WXUSE_LIBPNG_BUILTIN="#"
40586 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40587 COND_WXUSE_LIBPNG_BUILTIN=""
40588 fi
40589
40590 COND_WXUSE_LIBTIFF_BUILTIN="#"
40591 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40592 COND_WXUSE_LIBTIFF_BUILTIN=""
40593 fi
40594
40595 COND_WXUSE_ODBC_BUILTIN="#"
40596 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40597 COND_WXUSE_ODBC_BUILTIN=""
40598 fi
40599
40600 COND_WXUSE_REGEX_BUILTIN="#"
40601 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40602 COND_WXUSE_REGEX_BUILTIN=""
40603 fi
40604
40605 COND_WXUSE_ZLIB_BUILTIN="#"
40606 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40607 COND_WXUSE_ZLIB_BUILTIN=""
40608 fi
40609
dcc1b6ad
VS
40610 COND_BUILD_DEBUG="#"
40611 if test "x$BUILD" = "xdebug" ; then
40612 COND_BUILD_DEBUG=""
40613 fi
40614
40615 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40616 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40617 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40618 fi
40619
40620 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40621 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40622 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40623 fi
40624
40625 COND_BUILD_DEBUG_UNICODE_0="#"
40626 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40627 COND_BUILD_DEBUG_UNICODE_0=""
40628 fi
40629
40630 COND_BUILD_DEBUG_UNICODE_1="#"
40631 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40632 COND_BUILD_DEBUG_UNICODE_1=""
40633 fi
40634
40635 COND_BUILD_RELEASE="#"
40636 if test "x$BUILD" = "xrelease" ; then
40637 COND_BUILD_RELEASE=""
40638 fi
40639
40640 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40641 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40642 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40643 fi
40644
40645 COND_BUILD_RELEASE_UNICODE_0="#"
40646 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40647 COND_BUILD_RELEASE_UNICODE_0=""
40648 fi
40649
40650 COND_BUILD_RELEASE_UNICODE_1="#"
40651 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40652 COND_BUILD_RELEASE_UNICODE_1=""
40653 fi
40654
40655 COND_DEBUG_FLAG_1="#"
40656 if test "x$DEBUG_FLAG" = "x1" ; then
40657 COND_DEBUG_FLAG_1=""
40658 fi
40659
40660 COND_DEBUG_INFO_0="#"
40661 if test "x$DEBUG_INFO" = "x0" ; then
40662 COND_DEBUG_INFO_0=""
40663 fi
40664
40665 COND_DEBUG_INFO_1="#"
40666 if test "x$DEBUG_INFO" = "x1" ; then
40667 COND_DEBUG_INFO_1=""
40668 fi
40669
40670 COND_DEPS_TRACKING_0="#"
40671 if test "x$DEPS_TRACKING" = "x0" ; then
40672 COND_DEPS_TRACKING_0=""
40673 fi
40674
40675 COND_DEPS_TRACKING_1="#"
40676 if test "x$DEPS_TRACKING" = "x1" ; then
40677 COND_DEPS_TRACKING_1=""
40678 fi
40679
40680 COND_GCC_PCH_1="#"
40681 if test "x$GCC_PCH" = "x1" ; then
40682 COND_GCC_PCH_1=""
40683 fi
40684
40685 COND_MONOLITHIC_0="#"
40686 if test "x$MONOLITHIC" = "x0" ; then
40687 COND_MONOLITHIC_0=""
40688 fi
40689
40690 COND_MONOLITHIC_0_SHARED_0="#"
40691 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40692 COND_MONOLITHIC_0_SHARED_0=""
40693 fi
40694
40695 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40696 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40697 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40698 fi
40699
40700 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40701 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40702 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40703 fi
40704
40705 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40706 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40707 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40708 fi
40709
40710 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40711 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40712 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40713 fi
40714
9a8f0513
VS
40715 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40716 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40717 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40718 fi
40719
dcc1b6ad
VS
40720 COND_MONOLITHIC_0_SHARED_1="#"
40721 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40722 COND_MONOLITHIC_0_SHARED_1=""
40723 fi
40724
40725 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40726 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40727 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40728 fi
40729
40730 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40731 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40732 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40733 fi
40734
40735 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40736 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40737 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40738 fi
40739
40740 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40741 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40742 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40743 fi
40744
9a8f0513
VS
40745 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40746 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40747 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40748 fi
40749
dcc1b6ad
VS
40750 COND_MONOLITHIC_0_USE_ODBC_1="#"
40751 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40752 COND_MONOLITHIC_0_USE_ODBC_1=""
40753 fi
40754
40755 COND_MONOLITHIC_1="#"
40756 if test "x$MONOLITHIC" = "x1" ; then
40757 COND_MONOLITHIC_1=""
40758 fi
40759
40760 COND_MONOLITHIC_1_SHARED_0="#"
40761 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40762 COND_MONOLITHIC_1_SHARED_0=""
40763 fi
40764
40765 COND_MONOLITHIC_1_SHARED_1="#"
40766 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40767 COND_MONOLITHIC_1_SHARED_1=""
40768 fi
40769
40770 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40771 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40772 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40773 fi
40774
40775 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40776 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40777 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40778 fi
40779
40780 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40781 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40782 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40783 fi
40784
40785 COND_PLATFORM_MACOSX_1="#"
40786 if test "x$PLATFORM_MACOSX" = "x1" ; then
40787 COND_PLATFORM_MACOSX_1=""
40788 fi
40789
40790 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40791 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40792 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40793 fi
40794
40795 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40796 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40797 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40798 fi
40799
40800 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40801 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40802 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40803 fi
40804
9a8f0513
VS
40805 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40806 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40807 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40808 fi
40809
40810 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40811 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40812 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40813 fi
40814
dcc1b6ad
VS
40815 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40816 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40817 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40818 fi
40819
40820 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40821 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40822 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40823 fi
40824
40825 COND_PLATFORM_MAC_1="#"
40826 if test "x$PLATFORM_MAC" = "x1" ; then
40827 COND_PLATFORM_MAC_1=""
40828 fi
40829
40830 COND_PLATFORM_OS2_1="#"
40831 if test "x$PLATFORM_OS2" = "x1" ; then
40832 COND_PLATFORM_OS2_1=""
40833 fi
40834
40835 COND_PLATFORM_UNIX_0="#"
40836 if test "x$PLATFORM_UNIX" = "x0" ; then
40837 COND_PLATFORM_UNIX_0=""
40838 fi
40839
40840 COND_PLATFORM_UNIX_1="#"
40841 if test "x$PLATFORM_UNIX" = "x1" ; then
40842 COND_PLATFORM_UNIX_1=""
40843 fi
40844
40845 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40846 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40847 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40848 fi
40849
40850 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40851 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40852 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40853 fi
40854
40855 COND_PLATFORM_WIN32_0="#"
40856 if test "x$PLATFORM_WIN32" = "x0" ; then
40857 COND_PLATFORM_WIN32_0=""
40858 fi
40859
40860 COND_PLATFORM_WIN32_1="#"
40861 if test "x$PLATFORM_WIN32" = "x1" ; then
40862 COND_PLATFORM_WIN32_1=""
40863 fi
40864
40865 COND_SHARED_0="#"
40866 if test "x$SHARED" = "x0" ; then
40867 COND_SHARED_0=""
40868 fi
40869
40870 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40871 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40872 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40873 fi
40874
40875 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40876 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40877 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40878 fi
40879
40880 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40881 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40882 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40883 fi
40884
40885 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40886 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40887 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40888 fi
40889
40890 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40891 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40892 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40893 fi
40894
40895 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40896 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40897 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40898 fi
40899
40900 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40901 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40902 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40903 fi
40904
40905 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40906 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40907 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40908 fi
40909
40910 COND_SHARED_1="#"
40911 if test "x$SHARED" = "x1" ; then
40912 COND_SHARED_1=""
40913 fi
40914
40915 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40916 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40917 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40918 fi
40919
40920 COND_TOOLKIT_COCOA="#"
40921 if test "x$TOOLKIT" = "xCOCOA" ; then
40922 COND_TOOLKIT_COCOA=""
40923 fi
40924
40925 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40926 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40927 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40928 fi
40929
40930 COND_TOOLKIT_GTK="#"
40931 if test "x$TOOLKIT" = "xGTK" ; then
40932 COND_TOOLKIT_GTK=""
40933 fi
40934
40935 COND_TOOLKIT_GTK_USE_GUI_1="#"
40936 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40937 COND_TOOLKIT_GTK_USE_GUI_1=""
40938 fi
40939
40940 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40941 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40942 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40943 fi
40944
40945 COND_TOOLKIT_MAC="#"
40946 if test "x$TOOLKIT" = "xMAC" ; then
40947 COND_TOOLKIT_MAC=""
40948 fi
40949
40950 COND_TOOLKIT_MAC_USE_GUI_1="#"
40951 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40952 COND_TOOLKIT_MAC_USE_GUI_1=""
40953 fi
40954
40955 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40956 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40957 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40958 fi
40959
9a8f0513
VS
40960 COND_TOOLKIT_MAC_WXUNIV_0="#"
40961 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40962 COND_TOOLKIT_MAC_WXUNIV_0=""
40963 fi
40964
dcc1b6ad
VS
40965 COND_TOOLKIT_MGL="#"
40966 if test "x$TOOLKIT" = "xMGL" ; then
40967 COND_TOOLKIT_MGL=""
40968 fi
40969
40970 COND_TOOLKIT_MGL_USE_GUI_1="#"
40971 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40972 COND_TOOLKIT_MGL_USE_GUI_1=""
40973 fi
40974
40975 COND_TOOLKIT_MOTIF="#"
40976 if test "x$TOOLKIT" = "xMOTIF" ; then
40977 COND_TOOLKIT_MOTIF=""
40978 fi
40979
40980 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40981 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40982 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40983 fi
40984
40985 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40986 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40987 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40988 fi
40989
40990 COND_TOOLKIT_MSW="#"
40991 if test "x$TOOLKIT" = "xMSW" ; then
40992 COND_TOOLKIT_MSW=""
40993 fi
40994
40995 COND_TOOLKIT_MSW_USE_GUI_1="#"
40996 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40997 COND_TOOLKIT_MSW_USE_GUI_1=""
40998 fi
40999
41000 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41001 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41002 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41003 fi
41004
9a8f0513
VS
41005 COND_TOOLKIT_MSW_WXUNIV_0="#"
41006 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41007 COND_TOOLKIT_MSW_WXUNIV_0=""
41008 fi
41009
dcc1b6ad
VS
41010 COND_TOOLKIT_PM="#"
41011 if test "x$TOOLKIT" = "xPM" ; then
41012 COND_TOOLKIT_PM=""
41013 fi
41014
41015 COND_TOOLKIT_PM_USE_GUI_1="#"
41016 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41017 COND_TOOLKIT_PM_USE_GUI_1=""
41018 fi
41019
41020 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41021 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41022 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41023 fi
41024
9a8f0513
VS
41025 COND_TOOLKIT_PM_WXUNIV_0="#"
41026 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41027 COND_TOOLKIT_PM_WXUNIV_0=""
41028 fi
41029
dcc1b6ad
VS
41030 COND_TOOLKIT_WINCE="#"
41031 if test "x$TOOLKIT" = "xWINCE" ; then
41032 COND_TOOLKIT_WINCE=""
41033 fi
41034
41035 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41036 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41037 COND_TOOLKIT_WINCE_USE_GUI_1=""
41038 fi
41039
41040 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41041 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41042 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41043 fi
41044
41045 COND_TOOLKIT_X11="#"
41046 if test "x$TOOLKIT" = "xX11" ; then
41047 COND_TOOLKIT_X11=""
41048 fi
41049
41050 COND_TOOLKIT_X11_USE_GUI_1="#"
41051 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41052 COND_TOOLKIT_X11_USE_GUI_1=""
41053 fi
41054
41055 COND_UNICODE_1="#"
41056 if test "x$UNICODE" = "x1" ; then
41057 COND_UNICODE_1=""
41058 fi
41059
41060 COND_USE_EXCEPTIONS_0="#"
41061 if test "x$USE_EXCEPTIONS" = "x0" ; then
41062 COND_USE_EXCEPTIONS_0=""
41063 fi
41064
41065 COND_USE_EXCEPTIONS_1="#"
41066 if test "x$USE_EXCEPTIONS" = "x1" ; then
41067 COND_USE_EXCEPTIONS_1=""
41068 fi
41069
41070 COND_USE_GUI_0="#"
41071 if test "x$USE_GUI" = "x0" ; then
41072 COND_USE_GUI_0=""
41073 fi
41074
41075 COND_USE_GUI_1="#"
41076 if test "x$USE_GUI" = "x1" ; then
41077 COND_USE_GUI_1=""
41078 fi
41079
41080 COND_USE_GUI_1_WXUNIV_0="#"
41081 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41082 COND_USE_GUI_1_WXUNIV_0=""
41083 fi
41084
41085 COND_USE_GUI_1_WXUNIV_1="#"
41086 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41087 COND_USE_GUI_1_WXUNIV_1=""
41088 fi
41089
41090 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41091 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41092 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41093 fi
41094
41095 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41096 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41097 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41098 fi
41099
41100 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41101 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41102 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41103 fi
41104
41105 COND_USE_ODBC_1="#"
41106 if test "x$USE_ODBC" = "x1" ; then
41107 COND_USE_ODBC_1=""
41108 fi
41109
41110 COND_USE_PLUGINS_0="#"
41111 if test "x$USE_PLUGINS" = "x0" ; then
41112 COND_USE_PLUGINS_0=""
41113 fi
41114
41115 COND_USE_SOSYMLINKS_1="#"
41116 if test "x$USE_SOSYMLINKS" = "x1" ; then
41117 COND_USE_SOSYMLINKS_1=""
41118 fi
41119
41120 COND_USE_SOVERLINUX_1="#"
41121 if test "x$USE_SOVERLINUX" = "x1" ; then
41122 COND_USE_SOVERLINUX_1=""
41123 fi
41124
41125 COND_USE_SOVERSION_0="#"
41126 if test "x$USE_SOVERSION" = "x0" ; then
41127 COND_USE_SOVERSION_0=""
41128 fi
41129
41130 COND_USE_SOVERSOLARIS_1="#"
41131 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41132 COND_USE_SOVERSOLARIS_1=""
41133 fi
41134
41135 COND_WITH_PLUGIN_SDL_1="#"
41136 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41137 COND_WITH_PLUGIN_SDL_1=""
41138 fi
41139
41140 COND_WXUNIV_1="#"
41141 if test "x$WXUNIV" = "x1" ; then
41142 COND_WXUNIV_1=""
41143 fi
41144
41145 COND_WXUSE_EXPAT_BUILTIN="#"
41146 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41147 COND_WXUSE_EXPAT_BUILTIN=""
41148 fi
41149
41150 COND_WXUSE_LIBJPEG_BUILTIN="#"
41151 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41152 COND_WXUSE_LIBJPEG_BUILTIN=""
41153 fi
41154
41155 COND_WXUSE_LIBPNG_BUILTIN="#"
41156 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41157 COND_WXUSE_LIBPNG_BUILTIN=""
41158 fi
41159
41160 COND_WXUSE_LIBTIFF_BUILTIN="#"
41161 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41162 COND_WXUSE_LIBTIFF_BUILTIN=""
41163 fi
41164
41165 COND_WXUSE_ODBC_BUILTIN="#"
41166 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41167 COND_WXUSE_ODBC_BUILTIN=""
41168 fi
41169
41170 COND_WXUSE_REGEX_BUILTIN="#"
41171 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41172 COND_WXUSE_REGEX_BUILTIN=""
41173 fi
41174
41175 COND_WXUSE_ZLIB_BUILTIN="#"
41176 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41177 COND_WXUSE_ZLIB_BUILTIN=""
41178 fi
41179
a848cd7e
SC
41180
41181
2057db16
VS
41182 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41183 { { 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
41184echo "$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;}
41185 { (exit 1); exit 1; }; }
41186 fi
41187
a848cd7e 41188
ceec2216
RL
41189if test "$wxUSE_SHARED" = "yes"; then
41190
41191 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41192 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41193
41194else
41195
41196 EXE_LINKER="$CXX -o"
41197
41198fi
a848cd7e 41199
74b84332 41200GCC_PRAGMA_FLAGS=""
a848cd7e 41201if test $GCC_PCH = 1 ; then
74b84332 41202 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41203else
41204 case "${host}" in
41205 powerpc-*-darwin* )
74b84332 41206 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41207 ;;
bea8e651 41208 *-*-mingw32* )
1f344abf
VS
41209 if test "$wxUSE_STL" = "yes" -o \
41210 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41211 "$wxUSE_NO_RTTI" != "yes"; then
41212 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41213echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41214 cat >conftest.$ac_ext <<_ACEOF
41215/* confdefs.h. */
41216_ACEOF
41217cat confdefs.h >>conftest.$ac_ext
41218cat >>conftest.$ac_ext <<_ACEOF
41219/* end confdefs.h. */
41220
41221int
41222main ()
41223{
1f344abf 41224#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41225 #error "Not GCC 3.2 or greater"
41226 #endif
41227
41228 ;
41229 return 0;
41230}
41231_ACEOF
41232rm -f conftest.$ac_objext
41233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41234 (eval $ac_compile) 2>conftest.er1
bea8e651 41235 ac_status=$?
ac1cb8d3
VS
41236 grep -v '^ *+' conftest.er1 >conftest.err
41237 rm -f conftest.er1
41238 cat conftest.err >&5
bea8e651
MB
41239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41240 (exit $ac_status); } &&
c228d3a4
RN
41241 { ac_try='test -z "$ac_c_werror_flag"
41242 || test ! -s conftest.err'
ac1cb8d3
VS
41243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41244 (eval $ac_try) 2>&5
41245 ac_status=$?
41246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41247 (exit $ac_status); }; } &&
41248 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41250 (eval $ac_try) 2>&5
41251 ac_status=$?
41252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41253 (exit $ac_status); }; }; then
74b84332 41254 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41255 echo "$as_me:$LINENO: result: yes" >&5
41256echo "${ECHO_T}yes" >&6
41257else
41258 echo "$as_me: failed program was:" >&5
41259sed 's/^/| /' conftest.$ac_ext >&5
41260
41261echo "$as_me:$LINENO: result: no" >&5
41262echo "${ECHO_T}no" >&6
41263fi
ac1cb8d3 41264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41265 fi
41266 ;;
a848cd7e
SC
41267 esac
41268fi
74b84332 41269CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41270
41271
41272SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
a848cd7e
SC
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
74b84332 41333
a848cd7e
SC
41334
41335
41336echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41337echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41338set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41339if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41340 echo $ECHO_N "(cached) $ECHO_C" >&6
41341else
41342 cat >conftest.make <<\_ACEOF
41343all:
41344 @echo 'ac_maketemp="$(MAKE)"'
41345_ACEOF
41346# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41347eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41348if test -n "$ac_maketemp"; then
41349 eval ac_cv_prog_make_${ac_make}_set=yes
41350else
41351 eval ac_cv_prog_make_${ac_make}_set=no
41352fi
41353rm -f conftest.make
41354fi
41355if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41356 echo "$as_me:$LINENO: result: yes" >&5
41357echo "${ECHO_T}yes" >&6
41358 SET_MAKE=
41359else
41360 echo "$as_me:$LINENO: result: no" >&5
41361echo "${ECHO_T}no" >&6
41362 SET_MAKE="MAKE=${MAKE-make}"
41363fi
41364
41365
a848cd7e 41366
ceec2216
RL
41367 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41368
a848cd7e 41369
ceec2216 41370 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41371
a848cd7e 41372
ceec2216 41373 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41374
ceec2216
RL
41375
41376 ac_config_files="$ac_config_files version-script Makefile"
41377
41378
41379 ac_config_commands="$ac_config_commands wx-config
41380 "
a848cd7e
SC
41381
41382
9103d280
RL
41383
41384
a848cd7e
SC
41385if test "$wxUSE_GUI" = "yes"; then
41386 SUBDIRS="samples demos utils contrib"
41387else SUBDIRS="samples utils"
41388fi
41389
41390
41391
41392# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41393if test "${with_cppunit_prefix+set}" = set; then
41394 withval="$with_cppunit_prefix"
41395 cppunit_config_prefix="$withval"
41396else
41397 cppunit_config_prefix=""
41398fi;
41399
41400# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41401if test "${with_cppunit_exec_prefix+set}" = set; then
41402 withval="$with_cppunit_exec_prefix"
41403 cppunit_config_exec_prefix="$withval"
41404else
41405 cppunit_config_exec_prefix=""
41406fi;
41407
41408 if test x$cppunit_config_exec_prefix != x ; then
41409 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41410 if test x${CPPUNIT_CONFIG+set} != xset ; then
41411 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41412 fi
41413 fi
41414 if test x$cppunit_config_prefix != x ; then
41415 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41416 if test x${CPPUNIT_CONFIG+set} != xset ; then
41417 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41418 fi
41419 fi
41420
41421 # Extract the first word of "cppunit-config", so it can be a program name with args.
41422set dummy cppunit-config; ac_word=$2
41423echo "$as_me:$LINENO: checking for $ac_word" >&5
41424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41425if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41426 echo $ECHO_N "(cached) $ECHO_C" >&6
41427else
41428 case $CPPUNIT_CONFIG in
41429 [\\/]* | ?:[\\/]*)
41430 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41431 ;;
41432 *)
41433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41434for as_dir in $PATH
41435do
41436 IFS=$as_save_IFS
41437 test -z "$as_dir" && as_dir=.
41438 for ac_exec_ext in '' $ac_executable_extensions; do
41439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41440 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41442 break 2
41443 fi
41444done
41445done
41446
41447 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41448 ;;
41449esac
41450fi
41451CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41452
41453if test -n "$CPPUNIT_CONFIG"; then
41454 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41455echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41456else
41457 echo "$as_me:$LINENO: result: no" >&5
41458echo "${ECHO_T}no" >&6
41459fi
41460
41461 cppunit_version_min=1.8.0
41462
41463 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41464echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41465 no_cppunit=""
41466 if test "$CPPUNIT_CONFIG" = "no" ; then
41467 no_cppunit=yes
41468 else
41469 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41470 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41471 cppunit_version=`$CPPUNIT_CONFIG --version`
41472
41473 cppunit_major_version=`echo $cppunit_version | \
41474 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41475 cppunit_minor_version=`echo $cppunit_version | \
41476 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41477 cppunit_micro_version=`echo $cppunit_version | \
41478 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41479
41480 cppunit_major_min=`echo $cppunit_version_min | \
41481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41482 cppunit_minor_min=`echo $cppunit_version_min | \
41483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41484 cppunit_micro_min=`echo $cppunit_version_min | \
41485 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41486
41487 cppunit_version_proper=`expr \
41488 $cppunit_major_version \> $cppunit_major_min \| \
41489 $cppunit_major_version \= $cppunit_major_min \& \
41490 $cppunit_minor_version \> $cppunit_minor_min \| \
41491 $cppunit_major_version \= $cppunit_major_min \& \
41492 $cppunit_minor_version \= $cppunit_minor_min \& \
41493 $cppunit_micro_version \>= $cppunit_micro_min `
41494
41495 if test "$cppunit_version_proper" = "1" ; then
41496 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41497echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41498 else
41499 echo "$as_me:$LINENO: result: no" >&5
41500echo "${ECHO_T}no" >&6
41501 no_cppunit=yes
41502 fi
41503 fi
41504
41505 if test "x$no_cppunit" = x ; then
c2218763 41506 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41507 else
41508 CPPUNIT_CFLAGS=""
41509 CPPUNIT_LIBS=""
c2218763 41510 :
a848cd7e
SC
41511 fi
41512
41513
41514
41515
41516
41517for subdir in `echo $SUBDIRS`; do
41518 if test -d ${srcdir}/${subdir} ; then
41519 if test "$wxUSE_GUI" = "yes"; then
41520 if test ${subdir} = "samples"; then
41521 makefiles="samples/Makefile.in $makefiles"
41522 for sample in `echo $SAMPLES_SUBDIRS`; do
41523 if test -d $srcdir/samples/$sample; then
41524 makefiles="samples/$sample/Makefile.in $makefiles"
41525 fi
41526 done
41527 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41528 fi
41529 else if test ${subdir} = "samples"; then
41530 makefiles="samples/Makefile.in samples/console/Makefile.in"
41531 elif test ${subdir} = "utils"; then
41532 makefiles="utils/HelpGen/Makefile.in \
41533 utils/HelpGen/src/Makefile.in \
41534 utils/tex2rtf/Makefile.in \
41535 utils/tex2rtf/src/Makefile.in"
41536 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41537 fi
41538 fi
41539
41540 for mkin in $makefiles ; do
41541 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41542 ac_config_files="$ac_config_files $mk"
41543
41544 done
41545 fi
41546done
41547
41548
41549cat >confcache <<\_ACEOF
41550# This file is a shell script that caches the results of configure
41551# tests run on this system so they can be shared between configure
41552# scripts and configure runs, see configure's option --config-cache.
41553# It is not useful on other systems. If it contains results you don't
41554# want to keep, you may remove or edit it.
41555#
41556# config.status only pays attention to the cache file if you give it
41557# the --recheck option to rerun configure.
41558#
41559# `ac_cv_env_foo' variables (set or unset) will be overridden when
41560# loading this file, other *unset* `ac_cv_foo' will be assigned the
41561# following values.
41562
41563_ACEOF
41564
41565# The following way of writing the cache mishandles newlines in values,
41566# but we know of no workaround that is simple, portable, and efficient.
41567# So, don't put newlines in cache variables' values.
41568# Ultrix sh set writes to stderr and can't be redirected directly,
41569# and sets the high bit in the cache file unless we assign to the vars.
41570{
41571 (set) 2>&1 |
41572 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41573 *ac_space=\ *)
41574 # `set' does not quote correctly, so add quotes (double-quote
41575 # substitution turns \\\\ into \\, and sed turns \\ into \).
41576 sed -n \
ac1cb8d3
VS
41577 "s/'/'\\\\''/g;
41578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41579 ;;
41580 *)
41581 # `set' quotes correctly as required by POSIX, so do not add quotes.
41582 sed -n \
ac1cb8d3 41583 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41584 ;;
41585 esac;
41586} |
41587 sed '
41588 t clear
41589 : clear
41590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41591 t end
41592 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41593 : end' >>confcache
41594if diff $cache_file confcache >/dev/null 2>&1; then :; else
41595 if test -w $cache_file; then
41596 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41597 cat confcache >$cache_file
41598 else
41599 echo "not updating unwritable cache $cache_file"
41600 fi
41601fi
41602rm -f confcache
41603
41604test "x$prefix" = xNONE && prefix=$ac_default_prefix
41605# Let make expand exec_prefix.
41606test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41607
41608# VPATH may cause trouble with some makes, so we remove $(srcdir),
41609# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41610# trailing colons and then remove the whole line if VPATH becomes empty
41611# (actually we leave an empty line to preserve line numbers).
41612if test "x$srcdir" = x.; then
ac1cb8d3 41613 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41614s/:*\$(srcdir):*/:/;
41615s/:*\${srcdir}:*/:/;
41616s/:*@srcdir@:*/:/;
ac1cb8d3 41617s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41618s/:*$//;
ac1cb8d3 41619s/^[^=]*=[ ]*$//;
a848cd7e
SC
41620}'
41621fi
41622
41623DEFS=-DHAVE_CONFIG_H
41624
41625ac_libobjs=
41626ac_ltlibobjs=
41627for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41628 # 1. Remove the extension, and $U if already installed.
41629 ac_i=`echo "$ac_i" |
ac1cb8d3 41630 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41631 # 2. Add them.
41632 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41633 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41634done
41635LIBOBJS=$ac_libobjs
41636
41637LTLIBOBJS=$ac_ltlibobjs
41638
41639
41640
41641: ${CONFIG_STATUS=./config.status}
41642ac_clean_files_save=$ac_clean_files
41643ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41644{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41645echo "$as_me: creating $CONFIG_STATUS" >&6;}
41646cat >$CONFIG_STATUS <<_ACEOF
41647#! $SHELL
41648# Generated by $as_me.
41649# Run this file to recreate the current configuration.
41650# Compiler output produced by configure, useful for debugging
41651# configure, is in config.log if it exists.
41652
41653debug=false
41654ac_cs_recheck=false
41655ac_cs_silent=false
41656SHELL=\${CONFIG_SHELL-$SHELL}
41657_ACEOF
41658
41659cat >>$CONFIG_STATUS <<\_ACEOF
41660## --------------------- ##
41661## M4sh Initialization. ##
41662## --------------------- ##
41663
41664# Be Bourne compatible
41665if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41666 emulate sh
41667 NULLCMD=:
41668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41669 # is contrary to our usage. Disable this feature.
41670 alias -g '${1+"$@"}'='"$@"'
41671elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41672 set -o posix
41673fi
ac1cb8d3 41674DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41675
41676# Support unset when possible.
ac1cb8d3 41677if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41678 as_unset=unset
41679else
41680 as_unset=false
41681fi
41682
41683
41684# Work around bugs in pre-3.0 UWIN ksh.
41685$as_unset ENV MAIL MAILPATH
41686PS1='$ '
41687PS2='> '
41688PS4='+ '
41689
41690# NLS nuisances.
41691for as_var in \
41692 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41693 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41694 LC_TELEPHONE LC_TIME
41695do
ac1cb8d3 41696 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41697 eval $as_var=C; export $as_var
41698 else
41699 $as_unset $as_var
41700 fi
41701done
41702
41703# Required to use basename.
41704if expr a : '\(a\)' >/dev/null 2>&1; then
41705 as_expr=expr
41706else
41707 as_expr=false
41708fi
41709
41710if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41711 as_basename=basename
41712else
41713 as_basename=false
41714fi
41715
41716
41717# Name of the executable.
41718as_me=`$as_basename "$0" ||
41719$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41720 X"$0" : 'X\(//\)$' \| \
41721 X"$0" : 'X\(/\)$' \| \
41722 . : '\(.\)' 2>/dev/null ||
41723echo X/"$0" |
41724 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41725 /^X\/\(\/\/\)$/{ s//\1/; q; }
41726 /^X\/\(\/\).*/{ s//\1/; q; }
41727 s/.*/./; q'`
41728
41729
41730# PATH needs CR, and LINENO needs CR and PATH.
41731# Avoid depending upon Character Ranges.
41732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41735as_cr_digits='0123456789'
41736as_cr_alnum=$as_cr_Letters$as_cr_digits
41737
41738# The user is always right.
41739if test "${PATH_SEPARATOR+set}" != set; then
41740 echo "#! /bin/sh" >conf$$.sh
41741 echo "exit 0" >>conf$$.sh
41742 chmod +x conf$$.sh
41743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41744 PATH_SEPARATOR=';'
41745 else
41746 PATH_SEPARATOR=:
41747 fi
41748 rm -f conf$$.sh
41749fi
41750
41751
41752 as_lineno_1=$LINENO
41753 as_lineno_2=$LINENO
41754 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41755 test "x$as_lineno_1" != "x$as_lineno_2" &&
41756 test "x$as_lineno_3" = "x$as_lineno_2" || {
41757 # Find who we are. Look in the path if we contain no path at all
41758 # relative or not.
41759 case $0 in
41760 *[\\/]* ) as_myself=$0 ;;
41761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41762for as_dir in $PATH
41763do
41764 IFS=$as_save_IFS
41765 test -z "$as_dir" && as_dir=.
41766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41767done
41768
41769 ;;
41770 esac
41771 # We did not find ourselves, most probably we were run as `sh COMMAND'
41772 # in which case we are not to be found in the path.
41773 if test "x$as_myself" = x; then
41774 as_myself=$0
41775 fi
41776 if test ! -f "$as_myself"; then
41777 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41778echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41779 { (exit 1); exit 1; }; }
41780 fi
41781 case $CONFIG_SHELL in
41782 '')
41783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41784for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41785do
41786 IFS=$as_save_IFS
41787 test -z "$as_dir" && as_dir=.
41788 for as_base in sh bash ksh sh5; do
41789 case $as_dir in
41790 /*)
41791 if ("$as_dir/$as_base" -c '
41792 as_lineno_1=$LINENO
41793 as_lineno_2=$LINENO
41794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41795 test "x$as_lineno_1" != "x$as_lineno_2" &&
41796 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41797 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41798 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41799 CONFIG_SHELL=$as_dir/$as_base
41800 export CONFIG_SHELL
41801 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41802 fi;;
41803 esac
41804 done
41805done
41806;;
41807 esac
41808
41809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41810 # uniformly replaced by the line number. The first 'sed' inserts a
41811 # line-number line before each line; the second 'sed' does the real
41812 # work. The second script uses 'N' to pair each line-number line
41813 # with the numbered line, and appends trailing '-' during
41814 # substitution so that $LINENO is not a special case at line end.
41815 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41816 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41817 sed '=' <$as_myself |
41818 sed '
41819 N
41820 s,$,-,
41821 : loop
41822 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41823 t loop
41824 s,-$,,
41825 s,^['$as_cr_digits']*\n,,
41826 ' >$as_me.lineno &&
41827 chmod +x $as_me.lineno ||
41828 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41829echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41830 { (exit 1); exit 1; }; }
41831
41832 # Don't try to exec as it changes $[0], causing all sort of problems
41833 # (the dirname of $[0] is not the place where we might find the
41834 # original and so on. Autoconf is especially sensible to this).
41835 . ./$as_me.lineno
41836 # Exit status is that of the last command.
41837 exit
41838}
41839
41840
41841case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41842 *c*,-n*) ECHO_N= ECHO_C='
41843' ECHO_T=' ' ;;
41844 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41845 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41846esac
41847
41848if expr a : '\(a\)' >/dev/null 2>&1; then
41849 as_expr=expr
41850else
41851 as_expr=false
41852fi
41853
41854rm -f conf$$ conf$$.exe conf$$.file
41855echo >conf$$.file
41856if ln -s conf$$.file conf$$ 2>/dev/null; then
41857 # We could just check for DJGPP; but this test a) works b) is more generic
41858 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41859 if test -f conf$$.exe; then
41860 # Don't use ln at all; we don't have any links
41861 as_ln_s='cp -p'
41862 else
41863 as_ln_s='ln -s'
41864 fi
41865elif ln conf$$.file conf$$ 2>/dev/null; then
41866 as_ln_s=ln
41867else
41868 as_ln_s='cp -p'
41869fi
41870rm -f conf$$ conf$$.exe conf$$.file
41871
41872if mkdir -p . 2>/dev/null; then
41873 as_mkdir_p=:
41874else
ac1cb8d3 41875 test -d ./-p && rmdir ./-p
a848cd7e
SC
41876 as_mkdir_p=false
41877fi
41878
41879as_executable_p="test -f"
41880
41881# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41883
41884# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41886
41887
41888# IFS
41889# We need space, tab and new line, in precisely that order.
41890as_nl='
41891'
41892IFS=" $as_nl"
41893
41894# CDPATH.
41895$as_unset CDPATH
41896
41897exec 6>&1
41898
41899# Open the log real soon, to keep \$[0] and so on meaningful, and to
41900# report actual input values of CONFIG_FILES etc. instead of their
41901# values after options handling. Logging --version etc. is OK.
41902exec 5>>config.log
41903{
41904 echo
41905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41906## Running $as_me. ##
41907_ASBOX
41908} >&5
41909cat >&5 <<_CSEOF
41910
7714864e 41911This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 41912generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41913
41914 CONFIG_FILES = $CONFIG_FILES
41915 CONFIG_HEADERS = $CONFIG_HEADERS
41916 CONFIG_LINKS = $CONFIG_LINKS
41917 CONFIG_COMMANDS = $CONFIG_COMMANDS
41918 $ $0 $@
41919
41920_CSEOF
41921echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41922echo >&5
41923_ACEOF
41924
41925# Files that config.status was made for.
41926if test -n "$ac_config_files"; then
41927 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41928fi
41929
41930if test -n "$ac_config_headers"; then
41931 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41932fi
41933
41934if test -n "$ac_config_links"; then
41935 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41936fi
41937
41938if test -n "$ac_config_commands"; then
41939 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41940fi
41941
41942cat >>$CONFIG_STATUS <<\_ACEOF
41943
41944ac_cs_usage="\
41945\`$as_me' instantiates files from templates according to the
41946current configuration.
41947
41948Usage: $0 [OPTIONS] [FILE]...
41949
41950 -h, --help print this help, then exit
41951 -V, --version print version number, then exit
41952 -q, --quiet do not print progress messages
41953 -d, --debug don't remove temporary files
41954 --recheck update $as_me by reconfiguring in the same conditions
41955 --file=FILE[:TEMPLATE]
ac1cb8d3 41956 instantiate the configuration file FILE
a848cd7e 41957 --header=FILE[:TEMPLATE]
ac1cb8d3 41958 instantiate the configuration header FILE
a848cd7e
SC
41959
41960Configuration files:
41961$config_files
41962
41963Configuration headers:
41964$config_headers
41965
41966Configuration commands:
41967$config_commands
41968
41969Report bugs to <bug-autoconf@gnu.org>."
41970_ACEOF
41971
41972cat >>$CONFIG_STATUS <<_ACEOF
41973ac_cs_version="\\
7714864e 41974wxWidgets config.status 2.5.3
ac1cb8d3 41975configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41976 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41977
ac1cb8d3 41978Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41979This config.status script is free software; the Free Software Foundation
41980gives unlimited permission to copy, distribute and modify it."
41981srcdir=$srcdir
41982INSTALL="$INSTALL"
41983_ACEOF
41984
41985cat >>$CONFIG_STATUS <<\_ACEOF
41986# If no file are specified by the user, then we need to provide default
41987# value. By we need to know if files were specified by the user.
41988ac_need_defaults=:
41989while test $# != 0
41990do
41991 case $1 in
41992 --*=*)
41993 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41994 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41995 ac_shift=:
41996 ;;
41997 -*)
41998 ac_option=$1
41999 ac_optarg=$2
42000 ac_shift=shift
42001 ;;
42002 *) # This is not an option, so the user has probably given explicit
42003 # arguments.
42004 ac_option=$1
42005 ac_need_defaults=false;;
42006 esac
42007
42008 case $ac_option in
42009 # Handling of the options.
42010_ACEOF
42011cat >>$CONFIG_STATUS <<\_ACEOF
42012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42013 ac_cs_recheck=: ;;
42014 --version | --vers* | -V )
42015 echo "$ac_cs_version"; exit 0 ;;
42016 --he | --h)
42017 # Conflict between --help and --header
42018 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42019Try \`$0 --help' for more information." >&5
42020echo "$as_me: error: ambiguous option: $1
42021Try \`$0 --help' for more information." >&2;}
42022 { (exit 1); exit 1; }; };;
42023 --help | --hel | -h )
42024 echo "$ac_cs_usage"; exit 0 ;;
42025 --debug | --d* | -d )
42026 debug=: ;;
42027 --file | --fil | --fi | --f )
42028 $ac_shift
42029 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42030 ac_need_defaults=false;;
42031 --header | --heade | --head | --hea )
42032 $ac_shift
42033 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42034 ac_need_defaults=false;;
42035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42037 ac_cs_silent=: ;;
42038
42039 # This is an error.
42040 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42041Try \`$0 --help' for more information." >&5
42042echo "$as_me: error: unrecognized option: $1
42043Try \`$0 --help' for more information." >&2;}
42044 { (exit 1); exit 1; }; } ;;
42045
42046 *) ac_config_targets="$ac_config_targets $1" ;;
42047
42048 esac
42049 shift
42050done
42051
42052ac_configure_extra_args=
42053
42054if $ac_cs_silent; then
42055 exec 6>/dev/null
42056 ac_configure_extra_args="$ac_configure_extra_args --silent"
42057fi
42058
42059_ACEOF
42060cat >>$CONFIG_STATUS <<_ACEOF
42061if \$ac_cs_recheck; then
42062 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42063 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42064fi
42065
42066_ACEOF
42067
42068cat >>$CONFIG_STATUS <<_ACEOF
42069#
42070# INIT-COMMANDS section.
42071#
42072
ceec2216
RL
42073 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42074 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42075 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42076 LN_S="${LN_S}"
a848cd7e
SC
42077
42078
42079_ACEOF
42080
42081
42082
42083cat >>$CONFIG_STATUS <<\_ACEOF
42084for ac_config_target in $ac_config_targets
42085do
42086 case "$ac_config_target" in
42087 # Handling of arguments.
ceec2216
RL
42088 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42089 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42090 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42091 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42092 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42093 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42094 "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
42095 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42096echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42097 { (exit 1); exit 1; }; };;
42098 esac
42099done
42100
42101# If the user did not use the arguments to specify the items to instantiate,
42102# then the envvar interface is used. Set only those that are not.
42103# We use the long form for the default assignment because of an extremely
42104# bizarre bug on SunOS 4.1.3.
42105if $ac_need_defaults; then
42106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42108 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42109fi
42110
42111# Have a temporary directory for convenience. Make it in the build tree
42112# simply because there is no reason to put it here, and in addition,
42113# creating and moving files from /tmp can sometimes cause problems.
42114# Create a temporary directory, and hook for its removal unless debugging.
42115$debug ||
42116{
42117 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42118 trap '{ (exit 1); exit 1; }' 1 2 13 15
42119}
42120
42121# Create a (secure) tmp directory for tmp files.
42122
42123{
42124 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42125 test -n "$tmp" && test -d "$tmp"
42126} ||
42127{
42128 tmp=./confstat$$-$RANDOM
42129 (umask 077 && mkdir $tmp)
42130} ||
42131{
42132 echo "$me: cannot create a temporary directory in ." >&2
42133 { (exit 1); exit 1; }
42134}
42135
42136_ACEOF
42137
42138cat >>$CONFIG_STATUS <<_ACEOF
42139
42140#
42141# CONFIG_FILES section.
42142#
42143
42144# No need to generate the scripts if there are no CONFIG_FILES.
42145# This happens for instance when ./config.status config.h
42146if test -n "\$CONFIG_FILES"; then
42147 # Protect against being on the right side of a sed subst in config.status.
42148 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42149 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42150s,@SHELL@,$SHELL,;t t
42151s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42152s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42153s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42154s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42155s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42156s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42157s,@exec_prefix@,$exec_prefix,;t t
42158s,@prefix@,$prefix,;t t
42159s,@program_transform_name@,$program_transform_name,;t t
42160s,@bindir@,$bindir,;t t
42161s,@sbindir@,$sbindir,;t t
42162s,@libexecdir@,$libexecdir,;t t
42163s,@datadir@,$datadir,;t t
42164s,@sysconfdir@,$sysconfdir,;t t
42165s,@sharedstatedir@,$sharedstatedir,;t t
42166s,@localstatedir@,$localstatedir,;t t
42167s,@libdir@,$libdir,;t t
42168s,@includedir@,$includedir,;t t
42169s,@oldincludedir@,$oldincludedir,;t t
42170s,@infodir@,$infodir,;t t
42171s,@mandir@,$mandir,;t t
42172s,@build_alias@,$build_alias,;t t
42173s,@host_alias@,$host_alias,;t t
42174s,@target_alias@,$target_alias,;t t
42175s,@DEFS@,$DEFS,;t t
42176s,@ECHO_C@,$ECHO_C,;t t
42177s,@ECHO_N@,$ECHO_N,;t t
42178s,@ECHO_T@,$ECHO_T,;t t
42179s,@LIBS@,$LIBS,;t t
42180s,@build@,$build,;t t
42181s,@build_cpu@,$build_cpu,;t t
42182s,@build_vendor@,$build_vendor,;t t
42183s,@build_os@,$build_os,;t t
42184s,@host@,$host,;t t
42185s,@host_cpu@,$host_cpu,;t t
42186s,@host_vendor@,$host_vendor,;t t
42187s,@host_os@,$host_os,;t t
42188s,@target@,$target,;t t
42189s,@target_cpu@,$target_cpu,;t t
42190s,@target_vendor@,$target_vendor,;t t
42191s,@target_os@,$target_os,;t t
42192s,@CC@,$CC,;t t
42193s,@CFLAGS@,$CFLAGS,;t t
42194s,@LDFLAGS@,$LDFLAGS,;t t
42195s,@CPPFLAGS@,$CPPFLAGS,;t t
42196s,@ac_ct_CC@,$ac_ct_CC,;t t
42197s,@EXEEXT@,$EXEEXT,;t t
42198s,@OBJEXT@,$OBJEXT,;t t
42199s,@CPP@,$CPP,;t t
42200s,@EGREP@,$EGREP,;t t
42201s,@CXX@,$CXX,;t t
42202s,@CXXFLAGS@,$CXXFLAGS,;t t
42203s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42204s,@RANLIB@,$RANLIB,;t t
42205s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42206s,@AR@,$AR,;t t
42207s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42208s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42209s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42210s,@STRIP@,$STRIP,;t t
42211s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42212s,@LN_S@,$LN_S,;t t
42213s,@CXXCPP@,$CXXCPP,;t t
42214s,@subdirs@,$subdirs,;t t
42215s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42216s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42217s,@GTK_LIBS@,$GTK_LIBS,;t t
42218s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42219s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42220s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42221s,@X_CFLAGS@,$X_CFLAGS,;t t
42222s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42223s,@X_LIBS@,$X_LIBS,;t t
42224s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42225s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42226s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42227s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42228s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42229s,@RESCOMP@,$RESCOMP,;t t
42230s,@DEREZ@,$DEREZ,;t t
42231s,@SETFILE@,$SETFILE,;t t
42232s,@LIBICONV@,$LIBICONV,;t t
42233s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42234s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42235s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42236s,@SDL_LIBS@,$SDL_LIBS,;t t
42237s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42238s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42239s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42240s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42241s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42242s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42243s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42244s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42245s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42246s,@VENDOR@,$VENDOR,;t t
42247s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42248s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42249s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42250s,@WXUNIV@,$WXUNIV,;t t
42251s,@MONOLITHIC@,$MONOLITHIC,;t t
42252s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42253s,@EXTRALIBS@,$EXTRALIBS,;t t
42254s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42255s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42256s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42257s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42258s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42259s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42260s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42261s,@UNICODE@,$UNICODE,;t t
42262s,@BUILD@,$BUILD,;t t
42263s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42264s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42265s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42266s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42267s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42268s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42269s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42270s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42271s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42272s,@SET_MAKE@,$SET_MAKE,;t t
42273s,@MAKE_SET@,$MAKE_SET,;t t
42274s,@ac_ct_AR@,$ac_ct_AR,;t t
42275s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42276s,@NM@,$NM,;t t
42277s,@ac_ct_NM@,$ac_ct_NM,;t t
42278s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42279s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42280s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42281s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42282s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42283s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42284s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42285s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42286s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42287s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42288s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42289s,@LIBPREFIX@,$LIBPREFIX,;t t
42290s,@LIBEXT@,$LIBEXT,;t t
42291s,@DLLPREFIX@,$DLLPREFIX,;t t
42292s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42293s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42294s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42295s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42296s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42297s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42298s,@PIC_FLAG@,$PIC_FLAG,;t t
42299s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42300s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42301s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42302s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42303s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42304s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42305s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42306s,@GCC_PCH@,$GCC_PCH,;t t
42307s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42308s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42309s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42310s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42311s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42312s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42313s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42314s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42315s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42316s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42317s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42318s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42319s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42320s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42321s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42322s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42323s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42324s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42325s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42326s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42327s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42328s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42329s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42330s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42331s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42332s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42333s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42334s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42335s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42336s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42337s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42338s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42339s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42340s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42341s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42342s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42343s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42344s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42345s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42346s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42347s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42348s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42349s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42350s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42351s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42352s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42353s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42354s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42355s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42356s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42357s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42358s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42359s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42360s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42361s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42362s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42363s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42364s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42365s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42366s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42367s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42368s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42369s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42370s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42371s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42372s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42373s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42374s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42375s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42376s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42377s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42378s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42379s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42380s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42381s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42382s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42383s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42384s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42385s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42386s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42387s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42388s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42389s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42390s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42391s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42392s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42393s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42394s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42395s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42396s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42397s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42398s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42399s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42400s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42401s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42402s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42403s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42404s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42405s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42406s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
42407s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42408s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42409s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42410s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42411s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42412s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42413s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42414s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42415s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42416s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42417s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42418s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42419s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42420s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42421s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42422s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42423s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42424s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42425s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42426s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42427s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42428s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42429s,@USE_GUI@,$USE_GUI,;t t
42430s,@AFMINSTALL@,$AFMINSTALL,;t t
42431s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42432s,@TOOLKIT@,$TOOLKIT,;t t
42433s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42434s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42435s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42436s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42437s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42438s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42439s,@WIDGET_SET@,$WIDGET_SET,;t t
42440s,@WX_RELEASE@,$WX_RELEASE,;t t
42441s,@WX_VERSION@,$WX_VERSION,;t t
42442s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42443s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42444s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42445s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42446s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42447s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42448s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42449s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42450s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42451s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42452s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42453s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42454s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42455s,@DISTDIR@,$DISTDIR,;t t
42456s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42457s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42458s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42459s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42460s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42461s,@RESFLAGS@,$RESFLAGS,;t t
42462s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42463s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42464s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42465s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42466s,@MACRESCOMP@,$MACRESCOMP,;t t
42467s,@MACSETFILE@,$MACSETFILE,;t t
42468s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42469s,@GCC@,$GCC,;t t
a848cd7e 42470s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42471s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42472s,@LIBOBJS@,$LIBOBJS,;t t
42473s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42474CEOF
42475
42476_ACEOF
42477
42478 cat >>$CONFIG_STATUS <<\_ACEOF
42479 # Split the substitutions into bite-sized pieces for seds with
42480 # small command number limits, like on Digital OSF/1 and HP-UX.
42481 ac_max_sed_lines=48
42482 ac_sed_frag=1 # Number of current file.
42483 ac_beg=1 # First line for current file.
42484 ac_end=$ac_max_sed_lines # Line after last line for current file.
42485 ac_more_lines=:
42486 ac_sed_cmds=
42487 while $ac_more_lines; do
42488 if test $ac_beg -gt 1; then
42489 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42490 else
42491 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42492 fi
42493 if test ! -s $tmp/subs.frag; then
42494 ac_more_lines=false
42495 else
42496 # The purpose of the label and of the branching condition is to
42497 # speed up the sed processing (if there are no `@' at all, there
42498 # is no need to browse any of the substitutions).
42499 # These are the two extra sed commands mentioned above.
42500 (echo ':t
42501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42502 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42503 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42504 else
ac1cb8d3 42505 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42506 fi
42507 ac_sed_frag=`expr $ac_sed_frag + 1`
42508 ac_beg=$ac_end
42509 ac_end=`expr $ac_end + $ac_max_sed_lines`
42510 fi
42511 done
42512 if test -z "$ac_sed_cmds"; then
42513 ac_sed_cmds=cat
42514 fi
42515fi # test -n "$CONFIG_FILES"
42516
42517_ACEOF
42518cat >>$CONFIG_STATUS <<\_ACEOF
42519for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42521 case $ac_file in
42522 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42523 cat >$tmp/stdin
42524 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42526 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42528 * ) ac_file_in=$ac_file.in ;;
42529 esac
42530
42531 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42532 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42533$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42534 X"$ac_file" : 'X\(//\)[^/]' \| \
42535 X"$ac_file" : 'X\(//\)$' \| \
42536 X"$ac_file" : 'X\(/\)' \| \
42537 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42538echo X"$ac_file" |
42539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42541 /^X\(\/\/\)$/{ s//\1/; q; }
42542 /^X\(\/\).*/{ s//\1/; q; }
42543 s/.*/./; q'`
42544 { if $as_mkdir_p; then
42545 mkdir -p "$ac_dir"
42546 else
42547 as_dir="$ac_dir"
42548 as_dirs=
42549 while test ! -d "$as_dir"; do
42550 as_dirs="$as_dir $as_dirs"
42551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42553 X"$as_dir" : 'X\(//\)[^/]' \| \
42554 X"$as_dir" : 'X\(//\)$' \| \
42555 X"$as_dir" : 'X\(/\)' \| \
42556 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42557echo X"$as_dir" |
42558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42560 /^X\(\/\/\)$/{ s//\1/; q; }
42561 /^X\(\/\).*/{ s//\1/; q; }
42562 s/.*/./; q'`
42563 done
42564 test ! -n "$as_dirs" || mkdir $as_dirs
42565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42566echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42567 { (exit 1); exit 1; }; }; }
42568
42569 ac_builddir=.
42570
42571if test "$ac_dir" != .; then
42572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42573 # A "../" for each directory in $ac_dir_suffix.
42574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42575else
42576 ac_dir_suffix= ac_top_builddir=
42577fi
42578
42579case $srcdir in
42580 .) # No --srcdir option. We are building in place.
42581 ac_srcdir=.
42582 if test -z "$ac_top_builddir"; then
42583 ac_top_srcdir=.
42584 else
42585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42586 fi ;;
42587 [\\/]* | ?:[\\/]* ) # Absolute path.
42588 ac_srcdir=$srcdir$ac_dir_suffix;
42589 ac_top_srcdir=$srcdir ;;
42590 *) # Relative path.
42591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42593esac
ac1cb8d3
VS
42594
42595# Do not use `cd foo && pwd` to compute absolute paths, because
42596# the directories may not exist.
42597case `pwd` in
42598.) ac_abs_builddir="$ac_dir";;
42599*)
42600 case "$ac_dir" in
42601 .) ac_abs_builddir=`pwd`;;
42602 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42603 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42604 esac;;
42605esac
42606case $ac_abs_builddir in
42607.) ac_abs_top_builddir=${ac_top_builddir}.;;
42608*)
42609 case ${ac_top_builddir}. in
42610 .) ac_abs_top_builddir=$ac_abs_builddir;;
42611 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42612 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42613 esac;;
42614esac
42615case $ac_abs_builddir in
42616.) ac_abs_srcdir=$ac_srcdir;;
42617*)
42618 case $ac_srcdir in
42619 .) ac_abs_srcdir=$ac_abs_builddir;;
42620 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42621 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42622 esac;;
42623esac
42624case $ac_abs_builddir in
42625.) ac_abs_top_srcdir=$ac_top_srcdir;;
42626*)
42627 case $ac_top_srcdir in
42628 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42629 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42630 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42631 esac;;
42632esac
a848cd7e
SC
42633
42634
42635 case $INSTALL in
42636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42637 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42638 esac
42639
c228d3a4
RN
42640 if test x"$ac_file" != x-; then
42641 { echo "$as_me:$LINENO: creating $ac_file" >&5
42642echo "$as_me: creating $ac_file" >&6;}
42643 rm -f "$ac_file"
42644 fi
a848cd7e
SC
42645 # Let's still pretend it is `configure' which instantiates (i.e., don't
42646 # use $as_me), people would be surprised to read:
42647 # /* config.h. Generated by config.status. */
42648 if test x"$ac_file" = x-; then
42649 configure_input=
42650 else
42651 configure_input="$ac_file. "
42652 fi
42653 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42654 sed 's,.*/,,'` by configure."
a848cd7e
SC
42655
42656 # First look for the input files in the build tree, otherwise in the
42657 # src tree.
42658 ac_file_inputs=`IFS=:
42659 for f in $ac_file_in; do
42660 case $f in
42661 -) echo $tmp/stdin ;;
42662 [\\/$]*)
ac1cb8d3
VS
42663 # Absolute (can't be DOS-style, as IFS=:)
42664 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42665echo "$as_me: error: cannot find input file: $f" >&2;}
42666 { (exit 1); exit 1; }; }
ac1cb8d3 42667 echo "$f";;
a848cd7e 42668 *) # Relative
ac1cb8d3
VS
42669 if test -f "$f"; then
42670 # Build tree
42671 echo "$f"
42672 elif test -f "$srcdir/$f"; then
42673 # Source tree
42674 echo "$srcdir/$f"
42675 else
42676 # /dev/null tree
42677 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42678echo "$as_me: error: cannot find input file: $f" >&2;}
42679 { (exit 1); exit 1; }; }
ac1cb8d3 42680 fi;;
a848cd7e
SC
42681 esac
42682 done` || { (exit 1); exit 1; }
42683_ACEOF
42684cat >>$CONFIG_STATUS <<_ACEOF
42685 sed "$ac_vpsub
42686$extrasub
42687_ACEOF
42688cat >>$CONFIG_STATUS <<\_ACEOF
42689:t
42690/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42691s,@configure_input@,$configure_input,;t t
42692s,@srcdir@,$ac_srcdir,;t t
42693s,@abs_srcdir@,$ac_abs_srcdir,;t t
42694s,@top_srcdir@,$ac_top_srcdir,;t t
42695s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42696s,@builddir@,$ac_builddir,;t t
42697s,@abs_builddir@,$ac_abs_builddir,;t t
42698s,@top_builddir@,$ac_top_builddir,;t t
42699s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42700s,@INSTALL@,$ac_INSTALL,;t t
42701" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42702 rm -f $tmp/stdin
42703 if test x"$ac_file" != x-; then
42704 mv $tmp/out $ac_file
42705 else
42706 cat $tmp/out
42707 rm -f $tmp/out
42708 fi
42709
ceec2216
RL
42710 # Run the commands associated with the file.
42711 case $ac_file in
42712 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42713 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42714 esac
a848cd7e
SC
42715done
42716_ACEOF
42717cat >>$CONFIG_STATUS <<\_ACEOF
42718
42719#
42720# CONFIG_HEADER section.
42721#
42722
42723# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42724# NAME is the cpp macro being defined and VALUE is the value it is being given.
42725#
42726# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42727ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42728ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42729ac_dC=' '
42730ac_dD=',;t'
42731# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42732ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42733ac_uB='$,\1#\2define\3'
42734ac_uC=' '
42735ac_uD=',;t'
42736
42737for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42739 case $ac_file in
42740 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42741 cat >$tmp/stdin
42742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42746 * ) ac_file_in=$ac_file.in ;;
42747 esac
42748
42749 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42750echo "$as_me: creating $ac_file" >&6;}
42751
42752 # First look for the input files in the build tree, otherwise in the
42753 # src tree.
42754 ac_file_inputs=`IFS=:
42755 for f in $ac_file_in; do
42756 case $f in
42757 -) echo $tmp/stdin ;;
42758 [\\/$]*)
ac1cb8d3
VS
42759 # Absolute (can't be DOS-style, as IFS=:)
42760 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42761echo "$as_me: error: cannot find input file: $f" >&2;}
42762 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42763 # Do quote $f, to prevent DOS paths from being IFS'd.
42764 echo "$f";;
a848cd7e 42765 *) # Relative
ac1cb8d3
VS
42766 if test -f "$f"; then
42767 # Build tree
42768 echo "$f"
42769 elif test -f "$srcdir/$f"; then
42770 # Source tree
42771 echo "$srcdir/$f"
42772 else
42773 # /dev/null tree
42774 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42775echo "$as_me: error: cannot find input file: $f" >&2;}
42776 { (exit 1); exit 1; }; }
ac1cb8d3 42777 fi;;
a848cd7e
SC
42778 esac
42779 done` || { (exit 1); exit 1; }
42780 # Remove the trailing spaces.
ac1cb8d3 42781 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42782
42783_ACEOF
42784
42785# Transform confdefs.h into two sed scripts, `conftest.defines' and
42786# `conftest.undefs', that substitutes the proper values into
42787# config.h.in to produce config.h. The first handles `#define'
42788# templates, and the second `#undef' templates.
42789# And first: Protect against being on the right side of a sed subst in
42790# config.status. Protect against being in an unquoted here document
42791# in config.status.
42792rm -f conftest.defines conftest.undefs
42793# Using a here document instead of a string reduces the quoting nightmare.
42794# Putting comments in sed scripts is not portable.
42795#
42796# `end' is used to avoid that the second main sed command (meant for
42797# 0-ary CPP macros) applies to n-ary macro definitions.
42798# See the Autoconf documentation for `clear'.
42799cat >confdef2sed.sed <<\_ACEOF
42800s/[\\&,]/\\&/g
42801s,[\\$`],\\&,g
42802t clear
42803: clear
ac1cb8d3 42804s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42805t end
ac1cb8d3 42806s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42807: end
42808_ACEOF
42809# If some macros were called several times there might be several times
42810# the same #defines, which is useless. Nevertheless, we may not want to
42811# sort them, since we want the *last* AC-DEFINE to be honored.
42812uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42813sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42814rm -f confdef2sed.sed
42815
42816# This sed command replaces #undef with comments. This is necessary, for
42817# example, in the case of _POSIX_SOURCE, which is predefined and required
42818# on some systems where configure will not decide to define it.
42819cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42820s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42821_ACEOF
42822
42823# Break up conftest.defines because some shells have a limit on the size
42824# of here documents, and old seds have small limits too (100 cmds).
42825echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42826echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42827echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42828echo ' :' >>$CONFIG_STATUS
42829rm -f conftest.tail
42830while grep . conftest.defines >/dev/null
42831do
42832 # Write a limited-size here document to $tmp/defines.sed.
42833 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42834 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42835 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42836 # Work around the forget-to-reset-the-flag bug.
42837 echo 't clr' >>$CONFIG_STATUS
42838 echo ': clr' >>$CONFIG_STATUS
42839 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42840 echo 'CEOF
42841 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42842 rm -f $tmp/in
42843 mv $tmp/out $tmp/in
42844' >>$CONFIG_STATUS
42845 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42846 rm -f conftest.defines
42847 mv conftest.tail conftest.defines
42848done
42849rm -f conftest.defines
42850echo ' fi # grep' >>$CONFIG_STATUS
42851echo >>$CONFIG_STATUS
42852
42853# Break up conftest.undefs because some shells have a limit on the size
42854# of here documents, and old seds have small limits too (100 cmds).
42855echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42856rm -f conftest.tail
42857while grep . conftest.undefs >/dev/null
42858do
42859 # Write a limited-size here document to $tmp/undefs.sed.
42860 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42861 # Speed up: don't consider the non `#undef'
ac1cb8d3 42862 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42863 # Work around the forget-to-reset-the-flag bug.
42864 echo 't clr' >>$CONFIG_STATUS
42865 echo ': clr' >>$CONFIG_STATUS
42866 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42867 echo 'CEOF
42868 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42869 rm -f $tmp/in
42870 mv $tmp/out $tmp/in
42871' >>$CONFIG_STATUS
42872 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42873 rm -f conftest.undefs
42874 mv conftest.tail conftest.undefs
42875done
42876rm -f conftest.undefs
42877
42878cat >>$CONFIG_STATUS <<\_ACEOF
42879 # Let's still pretend it is `configure' which instantiates (i.e., don't
42880 # use $as_me), people would be surprised to read:
42881 # /* config.h. Generated by config.status. */
42882 if test x"$ac_file" = x-; then
42883 echo "/* Generated by configure. */" >$tmp/config.h
42884 else
42885 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42886 fi
42887 cat $tmp/in >>$tmp/config.h
42888 rm -f $tmp/in
42889 if test x"$ac_file" != x-; then
42890 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42891 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42892echo "$as_me: $ac_file is unchanged" >&6;}
42893 else
42894 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42895$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42896 X"$ac_file" : 'X\(//\)[^/]' \| \
42897 X"$ac_file" : 'X\(//\)$' \| \
42898 X"$ac_file" : 'X\(/\)' \| \
42899 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42900echo X"$ac_file" |
42901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42903 /^X\(\/\/\)$/{ s//\1/; q; }
42904 /^X\(\/\).*/{ s//\1/; q; }
42905 s/.*/./; q'`
42906 { if $as_mkdir_p; then
42907 mkdir -p "$ac_dir"
42908 else
42909 as_dir="$ac_dir"
42910 as_dirs=
42911 while test ! -d "$as_dir"; do
42912 as_dirs="$as_dir $as_dirs"
42913 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42914$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42915 X"$as_dir" : 'X\(//\)[^/]' \| \
42916 X"$as_dir" : 'X\(//\)$' \| \
42917 X"$as_dir" : 'X\(/\)' \| \
42918 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42919echo X"$as_dir" |
42920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42922 /^X\(\/\/\)$/{ s//\1/; q; }
42923 /^X\(\/\).*/{ s//\1/; q; }
42924 s/.*/./; q'`
42925 done
42926 test ! -n "$as_dirs" || mkdir $as_dirs
42927 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42928echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42929 { (exit 1); exit 1; }; }; }
42930
42931 rm -f $ac_file
42932 mv $tmp/config.h $ac_file
42933 fi
42934 else
42935 cat $tmp/config.h
42936 rm -f $tmp/config.h
42937 fi
42938done
42939_ACEOF
42940cat >>$CONFIG_STATUS <<\_ACEOF
42941
42942#
42943# CONFIG_COMMANDS section.
42944#
42945for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42946 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42947 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42948 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42949$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42950 X"$ac_dest" : 'X\(//\)[^/]' \| \
42951 X"$ac_dest" : 'X\(//\)$' \| \
42952 X"$ac_dest" : 'X\(/\)' \| \
42953 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42954echo X"$ac_dest" |
42955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42957 /^X\(\/\/\)$/{ s//\1/; q; }
42958 /^X\(\/\).*/{ s//\1/; q; }
42959 s/.*/./; q'`
ac1cb8d3
VS
42960 { if $as_mkdir_p; then
42961 mkdir -p "$ac_dir"
42962 else
42963 as_dir="$ac_dir"
42964 as_dirs=
42965 while test ! -d "$as_dir"; do
42966 as_dirs="$as_dir $as_dirs"
42967 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42969 X"$as_dir" : 'X\(//\)[^/]' \| \
42970 X"$as_dir" : 'X\(//\)$' \| \
42971 X"$as_dir" : 'X\(/\)' \| \
42972 . : '\(.\)' 2>/dev/null ||
42973echo X"$as_dir" |
42974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42976 /^X\(\/\/\)$/{ s//\1/; q; }
42977 /^X\(\/\).*/{ s//\1/; q; }
42978 s/.*/./; q'`
42979 done
42980 test ! -n "$as_dirs" || mkdir $as_dirs
42981 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42982echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42983 { (exit 1); exit 1; }; }; }
42984
a848cd7e
SC
42985 ac_builddir=.
42986
42987if test "$ac_dir" != .; then
42988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42989 # A "../" for each directory in $ac_dir_suffix.
42990 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42991else
42992 ac_dir_suffix= ac_top_builddir=
42993fi
42994
42995case $srcdir in
42996 .) # No --srcdir option. We are building in place.
42997 ac_srcdir=.
42998 if test -z "$ac_top_builddir"; then
42999 ac_top_srcdir=.
43000 else
43001 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43002 fi ;;
43003 [\\/]* | ?:[\\/]* ) # Absolute path.
43004 ac_srcdir=$srcdir$ac_dir_suffix;
43005 ac_top_srcdir=$srcdir ;;
43006 *) # Relative path.
43007 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43008 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43009esac
ac1cb8d3
VS
43010
43011# Do not use `cd foo && pwd` to compute absolute paths, because
43012# the directories may not exist.
43013case `pwd` in
43014.) ac_abs_builddir="$ac_dir";;
43015*)
43016 case "$ac_dir" in
43017 .) ac_abs_builddir=`pwd`;;
43018 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43019 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43020 esac;;
43021esac
43022case $ac_abs_builddir in
43023.) ac_abs_top_builddir=${ac_top_builddir}.;;
43024*)
43025 case ${ac_top_builddir}. in
43026 .) ac_abs_top_builddir=$ac_abs_builddir;;
43027 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43028 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43029 esac;;
43030esac
43031case $ac_abs_builddir in
43032.) ac_abs_srcdir=$ac_srcdir;;
43033*)
43034 case $ac_srcdir in
43035 .) ac_abs_srcdir=$ac_abs_builddir;;
43036 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43037 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43038 esac;;
43039esac
43040case $ac_abs_builddir in
43041.) ac_abs_top_srcdir=$ac_top_srcdir;;
43042*)
43043 case $ac_top_srcdir in
43044 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43045 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43046 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43047 esac;;
43048esac
a848cd7e
SC
43049
43050
43051 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43052echo "$as_me: executing $ac_dest commands" >&6;}
43053 case $ac_dest in
ceec2216
RL
43054 wx-config ) rm -f wx-config
43055 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43056 ;;
a848cd7e
SC
43057 esac
43058done
43059_ACEOF
43060
43061cat >>$CONFIG_STATUS <<\_ACEOF
43062
43063{ (exit 0); exit 0; }
43064_ACEOF
43065chmod +x $CONFIG_STATUS
43066ac_clean_files=$ac_clean_files_save
43067
43068
43069# configure is writing to config.log, and then calls config.status.
43070# config.status does its own redirection, appending to config.log.
43071# Unfortunately, on DOS this fails, as config.log is still kept open
43072# by configure, so config.status won't be able to write to it; its
43073# output is simply discarded. So we exec the FD to /dev/null,
43074# effectively closing config.log, so it can be properly (re)opened and
43075# appended to by config.status. When coming back to configure, we
43076# need to make the FD available again.
43077if test "$no_create" != yes; then
43078 ac_cs_success=:
43079 ac_config_status_args=
43080 test "$silent" = yes &&
43081 ac_config_status_args="$ac_config_status_args --quiet"
43082 exec 5>/dev/null
43083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43084 exec 5>>config.log
43085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43086 # would make configure fail if this is the last instruction.
43087 $ac_cs_success || { (exit 1); exit 1; }
43088fi
43089
43090#
43091# CONFIG_SUBDIRS section.
43092#
43093if test "$no_recursion" != yes; then
43094
43095 # Remove --cache-file and --srcdir arguments so they do not pile up.
43096 ac_sub_configure_args=
43097 ac_prev=
43098 for ac_arg in $ac_configure_args; do
43099 if test -n "$ac_prev"; then
43100 ac_prev=
43101 continue
43102 fi
43103 case $ac_arg in
43104 -cache-file | --cache-file | --cache-fil | --cache-fi \
43105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43106 ac_prev=cache_file ;;
43107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43109 | --c=*)
43110 ;;
43111 --config-cache | -C)
43112 ;;
43113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43114 ac_prev=srcdir ;;
43115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43116 ;;
43117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43118 ac_prev=prefix ;;
43119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43120 ;;
43121 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43122 esac
43123 done
43124
43125 # Always prepend --prefix to ensure using the same prefix
43126 # in subdir configurations.
43127 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43128
43129 ac_popdir=`pwd`
43130 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43131
43132 # Do not complain, so a configure script can configure whichever
43133 # parts of a large source tree are present.
43134 test -d $srcdir/$ac_dir || continue
43135
43136 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43137echo "$as_me: configuring in $ac_dir" >&6;}
43138 { if $as_mkdir_p; then
43139 mkdir -p "$ac_dir"
43140 else
43141 as_dir="$ac_dir"
43142 as_dirs=
43143 while test ! -d "$as_dir"; do
43144 as_dirs="$as_dir $as_dirs"
43145 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43147 X"$as_dir" : 'X\(//\)[^/]' \| \
43148 X"$as_dir" : 'X\(//\)$' \| \
43149 X"$as_dir" : 'X\(/\)' \| \
43150 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43151echo X"$as_dir" |
43152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43154 /^X\(\/\/\)$/{ s//\1/; q; }
43155 /^X\(\/\).*/{ s//\1/; q; }
43156 s/.*/./; q'`
43157 done
43158 test ! -n "$as_dirs" || mkdir $as_dirs
43159 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43160echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43161 { (exit 1); exit 1; }; }; }
43162
43163 ac_builddir=.
43164
43165if test "$ac_dir" != .; then
43166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43167 # A "../" for each directory in $ac_dir_suffix.
43168 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43169else
43170 ac_dir_suffix= ac_top_builddir=
43171fi
43172
43173case $srcdir in
43174 .) # No --srcdir option. We are building in place.
43175 ac_srcdir=.
43176 if test -z "$ac_top_builddir"; then
43177 ac_top_srcdir=.
43178 else
43179 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43180 fi ;;
43181 [\\/]* | ?:[\\/]* ) # Absolute path.
43182 ac_srcdir=$srcdir$ac_dir_suffix;
43183 ac_top_srcdir=$srcdir ;;
43184 *) # Relative path.
43185 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43186 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43187esac
ac1cb8d3
VS
43188
43189# Do not use `cd foo && pwd` to compute absolute paths, because
43190# the directories may not exist.
43191case `pwd` in
43192.) ac_abs_builddir="$ac_dir";;
43193*)
43194 case "$ac_dir" in
43195 .) ac_abs_builddir=`pwd`;;
43196 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43197 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43198 esac;;
43199esac
43200case $ac_abs_builddir in
43201.) ac_abs_top_builddir=${ac_top_builddir}.;;
43202*)
43203 case ${ac_top_builddir}. in
43204 .) ac_abs_top_builddir=$ac_abs_builddir;;
43205 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43206 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43207 esac;;
43208esac
43209case $ac_abs_builddir in
43210.) ac_abs_srcdir=$ac_srcdir;;
43211*)
43212 case $ac_srcdir in
43213 .) ac_abs_srcdir=$ac_abs_builddir;;
43214 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43215 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43216 esac;;
43217esac
43218case $ac_abs_builddir in
43219.) ac_abs_top_srcdir=$ac_top_srcdir;;
43220*)
43221 case $ac_top_srcdir in
43222 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43223 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43224 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43225 esac;;
43226esac
a848cd7e
SC
43227
43228
43229 cd $ac_dir
43230
43231 # Check for guested configure; otherwise get Cygnus style configure.
43232 if test -f $ac_srcdir/configure.gnu; then
43233 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43234 elif test -f $ac_srcdir/configure; then
43235 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43236 elif test -f $ac_srcdir/configure.in; then
43237 ac_sub_configure=$ac_configure
43238 else
43239 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43240echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43241 ac_sub_configure=
43242 fi
43243
43244 # The recursion is here.
43245 if test -n "$ac_sub_configure"; then
43246 # Make the cache file name correct relative to the subdirectory.
43247 case $cache_file in
43248 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43249 *) # Relative path.
ac1cb8d3 43250 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43251 esac
43252
43253 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43254echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43255 # The eval makes quoting arguments work.
43256 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43257 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43258 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43259echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43260 { (exit 1); exit 1; }; }
43261 fi
43262
c228d3a4 43263 cd $ac_popdir
a848cd7e
SC
43264 done
43265fi
43266
43267
43268echo
77ffb593 43269echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43270echo ""
4d4ff94c 43271echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43272echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43273
77ffb593
JS
43274echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43275echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43276echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43277
77ffb593
JS
43278echo " What level of wxWidgets compatibility should be enabled?"
43279echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43280echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43281
77ffb593 43282echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43283echo " jpeg ${wxUSE_LIBJPEG-none}"
43284echo " png ${wxUSE_LIBPNG-none}"
43285echo " regex ${wxUSE_REGEX}"
43286echo " tiff ${wxUSE_LIBTIFF-none}"
43287if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43288echo " xpm ${wxUSE_LIBXPM-none}"
43289fi
43290echo " zlib ${wxUSE_ZLIB}"
43291echo " odbc ${wxUSE_ODBC}"
43292echo " expat ${wxUSE_EXPAT}"
43293echo " libmspack ${wxUSE_LIBMSPACK}"
43294echo " sdl ${wxUSE_LIBSDL}"
43295
43296echo ""
43297