]> git.saurik.com Git - wxWidgets.git/blame - configure
wxChoicebook generic 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.
ac1cb8d3 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2.
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'
273PACKAGE_VERSION='2.5.2'
274PACKAGE_STRING='wxWidgets 2.5.2'
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"
4d4ff94c 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 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 SHARED 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_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_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_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_MAC_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_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_WITH_PLUGIN_SDL_1 COND_WITH_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 PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_SUBRELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY 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
77ffb593 797\`configure' configures wxWidgets 2.5.2 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
77ffb593 863 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
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
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
8a7b1113 950 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
646b6ec1 954 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
970 --enable-combobox use wxComboBox class
971 --enable-display use wxDisplay class
972 --enable-gauge use wxGauge class
973 --enable-grid use wxGrid class
974 --enable-imaglist use wxImageList class
975 --enable-listbook use wxListbook class
976 --enable-listbox use wxListBox class
977 --enable-listctrl use wxListCtrl class
978 --enable-notebook use wxNotebook class
979 --enable-radiobox use wxRadioBox class
980 --enable-radiobtn use wxRadioButton class
981 --enable-sash use wxSashWindow class
982 --enable-scrollbar use wxScrollBar class and scrollable windows
983 --enable-slider use wxSlider class
984 --enable-spinbtn use wxSpinButton class
985 --enable-spinctrl use wxSpinCtrl class
986 --enable-splitter use wxSplitterWindow class
987 --enable-statbmp use wxStaticBitmap class
988 --enable-statbox use wxStaticBox class
989 --enable-statline use wxStaticLine class
990 --enable-stattext use wxStaticText class
991 --enable-statusbar use wxStatusBar class
992 --enable-tabdialog use wxTabControl class
993 --enable-textctrl use wxTextCtrl class
994 --enable-togglebtn use wxToggleButton class
995 --enable-toolbar use wxToolBar class
996 --enable-tbarnative use native wxToolBar class
997 --enable-tbarsmpl use wxToolBarSimple class
998 --enable-treectrl use wxTreeCtrl class
999 --enable-tipwindow use wxTipWindow class
1000 --enable-popupwin use wxPopUpWindow class
1001 --enable-commondlg use all common dialogs
1002 --enable-choicedlg use wxChoiceDialog
1003 --enable-coldlg use wxColourDialog
1004 --enable-filedlg use wxFileDialog
1005 --enable-finddlg use wxFindReplaceDialog
1006 --enable-fontdlg use wxFontDialog
1007 --enable-dirdlg use wxDirDialog
1008 --enable-msgdlg use wxMessageDialog
1009 --enable-numberdlg use wxNumberEntryDialog
1010 --enable-splash use wxSplashScreen
1011 --enable-textdlg use wxTextDialog
1012 --enable-tipdlg use startup tips
1013 --enable-progressdlg use wxProgressDialog
1014 --enable-wizarddlg use wxWizard
1015 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1016 --enable-miniframe use wxMiniFrame class
1017 --enable-tooltips use wxToolTip class
1018 --enable-splines use spline drawing code
1019 --enable-validators use wxValidator and derived classes
1020 --enable-busyinfo use wxBusyInfo
1021 --enable-joystick use wxJoystick (Linux only)
1022 --enable-metafiles use wxMetaFile (Windows only)
1023 --enable-dragimage use wxDragImage
1024 --enable-accessibility enable accessibility support
1025 --enable-palette use wxPalette class
1026 --enable-image use wxImage class
1027 --enable-gif use gif images (GIF file format)
1028 --enable-pcx use pcx images (PCX file format)
1029 --enable-iff use iff images (IFF file format)
1030 --enable-pnm use pnm images (PNM file format)
1031 --enable-xpm use xpm images (XPM file format)
1032 --enable-icocur use Windows ICO and CUR formats
77ffb593 1033 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1034 --enable-vendor=VENDOR vendor name (win32 DLL only)
1035 --disable-largefile omit support for large files
1036 --disable-gtktest do not try to compile and run a test GTK+ program
1037 --disable-gtktest Do not try to compile and run a test GTK program
1038 --disable-sdltest Do not try to compile and run a test SDL program
1039 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1040 --disable-precomp-headers
1041 don't use precompiled headers even if compiler can
a848cd7e
SC
1042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gtk use GTK+
1047 --with-motif use Motif/Lesstif
1048 --with-mac use Mac OS X
1049 --with-cocoa use Cocoa
1050 --with-wine use Wine
1051 --with-msw use MS-Windows
1052 --with-pm use OS/2 Presentation Manager
1053 --with-mgl use SciTech MGL
1054 --with-microwin use MicroWindows
1055 --with-x11 use X11
1056 --with-libpng use libpng (PNG image format)
1057 --with-libjpeg use libjpeg (JPEG file format)
1058 --with-libtiff use libtiff (TIFF file format)
1059 --with-libxpm use libxpm (XPM file format)
1060 --with-libmspack use libmspack (CHM help files loading)
1061 --with-sdl use SDL for audio on Unix
1062 --with-opengl use OpenGL (or Mesa)
1063 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1064 --with-regex enable support for wxRegEx class
1065 --with-zlib use zlib for LZW compression
1066 --with-odbc use the IODBC and wxODBC classes
1067 --with-expat enable XML support using expat parser
1068 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1069 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1070 --with-x use the X Window System
1071 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1072 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1073 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1074 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1075 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1076
1077Some influential environment variables:
dcc1b6ad
VS
1078 CC C compiler command
1079 CFLAGS C compiler flags
1080 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1081 nonstandard directory <lib dir>
1082 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1083 headers in a nonstandard directory <include dir>
1084 CPP C preprocessor
1085 CXX C++ compiler command
1086 CXXFLAGS C++ compiler flags
1087 CXXCPP C++ preprocessor
a848cd7e
SC
1088
1089Use these variables to override the choices made by `configure' or to help
1090it to find libraries and programs with nonstandard names/locations.
1091
77ffb593 1092Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1093_ACEOF
1094fi
1095
1096if test "$ac_init_help" = "recursive"; then
1097 # If there are subdirs, report their specific --help.
1098 ac_popdir=`pwd`
1099 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1100 test -d $ac_dir || continue
1101 ac_builddir=.
1102
1103if test "$ac_dir" != .; then
1104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1105 # A "../" for each directory in $ac_dir_suffix.
1106 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1107else
1108 ac_dir_suffix= ac_top_builddir=
1109fi
1110
1111case $srcdir in
1112 .) # No --srcdir option. We are building in place.
1113 ac_srcdir=.
1114 if test -z "$ac_top_builddir"; then
1115 ac_top_srcdir=.
1116 else
1117 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1118 fi ;;
1119 [\\/]* | ?:[\\/]* ) # Absolute path.
1120 ac_srcdir=$srcdir$ac_dir_suffix;
1121 ac_top_srcdir=$srcdir ;;
1122 *) # Relative path.
1123 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1124 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1125esac
ac1cb8d3
VS
1126
1127# Do not use `cd foo && pwd` to compute absolute paths, because
1128# the directories may not exist.
1129case `pwd` in
1130.) ac_abs_builddir="$ac_dir";;
1131*)
1132 case "$ac_dir" in
1133 .) ac_abs_builddir=`pwd`;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1135 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_top_builddir=${ac_top_builddir}.;;
1140*)
1141 case ${ac_top_builddir}. in
1142 .) ac_abs_top_builddir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1144 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1145 esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_srcdir=$ac_srcdir;;
1149*)
1150 case $ac_srcdir in
1151 .) ac_abs_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1153 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1154 esac;;
1155esac
1156case $ac_abs_builddir in
1157.) ac_abs_top_srcdir=$ac_top_srcdir;;
1158*)
1159 case $ac_top_srcdir in
1160 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1162 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1163 esac;;
1164esac
a848cd7e
SC
1165
1166 cd $ac_dir
1167 # Check for guested configure; otherwise get Cygnus style configure.
1168 if test -f $ac_srcdir/configure.gnu; then
1169 echo
1170 $SHELL $ac_srcdir/configure.gnu --help=recursive
1171 elif test -f $ac_srcdir/configure; then
1172 echo
1173 $SHELL $ac_srcdir/configure --help=recursive
1174 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1175 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1176 echo
1177 $ac_configure --help
1178 else
1179 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1180 fi
4d4ff94c 1181 cd "$ac_popdir"
a848cd7e
SC
1182 done
1183fi
1184
1185test -n "$ac_init_help" && exit 0
1186if $ac_init_version; then
1187 cat <<\_ACEOF
77ffb593 1188wxWidgets configure 2.5.2
ac1cb8d3 1189generated by GNU Autoconf 2.59
a848cd7e 1190
ac1cb8d3 1191Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1192This configure script is free software; the Free Software Foundation
1193gives unlimited permission to copy, distribute and modify it.
1194_ACEOF
1195 exit 0
1196fi
1197exec 5>config.log
1198cat >&5 <<_ACEOF
1199This file contains any messages produced by compilers while
1200running configure, to aid debugging if configure makes a mistake.
1201
77ffb593 1202It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1203generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1204
1205 $ $0 $@
1206
1207_ACEOF
1208{
1209cat <<_ASUNAME
1210## --------- ##
1211## Platform. ##
1212## --------- ##
1213
1214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1215uname -m = `(uname -m) 2>/dev/null || echo unknown`
1216uname -r = `(uname -r) 2>/dev/null || echo unknown`
1217uname -s = `(uname -s) 2>/dev/null || echo unknown`
1218uname -v = `(uname -v) 2>/dev/null || echo unknown`
1219
1220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1221/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1222
1223/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1224/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1226hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1227/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1228/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1229/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1230
1231_ASUNAME
1232
1233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1234for as_dir in $PATH
1235do
1236 IFS=$as_save_IFS
1237 test -z "$as_dir" && as_dir=.
1238 echo "PATH: $as_dir"
1239done
1240
1241} >&5
1242
1243cat >&5 <<_ACEOF
1244
1245
1246## ----------- ##
1247## Core tests. ##
1248## ----------- ##
1249
1250_ACEOF
1251
1252
1253# Keep a trace of the command line.
1254# Strip out --no-create and --no-recursion so they do not pile up.
1255# Strip out --silent because we don't want to record it for future runs.
1256# Also quote any args containing shell meta-characters.
1257# Make two passes to allow for proper duplicate-argument suppression.
1258ac_configure_args=
1259ac_configure_args0=
1260ac_configure_args1=
1261ac_sep=
1262ac_must_keep_next=false
1263for ac_pass in 1 2
1264do
1265 for ac_arg
1266 do
1267 case $ac_arg in
1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 continue ;;
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 esac
1275 case $ac_pass in
1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1277 2)
1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1279 if test $ac_must_keep_next = true; then
ac1cb8d3 1280 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1281 else
ac1cb8d3
VS
1282 case $ac_arg in
1283 *=* | --config-cache | -C | -disable-* | --disable-* \
1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1286 | -with-* | --with-* | -without-* | --without-* | --x)
1287 case "$ac_configure_args0 " in
1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1289 esac
1290 ;;
1291 -* ) ac_must_keep_next=true ;;
1292 esac
a848cd7e
SC
1293 fi
1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295 # Get rid of the leading space.
1296 ac_sep=" "
1297 ;;
1298 esac
1299 done
1300done
1301$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1302$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1303
1304# When interrupted or exit'd, cleanup temporary files, and complete
1305# config.log. We remove comments because anyway the quotes in there
1306# would cause problems or look ugly.
1307# WARNING: Be sure not to use single quotes in there, as some shells,
1308# such as our DU 5.0 friend, will then `close' the trap.
1309trap 'exit_status=$?
1310 # Save into config.log some information that might help in debugging.
1311 {
1312 echo
1313
1314 cat <<\_ASBOX
1315## ---------------- ##
1316## Cache variables. ##
1317## ---------------- ##
1318_ASBOX
1319 echo
1320 # The following way of writing the cache mishandles newlines in values,
1321{
1322 (set) 2>&1 |
1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324 *ac_space=\ *)
1325 sed -n \
ac1cb8d3
VS
1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1328 ;;
1329 *)
1330 sed -n \
ac1cb8d3 1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1332 ;;
1333 esac;
1334}
1335 echo
1336
1337 cat <<\_ASBOX
1338## ----------------- ##
1339## Output variables. ##
1340## ----------------- ##
1341_ASBOX
1342 echo
1343 for ac_var in $ac_subst_vars
1344 do
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1347 done | sort
1348 echo
1349
1350 if test -n "$ac_subst_files"; then
1351 cat <<\_ASBOX
1352## ------------- ##
1353## Output files. ##
1354## ------------- ##
1355_ASBOX
1356 echo
1357 for ac_var in $ac_subst_files
1358 do
1359 eval ac_val=$`echo $ac_var`
ac1cb8d3 1360 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1361 done | sort
1362 echo
1363 fi
1364
1365 if test -s confdefs.h; then
1366 cat <<\_ASBOX
1367## ----------- ##
1368## confdefs.h. ##
1369## ----------- ##
1370_ASBOX
1371 echo
1372 sed "/^$/d" confdefs.h | sort
1373 echo
1374 fi
1375 test "$ac_signal" != 0 &&
1376 echo "$as_me: caught signal $ac_signal"
1377 echo "$as_me: exit $exit_status"
1378 } >&5
ac1cb8d3 1379 rm -f core *.core &&
a848cd7e
SC
1380 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1381 exit $exit_status
1382 ' 0
1383for ac_signal in 1 2 13 15; do
1384 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1385done
1386ac_signal=0
1387
1388# confdefs.h avoids OS command line length limits that DEFS can exceed.
1389rm -rf conftest* confdefs.h
1390# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391echo >confdefs.h
1392
1393# Predefined preprocessor variables.
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_NAME "$PACKAGE_NAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_VERSION "$PACKAGE_VERSION"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_STRING "$PACKAGE_STRING"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1417_ACEOF
1418
1419
1420# Let the site file select an alternate cache file if it wants to.
1421# Prefer explicitly selected file to automatically selected ones.
1422if test -z "$CONFIG_SITE"; then
1423 if test "x$prefix" != xNONE; then
1424 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1425 else
1426 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1427 fi
1428fi
1429for ac_site_file in $CONFIG_SITE; do
1430 if test -r "$ac_site_file"; then
1431 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1432echo "$as_me: loading site script $ac_site_file" >&6;}
1433 sed 's/^/| /' "$ac_site_file" >&5
1434 . "$ac_site_file"
1435 fi
1436done
1437
1438if test -r "$cache_file"; then
1439 # Some versions of bash will fail to source /dev/null (special
1440 # files actually), so we avoid doing that.
1441 if test -f "$cache_file"; then
1442 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1443echo "$as_me: loading cache $cache_file" >&6;}
1444 case $cache_file in
1445 [\\/]* | ?:[\\/]* ) . $cache_file;;
1446 *) . ./$cache_file;;
1447 esac
1448 fi
1449else
1450 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1451echo "$as_me: creating cache $cache_file" >&6;}
1452 >$cache_file
1453fi
1454
1455# Check that the precious variables saved in the cache have kept the same
1456# value.
1457ac_cache_corrupted=false
1458for ac_var in `(set) 2>&1 |
ac1cb8d3 1459 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1461 eval ac_new_set=\$ac_env_${ac_var}_set
1462 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1463 eval ac_new_val="\$ac_env_${ac_var}_value"
1464 case $ac_old_set,$ac_new_set in
1465 set,)
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1469 ,set)
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1471echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1473 ,);;
1474 *)
1475 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1476 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1477echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1478 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1479echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1480 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1481echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1482 ac_cache_corrupted=:
a848cd7e
SC
1483 fi;;
1484 esac
1485 # Pass precious variables to config.status.
1486 if test "$ac_new_set" = set; then
1487 case $ac_new_val in
1488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1489 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1490 *) ac_arg=$ac_var=$ac_new_val ;;
1491 esac
1492 case " $ac_configure_args " in
1493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1494 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1495 esac
1496 fi
1497done
1498if $ac_cache_corrupted; then
1499 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1500echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1501 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1502echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1503 { (exit 1); exit 1; }; }
1504fi
1505
1506ac_ext=c
1507ac_cpp='$CPP $CPPFLAGS'
1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
1512
1513
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
1541ac_aux_dir=
1542for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1543 if test -f $ac_dir/install-sh; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 break
1547 elif test -f $ac_dir/install.sh; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 break
1551 elif test -f $ac_dir/shtool; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/shtool install -c"
1554 break
1555 fi
1556done
1557if test -z "$ac_aux_dir"; then
1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1559echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1560 { (exit 1); exit 1; }; }
1561fi
1562ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565
1566# Make sure we can run config.sub.
1567$ac_config_sub sun4 >/dev/null 2>&1 ||
1568 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1569echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572echo "$as_me:$LINENO: checking build system type" >&5
1573echo $ECHO_N "checking build system type... $ECHO_C" >&6
1574if test "${ac_cv_build+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_build_alias=$build_alias
1578test -z "$ac_cv_build_alias" &&
1579 ac_cv_build_alias=`$ac_config_guess`
1580test -z "$ac_cv_build_alias" &&
1581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1582echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1583 { (exit 1); exit 1; }; }
1584ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1588
1589fi
1590echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1591echo "${ECHO_T}$ac_cv_build" >&6
1592build=$ac_cv_build
1593build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
1597
1598echo "$as_me:$LINENO: checking host system type" >&5
1599echo $ECHO_N "checking host system type... $ECHO_C" >&6
1600if test "${ac_cv_host+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 ac_cv_host_alias=$host_alias
1604test -z "$ac_cv_host_alias" &&
1605 ac_cv_host_alias=$ac_cv_build_alias
1606ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1608echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1610
1611fi
1612echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1613echo "${ECHO_T}$ac_cv_host" >&6
1614host=$ac_cv_host
1615host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618
1619
1620echo "$as_me:$LINENO: checking target system type" >&5
1621echo $ECHO_N "checking target system type... $ECHO_C" >&6
1622if test "${ac_cv_target+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624else
1625 ac_cv_target_alias=$target_alias
1626test "x$ac_cv_target_alias" = "x" &&
1627 ac_cv_target_alias=$ac_cv_host_alias
1628ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1630echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1632
1633fi
1634echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1635echo "${ECHO_T}$ac_cv_target" >&6
1636target=$ac_cv_target
1637target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640
1641
1642# The aliases save the names the user supplied, while $host etc.
1643# will get canonicalized.
1644test -n "$target_alias" &&
1645 test "$program_prefix$program_suffix$program_transform_name" = \
1646 NONENONEs,x,x, &&
1647 program_prefix=${target_alias}-
1648
1649
1650
1651WX_MAJOR_VERSION_NUMBER=2
1652WX_MINOR_VERSION_NUMBER=5
de59c161 1653WX_RELEASE_NUMBER=2
224bf05c 1654WX_SUBRELEASE_NUMBER=3
a848cd7e
SC
1655
1656WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1657WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1658
1659WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1660
de59c161 1661WX_CURRENT=2
a848cd7e
SC
1662WX_REVISION=0
1663WX_AGE=0
1664
1665
1666
1667USE_UNIX=1
1668USE_OS2=0
1669USE_WIN32=0
1670USE_DOS=0
1671USE_BEOS=0
1672USE_MAC=0
1673
1674USE_AIX=
1675USE_BSD= USE_DARWIN= USE_FREEBSD=
1676USE_GNU= USE_HPUX=
1677USE_LINUX=
1678USE_NETBSD=
1679USE_OPENBSD=
1680USE_OSF= USE_SGI=
1681USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1682USE_ULTRIX=
1683USE_UNIXWARE=
1684
1685USE_ALPHA=
1686
1687NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1688
1689ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1690
1691DEFAULT_wxUSE_COCOA=0
1692DEFAULT_wxUSE_GTK=0
1693DEFAULT_wxUSE_MAC=0
1694DEFAULT_wxUSE_MGL=0
1695DEFAULT_wxUSE_MICROWIN=0
1696DEFAULT_wxUSE_MOTIF=0
1697DEFAULT_wxUSE_MSW=0
1698DEFAULT_wxUSE_PM=0
1699DEFAULT_wxUSE_X11=0
1700
1701DEFAULT_DEFAULT_wxUSE_COCOA=0
1702DEFAULT_DEFAULT_wxUSE_GTK=0
1703DEFAULT_DEFAULT_wxUSE_MAC=0
1704DEFAULT_DEFAULT_wxUSE_MGL=0
1705DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1706DEFAULT_DEFAULT_wxUSE_MOTIF=0
1707DEFAULT_DEFAULT_wxUSE_MSW=0
1708DEFAULT_DEFAULT_wxUSE_PM=0
1709DEFAULT_DEFAULT_wxUSE_X11=0
1710
1711PROGRAM_EXT=
1712SO_SUFFIX=so
1713SAMPLES_RPATH_FLAG=
1714SAMPLES_RPATH_POSTLINK=
1715
1716case "${host}" in
1717 *-hp-hpux* )
1718 USE_HPUX=1
1719 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1720 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1721 SO_SUFFIX=sl
1722 cat >>confdefs.h <<\_ACEOF
1723#define __HPUX__ 1
1724_ACEOF
1725
1726 ;;
1727 *-*-linux* )
1728 USE_LINUX=1
1729 cat >>confdefs.h <<\_ACEOF
1730#define __LINUX__ 1
1731_ACEOF
1732
1733 TMP=`uname -m`
1734 if test "x$TMP" = "xalpha"; then
1735 USE_ALPHA=1
1736 cat >>confdefs.h <<\_ACEOF
1737#define __ALPHA__ 1
1738_ACEOF
1739
1740 fi
1741 DEFAULT_DEFAULT_wxUSE_GTK=1
1742 ;;
1743 *-*-gnu* | *-*-k*bsd*-gnu )
1744 USE_GNU=1
1745 TMP=`uname -m`
1746 if test "x$TMP" = "xalpha"; then
1747 USE_ALPHA=1
1748 cat >>confdefs.h <<\_ACEOF
1749#define __ALPHA__ 1
1750_ACEOF
1751
1752 fi
1753 DEFAULT_DEFAULT_wxUSE_GTK=1
1754 ;;
1755 *-*-irix5* | *-*-irix6* )
1756 USE_SGI=1
1757 USE_SVR4=1
1758 cat >>confdefs.h <<\_ACEOF
1759#define __SGI__ 1
1760_ACEOF
1761
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SVR4__ 1
1764_ACEOF
1765
1766 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1767 ;;
1768 *-*-solaris2* )
1769 USE_SUN=1
1770 USE_SOLARIS=1
1771 USE_SVR4=1
1772 cat >>confdefs.h <<\_ACEOF
1773#define __SUN__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SOLARIS__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SVR4__ 1
1782_ACEOF
1783
1784 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1785 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1786 ;;
1787 *-*-sunos4* )
1788 USE_SUN=1
1789 USE_SUNOS=1
1790 USE_BSD=1
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SUN__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUNOS__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __BSD__ 1
1801_ACEOF
1802
1803 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1804 ;;
1805 *-*-freebsd*)
1806 USE_BSD=1
1807 USE_FREEBSD=1
1808 cat >>confdefs.h <<\_ACEOF
1809#define __FREEBSD__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_GTK=1
1817 ;;
1818 *-*-openbsd*)
1819 USE_BSD=1
1820 USE_OPENBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __OPENBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-netbsd*)
1832 USE_BSD=1
1833 USE_NETBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __NETBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-osf* )
1845 USE_ALPHA=1
1846 USE_OSF=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __ALPHA__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __OSF__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1857 ;;
1858 *-*-dgux5* )
1859 USE_ALPHA=1
1860 USE_SVR4=1
1861 cat >>confdefs.h <<\_ACEOF
1862#define __ALPHA__ 1
1863_ACEOF
1864
1865 cat >>confdefs.h <<\_ACEOF
1866#define __SVR4__ 1
1867_ACEOF
1868
1869 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1870 ;;
1871 *-*-sysv5* )
1872 USE_SYSV=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SYSV__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-aix* )
1885 USE_AIX=1
1886 USE_SYSV=1
1887 USE_SVR4=1
1888 SO_SUFFIX=a
1889 cat >>confdefs.h <<\_ACEOF
1890#define __AIX__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SYSV__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SVR4__ 1
1899_ACEOF
1900
1901 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1902 ;;
1903
1904 *-*-*UnixWare*)
1905 USE_SYSV=1
1906 USE_SVR4=1
1907 USE_UNIXWARE=1
1908 cat >>confdefs.h <<\_ACEOF
1909#define __UNIXWARE__ 1
1910_ACEOF
1911
1912 ;;
1913
1914 *-*-cygwin* | *-*-mingw32* )
1915 SO_SUFFIX=dll
1916 PROGRAM_EXT=".exe"
1917 RESCOMP=windres
1918 DEFAULT_DEFAULT_wxUSE_MSW=1
1919 ;;
1920
1921 *-pc-msdosdjgpp )
1922 USE_UNIX=0
1923 USE_DOS=1
1924 cat >>confdefs.h <<\_ACEOF
1925#define __DOS__ 1
1926_ACEOF
1927
1928 PROGRAM_EXT=".exe"
1929 DEFAULT_DEFAULT_wxUSE_MGL=1
1930 LIBS="$LIBS -lstdc++"
1931 ;;
1932
1933 *-pc-os2_emx | *-pc-os2-emx )
1934 cat >>confdefs.h <<\_ACEOF
1935#define __EMX__ 1
1936_ACEOF
1937
1938 USE_OS2=1
1939 cat >>confdefs.h <<\_ACEOF
1940#define __OS2__ 1
1941_ACEOF
1942
1943 PROGRAM_EXT=".exe"
1944 DEFAULT_DEFAULT_wxUSE_PM=1
1945 CXX=gcc
1946 LDFLAGS="$LDFLAGS -Zcrtdll"
1947 ac_executable_extensions=".exe"
1948 export ac_executable_extensions
1949 ac_save_IFS="$IFS"
1950 IFS='\\'
1951 ac_TEMP_PATH=
1952 for ac_dir in $PATH; do
1953 IFS=$ac_save_IFS
1954 if test -z "$ac_TEMP_PATH"; then
1955 ac_TEMP_PATH="$ac_dir"
1956 else
1957 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1958 fi
1959 done
1960 export PATH="$ac_TEMP_PATH"
1961 unset ac_TEMP_PATH
1962 ;;
1963
1964 powerpc-*-darwin* )
1965 USE_BSD=1
1966 USE_DARWIN=1
1967 SO_SUFFIX=dylib
1968 cat >>confdefs.h <<\_ACEOF
1969#define __BSD__ 1
1970_ACEOF
1971
1972 cat >>confdefs.h <<\_ACEOF
1973#define __DARWIN__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __POWERPC__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define TARGET_CARBON 1
1982_ACEOF
1983
1984 DEFAULT_DEFAULT_wxUSE_MAC=1
1985 ;;
1986
1987 *-*-beos* )
1988 USE_BEOS=1
1989 cat >>confdefs.h <<\_ACEOF
1990#define __BEOS__ 1
1991_ACEOF
1992
1993 ;;
1994
1995 *)
1996 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1997echo "$as_me: error: unknown system type ${host}." >&2;}
1998 { (exit 1); exit 1; }; }
1999esac
2000
2001
2002
2003
2004 wx_arg_cache_file="configarg.cache"
2005 echo "loading argument cache $wx_arg_cache_file"
2006 rm -f ${wx_arg_cache_file}.tmp
2007 touch ${wx_arg_cache_file}.tmp
2008 touch ${wx_arg_cache_file}
2009
2010
2011DEBUG_CONFIGURE=0
2012if test $DEBUG_CONFIGURE = 1; then
2013 DEFAULT_wxUSE_UNIVERSAL=no
2014 DEFAULT_wxUSE_STL=no
2015
2016 DEFAULT_wxUSE_NANOX=no
2017
2018 DEFAULT_wxUSE_THREADS=yes
2019
2020 DEFAULT_wxUSE_SHARED=yes
2021 DEFAULT_wxUSE_OPTIMISE=no
2022 DEFAULT_wxUSE_PROFILE=no
2023 DEFAULT_wxUSE_NO_DEPS=no
2024 DEFAULT_wxUSE_NO_RTTI=no
2025 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2026 DEFAULT_wxUSE_PERMISSIVE=no
2027 DEFAULT_wxUSE_DEBUG_FLAG=yes
2028 DEFAULT_wxUSE_DEBUG_INFO=yes
2029 DEFAULT_wxUSE_DEBUG_GDB=yes
2030 DEFAULT_wxUSE_MEM_TRACING=no
2031 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2032 DEFAULT_wxUSE_DMALLOC=no
2033 DEFAULT_wxUSE_APPLE_IEEE=no
2034
2035 DEFAULT_wxUSE_EXCEPTIONS=no
2036 DEFAULT_wxUSE_LOG=yes
2037 DEFAULT_wxUSE_LOGWINDOW=no
2038 DEFAULT_wxUSE_LOGGUI=no
2039 DEFAULT_wxUSE_LOGDIALOG=no
2040
2041 DEFAULT_wxUSE_GUI=yes
2042 DEFAULT_wxUSE_CONTROLS=no
2043
2044 DEFAULT_wxUSE_REGEX=no
2045 DEFAULT_wxUSE_XML=no
2046 DEFAULT_wxUSE_EXPAT=no
2047 DEFAULT_wxUSE_ZLIB=no
2048 DEFAULT_wxUSE_LIBPNG=no
2049 DEFAULT_wxUSE_LIBJPEG=no
2050 DEFAULT_wxUSE_LIBTIFF=no
2051 DEFAULT_wxUSE_LIBXPM=no
2052 DEFAULT_wxUSE_LIBMSPACK=no
2053 DEFAULT_wxUSE_LIBSDL=no
2054 DEFAULT_wxUSE_ODBC=no
2055 DEFAULT_wxUSE_OPENGL=no
2056
2057 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2058 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2059 DEFAULT_wxUSE_STD_IOSTREAM=no
2060 DEFAULT_wxUSE_CMDLINE_PARSER=no
2061 DEFAULT_wxUSE_DATETIME=no
2062 DEFAULT_wxUSE_TIMER=no
2063 DEFAULT_wxUSE_STOPWATCH=no
2064 DEFAULT_wxUSE_FILE=no
2065 DEFAULT_wxUSE_FFILE=no
2066 DEFAULT_wxUSE_TEXTBUFFER=no
2067 DEFAULT_wxUSE_TEXTFILE=no
2068 DEFAULT_wxUSE_SOUND=no
2069 DEFAULT_wxUSE_INTL=no
2070 DEFAULT_wxUSE_CONFIG=no
2071 DEFAULT_wxUSE_FONTMAP=no
2072 DEFAULT_wxUSE_STREAMS=no
2073 DEFAULT_wxUSE_SOCKETS=no
2074 DEFAULT_wxUSE_OLE=no
2075 DEFAULT_wxUSE_DATAOBJ=no
2076 DEFAULT_wxUSE_DIALUP_MANAGER=no
2077 DEFAULT_wxUSE_JOYSTICK=no
2078 DEFAULT_wxUSE_DYNLIB_CLASS=no
2079 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2080 DEFAULT_wxUSE_LONGLONG=no
2081 DEFAULT_wxUSE_GEOMETRY=no
2082
2083 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2084 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2085 DEFAULT_wxUSE_POSTSCRIPT=no
2086
2087 DEFAULT_wxUSE_CLIPBOARD=no
2088 DEFAULT_wxUSE_TOOLTIPS=no
2089 DEFAULT_wxUSE_DRAG_AND_DROP=no
2090 DEFAULT_wxUSE_DRAGIMAGE=no
2091 DEFAULT_wxUSE_SPLINES=no
2092
8a7b1113 2093 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2094 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2095 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2096 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2097
2098 DEFAULT_wxUSE_RESOURCES=no
2099 DEFAULT_wxUSE_CONSTRAINTS=no
2100 DEFAULT_wxUSE_IPC=no
2101 DEFAULT_wxUSE_HELP=no
2102 DEFAULT_wxUSE_MS_HTML_HELP=no
2103 DEFAULT_wxUSE_WXHTML_HELP=no
2104 DEFAULT_wxUSE_TREELAYOUT=no
2105 DEFAULT_wxUSE_METAFILE=no
2106 DEFAULT_wxUSE_MIMETYPE=no
2107 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2108 DEFAULT_wxUSE_PROTOCOL=no
2109 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2110 DEFAULT_wxUSE_PROTOCOL_FTP=no
2111 DEFAULT_wxUSE_PROTOCOL_FILE=no
2112 DEFAULT_wxUSE_URL=no
2113
2114 DEFAULT_wxUSE_COMMONDLGS=no
2115 DEFAULT_wxUSE_CHOICEDLG=no
2116 DEFAULT_wxUSE_COLOURDLG=no
2117 DEFAULT_wxUSE_DIRDLG=no
2118 DEFAULT_wxUSE_FILEDLG=no
2119 DEFAULT_wxUSE_FINDREPLDLG=no
2120 DEFAULT_wxUSE_FONTDLG=no
2121 DEFAULT_wxUSE_MSGDLG=no
2122 DEFAULT_wxUSE_NUMBERDLG=no
2123 DEFAULT_wxUSE_TEXTDLG=no
2124 DEFAULT_wxUSE_SPLASH=no
2125 DEFAULT_wxUSE_STARTUP_TIPS=no
2126 DEFAULT_wxUSE_PROGRESSDLG=no
2127 DEFAULT_wxUSE_WIZARDDLG=no
2128
2129 DEFAULT_wxUSE_MENUS=no
2130 DEFAULT_wxUSE_MINIFRAME=no
2131 DEFAULT_wxUSE_HTML=no
646b6ec1 2132 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2133 DEFAULT_wxUSE_FILESYSTEM=no
2134 DEFAULT_wxUSE_FS_INET=no
2135 DEFAULT_wxUSE_FS_ZIP=no
2136 DEFAULT_wxUSE_BUSYINFO=no
2137 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2138 DEFAULT_wxUSE_VALIDATORS=no
2139
2140 DEFAULT_wxUSE_ACCEL=no
2141 DEFAULT_wxUSE_BUTTON=no
2142 DEFAULT_wxUSE_BMPBUTTON=no
2143 DEFAULT_wxUSE_CALCTRL=no
2144 DEFAULT_wxUSE_CARET=no
2145 DEFAULT_wxUSE_CHECKBOX=no
2146 DEFAULT_wxUSE_CHECKLST=no
2147 DEFAULT_wxUSE_CHOICE=no
2148 DEFAULT_wxUSE_COMBOBOX=no
2149 DEFAULT_wxUSE_DISPLAY=no
2150 DEFAULT_wxUSE_GAUGE=no
2151 DEFAULT_wxUSE_GRID=no
2152 DEFAULT_wxUSE_IMAGLIST=no
2153 DEFAULT_wxUSE_LISTBOOK=no
2154 DEFAULT_wxUSE_LISTBOX=no
2155 DEFAULT_wxUSE_LISTCTRL=no
2156 DEFAULT_wxUSE_NOTEBOOK=no
2157 DEFAULT_wxUSE_RADIOBOX=no
2158 DEFAULT_wxUSE_RADIOBTN=no
2159 DEFAULT_wxUSE_SASH=no
2160 DEFAULT_wxUSE_SCROLLBAR=no
2161 DEFAULT_wxUSE_SLIDER=no
2162 DEFAULT_wxUSE_SPINBTN=no
2163 DEFAULT_wxUSE_SPINCTRL=no
2164 DEFAULT_wxUSE_SPLITTER=no
2165 DEFAULT_wxUSE_STATBMP=no
2166 DEFAULT_wxUSE_STATBOX=no
2167 DEFAULT_wxUSE_STATLINE=no
2168 DEFAULT_wxUSE_STATTEXT=no
2169 DEFAULT_wxUSE_STATUSBAR=yes
2170 DEFAULT_wxUSE_TABDIALOG=no
2171 DEFAULT_wxUSE_TEXTCTRL=no
2172 DEFAULT_wxUSE_TOGGLEBTN=no
2173 DEFAULT_wxUSE_TOOLBAR=no
2174 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2175 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2176 DEFAULT_wxUSE_TREECTRL=no
2177 DEFAULT_wxUSE_POPUPWIN=no
2178 DEFAULT_wxUSE_TIPWINDOW=no
2179
2180 DEFAULT_wxUSE_UNICODE=no
2181 DEFAULT_wxUSE_UNICODE_MSLU=no
2182 DEFAULT_wxUSE_WCSRTOMBS=no
2183
2184 DEFAULT_wxUSE_PALETTE=no
2185 DEFAULT_wxUSE_IMAGE=no
2186 DEFAULT_wxUSE_GIF=no
2187 DEFAULT_wxUSE_PCX=no
2188 DEFAULT_wxUSE_PNM=no
2189 DEFAULT_wxUSE_IFF=no
2190 DEFAULT_wxUSE_XPM=no
2191 DEFAULT_wxUSE_ICO_CUR=no
2192 DEFAULT_wxUSE_ACCESSIBILITY=no
2193
2194 DEFAULT_wxUSE_MONOLITHIC=no
2195 DEFAULT_wxUSE_PLUGINS=no
2196 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2197else
2198 DEFAULT_wxUSE_UNIVERSAL=no
2199 DEFAULT_wxUSE_STL=no
2200
2201 DEFAULT_wxUSE_NANOX=no
2202
2203 DEFAULT_wxUSE_THREADS=yes
2204
2205 DEFAULT_wxUSE_SHARED=yes
2206 DEFAULT_wxUSE_OPTIMISE=yes
2207 DEFAULT_wxUSE_PROFILE=no
2208 DEFAULT_wxUSE_NO_DEPS=no
2209 DEFAULT_wxUSE_NO_RTTI=no
2210 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2211 DEFAULT_wxUSE_PERMISSIVE=no
2212 DEFAULT_wxUSE_DEBUG_FLAG=no
2213 DEFAULT_wxUSE_DEBUG_INFO=no
2214 DEFAULT_wxUSE_DEBUG_GDB=no
2215 DEFAULT_wxUSE_MEM_TRACING=no
2216 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2217 DEFAULT_wxUSE_DMALLOC=no
2218 DEFAULT_wxUSE_APPLE_IEEE=yes
2219
2220 DEFAULT_wxUSE_EXCEPTIONS=yes
2221 DEFAULT_wxUSE_LOG=yes
2222 DEFAULT_wxUSE_LOGWINDOW=yes
2223 DEFAULT_wxUSE_LOGGUI=yes
2224 DEFAULT_wxUSE_LOGDIALOG=yes
2225
2226 DEFAULT_wxUSE_GUI=yes
2227
2228 DEFAULT_wxUSE_REGEX=yes
2229 DEFAULT_wxUSE_XML=yes
2230 DEFAULT_wxUSE_EXPAT=yes
2231 DEFAULT_wxUSE_ZLIB=yes
2232 DEFAULT_wxUSE_LIBPNG=yes
2233 DEFAULT_wxUSE_LIBJPEG=yes
2234 DEFAULT_wxUSE_LIBTIFF=yes
2235 DEFAULT_wxUSE_LIBXPM=yes
2236 DEFAULT_wxUSE_LIBMSPACK=yes
2237 DEFAULT_wxUSE_LIBSDL=no
2238 DEFAULT_wxUSE_ODBC=no
2239 DEFAULT_wxUSE_OPENGL=no
2240
2241 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2242 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2243 DEFAULT_wxUSE_STD_IOSTREAM=no
2244 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2245 DEFAULT_wxUSE_DATETIME=yes
2246 DEFAULT_wxUSE_TIMER=yes
2247 DEFAULT_wxUSE_STOPWATCH=yes
2248 DEFAULT_wxUSE_FILE=yes
2249 DEFAULT_wxUSE_FFILE=yes
2250 DEFAULT_wxUSE_TEXTBUFFER=yes
2251 DEFAULT_wxUSE_TEXTFILE=yes
2252 DEFAULT_wxUSE_SOUND=yes
2253 DEFAULT_wxUSE_INTL=yes
2254 DEFAULT_wxUSE_CONFIG=yes
2255 DEFAULT_wxUSE_FONTMAP=yes
2256 DEFAULT_wxUSE_STREAMS=yes
2257 DEFAULT_wxUSE_SOCKETS=yes
2258 DEFAULT_wxUSE_OLE=yes
2259 DEFAULT_wxUSE_DATAOBJ=yes
2260 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2261 DEFAULT_wxUSE_JOYSTICK=yes
2262 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2263 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2264 DEFAULT_wxUSE_LONGLONG=yes
2265 DEFAULT_wxUSE_GEOMETRY=yes
2266
2267 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2268 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2269 DEFAULT_wxUSE_POSTSCRIPT=yes
2270
2271 DEFAULT_wxUSE_CLIPBOARD=yes
2272 DEFAULT_wxUSE_TOOLTIPS=yes
2273 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2274 DEFAULT_wxUSE_DRAGIMAGE=yes
2275 DEFAULT_wxUSE_SPLINES=yes
2276
8a7b1113 2277 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2278 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2279 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2280 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2281
2282 DEFAULT_wxUSE_RESOURCES=no
2283 DEFAULT_wxUSE_CONSTRAINTS=yes
2284 DEFAULT_wxUSE_IPC=yes
2285 DEFAULT_wxUSE_HELP=yes
2286 DEFAULT_wxUSE_MS_HTML_HELP=yes
2287 DEFAULT_wxUSE_WXHTML_HELP=yes
2288 DEFAULT_wxUSE_TREELAYOUT=yes
2289 DEFAULT_wxUSE_METAFILE=yes
2290 DEFAULT_wxUSE_MIMETYPE=yes
2291 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2292 DEFAULT_wxUSE_PROTOCOL=yes
2293 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2294 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2295 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2296 DEFAULT_wxUSE_URL=yes
2297
2298 DEFAULT_wxUSE_COMMONDLGS=yes
2299 DEFAULT_wxUSE_CHOICEDLG=yes
2300 DEFAULT_wxUSE_COLOURDLG=yes
2301 DEFAULT_wxUSE_DIRDLG=yes
2302 DEFAULT_wxUSE_FILEDLG=yes
2303 DEFAULT_wxUSE_FINDREPLDLG=yes
2304 DEFAULT_wxUSE_FONTDLG=yes
2305 DEFAULT_wxUSE_MSGDLG=yes
2306 DEFAULT_wxUSE_NUMBERDLG=yes
2307 DEFAULT_wxUSE_TEXTDLG=yes
2308 DEFAULT_wxUSE_SPLASH=yes
2309 DEFAULT_wxUSE_STARTUP_TIPS=yes
2310 DEFAULT_wxUSE_PROGRESSDLG=yes
2311 DEFAULT_wxUSE_WIZARDDLG=yes
2312
2313 DEFAULT_wxUSE_MENUS=yes
2314 DEFAULT_wxUSE_MINIFRAME=yes
2315 DEFAULT_wxUSE_HTML=yes
646b6ec1 2316 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2317 DEFAULT_wxUSE_FILESYSTEM=yes
2318 DEFAULT_wxUSE_FS_INET=yes
2319 DEFAULT_wxUSE_FS_ZIP=yes
2320 DEFAULT_wxUSE_BUSYINFO=yes
2321 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2322 DEFAULT_wxUSE_VALIDATORS=yes
2323
2324 DEFAULT_wxUSE_ACCEL=yes
2325 DEFAULT_wxUSE_BUTTON=yes
2326 DEFAULT_wxUSE_BMPBUTTON=yes
2327 DEFAULT_wxUSE_CALCTRL=yes
2328 DEFAULT_wxUSE_CARET=yes
2329 DEFAULT_wxUSE_CHECKBOX=yes
2330 DEFAULT_wxUSE_CHECKLST=yes
2331 DEFAULT_wxUSE_CHOICE=yes
2332 DEFAULT_wxUSE_COMBOBOX=yes
2333 DEFAULT_wxUSE_DISPLAY=yes
2334 DEFAULT_wxUSE_GAUGE=yes
2335 DEFAULT_wxUSE_GRID=yes
2336 DEFAULT_wxUSE_IMAGLIST=yes
2337 DEFAULT_wxUSE_LISTBOOK=yes
2338 DEFAULT_wxUSE_LISTBOX=yes
2339 DEFAULT_wxUSE_LISTCTRL=yes
2340 DEFAULT_wxUSE_NOTEBOOK=yes
2341 DEFAULT_wxUSE_RADIOBOX=yes
2342 DEFAULT_wxUSE_RADIOBTN=yes
2343 DEFAULT_wxUSE_SASH=yes
2344 DEFAULT_wxUSE_SCROLLBAR=yes
2345 DEFAULT_wxUSE_SLIDER=yes
2346 DEFAULT_wxUSE_SPINBTN=yes
2347 DEFAULT_wxUSE_SPINCTRL=yes
2348 DEFAULT_wxUSE_SPLITTER=yes
2349 DEFAULT_wxUSE_STATBMP=yes
2350 DEFAULT_wxUSE_STATBOX=yes
2351 DEFAULT_wxUSE_STATLINE=yes
2352 DEFAULT_wxUSE_STATTEXT=yes
2353 DEFAULT_wxUSE_STATUSBAR=yes
2354 DEFAULT_wxUSE_TABDIALOG=no
2355 DEFAULT_wxUSE_TEXTCTRL=yes
2356 DEFAULT_wxUSE_TOGGLEBTN=yes
2357 DEFAULT_wxUSE_TOOLBAR=yes
2358 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2359 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2360 DEFAULT_wxUSE_TREECTRL=yes
2361 DEFAULT_wxUSE_POPUPWIN=yes
2362 DEFAULT_wxUSE_TIPWINDOW=yes
2363
2364 DEFAULT_wxUSE_UNICODE=no
2365 DEFAULT_wxUSE_UNICODE_MSLU=yes
2366 DEFAULT_wxUSE_WCSRTOMBS=no
2367
2368 DEFAULT_wxUSE_PALETTE=yes
2369 DEFAULT_wxUSE_IMAGE=yes
2370 DEFAULT_wxUSE_GIF=yes
2371 DEFAULT_wxUSE_PCX=yes
2372 DEFAULT_wxUSE_IFF=no
2373 DEFAULT_wxUSE_PNM=yes
2374 DEFAULT_wxUSE_XPM=yes
2375 DEFAULT_wxUSE_ICO_CUR=yes
2376 DEFAULT_wxUSE_ACCESSIBILITY=no
2377
2378 DEFAULT_wxUSE_MONOLITHIC=no
2379 DEFAULT_wxUSE_PLUGINS=no
2380 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2381
2382 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2383fi
2384
2385
2386
2387for toolkit in `echo $ALL_TOOLKITS`; do
2388 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2389 if test "x$LINE" != "x" ; then
2390 has_toolkit_in_cache=1
2391 eval "DEFAULT_$LINE"
2392 eval "CACHE_$toolkit=1"
2393 fi
2394done
2395
2396
2397
2398 enablestring=
2399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2400echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2401 no_cache=0
2402 # Check whether --enable-gui or --disable-gui was given.
2403if test "${enable_gui+set}" = set; then
2404 enableval="$enable_gui"
2405
2406 if test "$enableval" = yes; then
2407 ac_cv_use_gui='wxUSE_GUI=yes'
2408 else
2409 ac_cv_use_gui='wxUSE_GUI=no'
2410 fi
2411
2412else
2413
2414 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2422
2423fi;
2424
2425 eval "$ac_cv_use_gui"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_GUI" = yes; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
2436 fi
2437
2438
2439 enablestring=
2440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2441echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2442 no_cache=0
2443 # Check whether --enable-monolithic or --disable-monolithic was given.
2444if test "${enable_monolithic+set}" = set; then
2445 enableval="$enable_monolithic"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2449 else
2450 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2463
2464fi;
2465
2466 eval "$ac_cv_use_monolithic"
2467 if test "$no_cache" != 1; then
2468 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2469 fi
2470
2471 if test "$wxUSE_MONOLITHIC" = yes; then
2472 echo "$as_me:$LINENO: result: yes" >&5
2473echo "${ECHO_T}yes" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477 fi
2478
2479
2480 enablestring=
2481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2482echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2483 no_cache=0
2484 # Check whether --enable-plugins or --disable-plugins was given.
2485if test "${enable_plugins+set}" = set; then
2486 enableval="$enable_plugins"
2487
2488 if test "$enableval" = yes; then
2489 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2490 else
2491 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2492 fi
2493
2494else
2495
2496 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2504
2505fi;
2506
2507 eval "$ac_cv_use_plugins"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_PLUGINS" = yes; then
2513 echo "$as_me:$LINENO: result: yes" >&5
2514echo "${ECHO_T}yes" >&6
2515 else
2516 echo "$as_me:$LINENO: result: no" >&5
2517echo "${ECHO_T}no" >&6
2518 fi
2519
2520
2521if test "$wxUSE_GUI" = "yes"; then
2522
2523
2524 enablestring=
2525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2526echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2527 no_cache=0
2528 # Check whether --enable-universal or --disable-universal was given.
2529if test "${enable_universal+set}" = set; then
2530 enableval="$enable_universal"
2531
2532 if test "$enableval" = yes; then
2533 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2534 else
2535 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2536 fi
2537
2538else
2539
2540 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2548
2549fi;
2550
2551 eval "$ac_cv_use_universal"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_UNIVERSAL" = yes; then
2557 echo "$as_me:$LINENO: result: yes" >&5
2558echo "${ECHO_T}yes" >&6
2559 else
2560 echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6
2562 fi
2563
2564
2565# Check whether --with-gtk or --without-gtk was given.
2566if test "${with_gtk+set}" = set; then
2567 withval="$with_gtk"
2568 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2569fi;
2570
2571# Check whether --with-motif or --without-motif was given.
2572if test "${with_motif+set}" = set; then
2573 withval="$with_motif"
2574 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2575fi;
2576
2577# Check whether --with-mac or --without-mac was given.
2578if test "${with_mac+set}" = set; then
2579 withval="$with_mac"
2580 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2581fi;
2582
2583# Check whether --with-cocoa or --without-cocoa was given.
2584if test "${with_cocoa+set}" = set; then
2585 withval="$with_cocoa"
2586 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2587fi;
2588
2589# Check whether --with-wine or --without-wine was given.
2590if test "${with_wine+set}" = set; then
2591 withval="$with_wine"
2592 wxUSE_WINE="$withval" CACHE_WINE=1
2593fi;
2594
2595# Check whether --with-msw or --without-msw was given.
2596if test "${with_msw+set}" = set; then
2597 withval="$with_msw"
2598 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-pm or --without-pm was given.
2602if test "${with_pm+set}" = set; then
2603 withval="$with_pm"
2604 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2605fi;
2606
2607# Check whether --with-mgl or --without-mgl was given.
2608if test "${with_mgl+set}" = set; then
2609 withval="$with_mgl"
2610 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2611fi;
2612
2613# Check whether --with-microwin or --without-microwin was given.
2614if test "${with_microwin+set}" = set; then
2615 withval="$with_microwin"
2616 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-x11 or --without-x11 was given.
2620if test "${with_x11+set}" = set; then
2621 withval="$with_x11"
2622 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625 enablestring=
2626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2627echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2628 no_cache=0
2629 # Check whether --enable-nanox or --disable-nanox was given.
2630if test "${enable_nanox+set}" = set; then
2631 enableval="$enable_nanox"
2632
2633 if test "$enableval" = yes; then
2634 ac_cv_use_nanox='wxUSE_NANOX=yes'
2635 else
2636 ac_cv_use_nanox='wxUSE_NANOX=no'
2637 fi
2638
2639else
2640
2641 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2642 if test "x$LINE" != x ; then
2643 eval "DEFAULT_$LINE"
2644 else
2645 no_cache=1
2646 fi
2647
2648 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2649
2650fi;
2651
2652 eval "$ac_cv_use_nanox"
2653 if test "$no_cache" != 1; then
2654 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2655 fi
2656
2657 if test "$wxUSE_NANOX" = yes; then
2658 echo "$as_me:$LINENO: result: yes" >&5
2659echo "${ECHO_T}yes" >&6
2660 else
2661 echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6
2663 fi
2664
2665
2666
2667 enablestring=
2668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2669echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2670 no_cache=0
2671 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2672if test "${enable_gtk2+set}" = set; then
2673 enableval="$enable_gtk2"
2674
2675 if test "$enableval" = yes; then
2676 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2677 else
2678 ac_cv_use_gtk2='wxUSE_GTK2=no'
2679 fi
2680
2681else
2682
2683 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2684 if test "x$LINE" != x ; then
2685 eval "DEFAULT_$LINE"
2686 else
2687 no_cache=1
2688 fi
2689
2690 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2691
2692fi;
2693
2694 eval "$ac_cv_use_gtk2"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_GTK2" = yes; then
2700 echo "$as_me:$LINENO: result: yes" >&5
2701echo "${ECHO_T}yes" >&6
2702 else
2703 echo "$as_me:$LINENO: result: no" >&5
2704echo "${ECHO_T}no" >&6
2705 fi
2706
2707
2708 enablestring=
2709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2710echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2711 no_cache=0
2712 # Check whether --enable-gpe or --disable-gpe was given.
2713if test "${enable_gpe+set}" = set; then
2714 enableval="$enable_gpe"
2715
2716 if test "$enableval" = yes; then
2717 ac_cv_use_gpe='wxUSE_GPE=yes'
2718 else
2719 ac_cv_use_gpe='wxUSE_GPE=no'
2720 fi
2721
2722else
2723
2724 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
2731 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2732
2733fi;
2734
2735 eval "$ac_cv_use_gpe"
2736 if test "$no_cache" != 1; then
2737 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2738 fi
2739
2740 if test "$wxUSE_GPE" = yes; then
2741 echo "$as_me:$LINENO: result: yes" >&5
2742echo "${ECHO_T}yes" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
2746 fi
2747
2748
2749
2750 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2751echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2752 no_cache=0
2753
2754# Check whether --with-libpng or --without-libpng was given.
2755if test "${with_libpng+set}" = set; then
2756 withval="$with_libpng"
2757
2758 if test "$withval" = yes; then
2759 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2760 elif test "$withval" = no; then
2761 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2762 elif test "$withval" = sys; then
2763 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2764 elif test "$withval" = builtin; then
2765 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2766 else
2767 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2768echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2769 { (exit 1); exit 1; }; }
2770 fi
2771
2772else
2773
2774 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2782
2783fi;
2784
2785 eval "$ac_cv_use_libpng"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_LIBPNG" = yes; then
2791 echo "$as_me:$LINENO: result: yes" >&5
2792echo "${ECHO_T}yes" >&6
2793 elif test "$wxUSE_LIBPNG" = no; then
2794 echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6
2796 elif test "$wxUSE_LIBPNG" = sys; then
2797 echo "$as_me:$LINENO: result: system version" >&5
2798echo "${ECHO_T}system version" >&6
2799 elif test "$wxUSE_LIBPNG" = builtin; then
2800 echo "$as_me:$LINENO: result: builtin version" >&5
2801echo "${ECHO_T}builtin version" >&6
2802 else
2803 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2804echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2805 { (exit 1); exit 1; }; }
2806 fi
2807
2808
2809 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2810echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2811 no_cache=0
2812
2813# Check whether --with-libjpeg or --without-libjpeg was given.
2814if test "${with_libjpeg+set}" = set; then
2815 withval="$with_libjpeg"
2816
2817 if test "$withval" = yes; then
2818 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2819 elif test "$withval" = no; then
2820 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2821 elif test "$withval" = sys; then
2822 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2823 elif test "$withval" = builtin; then
2824 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2825 else
2826 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2827echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2828 { (exit 1); exit 1; }; }
2829 fi
2830
2831else
2832
2833 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2841
2842fi;
2843
2844 eval "$ac_cv_use_libjpeg"
2845 if test "$no_cache" != 1; then
2846 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2847 fi
2848
2849 if test "$wxUSE_LIBJPEG" = yes; then
2850 echo "$as_me:$LINENO: result: yes" >&5
2851echo "${ECHO_T}yes" >&6
2852 elif test "$wxUSE_LIBJPEG" = no; then
2853 echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6
2855 elif test "$wxUSE_LIBJPEG" = sys; then
2856 echo "$as_me:$LINENO: result: system version" >&5
2857echo "${ECHO_T}system version" >&6
2858 elif test "$wxUSE_LIBJPEG" = builtin; then
2859 echo "$as_me:$LINENO: result: builtin version" >&5
2860echo "${ECHO_T}builtin version" >&6
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867
2868 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2869echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2870 no_cache=0
2871
2872# Check whether --with-libtiff or --without-libtiff was given.
2873if test "${with_libtiff+set}" = set; then
2874 withval="$with_libtiff"
2875
2876 if test "$withval" = yes; then
2877 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2878 elif test "$withval" = no; then
2879 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2880 elif test "$withval" = sys; then
2881 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2882 elif test "$withval" = builtin; then
2883 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2884 else
2885 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2886echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2887 { (exit 1); exit 1; }; }
2888 fi
2889
2890else
2891
2892 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2900
2901fi;
2902
2903 eval "$ac_cv_use_libtiff"
2904 if test "$no_cache" != 1; then
2905 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2906 fi
2907
2908 if test "$wxUSE_LIBTIFF" = yes; then
2909 echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6
2911 elif test "$wxUSE_LIBTIFF" = no; then
2912 echo "$as_me:$LINENO: result: no" >&5
2913echo "${ECHO_T}no" >&6
2914 elif test "$wxUSE_LIBTIFF" = sys; then
2915 echo "$as_me:$LINENO: result: system version" >&5
2916echo "${ECHO_T}system version" >&6
2917 elif test "$wxUSE_LIBTIFF" = builtin; then
2918 echo "$as_me:$LINENO: result: builtin version" >&5
2919echo "${ECHO_T}builtin version" >&6
2920 else
2921 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2922echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2923 { (exit 1); exit 1; }; }
2924 fi
2925
2926
2927 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2928echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2929 no_cache=0
2930
2931# Check whether --with-libxpm or --without-libxpm was given.
2932if test "${with_libxpm+set}" = set; then
2933 withval="$with_libxpm"
2934
2935 if test "$withval" = yes; then
2936 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2937 elif test "$withval" = no; then
2938 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2939 elif test "$withval" = sys; then
2940 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2941 elif test "$withval" = builtin; then
2942 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2943 else
2944 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2945echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2946 { (exit 1); exit 1; }; }
2947 fi
2948
2949else
2950
2951 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2959
2960fi;
2961
2962 eval "$ac_cv_use_libxpm"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_LIBXPM" = yes; then
2968 echo "$as_me:$LINENO: result: yes" >&5
2969echo "${ECHO_T}yes" >&6
2970 elif test "$wxUSE_LIBXPM" = no; then
2971 echo "$as_me:$LINENO: result: no" >&5
2972echo "${ECHO_T}no" >&6
2973 elif test "$wxUSE_LIBXPM" = sys; then
2974 echo "$as_me:$LINENO: result: system version" >&5
2975echo "${ECHO_T}system version" >&6
2976 elif test "$wxUSE_LIBXPM" = builtin; then
2977 echo "$as_me:$LINENO: result: builtin version" >&5
2978echo "${ECHO_T}builtin version" >&6
2979 else
2980 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2981echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2982 { (exit 1); exit 1; }; }
2983 fi
2984
2985
2986 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2987echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2988 no_cache=0
2989
2990# Check whether --with-libmspack or --without-libmspack was given.
2991if test "${with_libmspack+set}" = set; then
2992 withval="$with_libmspack"
2993
2994 if test "$withval" = yes; then
2995 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2996 else
2997 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2998 fi
2999
3000else
3001
3002 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3010
3011fi;
3012
3013 eval "$ac_cv_use_libmspack"
3014 if test "$no_cache" != 1; then
3015 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3016 fi
3017
3018 if test "$wxUSE_LIBMSPACK" = yes; then
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
3021 else
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
3024 fi
3025
3026
3027 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3028echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3029 no_cache=0
3030
3031# Check whether --with-sdl or --without-sdl was given.
3032if test "${with_sdl+set}" = set; then
3033 withval="$with_sdl"
3034
3035 if test "$withval" = yes; then
3036 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3037 else
3038 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3039 fi
3040
3041else
3042
3043 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3044 if test "x$LINE" != x ; then
3045 eval "DEFAULT_$LINE"
3046 else
3047 no_cache=1
3048 fi
3049
3050 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3051
3052fi;
3053
3054 eval "$ac_cv_use_sdl"
3055 if test "$no_cache" != 1; then
3056 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3057 fi
3058
3059 if test "$wxUSE_LIBSDL" = yes; then
3060 echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
3065 fi
3066
3067
3068 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3069echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3070 no_cache=0
3071
3072# Check whether --with-opengl or --without-opengl was given.
3073if test "${with_opengl+set}" = set; then
3074 withval="$with_opengl"
3075
3076 if test "$withval" = yes; then
3077 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3078 else
3079 ac_cv_use_opengl='wxUSE_OPENGL=no'
3080 fi
3081
3082else
3083
3084 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3085 if test "x$LINE" != x ; then
3086 eval "DEFAULT_$LINE"
3087 else
3088 no_cache=1
3089 fi
3090
3091 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3092
3093fi;
3094
3095 eval "$ac_cv_use_opengl"
3096 if test "$no_cache" != 1; then
3097 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3098 fi
3099
3100 if test "$wxUSE_OPENGL" = yes; then
3101 echo "$as_me:$LINENO: result: yes" >&5
3102echo "${ECHO_T}yes" >&6
3103 else
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106 fi
3107
3108
3109fi
3110
3111
3112 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3113echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3114 no_cache=0
3115
3116# Check whether --with-dmalloc or --without-dmalloc was given.
3117if test "${with_dmalloc+set}" = set; then
3118 withval="$with_dmalloc"
3119
3120 if test "$withval" = yes; then
3121 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3122 else
3123 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3124 fi
3125
3126else
3127
3128 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3136
3137fi;
3138
3139 eval "$ac_cv_use_dmalloc"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_DMALLOC" = yes; then
3145 echo "$as_me:$LINENO: result: yes" >&5
3146echo "${ECHO_T}yes" >&6
3147 else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150 fi
3151
3152
3153 echo "$as_me:$LINENO: checking for --with-regex" >&5
3154echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3155 no_cache=0
3156
3157# Check whether --with-regex or --without-regex was given.
3158if test "${with_regex+set}" = set; then
3159 withval="$with_regex"
3160
3161 if test "$withval" = yes; then
3162 ac_cv_use_regex='wxUSE_REGEX=yes'
3163 elif test "$withval" = no; then
3164 ac_cv_use_regex='wxUSE_REGEX=no'
3165 elif test "$withval" = sys; then
3166 ac_cv_use_regex='wxUSE_REGEX=sys'
3167 elif test "$withval" = builtin; then
3168 ac_cv_use_regex='wxUSE_REGEX=builtin'
3169 else
3170 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3171echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3172 { (exit 1); exit 1; }; }
3173 fi
3174
3175else
3176
3177 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3178 if test "x$LINE" != x ; then
3179 eval "DEFAULT_$LINE"
3180 else
3181 no_cache=1
3182 fi
3183
3184 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3185
3186fi;
3187
3188 eval "$ac_cv_use_regex"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_REGEX" = yes; then
3194 echo "$as_me:$LINENO: result: yes" >&5
3195echo "${ECHO_T}yes" >&6
3196 elif test "$wxUSE_REGEX" = no; then
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199 elif test "$wxUSE_REGEX" = sys; then
3200 echo "$as_me:$LINENO: result: system version" >&5
3201echo "${ECHO_T}system version" >&6
3202 elif test "$wxUSE_REGEX" = builtin; then
3203 echo "$as_me:$LINENO: result: builtin version" >&5
3204echo "${ECHO_T}builtin version" >&6
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211
3212 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3213echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3214 no_cache=0
3215
3216# Check whether --with-zlib or --without-zlib was given.
3217if test "${with_zlib+set}" = set; then
3218 withval="$with_zlib"
3219
3220 if test "$withval" = yes; then
3221 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3222 elif test "$withval" = no; then
3223 ac_cv_use_zlib='wxUSE_ZLIB=no'
3224 elif test "$withval" = sys; then
3225 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3226 elif test "$withval" = builtin; then
3227 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3228 else
3229 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3230echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3231 { (exit 1); exit 1; }; }
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3237 if test "x$LINE" != x ; then
3238 eval "DEFAULT_$LINE"
3239 else
3240 no_cache=1
3241 fi
3242
3243 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3244
3245fi;
3246
3247 eval "$ac_cv_use_zlib"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_ZLIB" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254echo "${ECHO_T}yes" >&6
3255 elif test "$wxUSE_ZLIB" = no; then
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258 elif test "$wxUSE_ZLIB" = sys; then
3259 echo "$as_me:$LINENO: result: system version" >&5
3260echo "${ECHO_T}system version" >&6
3261 elif test "$wxUSE_ZLIB" = builtin; then
3262 echo "$as_me:$LINENO: result: builtin version" >&5
3263echo "${ECHO_T}builtin version" >&6
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3266echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270
3271 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3272echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3273 no_cache=0
3274
3275# Check whether --with-odbc or --without-odbc was given.
3276if test "${with_odbc+set}" = set; then
3277 withval="$with_odbc"
3278
3279 if test "$withval" = yes; then
3280 ac_cv_use_odbc='wxUSE_ODBC=yes'
3281 elif test "$withval" = no; then
3282 ac_cv_use_odbc='wxUSE_ODBC=no'
3283 elif test "$withval" = sys; then
3284 ac_cv_use_odbc='wxUSE_ODBC=sys'
3285 elif test "$withval" = builtin; then
3286 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3287 else
3288 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3289echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3290 { (exit 1); exit 1; }; }
3291 fi
3292
3293else
3294
3295 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3303
3304fi;
3305
3306 eval "$ac_cv_use_odbc"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_ODBC" = yes; then
3312 echo "$as_me:$LINENO: result: yes" >&5
3313echo "${ECHO_T}yes" >&6
3314 elif test "$wxUSE_ODBC" = no; then
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317 elif test "$wxUSE_ODBC" = sys; then
3318 echo "$as_me:$LINENO: result: system version" >&5
3319echo "${ECHO_T}system version" >&6
3320 elif test "$wxUSE_ODBC" = builtin; then
3321 echo "$as_me:$LINENO: result: builtin version" >&5
3322echo "${ECHO_T}builtin version" >&6
3323 else
3324 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3325echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3326 { (exit 1); exit 1; }; }
3327 fi
3328
3329
3330 echo "$as_me:$LINENO: checking for --with-expat" >&5
3331echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3332 no_cache=0
3333
3334# Check whether --with-expat or --without-expat was given.
3335if test "${with_expat+set}" = set; then
3336 withval="$with_expat"
3337
3338 if test "$withval" = yes; then
3339 ac_cv_use_expat='wxUSE_EXPAT=yes'
3340 elif test "$withval" = no; then
3341 ac_cv_use_expat='wxUSE_EXPAT=no'
3342 elif test "$withval" = sys; then
3343 ac_cv_use_expat='wxUSE_EXPAT=sys'
3344 elif test "$withval" = builtin; then
3345 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3346 else
3347 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3348echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351
3352else
3353
3354 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3355 if test "x$LINE" != x ; then
3356 eval "DEFAULT_$LINE"
3357 else
3358 no_cache=1
3359 fi
3360
3361 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3362
3363fi;
3364
3365 eval "$ac_cv_use_expat"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_EXPAT" = yes; then
3371 echo "$as_me:$LINENO: result: yes" >&5
3372echo "${ECHO_T}yes" >&6
3373 elif test "$wxUSE_EXPAT" = no; then
3374 echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
3376 elif test "$wxUSE_EXPAT" = sys; then
3377 echo "$as_me:$LINENO: result: system version" >&5
3378echo "${ECHO_T}system version" >&6
3379 elif test "$wxUSE_EXPAT" = builtin; then
3380 echo "$as_me:$LINENO: result: builtin version" >&5
3381echo "${ECHO_T}builtin version" >&6
3382 else
3383 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3384echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3385 { (exit 1); exit 1; }; }
3386 fi
3387
3388
3389
3390
3391 enablestring=
3392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3393echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3394 no_cache=0
3395 # Check whether --enable-shared or --disable-shared was given.
3396if test "${enable_shared+set}" = set; then
3397 enableval="$enable_shared"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_shared='wxUSE_SHARED=yes'
3401 else
3402 ac_cv_use_shared='wxUSE_SHARED=no'
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3415
3416fi;
3417
3418 eval "$ac_cv_use_shared"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_SHARED" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 else
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 fi
3430
3431
3432 enablestring=
3433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3434echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3435 no_cache=0
3436 # Check whether --enable-optimise or --disable-optimise was given.
3437if test "${enable_optimise+set}" = set; then
3438 enableval="$enable_optimise"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3442 else
3443 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3456
3457fi;
3458
3459 eval "$ac_cv_use_optimise"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_OPTIMISE" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470 fi
3471
3472
3473 enablestring=
3474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3475echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3476 no_cache=0
3477 # Check whether --enable-debug or --disable-debug was given.
3478if test "${enable_debug+set}" = set; then
3479 enableval="$enable_debug"
3480
3481 if test "$enableval" = yes; then
3482 ac_cv_use_debug='wxUSE_DEBUG=yes'
3483 else
3484 ac_cv_use_debug='wxUSE_DEBUG=no'
3485 fi
3486
3487else
3488
3489 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3490 if test "x$LINE" != x ; then
3491 eval "DEFAULT_$LINE"
3492 else
3493 no_cache=1
3494 fi
3495
3496 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3497
3498fi;
3499
3500 eval "$ac_cv_use_debug"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DEBUG" = yes; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507echo "${ECHO_T}yes" >&6
3508 else
3509 echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511 fi
3512
3513
3514 enablestring=
3515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3516echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3517 no_cache=0
3518 # Check whether --enable-stl or --disable-stl was given.
3519if test "${enable_stl+set}" = set; then
3520 enableval="$enable_stl"
3521
3522 if test "$enableval" = yes; then
3523 ac_cv_use_stl='wxUSE_STL=yes'
3524 else
3525 ac_cv_use_stl='wxUSE_STL=no'
3526 fi
3527
3528else
3529
3530 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3531 if test "x$LINE" != x ; then
3532 eval "DEFAULT_$LINE"
3533 else
3534 no_cache=1
3535 fi
3536
3537 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3538
3539fi;
3540
3541 eval "$ac_cv_use_stl"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_STL" = yes; then
3547 echo "$as_me:$LINENO: result: yes" >&5
3548echo "${ECHO_T}yes" >&6
3549 else
3550 echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552 fi
3553
3554if test "$USE_OS2" = "1"; then
3555
3556 enablestring=
3557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3558echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3559 no_cache=0
3560 # Check whether --enable-omf or --disable-omf was given.
3561if test "${enable_omf+set}" = set; then
3562 enableval="$enable_omf"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_omf='wxUSE_OMF=yes'
3566 else
3567 ac_cv_use_omf='wxUSE_OMF=no'
3568 fi
3569
3570else
3571
3572 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3580
3581fi;
3582
3583 eval "$ac_cv_use_omf"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_OMF" = yes; then
3589 echo "$as_me:$LINENO: result: yes" >&5
3590echo "${ECHO_T}yes" >&6
3591 else
3592 echo "$as_me:$LINENO: result: no" >&5
3593echo "${ECHO_T}no" >&6
3594 fi
3595
3596fi
3597
3598if test "$wxUSE_DEBUG" = "yes"; then
3599 DEFAULT_wxUSE_DEBUG_FLAG=yes
3600 DEFAULT_wxUSE_DEBUG_INFO=yes
3601 BUILD=debug
3602elif test "$wxUSE_DEBUG" = "no"; then
3603 DEFAULT_wxUSE_DEBUG_FLAG=no
3604 DEFAULT_wxUSE_DEBUG_INFO=no
3605 BUILD=release
3606fi
3607
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3614if test "${enable_debug_flag+set}" = set; then
3615 enableval="$enable_debug_flag"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3619 else
3620 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3633
3634fi;
3635
3636 eval "$ac_cv_use_debug_flag"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_DEBUG_FLAG" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649
3650 enablestring=
3651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3652echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3653 no_cache=0
3654 # Check whether --enable-debug_info or --disable-debug_info was given.
3655if test "${enable_debug_info+set}" = set; then
3656 enableval="$enable_debug_info"
3657
3658 if test "$enableval" = yes; then
3659 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3660 else
3661 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3662 fi
3663
3664else
3665
3666 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3674
3675fi;
3676
3677 eval "$ac_cv_use_debug_info"
3678 if test "$no_cache" != 1; then
3679 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3680 fi
3681
3682 if test "$wxUSE_DEBUG_INFO" = yes; then
3683 echo "$as_me:$LINENO: result: yes" >&5
3684echo "${ECHO_T}yes" >&6
3685 else
3686 echo "$as_me:$LINENO: result: no" >&5
3687echo "${ECHO_T}no" >&6
3688 fi
3689
3690
3691 enablestring=
3692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3693echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3694 no_cache=0
3695 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3696if test "${enable_debug_gdb+set}" = set; then
3697 enableval="$enable_debug_gdb"
3698
3699 if test "$enableval" = yes; then
3700 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3701 else
3702 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3703 fi
3704
3705else
3706
3707 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3708 if test "x$LINE" != x ; then
3709 eval "DEFAULT_$LINE"
3710 else
3711 no_cache=1
3712 fi
3713
3714 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3715
3716fi;
3717
3718 eval "$ac_cv_use_debug_gdb"
3719 if test "$no_cache" != 1; then
3720 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3721 fi
3722
3723 if test "$wxUSE_DEBUG_GDB" = yes; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725echo "${ECHO_T}yes" >&6
3726 else
3727 echo "$as_me:$LINENO: result: no" >&5
3728echo "${ECHO_T}no" >&6
3729 fi
3730
3731
3732 enablestring=
3733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3734echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3735 no_cache=0
3736 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3737if test "${enable_debug_cntxt+set}" = set; then
3738 enableval="$enable_debug_cntxt"
3739
3740 if test "$enableval" = yes; then
3741 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3742 else
3743 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3744 fi
3745
3746else
3747
3748 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3756
3757fi;
3758
3759 eval "$ac_cv_use_debug_cntxt"
3760 if test "$no_cache" != 1; then
3761 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3762 fi
3763
3764 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3765 echo "$as_me:$LINENO: result: yes" >&5
3766echo "${ECHO_T}yes" >&6
3767 else
3768 echo "$as_me:$LINENO: result: no" >&5
3769echo "${ECHO_T}no" >&6
3770 fi
3771
3772
3773 enablestring=
3774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3775echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3776 no_cache=0
3777 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3778if test "${enable_mem_tracing+set}" = set; then
3779 enableval="$enable_mem_tracing"
3780
3781 if test "$enableval" = yes; then
3782 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3783 else
3784 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3785 fi
3786
3787else
3788
3789 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3790 if test "x$LINE" != x ; then
3791 eval "DEFAULT_$LINE"
3792 else
3793 no_cache=1
3794 fi
3795
3796 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3797
3798fi;
3799
3800 eval "$ac_cv_use_mem_tracing"
3801 if test "$no_cache" != 1; then
3802 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3803 fi
3804
3805 if test "$wxUSE_MEM_TRACING" = yes; then
3806 echo "$as_me:$LINENO: result: yes" >&5
3807echo "${ECHO_T}yes" >&6
3808 else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811 fi
3812
3813
3814 enablestring=
3815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3816echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3817 no_cache=0
3818 # Check whether --enable-profile or --disable-profile was given.
3819if test "${enable_profile+set}" = set; then
3820 enableval="$enable_profile"
3821
3822 if test "$enableval" = yes; then
3823 ac_cv_use_profile='wxUSE_PROFILE=yes'
3824 else
3825 ac_cv_use_profile='wxUSE_PROFILE=no'
3826 fi
3827
3828else
3829
3830 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3831 if test "x$LINE" != x ; then
3832 eval "DEFAULT_$LINE"
3833 else
3834 no_cache=1
3835 fi
3836
3837 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3838
3839fi;
3840
3841 eval "$ac_cv_use_profile"
3842 if test "$no_cache" != 1; then
3843 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3844 fi
3845
3846 if test "$wxUSE_PROFILE" = yes; then
3847 echo "$as_me:$LINENO: result: yes" >&5
3848echo "${ECHO_T}yes" >&6
3849 else
3850 echo "$as_me:$LINENO: result: no" >&5
3851echo "${ECHO_T}no" >&6
3852 fi
3853
3854
3855 enablestring=
3856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3857echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3858 no_cache=0
3859 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3860if test "${enable_no_rtti+set}" = set; then
3861 enableval="$enable_no_rtti"
3862
3863 if test "$enableval" = yes; then
3864 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3865 else
3866 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3867 fi
3868
3869else
3870
3871 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3872 if test "x$LINE" != x ; then
3873 eval "DEFAULT_$LINE"
3874 else
3875 no_cache=1
3876 fi
3877
3878 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3879
3880fi;
3881
3882 eval "$ac_cv_use_no_rtti"
3883 if test "$no_cache" != 1; then
3884 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3885 fi
3886
3887 if test "$wxUSE_NO_RTTI" = yes; then
3888 echo "$as_me:$LINENO: result: yes" >&5
3889echo "${ECHO_T}yes" >&6
3890 else
3891 echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
3893 fi
3894
3895
3896 enablestring=
3897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3898echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3899 no_cache=0
3900 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3901if test "${enable_no_exceptions+set}" = set; then
3902 enableval="$enable_no_exceptions"
3903
3904 if test "$enableval" = yes; then
3905 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3906 else
3907 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3908 fi
3909
3910else
3911
3912 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3920
3921fi;
3922
3923 eval "$ac_cv_use_no_exceptions"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3929 echo "$as_me:$LINENO: result: yes" >&5
3930echo "${ECHO_T}yes" >&6
3931 else
3932 echo "$as_me:$LINENO: result: no" >&5
3933echo "${ECHO_T}no" >&6
3934 fi
3935
3936
3937 enablestring=
3938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3939echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3940 no_cache=0
3941 # Check whether --enable-permissive or --disable-permissive was given.
3942if test "${enable_permissive+set}" = set; then
3943 enableval="$enable_permissive"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3947 else
3948 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3949 fi
3950
3951else
3952
3953 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3961
3962fi;
3963
3964 eval "$ac_cv_use_permissive"
3965 if test "$no_cache" != 1; then
3966 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3967 fi
3968
3969 if test "$wxUSE_PERMISSIVE" = yes; then
3970 echo "$as_me:$LINENO: result: yes" >&5
3971echo "${ECHO_T}yes" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974echo "${ECHO_T}no" >&6
3975 fi
3976
3977
3978 enablestring=
3979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3980echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3981 no_cache=0
3982 # Check whether --enable-no_deps or --disable-no_deps was given.
3983if test "${enable_no_deps+set}" = set; then
3984 enableval="$enable_no_deps"
3985
3986 if test "$enableval" = yes; then
3987 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3988 else
3989 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3990 fi
3991
3992else
3993
3994 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4002
4003fi;
4004
4005 eval "$ac_cv_use_no_deps"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_NO_DEPS" = yes; then
4011 echo "$as_me:$LINENO: result: yes" >&5
4012echo "${ECHO_T}yes" >&6
4013 else
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016 fi
4017
4018
4019
4020 enablestring=
4021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4022echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4023 no_cache=0
4024 # Check whether --enable-compat22 or --disable-compat22 was given.
4025if test "${enable_compat22+set}" = set; then
4026 enableval="$enable_compat22"
4027
4028 if test "$enableval" = yes; then
4029 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4030 else
4031 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4032 fi
4033
4034else
4035
4036 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4037 if test "x$LINE" != x ; then
4038 eval "DEFAULT_$LINE"
4039 else
4040 no_cache=1
4041 fi
4042
4043 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4044
4045fi;
4046
4047 eval "$ac_cv_use_compat22"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058 fi
4059
4060
4061 enablestring=disable
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4063echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4064 no_cache=0
4065 # Check whether --enable-compat24 or --disable-compat24 was given.
4066if test "${enable_compat24+set}" = set; then
4067 enableval="$enable_compat24"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4071 else
4072 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4073 fi
4074
4075else
4076
4077 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4085
4086fi;
4087
4088 eval "$ac_cv_use_compat24"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
4099 fi
4100
4101
4102# Check whether --enable-rpath or --disable-rpath was given.
4103if test "${enable_rpath+set}" = set; then
4104 enableval="$enable_rpath"
4105 wxRPATH_DIR="$enableval"
4106fi;
4107
ac1cb8d3 4108if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4109 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4110fi
4111
4112
4113
4114
4115 enablestring=
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-intl or --disable-intl was given.
4120if test "${enable_intl+set}" = set; then
4121 enableval="$enable_intl"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_intl='wxUSE_INTL=yes'
4125 else
4126 ac_cv_use_intl='wxUSE_INTL=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4139
4140fi;
4141
4142 eval "$ac_cv_use_intl"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$wxUSE_INTL" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-config or --disable-config was given.
4161if test "${enable_config+set}" = set; then
4162 enableval="$enable_config"
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_config='wxUSE_CONFIG=yes'
4166 else
4167 ac_cv_use_config='wxUSE_CONFIG=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4180
4181fi;
4182
4183 eval "$ac_cv_use_config"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_CONFIG" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
4196
4197
4198 enablestring=
4199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4200echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4201 no_cache=0
4202 # Check whether --enable-protocols or --disable-protocols was given.
4203if test "${enable_protocols+set}" = set; then
4204 enableval="$enable_protocols"
4205
4206 if test "$enableval" = yes; then
4207 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4208 else
4209 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4210 fi
4211
4212else
4213
4214 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4215 if test "x$LINE" != x ; then
4216 eval "DEFAULT_$LINE"
4217 else
4218 no_cache=1
4219 fi
4220
4221 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4222
4223fi;
4224
4225 eval "$ac_cv_use_protocols"
4226 if test "$no_cache" != 1; then
4227 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4228 fi
4229
4230 if test "$wxUSE_PROTOCOL" = yes; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232echo "${ECHO_T}yes" >&6
4233 else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236 fi
4237
4238
4239 enablestring=
4240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4241echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4242 no_cache=0
4243 # Check whether --enable-ftp or --disable-ftp was given.
4244if test "${enable_ftp+set}" = set; then
4245 enableval="$enable_ftp"
4246
4247 if test "$enableval" = yes; then
4248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4249 else
4250 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4251 fi
4252
4253else
4254
4255 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4256 if test "x$LINE" != x ; then
4257 eval "DEFAULT_$LINE"
4258 else
4259 no_cache=1
4260 fi
4261
4262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4263
4264fi;
4265
4266 eval "$ac_cv_use_ftp"
4267 if test "$no_cache" != 1; then
4268 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4269 fi
4270
4271 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4272 echo "$as_me:$LINENO: result: yes" >&5
4273echo "${ECHO_T}yes" >&6
4274 else
4275 echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277 fi
4278
4279
4280 enablestring=
4281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4282echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4283 no_cache=0
4284 # Check whether --enable-http or --disable-http was given.
4285if test "${enable_http+set}" = set; then
4286 enableval="$enable_http"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4290 else
4291 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4292 fi
4293
4294else
4295
4296 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4304
4305fi;
4306
4307 eval "$ac_cv_use_http"
4308 if test "$no_cache" != 1; then
4309 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4310 fi
4311
4312 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4313 echo "$as_me:$LINENO: result: yes" >&5
4314echo "${ECHO_T}yes" >&6
4315 else
4316 echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
4318 fi
4319
4320
4321 enablestring=
4322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4323echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4324 no_cache=0
4325 # Check whether --enable-fileproto or --disable-fileproto was given.
4326if test "${enable_fileproto+set}" = set; then
4327 enableval="$enable_fileproto"
4328
4329 if test "$enableval" = yes; then
4330 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4331 else
4332 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4333 fi
4334
4335else
4336
4337 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4338 if test "x$LINE" != x ; then
4339 eval "DEFAULT_$LINE"
4340 else
4341 no_cache=1
4342 fi
4343
4344 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4345
4346fi;
4347
4348 eval "$ac_cv_use_fileproto"
4349 if test "$no_cache" != 1; then
4350 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4351 fi
4352
4353 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4354 echo "$as_me:$LINENO: result: yes" >&5
4355echo "${ECHO_T}yes" >&6
4356 else
4357 echo "$as_me:$LINENO: result: no" >&5
4358echo "${ECHO_T}no" >&6
4359 fi
4360
4361
4362 enablestring=
4363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4364echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4365 no_cache=0
4366 # Check whether --enable-sockets or --disable-sockets was given.
4367if test "${enable_sockets+set}" = set; then
4368 enableval="$enable_sockets"
4369
4370 if test "$enableval" = yes; then
4371 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4372 else
4373 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4374 fi
4375
4376else
4377
4378 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4379 if test "x$LINE" != x ; then
4380 eval "DEFAULT_$LINE"
4381 else
4382 no_cache=1
4383 fi
4384
4385 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4386
4387fi;
4388
4389 eval "$ac_cv_use_sockets"
4390 if test "$no_cache" != 1; then
4391 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4392 fi
4393
4394 if test "$wxUSE_SOCKETS" = yes; then
4395 echo "$as_me:$LINENO: result: yes" >&5
4396echo "${ECHO_T}yes" >&6
4397 else
4398 echo "$as_me:$LINENO: result: no" >&5
4399echo "${ECHO_T}no" >&6
4400 fi
4401
4402
4403 enablestring=
4404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4405echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4406 no_cache=0
4407 # Check whether --enable-ole or --disable-ole was given.
4408if test "${enable_ole+set}" = set; then
4409 enableval="$enable_ole"
4410
4411 if test "$enableval" = yes; then
4412 ac_cv_use_ole='wxUSE_OLE=yes'
4413 else
4414 ac_cv_use_ole='wxUSE_OLE=no'
4415 fi
4416
4417else
4418
4419 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4427
4428fi;
4429
4430 eval "$ac_cv_use_ole"
4431 if test "$no_cache" != 1; then
4432 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4433 fi
4434
4435 if test "$wxUSE_OLE" = yes; then
4436 echo "$as_me:$LINENO: result: yes" >&5
4437echo "${ECHO_T}yes" >&6
4438 else
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441 fi
4442
4443
4444 enablestring=
4445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4446echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4447 no_cache=0
4448 # Check whether --enable-dataobj or --disable-dataobj was given.
4449if test "${enable_dataobj+set}" = set; then
4450 enableval="$enable_dataobj"
4451
4452 if test "$enableval" = yes; then
4453 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4454 else
4455 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4456 fi
4457
4458else
4459
4460 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
4467 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4468
4469fi;
4470
4471 eval "$ac_cv_use_dataobj"
4472 if test "$no_cache" != 1; then
4473 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4474 fi
4475
4476 if test "$wxUSE_DATAOBJ" = yes; then
4477 echo "$as_me:$LINENO: result: yes" >&5
4478echo "${ECHO_T}yes" >&6
4479 else
4480 echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6
4482 fi
4483
4484
4485
4486 enablestring=
4487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4488echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4489 no_cache=0
4490 # Check whether --enable-ipc or --disable-ipc was given.
4491if test "${enable_ipc+set}" = set; then
4492 enableval="$enable_ipc"
4493
4494 if test "$enableval" = yes; then
4495 ac_cv_use_ipc='wxUSE_IPC=yes'
4496 else
4497 ac_cv_use_ipc='wxUSE_IPC=no'
4498 fi
4499
4500else
4501
4502 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4510
4511fi;
4512
4513 eval "$ac_cv_use_ipc"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_IPC" = yes; then
4519 echo "$as_me:$LINENO: result: yes" >&5
4520echo "${ECHO_T}yes" >&6
4521 else
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524 fi
4525
4526
4527
4528 enablestring=
4529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4530echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4531 no_cache=0
4532 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4533if test "${enable_apple_ieee+set}" = set; then
4534 enableval="$enable_apple_ieee"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4538 else
4539 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4540 fi
4541
4542else
4543
4544 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4552
4553fi;
4554
4555 eval "$ac_cv_use_apple_ieee"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_APPLE_IEEE" = yes; then
4561 echo "$as_me:$LINENO: result: yes" >&5
4562echo "${ECHO_T}yes" >&6
4563 else
4564 echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566 fi
4567
4568
4569 enablestring=
4570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4571echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4572 no_cache=0
4573 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4574if test "${enable_catch_segvs+set}" = set; then
4575 enableval="$enable_catch_segvs"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4579 else
4580 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4581 fi
4582
4583else
4584
4585 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4593
4594fi;
4595
4596 eval "$ac_cv_use_catch_segvs"
4597 if test "$no_cache" != 1; then
4598 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4599 fi
4600
4601 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4602 echo "$as_me:$LINENO: result: yes" >&5
4603echo "${ECHO_T}yes" >&6
4604 else
4605 echo "$as_me:$LINENO: result: no" >&5
4606echo "${ECHO_T}no" >&6
4607 fi
4608
4609
4610 enablestring=
4611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4612echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4613 no_cache=0
4614 # Check whether --enable-cmdline or --disable-cmdline was given.
4615if test "${enable_cmdline+set}" = set; then
4616 enableval="$enable_cmdline"
4617
4618 if test "$enableval" = yes; then
4619 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4620 else
4621 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4622 fi
4623
4624else
4625
4626 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4627 if test "x$LINE" != x ; then
4628 eval "DEFAULT_$LINE"
4629 else
4630 no_cache=1
4631 fi
4632
4633 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4634
4635fi;
4636
4637 eval "$ac_cv_use_cmdline"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4643 echo "$as_me:$LINENO: result: yes" >&5
4644echo "${ECHO_T}yes" >&6
4645 else
4646 echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648 fi
4649
4650
4651 enablestring=
4652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4653echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4654 no_cache=0
4655 # Check whether --enable-datetime or --disable-datetime was given.
4656if test "${enable_datetime+set}" = set; then
4657 enableval="$enable_datetime"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4661 else
4662 ac_cv_use_datetime='wxUSE_DATETIME=no'
4663 fi
4664
4665else
4666
4667 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4675
4676fi;
4677
4678 eval "$ac_cv_use_datetime"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_DATETIME" = yes; then
4684 echo "$as_me:$LINENO: result: yes" >&5
4685echo "${ECHO_T}yes" >&6
4686 else
4687 echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6
4689 fi
4690
4691
4692 enablestring=
4693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4694echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4695 no_cache=0
4696 # Check whether --enable-dialupman or --disable-dialupman was given.
4697if test "${enable_dialupman+set}" = set; then
4698 enableval="$enable_dialupman"
4699
4700 if test "$enableval" = yes; then
4701 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4702 else
4703 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4704 fi
4705
4706else
4707
4708 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4716
4717fi;
4718
4719 eval "$ac_cv_use_dialupman"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4725 echo "$as_me:$LINENO: result: yes" >&5
4726echo "${ECHO_T}yes" >&6
4727 else
4728 echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6
4730 fi
4731
4732
4733 enablestring=
4734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4735echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4736 no_cache=0
4737 # Check whether --enable-dynlib or --disable-dynlib was given.
4738if test "${enable_dynlib+set}" = set; then
4739 enableval="$enable_dynlib"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4743 else
4744 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4745 fi
4746
4747else
4748
4749 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4757
4758fi;
4759
4760 eval "$ac_cv_use_dynlib"
4761 if test "$no_cache" != 1; then
4762 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4763 fi
4764
4765 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4766 echo "$as_me:$LINENO: result: yes" >&5
4767echo "${ECHO_T}yes" >&6
4768 else
4769 echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771 fi
4772
4773
4774 enablestring=
4775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4776echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4777 no_cache=0
4778 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4779if test "${enable_dynamicloader+set}" = set; then
4780 enableval="$enable_dynamicloader"
4781
4782 if test "$enableval" = yes; then
4783 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4784 else
4785 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4786 fi
4787
4788else
4789
4790 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4798
4799fi;
4800
4801 eval "$ac_cv_use_dynamicloader"
4802 if test "$no_cache" != 1; then
4803 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4804 fi
4805
4806 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4807 echo "$as_me:$LINENO: result: yes" >&5
4808echo "${ECHO_T}yes" >&6
4809 else
4810 echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812 fi
4813
4814
4815 enablestring=
4816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4817echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4818 no_cache=0
4819 # Check whether --enable-exceptions or --disable-exceptions was given.
4820if test "${enable_exceptions+set}" = set; then
4821 enableval="$enable_exceptions"
4822
4823 if test "$enableval" = yes; then
4824 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4825 else
4826 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4827 fi
4828
4829else
4830
4831 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4832 if test "x$LINE" != x ; then
4833 eval "DEFAULT_$LINE"
4834 else
4835 no_cache=1
4836 fi
4837
4838 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4839
4840fi;
4841
4842 eval "$ac_cv_use_exceptions"
4843 if test "$no_cache" != 1; then
4844 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4845 fi
4846
4847 if test "$wxUSE_EXCEPTIONS" = yes; then
4848 echo "$as_me:$LINENO: result: yes" >&5
4849echo "${ECHO_T}yes" >&6
4850 else
4851 echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6
4853 fi
4854
4855
4856 enablestring=
4857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4858echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4859 no_cache=0
4860 # Check whether --enable-ffile or --disable-ffile was given.
4861if test "${enable_ffile+set}" = set; then
4862 enableval="$enable_ffile"
4863
4864 if test "$enableval" = yes; then
4865 ac_cv_use_ffile='wxUSE_FFILE=yes'
4866 else
4867 ac_cv_use_ffile='wxUSE_FFILE=no'
4868 fi
4869
4870else
4871
4872 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4873 if test "x$LINE" != x ; then
4874 eval "DEFAULT_$LINE"
4875 else
4876 no_cache=1
4877 fi
4878
4879 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4880
4881fi;
4882
4883 eval "$ac_cv_use_ffile"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_FFILE" = yes; then
4889 echo "$as_me:$LINENO: result: yes" >&5
4890echo "${ECHO_T}yes" >&6
4891 else
4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
4894 fi
4895
4896
4897 enablestring=
4898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4899echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4900 no_cache=0
4901 # Check whether --enable-file or --disable-file was given.
4902if test "${enable_file+set}" = set; then
4903 enableval="$enable_file"
4904
4905 if test "$enableval" = yes; then
4906 ac_cv_use_file='wxUSE_FILE=yes'
4907 else
4908 ac_cv_use_file='wxUSE_FILE=no'
4909 fi
4910
4911else
4912
4913 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4914 if test "x$LINE" != x ; then
4915 eval "DEFAULT_$LINE"
4916 else
4917 no_cache=1
4918 fi
4919
4920 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4921
4922fi;
4923
4924 eval "$ac_cv_use_file"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_FILE" = yes; then
4930 echo "$as_me:$LINENO: result: yes" >&5
4931echo "${ECHO_T}yes" >&6
4932 else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935 fi
4936
4937
4938 enablestring=
4939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4940echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4941 no_cache=0
4942 # Check whether --enable-filesystem or --disable-filesystem was given.
4943if test "${enable_filesystem+set}" = set; then
4944 enableval="$enable_filesystem"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4948 else
4949 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4950 fi
4951
4952else
4953
4954 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4962
4963fi;
4964
4965 eval "$ac_cv_use_filesystem"
4966 if test "$no_cache" != 1; then
4967 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4968 fi
4969
4970 if test "$wxUSE_FILESYSTEM" = yes; then
4971 echo "$as_me:$LINENO: result: yes" >&5
4972echo "${ECHO_T}yes" >&6
4973 else
4974 echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6
4976 fi
4977
4978
4979 enablestring=
4980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4981echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4982 no_cache=0
4983 # Check whether --enable-fontmap or --disable-fontmap was given.
4984if test "${enable_fontmap+set}" = set; then
4985 enableval="$enable_fontmap"
4986
4987 if test "$enableval" = yes; then
4988 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4989 else
4990 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4991 fi
4992
4993else
4994
4995 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4996 if test "x$LINE" != x ; then
4997 eval "DEFAULT_$LINE"
4998 else
4999 no_cache=1
5000 fi
5001
5002 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5003
5004fi;
5005
5006 eval "$ac_cv_use_fontmap"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_FONTMAP" = yes; then
5012 echo "$as_me:$LINENO: result: yes" >&5
5013echo "${ECHO_T}yes" >&6
5014 else
5015 echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
5017 fi
5018
5019
5020 enablestring=
5021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5022echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5023 no_cache=0
5024 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5025if test "${enable_fs_inet+set}" = set; then
5026 enableval="$enable_fs_inet"
5027
5028 if test "$enableval" = yes; then
5029 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5030 else
5031 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5032 fi
5033
5034else
5035
5036 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5037 if test "x$LINE" != x ; then
5038 eval "DEFAULT_$LINE"
5039 else
5040 no_cache=1
5041 fi
5042
5043 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5044
5045fi;
5046
5047 eval "$ac_cv_use_fs_inet"
5048 if test "$no_cache" != 1; then
5049 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5050 fi
5051
5052 if test "$wxUSE_FS_INET" = yes; then
5053 echo "$as_me:$LINENO: result: yes" >&5
5054echo "${ECHO_T}yes" >&6
5055 else
5056 echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
5058 fi
5059
5060
5061 enablestring=
5062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5063echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5064 no_cache=0
5065 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5066if test "${enable_fs_zip+set}" = set; then
5067 enableval="$enable_fs_zip"
5068
5069 if test "$enableval" = yes; then
5070 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5071 else
5072 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5073 fi
5074
5075else
5076
5077 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5078 if test "x$LINE" != x ; then
5079 eval "DEFAULT_$LINE"
5080 else
5081 no_cache=1
5082 fi
5083
5084 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5085
5086fi;
5087
5088 eval "$ac_cv_use_fs_zip"
5089 if test "$no_cache" != 1; then
5090 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5091 fi
5092
5093 if test "$wxUSE_FS_ZIP" = yes; then
5094 echo "$as_me:$LINENO: result: yes" >&5
5095echo "${ECHO_T}yes" >&6
5096 else
5097 echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
5099 fi
5100
5101
5102 enablestring=
5103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5104echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5105 no_cache=0
5106 # Check whether --enable-geometry or --disable-geometry was given.
5107if test "${enable_geometry+set}" = set; then
5108 enableval="$enable_geometry"
5109
5110 if test "$enableval" = yes; then
5111 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5112 else
5113 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5114 fi
5115
5116else
5117
5118 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5119 if test "x$LINE" != x ; then
5120 eval "DEFAULT_$LINE"
5121 else
5122 no_cache=1
5123 fi
5124
5125 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5126
5127fi;
5128
5129 eval "$ac_cv_use_geometry"
5130 if test "$no_cache" != 1; then
5131 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5132 fi
5133
5134 if test "$wxUSE_GEOMETRY" = yes; then
5135 echo "$as_me:$LINENO: result: yes" >&5
5136echo "${ECHO_T}yes" >&6
5137 else
5138 echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6
5140 fi
5141
5142
5143 enablestring=
5144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5145echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5146 no_cache=0
5147 # Check whether --enable-log or --disable-log was given.
5148if test "${enable_log+set}" = set; then
5149 enableval="$enable_log"
5150
5151 if test "$enableval" = yes; then
5152 ac_cv_use_log='wxUSE_LOG=yes'
5153 else
5154 ac_cv_use_log='wxUSE_LOG=no'
5155 fi
5156
5157else
5158
5159 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5160 if test "x$LINE" != x ; then
5161 eval "DEFAULT_$LINE"
5162 else
5163 no_cache=1
5164 fi
5165
5166 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5167
5168fi;
5169
5170 eval "$ac_cv_use_log"
5171 if test "$no_cache" != 1; then
5172 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5173 fi
5174
5175 if test "$wxUSE_LOG" = yes; then
5176 echo "$as_me:$LINENO: result: yes" >&5
5177echo "${ECHO_T}yes" >&6
5178 else
5179 echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181 fi
5182
5183
5184 enablestring=
5185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5186echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5187 no_cache=0
5188 # Check whether --enable-longlong or --disable-longlong was given.
5189if test "${enable_longlong+set}" = set; then
5190 enableval="$enable_longlong"
5191
5192 if test "$enableval" = yes; then
5193 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5194 else
5195 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5196 fi
5197
5198else
5199
5200 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5201 if test "x$LINE" != x ; then
5202 eval "DEFAULT_$LINE"
5203 else
5204 no_cache=1
5205 fi
5206
5207 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5208
5209fi;
5210
5211 eval "$ac_cv_use_longlong"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_LONGLONG" = yes; then
5217 echo "$as_me:$LINENO: result: yes" >&5
5218echo "${ECHO_T}yes" >&6
5219 else
5220 echo "$as_me:$LINENO: result: no" >&5
5221echo "${ECHO_T}no" >&6
5222 fi
5223
5224
5225 enablestring=
5226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5227echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5228 no_cache=0
5229 # Check whether --enable-mimetype or --disable-mimetype was given.
5230if test "${enable_mimetype+set}" = set; then
5231 enableval="$enable_mimetype"
5232
5233 if test "$enableval" = yes; then
5234 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5235 else
5236 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5237 fi
5238
5239else
5240
5241 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5249
5250fi;
5251
5252 eval "$ac_cv_use_mimetype"
5253 if test "$no_cache" != 1; then
5254 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5255 fi
5256
5257 if test "$wxUSE_MIMETYPE" = yes; then
5258 echo "$as_me:$LINENO: result: yes" >&5
5259echo "${ECHO_T}yes" >&6
5260 else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263 fi
5264
5265
5266 enablestring=
5267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5268echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5269 no_cache=0
5270 # Check whether --enable-mslu or --disable-mslu was given.
5271if test "${enable_mslu+set}" = set; then
5272 enableval="$enable_mslu"
5273
5274 if test "$enableval" = yes; then
5275 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5276 else
5277 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5278 fi
5279
5280else
5281
5282 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5283 if test "x$LINE" != x ; then
5284 eval "DEFAULT_$LINE"
5285 else
5286 no_cache=1
5287 fi
5288
5289 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5290
5291fi;
5292
5293 eval "$ac_cv_use_mslu"
5294 if test "$no_cache" != 1; then
5295 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5296 fi
5297
5298 if test "$wxUSE_UNICODE_MSLU" = yes; then
5299 echo "$as_me:$LINENO: result: yes" >&5
5300echo "${ECHO_T}yes" >&6
5301 else
5302 echo "$as_me:$LINENO: result: no" >&5
5303echo "${ECHO_T}no" >&6
5304 fi
5305
5306
5307 enablestring=
5308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5309echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5310 no_cache=0
5311 # Check whether --enable-snglinst or --disable-snglinst was given.
5312if test "${enable_snglinst+set}" = set; then
5313 enableval="$enable_snglinst"
5314
5315 if test "$enableval" = yes; then
5316 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5317 else
5318 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5319 fi
5320
5321else
5322
5323 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5324 if test "x$LINE" != x ; then
5325 eval "DEFAULT_$LINE"
5326 else
5327 no_cache=1
5328 fi
5329
5330 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5331
5332fi;
5333
5334 eval "$ac_cv_use_snglinst"
5335 if test "$no_cache" != 1; then
5336 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5337 fi
5338
5339 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5340 echo "$as_me:$LINENO: result: yes" >&5
5341echo "${ECHO_T}yes" >&6
5342 else
5343 echo "$as_me:$LINENO: result: no" >&5
5344echo "${ECHO_T}no" >&6
5345 fi
5346
5347
5348 enablestring=
5349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5350echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5351 no_cache=0
5352 # Check whether --enable-streams or --disable-streams was given.
5353if test "${enable_streams+set}" = set; then
5354 enableval="$enable_streams"
5355
5356 if test "$enableval" = yes; then
5357 ac_cv_use_streams='wxUSE_STREAMS=yes'
5358 else
5359 ac_cv_use_streams='wxUSE_STREAMS=no'
5360 fi
5361
5362else
5363
5364 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5365 if test "x$LINE" != x ; then
5366 eval "DEFAULT_$LINE"
5367 else
5368 no_cache=1
5369 fi
5370
5371 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5372
5373fi;
5374
5375 eval "$ac_cv_use_streams"
5376 if test "$no_cache" != 1; then
5377 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5378 fi
5379
5380 if test "$wxUSE_STREAMS" = yes; then
5381 echo "$as_me:$LINENO: result: yes" >&5
5382echo "${ECHO_T}yes" >&6
5383 else
5384 echo "$as_me:$LINENO: result: no" >&5
5385echo "${ECHO_T}no" >&6
5386 fi
5387
5388
5389 enablestring=
5390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5391echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5392 no_cache=0
5393 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5394if test "${enable_std_iostreams+set}" = set; then
5395 enableval="$enable_std_iostreams"
5396
5397 if test "$enableval" = yes; then
5398 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5399 else
5400 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5401 fi
5402
5403else
5404
5405 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5406 if test "x$LINE" != x ; then
5407 eval "DEFAULT_$LINE"
5408 else
5409 no_cache=1
5410 fi
5411
5412 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5413
5414fi;
5415
5416 eval "$ac_cv_use_std_iostreams"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_STD_IOSTREAM" = yes; then
5422 echo "$as_me:$LINENO: result: yes" >&5
5423echo "${ECHO_T}yes" >&6
5424 else
5425 echo "$as_me:$LINENO: result: no" >&5
5426echo "${ECHO_T}no" >&6
5427 fi
5428
5429
5430 enablestring=
5431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5432echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5433 no_cache=0
5434 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5435if test "${enable_stopwatch+set}" = set; then
5436 enableval="$enable_stopwatch"
5437
5438 if test "$enableval" = yes; then
5439 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5440 else
5441 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5442 fi
5443
5444else
5445
5446 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5454
5455fi;
5456
5457 eval "$ac_cv_use_stopwatch"
5458 if test "$no_cache" != 1; then
5459 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5460 fi
5461
5462 if test "$wxUSE_STOPWATCH" = yes; then
5463 echo "$as_me:$LINENO: result: yes" >&5
5464echo "${ECHO_T}yes" >&6
5465 else
5466 echo "$as_me:$LINENO: result: no" >&5
5467echo "${ECHO_T}no" >&6
5468 fi
5469
5470
5471 enablestring=
5472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5473echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5474 no_cache=0
5475 # Check whether --enable-system_options or --disable-system_options was given.
5476if test "${enable_system_options+set}" = set; then
5477 enableval="$enable_system_options"
5478
5479 if test "$enableval" = yes; then
5480 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5481 else
5482 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5483 fi
5484
5485else
5486
5487 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5488 if test "x$LINE" != x ; then
5489 eval "DEFAULT_$LINE"
5490 else
5491 no_cache=1
5492 fi
5493
5494 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5495
5496fi;
5497
5498 eval "$ac_cv_use_system_options"
5499 if test "$no_cache" != 1; then
5500 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5501 fi
5502
5503 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5504 echo "$as_me:$LINENO: result: yes" >&5
5505echo "${ECHO_T}yes" >&6
5506 else
5507 echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509 fi
5510
5511
5512 enablestring=
5513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5514echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5515 no_cache=0
5516 # Check whether --enable-textbuf or --disable-textbuf was given.
5517if test "${enable_textbuf+set}" = set; then
5518 enableval="$enable_textbuf"
5519
5520 if test "$enableval" = yes; then
5521 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5522 else
5523 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5524 fi
5525
5526else
5527
5528 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5536
5537fi;
5538
5539 eval "$ac_cv_use_textbuf"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_TEXTBUFFER" = yes; then
5545 echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6
5547 else
5548 echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
5550 fi
5551
5552
5553 enablestring=
5554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5555echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5556 no_cache=0
5557 # Check whether --enable-textfile or --disable-textfile was given.
5558if test "${enable_textfile+set}" = set; then
5559 enableval="$enable_textfile"
5560
5561 if test "$enableval" = yes; then
5562 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5563 else
5564 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5565 fi
5566
5567else
5568
5569 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5577
5578fi;
5579
5580 eval "$ac_cv_use_textfile"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_TEXTFILE" = yes; then
5586 echo "$as_me:$LINENO: result: yes" >&5
5587echo "${ECHO_T}yes" >&6
5588 else
5589 echo "$as_me:$LINENO: result: no" >&5
5590echo "${ECHO_T}no" >&6
5591 fi
5592
5593
5594 enablestring=
5595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5596echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5597 no_cache=0
5598 # Check whether --enable-timer or --disable-timer was given.
5599if test "${enable_timer+set}" = set; then
5600 enableval="$enable_timer"
5601
5602 if test "$enableval" = yes; then
5603 ac_cv_use_timer='wxUSE_TIMER=yes'
5604 else
5605 ac_cv_use_timer='wxUSE_TIMER=no'
5606 fi
5607
5608else
5609
5610 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5618
5619fi;
5620
5621 eval "$ac_cv_use_timer"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_TIMER" = yes; then
5627 echo "$as_me:$LINENO: result: yes" >&5
5628echo "${ECHO_T}yes" >&6
5629 else
5630 echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6
5632 fi
5633
5634
5635 enablestring=
5636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5637echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5638 no_cache=0
5639 # Check whether --enable-unicode or --disable-unicode was given.
5640if test "${enable_unicode+set}" = set; then
5641 enableval="$enable_unicode"
5642
5643 if test "$enableval" = yes; then
5644 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5645 else
5646 ac_cv_use_unicode='wxUSE_UNICODE=no'
5647 fi
5648
5649else
5650
5651 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5652 if test "x$LINE" != x ; then
5653 eval "DEFAULT_$LINE"
5654 else
5655 no_cache=1
5656 fi
5657
5658 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5659
5660fi;
5661
5662 eval "$ac_cv_use_unicode"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_UNICODE" = yes; then
5668 echo "$as_me:$LINENO: result: yes" >&5
5669echo "${ECHO_T}yes" >&6
5670 else
5671 echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673 fi
5674
5675
5676 enablestring=
5677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5678echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5679 no_cache=0
5680 # Check whether --enable-sound or --disable-sound was given.
5681if test "${enable_sound+set}" = set; then
5682 enableval="$enable_sound"
5683
5684 if test "$enableval" = yes; then
5685 ac_cv_use_sound='wxUSE_SOUND=yes'
5686 else
5687 ac_cv_use_sound='wxUSE_SOUND=no'
5688 fi
5689
5690else
5691
5692 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5693 if test "x$LINE" != x ; then
5694 eval "DEFAULT_$LINE"
5695 else
5696 no_cache=1
5697 fi
5698
5699 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5700
5701fi;
5702
5703 eval "$ac_cv_use_sound"
5704 if test "$no_cache" != 1; then
5705 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5706 fi
5707
5708 if test "$wxUSE_SOUND" = yes; then
5709 echo "$as_me:$LINENO: result: yes" >&5
5710echo "${ECHO_T}yes" >&6
5711 else
5712 echo "$as_me:$LINENO: result: no" >&5
5713echo "${ECHO_T}no" >&6
5714 fi
5715
5716
5717 enablestring=
5718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5719echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5720 no_cache=0
5721 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5722if test "${enable_wxprintfv+set}" = set; then
5723 enableval="$enable_wxprintfv"
5724
5725 if test "$enableval" = yes; then
5726 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5727 else
5728 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5729 fi
5730
5731else
5732
5733 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5734 if test "x$LINE" != x ; then
5735 eval "DEFAULT_$LINE"
5736 else
5737 no_cache=1
5738 fi
5739
5740 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5741
5742fi;
5743
5744 eval "$ac_cv_use_wxprintfv"
5745 if test "$no_cache" != 1; then
5746 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5747 fi
5748
5749 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5750 echo "$as_me:$LINENO: result: yes" >&5
5751echo "${ECHO_T}yes" >&6
5752 else
5753 echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755 fi
5756
5757
5758 enablestring=
5759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5760echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5761 no_cache=0
5762 # Check whether --enable-zipstream or --disable-zipstream was given.
5763if test "${enable_zipstream+set}" = set; then
5764 enableval="$enable_zipstream"
5765
5766 if test "$enableval" = yes; then
5767 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5768 else
5769 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5770 fi
5771
5772else
5773
5774 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5775 if test "x$LINE" != x ; then
5776 eval "DEFAULT_$LINE"
5777 else
5778 no_cache=1
5779 fi
5780
5781 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5782
5783fi;
5784
5785 eval "$ac_cv_use_zipstream"
5786 if test "$no_cache" != 1; then
5787 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5788 fi
5789
5790 if test "$wxUSE_ZIPSTREAM" = yes; then
5791 echo "$as_me:$LINENO: result: yes" >&5
5792echo "${ECHO_T}yes" >&6
5793 else
5794 echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796 fi
5797
5798
a848cd7e
SC
5799
5800 enablestring=
5801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5802echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5803 no_cache=0
5804 # Check whether --enable-url or --disable-url was given.
5805if test "${enable_url+set}" = set; then
5806 enableval="$enable_url"
5807
5808 if test "$enableval" = yes; then
5809 ac_cv_use_url='wxUSE_URL=yes'
5810 else
5811 ac_cv_use_url='wxUSE_URL=no'
5812 fi
5813
5814else
5815
5816 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5817 if test "x$LINE" != x ; then
5818 eval "DEFAULT_$LINE"
5819 else
5820 no_cache=1
5821 fi
5822
5823 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5824
5825fi;
5826
5827 eval "$ac_cv_use_url"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_URL" = yes; then
5833 echo "$as_me:$LINENO: result: yes" >&5
5834echo "${ECHO_T}yes" >&6
5835 else
5836 echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838 fi
5839
5840
5841 enablestring=
5842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5843echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5844 no_cache=0
5845 # Check whether --enable-protocol or --disable-protocol was given.
5846if test "${enable_protocol+set}" = set; then
5847 enableval="$enable_protocol"
5848
5849 if test "$enableval" = yes; then
5850 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5851 else
5852 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5853 fi
5854
5855else
5856
5857 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5858 if test "x$LINE" != x ; then
5859 eval "DEFAULT_$LINE"
5860 else
5861 no_cache=1
5862 fi
5863
5864 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5865
5866fi;
5867
5868 eval "$ac_cv_use_protocol"
5869 if test "$no_cache" != 1; then
5870 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5871 fi
5872
5873 if test "$wxUSE_PROTOCOL" = yes; then
5874 echo "$as_me:$LINENO: result: yes" >&5
5875echo "${ECHO_T}yes" >&6
5876 else
5877 echo "$as_me:$LINENO: result: no" >&5
5878echo "${ECHO_T}no" >&6
5879 fi
5880
5881
5882 enablestring=
5883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5884echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5885 no_cache=0
5886 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5887if test "${enable_protocol_http+set}" = set; then
5888 enableval="$enable_protocol_http"
5889
5890 if test "$enableval" = yes; then
5891 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5892 else
5893 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5894 fi
5895
5896else
5897
5898 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5899 if test "x$LINE" != x ; then
5900 eval "DEFAULT_$LINE"
5901 else
5902 no_cache=1
5903 fi
5904
5905 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5906
5907fi;
5908
5909 eval "$ac_cv_use_protocol_http"
5910 if test "$no_cache" != 1; then
5911 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5912 fi
5913
5914 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5915 echo "$as_me:$LINENO: result: yes" >&5
5916echo "${ECHO_T}yes" >&6
5917 else
5918 echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6
5920 fi
5921
5922
5923 enablestring=
5924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5925echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5926 no_cache=0
5927 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5928if test "${enable_protocol_ftp+set}" = set; then
5929 enableval="$enable_protocol_ftp"
5930
5931 if test "$enableval" = yes; then
5932 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5933 else
5934 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5935 fi
5936
5937else
5938
5939 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5940 if test "x$LINE" != x ; then
5941 eval "DEFAULT_$LINE"
5942 else
5943 no_cache=1
5944 fi
5945
5946 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5947
5948fi;
5949
5950 eval "$ac_cv_use_protocol_ftp"
5951 if test "$no_cache" != 1; then
5952 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5953 fi
5954
5955 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5956 echo "$as_me:$LINENO: result: yes" >&5
5957echo "${ECHO_T}yes" >&6
5958 else
5959 echo "$as_me:$LINENO: result: no" >&5
5960echo "${ECHO_T}no" >&6
5961 fi
5962
5963
5964 enablestring=
5965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5966echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5967 no_cache=0
5968 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5969if test "${enable_protocol_file+set}" = set; then
5970 enableval="$enable_protocol_file"
5971
5972 if test "$enableval" = yes; then
5973 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5974 else
5975 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5976 fi
5977
5978else
5979
5980 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5981 if test "x$LINE" != x ; then
5982 eval "DEFAULT_$LINE"
5983 else
5984 no_cache=1
5985 fi
5986
5987 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5988
5989fi;
5990
5991 eval "$ac_cv_use_protocol_file"
5992 if test "$no_cache" != 1; then
5993 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5994 fi
5995
5996 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5997 echo "$as_me:$LINENO: result: yes" >&5
5998echo "${ECHO_T}yes" >&6
5999 else
6000 echo "$as_me:$LINENO: result: no" >&5
6001echo "${ECHO_T}no" >&6
6002 fi
6003
6004
6005
6006
6007
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-threads or --disable-threads was given.
6013if test "${enable_threads+set}" = set; then
6014 enableval="$enable_threads"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_threads='wxUSE_THREADS=yes'
6018 else
6019 ac_cv_use_threads='wxUSE_THREADS=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6032
6033fi;
6034
6035 eval "$ac_cv_use_threads"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_THREADS" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
6049if test "$wxUSE_GUI" = "yes"; then
6050
6051
6052
6053 enablestring=
6054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6055echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6056 no_cache=0
6057 # Check whether --enable-docview or --disable-docview was given.
6058if test "${enable_docview+set}" = set; then
6059 enableval="$enable_docview"
6060
6061 if test "$enableval" = yes; then
6062 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6063 else
6064 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6065 fi
6066
6067else
6068
6069 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6070 if test "x$LINE" != x ; then
6071 eval "DEFAULT_$LINE"
6072 else
6073 no_cache=1
6074 fi
6075
6076 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6077
6078fi;
6079
6080 eval "$ac_cv_use_docview"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6086 echo "$as_me:$LINENO: result: yes" >&5
6087echo "${ECHO_T}yes" >&6
6088 else
6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
6091 fi
6092
6093
6094 enablestring=
6095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6096echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6097 no_cache=0
6098 # Check whether --enable-help or --disable-help was given.
6099if test "${enable_help+set}" = set; then
6100 enableval="$enable_help"
6101
6102 if test "$enableval" = yes; then
6103 ac_cv_use_help='wxUSE_HELP=yes'
6104 else
6105 ac_cv_use_help='wxUSE_HELP=no'
6106 fi
6107
6108else
6109
6110 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6111 if test "x$LINE" != x ; then
6112 eval "DEFAULT_$LINE"
6113 else
6114 no_cache=1
6115 fi
6116
6117 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6118
6119fi;
6120
6121 eval "$ac_cv_use_help"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_HELP" = yes; then
6127 echo "$as_me:$LINENO: result: yes" >&5
6128echo "${ECHO_T}yes" >&6
6129 else
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
6132 fi
6133
6134
6135 enablestring=
6136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6137echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6138 no_cache=0
6139 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6140if test "${enable_mshtmlhelp+set}" = set; then
6141 enableval="$enable_mshtmlhelp"
6142
6143 if test "$enableval" = yes; then
6144 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6145 else
6146 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6147 fi
6148
6149else
6150
6151 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6152 if test "x$LINE" != x ; then
6153 eval "DEFAULT_$LINE"
6154 else
6155 no_cache=1
6156 fi
6157
6158 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6159
6160fi;
6161
6162 eval "$ac_cv_use_mshtmlhelp"
6163 if test "$no_cache" != 1; then
6164 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6165 fi
6166
6167 if test "$wxUSE_MS_HTML_HELP" = yes; then
6168 echo "$as_me:$LINENO: result: yes" >&5
6169echo "${ECHO_T}yes" >&6
6170 else
6171 echo "$as_me:$LINENO: result: no" >&5
6172echo "${ECHO_T}no" >&6
6173 fi
6174
6175
6176 enablestring=
6177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6178echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6179 no_cache=0
6180 # Check whether --enable-html or --disable-html was given.
6181if test "${enable_html+set}" = set; then
6182 enableval="$enable_html"
6183
6184 if test "$enableval" = yes; then
6185 ac_cv_use_html='wxUSE_HTML=yes'
6186 else
6187 ac_cv_use_html='wxUSE_HTML=no'
6188 fi
6189
6190else
6191
6192 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6193 if test "x$LINE" != x ; then
6194 eval "DEFAULT_$LINE"
6195 else
6196 no_cache=1
6197 fi
6198
6199 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6200
6201fi;
6202
6203 eval "$ac_cv_use_html"
6204 if test "$no_cache" != 1; then
6205 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6206 fi
6207
6208 if test "$wxUSE_HTML" = yes; then
6209 echo "$as_me:$LINENO: result: yes" >&5
6210echo "${ECHO_T}yes" >&6
6211 else
6212 echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6
6214 fi
6215
6216
6217 enablestring=
6218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6219echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6220 no_cache=0
6221 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6222if test "${enable_htmlhelp+set}" = set; then
6223 enableval="$enable_htmlhelp"
6224
6225 if test "$enableval" = yes; then
6226 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6227 else
6228 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6229 fi
6230
6231else
6232
6233 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6234 if test "x$LINE" != x ; then
6235 eval "DEFAULT_$LINE"
6236 else
6237 no_cache=1
6238 fi
6239
6240 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6241
6242fi;
6243
6244 eval "$ac_cv_use_htmlhelp"
6245 if test "$no_cache" != 1; then
6246 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6247 fi
6248
6249 if test "$wxUSE_WXHTML_HELP" = yes; then
6250 echo "$as_me:$LINENO: result: yes" >&5
6251echo "${ECHO_T}yes" >&6
6252 else
6253 echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
6255 fi
6256
6257
6258 enablestring=
6259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6260echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6261 no_cache=0
6262 # Check whether --enable-constraints or --disable-constraints was given.
6263if test "${enable_constraints+set}" = set; then
6264 enableval="$enable_constraints"
6265
6266 if test "$enableval" = yes; then
6267 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6268 else
6269 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6270 fi
6271
6272else
6273
6274 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6275 if test "x$LINE" != x ; then
6276 eval "DEFAULT_$LINE"
6277 else
6278 no_cache=1
6279 fi
6280
6281 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6282
6283fi;
6284
6285 eval "$ac_cv_use_constraints"
6286 if test "$no_cache" != 1; then
6287 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6288 fi
6289
6290 if test "$wxUSE_CONSTRAINTS" = yes; then
6291 echo "$as_me:$LINENO: result: yes" >&5
6292echo "${ECHO_T}yes" >&6
6293 else
6294 echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6
6296 fi
6297
6298
6299 enablestring=
6300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6301echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6302 no_cache=0
6303 # Check whether --enable-printarch or --disable-printarch was given.
6304if test "${enable_printarch+set}" = set; then
6305 enableval="$enable_printarch"
6306
6307 if test "$enableval" = yes; then
6308 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6309 else
6310 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6311 fi
6312
6313else
6314
6315 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6316 if test "x$LINE" != x ; then
6317 eval "DEFAULT_$LINE"
6318 else
6319 no_cache=1
6320 fi
6321
6322 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6323
6324fi;
6325
6326 eval "$ac_cv_use_printarch"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6332 echo "$as_me:$LINENO: result: yes" >&5
6333echo "${ECHO_T}yes" >&6
6334 else
6335 echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6
6337 fi
6338
6339
6340 enablestring=
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6343 no_cache=0
6344 # Check whether --enable-mdi or --disable-mdi was given.
6345if test "${enable_mdi+set}" = set; then
6346 enableval="$enable_mdi"
6347
6348 if test "$enableval" = yes; then
8a7b1113 6349 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6350 else
8a7b1113 6351 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6352 fi
6353
6354else
6355
8a7b1113 6356 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
8a7b1113 6363 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6364
6365fi;
6366
6367 eval "$ac_cv_use_mdi"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6370 fi
6371
8a7b1113
VZ
6372 if test "$wxUSE_MDI" = yes; then
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378 fi
6379
6380
6381 enablestring=
6382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6383echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6384 no_cache=0
6385 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6386if test "${enable_mdidoc+set}" = set; then
6387 enableval="$enable_mdidoc"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6391 else
6392 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6393 fi
6394
6395else
6396
6397 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6405
6406fi;
6407
6408 eval "$ac_cv_use_mdidoc"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6411 fi
6412
a848cd7e
SC
6413 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6414 echo "$as_me:$LINENO: result: yes" >&5
6415echo "${ECHO_T}yes" >&6
6416 else
6417 echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6
6419 fi
6420
6421
6422 enablestring=
6423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6424echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6425 no_cache=0
6426 # Check whether --enable-loggui or --disable-loggui was given.
6427if test "${enable_loggui+set}" = set; then
6428 enableval="$enable_loggui"
6429
6430 if test "$enableval" = yes; then
6431 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6432 else
6433 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6434 fi
6435
6436else
6437
6438 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6439 if test "x$LINE" != x ; then
6440 eval "DEFAULT_$LINE"
6441 else
6442 no_cache=1
6443 fi
6444
6445 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6446
6447fi;
6448
6449 eval "$ac_cv_use_loggui"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_LOGGUI" = yes; then
6455 echo "$as_me:$LINENO: result: yes" >&5
6456echo "${ECHO_T}yes" >&6
6457 else
6458 echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6
6460 fi
6461
6462
6463 enablestring=
6464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6465echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6466 no_cache=0
6467 # Check whether --enable-logwin or --disable-logwin was given.
6468if test "${enable_logwin+set}" = set; then
6469 enableval="$enable_logwin"
6470
6471 if test "$enableval" = yes; then
6472 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6473 else
6474 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6475 fi
6476
6477else
6478
6479 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6480 if test "x$LINE" != x ; then
6481 eval "DEFAULT_$LINE"
6482 else
6483 no_cache=1
6484 fi
6485
6486 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6487
6488fi;
6489
6490 eval "$ac_cv_use_logwin"
6491 if test "$no_cache" != 1; then
6492 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6493 fi
6494
6495 if test "$wxUSE_LOGWINDOW" = yes; then
6496 echo "$as_me:$LINENO: result: yes" >&5
6497echo "${ECHO_T}yes" >&6
6498 else
6499 echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6
6501 fi
6502
6503
6504 enablestring=
6505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6506echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6507 no_cache=0
6508 # Check whether --enable-logdialog or --disable-logdialog was given.
6509if test "${enable_logdialog+set}" = set; then
6510 enableval="$enable_logdialog"
6511
6512 if test "$enableval" = yes; then
6513 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6514 else
6515 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6516 fi
6517
6518else
6519
6520 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6521 if test "x$LINE" != x ; then
6522 eval "DEFAULT_$LINE"
6523 else
6524 no_cache=1
6525 fi
6526
6527 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6528
6529fi;
6530
6531 eval "$ac_cv_use_logdialog"
6532 if test "$no_cache" != 1; then
6533 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6534 fi
6535
6536 if test "$wxUSE_LOGDIALOG" = yes; then
6537 echo "$as_me:$LINENO: result: yes" >&5
6538echo "${ECHO_T}yes" >&6
6539 else
6540 echo "$as_me:$LINENO: result: no" >&5
6541echo "${ECHO_T}no" >&6
6542 fi
6543
6544
646b6ec1
VS
6545 enablestring=
6546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6547echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6548 no_cache=0
6549 # Check whether --enable-webkit or --disable-webkit was given.
6550if test "${enable_webkit+set}" = set; then
6551 enableval="$enable_webkit"
6552
6553 if test "$enableval" = yes; then
6554 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6555 else
6556 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6557 fi
6558
6559else
6560
6561 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6569
6570fi;
6571
6572 eval "$ac_cv_use_webkit"
6573 if test "$no_cache" != 1; then
6574 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6575 fi
6576
6577 if test "$wxUSE_WEBKIT" = yes; then
6578 echo "$as_me:$LINENO: result: yes" >&5
6579echo "${ECHO_T}yes" >&6
6580 else
6581 echo "$as_me:$LINENO: result: no" >&5
6582echo "${ECHO_T}no" >&6
6583 fi
6584
6585
a848cd7e
SC
6586
6587 enablestring=
6588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6589echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6590 no_cache=0
6591 # Check whether --enable-postscript or --disable-postscript was given.
6592if test "${enable_postscript+set}" = set; then
6593 enableval="$enable_postscript"
6594
6595 if test "$enableval" = yes; then
6596 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6597 else
6598 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6599 fi
6600
6601else
6602
6603 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6604 if test "x$LINE" != x ; then
6605 eval "DEFAULT_$LINE"
6606 else
6607 no_cache=1
6608 fi
6609
6610 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6611
6612fi;
6613
6614 eval "$ac_cv_use_postscript"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_POSTSCRIPT" = yes; then
6620 echo "$as_me:$LINENO: result: yes" >&5
6621echo "${ECHO_T}yes" >&6
6622 else
6623 echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
6625 fi
6626
6627
6628
6629
6630
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-prologio or --disable-prologio was given.
6636if test "${enable_prologio+set}" = set; then
6637 enableval="$enable_prologio"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6641 else
6642 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6655
6656fi;
6657
6658 eval "$ac_cv_use_prologio"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_PROLOGIO" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-resources or --disable-resources was given.
6677if test "${enable_resources+set}" = set; then
6678 enableval="$enable_resources"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6682 else
6683 ac_cv_use_resources='wxUSE_RESOURCES=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6696
6697fi;
6698
6699 eval "$ac_cv_use_resources"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_RESOURCES" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
6713
6714
6715 enablestring=
6716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6717echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6718 no_cache=0
6719 # Check whether --enable-clipboard or --disable-clipboard was given.
6720if test "${enable_clipboard+set}" = set; then
6721 enableval="$enable_clipboard"
6722
6723 if test "$enableval" = yes; then
6724 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6725 else
6726 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6727 fi
6728
6729else
6730
6731 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6732 if test "x$LINE" != x ; then
6733 eval "DEFAULT_$LINE"
6734 else
6735 no_cache=1
6736 fi
6737
6738 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6739
6740fi;
6741
6742 eval "$ac_cv_use_clipboard"
6743 if test "$no_cache" != 1; then
6744 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6745 fi
6746
6747 if test "$wxUSE_CLIPBOARD" = yes; then
6748 echo "$as_me:$LINENO: result: yes" >&5
6749echo "${ECHO_T}yes" >&6
6750 else
6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
6753 fi
6754
6755
6756 enablestring=
6757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6758echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6759 no_cache=0
6760 # Check whether --enable-dnd or --disable-dnd was given.
6761if test "${enable_dnd+set}" = set; then
6762 enableval="$enable_dnd"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6766 else
6767 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6768 fi
6769
6770else
6771
6772 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6780
6781fi;
6782
6783 eval "$ac_cv_use_dnd"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6786 fi
6787
6788 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6789 echo "$as_me:$LINENO: result: yes" >&5
6790echo "${ECHO_T}yes" >&6
6791 else
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
6794 fi
6795
6796
6797 enablestring=
6798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6799echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6800 no_cache=0
6801 # Check whether --enable-metafile or --disable-metafile was given.
6802if test "${enable_metafile+set}" = set; then
6803 enableval="$enable_metafile"
6804
6805 if test "$enableval" = yes; then
6806 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6807 else
6808 ac_cv_use_metafile='wxUSE_METAFILE=no'
6809 fi
6810
6811else
6812
6813 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6821
6822fi;
6823
6824 eval "$ac_cv_use_metafile"
6825 if test "$no_cache" != 1; then
6826 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6827 fi
6828
6829 if test "$wxUSE_METAFILE" = yes; then
6830 echo "$as_me:$LINENO: result: yes" >&5
6831echo "${ECHO_T}yes" >&6
6832 else
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
6835 fi
6836
6837
6838
6839
6840
6841 enablestring=
6842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6843echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6844 no_cache=0
6845 # Check whether --enable-controls or --disable-controls was given.
6846if test "${enable_controls+set}" = set; then
6847 enableval="$enable_controls"
6848
6849 if test "$enableval" = yes; then
6850 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6851 else
6852 ac_cv_use_controls='wxUSE_CONTROLS=no'
6853 fi
6854
6855else
6856
6857 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6858 if test "x$LINE" != x ; then
6859 eval "DEFAULT_$LINE"
6860 else
6861 no_cache=1
6862 fi
6863
6864 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6865
6866fi;
6867
6868 eval "$ac_cv_use_controls"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_CONTROLS" = yes; then
6874 echo "$as_me:$LINENO: result: yes" >&5
6875echo "${ECHO_T}yes" >&6
6876 else
6877 echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6
6879 fi
6880
6881
6882if test "$wxUSE_CONTROLS" = "yes"; then
6883 DEFAULT_wxUSE_ACCEL=yes
6884 DEFAULT_wxUSE_BMPBUTTON=yes
6885 DEFAULT_wxUSE_BUTTON=yes
6886 DEFAULT_wxUSE_CALCTRL=no
6887 DEFAULT_wxUSE_CARET=yes
6888 DEFAULT_wxUSE_COMBOBOX=yes
6889 DEFAULT_wxUSE_CHECKBOX=yes
6890 DEFAULT_wxUSE_CHECKLISTBOX=yes
6891 DEFAULT_wxUSE_CHOICE=yes
6892 DEFAULT_wxUSE_GAUGE=yes
6893 DEFAULT_wxUSE_GRID=yes
6894 DEFAULT_wxUSE_IMAGLIST=yes
6895 DEFAULT_wxUSE_LISTBOOK=yes
6896 DEFAULT_wxUSE_LISTBOX=yes
6897 DEFAULT_wxUSE_LISTCTRL=yes
6898 DEFAULT_wxUSE_NOTEBOOK=yes
6899 DEFAULT_wxUSE_RADIOBOX=yes
6900 DEFAULT_wxUSE_RADIOBTN=yes
6901 DEFAULT_wxUSE_SASH=yes
6902 DEFAULT_wxUSE_SCROLLBAR=yes
6903 DEFAULT_wxUSE_SLIDER=yes
6904 DEFAULT_wxUSE_SPINBTN=yes
6905 DEFAULT_wxUSE_SPINCTRL=yes
6906 DEFAULT_wxUSE_SPLITTER=yes
6907 DEFAULT_wxUSE_STATBMP=yes
6908 DEFAULT_wxUSE_STATBOX=yes
6909 DEFAULT_wxUSE_STATLINE=yes
6910 DEFAULT_wxUSE_STATUSBAR=yes
6911 DEFAULT_wxUSE_TAB_DIALOG=yes
6912 DEFAULT_wxUSE_TOGGLEBTN=yes
6913 DEFAULT_wxUSE_TOOLBAR=yes
6914 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6915 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6916 DEFAULT_wxUSE_TOOLTIPS=yes
6917 DEFAULT_wxUSE_TREECTRL=yes
6918 DEFAULT_wxUSE_POPUPWIN=yes
6919 DEFAULT_wxUSE_TIPWINDOW=yes
6920elif test "$wxUSE_CONTROLS" = "no"; then
6921 DEFAULT_wxUSE_ACCEL=no
6922 DEFAULT_wxUSE_BMPBUTTON=no
6923 DEFAULT_wxUSE_BUTTON=no
6924 DEFAULT_wxUSE_CALCTRL=no
6925 DEFAULT_wxUSE_CARET=no
6926 DEFAULT_wxUSE_COMBOBOX=no
6927 DEFAULT_wxUSE_CHECKBOX=no
6928 DEFAULT_wxUSE_CHECKLISTBOX=no
6929 DEFAULT_wxUSE_CHOICE=no
6930 DEFAULT_wxUSE_GAUGE=no
6931 DEFAULT_wxUSE_GRID=no
6932 DEFAULT_wxUSE_IMAGLIST=no
6933 DEFAULT_wxUSE_LISTBOOK=no
6934 DEFAULT_wxUSE_LISTBOX=no
6935 DEFAULT_wxUSE_LISTCTRL=no
6936 DEFAULT_wxUSE_NOTEBOOK=no
6937 DEFAULT_wxUSE_RADIOBOX=no
6938 DEFAULT_wxUSE_RADIOBTN=no
6939 DEFAULT_wxUSE_SASH=no
6940 DEFAULT_wxUSE_SCROLLBAR=no
6941 DEFAULT_wxUSE_SLIDER=no
6942 DEFAULT_wxUSE_SPINBTN=no
6943 DEFAULT_wxUSE_SPINCTRL=no
6944 DEFAULT_wxUSE_SPLITTER=no
6945 DEFAULT_wxUSE_STATBMP=no
6946 DEFAULT_wxUSE_STATBOX=no
6947 DEFAULT_wxUSE_STATLINE=no
6948 DEFAULT_wxUSE_STATUSBAR=no
6949 DEFAULT_wxUSE_TAB_DIALOG=no
6950 DEFAULT_wxUSE_TOGGLEBTN=no
6951 DEFAULT_wxUSE_TOOLBAR=no
6952 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6953 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6954 DEFAULT_wxUSE_TOOLTIPS=no
6955 DEFAULT_wxUSE_TREECTRL=no
6956 DEFAULT_wxUSE_POPUPWIN=no
6957 DEFAULT_wxUSE_TIPWINDOW=no
6958fi
6959
6960## FIXME: This is a blatant hack
6961if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6962 wxUSE_PRINTING_ARCHITECTURE=no
6963 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6964 DEFAULT_wxUSE_TOOLTIPS=no
6965 DEFAULT_wxUSE_DRAGIMAGE=no
6966fi
6967
6968
6969 enablestring=
6970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6971echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6972 no_cache=0
6973 # Check whether --enable-accel or --disable-accel was given.
6974if test "${enable_accel+set}" = set; then
6975 enableval="$enable_accel"
6976
6977 if test "$enableval" = yes; then
6978 ac_cv_use_accel='wxUSE_ACCEL=yes'
6979 else
6980 ac_cv_use_accel='wxUSE_ACCEL=no'
6981 fi
6982
6983else
6984
6985 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6993
6994fi;
6995
6996 eval "$ac_cv_use_accel"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_ACCEL" = yes; then
7002 echo "$as_me:$LINENO: result: yes" >&5
7003echo "${ECHO_T}yes" >&6
7004 else
7005 echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6
7007 fi
7008
7009
7010 enablestring=
7011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7012echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7013 no_cache=0
7014 # Check whether --enable-button or --disable-button was given.
7015if test "${enable_button+set}" = set; then
7016 enableval="$enable_button"
7017
7018 if test "$enableval" = yes; then
7019 ac_cv_use_button='wxUSE_BUTTON=yes'
7020 else
7021 ac_cv_use_button='wxUSE_BUTTON=no'
7022 fi
7023
7024else
7025
7026 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7027 if test "x$LINE" != x ; then
7028 eval "DEFAULT_$LINE"
7029 else
7030 no_cache=1
7031 fi
7032
7033 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7034
7035fi;
7036
7037 eval "$ac_cv_use_button"
7038 if test "$no_cache" != 1; then
7039 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7040 fi
7041
7042 if test "$wxUSE_BUTTON" = yes; then
7043 echo "$as_me:$LINENO: result: yes" >&5
7044echo "${ECHO_T}yes" >&6
7045 else
7046 echo "$as_me:$LINENO: result: no" >&5
7047echo "${ECHO_T}no" >&6
7048 fi
7049
7050
7051 enablestring=
7052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7053echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7054 no_cache=0
7055 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7056if test "${enable_bmpbutton+set}" = set; then
7057 enableval="$enable_bmpbutton"
7058
7059 if test "$enableval" = yes; then
7060 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7061 else
7062 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7063 fi
7064
7065else
7066
7067 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7068 if test "x$LINE" != x ; then
7069 eval "DEFAULT_$LINE"
7070 else
7071 no_cache=1
7072 fi
7073
7074 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7075
7076fi;
7077
7078 eval "$ac_cv_use_bmpbutton"
7079 if test "$no_cache" != 1; then
7080 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7081 fi
7082
7083 if test "$wxUSE_BMPBUTTON" = yes; then
7084 echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6
7086 else
7087 echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089 fi
7090
7091
7092 enablestring=
7093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7094echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7095 no_cache=0
7096 # Check whether --enable-calendar or --disable-calendar was given.
7097if test "${enable_calendar+set}" = set; then
7098 enableval="$enable_calendar"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7102 else
7103 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7116
7117fi;
7118
7119 eval "$ac_cv_use_calendar"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_CALCTRL" = yes; then
7125 echo "$as_me:$LINENO: result: yes" >&5
7126echo "${ECHO_T}yes" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130 fi
7131
7132
7133 enablestring=
7134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7135echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7136 no_cache=0
7137 # Check whether --enable-caret or --disable-caret was given.
7138if test "${enable_caret+set}" = set; then
7139 enableval="$enable_caret"
7140
7141 if test "$enableval" = yes; then
7142 ac_cv_use_caret='wxUSE_CARET=yes'
7143 else
7144 ac_cv_use_caret='wxUSE_CARET=no'
7145 fi
7146
7147else
7148
7149 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7157
7158fi;
7159
7160 eval "$ac_cv_use_caret"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_CARET" = yes; then
7166 echo "$as_me:$LINENO: result: yes" >&5
7167echo "${ECHO_T}yes" >&6
7168 else
7169 echo "$as_me:$LINENO: result: no" >&5
7170echo "${ECHO_T}no" >&6
7171 fi
7172
7173
7174 enablestring=
7175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7176echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7177 no_cache=0
7178 # Check whether --enable-checkbox or --disable-checkbox was given.
7179if test "${enable_checkbox+set}" = set; then
7180 enableval="$enable_checkbox"
7181
7182 if test "$enableval" = yes; then
7183 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7184 else
7185 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7186 fi
7187
7188else
7189
7190 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7191 if test "x$LINE" != x ; then
7192 eval "DEFAULT_$LINE"
7193 else
7194 no_cache=1
7195 fi
7196
7197 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7198
7199fi;
7200
7201 eval "$ac_cv_use_checkbox"
7202 if test "$no_cache" != 1; then
7203 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7204 fi
7205
7206 if test "$wxUSE_CHECKBOX" = yes; then
7207 echo "$as_me:$LINENO: result: yes" >&5
7208echo "${ECHO_T}yes" >&6
7209 else
7210 echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
7212 fi
7213
7214
7215 enablestring=
7216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7217echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7218 no_cache=0
7219 # Check whether --enable-checklst or --disable-checklst was given.
7220if test "${enable_checklst+set}" = set; then
7221 enableval="$enable_checklst"
7222
7223 if test "$enableval" = yes; then
7224 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7225 else
7226 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7227 fi
7228
7229else
7230
7231 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7232 if test "x$LINE" != x ; then
7233 eval "DEFAULT_$LINE"
7234 else
7235 no_cache=1
7236 fi
7237
7238 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7239
7240fi;
7241
7242 eval "$ac_cv_use_checklst"
7243 if test "$no_cache" != 1; then
7244 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7245 fi
7246
7247 if test "$wxUSE_CHECKLST" = yes; then
7248 echo "$as_me:$LINENO: result: yes" >&5
7249echo "${ECHO_T}yes" >&6
7250 else
7251 echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6
7253 fi
7254
7255
7256 enablestring=
7257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7258echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7259 no_cache=0
7260 # Check whether --enable-choice or --disable-choice was given.
7261if test "${enable_choice+set}" = set; then
7262 enableval="$enable_choice"
7263
7264 if test "$enableval" = yes; then
7265 ac_cv_use_choice='wxUSE_CHOICE=yes'
7266 else
7267 ac_cv_use_choice='wxUSE_CHOICE=no'
7268 fi
7269
7270else
7271
7272 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7273 if test "x$LINE" != x ; then
7274 eval "DEFAULT_$LINE"
7275 else
7276 no_cache=1
7277 fi
7278
7279 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7280
7281fi;
7282
7283 eval "$ac_cv_use_choice"
7284 if test "$no_cache" != 1; then
7285 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7286 fi
7287
7288 if test "$wxUSE_CHOICE" = yes; then
7289 echo "$as_me:$LINENO: result: yes" >&5
7290echo "${ECHO_T}yes" >&6
7291 else
7292 echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6
7294 fi
7295
7296
7297 enablestring=
7298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7299echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7300 no_cache=0
7301 # Check whether --enable-combobox or --disable-combobox was given.
7302if test "${enable_combobox+set}" = set; then
7303 enableval="$enable_combobox"
7304
7305 if test "$enableval" = yes; then
7306 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7307 else
7308 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7309 fi
7310
7311else
7312
7313 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7314 if test "x$LINE" != x ; then
7315 eval "DEFAULT_$LINE"
7316 else
7317 no_cache=1
7318 fi
7319
7320 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7321
7322fi;
7323
7324 eval "$ac_cv_use_combobox"
7325 if test "$no_cache" != 1; then
7326 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7327 fi
7328
7329 if test "$wxUSE_COMBOBOX" = yes; then
7330 echo "$as_me:$LINENO: result: yes" >&5
7331echo "${ECHO_T}yes" >&6
7332 else
7333 echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6
7335 fi
7336
7337
7338 enablestring=
7339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7340echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7341 no_cache=0
7342 # Check whether --enable-display or --disable-display was given.
7343if test "${enable_display+set}" = set; then
7344 enableval="$enable_display"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_display='wxUSE_DISPLAY=yes'
7348 else
7349 ac_cv_use_display='wxUSE_DISPLAY=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7362
7363fi;
7364
7365 eval "$ac_cv_use_display"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_DISPLAY" = yes; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373 else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376 fi
7377
7378
7379 enablestring=
7380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7381echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7382 no_cache=0
7383 # Check whether --enable-gauge or --disable-gauge was given.
7384if test "${enable_gauge+set}" = set; then
7385 enableval="$enable_gauge"
7386
7387 if test "$enableval" = yes; then
7388 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7389 else
7390 ac_cv_use_gauge='wxUSE_GAUGE=no'
7391 fi
7392
7393else
7394
7395 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7403
7404fi;
7405
7406 eval "$ac_cv_use_gauge"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_GAUGE" = yes; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417 fi
7418
7419
7420 enablestring=
7421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7422echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7423 no_cache=0
7424 # Check whether --enable-grid or --disable-grid was given.
7425if test "${enable_grid+set}" = set; then
7426 enableval="$enable_grid"
7427
7428 if test "$enableval" = yes; then
7429 ac_cv_use_grid='wxUSE_GRID=yes'
7430 else
7431 ac_cv_use_grid='wxUSE_GRID=no'
7432 fi
7433
7434else
7435
7436 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7437 if test "x$LINE" != x ; then
7438 eval "DEFAULT_$LINE"
7439 else
7440 no_cache=1
7441 fi
7442
7443 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7444
7445fi;
7446
7447 eval "$ac_cv_use_grid"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_GRID" = yes; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454echo "${ECHO_T}yes" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458 fi
7459
7460
7461 enablestring=
7462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7463echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7464 no_cache=0
7465 # Check whether --enable-imaglist or --disable-imaglist was given.
7466if test "${enable_imaglist+set}" = set; then
7467 enableval="$enable_imaglist"
7468
7469 if test "$enableval" = yes; then
7470 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7471 else
7472 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7473 fi
7474
7475else
7476
7477 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7478 if test "x$LINE" != x ; then
7479 eval "DEFAULT_$LINE"
7480 else
7481 no_cache=1
7482 fi
7483
7484 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7485
7486fi;
7487
7488 eval "$ac_cv_use_imaglist"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_IMAGLIST" = yes; then
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499 fi
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-listbook or --disable-listbook was given.
7507if test "${enable_listbook+set}" = set; then
7508 enableval="$enable_listbook"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7512 else
7513 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7526
7527fi;
7528
7529 eval "$ac_cv_use_listbook"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_LISTBOOK" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-listbox or --disable-listbox was given.
7548if test "${enable_listbox+set}" = set; then
7549 enableval="$enable_listbox"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7553 else
7554 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7567
7568fi;
7569
7570 eval "$ac_cv_use_listbox"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_LISTBOX" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584 enablestring=
7585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7586echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7587 no_cache=0
7588 # Check whether --enable-listctrl or --disable-listctrl was given.
7589if test "${enable_listctrl+set}" = set; then
7590 enableval="$enable_listctrl"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7594 else
7595 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7596 fi
7597
7598else
7599
7600 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7608
7609fi;
7610
7611 eval "$ac_cv_use_listctrl"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_LISTCTRL" = yes; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618echo "${ECHO_T}yes" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 enablestring=
7626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7627echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7628 no_cache=0
7629 # Check whether --enable-notebook or --disable-notebook was given.
7630if test "${enable_notebook+set}" = set; then
7631 enableval="$enable_notebook"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7635 else
7636 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7649
7650fi;
7651
7652 eval "$ac_cv_use_notebook"
7653 if test "$no_cache" != 1; then
7654 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7655 fi
7656
7657 if test "$wxUSE_NOTEBOOK" = yes; then
7658 echo "$as_me:$LINENO: result: yes" >&5
7659echo "${ECHO_T}yes" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663 fi
7664
7665
7666 enablestring=
7667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7668echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7669 no_cache=0
7670 # Check whether --enable-radiobox or --disable-radiobox was given.
7671if test "${enable_radiobox+set}" = set; then
7672 enableval="$enable_radiobox"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7676 else
7677 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7690
7691fi;
7692
7693 eval "$ac_cv_use_radiobox"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_RADIOBOX" = yes; then
7699 echo "$as_me:$LINENO: result: yes" >&5
7700echo "${ECHO_T}yes" >&6
7701 else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704 fi
7705
7706
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7712if test "${enable_radiobtn+set}" = set; then
7713 enableval="$enable_radiobtn"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7717 else
7718 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7731
7732fi;
7733
7734 eval "$ac_cv_use_radiobtn"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_RADIOBTN" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-sash or --disable-sash was given.
7753if test "${enable_sash+set}" = set; then
7754 enableval="$enable_sash"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_sash='wxUSE_SASH=yes'
7758 else
7759 ac_cv_use_sash='wxUSE_SASH=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7772
7773fi;
7774
7775 eval "$ac_cv_use_sash"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_SASH" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
7789 enablestring=
7790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7791echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7792 no_cache=0
7793 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7794if test "${enable_scrollbar+set}" = set; then
7795 enableval="$enable_scrollbar"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7799 else
7800 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7813
7814fi;
7815
7816 eval "$ac_cv_use_scrollbar"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_SCROLLBAR" = yes; then
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827 fi
7828
7829
7830 enablestring=
7831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7832echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7833 no_cache=0
7834 # Check whether --enable-slider or --disable-slider was given.
7835if test "${enable_slider+set}" = set; then
7836 enableval="$enable_slider"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_slider='wxUSE_SLIDER=yes'
7840 else
7841 ac_cv_use_slider='wxUSE_SLIDER=no'
7842 fi
7843
7844else
7845
7846 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7854
7855fi;
7856
7857 eval "$ac_cv_use_slider"
7858 if test "$no_cache" != 1; then
7859 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7860 fi
7861
7862 if test "$wxUSE_SLIDER" = yes; then
7863 echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868 fi
7869
7870
7871 enablestring=
7872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7873echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7874 no_cache=0
7875 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7876if test "${enable_spinbtn+set}" = set; then
7877 enableval="$enable_spinbtn"
7878
7879 if test "$enableval" = yes; then
7880 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7881 else
7882 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7883 fi
7884
7885else
7886
7887 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7888 if test "x$LINE" != x ; then
7889 eval "DEFAULT_$LINE"
7890 else
7891 no_cache=1
7892 fi
7893
7894 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7895
7896fi;
7897
7898 eval "$ac_cv_use_spinbtn"
7899 if test "$no_cache" != 1; then
7900 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7901 fi
7902
7903 if test "$wxUSE_SPINBTN" = yes; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905echo "${ECHO_T}yes" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909 fi
7910
7911
7912 enablestring=
7913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7914echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7915 no_cache=0
7916 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7917if test "${enable_spinctrl+set}" = set; then
7918 enableval="$enable_spinctrl"
7919
7920 if test "$enableval" = yes; then
7921 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7922 else
7923 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7924 fi
7925
7926else
7927
7928 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7929 if test "x$LINE" != x ; then
7930 eval "DEFAULT_$LINE"
7931 else
7932 no_cache=1
7933 fi
7934
7935 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7936
7937fi;
7938
7939 eval "$ac_cv_use_spinctrl"
7940 if test "$no_cache" != 1; then
7941 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7942 fi
7943
7944 if test "$wxUSE_SPINCTRL" = yes; then
7945 echo "$as_me:$LINENO: result: yes" >&5
7946echo "${ECHO_T}yes" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950 fi
7951
7952
7953 enablestring=
7954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7955echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7956 no_cache=0
7957 # Check whether --enable-splitter or --disable-splitter was given.
7958if test "${enable_splitter+set}" = set; then
7959 enableval="$enable_splitter"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7963 else
7964 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7977
7978fi;
7979
7980 eval "$ac_cv_use_splitter"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_SPLITTER" = yes; then
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991 fi
7992
7993
7994 enablestring=
7995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7996echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7997 no_cache=0
7998 # Check whether --enable-statbmp or --disable-statbmp was given.
7999if test "${enable_statbmp+set}" = set; then
8000 enableval="$enable_statbmp"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8004 else
8005 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8006 fi
8007
8008else
8009
8010 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8018
8019fi;
8020
8021 eval "$ac_cv_use_statbmp"
8022 if test "$no_cache" != 1; then
8023 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8024 fi
8025
8026 if test "$wxUSE_STATBMP" = yes; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032 fi
8033
8034
8035 enablestring=
8036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8037echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8038 no_cache=0
8039 # Check whether --enable-statbox or --disable-statbox was given.
8040if test "${enable_statbox+set}" = set; then
8041 enableval="$enable_statbox"
8042
8043 if test "$enableval" = yes; then
8044 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8045 else
8046 ac_cv_use_statbox='wxUSE_STATBOX=no'
8047 fi
8048
8049else
8050
8051 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8059
8060fi;
8061
8062 eval "$ac_cv_use_statbox"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_STATBOX" = yes; then
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073 fi
8074
8075
8076 enablestring=
8077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8078echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8079 no_cache=0
8080 # Check whether --enable-statline or --disable-statline was given.
8081if test "${enable_statline+set}" = set; then
8082 enableval="$enable_statline"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_statline='wxUSE_STATLINE=yes'
8086 else
8087 ac_cv_use_statline='wxUSE_STATLINE=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8100
8101fi;
8102
8103 eval "$ac_cv_use_statline"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_STATLINE" = yes; then
8109 echo "$as_me:$LINENO: result: yes" >&5
8110echo "${ECHO_T}yes" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114 fi
8115
8116
8117 enablestring=
8118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8119echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8120 no_cache=0
8121 # Check whether --enable-stattext or --disable-stattext was given.
8122if test "${enable_stattext+set}" = set; then
8123 enableval="$enable_stattext"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8127 else
8128 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8141
8142fi;
8143
8144 eval "$ac_cv_use_stattext"
8145 if test "$no_cache" != 1; then
8146 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8147 fi
8148
8149 if test "$wxUSE_STATTEXT" = yes; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155 fi
8156
8157
8158 enablestring=
8159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8160echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8161 no_cache=0
8162 # Check whether --enable-statusbar or --disable-statusbar was given.
8163if test "${enable_statusbar+set}" = set; then
8164 enableval="$enable_statusbar"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8168 else
8169 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8182
8183fi;
8184
8185 eval "$ac_cv_use_statusbar"
8186 if test "$no_cache" != 1; then
8187 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8188 fi
8189
8190 if test "$wxUSE_STATUSBAR" = yes; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196 fi
8197
8198
8199 enablestring=
8200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8201echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8202 no_cache=0
8203 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8204if test "${enable_tabdialog+set}" = set; then
8205 enableval="$enable_tabdialog"
8206
8207 if test "$enableval" = yes; then
8208 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8209 else
8210 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8211 fi
8212
8213else
8214
8215 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8216 if test "x$LINE" != x ; then
8217 eval "DEFAULT_$LINE"
8218 else
8219 no_cache=1
8220 fi
8221
8222 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8223
8224fi;
8225
8226 eval "$ac_cv_use_tabdialog"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_TABDIALOG" = yes; then
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
8234 else
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237 fi
8238
8239
8240 enablestring=
8241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8242echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8243 no_cache=0
8244 # Check whether --enable-textctrl or --disable-textctrl was given.
8245if test "${enable_textctrl+set}" = set; then
8246 enableval="$enable_textctrl"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8250 else
8251 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8252 fi
8253
8254else
8255
8256 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8264
8265fi;
8266
8267 eval "$ac_cv_use_textctrl"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_TEXTCTRL" = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278 fi
8279
8280
8281 enablestring=
8282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8283echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8284 no_cache=0
8285 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8286if test "${enable_togglebtn+set}" = set; then
8287 enableval="$enable_togglebtn"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8291 else
8292 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8293 fi
8294
8295else
8296
8297 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8305
8306fi;
8307
8308 eval "$ac_cv_use_togglebtn"
8309 if test "$no_cache" != 1; then
8310 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8311 fi
8312
8313 if test "$wxUSE_TOGGLEBTN" = yes; then
8314 echo "$as_me:$LINENO: result: yes" >&5
8315echo "${ECHO_T}yes" >&6
8316 else
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319 fi
8320
8321
8322 enablestring=
8323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8324echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8325 no_cache=0
8326 # Check whether --enable-toolbar or --disable-toolbar was given.
8327if test "${enable_toolbar+set}" = set; then
8328 enableval="$enable_toolbar"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8332 else
8333 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8346
8347fi;
8348
8349 eval "$ac_cv_use_toolbar"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_TOOLBAR" = yes; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 else
8358 echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6
8360 fi
8361
8362
8363 enablestring=
8364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8365echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8366 no_cache=0
8367 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8368if test "${enable_tbarnative+set}" = set; then
8369 enableval="$enable_tbarnative"
8370
8371 if test "$enableval" = yes; then
8372 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8373 else
8374 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8375 fi
8376
8377else
8378
8379 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8380 if test "x$LINE" != x ; then
8381 eval "DEFAULT_$LINE"
8382 else
8383 no_cache=1
8384 fi
8385
8386 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8387
8388fi;
8389
8390 eval "$ac_cv_use_tbarnative"
8391 if test "$no_cache" != 1; then
8392 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8393 fi
8394
8395 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
8398 else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401 fi
8402
8403
8404 enablestring=
8405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8406echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8407 no_cache=0
8408 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8409if test "${enable_tbarsmpl+set}" = set; then
8410 enableval="$enable_tbarsmpl"
8411
8412 if test "$enableval" = yes; then
8413 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8414 else
8415 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8416 fi
8417
8418else
8419
8420 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8421 if test "x$LINE" != x ; then
8422 eval "DEFAULT_$LINE"
8423 else
8424 no_cache=1
8425 fi
8426
8427 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8428
8429fi;
8430
8431 eval "$ac_cv_use_tbarsmpl"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8437 echo "$as_me:$LINENO: result: yes" >&5
8438echo "${ECHO_T}yes" >&6
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442 fi
8443
8444
8445 enablestring=
8446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8447echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8448 no_cache=0
8449 # Check whether --enable-treectrl or --disable-treectrl was given.
8450if test "${enable_treectrl+set}" = set; then
8451 enableval="$enable_treectrl"
8452
8453 if test "$enableval" = yes; then
8454 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8455 else
8456 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8457 fi
8458
8459else
8460
8461 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8462 if test "x$LINE" != x ; then
8463 eval "DEFAULT_$LINE"
8464 else
8465 no_cache=1
8466 fi
8467
8468 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8469
8470fi;
8471
8472 eval "$ac_cv_use_treectrl"
8473 if test "$no_cache" != 1; then
8474 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8475 fi
8476
8477 if test "$wxUSE_TREECTRL" = yes; then
8478 echo "$as_me:$LINENO: result: yes" >&5
8479echo "${ECHO_T}yes" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484
8485
8486 enablestring=
8487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8489 no_cache=0
8490 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8491if test "${enable_tipwindow+set}" = set; then
8492 enableval="$enable_tipwindow"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8496 else
8497 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8498 fi
8499
8500else
8501
8502 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8510
8511fi;
8512
8513 eval "$ac_cv_use_tipwindow"
8514 if test "$no_cache" != 1; then
8515 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8516 fi
8517
8518 if test "$wxUSE_TIPWINDOW" = yes; then
8519 echo "$as_me:$LINENO: result: yes" >&5
8520echo "${ECHO_T}yes" >&6
8521 else
8522 echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 enablestring=
8528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8529echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8530 no_cache=0
8531 # Check whether --enable-popupwin or --disable-popupwin was given.
8532if test "${enable_popupwin+set}" = set; then
8533 enableval="$enable_popupwin"
8534
8535 if test "$enableval" = yes; then
8536 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8537 else
8538 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8539 fi
8540
8541else
8542
8543 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8544 if test "x$LINE" != x ; then
8545 eval "DEFAULT_$LINE"
8546 else
8547 no_cache=1
8548 fi
8549
8550 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8551
8552fi;
8553
8554 eval "$ac_cv_use_popupwin"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_POPUPWIN" = yes; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561echo "${ECHO_T}yes" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565 fi
8566
8567
8568
8569
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-commondlg or --disable-commondlg was given.
8575if test "${enable_commondlg+set}" = set; then
8576 enableval="$enable_commondlg"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8580 else
8581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8594
8595fi;
8596
8597 eval "$ac_cv_use_commondlg"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_COMMONDLGS" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8616if test "${enable_choicedlg+set}" = set; then
8617 enableval="$enable_choicedlg"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8621 else
8622 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8635
8636fi;
8637
8638 eval "$ac_cv_use_choicedlg"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_CHOICEDLG" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
8652 enablestring=
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8655 no_cache=0
8656 # Check whether --enable-coldlg or --disable-coldlg was given.
8657if test "${enable_coldlg+set}" = set; then
8658 enableval="$enable_coldlg"
8659
8660 if test "$enableval" = yes; then
8661 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8662 else
8663 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8664 fi
8665
8666else
8667
8668 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
8675 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8676
8677fi;
8678
8679 eval "$ac_cv_use_coldlg"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_COLOURDLG" = yes; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690 fi
8691
8692
8693 enablestring=
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8696 no_cache=0
8697 # Check whether --enable-filedlg or --disable-filedlg was given.
8698if test "${enable_filedlg+set}" = set; then
8699 enableval="$enable_filedlg"
8700
8701 if test "$enableval" = yes; then
8702 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8703 else
8704 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8717
8718fi;
8719
8720 eval "$ac_cv_use_filedlg"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_FILEDLG" = yes; then
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728 else
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731 fi
8732
8733
8734 enablestring=
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8737 no_cache=0
8738 # Check whether --enable-finddlg or --disable-finddlg was given.
8739if test "${enable_finddlg+set}" = set; then
8740 enableval="$enable_finddlg"
8741
8742 if test "$enableval" = yes; then
8743 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8744 else
8745 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8758
8759fi;
8760
8761 eval "$ac_cv_use_finddlg"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_FINDREPLDLG" = yes; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 fi
8773
8774
8775 enablestring=
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8778 no_cache=0
8779 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8780if test "${enable_fontdlg+set}" = set; then
8781 enableval="$enable_fontdlg"
8782
8783 if test "$enableval" = yes; then
8784 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8785 else
8786 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8787 fi
8788
8789else
8790
8791 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
8798 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8799
8800fi;
8801
8802 eval "$ac_cv_use_fontdlg"
8803 if test "$no_cache" != 1; then
8804 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8805 fi
8806
8807 if test "$wxUSE_FONTDLG" = yes; then
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813 fi
8814
8815
8816 enablestring=
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8819 no_cache=0
8820 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8821if test "${enable_dirdlg+set}" = set; then
8822 enableval="$enable_dirdlg"
8823
8824 if test "$enableval" = yes; then
8825 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8826 else
8827 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8840
8841fi;
8842
8843 eval "$ac_cv_use_dirdlg"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_DIRDLG" = yes; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
8854 fi
8855
8856
8857 enablestring=
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8860 no_cache=0
8861 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8862if test "${enable_msgdlg+set}" = set; then
8863 enableval="$enable_msgdlg"
8864
8865 if test "$enableval" = yes; then
8866 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8867 else
8868 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8869 fi
8870
8871else
8872
8873 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
8880 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8881
8882fi;
8883
8884 eval "$ac_cv_use_msgdlg"
8885 if test "$no_cache" != 1; then
8886 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8887 fi
8888
8889 if test "$wxUSE_MSGDLG" = yes; then
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
8892 else
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895 fi
8896
8897
8898 enablestring=
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8901 no_cache=0
8902 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8903if test "${enable_numberdlg+set}" = set; then
8904 enableval="$enable_numberdlg"
8905
8906 if test "$enableval" = yes; then
8907 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8908 else
8909 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8922
8923fi;
8924
8925 eval "$ac_cv_use_numberdlg"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_NUMBERDLG" = yes; then
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
8933 else
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 enablestring=
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8942 no_cache=0
8943 # Check whether --enable-splash or --disable-splash was given.
8944if test "${enable_splash+set}" = set; then
8945 enableval="$enable_splash"
8946
8947 if test "$enableval" = yes; then
8948 ac_cv_use_splash='wxUSE_SPLASH=yes'
8949 else
8950 ac_cv_use_splash='wxUSE_SPLASH=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8963
8964fi;
8965
8966 eval "$ac_cv_use_splash"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_SPLASH" = yes; then
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
8974 else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977 fi
8978
8979
8980 enablestring=
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8983 no_cache=0
8984 # Check whether --enable-textdlg or --disable-textdlg was given.
8985if test "${enable_textdlg+set}" = set; then
8986 enableval="$enable_textdlg"
8987
8988 if test "$enableval" = yes; then
8989 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8990 else
8991 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9004
9005fi;
9006
9007 eval "$ac_cv_use_textdlg"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_TEXTDLG" = yes; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
9015 else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018 fi
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9026if test "${enable_tipdlg+set}" = set; then
9027 enableval="$enable_tipdlg"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9031 else
9032 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9045
9046fi;
9047
9048 eval "$ac_cv_use_tipdlg"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_STARTUP_TIPS" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9067if test "${enable_progressdlg+set}" = set; then
9068 enableval="$enable_progressdlg"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9072 else
9073 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9086
9087fi;
9088
9089 eval "$ac_cv_use_progressdlg"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_PROGRESSDLG" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9108if test "${enable_wizarddlg+set}" = set; then
9109 enableval="$enable_wizarddlg"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9113 else
9114 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9127
9128fi;
9129
9130 eval "$ac_cv_use_wizarddlg"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_WIZARDDLG" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-menus or --disable-menus was given.
9151if test "${enable_menus+set}" = set; then
9152 enableval="$enable_menus"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_menus='wxUSE_MENUS=yes'
9156 else
9157 ac_cv_use_menus='wxUSE_MENUS=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9170
9171fi;
9172
9173 eval "$ac_cv_use_menus"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_MENUS" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-miniframe or --disable-miniframe was given.
9192if test "${enable_miniframe+set}" = set; then
9193 enableval="$enable_miniframe"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9197 else
9198 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9211
9212fi;
9213
9214 eval "$ac_cv_use_miniframe"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_MINIFRAME" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-tooltips or --disable-tooltips was given.
9233if test "${enable_tooltips+set}" = set; then
9234 enableval="$enable_tooltips"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9238 else
9239 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9252
9253fi;
9254
9255 eval "$ac_cv_use_tooltips"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_TOOLTIPS" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-splines or --disable-splines was given.
9274if test "${enable_splines+set}" = set; then
9275 enableval="$enable_splines"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_splines='wxUSE_SPLINES=yes'
9279 else
9280 ac_cv_use_splines='wxUSE_SPLINES=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9293
9294fi;
9295
9296 eval "$ac_cv_use_splines"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_SPLINES" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-validators or --disable-validators was given.
9315if test "${enable_validators+set}" = set; then
9316 enableval="$enable_validators"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9320 else
9321 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9334
9335fi;
9336
9337 eval "$ac_cv_use_validators"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_VALIDATORS" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9356if test "${enable_busyinfo+set}" = set; then
9357 enableval="$enable_busyinfo"
9358
9359 if test "$enableval" = yes; then
9360 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9361 else
9362 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9363 fi
9364
9365else
9366
9367 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
9374 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9375
9376fi;
9377
9378 eval "$ac_cv_use_busyinfo"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9381 fi
9382
9383 if test "$wxUSE_BUSYINFO" = yes; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-joystick or --disable-joystick was given.
9397if test "${enable_joystick+set}" = set; then
9398 enableval="$enable_joystick"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9402 else
9403 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9416
9417fi;
9418
9419 eval "$ac_cv_use_joystick"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_JOYSTICK" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-metafile or --disable-metafile was given.
9438if test "${enable_metafile+set}" = set; then
9439 enableval="$enable_metafile"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9443 else
9444 ac_cv_use_metafile='wxUSE_METAFILE=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9457
9458fi;
9459
9460 eval "$ac_cv_use_metafile"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_METAFILE" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-dragimage or --disable-dragimage was given.
9479if test "${enable_dragimage+set}" = set; then
9480 enableval="$enable_dragimage"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9484 else
9485 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9498
9499fi;
9500
9501 eval "$ac_cv_use_dragimage"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_DRAGIMAGE" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-accessibility or --disable-accessibility was given.
9520if test "${enable_accessibility+set}" = set; then
9521 enableval="$enable_accessibility"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9525 else
9526 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9539
9540fi;
9541
9542 eval "$ac_cv_use_accessibility"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_ACCESSIBILITY" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556
9557
9558 enablestring=
9559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9560echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9561 no_cache=0
9562 # Check whether --enable-palette or --disable-palette was given.
9563if test "${enable_palette+set}" = set; then
9564 enableval="$enable_palette"
9565
9566 if test "$enableval" = yes; then
9567 ac_cv_use_palette='wxUSE_PALETTE=yes'
9568 else
9569 ac_cv_use_palette='wxUSE_PALETTE=no'
9570 fi
9571
9572else
9573
9574 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9575 if test "x$LINE" != x ; then
9576 eval "DEFAULT_$LINE"
9577 else
9578 no_cache=1
9579 fi
9580
9581 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9582
9583fi;
9584
9585 eval "$ac_cv_use_palette"
9586 if test "$no_cache" != 1; then
9587 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9588 fi
9589
9590 if test "$wxUSE_PALETTE" = yes; then
9591 echo "$as_me:$LINENO: result: yes" >&5
9592echo "${ECHO_T}yes" >&6
9593 else
9594 echo "$as_me:$LINENO: result: no" >&5
9595echo "${ECHO_T}no" >&6
9596 fi
9597
9598
9599 enablestring=
9600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9601echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9602 no_cache=0
9603 # Check whether --enable-image or --disable-image was given.
9604if test "${enable_image+set}" = set; then
9605 enableval="$enable_image"
9606
9607 if test "$enableval" = yes; then
9608 ac_cv_use_image='wxUSE_IMAGE=yes'
9609 else
9610 ac_cv_use_image='wxUSE_IMAGE=no'
9611 fi
9612
9613else
9614
9615 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9616 if test "x$LINE" != x ; then
9617 eval "DEFAULT_$LINE"
9618 else
9619 no_cache=1
9620 fi
9621
9622 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9623
9624fi;
9625
9626 eval "$ac_cv_use_image"
9627 if test "$no_cache" != 1; then
9628 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9629 fi
9630
9631 if test "$wxUSE_IMAGE" = yes; then
9632 echo "$as_me:$LINENO: result: yes" >&5
9633echo "${ECHO_T}yes" >&6
9634 else
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
9637 fi
9638
9639
9640 enablestring=
9641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9642echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9643 no_cache=0
9644 # Check whether --enable-gif or --disable-gif was given.
9645if test "${enable_gif+set}" = set; then
9646 enableval="$enable_gif"
9647
9648 if test "$enableval" = yes; then
9649 ac_cv_use_gif='wxUSE_GIF=yes'
9650 else
9651 ac_cv_use_gif='wxUSE_GIF=no'
9652 fi
9653
9654else
9655
9656 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9657 if test "x$LINE" != x ; then
9658 eval "DEFAULT_$LINE"
9659 else
9660 no_cache=1
9661 fi
9662
9663 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9664
9665fi;
9666
9667 eval "$ac_cv_use_gif"
9668 if test "$no_cache" != 1; then
9669 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9670 fi
9671
9672 if test "$wxUSE_GIF" = yes; then
9673 echo "$as_me:$LINENO: result: yes" >&5
9674echo "${ECHO_T}yes" >&6
9675 else
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678 fi
9679
9680
9681 enablestring=
9682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9683echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9684 no_cache=0
9685 # Check whether --enable-pcx or --disable-pcx was given.
9686if test "${enable_pcx+set}" = set; then
9687 enableval="$enable_pcx"
9688
9689 if test "$enableval" = yes; then
9690 ac_cv_use_pcx='wxUSE_PCX=yes'
9691 else
9692 ac_cv_use_pcx='wxUSE_PCX=no'
9693 fi
9694
9695else
9696
9697 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9698 if test "x$LINE" != x ; then
9699 eval "DEFAULT_$LINE"
9700 else
9701 no_cache=1
9702 fi
9703
9704 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9705
9706fi;
9707
9708 eval "$ac_cv_use_pcx"
9709 if test "$no_cache" != 1; then
9710 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9711 fi
9712
9713 if test "$wxUSE_PCX" = yes; then
9714 echo "$as_me:$LINENO: result: yes" >&5
9715echo "${ECHO_T}yes" >&6
9716 else
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719 fi
9720
9721
9722 enablestring=
9723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9724echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9725 no_cache=0
9726 # Check whether --enable-iff or --disable-iff was given.
9727if test "${enable_iff+set}" = set; then
9728 enableval="$enable_iff"
9729
9730 if test "$enableval" = yes; then
9731 ac_cv_use_iff='wxUSE_IFF=yes'
9732 else
9733 ac_cv_use_iff='wxUSE_IFF=no'
9734 fi
9735
9736else
9737
9738 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9739 if test "x$LINE" != x ; then
9740 eval "DEFAULT_$LINE"
9741 else
9742 no_cache=1
9743 fi
9744
9745 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9746
9747fi;
9748
9749 eval "$ac_cv_use_iff"
9750 if test "$no_cache" != 1; then
9751 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9752 fi
9753
9754 if test "$wxUSE_IFF" = yes; then
9755 echo "$as_me:$LINENO: result: yes" >&5
9756echo "${ECHO_T}yes" >&6
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760 fi
9761
9762
9763 enablestring=
9764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9765echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9766 no_cache=0
9767 # Check whether --enable-pnm or --disable-pnm was given.
9768if test "${enable_pnm+set}" = set; then
9769 enableval="$enable_pnm"
9770
9771 if test "$enableval" = yes; then
9772 ac_cv_use_pnm='wxUSE_PNM=yes'
9773 else
9774 ac_cv_use_pnm='wxUSE_PNM=no'
9775 fi
9776
9777else
9778
9779 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9780 if test "x$LINE" != x ; then
9781 eval "DEFAULT_$LINE"
9782 else
9783 no_cache=1
9784 fi
9785
9786 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9787
9788fi;
9789
9790 eval "$ac_cv_use_pnm"
9791 if test "$no_cache" != 1; then
9792 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9793 fi
9794
9795 if test "$wxUSE_PNM" = yes; then
9796 echo "$as_me:$LINENO: result: yes" >&5
9797echo "${ECHO_T}yes" >&6
9798 else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801 fi
9802
9803
9804 enablestring=
9805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9806echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9807 no_cache=0
9808 # Check whether --enable-xpm or --disable-xpm was given.
9809if test "${enable_xpm+set}" = set; then
9810 enableval="$enable_xpm"
9811
9812 if test "$enableval" = yes; then
9813 ac_cv_use_xpm='wxUSE_XPM=yes'
9814 else
9815 ac_cv_use_xpm='wxUSE_XPM=no'
9816 fi
9817
9818else
9819
9820 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9821 if test "x$LINE" != x ; then
9822 eval "DEFAULT_$LINE"
9823 else
9824 no_cache=1
9825 fi
9826
9827 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9828
9829fi;
9830
9831 eval "$ac_cv_use_xpm"
9832 if test "$no_cache" != 1; then
9833 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9834 fi
9835
9836 if test "$wxUSE_XPM" = yes; then
9837 echo "$as_me:$LINENO: result: yes" >&5
9838echo "${ECHO_T}yes" >&6
9839 else
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
9842 fi
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9850if test "${enable_ico_cur+set}" = set; then
9851 enableval="$enable_ico_cur"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9855 else
9856 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9869
9870fi;
9871
9872 eval "$ac_cv_use_ico_cur"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_ICO_CUR" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885
9886fi
9887
9888
9889
9890 enablestring=
9891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9892echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9893 no_cache=0
9894 # Check whether --enable-official_build or --disable-official_build was given.
9895if test "${enable_official_build+set}" = set; then
9896 enableval="$enable_official_build"
9897
9898 if test "$enableval" = yes; then
9899 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9900 else
9901 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9902 fi
9903
9904else
9905
9906 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9907 if test "x$LINE" != x ; then
9908 eval "DEFAULT_$LINE"
9909 else
9910 no_cache=1
9911 fi
9912
9913 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9914
9915fi;
9916
9917 eval "$ac_cv_use_official_build"
9918 if test "$no_cache" != 1; then
9919 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9920 fi
9921
9922 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9923 echo "$as_me:$LINENO: result: yes" >&5
9924echo "${ECHO_T}yes" >&6
9925 else
9926 echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928 fi
9929
9930# Check whether --enable-vendor or --disable-vendor was given.
9931if test "${enable_vendor+set}" = set; then
9932 enableval="$enable_vendor"
9933 VENDOR="$enableval"
9934fi;
9935if test "x$VENDOR" = "x"; then
9936 VENDOR="custom"
9937fi
9938
9939case "${host}" in
9940 *-pc-os2_emx | *-pc-os2-emx )
9941 PATH_IFS=';'
a848cd7e
SC
9942 ;;
9943 *)
9944 PATH_IFS=':'
9945 ;;
9946esac
9947
9948
9949
9950 echo "saving argument cache $wx_arg_cache_file"
9951 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9952
9953
9954
9955echo "$as_me:$LINENO: checking for toolkit" >&5
9956echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9957
9958# In Wine, we need to default to MSW, not GTK or MOTIF
9959if test "$wxUSE_WINE" = "yes"; then
9960 DEFAULT_DEFAULT_wxUSE_GTK=0
9961 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9962 DEFAULT_DEFAULT_wxUSE_MSW=1
9963 wxUSE_SHARED=no
9964fi
9965
9966if test "$wxUSE_GUI" = "yes"; then
9967
9968 if test "$USE_BEOS" = 1; then
9969 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9970echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9971 { (exit 1); exit 1; }; }
9972 fi
9973
9974 if test "$TOOLKIT_GIVEN" = 1; then
9975 for toolkit in `echo $ALL_TOOLKITS`; do
9976 var=wxUSE_$toolkit
9977 eval "value=\$${var}"
9978 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9979 done
9980 else
9981 for toolkit in `echo $ALL_TOOLKITS`; do
9982 if test "$has_toolkit_in_cache" != 1; then
9983 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9984 else
9985 var=DEFAULT_wxUSE_$toolkit
9986 fi
9987 eval "wxUSE_$toolkit=\$${var}"
9988 done
9989 fi
9990
9991 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9992 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9993 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9994
9995 case "${host}" in
9996 *-pc-os2_emx | *-pc-os2-emx )
9997 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9998 esac
9999
10000 case "$NUM_TOOLKITS" in
10001 1)
10002 ;;
10003 0)
10004 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10005echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10006 { (exit 1); exit 1; }; }
10007 ;;
10008 *)
10009 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10010echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10011 { (exit 1); exit 1; }; }
10012 esac
10013
10014 for toolkit in `echo $ALL_TOOLKITS`; do
10015 var=wxUSE_$toolkit
10016 eval "value=\$${var}"
10017 if test "x$value" != x; then
10018 cache_var=CACHE_$toolkit
10019 eval "cache=\$${cache_var}"
10020 if test "$cache" = 1; then
10021 echo "$var=$value" >> ${wx_arg_cache_file}
10022 fi
10023 if test "$value" = 1; then
10024 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10025 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10026echo "${ECHO_T}$toolkit_echo" >&6
10027 fi
10028 fi
10029 done
10030else
10031 if test "x$host_alias" != "x"; then
10032 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10033echo "${ECHO_T}base ($host_alias hosted) only" >&6
10034 else
10035 echo "$as_me:$LINENO: result: base only" >&5
10036echo "${ECHO_T}base only" >&6
10037 fi
10038fi
10039
10040wants_win32=0
10041doesnt_want_win32=0
10042case "${host}" in
10043 *-*-cygwin*)
10044 if test "$wxUSE_MSW" = 1 ; then
10045 wants_win32=1
10046 else
10047 doesnt_want_win32=1
10048 fi
10049 ;;
10050 *-*-mingw*)
10051 wants_win32=1
10052 ;;
10053esac
10054
10055if test "$wxUSE_WINE" = "yes"; then
10056 wants_win32=1
10057 CC=winegcc
10058 CXX=wineg++
10059 RESCOMP=wrc
10060 LDFLAGS_GUI="-mwindows"
10061fi
10062
10063if test "$wants_win32" = 1 ; then
10064 USE_UNIX=0
10065 USE_WIN32=1
10066 cat >>confdefs.h <<\_ACEOF
10067#define __WIN32__ 1
10068_ACEOF
10069
10070 cat >>confdefs.h <<\_ACEOF
10071#define __WIN95__ 1
10072_ACEOF
10073
10074 cat >>confdefs.h <<\_ACEOF
10075#define __WINDOWS__ 1
10076_ACEOF
10077
10078 cat >>confdefs.h <<\_ACEOF
10079#define __GNUWIN32__ 1
10080_ACEOF
10081
10082 cat >>confdefs.h <<\_ACEOF
10083#define STRICT 1
10084_ACEOF
10085
10086 cat >>confdefs.h <<\_ACEOF
10087#define WINVER 0x0400
10088_ACEOF
10089
10090fi
10091if test "$doesnt_want_win32" = 1 ; then
10092 USE_UNIX=1
10093 USE_WIN32=0
10094fi
10095
10096if test "$USE_UNIX" = 1 ; then
10097 wxUSE_UNIX=yes
10098 cat >>confdefs.h <<\_ACEOF
10099#define __UNIX__ 1
10100_ACEOF
10101
10102fi
10103
10104
10105cat >confcache <<\_ACEOF
10106# This file is a shell script that caches the results of configure
10107# tests run on this system so they can be shared between configure
10108# scripts and configure runs, see configure's option --config-cache.
10109# It is not useful on other systems. If it contains results you don't
10110# want to keep, you may remove or edit it.
10111#
10112# config.status only pays attention to the cache file if you give it
10113# the --recheck option to rerun configure.
10114#
10115# `ac_cv_env_foo' variables (set or unset) will be overridden when
10116# loading this file, other *unset* `ac_cv_foo' will be assigned the
10117# following values.
10118
10119_ACEOF
10120
10121# The following way of writing the cache mishandles newlines in values,
10122# but we know of no workaround that is simple, portable, and efficient.
10123# So, don't put newlines in cache variables' values.
10124# Ultrix sh set writes to stderr and can't be redirected directly,
10125# and sets the high bit in the cache file unless we assign to the vars.
10126{
10127 (set) 2>&1 |
10128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10129 *ac_space=\ *)
10130 # `set' does not quote correctly, so add quotes (double-quote
10131 # substitution turns \\\\ into \\, and sed turns \\ into \).
10132 sed -n \
ac1cb8d3
VS
10133 "s/'/'\\\\''/g;
10134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10135 ;;
10136 *)
10137 # `set' quotes correctly as required by POSIX, so do not add quotes.
10138 sed -n \
ac1cb8d3 10139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10140 ;;
10141 esac;
10142} |
10143 sed '
10144 t clear
10145 : clear
10146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10147 t end
10148 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10149 : end' >>confcache
10150if diff $cache_file confcache >/dev/null 2>&1; then :; else
10151 if test -w $cache_file; then
10152 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10153 cat confcache >$cache_file
10154 else
10155 echo "not updating unwritable cache $cache_file"
10156 fi
10157fi
10158rm -f confcache
10159
10160if test "$build" != "$host" ; then
10161 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10162 CC=$host_alias-gcc
10163 CXX=$host_alias-c++
10164 AR=$host_alias-ar
10165 RANLIB=$host_alias-ranlib
10166 DLLTOOL=$host_alias-dlltool
10167 RESCOMP=$host_alias-windres
10168 LD=$host_alias-ld
10169 NM=$host_alias-nm
10170 STRIP=$host_alias-strip
10171 else
10172 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10173echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10174 { (exit 1); exit 1; }; }
10175 fi
10176fi
10177
10178CFLAGS=${CFLAGS:=}
10179ac_ext=c
10180ac_cpp='$CPP $CPPFLAGS'
10181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183ac_compiler_gnu=$ac_cv_c_compiler_gnu
10184if test -n "$ac_tool_prefix"; then
10185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10186set dummy ${ac_tool_prefix}gcc; ac_word=$2
10187echo "$as_me:$LINENO: checking for $ac_word" >&5
10188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10189if test "${ac_cv_prog_CC+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191else
10192 if test -n "$CC"; then
10193 ac_cv_prog_CC="$CC" # Let the user override the test.
10194else
10195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196for as_dir in $PATH
10197do
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10205 fi
10206done
10207done
10208
10209fi
10210fi
10211CC=$ac_cv_prog_CC
10212if test -n "$CC"; then
10213 echo "$as_me:$LINENO: result: $CC" >&5
10214echo "${ECHO_T}$CC" >&6
10215else
10216 echo "$as_me:$LINENO: result: no" >&5
10217echo "${ECHO_T}no" >&6
10218fi
10219
10220fi
10221if test -z "$ac_cv_prog_CC"; then
10222 ac_ct_CC=$CC
10223 # Extract the first word of "gcc", so it can be a program name with args.
10224set dummy gcc; ac_word=$2
10225echo "$as_me:$LINENO: checking for $ac_word" >&5
10226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10227if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230 if test -n "$ac_ct_CC"; then
10231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10232else
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240 ac_cv_prog_ac_ct_CC="gcc"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244done
10245done
10246
10247fi
10248fi
10249ac_ct_CC=$ac_cv_prog_ac_ct_CC
10250if test -n "$ac_ct_CC"; then
10251 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10252echo "${ECHO_T}$ac_ct_CC" >&6
10253else
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
10256fi
10257
10258 CC=$ac_ct_CC
10259else
10260 CC="$ac_cv_prog_CC"
10261fi
10262
10263if test -z "$CC"; then
10264 if test -n "$ac_tool_prefix"; then
10265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10266set dummy ${ac_tool_prefix}cc; ac_word=$2
10267echo "$as_me:$LINENO: checking for $ac_word" >&5
10268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10269if test "${ac_cv_prog_CC+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271else
10272 if test -n "$CC"; then
10273 ac_cv_prog_CC="$CC" # Let the user override the test.
10274else
10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10282 ac_cv_prog_CC="${ac_tool_prefix}cc"
10283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10285 fi
10286done
10287done
10288
10289fi
10290fi
10291CC=$ac_cv_prog_CC
10292if test -n "$CC"; then
10293 echo "$as_me:$LINENO: result: $CC" >&5
10294echo "${ECHO_T}$CC" >&6
10295else
10296 echo "$as_me:$LINENO: result: no" >&5
10297echo "${ECHO_T}no" >&6
10298fi
10299
10300fi
10301if test -z "$ac_cv_prog_CC"; then
10302 ac_ct_CC=$CC
10303 # Extract the first word of "cc", so it can be a program name with args.
10304set dummy cc; ac_word=$2
10305echo "$as_me:$LINENO: checking for $ac_word" >&5
10306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 if test -n "$ac_ct_CC"; then
10311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10312else
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320 ac_cv_prog_ac_ct_CC="cc"
10321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324done
10325done
10326
10327fi
10328fi
10329ac_ct_CC=$ac_cv_prog_ac_ct_CC
10330if test -n "$ac_ct_CC"; then
10331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10332echo "${ECHO_T}$ac_ct_CC" >&6
10333else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336fi
10337
10338 CC=$ac_ct_CC
10339else
10340 CC="$ac_cv_prog_CC"
10341fi
10342
10343fi
10344if test -z "$CC"; then
10345 # Extract the first word of "cc", so it can be a program name with args.
10346set dummy cc; ac_word=$2
10347echo "$as_me:$LINENO: checking for $ac_word" >&5
10348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10349if test "${ac_cv_prog_CC+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 if test -n "$CC"; then
10353 ac_cv_prog_CC="$CC" # Let the user override the test.
10354else
10355 ac_prog_rejected=no
10356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357for as_dir in $PATH
10358do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10364 ac_prog_rejected=yes
10365 continue
10366 fi
10367 ac_cv_prog_CC="cc"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371done
10372done
10373
10374if test $ac_prog_rejected = yes; then
10375 # We found a bogon in the path, so make sure we never use it.
10376 set dummy $ac_cv_prog_CC
10377 shift
10378 if test $# != 0; then
10379 # We chose a different compiler from the bogus one.
10380 # However, it has the same basename, so the bogon will be chosen
10381 # first if we set CC to just the basename; use the full file name.
10382 shift
10383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10384 fi
10385fi
10386fi
10387fi
10388CC=$ac_cv_prog_CC
10389if test -n "$CC"; then
10390 echo "$as_me:$LINENO: result: $CC" >&5
10391echo "${ECHO_T}$CC" >&6
10392else
10393 echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6
10395fi
10396
10397fi
10398if test -z "$CC"; then
10399 if test -n "$ac_tool_prefix"; then
10400 for ac_prog in cl
10401 do
10402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10404echo "$as_me:$LINENO: checking for $ac_word" >&5
10405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10406if test "${ac_cv_prog_CC+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409 if test -n "$CC"; then
10410 ac_cv_prog_CC="$CC" # Let the user override the test.
10411else
10412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 break 2
10422 fi
10423done
10424done
10425
10426fi
10427fi
10428CC=$ac_cv_prog_CC
10429if test -n "$CC"; then
10430 echo "$as_me:$LINENO: result: $CC" >&5
10431echo "${ECHO_T}$CC" >&6
10432else
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
10435fi
10436
10437 test -n "$CC" && break
10438 done
10439fi
10440if test -z "$CC"; then
10441 ac_ct_CC=$CC
10442 for ac_prog in cl
10443do
10444 # Extract the first word of "$ac_prog", so it can be a program name with args.
10445set dummy $ac_prog; ac_word=$2
10446echo "$as_me:$LINENO: checking for $ac_word" >&5
10447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450else
10451 if test -n "$ac_ct_CC"; then
10452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10453else
10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455for as_dir in $PATH
10456do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10461 ac_cv_prog_ac_ct_CC="$ac_prog"
10462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10464 fi
10465done
10466done
10467
10468fi
10469fi
10470ac_ct_CC=$ac_cv_prog_ac_ct_CC
10471if test -n "$ac_ct_CC"; then
10472 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10473echo "${ECHO_T}$ac_ct_CC" >&6
10474else
10475 echo "$as_me:$LINENO: result: no" >&5
10476echo "${ECHO_T}no" >&6
10477fi
10478
10479 test -n "$ac_ct_CC" && break
10480done
10481
10482 CC=$ac_ct_CC
10483fi
10484
10485fi
10486
10487
10488test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10489See \`config.log' for more details." >&5
10490echo "$as_me: error: no acceptable C compiler found in \$PATH
10491See \`config.log' for more details." >&2;}
10492 { (exit 1); exit 1; }; }
10493
10494# Provide some information about the compiler.
10495echo "$as_me:$LINENO:" \
10496 "checking for C compiler version" >&5
10497ac_compiler=`set X $ac_compile; echo $2`
10498{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10499 (eval $ac_compiler --version </dev/null >&5) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }
10503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10504 (eval $ac_compiler -v </dev/null >&5) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }
10508{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10509 (eval $ac_compiler -V </dev/null >&5) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }
10513
10514cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520
10521int
10522main ()
10523{
10524
10525 ;
10526 return 0;
10527}
10528_ACEOF
10529ac_clean_files_save=$ac_clean_files
10530ac_clean_files="$ac_clean_files a.out a.exe b.out"
10531# Try to create an executable without -o first, disregard a.out.
10532# It will help us diagnose broken compilers, and finding out an intuition
10533# of exeext.
ac1cb8d3
VS
10534echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10535echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10536ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10537if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10538 (eval $ac_link_default) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; then
10542 # Find the output, starting from the most likely. This scheme is
10543# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10544# resort.
10545
10546# Be careful to initialize this variable, since it used to be cached.
10547# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10548ac_cv_exeext=
10549# b.out is created by i960 compilers.
10550for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10551do
10552 test -f "$ac_file" || continue
10553 case $ac_file in
10554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10555 ;;
a848cd7e 10556 conftest.$ac_ext )
ac1cb8d3
VS
10557 # This is the source file.
10558 ;;
a848cd7e 10559 [ab].out )
ac1cb8d3
VS
10560 # We found the default executable, but exeext='' is most
10561 # certainly right.
10562 break;;
a848cd7e 10563 *.* )
ac1cb8d3
VS
10564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10565 # FIXME: I believe we export ac_cv_exeext for Libtool,
10566 # but it would be cool to find out if it's true. Does anybody
10567 # maintain Libtool? --akim.
10568 export ac_cv_exeext
10569 break;;
a848cd7e 10570 * )
ac1cb8d3 10571 break;;
a848cd7e
SC
10572 esac
10573done
10574else
10575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10579See \`config.log' for more details." >&5
10580echo "$as_me: error: C compiler cannot create executables
10581See \`config.log' for more details." >&2;}
10582 { (exit 77); exit 77; }; }
10583fi
10584
10585ac_exeext=$ac_cv_exeext
10586echo "$as_me:$LINENO: result: $ac_file" >&5
10587echo "${ECHO_T}$ac_file" >&6
10588
10589# Check the compiler produces executables we can run. If not, either
10590# the compiler is broken, or we cross compile.
10591echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10592echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10593# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10594# If not cross compiling, check that we can run a simple program.
10595if test "$cross_compiling" != yes; then
10596 if { ac_try='./$ac_file'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 cross_compiling=no
10603 else
10604 if test "$cross_compiling" = maybe; then
10605 cross_compiling=yes
10606 else
10607 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10608If you meant to cross compile, use \`--host'.
10609See \`config.log' for more details." >&5
10610echo "$as_me: error: cannot run C compiled programs.
10611If you meant to cross compile, use \`--host'.
10612See \`config.log' for more details." >&2;}
10613 { (exit 1); exit 1; }; }
10614 fi
10615 fi
10616fi
10617echo "$as_me:$LINENO: result: yes" >&5
10618echo "${ECHO_T}yes" >&6
10619
10620rm -f a.out a.exe conftest$ac_cv_exeext b.out
10621ac_clean_files=$ac_clean_files_save
10622# Check the compiler produces executables we can run. If not, either
10623# the compiler is broken, or we cross compile.
10624echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10625echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10626echo "$as_me:$LINENO: result: $cross_compiling" >&5
10627echo "${ECHO_T}$cross_compiling" >&6
10628
10629echo "$as_me:$LINENO: checking for suffix of executables" >&5
10630echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; then
10636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10637# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10638# work properly (i.e., refer to `conftest.exe'), while it won't with
10639# `rm'.
10640for ac_file in conftest.exe conftest conftest.*; do
10641 test -f "$ac_file" || continue
10642 case $ac_file in
10643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10645 export ac_cv_exeext
10646 break;;
a848cd7e
SC
10647 * ) break;;
10648 esac
10649done
10650else
10651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10652See \`config.log' for more details." >&5
10653echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10654See \`config.log' for more details." >&2;}
10655 { (exit 1); exit 1; }; }
10656fi
10657
10658rm -f conftest$ac_cv_exeext
10659echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10660echo "${ECHO_T}$ac_cv_exeext" >&6
10661
10662rm -f conftest.$ac_ext
10663EXEEXT=$ac_cv_exeext
10664ac_exeext=$EXEEXT
10665echo "$as_me:$LINENO: checking for suffix of object files" >&5
10666echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10667if test "${ac_cv_objext+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670 cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h. */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h. */
10676
10677int
10678main ()
10679{
10680
10681 ;
10682 return 0;
10683}
10684_ACEOF
10685rm -f conftest.o conftest.obj
10686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10687 (eval $ac_compile) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; then
10691 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10692 case $ac_file in
10693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10695 break;;
10696 esac
10697done
10698else
10699 echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
10702{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10703See \`config.log' for more details." >&5
10704echo "$as_me: error: cannot compute suffix of object files: cannot compile
10705See \`config.log' for more details." >&2;}
10706 { (exit 1); exit 1; }; }
10707fi
10708
10709rm -f conftest.$ac_cv_objext conftest.$ac_ext
10710fi
10711echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10712echo "${ECHO_T}$ac_cv_objext" >&6
10713OBJEXT=$ac_cv_objext
10714ac_objext=$OBJEXT
10715echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10716echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10717if test "${ac_cv_c_compiler_gnu+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
10720 cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
10726
10727int
10728main ()
10729{
10730#ifndef __GNUC__
10731 choke me
10732#endif
10733
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738rm -f conftest.$ac_objext
10739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10740 (eval $ac_compile) 2>conftest.er1
a848cd7e 10741 ac_status=$?
ac1cb8d3
VS
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
a848cd7e
SC
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
4d4ff94c 10747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_compiler_gnu=yes
10760else
10761 echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764ac_compiler_gnu=no
10765fi
ac1cb8d3 10766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10767ac_cv_c_compiler_gnu=$ac_compiler_gnu
10768
10769fi
10770echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10771echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10772GCC=`test $ac_compiler_gnu = yes && echo yes`
10773ac_test_CFLAGS=${CFLAGS+set}
10774ac_save_CFLAGS=$CFLAGS
10775CFLAGS="-g"
10776echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10777echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10778if test "${ac_cv_prog_cc_g+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781 cat >conftest.$ac_ext <<_ACEOF
10782/* confdefs.h. */
10783_ACEOF
10784cat confdefs.h >>conftest.$ac_ext
10785cat >>conftest.$ac_ext <<_ACEOF
10786/* end confdefs.h. */
10787
10788int
10789main ()
10790{
10791
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext
10797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10798 (eval $ac_compile) 2>conftest.er1
a848cd7e 10799 ac_status=$?
ac1cb8d3
VS
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
a848cd7e
SC
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
4d4ff94c 10805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_prog_cc_g=yes
10818else
10819 echo "$as_me: failed program was:" >&5
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
10822ac_cv_prog_cc_g=no
10823fi
ac1cb8d3 10824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10825fi
10826echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10827echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10828if test "$ac_test_CFLAGS" = set; then
10829 CFLAGS=$ac_save_CFLAGS
10830elif test $ac_cv_prog_cc_g = yes; then
10831 if test "$GCC" = yes; then
10832 CFLAGS="-g -O2"
10833 else
10834 CFLAGS="-g"
10835 fi
10836else
10837 if test "$GCC" = yes; then
10838 CFLAGS="-O2"
10839 else
10840 CFLAGS=
10841 fi
10842fi
10843echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10844echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10845if test "${ac_cv_prog_cc_stdc+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848 ac_cv_prog_cc_stdc=no
10849ac_save_CC=$CC
10850cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10856#include <stdarg.h>
10857#include <stdio.h>
10858#include <sys/types.h>
10859#include <sys/stat.h>
10860/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10861struct buf { int x; };
10862FILE * (*rcsopen) (struct buf *, struct stat *, int);
10863static char *e (p, i)
10864 char **p;
10865 int i;
10866{
10867 return p[i];
10868}
10869static char *f (char * (*g) (char **, int), char **p, ...)
10870{
10871 char *s;
10872 va_list v;
10873 va_start (v,p);
10874 s = g (p, va_arg (v,int));
10875 va_end (v);
10876 return s;
10877}
ac1cb8d3
VS
10878
10879/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10880 function prototypes and stuff, but not '\xHH' hex character constants.
10881 These don't provoke an error unfortunately, instead are silently treated
10882 as 'x'. The following induces an error, until -std1 is added to get
10883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10884 array size at least. It's necessary to write '\x00'==0 to get something
10885 that's true only with -std1. */
10886int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10887
a848cd7e
SC
10888int test (int i, double x);
10889struct s1 {int (*f) (int a);};
10890struct s2 {int (*f) (double a);};
10891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10892int argc;
10893char **argv;
10894int
10895main ()
10896{
10897return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10898 ;
10899 return 0;
10900}
10901_ACEOF
10902# Don't try gcc -ansi; that turns off useful extensions and
10903# breaks some systems' header files.
10904# AIX -qlanglvl=ansi
10905# Ultrix and OSF/1 -std1
10906# HP-UX 10.20 and later -Ae
10907# HP-UX older versions -Aa -D_HPUX_SOURCE
10908# SVR4 -Xc -D__EXTENSIONS__
10909for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10910do
10911 CC="$ac_save_CC $ac_arg"
10912 rm -f conftest.$ac_objext
10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10914 (eval $ac_compile) 2>conftest.er1
a848cd7e 10915 ac_status=$?
ac1cb8d3
VS
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
a848cd7e
SC
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
4d4ff94c 10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_prog_cc_stdc=$ac_arg
10934break
10935else
10936 echo "$as_me: failed program was:" >&5
10937sed 's/^/| /' conftest.$ac_ext >&5
10938
10939fi
ac1cb8d3 10940rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10941done
10942rm -f conftest.$ac_ext conftest.$ac_objext
10943CC=$ac_save_CC
10944
10945fi
10946
10947case "x$ac_cv_prog_cc_stdc" in
10948 x|xno)
10949 echo "$as_me:$LINENO: result: none needed" >&5
10950echo "${ECHO_T}none needed" >&6 ;;
10951 *)
10952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10953echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10954 CC="$CC $ac_cv_prog_cc_stdc" ;;
10955esac
10956
10957# Some people use a C++ compiler to compile C. Since we use `exit',
10958# in C++ we need to declare it. In case someone uses the same compiler
10959# for both compiling C and C++ we need to have the C++ compiler decide
10960# the declaration of exit, since it's the most demanding environment.
10961cat >conftest.$ac_ext <<_ACEOF
10962#ifndef __cplusplus
10963 choke me
10964#endif
10965_ACEOF
10966rm -f conftest.$ac_objext
10967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10968 (eval $ac_compile) 2>conftest.er1
a848cd7e 10969 ac_status=$?
ac1cb8d3
VS
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
a848cd7e
SC
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
4d4ff94c 10975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 for ac_declaration in \
ac1cb8d3 10988 '' \
a848cd7e
SC
10989 'extern "C" void std::exit (int) throw (); using std::exit;' \
10990 'extern "C" void std::exit (int); using std::exit;' \
10991 'extern "C" void exit (int) throw ();' \
10992 'extern "C" void exit (int);' \
10993 'void exit (int);'
10994do
10995 cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
de59c161 11001$ac_declaration
ac1cb8d3 11002#include <stdlib.h>
a848cd7e
SC
11003int
11004main ()
11005{
11006exit (42);
11007 ;
11008 return 0;
11009}
11010_ACEOF
11011rm -f conftest.$ac_objext
11012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11013 (eval $ac_compile) 2>conftest.er1
a848cd7e 11014 ac_status=$?
ac1cb8d3
VS
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
a848cd7e
SC
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
4d4ff94c 11020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 :
11033else
11034 echo "$as_me: failed program was:" >&5
11035sed 's/^/| /' conftest.$ac_ext >&5
11036
11037continue
11038fi
ac1cb8d3 11039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11040 cat >conftest.$ac_ext <<_ACEOF
11041/* confdefs.h. */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h. */
11046$ac_declaration
11047int
11048main ()
11049{
11050exit (42);
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext
11056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11057 (eval $ac_compile) 2>conftest.er1
a848cd7e 11058 ac_status=$?
ac1cb8d3
VS
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
a848cd7e
SC
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
4d4ff94c 11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 break
11077else
11078 echo "$as_me: failed program was:" >&5
11079sed 's/^/| /' conftest.$ac_ext >&5
11080
11081fi
ac1cb8d3 11082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11083done
11084rm -f conftest*
11085if test -n "$ac_declaration"; then
11086 echo '#ifdef __cplusplus' >>confdefs.h
11087 echo $ac_declaration >>confdefs.h
11088 echo '#endif' >>confdefs.h
11089fi
11090
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095fi
ac1cb8d3 11096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11097ac_ext=c
11098ac_cpp='$CPP $CPPFLAGS'
11099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11101ac_compiler_gnu=$ac_cv_c_compiler_gnu
11102
11103
11104
11105ac_ext=c
11106ac_cpp='$CPP $CPPFLAGS'
11107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11109ac_compiler_gnu=$ac_cv_c_compiler_gnu
11110echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11111echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11112# On Suns, sometimes $CPP names a directory.
11113if test -n "$CPP" && test -d "$CPP"; then
11114 CPP=
11115fi
11116if test -z "$CPP"; then
11117 if test "${ac_cv_prog_CPP+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120 # Double quotes because CPP needs to be expanded
11121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11122 do
11123 ac_preproc_ok=false
11124for ac_c_preproc_warn_flag in '' yes
11125do
11126 # Use a header file that comes with gcc, so configuring glibc
11127 # with a fresh cross-compiler works.
11128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11129 # <limits.h> exists even on freestanding compilers.
11130 # On the NeXT, cc -E runs the code through the compiler's parser,
11131 # not just through cpp. "Syntax error" is here to catch this case.
11132 cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138#ifdef __STDC__
11139# include <limits.h>
11140#else
11141# include <assert.h>
11142#endif
ac1cb8d3 11143 Syntax error
a848cd7e
SC
11144_ACEOF
11145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null; then
11153 if test -s conftest.err; then
11154 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11156 else
11157 ac_cpp_err=
11158 fi
11159else
11160 ac_cpp_err=yes
11161fi
11162if test -z "$ac_cpp_err"; then
11163 :
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 # Broken: fails on valid input.
11169continue
11170fi
11171rm -f conftest.err conftest.$ac_ext
11172
11173 # OK, works on sane cases. Now check whether non-existent headers
11174 # can be detected and how.
11175 cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h. */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h. */
11181#include <ac_nonexistent.h>
11182_ACEOF
11183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } >/dev/null; then
11191 if test -s conftest.err; then
11192 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11194 else
11195 ac_cpp_err=
11196 fi
11197else
11198 ac_cpp_err=yes
11199fi
11200if test -z "$ac_cpp_err"; then
11201 # Broken: success on invalid input.
11202continue
11203else
11204 echo "$as_me: failed program was:" >&5
11205sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 # Passes both tests.
11208ac_preproc_ok=:
11209break
11210fi
11211rm -f conftest.err conftest.$ac_ext
11212
11213done
11214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11215rm -f conftest.err conftest.$ac_ext
11216if $ac_preproc_ok; then
11217 break
11218fi
11219
11220 done
11221 ac_cv_prog_CPP=$CPP
11222
11223fi
11224 CPP=$ac_cv_prog_CPP
11225else
11226 ac_cv_prog_CPP=$CPP
11227fi
11228echo "$as_me:$LINENO: result: $CPP" >&5
11229echo "${ECHO_T}$CPP" >&6
11230ac_preproc_ok=false
11231for ac_c_preproc_warn_flag in '' yes
11232do
11233 # Use a header file that comes with gcc, so configuring glibc
11234 # with a fresh cross-compiler works.
11235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236 # <limits.h> exists even on freestanding compilers.
11237 # On the NeXT, cc -E runs the code through the compiler's parser,
11238 # not just through cpp. "Syntax error" is here to catch this case.
11239 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245#ifdef __STDC__
11246# include <limits.h>
11247#else
11248# include <assert.h>
11249#endif
ac1cb8d3 11250 Syntax error
a848cd7e
SC
11251_ACEOF
11252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } >/dev/null; then
11260 if test -s conftest.err; then
11261 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11263 else
11264 ac_cpp_err=
11265 fi
11266else
11267 ac_cpp_err=yes
11268fi
11269if test -z "$ac_cpp_err"; then
11270 :
11271else
11272 echo "$as_me: failed program was:" >&5
11273sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 # Broken: fails on valid input.
11276continue
11277fi
11278rm -f conftest.err conftest.$ac_ext
11279
11280 # OK, works on sane cases. Now check whether non-existent headers
11281 # can be detected and how.
11282 cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288#include <ac_nonexistent.h>
11289_ACEOF
11290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } >/dev/null; then
11298 if test -s conftest.err; then
11299 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11301 else
11302 ac_cpp_err=
11303 fi
11304else
11305 ac_cpp_err=yes
11306fi
11307if test -z "$ac_cpp_err"; then
11308 # Broken: success on invalid input.
11309continue
11310else
11311 echo "$as_me: failed program was:" >&5
11312sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 # Passes both tests.
11315ac_preproc_ok=:
11316break
11317fi
11318rm -f conftest.err conftest.$ac_ext
11319
11320done
11321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11322rm -f conftest.err conftest.$ac_ext
11323if $ac_preproc_ok; then
11324 :
11325else
11326 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11327See \`config.log' for more details." >&5
11328echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11329See \`config.log' for more details." >&2;}
11330 { (exit 1); exit 1; }; }
11331fi
11332
11333ac_ext=c
11334ac_cpp='$CPP $CPPFLAGS'
11335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337ac_compiler_gnu=$ac_cv_c_compiler_gnu
11338
11339
11340echo "$as_me:$LINENO: checking for egrep" >&5
11341echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11342if test "${ac_cv_prog_egrep+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11346 then ac_cv_prog_egrep='grep -E'
11347 else ac_cv_prog_egrep='egrep'
11348 fi
11349fi
11350echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11351echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11352 EGREP=$ac_cv_prog_egrep
11353
11354
11355if test $ac_cv_c_compiler_gnu = yes; then
11356 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11357echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11358if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360else
11361 ac_pattern="Autoconf.*'x'"
11362 cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368#include <sgtty.h>
11369Autoconf TIOCGETP
11370_ACEOF
11371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11372 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11373 ac_cv_prog_gcc_traditional=yes
11374else
11375 ac_cv_prog_gcc_traditional=no
11376fi
11377rm -f conftest*
11378
11379
11380 if test $ac_cv_prog_gcc_traditional = no; then
11381 cat >conftest.$ac_ext <<_ACEOF
11382/* confdefs.h. */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h. */
11387#include <termio.h>
11388Autoconf TCGETA
11389_ACEOF
11390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11391 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11392 ac_cv_prog_gcc_traditional=yes
11393fi
11394rm -f conftest*
11395
11396 fi
11397fi
11398echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11399echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11400 if test $ac_cv_prog_gcc_traditional = yes; then
11401 CC="$CC -traditional"
11402 fi
11403fi
11404
11405
11406
11407
11408ac_ext=cc
11409ac_cpp='$CXXCPP $CPPFLAGS'
11410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11413
11414
11415CXXFLAGS=${CXXFLAGS:=}
11416ac_ext=cc
11417ac_cpp='$CXXCPP $CPPFLAGS'
11418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11421if test -n "$ac_tool_prefix"; then
11422 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11423 do
11424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11426echo "$as_me:$LINENO: checking for $ac_word" >&5
11427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11428if test "${ac_cv_prog_CXX+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431 if test -n "$CXX"; then
11432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11433else
11434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $PATH
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11444 fi
11445done
11446done
11447
11448fi
11449fi
11450CXX=$ac_cv_prog_CXX
11451if test -n "$CXX"; then
11452 echo "$as_me:$LINENO: result: $CXX" >&5
11453echo "${ECHO_T}$CXX" >&6
11454else
11455 echo "$as_me:$LINENO: result: no" >&5
11456echo "${ECHO_T}no" >&6
11457fi
11458
11459 test -n "$CXX" && break
11460 done
11461fi
11462if test -z "$CXX"; then
11463 ac_ct_CXX=$CXX
11464 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11465do
11466 # Extract the first word of "$ac_prog", so it can be a program name with args.
11467set dummy $ac_prog; ac_word=$2
11468echo "$as_me:$LINENO: checking for $ac_word" >&5
11469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11470if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472else
11473 if test -n "$ac_ct_CXX"; then
11474 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_prog_ac_ct_CXX="$ac_prog"
11484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488done
11489
11490fi
11491fi
11492ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11493if test -n "$ac_ct_CXX"; then
11494 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11495echo "${ECHO_T}$ac_ct_CXX" >&6
11496else
11497 echo "$as_me:$LINENO: result: no" >&5
11498echo "${ECHO_T}no" >&6
11499fi
11500
11501 test -n "$ac_ct_CXX" && break
11502done
11503test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11504
11505 CXX=$ac_ct_CXX
11506fi
11507
11508
11509# Provide some information about the compiler.
11510echo "$as_me:$LINENO:" \
11511 "checking for C++ compiler version" >&5
11512ac_compiler=`set X $ac_compile; echo $2`
11513{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11514 (eval $ac_compiler --version </dev/null >&5) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }
11518{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11519 (eval $ac_compiler -v </dev/null >&5) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }
11523{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11524 (eval $ac_compiler -V </dev/null >&5) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }
11528
11529echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11530echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11531if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533else
11534 cat >conftest.$ac_ext <<_ACEOF
11535/* confdefs.h. */
11536_ACEOF
11537cat confdefs.h >>conftest.$ac_ext
11538cat >>conftest.$ac_ext <<_ACEOF
11539/* end confdefs.h. */
11540
11541int
11542main ()
11543{
11544#ifndef __GNUC__
11545 choke me
11546#endif
11547
11548 ;
11549 return 0;
11550}
11551_ACEOF
11552rm -f conftest.$ac_objext
11553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11554 (eval $ac_compile) 2>conftest.er1
a848cd7e 11555 ac_status=$?
ac1cb8d3
VS
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
a848cd7e
SC
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
4d4ff94c 11561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_compiler_gnu=yes
11574else
11575 echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
11578ac_compiler_gnu=no
11579fi
ac1cb8d3 11580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11581ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11582
11583fi
11584echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11585echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11586GXX=`test $ac_compiler_gnu = yes && echo yes`
11587ac_test_CXXFLAGS=${CXXFLAGS+set}
11588ac_save_CXXFLAGS=$CXXFLAGS
11589CXXFLAGS="-g"
11590echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11591echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11592if test "${ac_cv_prog_cxx_g+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594else
11595 cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601
11602int
11603main ()
11604{
11605
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext
11611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11612 (eval $ac_compile) 2>conftest.er1
a848cd7e 11613 ac_status=$?
ac1cb8d3
VS
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
a848cd7e
SC
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
4d4ff94c 11619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; } &&
11625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_prog_cxx_g=yes
11632else
11633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
11636ac_cv_prog_cxx_g=no
11637fi
ac1cb8d3 11638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11639fi
11640echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11641echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11642if test "$ac_test_CXXFLAGS" = set; then
11643 CXXFLAGS=$ac_save_CXXFLAGS
11644elif test $ac_cv_prog_cxx_g = yes; then
11645 if test "$GXX" = yes; then
11646 CXXFLAGS="-g -O2"
11647 else
11648 CXXFLAGS="-g"
11649 fi
11650else
11651 if test "$GXX" = yes; then
11652 CXXFLAGS="-O2"
11653 else
11654 CXXFLAGS=
11655 fi
11656fi
11657for ac_declaration in \
ac1cb8d3 11658 '' \
a848cd7e
SC
11659 'extern "C" void std::exit (int) throw (); using std::exit;' \
11660 'extern "C" void std::exit (int); using std::exit;' \
11661 'extern "C" void exit (int) throw ();' \
11662 'extern "C" void exit (int);' \
11663 'void exit (int);'
11664do
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
de59c161 11671$ac_declaration
ac1cb8d3 11672#include <stdlib.h>
a848cd7e
SC
11673int
11674main ()
11675{
11676exit (42);
11677 ;
11678 return 0;
11679}
11680_ACEOF
11681rm -f conftest.$ac_objext
11682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11683 (eval $ac_compile) 2>conftest.er1
a848cd7e 11684 ac_status=$?
ac1cb8d3
VS
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
a848cd7e
SC
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
4d4ff94c 11690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; } &&
11696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 :
11703else
11704 echo "$as_me: failed program was:" >&5
11705sed 's/^/| /' conftest.$ac_ext >&5
11706
11707continue
11708fi
ac1cb8d3 11709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11710 cat >conftest.$ac_ext <<_ACEOF
11711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
11716$ac_declaration
11717int
11718main ()
11719{
11720exit (42);
11721 ;
11722 return 0;
11723}
11724_ACEOF
11725rm -f conftest.$ac_objext
11726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11727 (eval $ac_compile) 2>conftest.er1
a848cd7e 11728 ac_status=$?
ac1cb8d3
VS
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
a848cd7e
SC
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
4d4ff94c 11734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 break
11747else
11748 echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
11751fi
ac1cb8d3 11752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11753done
11754rm -f conftest*
11755if test -n "$ac_declaration"; then
11756 echo '#ifdef __cplusplus' >>confdefs.h
11757 echo $ac_declaration >>confdefs.h
11758 echo '#endif' >>confdefs.h
11759fi
11760
11761ac_ext=cc
11762ac_cpp='$CXXCPP $CPPFLAGS'
11763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11766
11767
11768ac_ext=c
11769ac_cpp='$CPP $CPPFLAGS'
11770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774
a848cd7e
SC
11775if test -n "$ac_tool_prefix"; then
11776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11777set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11778echo "$as_me:$LINENO: checking for $ac_word" >&5
11779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11780if test "${ac_cv_prog_RANLIB+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 if test -n "$RANLIB"; then
11784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11785else
11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797done
11798done
11799
11800fi
11801fi
11802RANLIB=$ac_cv_prog_RANLIB
11803if test -n "$RANLIB"; then
11804 echo "$as_me:$LINENO: result: $RANLIB" >&5
11805echo "${ECHO_T}$RANLIB" >&6
11806else
11807 echo "$as_me:$LINENO: result: no" >&5
11808echo "${ECHO_T}no" >&6
11809fi
11810
11811fi
11812if test -z "$ac_cv_prog_RANLIB"; then
11813 ac_ct_RANLIB=$RANLIB
11814 # Extract the first word of "ranlib", so it can be a program name with args.
11815set dummy ranlib; ac_word=$2
11816echo "$as_me:$LINENO: checking for $ac_word" >&5
11817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11818if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 if test -n "$ac_ct_RANLIB"; then
11822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11823else
11824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825for as_dir in $PATH
11826do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831 ac_cv_prog_ac_ct_RANLIB="ranlib"
11832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11834 fi
11835done
11836done
11837
11838 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11839fi
11840fi
11841ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11842if test -n "$ac_ct_RANLIB"; then
11843 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11844echo "${ECHO_T}$ac_ct_RANLIB" >&6
11845else
11846 echo "$as_me:$LINENO: result: no" >&5
11847echo "${ECHO_T}no" >&6
11848fi
11849
11850 RANLIB=$ac_ct_RANLIB
11851else
11852 RANLIB="$ac_cv_prog_RANLIB"
11853fi
11854
11855
11856# Extract the first word of "ar", so it can be a program name with args.
11857set dummy ar; ac_word=$2
11858echo "$as_me:$LINENO: checking for $ac_word" >&5
11859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11860if test "${ac_cv_prog_AR+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 if test -n "$AR"; then
11864 ac_cv_prog_AR="$AR" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873 ac_cv_prog_AR="ar"
11874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877done
11878done
11879
11880fi
11881fi
11882AR=$ac_cv_prog_AR
11883if test -n "$AR"; then
11884 echo "$as_me:$LINENO: result: $AR" >&5
11885echo "${ECHO_T}$AR" >&6
11886else
11887 echo "$as_me:$LINENO: result: no" >&5
11888echo "${ECHO_T}no" >&6
11889fi
11890
11891if test "x$AR" = "x" ; then
77ffb593
JS
11892 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11893echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11894 { (exit 1); exit 1; }; }
11895fi
11896
11897# Find a good install program. We prefer a C program (faster),
11898# so one script is as good as another. But avoid the broken or
11899# incompatible versions:
11900# SysV /etc/install, /usr/sbin/install
11901# SunOS /usr/etc/install
11902# IRIX /sbin/install
11903# AIX /bin/install
11904# AmigaOS /C/install, which installs bootblocks on floppy discs
11905# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11906# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11907# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11908# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11909# ./install, which can be erroneously created by make from ./install.sh.
11910echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11911echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11912if test -z "$INSTALL"; then
11913if test "${ac_cv_path_install+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 # Account for people who put trailing slashes in PATH elements.
11922case $as_dir/ in
11923 ./ | .// | /cC/* | \
11924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11926 /usr/ucb/* ) ;;
11927 *)
11928 # OSF1 and SCO ODT 3.0 have their own names for install.
11929 # Don't use installbsd from OSF since it installs stuff as root
11930 # by default.
11931 for ac_prog in ginstall scoinst install; do
11932 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11933 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11934 if test $ac_prog = install &&
11935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11936 # AIX install. It has an incompatible calling convention.
11937 :
11938 elif test $ac_prog = install &&
11939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11940 # program-specific install script used by HP pwplus--don't use.
11941 :
11942 else
11943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11944 break 3
11945 fi
11946 fi
a848cd7e
SC
11947 done
11948 done
11949 ;;
11950esac
11951done
11952
11953
11954fi
11955 if test "${ac_cv_path_install+set}" = set; then
11956 INSTALL=$ac_cv_path_install
11957 else
11958 # As a last resort, use the slow shell script. We don't cache a
11959 # path for INSTALL within a source directory, because that will
11960 # break other packages using the cache if that directory is
11961 # removed, or if the path is relative.
11962 INSTALL=$ac_install_sh
11963 fi
11964fi
11965echo "$as_me:$LINENO: result: $INSTALL" >&5
11966echo "${ECHO_T}$INSTALL" >&6
11967
11968# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11969# It thinks the first close brace ends the variable substitution.
11970test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11971
11972test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11973
11974test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11975
11976
11977case ${INSTALL} in
11978 /* ) # Absolute
11979 ;;
11980 ?:* ) # Drive letter, considered as absolute.
11981 ;;
11982 *)
11983 INSTALL=`pwd`/${INSTALL} ;;
11984esac
11985
a848cd7e
SC
11986
11987case "${host}" in
11988
11989 powerpc-*-darwin* )
11990 INSTALL_PROGRAM="cp -fp"
11991 INSTALL_DATA="cp -fp"
11992 ;;
11993 *)
11994 ;;
11995esac
11996
11997# Extract the first word of "strip", so it can be a program name with args.
11998set dummy strip; ac_word=$2
11999echo "$as_me:$LINENO: checking for $ac_word" >&5
12000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12001if test "${ac_cv_prog_STRIP+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003else
12004 if test -n "$STRIP"; then
12005 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12006else
12007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008for as_dir in $PATH
12009do
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_prog_STRIP="strip"
12015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12017 fi
12018done
12019done
12020
12021 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12022fi
12023fi
12024STRIP=$ac_cv_prog_STRIP
12025if test -n "$STRIP"; then
12026 echo "$as_me:$LINENO: result: $STRIP" >&5
12027echo "${ECHO_T}$STRIP" >&6
12028else
12029 echo "$as_me:$LINENO: result: no" >&5
12030echo "${ECHO_T}no" >&6
12031fi
12032
12033
12034echo "$as_me:$LINENO: checking if make is GNU make" >&5
12035echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12036if test "${wx_cv_prog_makeisgnu+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039
12040 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12041 egrep -s GNU > /dev/null); then
12042 wx_cv_prog_makeisgnu="yes"
12043 else
12044 wx_cv_prog_makeisgnu="no"
12045 fi
12046
12047fi
12048echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12049echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12050
12051if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12052 IF_GNU_MAKE=""
12053else
12054 IF_GNU_MAKE="#"
12055fi
12056
12057
12058
12059if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12060echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12061echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12062if test "${wx_cv_prog_makevpath+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065
12066cat - << EOF > confMake
12067check : file
12068 cp \$? \$@
12069 cp \$? final_file
12070EOF
12071
12072if test ! -d sub ; then
12073 mkdir sub
12074fi
12075echo dummy > sub/file
12076${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12077RESULT=$?
12078rm -f sub/file check final_file confMake
12079rmdir sub
12080if test "$RESULT" = 0; then
12081 wx_cv_prog_makevpath="yes"
12082else
12083 wx_cv_prog_makevpath="no"
12084fi
12085
12086fi
12087echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12088echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12089
12090if test "x$wx_cv_prog_makevpath" != "xyes"; then
12091{ { echo "$as_me:$LINENO: error:
12092You need a make-utility that is able to use the variable
12093VPATH correctly.
12094If your version of make does not support VPATH correctly,
12095please install GNU-make (possibly as gmake), and start
12096configure with the following command:
12097export MAKE=gmake; ./configure for sh-type shells
12098setenv MAKE gmake; ./configure for csh-type shells
12099Also please do remember to use gmake in this case every time
12100you are trying to compile.
12101" >&5
12102echo "$as_me: error:
12103You need a make-utility that is able to use the variable
12104VPATH correctly.
12105If your version of make does not support VPATH correctly,
12106please install GNU-make (possibly as gmake), and start
12107configure with the following command:
12108export MAKE=gmake; ./configure for sh-type shells
12109setenv MAKE gmake; ./configure for csh-type shells
12110Also please do remember to use gmake in this case every time
12111you are trying to compile.
12112" >&2;}
12113 { (exit 1); exit 1; }; }
12114fi fi
12115echo "$as_me:$LINENO: checking whether ln -s works" >&5
12116echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12117LN_S=$as_ln_s
12118if test "$LN_S" = "ln -s"; then
12119 echo "$as_me:$LINENO: result: yes" >&5
12120echo "${ECHO_T}yes" >&6
12121else
12122 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12123echo "${ECHO_T}no, using $LN_S" >&6
12124fi
12125
12126
12127
12128case "${host}" in
12129 *-pc-os2_emx | *-pc-os2-emx )
12130 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12131 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12132echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12133if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135else
12136 ac_check_lib_save_LIBS=$LIBS
12137LIBS="-lcExt $LIBS"
12138cat >conftest.$ac_ext <<_ACEOF
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
12144
12145/* Override any gcc2 internal prototype to avoid an error. */
12146#ifdef __cplusplus
12147extern "C"
12148#endif
12149/* We use char because int might match the return type of a gcc2
12150 builtin and then its argument prototype would still apply. */
12151char drand48 ();
12152int
12153main ()
12154{
12155drand48 ();
12156 ;
12157 return 0;
12158}
12159_ACEOF
12160rm -f conftest.$ac_objext conftest$ac_exeext
12161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12162 (eval $ac_link) 2>conftest.er1
a848cd7e 12163 ac_status=$?
ac1cb8d3
VS
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
a848cd7e
SC
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
4d4ff94c 12169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 ac_cv_lib_cExt_drand48=yes
12182else
12183 echo "$as_me: failed program was:" >&5
12184sed 's/^/| /' conftest.$ac_ext >&5
12185
12186ac_cv_lib_cExt_drand48=no
12187fi
ac1cb8d3
VS
12188rm -f conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12190LIBS=$ac_check_lib_save_LIBS
12191fi
12192echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12193echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12194if test $ac_cv_lib_cExt_drand48 = yes; then
12195 LIBS="$LIBS -lcExt"
12196fi
12197
12198 else
12199 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12200 fi
12201 echo "$as_me:$LINENO: checking for gcc version" >&5
12202echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12203if test "${wx_cv_gccversion+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205else
12206
12207 cat >conftest.$ac_ext <<_ACEOF
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
12213
12214int
12215main ()
12216{
12217
12218 #if (__GNUC__ < 3)
12219 #error old gcc
12220 #endif
12221
12222 ;
12223 return 0;
12224}
12225_ACEOF
12226rm -f conftest.$ac_objext
12227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12228 (eval $ac_compile) 2>conftest.er1
a848cd7e 12229 ac_status=$?
ac1cb8d3
VS
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
a848cd7e
SC
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
4d4ff94c 12235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } &&
12241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247
12248 cat >conftest.$ac_ext <<_ACEOF
12249/* confdefs.h. */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h. */
12254
12255int
12256main ()
12257{
12258
12259 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12260 #error intermediate gcc
12261 #endif
12262
12263 ;
12264 return 0;
12265}
12266_ACEOF
12267rm -f conftest.$ac_objext
12268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12269 (eval $ac_compile) 2>conftest.er1
a848cd7e 12270 ac_status=$?
ac1cb8d3
VS
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
a848cd7e
SC
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
4d4ff94c 12276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288
12289 wx_cv_gccversion=Innotek
12290
12291else
12292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295
12296 wx_cv_gccversion=3
12297
12298
12299fi
ac1cb8d3 12300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12301
12302else
12303 echo "$as_me: failed program was:" >&5
12304sed 's/^/| /' conftest.$ac_ext >&5
12305
12306
12307 wx_cv_gccversion=2
12308
12309
12310fi
ac1cb8d3 12311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12312
12313fi
12314echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12315echo "${ECHO_T}$wx_cv_gccversion" >&6
12316 if test "$wx_cv_gccversion" = "2"; then
12317 LIBS="$LIBS -lstdcpp"
12318 LDFLAGS="$LDFLAGS -Zsysv-signals"
12319 else
12320 if test "$wx_cv_gccversion" = "3"; then
12321 LIBS="$LIBS -lstdcxx"
12322 LDFLAGS="$LDFLAGS -Zsysv-signals"
12323 else
12324 LIBS="$LIBS -lstdc++"
12325 fi
12326 fi
12327 if test "$wxUSE_OMF" = "yes"; then
de59c161 12328 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12329 fi
12330 ;;
12331 *)
12332
12333
12334
12335 ac_ext=cc
12336ac_cpp='$CXXCPP $CPPFLAGS'
12337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12340
12341
12342
12343echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12344echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12345if test "${ac_cv_string_strcasecmp+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347else
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
12356 #include <string.h>
12357
12358int
12359main ()
12360{
12361
12362 strcasecmp("foo", "bar");
12363
12364 ;
12365 return 0;
12366}
12367_ACEOF
12368rm -f conftest.$ac_objext conftest$ac_exeext
12369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12370 (eval $ac_link) 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); } &&
4d4ff94c 12377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; } &&
12383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_cv_string_strcasecmp=yes
12390else
12391 echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
12394ac_cv_string_strcasecmp=no
12395
12396fi
ac1cb8d3
VS
12397rm -f conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12399
12400fi
12401echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12402echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12403
12404 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12405 cat >>confdefs.h <<\_ACEOF
12406#define HAVE_STRCASECMP_IN_STRING_H 1
12407_ACEOF
12408
12409 else
12410 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12411echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12412if test "${ac_cv_strings_strcasecmp+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414else
12415
12416 cat >conftest.$ac_ext <<_ACEOF
12417/* confdefs.h. */
12418_ACEOF
12419cat confdefs.h >>conftest.$ac_ext
12420cat >>conftest.$ac_ext <<_ACEOF
12421/* end confdefs.h. */
12422
12423 #include <strings.h>
12424
12425int
12426main ()
12427{
12428
12429 strcasecmp("foo", "bar");
12430
12431 ;
12432 return 0;
12433}
12434_ACEOF
12435rm -f conftest.$ac_objext conftest$ac_exeext
12436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12437 (eval $ac_link) 2>conftest.er1
a848cd7e 12438 ac_status=$?
ac1cb8d3
VS
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
a848cd7e
SC
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
4d4ff94c 12444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_strings_strcasecmp=yes
12457else
12458 echo "$as_me: failed program was:" >&5
12459sed 's/^/| /' conftest.$ac_ext >&5
12460
12461ac_cv_strings_strcasecmp=no
12462
12463fi
ac1cb8d3
VS
12464rm -f conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12466
12467fi
12468echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12469echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12470
0c3c69fc 12471 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12472 cat >>confdefs.h <<\_ACEOF
12473#define HAVE_STRCASECMP_IN_STRINGS_H 1
12474_ACEOF
12475
12476 else
12477 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12478echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12479 { (exit 1); exit 1; }; }
12480 fi
12481 fi
12482
12483 ac_ext=c
12484ac_cpp='$CPP $CPPFLAGS'
12485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12487ac_compiler_gnu=$ac_cv_c_compiler_gnu
12488
12489 ;;
12490esac
12491
12492
12493echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12494echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12495if test "${ac_cv_header_stdc+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497else
12498 cat >conftest.$ac_ext <<_ACEOF
12499/* confdefs.h. */
12500_ACEOF
12501cat confdefs.h >>conftest.$ac_ext
12502cat >>conftest.$ac_ext <<_ACEOF
12503/* end confdefs.h. */
12504#include <stdlib.h>
12505#include <stdarg.h>
12506#include <string.h>
12507#include <float.h>
12508
12509int
12510main ()
12511{
12512
12513 ;
12514 return 0;
12515}
12516_ACEOF
12517rm -f conftest.$ac_objext
12518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12519 (eval $ac_compile) 2>conftest.er1
a848cd7e 12520 ac_status=$?
ac1cb8d3
VS
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
a848cd7e
SC
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
4d4ff94c 12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_cv_header_stdc=yes
12539else
12540 echo "$as_me: failed program was:" >&5
12541sed 's/^/| /' conftest.$ac_ext >&5
12542
12543ac_cv_header_stdc=no
12544fi
ac1cb8d3 12545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12546
12547if test $ac_cv_header_stdc = yes; then
12548 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12549 cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
12555#include <string.h>
12556
12557_ACEOF
12558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12559 $EGREP "memchr" >/dev/null 2>&1; then
12560 :
12561else
12562 ac_cv_header_stdc=no
12563fi
12564rm -f conftest*
12565
12566fi
12567
12568if test $ac_cv_header_stdc = yes; then
12569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12570 cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576#include <stdlib.h>
12577
12578_ACEOF
12579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12580 $EGREP "free" >/dev/null 2>&1; then
12581 :
12582else
12583 ac_cv_header_stdc=no
12584fi
12585rm -f conftest*
12586
12587fi
12588
12589if test $ac_cv_header_stdc = yes; then
12590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12591 if test "$cross_compiling" = yes; then
12592 :
12593else
12594 cat >conftest.$ac_ext <<_ACEOF
12595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
12600#include <ctype.h>
12601#if ((' ' & 0x0FF) == 0x020)
12602# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12603# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12604#else
12605# define ISLOWER(c) \
ac1cb8d3
VS
12606 (('a' <= (c) && (c) <= 'i') \
12607 || ('j' <= (c) && (c) <= 'r') \
12608 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12609# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12610#endif
12611
12612#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12613int
12614main ()
12615{
12616 int i;
12617 for (i = 0; i < 256; i++)
12618 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12619 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12620 exit(2);
12621 exit (0);
12622}
12623_ACEOF
12624rm -f conftest$ac_exeext
12625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12626 (eval $ac_link) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 :
12636else
12637 echo "$as_me: program exited with status $ac_status" >&5
12638echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641( exit $ac_status )
12642ac_cv_header_stdc=no
12643fi
ac1cb8d3 12644rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12645fi
12646fi
12647fi
12648echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12649echo "${ECHO_T}$ac_cv_header_stdc" >&6
12650if test $ac_cv_header_stdc = yes; then
12651
12652cat >>confdefs.h <<\_ACEOF
12653#define STDC_HEADERS 1
12654_ACEOF
12655
12656fi
12657
12658# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12669 inttypes.h stdint.h unistd.h
a848cd7e
SC
12670do
12671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12672echo "$as_me:$LINENO: checking for $ac_header" >&5
12673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12674if eval "test \"\${$as_ac_Header+set}\" = set"; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676else
12677 cat >conftest.$ac_ext <<_ACEOF
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683$ac_includes_default
12684
12685#include <$ac_header>
12686_ACEOF
12687rm -f conftest.$ac_objext
12688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12689 (eval $ac_compile) 2>conftest.er1
a848cd7e 12690 ac_status=$?
ac1cb8d3
VS
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
a848cd7e
SC
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
4d4ff94c 12696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 eval "$as_ac_Header=yes"
12709else
12710 echo "$as_me: failed program was:" >&5
12711sed 's/^/| /' conftest.$ac_ext >&5
12712
12713eval "$as_ac_Header=no"
12714fi
ac1cb8d3 12715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12716fi
12717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12719if test `eval echo '${'$as_ac_Header'}'` = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12722_ACEOF
12723
12724fi
12725
12726done
12727
12728
12729
12730for ac_header in stdlib.h
12731do
12732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12733if eval "test \"\${$as_ac_Header+set}\" = set"; then
12734 echo "$as_me:$LINENO: checking for $ac_header" >&5
12735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12736if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12738fi
12739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12741else
12742 # Is the header compilable?
12743echo "$as_me:$LINENO: checking $ac_header usability" >&5
12744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12745cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751$ac_includes_default
12752#include <$ac_header>
12753_ACEOF
12754rm -f conftest.$ac_objext
12755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12756 (eval $ac_compile) 2>conftest.er1
a848cd7e 12757 ac_status=$?
ac1cb8d3
VS
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
a848cd7e
SC
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
4d4ff94c 12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_header_compiler=yes
12776else
12777 echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780ac_header_compiler=no
12781fi
ac1cb8d3 12782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12784echo "${ECHO_T}$ac_header_compiler" >&6
12785
12786# Is the header present?
12787echo "$as_me:$LINENO: checking $ac_header presence" >&5
12788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12789cat >conftest.$ac_ext <<_ACEOF
12790/* confdefs.h. */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
12794/* end confdefs.h. */
12795#include <$ac_header>
12796_ACEOF
12797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } >/dev/null; then
12805 if test -s conftest.err; then
12806 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12808 else
12809 ac_cpp_err=
12810 fi
12811else
12812 ac_cpp_err=yes
12813fi
12814if test -z "$ac_cpp_err"; then
12815 ac_header_preproc=yes
12816else
12817 echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820 ac_header_preproc=no
12821fi
12822rm -f conftest.err conftest.$ac_ext
12823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12824echo "${ECHO_T}$ac_header_preproc" >&6
12825
12826# So? What about this header?
ac1cb8d3
VS
12827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12828 yes:no: )
a848cd7e
SC
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12833 ac_header_preproc=yes
a848cd7e 12834 ;;
ac1cb8d3 12835 no:yes:* )
a848cd7e
SC
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12848 (
12849 cat <<\_ASBOX
ac1cb8d3
VS
12850## ----------------------------------------- ##
12851## Report this to wx-dev@lists.wxwidgets.org ##
12852## ----------------------------------------- ##
a848cd7e
SC
12853_ASBOX
12854 ) |
12855 sed "s/^/$as_me: WARNING: /" >&2
12856 ;;
12857esac
12858echo "$as_me:$LINENO: checking for $ac_header" >&5
12859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12860if eval "test \"\${$as_ac_Header+set}\" = set"; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862else
ac1cb8d3 12863 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12864fi
12865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12867
12868fi
12869if test `eval echo '${'$as_ac_Header'}'` = yes; then
12870 cat >>confdefs.h <<_ACEOF
12871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12872_ACEOF
12873
12874fi
12875
12876done
12877
12878
12879for ac_header in malloc.h
12880do
12881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12882if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883 echo "$as_me:$LINENO: checking for $ac_header" >&5
12884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12885if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887fi
12888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12890else
12891 # Is the header compilable?
12892echo "$as_me:$LINENO: checking $ac_header usability" >&5
12893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12894cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
12900$ac_includes_default
12901#include <$ac_header>
12902_ACEOF
12903rm -f conftest.$ac_objext
12904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12905 (eval $ac_compile) 2>conftest.er1
a848cd7e 12906 ac_status=$?
ac1cb8d3
VS
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
a848cd7e
SC
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
4d4ff94c 12912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_header_compiler=yes
12925else
12926 echo "$as_me: failed program was:" >&5
12927sed 's/^/| /' conftest.$ac_ext >&5
12928
12929ac_header_compiler=no
12930fi
ac1cb8d3 12931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12933echo "${ECHO_T}$ac_header_compiler" >&6
12934
12935# Is the header present?
12936echo "$as_me:$LINENO: checking $ac_header presence" >&5
12937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12938cat >conftest.$ac_ext <<_ACEOF
12939/* confdefs.h. */
12940_ACEOF
12941cat confdefs.h >>conftest.$ac_ext
12942cat >>conftest.$ac_ext <<_ACEOF
12943/* end confdefs.h. */
12944#include <$ac_header>
12945_ACEOF
12946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } >/dev/null; then
12954 if test -s conftest.err; then
12955 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12957 else
12958 ac_cpp_err=
12959 fi
12960else
12961 ac_cpp_err=yes
12962fi
12963if test -z "$ac_cpp_err"; then
12964 ac_header_preproc=yes
12965else
12966 echo "$as_me: failed program was:" >&5
12967sed 's/^/| /' conftest.$ac_ext >&5
12968
12969 ac_header_preproc=no
12970fi
12971rm -f conftest.err conftest.$ac_ext
12972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12973echo "${ECHO_T}$ac_header_preproc" >&6
12974
12975# So? What about this header?
ac1cb8d3
VS
12976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12977 yes:no: )
a848cd7e
SC
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12982 ac_header_preproc=yes
a848cd7e 12983 ;;
ac1cb8d3 12984 no:yes:* )
a848cd7e
SC
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12997 (
12998 cat <<\_ASBOX
ac1cb8d3
VS
12999## ----------------------------------------- ##
13000## Report this to wx-dev@lists.wxwidgets.org ##
13001## ----------------------------------------- ##
a848cd7e
SC
13002_ASBOX
13003 ) |
13004 sed "s/^/$as_me: WARNING: /" >&2
13005 ;;
13006esac
13007echo "$as_me:$LINENO: checking for $ac_header" >&5
13008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13009if eval "test \"\${$as_ac_Header+set}\" = set"; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011else
ac1cb8d3 13012 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13013fi
13014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13016
13017fi
13018if test `eval echo '${'$as_ac_Header'}'` = yes; then
13019 cat >>confdefs.h <<_ACEOF
13020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13021_ACEOF
13022
13023fi
13024
13025done
13026
13027
13028for ac_header in unistd.h
13029do
13030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13031if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo "$as_me:$LINENO: checking for $ac_header" >&5
13033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13034if eval "test \"\${$as_ac_Header+set}\" = set"; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036fi
13037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13039else
13040 # Is the header compilable?
13041echo "$as_me:$LINENO: checking $ac_header usability" >&5
13042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13043cat >conftest.$ac_ext <<_ACEOF
13044/* confdefs.h. */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
13048/* end confdefs.h. */
13049$ac_includes_default
13050#include <$ac_header>
13051_ACEOF
13052rm -f conftest.$ac_objext
13053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13054 (eval $ac_compile) 2>conftest.er1
a848cd7e 13055 ac_status=$?
ac1cb8d3
VS
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
a848cd7e
SC
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
4d4ff94c 13061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_header_compiler=yes
13074else
13075 echo "$as_me: failed program was:" >&5
13076sed 's/^/| /' conftest.$ac_ext >&5
13077
13078ac_header_compiler=no
13079fi
ac1cb8d3 13080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13082echo "${ECHO_T}$ac_header_compiler" >&6
13083
13084# Is the header present?
13085echo "$as_me:$LINENO: checking $ac_header presence" >&5
13086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13087cat >conftest.$ac_ext <<_ACEOF
13088/* confdefs.h. */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
13092/* end confdefs.h. */
13093#include <$ac_header>
13094_ACEOF
13095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } >/dev/null; then
13103 if test -s conftest.err; then
13104 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13106 else
13107 ac_cpp_err=
13108 fi
13109else
13110 ac_cpp_err=yes
13111fi
13112if test -z "$ac_cpp_err"; then
13113 ac_header_preproc=yes
13114else
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ac_header_preproc=no
13119fi
13120rm -f conftest.err conftest.$ac_ext
13121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13122echo "${ECHO_T}$ac_header_preproc" >&6
13123
13124# So? What about this header?
ac1cb8d3
VS
13125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13126 yes:no: )
a848cd7e
SC
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13131 ac_header_preproc=yes
a848cd7e 13132 ;;
ac1cb8d3 13133 no:yes:* )
a848cd7e
SC
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13146 (
13147 cat <<\_ASBOX
ac1cb8d3
VS
13148## ----------------------------------------- ##
13149## Report this to wx-dev@lists.wxwidgets.org ##
13150## ----------------------------------------- ##
a848cd7e
SC
13151_ASBOX
13152 ) |
13153 sed "s/^/$as_me: WARNING: /" >&2
13154 ;;
13155esac
13156echo "$as_me:$LINENO: checking for $ac_header" >&5
13157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13158if eval "test \"\${$as_ac_Header+set}\" = set"; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
ac1cb8d3 13161 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13162fi
13163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13165
13166fi
13167if test `eval echo '${'$as_ac_Header'}'` = yes; then
13168 cat >>confdefs.h <<_ACEOF
13169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13170_ACEOF
13171
13172fi
13173
13174done
13175
13176
13177for ac_header in wchar.h
13178do
13179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13180if eval "test \"\${$as_ac_Header+set}\" = set"; then
13181 echo "$as_me:$LINENO: checking for $ac_header" >&5
13182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13183if eval "test \"\${$as_ac_Header+set}\" = set"; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185fi
13186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13188else
13189 # Is the header compilable?
13190echo "$as_me:$LINENO: checking $ac_header usability" >&5
13191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13192cat >conftest.$ac_ext <<_ACEOF
13193/* confdefs.h. */
13194_ACEOF
13195cat confdefs.h >>conftest.$ac_ext
13196cat >>conftest.$ac_ext <<_ACEOF
13197/* end confdefs.h. */
13198$ac_includes_default
13199#include <$ac_header>
13200_ACEOF
13201rm -f conftest.$ac_objext
13202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13203 (eval $ac_compile) 2>conftest.er1
a848cd7e 13204 ac_status=$?
ac1cb8d3
VS
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
a848cd7e
SC
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
4d4ff94c 13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; } &&
13216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_header_compiler=yes
13223else
13224 echo "$as_me: failed program was:" >&5
13225sed 's/^/| /' conftest.$ac_ext >&5
13226
13227ac_header_compiler=no
13228fi
ac1cb8d3 13229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13231echo "${ECHO_T}$ac_header_compiler" >&6
13232
13233# Is the header present?
13234echo "$as_me:$LINENO: checking $ac_header presence" >&5
13235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13236cat >conftest.$ac_ext <<_ACEOF
13237/* confdefs.h. */
13238_ACEOF
13239cat confdefs.h >>conftest.$ac_ext
13240cat >>conftest.$ac_ext <<_ACEOF
13241/* end confdefs.h. */
13242#include <$ac_header>
13243_ACEOF
13244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } >/dev/null; then
13252 if test -s conftest.err; then
13253 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13255 else
13256 ac_cpp_err=
13257 fi
13258else
13259 ac_cpp_err=yes
13260fi
13261if test -z "$ac_cpp_err"; then
13262 ac_header_preproc=yes
13263else
13264 echo "$as_me: failed program was:" >&5
13265sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 ac_header_preproc=no
13268fi
13269rm -f conftest.err conftest.$ac_ext
13270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13271echo "${ECHO_T}$ac_header_preproc" >&6
13272
13273# So? What about this header?
ac1cb8d3
VS
13274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13275 yes:no: )
a848cd7e
SC
13276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13280 ac_header_preproc=yes
a848cd7e 13281 ;;
ac1cb8d3 13282 no:yes:* )
a848cd7e
SC
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13295 (
13296 cat <<\_ASBOX
ac1cb8d3
VS
13297## ----------------------------------------- ##
13298## Report this to wx-dev@lists.wxwidgets.org ##
13299## ----------------------------------------- ##
a848cd7e
SC
13300_ASBOX
13301 ) |
13302 sed "s/^/$as_me: WARNING: /" >&2
13303 ;;
13304esac
13305echo "$as_me:$LINENO: checking for $ac_header" >&5
13306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13307if eval "test \"\${$as_ac_Header+set}\" = set"; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13309else
ac1cb8d3 13310 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13311fi
13312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314
13315fi
13316if test `eval echo '${'$as_ac_Header'}'` = yes; then
13317 cat >>confdefs.h <<_ACEOF
13318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13319_ACEOF
13320
13321fi
13322
13323done
13324
13325
13326if test "$ac_cv_header_wchar_h" != "yes"; then
13327
13328for ac_header in wcstr.h
13329do
13330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13331if eval "test \"\${$as_ac_Header+set}\" = set"; then
13332 echo "$as_me:$LINENO: checking for $ac_header" >&5
13333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13334if eval "test \"\${$as_ac_Header+set}\" = set"; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336fi
13337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13339else
13340 # Is the header compilable?
13341echo "$as_me:$LINENO: checking $ac_header usability" >&5
13342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13343cat >conftest.$ac_ext <<_ACEOF
13344/* confdefs.h. */
13345_ACEOF
13346cat confdefs.h >>conftest.$ac_ext
13347cat >>conftest.$ac_ext <<_ACEOF
13348/* end confdefs.h. */
13349$ac_includes_default
13350#include <$ac_header>
13351_ACEOF
13352rm -f conftest.$ac_objext
13353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13354 (eval $ac_compile) 2>conftest.er1
a848cd7e 13355 ac_status=$?
ac1cb8d3
VS
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
a848cd7e
SC
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
4d4ff94c 13361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_header_compiler=yes
13374else
13375 echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378ac_header_compiler=no
13379fi
ac1cb8d3 13380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13382echo "${ECHO_T}$ac_header_compiler" >&6
13383
13384# Is the header present?
13385echo "$as_me:$LINENO: checking $ac_header presence" >&5
13386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13387cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393#include <$ac_header>
13394_ACEOF
13395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } >/dev/null; then
13403 if test -s conftest.err; then
13404 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13406 else
13407 ac_cpp_err=
13408 fi
13409else
13410 ac_cpp_err=yes
13411fi
13412if test -z "$ac_cpp_err"; then
13413 ac_header_preproc=yes
13414else
13415 echo "$as_me: failed program was:" >&5
13416sed 's/^/| /' conftest.$ac_ext >&5
13417
13418 ac_header_preproc=no
13419fi
13420rm -f conftest.err conftest.$ac_ext
13421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13422echo "${ECHO_T}$ac_header_preproc" >&6
13423
13424# So? What about this header?
ac1cb8d3
VS
13425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13426 yes:no: )
a848cd7e
SC
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13431 ac_header_preproc=yes
a848cd7e 13432 ;;
ac1cb8d3 13433 no:yes:* )
a848cd7e
SC
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13446 (
13447 cat <<\_ASBOX
ac1cb8d3
VS
13448## ----------------------------------------- ##
13449## Report this to wx-dev@lists.wxwidgets.org ##
13450## ----------------------------------------- ##
a848cd7e
SC
13451_ASBOX
13452 ) |
13453 sed "s/^/$as_me: WARNING: /" >&2
13454 ;;
13455esac
13456echo "$as_me:$LINENO: checking for $ac_header" >&5
13457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458if eval "test \"\${$as_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
ac1cb8d3 13461 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13462fi
13463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465
13466fi
13467if test `eval echo '${'$as_ac_Header'}'` = yes; then
13468 cat >>confdefs.h <<_ACEOF
13469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13470_ACEOF
13471
13472fi
13473
13474done
13475
13476fi
13477
13478
13479for ac_header in fnmatch.h
13480do
13481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13482if eval "test \"\${$as_ac_Header+set}\" = set"; then
13483 echo "$as_me:$LINENO: checking for $ac_header" >&5
13484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13485if eval "test \"\${$as_ac_Header+set}\" = set"; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487fi
13488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13490else
13491 # Is the header compilable?
13492echo "$as_me:$LINENO: checking $ac_header usability" >&5
13493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13494cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h. */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h. */
13500$ac_includes_default
13501#include <$ac_header>
13502_ACEOF
13503rm -f conftest.$ac_objext
13504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13505 (eval $ac_compile) 2>conftest.er1
a848cd7e 13506 ac_status=$?
ac1cb8d3
VS
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
a848cd7e
SC
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
4d4ff94c 13512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_header_compiler=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529ac_header_compiler=no
13530fi
ac1cb8d3 13531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13532echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13533echo "${ECHO_T}$ac_header_compiler" >&6
13534
13535# Is the header present?
13536echo "$as_me:$LINENO: checking $ac_header presence" >&5
13537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13538cat >conftest.$ac_ext <<_ACEOF
13539/* confdefs.h. */
13540_ACEOF
13541cat confdefs.h >>conftest.$ac_ext
13542cat >>conftest.$ac_ext <<_ACEOF
13543/* end confdefs.h. */
13544#include <$ac_header>
13545_ACEOF
13546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } >/dev/null; then
13554 if test -s conftest.err; then
13555 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13557 else
13558 ac_cpp_err=
13559 fi
13560else
13561 ac_cpp_err=yes
13562fi
13563if test -z "$ac_cpp_err"; then
13564 ac_header_preproc=yes
13565else
13566 echo "$as_me: failed program was:" >&5
13567sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 ac_header_preproc=no
13570fi
13571rm -f conftest.err conftest.$ac_ext
13572echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13573echo "${ECHO_T}$ac_header_preproc" >&6
13574
13575# So? What about this header?
ac1cb8d3
VS
13576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13577 yes:no: )
a848cd7e
SC
13578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13579echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13581echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13582 ac_header_preproc=yes
a848cd7e 13583 ;;
ac1cb8d3 13584 no:yes:* )
a848cd7e
SC
13585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13586echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13588echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13590echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13592echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13594echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13596echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13597 (
13598 cat <<\_ASBOX
ac1cb8d3
VS
13599## ----------------------------------------- ##
13600## Report this to wx-dev@lists.wxwidgets.org ##
13601## ----------------------------------------- ##
a848cd7e
SC
13602_ASBOX
13603 ) |
13604 sed "s/^/$as_me: WARNING: /" >&2
13605 ;;
13606esac
13607echo "$as_me:$LINENO: checking for $ac_header" >&5
13608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13609if eval "test \"\${$as_ac_Header+set}\" = set"; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
ac1cb8d3 13612 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13613fi
13614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13616
13617fi
13618if test `eval echo '${'$as_ac_Header'}'` = yes; then
13619 cat >>confdefs.h <<_ACEOF
13620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13621_ACEOF
13622
13623fi
13624
13625done
13626
13627
13628if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13629
13630for ac_func in fnmatch
13631do
13632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13633echo "$as_me:$LINENO: checking for $ac_func" >&5
13634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13635if eval "test \"\${$as_ac_var+set}\" = set"; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637else
13638 cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
ac1cb8d3
VS
13644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13646#define $ac_func innocuous_$ac_func
13647
a848cd7e
SC
13648/* System header to define __stub macros and hopefully few prototypes,
13649 which can conflict with char $ac_func (); below.
13650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13652
a848cd7e
SC
13653#ifdef __STDC__
13654# include <limits.h>
13655#else
13656# include <assert.h>
13657#endif
ac1cb8d3
VS
13658
13659#undef $ac_func
13660
a848cd7e
SC
13661/* Override any gcc2 internal prototype to avoid an error. */
13662#ifdef __cplusplus
13663extern "C"
13664{
13665#endif
13666/* We use char because int might match the return type of a gcc2
13667 builtin and then its argument prototype would still apply. */
13668char $ac_func ();
13669/* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13673choke me
13674#else
13675char (*f) () = $ac_func;
13676#endif
13677#ifdef __cplusplus
13678}
13679#endif
13680
13681int
13682main ()
13683{
13684return f != $ac_func;
13685 ;
13686 return 0;
13687}
13688_ACEOF
13689rm -f conftest.$ac_objext conftest$ac_exeext
13690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13691 (eval $ac_link) 2>conftest.er1
a848cd7e 13692 ac_status=$?
ac1cb8d3
VS
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
a848cd7e
SC
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
4d4ff94c 13698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 eval "$as_ac_var=yes"
13711else
13712 echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
13714
13715eval "$as_ac_var=no"
13716fi
ac1cb8d3
VS
13717rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13719fi
13720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13722if test `eval echo '${'$as_ac_var'}'` = yes; then
13723 cat >>confdefs.h <<_ACEOF
13724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13725_ACEOF
13726
13727fi
13728done
13729
13730fi
13731
13732
13733for ac_header in langinfo.h
13734do
13735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13736if eval "test \"\${$as_ac_Header+set}\" = set"; then
13737 echo "$as_me:$LINENO: checking for $ac_header" >&5
13738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13739if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741fi
13742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13744else
13745 # Is the header compilable?
13746echo "$as_me:$LINENO: checking $ac_header usability" >&5
13747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13748cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754$ac_includes_default
13755#include <$ac_header>
13756_ACEOF
13757rm -f conftest.$ac_objext
13758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13759 (eval $ac_compile) 2>conftest.er1
a848cd7e 13760 ac_status=$?
ac1cb8d3
VS
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
a848cd7e
SC
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
4d4ff94c 13766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_header_compiler=yes
13779else
13780 echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783ac_header_compiler=no
13784fi
ac1cb8d3 13785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13787echo "${ECHO_T}$ac_header_compiler" >&6
13788
13789# Is the header present?
13790echo "$as_me:$LINENO: checking $ac_header presence" >&5
13791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13792cat >conftest.$ac_ext <<_ACEOF
13793/* confdefs.h. */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h. */
13798#include <$ac_header>
13799_ACEOF
13800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } >/dev/null; then
13808 if test -s conftest.err; then
13809 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13811 else
13812 ac_cpp_err=
13813 fi
13814else
13815 ac_cpp_err=yes
13816fi
13817if test -z "$ac_cpp_err"; then
13818 ac_header_preproc=yes
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ac_header_preproc=no
13824fi
13825rm -f conftest.err conftest.$ac_ext
13826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827echo "${ECHO_T}$ac_header_preproc" >&6
13828
13829# So? What about this header?
ac1cb8d3
VS
13830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13831 yes:no: )
a848cd7e
SC
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13836 ac_header_preproc=yes
a848cd7e 13837 ;;
ac1cb8d3 13838 no:yes:* )
a848cd7e
SC
13839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13851 (
13852 cat <<\_ASBOX
ac1cb8d3
VS
13853## ----------------------------------------- ##
13854## Report this to wx-dev@lists.wxwidgets.org ##
13855## ----------------------------------------- ##
a848cd7e
SC
13856_ASBOX
13857 ) |
13858 sed "s/^/$as_me: WARNING: /" >&2
13859 ;;
13860esac
13861echo "$as_me:$LINENO: checking for $ac_header" >&5
13862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13863if eval "test \"\${$as_ac_Header+set}\" = set"; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
ac1cb8d3 13866 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13867fi
13868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13870
13871fi
13872if test `eval echo '${'$as_ac_Header'}'` = yes; then
13873 cat >>confdefs.h <<_ACEOF
13874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13875_ACEOF
13876
13877fi
13878
13879done
13880
13881
13882case "${host}" in
13883 *-pc-os2_emx | *-pc-os2-emx )
13884 if test $ac_cv_header_langinfo_h = "yes"; then
13885 LIBS="$LIBS -lintl"
13886 fi
13887 ;;
13888esac
13889
13890if test "$wxUSE_GUI" = "yes"; then
13891 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13892
13893for ac_header in X11/Xlib.h
13894do
13895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13896if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897 echo "$as_me:$LINENO: checking for $ac_header" >&5
13898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13899if eval "test \"\${$as_ac_Header+set}\" = set"; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901fi
13902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13904else
13905 # Is the header compilable?
13906echo "$as_me:$LINENO: checking $ac_header usability" >&5
13907echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13908cat >conftest.$ac_ext <<_ACEOF
13909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
13913/* end confdefs.h. */
13914$ac_includes_default
13915#include <$ac_header>
13916_ACEOF
13917rm -f conftest.$ac_objext
13918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13919 (eval $ac_compile) 2>conftest.er1
a848cd7e 13920 ac_status=$?
ac1cb8d3
VS
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
a848cd7e
SC
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
4d4ff94c 13926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_header_compiler=yes
13939else
13940 echo "$as_me: failed program was:" >&5
13941sed 's/^/| /' conftest.$ac_ext >&5
13942
13943ac_header_compiler=no
13944fi
ac1cb8d3 13945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13947echo "${ECHO_T}$ac_header_compiler" >&6
13948
13949# Is the header present?
13950echo "$as_me:$LINENO: checking $ac_header presence" >&5
13951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13952cat >conftest.$ac_ext <<_ACEOF
13953/* confdefs.h. */
13954_ACEOF
13955cat confdefs.h >>conftest.$ac_ext
13956cat >>conftest.$ac_ext <<_ACEOF
13957/* end confdefs.h. */
13958#include <$ac_header>
13959_ACEOF
13960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev/null; then
13968 if test -s conftest.err; then
13969 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13971 else
13972 ac_cpp_err=
13973 fi
13974else
13975 ac_cpp_err=yes
13976fi
13977if test -z "$ac_cpp_err"; then
13978 ac_header_preproc=yes
13979else
13980 echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_header_preproc=no
13984fi
13985rm -f conftest.err conftest.$ac_ext
13986echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13987echo "${ECHO_T}$ac_header_preproc" >&6
13988
13989# So? What about this header?
ac1cb8d3
VS
13990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13991 yes:no: )
a848cd7e
SC
13992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13996 ac_header_preproc=yes
a848cd7e 13997 ;;
ac1cb8d3 13998 no:yes:* )
a848cd7e
SC
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14011 (
14012 cat <<\_ASBOX
ac1cb8d3
VS
14013## ----------------------------------------- ##
14014## Report this to wx-dev@lists.wxwidgets.org ##
14015## ----------------------------------------- ##
a848cd7e
SC
14016_ASBOX
14017 ) |
14018 sed "s/^/$as_me: WARNING: /" >&2
14019 ;;
14020esac
14021echo "$as_me:$LINENO: checking for $ac_header" >&5
14022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14023if eval "test \"\${$as_ac_Header+set}\" = set"; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025else
ac1cb8d3 14026 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14027fi
14028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14030
14031fi
14032if test `eval echo '${'$as_ac_Header'}'` = yes; then
14033 cat >>confdefs.h <<_ACEOF
14034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14035_ACEOF
14036
14037fi
14038
14039done
14040
14041
14042for ac_header in X11/XKBlib.h
14043do
14044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14045echo "$as_me:$LINENO: checking for $ac_header" >&5
14046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14047if eval "test \"\${$as_ac_Header+set}\" = set"; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049else
14050 cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056
14057 #if HAVE_X11_XLIB_H
14058 #include <X11/Xlib.h>
14059 #endif
14060
14061
14062#include <$ac_header>
14063_ACEOF
14064rm -f conftest.$ac_objext
14065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14066 (eval $ac_compile) 2>conftest.er1
a848cd7e 14067 ac_status=$?
ac1cb8d3
VS
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
a848cd7e
SC
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
4d4ff94c 14073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; } &&
14079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 eval "$as_ac_Header=yes"
14086else
14087 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5
14089
14090eval "$as_ac_Header=no"
14091fi
ac1cb8d3 14092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14093fi
14094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14096if test `eval echo '${'$as_ac_Header'}'` = yes; then
14097 cat >>confdefs.h <<_ACEOF
14098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14099_ACEOF
14100
14101fi
14102
14103done
14104
14105 fi
14106fi
14107
14108
14109echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14110echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14111if test "${ac_cv_c_const+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113else
14114 cat >conftest.$ac_ext <<_ACEOF
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
14120
14121int
14122main ()
14123{
14124/* FIXME: Include the comments suggested by Paul. */
14125#ifndef __cplusplus
14126 /* Ultrix mips cc rejects this. */
14127 typedef int charset[2];
14128 const charset x;
14129 /* SunOS 4.1.1 cc rejects this. */
14130 char const *const *ccp;
14131 char **p;
14132 /* NEC SVR4.0.2 mips cc rejects this. */
14133 struct point {int x, y;};
14134 static struct point const zero = {0,0};
14135 /* AIX XL C 1.02.0.0 rejects this.
14136 It does not let you subtract one const X* pointer from another in
14137 an arm of an if-expression whose if-part is not a constant
14138 expression */
14139 const char *g = "string";
14140 ccp = &g + (g ? g-g : 0);
14141 /* HPUX 7.0 cc rejects these. */
14142 ++ccp;
14143 p = (char**) ccp;
14144 ccp = (char const *const *) p;
14145 { /* SCO 3.2v4 cc rejects this. */
14146 char *t;
14147 char const *s = 0 ? (char *) 0 : (char const *) 0;
14148
14149 *t++ = 0;
14150 }
14151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14152 int x[] = {25, 17};
14153 const int *foo = &x[0];
14154 ++foo;
14155 }
14156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14157 typedef const int *iptr;
14158 iptr p = 0;
14159 ++p;
14160 }
14161 { /* AIX XL C 1.02.0.0 rejects this saying
14162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14163 struct s { int j; const int *ap[3]; };
14164 struct s *b; b->j = 5;
14165 }
14166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14167 const int foo = 10;
14168 }
14169#endif
14170
14171 ;
14172 return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext
14176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14177 (eval $ac_compile) 2>conftest.er1
a848cd7e 14178 ac_status=$?
ac1cb8d3
VS
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
a848cd7e
SC
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
4d4ff94c 14184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_c_const=yes
14197else
14198 echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
14201ac_cv_c_const=no
14202fi
ac1cb8d3 14203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14204fi
14205echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14206echo "${ECHO_T}$ac_cv_c_const" >&6
14207if test $ac_cv_c_const = no; then
14208
14209cat >>confdefs.h <<\_ACEOF
14210#define const
14211_ACEOF
14212
14213fi
14214
14215echo "$as_me:$LINENO: checking for inline" >&5
14216echo $ECHO_N "checking for inline... $ECHO_C" >&6
14217if test "${ac_cv_c_inline+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 ac_cv_c_inline=no
14221for ac_kw in inline __inline__ __inline; do
14222 cat >conftest.$ac_ext <<_ACEOF
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228#ifndef __cplusplus
14229typedef int foo_t;
14230static $ac_kw foo_t static_foo () {return 0; }
14231$ac_kw foo_t foo () {return 0; }
14232#endif
14233
14234_ACEOF
14235rm -f conftest.$ac_objext
14236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14237 (eval $ac_compile) 2>conftest.er1
a848cd7e 14238 ac_status=$?
ac1cb8d3
VS
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
a848cd7e
SC
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
4d4ff94c 14244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_c_inline=$ac_kw; break
14257else
14258 echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261fi
ac1cb8d3 14262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14263done
14264
14265fi
14266echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14267echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14268
14269
a848cd7e
SC
14270case $ac_cv_c_inline in
14271 inline | yes) ;;
ac1cb8d3
VS
14272 *)
14273 case $ac_cv_c_inline in
14274 no) ac_val=;;
14275 *) ac_val=$ac_cv_c_inline;;
14276 esac
14277 cat >>confdefs.h <<_ACEOF
14278#ifndef __cplusplus
14279#define inline $ac_val
14280#endif
de59c161 14281_ACEOF
ac1cb8d3 14282 ;;
a848cd7e
SC
14283esac
14284
14285
14286echo "$as_me:$LINENO: checking for char" >&5
14287echo $ECHO_N "checking for char... $ECHO_C" >&6
14288if test "${ac_cv_type_char+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290else
14291 cat >conftest.$ac_ext <<_ACEOF
14292/* confdefs.h. */
14293_ACEOF
14294cat confdefs.h >>conftest.$ac_ext
14295cat >>conftest.$ac_ext <<_ACEOF
14296/* end confdefs.h. */
14297$ac_includes_default
14298int
14299main ()
14300{
14301if ((char *) 0)
14302 return 0;
14303if (sizeof (char))
14304 return 0;
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309rm -f conftest.$ac_objext
14310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14311 (eval $ac_compile) 2>conftest.er1
a848cd7e 14312 ac_status=$?
ac1cb8d3
VS
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
a848cd7e
SC
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
4d4ff94c 14318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } &&
14324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 ac_cv_type_char=yes
14331else
14332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335ac_cv_type_char=no
14336fi
ac1cb8d3 14337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14338fi
14339echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14340echo "${ECHO_T}$ac_cv_type_char" >&6
14341
14342echo "$as_me:$LINENO: checking size of char" >&5
14343echo $ECHO_N "checking size of char... $ECHO_C" >&6
14344if test "${ac_cv_sizeof_char+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346else
14347 if test "$ac_cv_type_char" = yes; then
14348 # The cast to unsigned long works around a bug in the HP C Compiler
14349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14351 # This bug is HP SR number 8606223364.
14352 if test "$cross_compiling" = yes; then
14353 # Depending upon the size, compute the lo and hi bounds.
14354cat >conftest.$ac_ext <<_ACEOF
14355/* confdefs.h. */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
14359/* end confdefs.h. */
14360$ac_includes_default
14361int
14362main ()
14363{
14364static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14365test_array [0] = 0
14366
14367 ;
14368 return 0;
14369}
14370_ACEOF
14371rm -f conftest.$ac_objext
14372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14373 (eval $ac_compile) 2>conftest.er1
a848cd7e 14374 ac_status=$?
ac1cb8d3
VS
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
a848cd7e
SC
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
4d4ff94c 14380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_lo=0 ac_mid=0
14393 while :; do
14394 cat >conftest.$ac_ext <<_ACEOF
14395/* confdefs.h. */
14396_ACEOF
14397cat confdefs.h >>conftest.$ac_ext
14398cat >>conftest.$ac_ext <<_ACEOF
14399/* end confdefs.h. */
14400$ac_includes_default
14401int
14402main ()
14403{
14404static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14405test_array [0] = 0
14406
14407 ;
14408 return 0;
14409}
14410_ACEOF
14411rm -f conftest.$ac_objext
14412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14413 (eval $ac_compile) 2>conftest.er1
a848cd7e 14414 ac_status=$?
ac1cb8d3
VS
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
a848cd7e
SC
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
4d4ff94c 14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_hi=$ac_mid; break
14433else
14434 echo "$as_me: failed program was:" >&5
14435sed 's/^/| /' conftest.$ac_ext >&5
14436
14437ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14438 if test $ac_lo -le $ac_mid; then
14439 ac_lo= ac_hi=
14440 break
14441 fi
14442 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14443fi
ac1cb8d3 14444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14445 done
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
14450cat >conftest.$ac_ext <<_ACEOF
14451/* confdefs.h. */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h. */
14456$ac_includes_default
14457int
14458main ()
14459{
14460static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14461test_array [0] = 0
14462
14463 ;
14464 return 0;
14465}
14466_ACEOF
14467rm -f conftest.$ac_objext
14468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14469 (eval $ac_compile) 2>conftest.er1
a848cd7e 14470 ac_status=$?
ac1cb8d3
VS
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
a848cd7e
SC
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
4d4ff94c 14476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 ac_hi=-1 ac_mid=-1
14489 while :; do
14490 cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496$ac_includes_default
14497int
14498main ()
14499{
14500static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14501test_array [0] = 0
14502
14503 ;
14504 return 0;
14505}
14506_ACEOF
14507rm -f conftest.$ac_objext
14508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14509 (eval $ac_compile) 2>conftest.er1
a848cd7e 14510 ac_status=$?
ac1cb8d3
VS
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
a848cd7e
SC
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
4d4ff94c 14516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_lo=$ac_mid; break
14529else
14530 echo "$as_me: failed program was:" >&5
14531sed 's/^/| /' conftest.$ac_ext >&5
14532
14533ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14534 if test $ac_mid -le $ac_hi; then
14535 ac_lo= ac_hi=
14536 break
14537 fi
14538 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14539fi
ac1cb8d3 14540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14541 done
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546ac_lo= ac_hi=
14547fi
ac1cb8d3 14548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14549fi
ac1cb8d3 14550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14551# Binary search between lo and hi bounds.
14552while test "x$ac_lo" != "x$ac_hi"; do
14553 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14554 cat >conftest.$ac_ext <<_ACEOF
14555/* confdefs.h. */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
14559/* end confdefs.h. */
14560$ac_includes_default
14561int
14562main ()
14563{
14564static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14565test_array [0] = 0
14566
14567 ;
14568 return 0;
14569}
14570_ACEOF
14571rm -f conftest.$ac_objext
14572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14573 (eval $ac_compile) 2>conftest.er1
a848cd7e 14574 ac_status=$?
ac1cb8d3
VS
14575 grep -v '^ *+' conftest.er1 >conftest.err
14576 rm -f conftest.er1
14577 cat conftest.err >&5
a848cd7e
SC
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
4d4ff94c 14580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_hi=$ac_mid
14593else
14594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597ac_lo=`expr '(' $ac_mid ')' + 1`
14598fi
ac1cb8d3 14599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14600done
14601case $ac_lo in
14602?*) ac_cv_sizeof_char=$ac_lo;;
14603'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14604See \`config.log' for more details." >&5
14605echo "$as_me: error: cannot compute sizeof (char), 77
14606See \`config.log' for more details." >&2;}
14607 { (exit 1); exit 1; }; } ;;
14608esac
14609else
14610 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
14611 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14612echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14613 { (exit 1); exit 1; }; }
14614else
14615 cat >conftest.$ac_ext <<_ACEOF
14616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
14621$ac_includes_default
14622long longval () { return (long) (sizeof (char)); }
14623unsigned long ulongval () { return (long) (sizeof (char)); }
14624#include <stdio.h>
14625#include <stdlib.h>
14626int
14627main ()
14628{
14629
14630 FILE *f = fopen ("conftest.val", "w");
14631 if (! f)
14632 exit (1);
14633 if (((long) (sizeof (char))) < 0)
14634 {
14635 long i = longval ();
14636 if (i != ((long) (sizeof (char))))
14637 exit (1);
14638 fprintf (f, "%ld\n", i);
14639 }
14640 else
14641 {
14642 unsigned long i = ulongval ();
14643 if (i != ((long) (sizeof (char))))
14644 exit (1);
14645 fprintf (f, "%lu\n", i);
14646 }
14647 exit (ferror (f) || fclose (f) != 0);
14648
14649 ;
14650 return 0;
14651}
14652_ACEOF
14653rm -f conftest$ac_exeext
14654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14655 (eval $ac_link) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_cv_sizeof_char=`cat conftest.val`
14665else
14666 echo "$as_me: program exited with status $ac_status" >&5
14667echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670( exit $ac_status )
14671{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14672See \`config.log' for more details." >&5
14673echo "$as_me: error: cannot compute sizeof (char), 77
14674See \`config.log' for more details." >&2;}
14675 { (exit 1); exit 1; }; }
14676fi
ac1cb8d3 14677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14678fi
14679fi
14680rm -f conftest.val
14681else
14682 ac_cv_sizeof_char=0
14683fi
14684fi
14685echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14686echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14687cat >>confdefs.h <<_ACEOF
14688#define SIZEOF_CHAR $ac_cv_sizeof_char
14689_ACEOF
14690
14691
14692echo "$as_me:$LINENO: checking for short" >&5
14693echo $ECHO_N "checking for short... $ECHO_C" >&6
14694if test "${ac_cv_type_short+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14696else
14697 cat >conftest.$ac_ext <<_ACEOF
14698/* confdefs.h. */
14699_ACEOF
14700cat confdefs.h >>conftest.$ac_ext
14701cat >>conftest.$ac_ext <<_ACEOF
14702/* end confdefs.h. */
14703$ac_includes_default
14704int
14705main ()
14706{
14707if ((short *) 0)
14708 return 0;
14709if (sizeof (short))
14710 return 0;
14711 ;
14712 return 0;
14713}
14714_ACEOF
14715rm -f conftest.$ac_objext
14716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14717 (eval $ac_compile) 2>conftest.er1
a848cd7e 14718 ac_status=$?
ac1cb8d3
VS
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
a848cd7e
SC
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
4d4ff94c 14724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 ac_cv_type_short=yes
14737else
14738 echo "$as_me: failed program was:" >&5
14739sed 's/^/| /' conftest.$ac_ext >&5
14740
14741ac_cv_type_short=no
14742fi
ac1cb8d3 14743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14744fi
14745echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14746echo "${ECHO_T}$ac_cv_type_short" >&6
14747
14748echo "$as_me:$LINENO: checking size of short" >&5
14749echo $ECHO_N "checking size of short... $ECHO_C" >&6
14750if test "${ac_cv_sizeof_short+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 if test "$ac_cv_type_short" = yes; then
14754 # The cast to unsigned long works around a bug in the HP C Compiler
14755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14757 # This bug is HP SR number 8606223364.
14758 if test "$cross_compiling" = yes; then
14759 # Depending upon the size, compute the lo and hi bounds.
14760cat >conftest.$ac_ext <<_ACEOF
14761/* confdefs.h. */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
14765/* end confdefs.h. */
14766$ac_includes_default
14767int
14768main ()
14769{
14770static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14771test_array [0] = 0
14772
14773 ;
14774 return 0;
14775}
14776_ACEOF
14777rm -f conftest.$ac_objext
14778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14779 (eval $ac_compile) 2>conftest.er1
a848cd7e 14780 ac_status=$?
ac1cb8d3
VS
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
a848cd7e
SC
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
4d4ff94c 14786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } &&
14792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_lo=0 ac_mid=0
14799 while :; do
14800 cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807int
14808main ()
14809{
14810static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14811test_array [0] = 0
14812
14813 ;
14814 return 0;
14815}
14816_ACEOF
14817rm -f conftest.$ac_objext
14818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14819 (eval $ac_compile) 2>conftest.er1
a848cd7e 14820 ac_status=$?
ac1cb8d3
VS
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
a848cd7e
SC
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
4d4ff94c 14826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 ac_hi=$ac_mid; break
14839else
14840 echo "$as_me: failed program was:" >&5
14841sed 's/^/| /' conftest.$ac_ext >&5
14842
14843ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14844 if test $ac_lo -le $ac_mid; then
14845 ac_lo= ac_hi=
14846 break
14847 fi
14848 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14849fi
ac1cb8d3 14850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14851 done
14852else
14853 echo "$as_me: failed program was:" >&5
14854sed 's/^/| /' conftest.$ac_ext >&5
14855
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862$ac_includes_default
14863int
14864main ()
14865{
14866static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14867test_array [0] = 0
14868
14869 ;
14870 return 0;
14871}
14872_ACEOF
14873rm -f conftest.$ac_objext
14874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14875 (eval $ac_compile) 2>conftest.er1
a848cd7e 14876 ac_status=$?
ac1cb8d3
VS
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
a848cd7e
SC
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
4d4ff94c 14882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_hi=-1 ac_mid=-1
14895 while :; do
14896 cat >conftest.$ac_ext <<_ACEOF
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902$ac_includes_default
14903int
14904main ()
14905{
14906static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14907test_array [0] = 0
14908
14909 ;
14910 return 0;
14911}
14912_ACEOF
14913rm -f conftest.$ac_objext
14914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14915 (eval $ac_compile) 2>conftest.er1
a848cd7e 14916 ac_status=$?
ac1cb8d3
VS
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
a848cd7e
SC
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
4d4ff94c 14922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_lo=$ac_mid; break
14935else
14936 echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
14938
14939ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14940 if test $ac_mid -le $ac_hi; then
14941 ac_lo= ac_hi=
14942 break
14943 fi
14944 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14945fi
ac1cb8d3 14946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14947 done
14948else
14949 echo "$as_me: failed program was:" >&5
14950sed 's/^/| /' conftest.$ac_ext >&5
14951
14952ac_lo= ac_hi=
14953fi
ac1cb8d3 14954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14955fi
ac1cb8d3 14956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14957# Binary search between lo and hi bounds.
14958while test "x$ac_lo" != "x$ac_hi"; do
14959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14960 cat >conftest.$ac_ext <<_ACEOF
14961/* confdefs.h. */
14962_ACEOF
14963cat confdefs.h >>conftest.$ac_ext
14964cat >>conftest.$ac_ext <<_ACEOF
14965/* end confdefs.h. */
14966$ac_includes_default
14967int
14968main ()
14969{
14970static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14971test_array [0] = 0
14972
14973 ;
14974 return 0;
14975}
14976_ACEOF
14977rm -f conftest.$ac_objext
14978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14979 (eval $ac_compile) 2>conftest.er1
a848cd7e 14980 ac_status=$?
ac1cb8d3
VS
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
a848cd7e
SC
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
4d4ff94c 14986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_hi=$ac_mid
14999else
15000 echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003ac_lo=`expr '(' $ac_mid ')' + 1`
15004fi
ac1cb8d3 15005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15006done
15007case $ac_lo in
15008?*) ac_cv_sizeof_short=$ac_lo;;
15009'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15010See \`config.log' for more details." >&5
15011echo "$as_me: error: cannot compute sizeof (short), 77
15012See \`config.log' for more details." >&2;}
15013 { (exit 1); exit 1; }; } ;;
15014esac
15015else
15016 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
15017 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15018echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15019 { (exit 1); exit 1; }; }
15020else
15021 cat >conftest.$ac_ext <<_ACEOF
15022/* confdefs.h. */
15023_ACEOF
15024cat confdefs.h >>conftest.$ac_ext
15025cat >>conftest.$ac_ext <<_ACEOF
15026/* end confdefs.h. */
15027$ac_includes_default
15028long longval () { return (long) (sizeof (short)); }
15029unsigned long ulongval () { return (long) (sizeof (short)); }
15030#include <stdio.h>
15031#include <stdlib.h>
15032int
15033main ()
15034{
15035
15036 FILE *f = fopen ("conftest.val", "w");
15037 if (! f)
15038 exit (1);
15039 if (((long) (sizeof (short))) < 0)
15040 {
15041 long i = longval ();
15042 if (i != ((long) (sizeof (short))))
15043 exit (1);
15044 fprintf (f, "%ld\n", i);
15045 }
15046 else
15047 {
15048 unsigned long i = ulongval ();
15049 if (i != ((long) (sizeof (short))))
15050 exit (1);
15051 fprintf (f, "%lu\n", i);
15052 }
15053 exit (ferror (f) || fclose (f) != 0);
15054
15055 ;
15056 return 0;
15057}
15058_ACEOF
15059rm -f conftest$ac_exeext
15060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_sizeof_short=`cat conftest.val`
15071else
15072 echo "$as_me: program exited with status $ac_status" >&5
15073echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076( exit $ac_status )
15077{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15078See \`config.log' for more details." >&5
15079echo "$as_me: error: cannot compute sizeof (short), 77
15080See \`config.log' for more details." >&2;}
15081 { (exit 1); exit 1; }; }
15082fi
ac1cb8d3 15083rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15084fi
15085fi
15086rm -f conftest.val
15087else
15088 ac_cv_sizeof_short=0
15089fi
15090fi
15091echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15092echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15093cat >>confdefs.h <<_ACEOF
15094#define SIZEOF_SHORT $ac_cv_sizeof_short
15095_ACEOF
15096
15097
15098echo "$as_me:$LINENO: checking for void *" >&5
15099echo $ECHO_N "checking for void *... $ECHO_C" >&6
15100if test "${ac_cv_type_void_p+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102else
15103 cat >conftest.$ac_ext <<_ACEOF
15104/* confdefs.h. */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h. */
15109$ac_includes_default
15110int
15111main ()
15112{
15113if ((void * *) 0)
15114 return 0;
15115if (sizeof (void *))
15116 return 0;
15117 ;
15118 return 0;
15119}
15120_ACEOF
15121rm -f conftest.$ac_objext
15122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15123 (eval $ac_compile) 2>conftest.er1
a848cd7e 15124 ac_status=$?
ac1cb8d3
VS
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
a848cd7e
SC
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
4d4ff94c 15130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142 ac_cv_type_void_p=yes
15143else
15144 echo "$as_me: failed program was:" >&5
15145sed 's/^/| /' conftest.$ac_ext >&5
15146
15147ac_cv_type_void_p=no
15148fi
ac1cb8d3 15149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15150fi
15151echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15152echo "${ECHO_T}$ac_cv_type_void_p" >&6
15153
15154echo "$as_me:$LINENO: checking size of void *" >&5
15155echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15156if test "${ac_cv_sizeof_void_p+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158else
15159 if test "$ac_cv_type_void_p" = yes; then
15160 # The cast to unsigned long works around a bug in the HP C Compiler
15161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15163 # This bug is HP SR number 8606223364.
15164 if test "$cross_compiling" = yes; then
15165 # Depending upon the size, compute the lo and hi bounds.
15166cat >conftest.$ac_ext <<_ACEOF
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
15171/* end confdefs.h. */
15172$ac_includes_default
15173int
15174main ()
15175{
15176static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15177test_array [0] = 0
15178
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext
15184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15185 (eval $ac_compile) 2>conftest.er1
a848cd7e 15186 ac_status=$?
ac1cb8d3
VS
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
a848cd7e
SC
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
4d4ff94c 15192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_lo=0 ac_mid=0
15205 while :; do
15206 cat >conftest.$ac_ext <<_ACEOF
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212$ac_includes_default
15213int
15214main ()
15215{
15216static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15217test_array [0] = 0
15218
15219 ;
15220 return 0;
15221}
15222_ACEOF
15223rm -f conftest.$ac_objext
15224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15225 (eval $ac_compile) 2>conftest.er1
a848cd7e 15226 ac_status=$?
ac1cb8d3
VS
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
a848cd7e
SC
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
4d4ff94c 15232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_hi=$ac_mid; break
15245else
15246 echo "$as_me: failed program was:" >&5
15247sed 's/^/| /' conftest.$ac_ext >&5
15248
15249ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15250 if test $ac_lo -le $ac_mid; then
15251 ac_lo= ac_hi=
15252 break
15253 fi
15254 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15255fi
ac1cb8d3 15256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15257 done
15258else
15259 echo "$as_me: failed program was:" >&5
15260sed 's/^/| /' conftest.$ac_ext >&5
15261
15262cat >conftest.$ac_ext <<_ACEOF
15263/* confdefs.h. */
15264_ACEOF
15265cat confdefs.h >>conftest.$ac_ext
15266cat >>conftest.$ac_ext <<_ACEOF
15267/* end confdefs.h. */
15268$ac_includes_default
15269int
15270main ()
15271{
15272static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15273test_array [0] = 0
15274
15275 ;
15276 return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext
15280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15281 (eval $ac_compile) 2>conftest.er1
a848cd7e 15282 ac_status=$?
ac1cb8d3
VS
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
a848cd7e
SC
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
4d4ff94c 15288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_hi=-1 ac_mid=-1
15301 while :; do
15302 cat >conftest.$ac_ext <<_ACEOF
15303/* confdefs.h. */
15304_ACEOF
15305cat confdefs.h >>conftest.$ac_ext
15306cat >>conftest.$ac_ext <<_ACEOF
15307/* end confdefs.h. */
15308$ac_includes_default
15309int
15310main ()
15311{
15312static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15313test_array [0] = 0
15314
15315 ;
15316 return 0;
15317}
15318_ACEOF
15319rm -f conftest.$ac_objext
15320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15321 (eval $ac_compile) 2>conftest.er1
a848cd7e 15322 ac_status=$?
ac1cb8d3
VS
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
a848cd7e
SC
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
4d4ff94c 15328 { ac_try='test -z "$ac_c_werror_flag" || 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=$ac_mid; break
15341else
15342 echo "$as_me: failed program was:" >&5
15343sed 's/^/| /' conftest.$ac_ext >&5
15344
15345ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15346 if test $ac_mid -le $ac_hi; then
15347 ac_lo= ac_hi=
15348 break
15349 fi
15350 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15351fi
ac1cb8d3 15352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15353 done
15354else
15355 echo "$as_me: failed program was:" >&5
15356sed 's/^/| /' conftest.$ac_ext >&5
15357
15358ac_lo= ac_hi=
15359fi
ac1cb8d3 15360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15361fi
ac1cb8d3 15362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15363# Binary search between lo and hi bounds.
15364while test "x$ac_lo" != "x$ac_hi"; do
15365 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15366 cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
15372$ac_includes_default
15373int
15374main ()
15375{
15376static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15377test_array [0] = 0
15378
15379 ;
15380 return 0;
15381}
15382_ACEOF
15383rm -f conftest.$ac_objext
15384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15385 (eval $ac_compile) 2>conftest.er1
a848cd7e 15386 ac_status=$?
ac1cb8d3
VS
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
a848cd7e
SC
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
4d4ff94c 15392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_hi=$ac_mid
15405else
15406 echo "$as_me: failed program was:" >&5
15407sed 's/^/| /' conftest.$ac_ext >&5
15408
15409ac_lo=`expr '(' $ac_mid ')' + 1`
15410fi
ac1cb8d3 15411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15412done
15413case $ac_lo in
15414?*) ac_cv_sizeof_void_p=$ac_lo;;
15415'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15416See \`config.log' for more details." >&5
15417echo "$as_me: error: cannot compute sizeof (void *), 77
15418See \`config.log' for more details." >&2;}
15419 { (exit 1); exit 1; }; } ;;
15420esac
15421else
15422 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
15423 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15424echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15425 { (exit 1); exit 1; }; }
15426else
15427 cat >conftest.$ac_ext <<_ACEOF
15428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
15433$ac_includes_default
15434long longval () { return (long) (sizeof (void *)); }
15435unsigned long ulongval () { return (long) (sizeof (void *)); }
15436#include <stdio.h>
15437#include <stdlib.h>
15438int
15439main ()
15440{
15441
15442 FILE *f = fopen ("conftest.val", "w");
15443 if (! f)
15444 exit (1);
15445 if (((long) (sizeof (void *))) < 0)
15446 {
15447 long i = longval ();
15448 if (i != ((long) (sizeof (void *))))
15449 exit (1);
15450 fprintf (f, "%ld\n", i);
15451 }
15452 else
15453 {
15454 unsigned long i = ulongval ();
15455 if (i != ((long) (sizeof (void *))))
15456 exit (1);
15457 fprintf (f, "%lu\n", i);
15458 }
15459 exit (ferror (f) || fclose (f) != 0);
15460
15461 ;
15462 return 0;
15463}
15464_ACEOF
15465rm -f conftest$ac_exeext
15466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_sizeof_void_p=`cat conftest.val`
15477else
15478 echo "$as_me: program exited with status $ac_status" >&5
15479echo "$as_me: failed program was:" >&5
15480sed 's/^/| /' conftest.$ac_ext >&5
15481
15482( exit $ac_status )
15483{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15484See \`config.log' for more details." >&5
15485echo "$as_me: error: cannot compute sizeof (void *), 77
15486See \`config.log' for more details." >&2;}
15487 { (exit 1); exit 1; }; }
15488fi
ac1cb8d3 15489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15490fi
15491fi
15492rm -f conftest.val
15493else
15494 ac_cv_sizeof_void_p=0
15495fi
15496fi
15497echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15498echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15499cat >>confdefs.h <<_ACEOF
15500#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15501_ACEOF
15502
15503
15504echo "$as_me:$LINENO: checking for int" >&5
15505echo $ECHO_N "checking for int... $ECHO_C" >&6
15506if test "${ac_cv_type_int+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508else
15509 cat >conftest.$ac_ext <<_ACEOF
15510/* confdefs.h. */
15511_ACEOF
15512cat confdefs.h >>conftest.$ac_ext
15513cat >>conftest.$ac_ext <<_ACEOF
15514/* end confdefs.h. */
15515$ac_includes_default
15516int
15517main ()
15518{
15519if ((int *) 0)
15520 return 0;
15521if (sizeof (int))
15522 return 0;
15523 ;
15524 return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext
15528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15529 (eval $ac_compile) 2>conftest.er1
a848cd7e 15530 ac_status=$?
ac1cb8d3
VS
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
a848cd7e
SC
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
4d4ff94c 15536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_type_int=yes
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553ac_cv_type_int=no
15554fi
ac1cb8d3 15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15556fi
15557echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15558echo "${ECHO_T}$ac_cv_type_int" >&6
15559
15560echo "$as_me:$LINENO: checking size of int" >&5
15561echo $ECHO_N "checking size of int... $ECHO_C" >&6
15562if test "${ac_cv_sizeof_int+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564else
15565 if test "$ac_cv_type_int" = yes; then
15566 # The cast to unsigned long works around a bug in the HP C Compiler
15567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15569 # This bug is HP SR number 8606223364.
15570 if test "$cross_compiling" = yes; then
15571 # Depending upon the size, compute the lo and hi bounds.
15572cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578$ac_includes_default
15579int
15580main ()
15581{
15582static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15583test_array [0] = 0
15584
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext
15590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15591 (eval $ac_compile) 2>conftest.er1
a848cd7e 15592 ac_status=$?
ac1cb8d3
VS
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
a848cd7e
SC
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
4d4ff94c 15598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_lo=0 ac_mid=0
15611 while :; do
15612 cat >conftest.$ac_ext <<_ACEOF
15613/* confdefs.h. */
15614_ACEOF
15615cat confdefs.h >>conftest.$ac_ext
15616cat >>conftest.$ac_ext <<_ACEOF
15617/* end confdefs.h. */
15618$ac_includes_default
15619int
15620main ()
15621{
15622static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15623test_array [0] = 0
15624
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629rm -f conftest.$ac_objext
15630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15631 (eval $ac_compile) 2>conftest.er1
a848cd7e 15632 ac_status=$?
ac1cb8d3
VS
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
a848cd7e
SC
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
4d4ff94c 15638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_hi=$ac_mid; break
15651else
15652 echo "$as_me: failed program was:" >&5
15653sed 's/^/| /' conftest.$ac_ext >&5
15654
15655ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15656 if test $ac_lo -le $ac_mid; then
15657 ac_lo= ac_hi=
15658 break
15659 fi
15660 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15661fi
ac1cb8d3 15662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15663 done
15664else
15665 echo "$as_me: failed program was:" >&5
15666sed 's/^/| /' conftest.$ac_ext >&5
15667
15668cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674$ac_includes_default
15675int
15676main ()
15677{
15678static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15679test_array [0] = 0
15680
15681 ;
15682 return 0;
15683}
15684_ACEOF
15685rm -f conftest.$ac_objext
15686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15687 (eval $ac_compile) 2>conftest.er1
a848cd7e 15688 ac_status=$?
ac1cb8d3
VS
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
a848cd7e
SC
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
4d4ff94c 15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_hi=-1 ac_mid=-1
15707 while :; do
15708 cat >conftest.$ac_ext <<_ACEOF
15709/* confdefs.h. */
15710_ACEOF
15711cat confdefs.h >>conftest.$ac_ext
15712cat >>conftest.$ac_ext <<_ACEOF
15713/* end confdefs.h. */
15714$ac_includes_default
15715int
15716main ()
15717{
15718static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15719test_array [0] = 0
15720
15721 ;
15722 return 0;
15723}
15724_ACEOF
15725rm -f conftest.$ac_objext
15726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15727 (eval $ac_compile) 2>conftest.er1
a848cd7e 15728 ac_status=$?
ac1cb8d3
VS
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
a848cd7e
SC
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
4d4ff94c 15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; } &&
15740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_lo=$ac_mid; break
15747else
15748 echo "$as_me: failed program was:" >&5
15749sed 's/^/| /' conftest.$ac_ext >&5
15750
15751ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15752 if test $ac_mid -le $ac_hi; then
15753 ac_lo= ac_hi=
15754 break
15755 fi
15756 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15757fi
ac1cb8d3 15758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15759 done
15760else
15761 echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764ac_lo= ac_hi=
15765fi
ac1cb8d3 15766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15767fi
ac1cb8d3 15768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15769# Binary search between lo and hi bounds.
15770while test "x$ac_lo" != "x$ac_hi"; do
15771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15772 cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778$ac_includes_default
15779int
15780main ()
15781{
15782static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15783test_array [0] = 0
15784
15785 ;
15786 return 0;
15787}
15788_ACEOF
15789rm -f conftest.$ac_objext
15790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15791 (eval $ac_compile) 2>conftest.er1
a848cd7e 15792 ac_status=$?
ac1cb8d3
VS
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
a848cd7e
SC
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
4d4ff94c 15798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; } &&
15804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_hi=$ac_mid
15811else
15812 echo "$as_me: failed program was:" >&5
15813sed 's/^/| /' conftest.$ac_ext >&5
15814
15815ac_lo=`expr '(' $ac_mid ')' + 1`
15816fi
ac1cb8d3 15817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15818done
15819case $ac_lo in
15820?*) ac_cv_sizeof_int=$ac_lo;;
15821'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15822See \`config.log' for more details." >&5
15823echo "$as_me: error: cannot compute sizeof (int), 77
15824See \`config.log' for more details." >&2;}
15825 { (exit 1); exit 1; }; } ;;
15826esac
15827else
15828 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
15829 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15830echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15831 { (exit 1); exit 1; }; }
15832else
15833 cat >conftest.$ac_ext <<_ACEOF
15834/* confdefs.h. */
15835_ACEOF
15836cat confdefs.h >>conftest.$ac_ext
15837cat >>conftest.$ac_ext <<_ACEOF
15838/* end confdefs.h. */
15839$ac_includes_default
15840long longval () { return (long) (sizeof (int)); }
15841unsigned long ulongval () { return (long) (sizeof (int)); }
15842#include <stdio.h>
15843#include <stdlib.h>
15844int
15845main ()
15846{
15847
15848 FILE *f = fopen ("conftest.val", "w");
15849 if (! f)
15850 exit (1);
15851 if (((long) (sizeof (int))) < 0)
15852 {
15853 long i = longval ();
15854 if (i != ((long) (sizeof (int))))
15855 exit (1);
15856 fprintf (f, "%ld\n", i);
15857 }
15858 else
15859 {
15860 unsigned long i = ulongval ();
15861 if (i != ((long) (sizeof (int))))
15862 exit (1);
15863 fprintf (f, "%lu\n", i);
15864 }
15865 exit (ferror (f) || fclose (f) != 0);
15866
15867 ;
15868 return 0;
15869}
15870_ACEOF
15871rm -f conftest$ac_exeext
15872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873 (eval $ac_link) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15882 ac_cv_sizeof_int=`cat conftest.val`
15883else
15884 echo "$as_me: program exited with status $ac_status" >&5
15885echo "$as_me: failed program was:" >&5
15886sed 's/^/| /' conftest.$ac_ext >&5
15887
15888( exit $ac_status )
15889{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15890See \`config.log' for more details." >&5
15891echo "$as_me: error: cannot compute sizeof (int), 77
15892See \`config.log' for more details." >&2;}
15893 { (exit 1); exit 1; }; }
15894fi
ac1cb8d3 15895rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15896fi
15897fi
15898rm -f conftest.val
15899else
15900 ac_cv_sizeof_int=0
15901fi
15902fi
15903echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15904echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15905cat >>confdefs.h <<_ACEOF
15906#define SIZEOF_INT $ac_cv_sizeof_int
15907_ACEOF
15908
15909
15910echo "$as_me:$LINENO: checking for long" >&5
15911echo $ECHO_N "checking for long... $ECHO_C" >&6
15912if test "${ac_cv_type_long+set}" = set; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15914else
15915 cat >conftest.$ac_ext <<_ACEOF
15916/* confdefs.h. */
15917_ACEOF
15918cat confdefs.h >>conftest.$ac_ext
15919cat >>conftest.$ac_ext <<_ACEOF
15920/* end confdefs.h. */
15921$ac_includes_default
15922int
15923main ()
15924{
15925if ((long *) 0)
15926 return 0;
15927if (sizeof (long))
15928 return 0;
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext
15934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15935 (eval $ac_compile) 2>conftest.er1
a848cd7e 15936 ac_status=$?
ac1cb8d3
VS
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
a848cd7e
SC
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
4d4ff94c 15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_cv_type_long=yes
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959ac_cv_type_long=no
15960fi
ac1cb8d3 15961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15962fi
15963echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15964echo "${ECHO_T}$ac_cv_type_long" >&6
15965
15966echo "$as_me:$LINENO: checking size of long" >&5
15967echo $ECHO_N "checking size of long... $ECHO_C" >&6
15968if test "${ac_cv_sizeof_long+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15970else
15971 if test "$ac_cv_type_long" = yes; then
15972 # The cast to unsigned long works around a bug in the HP C Compiler
15973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15975 # This bug is HP SR number 8606223364.
15976 if test "$cross_compiling" = yes; then
15977 # Depending upon the size, compute the lo and hi bounds.
15978cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984$ac_includes_default
15985int
15986main ()
15987{
15988static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15989test_array [0] = 0
15990
15991 ;
15992 return 0;
15993}
15994_ACEOF
15995rm -f conftest.$ac_objext
15996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15997 (eval $ac_compile) 2>conftest.er1
a848cd7e 15998 ac_status=$?
ac1cb8d3
VS
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
a848cd7e
SC
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
4d4ff94c 16004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } &&
16010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 ac_lo=0 ac_mid=0
16017 while :; do
16018 cat >conftest.$ac_ext <<_ACEOF
16019/* confdefs.h. */
16020_ACEOF
16021cat confdefs.h >>conftest.$ac_ext
16022cat >>conftest.$ac_ext <<_ACEOF
16023/* end confdefs.h. */
16024$ac_includes_default
16025int
16026main ()
16027{
16028static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16029test_array [0] = 0
16030
16031 ;
16032 return 0;
16033}
16034_ACEOF
16035rm -f conftest.$ac_objext
16036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16037 (eval $ac_compile) 2>conftest.er1
a848cd7e 16038 ac_status=$?
ac1cb8d3
VS
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
a848cd7e
SC
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
4d4ff94c 16044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_hi=$ac_mid; break
16057else
16058 echo "$as_me: failed program was:" >&5
16059sed 's/^/| /' conftest.$ac_ext >&5
16060
16061ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16062 if test $ac_lo -le $ac_mid; then
16063 ac_lo= ac_hi=
16064 break
16065 fi
16066 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16067fi
ac1cb8d3 16068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16069 done
16070else
16071 echo "$as_me: failed program was:" >&5
16072sed 's/^/| /' conftest.$ac_ext >&5
16073
16074cat >conftest.$ac_ext <<_ACEOF
16075/* confdefs.h. */
16076_ACEOF
16077cat confdefs.h >>conftest.$ac_ext
16078cat >>conftest.$ac_ext <<_ACEOF
16079/* end confdefs.h. */
16080$ac_includes_default
16081int
16082main ()
16083{
16084static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16085test_array [0] = 0
16086
16087 ;
16088 return 0;
16089}
16090_ACEOF
16091rm -f conftest.$ac_objext
16092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16093 (eval $ac_compile) 2>conftest.er1
a848cd7e 16094 ac_status=$?
ac1cb8d3
VS
16095 grep -v '^ *+' conftest.er1 >conftest.err
16096 rm -f conftest.er1
16097 cat conftest.err >&5
a848cd7e
SC
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
4d4ff94c 16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_hi=-1 ac_mid=-1
16113 while :; do
16114 cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
16120$ac_includes_default
16121int
16122main ()
16123{
16124static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16125test_array [0] = 0
16126
16127 ;
16128 return 0;
16129}
16130_ACEOF
16131rm -f conftest.$ac_objext
16132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16133 (eval $ac_compile) 2>conftest.er1
a848cd7e 16134 ac_status=$?
ac1cb8d3
VS
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
a848cd7e
SC
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
4d4ff94c 16140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; } &&
16146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_lo=$ac_mid; break
16153else
16154 echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16158 if test $ac_mid -le $ac_hi; then
16159 ac_lo= ac_hi=
16160 break
16161 fi
16162 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16163fi
ac1cb8d3 16164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16165 done
16166else
16167 echo "$as_me: failed program was:" >&5
16168sed 's/^/| /' conftest.$ac_ext >&5
16169
16170ac_lo= ac_hi=
16171fi
ac1cb8d3 16172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16173fi
ac1cb8d3 16174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16175# Binary search between lo and hi bounds.
16176while test "x$ac_lo" != "x$ac_hi"; do
16177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16178 cat >conftest.$ac_ext <<_ACEOF
16179/* confdefs.h. */
16180_ACEOF
16181cat confdefs.h >>conftest.$ac_ext
16182cat >>conftest.$ac_ext <<_ACEOF
16183/* end confdefs.h. */
16184$ac_includes_default
16185int
16186main ()
16187{
16188static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16189test_array [0] = 0
16190
16191 ;
16192 return 0;
16193}
16194_ACEOF
16195rm -f conftest.$ac_objext
16196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16197 (eval $ac_compile) 2>conftest.er1
a848cd7e 16198 ac_status=$?
ac1cb8d3
VS
16199 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1
16201 cat conftest.err >&5
a848cd7e
SC
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
4d4ff94c 16204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_hi=$ac_mid
16217else
16218 echo "$as_me: failed program was:" >&5
16219sed 's/^/| /' conftest.$ac_ext >&5
16220
16221ac_lo=`expr '(' $ac_mid ')' + 1`
16222fi
ac1cb8d3 16223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16224done
16225case $ac_lo in
16226?*) ac_cv_sizeof_long=$ac_lo;;
16227'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16228See \`config.log' for more details." >&5
16229echo "$as_me: error: cannot compute sizeof (long), 77
16230See \`config.log' for more details." >&2;}
16231 { (exit 1); exit 1; }; } ;;
16232esac
16233else
16234 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
16235 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16236echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16237 { (exit 1); exit 1; }; }
16238else
16239 cat >conftest.$ac_ext <<_ACEOF
16240/* confdefs.h. */
16241_ACEOF
16242cat confdefs.h >>conftest.$ac_ext
16243cat >>conftest.$ac_ext <<_ACEOF
16244/* end confdefs.h. */
16245$ac_includes_default
16246long longval () { return (long) (sizeof (long)); }
16247unsigned long ulongval () { return (long) (sizeof (long)); }
16248#include <stdio.h>
16249#include <stdlib.h>
16250int
16251main ()
16252{
16253
16254 FILE *f = fopen ("conftest.val", "w");
16255 if (! f)
16256 exit (1);
16257 if (((long) (sizeof (long))) < 0)
16258 {
16259 long i = longval ();
16260 if (i != ((long) (sizeof (long))))
16261 exit (1);
16262 fprintf (f, "%ld\n", i);
16263 }
16264 else
16265 {
16266 unsigned long i = ulongval ();
16267 if (i != ((long) (sizeof (long))))
16268 exit (1);
16269 fprintf (f, "%lu\n", i);
16270 }
16271 exit (ferror (f) || fclose (f) != 0);
16272
16273 ;
16274 return 0;
16275}
16276_ACEOF
16277rm -f conftest$ac_exeext
16278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16279 (eval $ac_link) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_sizeof_long=`cat conftest.val`
16289else
16290 echo "$as_me: program exited with status $ac_status" >&5
16291echo "$as_me: failed program was:" >&5
16292sed 's/^/| /' conftest.$ac_ext >&5
16293
16294( exit $ac_status )
16295{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16296See \`config.log' for more details." >&5
16297echo "$as_me: error: cannot compute sizeof (long), 77
16298See \`config.log' for more details." >&2;}
16299 { (exit 1); exit 1; }; }
16300fi
ac1cb8d3 16301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16302fi
16303fi
16304rm -f conftest.val
16305else
16306 ac_cv_sizeof_long=0
16307fi
16308fi
16309echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16310echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16311cat >>confdefs.h <<_ACEOF
16312#define SIZEOF_LONG $ac_cv_sizeof_long
16313_ACEOF
16314
16315
16316echo "$as_me:$LINENO: checking for size_t" >&5
16317echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16318if test "${ac_cv_type_size_t+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16320else
16321 cat >conftest.$ac_ext <<_ACEOF
16322/* confdefs.h. */
16323_ACEOF
16324cat confdefs.h >>conftest.$ac_ext
16325cat >>conftest.$ac_ext <<_ACEOF
16326/* end confdefs.h. */
16327$ac_includes_default
16328int
16329main ()
16330{
16331if ((size_t *) 0)
16332 return 0;
16333if (sizeof (size_t))
16334 return 0;
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339rm -f conftest.$ac_objext
16340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16341 (eval $ac_compile) 2>conftest.er1
a848cd7e 16342 ac_status=$?
ac1cb8d3
VS
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
a848cd7e
SC
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
4d4ff94c 16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_cv_type_size_t=yes
16361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365ac_cv_type_size_t=no
16366fi
ac1cb8d3 16367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16368fi
16369echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16370echo "${ECHO_T}$ac_cv_type_size_t" >&6
16371
16372echo "$as_me:$LINENO: checking size of size_t" >&5
16373echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16374if test "${ac_cv_sizeof_size_t+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376else
16377 if test "$ac_cv_type_size_t" = yes; then
16378 # The cast to unsigned long works around a bug in the HP C Compiler
16379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16381 # This bug is HP SR number 8606223364.
16382 if test "$cross_compiling" = yes; then
16383 # Depending upon the size, compute the lo and hi bounds.
16384cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390$ac_includes_default
16391int
16392main ()
16393{
16394static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16395test_array [0] = 0
16396
16397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext
16402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16403 (eval $ac_compile) 2>conftest.er1
a848cd7e 16404 ac_status=$?
ac1cb8d3
VS
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
a848cd7e
SC
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
4d4ff94c 16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_lo=0 ac_mid=0
16423 while :; do
16424 cat >conftest.$ac_ext <<_ACEOF
16425/* confdefs.h. */
16426_ACEOF
16427cat confdefs.h >>conftest.$ac_ext
16428cat >>conftest.$ac_ext <<_ACEOF
16429/* end confdefs.h. */
16430$ac_includes_default
16431int
16432main ()
16433{
16434static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16435test_array [0] = 0
16436
16437 ;
16438 return 0;
16439}
16440_ACEOF
16441rm -f conftest.$ac_objext
16442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16443 (eval $ac_compile) 2>conftest.er1
a848cd7e 16444 ac_status=$?
ac1cb8d3
VS
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
a848cd7e
SC
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
4d4ff94c 16450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
16456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16459 ac_status=$?
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16462 ac_hi=$ac_mid; break
16463else
16464 echo "$as_me: failed program was:" >&5
16465sed 's/^/| /' conftest.$ac_ext >&5
16466
16467ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16468 if test $ac_lo -le $ac_mid; then
16469 ac_lo= ac_hi=
16470 break
16471 fi
16472 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16473fi
ac1cb8d3 16474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16475 done
16476else
16477 echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
16479
16480cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486$ac_includes_default
16487int
16488main ()
16489{
16490static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16491test_array [0] = 0
16492
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16499 (eval $ac_compile) 2>conftest.er1
a848cd7e 16500 ac_status=$?
ac1cb8d3
VS
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
a848cd7e
SC
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
4d4ff94c 16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16518 ac_hi=-1 ac_mid=-1
16519 while :; do
16520 cat >conftest.$ac_ext <<_ACEOF
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
16526$ac_includes_default
16527int
16528main ()
16529{
16530static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16531test_array [0] = 0
16532
16533 ;
16534 return 0;
16535}
16536_ACEOF
16537rm -f conftest.$ac_objext
16538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16539 (eval $ac_compile) 2>conftest.er1
a848cd7e 16540 ac_status=$?
ac1cb8d3
VS
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
a848cd7e
SC
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
4d4ff94c 16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_lo=$ac_mid; break
16559else
16560 echo "$as_me: failed program was:" >&5
16561sed 's/^/| /' conftest.$ac_ext >&5
16562
16563ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16564 if test $ac_mid -le $ac_hi; then
16565 ac_lo= ac_hi=
16566 break
16567 fi
16568 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16569fi
ac1cb8d3 16570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16571 done
16572else
16573 echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
16576ac_lo= ac_hi=
16577fi
ac1cb8d3 16578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16579fi
ac1cb8d3 16580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16581# Binary search between lo and hi bounds.
16582while test "x$ac_lo" != "x$ac_hi"; do
16583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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); } &&
4d4ff94c 16610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 ac_hi=$ac_mid
16623else
16624 echo "$as_me: failed program was:" >&5
16625sed 's/^/| /' conftest.$ac_ext >&5
16626
16627ac_lo=`expr '(' $ac_mid ')' + 1`
16628fi
ac1cb8d3 16629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16630done
16631case $ac_lo in
16632?*) ac_cv_sizeof_size_t=$ac_lo;;
16633'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16634See \`config.log' for more details." >&5
16635echo "$as_me: error: cannot compute sizeof (size_t), 77
16636See \`config.log' for more details." >&2;}
16637 { (exit 1); exit 1; }; } ;;
16638esac
16639else
16640 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
16641 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16642echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16643 { (exit 1); exit 1; }; }
16644else
16645 cat >conftest.$ac_ext <<_ACEOF
16646/* confdefs.h. */
16647_ACEOF
16648cat confdefs.h >>conftest.$ac_ext
16649cat >>conftest.$ac_ext <<_ACEOF
16650/* end confdefs.h. */
16651$ac_includes_default
16652long longval () { return (long) (sizeof (size_t)); }
16653unsigned long ulongval () { return (long) (sizeof (size_t)); }
16654#include <stdio.h>
16655#include <stdlib.h>
16656int
16657main ()
16658{
16659
16660 FILE *f = fopen ("conftest.val", "w");
16661 if (! f)
16662 exit (1);
16663 if (((long) (sizeof (size_t))) < 0)
16664 {
16665 long i = longval ();
16666 if (i != ((long) (sizeof (size_t))))
16667 exit (1);
16668 fprintf (f, "%ld\n", i);
16669 }
16670 else
16671 {
16672 unsigned long i = ulongval ();
16673 if (i != ((long) (sizeof (size_t))))
16674 exit (1);
16675 fprintf (f, "%lu\n", i);
16676 }
16677 exit (ferror (f) || fclose (f) != 0);
16678
16679 ;
16680 return 0;
16681}
16682_ACEOF
16683rm -f conftest$ac_exeext
16684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16685 (eval $ac_link) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_cv_sizeof_size_t=`cat conftest.val`
16695else
16696 echo "$as_me: program exited with status $ac_status" >&5
16697echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700( exit $ac_status )
16701{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16702See \`config.log' for more details." >&5
16703echo "$as_me: error: cannot compute sizeof (size_t), 77
16704See \`config.log' for more details." >&2;}
16705 { (exit 1); exit 1; }; }
16706fi
ac1cb8d3 16707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16708fi
16709fi
16710rm -f conftest.val
16711else
16712 ac_cv_sizeof_size_t=0
16713fi
16714fi
16715echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16716echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16717cat >>confdefs.h <<_ACEOF
16718#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16719_ACEOF
16720
16721
16722
16723case "${host}" in
16724 arm-*-linux* )
16725 echo "$as_me:$LINENO: checking for long long" >&5
16726echo $ECHO_N "checking for long long... $ECHO_C" >&6
16727if test "${ac_cv_type_long_long+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16729else
16730 cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
16736$ac_includes_default
16737int
16738main ()
16739{
16740if ((long long *) 0)
16741 return 0;
16742if (sizeof (long long))
16743 return 0;
16744 ;
16745 return 0;
16746}
16747_ACEOF
16748rm -f conftest.$ac_objext
16749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16750 (eval $ac_compile) 2>conftest.er1
a848cd7e 16751 ac_status=$?
ac1cb8d3
VS
16752 grep -v '^ *+' conftest.er1 >conftest.err
16753 rm -f conftest.er1
16754 cat conftest.err >&5
a848cd7e
SC
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
4d4ff94c 16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 ac_cv_type_long_long=yes
16770else
16771 echo "$as_me: failed program was:" >&5
16772sed 's/^/| /' conftest.$ac_ext >&5
16773
16774ac_cv_type_long_long=no
16775fi
ac1cb8d3 16776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16777fi
16778echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16779echo "${ECHO_T}$ac_cv_type_long_long" >&6
16780
16781echo "$as_me:$LINENO: checking size of long long" >&5
16782echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16783if test "${ac_cv_sizeof_long_long+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785else
16786 if test "$ac_cv_type_long_long" = yes; then
16787 # The cast to unsigned long works around a bug in the HP C Compiler
16788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16790 # This bug is HP SR number 8606223364.
16791 if test "$cross_compiling" = yes; then
16792 # Depending upon the size, compute the lo and hi bounds.
16793cat >conftest.$ac_ext <<_ACEOF
16794/* confdefs.h. */
16795_ACEOF
16796cat confdefs.h >>conftest.$ac_ext
16797cat >>conftest.$ac_ext <<_ACEOF
16798/* end confdefs.h. */
16799$ac_includes_default
16800int
16801main ()
16802{
16803static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16804test_array [0] = 0
16805
16806 ;
16807 return 0;
16808}
16809_ACEOF
16810rm -f conftest.$ac_objext
16811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16812 (eval $ac_compile) 2>conftest.er1
a848cd7e 16813 ac_status=$?
ac1cb8d3
VS
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
a848cd7e
SC
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
4d4ff94c 16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_lo=0 ac_mid=0
16832 while :; do
16833 cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
16839$ac_includes_default
16840int
16841main ()
16842{
16843static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16844test_array [0] = 0
16845
16846 ;
16847 return 0;
16848}
16849_ACEOF
16850rm -f conftest.$ac_objext
16851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16852 (eval $ac_compile) 2>conftest.er1
a848cd7e 16853 ac_status=$?
ac1cb8d3
VS
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
a848cd7e
SC
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
4d4ff94c 16859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_hi=$ac_mid; break
16872else
16873 echo "$as_me: failed program was:" >&5
16874sed 's/^/| /' conftest.$ac_ext >&5
16875
16876ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16877 if test $ac_lo -le $ac_mid; then
16878 ac_lo= ac_hi=
16879 break
16880 fi
16881 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16882fi
ac1cb8d3 16883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16884 done
16885else
16886 echo "$as_me: failed program was:" >&5
16887sed 's/^/| /' conftest.$ac_ext >&5
16888
16889cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895$ac_includes_default
16896int
16897main ()
16898{
16899static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16900test_array [0] = 0
16901
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906rm -f conftest.$ac_objext
16907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16908 (eval $ac_compile) 2>conftest.er1
a848cd7e 16909 ac_status=$?
ac1cb8d3
VS
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
a848cd7e
SC
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
4d4ff94c 16915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_hi=-1 ac_mid=-1
16928 while :; do
16929 cat >conftest.$ac_ext <<_ACEOF
16930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
16935$ac_includes_default
16936int
16937main ()
16938{
16939static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16940test_array [0] = 0
16941
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext
16947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16948 (eval $ac_compile) 2>conftest.er1
a848cd7e 16949 ac_status=$?
ac1cb8d3
VS
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
a848cd7e
SC
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
4d4ff94c 16955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } &&
16961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_lo=$ac_mid; break
16968else
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16973 if test $ac_mid -le $ac_hi; then
16974 ac_lo= ac_hi=
16975 break
16976 fi
16977 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16978fi
ac1cb8d3 16979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16980 done
16981else
16982 echo "$as_me: failed program was:" >&5
16983sed 's/^/| /' conftest.$ac_ext >&5
16984
16985ac_lo= ac_hi=
16986fi
ac1cb8d3 16987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16988fi
ac1cb8d3 16989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16990# Binary search between lo and hi bounds.
16991while test "x$ac_lo" != "x$ac_hi"; do
16992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16993 cat >conftest.$ac_ext <<_ACEOF
16994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
16999$ac_includes_default
17000int
17001main ()
17002{
17003static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17004test_array [0] = 0
17005
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext
17011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17012 (eval $ac_compile) 2>conftest.er1
a848cd7e 17013 ac_status=$?
ac1cb8d3
VS
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
a848cd7e
SC
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
4d4ff94c 17019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_hi=$ac_mid
17032else
17033 echo "$as_me: failed program was:" >&5
17034sed 's/^/| /' conftest.$ac_ext >&5
17035
17036ac_lo=`expr '(' $ac_mid ')' + 1`
17037fi
ac1cb8d3 17038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17039done
17040case $ac_lo in
17041?*) ac_cv_sizeof_long_long=$ac_lo;;
17042'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17043See \`config.log' for more details." >&5
17044echo "$as_me: error: cannot compute sizeof (long long), 77
17045See \`config.log' for more details." >&2;}
17046 { (exit 1); exit 1; }; } ;;
17047esac
17048else
17049 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
17050 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17051echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17052 { (exit 1); exit 1; }; }
17053else
17054 cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060$ac_includes_default
17061long longval () { return (long) (sizeof (long long)); }
17062unsigned long ulongval () { return (long) (sizeof (long long)); }
17063#include <stdio.h>
17064#include <stdlib.h>
17065int
17066main ()
17067{
17068
17069 FILE *f = fopen ("conftest.val", "w");
17070 if (! f)
17071 exit (1);
17072 if (((long) (sizeof (long long))) < 0)
17073 {
17074 long i = longval ();
17075 if (i != ((long) (sizeof (long long))))
17076 exit (1);
17077 fprintf (f, "%ld\n", i);
17078 }
17079 else
17080 {
17081 unsigned long i = ulongval ();
17082 if (i != ((long) (sizeof (long long))))
17083 exit (1);
17084 fprintf (f, "%lu\n", i);
17085 }
17086 exit (ferror (f) || fclose (f) != 0);
17087
17088 ;
17089 return 0;
17090}
17091_ACEOF
17092rm -f conftest$ac_exeext
17093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17094 (eval $ac_link) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_sizeof_long_long=`cat conftest.val`
17104else
17105 echo "$as_me: program exited with status $ac_status" >&5
17106echo "$as_me: failed program was:" >&5
17107sed 's/^/| /' conftest.$ac_ext >&5
17108
17109( exit $ac_status )
17110{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17111See \`config.log' for more details." >&5
17112echo "$as_me: error: cannot compute sizeof (long long), 77
17113See \`config.log' for more details." >&2;}
17114 { (exit 1); exit 1; }; }
17115fi
ac1cb8d3 17116rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17117fi
17118fi
17119rm -f conftest.val
17120else
17121 ac_cv_sizeof_long_long=0
17122fi
17123fi
17124echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17125echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17126cat >>confdefs.h <<_ACEOF
17127#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17128_ACEOF
17129
17130
17131 ;;
17132 *-hp-hpux* )
17133 echo "$as_me:$LINENO: checking for long long" >&5
17134echo $ECHO_N "checking for long long... $ECHO_C" >&6
17135if test "${ac_cv_type_long_long+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137else
17138 cat >conftest.$ac_ext <<_ACEOF
17139/* confdefs.h. */
17140_ACEOF
17141cat confdefs.h >>conftest.$ac_ext
17142cat >>conftest.$ac_ext <<_ACEOF
17143/* end confdefs.h. */
17144$ac_includes_default
17145int
17146main ()
17147{
17148if ((long long *) 0)
17149 return 0;
17150if (sizeof (long long))
17151 return 0;
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156rm -f conftest.$ac_objext
17157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17158 (eval $ac_compile) 2>conftest.er1
a848cd7e 17159 ac_status=$?
ac1cb8d3
VS
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
a848cd7e
SC
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
4d4ff94c 17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 ac_cv_type_long_long=yes
17178else
17179 echo "$as_me: failed program was:" >&5
17180sed 's/^/| /' conftest.$ac_ext >&5
17181
17182ac_cv_type_long_long=no
17183fi
ac1cb8d3 17184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17185fi
17186echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17187echo "${ECHO_T}$ac_cv_type_long_long" >&6
17188
17189echo "$as_me:$LINENO: checking size of long long" >&5
17190echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17191if test "${ac_cv_sizeof_long_long+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17193else
17194 if test "$ac_cv_type_long_long" = yes; then
17195 # The cast to unsigned long works around a bug in the HP C Compiler
17196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17198 # This bug is HP SR number 8606223364.
17199 if test "$cross_compiling" = yes; then
17200 # Depending upon the size, compute the lo and hi bounds.
17201cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
17207$ac_includes_default
17208int
17209main ()
17210{
17211static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17212test_array [0] = 0
17213
17214 ;
17215 return 0;
17216}
17217_ACEOF
17218rm -f conftest.$ac_objext
17219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17220 (eval $ac_compile) 2>conftest.er1
a848cd7e 17221 ac_status=$?
ac1cb8d3
VS
17222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
a848cd7e
SC
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } &&
4d4ff94c 17227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_lo=0 ac_mid=0
17240 while :; do
17241 cat >conftest.$ac_ext <<_ACEOF
17242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
17247$ac_includes_default
17248int
17249main ()
17250{
17251static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17252test_array [0] = 0
17253
17254 ;
17255 return 0;
17256}
17257_ACEOF
17258rm -f conftest.$ac_objext
17259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17260 (eval $ac_compile) 2>conftest.er1
a848cd7e 17261 ac_status=$?
ac1cb8d3
VS
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
a848cd7e
SC
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
4d4ff94c 17267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_hi=$ac_mid; break
17280else
17281 echo "$as_me: failed program was:" >&5
17282sed 's/^/| /' conftest.$ac_ext >&5
17283
17284ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17285 if test $ac_lo -le $ac_mid; then
17286 ac_lo= ac_hi=
17287 break
17288 fi
17289 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17290fi
ac1cb8d3 17291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17292 done
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297cat >conftest.$ac_ext <<_ACEOF
17298/* confdefs.h. */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h. */
17303$ac_includes_default
17304int
17305main ()
17306{
17307static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17308test_array [0] = 0
17309
17310 ;
17311 return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext
17315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17316 (eval $ac_compile) 2>conftest.er1
a848cd7e 17317 ac_status=$?
ac1cb8d3
VS
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
a848cd7e
SC
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
4d4ff94c 17323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_hi=-1 ac_mid=-1
17336 while :; do
17337 cat >conftest.$ac_ext <<_ACEOF
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343$ac_includes_default
17344int
17345main ()
17346{
17347static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17348test_array [0] = 0
17349
17350 ;
17351 return 0;
17352}
17353_ACEOF
17354rm -f conftest.$ac_objext
17355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17356 (eval $ac_compile) 2>conftest.er1
a848cd7e 17357 ac_status=$?
ac1cb8d3
VS
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
a848cd7e
SC
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
4d4ff94c 17363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 ac_lo=$ac_mid; break
17376else
17377 echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17381 if test $ac_mid -le $ac_hi; then
17382 ac_lo= ac_hi=
17383 break
17384 fi
17385 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17386fi
ac1cb8d3 17387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17388 done
17389else
17390 echo "$as_me: failed program was:" >&5
17391sed 's/^/| /' conftest.$ac_ext >&5
17392
17393ac_lo= ac_hi=
17394fi
ac1cb8d3 17395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17396fi
ac1cb8d3 17397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17398# Binary search between lo and hi bounds.
17399while test "x$ac_lo" != "x$ac_hi"; do
17400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17401 cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407$ac_includes_default
17408int
17409main ()
17410{
17411static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17412test_array [0] = 0
17413
17414 ;
17415 return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext
17419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17420 (eval $ac_compile) 2>conftest.er1
a848cd7e 17421 ac_status=$?
ac1cb8d3
VS
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
a848cd7e
SC
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
4d4ff94c 17427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_hi=$ac_mid
17440else
17441 echo "$as_me: failed program was:" >&5
17442sed 's/^/| /' conftest.$ac_ext >&5
17443
17444ac_lo=`expr '(' $ac_mid ')' + 1`
17445fi
ac1cb8d3 17446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17447done
17448case $ac_lo in
17449?*) ac_cv_sizeof_long_long=$ac_lo;;
17450'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17451See \`config.log' for more details." >&5
17452echo "$as_me: error: cannot compute sizeof (long long), 77
17453See \`config.log' for more details." >&2;}
17454 { (exit 1); exit 1; }; } ;;
17455esac
17456else
17457 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
17458 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17459echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17460 { (exit 1); exit 1; }; }
17461else
17462 cat >conftest.$ac_ext <<_ACEOF
17463/* confdefs.h. */
17464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
17467/* end confdefs.h. */
17468$ac_includes_default
17469long longval () { return (long) (sizeof (long long)); }
17470unsigned long ulongval () { return (long) (sizeof (long long)); }
17471#include <stdio.h>
17472#include <stdlib.h>
17473int
17474main ()
17475{
17476
17477 FILE *f = fopen ("conftest.val", "w");
17478 if (! f)
17479 exit (1);
17480 if (((long) (sizeof (long long))) < 0)
17481 {
17482 long i = longval ();
17483 if (i != ((long) (sizeof (long long))))
17484 exit (1);
17485 fprintf (f, "%ld\n", i);
17486 }
17487 else
17488 {
17489 unsigned long i = ulongval ();
17490 if (i != ((long) (sizeof (long long))))
17491 exit (1);
17492 fprintf (f, "%lu\n", i);
17493 }
17494 exit (ferror (f) || fclose (f) != 0);
17495
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest$ac_exeext
17501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17502 (eval $ac_link) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_sizeof_long_long=`cat conftest.val`
17512else
17513 echo "$as_me: program exited with status $ac_status" >&5
17514echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517( exit $ac_status )
17518{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17519See \`config.log' for more details." >&5
17520echo "$as_me: error: cannot compute sizeof (long long), 77
17521See \`config.log' for more details." >&2;}
17522 { (exit 1); exit 1; }; }
17523fi
ac1cb8d3 17524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17525fi
17526fi
17527rm -f conftest.val
17528else
17529 ac_cv_sizeof_long_long=0
17530fi
17531fi
17532echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17533echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17534cat >>confdefs.h <<_ACEOF
17535#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17536_ACEOF
17537
17538
17539 if test "$ac_cv_sizeof_long_long" != "0"; then
17540 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17541 fi
17542 ;;
17543 * )
17544 echo "$as_me:$LINENO: checking for long long" >&5
17545echo $ECHO_N "checking for long long... $ECHO_C" >&6
17546if test "${ac_cv_type_long_long+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548else
17549 cat >conftest.$ac_ext <<_ACEOF
17550/* confdefs.h. */
17551_ACEOF
17552cat confdefs.h >>conftest.$ac_ext
17553cat >>conftest.$ac_ext <<_ACEOF
17554/* end confdefs.h. */
17555$ac_includes_default
17556int
17557main ()
17558{
17559if ((long long *) 0)
17560 return 0;
17561if (sizeof (long long))
17562 return 0;
17563 ;
17564 return 0;
17565}
17566_ACEOF
17567rm -f conftest.$ac_objext
17568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17569 (eval $ac_compile) 2>conftest.er1
a848cd7e 17570 ac_status=$?
ac1cb8d3
VS
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
a848cd7e
SC
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
4d4ff94c 17576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_type_long_long=yes
17589else
17590 echo "$as_me: failed program was:" >&5
17591sed 's/^/| /' conftest.$ac_ext >&5
17592
17593ac_cv_type_long_long=no
17594fi
ac1cb8d3 17595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17596fi
17597echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17598echo "${ECHO_T}$ac_cv_type_long_long" >&6
17599
17600echo "$as_me:$LINENO: checking size of long long" >&5
17601echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17602if test "${ac_cv_sizeof_long_long+set}" = set; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17604else
17605 if test "$ac_cv_type_long_long" = yes; then
17606 # The cast to unsigned long works around a bug in the HP C Compiler
17607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17609 # This bug is HP SR number 8606223364.
17610 if test "$cross_compiling" = yes; then
17611 # Depending upon the size, compute the lo and hi bounds.
17612cat >conftest.$ac_ext <<_ACEOF
17613/* confdefs.h. */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h. */
17618$ac_includes_default
17619int
17620main ()
17621{
17622static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17623test_array [0] = 0
17624
17625 ;
17626 return 0;
17627}
17628_ACEOF
17629rm -f conftest.$ac_objext
17630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17631 (eval $ac_compile) 2>conftest.er1
a848cd7e 17632 ac_status=$?
ac1cb8d3
VS
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
a848cd7e
SC
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
4d4ff94c 17638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; } &&
17644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 ac_lo=0 ac_mid=0
17651 while :; do
17652 cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658$ac_includes_default
17659int
17660main ()
17661{
17662static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17663test_array [0] = 0
17664
17665 ;
17666 return 0;
17667}
17668_ACEOF
17669rm -f conftest.$ac_objext
17670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17671 (eval $ac_compile) 2>conftest.er1
a848cd7e 17672 ac_status=$?
ac1cb8d3
VS
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
a848cd7e
SC
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
4d4ff94c 17678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_hi=$ac_mid; break
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17696 if test $ac_lo -le $ac_mid; then
17697 ac_lo= ac_hi=
17698 break
17699 fi
17700 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17701fi
ac1cb8d3 17702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17703 done
17704else
17705 echo "$as_me: failed program was:" >&5
17706sed 's/^/| /' conftest.$ac_ext >&5
17707
17708cat >conftest.$ac_ext <<_ACEOF
17709/* confdefs.h. */
17710_ACEOF
17711cat confdefs.h >>conftest.$ac_ext
17712cat >>conftest.$ac_ext <<_ACEOF
17713/* end confdefs.h. */
17714$ac_includes_default
17715int
17716main ()
17717{
17718static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17719test_array [0] = 0
17720
17721 ;
17722 return 0;
17723}
17724_ACEOF
17725rm -f conftest.$ac_objext
17726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17727 (eval $ac_compile) 2>conftest.er1
a848cd7e 17728 ac_status=$?
ac1cb8d3
VS
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
a848cd7e
SC
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
4d4ff94c 17734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; } &&
17740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746 ac_hi=-1 ac_mid=-1
17747 while :; do
17748 cat >conftest.$ac_ext <<_ACEOF
17749/* confdefs.h. */
17750_ACEOF
17751cat confdefs.h >>conftest.$ac_ext
17752cat >>conftest.$ac_ext <<_ACEOF
17753/* end confdefs.h. */
17754$ac_includes_default
17755int
17756main ()
17757{
17758static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17759test_array [0] = 0
17760
17761 ;
17762 return 0;
17763}
17764_ACEOF
17765rm -f conftest.$ac_objext
17766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17767 (eval $ac_compile) 2>conftest.er1
a848cd7e 17768 ac_status=$?
ac1cb8d3
VS
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
a848cd7e
SC
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
4d4ff94c 17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_lo=$ac_mid; break
17787else
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17792 if test $ac_mid -le $ac_hi; then
17793 ac_lo= ac_hi=
17794 break
17795 fi
17796 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17797fi
ac1cb8d3 17798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17799 done
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
17804ac_lo= ac_hi=
17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17807fi
ac1cb8d3 17808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17809# Binary search between lo and hi bounds.
17810while test "x$ac_lo" != "x$ac_hi"; do
17811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17812 cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h. */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
17818$ac_includes_default
17819int
17820main ()
17821{
17822static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17823test_array [0] = 0
17824
17825 ;
17826 return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17831 (eval $ac_compile) 2>conftest.er1
a848cd7e 17832 ac_status=$?
ac1cb8d3
VS
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
a848cd7e
SC
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
4d4ff94c 17838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_hi=$ac_mid
17851else
17852 echo "$as_me: failed program was:" >&5
17853sed 's/^/| /' conftest.$ac_ext >&5
17854
17855ac_lo=`expr '(' $ac_mid ')' + 1`
17856fi
ac1cb8d3 17857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17858done
17859case $ac_lo in
17860?*) ac_cv_sizeof_long_long=$ac_lo;;
17861'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17862See \`config.log' for more details." >&5
17863echo "$as_me: error: cannot compute sizeof (long long), 77
17864See \`config.log' for more details." >&2;}
17865 { (exit 1); exit 1; }; } ;;
17866esac
17867else
17868 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
17869 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17870echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17871 { (exit 1); exit 1; }; }
17872else
17873 cat >conftest.$ac_ext <<_ACEOF
17874/* confdefs.h. */
17875_ACEOF
17876cat confdefs.h >>conftest.$ac_ext
17877cat >>conftest.$ac_ext <<_ACEOF
17878/* end confdefs.h. */
17879$ac_includes_default
17880long longval () { return (long) (sizeof (long long)); }
17881unsigned long ulongval () { return (long) (sizeof (long long)); }
17882#include <stdio.h>
17883#include <stdlib.h>
17884int
17885main ()
17886{
17887
17888 FILE *f = fopen ("conftest.val", "w");
17889 if (! f)
17890 exit (1);
17891 if (((long) (sizeof (long long))) < 0)
17892 {
17893 long i = longval ();
17894 if (i != ((long) (sizeof (long long))))
17895 exit (1);
17896 fprintf (f, "%ld\n", i);
17897 }
17898 else
17899 {
17900 unsigned long i = ulongval ();
17901 if (i != ((long) (sizeof (long long))))
17902 exit (1);
17903 fprintf (f, "%lu\n", i);
17904 }
17905 exit (ferror (f) || fclose (f) != 0);
17906
17907 ;
17908 return 0;
17909}
17910_ACEOF
17911rm -f conftest$ac_exeext
17912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17913 (eval $ac_link) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_sizeof_long_long=`cat conftest.val`
17923else
17924 echo "$as_me: program exited with status $ac_status" >&5
17925echo "$as_me: failed program was:" >&5
17926sed 's/^/| /' conftest.$ac_ext >&5
17927
17928( exit $ac_status )
17929{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17930See \`config.log' for more details." >&5
17931echo "$as_me: error: cannot compute sizeof (long long), 77
17932See \`config.log' for more details." >&2;}
17933 { (exit 1); exit 1; }; }
17934fi
ac1cb8d3 17935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17936fi
17937fi
17938rm -f conftest.val
17939else
17940 ac_cv_sizeof_long_long=0
17941fi
17942fi
17943echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17944echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17945cat >>confdefs.h <<_ACEOF
17946#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17947_ACEOF
17948
17949
17950esac
17951
17952echo "$as_me:$LINENO: checking size of wchar_t" >&5
17953echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17954if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957
17958 if test "$cross_compiling" = yes; then
17959
17960 case "${host}" in
17961 *-pc-msdosdjgpp )
17962 wx_cv_sizeof_wchar_t=0
17963 ;;
17964 * )
17965 wx_cv_sizeof_wchar_t=4
17966 ;;
17967 esac
17968
17969
17970else
17971 cat >conftest.$ac_ext <<_ACEOF
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
17977
17978 /* DJGPP only has fake wchar_t: */
17979 #ifdef __DJGPP__
17980 # error "fake wchar_t"
17981 #endif
17982 #ifdef HAVE_WCHAR_H
17983 # ifdef __CYGWIN__
17984 # include <stddef.h>
17985 # endif
17986 # include <wchar.h>
17987 #endif
17988 #ifdef HAVE_STDLIB_H
17989 # include <stdlib.h>
17990 #endif
17991 #include <stdio.h>
17992 int main()
17993 {
17994 FILE *f=fopen("conftestval", "w");
17995 if (!f) exit(1);
17996 fprintf(f, "%i", sizeof(wchar_t));
17997 exit(0);
17998 }
17999
18000_ACEOF
18001rm -f conftest$ac_exeext
18002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 wx_cv_sizeof_wchar_t=`cat conftestval`
18013else
18014 echo "$as_me: program exited with status $ac_status" >&5
18015echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018( exit $ac_status )
18019wx_cv_sizeof_wchar_t=0
18020fi
ac1cb8d3 18021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18022fi
18023
18024fi
18025echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18026echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18027
18028cat >>confdefs.h <<_ACEOF
18029#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18030_ACEOF
18031
18032
18033# Check whether --enable-largefile or --disable-largefile was given.
18034if test "${enable_largefile+set}" = set; then
18035 enableval="$enable_largefile"
18036
18037fi;
18038if test "$enable_largefile" != no; then
18039 wx_largefile=no
18040
18041 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18042echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18043if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045else
18046
18047 cat >conftest.$ac_ext <<_ACEOF
18048/* confdefs.h. */
18049_ACEOF
18050cat confdefs.h >>conftest.$ac_ext
18051cat >>conftest.$ac_ext <<_ACEOF
18052/* end confdefs.h. */
18053#define _FILE_OFFSET_BITS 64
18054 #include <sys/types.h>
18055int
18056main ()
18057{
18058typedef struct {
18059 unsigned int field: sizeof(off_t) == 8;
18060} wxlf;
18061
18062 ;
18063 return 0;
18064}
18065_ACEOF
18066rm -f conftest.$ac_objext
18067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18068 (eval $ac_compile) 2>conftest.er1
a848cd7e 18069 ac_status=$?
ac1cb8d3
VS
18070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
a848cd7e
SC
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
4d4ff94c 18075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; }; then
18087 ac_cv_sys_file_offset_bits=64
18088else
18089 echo "$as_me: failed program was:" >&5
18090sed 's/^/| /' conftest.$ac_ext >&5
18091
18092ac_cv_sys_file_offset_bits=no
18093fi
ac1cb8d3 18094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18095
18096
18097fi
18098echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18099echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18100
18101 if test "$ac_cv_sys_file_offset_bits" != no; then
18102 wx_largefile=yes
18103 cat >>confdefs.h <<_ACEOF
18104#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18105_ACEOF
18106
18107 fi
18108
18109 if test "x$wx_largefile" != "xyes"; then
18110
18111 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18112echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18113if test "${ac_cv_sys_large_files+set}" = set; then
18114 echo $ECHO_N "(cached) $ECHO_C" >&6
18115else
18116
18117 cat >conftest.$ac_ext <<_ACEOF
18118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
18123#define _LARGE_FILES 1
18124 #include <sys/types.h>
18125int
18126main ()
18127{
18128typedef struct {
18129 unsigned int field: sizeof(off_t) == 8;
18130} wxlf;
18131
18132 ;
18133 return 0;
18134}
18135_ACEOF
18136rm -f conftest.$ac_objext
18137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18138 (eval $ac_compile) 2>conftest.er1
a848cd7e 18139 ac_status=$?
ac1cb8d3
VS
18140 grep -v '^ *+' conftest.er1 >conftest.err
18141 rm -f conftest.er1
18142 cat conftest.err >&5
a848cd7e
SC
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } &&
4d4ff94c 18145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } &&
18151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157 ac_cv_sys_large_files=1
18158else
18159 echo "$as_me: failed program was:" >&5
18160sed 's/^/| /' conftest.$ac_ext >&5
18161
18162ac_cv_sys_large_files=no
18163fi
ac1cb8d3 18164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18165
18166
18167fi
18168echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18169echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18170
18171 if test "$ac_cv_sys_large_files" != no; then
18172 wx_largefile=yes
18173 cat >>confdefs.h <<_ACEOF
18174#define _LARGE_FILES $ac_cv_sys_large_files
18175_ACEOF
18176
18177 fi
18178
18179 fi
18180
18181 echo "$as_me:$LINENO: checking if large file support is available" >&5
18182echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18183 if test "x$wx_largefile" = "xyes"; then
18184 cat >>confdefs.h <<\_ACEOF
18185#define HAVE_LARGEFILE_SUPPORT 1
18186_ACEOF
18187
18188 fi
18189 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18190echo "${ECHO_T}$wx_largefile" >&6
18191fi
18192
18193
18194if test "x$wx_largefile" = "xyes"; then
18195 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18196 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18197 else
18198 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18199 fi
18200 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18201fi
18202
18203echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18204echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18205if test "${ac_cv_c_bigendian+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207else
18208 ac_cv_c_bigendian=unknown
18209# See if sys/param.h defines the BYTE_ORDER macro.
18210cat >conftest.$ac_ext <<_ACEOF
18211/* confdefs.h. */
18212_ACEOF
18213cat confdefs.h >>conftest.$ac_ext
18214cat >>conftest.$ac_ext <<_ACEOF
18215/* end confdefs.h. */
18216#include <sys/types.h>
18217#include <sys/param.h>
18218int
18219main ()
18220{
18221
18222#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18223 bogus endian macros
18224#endif
18225 ;
18226 return 0;
18227}
18228_ACEOF
18229rm -f conftest.$ac_objext
18230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18231 (eval $ac_compile) 2>conftest.er1
a848cd7e 18232 ac_status=$?
ac1cb8d3
VS
18233 grep -v '^ *+' conftest.er1 >conftest.err
18234 rm -f conftest.er1
18235 cat conftest.err >&5
a848cd7e
SC
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
4d4ff94c 18238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 # It does; now see whether it defined to BIG_ENDIAN or not.
18251cat >conftest.$ac_ext <<_ACEOF
18252/* confdefs.h. */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h. */
18257#include <sys/types.h>
18258#include <sys/param.h>
18259int
18260main ()
18261{
18262
18263#if BYTE_ORDER != BIG_ENDIAN
18264 not big endian
18265#endif
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext
18271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18272 (eval $ac_compile) 2>conftest.er1
a848cd7e 18273 ac_status=$?
ac1cb8d3
VS
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
a848cd7e
SC
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
4d4ff94c 18279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_c_bigendian=yes
18292else
18293 echo "$as_me: failed program was:" >&5
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
18296ac_cv_c_bigendian=no
18297fi
ac1cb8d3 18298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18299else
18300 echo "$as_me: failed program was:" >&5
18301sed 's/^/| /' conftest.$ac_ext >&5
18302
18303fi
ac1cb8d3 18304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18305if test $ac_cv_c_bigendian = unknown; then
18306if test "$cross_compiling" = yes; then
18307 ac_cv_c_bigendian=unknown
18308else
18309 cat >conftest.$ac_ext <<_ACEOF
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315main () {
18316 /* Are we little or big endian? From Harbison&Steele. */
18317 union
18318 {
18319 long l;
18320 char c[sizeof (long)];
18321 } u;
18322 u.l = 1;
18323 exit (u.c[sizeof (long) - 1] == 1);
18324}
18325_ACEOF
18326rm -f conftest$ac_exeext
18327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18328 (eval $ac_link) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; }; then
18337 ac_cv_c_bigendian=no
18338else
18339 echo "$as_me: program exited with status $ac_status" >&5
18340echo "$as_me: failed program was:" >&5
18341sed 's/^/| /' conftest.$ac_ext >&5
18342
18343( exit $ac_status )
18344ac_cv_c_bigendian=yes
18345fi
ac1cb8d3 18346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18347fi
18348fi
18349fi
18350echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18351echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18352if test $ac_cv_c_bigendian = unknown; then
18353 { 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
18354echo "$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;}
18355fi
18356if test $ac_cv_c_bigendian = yes; then
18357 cat >>confdefs.h <<\_ACEOF
18358#define WORDS_BIGENDIAN 1
18359_ACEOF
18360
18361fi
18362
18363
18364ac_ext=cc
18365ac_cpp='$CXXCPP $CPPFLAGS'
18366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18369echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18370echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18371if test -z "$CXXCPP"; then
18372 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18374else
18375 # Double quotes because CXXCPP needs to be expanded
18376 for CXXCPP in "$CXX -E" "/lib/cpp"
18377 do
18378 ac_preproc_ok=false
18379for ac_cxx_preproc_warn_flag in '' yes
18380do
18381 # Use a header file that comes with gcc, so configuring glibc
18382 # with a fresh cross-compiler works.
18383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18384 # <limits.h> exists even on freestanding compilers.
18385 # On the NeXT, cc -E runs the code through the compiler's parser,
18386 # not just through cpp. "Syntax error" is here to catch this case.
18387 cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h. */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h. */
18393#ifdef __STDC__
18394# include <limits.h>
18395#else
18396# include <assert.h>
18397#endif
ac1cb8d3 18398 Syntax error
a848cd7e
SC
18399_ACEOF
18400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18402 ac_status=$?
18403 grep -v '^ *+' conftest.er1 >conftest.err
18404 rm -f conftest.er1
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } >/dev/null; then
18408 if test -s conftest.err; then
18409 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18410 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18411 else
18412 ac_cpp_err=
18413 fi
18414else
18415 ac_cpp_err=yes
18416fi
18417if test -z "$ac_cpp_err"; then
18418 :
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 # Broken: fails on valid input.
18424continue
18425fi
18426rm -f conftest.err conftest.$ac_ext
18427
18428 # OK, works on sane cases. Now check whether non-existent headers
18429 # can be detected and how.
18430 cat >conftest.$ac_ext <<_ACEOF
18431/* confdefs.h. */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h. */
18436#include <ac_nonexistent.h>
18437_ACEOF
18438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } >/dev/null; then
18446 if test -s conftest.err; then
18447 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18448 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18449 else
18450 ac_cpp_err=
18451 fi
18452else
18453 ac_cpp_err=yes
18454fi
18455if test -z "$ac_cpp_err"; then
18456 # Broken: success on invalid input.
18457continue
18458else
18459 echo "$as_me: failed program was:" >&5
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
18462 # Passes both tests.
18463ac_preproc_ok=:
18464break
18465fi
18466rm -f conftest.err conftest.$ac_ext
18467
18468done
18469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18470rm -f conftest.err conftest.$ac_ext
18471if $ac_preproc_ok; then
18472 break
18473fi
18474
18475 done
18476 ac_cv_prog_CXXCPP=$CXXCPP
18477
18478fi
18479 CXXCPP=$ac_cv_prog_CXXCPP
18480else
18481 ac_cv_prog_CXXCPP=$CXXCPP
18482fi
18483echo "$as_me:$LINENO: result: $CXXCPP" >&5
18484echo "${ECHO_T}$CXXCPP" >&6
18485ac_preproc_ok=false
18486for ac_cxx_preproc_warn_flag in '' yes
18487do
18488 # Use a header file that comes with gcc, so configuring glibc
18489 # with a fresh cross-compiler works.
18490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18491 # <limits.h> exists even on freestanding compilers.
18492 # On the NeXT, cc -E runs the code through the compiler's parser,
18493 # not just through cpp. "Syntax error" is here to catch this case.
18494 cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500#ifdef __STDC__
18501# include <limits.h>
18502#else
18503# include <assert.h>
18504#endif
ac1cb8d3 18505 Syntax error
a848cd7e
SC
18506_ACEOF
18507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } >/dev/null; then
18515 if test -s conftest.err; then
18516 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18517 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18518 else
18519 ac_cpp_err=
18520 fi
18521else
18522 ac_cpp_err=yes
18523fi
18524if test -z "$ac_cpp_err"; then
18525 :
18526else
18527 echo "$as_me: failed program was:" >&5
18528sed 's/^/| /' conftest.$ac_ext >&5
18529
18530 # Broken: fails on valid input.
18531continue
18532fi
18533rm -f conftest.err conftest.$ac_ext
18534
18535 # OK, works on sane cases. Now check whether non-existent headers
18536 # can be detected and how.
18537 cat >conftest.$ac_ext <<_ACEOF
18538/* confdefs.h. */
18539_ACEOF
18540cat confdefs.h >>conftest.$ac_ext
18541cat >>conftest.$ac_ext <<_ACEOF
18542/* end confdefs.h. */
18543#include <ac_nonexistent.h>
18544_ACEOF
18545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } >/dev/null; then
18553 if test -s conftest.err; then
18554 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18556 else
18557 ac_cpp_err=
18558 fi
18559else
18560 ac_cpp_err=yes
18561fi
18562if test -z "$ac_cpp_err"; then
18563 # Broken: success on invalid input.
18564continue
18565else
18566 echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 # Passes both tests.
18570ac_preproc_ok=:
18571break
18572fi
18573rm -f conftest.err conftest.$ac_ext
18574
18575done
18576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18577rm -f conftest.err conftest.$ac_ext
18578if $ac_preproc_ok; then
18579 :
18580else
18581 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18582See \`config.log' for more details." >&5
18583echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18584See \`config.log' for more details." >&2;}
18585 { (exit 1); exit 1; }; }
18586fi
18587
18588ac_ext=cc
18589ac_cpp='$CXXCPP $CPPFLAGS'
18590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18593
18594
18595
18596
18597
18598 ac_ext=cc
18599ac_cpp='$CXXCPP $CPPFLAGS'
18600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18603
18604
18605
18606for ac_header in iostream
18607do
18608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18609if eval "test \"\${$as_ac_Header+set}\" = set"; then
18610 echo "$as_me:$LINENO: checking for $ac_header" >&5
18611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18612if eval "test \"\${$as_ac_Header+set}\" = set"; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18614fi
18615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18617else
18618 # Is the header compilable?
18619echo "$as_me:$LINENO: checking $ac_header usability" >&5
18620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18621cat >conftest.$ac_ext <<_ACEOF
18622/* confdefs.h. */
18623_ACEOF
18624cat confdefs.h >>conftest.$ac_ext
18625cat >>conftest.$ac_ext <<_ACEOF
18626/* end confdefs.h. */
18627$ac_includes_default
18628#include <$ac_header>
18629_ACEOF
18630rm -f conftest.$ac_objext
18631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18632 (eval $ac_compile) 2>conftest.er1
a848cd7e 18633 ac_status=$?
ac1cb8d3
VS
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
a848cd7e
SC
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
4d4ff94c 18639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_header_compiler=yes
18652else
18653 echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
18656ac_header_compiler=no
18657fi
ac1cb8d3 18658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18660echo "${ECHO_T}$ac_header_compiler" >&6
18661
18662# Is the header present?
18663echo "$as_me:$LINENO: checking $ac_header presence" >&5
18664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18665cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671#include <$ac_header>
18672_ACEOF
18673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18675 ac_status=$?
18676 grep -v '^ *+' conftest.er1 >conftest.err
18677 rm -f conftest.er1
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } >/dev/null; then
18681 if test -s conftest.err; then
18682 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18684 else
18685 ac_cpp_err=
18686 fi
18687else
18688 ac_cpp_err=yes
18689fi
18690if test -z "$ac_cpp_err"; then
18691 ac_header_preproc=yes
18692else
18693 echo "$as_me: failed program was:" >&5
18694sed 's/^/| /' conftest.$ac_ext >&5
18695
18696 ac_header_preproc=no
18697fi
18698rm -f conftest.err conftest.$ac_ext
18699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18700echo "${ECHO_T}$ac_header_preproc" >&6
18701
18702# So? What about this header?
ac1cb8d3
VS
18703case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18704 yes:no: )
a848cd7e
SC
18705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18709 ac_header_preproc=yes
a848cd7e 18710 ;;
ac1cb8d3 18711 no:yes:* )
a848cd7e
SC
18712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18724 (
18725 cat <<\_ASBOX
ac1cb8d3
VS
18726## ----------------------------------------- ##
18727## Report this to wx-dev@lists.wxwidgets.org ##
18728## ----------------------------------------- ##
a848cd7e
SC
18729_ASBOX
18730 ) |
18731 sed "s/^/$as_me: WARNING: /" >&2
18732 ;;
18733esac
18734echo "$as_me:$LINENO: checking for $ac_header" >&5
18735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18736if eval "test \"\${$as_ac_Header+set}\" = set"; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738else
ac1cb8d3 18739 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18740fi
18741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18743
18744fi
18745if test `eval echo '${'$as_ac_Header'}'` = yes; then
18746 cat >>confdefs.h <<_ACEOF
18747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18748_ACEOF
18749
18750fi
18751
18752done
18753
18754
18755 if test "$ac_cv_header_iostream" = "yes" ; then
18756 :
18757 else
18758 cat >>confdefs.h <<\_ACEOF
18759#define wxUSE_IOSTREAMH 1
18760_ACEOF
18761
18762 fi
18763
18764 ac_ext=c
18765ac_cpp='$CPP $CPPFLAGS'
18766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18768ac_compiler_gnu=$ac_cv_c_compiler_gnu
18769
18770
18771
18772
18773 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18774echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18775if test "${wx_cv_cpp_bool+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777else
18778
18779
18780
18781 ac_ext=cc
18782ac_cpp='$CXXCPP $CPPFLAGS'
18783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18786
18787
18788 cat >conftest.$ac_ext <<_ACEOF
18789/* confdefs.h. */
18790_ACEOF
18791cat confdefs.h >>conftest.$ac_ext
18792cat >>conftest.$ac_ext <<_ACEOF
18793/* end confdefs.h. */
18794
18795
18796int
18797main ()
18798{
18799
18800 bool b = true;
18801
18802 return 0;
18803
18804 ;
18805 return 0;
18806}
18807_ACEOF
18808rm -f conftest.$ac_objext
18809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18810 (eval $ac_compile) 2>conftest.er1
a848cd7e 18811 ac_status=$?
ac1cb8d3
VS
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
a848cd7e
SC
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
4d4ff94c 18817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819 (eval $ac_try) 2>&5
18820 ac_status=$?
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; } &&
18823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829
18830 wx_cv_cpp_bool=yes
18831
18832else
18833 echo "$as_me: failed program was:" >&5
18834sed 's/^/| /' conftest.$ac_ext >&5
18835
18836
18837 wx_cv_cpp_bool=no
18838
18839
18840fi
ac1cb8d3 18841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18842
18843 ac_ext=c
18844ac_cpp='$CPP $CPPFLAGS'
18845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18847ac_compiler_gnu=$ac_cv_c_compiler_gnu
18848
18849
18850fi
18851echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18852echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18853
18854 if test "$wx_cv_cpp_bool" = "yes"; then
18855 cat >>confdefs.h <<\_ACEOF
18856#define HAVE_BOOL 1
18857_ACEOF
18858
18859 fi
18860
18861
18862
18863 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18864echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18865if test "${wx_cv_explicit+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868
18869
18870
18871 ac_ext=cc
18872ac_cpp='$CXXCPP $CPPFLAGS'
18873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18876
18877
18878 cat >conftest.$ac_ext <<_ACEOF
18879/* confdefs.h. */
18880_ACEOF
18881cat confdefs.h >>conftest.$ac_ext
18882cat >>conftest.$ac_ext <<_ACEOF
18883/* end confdefs.h. */
18884
18885 class Foo { public: explicit Foo(int) {} };
18886
18887int
18888main ()
18889{
18890
18891 return 0;
18892
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext
18898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18899 (eval $ac_compile) 2>conftest.er1
a848cd7e 18900 ac_status=$?
ac1cb8d3
VS
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
a848cd7e
SC
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
4d4ff94c 18906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918
18919 cat >conftest.$ac_ext <<_ACEOF
18920/* confdefs.h. */
18921_ACEOF
18922cat confdefs.h >>conftest.$ac_ext
18923cat >>conftest.$ac_ext <<_ACEOF
18924/* end confdefs.h. */
18925
18926 class Foo { public: explicit Foo(int) {} };
18927 static void TakeFoo(const Foo& foo) { }
18928
18929int
18930main ()
18931{
18932
18933 TakeFoo(17);
18934 return 0;
18935
18936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext
18941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18942 (eval $ac_compile) 2>conftest.er1
a848cd7e 18943 ac_status=$?
ac1cb8d3
VS
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
a848cd7e
SC
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
4d4ff94c 18949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 wx_cv_explicit=no
18962else
18963 echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966wx_cv_explicit=yes
18967
18968fi
ac1cb8d3 18969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18970
18971else
18972 echo "$as_me: failed program was:" >&5
18973sed 's/^/| /' conftest.$ac_ext >&5
18974
18975wx_cv_explicit=no
18976
18977fi
ac1cb8d3 18978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18979
18980 ac_ext=c
18981ac_cpp='$CPP $CPPFLAGS'
18982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18984ac_compiler_gnu=$ac_cv_c_compiler_gnu
18985
18986
18987fi
18988echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18989echo "${ECHO_T}$wx_cv_explicit" >&6
18990
18991 if test "$wx_cv_explicit" = "yes"; then
18992 cat >>confdefs.h <<\_ACEOF
18993#define HAVE_EXPLICIT 1
18994_ACEOF
18995
18996 fi
18997
18998
18999echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19000echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19001if test "${ac_cv_cxx_const_cast+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003else
19004
19005
19006 ac_ext=cc
19007ac_cpp='$CXXCPP $CPPFLAGS'
19008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19011
19012 cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018
19019int
19020main ()
19021{
19022int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest.$ac_objext
19028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19029 (eval $ac_compile) 2>conftest.er1
a848cd7e 19030 ac_status=$?
ac1cb8d3
VS
19031 grep -v '^ *+' conftest.er1 >conftest.err
19032 rm -f conftest.er1
19033 cat conftest.err >&5
a848cd7e
SC
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
4d4ff94c 19036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_cv_cxx_const_cast=yes
19049else
19050 echo "$as_me: failed program was:" >&5
19051sed 's/^/| /' conftest.$ac_ext >&5
19052
19053ac_cv_cxx_const_cast=no
19054fi
ac1cb8d3 19055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19056 ac_ext=c
19057ac_cpp='$CPP $CPPFLAGS'
19058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060ac_compiler_gnu=$ac_cv_c_compiler_gnu
19061
19062
19063fi
19064echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19065echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19066if test "$ac_cv_cxx_const_cast" = yes; then
19067
19068cat >>confdefs.h <<\_ACEOF
19069#define HAVE_CONST_CAST
19070_ACEOF
19071
19072fi
19073
19074echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19075echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19076if test "${ac_cv_cxx_static_cast+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19078else
19079
19080
19081 ac_ext=cc
19082ac_cpp='$CXXCPP $CPPFLAGS'
19083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19086
19087 cat >conftest.$ac_ext <<_ACEOF
19088/* confdefs.h. */
19089_ACEOF
19090cat confdefs.h >>conftest.$ac_ext
19091cat >>conftest.$ac_ext <<_ACEOF
19092/* end confdefs.h. */
19093#include <typeinfo>
19094class Base { public : Base () {} virtual void f () = 0; };
19095class Derived : public Base { public : Derived () {} virtual void f () {} };
19096int g (Derived&) { return 0; }
19097int
19098main ()
19099{
19100
19101Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext
19107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19108 (eval $ac_compile) 2>conftest.er1
a848cd7e 19109 ac_status=$?
ac1cb8d3
VS
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
a848cd7e
SC
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
4d4ff94c 19115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; } &&
19121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 ac_cv_cxx_static_cast=yes
19128else
19129 echo "$as_me: failed program was:" >&5
19130sed 's/^/| /' conftest.$ac_ext >&5
19131
19132ac_cv_cxx_static_cast=no
19133fi
ac1cb8d3 19134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19135 ac_ext=c
19136ac_cpp='$CPP $CPPFLAGS'
19137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140
19141
19142fi
19143echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19144echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19145if test "$ac_cv_cxx_static_cast" = yes; then
19146
19147cat >>confdefs.h <<\_ACEOF
19148#define HAVE_STATIC_CAST
19149_ACEOF
19150
19151fi
19152
19153
19154if test "$wxUSE_STL" = "yes"; then
19155 ac_ext=cc
19156ac_cpp='$CXXCPP $CPPFLAGS'
19157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19160
19161
19162 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19163echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170#include <string>
19171 #include <functional>
19172 #include <algorithm>
19173 #include <vector>
19174 #include <list>
19175int
19176main ()
19177{
19178std::vector<int> moo;
19179 std::list<int> foo;
19180 std::vector<int>::iterator it =
19181 std::find_if(moo.begin(), moo.end(),
19182 std::bind2nd(std::less<int>(), 3));
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187rm -f conftest.$ac_objext
19188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19189 (eval $ac_compile) 2>conftest.er1
a848cd7e 19190 ac_status=$?
ac1cb8d3
VS
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
a848cd7e
SC
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
4d4ff94c 19196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 echo "$as_me:$LINENO: result: yes" >&5
19209echo "${ECHO_T}yes" >&6
19210else
19211 echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213
19214echo "$as_me:$LINENO: result: no" >&5
19215echo "${ECHO_T}no" >&6
19216 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19217echo "$as_me: error: Basic STL functionality missing" >&2;}
19218 { (exit 1); exit 1; }; }
19219fi
ac1cb8d3 19220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19221
19222 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19223echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19225/* confdefs.h. */
19226_ACEOF
19227cat confdefs.h >>conftest.$ac_ext
19228cat >>conftest.$ac_ext <<_ACEOF
19229/* end confdefs.h. */
19230#include <string>
19231int
19232main ()
19233{
19234std::wstring foo;
19235 ;
19236 return 0;
19237}
19238_ACEOF
19239rm -f conftest.$ac_objext
19240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19241 (eval $ac_compile) 2>conftest.er1
a848cd7e 19242 ac_status=$?
ac1cb8d3
VS
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
a848cd7e
SC
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
4d4ff94c 19248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 echo "$as_me:$LINENO: result: yes" >&5
19261echo "${ECHO_T}yes" >&6
19262 cat >>confdefs.h <<\_ACEOF
19263#define HAVE_STD_WSTRING 1
19264_ACEOF
19265
19266else
19267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270echo "$as_me:$LINENO: result: no" >&5
19271echo "${ECHO_T}no" >&6
19272fi
ac1cb8d3 19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19274
19275 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19276echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19277 cat >conftest.$ac_ext <<_ACEOF
19278/* confdefs.h. */
19279_ACEOF
19280cat confdefs.h >>conftest.$ac_ext
19281cat >>conftest.$ac_ext <<_ACEOF
19282/* end confdefs.h. */
19283#include <string>
19284int
19285main ()
19286{
19287std::string foo, bar;
19288 foo.compare(bar);
19289 foo.compare(1, 1, bar);
19290 foo.compare(1, 1, bar, 1, 1);
19291 foo.compare("");
19292 foo.compare(1, 1, "");
19293 foo.compare(1, 1, "", 2);
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext
19299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19300 (eval $ac_compile) 2>conftest.er1
a848cd7e 19301 ac_status=$?
ac1cb8d3
VS
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
a848cd7e
SC
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
4d4ff94c 19307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 echo "$as_me:$LINENO: result: yes" >&5
19320echo "${ECHO_T}yes" >&6
19321 cat >>confdefs.h <<\_ACEOF
19322#define HAVE_STD_STRING_COMPARE 1
19323_ACEOF
19324
19325else
19326 echo "$as_me: failed program was:" >&5
19327sed 's/^/| /' conftest.$ac_ext >&5
19328
19329echo "$as_me:$LINENO: result: no" >&5
19330echo "${ECHO_T}no" >&6
19331fi
ac1cb8d3 19332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19333
19334 if test "${ac_cv_header_hash_map+set}" = set; then
19335 echo "$as_me:$LINENO: checking for hash_map" >&5
19336echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19337if test "${ac_cv_header_hash_map+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339fi
19340echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19341echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19342else
19343 # Is the header compilable?
19344echo "$as_me:$LINENO: checking hash_map usability" >&5
19345echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19346cat >conftest.$ac_ext <<_ACEOF
19347/* confdefs.h. */
19348_ACEOF
19349cat confdefs.h >>conftest.$ac_ext
19350cat >>conftest.$ac_ext <<_ACEOF
19351/* end confdefs.h. */
19352$ac_includes_default
19353#include <hash_map>
19354_ACEOF
19355rm -f conftest.$ac_objext
19356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19357 (eval $ac_compile) 2>conftest.er1
bdcade0a 19358 ac_status=$?
ac1cb8d3
VS
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
bdcade0a
MB
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
4d4ff94c 19364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; } &&
19370 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 ac_header_compiler=yes
19377else
19378 echo "$as_me: failed program was:" >&5
19379sed 's/^/| /' conftest.$ac_ext >&5
19380
19381ac_header_compiler=no
19382fi
ac1cb8d3 19383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19385echo "${ECHO_T}$ac_header_compiler" >&6
19386
19387# Is the header present?
19388echo "$as_me:$LINENO: checking hash_map presence" >&5
19389echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19390cat >conftest.$ac_ext <<_ACEOF
19391/* confdefs.h. */
19392_ACEOF
19393cat confdefs.h >>conftest.$ac_ext
19394cat >>conftest.$ac_ext <<_ACEOF
19395/* end confdefs.h. */
19396#include <hash_map>
19397_ACEOF
19398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19400 ac_status=$?
19401 grep -v '^ *+' conftest.er1 >conftest.err
19402 rm -f conftest.er1
19403 cat conftest.err >&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } >/dev/null; then
19406 if test -s conftest.err; then
19407 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19409 else
19410 ac_cpp_err=
19411 fi
19412else
19413 ac_cpp_err=yes
19414fi
19415if test -z "$ac_cpp_err"; then
19416 ac_header_preproc=yes
19417else
19418 echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_header_preproc=no
19422fi
19423rm -f conftest.err conftest.$ac_ext
19424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19425echo "${ECHO_T}$ac_header_preproc" >&6
19426
19427# So? What about this header?
ac1cb8d3
VS
19428case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19429 yes:no: )
bdcade0a
MB
19430 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19431echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19432 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19433echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19434 ac_header_preproc=yes
bdcade0a 19435 ;;
ac1cb8d3 19436 no:yes:* )
bdcade0a
MB
19437 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19438echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19439 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19440echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19441 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19442echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19444echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19445 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19446echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19447 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19448echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19449 (
19450 cat <<\_ASBOX
ac1cb8d3
VS
19451## ----------------------------------------- ##
19452## Report this to wx-dev@lists.wxwidgets.org ##
19453## ----------------------------------------- ##
bdcade0a
MB
19454_ASBOX
19455 ) |
19456 sed "s/^/$as_me: WARNING: /" >&2
19457 ;;
19458esac
19459echo "$as_me:$LINENO: checking for hash_map" >&5
19460echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19461if test "${ac_cv_header_hash_map+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463else
19464 ac_cv_header_hash_map=$ac_header_preproc
19465fi
19466echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19467echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19468
19469fi
19470if test $ac_cv_header_hash_map = yes; then
19471 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19472echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19473 cat >conftest.$ac_ext <<_ACEOF
19474/* confdefs.h. */
19475_ACEOF
19476cat confdefs.h >>conftest.$ac_ext
19477cat >>conftest.$ac_ext <<_ACEOF
19478/* end confdefs.h. */
19479#include <hash_map>
19480 #include <hash_set>
19481int
19482main ()
19483{
19484std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19485 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19486 ;
19487 return 0;
19488}
19489_ACEOF
19490rm -f conftest.$ac_objext
19491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19492 (eval $ac_compile) 2>conftest.er1
bdcade0a 19493 ac_status=$?
ac1cb8d3
VS
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
bdcade0a
MB
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
4d4ff94c 19499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 echo "$as_me:$LINENO: result: yes" >&5
19512echo "${ECHO_T}yes" >&6
19513 cat >>confdefs.h <<\_ACEOF
19514#define HAVE_HASH_MAP 1
19515_ACEOF
19516
19517 cat >>confdefs.h <<\_ACEOF
19518#define HAVE_STD_HASH_MAP 1
19519_ACEOF
19520
19521else
19522 echo "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525echo "$as_me:$LINENO: result: no" >&5
19526echo "${ECHO_T}no" >&6
19527fi
ac1cb8d3 19528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19529
19530fi
19531
19532
19533
19534 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19535 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19536echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19537if test "${ac_cv_header_ext_hash_map+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19539fi
19540echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19541echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19542else
19543 # Is the header compilable?
19544echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19545echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19546cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */
19552$ac_includes_default
19553#include <ext/hash_map>
19554_ACEOF
19555rm -f conftest.$ac_objext
19556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19557 (eval $ac_compile) 2>conftest.er1
bdcade0a 19558 ac_status=$?
ac1cb8d3
VS
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
bdcade0a
MB
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
4d4ff94c 19564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_header_compiler=yes
19577else
19578 echo "$as_me: failed program was:" >&5
19579sed 's/^/| /' conftest.$ac_ext >&5
19580
19581ac_header_compiler=no
19582fi
ac1cb8d3 19583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19585echo "${ECHO_T}$ac_header_compiler" >&6
19586
19587# Is the header present?
19588echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19589echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19590cat >conftest.$ac_ext <<_ACEOF
19591/* confdefs.h. */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h. */
19596#include <ext/hash_map>
19597_ACEOF
19598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } >/dev/null; then
19606 if test -s conftest.err; then
19607 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19608 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19609 else
19610 ac_cpp_err=
19611 fi
19612else
19613 ac_cpp_err=yes
19614fi
19615if test -z "$ac_cpp_err"; then
19616 ac_header_preproc=yes
19617else
19618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_header_preproc=no
19622fi
19623rm -f conftest.err conftest.$ac_ext
19624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19625echo "${ECHO_T}$ac_header_preproc" >&6
19626
19627# So? What about this header?
ac1cb8d3
VS
19628case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19629 yes:no: )
bdcade0a
MB
19630 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19631echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19632 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19633echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19634 ac_header_preproc=yes
bdcade0a 19635 ;;
ac1cb8d3 19636 no:yes:* )
bdcade0a
MB
19637 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19638echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19639 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19640echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19642echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19644echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19645 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19646echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19647 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19648echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19649 (
19650 cat <<\_ASBOX
ac1cb8d3
VS
19651## ----------------------------------------- ##
19652## Report this to wx-dev@lists.wxwidgets.org ##
19653## ----------------------------------------- ##
bdcade0a
MB
19654_ASBOX
19655 ) |
19656 sed "s/^/$as_me: WARNING: /" >&2
19657 ;;
19658esac
19659echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19660echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19661if test "${ac_cv_header_ext_hash_map+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663else
19664 ac_cv_header_ext_hash_map=$ac_header_preproc
19665fi
19666echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19667echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19668
19669fi
19670if test $ac_cv_header_ext_hash_map = yes; then
19671 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19672echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19673 cat >conftest.$ac_ext <<_ACEOF
19674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
19679#include <ext/hash_map>
19680 #include <ext/hash_set>
19681int
19682main ()
19683{
19684__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19685 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19686 ;
19687 return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext
19691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19692 (eval $ac_compile) 2>conftest.er1
bdcade0a 19693 ac_status=$?
ac1cb8d3
VS
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
bdcade0a
MB
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
4d4ff94c 19699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 echo "$as_me:$LINENO: result: yes" >&5
19712echo "${ECHO_T}yes" >&6
19713 cat >>confdefs.h <<\_ACEOF
19714#define HAVE_EXT_HASH_MAP 1
19715_ACEOF
19716
19717 cat >>confdefs.h <<\_ACEOF
19718#define HAVE_GNU_CXX_HASH_MAP 1
19719_ACEOF
19720
19721else
19722 echo "$as_me: failed program was:" >&5
19723sed 's/^/| /' conftest.$ac_ext >&5
19724
19725echo "$as_me:$LINENO: result: no" >&5
19726echo "${ECHO_T}no" >&6
19727fi
ac1cb8d3 19728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19729
19730fi
19731
19732
a848cd7e
SC
19733
19734 ac_ext=c
19735ac_cpp='$CPP $CPPFLAGS'
19736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740fi
19741
19742
19743SEARCH_INCLUDE="\
19744 /usr/local/include \
19745 \
19746 /usr/Motif-2.1/include \
19747 /usr/Motif-1.2/include \
19748 /usr/include/Motif1.2 \
19749 /opt/xpm/include/X11 \
19750 /opt/GBxpm/include/ \
19751 /opt/GBxpm/X11/include/ \
19752 \
19753 /usr/dt/include \
19754 /usr/openwin/include \
19755 \
19756 /usr/include/Xm \
19757 \
19758 /usr/X11R6/include \
19759 /usr/X11R6.4/include \
19760 /usr/X11R5/include \
19761 /usr/X11R4/include \
19762 \
19763 /usr/include/X11R6 \
19764 /usr/include/X11R5 \
19765 /usr/include/X11R4 \
19766 \
19767 /usr/local/X11R6/include \
19768 /usr/local/X11R5/include \
19769 /usr/local/X11R4/include \
19770 \
19771 /usr/local/include/X11R6 \
19772 /usr/local/include/X11R5 \
19773 /usr/local/include/X11R4 \
19774 \
19775 /usr/X11/include \
19776 /usr/include/X11 \
19777 /usr/local/X11/include \
19778 /usr/local/include/X11 \
19779 \
19780 /usr/X386/include \
19781 /usr/x386/include \
19782 /usr/XFree86/include/X11 \
19783 \
19784 X:/XFree86/include \
19785 X:/XFree86/include/X11 \
19786 \
19787 /usr/include/gtk \
19788 /usr/local/include/gtk \
19789 /usr/include/glib \
19790 /usr/local/include/glib \
19791 \
19792 /usr/include/qt \
19793 /usr/local/include/qt \
19794 \
19795 /usr/local/arm/3.3.2/include \
19796 \
19797 /usr/include/windows \
19798 /usr/include/wine \
19799 /usr/local/include/wine \
19800 \
19801 /usr/unsupported/include \
19802 /usr/athena/include \
19803 /usr/local/x11r5/include \
19804 /usr/lpp/Xamples/include \
19805 \
19806 /usr/openwin/share/include"
19807
19808SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19809
19810
19811cat >confcache <<\_ACEOF
19812# This file is a shell script that caches the results of configure
19813# tests run on this system so they can be shared between configure
19814# scripts and configure runs, see configure's option --config-cache.
19815# It is not useful on other systems. If it contains results you don't
19816# want to keep, you may remove or edit it.
19817#
19818# config.status only pays attention to the cache file if you give it
19819# the --recheck option to rerun configure.
19820#
19821# `ac_cv_env_foo' variables (set or unset) will be overridden when
19822# loading this file, other *unset* `ac_cv_foo' will be assigned the
19823# following values.
19824
19825_ACEOF
19826
19827# The following way of writing the cache mishandles newlines in values,
19828# but we know of no workaround that is simple, portable, and efficient.
19829# So, don't put newlines in cache variables' values.
19830# Ultrix sh set writes to stderr and can't be redirected directly,
19831# and sets the high bit in the cache file unless we assign to the vars.
19832{
19833 (set) 2>&1 |
19834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19835 *ac_space=\ *)
19836 # `set' does not quote correctly, so add quotes (double-quote
19837 # substitution turns \\\\ into \\, and sed turns \\ into \).
19838 sed -n \
ac1cb8d3
VS
19839 "s/'/'\\\\''/g;
19840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19841 ;;
19842 *)
19843 # `set' quotes correctly as required by POSIX, so do not add quotes.
19844 sed -n \
ac1cb8d3 19845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19846 ;;
19847 esac;
19848} |
19849 sed '
19850 t clear
19851 : clear
19852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19853 t end
19854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19855 : end' >>confcache
19856if diff $cache_file confcache >/dev/null 2>&1; then :; else
19857 if test -w $cache_file; then
19858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19859 cat confcache >$cache_file
19860 else
19861 echo "not updating unwritable cache $cache_file"
19862 fi
19863fi
19864rm -f confcache
19865
19866if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19867 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19868echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19869if test "${wx_cv_lib_glibc21+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871else
19872
19873 cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879#include <features.h>
19880int
19881main ()
19882{
19883
19884 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19885 #error not glibc2.1
19886 #endif
19887
19888 ;
19889 return 0;
19890}
19891_ACEOF
19892rm -f conftest.$ac_objext
19893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19894 (eval $ac_compile) 2>conftest.er1
a848cd7e 19895 ac_status=$?
ac1cb8d3
VS
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
a848cd7e
SC
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
4d4ff94c 19901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; } &&
19907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913
19914 wx_cv_lib_glibc21=yes
19915
19916else
19917 echo "$as_me: failed program was:" >&5
19918sed 's/^/| /' conftest.$ac_ext >&5
19919
19920
19921 wx_cv_lib_glibc21=no
19922
19923
19924fi
ac1cb8d3 19925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19926
19927fi
19928echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19929echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19930 if test "$wx_cv_lib_glibc21" = "yes"; then
19931 cat >>confdefs.h <<\_ACEOF
19932#define wxHAVE_GLIBC2 1
19933_ACEOF
19934
19935 fi
19936fi
19937
19938if test "x$wx_cv_lib_glibc21" = "xyes"; then
19939 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19940 cat >>confdefs.h <<\_ACEOF
19941#define _GNU_SOURCE 1
19942_ACEOF
19943
19944 fi
19945fi
19946
19947
19948
19949if test "$wxUSE_REGEX" != "no"; then
19950 cat >>confdefs.h <<\_ACEOF
19951#define wxUSE_REGEX 1
19952_ACEOF
19953
19954
19955 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19956 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19957echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19958 wxUSE_REGEX=builtin
19959 fi
19960
19961 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19962 if test "${ac_cv_header_regex_h+set}" = set; then
19963 echo "$as_me:$LINENO: checking for regex.h" >&5
19964echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19965if test "${ac_cv_header_regex_h+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967fi
19968echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19969echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19970else
19971 # Is the header compilable?
19972echo "$as_me:$LINENO: checking regex.h usability" >&5
19973echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19974cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980$ac_includes_default
19981#include <regex.h>
19982_ACEOF
19983rm -f conftest.$ac_objext
19984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19985 (eval $ac_compile) 2>conftest.er1
a848cd7e 19986 ac_status=$?
ac1cb8d3
VS
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
a848cd7e
SC
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
4d4ff94c 19992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 ac_header_compiler=yes
20005else
20006 echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009ac_header_compiler=no
20010fi
ac1cb8d3 20011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20013echo "${ECHO_T}$ac_header_compiler" >&6
20014
20015# Is the header present?
20016echo "$as_me:$LINENO: checking regex.h presence" >&5
20017echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20018cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024#include <regex.h>
20025_ACEOF
20026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20028 ac_status=$?
20029 grep -v '^ *+' conftest.er1 >conftest.err
20030 rm -f conftest.er1
20031 cat conftest.err >&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } >/dev/null; then
20034 if test -s conftest.err; then
20035 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20037 else
20038 ac_cpp_err=
20039 fi
20040else
20041 ac_cpp_err=yes
20042fi
20043if test -z "$ac_cpp_err"; then
20044 ac_header_preproc=yes
20045else
20046 echo "$as_me: failed program was:" >&5
20047sed 's/^/| /' conftest.$ac_ext >&5
20048
20049 ac_header_preproc=no
20050fi
20051rm -f conftest.err conftest.$ac_ext
20052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20053echo "${ECHO_T}$ac_header_preproc" >&6
20054
20055# So? What about this header?
ac1cb8d3
VS
20056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20057 yes:no: )
a848cd7e
SC
20058 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20059echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20060 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20061echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20062 ac_header_preproc=yes
a848cd7e 20063 ;;
ac1cb8d3 20064 no:yes:* )
a848cd7e
SC
20065 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20066echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20067 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20068echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20070echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20072echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20073 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20074echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20075 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20076echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20077 (
20078 cat <<\_ASBOX
ac1cb8d3
VS
20079## ----------------------------------------- ##
20080## Report this to wx-dev@lists.wxwidgets.org ##
20081## ----------------------------------------- ##
a848cd7e
SC
20082_ASBOX
20083 ) |
20084 sed "s/^/$as_me: WARNING: /" >&2
20085 ;;
20086esac
20087echo "$as_me:$LINENO: checking for regex.h" >&5
20088echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20089if test "${ac_cv_header_regex_h+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091else
20092 ac_cv_header_regex_h=$ac_header_preproc
20093fi
20094echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20095echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20096
20097fi
20098if test $ac_cv_header_regex_h = yes; then
20099
20100for ac_func in regcomp
20101do
20102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20103echo "$as_me:$LINENO: checking for $ac_func" >&5
20104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20105if eval "test \"\${$as_ac_var+set}\" = set"; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107else
20108 cat >conftest.$ac_ext <<_ACEOF
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
ac1cb8d3
VS
20114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20116#define $ac_func innocuous_$ac_func
20117
a848cd7e
SC
20118/* System header to define __stub macros and hopefully few prototypes,
20119 which can conflict with char $ac_func (); below.
20120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20121 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20122
a848cd7e
SC
20123#ifdef __STDC__
20124# include <limits.h>
20125#else
20126# include <assert.h>
20127#endif
ac1cb8d3
VS
20128
20129#undef $ac_func
20130
a848cd7e
SC
20131/* Override any gcc2 internal prototype to avoid an error. */
20132#ifdef __cplusplus
20133extern "C"
20134{
20135#endif
20136/* We use char because int might match the return type of a gcc2
20137 builtin and then its argument prototype would still apply. */
20138char $ac_func ();
20139/* The GNU C library defines this for functions which it implements
20140 to always fail with ENOSYS. Some functions are actually named
20141 something starting with __ and the normal name is an alias. */
20142#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20143choke me
20144#else
20145char (*f) () = $ac_func;
20146#endif
20147#ifdef __cplusplus
20148}
20149#endif
20150
20151int
20152main ()
20153{
20154return f != $ac_func;
20155 ;
20156 return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext conftest$ac_exeext
20160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20161 (eval $ac_link) 2>conftest.er1
a848cd7e 20162 ac_status=$?
ac1cb8d3
VS
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
a848cd7e
SC
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
4d4ff94c 20168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; } &&
20174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; }; then
20180 eval "$as_ac_var=yes"
20181else
20182 echo "$as_me: failed program was:" >&5
20183sed 's/^/| /' conftest.$ac_ext >&5
20184
20185eval "$as_ac_var=no"
20186fi
ac1cb8d3
VS
20187rm -f conftest.err conftest.$ac_objext \
20188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20189fi
20190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20192if test `eval echo '${'$as_ac_var'}'` = yes; then
20193 cat >>confdefs.h <<_ACEOF
20194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20195_ACEOF
20196
20197fi
20198done
20199
20200fi
20201
20202
20203
20204 if test "x$ac_cv_func_regcomp" != "xyes"; then
20205 if test "$wxUSE_REGEX" = "sys" ; then
20206 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20207echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20208 { (exit 1); exit 1; }; }
20209 else
20210 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20211echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20212 wxUSE_REGEX=builtin
20213 fi
20214 else
20215 wxUSE_REGEX=sys
20216 cat >>confdefs.h <<\_ACEOF
20217#define WX_NO_REGEX_ADVANCED 1
20218_ACEOF
20219
20220 fi
20221 fi
20222fi
20223
20224
20225ZLIB_LINK=
20226if test "$wxUSE_ZLIB" != "no" ; then
20227 cat >>confdefs.h <<\_ACEOF
20228#define wxUSE_ZLIB 1
20229_ACEOF
20230
20231
20232 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20233 if test "$USE_DARWIN" = 1; then
20234 system_zlib_h_ok="yes"
20235 else
20236 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20237echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20238if test "${ac_cv_header_zlib_h+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240else
20241 if test "$cross_compiling" = yes; then
20242 unset ac_cv_header_zlib_h
20243
20244else
20245 cat >conftest.$ac_ext <<_ACEOF
20246/* confdefs.h. */
20247_ACEOF
20248cat confdefs.h >>conftest.$ac_ext
20249cat >>conftest.$ac_ext <<_ACEOF
20250/* end confdefs.h. */
20251
20252 #include <zlib.h>
20253 #include <stdio.h>
20254
20255 int main()
20256 {
20257 FILE *f=fopen("conftestval", "w");
20258 if (!f) exit(1);
20259 fprintf(f, "%s",
20260 ZLIB_VERSION[0] == '1' &&
20261 (ZLIB_VERSION[2] > '1' ||
20262 (ZLIB_VERSION[2] == '1' &&
20263 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20264 exit(0);
20265 }
20266
20267_ACEOF
20268rm -f conftest$ac_exeext
20269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_cv_header_zlib_h=`cat conftestval`
20280else
20281 echo "$as_me: program exited with status $ac_status" >&5
20282echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285( exit $ac_status )
20286ac_cv_header_zlib_h=no
20287fi
ac1cb8d3 20288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20289fi
20290
20291fi
20292echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20293echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20294 if test "${ac_cv_header_zlib_h+set}" = set; then
20295 echo "$as_me:$LINENO: checking for zlib.h" >&5
20296echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20297if test "${ac_cv_header_zlib_h+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299fi
20300echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20301echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20302else
20303 # Is the header compilable?
20304echo "$as_me:$LINENO: checking zlib.h usability" >&5
20305echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20306cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312$ac_includes_default
20313#include <zlib.h>
20314_ACEOF
20315rm -f conftest.$ac_objext
20316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20317 (eval $ac_compile) 2>conftest.er1
a848cd7e 20318 ac_status=$?
ac1cb8d3
VS
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
a848cd7e
SC
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } &&
4d4ff94c 20324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_header_compiler=yes
20337else
20338 echo "$as_me: failed program was:" >&5
20339sed 's/^/| /' conftest.$ac_ext >&5
20340
20341ac_header_compiler=no
20342fi
ac1cb8d3 20343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20345echo "${ECHO_T}$ac_header_compiler" >&6
20346
20347# Is the header present?
20348echo "$as_me:$LINENO: checking zlib.h presence" >&5
20349echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20350cat >conftest.$ac_ext <<_ACEOF
20351/* confdefs.h. */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h. */
20356#include <zlib.h>
20357_ACEOF
20358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } >/dev/null; then
20366 if test -s conftest.err; then
20367 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20369 else
20370 ac_cpp_err=
20371 fi
20372else
20373 ac_cpp_err=yes
20374fi
20375if test -z "$ac_cpp_err"; then
20376 ac_header_preproc=yes
20377else
20378 echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 ac_header_preproc=no
20382fi
20383rm -f conftest.err conftest.$ac_ext
20384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20385echo "${ECHO_T}$ac_header_preproc" >&6
20386
20387# So? What about this header?
ac1cb8d3
VS
20388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20389 yes:no: )
a848cd7e
SC
20390 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20391echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20392 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20393echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20394 ac_header_preproc=yes
a848cd7e 20395 ;;
ac1cb8d3 20396 no:yes:* )
a848cd7e
SC
20397 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20398echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20399 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20400echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20402echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20404echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20405 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20406echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20407 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20408echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20409 (
20410 cat <<\_ASBOX
ac1cb8d3
VS
20411## ----------------------------------------- ##
20412## Report this to wx-dev@lists.wxwidgets.org ##
20413## ----------------------------------------- ##
a848cd7e
SC
20414_ASBOX
20415 ) |
20416 sed "s/^/$as_me: WARNING: /" >&2
20417 ;;
20418esac
20419echo "$as_me:$LINENO: checking for zlib.h" >&5
20420echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20421if test "${ac_cv_header_zlib_h+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423else
20424 ac_cv_header_zlib_h=$ac_header_preproc
20425fi
20426echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20427echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20428
20429fi
20430
20431
20432
20433 system_zlib_h_ok=$ac_cv_header_zlib_h
20434 fi
20435
20436 if test "$system_zlib_h_ok" = "yes"; then
20437 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20438echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20439if test "${ac_cv_lib_z_deflate+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441else
20442 ac_check_lib_save_LIBS=$LIBS
20443LIBS="-lz $LIBS"
20444cat >conftest.$ac_ext <<_ACEOF
20445/* confdefs.h. */
20446_ACEOF
20447cat confdefs.h >>conftest.$ac_ext
20448cat >>conftest.$ac_ext <<_ACEOF
20449/* end confdefs.h. */
20450
20451/* Override any gcc2 internal prototype to avoid an error. */
20452#ifdef __cplusplus
20453extern "C"
20454#endif
20455/* We use char because int might match the return type of a gcc2
20456 builtin and then its argument prototype would still apply. */
20457char deflate ();
20458int
20459main ()
20460{
20461deflate ();
20462 ;
20463 return 0;
20464}
20465_ACEOF
20466rm -f conftest.$ac_objext conftest$ac_exeext
20467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20468 (eval $ac_link) 2>conftest.er1
a848cd7e 20469 ac_status=$?
ac1cb8d3
VS
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
a848cd7e
SC
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
4d4ff94c 20475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; } &&
20481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_cv_lib_z_deflate=yes
20488else
20489 echo "$as_me: failed program was:" >&5
20490sed 's/^/| /' conftest.$ac_ext >&5
20491
20492ac_cv_lib_z_deflate=no
20493fi
ac1cb8d3
VS
20494rm -f conftest.err conftest.$ac_objext \
20495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20496LIBS=$ac_check_lib_save_LIBS
20497fi
20498echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20499echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20500if test $ac_cv_lib_z_deflate = yes; then
20501 ZLIB_LINK=" -lz"
20502fi
20503
20504 fi
20505
20506 if test "x$ZLIB_LINK" = "x" ; then
20507 if test "$wxUSE_ZLIB" = "sys" ; then
20508 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20509echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20510 { (exit 1); exit 1; }; }
20511 else
20512 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20513echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20514 wxUSE_ZLIB=builtin
20515 fi
20516 else
20517 wxUSE_ZLIB=sys
20518 fi
20519 fi
20520fi
20521
20522
20523PNG_LINK=
20524if test "$wxUSE_LIBPNG" != "no" ; then
20525 cat >>confdefs.h <<\_ACEOF
20526#define wxUSE_LIBPNG 1
20527_ACEOF
20528
20529
20530 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20531 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20532echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20533 wxUSE_LIBPNG=sys
20534 fi
20535
20536 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20537 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20538echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20539 wxUSE_LIBPNG=builtin
20540 fi
20541
20542 if test "$wxUSE_MGL" != 1 ; then
20543 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20544 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20545echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20546if test "${ac_cv_header_png_h+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20548else
20549 if test "$cross_compiling" = yes; then
20550 unset ac_cv_header_png_h
20551
20552else
20553 cat >conftest.$ac_ext <<_ACEOF
20554/* confdefs.h. */
20555_ACEOF
20556cat confdefs.h >>conftest.$ac_ext
20557cat >>conftest.$ac_ext <<_ACEOF
20558/* end confdefs.h. */
20559
20560 #include <png.h>
20561 #include <stdio.h>
20562
20563 int main()
20564 {
20565 FILE *f=fopen("conftestval", "w");
20566 if (!f) exit(1);
20567 fprintf(f, "%s",
20568 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20569 exit(0);
20570 }
20571
20572_ACEOF
20573rm -f conftest$ac_exeext
20574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20575 (eval $ac_link) 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_cv_header_png_h=`cat conftestval`
20585else
20586 echo "$as_me: program exited with status $ac_status" >&5
20587echo "$as_me: failed program was:" >&5
20588sed 's/^/| /' conftest.$ac_ext >&5
20589
20590( exit $ac_status )
20591ac_cv_header_png_h=no
20592fi
ac1cb8d3 20593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20594fi
20595
20596fi
20597echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20598echo "${ECHO_T}$ac_cv_header_png_h" >&6
20599 if test "${ac_cv_header_png_h+set}" = set; then
20600 echo "$as_me:$LINENO: checking for png.h" >&5
20601echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20602if test "${ac_cv_header_png_h+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604fi
20605echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20606echo "${ECHO_T}$ac_cv_header_png_h" >&6
20607else
20608 # Is the header compilable?
20609echo "$as_me:$LINENO: checking png.h usability" >&5
20610echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20611cat >conftest.$ac_ext <<_ACEOF
20612/* confdefs.h. */
20613_ACEOF
20614cat confdefs.h >>conftest.$ac_ext
20615cat >>conftest.$ac_ext <<_ACEOF
20616/* end confdefs.h. */
20617$ac_includes_default
20618#include <png.h>
20619_ACEOF
20620rm -f conftest.$ac_objext
20621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20622 (eval $ac_compile) 2>conftest.er1
a848cd7e 20623 ac_status=$?
ac1cb8d3
VS
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
a848cd7e
SC
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
4d4ff94c 20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_header_compiler=yes
20642else
20643 echo "$as_me: failed program was:" >&5
20644sed 's/^/| /' conftest.$ac_ext >&5
20645
20646ac_header_compiler=no
20647fi
ac1cb8d3 20648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20650echo "${ECHO_T}$ac_header_compiler" >&6
20651
20652# Is the header present?
20653echo "$as_me:$LINENO: checking png.h presence" >&5
20654echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20655cat >conftest.$ac_ext <<_ACEOF
20656/* confdefs.h. */
20657_ACEOF
20658cat confdefs.h >>conftest.$ac_ext
20659cat >>conftest.$ac_ext <<_ACEOF
20660/* end confdefs.h. */
20661#include <png.h>
20662_ACEOF
20663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20665 ac_status=$?
20666 grep -v '^ *+' conftest.er1 >conftest.err
20667 rm -f conftest.er1
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } >/dev/null; then
20671 if test -s conftest.err; then
20672 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20674 else
20675 ac_cpp_err=
20676 fi
20677else
20678 ac_cpp_err=yes
20679fi
20680if test -z "$ac_cpp_err"; then
20681 ac_header_preproc=yes
20682else
20683 echo "$as_me: failed program was:" >&5
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 ac_header_preproc=no
20687fi
20688rm -f conftest.err conftest.$ac_ext
20689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20690echo "${ECHO_T}$ac_header_preproc" >&6
20691
20692# So? What about this header?
ac1cb8d3
VS
20693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20694 yes:no: )
a848cd7e
SC
20695 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20696echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20697 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20698echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20699 ac_header_preproc=yes
a848cd7e 20700 ;;
ac1cb8d3 20701 no:yes:* )
a848cd7e
SC
20702 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20703echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20704 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20705echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20707echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20709echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20710 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20711echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20712 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20713echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20714 (
20715 cat <<\_ASBOX
ac1cb8d3
VS
20716## ----------------------------------------- ##
20717## Report this to wx-dev@lists.wxwidgets.org ##
20718## ----------------------------------------- ##
a848cd7e
SC
20719_ASBOX
20720 ) |
20721 sed "s/^/$as_me: WARNING: /" >&2
20722 ;;
20723esac
20724echo "$as_me:$LINENO: checking for png.h" >&5
20725echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20726if test "${ac_cv_header_png_h+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728else
20729 ac_cv_header_png_h=$ac_header_preproc
20730fi
20731echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20732echo "${ECHO_T}$ac_cv_header_png_h" >&6
20733
20734fi
20735
20736
20737
20738 if test "$ac_cv_header_png_h" = "yes"; then
20739 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20740echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20741if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20743else
20744 ac_check_lib_save_LIBS=$LIBS
20745LIBS="-lpng -lz -lm $LIBS"
20746cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h. */
20752
20753/* Override any gcc2 internal prototype to avoid an error. */
20754#ifdef __cplusplus
20755extern "C"
20756#endif
20757/* We use char because int might match the return type of a gcc2
20758 builtin and then its argument prototype would still apply. */
20759char png_check_sig ();
20760int
20761main ()
20762{
20763png_check_sig ();
20764 ;
20765 return 0;
20766}
20767_ACEOF
20768rm -f conftest.$ac_objext conftest$ac_exeext
20769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20770 (eval $ac_link) 2>conftest.er1
a848cd7e 20771 ac_status=$?
ac1cb8d3
VS
20772 grep -v '^ *+' conftest.er1 >conftest.err
20773 rm -f conftest.er1
20774 cat conftest.err >&5
a848cd7e
SC
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
4d4ff94c 20777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } &&
20783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; }; then
20789 ac_cv_lib_png_png_check_sig=yes
20790else
20791 echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794ac_cv_lib_png_png_check_sig=no
20795fi
ac1cb8d3
VS
20796rm -f conftest.err conftest.$ac_objext \
20797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20798LIBS=$ac_check_lib_save_LIBS
20799fi
20800echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20801echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20802if test $ac_cv_lib_png_png_check_sig = yes; then
20803 PNG_LINK=" -lpng -lz"
20804fi
20805
20806 fi
20807
20808 if test "x$PNG_LINK" = "x" ; then
20809 if test "$wxUSE_LIBPNG" = "sys" ; then
20810 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20811echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20812 { (exit 1); exit 1; }; }
20813 else
20814 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20815echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20816 wxUSE_LIBPNG=builtin
20817 fi
20818 else
20819 wxUSE_LIBPNG=sys
20820 fi
20821 fi
20822 fi
20823
20824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20825fi
20826
20827
20828JPEG_LINK=
20829if test "$wxUSE_LIBJPEG" != "no" ; then
20830 cat >>confdefs.h <<\_ACEOF
20831#define wxUSE_LIBJPEG 1
20832_ACEOF
20833
20834
20835 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20836 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20837echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20838 wxUSE_LIBJPEG=sys
20839 fi
20840
20841 if test "$wxUSE_MGL" != 1 ; then
20842 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20843 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20844echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20845 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20847else
20848 cat >conftest.$ac_ext <<_ACEOF
20849/* confdefs.h. */
20850_ACEOF
20851cat confdefs.h >>conftest.$ac_ext
20852cat >>conftest.$ac_ext <<_ACEOF
20853/* end confdefs.h. */
20854
20855 #undef HAVE_STDLIB_H
20856 #include <stdio.h>
20857 #include <jpeglib.h>
20858
20859int
20860main ()
20861{
20862
20863
20864 ;
20865 return 0;
20866}
20867_ACEOF
20868rm -f conftest.$ac_objext
20869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20870 (eval $ac_compile) 2>conftest.er1
a848cd7e 20871 ac_status=$?
ac1cb8d3
VS
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
a848cd7e
SC
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
4d4ff94c 20877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_header_jpeglib_h=yes
20890else
20891 echo "$as_me: failed program was:" >&5
20892sed 's/^/| /' conftest.$ac_ext >&5
20893
20894ac_cv_header_jpeglib_h=no
20895
20896fi
ac1cb8d3 20897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20898
20899fi
20900
20901 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20902echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20903
20904 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20905 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20906echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20907if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909else
20910 ac_check_lib_save_LIBS=$LIBS
20911LIBS="-ljpeg $LIBS"
20912cat >conftest.$ac_ext <<_ACEOF
20913/* confdefs.h. */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h. */
20918
20919/* Override any gcc2 internal prototype to avoid an error. */
20920#ifdef __cplusplus
20921extern "C"
20922#endif
20923/* We use char because int might match the return type of a gcc2
20924 builtin and then its argument prototype would still apply. */
20925char jpeg_read_header ();
20926int
20927main ()
20928{
20929jpeg_read_header ();
20930 ;
20931 return 0;
20932}
20933_ACEOF
20934rm -f conftest.$ac_objext conftest$ac_exeext
20935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20936 (eval $ac_link) 2>conftest.er1
a848cd7e 20937 ac_status=$?
ac1cb8d3
VS
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
a848cd7e
SC
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } &&
4d4ff94c 20943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_lib_jpeg_jpeg_read_header=yes
20956else
20957 echo "$as_me: failed program was:" >&5
20958sed 's/^/| /' conftest.$ac_ext >&5
20959
20960ac_cv_lib_jpeg_jpeg_read_header=no
20961fi
ac1cb8d3
VS
20962rm -f conftest.err conftest.$ac_objext \
20963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20964LIBS=$ac_check_lib_save_LIBS
20965fi
20966echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20967echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20968if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20969 JPEG_LINK=" -ljpeg"
20970fi
20971
20972 fi
20973
20974 if test "x$JPEG_LINK" = "x" ; then
20975 if test "$wxUSE_LIBJPEG" = "sys" ; then
20976 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20977echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20978 { (exit 1); exit 1; }; }
20979 else
20980 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20981echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20982 wxUSE_LIBJPEG=builtin
20983 fi
20984 else
20985 wxUSE_LIBJPEG=sys
20986 fi
20987 fi
20988 fi
20989fi
20990
20991
20992TIFF_LINK=
20993TIFF_PREREQ_LINKS=-lm
20994if test "$wxUSE_LIBTIFF" != "no" ; then
20995 cat >>confdefs.h <<\_ACEOF
20996#define wxUSE_LIBTIFF 1
20997_ACEOF
20998
20999
21000 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21001 if test "$wxUSE_LIBJPEG" = "sys"; then
21002 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21003 fi
21004 if test "$wxUSE_ZLIB" = "sys"; then
21005 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21006 fi
21007 if test "${ac_cv_header_tiffio_h+set}" = set; then
21008 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21009echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21010if test "${ac_cv_header_tiffio_h+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012fi
21013echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21014echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21015else
21016 # Is the header compilable?
21017echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21018echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21019cat >conftest.$ac_ext <<_ACEOF
21020/* confdefs.h. */
21021_ACEOF
21022cat confdefs.h >>conftest.$ac_ext
21023cat >>conftest.$ac_ext <<_ACEOF
21024/* end confdefs.h. */
21025$ac_includes_default
21026#include <tiffio.h>
21027_ACEOF
21028rm -f conftest.$ac_objext
21029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21030 (eval $ac_compile) 2>conftest.er1
a848cd7e 21031 ac_status=$?
ac1cb8d3
VS
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
a848cd7e
SC
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } &&
4d4ff94c 21037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; } &&
21043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 ac_header_compiler=yes
21050else
21051 echo "$as_me: failed program was:" >&5
21052sed 's/^/| /' conftest.$ac_ext >&5
21053
21054ac_header_compiler=no
21055fi
ac1cb8d3 21056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21057echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21058echo "${ECHO_T}$ac_header_compiler" >&6
21059
21060# Is the header present?
21061echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21062echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21063cat >conftest.$ac_ext <<_ACEOF
21064/* confdefs.h. */
21065_ACEOF
21066cat confdefs.h >>conftest.$ac_ext
21067cat >>conftest.$ac_ext <<_ACEOF
21068/* end confdefs.h. */
21069#include <tiffio.h>
21070_ACEOF
21071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } >/dev/null; then
21079 if test -s conftest.err; then
21080 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21082 else
21083 ac_cpp_err=
21084 fi
21085else
21086 ac_cpp_err=yes
21087fi
21088if test -z "$ac_cpp_err"; then
21089 ac_header_preproc=yes
21090else
21091 echo "$as_me: failed program was:" >&5
21092sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 ac_header_preproc=no
21095fi
21096rm -f conftest.err conftest.$ac_ext
21097echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21098echo "${ECHO_T}$ac_header_preproc" >&6
21099
21100# So? What about this header?
ac1cb8d3
VS
21101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21102 yes:no: )
a848cd7e
SC
21103 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21104echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21105 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21106echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21107 ac_header_preproc=yes
a848cd7e 21108 ;;
ac1cb8d3 21109 no:yes:* )
a848cd7e
SC
21110 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21111echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21112 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21113echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21114 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21115echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21117echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21118 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21119echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21120 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21121echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21122 (
21123 cat <<\_ASBOX
ac1cb8d3
VS
21124## ----------------------------------------- ##
21125## Report this to wx-dev@lists.wxwidgets.org ##
21126## ----------------------------------------- ##
a848cd7e
SC
21127_ASBOX
21128 ) |
21129 sed "s/^/$as_me: WARNING: /" >&2
21130 ;;
21131esac
21132echo "$as_me:$LINENO: checking for tiffio.h" >&5
21133echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21134if test "${ac_cv_header_tiffio_h+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21136else
21137 ac_cv_header_tiffio_h=$ac_header_preproc
21138fi
21139echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21140echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21141
21142fi
21143if test $ac_cv_header_tiffio_h = yes; then
21144
21145 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21146echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21147if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 ac_check_lib_save_LIBS=$LIBS
21151LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21152cat >conftest.$ac_ext <<_ACEOF
21153/* confdefs.h. */
21154_ACEOF
21155cat confdefs.h >>conftest.$ac_ext
21156cat >>conftest.$ac_ext <<_ACEOF
21157/* end confdefs.h. */
21158
21159/* Override any gcc2 internal prototype to avoid an error. */
21160#ifdef __cplusplus
21161extern "C"
21162#endif
21163/* We use char because int might match the return type of a gcc2
21164 builtin and then its argument prototype would still apply. */
21165char TIFFError ();
21166int
21167main ()
21168{
21169TIFFError ();
21170 ;
21171 return 0;
21172}
21173_ACEOF
21174rm -f conftest.$ac_objext conftest$ac_exeext
21175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21176 (eval $ac_link) 2>conftest.er1
a848cd7e 21177 ac_status=$?
ac1cb8d3
VS
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
a848cd7e
SC
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
4d4ff94c 21183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_lib_tiff_TIFFError=yes
21196else
21197 echo "$as_me: failed program was:" >&5
21198sed 's/^/| /' conftest.$ac_ext >&5
21199
21200ac_cv_lib_tiff_TIFFError=no
21201fi
ac1cb8d3
VS
21202rm -f conftest.err conftest.$ac_objext \
21203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21204LIBS=$ac_check_lib_save_LIBS
21205fi
21206echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21207echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21208if test $ac_cv_lib_tiff_TIFFError = yes; then
21209 TIFF_LINK=" -ltiff"
21210fi
21211
21212
21213
21214fi
21215
21216
21217
21218 if test "x$TIFF_LINK" = "x" ; then
21219 if test "$wxUSE_LIBTIFF" = "sys" ; then
21220 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21221echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21222 { (exit 1); exit 1; }; }
21223 else
21224 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21225echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21226 wxUSE_LIBTIFF=builtin
21227 fi
21228 else
21229 wxUSE_LIBTIFF=sys
21230 fi
21231 fi
21232fi
21233
21234
21235if test "$wxUSE_EXPAT" != "no"; then
21236 wxUSE_XML=yes
21237 cat >>confdefs.h <<\_ACEOF
21238#define wxUSE_EXPAT 1
21239_ACEOF
21240
21241 cat >>confdefs.h <<\_ACEOF
21242#define wxUSE_XML 1
21243_ACEOF
21244
21245
21246 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21247 if test "${ac_cv_header_expat_h+set}" = set; then
21248 echo "$as_me:$LINENO: checking for expat.h" >&5
21249echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21250if test "${ac_cv_header_expat_h+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252fi
21253echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21254echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21255else
21256 # Is the header compilable?
21257echo "$as_me:$LINENO: checking expat.h usability" >&5
21258echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21259cat >conftest.$ac_ext <<_ACEOF
21260/* confdefs.h. */
21261_ACEOF
21262cat confdefs.h >>conftest.$ac_ext
21263cat >>conftest.$ac_ext <<_ACEOF
21264/* end confdefs.h. */
21265$ac_includes_default
21266#include <expat.h>
21267_ACEOF
21268rm -f conftest.$ac_objext
21269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21270 (eval $ac_compile) 2>conftest.er1
a848cd7e 21271 ac_status=$?
ac1cb8d3
VS
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
a848cd7e
SC
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
4d4ff94c 21277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_header_compiler=yes
21290else
21291 echo "$as_me: failed program was:" >&5
21292sed 's/^/| /' conftest.$ac_ext >&5
21293
21294ac_header_compiler=no
21295fi
ac1cb8d3 21296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298echo "${ECHO_T}$ac_header_compiler" >&6
21299
21300# Is the header present?
21301echo "$as_me:$LINENO: checking expat.h presence" >&5
21302echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21303cat >conftest.$ac_ext <<_ACEOF
21304/* confdefs.h. */
21305_ACEOF
21306cat confdefs.h >>conftest.$ac_ext
21307cat >>conftest.$ac_ext <<_ACEOF
21308/* end confdefs.h. */
21309#include <expat.h>
21310_ACEOF
21311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } >/dev/null; then
21319 if test -s conftest.err; then
21320 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21322 else
21323 ac_cpp_err=
21324 fi
21325else
21326 ac_cpp_err=yes
21327fi
21328if test -z "$ac_cpp_err"; then
21329 ac_header_preproc=yes
21330else
21331 echo "$as_me: failed program was:" >&5
21332sed 's/^/| /' conftest.$ac_ext >&5
21333
21334 ac_header_preproc=no
21335fi
21336rm -f conftest.err conftest.$ac_ext
21337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338echo "${ECHO_T}$ac_header_preproc" >&6
21339
21340# So? What about this header?
ac1cb8d3
VS
21341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342 yes:no: )
a848cd7e
SC
21343 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21344echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21345 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21346echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc=yes
a848cd7e 21348 ;;
ac1cb8d3 21349 no:yes:* )
a848cd7e
SC
21350 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21351echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21352 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21353echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21355echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21357echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21358 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21359echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21360 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21361echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21362 (
21363 cat <<\_ASBOX
ac1cb8d3
VS
21364## ----------------------------------------- ##
21365## Report this to wx-dev@lists.wxwidgets.org ##
21366## ----------------------------------------- ##
a848cd7e
SC
21367_ASBOX
21368 ) |
21369 sed "s/^/$as_me: WARNING: /" >&2
21370 ;;
21371esac
21372echo "$as_me:$LINENO: checking for expat.h" >&5
21373echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21374if test "${ac_cv_header_expat_h+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377 ac_cv_header_expat_h=$ac_header_preproc
21378fi
21379echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21380echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21381
21382fi
21383if test $ac_cv_header_expat_h = yes; then
21384 found_expat_h=1
21385fi
21386
21387
21388 if test "x$found_expat_h" = "x1"; then
21389 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21390echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21391if test "${wx_cv_expat_is_not_broken+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393else
21394
21395
21396
21397 ac_ext=cc
21398ac_cpp='$CXXCPP $CPPFLAGS'
21399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21402
21403 cat >conftest.$ac_ext <<_ACEOF
21404/* confdefs.h. */
21405_ACEOF
21406cat confdefs.h >>conftest.$ac_ext
21407cat >>conftest.$ac_ext <<_ACEOF
21408/* end confdefs.h. */
21409#include <expat.h>
21410int
21411main ()
21412{
21413
21414 ;
21415 return 0;
21416}
21417_ACEOF
21418rm -f conftest.$ac_objext
21419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21420 (eval $ac_compile) 2>conftest.er1
a848cd7e 21421 ac_status=$?
ac1cb8d3
VS
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
a848cd7e
SC
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
4d4ff94c 21427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; } &&
21433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 wx_cv_expat_is_not_broken=yes
21440else
21441 echo "$as_me: failed program was:" >&5
21442sed 's/^/| /' conftest.$ac_ext >&5
21443
21444wx_cv_expat_is_not_broken=no
21445
21446fi
ac1cb8d3 21447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21448 ac_ext=c
21449ac_cpp='$CPP $CPPFLAGS'
21450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452ac_compiler_gnu=$ac_cv_c_compiler_gnu
21453
21454
21455
21456fi
21457echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21458echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21459 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21460 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21461echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21462if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464else
21465 ac_check_lib_save_LIBS=$LIBS
21466LIBS="-lexpat $LIBS"
21467cat >conftest.$ac_ext <<_ACEOF
21468/* confdefs.h. */
21469_ACEOF
21470cat confdefs.h >>conftest.$ac_ext
21471cat >>conftest.$ac_ext <<_ACEOF
21472/* end confdefs.h. */
21473
21474/* Override any gcc2 internal prototype to avoid an error. */
21475#ifdef __cplusplus
21476extern "C"
21477#endif
21478/* We use char because int might match the return type of a gcc2
21479 builtin and then its argument prototype would still apply. */
21480char XML_ParserCreate ();
21481int
21482main ()
21483{
21484XML_ParserCreate ();
21485 ;
21486 return 0;
21487}
21488_ACEOF
21489rm -f conftest.$ac_objext conftest$ac_exeext
21490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21491 (eval $ac_link) 2>conftest.er1
a848cd7e 21492 ac_status=$?
ac1cb8d3
VS
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
a848cd7e
SC
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
4d4ff94c 21498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; } &&
21504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 ac_cv_lib_expat_XML_ParserCreate=yes
21511else
21512 echo "$as_me: failed program was:" >&5
21513sed 's/^/| /' conftest.$ac_ext >&5
21514
21515ac_cv_lib_expat_XML_ParserCreate=no
21516fi
ac1cb8d3
VS
21517rm -f conftest.err conftest.$ac_objext \
21518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21519LIBS=$ac_check_lib_save_LIBS
21520fi
21521echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21522echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21523if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21524 EXPAT_LINK=" -lexpat"
21525fi
21526
21527 fi
21528 fi
21529 if test "x$EXPAT_LINK" = "x" ; then
21530 if test "$wxUSE_EXPAT" = "sys" ; then
21531 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21532echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21533 { (exit 1); exit 1; }; }
21534 else
21535 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21536echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21537 wxUSE_EXPAT=builtin
21538 fi
21539 else
21540 wxUSE_EXPAT=sys
21541 fi
21542 fi
21543 if test "$wxUSE_EXPAT" = "builtin" ; then
21544
21545
21546subdirs="$subdirs src/expat"
21547
21548 fi
21549fi
21550
21551
21552
21553if test "$wxUSE_LIBMSPACK" != "no"; then
21554
21555 if test "${ac_cv_header_mspack_h+set}" = set; then
21556 echo "$as_me:$LINENO: checking for mspack.h" >&5
21557echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21558if test "${ac_cv_header_mspack_h+set}" = set; then
21559 echo $ECHO_N "(cached) $ECHO_C" >&6
21560fi
21561echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21562echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21563else
21564 # Is the header compilable?
21565echo "$as_me:$LINENO: checking mspack.h usability" >&5
21566echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21567cat >conftest.$ac_ext <<_ACEOF
21568/* confdefs.h. */
21569_ACEOF
21570cat confdefs.h >>conftest.$ac_ext
21571cat >>conftest.$ac_ext <<_ACEOF
21572/* end confdefs.h. */
21573$ac_includes_default
21574#include <mspack.h>
21575_ACEOF
21576rm -f conftest.$ac_objext
21577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21578 (eval $ac_compile) 2>conftest.er1
a848cd7e 21579 ac_status=$?
ac1cb8d3
VS
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
a848cd7e
SC
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } &&
4d4ff94c 21585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; } &&
21591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; }; then
21597 ac_header_compiler=yes
21598else
21599 echo "$as_me: failed program was:" >&5
21600sed 's/^/| /' conftest.$ac_ext >&5
21601
21602ac_header_compiler=no
21603fi
ac1cb8d3 21604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21606echo "${ECHO_T}$ac_header_compiler" >&6
21607
21608# Is the header present?
21609echo "$as_me:$LINENO: checking mspack.h presence" >&5
21610echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21611cat >conftest.$ac_ext <<_ACEOF
21612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
21617#include <mspack.h>
21618_ACEOF
21619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } >/dev/null; then
21627 if test -s conftest.err; then
21628 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21630 else
21631 ac_cpp_err=
21632 fi
21633else
21634 ac_cpp_err=yes
21635fi
21636if test -z "$ac_cpp_err"; then
21637 ac_header_preproc=yes
21638else
21639 echo "$as_me: failed program was:" >&5
21640sed 's/^/| /' conftest.$ac_ext >&5
21641
21642 ac_header_preproc=no
21643fi
21644rm -f conftest.err conftest.$ac_ext
21645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21646echo "${ECHO_T}$ac_header_preproc" >&6
21647
21648# So? What about this header?
ac1cb8d3
VS
21649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21650 yes:no: )
a848cd7e
SC
21651 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21652echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21653 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21654echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21655 ac_header_preproc=yes
a848cd7e 21656 ;;
ac1cb8d3 21657 no:yes:* )
a848cd7e
SC
21658 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21659echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21660 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21661echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21663echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21665echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21666 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21667echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21668 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21669echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21670 (
21671 cat <<\_ASBOX
ac1cb8d3
VS
21672## ----------------------------------------- ##
21673## Report this to wx-dev@lists.wxwidgets.org ##
21674## ----------------------------------------- ##
a848cd7e
SC
21675_ASBOX
21676 ) |
21677 sed "s/^/$as_me: WARNING: /" >&2
21678 ;;
21679esac
21680echo "$as_me:$LINENO: checking for mspack.h" >&5
21681echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21682if test "${ac_cv_header_mspack_h+set}" = set; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21684else
21685 ac_cv_header_mspack_h=$ac_header_preproc
21686fi
21687echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21688echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21689
21690fi
21691if test $ac_cv_header_mspack_h = yes; then
21692 found_mspack_h=1
21693fi
21694
21695
21696 if test "x$found_mspack_h" = "x1"; then
21697 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21698echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21699if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21701else
21702 ac_check_lib_save_LIBS=$LIBS
21703LIBS="-lmspack $LIBS"
21704cat >conftest.$ac_ext <<_ACEOF
21705/* confdefs.h. */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h. */
21710
21711/* Override any gcc2 internal prototype to avoid an error. */
21712#ifdef __cplusplus
21713extern "C"
21714#endif
21715/* We use char because int might match the return type of a gcc2
21716 builtin and then its argument prototype would still apply. */
21717char mspack_create_chm_decompressor ();
21718int
21719main ()
21720{
21721mspack_create_chm_decompressor ();
21722 ;
21723 return 0;
21724}
21725_ACEOF
21726rm -f conftest.$ac_objext conftest$ac_exeext
21727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21728 (eval $ac_link) 2>conftest.er1
a848cd7e 21729 ac_status=$?
ac1cb8d3
VS
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
a848cd7e
SC
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
4d4ff94c 21735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; } &&
21741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21748else
21749 echo "$as_me: failed program was:" >&5
21750sed 's/^/| /' conftest.$ac_ext >&5
21751
21752ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21753fi
ac1cb8d3
VS
21754rm -f conftest.err conftest.$ac_objext \
21755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21756LIBS=$ac_check_lib_save_LIBS
21757fi
21758echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21759echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21760if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21761 MSPACK_LINK=" -lmspack"
21762fi
21763
21764 fi
21765 if test "x$MSPACK_LINK" = "x" ; then
21766 wxUSE_LIBMSPACK=no
21767 else
21768 cat >>confdefs.h <<\_ACEOF
21769#define wxUSE_LIBMSPACK 1
21770_ACEOF
21771
21772 fi
21773fi
21774
21775
21776
21777AFMINSTALL=
21778WIN32INSTALL=
21779
21780TOOLKIT=
21781TOOLKIT_INCLUDE=
21782WIDGET_SET=
21783
21784if test "$USE_WIN32" = 1 ; then
21785
21786for ac_header in w32api.h
21787do
21788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21789if eval "test \"\${$as_ac_Header+set}\" = set"; then
21790 echo "$as_me:$LINENO: checking for $ac_header" >&5
21791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21792if eval "test \"\${$as_ac_Header+set}\" = set"; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21794fi
21795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21797else
21798 # Is the header compilable?
21799echo "$as_me:$LINENO: checking $ac_header usability" >&5
21800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21801cat >conftest.$ac_ext <<_ACEOF
21802/* confdefs.h. */
21803_ACEOF
21804cat confdefs.h >>conftest.$ac_ext
21805cat >>conftest.$ac_ext <<_ACEOF
21806/* end confdefs.h. */
21807$ac_includes_default
21808#include <$ac_header>
21809_ACEOF
21810rm -f conftest.$ac_objext
21811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21812 (eval $ac_compile) 2>conftest.er1
a848cd7e 21813 ac_status=$?
ac1cb8d3
VS
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
a848cd7e
SC
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
4d4ff94c 21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; } &&
21825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_header_compiler=yes
21832else
21833 echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836ac_header_compiler=no
21837fi
ac1cb8d3 21838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21840echo "${ECHO_T}$ac_header_compiler" >&6
21841
21842# Is the header present?
21843echo "$as_me:$LINENO: checking $ac_header presence" >&5
21844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21845cat >conftest.$ac_ext <<_ACEOF
21846/* confdefs.h. */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h. */
21851#include <$ac_header>
21852_ACEOF
21853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } >/dev/null; then
21861 if test -s conftest.err; then
21862 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21864 else
21865 ac_cpp_err=
21866 fi
21867else
21868 ac_cpp_err=yes
21869fi
21870if test -z "$ac_cpp_err"; then
21871 ac_header_preproc=yes
21872else
21873 echo "$as_me: failed program was:" >&5
21874sed 's/^/| /' conftest.$ac_ext >&5
21875
21876 ac_header_preproc=no
21877fi
21878rm -f conftest.err conftest.$ac_ext
21879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21880echo "${ECHO_T}$ac_header_preproc" >&6
21881
21882# So? What about this header?
ac1cb8d3
VS
21883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21884 yes:no: )
a848cd7e
SC
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21889 ac_header_preproc=yes
a848cd7e 21890 ;;
ac1cb8d3 21891 no:yes:* )
a848cd7e
SC
21892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21904 (
21905 cat <<\_ASBOX
ac1cb8d3
VS
21906## ----------------------------------------- ##
21907## Report this to wx-dev@lists.wxwidgets.org ##
21908## ----------------------------------------- ##
a848cd7e
SC
21909_ASBOX
21910 ) |
21911 sed "s/^/$as_me: WARNING: /" >&2
21912 ;;
21913esac
21914echo "$as_me:$LINENO: checking for $ac_header" >&5
21915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21916if eval "test \"\${$as_ac_Header+set}\" = set"; then
21917 echo $ECHO_N "(cached) $ECHO_C" >&6
21918else
ac1cb8d3 21919 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21920fi
21921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21923
21924fi
21925if test `eval echo '${'$as_ac_Header'}'` = yes; then
21926 cat >>confdefs.h <<_ACEOF
21927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21928_ACEOF
21929
21930fi
21931
21932done
21933
21934 if test "${ac_cv_header_windows_h+set}" = set; then
21935 echo "$as_me:$LINENO: checking for windows.h" >&5
21936echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21937if test "${ac_cv_header_windows_h+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21939fi
21940echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21941echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21942else
21943 # Is the header compilable?
21944echo "$as_me:$LINENO: checking windows.h usability" >&5
21945echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21946cat >conftest.$ac_ext <<_ACEOF
21947/* confdefs.h. */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h. */
21952$ac_includes_default
21953#include <windows.h>
21954_ACEOF
21955rm -f conftest.$ac_objext
21956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21957 (eval $ac_compile) 2>conftest.er1
a848cd7e 21958 ac_status=$?
ac1cb8d3
VS
21959 grep -v '^ *+' conftest.er1 >conftest.err
21960 rm -f conftest.er1
21961 cat conftest.err >&5
a848cd7e
SC
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
4d4ff94c 21964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; } &&
21970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 ac_header_compiler=yes
21977else
21978 echo "$as_me: failed program was:" >&5
21979sed 's/^/| /' conftest.$ac_ext >&5
21980
21981ac_header_compiler=no
21982fi
ac1cb8d3 21983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21985echo "${ECHO_T}$ac_header_compiler" >&6
21986
21987# Is the header present?
21988echo "$as_me:$LINENO: checking windows.h presence" >&5
21989echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21990cat >conftest.$ac_ext <<_ACEOF
21991/* confdefs.h. */
21992_ACEOF
21993cat confdefs.h >>conftest.$ac_ext
21994cat >>conftest.$ac_ext <<_ACEOF
21995/* end confdefs.h. */
21996#include <windows.h>
21997_ACEOF
21998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22000 ac_status=$?
22001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } >/dev/null; then
22006 if test -s conftest.err; then
22007 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22009 else
22010 ac_cpp_err=
22011 fi
22012else
22013 ac_cpp_err=yes
22014fi
22015if test -z "$ac_cpp_err"; then
22016 ac_header_preproc=yes
22017else
22018 echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021 ac_header_preproc=no
22022fi
22023rm -f conftest.err conftest.$ac_ext
22024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22025echo "${ECHO_T}$ac_header_preproc" >&6
22026
22027# So? What about this header?
ac1cb8d3
VS
22028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22029 yes:no: )
a848cd7e
SC
22030 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22031echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22032 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22033echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22034 ac_header_preproc=yes
a848cd7e 22035 ;;
ac1cb8d3 22036 no:yes:* )
a848cd7e
SC
22037 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22038echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22039 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22040echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22042echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22044echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22045 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22046echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22047 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22048echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22049 (
22050 cat <<\_ASBOX
ac1cb8d3
VS
22051## ----------------------------------------- ##
22052## Report this to wx-dev@lists.wxwidgets.org ##
22053## ----------------------------------------- ##
a848cd7e
SC
22054_ASBOX
22055 ) |
22056 sed "s/^/$as_me: WARNING: /" >&2
22057 ;;
22058esac
22059echo "$as_me:$LINENO: checking for windows.h" >&5
22060echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22061if test "${ac_cv_header_windows_h+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063else
22064 ac_cv_header_windows_h=$ac_header_preproc
22065fi
22066echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22067echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22068
22069fi
22070if test $ac_cv_header_windows_h = yes; then
22071 :
22072else
22073
22074 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22075echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22076 { (exit 1); exit 1; }; }
22077
22078fi
22079
22080
22081
22082 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22083
22084 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22085 LIBS="$LIBS -loleacc"
22086 fi
22087
22088 case "${host}" in
22089 *-*-cygwin* )
22090 LIBS="$LIBS -lkernel32 -luser32"
22091 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22092 esac
22093
22094 if test "$wxUSE_ODBC" = "sys" ; then
22095 wxUSE_ODBC = "yes"
22096 fi
22097 if test "$wxUSE_ODBC" = "yes" ; then
22098 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22099 cat >>confdefs.h <<\_ACEOF
22100#define wxUSE_ODBC 1
22101_ACEOF
22102
22103 fi
22104
22105 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22106 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22107
22108 WIN32INSTALL=win32install
22109fi
22110
22111if test "$wxUSE_GUI" = "yes"; then
22112 USE_GUI=1
22113
22114 GUI_TK_LIBRARY=
22115
22116 WXGTK12=
22117 WXGTK127=
22118 WXGTK20=
22119 WXGPE=
22120
22121 if test "$wxUSE_MSW" = 1 ; then
22122 TOOLKIT=MSW
22123 GUIDIST=MSW_DIST
22124
22125 case "${host}" in
22126 *-*-mingw32* )
22127 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22128 esac
22129 fi
22130
22131 if test "$wxUSE_GTK" = 1; then
22132 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22133echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22134
22135 gtk_version_cached=1
22136 if test "${wx_cv_lib_gtk+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138else
22139
22140 gtk_version_cached=0
22141 echo "$as_me:$LINENO: result: " >&5
22142echo "${ECHO_T}" >&6
22143
22144 GTK_MODULES=
22145 if test "$wxUSE_THREADS" = "yes"; then
22146 GTK_MODULES=gthread
22147 fi
22148
22149 wx_cv_lib_gtk=
22150 if test "x$wxUSE_GTK2" = "xyes"; then
22151 # Check whether --enable-gtktest or --disable-gtktest was given.
22152if test "${enable_gtktest+set}" = set; then
22153 enableval="$enable_gtktest"
22154
22155else
22156 enable_gtktest=yes
22157fi;
22158
22159 pkg_config_args=gtk+-2.0
22160 for module in . $GTK_MODULES
22161 do
22162 case "$module" in
22163 gthread)
22164 pkg_config_args="$pkg_config_args gthread-2.0"
22165 ;;
22166 esac
22167 done
22168
22169 no_gtk=""
22170
22171 # Extract the first word of "pkg-config", so it can be a program name with args.
22172set dummy pkg-config; ac_word=$2
22173echo "$as_me:$LINENO: checking for $ac_word" >&5
22174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22175if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22177else
22178 case $PKG_CONFIG in
22179 [\\/]* | ?:[\\/]*)
22180 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22181 ;;
22182 *)
22183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22184for as_dir in $PATH
22185do
22186 IFS=$as_save_IFS
22187 test -z "$as_dir" && as_dir=.
22188 for ac_exec_ext in '' $ac_executable_extensions; do
22189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22190 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22192 break 2
22193 fi
22194done
22195done
22196
22197 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22198 ;;
22199esac
22200fi
22201PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22202
22203if test -n "$PKG_CONFIG"; then
22204 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22205echo "${ECHO_T}$PKG_CONFIG" >&6
22206else
22207 echo "$as_me:$LINENO: result: no" >&5
22208echo "${ECHO_T}no" >&6
22209fi
22210
22211
22212 if test x$PKG_CONFIG != xno ; then
22213 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22214 :
22215 else
c2218763 22216 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22217 no_gtk=yes
22218 PKG_CONFIG=no
22219 fi
22220 else
22221 no_gtk=yes
22222 fi
22223
22224 min_gtk_version=2.0.0
22225 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22226echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22227
22228 if test x$PKG_CONFIG != xno ; then
22229 ## don't try to run the test against uninstalled libtool libs
22230 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22231 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22232 enable_gtktest=no
22233 fi
22234
22235 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22236 :
22237 else
22238 no_gtk=yes
22239 fi
22240 fi
22241
22242 if test x"$no_gtk" = x ; then
22243 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22244 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22245 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22247 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22249 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22250 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22251 if test "x$enable_gtktest" = "xyes" ; then
22252 ac_save_CFLAGS="$CFLAGS"
22253 ac_save_LIBS="$LIBS"
22254 CFLAGS="$CFLAGS $GTK_CFLAGS"
22255 LIBS="$GTK_LIBS $LIBS"
22256 rm -f conf.gtktest
22257 if test "$cross_compiling" = yes; then
22258 echo $ac_n "cross compiling; assumed OK... $ac_c"
22259else
22260 cat >conftest.$ac_ext <<_ACEOF
22261/* confdefs.h. */
22262_ACEOF
22263cat confdefs.h >>conftest.$ac_ext
22264cat >>conftest.$ac_ext <<_ACEOF
22265/* end confdefs.h. */
22266
22267#include <gtk/gtk.h>
22268#include <stdio.h>
22269#include <stdlib.h>
22270
22271int
22272main ()
22273{
22274 int major, minor, micro;
22275 char *tmp_version;
22276
22277 system ("touch conf.gtktest");
22278
22279 /* HP/UX 9 (%@#!) writes to sscanf strings */
22280 tmp_version = g_strdup("$min_gtk_version");
22281 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22282 printf("%s, bad version string\n", "$min_gtk_version");
22283 exit(1);
22284 }
22285
22286 if ((gtk_major_version != $gtk_config_major_version) ||
22287 (gtk_minor_version != $gtk_config_minor_version) ||
22288 (gtk_micro_version != $gtk_config_micro_version))
22289 {
22290 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22291 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22292 gtk_major_version, gtk_minor_version, gtk_micro_version);
22293 printf ("*** was found! If pkg-config was correct, then it is best\n");
22294 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22295 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22296 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22297 printf("*** required on your system.\n");
22298 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22299 printf("*** to point to the correct configuration files\n");
22300 }
22301 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22302 (gtk_minor_version != GTK_MINOR_VERSION) ||
22303 (gtk_micro_version != GTK_MICRO_VERSION))
22304 {
22305 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22306 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22307 printf("*** library (version %d.%d.%d)\n",
22308 gtk_major_version, gtk_minor_version, gtk_micro_version);
22309 }
22310 else
22311 {
22312 if ((gtk_major_version > major) ||
22313 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22314 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22315 {
22316 return 0;
22317 }
22318 else
22319 {
22320 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22321 gtk_major_version, gtk_minor_version, gtk_micro_version);
22322 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22323 major, minor, micro);
22324 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22325 printf("***\n");
22326 printf("*** If you have already installed a sufficiently new version, this error\n");
22327 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22328 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22329 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22330 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22331 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22332 printf("*** so that the correct libraries are found at run-time))\n");
22333 }
22334 }
22335 return 1;
22336}
22337
22338_ACEOF
22339rm -f conftest$ac_exeext
22340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22341 (eval $ac_link) 2>&5
22342 ac_status=$?
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22346 (eval $ac_try) 2>&5
22347 ac_status=$?
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); }; }; then
22350 :
22351else
22352 echo "$as_me: program exited with status $ac_status" >&5
22353echo "$as_me: failed program was:" >&5
22354sed 's/^/| /' conftest.$ac_ext >&5
22355
22356( exit $ac_status )
22357no_gtk=yes
22358fi
ac1cb8d3 22359rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22360fi
22361 CFLAGS="$ac_save_CFLAGS"
22362 LIBS="$ac_save_LIBS"
22363 fi
22364 fi
22365 if test "x$no_gtk" = x ; then
22366 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22367echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22368 wx_cv_lib_gtk=2.0
22369 else
22370 echo "$as_me:$LINENO: result: no" >&5
22371echo "${ECHO_T}no" >&6
22372 if test "$PKG_CONFIG" = "no" ; then
22373 echo "*** A new enough version of pkg-config was not found."
22374 echo "*** See http://pkgconfig.sourceforge.net"
22375 else
22376 if test -f conf.gtktest ; then
22377 :
22378 else
22379 echo "*** Could not run GTK+ test program, checking why..."
22380 ac_save_CFLAGS="$CFLAGS"
22381 ac_save_LIBS="$LIBS"
22382 CFLAGS="$CFLAGS $GTK_CFLAGS"
22383 LIBS="$LIBS $GTK_LIBS"
22384 cat >conftest.$ac_ext <<_ACEOF
22385/* confdefs.h. */
22386_ACEOF
22387cat confdefs.h >>conftest.$ac_ext
22388cat >>conftest.$ac_ext <<_ACEOF
22389/* end confdefs.h. */
22390
22391#include <gtk/gtk.h>
22392#include <stdio.h>
22393
22394int
22395main ()
22396{
22397 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22398 ;
22399 return 0;
22400}
22401_ACEOF
22402rm -f conftest.$ac_objext conftest$ac_exeext
22403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22404 (eval $ac_link) 2>conftest.er1
a848cd7e 22405 ac_status=$?
ac1cb8d3
VS
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
a848cd7e
SC
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
4d4ff94c 22411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); }; }; then
22423 echo "*** The test program compiled, but did not run. This usually means"
22424 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22425 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22426 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22427 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22428 echo "*** is required on your system"
22429 echo "***"
22430 echo "*** If you have an old version installed, it is best to remove it, although"
22431 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22432else
22433 echo "$as_me: failed program was:" >&5
22434sed 's/^/| /' conftest.$ac_ext >&5
22435
22436 echo "*** The test program failed to compile or link. See the file config.log for the"
22437 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22438fi
ac1cb8d3
VS
22439rm -f conftest.err conftest.$ac_objext \
22440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22441 CFLAGS="$ac_save_CFLAGS"
22442 LIBS="$ac_save_LIBS"
22443 fi
22444 fi
22445 GTK_CFLAGS=""
22446 GTK_LIBS=""
22447 :
22448 fi
22449
22450
22451 rm -f conf.gtktest
22452
22453 else
22454
22455# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22456if test "${with_gtk_prefix+set}" = set; then
22457 withval="$with_gtk_prefix"
22458 gtk_config_prefix="$withval"
22459else
22460 gtk_config_prefix=""
22461fi;
22462
22463# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22464if test "${with_gtk_exec_prefix+set}" = set; then
22465 withval="$with_gtk_exec_prefix"
22466 gtk_config_exec_prefix="$withval"
22467else
22468 gtk_config_exec_prefix=""
22469fi;
22470# Check whether --enable-gtktest or --disable-gtktest was given.
22471if test "${enable_gtktest+set}" = set; then
22472 enableval="$enable_gtktest"
22473
22474else
22475 enable_gtktest=yes
22476fi;
22477
22478 for module in . $GTK_MODULES
22479 do
22480 case "$module" in
22481 gthread)
22482 gtk_config_args="$gtk_config_args gthread"
22483 ;;
22484 esac
22485 done
22486
22487 if test x$gtk_config_exec_prefix != x ; then
22488 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22489 if test x${GTK_CONFIG+set} != xset ; then
22490 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22491 fi
22492 fi
22493 if test x$gtk_config_prefix != x ; then
22494 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22495 if test x${GTK_CONFIG+set} != xset ; then
22496 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22497 fi
22498 fi
22499
22500 # Extract the first word of "gtk-config", so it can be a program name with args.
22501set dummy gtk-config; ac_word=$2
22502echo "$as_me:$LINENO: checking for $ac_word" >&5
22503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22504if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22505 echo $ECHO_N "(cached) $ECHO_C" >&6
22506else
22507 case $GTK_CONFIG in
22508 [\\/]* | ?:[\\/]*)
22509 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22510 ;;
22511 *)
22512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22513for as_dir in $PATH
22514do
22515 IFS=$as_save_IFS
22516 test -z "$as_dir" && as_dir=.
22517 for ac_exec_ext in '' $ac_executable_extensions; do
22518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22519 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22521 break 2
22522 fi
22523done
22524done
22525
22526 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22527 ;;
22528esac
22529fi
22530GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22531
22532if test -n "$GTK_CONFIG"; then
22533 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22534echo "${ECHO_T}$GTK_CONFIG" >&6
22535else
22536 echo "$as_me:$LINENO: result: no" >&5
22537echo "${ECHO_T}no" >&6
22538fi
22539
22540 min_gtk_version=1.2.7
22541 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22542echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22543 no_gtk=""
22544 if test "$GTK_CONFIG" = "no" ; then
22545 no_gtk=yes
22546 else
22547 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22548 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22549 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22550 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22551 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22552 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22553 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22554 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22555 if test "x$enable_gtktest" = "xyes" ; then
22556 ac_save_CFLAGS="$CFLAGS"
22557 ac_save_LIBS="$LIBS"
22558 CFLAGS="$CFLAGS $GTK_CFLAGS"
22559 LIBS="$GTK_LIBS $LIBS"
22560 rm -f conf.gtktest
22561 if test "$cross_compiling" = yes; then
22562 echo $ac_n "cross compiling; assumed OK... $ac_c"
22563else
22564 cat >conftest.$ac_ext <<_ACEOF
22565/* confdefs.h. */
22566_ACEOF
22567cat confdefs.h >>conftest.$ac_ext
22568cat >>conftest.$ac_ext <<_ACEOF
22569/* end confdefs.h. */
22570
22571#include <gtk/gtk.h>
22572#include <stdio.h>
22573#include <stdlib.h>
22574
22575int
22576main ()
22577{
22578 int major, minor, micro;
22579 char *tmp_version;
22580
22581 system ("touch conf.gtktest");
22582
22583 /* HP/UX 9 (%@#!) writes to sscanf strings */
22584 tmp_version = g_strdup("$min_gtk_version");
22585 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22586 printf("%s, bad version string\n", "$min_gtk_version");
22587 exit(1);
22588 }
22589
22590 if ((gtk_major_version != $gtk_config_major_version) ||
22591 (gtk_minor_version != $gtk_config_minor_version) ||
22592 (gtk_micro_version != $gtk_config_micro_version))
22593 {
22594 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22595 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22596 gtk_major_version, gtk_minor_version, gtk_micro_version);
22597 printf ("*** was found! If gtk-config was correct, then it is best\n");
22598 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22599 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22600 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22601 printf("*** required on your system.\n");
22602 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22603 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22604 printf("*** before re-running configure\n");
22605 }
22606#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22607 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22608 (gtk_minor_version != GTK_MINOR_VERSION) ||
22609 (gtk_micro_version != GTK_MICRO_VERSION))
22610 {
22611 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22612 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22613 printf("*** library (version %d.%d.%d)\n",
22614 gtk_major_version, gtk_minor_version, gtk_micro_version);
22615 }
22616#endif /* defined (GTK_MAJOR_VERSION) ... */
22617 else
22618 {
22619 if ((gtk_major_version > major) ||
22620 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22621 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22622 {
22623 return 0;
22624 }
22625 else
22626 {
22627 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22628 gtk_major_version, gtk_minor_version, gtk_micro_version);
22629 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22630 major, minor, micro);
22631 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22632 printf("***\n");
22633 printf("*** If you have already installed a sufficiently new version, this error\n");
22634 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22635 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22636 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22637 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22638 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22639 printf("*** so that the correct libraries are found at run-time))\n");
22640 }
22641 }
22642 return 1;
22643}
22644
22645_ACEOF
22646rm -f conftest$ac_exeext
22647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22648 (eval $ac_link) 2>&5
22649 ac_status=$?
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22653 (eval $ac_try) 2>&5
22654 ac_status=$?
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); }; }; then
22657 :
22658else
22659 echo "$as_me: program exited with status $ac_status" >&5
22660echo "$as_me: failed program was:" >&5
22661sed 's/^/| /' conftest.$ac_ext >&5
22662
22663( exit $ac_status )
22664no_gtk=yes
22665fi
ac1cb8d3 22666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22667fi
22668 CFLAGS="$ac_save_CFLAGS"
22669 LIBS="$ac_save_LIBS"
22670 fi
22671 fi
22672 if test "x$no_gtk" = x ; then
22673 echo "$as_me:$LINENO: result: yes" >&5
22674echo "${ECHO_T}yes" >&6
22675 wx_cv_lib_gtk=1.2.7
22676 else
22677 echo "$as_me:$LINENO: result: no" >&5
22678echo "${ECHO_T}no" >&6
22679 if test "$GTK_CONFIG" = "no" ; then
22680 echo "*** The gtk-config script installed by GTK could not be found"
22681 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22682 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22683 echo "*** full path to gtk-config."
22684 else
22685 if test -f conf.gtktest ; then
22686 :
22687 else
22688 echo "*** Could not run GTK test program, checking why..."
22689 CFLAGS="$CFLAGS $GTK_CFLAGS"
22690 LIBS="$LIBS $GTK_LIBS"
22691 cat >conftest.$ac_ext <<_ACEOF
22692/* confdefs.h. */
22693_ACEOF
22694cat confdefs.h >>conftest.$ac_ext
22695cat >>conftest.$ac_ext <<_ACEOF
22696/* end confdefs.h. */
22697
22698#include <gtk/gtk.h>
22699#include <stdio.h>
22700
22701int
22702main ()
22703{
22704 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22705 ;
22706 return 0;
22707}
22708_ACEOF
22709rm -f conftest.$ac_objext conftest$ac_exeext
22710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22711 (eval $ac_link) 2>conftest.er1
a848cd7e 22712 ac_status=$?
ac1cb8d3
VS
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
a848cd7e
SC
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } &&
4d4ff94c 22718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; } &&
22724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; }; then
22730 echo "*** The test program compiled, but did not run. This usually means"
22731 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22732 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22733 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22734 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22735 echo "*** is required on your system"
22736 echo "***"
22737 echo "*** If you have an old version installed, it is best to remove it, although"
22738 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22739 echo "***"
22740 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22741 echo "*** came with the system with the command"
22742 echo "***"
22743 echo "*** rpm --erase --nodeps gtk gtk-devel"
22744else
22745 echo "$as_me: failed program was:" >&5
22746sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 echo "*** The test program failed to compile or link. See the file config.log for the"
22749 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22750 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22751 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22752fi
ac1cb8d3
VS
22753rm -f conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22755 CFLAGS="$ac_save_CFLAGS"
22756 LIBS="$ac_save_LIBS"
22757 fi
22758 fi
22759 GTK_CFLAGS=""
22760 GTK_LIBS=""
22761 :
22762 fi
22763
22764
22765 rm -f conf.gtktest
22766
22767
22768 if test -z "$wx_cv_lib_gtk"; then
22769
22770# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22771if test "${with_gtk_prefix+set}" = set; then
22772 withval="$with_gtk_prefix"
22773 gtk_config_prefix="$withval"
22774else
22775 gtk_config_prefix=""
22776fi;
22777
22778# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22779if test "${with_gtk_exec_prefix+set}" = set; then
22780 withval="$with_gtk_exec_prefix"
22781 gtk_config_exec_prefix="$withval"
22782else
22783 gtk_config_exec_prefix=""
22784fi;
22785# Check whether --enable-gtktest or --disable-gtktest was given.
22786if test "${enable_gtktest+set}" = set; then
22787 enableval="$enable_gtktest"
22788
22789else
22790 enable_gtktest=yes
22791fi;
22792
22793 for module in . $GTK_MODULES
22794 do
22795 case "$module" in
22796 gthread)
22797 gtk_config_args="$gtk_config_args gthread"
22798 ;;
22799 esac
22800 done
22801
22802 if test x$gtk_config_exec_prefix != x ; then
22803 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22804 if test x${GTK_CONFIG+set} != xset ; then
22805 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22806 fi
22807 fi
22808 if test x$gtk_config_prefix != x ; then
22809 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22810 if test x${GTK_CONFIG+set} != xset ; then
22811 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22812 fi
22813 fi
22814
22815 # Extract the first word of "gtk-config", so it can be a program name with args.
22816set dummy gtk-config; ac_word=$2
22817echo "$as_me:$LINENO: checking for $ac_word" >&5
22818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22819if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22820 echo $ECHO_N "(cached) $ECHO_C" >&6
22821else
22822 case $GTK_CONFIG in
22823 [\\/]* | ?:[\\/]*)
22824 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22825 ;;
22826 *)
22827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22828for as_dir in $PATH
22829do
22830 IFS=$as_save_IFS
22831 test -z "$as_dir" && as_dir=.
22832 for ac_exec_ext in '' $ac_executable_extensions; do
22833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22834 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22836 break 2
22837 fi
22838done
22839done
22840
22841 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22842 ;;
22843esac
22844fi
22845GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22846
22847if test -n "$GTK_CONFIG"; then
22848 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22849echo "${ECHO_T}$GTK_CONFIG" >&6
22850else
22851 echo "$as_me:$LINENO: result: no" >&5
22852echo "${ECHO_T}no" >&6
22853fi
22854
22855 min_gtk_version=1.2.3
22856 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22857echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22858 no_gtk=""
22859 if test "$GTK_CONFIG" = "no" ; then
22860 no_gtk=yes
22861 else
22862 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22863 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22864 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22865 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22866 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22868 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22869 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22870 if test "x$enable_gtktest" = "xyes" ; then
22871 ac_save_CFLAGS="$CFLAGS"
22872 ac_save_LIBS="$LIBS"
22873 CFLAGS="$CFLAGS $GTK_CFLAGS"
22874 LIBS="$GTK_LIBS $LIBS"
22875 rm -f conf.gtktest
22876 if test "$cross_compiling" = yes; then
22877 echo $ac_n "cross compiling; assumed OK... $ac_c"
22878else
22879 cat >conftest.$ac_ext <<_ACEOF
22880/* confdefs.h. */
22881_ACEOF
22882cat confdefs.h >>conftest.$ac_ext
22883cat >>conftest.$ac_ext <<_ACEOF
22884/* end confdefs.h. */
22885
22886#include <gtk/gtk.h>
22887#include <stdio.h>
22888#include <stdlib.h>
22889
22890int
22891main ()
22892{
22893 int major, minor, micro;
22894 char *tmp_version;
22895
22896 system ("touch conf.gtktest");
22897
22898 /* HP/UX 9 (%@#!) writes to sscanf strings */
22899 tmp_version = g_strdup("$min_gtk_version");
22900 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22901 printf("%s, bad version string\n", "$min_gtk_version");
22902 exit(1);
22903 }
22904
22905 if ((gtk_major_version != $gtk_config_major_version) ||
22906 (gtk_minor_version != $gtk_config_minor_version) ||
22907 (gtk_micro_version != $gtk_config_micro_version))
22908 {
22909 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22910 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22911 gtk_major_version, gtk_minor_version, gtk_micro_version);
22912 printf ("*** was found! If gtk-config was correct, then it is best\n");
22913 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22914 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22915 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22916 printf("*** required on your system.\n");
22917 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22918 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22919 printf("*** before re-running configure\n");
22920 }
22921#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22922 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22923 (gtk_minor_version != GTK_MINOR_VERSION) ||
22924 (gtk_micro_version != GTK_MICRO_VERSION))
22925 {
22926 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22927 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22928 printf("*** library (version %d.%d.%d)\n",
22929 gtk_major_version, gtk_minor_version, gtk_micro_version);
22930 }
22931#endif /* defined (GTK_MAJOR_VERSION) ... */
22932 else
22933 {
22934 if ((gtk_major_version > major) ||
22935 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22936 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22937 {
22938 return 0;
22939 }
22940 else
22941 {
22942 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22943 gtk_major_version, gtk_minor_version, gtk_micro_version);
22944 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22945 major, minor, micro);
22946 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22947 printf("***\n");
22948 printf("*** If you have already installed a sufficiently new version, this error\n");
22949 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22950 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22951 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22952 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22953 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22954 printf("*** so that the correct libraries are found at run-time))\n");
22955 }
22956 }
22957 return 1;
22958}
22959
22960_ACEOF
22961rm -f conftest$ac_exeext
22962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22963 (eval $ac_link) 2>&5
22964 ac_status=$?
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968 (eval $ac_try) 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; }; then
22972 :
22973else
22974 echo "$as_me: program exited with status $ac_status" >&5
22975echo "$as_me: failed program was:" >&5
22976sed 's/^/| /' conftest.$ac_ext >&5
22977
22978( exit $ac_status )
22979no_gtk=yes
22980fi
ac1cb8d3 22981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22982fi
22983 CFLAGS="$ac_save_CFLAGS"
22984 LIBS="$ac_save_LIBS"
22985 fi
22986 fi
22987 if test "x$no_gtk" = x ; then
22988 echo "$as_me:$LINENO: result: yes" >&5
22989echo "${ECHO_T}yes" >&6
22990 wx_cv_lib_gtk=1.2.3
22991 else
22992 echo "$as_me:$LINENO: result: no" >&5
22993echo "${ECHO_T}no" >&6
22994 if test "$GTK_CONFIG" = "no" ; then
22995 echo "*** The gtk-config script installed by GTK could not be found"
22996 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22997 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22998 echo "*** full path to gtk-config."
22999 else
23000 if test -f conf.gtktest ; then
23001 :
23002 else
23003 echo "*** Could not run GTK test program, checking why..."
23004 CFLAGS="$CFLAGS $GTK_CFLAGS"
23005 LIBS="$LIBS $GTK_LIBS"
23006 cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
23012
23013#include <gtk/gtk.h>
23014#include <stdio.h>
23015
23016int
23017main ()
23018{
23019 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23020 ;
23021 return 0;
23022}
23023_ACEOF
23024rm -f conftest.$ac_objext conftest$ac_exeext
23025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23026 (eval $ac_link) 2>conftest.er1
a848cd7e 23027 ac_status=$?
ac1cb8d3
VS
23028 grep -v '^ *+' conftest.er1 >conftest.err
23029 rm -f conftest.er1
23030 cat conftest.err >&5
a848cd7e
SC
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
4d4ff94c 23033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; } &&
23039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; }; then
23045 echo "*** The test program compiled, but did not run. This usually means"
23046 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23047 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23048 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23049 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23050 echo "*** is required on your system"
23051 echo "***"
23052 echo "*** If you have an old version installed, it is best to remove it, although"
23053 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23054 echo "***"
23055 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23056 echo "*** came with the system with the command"
23057 echo "***"
23058 echo "*** rpm --erase --nodeps gtk gtk-devel"
23059else
23060 echo "$as_me: failed program was:" >&5
23061sed 's/^/| /' conftest.$ac_ext >&5
23062
23063 echo "*** The test program failed to compile or link. See the file config.log for the"
23064 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23065 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23066 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23067fi
ac1cb8d3
VS
23068rm -f conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23070 CFLAGS="$ac_save_CFLAGS"
23071 LIBS="$ac_save_LIBS"
23072 fi
23073 fi
23074 GTK_CFLAGS=""
23075 GTK_LIBS=""
23076 :
23077 fi
23078
23079
23080 rm -f conf.gtktest
23081
23082 fi
23083 fi
23084
23085 if test -z "$wx_cv_lib_gtk"; then
23086 wx_cv_lib_gtk=none
23087 else
23088 wx_cv_cflags_gtk=$GTK_CFLAGS
23089 wx_cv_libs_gtk=$GTK_LIBS
23090 fi
23091
23092
23093fi
23094
23095
23096 if test "$gtk_version_cached" = 1; then
23097 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23098echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23099 fi
23100
23101 case "$wx_cv_lib_gtk" in
23102 2.0) WXGTK20=1
23103 TOOLKIT_VERSION=2
23104 ;;
23105 1.2.7) WXGTK127=1
23106 WXGTK12=1
23107 ;;
23108 1.2.3) WXGTK12=1
23109 ;;
23110 *) { { echo "$as_me:$LINENO: error:
23111Please check that gtk-config is in path, the directory
23112where GTK+ libraries are installed (returned by
23113'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23114equivalent variable and GTK+ is version 1.2.3 or above.
23115 " >&5
23116echo "$as_me: error:
23117Please check that gtk-config is in path, the directory
23118where GTK+ libraries are installed (returned by
23119'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23120equivalent variable and GTK+ is version 1.2.3 or above.
23121 " >&2;}
23122 { (exit 1); exit 1; }; }
23123 ;;
23124 esac
23125
23126 if test "$WXGTK20" = 1; then
23127 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23128
23129 succeeded=no
23130
23131 if test -z "$PKG_CONFIG"; then
23132 # Extract the first word of "pkg-config", so it can be a program name with args.
23133set dummy pkg-config; ac_word=$2
23134echo "$as_me:$LINENO: checking for $ac_word" >&5
23135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23136if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23138else
23139 case $PKG_CONFIG in
23140 [\\/]* | ?:[\\/]*)
23141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23142 ;;
23143 *)
23144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23145for as_dir in $PATH
23146do
23147 IFS=$as_save_IFS
23148 test -z "$as_dir" && as_dir=.
23149 for ac_exec_ext in '' $ac_executable_extensions; do
23150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23153 break 2
23154 fi
23155done
23156done
23157
23158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23159 ;;
23160esac
23161fi
23162PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23163
23164if test -n "$PKG_CONFIG"; then
23165 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23166echo "${ECHO_T}$PKG_CONFIG" >&6
23167else
23168 echo "$as_me:$LINENO: result: no" >&5
23169echo "${ECHO_T}no" >&6
23170fi
23171
23172 fi
23173
23174 if test "$PKG_CONFIG" = "no" ; then
23175 echo "*** The pkg-config script could not be found. Make sure it is"
23176 echo "*** in your path, or set the PKG_CONFIG environment variable"
23177 echo "*** to the full path to pkg-config."
23178 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23179 else
23180 PKG_CONFIG_MIN_VERSION=0.9.0
23181 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23182 echo "$as_me:$LINENO: checking for pangoft2" >&5
23183echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23184
23185 if $PKG_CONFIG --exists "pangoft2" ; then
23186 echo "$as_me:$LINENO: result: yes" >&5
23187echo "${ECHO_T}yes" >&6
23188 succeeded=yes
23189
23190 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23191echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23192 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23193 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23194echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23195
23196 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23197echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23198 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23199 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23200echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23201 else
23202 PANGOFT2_CFLAGS=""
23203 PANGOFT2_LIBS=""
23204 ## If we have a custom action on failure, don't print errors, but
23205 ## do set a variable so people can do so.
23206 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23207
23208 fi
23209
23210
23211
23212 else
23213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23215 fi
23216 fi
23217
23218 if test $succeeded = yes; then
23219
23220 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23221 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23222
23223 else
23224
23225 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23226echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23227 wxUSE_PRINTING_ARCHITECTURE="no"
23228
23229
23230 fi
23231
23232 fi
304205f1
VS
23233
23234 save_CFLAGS="$CFLAGS"
23235 save_LIBS="$LIBS"
23236 CFLAGS="$CFLAGS $GTK_CFLAGS"
23237 LIBS="$LIBS $GTK_LIBS"
23238
23239for ac_func in pango_font_family_is_monospace
23240do
23241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23242echo "$as_me:$LINENO: checking for $ac_func" >&5
23243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23244if eval "test \"\${$as_ac_var+set}\" = set"; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23246else
23247 cat >conftest.$ac_ext <<_ACEOF
23248/* confdefs.h. */
23249_ACEOF
23250cat confdefs.h >>conftest.$ac_ext
23251cat >>conftest.$ac_ext <<_ACEOF
23252/* end confdefs.h. */
23253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23255#define $ac_func innocuous_$ac_func
23256
23257/* System header to define __stub macros and hopefully few prototypes,
23258 which can conflict with char $ac_func (); below.
23259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23260 <limits.h> exists even on freestanding compilers. */
23261
23262#ifdef __STDC__
23263# include <limits.h>
23264#else
23265# include <assert.h>
23266#endif
23267
23268#undef $ac_func
23269
23270/* Override any gcc2 internal prototype to avoid an error. */
23271#ifdef __cplusplus
23272extern "C"
23273{
23274#endif
23275/* We use char because int might match the return type of a gcc2
23276 builtin and then its argument prototype would still apply. */
23277char $ac_func ();
23278/* The GNU C library defines this for functions which it implements
23279 to always fail with ENOSYS. Some functions are actually named
23280 something starting with __ and the normal name is an alias. */
23281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23282choke me
23283#else
23284char (*f) () = $ac_func;
23285#endif
23286#ifdef __cplusplus
23287}
23288#endif
23289
23290int
23291main ()
23292{
23293return f != $ac_func;
23294 ;
23295 return 0;
23296}
23297_ACEOF
23298rm -f conftest.$ac_objext conftest$ac_exeext
23299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23300 (eval $ac_link) 2>conftest.er1
23301 ac_status=$?
23302 grep -v '^ *+' conftest.er1 >conftest.err
23303 rm -f conftest.er1
23304 cat conftest.err >&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } &&
4d4ff94c 23307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; } &&
23313 { ac_try='test -s conftest$ac_exeext'
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; }; then
23319 eval "$as_ac_var=yes"
23320else
23321 echo "$as_me: failed program was:" >&5
23322sed 's/^/| /' conftest.$ac_ext >&5
23323
23324eval "$as_ac_var=no"
23325fi
23326rm -f conftest.err conftest.$ac_objext \
23327 conftest$ac_exeext conftest.$ac_ext
23328fi
23329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23331if test `eval echo '${'$as_ac_var'}'` = yes; then
23332 cat >>confdefs.h <<_ACEOF
23333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23334_ACEOF
23335
23336fi
23337done
23338
23339 CFLAGS="$save_CFLAGS"
23340 LIBS="$save_LIBS"
a848cd7e
SC
23341 else
23342 if test "$wxUSE_UNICODE" = "yes"; then
23343 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23344echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23345 wxUSE_UNICODE=no
23346 fi
23347 fi
23348
23349 if test "$USE_DARWIN" != 1; then
23350
23351for ac_func in poll
23352do
23353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23354echo "$as_me:$LINENO: checking for $ac_func" >&5
23355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23356if eval "test \"\${$as_ac_var+set}\" = set"; then
23357 echo $ECHO_N "(cached) $ECHO_C" >&6
23358else
23359 cat >conftest.$ac_ext <<_ACEOF
23360/* confdefs.h. */
23361_ACEOF
23362cat confdefs.h >>conftest.$ac_ext
23363cat >>conftest.$ac_ext <<_ACEOF
23364/* end confdefs.h. */
ac1cb8d3
VS
23365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23367#define $ac_func innocuous_$ac_func
23368
a848cd7e
SC
23369/* System header to define __stub macros and hopefully few prototypes,
23370 which can conflict with char $ac_func (); below.
23371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23372 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23373
a848cd7e
SC
23374#ifdef __STDC__
23375# include <limits.h>
23376#else
23377# include <assert.h>
23378#endif
ac1cb8d3
VS
23379
23380#undef $ac_func
23381
a848cd7e
SC
23382/* Override any gcc2 internal prototype to avoid an error. */
23383#ifdef __cplusplus
23384extern "C"
23385{
23386#endif
23387/* We use char because int might match the return type of a gcc2
23388 builtin and then its argument prototype would still apply. */
23389char $ac_func ();
23390/* The GNU C library defines this for functions which it implements
23391 to always fail with ENOSYS. Some functions are actually named
23392 something starting with __ and the normal name is an alias. */
23393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23394choke me
23395#else
23396char (*f) () = $ac_func;
23397#endif
23398#ifdef __cplusplus
23399}
23400#endif
23401
23402int
23403main ()
23404{
23405return f != $ac_func;
23406 ;
23407 return 0;
23408}
23409_ACEOF
23410rm -f conftest.$ac_objext conftest$ac_exeext
23411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23412 (eval $ac_link) 2>conftest.er1
a848cd7e 23413 ac_status=$?
ac1cb8d3
VS
23414 grep -v '^ *+' conftest.er1 >conftest.err
23415 rm -f conftest.er1
23416 cat conftest.err >&5
a848cd7e
SC
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } &&
4d4ff94c 23419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; } &&
23425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427 (eval $ac_try) 2>&5
23428 ac_status=$?
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 eval "$as_ac_var=yes"
23432else
23433 echo "$as_me: failed program was:" >&5
23434sed 's/^/| /' conftest.$ac_ext >&5
23435
23436eval "$as_ac_var=no"
23437fi
ac1cb8d3
VS
23438rm -f conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23440fi
23441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23442echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23443if test `eval echo '${'$as_ac_var'}'` = yes; then
23444 cat >>confdefs.h <<_ACEOF
23445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23446_ACEOF
23447
23448fi
23449done
23450
23451 fi
23452
23453 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23454 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23455
23456 AFMINSTALL=afminstall
23457 TOOLKIT=GTK
23458 GUIDIST=GTK_DIST
23459
23460 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23461echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23462if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23464else
23465 ac_check_lib_save_LIBS=$LIBS
23466LIBS="-lgdk $LIBS"
23467cat >conftest.$ac_ext <<_ACEOF
23468/* confdefs.h. */
23469_ACEOF
23470cat confdefs.h >>conftest.$ac_ext
23471cat >>conftest.$ac_ext <<_ACEOF
23472/* end confdefs.h. */
23473
23474/* Override any gcc2 internal prototype to avoid an error. */
23475#ifdef __cplusplus
23476extern "C"
23477#endif
23478/* We use char because int might match the return type of a gcc2
23479 builtin and then its argument prototype would still apply. */
23480char gdk_im_open ();
23481int
23482main ()
23483{
23484gdk_im_open ();
23485 ;
23486 return 0;
23487}
23488_ACEOF
23489rm -f conftest.$ac_objext conftest$ac_exeext
23490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23491 (eval $ac_link) 2>conftest.er1
a848cd7e 23492 ac_status=$?
ac1cb8d3
VS
23493 grep -v '^ *+' conftest.er1 >conftest.err
23494 rm -f conftest.er1
23495 cat conftest.err >&5
a848cd7e
SC
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } &&
4d4ff94c 23498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; } &&
23504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }; then
23510 ac_cv_lib_gdk_gdk_im_open=yes
23511else
23512 echo "$as_me: failed program was:" >&5
23513sed 's/^/| /' conftest.$ac_ext >&5
23514
23515ac_cv_lib_gdk_gdk_im_open=no
23516fi
ac1cb8d3
VS
23517rm -f conftest.err conftest.$ac_objext \
23518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23519LIBS=$ac_check_lib_save_LIBS
23520fi
23521echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23522echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23523if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23524 cat >>confdefs.h <<\_ACEOF
23525#define HAVE_XIM 1
23526_ACEOF
23527
23528fi
23529
23530
23531
23532 if test "$wxUSE_GPE" = "yes"; then
23533 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23534echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23535
23536ac_find_libraries=
23537for ac_dir in $SEARCH_LIB /usr/lib;
23538 do
23539 for ac_extension in a so sl dylib; do
23540 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23541 ac_find_libraries=$ac_dir
23542 break 2
23543 fi
23544 done
23545 done
23546
23547 if test "$ac_find_libraries" != "" ; then
23548
23549 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23550 result=$?
23551 if test $result = 0; then
23552 ac_path_to_link=""
23553 else
23554 ac_path_to_link=" -L$ac_find_libraries"
23555 fi
23556
23557 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23558 WXGPE=1
23559 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23560echo "${ECHO_T}found at $ac_find_libraries" >&6
23561 else
23562 echo "$as_me:$LINENO: result: not found" >&5
23563echo "${ECHO_T}not found" >&6
23564 fi
23565
23566 fi
23567 fi
23568
23569 if test "$wxUSE_MGL" = 1; then
23570 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23571echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23572 if test "x$MGL_ROOT" = x ; then
23573 echo "$as_me:$LINENO: result: not found" >&5
23574echo "${ECHO_T}not found" >&6
23575 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23576echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23577 { (exit 1); exit 1; }; }
23578 else
23579 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23580echo "${ECHO_T}$MGL_ROOT" >&6
23581 fi
23582
23583 echo "$as_me:$LINENO: checking for libmgl location" >&5
23584echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23585 case "${host}" in
23586 *-*-linux* )
23587 if test "x$wxUSE_SHARED" = xyes ; then
23588 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23589 else
23590 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23591 fi
23592 ;;
23593 *-pc-msdosdjgpp )
23594 mgl_os_candidates="dos32/dj2"
23595 ;;
23596 *)
23597 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23598echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23599 { (exit 1); exit 1; }; }
23600 esac
23601
23602 mgl_lib_type=""
23603 mgl_os=""
23604
23605 for mgl_os_i in $mgl_os_candidates ; do
23606 if test "x$mgl_os" = x ; then
23607 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23608 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23609 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23610 mgl_lib_type=debug
23611 mgl_os=$mgl_os_i
23612 fi
23613 fi
23614 if test "x$mgl_lib_type" = x ; then
23615 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23616 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23617 mgl_lib_type=release
23618 mgl_os=$mgl_os_i
23619 fi
23620 fi
23621 fi
23622 done
23623
23624 if test "x$mgl_os" = x ; then
23625 echo "$as_me:$LINENO: result: not found" >&5
23626echo "${ECHO_T}not found" >&6
23627 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23628echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23629 { (exit 1); exit 1; }; }
23630 fi
23631 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23632echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23633
23634 wxUSE_UNIVERSAL="yes"
23635
23636 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23637 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23638
23639 AFMINSTALL=afminstall
23640 TOOLKIT=MGL
23641 GUIDIST=MGL_DIST
23642 fi
23643
23644 if test "$wxUSE_MICROWIN" = 1; then
23645 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23646echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23647 if test "x$MICROWINDOWS" = x ; then
23648 echo "$as_me:$LINENO: result: not found" >&5
23649echo "${ECHO_T}not found" >&6
23650 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23651echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23652 { (exit 1); exit 1; }; }
23653 else
23654 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23655echo "${ECHO_T}$MICROWINDOWS" >&6
23656 fi
23657
23658 if test -f $MICROWINDOWS/lib/libmwin.a; then
23659 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23660echo "${ECHO_T}MicroWindows' libraries found." >&6
23661 else
23662 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23663echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23664 { (exit 1); exit 1; }; }
23665 fi
23666
23667 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23668 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23669
23670 wxUSE_UNIVERSAL="yes"
23671
23672 AFMINSTALL=afminstall
23673 TOOLKIT=MICROWIN
23674 GUIDIST=MICROWIN_DIST
23675
23676 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23677 fi
23678
74b84332 23679 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
4d4ff94c
VZ
23680
23681if test "x$ac_path_x_has_been_run" != xyes; then
23682 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23683echo $ECHO_N "checking for X... $ECHO_C" >&6
23684
4d4ff94c 23685ac_path_x_has_been_run=yes
a848cd7e
SC
23686
23687# Check whether --with-x or --without-x was given.
23688if test "${with_x+set}" = set; then
23689 withval="$with_x"
23690
23691fi;
23692# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23693if test "x$with_x" = xno; then
23694 # The user explicitly disabled X.
23695 have_x=disabled
23696else
23697 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23698 # Both variables are already set.
23699 have_x=yes
23700 else
23701 if test "${ac_cv_have_x+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703else
23704 # One or both of the vars are not set, and there is no cached value.
23705ac_x_includes=no ac_x_libraries=no
23706rm -fr conftest.dir
23707if mkdir conftest.dir; then
23708 cd conftest.dir
23709 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23710 cat >Imakefile <<'_ACEOF'
23711acfindx:
23712 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23713_ACEOF
23714 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23716 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23717 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23718 for ac_extension in a so sl; do
23719 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23720 test -f $ac_im_libdir/libX11.$ac_extension; then
23721 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23722 fi
23723 done
23724 # Screen out bogus values from the imake configuration. They are
23725 # bogus both because they are the default anyway, and because
23726 # using them would break gcc on systems where it needs fixed includes.
23727 case $ac_im_incroot in
23728 /usr/include) ;;
23729 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23730 esac
23731 case $ac_im_usrlibdir in
23732 /usr/lib | /lib) ;;
23733 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23734 esac
23735 fi
23736 cd ..
23737 rm -fr conftest.dir
23738fi
23739
23740# Standard set of common directories for X headers.
23741# Check X11 before X11Rn because it is often a symlink to the current release.
23742ac_x_header_dirs='
23743/usr/X11/include
23744/usr/X11R6/include
23745/usr/X11R5/include
23746/usr/X11R4/include
23747
23748/usr/include/X11
23749/usr/include/X11R6
23750/usr/include/X11R5
23751/usr/include/X11R4
23752
23753/usr/local/X11/include
23754/usr/local/X11R6/include
23755/usr/local/X11R5/include
23756/usr/local/X11R4/include
23757
23758/usr/local/include/X11
23759/usr/local/include/X11R6
23760/usr/local/include/X11R5
23761/usr/local/include/X11R4
23762
23763/usr/X386/include
23764/usr/x386/include
23765/usr/XFree86/include/X11
23766
23767/usr/include
23768/usr/local/include
23769/usr/unsupported/include
23770/usr/athena/include
23771/usr/local/x11r5/include
23772/usr/lpp/Xamples/include
23773
23774/usr/openwin/include
23775/usr/openwin/share/include'
23776
23777if test "$ac_x_includes" = no; then
4d4ff94c 23778 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
23779 # First, try using that file with no special directory specified.
23780 cat >conftest.$ac_ext <<_ACEOF
23781/* confdefs.h. */
23782_ACEOF
23783cat confdefs.h >>conftest.$ac_ext
23784cat >>conftest.$ac_ext <<_ACEOF
23785/* end confdefs.h. */
23786#include <X11/Intrinsic.h>
23787_ACEOF
23788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23790 ac_status=$?
23791 grep -v '^ *+' conftest.er1 >conftest.err
23792 rm -f conftest.er1
23793 cat conftest.err >&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } >/dev/null; then
23796 if test -s conftest.err; then
23797 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23799 else
23800 ac_cpp_err=
23801 fi
23802else
23803 ac_cpp_err=yes
23804fi
23805if test -z "$ac_cpp_err"; then
23806 # We can compile using X headers with no special include directory.
23807ac_x_includes=
23808else
23809 echo "$as_me: failed program was:" >&5
23810sed 's/^/| /' conftest.$ac_ext >&5
23811
23812 for ac_dir in $ac_x_header_dirs; do
23813 if test -r "$ac_dir/X11/Intrinsic.h"; then
23814 ac_x_includes=$ac_dir
23815 break
23816 fi
23817done
23818fi
23819rm -f conftest.err conftest.$ac_ext
23820fi # $ac_x_includes = no
23821
23822if test "$ac_x_libraries" = no; then
23823 # Check for the libraries.
23824 # See if we find them without any special options.
23825 # Don't add to $LIBS permanently.
23826 ac_save_LIBS=$LIBS
23827 LIBS="-lXt $LIBS"
23828 cat >conftest.$ac_ext <<_ACEOF
23829/* confdefs.h. */
23830_ACEOF
23831cat confdefs.h >>conftest.$ac_ext
23832cat >>conftest.$ac_ext <<_ACEOF
23833/* end confdefs.h. */
23834#include <X11/Intrinsic.h>
23835int
23836main ()
23837{
23838XtMalloc (0)
23839 ;
23840 return 0;
23841}
23842_ACEOF
23843rm -f conftest.$ac_objext conftest$ac_exeext
23844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23845 (eval $ac_link) 2>conftest.er1
a848cd7e 23846 ac_status=$?
ac1cb8d3
VS
23847 grep -v '^ *+' conftest.er1 >conftest.err
23848 rm -f conftest.er1
23849 cat conftest.err >&5
a848cd7e
SC
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } &&
4d4ff94c 23852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854 (eval $ac_try) 2>&5
23855 ac_status=$?
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); }; } &&
23858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860 (eval $ac_try) 2>&5
23861 ac_status=$?
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); }; }; then
23864 LIBS=$ac_save_LIBS
23865# We can link X programs with no special library path.
23866ac_x_libraries=
23867else
23868 echo "$as_me: failed program was:" >&5
23869sed 's/^/| /' conftest.$ac_ext >&5
23870
23871LIBS=$ac_save_LIBS
23872for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23873do
23874 # Don't even attempt the hair of trying to link an X program!
23875 for ac_extension in a so sl; do
23876 if test -r $ac_dir/libXt.$ac_extension; then
23877 ac_x_libraries=$ac_dir
23878 break 2
23879 fi
23880 done
23881done
23882fi
ac1cb8d3
VS
23883rm -f conftest.err conftest.$ac_objext \
23884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23885fi # $ac_x_libraries = no
23886
23887if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23888 # Didn't find X anywhere. Cache the known absence of X.
23889 ac_cv_have_x="have_x=no"
23890else
23891 # Record where we found X for the cache.
23892 ac_cv_have_x="have_x=yes \
ac1cb8d3 23893 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
23894fi
23895fi
23896
23897 fi
23898 eval "$ac_cv_have_x"
23899fi # $with_x != no
23900
23901if test "$have_x" != yes; then
23902 echo "$as_me:$LINENO: result: $have_x" >&5
23903echo "${ECHO_T}$have_x" >&6
23904 no_x=yes
23905else
23906 # If each of the values was on the command line, it overrides each guess.
23907 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23908 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23909 # Update the cache value to reflect the command line values.
23910 ac_cv_have_x="have_x=yes \
23911 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4d4ff94c
VZ
23912 # It might be that x_includes is empty (headers are found in the
23913 # standard search path. Then output the corresponding message
23914 ac_out_x_includes=$x_includes
23915 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
23916 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
23917echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
23918fi
23919
4d4ff94c 23920fi
a848cd7e
SC
23921if test "$no_x" = yes; then
23922 # Not all programs may use this symbol, but it does not hurt to define it.
23923
23924cat >>confdefs.h <<\_ACEOF
23925#define X_DISPLAY_MISSING 1
23926_ACEOF
23927
23928 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23929else
23930 if test -n "$x_includes"; then
23931 X_CFLAGS="$X_CFLAGS -I$x_includes"
23932 fi
23933
23934 # It would also be nice to do this for all -L options, not just this one.
23935 if test -n "$x_libraries"; then
23936 X_LIBS="$X_LIBS -L$x_libraries"
23937 # For Solaris; some versions of Sun CC require a space after -R and
23938 # others require no space. Words are not sufficient . . . .
23939 case `(uname -sr) 2>/dev/null` in
23940 "SunOS 5"*)
23941 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23942echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23943 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23944 cat >conftest.$ac_ext <<_ACEOF
23945/* confdefs.h. */
23946_ACEOF
23947cat confdefs.h >>conftest.$ac_ext
23948cat >>conftest.$ac_ext <<_ACEOF
23949/* end confdefs.h. */
23950
23951int
23952main ()
23953{
23954
23955 ;
23956 return 0;
23957}
23958_ACEOF
23959rm -f conftest.$ac_objext conftest$ac_exeext
23960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23961 (eval $ac_link) 2>conftest.er1
a848cd7e 23962 ac_status=$?
ac1cb8d3
VS
23963 grep -v '^ *+' conftest.er1 >conftest.err
23964 rm -f conftest.er1
23965 cat conftest.err >&5
a848cd7e
SC
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } &&
4d4ff94c 23968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970 (eval $ac_try) 2>&5
23971 ac_status=$?
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }; } &&
23974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; }; then
23980 ac_R_nospace=yes
23981else
23982 echo "$as_me: failed program was:" >&5
23983sed 's/^/| /' conftest.$ac_ext >&5
23984
23985ac_R_nospace=no
23986fi
ac1cb8d3
VS
23987rm -f conftest.err conftest.$ac_objext \
23988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23989 if test $ac_R_nospace = yes; then
23990 echo "$as_me:$LINENO: result: no" >&5
23991echo "${ECHO_T}no" >&6
23992 X_LIBS="$X_LIBS -R$x_libraries"
23993 else
23994 LIBS="$ac_xsave_LIBS -R $x_libraries"
23995 cat >conftest.$ac_ext <<_ACEOF
23996/* confdefs.h. */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h. */
24001
24002int
24003main ()
24004{
24005
24006 ;
24007 return 0;
24008}
24009_ACEOF
24010rm -f conftest.$ac_objext conftest$ac_exeext
24011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24012 (eval $ac_link) 2>conftest.er1
a848cd7e 24013 ac_status=$?
ac1cb8d3
VS
24014 grep -v '^ *+' conftest.er1 >conftest.err
24015 rm -f conftest.er1
24016 cat conftest.err >&5
a848cd7e
SC
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); } &&
4d4ff94c 24019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021 (eval $ac_try) 2>&5
24022 ac_status=$?
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; } &&
24025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027 (eval $ac_try) 2>&5
24028 ac_status=$?
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); }; }; then
24031 ac_R_space=yes
24032else
24033 echo "$as_me: failed program was:" >&5
24034sed 's/^/| /' conftest.$ac_ext >&5
24035
24036ac_R_space=no
24037fi
ac1cb8d3
VS
24038rm -f conftest.err conftest.$ac_objext \
24039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24040 if test $ac_R_space = yes; then
24041 echo "$as_me:$LINENO: result: yes" >&5
24042echo "${ECHO_T}yes" >&6
24043 X_LIBS="$X_LIBS -R $x_libraries"
24044 else
24045 echo "$as_me:$LINENO: result: neither works" >&5
24046echo "${ECHO_T}neither works" >&6
24047 fi
24048 fi
24049 LIBS=$ac_xsave_LIBS
24050 esac
24051 fi
24052
24053 # Check for system-dependent libraries X programs must link with.
24054 # Do this before checking for the system-independent R6 libraries
24055 # (-lICE), since we may need -lsocket or whatever for X linking.
24056
24057 if test "$ISC" = yes; then
24058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24059 else
24060 # Martyn Johnson says this is needed for Ultrix, if the X
24061 # libraries were built with DECnet support. And Karl Berry says
24062 # the Alpha needs dnet_stub (dnet does not exist).
24063 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24064 cat >conftest.$ac_ext <<_ACEOF
24065/* confdefs.h. */
24066_ACEOF
24067cat confdefs.h >>conftest.$ac_ext
24068cat >>conftest.$ac_ext <<_ACEOF
24069/* end confdefs.h. */
24070
24071/* Override any gcc2 internal prototype to avoid an error. */
24072#ifdef __cplusplus
24073extern "C"
24074#endif
24075/* We use char because int might match the return type of a gcc2
24076 builtin and then its argument prototype would still apply. */
24077char XOpenDisplay ();
24078int
24079main ()
24080{
24081XOpenDisplay ();
24082 ;
24083 return 0;
24084}
24085_ACEOF
24086rm -f conftest.$ac_objext conftest$ac_exeext
24087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24088 (eval $ac_link) 2>conftest.er1
a848cd7e 24089 ac_status=$?
ac1cb8d3
VS
24090 grep -v '^ *+' conftest.er1 >conftest.err
24091 rm -f conftest.er1
24092 cat conftest.err >&5
a848cd7e
SC
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); } &&
4d4ff94c 24095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097 (eval $ac_try) 2>&5
24098 ac_status=$?
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); }; } &&
24101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103 (eval $ac_try) 2>&5
24104 ac_status=$?
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); }; }; then
24107 :
24108else
24109 echo "$as_me: failed program was:" >&5
24110sed 's/^/| /' conftest.$ac_ext >&5
24111
24112echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24113echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24114if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24116else
24117 ac_check_lib_save_LIBS=$LIBS
24118LIBS="-ldnet $LIBS"
24119cat >conftest.$ac_ext <<_ACEOF
24120/* confdefs.h. */
24121_ACEOF
24122cat confdefs.h >>conftest.$ac_ext
24123cat >>conftest.$ac_ext <<_ACEOF
24124/* end confdefs.h. */
24125
24126/* Override any gcc2 internal prototype to avoid an error. */
24127#ifdef __cplusplus
24128extern "C"
24129#endif
24130/* We use char because int might match the return type of a gcc2
24131 builtin and then its argument prototype would still apply. */
24132char dnet_ntoa ();
24133int
24134main ()
24135{
24136dnet_ntoa ();
24137 ;
24138 return 0;
24139}
24140_ACEOF
24141rm -f conftest.$ac_objext conftest$ac_exeext
24142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24143 (eval $ac_link) 2>conftest.er1
a848cd7e 24144 ac_status=$?
ac1cb8d3
VS
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
a848cd7e
SC
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
4d4ff94c 24150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; }; then
24162 ac_cv_lib_dnet_dnet_ntoa=yes
24163else
24164 echo "$as_me: failed program was:" >&5
24165sed 's/^/| /' conftest.$ac_ext >&5
24166
24167ac_cv_lib_dnet_dnet_ntoa=no
24168fi
ac1cb8d3
VS
24169rm -f conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24171LIBS=$ac_check_lib_save_LIBS
24172fi
24173echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24174echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24175if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24176 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24177fi
24178
24179 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24180 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24181echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24182if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24183 echo $ECHO_N "(cached) $ECHO_C" >&6
24184else
24185 ac_check_lib_save_LIBS=$LIBS
24186LIBS="-ldnet_stub $LIBS"
24187cat >conftest.$ac_ext <<_ACEOF
24188/* confdefs.h. */
24189_ACEOF
24190cat confdefs.h >>conftest.$ac_ext
24191cat >>conftest.$ac_ext <<_ACEOF
24192/* end confdefs.h. */
24193
24194/* Override any gcc2 internal prototype to avoid an error. */
24195#ifdef __cplusplus
24196extern "C"
24197#endif
24198/* We use char because int might match the return type of a gcc2
24199 builtin and then its argument prototype would still apply. */
24200char dnet_ntoa ();
24201int
24202main ()
24203{
24204dnet_ntoa ();
24205 ;
24206 return 0;
24207}
24208_ACEOF
24209rm -f conftest.$ac_objext conftest$ac_exeext
24210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24211 (eval $ac_link) 2>conftest.er1
a848cd7e 24212 ac_status=$?
ac1cb8d3
VS
24213 grep -v '^ *+' conftest.er1 >conftest.err
24214 rm -f conftest.er1
24215 cat conftest.err >&5
a848cd7e
SC
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } &&
4d4ff94c 24218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220 (eval $ac_try) 2>&5
24221 ac_status=$?
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); }; } &&
24224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226 (eval $ac_try) 2>&5
24227 ac_status=$?
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; }; then
24230 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24231else
24232 echo "$as_me: failed program was:" >&5
24233sed 's/^/| /' conftest.$ac_ext >&5
24234
24235ac_cv_lib_dnet_stub_dnet_ntoa=no
24236fi
ac1cb8d3
VS
24237rm -f conftest.err conftest.$ac_objext \
24238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24239LIBS=$ac_check_lib_save_LIBS
24240fi
24241echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24242echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24243if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24244 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24245fi
24246
24247 fi
24248fi
ac1cb8d3
VS
24249rm -f conftest.err conftest.$ac_objext \
24250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24251 LIBS="$ac_xsave_LIBS"
24252
24253 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24254 # to get the SysV transport functions.
24255 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24256 # needs -lnsl.
24257 # The nsl library prevents programs from opening the X display
24258 # on Irix 5.2, according to T.E. Dickey.
24259 # The functions gethostbyname, getservbyname, and inet_addr are
24260 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24261 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24262echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24263if test "${ac_cv_func_gethostbyname+set}" = set; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24265else
24266 cat >conftest.$ac_ext <<_ACEOF
24267/* confdefs.h. */
24268_ACEOF
24269cat confdefs.h >>conftest.$ac_ext
24270cat >>conftest.$ac_ext <<_ACEOF
24271/* end confdefs.h. */
ac1cb8d3
VS
24272/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24274#define gethostbyname innocuous_gethostbyname
24275
a848cd7e
SC
24276/* System header to define __stub macros and hopefully few prototypes,
24277 which can conflict with char gethostbyname (); below.
24278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24280
a848cd7e
SC
24281#ifdef __STDC__
24282# include <limits.h>
24283#else
24284# include <assert.h>
24285#endif
ac1cb8d3
VS
24286
24287#undef gethostbyname
24288
a848cd7e
SC
24289/* Override any gcc2 internal prototype to avoid an error. */
24290#ifdef __cplusplus
24291extern "C"
24292{
24293#endif
24294/* We use char because int might match the return type of a gcc2
24295 builtin and then its argument prototype would still apply. */
24296char gethostbyname ();
24297/* The GNU C library defines this for functions which it implements
24298 to always fail with ENOSYS. Some functions are actually named
24299 something starting with __ and the normal name is an alias. */
24300#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24301choke me
24302#else
24303char (*f) () = gethostbyname;
24304#endif
24305#ifdef __cplusplus
24306}
24307#endif
24308
24309int
24310main ()
24311{
24312return f != gethostbyname;
24313 ;
24314 return 0;
24315}
24316_ACEOF
24317rm -f conftest.$ac_objext conftest$ac_exeext
24318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24319 (eval $ac_link) 2>conftest.er1
a848cd7e 24320 ac_status=$?
ac1cb8d3
VS
24321 grep -v '^ *+' conftest.er1 >conftest.err
24322 rm -f conftest.er1
24323 cat conftest.err >&5
a848cd7e
SC
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } &&
4d4ff94c 24326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; }; then
24338 ac_cv_func_gethostbyname=yes
24339else
24340 echo "$as_me: failed program was:" >&5
24341sed 's/^/| /' conftest.$ac_ext >&5
24342
24343ac_cv_func_gethostbyname=no
24344fi
ac1cb8d3
VS
24345rm -f conftest.err conftest.$ac_objext \
24346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24347fi
24348echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24349echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24350
24351 if test $ac_cv_func_gethostbyname = no; then
24352 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24353echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24354if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24355 echo $ECHO_N "(cached) $ECHO_C" >&6
24356else
24357 ac_check_lib_save_LIBS=$LIBS
24358LIBS="-lnsl $LIBS"
24359cat >conftest.$ac_ext <<_ACEOF
24360/* confdefs.h. */
24361_ACEOF
24362cat confdefs.h >>conftest.$ac_ext
24363cat >>conftest.$ac_ext <<_ACEOF
24364/* end confdefs.h. */
24365
24366/* Override any gcc2 internal prototype to avoid an error. */
24367#ifdef __cplusplus
24368extern "C"
24369#endif
24370/* We use char because int might match the return type of a gcc2
24371 builtin and then its argument prototype would still apply. */
24372char gethostbyname ();
24373int
24374main ()
24375{
24376gethostbyname ();
24377 ;
24378 return 0;
24379}
24380_ACEOF
24381rm -f conftest.$ac_objext conftest$ac_exeext
24382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24383 (eval $ac_link) 2>conftest.er1
24384 ac_status=$?
24385 grep -v '^ *+' conftest.er1 >conftest.err
24386 rm -f conftest.er1
24387 cat conftest.err >&5
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); } &&
4d4ff94c 24390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); }; } &&
24396 { ac_try='test -s conftest$ac_exeext'
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; }; then
24402 ac_cv_lib_nsl_gethostbyname=yes
24403else
24404 echo "$as_me: failed program was:" >&5
24405sed 's/^/| /' conftest.$ac_ext >&5
24406
24407ac_cv_lib_nsl_gethostbyname=no
24408fi
24409rm -f conftest.err conftest.$ac_objext \
24410 conftest$ac_exeext conftest.$ac_ext
24411LIBS=$ac_check_lib_save_LIBS
24412fi
24413echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24414echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24415if test $ac_cv_lib_nsl_gethostbyname = yes; then
24416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24417fi
24418
24419 if test $ac_cv_lib_nsl_gethostbyname = no; then
24420 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24421echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24422if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24424else
24425 ac_check_lib_save_LIBS=$LIBS
24426LIBS="-lbsd $LIBS"
24427cat >conftest.$ac_ext <<_ACEOF
24428/* confdefs.h. */
24429_ACEOF
24430cat confdefs.h >>conftest.$ac_ext
24431cat >>conftest.$ac_ext <<_ACEOF
24432/* end confdefs.h. */
24433
24434/* Override any gcc2 internal prototype to avoid an error. */
24435#ifdef __cplusplus
24436extern "C"
24437#endif
24438/* We use char because int might match the return type of a gcc2
24439 builtin and then its argument prototype would still apply. */
24440char gethostbyname ();
24441int
24442main ()
24443{
24444gethostbyname ();
24445 ;
24446 return 0;
24447}
24448_ACEOF
24449rm -f conftest.$ac_objext conftest$ac_exeext
24450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24451 (eval $ac_link) 2>conftest.er1
a848cd7e 24452 ac_status=$?
ac1cb8d3
VS
24453 grep -v '^ *+' conftest.er1 >conftest.err
24454 rm -f conftest.er1
24455 cat conftest.err >&5
a848cd7e
SC
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } &&
4d4ff94c 24458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
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
ac1cb8d3
VS
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_cv_lib_bsd_gethostbyname=yes
24471else
24472 echo "$as_me: failed program was:" >&5
24473sed 's/^/| /' conftest.$ac_ext >&5
24474
24475ac_cv_lib_bsd_gethostbyname=no
24476fi
ac1cb8d3
VS
24477rm -f conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24479LIBS=$ac_check_lib_save_LIBS
24480fi
24481echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24482echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24483if test $ac_cv_lib_bsd_gethostbyname = yes; then
24484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24485fi
24486
24487 fi
24488 fi
24489
24490 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24491 # socket/setsockopt and other routines are undefined under SCO ODT
24492 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24493 # on later versions), says Simon Leinen: it contains gethostby*
24494 # variants that don't use the name server (or something). -lsocket
24495 # must be given before -lnsl if both are needed. We assume that
24496 # if connect needs -lnsl, so does gethostbyname.
24497 echo "$as_me:$LINENO: checking for connect" >&5
24498echo $ECHO_N "checking for connect... $ECHO_C" >&6
24499if test "${ac_cv_func_connect+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24501else
24502 cat >conftest.$ac_ext <<_ACEOF
24503/* confdefs.h. */
24504_ACEOF
24505cat confdefs.h >>conftest.$ac_ext
24506cat >>conftest.$ac_ext <<_ACEOF
24507/* end confdefs.h. */
ac1cb8d3
VS
24508/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24510#define connect innocuous_connect
24511
a848cd7e
SC
24512/* System header to define __stub macros and hopefully few prototypes,
24513 which can conflict with char connect (); below.
24514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24515 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24516
a848cd7e
SC
24517#ifdef __STDC__
24518# include <limits.h>
24519#else
24520# include <assert.h>
24521#endif
ac1cb8d3
VS
24522
24523#undef connect
24524
a848cd7e
SC
24525/* Override any gcc2 internal prototype to avoid an error. */
24526#ifdef __cplusplus
24527extern "C"
24528{
24529#endif
24530/* We use char because int might match the return type of a gcc2
24531 builtin and then its argument prototype would still apply. */
24532char connect ();
24533/* The GNU C library defines this for functions which it implements
24534 to always fail with ENOSYS. Some functions are actually named
24535 something starting with __ and the normal name is an alias. */
24536#if defined (__stub_connect) || defined (__stub___connect)
24537choke me
24538#else
24539char (*f) () = connect;
24540#endif
24541#ifdef __cplusplus
24542}
24543#endif
24544
24545int
24546main ()
24547{
24548return f != connect;
24549 ;
24550 return 0;
24551}
24552_ACEOF
24553rm -f conftest.$ac_objext conftest$ac_exeext
24554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24555 (eval $ac_link) 2>conftest.er1
a848cd7e 24556 ac_status=$?
ac1cb8d3
VS
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
a848cd7e
SC
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } &&
4d4ff94c 24562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24565 ac_status=$?
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; } &&
24568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; }; then
24574 ac_cv_func_connect=yes
24575else
24576 echo "$as_me: failed program was:" >&5
24577sed 's/^/| /' conftest.$ac_ext >&5
24578
24579ac_cv_func_connect=no
24580fi
ac1cb8d3
VS
24581rm -f conftest.err conftest.$ac_objext \
24582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24583fi
24584echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24585echo "${ECHO_T}$ac_cv_func_connect" >&6
24586
24587 if test $ac_cv_func_connect = no; then
24588 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24589echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24590if test "${ac_cv_lib_socket_connect+set}" = set; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24592else
24593 ac_check_lib_save_LIBS=$LIBS
24594LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24595cat >conftest.$ac_ext <<_ACEOF
24596/* confdefs.h. */
24597_ACEOF
24598cat confdefs.h >>conftest.$ac_ext
24599cat >>conftest.$ac_ext <<_ACEOF
24600/* end confdefs.h. */
24601
24602/* Override any gcc2 internal prototype to avoid an error. */
24603#ifdef __cplusplus
24604extern "C"
24605#endif
24606/* We use char because int might match the return type of a gcc2
24607 builtin and then its argument prototype would still apply. */
24608char connect ();
24609int
24610main ()
24611{
24612connect ();
24613 ;
24614 return 0;
24615}
24616_ACEOF
24617rm -f conftest.$ac_objext conftest$ac_exeext
24618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24619 (eval $ac_link) 2>conftest.er1
a848cd7e 24620 ac_status=$?
ac1cb8d3
VS
24621 grep -v '^ *+' conftest.er1 >conftest.err
24622 rm -f conftest.er1
24623 cat conftest.err >&5
a848cd7e
SC
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); } &&
4d4ff94c 24626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24628 (eval $ac_try) 2>&5
24629 ac_status=$?
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; } &&
24632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634 (eval $ac_try) 2>&5
24635 ac_status=$?
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); }; }; then
24638 ac_cv_lib_socket_connect=yes
24639else
24640 echo "$as_me: failed program was:" >&5
24641sed 's/^/| /' conftest.$ac_ext >&5
24642
24643ac_cv_lib_socket_connect=no
24644fi
ac1cb8d3
VS
24645rm -f conftest.err conftest.$ac_objext \
24646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24647LIBS=$ac_check_lib_save_LIBS
24648fi
24649echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24650echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24651if test $ac_cv_lib_socket_connect = yes; then
24652 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24653fi
24654
24655 fi
24656
24657 # Guillermo Gomez says -lposix is necessary on A/UX.
24658 echo "$as_me:$LINENO: checking for remove" >&5
24659echo $ECHO_N "checking for remove... $ECHO_C" >&6
24660if test "${ac_cv_func_remove+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24662else
24663 cat >conftest.$ac_ext <<_ACEOF
24664/* confdefs.h. */
24665_ACEOF
24666cat confdefs.h >>conftest.$ac_ext
24667cat >>conftest.$ac_ext <<_ACEOF
24668/* end confdefs.h. */
ac1cb8d3
VS
24669/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24671#define remove innocuous_remove
24672
a848cd7e
SC
24673/* System header to define __stub macros and hopefully few prototypes,
24674 which can conflict with char remove (); below.
24675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24676 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24677
a848cd7e
SC
24678#ifdef __STDC__
24679# include <limits.h>
24680#else
24681# include <assert.h>
24682#endif
ac1cb8d3
VS
24683
24684#undef remove
24685
a848cd7e
SC
24686/* Override any gcc2 internal prototype to avoid an error. */
24687#ifdef __cplusplus
24688extern "C"
24689{
24690#endif
24691/* We use char because int might match the return type of a gcc2
24692 builtin and then its argument prototype would still apply. */
24693char remove ();
24694/* The GNU C library defines this for functions which it implements
24695 to always fail with ENOSYS. Some functions are actually named
24696 something starting with __ and the normal name is an alias. */
24697#if defined (__stub_remove) || defined (__stub___remove)
24698choke me
24699#else
24700char (*f) () = remove;
24701#endif
24702#ifdef __cplusplus
24703}
24704#endif
24705
24706int
24707main ()
24708{
24709return f != remove;
24710 ;
24711 return 0;
24712}
24713_ACEOF
24714rm -f conftest.$ac_objext conftest$ac_exeext
24715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24716 (eval $ac_link) 2>conftest.er1
a848cd7e 24717 ac_status=$?
ac1cb8d3
VS
24718 grep -v '^ *+' conftest.er1 >conftest.err
24719 rm -f conftest.er1
24720 cat conftest.err >&5
a848cd7e
SC
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } &&
4d4ff94c 24723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725 (eval $ac_try) 2>&5
24726 ac_status=$?
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; } &&
24729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; }; then
24735 ac_cv_func_remove=yes
24736else
24737 echo "$as_me: failed program was:" >&5
24738sed 's/^/| /' conftest.$ac_ext >&5
24739
24740ac_cv_func_remove=no
24741fi
ac1cb8d3
VS
24742rm -f conftest.err conftest.$ac_objext \
24743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24744fi
24745echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24746echo "${ECHO_T}$ac_cv_func_remove" >&6
24747
24748 if test $ac_cv_func_remove = no; then
24749 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24750echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24751if test "${ac_cv_lib_posix_remove+set}" = set; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24753else
24754 ac_check_lib_save_LIBS=$LIBS
24755LIBS="-lposix $LIBS"
24756cat >conftest.$ac_ext <<_ACEOF
24757/* confdefs.h. */
24758_ACEOF
24759cat confdefs.h >>conftest.$ac_ext
24760cat >>conftest.$ac_ext <<_ACEOF
24761/* end confdefs.h. */
24762
24763/* Override any gcc2 internal prototype to avoid an error. */
24764#ifdef __cplusplus
24765extern "C"
24766#endif
24767/* We use char because int might match the return type of a gcc2
24768 builtin and then its argument prototype would still apply. */
24769char remove ();
24770int
24771main ()
24772{
24773remove ();
24774 ;
24775 return 0;
24776}
24777_ACEOF
24778rm -f conftest.$ac_objext conftest$ac_exeext
24779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24780 (eval $ac_link) 2>conftest.er1
a848cd7e 24781 ac_status=$?
ac1cb8d3
VS
24782 grep -v '^ *+' conftest.er1 >conftest.err
24783 rm -f conftest.er1
24784 cat conftest.err >&5
a848cd7e
SC
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } &&
4d4ff94c 24787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789 (eval $ac_try) 2>&5
24790 ac_status=$?
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); }; } &&
24793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; }; then
24799 ac_cv_lib_posix_remove=yes
24800else
24801 echo "$as_me: failed program was:" >&5
24802sed 's/^/| /' conftest.$ac_ext >&5
24803
24804ac_cv_lib_posix_remove=no
24805fi
ac1cb8d3
VS
24806rm -f conftest.err conftest.$ac_objext \
24807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24808LIBS=$ac_check_lib_save_LIBS
24809fi
24810echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24811echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24812if test $ac_cv_lib_posix_remove = yes; then
24813 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24814fi
24815
24816 fi
24817
24818 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24819 echo "$as_me:$LINENO: checking for shmat" >&5
24820echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24821if test "${ac_cv_func_shmat+set}" = set; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24823else
24824 cat >conftest.$ac_ext <<_ACEOF
24825/* confdefs.h. */
24826_ACEOF
24827cat confdefs.h >>conftest.$ac_ext
24828cat >>conftest.$ac_ext <<_ACEOF
24829/* end confdefs.h. */
ac1cb8d3
VS
24830/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24832#define shmat innocuous_shmat
24833
a848cd7e
SC
24834/* System header to define __stub macros and hopefully few prototypes,
24835 which can conflict with char shmat (); below.
24836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24838
a848cd7e
SC
24839#ifdef __STDC__
24840# include <limits.h>
24841#else
24842# include <assert.h>
24843#endif
ac1cb8d3
VS
24844
24845#undef shmat
24846
a848cd7e
SC
24847/* Override any gcc2 internal prototype to avoid an error. */
24848#ifdef __cplusplus
24849extern "C"
24850{
24851#endif
24852/* We use char because int might match the return type of a gcc2
24853 builtin and then its argument prototype would still apply. */
24854char shmat ();
24855/* The GNU C library defines this for functions which it implements
24856 to always fail with ENOSYS. Some functions are actually named
24857 something starting with __ and the normal name is an alias. */
24858#if defined (__stub_shmat) || defined (__stub___shmat)
24859choke me
24860#else
24861char (*f) () = shmat;
24862#endif
24863#ifdef __cplusplus
24864}
24865#endif
24866
24867int
24868main ()
24869{
24870return f != shmat;
24871 ;
24872 return 0;
24873}
24874_ACEOF
24875rm -f conftest.$ac_objext conftest$ac_exeext
24876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24877 (eval $ac_link) 2>conftest.er1
a848cd7e 24878 ac_status=$?
ac1cb8d3
VS
24879 grep -v '^ *+' conftest.er1 >conftest.err
24880 rm -f conftest.er1
24881 cat conftest.err >&5
a848cd7e
SC
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
4d4ff94c 24884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; } &&
24890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24893 ac_status=$?
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; }; then
24896 ac_cv_func_shmat=yes
24897else
24898 echo "$as_me: failed program was:" >&5
24899sed 's/^/| /' conftest.$ac_ext >&5
24900
24901ac_cv_func_shmat=no
24902fi
ac1cb8d3
VS
24903rm -f conftest.err conftest.$ac_objext \
24904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24905fi
24906echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24907echo "${ECHO_T}$ac_cv_func_shmat" >&6
24908
24909 if test $ac_cv_func_shmat = no; then
24910 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24911echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24912if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24914else
24915 ac_check_lib_save_LIBS=$LIBS
24916LIBS="-lipc $LIBS"
24917cat >conftest.$ac_ext <<_ACEOF
24918/* confdefs.h. */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h. */
24923
24924/* Override any gcc2 internal prototype to avoid an error. */
24925#ifdef __cplusplus
24926extern "C"
24927#endif
24928/* We use char because int might match the return type of a gcc2
24929 builtin and then its argument prototype would still apply. */
24930char shmat ();
24931int
24932main ()
24933{
24934shmat ();
24935 ;
24936 return 0;
24937}
24938_ACEOF
24939rm -f conftest.$ac_objext conftest$ac_exeext
24940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24941 (eval $ac_link) 2>conftest.er1
a848cd7e 24942 ac_status=$?
ac1cb8d3
VS
24943 grep -v '^ *+' conftest.er1 >conftest.err
24944 rm -f conftest.er1
24945 cat conftest.err >&5
a848cd7e
SC
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
4d4ff94c 24948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; } &&
24954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; }; then
24960 ac_cv_lib_ipc_shmat=yes
24961else
24962 echo "$as_me: failed program was:" >&5
24963sed 's/^/| /' conftest.$ac_ext >&5
24964
24965ac_cv_lib_ipc_shmat=no
24966fi
ac1cb8d3
VS
24967rm -f conftest.err conftest.$ac_objext \
24968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24969LIBS=$ac_check_lib_save_LIBS
24970fi
24971echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24972echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24973if test $ac_cv_lib_ipc_shmat = yes; then
24974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24975fi
24976
24977 fi
24978 fi
24979
24980 # Check for libraries that X11R6 Xt/Xaw programs need.
24981 ac_save_LDFLAGS=$LDFLAGS
24982 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24983 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24984 # check for ICE first), but we must link in the order -lSM -lICE or
24985 # we get undefined symbols. So assume we have SM if we have ICE.
24986 # These have to be linked with before -lX11, unlike the other
24987 # libraries we check for below, so use a different variable.
24988 # John Interrante, Karl Berry
24989 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24990echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24991if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24992 echo $ECHO_N "(cached) $ECHO_C" >&6
24993else
24994 ac_check_lib_save_LIBS=$LIBS
24995LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24996cat >conftest.$ac_ext <<_ACEOF
24997/* confdefs.h. */
24998_ACEOF
24999cat confdefs.h >>conftest.$ac_ext
25000cat >>conftest.$ac_ext <<_ACEOF
25001/* end confdefs.h. */
25002
25003/* Override any gcc2 internal prototype to avoid an error. */
25004#ifdef __cplusplus
25005extern "C"
25006#endif
25007/* We use char because int might match the return type of a gcc2
25008 builtin and then its argument prototype would still apply. */
25009char IceConnectionNumber ();
25010int
25011main ()
25012{
25013IceConnectionNumber ();
25014 ;
25015 return 0;
25016}
25017_ACEOF
25018rm -f conftest.$ac_objext conftest$ac_exeext
25019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25020 (eval $ac_link) 2>conftest.er1
a848cd7e 25021 ac_status=$?
ac1cb8d3
VS
25022 grep -v '^ *+' conftest.er1 >conftest.err
25023 rm -f conftest.er1
25024 cat conftest.err >&5
a848cd7e
SC
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); } &&
4d4ff94c 25027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); }; } &&
25033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); }; }; then
25039 ac_cv_lib_ICE_IceConnectionNumber=yes
25040else
25041 echo "$as_me: failed program was:" >&5
25042sed 's/^/| /' conftest.$ac_ext >&5
25043
25044ac_cv_lib_ICE_IceConnectionNumber=no
25045fi
ac1cb8d3
VS
25046rm -f conftest.err conftest.$ac_objext \
25047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25048LIBS=$ac_check_lib_save_LIBS
25049fi
25050echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25051echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25052if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25053 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25054fi
25055
25056 LDFLAGS=$ac_save_LDFLAGS
25057
25058fi
25059
25060
25061 if test "$no_x" = "yes"; then
25062 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25063echo "$as_me: error: X11 not found" >&2;}
25064 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25065 fi
25066
74b84332
VS
25067 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25068 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25069 AFMINSTALL=afminstall
25070 COMPILED_X_PROGRAM=0
25071
74b84332
VS
25072 fi
25073
25074 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25075 if test "$wxUSE_NANOX" = "yes"; then
25076 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25077echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25078 if test "x$MICROWIN" = x ; then
25079 echo "$as_me:$LINENO: result: not found" >&5
25080echo "${ECHO_T}not found" >&6
25081 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25082echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25083 { (exit 1); exit 1; }; }
25084 else
25085 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25086echo "${ECHO_T}$MICROWIN" >&6
25087 cat >>confdefs.h <<\_ACEOF
25088#define wxUSE_NANOX 1
25089_ACEOF
25090
25091 fi
25092 fi
25093
25094 if test "$wxUSE_UNICODE" = "yes"; then
25095
25096 succeeded=no
25097
25098 if test -z "$PKG_CONFIG"; then
25099 # Extract the first word of "pkg-config", so it can be a program name with args.
25100set dummy pkg-config; ac_word=$2
25101echo "$as_me:$LINENO: checking for $ac_word" >&5
25102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25103if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25104 echo $ECHO_N "(cached) $ECHO_C" >&6
25105else
25106 case $PKG_CONFIG in
25107 [\\/]* | ?:[\\/]*)
25108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25109 ;;
25110 *)
25111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25112for as_dir in $PATH
25113do
25114 IFS=$as_save_IFS
25115 test -z "$as_dir" && as_dir=.
25116 for ac_exec_ext in '' $ac_executable_extensions; do
25117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25120 break 2
25121 fi
25122done
25123done
25124
25125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25126 ;;
25127esac
25128fi
25129PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25130
25131if test -n "$PKG_CONFIG"; then
25132 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25133echo "${ECHO_T}$PKG_CONFIG" >&6
25134else
25135 echo "$as_me:$LINENO: result: no" >&5
25136echo "${ECHO_T}no" >&6
25137fi
25138
25139 fi
25140
25141 if test "$PKG_CONFIG" = "no" ; then
25142 echo "*** The pkg-config script could not be found. Make sure it is"
25143 echo "*** in your path, or set the PKG_CONFIG environment variable"
25144 echo "*** to the full path to pkg-config."
25145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25146 else
25147 PKG_CONFIG_MIN_VERSION=0.9.0
25148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25149 echo "$as_me:$LINENO: checking for pangox" >&5
25150echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25151
25152 if $PKG_CONFIG --exists "pangox" ; then
25153 echo "$as_me:$LINENO: result: yes" >&5
25154echo "${ECHO_T}yes" >&6
25155 succeeded=yes
25156
25157 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25158echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25159 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25160 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25161echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25162
25163 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25164echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25165 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25166 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25167echo "${ECHO_T}$PANGOX_LIBS" >&6
25168 else
25169 PANGOX_CFLAGS=""
25170 PANGOX_LIBS=""
25171 ## If we have a custom action on failure, don't print errors, but
25172 ## do set a variable so people can do so.
25173 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25174
25175 fi
25176
25177
25178
25179 else
25180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25182 fi
25183 fi
25184
25185 if test $succeeded = yes; then
25186
25187 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25188 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25189
25190 else
25191
25192 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25193echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25194 { (exit 1); exit 1; }; }
25195
25196
25197 fi
25198
25199
25200 succeeded=no
25201
25202 if test -z "$PKG_CONFIG"; then
25203 # Extract the first word of "pkg-config", so it can be a program name with args.
25204set dummy pkg-config; ac_word=$2
25205echo "$as_me:$LINENO: checking for $ac_word" >&5
25206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25207if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25208 echo $ECHO_N "(cached) $ECHO_C" >&6
25209else
25210 case $PKG_CONFIG in
25211 [\\/]* | ?:[\\/]*)
25212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25213 ;;
25214 *)
25215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25216for as_dir in $PATH
25217do
25218 IFS=$as_save_IFS
25219 test -z "$as_dir" && as_dir=.
25220 for ac_exec_ext in '' $ac_executable_extensions; do
25221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25222 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25224 break 2
25225 fi
25226done
25227done
25228
25229 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25230 ;;
25231esac
25232fi
25233PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25234
25235if test -n "$PKG_CONFIG"; then
25236 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25237echo "${ECHO_T}$PKG_CONFIG" >&6
25238else
25239 echo "$as_me:$LINENO: result: no" >&5
25240echo "${ECHO_T}no" >&6
25241fi
25242
25243 fi
25244
25245 if test "$PKG_CONFIG" = "no" ; then
25246 echo "*** The pkg-config script could not be found. Make sure it is"
25247 echo "*** in your path, or set the PKG_CONFIG environment variable"
25248 echo "*** to the full path to pkg-config."
25249 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25250 else
25251 PKG_CONFIG_MIN_VERSION=0.9.0
25252 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25253 echo "$as_me:$LINENO: checking for pangoft2" >&5
25254echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25255
25256 if $PKG_CONFIG --exists "pangoft2" ; then
25257 echo "$as_me:$LINENO: result: yes" >&5
25258echo "${ECHO_T}yes" >&6
25259 succeeded=yes
25260
25261 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25262echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25263 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25264 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25265echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25266
25267 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25268echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25269 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25270 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25271echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25272 else
25273 PANGOFT2_CFLAGS=""
25274 PANGOFT2_LIBS=""
25275 ## If we have a custom action on failure, don't print errors, but
25276 ## do set a variable so people can do so.
25277 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25278
25279 fi
25280
25281
25282
25283 else
25284 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25285 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25286 fi
25287 fi
25288
25289 if test $succeeded = yes; then
25290
25291 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25292 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25293
25294 else
25295
25296 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25297echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25298 wxUSE_PRINTING_ARCHITECTURE="no"
25299
25300
25301 fi
25302
25303
25304 succeeded=no
25305
25306 if test -z "$PKG_CONFIG"; then
25307 # Extract the first word of "pkg-config", so it can be a program name with args.
25308set dummy pkg-config; ac_word=$2
25309echo "$as_me:$LINENO: checking for $ac_word" >&5
25310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25311if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25312 echo $ECHO_N "(cached) $ECHO_C" >&6
25313else
25314 case $PKG_CONFIG in
25315 [\\/]* | ?:[\\/]*)
25316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25317 ;;
25318 *)
25319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25320for as_dir in $PATH
25321do
25322 IFS=$as_save_IFS
25323 test -z "$as_dir" && as_dir=.
25324 for ac_exec_ext in '' $ac_executable_extensions; do
25325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25326 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25328 break 2
25329 fi
25330done
25331done
25332
25333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25334 ;;
25335esac
25336fi
25337PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25338
25339if test -n "$PKG_CONFIG"; then
25340 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25341echo "${ECHO_T}$PKG_CONFIG" >&6
25342else
25343 echo "$as_me:$LINENO: result: no" >&5
25344echo "${ECHO_T}no" >&6
25345fi
25346
25347 fi
25348
25349 if test "$PKG_CONFIG" = "no" ; then
25350 echo "*** The pkg-config script could not be found. Make sure it is"
25351 echo "*** in your path, or set the PKG_CONFIG environment variable"
25352 echo "*** to the full path to pkg-config."
25353 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25354 else
25355 PKG_CONFIG_MIN_VERSION=0.9.0
25356 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25357 echo "$as_me:$LINENO: checking for pangoxft" >&5
25358echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25359
25360 if $PKG_CONFIG --exists "pangoxft" ; then
25361 echo "$as_me:$LINENO: result: yes" >&5
25362echo "${ECHO_T}yes" >&6
25363 succeeded=yes
25364
25365 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25366echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25367 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25368 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25369echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25370
25371 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25372echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25373 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25374 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25375echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25376 else
25377 PANGOXFT_CFLAGS=""
25378 PANGOXFT_LIBS=""
25379 ## If we have a custom action on failure, don't print errors, but
25380 ## do set a variable so people can do so.
25381 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25382
25383 fi
25384
25385
25386
25387 else
25388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25390 fi
25391 fi
25392
25393 if test $succeeded = yes; then
25394
25395 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25396 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25397
25398 else
25399
25400 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25401echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25402
25403
25404 fi
25405
304205f1
VS
25406 save_CFLAGS="$CFLAGS"
25407 save_LIBS="$LIBS"
25408 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25409 LIBS="$LIBS $PANGOX_LIBS"
25410
25411for ac_func in pango_font_family_is_monospace
25412do
25413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25414echo "$as_me:$LINENO: checking for $ac_func" >&5
25415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25416if eval "test \"\${$as_ac_var+set}\" = set"; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25418else
25419 cat >conftest.$ac_ext <<_ACEOF
25420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
25425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25427#define $ac_func innocuous_$ac_func
25428
25429/* System header to define __stub macros and hopefully few prototypes,
25430 which can conflict with char $ac_func (); below.
25431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25432 <limits.h> exists even on freestanding compilers. */
25433
25434#ifdef __STDC__
25435# include <limits.h>
25436#else
25437# include <assert.h>
25438#endif
25439
25440#undef $ac_func
25441
25442/* Override any gcc2 internal prototype to avoid an error. */
25443#ifdef __cplusplus
25444extern "C"
25445{
25446#endif
25447/* We use char because int might match the return type of a gcc2
25448 builtin and then its argument prototype would still apply. */
25449char $ac_func ();
25450/* The GNU C library defines this for functions which it implements
25451 to always fail with ENOSYS. Some functions are actually named
25452 something starting with __ and the normal name is an alias. */
25453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25454choke me
25455#else
25456char (*f) () = $ac_func;
25457#endif
25458#ifdef __cplusplus
25459}
25460#endif
25461
25462int
25463main ()
25464{
25465return f != $ac_func;
25466 ;
25467 return 0;
25468}
25469_ACEOF
25470rm -f conftest.$ac_objext conftest$ac_exeext
25471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25472 (eval $ac_link) 2>conftest.er1
25473 ac_status=$?
25474 grep -v '^ *+' conftest.er1 >conftest.err
25475 rm -f conftest.er1
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } &&
4d4ff94c 25479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
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'
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 eval "$as_ac_var=yes"
25492else
25493 echo "$as_me: failed program was:" >&5
25494sed 's/^/| /' conftest.$ac_ext >&5
25495
25496eval "$as_ac_var=no"
25497fi
25498rm -f conftest.err conftest.$ac_objext \
25499 conftest$ac_exeext conftest.$ac_ext
25500fi
25501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25503if test `eval echo '${'$as_ac_var'}'` = yes; then
25504 cat >>confdefs.h <<_ACEOF
25505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25506_ACEOF
25507
25508fi
25509done
25510
25511 CFLAGS="$save_CFLAGS"
25512 LIBS="$save_LIBS"
a848cd7e
SC
25513 fi
25514
25515 wxUSE_UNIVERSAL="yes"
25516
25517 if test "$wxUSE_NANOX" = "yes"; then
25518 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25519 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"
25520 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25521 else
25522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25523 fi
25524
25525 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25526 TOOLKIT=X11
25527 GUIDIST=X11_DIST
25528 fi
25529
25530 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25531 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25532echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25533
74b84332
VS
25534ac_find_includes=
25535for ac_dir in $SEARCH_INCLUDE /usr/include;
25536 do
25537 if test -f "$ac_dir/Xm/Xm.h"; then
25538 ac_find_includes=$ac_dir
25539 break
25540 fi
25541 done
a848cd7e 25542
74b84332
VS
25543 if test "$ac_find_includes" != "" ; then
25544 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25545echo "${ECHO_T}found in $ac_find_includes" >&6
25546
25547 if test "x$ac_find_includes" = "x/usr/include"; then
25548 ac_path_to_include=""
25549 else
25550 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25551 result=$?
25552 if test $result = 0; then
25553 ac_path_to_include=""
25554 else
25555 ac_path_to_include=" -I$ac_find_includes"
25556 fi
a848cd7e
SC
25557 fi
25558
74b84332
VS
25559 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25560 else
25561 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25562/* confdefs.h. */
25563_ACEOF
25564cat confdefs.h >>conftest.$ac_ext
25565cat >>conftest.$ac_ext <<_ACEOF
25566/* end confdefs.h. */
25567
74b84332
VS
25568 #include <Xm/Xm.h>
25569
a848cd7e
SC
25570int
25571main ()
25572{
25573
74b84332
VS
25574 int version;
25575 version = xmUseVersion;
25576
a848cd7e
SC
25577 ;
25578 return 0;
25579}
25580_ACEOF
74b84332
VS
25581rm -f conftest.$ac_objext
25582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25583 (eval $ac_compile) 2>conftest.er1
a848cd7e 25584 ac_status=$?
ac1cb8d3
VS
25585 grep -v '^ *+' conftest.er1 >conftest.err
25586 rm -f conftest.er1
25587 cat conftest.err >&5
a848cd7e
SC
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); } &&
4d4ff94c 25590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; } &&
74b84332 25596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
74b84332
VS
25602
25603 echo "$as_me:$LINENO: result: found in default search path" >&5
25604echo "${ECHO_T}found in default search path" >&6
25605 COMPILED_X_PROGRAM=1
25606
a848cd7e
SC
25607else
25608 echo "$as_me: failed program was:" >&5
25609sed 's/^/| /' conftest.$ac_ext >&5
25610
a848cd7e 25611
74b84332
VS
25612 echo "$as_me:$LINENO: result: no" >&5
25613echo "${ECHO_T}no" >&6
25614 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25615echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25616 { (exit 1); exit 1; }; }
a848cd7e 25617
a848cd7e 25618
a848cd7e 25619fi
74b84332
VS
25620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25621 fi
25622
25623 if test "$COMPILED_X_PROGRAM" = 0; then
25624 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25625echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25626
25627ac_find_libraries=
25628for ac_dir in $SEARCH_LIB /usr/lib;
25629 do
25630 for ac_extension in a so sl dylib; do
25631 if test -f "$ac_dir/libXm.$ac_extension"; then
25632 ac_find_libraries=$ac_dir
25633 break 2
a848cd7e 25634 fi
74b84332
VS
25635 done
25636 done
a848cd7e 25637
74b84332
VS
25638 if test "$ac_find_libraries" != "" ; then
25639 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25640echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25641
74b84332
VS
25642
25643 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25644 result=$?
25645 if test $result = 0; then
25646 ac_path_to_link=""
a848cd7e 25647 else
74b84332
VS
25648 ac_path_to_link=" -L$ac_find_libraries"
25649 fi
25650
25651 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25652 else
25653 save_CFLAGS=$CFLAGS
25654 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25655
25656 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25657/* confdefs.h. */
25658_ACEOF
25659cat confdefs.h >>conftest.$ac_ext
25660cat >>conftest.$ac_ext <<_ACEOF
25661/* end confdefs.h. */
25662
74b84332
VS
25663 #include <Xm/Xm.h>
25664
a848cd7e
SC
25665int
25666main ()
25667{
74b84332
VS
25668
25669 int version;
25670 version = xmUseVersion;
25671
a848cd7e
SC
25672 ;
25673 return 0;
25674}
25675_ACEOF
74b84332
VS
25676rm -f conftest.$ac_objext
25677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25678 (eval $ac_compile) 2>conftest.er1
a848cd7e 25679 ac_status=$?
ac1cb8d3
VS
25680 grep -v '^ *+' conftest.er1 >conftest.err
25681 rm -f conftest.er1
25682 cat conftest.err >&5
a848cd7e
SC
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } &&
4d4ff94c 25685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25688 ac_status=$?
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; } &&
74b84332 25691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; }; then
74b84332
VS
25697
25698 echo "$as_me:$LINENO: result: found in default search path" >&5
25699echo "${ECHO_T}found in default search path" >&6
25700 COMPILED_X_PROGRAM=1
25701
a848cd7e
SC
25702else
25703 echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
25705
74b84332
VS
25706
25707 echo "$as_me:$LINENO: result: no" >&5
25708echo "${ECHO_T}no" >&6
25709 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25710echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25711 { (exit 1); exit 1; }; }
25712
25713
25714fi
25715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25716
25717 CFLAGS=$save_CFLAGS
25718 fi
25719 fi
25720
25721 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25722echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25723 libp_link=""
25724 libsm_ice_link=""
25725 libs_found=0
25726 for libp in "" " -lXp"; do
25727 if test "$libs_found" = "0"; then
25728 for libsm_ice in "" " -lSM -lICE"; do
25729 if test "$libs_found" = "0"; then
25730 save_LIBS="$LIBS"
25731 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25732 save_CFLAGS=$CFLAGS
25733 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25734
25735 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25736/* confdefs.h. */
25737_ACEOF
25738cat confdefs.h >>conftest.$ac_ext
25739cat >>conftest.$ac_ext <<_ACEOF
25740/* end confdefs.h. */
25741
74b84332
VS
25742 #include <Xm/Xm.h>
25743 #include <Xm/List.h>
25744
a848cd7e
SC
25745int
25746main ()
25747{
74b84332
VS
25748
25749 XmString string = NULL;
25750 Widget w = NULL;
25751 int position = 0;
25752 XmListAddItem(w, string, position);
25753
a848cd7e
SC
25754 ;
25755 return 0;
25756}
25757_ACEOF
25758rm -f conftest.$ac_objext conftest$ac_exeext
25759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25760 (eval $ac_link) 2>conftest.er1
a848cd7e 25761 ac_status=$?
ac1cb8d3
VS
25762 grep -v '^ *+' conftest.er1 >conftest.err
25763 rm -f conftest.er1
25764 cat conftest.err >&5
a848cd7e
SC
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
4d4ff94c 25767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769 (eval $ac_try) 2>&5
25770 ac_status=$?
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; } &&
25773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775 (eval $ac_try) 2>&5
25776 ac_status=$?
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); }; }; then
25779
25780 libp_link="$libp"
25781 libsm_ice_link="$libsm_ice"
25782 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25783echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25784 libs_found=1
25785
25786else
25787 echo "$as_me: failed program was:" >&5
25788sed 's/^/| /' conftest.$ac_ext >&5
25789
25790
25791
25792fi
ac1cb8d3
VS
25793rm -f conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25795
25796 LIBS="$save_LIBS"
25797 CFLAGS=$save_CFLAGS
25798 fi
25799 done
25800 fi
25801 done
25802
25803 if test "$libs_found" = "0"; then
25804 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25805echo "${ECHO_T}can't find the right libraries" >&6
25806 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25807echo "$as_me: error: can't link a simple motif program" >&2;}
25808 { (exit 1); exit 1; }; }
25809 fi
25810
25811 save_CFLAGS=$CFLAGS
25812 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25813 echo "$as_me:$LINENO: checking for Motif 2" >&5
25814echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25815 cat >conftest.$ac_ext <<_ACEOF
25816/* confdefs.h. */
25817_ACEOF
25818cat confdefs.h >>conftest.$ac_ext
25819cat >>conftest.$ac_ext <<_ACEOF
25820/* end confdefs.h. */
25821
25822 #include <Xm/Xm.h>
25823
25824int
25825main ()
25826{
25827
25828 #if XmVersion < 2000
25829 #error "Not Motif 2"
25830 #endif
25831
25832 ;
25833 return 0;
25834}
25835_ACEOF
25836rm -f conftest.$ac_objext
25837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25838 (eval $ac_compile) 2>conftest.er1
a848cd7e 25839 ac_status=$?
ac1cb8d3
VS
25840 grep -v '^ *+' conftest.er1 >conftest.err
25841 rm -f conftest.er1
25842 cat conftest.err >&5
a848cd7e
SC
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } &&
4d4ff94c 25845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; } &&
25851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857
25858 cat >>confdefs.h <<\_ACEOF
25859#define __WXMOTIF20__ 1
25860_ACEOF
25861
25862 echo "$as_me:$LINENO: result: found" >&5
25863echo "${ECHO_T}found" >&6
25864
25865else
25866 echo "$as_me: failed program was:" >&5
25867sed 's/^/| /' conftest.$ac_ext >&5
25868
25869
25870 cat >>confdefs.h <<\_ACEOF
25871#define __WXMOTIF20__ 0
25872_ACEOF
25873
25874 echo "$as_me:$LINENO: result: not found" >&5
25875echo "${ECHO_T}not found" >&6
25876
25877fi
ac1cb8d3 25878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25879 CFLAGS=$save_CFLAGS
25880
25881 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
25882 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
25883 TOOLKIT=MOTIF
25884 GUIDIST=MOTIF_DIST
25885 fi
25886
74b84332 25887 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
25888 if test "$wxUSE_LIBXPM" = "sys"; then
25889 echo "$as_me:$LINENO: checking for Xpm library" >&5
25890echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25891
25892ac_find_libraries=
25893for ac_dir in $SEARCH_LIB /usr/lib;
25894 do
25895 for ac_extension in a so sl dylib; do
25896 if test -f "$ac_dir/libXpm.$ac_extension"; then
25897 ac_find_libraries=$ac_dir
25898 break 2
25899 fi
25900 done
25901 done
25902
25903 if test "$ac_find_libraries" != "" ; then
25904
25905 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25906 result=$?
25907 if test $result = 0; then
25908 ac_path_to_link=""
25909 else
25910 ac_path_to_link=" -L$ac_find_libraries"
25911 fi
25912
25913 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25914 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25915echo "${ECHO_T}found at $ac_find_libraries" >&6
25916
25917 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25918echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25919if test "${wx_cv_x11_xpm_h+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25921else
25922
25923 save_CFLAGS=$CFLAGS
25924 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25925
25926 cat >conftest.$ac_ext <<_ACEOF
25927/* confdefs.h. */
25928_ACEOF
25929cat confdefs.h >>conftest.$ac_ext
25930cat >>conftest.$ac_ext <<_ACEOF
25931/* end confdefs.h. */
25932
25933 #include <X11/xpm.h>
25934
25935int
25936main ()
25937{
25938
25939 int version;
25940 version = XpmLibraryVersion();
25941
25942 ;
25943 return 0;
25944}
25945_ACEOF
25946rm -f conftest.$ac_objext
25947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25948 (eval $ac_compile) 2>conftest.er1
a848cd7e 25949 ac_status=$?
ac1cb8d3
VS
25950 grep -v '^ *+' conftest.er1 >conftest.err
25951 rm -f conftest.er1
25952 cat conftest.err >&5
a848cd7e
SC
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } &&
4d4ff94c 25955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); }; } &&
25961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25963 (eval $ac_try) 2>&5
25964 ac_status=$?
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; }; then
25967 wx_cv_x11_xpm_h=yes
25968else
25969 echo "$as_me: failed program was:" >&5
25970sed 's/^/| /' conftest.$ac_ext >&5
25971
25972wx_cv_x11_xpm_h=no
25973
25974fi
ac1cb8d3 25975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25976
25977 CFLAGS=$save_CFLAGS
25978
25979
25980fi
25981echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25982echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25983
25984 if test $wx_cv_x11_xpm_h = "yes"; then
25985 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
25986 cat >>confdefs.h <<\_ACEOF
25987#define wxHAVE_LIB_XPM 1
25988_ACEOF
25989
25990 else
25991 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25992echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25993 fi
25994 fi
25995
25996 fi
25997
25998 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25999echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26000if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26001 echo $ECHO_N "(cached) $ECHO_C" >&6
26002else
26003 ac_check_lib_save_LIBS=$LIBS
26004LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26005cat >conftest.$ac_ext <<_ACEOF
26006/* confdefs.h. */
26007_ACEOF
26008cat confdefs.h >>conftest.$ac_ext
26009cat >>conftest.$ac_ext <<_ACEOF
26010/* end confdefs.h. */
26011
26012/* Override any gcc2 internal prototype to avoid an error. */
26013#ifdef __cplusplus
26014extern "C"
26015#endif
26016/* We use char because int might match the return type of a gcc2
26017 builtin and then its argument prototype would still apply. */
26018char XShapeQueryExtension ();
26019int
26020main ()
26021{
26022XShapeQueryExtension ();
26023 ;
26024 return 0;
26025}
26026_ACEOF
26027rm -f conftest.$ac_objext conftest$ac_exeext
26028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26029 (eval $ac_link) 2>conftest.er1
a848cd7e 26030 ac_status=$?
ac1cb8d3
VS
26031 grep -v '^ *+' conftest.er1 >conftest.err
26032 rm -f conftest.er1
26033 cat conftest.err >&5
a848cd7e
SC
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); } &&
4d4ff94c 26036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); }; } &&
26042 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; }; then
26048 ac_cv_lib_Xext_XShapeQueryExtension=yes
26049else
26050 echo "$as_me: failed program was:" >&5
26051sed 's/^/| /' conftest.$ac_ext >&5
26052
26053ac_cv_lib_Xext_XShapeQueryExtension=no
26054fi
ac1cb8d3
VS
26055rm -f conftest.err conftest.$ac_objext \
26056 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26057LIBS=$ac_check_lib_save_LIBS
26058fi
26059echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26060echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26061if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26062
26063 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26064 wxHAVE_XEXT_LIB=1
26065
26066fi
26067
26068
26069 if test "$wxHAVE_XEXT_LIB" = 1; then
26070 save_CFLAGS="$CFLAGS"
26071 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26072
26073 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26074echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26075 cat >conftest.$ac_ext <<_ACEOF
26076/* confdefs.h. */
26077_ACEOF
26078cat confdefs.h >>conftest.$ac_ext
26079cat >>conftest.$ac_ext <<_ACEOF
26080/* end confdefs.h. */
26081
26082 #include <X11/Xlib.h>
26083 #include <X11/extensions/shape.h>
26084
26085int
26086main ()
26087{
26088
26089 int dummy1, dummy2;
26090 XShapeQueryExtension((Display*)NULL,
26091 (int*)NULL, (int*)NULL);
26092
26093 ;
26094 return 0;
26095}
26096_ACEOF
26097rm -f conftest.$ac_objext
26098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26099 (eval $ac_compile) 2>conftest.er1
a848cd7e 26100 ac_status=$?
ac1cb8d3
VS
26101 grep -v '^ *+' conftest.er1 >conftest.err
26102 rm -f conftest.er1
26103 cat conftest.err >&5
a848cd7e
SC
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } &&
4d4ff94c 26106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; } &&
26112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; }; then
26118
26119 cat >>confdefs.h <<\_ACEOF
26120#define HAVE_XSHAPE 1
26121_ACEOF
26122
26123 echo "$as_me:$LINENO: result: found" >&5
26124echo "${ECHO_T}found" >&6
26125
26126else
26127 echo "$as_me: failed program was:" >&5
26128sed 's/^/| /' conftest.$ac_ext >&5
26129
26130
26131 echo "$as_me:$LINENO: result: not found" >&5
26132echo "${ECHO_T}not found" >&6
26133
26134fi
ac1cb8d3 26135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26136 CFLAGS="$save_CFLAGS"
26137
26138 fi
26139 fi
26140
26141 if test "$wxUSE_MAC" = 1; then
26142 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26143echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26144 if test "$GCC" = yes; then
26145 echo "$as_me:$LINENO: result: gcc" >&5
26146echo "${ECHO_T}gcc" >&6
26147 CPPFLAGS_PASCAL="-fpascal-strings"
26148 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26149 echo "$as_me:$LINENO: result: xlc" >&5
26150echo "${ECHO_T}xlc" >&6
26151 CPPFLAGS_PASCAL="-qmacpstr"
26152 else
26153 echo "$as_me:$LINENO: result: none" >&5
26154echo "${ECHO_T}none" >&6
26155 fi
26156
26157 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26158
26159 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26160 TOOLKIT=MAC
26161 GUIDIST=MACX_DIST
26162 WXBASEPORT="_carbon"
26163 fi
26164
26165 if test "$wxUSE_COCOA" = 1; then
26166 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26167 TOOLKIT=COCOA
26168 GUIDIST=COCOA_DIST
26169 fi
26170
26171 if test "$wxUSE_PM" = 1; then
26172 TOOLKIT=PM
de59c161
RD
26173 GUIDIST=PM_DIST
26174 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26175echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26176if test "${wx_cv_spbcdata+set}" = set; then
26177 echo $ECHO_N "(cached) $ECHO_C" >&6
26178else
26179
26180 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26181/* confdefs.h. */
26182_ACEOF
26183cat confdefs.h >>conftest.$ac_ext
26184cat >>conftest.$ac_ext <<_ACEOF
26185/* end confdefs.h. */
26186
26187 #define INCL_PM
26188 #include <os2.h>
26189
26190int
26191main ()
26192{
26193
26194 SPBCDATA test;
26195
26196 ;
26197 return 0;
26198}
26199_ACEOF
26200rm -f conftest.$ac_objext
26201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26202 (eval $ac_compile) 2>conftest.er1
de59c161 26203 ac_status=$?
ac1cb8d3
VS
26204 grep -v '^ *+' conftest.er1 >conftest.err
26205 rm -f conftest.er1
26206 cat conftest.err >&5
de59c161
RD
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } &&
4d4ff94c 26209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26211 (eval $ac_try) 2>&5
26212 ac_status=$?
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); }; } &&
26215 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; }; then
26221 wx_cv_spbcdata=yes
26222else
26223 echo "$as_me: failed program was:" >&5
26224sed 's/^/| /' conftest.$ac_ext >&5
26225
26226wx_cv_spbcdata=no
26227
26228fi
ac1cb8d3 26229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26230
26231
26232fi
26233echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26234echo "${ECHO_T}$wx_cv_spbcdata" >&6
26235
26236 if test $wx_cv_spbcdata = "yes"; then
26237 cat >>confdefs.h <<\_ACEOF
26238#define HAVE_SPBCDATA 1
26239_ACEOF
26240
26241 fi
a848cd7e
SC
26242 fi
26243
26244 if test "$TOOLKIT" = "PM" ; then
26245 TOOLKIT_DIR="os2"
26246 else
26247 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26248 fi
26249
26250 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26251
26252 if test "$wxUSE_UNIVERSAL" = "yes"; then
26253 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26254
26255 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26256 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26257
26258 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26259 if test "$wxUSE_X11" = 1; then
26260 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26261 else
26262 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26263 fi
26264 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26265 WIDGET_SET=univ
26266 else
26267 ALL_OBJECTS="\$(GUIOBJS)"
26268 ALL_SOURCES="\$(ALL_SOURCES)"
26269 ALL_HEADERS="\$(ALL_HEADERS)"
26270 fi
26271
26272 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26273
26274 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26275 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26276 fi
26277
26278 if test "$wxUSE_HTML" = "yes"; then
26279 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26280 fi
26281
26282 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26283 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26284 fi
26285 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26286 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26287 fi
26288 if test "$wxUSE_LIBPNG" = "builtin" ; then
26289 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26290 fi
26291
26292 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26293 DISTDIR="wx\$(TOOLKIT)"
26294else
26295 USE_GUI=0
26296
26297 TOOLKIT_DIR="base"
26298
26299 if test "$USE_WIN32" = 1 ; then
26300 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26301 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26302
26303 TOOLKIT="MSW"
26304 else
26305 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26306 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26307 fi
26308
26309 ALL_SOURCES="\$(ALL_SOURCES)"
26310 ALL_HEADERS="\$(ALL_HEADERS)"
26311
26312 PORT_FILES="\${top_srcdir}/src/files.lst"
26313
26314 GUIDIST="BASE_DIST"
26315 DISTDIR="wxBase"
26316fi
26317
26318
26319
26320
26321IODBC_C_SRC=""
26322
26323
26324if test "$TOOLKIT" != "MSW" ; then
26325
26326 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26327
26328 if test "${ac_cv_header_sql_h+set}" = set; then
26329 echo "$as_me:$LINENO: checking for sql.h" >&5
26330echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26331if test "${ac_cv_header_sql_h+set}" = set; then
26332 echo $ECHO_N "(cached) $ECHO_C" >&6
26333fi
26334echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26335echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26336else
26337 # Is the header compilable?
26338echo "$as_me:$LINENO: checking sql.h usability" >&5
26339echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26340cat >conftest.$ac_ext <<_ACEOF
26341/* confdefs.h. */
26342_ACEOF
26343cat confdefs.h >>conftest.$ac_ext
26344cat >>conftest.$ac_ext <<_ACEOF
26345/* end confdefs.h. */
26346$ac_includes_default
26347#include <sql.h>
26348_ACEOF
26349rm -f conftest.$ac_objext
26350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26351 (eval $ac_compile) 2>conftest.er1
a848cd7e 26352 ac_status=$?
ac1cb8d3
VS
26353 grep -v '^ *+' conftest.er1 >conftest.err
26354 rm -f conftest.er1
26355 cat conftest.err >&5
a848cd7e
SC
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } &&
4d4ff94c 26358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; } &&
26364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26366 (eval $ac_try) 2>&5
26367 ac_status=$?
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 ac_header_compiler=yes
26371else
26372 echo "$as_me: failed program was:" >&5
26373sed 's/^/| /' conftest.$ac_ext >&5
26374
26375ac_header_compiler=no
26376fi
ac1cb8d3 26377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26379echo "${ECHO_T}$ac_header_compiler" >&6
26380
26381# Is the header present?
26382echo "$as_me:$LINENO: checking sql.h presence" >&5
26383echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26384cat >conftest.$ac_ext <<_ACEOF
26385/* confdefs.h. */
26386_ACEOF
26387cat confdefs.h >>conftest.$ac_ext
26388cat >>conftest.$ac_ext <<_ACEOF
26389/* end confdefs.h. */
26390#include <sql.h>
26391_ACEOF
26392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26394 ac_status=$?
26395 grep -v '^ *+' conftest.er1 >conftest.err
26396 rm -f conftest.er1
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } >/dev/null; then
26400 if test -s conftest.err; then
26401 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26403 else
26404 ac_cpp_err=
26405 fi
26406else
26407 ac_cpp_err=yes
26408fi
26409if test -z "$ac_cpp_err"; then
26410 ac_header_preproc=yes
26411else
26412 echo "$as_me: failed program was:" >&5
26413sed 's/^/| /' conftest.$ac_ext >&5
26414
26415 ac_header_preproc=no
26416fi
26417rm -f conftest.err conftest.$ac_ext
26418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26419echo "${ECHO_T}$ac_header_preproc" >&6
26420
26421# So? What about this header?
ac1cb8d3
VS
26422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26423 yes:no: )
a848cd7e
SC
26424 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26425echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26426 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26427echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26428 ac_header_preproc=yes
a848cd7e 26429 ;;
ac1cb8d3 26430 no:yes:* )
a848cd7e
SC
26431 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26432echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26433 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26434echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26435 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26436echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26437 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26438echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26439 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26440echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26441 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26442echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26443 (
26444 cat <<\_ASBOX
ac1cb8d3
VS
26445## ----------------------------------------- ##
26446## Report this to wx-dev@lists.wxwidgets.org ##
26447## ----------------------------------------- ##
a848cd7e
SC
26448_ASBOX
26449 ) |
26450 sed "s/^/$as_me: WARNING: /" >&2
26451 ;;
26452esac
26453echo "$as_me:$LINENO: checking for sql.h" >&5
26454echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26455if test "${ac_cv_header_sql_h+set}" = set; then
26456 echo $ECHO_N "(cached) $ECHO_C" >&6
26457else
26458 ac_cv_header_sql_h=$ac_header_preproc
26459fi
26460echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26461echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26462
26463fi
26464if test $ac_cv_header_sql_h = yes; then
26465 found_sql_h=1
26466fi
26467
26468
26469 if test "x$found_sql_h" = "x1" ; then
26470 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26471echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26472if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26473 echo $ECHO_N "(cached) $ECHO_C" >&6
26474else
26475 ac_check_lib_save_LIBS=$LIBS
26476LIBS="-liodbc $LIBS"
26477cat >conftest.$ac_ext <<_ACEOF
26478/* confdefs.h. */
26479_ACEOF
26480cat confdefs.h >>conftest.$ac_ext
26481cat >>conftest.$ac_ext <<_ACEOF
26482/* end confdefs.h. */
26483
26484/* Override any gcc2 internal prototype to avoid an error. */
26485#ifdef __cplusplus
26486extern "C"
26487#endif
26488/* We use char because int might match the return type of a gcc2
26489 builtin and then its argument prototype would still apply. */
26490char SQLAllocEnv ();
26491int
26492main ()
26493{
26494SQLAllocEnv ();
26495 ;
26496 return 0;
26497}
26498_ACEOF
26499rm -f conftest.$ac_objext conftest$ac_exeext
26500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26501 (eval $ac_link) 2>conftest.er1
a848cd7e 26502 ac_status=$?
ac1cb8d3
VS
26503 grep -v '^ *+' conftest.er1 >conftest.err
26504 rm -f conftest.er1
26505 cat conftest.err >&5
a848cd7e
SC
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } &&
4d4ff94c 26508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510 (eval $ac_try) 2>&5
26511 ac_status=$?
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); }; } &&
26514 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); }; }; then
26520 ac_cv_lib_iodbc_SQLAllocEnv=yes
26521else
26522 echo "$as_me: failed program was:" >&5
26523sed 's/^/| /' conftest.$ac_ext >&5
26524
26525ac_cv_lib_iodbc_SQLAllocEnv=no
26526fi
ac1cb8d3
VS
26527rm -f conftest.err conftest.$ac_objext \
26528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26529LIBS=$ac_check_lib_save_LIBS
26530fi
26531echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26532echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26533if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26534 ODBC_LINK=" -liodbc"
26535else
26536
26537 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26538echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26539if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
26541else
26542 ac_check_lib_save_LIBS=$LIBS
26543LIBS="-lunixodbc $LIBS"
26544cat >conftest.$ac_ext <<_ACEOF
26545/* confdefs.h. */
26546_ACEOF
26547cat confdefs.h >>conftest.$ac_ext
26548cat >>conftest.$ac_ext <<_ACEOF
26549/* end confdefs.h. */
26550
26551/* Override any gcc2 internal prototype to avoid an error. */
26552#ifdef __cplusplus
26553extern "C"
26554#endif
26555/* We use char because int might match the return type of a gcc2
26556 builtin and then its argument prototype would still apply. */
26557char SQLAllocEnv ();
26558int
26559main ()
26560{
26561SQLAllocEnv ();
26562 ;
26563 return 0;
26564}
26565_ACEOF
26566rm -f conftest.$ac_objext conftest$ac_exeext
26567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26568 (eval $ac_link) 2>conftest.er1
a848cd7e 26569 ac_status=$?
ac1cb8d3
VS
26570 grep -v '^ *+' conftest.er1 >conftest.err
26571 rm -f conftest.er1
26572 cat conftest.err >&5
a848cd7e
SC
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); } &&
4d4ff94c 26575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26578 ac_status=$?
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); }; } &&
26581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; }; then
26587 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26588else
26589 echo "$as_me: failed program was:" >&5
26590sed 's/^/| /' conftest.$ac_ext >&5
26591
26592ac_cv_lib_unixodbc_SQLAllocEnv=no
26593fi
ac1cb8d3
VS
26594rm -f conftest.err conftest.$ac_objext \
26595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26596LIBS=$ac_check_lib_save_LIBS
26597fi
26598echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26599echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26600if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26601 ODBC_LINK=" -lunixodbc"
26602else
26603
26604 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26605echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26606if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26608else
26609 ac_check_lib_save_LIBS=$LIBS
26610LIBS="-lodbc $LIBS"
26611cat >conftest.$ac_ext <<_ACEOF
26612/* confdefs.h. */
26613_ACEOF
26614cat confdefs.h >>conftest.$ac_ext
26615cat >>conftest.$ac_ext <<_ACEOF
26616/* end confdefs.h. */
26617
26618/* Override any gcc2 internal prototype to avoid an error. */
26619#ifdef __cplusplus
26620extern "C"
26621#endif
26622/* We use char because int might match the return type of a gcc2
26623 builtin and then its argument prototype would still apply. */
26624char SQLAllocEnv ();
26625int
26626main ()
26627{
26628SQLAllocEnv ();
26629 ;
26630 return 0;
26631}
26632_ACEOF
26633rm -f conftest.$ac_objext conftest$ac_exeext
26634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26635 (eval $ac_link) 2>conftest.er1
a848cd7e 26636 ac_status=$?
ac1cb8d3
VS
26637 grep -v '^ *+' conftest.er1 >conftest.err
26638 rm -f conftest.er1
26639 cat conftest.err >&5
a848cd7e
SC
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } &&
4d4ff94c 26642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; } &&
26648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; }; then
26654 ac_cv_lib_odbc_SQLAllocEnv=yes
26655else
26656 echo "$as_me: failed program was:" >&5
26657sed 's/^/| /' conftest.$ac_ext >&5
26658
26659ac_cv_lib_odbc_SQLAllocEnv=no
26660fi
ac1cb8d3
VS
26661rm -f conftest.err conftest.$ac_objext \
26662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26663LIBS=$ac_check_lib_save_LIBS
26664fi
26665echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26666echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26667if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26668 ODBC_LINK=" -lodbc"
26669fi
26670
26671
26672fi
26673
26674
26675fi
26676
26677 fi
26678 if test "x$ODBC_LINK" = "x" ; then
26679 if test "$wxUSE_ODBC" = "sys" ; then
26680 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26681echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26682 { (exit 1); exit 1; }; }
26683 else
26684 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26685echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26686 wxUSE_ODBC=builtin
26687 fi
26688 else
26689 wxUSE_ODBC=sys
26690 fi
26691 fi
26692 if test "$wxUSE_ODBC" != "no" ; then
26693 cat >>confdefs.h <<\_ACEOF
26694#define wxUSE_ODBC 1
26695_ACEOF
26696
26697 if test "$wxUSE_ODBC" = "builtin" ; then
26698 cat >>confdefs.h <<\_ACEOF
26699#define wxUSE_BUILTIN_IODBC 1
26700_ACEOF
26701
26702 fi
26703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26704
26705 WXODBCFLAG="-D_IODBC_"
26706 fi
26707fi
26708
26709if test "$wxUSE_REGEX" = "builtin" ; then
26710 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26711fi
26712if test "$wxUSE_ZLIB" = "builtin" ; then
26713 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26714fi
26715
01cb68df 26716
a848cd7e 26717if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26718 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26719 echo "$as_me:$LINENO: checking for Xinerama" >&5
26720echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26721
26722ac_find_libraries=
26723for ac_dir in $SEARCH_LIB /usr/lib;
26724 do
26725 for ac_extension in a so sl dylib; do
26726 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26727 ac_find_libraries=$ac_dir
26728 break 2
26729 fi
26730 done
26731 done
26732
26733 if test "$ac_find_libraries" != "" ; then
26734
26735 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26736 result=$?
26737 if test $result = 0; then
26738 ac_path_to_link=""
26739 else
26740 ac_path_to_link=" -L$ac_find_libraries"
26741 fi
26742
26743 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26744 LDFLAGS="$LDFLAGS $ac_path_to_link"
26745 fi
26746 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26747 echo "$as_me:$LINENO: result: yes" >&5
26748echo "${ECHO_T}yes" >&6
26749
26750 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26751echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26752
26753ac_find_libraries=
26754for ac_dir in $SEARCH_LIB /usr/lib;
26755 do
26756 for ac_extension in a so sl dylib; do
26757 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26758 ac_find_libraries=$ac_dir
26759 break 2
26760 fi
26761 done
26762 done
26763
26764 if test "$ac_find_libraries" != "" ; then
26765 echo "$as_me:$LINENO: result: yes" >&5
26766echo "${ECHO_T}yes" >&6
26767
26768for ac_header in X11/extensions/xf86vmode.h
26769do
26770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26771echo "$as_me:$LINENO: checking for $ac_header" >&5
26772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26773if eval "test \"\${$as_ac_Header+set}\" = set"; then
26774 echo $ECHO_N "(cached) $ECHO_C" >&6
26775else
26776 cat >conftest.$ac_ext <<_ACEOF
26777/* confdefs.h. */
26778_ACEOF
26779cat confdefs.h >>conftest.$ac_ext
26780cat >>conftest.$ac_ext <<_ACEOF
26781/* end confdefs.h. */
26782
26783 #if HAVE_X11_XLIB_H
26784 #include <X11/Xlib.h>
26785 #endif
26786
26787
26788#include <$ac_header>
26789_ACEOF
26790rm -f conftest.$ac_objext
26791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26792 (eval $ac_compile) 2>conftest.er1
a848cd7e 26793 ac_status=$?
ac1cb8d3
VS
26794 grep -v '^ *+' conftest.er1 >conftest.err
26795 rm -f conftest.er1
26796 cat conftest.err >&5
a848cd7e
SC
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } &&
4d4ff94c 26799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; } &&
26805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; }; then
26811 eval "$as_ac_Header=yes"
26812else
26813 echo "$as_me: failed program was:" >&5
26814sed 's/^/| /' conftest.$ac_ext >&5
26815
26816eval "$as_ac_Header=no"
26817fi
ac1cb8d3 26818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26819fi
26820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26822if test `eval echo '${'$as_ac_Header'}'` = yes; then
26823 cat >>confdefs.h <<_ACEOF
26824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26825_ACEOF
26826
26827 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26828
26829fi
26830
26831done
26832
26833 else
26834 echo "$as_me:$LINENO: result: no" >&5
26835echo "${ECHO_T}no" >&6
26836 fi
26837
26838 else
26839 echo "$as_me:$LINENO: result: no" >&5
26840echo "${ECHO_T}no" >&6
dcc1b6ad
VS
26841 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
26842echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
26843 wxUSE_DISPLAY="no"
26844 fi
01cb68df
RG
26845 elif test "$wxUSE_MSW" = 1; then
26846
26847
26848for ac_header in multimon.h ddraw.h
26849do
26850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26851if eval "test \"\${$as_ac_Header+set}\" = set"; then
26852 echo "$as_me:$LINENO: checking for $ac_header" >&5
26853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26854if eval "test \"\${$as_ac_Header+set}\" = set"; then
26855 echo $ECHO_N "(cached) $ECHO_C" >&6
26856fi
26857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26859else
26860 # Is the header compilable?
26861echo "$as_me:$LINENO: checking $ac_header usability" >&5
26862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26863cat >conftest.$ac_ext <<_ACEOF
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
26869$ac_includes_default
26870#include <$ac_header>
26871_ACEOF
26872rm -f conftest.$ac_objext
26873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26874 (eval $ac_compile) 2>conftest.er1
01cb68df 26875 ac_status=$?
ac1cb8d3
VS
26876 grep -v '^ *+' conftest.er1 >conftest.err
26877 rm -f conftest.er1
26878 cat conftest.err >&5
01cb68df
RG
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } &&
4d4ff94c 26881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883 (eval $ac_try) 2>&5
26884 ac_status=$?
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); }; } &&
26887 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; }; then
26893 ac_header_compiler=yes
26894else
26895 echo "$as_me: failed program was:" >&5
26896sed 's/^/| /' conftest.$ac_ext >&5
26897
26898ac_header_compiler=no
26899fi
ac1cb8d3 26900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
26901echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26902echo "${ECHO_T}$ac_header_compiler" >&6
26903
26904# Is the header present?
26905echo "$as_me:$LINENO: checking $ac_header presence" >&5
26906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26907cat >conftest.$ac_ext <<_ACEOF
26908/* confdefs.h. */
26909_ACEOF
26910cat confdefs.h >>conftest.$ac_ext
26911cat >>conftest.$ac_ext <<_ACEOF
26912/* end confdefs.h. */
26913#include <$ac_header>
26914_ACEOF
26915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26917 ac_status=$?
26918 grep -v '^ *+' conftest.er1 >conftest.err
26919 rm -f conftest.er1
26920 cat conftest.err >&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); } >/dev/null; then
26923 if test -s conftest.err; then
26924 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
26926 else
26927 ac_cpp_err=
26928 fi
26929else
26930 ac_cpp_err=yes
26931fi
26932if test -z "$ac_cpp_err"; then
26933 ac_header_preproc=yes
26934else
26935 echo "$as_me: failed program was:" >&5
26936sed 's/^/| /' conftest.$ac_ext >&5
26937
26938 ac_header_preproc=no
26939fi
26940rm -f conftest.err conftest.$ac_ext
26941echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26942echo "${ECHO_T}$ac_header_preproc" >&6
26943
26944# So? What about this header?
ac1cb8d3
VS
26945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26946 yes:no: )
01cb68df
RG
26947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26951 ac_header_preproc=yes
01cb68df 26952 ;;
ac1cb8d3 26953 no:yes:* )
01cb68df
RG
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
26962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
26966 (
26967 cat <<\_ASBOX
ac1cb8d3
VS
26968## ----------------------------------------- ##
26969## Report this to wx-dev@lists.wxwidgets.org ##
26970## ----------------------------------------- ##
01cb68df
RG
26971_ASBOX
26972 ) |
26973 sed "s/^/$as_me: WARNING: /" >&2
26974 ;;
26975esac
26976echo "$as_me:$LINENO: checking for $ac_header" >&5
26977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26978if eval "test \"\${$as_ac_Header+set}\" = set"; then
26979 echo $ECHO_N "(cached) $ECHO_C" >&6
26980else
ac1cb8d3 26981 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
26982fi
26983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26985
26986fi
26987if test `eval echo '${'$as_ac_Header'}'` = yes; then
26988 cat >>confdefs.h <<_ACEOF
26989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26990_ACEOF
26991
26992else
26993
26994 wxUSE_DISPLAY="no"
dcc1b6ad
VS
26995 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
26996echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
26997
26998fi
26999
27000done
27001
a848cd7e
SC
27002 fi
27003fi
27004
27005
27006USE_OPENGL=0
27007if test "$wxUSE_OPENGL" = "yes"; then
27008 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27009 OPENGL_LIBS="-framework OpenGL -framework AGL"
27010 elif test "$wxUSE_MSW" = 1; then
27011 OPENGL_LIBS="-lopengl32 -lglu32"
27012 else
27013
27014
27015ac_find_includes=
27016for ac_dir in $SEARCH_INCLUDE /usr/include;
27017 do
27018 if test -f "$ac_dir/GL/gl.h"; then
27019 ac_find_includes=$ac_dir
27020 break
27021 fi
27022 done
27023
27024 if test "$ac_find_includes" != "" ; then
27025 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27026echo "${ECHO_T}found in $ac_find_includes" >&6
27027
27028 if test "x$ac_find_includes" = "x/usr/include"; then
27029 ac_path_to_include=""
27030 else
27031 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27032 result=$?
27033 if test $result = 0; then
27034 ac_path_to_include=""
27035 else
27036 ac_path_to_include=" -I$ac_find_includes"
27037 fi
27038 fi
27039
27040 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27041 fi
27042
27043 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27044 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27045echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27046if test "${ac_cv_header_GL_gl_h+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27048fi
27049echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27050echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27051else
27052 # Is the header compilable?
27053echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27054echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27055cat >conftest.$ac_ext <<_ACEOF
27056/* confdefs.h. */
27057_ACEOF
27058cat confdefs.h >>conftest.$ac_ext
27059cat >>conftest.$ac_ext <<_ACEOF
27060/* end confdefs.h. */
27061$ac_includes_default
27062#include <GL/gl.h>
27063_ACEOF
27064rm -f conftest.$ac_objext
27065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27066 (eval $ac_compile) 2>conftest.er1
a848cd7e 27067 ac_status=$?
ac1cb8d3
VS
27068 grep -v '^ *+' conftest.er1 >conftest.err
27069 rm -f conftest.er1
27070 cat conftest.err >&5
a848cd7e
SC
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } &&
4d4ff94c 27073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075 (eval $ac_try) 2>&5
27076 ac_status=$?
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; } &&
27079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; }; then
27085 ac_header_compiler=yes
27086else
27087 echo "$as_me: failed program was:" >&5
27088sed 's/^/| /' conftest.$ac_ext >&5
27089
27090ac_header_compiler=no
27091fi
ac1cb8d3 27092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27094echo "${ECHO_T}$ac_header_compiler" >&6
27095
27096# Is the header present?
27097echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27098echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27099cat >conftest.$ac_ext <<_ACEOF
27100/* confdefs.h. */
27101_ACEOF
27102cat confdefs.h >>conftest.$ac_ext
27103cat >>conftest.$ac_ext <<_ACEOF
27104/* end confdefs.h. */
27105#include <GL/gl.h>
27106_ACEOF
27107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } >/dev/null; then
27115 if test -s conftest.err; then
27116 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27118 else
27119 ac_cpp_err=
27120 fi
27121else
27122 ac_cpp_err=yes
27123fi
27124if test -z "$ac_cpp_err"; then
27125 ac_header_preproc=yes
27126else
27127 echo "$as_me: failed program was:" >&5
27128sed 's/^/| /' conftest.$ac_ext >&5
27129
27130 ac_header_preproc=no
27131fi
27132rm -f conftest.err conftest.$ac_ext
27133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27134echo "${ECHO_T}$ac_header_preproc" >&6
27135
27136# So? What about this header?
ac1cb8d3
VS
27137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27138 yes:no: )
a848cd7e
SC
27139 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27140echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27141 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27142echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27143 ac_header_preproc=yes
a848cd7e 27144 ;;
ac1cb8d3 27145 no:yes:* )
a848cd7e
SC
27146 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27147echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27148 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27149echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27150 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27151echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27152 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27153echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27154 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27155echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27156 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27157echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27158 (
27159 cat <<\_ASBOX
ac1cb8d3
VS
27160## ----------------------------------------- ##
27161## Report this to wx-dev@lists.wxwidgets.org ##
27162## ----------------------------------------- ##
a848cd7e
SC
27163_ASBOX
27164 ) |
27165 sed "s/^/$as_me: WARNING: /" >&2
27166 ;;
27167esac
27168echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27169echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27170if test "${ac_cv_header_GL_gl_h+set}" = set; then
27171 echo $ECHO_N "(cached) $ECHO_C" >&6
27172else
27173 ac_cv_header_GL_gl_h=$ac_header_preproc
27174fi
27175echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27176echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27177
27178fi
27179if test $ac_cv_header_GL_gl_h = yes; then
27180
27181 found_gl=0
27182
27183 echo "$as_me:$LINENO: checking for -lGL" >&5
27184echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27185
27186ac_find_libraries=
27187for ac_dir in $SEARCH_LIB /usr/lib;
27188 do
27189 for ac_extension in a so sl dylib; do
27190 if test -f "$ac_dir/libGL.$ac_extension"; then
27191 ac_find_libraries=$ac_dir
27192 break 2
27193 fi
27194 done
27195 done
27196
27197 if test "$ac_find_libraries" != "" ; then
27198
27199 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27200 result=$?
27201 if test $result = 0; then
27202 ac_path_to_link=""
27203 else
27204 ac_path_to_link=" -L$ac_find_libraries"
27205 fi
27206
27207 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27208 LDFLAGS_GL="$ac_path_to_link"
27209 fi
27210
27211
27212ac_find_libraries=
27213for ac_dir in $SEARCH_LIB /usr/lib;
27214 do
27215 for ac_extension in a so sl dylib; do
27216 if test -f "$ac_dir/libGLU.$ac_extension"; then
27217 ac_find_libraries=$ac_dir
27218 break 2
27219 fi
27220 done
27221 done
27222
27223 if test "$ac_find_libraries" != "" ; then
27224
27225 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27226 result=$?
27227 if test $result = 0; then
27228 ac_path_to_link=""
27229 else
27230 ac_path_to_link=" -L$ac_find_libraries"
27231 fi
27232
27233 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27234 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27235 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27236 fi
27237
27238 found_gl=1
27239 OPENGL_LIBS="-lGL -lGLU"
27240 echo "$as_me:$LINENO: result: yes" >&5
27241echo "${ECHO_T}yes" >&6
27242 fi
27243 fi
27244
27245 if test "$found_gl" != 1; then
27246 echo "$as_me:$LINENO: result: no" >&5
27247echo "${ECHO_T}no" >&6
27248 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27249echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27250
27251ac_find_libraries=
27252for ac_dir in $SEARCH_LIB /usr/lib;
27253 do
27254 for ac_extension in a so sl dylib; do
27255 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27256 ac_find_libraries=$ac_dir
27257 break 2
27258 fi
27259 done
27260 done
27261
27262 if test "$ac_find_libraries" != "" ; then
27263
27264 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27265 result=$?
27266 if test $result = 0; then
27267 ac_path_to_link=""
27268 else
27269 ac_path_to_link=" -L$ac_find_libraries"
27270 fi
27271
27272 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27273 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27274 echo "$as_me:$LINENO: result: yes" >&5
27275echo "${ECHO_T}yes" >&6
27276 else
27277 echo "$as_me:$LINENO: result: no" >&5
27278echo "${ECHO_T}no" >&6
27279 fi
27280 fi
27281
27282fi
27283
27284
27285
27286 if test "x$OPENGL_LIBS" = "x"; then
27287 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27288echo "$as_me: error: OpenGL libraries not available" >&2;}
27289 { (exit 1); exit 1; }; }
27290 fi
27291 fi
27292
27293 if test "$wxUSE_OPENGL" = "yes"; then
27294 USE_OPENGL=1
27295 cat >>confdefs.h <<\_ACEOF
27296#define wxUSE_OPENGL 1
27297_ACEOF
27298
27299 cat >>confdefs.h <<\_ACEOF
27300#define wxUSE_GLCANVAS 1
27301_ACEOF
27302
27303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27304 fi
27305fi
27306
27307if test -z "$TOOLKIT_VPATH" ; then
27308 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27309fi
27310
27311if test -n "$TOOLKIT" ; then
27312 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27313fi
27314
27315UNICODE=0
27316lib_unicode_suffix=
48112931 27317wxconfig_filename_unicode="ansi"
a848cd7e
SC
27318if test "$wxUSE_UNICODE" = "yes"; then
27319 lib_unicode_suffix=u
48112931 27320 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27321 UNICODE=1
27322fi
27323
27324lib_debug_suffix=
48112931 27325wxconfig_filename_debug="release"
a848cd7e
SC
27326DEBUG_FLAG=0
27327if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27328 lib_debug_suffix=d
48112931 27329 wxconfig_filename_debug="debug"
a848cd7e
SC
27330 DEBUG_FLAG=1
27331fi
27332
27333DEBUG_INFO=0
27334if test "$wxUSE_DEBUG_INFO" = "yes"; then
27335 DEBUG_INFO=1
27336fi
27337
27338WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27339
27340TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27341TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27342
48112931
VS
27343WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27344
a848cd7e
SC
27345if test "$cross_compiling" = "yes"; then
27346 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27347 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27348 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27349 HOST_SUFFIX="-${host_alias}"
27350fi
27351
27352WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27353WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27354WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27355WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27356
27357WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27358WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27359
27360WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27361WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27362WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27363WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27364
27365case "${host}" in
27366 *-*-cygwin* | *-*-mingw32* )
27367 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27368 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27369 ;;
27370
27371 *-*-darwin* )
27372
27373 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27374 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27375
27376 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27377 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27378 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27379 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27380
27381 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27382 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27383 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27384 fi
27385 ;;
27386esac
27387
27388WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27389WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27390
27391WXCONFIG_LIBS="-l${WX_LIBRARY}"
27392WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27393
27394if test "$wxUSE_OPENGL" = "yes"; then
27395 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27396 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27397fi
27398
27399
27400
27401if test "$wxUSE_SHARED" = "yes"; then
27402 case "${host}" in
27403 *-pc-msdosdjgpp )
27404 wxUSE_SHARED=no
27405 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27406echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27407 ;;
27408 esac
27409fi
27410
27411SHARED=0
27412if test "$wxUSE_SHARED" = "yes"; then
27413 SHARED=1
27414
27415
27416 found_versioning=no
27417
27418
27419 if test $found_versioning = no ; then
27420 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27421echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27422if test "${wx_cv_version_script+set}" = set; then
27423 echo $ECHO_N "(cached) $ECHO_C" >&6
27424else
27425
27426 echo "VER_1 { *; };" >conftest.sym
27427 echo "int main() { return 0; }" >conftest.cpp
27428
27429 if { ac_try='
27430 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27431 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27434 ac_status=$?
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; } ; then
27437 if test -s conftest.stderr ; then
27438 wx_cv_version_script=no
27439 else
27440 wx_cv_version_script=yes
27441 fi
27442 else
27443 wx_cv_version_script=no
27444 fi
27445 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27446
27447fi
27448echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27449echo "${ECHO_T}$wx_cv_version_script" >&6
27450 if test $wx_cv_version_script = yes ; then
27451 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27452 fi
27453 fi
27454
27455
27456 case "${host}" in
27457 *-*-linux* | *-*-gnu* )
27458 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27459 ;;
27460
27461 *-*-solaris2* )
27462 if test "$GCC" = yes ; then
27463 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27464
27465 saveLdflags="$LDFLAGS"
27466 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27467 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27468echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27469 cat >conftest.$ac_ext <<_ACEOF
27470/* confdefs.h. */
27471_ACEOF
27472cat confdefs.h >>conftest.$ac_ext
27473cat >>conftest.$ac_ext <<_ACEOF
27474/* end confdefs.h. */
27475
27476int
27477main ()
27478{
27479
27480 ;
27481 return 0;
27482}
27483_ACEOF
27484rm -f conftest.$ac_objext conftest$ac_exeext
27485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27486 (eval $ac_link) 2>conftest.er1
a848cd7e 27487 ac_status=$?
ac1cb8d3
VS
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
a848cd7e
SC
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } &&
4d4ff94c 27493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495 (eval $ac_try) 2>&5
27496 ac_status=$?
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505
27506 echo "$as_me:$LINENO: result: yes" >&5
27507echo "${ECHO_T}yes" >&6
27508 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27509
27510else
27511 echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
27514
27515 echo "$as_me:$LINENO: result: no" >&5
27516echo "${ECHO_T}no" >&6
27517 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27518echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27519 LDFLAGS="$saveLdflags -Wl,-R,/"
27520 cat >conftest.$ac_ext <<_ACEOF
27521/* confdefs.h. */
27522_ACEOF
27523cat confdefs.h >>conftest.$ac_ext
27524cat >>conftest.$ac_ext <<_ACEOF
27525/* end confdefs.h. */
27526
27527int
27528main ()
27529{
27530
27531 ;
27532 return 0;
27533}
27534_ACEOF
27535rm -f conftest.$ac_objext conftest$ac_exeext
27536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27537 (eval $ac_link) 2>conftest.er1
a848cd7e 27538 ac_status=$?
ac1cb8d3
VS
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
a848cd7e
SC
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } &&
4d4ff94c 27544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27546 (eval $ac_try) 2>&5
27547 ac_status=$?
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); }; } &&
27550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27552 (eval $ac_try) 2>&5
27553 ac_status=$?
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); }; }; then
27556
27557 echo "$as_me:$LINENO: result: yes" >&5
27558echo "${ECHO_T}yes" >&6
27559 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27560else
27561 echo "$as_me: failed program was:" >&5
27562sed 's/^/| /' conftest.$ac_ext >&5
27563
27564
27565 echo "$as_me:$LINENO: result: no" >&5
27566echo "${ECHO_T}no" >&6
27567
27568fi
ac1cb8d3
VS
27569rm -f conftest.err conftest.$ac_objext \
27570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27571
27572fi
ac1cb8d3
VS
27573rm -f conftest.err conftest.$ac_objext \
27574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27575 LDFLAGS="$saveLdflags"
27576 else
27577 SHARED_LD="${CXX} -G -o"
27578 PIC_FLAG="-KPIC"
27579 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27580 fi
27581 ;;
27582
27583 powerpc-*-darwin* )
27584 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27585 cat <<EOF >change-install-names
27586#!/bin/sh
27587libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27588inst_cmd="install_name_tool "
27589for i in \${libnames} ; do
27590 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27591done
27592\${inst_cmd} \${3}
27593EOF
27594 chmod +x change-install-names
27595 ;;
27596
27597 *-*-cygwin* | *-*-mingw32* )
27598 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27599 ;;
27600
27601 esac
27602
27603 if test "x$WX_TARGET_LIBRARY" = "x"; then
27604 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27605 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27606 fi
27607
27608 WX_TARGET_LIBRARY_TYPE="so"
27609 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27610fi
27611
27612if test "$wxUSE_SHARED" = "no"; then
27613
27614 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27615 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27616 fi
27617
27618 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27619 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27620 fi
27621
27622 if test "$wxUSE_OPENGL" = "yes"; then
27623 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27624 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27625 else
27626 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27627 fi
27628
27629 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27630 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27631
27632 WX_TARGET_LIBRARY_TYPE="a"
27633 INSTALL_LIBRARY='$(INSTALL_DATA)'
27634
27635 STATIC_FLAG="yes"
27636else
27637 STATIC_FLAG="no"
27638fi
27639
27640if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27641 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27642 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27643 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27644
27645 # Extract the first word of "Rez", so it can be a program name with args.
27646set dummy Rez; ac_word=$2
27647echo "$as_me:$LINENO: checking for $ac_word" >&5
27648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27649if test "${ac_cv_prog_RESCOMP+set}" = set; then
27650 echo $ECHO_N "(cached) $ECHO_C" >&6
27651else
27652 if test -n "$RESCOMP"; then
27653 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27654else
27655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27656for as_dir in $PATH
27657do
27658 IFS=$as_save_IFS
27659 test -z "$as_dir" && as_dir=.
27660 for ac_exec_ext in '' $ac_executable_extensions; do
27661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27662 ac_cv_prog_RESCOMP="Rez"
27663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27664 break 2
27665 fi
27666done
27667done
27668
27669 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27670fi
27671fi
27672RESCOMP=$ac_cv_prog_RESCOMP
27673if test -n "$RESCOMP"; then
27674 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27675echo "${ECHO_T}$RESCOMP" >&6
27676else
27677 echo "$as_me:$LINENO: result: no" >&5
27678echo "${ECHO_T}no" >&6
27679fi
27680
27681 # Extract the first word of "DeRez", so it can be a program name with args.
27682set dummy DeRez; ac_word=$2
27683echo "$as_me:$LINENO: checking for $ac_word" >&5
27684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27685if test "${ac_cv_prog_DEREZ+set}" = set; then
27686 echo $ECHO_N "(cached) $ECHO_C" >&6
27687else
27688 if test -n "$DEREZ"; then
27689 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27690else
27691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27692for as_dir in $PATH
27693do
27694 IFS=$as_save_IFS
27695 test -z "$as_dir" && as_dir=.
27696 for ac_exec_ext in '' $ac_executable_extensions; do
27697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27698 ac_cv_prog_DEREZ="DeRez"
27699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27700 break 2
27701 fi
27702done
27703done
27704
27705 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27706fi
27707fi
27708DEREZ=$ac_cv_prog_DEREZ
27709if test -n "$DEREZ"; then
27710 echo "$as_me:$LINENO: result: $DEREZ" >&5
27711echo "${ECHO_T}$DEREZ" >&6
27712else
27713 echo "$as_me:$LINENO: result: no" >&5
27714echo "${ECHO_T}no" >&6
27715fi
27716
27717 # Extract the first word of "SetFile", so it can be a program name with args.
27718set dummy SetFile; ac_word=$2
27719echo "$as_me:$LINENO: checking for $ac_word" >&5
27720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27721if test "${ac_cv_prog_SETFILE+set}" = set; then
27722 echo $ECHO_N "(cached) $ECHO_C" >&6
27723else
27724 if test -n "$SETFILE"; then
27725 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27726else
27727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27728for as_dir in $PATH
27729do
27730 IFS=$as_save_IFS
27731 test -z "$as_dir" && as_dir=.
27732 for ac_exec_ext in '' $ac_executable_extensions; do
27733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27734 ac_cv_prog_SETFILE="SetFile"
27735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27736 break 2
27737 fi
27738done
27739done
27740
27741 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27742fi
27743fi
27744SETFILE=$ac_cv_prog_SETFILE
27745if test -n "$SETFILE"; then
27746 echo "$as_me:$LINENO: result: $SETFILE" >&5
27747echo "${ECHO_T}$SETFILE" >&6
27748else
27749 echo "$as_me:$LINENO: result: no" >&5
27750echo "${ECHO_T}no" >&6
27751fi
27752
27753
27754 MACSETFILE="\$(SETFILE)"
27755
27756 if test "$wxUSE_MAC" = 1; then
27757 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27758
27759 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27760 else
27761 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27762 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27763 fi
27764else
27765 MACSETFILE="@#"
27766 MACRESWXCONFIG="#"
27767
27768 if test "$wxUSE_PM" = 1; then
27769 MACRESCOMP="emxbind -ep"
27770 else
27771 MACRESCOMP="@#"
27772 fi
27773fi
27774
27775
27776
27777echo "$as_me:$LINENO: checking for mode_t" >&5
27778echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27779if test "${ac_cv_type_mode_t+set}" = set; then
27780 echo $ECHO_N "(cached) $ECHO_C" >&6
27781else
27782 cat >conftest.$ac_ext <<_ACEOF
27783/* confdefs.h. */
27784_ACEOF
27785cat confdefs.h >>conftest.$ac_ext
27786cat >>conftest.$ac_ext <<_ACEOF
27787/* end confdefs.h. */
27788$ac_includes_default
27789int
27790main ()
27791{
27792if ((mode_t *) 0)
27793 return 0;
27794if (sizeof (mode_t))
27795 return 0;
27796 ;
27797 return 0;
27798}
27799_ACEOF
27800rm -f conftest.$ac_objext
27801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27802 (eval $ac_compile) 2>conftest.er1
a848cd7e 27803 ac_status=$?
ac1cb8d3
VS
27804 grep -v '^ *+' conftest.er1 >conftest.err
27805 rm -f conftest.er1
27806 cat conftest.err >&5
a848cd7e
SC
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
4d4ff94c 27809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27812 ac_status=$?
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; } &&
27815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
27821 ac_cv_type_mode_t=yes
27822else
27823 echo "$as_me: failed program was:" >&5
27824sed 's/^/| /' conftest.$ac_ext >&5
27825
27826ac_cv_type_mode_t=no
27827fi
ac1cb8d3 27828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27829fi
27830echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27831echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27832if test $ac_cv_type_mode_t = yes; then
27833 :
27834else
27835
27836cat >>confdefs.h <<_ACEOF
27837#define mode_t int
27838_ACEOF
27839
27840fi
27841
27842echo "$as_me:$LINENO: checking for off_t" >&5
27843echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27844if test "${ac_cv_type_off_t+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27846else
27847 cat >conftest.$ac_ext <<_ACEOF
27848/* confdefs.h. */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h. */
27853$ac_includes_default
27854int
27855main ()
27856{
27857if ((off_t *) 0)
27858 return 0;
27859if (sizeof (off_t))
27860 return 0;
27861 ;
27862 return 0;
27863}
27864_ACEOF
27865rm -f conftest.$ac_objext
27866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27867 (eval $ac_compile) 2>conftest.er1
a848cd7e 27868 ac_status=$?
ac1cb8d3
VS
27869 grep -v '^ *+' conftest.er1 >conftest.err
27870 rm -f conftest.er1
27871 cat conftest.err >&5
a848cd7e
SC
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); } &&
4d4ff94c 27874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; } &&
27880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; }; then
27886 ac_cv_type_off_t=yes
27887else
27888 echo "$as_me: failed program was:" >&5
27889sed 's/^/| /' conftest.$ac_ext >&5
27890
27891ac_cv_type_off_t=no
27892fi
ac1cb8d3 27893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27894fi
27895echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27896echo "${ECHO_T}$ac_cv_type_off_t" >&6
27897if test $ac_cv_type_off_t = yes; then
27898 :
27899else
27900
27901cat >>confdefs.h <<_ACEOF
27902#define off_t long
27903_ACEOF
27904
27905fi
27906
27907echo "$as_me:$LINENO: checking for pid_t" >&5
27908echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27909if test "${ac_cv_type_pid_t+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27911else
27912 cat >conftest.$ac_ext <<_ACEOF
27913/* confdefs.h. */
27914_ACEOF
27915cat confdefs.h >>conftest.$ac_ext
27916cat >>conftest.$ac_ext <<_ACEOF
27917/* end confdefs.h. */
27918$ac_includes_default
27919int
27920main ()
27921{
27922if ((pid_t *) 0)
27923 return 0;
27924if (sizeof (pid_t))
27925 return 0;
27926 ;
27927 return 0;
27928}
27929_ACEOF
27930rm -f conftest.$ac_objext
27931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27932 (eval $ac_compile) 2>conftest.er1
a848cd7e 27933 ac_status=$?
ac1cb8d3
VS
27934 grep -v '^ *+' conftest.er1 >conftest.err
27935 rm -f conftest.er1
27936 cat conftest.err >&5
a848cd7e
SC
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); } &&
4d4ff94c 27939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27941 (eval $ac_try) 2>&5
27942 ac_status=$?
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; } &&
27945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; }; then
27951 ac_cv_type_pid_t=yes
27952else
27953 echo "$as_me: failed program was:" >&5
27954sed 's/^/| /' conftest.$ac_ext >&5
27955
27956ac_cv_type_pid_t=no
27957fi
ac1cb8d3 27958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27959fi
27960echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27961echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27962if test $ac_cv_type_pid_t = yes; then
27963 :
27964else
27965
27966cat >>confdefs.h <<_ACEOF
27967#define pid_t int
27968_ACEOF
27969
27970fi
27971
27972echo "$as_me:$LINENO: checking for size_t" >&5
27973echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27974if test "${ac_cv_type_size_t+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976else
27977 cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
27983$ac_includes_default
27984int
27985main ()
27986{
27987if ((size_t *) 0)
27988 return 0;
27989if (sizeof (size_t))
27990 return 0;
27991 ;
27992 return 0;
27993}
27994_ACEOF
27995rm -f conftest.$ac_objext
27996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27997 (eval $ac_compile) 2>conftest.er1
a848cd7e 27998 ac_status=$?
ac1cb8d3
VS
27999 grep -v '^ *+' conftest.er1 >conftest.err
28000 rm -f conftest.er1
28001 cat conftest.err >&5
a848cd7e
SC
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } &&
4d4ff94c 28004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; } &&
28010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 ac_cv_type_size_t=yes
28017else
28018 echo "$as_me: failed program was:" >&5
28019sed 's/^/| /' conftest.$ac_ext >&5
28020
28021ac_cv_type_size_t=no
28022fi
ac1cb8d3 28023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28024fi
28025echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28026echo "${ECHO_T}$ac_cv_type_size_t" >&6
28027if test $ac_cv_type_size_t = yes; then
28028 :
28029else
28030
28031cat >>confdefs.h <<_ACEOF
28032#define size_t unsigned
28033_ACEOF
28034
28035fi
28036
28037echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28038echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28039if test "${ac_cv_type_uid_t+set}" = set; then
28040 echo $ECHO_N "(cached) $ECHO_C" >&6
28041else
28042 cat >conftest.$ac_ext <<_ACEOF
28043/* confdefs.h. */
28044_ACEOF
28045cat confdefs.h >>conftest.$ac_ext
28046cat >>conftest.$ac_ext <<_ACEOF
28047/* end confdefs.h. */
28048#include <sys/types.h>
28049
28050_ACEOF
28051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28052 $EGREP "uid_t" >/dev/null 2>&1; then
28053 ac_cv_type_uid_t=yes
28054else
28055 ac_cv_type_uid_t=no
28056fi
28057rm -f conftest*
28058
28059fi
28060echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28061echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28062if test $ac_cv_type_uid_t = no; then
28063
28064cat >>confdefs.h <<\_ACEOF
28065#define uid_t int
28066_ACEOF
28067
28068
28069cat >>confdefs.h <<\_ACEOF
28070#define gid_t int
28071_ACEOF
28072
28073fi
28074
28075
28076
28077
28078ac_ext=cc
28079ac_cpp='$CXXCPP $CPPFLAGS'
28080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28083
28084echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28085echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28086if test "${wx_cv_size_t_is_uint+set}" = set; then
28087 echo $ECHO_N "(cached) $ECHO_C" >&6
28088else
28089
28090 cat >conftest.$ac_ext <<_ACEOF
28091/* confdefs.h. */
28092_ACEOF
28093cat confdefs.h >>conftest.$ac_ext
28094cat >>conftest.$ac_ext <<_ACEOF
28095/* end confdefs.h. */
28096#include <stddef.h>
28097int
28098main ()
28099{
28100
28101 return 0; }
28102
28103 struct Foo { void foo(size_t); void foo(unsigned int); };
28104
28105 int bar() {
28106
28107 ;
28108 return 0;
28109}
28110_ACEOF
28111rm -f conftest.$ac_objext
28112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28113 (eval $ac_compile) 2>conftest.er1
a848cd7e 28114 ac_status=$?
ac1cb8d3
VS
28115 grep -v '^ *+' conftest.er1 >conftest.err
28116 rm -f conftest.er1
28117 cat conftest.err >&5
a848cd7e
SC
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } &&
4d4ff94c 28120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28123 ac_status=$?
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; } &&
28126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128 (eval $ac_try) 2>&5
28129 ac_status=$?
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; }; then
28132 wx_cv_size_t_is_uint=no
28133else
28134 echo "$as_me: failed program was:" >&5
28135sed 's/^/| /' conftest.$ac_ext >&5
28136
28137wx_cv_size_t_is_uint=yes
28138
28139fi
ac1cb8d3 28140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28141
28142
28143fi
28144echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28145echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28146
28147if test "$wx_cv_size_t_is_uint" = "yes"; then
28148 cat >>confdefs.h <<\_ACEOF
28149#define wxSIZE_T_IS_UINT 1
28150_ACEOF
28151
28152else
28153 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28154echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28155if test "${wx_cv_size_t_is_ulong+set}" = set; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28157else
28158 cat >conftest.$ac_ext <<_ACEOF
28159/* confdefs.h. */
28160_ACEOF
28161cat confdefs.h >>conftest.$ac_ext
28162cat >>conftest.$ac_ext <<_ACEOF
28163/* end confdefs.h. */
28164#include <stddef.h>
28165int
28166main ()
28167{
28168
28169 return 0; }
28170
28171 struct Foo { void foo(size_t); void foo(unsigned long); };
28172
28173 int bar() {
28174
28175 ;
28176 return 0;
28177}
28178_ACEOF
28179rm -f conftest.$ac_objext
28180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28181 (eval $ac_compile) 2>conftest.er1
a848cd7e 28182 ac_status=$?
ac1cb8d3
VS
28183 grep -v '^ *+' conftest.er1 >conftest.err
28184 rm -f conftest.er1
28185 cat conftest.err >&5
a848cd7e
SC
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); } &&
4d4ff94c 28188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190 (eval $ac_try) 2>&5
28191 ac_status=$?
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; } &&
28194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 (eval $ac_try) 2>&5
28197 ac_status=$?
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
28200 wx_cv_size_t_is_ulong=no
28201else
28202 echo "$as_me: failed program was:" >&5
28203sed 's/^/| /' conftest.$ac_ext >&5
28204
28205wx_cv_size_t_is_ulong=yes
28206
28207fi
ac1cb8d3 28208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28209
28210fi
28211echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28212echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28213
28214 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28215 cat >>confdefs.h <<\_ACEOF
28216#define wxSIZE_T_IS_ULONG 1
28217_ACEOF
28218
28219 fi
28220fi
28221
28222ac_ext=c
28223ac_cpp='$CPP $CPPFLAGS'
28224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28226ac_compiler_gnu=$ac_cv_c_compiler_gnu
28227
28228
28229
28230echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28231echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28232if test "${wx_cv_struct_pw_gecos+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28234else
28235
28236 cat >conftest.$ac_ext <<_ACEOF
28237/* confdefs.h. */
28238_ACEOF
28239cat confdefs.h >>conftest.$ac_ext
28240cat >>conftest.$ac_ext <<_ACEOF
28241/* end confdefs.h. */
28242#include <pwd.h>
28243int
28244main ()
28245{
28246
28247 char *p;
28248 struct passwd *pw;
28249 p = pw->pw_gecos;
28250
28251 ;
28252 return 0;
28253}
28254_ACEOF
28255rm -f conftest.$ac_objext
28256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28257 (eval $ac_compile) 2>conftest.er1
a848cd7e 28258 ac_status=$?
ac1cb8d3
VS
28259 grep -v '^ *+' conftest.er1 >conftest.err
28260 rm -f conftest.er1
28261 cat conftest.err >&5
a848cd7e
SC
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } &&
4d4ff94c 28264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28267 ac_status=$?
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; } &&
28270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272 (eval $ac_try) 2>&5
28273 ac_status=$?
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; }; then
28276
28277 wx_cv_struct_pw_gecos=yes
28278
28279else
28280 echo "$as_me: failed program was:" >&5
28281sed 's/^/| /' conftest.$ac_ext >&5
28282
28283
28284 wx_cv_struct_pw_gecos=no
28285
28286
28287fi
ac1cb8d3 28288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28289
28290
28291fi
28292echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28293echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28294
28295if test "$wx_cv_struct_pw_gecos" = "yes"; then
28296 cat >>confdefs.h <<\_ACEOF
28297#define HAVE_PW_GECOS 1
28298_ACEOF
28299
28300fi
28301
28302
28303if test "$wx_cv_sizeof_wchar_t" != "0"; then
28304 cat >>confdefs.h <<\_ACEOF
28305#define wxUSE_WCHAR_T 1
28306_ACEOF
28307
28308
28309 WCSLEN_FOUND=0
28310 WCHAR_LINK=
28311
28312for ac_func in wcslen
28313do
28314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28315echo "$as_me:$LINENO: checking for $ac_func" >&5
28316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28317if eval "test \"\${$as_ac_var+set}\" = set"; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28319else
28320 cat >conftest.$ac_ext <<_ACEOF
28321/* confdefs.h. */
28322_ACEOF
28323cat confdefs.h >>conftest.$ac_ext
28324cat >>conftest.$ac_ext <<_ACEOF
28325/* end confdefs.h. */
ac1cb8d3
VS
28326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28328#define $ac_func innocuous_$ac_func
28329
a848cd7e
SC
28330/* System header to define __stub macros and hopefully few prototypes,
28331 which can conflict with char $ac_func (); below.
28332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28333 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28334
a848cd7e
SC
28335#ifdef __STDC__
28336# include <limits.h>
28337#else
28338# include <assert.h>
28339#endif
ac1cb8d3
VS
28340
28341#undef $ac_func
28342
a848cd7e
SC
28343/* Override any gcc2 internal prototype to avoid an error. */
28344#ifdef __cplusplus
28345extern "C"
28346{
28347#endif
28348/* We use char because int might match the return type of a gcc2
28349 builtin and then its argument prototype would still apply. */
28350char $ac_func ();
28351/* The GNU C library defines this for functions which it implements
28352 to always fail with ENOSYS. Some functions are actually named
28353 something starting with __ and the normal name is an alias. */
28354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28355choke me
28356#else
28357char (*f) () = $ac_func;
28358#endif
28359#ifdef __cplusplus
28360}
28361#endif
28362
28363int
28364main ()
28365{
28366return f != $ac_func;
28367 ;
28368 return 0;
28369}
28370_ACEOF
28371rm -f conftest.$ac_objext conftest$ac_exeext
28372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28373 (eval $ac_link) 2>conftest.er1
a848cd7e 28374 ac_status=$?
ac1cb8d3
VS
28375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
a848cd7e
SC
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
4d4ff94c 28380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; } &&
28386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; }; then
28392 eval "$as_ac_var=yes"
28393else
28394 echo "$as_me: failed program was:" >&5
28395sed 's/^/| /' conftest.$ac_ext >&5
28396
28397eval "$as_ac_var=no"
28398fi
ac1cb8d3
VS
28399rm -f conftest.err conftest.$ac_objext \
28400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28401fi
28402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28404if test `eval echo '${'$as_ac_var'}'` = yes; then
28405 cat >>confdefs.h <<_ACEOF
28406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28407_ACEOF
28408 WCSLEN_FOUND=1
28409fi
28410done
28411
28412
28413 if test "$WCSLEN_FOUND" = 0; then
28414 if test "$TOOLKIT" = "MSW"; then
28415 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28416echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28417if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420 ac_check_lib_save_LIBS=$LIBS
28421LIBS="-lmsvcrt $LIBS"
28422cat >conftest.$ac_ext <<_ACEOF
28423/* confdefs.h. */
28424_ACEOF
28425cat confdefs.h >>conftest.$ac_ext
28426cat >>conftest.$ac_ext <<_ACEOF
28427/* end confdefs.h. */
28428
28429/* Override any gcc2 internal prototype to avoid an error. */
28430#ifdef __cplusplus
28431extern "C"
28432#endif
28433/* We use char because int might match the return type of a gcc2
28434 builtin and then its argument prototype would still apply. */
28435char wcslen ();
28436int
28437main ()
28438{
28439wcslen ();
28440 ;
28441 return 0;
28442}
28443_ACEOF
28444rm -f conftest.$ac_objext conftest$ac_exeext
28445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28446 (eval $ac_link) 2>conftest.er1
a848cd7e 28447 ac_status=$?
ac1cb8d3
VS
28448 grep -v '^ *+' conftest.er1 >conftest.err
28449 rm -f conftest.er1
28450 cat conftest.err >&5
a848cd7e
SC
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } &&
4d4ff94c 28453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; } &&
28459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; }; then
28465 ac_cv_lib_msvcrt_wcslen=yes
28466else
28467 echo "$as_me: failed program was:" >&5
28468sed 's/^/| /' conftest.$ac_ext >&5
28469
28470ac_cv_lib_msvcrt_wcslen=no
28471fi
ac1cb8d3
VS
28472rm -f conftest.err conftest.$ac_objext \
28473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28474LIBS=$ac_check_lib_save_LIBS
28475fi
28476echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28477echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28478if test $ac_cv_lib_msvcrt_wcslen = yes; then
28479 WCHAR_OK=1
28480fi
28481
28482 else
28483 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28484echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28485if test "${ac_cv_lib_w_wcslen+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28487else
28488 ac_check_lib_save_LIBS=$LIBS
28489LIBS="-lw $LIBS"
28490cat >conftest.$ac_ext <<_ACEOF
28491/* confdefs.h. */
28492_ACEOF
28493cat confdefs.h >>conftest.$ac_ext
28494cat >>conftest.$ac_ext <<_ACEOF
28495/* end confdefs.h. */
28496
28497/* Override any gcc2 internal prototype to avoid an error. */
28498#ifdef __cplusplus
28499extern "C"
28500#endif
28501/* We use char because int might match the return type of a gcc2
28502 builtin and then its argument prototype would still apply. */
28503char wcslen ();
28504int
28505main ()
28506{
28507wcslen ();
28508 ;
28509 return 0;
28510}
28511_ACEOF
28512rm -f conftest.$ac_objext conftest$ac_exeext
28513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28514 (eval $ac_link) 2>conftest.er1
a848cd7e 28515 ac_status=$?
ac1cb8d3
VS
28516 grep -v '^ *+' conftest.er1 >conftest.err
28517 rm -f conftest.er1
28518 cat conftest.err >&5
a848cd7e
SC
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } &&
4d4ff94c 28521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523 (eval $ac_try) 2>&5
28524 ac_status=$?
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); }; } &&
28527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; }; then
28533 ac_cv_lib_w_wcslen=yes
28534else
28535 echo "$as_me: failed program was:" >&5
28536sed 's/^/| /' conftest.$ac_ext >&5
28537
28538ac_cv_lib_w_wcslen=no
28539fi
ac1cb8d3
VS
28540rm -f conftest.err conftest.$ac_objext \
28541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28542LIBS=$ac_check_lib_save_LIBS
28543fi
28544echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28545echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28546if test $ac_cv_lib_w_wcslen = yes; then
28547
28548 WCHAR_LINK=" -lw"
28549 WCSLEN_FOUND=1
28550
28551fi
28552
28553 fi
28554 fi
28555
28556 if test "$WCSLEN_FOUND" = 1; then
28557 cat >>confdefs.h <<\_ACEOF
28558#define HAVE_WCSLEN 1
28559_ACEOF
28560
28561 fi
28562
473276a9
VS
28563 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28564 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28565 fi
28566
a848cd7e
SC
28567
28568for ac_func in wcsrtombs
28569do
28570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28571echo "$as_me:$LINENO: checking for $ac_func" >&5
28572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28573if eval "test \"\${$as_ac_var+set}\" = set"; then
28574 echo $ECHO_N "(cached) $ECHO_C" >&6
28575else
28576 cat >conftest.$ac_ext <<_ACEOF
28577/* confdefs.h. */
28578_ACEOF
28579cat confdefs.h >>conftest.$ac_ext
28580cat >>conftest.$ac_ext <<_ACEOF
28581/* end confdefs.h. */
ac1cb8d3
VS
28582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28584#define $ac_func innocuous_$ac_func
28585
a848cd7e
SC
28586/* System header to define __stub macros and hopefully few prototypes,
28587 which can conflict with char $ac_func (); below.
28588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28589 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28590
a848cd7e
SC
28591#ifdef __STDC__
28592# include <limits.h>
28593#else
28594# include <assert.h>
28595#endif
ac1cb8d3
VS
28596
28597#undef $ac_func
28598
a848cd7e
SC
28599/* Override any gcc2 internal prototype to avoid an error. */
28600#ifdef __cplusplus
28601extern "C"
28602{
28603#endif
28604/* We use char because int might match the return type of a gcc2
28605 builtin and then its argument prototype would still apply. */
28606char $ac_func ();
28607/* The GNU C library defines this for functions which it implements
28608 to always fail with ENOSYS. Some functions are actually named
28609 something starting with __ and the normal name is an alias. */
28610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28611choke me
28612#else
28613char (*f) () = $ac_func;
28614#endif
28615#ifdef __cplusplus
28616}
28617#endif
28618
28619int
28620main ()
28621{
28622return f != $ac_func;
28623 ;
28624 return 0;
28625}
28626_ACEOF
28627rm -f conftest.$ac_objext conftest$ac_exeext
28628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28629 (eval $ac_link) 2>conftest.er1
a848cd7e 28630 ac_status=$?
ac1cb8d3
VS
28631 grep -v '^ *+' conftest.er1 >conftest.err
28632 rm -f conftest.er1
28633 cat conftest.err >&5
a848cd7e
SC
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); } &&
4d4ff94c 28636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648 eval "$as_ac_var=yes"
28649else
28650 echo "$as_me: failed program was:" >&5
28651sed 's/^/| /' conftest.$ac_ext >&5
28652
28653eval "$as_ac_var=no"
28654fi
ac1cb8d3
VS
28655rm -f conftest.err conftest.$ac_objext \
28656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28657fi
28658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28660if test `eval echo '${'$as_ac_var'}'` = yes; then
28661 cat >>confdefs.h <<_ACEOF
28662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28663_ACEOF
28664
28665fi
28666done
28667
28668else
28669 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28670echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28671fi
28672
28673
28674
28675ac_ext=cc
28676ac_cpp='$CXXCPP $CPPFLAGS'
28677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28680
28681
28682
28683for ac_func in vsnprintf
28684do
28685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28686echo "$as_me:$LINENO: checking for $ac_func" >&5
28687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28688if eval "test \"\${$as_ac_var+set}\" = set"; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28690else
28691 cat >conftest.$ac_ext <<_ACEOF
28692/* confdefs.h. */
28693_ACEOF
28694cat confdefs.h >>conftest.$ac_ext
28695cat >>conftest.$ac_ext <<_ACEOF
28696/* end confdefs.h. */
ac1cb8d3
VS
28697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28699#define $ac_func innocuous_$ac_func
28700
a848cd7e
SC
28701/* System header to define __stub macros and hopefully few prototypes,
28702 which can conflict with char $ac_func (); below.
28703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28705
a848cd7e
SC
28706#ifdef __STDC__
28707# include <limits.h>
28708#else
28709# include <assert.h>
28710#endif
ac1cb8d3
VS
28711
28712#undef $ac_func
28713
a848cd7e
SC
28714/* Override any gcc2 internal prototype to avoid an error. */
28715#ifdef __cplusplus
28716extern "C"
28717{
28718#endif
28719/* We use char because int might match the return type of a gcc2
28720 builtin and then its argument prototype would still apply. */
28721char $ac_func ();
28722/* The GNU C library defines this for functions which it implements
28723 to always fail with ENOSYS. Some functions are actually named
28724 something starting with __ and the normal name is an alias. */
28725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28726choke me
28727#else
28728char (*f) () = $ac_func;
28729#endif
28730#ifdef __cplusplus
28731}
28732#endif
28733
28734int
28735main ()
28736{
28737return f != $ac_func;
28738 ;
28739 return 0;
28740}
28741_ACEOF
28742rm -f conftest.$ac_objext conftest$ac_exeext
28743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28744 (eval $ac_link) 2>conftest.er1
a848cd7e 28745 ac_status=$?
ac1cb8d3
VS
28746 grep -v '^ *+' conftest.er1 >conftest.err
28747 rm -f conftest.er1
28748 cat conftest.err >&5
a848cd7e
SC
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } &&
4d4ff94c 28751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; } &&
28757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759 (eval $ac_try) 2>&5
28760 ac_status=$?
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); }; }; then
28763 eval "$as_ac_var=yes"
28764else
28765 echo "$as_me: failed program was:" >&5
28766sed 's/^/| /' conftest.$ac_ext >&5
28767
28768eval "$as_ac_var=no"
28769fi
ac1cb8d3
VS
28770rm -f conftest.err conftest.$ac_objext \
28771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28772fi
28773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28775if test `eval echo '${'$as_ac_var'}'` = yes; then
28776 cat >>confdefs.h <<_ACEOF
28777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28778_ACEOF
28779
28780fi
28781done
28782
28783
28784if test "$ac_cv_func_vsnprintf" = "yes"; then
28785 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28786echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28787if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28788 echo $ECHO_N "(cached) $ECHO_C" >&6
28789else
28790
28791 cat >conftest.$ac_ext <<_ACEOF
28792/* confdefs.h. */
28793_ACEOF
28794cat confdefs.h >>conftest.$ac_ext
28795cat >>conftest.$ac_ext <<_ACEOF
28796/* end confdefs.h. */
28797
28798 #include <stdio.h>
28799 #include <stdarg.h>
28800
28801int
28802main ()
28803{
28804
28805 char *buf;
28806 va_list ap;
28807 vsnprintf(buf, 10u, "%s", ap);
28808
28809 ;
28810 return 0;
28811}
28812_ACEOF
28813rm -f conftest.$ac_objext
28814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28815 (eval $ac_compile) 2>conftest.er1
a848cd7e 28816 ac_status=$?
ac1cb8d3
VS
28817 grep -v '^ *+' conftest.er1 >conftest.err
28818 rm -f conftest.er1
28819 cat conftest.err >&5
a848cd7e
SC
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); } &&
4d4ff94c 28822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28831 ac_status=$?
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; }; then
28834 wx_cv_func_vsnprintf_decl=yes
28835else
28836 echo "$as_me: failed program was:" >&5
28837sed 's/^/| /' conftest.$ac_ext >&5
28838
28839wx_cv_func_vsnprintf_decl=no
28840
28841fi
ac1cb8d3 28842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28843
28844
28845fi
28846echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28847echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
28848
28849 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
28850 cat >>confdefs.h <<\_ACEOF
28851#define HAVE_VSNPRINTF_DECL 1
28852_ACEOF
28853
28854 fi
28855fi
28856
28857if test "$wxUSE_UNICODE" = yes; then
28858
28859
28860
fbe47c7b
VS
28861
28862
28863
28864for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
28865do
28866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28867echo "$as_me:$LINENO: checking for $ac_func" >&5
28868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28869if eval "test \"\${$as_ac_var+set}\" = set"; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28871else
28872 cat >conftest.$ac_ext <<_ACEOF
28873/* confdefs.h. */
28874_ACEOF
28875cat confdefs.h >>conftest.$ac_ext
28876cat >>conftest.$ac_ext <<_ACEOF
28877/* end confdefs.h. */
ac1cb8d3
VS
28878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28880#define $ac_func innocuous_$ac_func
28881
a848cd7e
SC
28882/* System header to define __stub macros and hopefully few prototypes,
28883 which can conflict with char $ac_func (); below.
28884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28885 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28886
a848cd7e
SC
28887#ifdef __STDC__
28888# include <limits.h>
28889#else
28890# include <assert.h>
28891#endif
ac1cb8d3
VS
28892
28893#undef $ac_func
28894
a848cd7e
SC
28895/* Override any gcc2 internal prototype to avoid an error. */
28896#ifdef __cplusplus
28897extern "C"
28898{
28899#endif
28900/* We use char because int might match the return type of a gcc2
28901 builtin and then its argument prototype would still apply. */
28902char $ac_func ();
28903/* The GNU C library defines this for functions which it implements
28904 to always fail with ENOSYS. Some functions are actually named
28905 something starting with __ and the normal name is an alias. */
28906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28907choke me
28908#else
28909char (*f) () = $ac_func;
28910#endif
28911#ifdef __cplusplus
28912}
28913#endif
28914
28915int
28916main ()
28917{
28918return f != $ac_func;
28919 ;
28920 return 0;
28921}
28922_ACEOF
28923rm -f conftest.$ac_objext conftest$ac_exeext
28924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28925 (eval $ac_link) 2>conftest.er1
a848cd7e 28926 ac_status=$?
ac1cb8d3
VS
28927 grep -v '^ *+' conftest.er1 >conftest.err
28928 rm -f conftest.er1
28929 cat conftest.err >&5
a848cd7e
SC
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } &&
4d4ff94c 28932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934 (eval $ac_try) 2>&5
28935 ac_status=$?
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; } &&
28938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28941 ac_status=$?
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; }; then
28944 eval "$as_ac_var=yes"
28945else
28946 echo "$as_me: failed program was:" >&5
28947sed 's/^/| /' conftest.$ac_ext >&5
28948
28949eval "$as_ac_var=no"
28950fi
ac1cb8d3
VS
28951rm -f conftest.err conftest.$ac_objext \
28952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28953fi
28954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28956if test `eval echo '${'$as_ac_var'}'` = yes; then
28957 cat >>confdefs.h <<_ACEOF
28958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28959_ACEOF
28960
28961fi
28962done
28963
28964
28965 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28966echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28967 cat >conftest.$ac_ext <<_ACEOF
28968/* confdefs.h. */
28969_ACEOF
28970cat confdefs.h >>conftest.$ac_ext
28971cat >>conftest.$ac_ext <<_ACEOF
28972/* end confdefs.h. */
28973#include <wchar.h>
28974int
28975main ()
28976{
28977&_vsnwprintf;
28978 ;
28979 return 0;
28980}
28981_ACEOF
28982rm -f conftest.$ac_objext
28983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28984 (eval $ac_compile) 2>conftest.er1
a848cd7e 28985 ac_status=$?
ac1cb8d3
VS
28986 grep -v '^ *+' conftest.er1 >conftest.err
28987 rm -f conftest.er1
28988 cat conftest.err >&5
a848cd7e
SC
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } &&
4d4ff94c 28991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; } &&
28997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29000 ac_status=$?
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; }; then
29003 echo "$as_me:$LINENO: result: yes" >&5
29004echo "${ECHO_T}yes" >&6
29005 cat >>confdefs.h <<\_ACEOF
29006#define HAVE__VSNWPRINTF 1
29007_ACEOF
29008
29009else
29010 echo "$as_me: failed program was:" >&5
29011sed 's/^/| /' conftest.$ac_ext >&5
29012
29013echo "$as_me:$LINENO: result: no" >&5
29014echo "${ECHO_T}no" >&6
29015fi
ac1cb8d3 29016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29017fi
29018
29019ac_ext=c
29020ac_cpp='$CPP $CPPFLAGS'
29021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29023ac_compiler_gnu=$ac_cv_c_compiler_gnu
29024
29025
29026
29027
29028if test "$TOOLKIT" != "MSW"; then
29029
29030
29031
29032
29033ac_ext=cc
29034ac_cpp='$CXXCPP $CPPFLAGS'
29035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29038
29039
29040
29041
29042# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29043if test "${with_libiconv_prefix+set}" = set; then
29044 withval="$with_libiconv_prefix"
29045
29046 for dir in `echo "$withval" | tr : ' '`; do
29047 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29048 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29049 done
29050
29051fi;
29052
29053 echo "$as_me:$LINENO: checking for iconv" >&5
29054echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29055if test "${am_cv_func_iconv+set}" = set; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29057else
29058
29059 am_cv_func_iconv="no, consider installing GNU libiconv"
29060 am_cv_lib_iconv=no
29061 cat >conftest.$ac_ext <<_ACEOF
29062/* confdefs.h. */
29063_ACEOF
29064cat confdefs.h >>conftest.$ac_ext
29065cat >>conftest.$ac_ext <<_ACEOF
29066/* end confdefs.h. */
29067#include <stdlib.h>
29068#include <iconv.h>
29069int
29070main ()
29071{
29072iconv_t cd = iconv_open("","");
29073 iconv(cd,NULL,NULL,NULL,NULL);
29074 iconv_close(cd);
29075 ;
29076 return 0;
29077}
29078_ACEOF
29079rm -f conftest.$ac_objext conftest$ac_exeext
29080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29081 (eval $ac_link) 2>conftest.er1
a848cd7e 29082 ac_status=$?
ac1cb8d3
VS
29083 grep -v '^ *+' conftest.er1 >conftest.err
29084 rm -f conftest.er1
29085 cat conftest.err >&5
a848cd7e
SC
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); } &&
4d4ff94c 29088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; } &&
29094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29097 ac_status=$?
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; }; then
29100 am_cv_func_iconv=yes
29101else
29102 echo "$as_me: failed program was:" >&5
29103sed 's/^/| /' conftest.$ac_ext >&5
29104
29105fi
ac1cb8d3
VS
29106rm -f conftest.err conftest.$ac_objext \
29107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29108 if test "$am_cv_func_iconv" != yes; then
29109 am_save_LIBS="$LIBS"
29110 LIBS="$LIBS -liconv"
29111 cat >conftest.$ac_ext <<_ACEOF
29112/* confdefs.h. */
29113_ACEOF
29114cat confdefs.h >>conftest.$ac_ext
29115cat >>conftest.$ac_ext <<_ACEOF
29116/* end confdefs.h. */
29117#include <stdlib.h>
29118#include <iconv.h>
29119int
29120main ()
29121{
29122iconv_t cd = iconv_open("","");
29123 iconv(cd,NULL,NULL,NULL,NULL);
29124 iconv_close(cd);
29125 ;
29126 return 0;
29127}
29128_ACEOF
29129rm -f conftest.$ac_objext conftest$ac_exeext
29130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29131 (eval $ac_link) 2>conftest.er1
a848cd7e 29132 ac_status=$?
ac1cb8d3
VS
29133 grep -v '^ *+' conftest.er1 >conftest.err
29134 rm -f conftest.er1
29135 cat conftest.err >&5
a848cd7e
SC
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } &&
4d4ff94c 29138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29140 (eval $ac_try) 2>&5
29141 ac_status=$?
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; } &&
29144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29146 (eval $ac_try) 2>&5
29147 ac_status=$?
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); }; }; then
29150 am_cv_lib_iconv=yes
29151 am_cv_func_iconv=yes
29152else
29153 echo "$as_me: failed program was:" >&5
29154sed 's/^/| /' conftest.$ac_ext >&5
29155
29156fi
ac1cb8d3
VS
29157rm -f conftest.err conftest.$ac_objext \
29158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29159 LIBS="$am_save_LIBS"
29160 fi
29161
29162fi
29163echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29164echo "${ECHO_T}$am_cv_func_iconv" >&6
29165 if test "$am_cv_func_iconv" = yes; then
29166
29167cat >>confdefs.h <<\_ACEOF
29168#define HAVE_ICONV 1
29169_ACEOF
29170
29171 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29172echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29173if test "${wx_cv_func_iconv_const+set}" = set; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29175else
29176 cat >conftest.$ac_ext <<_ACEOF
29177/* confdefs.h. */
29178_ACEOF
29179cat confdefs.h >>conftest.$ac_ext
29180cat >>conftest.$ac_ext <<_ACEOF
29181/* end confdefs.h. */
29182
29183#include <stdlib.h>
29184#include <iconv.h>
29185extern
29186#ifdef __cplusplus
29187"C"
29188#endif
29189#if defined(__STDC__) || defined(__cplusplus)
29190size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29191#else
29192size_t iconv();
29193#endif
29194
29195int
29196main ()
29197{
29198
29199 ;
29200 return 0;
29201}
29202_ACEOF
29203rm -f conftest.$ac_objext
29204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29205 (eval $ac_compile) 2>conftest.er1
a848cd7e 29206 ac_status=$?
ac1cb8d3
VS
29207 grep -v '^ *+' conftest.er1 >conftest.err
29208 rm -f conftest.er1
29209 cat conftest.err >&5
a848cd7e
SC
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); } &&
4d4ff94c 29212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29215 ac_status=$?
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; } &&
29218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220 (eval $ac_try) 2>&5
29221 ac_status=$?
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; }; then
29224 wx_cv_func_iconv_const="no"
29225else
29226 echo "$as_me: failed program was:" >&5
29227sed 's/^/| /' conftest.$ac_ext >&5
29228
29229wx_cv_func_iconv_const="yes"
29230
29231fi
ac1cb8d3 29232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29233
29234fi
29235echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29236echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29237
29238 iconv_const=
29239 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29240 iconv_const="const"
29241 fi
29242
29243
29244cat >>confdefs.h <<_ACEOF
29245#define ICONV_CONST $iconv_const
29246_ACEOF
29247
29248 fi
29249 LIBICONV=
29250 if test "$am_cv_lib_iconv" = yes; then
29251 LIBICONV="-liconv"
29252 fi
29253
29254
29255LIBS="$LIBICONV $LIBS"
29256ac_ext=c
29257ac_cpp='$CPP $CPPFLAGS'
29258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29260ac_compiler_gnu=$ac_cv_c_compiler_gnu
29261
29262
29263if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29264
29265for ac_func in sigaction
29266do
29267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29268echo "$as_me:$LINENO: checking for $ac_func" >&5
29269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29270if eval "test \"\${$as_ac_var+set}\" = set"; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29272else
29273 cat >conftest.$ac_ext <<_ACEOF
29274/* confdefs.h. */
29275_ACEOF
29276cat confdefs.h >>conftest.$ac_ext
29277cat >>conftest.$ac_ext <<_ACEOF
29278/* end confdefs.h. */
ac1cb8d3
VS
29279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29281#define $ac_func innocuous_$ac_func
29282
a848cd7e
SC
29283/* System header to define __stub macros and hopefully few prototypes,
29284 which can conflict with char $ac_func (); below.
29285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29286 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29287
a848cd7e
SC
29288#ifdef __STDC__
29289# include <limits.h>
29290#else
29291# include <assert.h>
29292#endif
ac1cb8d3
VS
29293
29294#undef $ac_func
29295
a848cd7e
SC
29296/* Override any gcc2 internal prototype to avoid an error. */
29297#ifdef __cplusplus
29298extern "C"
29299{
29300#endif
29301/* We use char because int might match the return type of a gcc2
29302 builtin and then its argument prototype would still apply. */
29303char $ac_func ();
29304/* The GNU C library defines this for functions which it implements
29305 to always fail with ENOSYS. Some functions are actually named
29306 something starting with __ and the normal name is an alias. */
29307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29308choke me
29309#else
29310char (*f) () = $ac_func;
29311#endif
29312#ifdef __cplusplus
29313}
29314#endif
29315
29316int
29317main ()
29318{
29319return f != $ac_func;
29320 ;
29321 return 0;
29322}
29323_ACEOF
29324rm -f conftest.$ac_objext conftest$ac_exeext
29325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29326 (eval $ac_link) 2>conftest.er1
a848cd7e 29327 ac_status=$?
ac1cb8d3
VS
29328 grep -v '^ *+' conftest.er1 >conftest.err
29329 rm -f conftest.er1
29330 cat conftest.err >&5
a848cd7e
SC
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); } &&
4d4ff94c 29333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; } &&
29339 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29341 (eval $ac_try) 2>&5
29342 ac_status=$?
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; }; then
29345 eval "$as_ac_var=yes"
29346else
29347 echo "$as_me: failed program was:" >&5
29348sed 's/^/| /' conftest.$ac_ext >&5
29349
29350eval "$as_ac_var=no"
29351fi
ac1cb8d3
VS
29352rm -f conftest.err conftest.$ac_objext \
29353 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29354fi
29355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29357if test `eval echo '${'$as_ac_var'}'` = yes; then
29358 cat >>confdefs.h <<_ACEOF
29359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29360_ACEOF
29361
29362fi
29363done
29364
29365
29366 if test "$ac_cv_func_sigaction" = "no"; then
29367 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29368echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29369 wxUSE_ON_FATAL_EXCEPTION=no
29370 fi
29371
29372 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29373
29374
29375 ac_ext=cc
29376ac_cpp='$CXXCPP $CPPFLAGS'
29377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29380
29381
29382 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29383echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29384if test "${wx_cv_type_sa_handler+set}" = set; then
29385 echo $ECHO_N "(cached) $ECHO_C" >&6
29386else
29387
29388 cat >conftest.$ac_ext <<_ACEOF
29389/* confdefs.h. */
29390_ACEOF
29391cat confdefs.h >>conftest.$ac_ext
29392cat >>conftest.$ac_ext <<_ACEOF
29393/* end confdefs.h. */
29394#include <signal.h>
29395int
29396main ()
29397{
29398
29399 extern void testSigHandler(int);
29400
29401 struct sigaction sa;
29402 sa.sa_handler = testSigHandler;
29403
29404 ;
29405 return 0;
29406}
29407_ACEOF
29408rm -f conftest.$ac_objext
29409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29410 (eval $ac_compile) 2>conftest.er1
a848cd7e 29411 ac_status=$?
ac1cb8d3
VS
29412 grep -v '^ *+' conftest.er1 >conftest.err
29413 rm -f conftest.er1
29414 cat conftest.err >&5
a848cd7e
SC
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); } &&
4d4ff94c 29417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29419 (eval $ac_try) 2>&5
29420 ac_status=$?
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); }; } &&
29423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425 (eval $ac_try) 2>&5
29426 ac_status=$?
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); }; }; then
29429
29430 wx_cv_type_sa_handler=int
29431
29432else
29433 echo "$as_me: failed program was:" >&5
29434sed 's/^/| /' conftest.$ac_ext >&5
29435
29436
29437 wx_cv_type_sa_handler=void
29438
29439fi
ac1cb8d3 29440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29441
29442fi
29443echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29444echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29445
29446 ac_ext=c
29447ac_cpp='$CPP $CPPFLAGS'
29448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29450ac_compiler_gnu=$ac_cv_c_compiler_gnu
29451
29452
29453 cat >>confdefs.h <<_ACEOF
29454#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29455_ACEOF
29456
29457 fi
29458fi
29459
29460
29461
29462for ac_func in mkstemp mktemp
29463do
29464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29465echo "$as_me:$LINENO: checking for $ac_func" >&5
29466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29467if eval "test \"\${$as_ac_var+set}\" = set"; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29469else
29470 cat >conftest.$ac_ext <<_ACEOF
29471/* confdefs.h. */
29472_ACEOF
29473cat confdefs.h >>conftest.$ac_ext
29474cat >>conftest.$ac_ext <<_ACEOF
29475/* end confdefs.h. */
ac1cb8d3
VS
29476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29478#define $ac_func innocuous_$ac_func
29479
a848cd7e
SC
29480/* System header to define __stub macros and hopefully few prototypes,
29481 which can conflict with char $ac_func (); below.
29482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29483 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29484
a848cd7e
SC
29485#ifdef __STDC__
29486# include <limits.h>
29487#else
29488# include <assert.h>
29489#endif
ac1cb8d3
VS
29490
29491#undef $ac_func
29492
a848cd7e
SC
29493/* Override any gcc2 internal prototype to avoid an error. */
29494#ifdef __cplusplus
29495extern "C"
29496{
29497#endif
29498/* We use char because int might match the return type of a gcc2
29499 builtin and then its argument prototype would still apply. */
29500char $ac_func ();
29501/* The GNU C library defines this for functions which it implements
29502 to always fail with ENOSYS. Some functions are actually named
29503 something starting with __ and the normal name is an alias. */
29504#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29505choke me
29506#else
29507char (*f) () = $ac_func;
29508#endif
29509#ifdef __cplusplus
29510}
29511#endif
29512
29513int
29514main ()
29515{
29516return f != $ac_func;
29517 ;
29518 return 0;
29519}
29520_ACEOF
29521rm -f conftest.$ac_objext conftest$ac_exeext
29522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29523 (eval $ac_link) 2>conftest.er1
a848cd7e 29524 ac_status=$?
ac1cb8d3
VS
29525 grep -v '^ *+' conftest.er1 >conftest.err
29526 rm -f conftest.er1
29527 cat conftest.err >&5
a848cd7e
SC
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); } &&
4d4ff94c 29530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; }; then
29542 eval "$as_ac_var=yes"
29543else
29544 echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
29547eval "$as_ac_var=no"
29548fi
ac1cb8d3
VS
29549rm -f conftest.err conftest.$ac_objext \
29550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29551fi
29552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29553echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29554if test `eval echo '${'$as_ac_var'}'` = yes; then
29555 cat >>confdefs.h <<_ACEOF
29556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29557_ACEOF
29558 break
29559fi
29560done
29561
29562
29563echo "$as_me:$LINENO: checking for statfs" >&5
29564echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29565if test "${wx_cv_func_statfs+set}" = set; then
29566 echo $ECHO_N "(cached) $ECHO_C" >&6
29567else
29568 cat >conftest.$ac_ext <<_ACEOF
29569/* confdefs.h. */
29570_ACEOF
29571cat confdefs.h >>conftest.$ac_ext
29572cat >>conftest.$ac_ext <<_ACEOF
29573/* end confdefs.h. */
29574
29575 #if defined(__BSD__)
29576 #include <sys/param.h>
29577 #include <sys/mount.h>
29578 #else
29579 #include <sys/vfs.h>
29580 #endif
29581
29582int
29583main ()
29584{
29585
29586 long l;
29587 struct statfs fs;
29588 statfs("/", &fs);
29589 l = fs.f_bsize;
29590 l += fs.f_blocks;
29591 l += fs.f_bavail;
29592
29593 ;
29594 return 0;
29595}
29596_ACEOF
29597rm -f conftest.$ac_objext
29598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29599 (eval $ac_compile) 2>conftest.er1
a848cd7e 29600 ac_status=$?
ac1cb8d3
VS
29601 grep -v '^ *+' conftest.er1 >conftest.err
29602 rm -f conftest.er1
29603 cat conftest.err >&5
a848cd7e
SC
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } &&
4d4ff94c 29606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29608 (eval $ac_try) 2>&5
29609 ac_status=$?
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; } &&
29612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614 (eval $ac_try) 2>&5
29615 ac_status=$?
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; }; then
29618
29619 wx_cv_func_statfs=yes
29620
29621else
29622 echo "$as_me: failed program was:" >&5
29623sed 's/^/| /' conftest.$ac_ext >&5
29624
29625
29626 wx_cv_func_statfs=no
29627
29628
29629fi
ac1cb8d3 29630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29631
29632fi
29633echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29634echo "${ECHO_T}$wx_cv_func_statfs" >&6
29635
29636if test "$wx_cv_func_statfs" = "yes"; then
29637 wx_cv_type_statvfs_t="struct statfs"
29638 cat >>confdefs.h <<\_ACEOF
29639#define HAVE_STATFS 1
29640_ACEOF
29641
29642else
29643 echo "$as_me:$LINENO: checking for statvfs" >&5
29644echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29645if test "${wx_cv_func_statvfs+set}" = set; then
29646 echo $ECHO_N "(cached) $ECHO_C" >&6
29647else
29648 cat >conftest.$ac_ext <<_ACEOF
29649/* confdefs.h. */
29650_ACEOF
29651cat confdefs.h >>conftest.$ac_ext
29652cat >>conftest.$ac_ext <<_ACEOF
29653/* end confdefs.h. */
29654
29655 #include <stddef.h>
29656 #include <sys/statvfs.h>
29657
29658int
29659main ()
29660{
29661
29662 statvfs("/", NULL);
29663
29664 ;
29665 return 0;
29666}
29667_ACEOF
29668rm -f conftest.$ac_objext
29669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29670 (eval $ac_compile) 2>conftest.er1
a848cd7e 29671 ac_status=$?
ac1cb8d3
VS
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
a848cd7e
SC
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } &&
4d4ff94c 29677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679 (eval $ac_try) 2>&5
29680 ac_status=$?
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; } &&
29683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685 (eval $ac_try) 2>&5
29686 ac_status=$?
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); }; }; then
29689 wx_cv_func_statvfs=yes
29690else
29691 echo "$as_me: failed program was:" >&5
29692sed 's/^/| /' conftest.$ac_ext >&5
29693
29694wx_cv_func_statvfs=no
29695
29696fi
ac1cb8d3 29697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29698
29699fi
29700echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29701echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29702
29703 if test "$wx_cv_func_statvfs" = "yes"; then
29704
29705
29706 ac_ext=cc
29707ac_cpp='$CXXCPP $CPPFLAGS'
29708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29711
29712
29713 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29714echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29715if test "${wx_cv_type_statvfs_t+set}" = set; then
29716 echo $ECHO_N "(cached) $ECHO_C" >&6
29717else
29718 cat >conftest.$ac_ext <<_ACEOF
29719/* confdefs.h. */
29720_ACEOF
29721cat confdefs.h >>conftest.$ac_ext
29722cat >>conftest.$ac_ext <<_ACEOF
29723/* end confdefs.h. */
29724
29725 #include <sys/statvfs.h>
29726
29727int
29728main ()
29729{
29730
29731 long l;
29732 statvfs_t fs;
29733 statvfs("/", &fs);
29734 l = fs.f_bsize;
29735 l += fs.f_blocks;
29736 l += fs.f_bavail;
29737
29738 ;
29739 return 0;
29740}
29741_ACEOF
29742rm -f conftest.$ac_objext
29743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29744 (eval $ac_compile) 2>conftest.er1
a848cd7e 29745 ac_status=$?
ac1cb8d3
VS
29746 grep -v '^ *+' conftest.er1 >conftest.err
29747 rm -f conftest.er1
29748 cat conftest.err >&5
a848cd7e
SC
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } &&
4d4ff94c 29751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29753 (eval $ac_try) 2>&5
29754 ac_status=$?
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); }; } &&
29757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29759 (eval $ac_try) 2>&5
29760 ac_status=$?
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); }; }; then
29763 wx_cv_type_statvfs_t=statvfs_t
29764else
29765 echo "$as_me: failed program was:" >&5
29766sed 's/^/| /' conftest.$ac_ext >&5
29767
29768
29769 cat >conftest.$ac_ext <<_ACEOF
29770/* confdefs.h. */
29771_ACEOF
29772cat confdefs.h >>conftest.$ac_ext
29773cat >>conftest.$ac_ext <<_ACEOF
29774/* end confdefs.h. */
29775
29776 #include <sys/statvfs.h>
29777
29778int
29779main ()
29780{
29781
29782 long l;
29783 struct statvfs fs;
29784 statvfs("/", &fs);
29785 l = fs.f_bsize;
29786 l += fs.f_blocks;
29787 l += fs.f_bavail;
29788
29789 ;
29790 return 0;
29791}
29792_ACEOF
29793rm -f conftest.$ac_objext
29794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29795 (eval $ac_compile) 2>conftest.er1
a848cd7e 29796 ac_status=$?
ac1cb8d3
VS
29797 grep -v '^ *+' conftest.er1 >conftest.err
29798 rm -f conftest.er1
29799 cat conftest.err >&5
a848cd7e
SC
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } &&
4d4ff94c 29802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; } &&
29808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810 (eval $ac_try) 2>&5
29811 ac_status=$?
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
29814 wx_cv_type_statvfs_t="struct statvfs"
29815else
29816 echo "$as_me: failed program was:" >&5
29817sed 's/^/| /' conftest.$ac_ext >&5
29818
29819wx_cv_type_statvfs_t="unknown"
29820
29821fi
ac1cb8d3 29822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29823
29824
29825fi
ac1cb8d3 29826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29827
29828fi
29829echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29830echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29831
29832 ac_ext=c
29833ac_cpp='$CPP $CPPFLAGS'
29834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29836ac_compiler_gnu=$ac_cv_c_compiler_gnu
29837
29838
29839 if test "$wx_cv_type_statvfs_t" != "unknown"; then
29840 cat >>confdefs.h <<\_ACEOF
29841#define HAVE_STATVFS 1
29842_ACEOF
29843
29844 fi
29845 else
29846 wx_cv_type_statvfs_t="unknown"
29847 fi
29848fi
29849
29850if test "$wx_cv_type_statvfs_t" != "unknown"; then
29851 cat >>confdefs.h <<_ACEOF
29852#define WX_STATFS_T $wx_cv_type_statvfs_t
29853_ACEOF
29854
29855else
29856 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29857echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
29858fi
29859
29860if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
29861
29862
29863for ac_func in fcntl flock
29864do
29865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29866echo "$as_me:$LINENO: checking for $ac_func" >&5
29867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29868if eval "test \"\${$as_ac_var+set}\" = set"; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29870else
29871 cat >conftest.$ac_ext <<_ACEOF
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
ac1cb8d3
VS
29877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29879#define $ac_func innocuous_$ac_func
29880
a848cd7e
SC
29881/* System header to define __stub macros and hopefully few prototypes,
29882 which can conflict with char $ac_func (); below.
29883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29884 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29885
a848cd7e
SC
29886#ifdef __STDC__
29887# include <limits.h>
29888#else
29889# include <assert.h>
29890#endif
ac1cb8d3
VS
29891
29892#undef $ac_func
29893
a848cd7e
SC
29894/* Override any gcc2 internal prototype to avoid an error. */
29895#ifdef __cplusplus
29896extern "C"
29897{
29898#endif
29899/* We use char because int might match the return type of a gcc2
29900 builtin and then its argument prototype would still apply. */
29901char $ac_func ();
29902/* The GNU C library defines this for functions which it implements
29903 to always fail with ENOSYS. Some functions are actually named
29904 something starting with __ and the normal name is an alias. */
29905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29906choke me
29907#else
29908char (*f) () = $ac_func;
29909#endif
29910#ifdef __cplusplus
29911}
29912#endif
29913
29914int
29915main ()
29916{
29917return f != $ac_func;
29918 ;
29919 return 0;
29920}
29921_ACEOF
29922rm -f conftest.$ac_objext conftest$ac_exeext
29923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29924 (eval $ac_link) 2>conftest.er1
a848cd7e 29925 ac_status=$?
ac1cb8d3
VS
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
a848cd7e
SC
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
4d4ff94c 29931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29933 (eval $ac_try) 2>&5
29934 ac_status=$?
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); }; } &&
29937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939 (eval $ac_try) 2>&5
29940 ac_status=$?
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); }; }; then
29943 eval "$as_ac_var=yes"
29944else
29945 echo "$as_me: failed program was:" >&5
29946sed 's/^/| /' conftest.$ac_ext >&5
29947
29948eval "$as_ac_var=no"
29949fi
ac1cb8d3
VS
29950rm -f conftest.err conftest.$ac_objext \
29951 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29952fi
29953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29954echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29955if test `eval echo '${'$as_ac_var'}'` = yes; then
29956 cat >>confdefs.h <<_ACEOF
29957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29958_ACEOF
29959 break
29960fi
29961done
29962
29963
29964 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
29965 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29966echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
29967 wxUSE_SNGLINST_CHECKER=no
29968 fi
29969fi
29970
29971
29972for ac_func in timegm
29973do
29974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29975echo "$as_me:$LINENO: checking for $ac_func" >&5
29976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29977if eval "test \"\${$as_ac_var+set}\" = set"; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29979else
29980 cat >conftest.$ac_ext <<_ACEOF
29981/* confdefs.h. */
29982_ACEOF
29983cat confdefs.h >>conftest.$ac_ext
29984cat >>conftest.$ac_ext <<_ACEOF
29985/* end confdefs.h. */
ac1cb8d3
VS
29986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29988#define $ac_func innocuous_$ac_func
29989
a848cd7e
SC
29990/* System header to define __stub macros and hopefully few prototypes,
29991 which can conflict with char $ac_func (); below.
29992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29993 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29994
a848cd7e
SC
29995#ifdef __STDC__
29996# include <limits.h>
29997#else
29998# include <assert.h>
29999#endif
ac1cb8d3
VS
30000
30001#undef $ac_func
30002
a848cd7e
SC
30003/* Override any gcc2 internal prototype to avoid an error. */
30004#ifdef __cplusplus
30005extern "C"
30006{
30007#endif
30008/* We use char because int might match the return type of a gcc2
30009 builtin and then its argument prototype would still apply. */
30010char $ac_func ();
30011/* The GNU C library defines this for functions which it implements
30012 to always fail with ENOSYS. Some functions are actually named
30013 something starting with __ and the normal name is an alias. */
30014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30015choke me
30016#else
30017char (*f) () = $ac_func;
30018#endif
30019#ifdef __cplusplus
30020}
30021#endif
30022
30023int
30024main ()
30025{
30026return f != $ac_func;
30027 ;
30028 return 0;
30029}
30030_ACEOF
30031rm -f conftest.$ac_objext conftest$ac_exeext
30032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30033 (eval $ac_link) 2>conftest.er1
a848cd7e 30034 ac_status=$?
ac1cb8d3
VS
30035 grep -v '^ *+' conftest.er1 >conftest.err
30036 rm -f conftest.er1
30037 cat conftest.err >&5
a848cd7e
SC
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } &&
4d4ff94c 30040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; } &&
30046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 (eval $ac_try) 2>&5
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; }; then
30052 eval "$as_ac_var=yes"
30053else
30054 echo "$as_me: failed program was:" >&5
30055sed 's/^/| /' conftest.$ac_ext >&5
30056
30057eval "$as_ac_var=no"
30058fi
ac1cb8d3
VS
30059rm -f conftest.err conftest.$ac_objext \
30060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30061fi
30062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30064if test `eval echo '${'$as_ac_var'}'` = yes; then
30065 cat >>confdefs.h <<_ACEOF
30066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30067_ACEOF
30068
30069fi
30070done
30071
30072
30073
30074
30075for ac_func in putenv setenv
30076do
30077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30078echo "$as_me:$LINENO: checking for $ac_func" >&5
30079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30080if eval "test \"\${$as_ac_var+set}\" = set"; then
30081 echo $ECHO_N "(cached) $ECHO_C" >&6
30082else
30083 cat >conftest.$ac_ext <<_ACEOF
30084/* confdefs.h. */
30085_ACEOF
30086cat confdefs.h >>conftest.$ac_ext
30087cat >>conftest.$ac_ext <<_ACEOF
30088/* end confdefs.h. */
ac1cb8d3
VS
30089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30091#define $ac_func innocuous_$ac_func
30092
a848cd7e
SC
30093/* System header to define __stub macros and hopefully few prototypes,
30094 which can conflict with char $ac_func (); below.
30095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30096 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30097
a848cd7e
SC
30098#ifdef __STDC__
30099# include <limits.h>
30100#else
30101# include <assert.h>
30102#endif
ac1cb8d3
VS
30103
30104#undef $ac_func
30105
a848cd7e
SC
30106/* Override any gcc2 internal prototype to avoid an error. */
30107#ifdef __cplusplus
30108extern "C"
30109{
30110#endif
30111/* We use char because int might match the return type of a gcc2
30112 builtin and then its argument prototype would still apply. */
30113char $ac_func ();
30114/* The GNU C library defines this for functions which it implements
30115 to always fail with ENOSYS. Some functions are actually named
30116 something starting with __ and the normal name is an alias. */
30117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30118choke me
30119#else
30120char (*f) () = $ac_func;
30121#endif
30122#ifdef __cplusplus
30123}
30124#endif
30125
30126int
30127main ()
30128{
30129return f != $ac_func;
30130 ;
30131 return 0;
30132}
30133_ACEOF
30134rm -f conftest.$ac_objext conftest$ac_exeext
30135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30136 (eval $ac_link) 2>conftest.er1
a848cd7e 30137 ac_status=$?
ac1cb8d3
VS
30138 grep -v '^ *+' conftest.er1 >conftest.err
30139 rm -f conftest.er1
30140 cat conftest.err >&5
a848cd7e
SC
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); } &&
4d4ff94c 30143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30145 (eval $ac_try) 2>&5
30146 ac_status=$?
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); }; } &&
30149 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151 (eval $ac_try) 2>&5
30152 ac_status=$?
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); }; }; then
30155 eval "$as_ac_var=yes"
30156else
30157 echo "$as_me: failed program was:" >&5
30158sed 's/^/| /' conftest.$ac_ext >&5
30159
30160eval "$as_ac_var=no"
30161fi
ac1cb8d3
VS
30162rm -f conftest.err conftest.$ac_objext \
30163 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30164fi
30165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30166echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30167if test `eval echo '${'$as_ac_var'}'` = yes; then
30168 cat >>confdefs.h <<_ACEOF
30169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30170_ACEOF
30171 break
30172fi
30173done
30174
30175
30176HAVE_SOME_SLEEP_FUNC=0
30177if test "$USE_BEOS" = 1; then
30178 cat >>confdefs.h <<\_ACEOF
30179#define HAVE_SLEEP 1
30180_ACEOF
30181
30182 HAVE_SOME_SLEEP_FUNC=1
30183fi
30184
30185if test "$USE_DARWIN" = 1; then
30186 cat >>confdefs.h <<\_ACEOF
30187#define HAVE_USLEEP 1
30188_ACEOF
30189
30190 HAVE_SOME_SLEEP_FUNC=1
30191fi
30192
30193if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30194 POSIX4_LINK=
30195
30196for ac_func in nanosleep
30197do
30198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30199echo "$as_me:$LINENO: checking for $ac_func" >&5
30200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30201if eval "test \"\${$as_ac_var+set}\" = set"; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30203else
30204 cat >conftest.$ac_ext <<_ACEOF
30205/* confdefs.h. */
30206_ACEOF
30207cat confdefs.h >>conftest.$ac_ext
30208cat >>conftest.$ac_ext <<_ACEOF
30209/* end confdefs.h. */
ac1cb8d3
VS
30210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30212#define $ac_func innocuous_$ac_func
30213
a848cd7e
SC
30214/* System header to define __stub macros and hopefully few prototypes,
30215 which can conflict with char $ac_func (); below.
30216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30217 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30218
a848cd7e
SC
30219#ifdef __STDC__
30220# include <limits.h>
30221#else
30222# include <assert.h>
30223#endif
ac1cb8d3
VS
30224
30225#undef $ac_func
30226
a848cd7e
SC
30227/* Override any gcc2 internal prototype to avoid an error. */
30228#ifdef __cplusplus
30229extern "C"
30230{
30231#endif
30232/* We use char because int might match the return type of a gcc2
30233 builtin and then its argument prototype would still apply. */
30234char $ac_func ();
30235/* The GNU C library defines this for functions which it implements
30236 to always fail with ENOSYS. Some functions are actually named
30237 something starting with __ and the normal name is an alias. */
30238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30239choke me
30240#else
30241char (*f) () = $ac_func;
30242#endif
30243#ifdef __cplusplus
30244}
30245#endif
30246
30247int
30248main ()
30249{
30250return f != $ac_func;
30251 ;
30252 return 0;
30253}
30254_ACEOF
30255rm -f conftest.$ac_objext conftest$ac_exeext
30256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30257 (eval $ac_link) 2>conftest.er1
a848cd7e 30258 ac_status=$?
ac1cb8d3
VS
30259 grep -v '^ *+' conftest.er1 >conftest.err
30260 rm -f conftest.er1
30261 cat conftest.err >&5
a848cd7e
SC
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); } &&
4d4ff94c 30264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266 (eval $ac_try) 2>&5
30267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; } &&
30270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272 (eval $ac_try) 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
30276 eval "$as_ac_var=yes"
30277else
30278 echo "$as_me: failed program was:" >&5
30279sed 's/^/| /' conftest.$ac_ext >&5
30280
30281eval "$as_ac_var=no"
30282fi
ac1cb8d3
VS
30283rm -f conftest.err conftest.$ac_objext \
30284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30285fi
30286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30288if test `eval echo '${'$as_ac_var'}'` = yes; then
30289 cat >>confdefs.h <<_ACEOF
30290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30291_ACEOF
30292 cat >>confdefs.h <<\_ACEOF
30293#define HAVE_NANOSLEEP 1
30294_ACEOF
30295
30296else
30297
30298 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30299echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30300if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30302else
30303 ac_check_lib_save_LIBS=$LIBS
30304LIBS="-lposix4 $LIBS"
30305cat >conftest.$ac_ext <<_ACEOF
30306/* confdefs.h. */
30307_ACEOF
30308cat confdefs.h >>conftest.$ac_ext
30309cat >>conftest.$ac_ext <<_ACEOF
30310/* end confdefs.h. */
30311
30312/* Override any gcc2 internal prototype to avoid an error. */
30313#ifdef __cplusplus
30314extern "C"
30315#endif
30316/* We use char because int might match the return type of a gcc2
30317 builtin and then its argument prototype would still apply. */
30318char nanosleep ();
30319int
30320main ()
30321{
30322nanosleep ();
30323 ;
30324 return 0;
30325}
30326_ACEOF
30327rm -f conftest.$ac_objext conftest$ac_exeext
30328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30329 (eval $ac_link) 2>conftest.er1
a848cd7e 30330 ac_status=$?
ac1cb8d3
VS
30331 grep -v '^ *+' conftest.er1 >conftest.err
30332 rm -f conftest.er1
30333 cat conftest.err >&5
a848cd7e
SC
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); } &&
4d4ff94c 30336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338 (eval $ac_try) 2>&5
30339 ac_status=$?
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; } &&
30342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344 (eval $ac_try) 2>&5
30345 ac_status=$?
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; }; then
30348 ac_cv_lib_posix4_nanosleep=yes
30349else
30350 echo "$as_me: failed program was:" >&5
30351sed 's/^/| /' conftest.$ac_ext >&5
30352
30353ac_cv_lib_posix4_nanosleep=no
30354fi
ac1cb8d3
VS
30355rm -f conftest.err conftest.$ac_objext \
30356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30357LIBS=$ac_check_lib_save_LIBS
30358fi
30359echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30360echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30361if test $ac_cv_lib_posix4_nanosleep = yes; then
30362
30363 cat >>confdefs.h <<\_ACEOF
30364#define HAVE_NANOSLEEP 1
30365_ACEOF
30366
30367 POSIX4_LINK=" -lposix4"
30368
30369else
30370
30371
30372for ac_func in usleep
30373do
30374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30375echo "$as_me:$LINENO: checking for $ac_func" >&5
30376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30377if eval "test \"\${$as_ac_var+set}\" = set"; then
30378 echo $ECHO_N "(cached) $ECHO_C" >&6
30379else
30380 cat >conftest.$ac_ext <<_ACEOF
30381/* confdefs.h. */
30382_ACEOF
30383cat confdefs.h >>conftest.$ac_ext
30384cat >>conftest.$ac_ext <<_ACEOF
30385/* end confdefs.h. */
ac1cb8d3
VS
30386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30388#define $ac_func innocuous_$ac_func
30389
a848cd7e
SC
30390/* System header to define __stub macros and hopefully few prototypes,
30391 which can conflict with char $ac_func (); below.
30392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30393 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30394
a848cd7e
SC
30395#ifdef __STDC__
30396# include <limits.h>
30397#else
30398# include <assert.h>
30399#endif
ac1cb8d3
VS
30400
30401#undef $ac_func
30402
a848cd7e
SC
30403/* Override any gcc2 internal prototype to avoid an error. */
30404#ifdef __cplusplus
30405extern "C"
30406{
30407#endif
30408/* We use char because int might match the return type of a gcc2
30409 builtin and then its argument prototype would still apply. */
30410char $ac_func ();
30411/* The GNU C library defines this for functions which it implements
30412 to always fail with ENOSYS. Some functions are actually named
30413 something starting with __ and the normal name is an alias. */
30414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30415choke me
30416#else
30417char (*f) () = $ac_func;
30418#endif
30419#ifdef __cplusplus
30420}
30421#endif
30422
30423int
30424main ()
30425{
30426return f != $ac_func;
30427 ;
30428 return 0;
30429}
30430_ACEOF
30431rm -f conftest.$ac_objext conftest$ac_exeext
30432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30433 (eval $ac_link) 2>conftest.er1
a848cd7e 30434 ac_status=$?
ac1cb8d3
VS
30435 grep -v '^ *+' conftest.er1 >conftest.err
30436 rm -f conftest.er1
30437 cat conftest.err >&5
a848cd7e
SC
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); } &&
4d4ff94c 30440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; } &&
30446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448 (eval $ac_try) 2>&5
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; }; then
30452 eval "$as_ac_var=yes"
30453else
30454 echo "$as_me: failed program was:" >&5
30455sed 's/^/| /' conftest.$ac_ext >&5
30456
30457eval "$as_ac_var=no"
30458fi
ac1cb8d3
VS
30459rm -f conftest.err conftest.$ac_objext \
30460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30461fi
30462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30464if test `eval echo '${'$as_ac_var'}'` = yes; then
30465 cat >>confdefs.h <<_ACEOF
30466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30467_ACEOF
30468 cat >>confdefs.h <<\_ACEOF
30469#define HAVE_USLEEP 1
30470_ACEOF
30471
30472else
30473 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30474echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30475
30476fi
30477done
30478
30479
30480
30481fi
30482
30483
30484
30485fi
30486done
30487
30488fi
30489
30490
30491
30492for ac_func in uname gethostname
30493do
30494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30495echo "$as_me:$LINENO: checking for $ac_func" >&5
30496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30497if eval "test \"\${$as_ac_var+set}\" = set"; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
30499else
30500 cat >conftest.$ac_ext <<_ACEOF
30501/* confdefs.h. */
30502_ACEOF
30503cat confdefs.h >>conftest.$ac_ext
30504cat >>conftest.$ac_ext <<_ACEOF
30505/* end confdefs.h. */
ac1cb8d3
VS
30506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30508#define $ac_func innocuous_$ac_func
30509
a848cd7e
SC
30510/* System header to define __stub macros and hopefully few prototypes,
30511 which can conflict with char $ac_func (); below.
30512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30513 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30514
a848cd7e
SC
30515#ifdef __STDC__
30516# include <limits.h>
30517#else
30518# include <assert.h>
30519#endif
ac1cb8d3
VS
30520
30521#undef $ac_func
30522
a848cd7e
SC
30523/* Override any gcc2 internal prototype to avoid an error. */
30524#ifdef __cplusplus
30525extern "C"
30526{
30527#endif
30528/* We use char because int might match the return type of a gcc2
30529 builtin and then its argument prototype would still apply. */
30530char $ac_func ();
30531/* The GNU C library defines this for functions which it implements
30532 to always fail with ENOSYS. Some functions are actually named
30533 something starting with __ and the normal name is an alias. */
30534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30535choke me
30536#else
30537char (*f) () = $ac_func;
30538#endif
30539#ifdef __cplusplus
30540}
30541#endif
30542
30543int
30544main ()
30545{
30546return f != $ac_func;
30547 ;
30548 return 0;
30549}
30550_ACEOF
30551rm -f conftest.$ac_objext conftest$ac_exeext
30552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30553 (eval $ac_link) 2>conftest.er1
a848cd7e 30554 ac_status=$?
ac1cb8d3
VS
30555 grep -v '^ *+' conftest.er1 >conftest.err
30556 rm -f conftest.er1
30557 cat conftest.err >&5
a848cd7e
SC
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); } &&
4d4ff94c 30560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; } &&
30566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30568 (eval $ac_try) 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
30572 eval "$as_ac_var=yes"
30573else
30574 echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
30577eval "$as_ac_var=no"
30578fi
ac1cb8d3
VS
30579rm -f conftest.err conftest.$ac_objext \
30580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30581fi
30582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30584if test `eval echo '${'$as_ac_var'}'` = yes; then
30585 cat >>confdefs.h <<_ACEOF
30586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30587_ACEOF
30588 break
30589fi
30590done
30591
30592
30593
30594
30595ac_ext=cc
30596ac_cpp='$CXXCPP $CPPFLAGS'
30597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30600
30601
30602
30603for ac_func in strtok_r
30604do
30605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30606echo "$as_me:$LINENO: checking for $ac_func" >&5
30607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30608if eval "test \"\${$as_ac_var+set}\" = set"; then
30609 echo $ECHO_N "(cached) $ECHO_C" >&6
30610else
30611 cat >conftest.$ac_ext <<_ACEOF
30612/* confdefs.h. */
30613_ACEOF
30614cat confdefs.h >>conftest.$ac_ext
30615cat >>conftest.$ac_ext <<_ACEOF
30616/* end confdefs.h. */
ac1cb8d3
VS
30617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30619#define $ac_func innocuous_$ac_func
30620
a848cd7e
SC
30621/* System header to define __stub macros and hopefully few prototypes,
30622 which can conflict with char $ac_func (); below.
30623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30624 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30625
a848cd7e
SC
30626#ifdef __STDC__
30627# include <limits.h>
30628#else
30629# include <assert.h>
30630#endif
ac1cb8d3
VS
30631
30632#undef $ac_func
30633
a848cd7e
SC
30634/* Override any gcc2 internal prototype to avoid an error. */
30635#ifdef __cplusplus
30636extern "C"
30637{
30638#endif
30639/* We use char because int might match the return type of a gcc2
30640 builtin and then its argument prototype would still apply. */
30641char $ac_func ();
30642/* The GNU C library defines this for functions which it implements
30643 to always fail with ENOSYS. Some functions are actually named
30644 something starting with __ and the normal name is an alias. */
30645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30646choke me
30647#else
30648char (*f) () = $ac_func;
30649#endif
30650#ifdef __cplusplus
30651}
30652#endif
30653
30654int
30655main ()
30656{
30657return f != $ac_func;
30658 ;
30659 return 0;
30660}
30661_ACEOF
30662rm -f conftest.$ac_objext conftest$ac_exeext
30663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30664 (eval $ac_link) 2>conftest.er1
a848cd7e 30665 ac_status=$?
ac1cb8d3
VS
30666 grep -v '^ *+' conftest.er1 >conftest.err
30667 rm -f conftest.er1
30668 cat conftest.err >&5
a848cd7e
SC
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); } &&
4d4ff94c 30671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30674 ac_status=$?
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; } &&
30677 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679 (eval $ac_try) 2>&5
30680 ac_status=$?
30681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682 (exit $ac_status); }; }; then
30683 eval "$as_ac_var=yes"
30684else
30685 echo "$as_me: failed program was:" >&5
30686sed 's/^/| /' conftest.$ac_ext >&5
30687
30688eval "$as_ac_var=no"
30689fi
ac1cb8d3
VS
30690rm -f conftest.err conftest.$ac_objext \
30691 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30692fi
30693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30694echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30695if test `eval echo '${'$as_ac_var'}'` = yes; then
30696 cat >>confdefs.h <<_ACEOF
30697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698_ACEOF
30699
30700fi
30701done
30702
30703
30704ac_ext=c
30705ac_cpp='$CPP $CPPFLAGS'
30706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30708ac_compiler_gnu=$ac_cv_c_compiler_gnu
30709
30710
30711INET_LINK=
30712
30713for ac_func in inet_addr
30714do
30715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30716echo "$as_me:$LINENO: checking for $ac_func" >&5
30717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30718if eval "test \"\${$as_ac_var+set}\" = set"; then
30719 echo $ECHO_N "(cached) $ECHO_C" >&6
30720else
30721 cat >conftest.$ac_ext <<_ACEOF
30722/* confdefs.h. */
30723_ACEOF
30724cat confdefs.h >>conftest.$ac_ext
30725cat >>conftest.$ac_ext <<_ACEOF
30726/* end confdefs.h. */
ac1cb8d3
VS
30727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30729#define $ac_func innocuous_$ac_func
30730
a848cd7e
SC
30731/* System header to define __stub macros and hopefully few prototypes,
30732 which can conflict with char $ac_func (); below.
30733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30734 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30735
a848cd7e
SC
30736#ifdef __STDC__
30737# include <limits.h>
30738#else
30739# include <assert.h>
30740#endif
ac1cb8d3
VS
30741
30742#undef $ac_func
30743
a848cd7e
SC
30744/* Override any gcc2 internal prototype to avoid an error. */
30745#ifdef __cplusplus
30746extern "C"
30747{
30748#endif
30749/* We use char because int might match the return type of a gcc2
30750 builtin and then its argument prototype would still apply. */
30751char $ac_func ();
30752/* The GNU C library defines this for functions which it implements
30753 to always fail with ENOSYS. Some functions are actually named
30754 something starting with __ and the normal name is an alias. */
30755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30756choke me
30757#else
30758char (*f) () = $ac_func;
30759#endif
30760#ifdef __cplusplus
30761}
30762#endif
30763
30764int
30765main ()
30766{
30767return f != $ac_func;
30768 ;
30769 return 0;
30770}
30771_ACEOF
30772rm -f conftest.$ac_objext conftest$ac_exeext
30773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30774 (eval $ac_link) 2>conftest.er1
a848cd7e 30775 ac_status=$?
ac1cb8d3
VS
30776 grep -v '^ *+' conftest.er1 >conftest.err
30777 rm -f conftest.er1
30778 cat conftest.err >&5
a848cd7e
SC
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); } &&
4d4ff94c 30781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30783 (eval $ac_try) 2>&5
30784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; } &&
30787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30789 (eval $ac_try) 2>&5
30790 ac_status=$?
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); }; }; then
30793 eval "$as_ac_var=yes"
30794else
30795 echo "$as_me: failed program was:" >&5
30796sed 's/^/| /' conftest.$ac_ext >&5
30797
30798eval "$as_ac_var=no"
30799fi
ac1cb8d3
VS
30800rm -f conftest.err conftest.$ac_objext \
30801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30802fi
30803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30804echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30805if test `eval echo '${'$as_ac_var'}'` = yes; then
30806 cat >>confdefs.h <<_ACEOF
30807#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30808_ACEOF
30809 cat >>confdefs.h <<\_ACEOF
30810#define HAVE_INET_ADDR 1
30811_ACEOF
30812
30813else
30814
30815 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30816echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30817if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30818 echo $ECHO_N "(cached) $ECHO_C" >&6
30819else
30820 ac_check_lib_save_LIBS=$LIBS
30821LIBS="-lnsl $LIBS"
30822cat >conftest.$ac_ext <<_ACEOF
30823/* confdefs.h. */
30824_ACEOF
30825cat confdefs.h >>conftest.$ac_ext
30826cat >>conftest.$ac_ext <<_ACEOF
30827/* end confdefs.h. */
30828
30829/* Override any gcc2 internal prototype to avoid an error. */
30830#ifdef __cplusplus
30831extern "C"
30832#endif
30833/* We use char because int might match the return type of a gcc2
30834 builtin and then its argument prototype would still apply. */
30835char inet_addr ();
30836int
30837main ()
30838{
30839inet_addr ();
30840 ;
30841 return 0;
30842}
30843_ACEOF
30844rm -f conftest.$ac_objext conftest$ac_exeext
30845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30846 (eval $ac_link) 2>conftest.er1
a848cd7e 30847 ac_status=$?
ac1cb8d3
VS
30848 grep -v '^ *+' conftest.er1 >conftest.err
30849 rm -f conftest.er1
30850 cat conftest.err >&5
a848cd7e
SC
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); } &&
4d4ff94c 30853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30855 (eval $ac_try) 2>&5
30856 ac_status=$?
30857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858 (exit $ac_status); }; } &&
30859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861 (eval $ac_try) 2>&5
30862 ac_status=$?
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); }; }; then
30865 ac_cv_lib_nsl_inet_addr=yes
30866else
30867 echo "$as_me: failed program was:" >&5
30868sed 's/^/| /' conftest.$ac_ext >&5
30869
30870ac_cv_lib_nsl_inet_addr=no
30871fi
ac1cb8d3
VS
30872rm -f conftest.err conftest.$ac_objext \
30873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30874LIBS=$ac_check_lib_save_LIBS
30875fi
30876echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30877echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30878if test $ac_cv_lib_nsl_inet_addr = yes; then
30879 INET_LINK="nsl"
30880else
30881
30882 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
30883echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30884if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30885 echo $ECHO_N "(cached) $ECHO_C" >&6
30886else
30887 ac_check_lib_save_LIBS=$LIBS
30888LIBS="-lresolv $LIBS"
30889cat >conftest.$ac_ext <<_ACEOF
30890/* confdefs.h. */
30891_ACEOF
30892cat confdefs.h >>conftest.$ac_ext
30893cat >>conftest.$ac_ext <<_ACEOF
30894/* end confdefs.h. */
30895
30896/* Override any gcc2 internal prototype to avoid an error. */
30897#ifdef __cplusplus
30898extern "C"
30899#endif
30900/* We use char because int might match the return type of a gcc2
30901 builtin and then its argument prototype would still apply. */
30902char inet_addr ();
30903int
30904main ()
30905{
30906inet_addr ();
30907 ;
30908 return 0;
30909}
30910_ACEOF
30911rm -f conftest.$ac_objext conftest$ac_exeext
30912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30913 (eval $ac_link) 2>conftest.er1
a848cd7e 30914 ac_status=$?
ac1cb8d3
VS
30915 grep -v '^ *+' conftest.er1 >conftest.err
30916 rm -f conftest.er1
30917 cat conftest.err >&5
a848cd7e
SC
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); } &&
4d4ff94c 30920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30922 (eval $ac_try) 2>&5
30923 ac_status=$?
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); }; } &&
30926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; }; then
30932 ac_cv_lib_resolv_inet_addr=yes
30933else
30934 echo "$as_me: failed program was:" >&5
30935sed 's/^/| /' conftest.$ac_ext >&5
30936
30937ac_cv_lib_resolv_inet_addr=no
30938fi
ac1cb8d3
VS
30939rm -f conftest.err conftest.$ac_objext \
30940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30941LIBS=$ac_check_lib_save_LIBS
30942fi
30943echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30944echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30945if test $ac_cv_lib_resolv_inet_addr = yes; then
30946 INET_LINK="resolv"
30947else
30948
30949 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
30950echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30951if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30952 echo $ECHO_N "(cached) $ECHO_C" >&6
30953else
30954 ac_check_lib_save_LIBS=$LIBS
30955LIBS="-lsocket $LIBS"
30956cat >conftest.$ac_ext <<_ACEOF
30957/* confdefs.h. */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h. */
30962
30963/* Override any gcc2 internal prototype to avoid an error. */
30964#ifdef __cplusplus
30965extern "C"
30966#endif
30967/* We use char because int might match the return type of a gcc2
30968 builtin and then its argument prototype would still apply. */
30969char inet_addr ();
30970int
30971main ()
30972{
30973inet_addr ();
30974 ;
30975 return 0;
30976}
30977_ACEOF
30978rm -f conftest.$ac_objext conftest$ac_exeext
30979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30980 (eval $ac_link) 2>conftest.er1
a848cd7e 30981 ac_status=$?
ac1cb8d3
VS
30982 grep -v '^ *+' conftest.er1 >conftest.err
30983 rm -f conftest.er1
30984 cat conftest.err >&5
a848cd7e
SC
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } &&
4d4ff94c 30987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30990 ac_status=$?
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; } &&
30993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30995 (eval $ac_try) 2>&5
30996 ac_status=$?
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); }; }; then
30999 ac_cv_lib_socket_inet_addr=yes
31000else
31001 echo "$as_me: failed program was:" >&5
31002sed 's/^/| /' conftest.$ac_ext >&5
31003
31004ac_cv_lib_socket_inet_addr=no
31005fi
ac1cb8d3
VS
31006rm -f conftest.err conftest.$ac_objext \
31007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31008LIBS=$ac_check_lib_save_LIBS
31009fi
31010echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31011echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31012if test $ac_cv_lib_socket_inet_addr = yes; then
31013 INET_LINK="socket"
31014
31015fi
31016
31017
31018
31019fi
31020
31021
31022
31023fi
31024
31025
31026
31027fi
31028done
31029
31030
31031
31032for ac_func in inet_aton
31033do
31034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31035echo "$as_me:$LINENO: checking for $ac_func" >&5
31036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31037if eval "test \"\${$as_ac_var+set}\" = set"; then
31038 echo $ECHO_N "(cached) $ECHO_C" >&6
31039else
31040 cat >conftest.$ac_ext <<_ACEOF
31041/* confdefs.h. */
31042_ACEOF
31043cat confdefs.h >>conftest.$ac_ext
31044cat >>conftest.$ac_ext <<_ACEOF
31045/* end confdefs.h. */
ac1cb8d3
VS
31046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31048#define $ac_func innocuous_$ac_func
31049
a848cd7e
SC
31050/* System header to define __stub macros and hopefully few prototypes,
31051 which can conflict with char $ac_func (); below.
31052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31053 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31054
a848cd7e
SC
31055#ifdef __STDC__
31056# include <limits.h>
31057#else
31058# include <assert.h>
31059#endif
ac1cb8d3
VS
31060
31061#undef $ac_func
31062
a848cd7e
SC
31063/* Override any gcc2 internal prototype to avoid an error. */
31064#ifdef __cplusplus
31065extern "C"
31066{
31067#endif
31068/* We use char because int might match the return type of a gcc2
31069 builtin and then its argument prototype would still apply. */
31070char $ac_func ();
31071/* The GNU C library defines this for functions which it implements
31072 to always fail with ENOSYS. Some functions are actually named
31073 something starting with __ and the normal name is an alias. */
31074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31075choke me
31076#else
31077char (*f) () = $ac_func;
31078#endif
31079#ifdef __cplusplus
31080}
31081#endif
31082
31083int
31084main ()
31085{
31086return f != $ac_func;
31087 ;
31088 return 0;
31089}
31090_ACEOF
31091rm -f conftest.$ac_objext conftest$ac_exeext
31092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31093 (eval $ac_link) 2>conftest.er1
a848cd7e 31094 ac_status=$?
ac1cb8d3
VS
31095 grep -v '^ *+' conftest.er1 >conftest.err
31096 rm -f conftest.er1
31097 cat conftest.err >&5
a848cd7e
SC
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } &&
4d4ff94c 31100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; } &&
31106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31108 (eval $ac_try) 2>&5
31109 ac_status=$?
31110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111 (exit $ac_status); }; }; then
31112 eval "$as_ac_var=yes"
31113else
31114 echo "$as_me: failed program was:" >&5
31115sed 's/^/| /' conftest.$ac_ext >&5
31116
31117eval "$as_ac_var=no"
31118fi
ac1cb8d3
VS
31119rm -f conftest.err conftest.$ac_objext \
31120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31121fi
31122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31124if test `eval echo '${'$as_ac_var'}'` = yes; then
31125 cat >>confdefs.h <<_ACEOF
31126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31127_ACEOF
31128 cat >>confdefs.h <<\_ACEOF
31129#define HAVE_INET_ATON 1
31130_ACEOF
31131
31132else
31133
31134 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31135echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31136echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31137if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31138 echo $ECHO_N "(cached) $ECHO_C" >&6
31139else
31140 ac_check_lib_save_LIBS=$LIBS
31141LIBS="-l$INET_LINK $LIBS"
31142cat >conftest.$ac_ext <<_ACEOF
31143/* confdefs.h. */
31144_ACEOF
31145cat confdefs.h >>conftest.$ac_ext
31146cat >>conftest.$ac_ext <<_ACEOF
31147/* end confdefs.h. */
31148
31149/* Override any gcc2 internal prototype to avoid an error. */
31150#ifdef __cplusplus
31151extern "C"
31152#endif
31153/* We use char because int might match the return type of a gcc2
31154 builtin and then its argument prototype would still apply. */
31155char inet_aton ();
31156int
31157main ()
31158{
31159inet_aton ();
31160 ;
31161 return 0;
31162}
31163_ACEOF
31164rm -f conftest.$ac_objext conftest$ac_exeext
31165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31166 (eval $ac_link) 2>conftest.er1
a848cd7e 31167 ac_status=$?
ac1cb8d3
VS
31168 grep -v '^ *+' conftest.er1 >conftest.err
31169 rm -f conftest.er1
31170 cat conftest.err >&5
a848cd7e
SC
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); } &&
4d4ff94c 31173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31175 (eval $ac_try) 2>&5
31176 ac_status=$?
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); }; } &&
31179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31181 (eval $ac_try) 2>&5
31182 ac_status=$?
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; }; then
31185 eval "$as_ac_Lib=yes"
31186else
31187 echo "$as_me: failed program was:" >&5
31188sed 's/^/| /' conftest.$ac_ext >&5
31189
31190eval "$as_ac_Lib=no"
31191fi
ac1cb8d3
VS
31192rm -f conftest.err conftest.$ac_objext \
31193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31194LIBS=$ac_check_lib_save_LIBS
31195fi
31196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31197echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31198if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31199 cat >>confdefs.h <<\_ACEOF
31200#define HAVE_INET_ATON 1
31201_ACEOF
31202
31203fi
31204
31205
31206fi
31207done
31208
31209
31210if test "x$INET_LINK" != "x"; then
31211 cat >>confdefs.h <<\_ACEOF
31212#define HAVE_INET_ADDR 1
31213_ACEOF
31214
31215 INET_LINK=" -l$INET_LINK"
31216fi
31217
31218fi
31219
31220
31221
31222EXTRALIBS_ESD=
31223echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31224echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31225if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31226 echo $ECHO_N "(cached) $ECHO_C" >&6
31227else
31228 ac_check_lib_save_LIBS=$LIBS
31229LIBS="-lesd $LIBS"
31230cat >conftest.$ac_ext <<_ACEOF
31231/* confdefs.h. */
31232_ACEOF
31233cat confdefs.h >>conftest.$ac_ext
31234cat >>conftest.$ac_ext <<_ACEOF
31235/* end confdefs.h. */
31236
31237/* Override any gcc2 internal prototype to avoid an error. */
31238#ifdef __cplusplus
31239extern "C"
31240#endif
31241/* We use char because int might match the return type of a gcc2
31242 builtin and then its argument prototype would still apply. */
31243char esd_close ();
31244int
31245main ()
31246{
31247esd_close ();
31248 ;
31249 return 0;
31250}
31251_ACEOF
31252rm -f conftest.$ac_objext conftest$ac_exeext
31253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31254 (eval $ac_link) 2>conftest.er1
a848cd7e 31255 ac_status=$?
ac1cb8d3
VS
31256 grep -v '^ *+' conftest.er1 >conftest.err
31257 rm -f conftest.er1
31258 cat conftest.err >&5
a848cd7e
SC
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); } &&
4d4ff94c 31261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31263 (eval $ac_try) 2>&5
31264 ac_status=$?
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); }; } &&
31267 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
31273 ac_cv_lib_esd_esd_close=yes
31274else
31275 echo "$as_me: failed program was:" >&5
31276sed 's/^/| /' conftest.$ac_ext >&5
31277
31278ac_cv_lib_esd_esd_close=no
31279fi
ac1cb8d3
VS
31280rm -f conftest.err conftest.$ac_objext \
31281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31282LIBS=$ac_check_lib_save_LIBS
31283fi
31284echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31285echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31286if test $ac_cv_lib_esd_esd_close = yes; then
31287
31288
31289for ac_header in esd.h
31290do
31291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31292if eval "test \"\${$as_ac_Header+set}\" = set"; then
31293 echo "$as_me:$LINENO: checking for $ac_header" >&5
31294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31295if eval "test \"\${$as_ac_Header+set}\" = set"; then
31296 echo $ECHO_N "(cached) $ECHO_C" >&6
31297fi
31298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31300else
31301 # Is the header compilable?
31302echo "$as_me:$LINENO: checking $ac_header usability" >&5
31303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31304cat >conftest.$ac_ext <<_ACEOF
31305/* confdefs.h. */
31306_ACEOF
31307cat confdefs.h >>conftest.$ac_ext
31308cat >>conftest.$ac_ext <<_ACEOF
31309/* end confdefs.h. */
31310$ac_includes_default
31311#include <$ac_header>
31312_ACEOF
31313rm -f conftest.$ac_objext
31314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31315 (eval $ac_compile) 2>conftest.er1
a848cd7e 31316 ac_status=$?
ac1cb8d3
VS
31317 grep -v '^ *+' conftest.er1 >conftest.err
31318 rm -f conftest.er1
31319 cat conftest.err >&5
a848cd7e
SC
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); } &&
4d4ff94c 31322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31324 (eval $ac_try) 2>&5
31325 ac_status=$?
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); }; } &&
31328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31330 (eval $ac_try) 2>&5
31331 ac_status=$?
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; }; then
31334 ac_header_compiler=yes
31335else
31336 echo "$as_me: failed program was:" >&5
31337sed 's/^/| /' conftest.$ac_ext >&5
31338
31339ac_header_compiler=no
31340fi
ac1cb8d3 31341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31343echo "${ECHO_T}$ac_header_compiler" >&6
31344
31345# Is the header present?
31346echo "$as_me:$LINENO: checking $ac_header presence" >&5
31347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31348cat >conftest.$ac_ext <<_ACEOF
31349/* confdefs.h. */
31350_ACEOF
31351cat confdefs.h >>conftest.$ac_ext
31352cat >>conftest.$ac_ext <<_ACEOF
31353/* end confdefs.h. */
31354#include <$ac_header>
31355_ACEOF
31356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31358 ac_status=$?
31359 grep -v '^ *+' conftest.er1 >conftest.err
31360 rm -f conftest.er1
31361 cat conftest.err >&5
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); } >/dev/null; then
31364 if test -s conftest.err; then
31365 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31367 else
31368 ac_cpp_err=
31369 fi
31370else
31371 ac_cpp_err=yes
31372fi
31373if test -z "$ac_cpp_err"; then
31374 ac_header_preproc=yes
31375else
31376 echo "$as_me: failed program was:" >&5
31377sed 's/^/| /' conftest.$ac_ext >&5
31378
31379 ac_header_preproc=no
31380fi
31381rm -f conftest.err conftest.$ac_ext
31382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31383echo "${ECHO_T}$ac_header_preproc" >&6
31384
31385# So? What about this header?
ac1cb8d3
VS
31386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31387 yes:no: )
a848cd7e
SC
31388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31392 ac_header_preproc=yes
a848cd7e 31393 ;;
ac1cb8d3 31394 no:yes:* )
a848cd7e
SC
31395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31398echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31402echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31407 (
31408 cat <<\_ASBOX
ac1cb8d3
VS
31409## ----------------------------------------- ##
31410## Report this to wx-dev@lists.wxwidgets.org ##
31411## ----------------------------------------- ##
a848cd7e
SC
31412_ASBOX
31413 ) |
31414 sed "s/^/$as_me: WARNING: /" >&2
31415 ;;
31416esac
31417echo "$as_me:$LINENO: checking for $ac_header" >&5
31418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31419if eval "test \"\${$as_ac_Header+set}\" = set"; then
31420 echo $ECHO_N "(cached) $ECHO_C" >&6
31421else
ac1cb8d3 31422 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31423fi
31424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31426
31427fi
31428if test `eval echo '${'$as_ac_Header'}'` = yes; then
31429 cat >>confdefs.h <<_ACEOF
31430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31431_ACEOF
31432
31433 EXTRALIBS_ESD="-lesd"
31434
31435fi
31436
31437done
31438
31439
31440fi
31441
31442
31443
31444echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31445echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31446cat >conftest.$ac_ext <<_ACEOF
31447/* confdefs.h. */
31448_ACEOF
31449cat confdefs.h >>conftest.$ac_ext
31450cat >>conftest.$ac_ext <<_ACEOF
31451/* end confdefs.h. */
31452#ifdef __linux__
31453 #include <linux/cdrom.h>
31454 #else
31455 /* For Solaris */
31456 #include <sys/cdio.h>
31457 #endif
31458
31459int
31460main ()
31461{
31462struct cdrom_tocentry entry, old_entry;
31463 ;
31464 return 0;
31465}
31466_ACEOF
31467rm -f conftest.$ac_objext
31468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31469 (eval $ac_compile) 2>conftest.er1
a848cd7e 31470 ac_status=$?
ac1cb8d3
VS
31471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
a848cd7e
SC
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
4d4ff94c 31476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31478 (eval $ac_try) 2>&5
31479 ac_status=$?
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); }; } &&
31482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484 (eval $ac_try) 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; }; then
31488 echo "$as_me:$LINENO: result: yes" >&5
31489echo "${ECHO_T}yes" >&6
31490 cat >>confdefs.h <<\_ACEOF
31491#define HAVE_KNOWN_CDROM_INTERFACE 1
31492_ACEOF
31493
31494else
31495 echo "$as_me: failed program was:" >&5
31496sed 's/^/| /' conftest.$ac_ext >&5
31497
31498echo "$as_me:$LINENO: result: no" >&5
31499echo "${ECHO_T}no" >&6
31500fi
ac1cb8d3 31501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31502
31503
31504cat >confcache <<\_ACEOF
31505# This file is a shell script that caches the results of configure
31506# tests run on this system so they can be shared between configure
31507# scripts and configure runs, see configure's option --config-cache.
31508# It is not useful on other systems. If it contains results you don't
31509# want to keep, you may remove or edit it.
31510#
31511# config.status only pays attention to the cache file if you give it
31512# the --recheck option to rerun configure.
31513#
31514# `ac_cv_env_foo' variables (set or unset) will be overridden when
31515# loading this file, other *unset* `ac_cv_foo' will be assigned the
31516# following values.
31517
31518_ACEOF
31519
31520# The following way of writing the cache mishandles newlines in values,
31521# but we know of no workaround that is simple, portable, and efficient.
31522# So, don't put newlines in cache variables' values.
31523# Ultrix sh set writes to stderr and can't be redirected directly,
31524# and sets the high bit in the cache file unless we assign to the vars.
31525{
31526 (set) 2>&1 |
31527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31528 *ac_space=\ *)
31529 # `set' does not quote correctly, so add quotes (double-quote
31530 # substitution turns \\\\ into \\, and sed turns \\ into \).
31531 sed -n \
ac1cb8d3
VS
31532 "s/'/'\\\\''/g;
31533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31534 ;;
31535 *)
31536 # `set' quotes correctly as required by POSIX, so do not add quotes.
31537 sed -n \
ac1cb8d3 31538 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31539 ;;
31540 esac;
31541} |
31542 sed '
31543 t clear
31544 : clear
31545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31546 t end
31547 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31548 : end' >>confcache
31549if diff $cache_file confcache >/dev/null 2>&1; then :; else
31550 if test -w $cache_file; then
31551 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31552 cat confcache >$cache_file
31553 else
31554 echo "not updating unwritable cache $cache_file"
31555 fi
31556fi
31557rm -f confcache
31558
31559
31560CPP_MT_FLAG=
31561if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31562
31563
31564 THREADS_LINK=
31565 THREADS_CFLAGS=
31566
31567 if test "$wxUSE_THREADS" = "yes" ; then
31568 if test "$USE_BEOS" = 1; then
31569 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31570echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31571 wxUSE_THREADS="no"
31572 fi
31573 fi
31574
31575 if test "$wxUSE_THREADS" = "yes" ; then
31576
31577
31578 THREAD_OPTS="-pthread"
31579 case "${host}" in
31580 *-*-solaris2* | *-*-sunos4* )
31581 if test "x$GCC" = "xyes"; then
31582 THREAD_OPTS="-pthreads $THREAD_OPTS"
31583 else
31584 THREAD_OPTS="-mt $THREAD_OPTS"
31585 fi
31586 ;;
31587 *-*-freebsd*)
31588 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31589 ;;
31590 *-*-darwin* | *-*-cygwin* )
31591 THREAD_OPTS=""
31592 ;;
31593 *-*-aix*)
31594 THREAD_OPTS="pthreads"
31595 ;;
31596 *-hp-hpux* )
31597 if test "x$GCC" != "xyes"; then
31598 THREAD_OPTS=""
31599 fi
31600 ;;
31601
31602 *-*-irix* )
31603 if test "x$GCC" = "xyes"; then
31604 THREAD_OPTS=""
31605 fi
31606 ;;
31607
31608 *-*-*UnixWare*)
31609 if test "x$GCC" != "xyes"; then
31610 THREAD_OPTS="-Ethread"
31611 fi
31612 ;;
31613 esac
31614
31615 THREAD_OPTS="$THREAD_OPTS pthread none"
31616
31617 THREADS_OK=no
31618 for flag in $THREAD_OPTS; do
31619 case $flag in
31620 none)
31621 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31622echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31623 ;;
31624
31625 -*)
31626 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31627echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31628 THREADS_CFLAGS="$flag"
31629 ;;
31630
31631 *)
31632 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31633echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31634 THREADS_LINK="-l$flag"
31635 ;;
31636 esac
31637
31638 save_LIBS="$LIBS"
31639 save_CFLAGS="$CFLAGS"
31640 LIBS="$THREADS_LINK $LIBS"
31641 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31642
31643 cat >conftest.$ac_ext <<_ACEOF
31644/* confdefs.h. */
31645_ACEOF
31646cat confdefs.h >>conftest.$ac_ext
31647cat >>conftest.$ac_ext <<_ACEOF
31648/* end confdefs.h. */
31649#include <pthread.h>
31650int
31651main ()
31652{
31653pthread_create(0,0,0,0);
31654 ;
31655 return 0;
31656}
31657_ACEOF
31658rm -f conftest.$ac_objext conftest$ac_exeext
31659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31660 (eval $ac_link) 2>conftest.er1
a848cd7e 31661 ac_status=$?
ac1cb8d3
VS
31662 grep -v '^ *+' conftest.er1 >conftest.err
31663 rm -f conftest.er1
31664 cat conftest.err >&5
a848cd7e
SC
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); } &&
4d4ff94c 31667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31670 ac_status=$?
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; } &&
31673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675 (eval $ac_try) 2>&5
31676 ac_status=$?
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; }; then
31679 THREADS_OK=yes
31680else
31681 echo "$as_me: failed program was:" >&5
31682sed 's/^/| /' conftest.$ac_ext >&5
31683
31684fi
ac1cb8d3
VS
31685rm -f conftest.err conftest.$ac_objext \
31686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31687
31688 LIBS="$save_LIBS"
31689 CFLAGS="$save_CFLAGS"
31690
31691 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31692echo "${ECHO_T}$THREADS_OK" >&6
31693 if test "x$THREADS_OK" = "xyes"; then
31694 break;
31695 fi
31696
31697 THREADS_LINK=""
31698 THREADS_CFLAGS=""
31699 done
31700
31701 if test "x$THREADS_OK" != "xyes"; then
31702 wxUSE_THREADS=no
31703 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31704echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31705 else
31706 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31707 LIBS="$THREADS_LINK $LIBS"
31708
31709 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31710echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31711 flag=no
31712 case "${host}" in
31713 *-aix*)
31714 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31715 flag="-D_THREAD_SAFE"
31716 ;;
31717 *-freebsd*)
31718 flag="-D_THREAD_SAFE"
31719 ;;
31720 *-hp-hpux* )
31721 flag="-D_REENTRANT"
31722 if test "x$GCC" != "xyes"; then
31723 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31724
31725 LIBS="$LIBS -lcma"
a848cd7e
SC
31726 fi
31727 ;;
31728 *solaris* | alpha*-osf*)
31729 flag="-D_REENTRANT"
31730 ;;
31731 esac
31732 echo "$as_me:$LINENO: result: ${flag}" >&5
31733echo "${ECHO_T}${flag}" >&6
31734 if test "x$flag" != xno; then
31735 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31736 fi
31737
31738 if test "x$THREADS_CFLAGS" != "x"; then
31739 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31740 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31741 fi
31742 fi
31743 fi
31744
31745 if test "$wxUSE_THREADS" = "yes" ; then
31746
31747for ac_func in thr_setconcurrency
31748do
31749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31750echo "$as_me:$LINENO: checking for $ac_func" >&5
31751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31752if eval "test \"\${$as_ac_var+set}\" = set"; then
31753 echo $ECHO_N "(cached) $ECHO_C" >&6
31754else
31755 cat >conftest.$ac_ext <<_ACEOF
31756/* confdefs.h. */
31757_ACEOF
31758cat confdefs.h >>conftest.$ac_ext
31759cat >>conftest.$ac_ext <<_ACEOF
31760/* end confdefs.h. */
ac1cb8d3
VS
31761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31763#define $ac_func innocuous_$ac_func
31764
a848cd7e
SC
31765/* System header to define __stub macros and hopefully few prototypes,
31766 which can conflict with char $ac_func (); below.
31767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31768 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31769
a848cd7e
SC
31770#ifdef __STDC__
31771# include <limits.h>
31772#else
31773# include <assert.h>
31774#endif
ac1cb8d3
VS
31775
31776#undef $ac_func
31777
a848cd7e
SC
31778/* Override any gcc2 internal prototype to avoid an error. */
31779#ifdef __cplusplus
31780extern "C"
31781{
31782#endif
31783/* We use char because int might match the return type of a gcc2
31784 builtin and then its argument prototype would still apply. */
31785char $ac_func ();
31786/* The GNU C library defines this for functions which it implements
31787 to always fail with ENOSYS. Some functions are actually named
31788 something starting with __ and the normal name is an alias. */
31789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31790choke me
31791#else
31792char (*f) () = $ac_func;
31793#endif
31794#ifdef __cplusplus
31795}
31796#endif
31797
31798int
31799main ()
31800{
31801return f != $ac_func;
31802 ;
31803 return 0;
31804}
31805_ACEOF
31806rm -f conftest.$ac_objext conftest$ac_exeext
31807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31808 (eval $ac_link) 2>conftest.er1
a848cd7e 31809 ac_status=$?
ac1cb8d3
VS
31810 grep -v '^ *+' conftest.er1 >conftest.err
31811 rm -f conftest.er1
31812 cat conftest.err >&5
a848cd7e
SC
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); } &&
4d4ff94c 31815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31818 ac_status=$?
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; } &&
31821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31824 ac_status=$?
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; }; then
31827 eval "$as_ac_var=yes"
31828else
31829 echo "$as_me: failed program was:" >&5
31830sed 's/^/| /' conftest.$ac_ext >&5
31831
31832eval "$as_ac_var=no"
31833fi
ac1cb8d3
VS
31834rm -f conftest.err conftest.$ac_objext \
31835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31836fi
31837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31839if test `eval echo '${'$as_ac_var'}'` = yes; then
31840 cat >>confdefs.h <<_ACEOF
31841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31842_ACEOF
31843
31844fi
31845done
31846
31847
31848
31849for ac_header in sched.h
31850do
31851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31852if eval "test \"\${$as_ac_Header+set}\" = set"; then
31853 echo "$as_me:$LINENO: checking for $ac_header" >&5
31854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31855if eval "test \"\${$as_ac_Header+set}\" = set"; then
31856 echo $ECHO_N "(cached) $ECHO_C" >&6
31857fi
31858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31860else
31861 # Is the header compilable?
31862echo "$as_me:$LINENO: checking $ac_header usability" >&5
31863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31864cat >conftest.$ac_ext <<_ACEOF
31865/* confdefs.h. */
31866_ACEOF
31867cat confdefs.h >>conftest.$ac_ext
31868cat >>conftest.$ac_ext <<_ACEOF
31869/* end confdefs.h. */
31870$ac_includes_default
31871#include <$ac_header>
31872_ACEOF
31873rm -f conftest.$ac_objext
31874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31875 (eval $ac_compile) 2>conftest.er1
a848cd7e 31876 ac_status=$?
ac1cb8d3
VS
31877 grep -v '^ *+' conftest.er1 >conftest.err
31878 rm -f conftest.er1
31879 cat conftest.err >&5
a848cd7e
SC
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); } &&
4d4ff94c 31882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31885 ac_status=$?
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
31894 ac_header_compiler=yes
31895else
31896 echo "$as_me: failed program was:" >&5
31897sed 's/^/| /' conftest.$ac_ext >&5
31898
31899ac_header_compiler=no
31900fi
ac1cb8d3 31901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31903echo "${ECHO_T}$ac_header_compiler" >&6
31904
31905# Is the header present?
31906echo "$as_me:$LINENO: checking $ac_header presence" >&5
31907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31908cat >conftest.$ac_ext <<_ACEOF
31909/* confdefs.h. */
31910_ACEOF
31911cat confdefs.h >>conftest.$ac_ext
31912cat >>conftest.$ac_ext <<_ACEOF
31913/* end confdefs.h. */
31914#include <$ac_header>
31915_ACEOF
31916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31918 ac_status=$?
31919 grep -v '^ *+' conftest.er1 >conftest.err
31920 rm -f conftest.er1
31921 cat conftest.err >&5
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); } >/dev/null; then
31924 if test -s conftest.err; then
31925 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31927 else
31928 ac_cpp_err=
31929 fi
31930else
31931 ac_cpp_err=yes
31932fi
31933if test -z "$ac_cpp_err"; then
31934 ac_header_preproc=yes
31935else
31936 echo "$as_me: failed program was:" >&5
31937sed 's/^/| /' conftest.$ac_ext >&5
31938
31939 ac_header_preproc=no
31940fi
31941rm -f conftest.err conftest.$ac_ext
31942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31943echo "${ECHO_T}$ac_header_preproc" >&6
31944
31945# So? What about this header?
ac1cb8d3
VS
31946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31947 yes:no: )
a848cd7e
SC
31948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31952 ac_header_preproc=yes
a848cd7e 31953 ;;
ac1cb8d3 31954 no:yes:* )
a848cd7e
SC
31955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31967 (
31968 cat <<\_ASBOX
ac1cb8d3
VS
31969## ----------------------------------------- ##
31970## Report this to wx-dev@lists.wxwidgets.org ##
31971## ----------------------------------------- ##
a848cd7e
SC
31972_ASBOX
31973 ) |
31974 sed "s/^/$as_me: WARNING: /" >&2
31975 ;;
31976esac
31977echo "$as_me:$LINENO: checking for $ac_header" >&5
31978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31979if eval "test \"\${$as_ac_Header+set}\" = set"; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981else
ac1cb8d3 31982 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31983fi
31984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31986
31987fi
31988if test `eval echo '${'$as_ac_Header'}'` = yes; then
31989 cat >>confdefs.h <<_ACEOF
31990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31991_ACEOF
31992
31993fi
31994
31995done
31996
31997 if test "$ac_cv_header_sched_h" = "yes"; then
31998 echo "$as_me:$LINENO: checking for sched_yield" >&5
31999echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32000if test "${ac_cv_func_sched_yield+set}" = set; then
32001 echo $ECHO_N "(cached) $ECHO_C" >&6
32002else
32003 cat >conftest.$ac_ext <<_ACEOF
32004/* confdefs.h. */
32005_ACEOF
32006cat confdefs.h >>conftest.$ac_ext
32007cat >>conftest.$ac_ext <<_ACEOF
32008/* end confdefs.h. */
ac1cb8d3
VS
32009/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32011#define sched_yield innocuous_sched_yield
32012
a848cd7e
SC
32013/* System header to define __stub macros and hopefully few prototypes,
32014 which can conflict with char sched_yield (); below.
32015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32017
a848cd7e
SC
32018#ifdef __STDC__
32019# include <limits.h>
32020#else
32021# include <assert.h>
32022#endif
ac1cb8d3
VS
32023
32024#undef sched_yield
32025
a848cd7e
SC
32026/* Override any gcc2 internal prototype to avoid an error. */
32027#ifdef __cplusplus
32028extern "C"
32029{
32030#endif
32031/* We use char because int might match the return type of a gcc2
32032 builtin and then its argument prototype would still apply. */
32033char sched_yield ();
32034/* The GNU C library defines this for functions which it implements
32035 to always fail with ENOSYS. Some functions are actually named
32036 something starting with __ and the normal name is an alias. */
32037#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32038choke me
32039#else
32040char (*f) () = sched_yield;
32041#endif
32042#ifdef __cplusplus
32043}
32044#endif
32045
32046int
32047main ()
32048{
32049return f != sched_yield;
32050 ;
32051 return 0;
32052}
32053_ACEOF
32054rm -f conftest.$ac_objext conftest$ac_exeext
32055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32056 (eval $ac_link) 2>conftest.er1
a848cd7e 32057 ac_status=$?
ac1cb8d3
VS
32058 grep -v '^ *+' conftest.er1 >conftest.err
32059 rm -f conftest.er1
32060 cat conftest.err >&5
a848cd7e
SC
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } &&
4d4ff94c 32063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071 (eval $ac_try) 2>&5
32072 ac_status=$?
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; }; then
32075 ac_cv_func_sched_yield=yes
32076else
32077 echo "$as_me: failed program was:" >&5
32078sed 's/^/| /' conftest.$ac_ext >&5
32079
32080ac_cv_func_sched_yield=no
32081fi
ac1cb8d3
VS
32082rm -f conftest.err conftest.$ac_objext \
32083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32084fi
32085echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32086echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32087if test $ac_cv_func_sched_yield = yes; then
32088 cat >>confdefs.h <<\_ACEOF
32089#define HAVE_SCHED_YIELD 1
32090_ACEOF
32091
32092else
32093
32094 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32095echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32096if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32098else
32099 ac_check_lib_save_LIBS=$LIBS
32100LIBS="-lposix4 $LIBS"
32101cat >conftest.$ac_ext <<_ACEOF
32102/* confdefs.h. */
32103_ACEOF
32104cat confdefs.h >>conftest.$ac_ext
32105cat >>conftest.$ac_ext <<_ACEOF
32106/* end confdefs.h. */
32107
32108/* Override any gcc2 internal prototype to avoid an error. */
32109#ifdef __cplusplus
32110extern "C"
32111#endif
32112/* We use char because int might match the return type of a gcc2
32113 builtin and then its argument prototype would still apply. */
32114char sched_yield ();
32115int
32116main ()
32117{
32118sched_yield ();
32119 ;
32120 return 0;
32121}
32122_ACEOF
32123rm -f conftest.$ac_objext conftest$ac_exeext
32124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32125 (eval $ac_link) 2>conftest.er1
a848cd7e 32126 ac_status=$?
ac1cb8d3
VS
32127 grep -v '^ *+' conftest.er1 >conftest.err
32128 rm -f conftest.er1
32129 cat conftest.err >&5
a848cd7e
SC
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); } &&
4d4ff94c 32132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32134 (eval $ac_try) 2>&5
32135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); }; } &&
32138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32141 ac_status=$?
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; }; then
32144 ac_cv_lib_posix4_sched_yield=yes
32145else
32146 echo "$as_me: failed program was:" >&5
32147sed 's/^/| /' conftest.$ac_ext >&5
32148
32149ac_cv_lib_posix4_sched_yield=no
32150fi
ac1cb8d3
VS
32151rm -f conftest.err conftest.$ac_objext \
32152 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32153LIBS=$ac_check_lib_save_LIBS
32154fi
32155echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32156echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32157if test $ac_cv_lib_posix4_sched_yield = yes; then
32158 cat >>confdefs.h <<\_ACEOF
32159#define HAVE_SCHED_YIELD 1
32160_ACEOF
32161 POSIX4_LINK=" -lposix4"
32162else
32163 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32164echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32165
32166fi
32167
32168
32169
32170fi
32171
32172 fi
32173
32174 HAVE_PRIOR_FUNCS=0
32175 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32176echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32177if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32178 echo $ECHO_N "(cached) $ECHO_C" >&6
32179else
32180 cat >conftest.$ac_ext <<_ACEOF
32181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
ac1cb8d3
VS
32186/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32188#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32189
a848cd7e
SC
32190/* System header to define __stub macros and hopefully few prototypes,
32191 which can conflict with char pthread_attr_getschedpolicy (); below.
32192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32193 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32194
a848cd7e
SC
32195#ifdef __STDC__
32196# include <limits.h>
32197#else
32198# include <assert.h>
32199#endif
ac1cb8d3
VS
32200
32201#undef pthread_attr_getschedpolicy
32202
a848cd7e
SC
32203/* Override any gcc2 internal prototype to avoid an error. */
32204#ifdef __cplusplus
32205extern "C"
32206{
32207#endif
32208/* We use char because int might match the return type of a gcc2
32209 builtin and then its argument prototype would still apply. */
32210char pthread_attr_getschedpolicy ();
32211/* The GNU C library defines this for functions which it implements
32212 to always fail with ENOSYS. Some functions are actually named
32213 something starting with __ and the normal name is an alias. */
32214#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32215choke me
32216#else
32217char (*f) () = pthread_attr_getschedpolicy;
32218#endif
32219#ifdef __cplusplus
32220}
32221#endif
32222
32223int
32224main ()
32225{
32226return f != pthread_attr_getschedpolicy;
32227 ;
32228 return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext conftest$ac_exeext
32232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32233 (eval $ac_link) 2>conftest.er1
a848cd7e 32234 ac_status=$?
ac1cb8d3
VS
32235 grep -v '^ *+' conftest.er1 >conftest.err
32236 rm -f conftest.er1
32237 cat conftest.err >&5
a848cd7e
SC
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); } &&
4d4ff94c 32240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242 (eval $ac_try) 2>&5
32243 ac_status=$?
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); }; } &&
32246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32248 (eval $ac_try) 2>&5
32249 ac_status=$?
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); }; }; then
32252 ac_cv_func_pthread_attr_getschedpolicy=yes
32253else
32254 echo "$as_me: failed program was:" >&5
32255sed 's/^/| /' conftest.$ac_ext >&5
32256
32257ac_cv_func_pthread_attr_getschedpolicy=no
32258fi
ac1cb8d3
VS
32259rm -f conftest.err conftest.$ac_objext \
32260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32261fi
32262echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32263echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32264if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32265 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32266echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32267if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32269else
32270 cat >conftest.$ac_ext <<_ACEOF
32271/* confdefs.h. */
32272_ACEOF
32273cat confdefs.h >>conftest.$ac_ext
32274cat >>conftest.$ac_ext <<_ACEOF
32275/* end confdefs.h. */
ac1cb8d3
VS
32276/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32278#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32279
a848cd7e
SC
32280/* System header to define __stub macros and hopefully few prototypes,
32281 which can conflict with char pthread_attr_setschedparam (); below.
32282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32283 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32284
a848cd7e
SC
32285#ifdef __STDC__
32286# include <limits.h>
32287#else
32288# include <assert.h>
32289#endif
ac1cb8d3
VS
32290
32291#undef pthread_attr_setschedparam
32292
a848cd7e
SC
32293/* Override any gcc2 internal prototype to avoid an error. */
32294#ifdef __cplusplus
32295extern "C"
32296{
32297#endif
32298/* We use char because int might match the return type of a gcc2
32299 builtin and then its argument prototype would still apply. */
32300char pthread_attr_setschedparam ();
32301/* The GNU C library defines this for functions which it implements
32302 to always fail with ENOSYS. Some functions are actually named
32303 something starting with __ and the normal name is an alias. */
32304#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32305choke me
32306#else
32307char (*f) () = pthread_attr_setschedparam;
32308#endif
32309#ifdef __cplusplus
32310}
32311#endif
32312
32313int
32314main ()
32315{
32316return f != pthread_attr_setschedparam;
32317 ;
32318 return 0;
32319}
32320_ACEOF
32321rm -f conftest.$ac_objext conftest$ac_exeext
32322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32323 (eval $ac_link) 2>conftest.er1
a848cd7e 32324 ac_status=$?
ac1cb8d3
VS
32325 grep -v '^ *+' conftest.er1 >conftest.err
32326 rm -f conftest.er1
32327 cat conftest.err >&5
a848cd7e
SC
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } &&
4d4ff94c 32330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32333 ac_status=$?
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; } &&
32336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338 (eval $ac_try) 2>&5
32339 ac_status=$?
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_cv_func_pthread_attr_setschedparam=yes
32343else
32344 echo "$as_me: failed program was:" >&5
32345sed 's/^/| /' conftest.$ac_ext >&5
32346
32347ac_cv_func_pthread_attr_setschedparam=no
32348fi
ac1cb8d3
VS
32349rm -f conftest.err conftest.$ac_objext \
32350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32351fi
32352echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32353echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32354if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32355 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32356echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32357if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32358 echo $ECHO_N "(cached) $ECHO_C" >&6
32359else
32360 cat >conftest.$ac_ext <<_ACEOF
32361/* confdefs.h. */
32362_ACEOF
32363cat confdefs.h >>conftest.$ac_ext
32364cat >>conftest.$ac_ext <<_ACEOF
32365/* end confdefs.h. */
ac1cb8d3
VS
32366/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32368#define sched_get_priority_max innocuous_sched_get_priority_max
32369
a848cd7e
SC
32370/* System header to define __stub macros and hopefully few prototypes,
32371 which can conflict with char sched_get_priority_max (); below.
32372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32373 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32374
a848cd7e
SC
32375#ifdef __STDC__
32376# include <limits.h>
32377#else
32378# include <assert.h>
32379#endif
ac1cb8d3
VS
32380
32381#undef sched_get_priority_max
32382
a848cd7e
SC
32383/* Override any gcc2 internal prototype to avoid an error. */
32384#ifdef __cplusplus
32385extern "C"
32386{
32387#endif
32388/* We use char because int might match the return type of a gcc2
32389 builtin and then its argument prototype would still apply. */
32390char sched_get_priority_max ();
32391/* The GNU C library defines this for functions which it implements
32392 to always fail with ENOSYS. Some functions are actually named
32393 something starting with __ and the normal name is an alias. */
32394#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32395choke me
32396#else
32397char (*f) () = sched_get_priority_max;
32398#endif
32399#ifdef __cplusplus
32400}
32401#endif
32402
32403int
32404main ()
32405{
32406return f != sched_get_priority_max;
32407 ;
32408 return 0;
32409}
32410_ACEOF
32411rm -f conftest.$ac_objext conftest$ac_exeext
32412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32413 (eval $ac_link) 2>conftest.er1
a848cd7e 32414 ac_status=$?
ac1cb8d3
VS
32415 grep -v '^ *+' conftest.er1 >conftest.err
32416 rm -f conftest.er1
32417 cat conftest.err >&5
a848cd7e
SC
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); } &&
4d4ff94c 32420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32422 (eval $ac_try) 2>&5
32423 ac_status=$?
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; } &&
32426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32428 (eval $ac_try) 2>&5
32429 ac_status=$?
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; }; then
32432 ac_cv_func_sched_get_priority_max=yes
32433else
32434 echo "$as_me: failed program was:" >&5
32435sed 's/^/| /' conftest.$ac_ext >&5
32436
32437ac_cv_func_sched_get_priority_max=no
32438fi
ac1cb8d3
VS
32439rm -f conftest.err conftest.$ac_objext \
32440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32441fi
32442echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32443echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32444if test $ac_cv_func_sched_get_priority_max = yes; then
32445 HAVE_PRIOR_FUNCS=1
32446else
32447 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32448echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32449if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32450 echo $ECHO_N "(cached) $ECHO_C" >&6
32451else
32452 ac_check_lib_save_LIBS=$LIBS
32453LIBS="-lposix4 $LIBS"
32454cat >conftest.$ac_ext <<_ACEOF
32455/* confdefs.h. */
32456_ACEOF
32457cat confdefs.h >>conftest.$ac_ext
32458cat >>conftest.$ac_ext <<_ACEOF
32459/* end confdefs.h. */
32460
32461/* Override any gcc2 internal prototype to avoid an error. */
32462#ifdef __cplusplus
32463extern "C"
32464#endif
32465/* We use char because int might match the return type of a gcc2
32466 builtin and then its argument prototype would still apply. */
32467char sched_get_priority_max ();
32468int
32469main ()
32470{
32471sched_get_priority_max ();
32472 ;
32473 return 0;
32474}
32475_ACEOF
32476rm -f conftest.$ac_objext conftest$ac_exeext
32477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32478 (eval $ac_link) 2>conftest.er1
a848cd7e 32479 ac_status=$?
ac1cb8d3
VS
32480 grep -v '^ *+' conftest.er1 >conftest.err
32481 rm -f conftest.er1
32482 cat conftest.err >&5
a848cd7e
SC
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); } &&
4d4ff94c 32485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32487 (eval $ac_try) 2>&5
32488 ac_status=$?
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; } &&
32491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32493 (eval $ac_try) 2>&5
32494 ac_status=$?
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); }; }; then
32497 ac_cv_lib_posix4_sched_get_priority_max=yes
32498else
32499 echo "$as_me: failed program was:" >&5
32500sed 's/^/| /' conftest.$ac_ext >&5
32501
32502ac_cv_lib_posix4_sched_get_priority_max=no
32503fi
ac1cb8d3
VS
32504rm -f conftest.err conftest.$ac_objext \
32505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32506LIBS=$ac_check_lib_save_LIBS
32507fi
32508echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32509echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32510if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32511
32512 HAVE_PRIOR_FUNCS=1
32513 POSIX4_LINK=" -lposix4"
32514
32515fi
32516
32517
32518fi
32519
32520
32521fi
32522
32523
32524fi
32525
32526
32527 if test "$HAVE_PRIOR_FUNCS" = 1; then
32528 cat >>confdefs.h <<\_ACEOF
32529#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32530_ACEOF
32531
32532 else
32533 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32534echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32535 fi
32536
32537 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32538echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32539if test "${ac_cv_func_pthread_cancel+set}" = set; then
32540 echo $ECHO_N "(cached) $ECHO_C" >&6
32541else
32542 cat >conftest.$ac_ext <<_ACEOF
32543/* confdefs.h. */
32544_ACEOF
32545cat confdefs.h >>conftest.$ac_ext
32546cat >>conftest.$ac_ext <<_ACEOF
32547/* end confdefs.h. */
ac1cb8d3
VS
32548/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32550#define pthread_cancel innocuous_pthread_cancel
32551
a848cd7e
SC
32552/* System header to define __stub macros and hopefully few prototypes,
32553 which can conflict with char pthread_cancel (); below.
32554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32555 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32556
a848cd7e
SC
32557#ifdef __STDC__
32558# include <limits.h>
32559#else
32560# include <assert.h>
32561#endif
ac1cb8d3
VS
32562
32563#undef pthread_cancel
32564
a848cd7e
SC
32565/* Override any gcc2 internal prototype to avoid an error. */
32566#ifdef __cplusplus
32567extern "C"
32568{
32569#endif
32570/* We use char because int might match the return type of a gcc2
32571 builtin and then its argument prototype would still apply. */
32572char pthread_cancel ();
32573/* The GNU C library defines this for functions which it implements
32574 to always fail with ENOSYS. Some functions are actually named
32575 something starting with __ and the normal name is an alias. */
32576#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32577choke me
32578#else
32579char (*f) () = pthread_cancel;
32580#endif
32581#ifdef __cplusplus
32582}
32583#endif
32584
32585int
32586main ()
32587{
32588return f != pthread_cancel;
32589 ;
32590 return 0;
32591}
32592_ACEOF
32593rm -f conftest.$ac_objext conftest$ac_exeext
32594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32595 (eval $ac_link) 2>conftest.er1
a848cd7e 32596 ac_status=$?
ac1cb8d3
VS
32597 grep -v '^ *+' conftest.er1 >conftest.err
32598 rm -f conftest.er1
32599 cat conftest.err >&5
a848cd7e
SC
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); } &&
4d4ff94c 32602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32604 (eval $ac_try) 2>&5
32605 ac_status=$?
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; } &&
32608 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 ac_cv_func_pthread_cancel=yes
32615else
32616 echo "$as_me: failed program was:" >&5
32617sed 's/^/| /' conftest.$ac_ext >&5
32618
32619ac_cv_func_pthread_cancel=no
32620fi
ac1cb8d3
VS
32621rm -f conftest.err conftest.$ac_objext \
32622 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32623fi
32624echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32625echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32626if test $ac_cv_func_pthread_cancel = yes; then
32627 cat >>confdefs.h <<\_ACEOF
32628#define HAVE_PTHREAD_CANCEL 1
32629_ACEOF
32630
32631else
32632 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32633echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32634fi
32635
32636
32637
32638
32639 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32640echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32641if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32642 echo $ECHO_N "(cached) $ECHO_C" >&6
32643else
32644
32645 cat >conftest.$ac_ext <<_ACEOF
32646/* confdefs.h. */
32647_ACEOF
32648cat confdefs.h >>conftest.$ac_ext
32649cat >>conftest.$ac_ext <<_ACEOF
32650/* end confdefs.h. */
32651#include <pthread.h>
32652int
32653main ()
32654{
32655
32656 pthread_mutexattr_t attr;
32657 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32658
32659 ;
32660 return 0;
32661}
32662_ACEOF
32663rm -f conftest.$ac_objext
32664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32665 (eval $ac_compile) 2>conftest.er1
a848cd7e 32666 ac_status=$?
ac1cb8d3
VS
32667 grep -v '^ *+' conftest.er1 >conftest.err
32668 rm -f conftest.er1
32669 cat conftest.err >&5
a848cd7e
SC
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); } &&
4d4ff94c 32672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674 (eval $ac_try) 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; } &&
32678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32680 (eval $ac_try) 2>&5
32681 ac_status=$?
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); }; }; then
32684
32685 wx_cv_type_pthread_mutexattr_t=yes
32686
32687else
32688 echo "$as_me: failed program was:" >&5
32689sed 's/^/| /' conftest.$ac_ext >&5
32690
32691
32692 wx_cv_type_pthread_mutexattr_t=no
32693
32694
32695fi
ac1cb8d3 32696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32697
32698fi
32699echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32700echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32701
32702 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32703 cat >>confdefs.h <<\_ACEOF
32704#define HAVE_PTHREAD_MUTEXATTR_T 1
32705_ACEOF
32706
32707 else
32708 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32709echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32710if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32711 echo $ECHO_N "(cached) $ECHO_C" >&6
32712else
32713
32714 cat >conftest.$ac_ext <<_ACEOF
32715/* confdefs.h. */
32716_ACEOF
32717cat confdefs.h >>conftest.$ac_ext
32718cat >>conftest.$ac_ext <<_ACEOF
32719/* end confdefs.h. */
32720#include <pthread.h>
32721int
32722main ()
32723{
32724
32725 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32726
32727 ;
32728 return 0;
32729}
32730_ACEOF
32731rm -f conftest.$ac_objext
32732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32733 (eval $ac_compile) 2>conftest.er1
a848cd7e 32734 ac_status=$?
ac1cb8d3
VS
32735 grep -v '^ *+' conftest.er1 >conftest.err
32736 rm -f conftest.er1
32737 cat conftest.err >&5
a848cd7e
SC
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); } &&
4d4ff94c 32740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32742 (eval $ac_try) 2>&5
32743 ac_status=$?
32744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32745 (exit $ac_status); }; } &&
32746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32748 (eval $ac_try) 2>&5
32749 ac_status=$?
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); }; }; then
32752
32753 wx_cv_type_pthread_rec_mutex_init=yes
32754
32755else
32756 echo "$as_me: failed program was:" >&5
32757sed 's/^/| /' conftest.$ac_ext >&5
32758
32759
32760 wx_cv_type_pthread_rec_mutex_init=no
32761
32762
32763fi
ac1cb8d3 32764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32765
32766fi
32767echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32768echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32769 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32770 cat >>confdefs.h <<\_ACEOF
32771#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32772_ACEOF
32773
32774 else
32775 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32776echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32777 fi
32778 fi
32779 fi
32780
32781else
32782 if test "$wxUSE_THREADS" = "yes" ; then
32783 case "${host}" in
32784 *-*-mingw32* )
32785 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32786echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32787if test "${wx_cv_cflags_mthread+set}" = set; then
32788 echo $ECHO_N "(cached) $ECHO_C" >&6
32789else
32790
32791 CFLAGS_OLD="$CFLAGS"
32792 CFLAGS="$CFLAGS -mthreads"
32793 cat >conftest.$ac_ext <<_ACEOF
32794/* confdefs.h. */
32795_ACEOF
32796cat confdefs.h >>conftest.$ac_ext
32797cat >>conftest.$ac_ext <<_ACEOF
32798/* end confdefs.h. */
32799
32800int
32801main ()
32802{
32803
32804 ;
32805 return 0;
32806}
32807_ACEOF
32808rm -f conftest.$ac_objext
32809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32810 (eval $ac_compile) 2>conftest.er1
a848cd7e 32811 ac_status=$?
ac1cb8d3
VS
32812 grep -v '^ *+' conftest.er1 >conftest.err
32813 rm -f conftest.er1
32814 cat conftest.err >&5
a848cd7e
SC
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } &&
4d4ff94c 32817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819 (eval $ac_try) 2>&5
32820 ac_status=$?
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); }; } &&
32823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32825 (eval $ac_try) 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; }; then
32829 wx_cv_cflags_mthread=yes
32830else
32831 echo "$as_me: failed program was:" >&5
32832sed 's/^/| /' conftest.$ac_ext >&5
32833
32834wx_cv_cflags_mthread=no
32835
32836fi
ac1cb8d3 32837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32838
32839
32840fi
32841echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32842echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
32843
32844 if test "$wx_cv_cflags_mthread" = "yes"; then
32845 CXXFLAGS="$CXXFLAGS -mthreads"
32846 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32847 LDFLAGS="$LDFLAGS -mthreads"
32848 else
32849 CFLAGS="$CFLAGS_OLD"
32850 fi
32851 ;;
32852 *-pc-os2*emx )
32853 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32854 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32855 LDFLAGS="$LDFLAGS -Zmt"
32856 ;;
32857 esac
32858 fi
32859fi
32860
32861if test "$wxUSE_THREADS" = "yes"; then
32862 cat >>confdefs.h <<\_ACEOF
32863#define wxUSE_THREADS 1
32864_ACEOF
32865
32866
32867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
32868else
32869 if test "$ac_cv_func_strtok_r" = "yes"; then
32870 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32871echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
32872 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32873 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
32874 echo "$as_me:$LINENO: result: yes" >&5
32875echo "${ECHO_T}yes" >&6
32876 else
32877 echo "$as_me:$LINENO: result: no" >&5
32878echo "${ECHO_T}no" >&6
32879 fi
32880 fi
32881fi
32882
32883if test "$WXGTK20" = 1 ; then
32884 cat >>confdefs.h <<_ACEOF
32885#define __WXGTK20__ $WXGTK20
32886_ACEOF
32887
32888 WXGTK12=1
32889fi
32890
32891if test "$WXGTK12" = 1 ; then
32892 cat >>confdefs.h <<_ACEOF
32893#define __WXGTK12__ $WXGTK12
32894_ACEOF
32895
32896fi
32897
32898if test "$WXGTK127" = 1 ; then
32899 cat >>confdefs.h <<_ACEOF
32900#define __WXGTK127__ $WXGTK127
32901_ACEOF
32902
32903fi
32904
32905if test "$WXGPE" = 1 ; then
32906 cat >>confdefs.h <<_ACEOF
32907#define __WXGPE__ $WXGPE
32908_ACEOF
32909
32910fi
32911
32912WXDEBUG=
32913
32914if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32915 WXDEBUG="-g"
32916 wxUSE_OPTIMISE=no
32917fi
32918
32919if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32920 wxUSE_DEBUG_INFO=yes
32921 WXDEBUG="-ggdb"
32922fi
32923
32924if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
32925 cat >>confdefs.h <<\_ACEOF
32926#define WXDEBUG 1
32927_ACEOF
32928
32929 WXDEBUG_DEFINE="-D__WXDEBUG__"
32930else
32931 if test "$wxUSE_GTK" = 1 ; then
32932 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32933 fi
32934fi
32935
32936if test "$wxUSE_MEM_TRACING" = "yes" ; then
32937 cat >>confdefs.h <<\_ACEOF
32938#define wxUSE_MEMORY_TRACING 1
32939_ACEOF
32940
32941 cat >>confdefs.h <<\_ACEOF
32942#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
32943_ACEOF
32944
32945 cat >>confdefs.h <<\_ACEOF
32946#define wxUSE_DEBUG_NEW_ALWAYS 1
32947_ACEOF
32948
32949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32950fi
32951
32952if test "$wxUSE_DMALLOC" = "yes" ; then
32953 DMALLOC_LIBS="-ldmalloc"
32954fi
32955
32956PROFILE=
32957if test "$wxUSE_PROFILE" = "yes" ; then
32958 PROFILE=" -pg"
32959fi
32960
32961CODE_GEN_FLAGS=
32962CODE_GEN_FLAGS_CXX=
32963if test "$GCC" = "yes" ; then
32964 if test "$wxUSE_NO_RTTI" = "yes" ; then
32965 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
32966 fi
32967 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32968 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32969 fi
32970 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32971 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32972 fi
32973
32974 case "${host}" in
32975 powerpc*-*-aix* )
32976 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32977 ;;
32978 *-hppa* )
32979 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32980 ;;
32981 esac
32982fi
32983
32984OPTIMISE=
32985if test "$wxUSE_OPTIMISE" = "no" ; then
32986 if test "$GCC" = yes ; then
32987 OPTIMISE="-O0"
32988 fi
32989else
32990 if test "$GCC" = yes ; then
32991 OPTIMISE="-O2"
32992
32993 case "${host}" in
32994 i586-*-*|i686-*-* )
32995 OPTIMISE="${OPTIMISE} "
32996 ;;
32997 esac
32998 else
32999 OPTIMISE="-O"
33000 fi
33001fi
33002
33003
33004if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33005 cat >>confdefs.h <<\_ACEOF
33006#define WXWIN_COMPATIBILITY_2_2 1
33007_ACEOF
33008
33009
33010 WXWIN_COMPATIBILITY_2_4="yes"
33011fi
33012
33013if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33014 cat >>confdefs.h <<\_ACEOF
33015#define WXWIN_COMPATIBILITY_2_4 1
33016_ACEOF
33017
33018fi
33019
33020
33021if test "$wxUSE_GUI" = "yes"; then
33022 cat >>confdefs.h <<\_ACEOF
33023#define wxUSE_GUI 1
33024_ACEOF
33025
33026
33027 else
33028 cat >>confdefs.h <<\_ACEOF
33029#define wxUSE_NOGUI 1
33030_ACEOF
33031
33032fi
33033
33034
33035if test "$wxUSE_UNIX" = "yes"; then
33036 cat >>confdefs.h <<\_ACEOF
33037#define wxUSE_UNIX 1
33038_ACEOF
33039
33040fi
33041
33042
33043if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33044
33045 HAVE_DL_FUNCS=0
33046 HAVE_SHL_FUNCS=0
33047 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33048 if test "$USE_DARWIN" = 1; then
33049 HAVE_DL_FUNCS=1
33050 else
33051
33052for ac_func in dlopen
33053do
33054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33055echo "$as_me:$LINENO: checking for $ac_func" >&5
33056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33057if eval "test \"\${$as_ac_var+set}\" = set"; then
33058 echo $ECHO_N "(cached) $ECHO_C" >&6
33059else
33060 cat >conftest.$ac_ext <<_ACEOF
33061/* confdefs.h. */
33062_ACEOF
33063cat confdefs.h >>conftest.$ac_ext
33064cat >>conftest.$ac_ext <<_ACEOF
33065/* end confdefs.h. */
ac1cb8d3
VS
33066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33068#define $ac_func innocuous_$ac_func
33069
a848cd7e
SC
33070/* System header to define __stub macros and hopefully few prototypes,
33071 which can conflict with char $ac_func (); below.
33072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33074
a848cd7e
SC
33075#ifdef __STDC__
33076# include <limits.h>
33077#else
33078# include <assert.h>
33079#endif
ac1cb8d3
VS
33080
33081#undef $ac_func
33082
a848cd7e
SC
33083/* Override any gcc2 internal prototype to avoid an error. */
33084#ifdef __cplusplus
33085extern "C"
33086{
33087#endif
33088/* We use char because int might match the return type of a gcc2
33089 builtin and then its argument prototype would still apply. */
33090char $ac_func ();
33091/* The GNU C library defines this for functions which it implements
33092 to always fail with ENOSYS. Some functions are actually named
33093 something starting with __ and the normal name is an alias. */
33094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33095choke me
33096#else
33097char (*f) () = $ac_func;
33098#endif
33099#ifdef __cplusplus
33100}
33101#endif
33102
33103int
33104main ()
33105{
33106return f != $ac_func;
33107 ;
33108 return 0;
33109}
33110_ACEOF
33111rm -f conftest.$ac_objext conftest$ac_exeext
33112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33113 (eval $ac_link) 2>conftest.er1
a848cd7e 33114 ac_status=$?
ac1cb8d3
VS
33115 grep -v '^ *+' conftest.er1 >conftest.err
33116 rm -f conftest.er1
33117 cat conftest.err >&5
a848cd7e
SC
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); } &&
4d4ff94c 33120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; } &&
33126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; }; then
33132 eval "$as_ac_var=yes"
33133else
33134 echo "$as_me: failed program was:" >&5
33135sed 's/^/| /' conftest.$ac_ext >&5
33136
33137eval "$as_ac_var=no"
33138fi
ac1cb8d3
VS
33139rm -f conftest.err conftest.$ac_objext \
33140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33141fi
33142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33144if test `eval echo '${'$as_ac_var'}'` = yes; then
33145 cat >>confdefs.h <<_ACEOF
33146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33147_ACEOF
33148
33149 cat >>confdefs.h <<\_ACEOF
33150#define HAVE_DLOPEN 1
33151_ACEOF
33152
33153 HAVE_DL_FUNCS=1
33154
33155else
33156
33157 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33158echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33159if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33161else
33162 ac_check_lib_save_LIBS=$LIBS
33163LIBS="-ldl $LIBS"
33164cat >conftest.$ac_ext <<_ACEOF
33165/* confdefs.h. */
33166_ACEOF
33167cat confdefs.h >>conftest.$ac_ext
33168cat >>conftest.$ac_ext <<_ACEOF
33169/* end confdefs.h. */
33170
33171/* Override any gcc2 internal prototype to avoid an error. */
33172#ifdef __cplusplus
33173extern "C"
33174#endif
33175/* We use char because int might match the return type of a gcc2
33176 builtin and then its argument prototype would still apply. */
33177char dlopen ();
33178int
33179main ()
33180{
33181dlopen ();
33182 ;
33183 return 0;
33184}
33185_ACEOF
33186rm -f conftest.$ac_objext conftest$ac_exeext
33187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33188 (eval $ac_link) 2>conftest.er1
a848cd7e 33189 ac_status=$?
ac1cb8d3
VS
33190 grep -v '^ *+' conftest.er1 >conftest.err
33191 rm -f conftest.er1
33192 cat conftest.err >&5
a848cd7e
SC
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); } &&
4d4ff94c 33195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197 (eval $ac_try) 2>&5
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; } &&
33201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33203 (eval $ac_try) 2>&5
33204 ac_status=$?
33205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); }; }; then
33207 ac_cv_lib_dl_dlopen=yes
33208else
33209 echo "$as_me: failed program was:" >&5
33210sed 's/^/| /' conftest.$ac_ext >&5
33211
33212ac_cv_lib_dl_dlopen=no
33213fi
ac1cb8d3
VS
33214rm -f conftest.err conftest.$ac_objext \
33215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33216LIBS=$ac_check_lib_save_LIBS
33217fi
33218echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33219echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33220if test $ac_cv_lib_dl_dlopen = yes; then
33221
33222 cat >>confdefs.h <<\_ACEOF
33223#define HAVE_DLOPEN 1
33224_ACEOF
33225
33226 HAVE_DL_FUNCS=1
33227 DL_LINK=" -ldl$DL_LINK"
33228
33229else
33230
33231
33232for ac_func in shl_load
33233do
33234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33235echo "$as_me:$LINENO: checking for $ac_func" >&5
33236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33237if eval "test \"\${$as_ac_var+set}\" = set"; then
33238 echo $ECHO_N "(cached) $ECHO_C" >&6
33239else
33240 cat >conftest.$ac_ext <<_ACEOF
33241/* confdefs.h. */
33242_ACEOF
33243cat confdefs.h >>conftest.$ac_ext
33244cat >>conftest.$ac_ext <<_ACEOF
33245/* end confdefs.h. */
ac1cb8d3
VS
33246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33248#define $ac_func innocuous_$ac_func
33249
a848cd7e
SC
33250/* System header to define __stub macros and hopefully few prototypes,
33251 which can conflict with char $ac_func (); below.
33252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33253 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33254
a848cd7e
SC
33255#ifdef __STDC__
33256# include <limits.h>
33257#else
33258# include <assert.h>
33259#endif
ac1cb8d3
VS
33260
33261#undef $ac_func
33262
a848cd7e
SC
33263/* Override any gcc2 internal prototype to avoid an error. */
33264#ifdef __cplusplus
33265extern "C"
33266{
33267#endif
33268/* We use char because int might match the return type of a gcc2
33269 builtin and then its argument prototype would still apply. */
33270char $ac_func ();
33271/* The GNU C library defines this for functions which it implements
33272 to always fail with ENOSYS. Some functions are actually named
33273 something starting with __ and the normal name is an alias. */
33274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33275choke me
33276#else
33277char (*f) () = $ac_func;
33278#endif
33279#ifdef __cplusplus
33280}
33281#endif
33282
33283int
33284main ()
33285{
33286return f != $ac_func;
33287 ;
33288 return 0;
33289}
33290_ACEOF
33291rm -f conftest.$ac_objext conftest$ac_exeext
33292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33293 (eval $ac_link) 2>conftest.er1
a848cd7e 33294 ac_status=$?
ac1cb8d3
VS
33295 grep -v '^ *+' conftest.er1 >conftest.err
33296 rm -f conftest.er1
33297 cat conftest.err >&5
a848cd7e
SC
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); } &&
4d4ff94c 33300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33302 (eval $ac_try) 2>&5
33303 ac_status=$?
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); }; } &&
33306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33308 (eval $ac_try) 2>&5
33309 ac_status=$?
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); }; }; then
33312 eval "$as_ac_var=yes"
33313else
33314 echo "$as_me: failed program was:" >&5
33315sed 's/^/| /' conftest.$ac_ext >&5
33316
33317eval "$as_ac_var=no"
33318fi
ac1cb8d3
VS
33319rm -f conftest.err conftest.$ac_objext \
33320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33321fi
33322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33324if test `eval echo '${'$as_ac_var'}'` = yes; then
33325 cat >>confdefs.h <<_ACEOF
33326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33327_ACEOF
33328
33329 cat >>confdefs.h <<\_ACEOF
33330#define HAVE_SHL_LOAD 1
33331_ACEOF
33332
33333 HAVE_SHL_FUNCS=1
33334
33335else
33336
33337 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33338echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33339if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33340 echo $ECHO_N "(cached) $ECHO_C" >&6
33341else
33342 ac_check_lib_save_LIBS=$LIBS
33343LIBS="-lshl_load $LIBS"
33344cat >conftest.$ac_ext <<_ACEOF
33345/* confdefs.h. */
33346_ACEOF
33347cat confdefs.h >>conftest.$ac_ext
33348cat >>conftest.$ac_ext <<_ACEOF
33349/* end confdefs.h. */
33350
33351/* Override any gcc2 internal prototype to avoid an error. */
33352#ifdef __cplusplus
33353extern "C"
33354#endif
33355/* We use char because int might match the return type of a gcc2
33356 builtin and then its argument prototype would still apply. */
33357char dld ();
33358int
33359main ()
33360{
33361dld ();
33362 ;
33363 return 0;
33364}
33365_ACEOF
33366rm -f conftest.$ac_objext conftest$ac_exeext
33367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33368 (eval $ac_link) 2>conftest.er1
a848cd7e 33369 ac_status=$?
ac1cb8d3
VS
33370 grep -v '^ *+' conftest.er1 >conftest.err
33371 rm -f conftest.er1
33372 cat conftest.err >&5
a848cd7e
SC
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); } &&
4d4ff94c 33375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33377 (eval $ac_try) 2>&5
33378 ac_status=$?
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; } &&
33381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33383 (eval $ac_try) 2>&5
33384 ac_status=$?
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; }; then
33387 ac_cv_lib_shl_load_dld=yes
33388else
33389 echo "$as_me: failed program was:" >&5
33390sed 's/^/| /' conftest.$ac_ext >&5
33391
33392ac_cv_lib_shl_load_dld=no
33393fi
ac1cb8d3
VS
33394rm -f conftest.err conftest.$ac_objext \
33395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33396LIBS=$ac_check_lib_save_LIBS
33397fi
33398echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33399echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33400if test $ac_cv_lib_shl_load_dld = yes; then
33401
33402 HAVE_SHL_FUNCS=1
33403 DL_LINK=" -ldld$DL_LINK"
33404
33405fi
33406
33407
33408fi
33409done
33410
33411
33412fi
33413
33414
33415fi
33416done
33417
33418
33419 if test "$HAVE_DL_FUNCS" = 1; then
33420
33421for ac_func in dlerror
33422do
33423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33424echo "$as_me:$LINENO: checking for $ac_func" >&5
33425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33426if eval "test \"\${$as_ac_var+set}\" = set"; then
33427 echo $ECHO_N "(cached) $ECHO_C" >&6
33428else
33429 cat >conftest.$ac_ext <<_ACEOF
33430/* confdefs.h. */
33431_ACEOF
33432cat confdefs.h >>conftest.$ac_ext
33433cat >>conftest.$ac_ext <<_ACEOF
33434/* end confdefs.h. */
ac1cb8d3
VS
33435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33437#define $ac_func innocuous_$ac_func
33438
a848cd7e
SC
33439/* System header to define __stub macros and hopefully few prototypes,
33440 which can conflict with char $ac_func (); below.
33441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33442 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33443
a848cd7e
SC
33444#ifdef __STDC__
33445# include <limits.h>
33446#else
33447# include <assert.h>
33448#endif
ac1cb8d3
VS
33449
33450#undef $ac_func
33451
a848cd7e
SC
33452/* Override any gcc2 internal prototype to avoid an error. */
33453#ifdef __cplusplus
33454extern "C"
33455{
33456#endif
33457/* We use char because int might match the return type of a gcc2
33458 builtin and then its argument prototype would still apply. */
33459char $ac_func ();
33460/* The GNU C library defines this for functions which it implements
33461 to always fail with ENOSYS. Some functions are actually named
33462 something starting with __ and the normal name is an alias. */
33463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33464choke me
33465#else
33466char (*f) () = $ac_func;
33467#endif
33468#ifdef __cplusplus
33469}
33470#endif
33471
33472int
33473main ()
33474{
33475return f != $ac_func;
33476 ;
33477 return 0;
33478}
33479_ACEOF
33480rm -f conftest.$ac_objext conftest$ac_exeext
33481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33482 (eval $ac_link) 2>conftest.er1
a848cd7e 33483 ac_status=$?
ac1cb8d3
VS
33484 grep -v '^ *+' conftest.er1 >conftest.err
33485 rm -f conftest.er1
33486 cat conftest.err >&5
a848cd7e
SC
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); } &&
4d4ff94c 33489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33491 (eval $ac_try) 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; } &&
33495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33497 (eval $ac_try) 2>&5
33498 ac_status=$?
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); }; }; then
33501 eval "$as_ac_var=yes"
33502else
33503 echo "$as_me: failed program was:" >&5
33504sed 's/^/| /' conftest.$ac_ext >&5
33505
33506eval "$as_ac_var=no"
33507fi
ac1cb8d3
VS
33508rm -f conftest.err conftest.$ac_objext \
33509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33510fi
33511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33512echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33513if test `eval echo '${'$as_ac_var'}'` = yes; then
33514 cat >>confdefs.h <<_ACEOF
33515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33516_ACEOF
33517 cat >>confdefs.h <<\_ACEOF
33518#define HAVE_DLERROR 1
33519_ACEOF
33520
33521else
33522
33523 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33524echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33525if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33526 echo $ECHO_N "(cached) $ECHO_C" >&6
33527else
33528 ac_check_lib_save_LIBS=$LIBS
33529LIBS="-ldl $LIBS"
33530cat >conftest.$ac_ext <<_ACEOF
33531/* confdefs.h. */
33532_ACEOF
33533cat confdefs.h >>conftest.$ac_ext
33534cat >>conftest.$ac_ext <<_ACEOF
33535/* end confdefs.h. */
33536
33537/* Override any gcc2 internal prototype to avoid an error. */
33538#ifdef __cplusplus
33539extern "C"
33540#endif
33541/* We use char because int might match the return type of a gcc2
33542 builtin and then its argument prototype would still apply. */
33543char dlerror ();
33544int
33545main ()
33546{
33547dlerror ();
33548 ;
33549 return 0;
33550}
33551_ACEOF
33552rm -f conftest.$ac_objext conftest$ac_exeext
33553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33554 (eval $ac_link) 2>conftest.er1
a848cd7e 33555 ac_status=$?
ac1cb8d3
VS
33556 grep -v '^ *+' conftest.er1 >conftest.err
33557 rm -f conftest.er1
33558 cat conftest.err >&5
a848cd7e
SC
33559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560 (exit $ac_status); } &&
4d4ff94c 33561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33563 (eval $ac_try) 2>&5
33564 ac_status=$?
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); }; } &&
33567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33569 (eval $ac_try) 2>&5
33570 ac_status=$?
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); }; }; then
33573 ac_cv_lib_dl_dlerror=yes
33574else
33575 echo "$as_me: failed program was:" >&5
33576sed 's/^/| /' conftest.$ac_ext >&5
33577
33578ac_cv_lib_dl_dlerror=no
33579fi
ac1cb8d3
VS
33580rm -f conftest.err conftest.$ac_objext \
33581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33582LIBS=$ac_check_lib_save_LIBS
33583fi
33584echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33585echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33586if test $ac_cv_lib_dl_dlerror = yes; then
33587 cat >>confdefs.h <<\_ACEOF
33588#define HAVE_DLERROR 1
33589_ACEOF
33590
33591fi
33592
33593
33594
33595fi
33596done
33597
33598 fi
33599 fi
33600
33601 if test "$HAVE_DL_FUNCS" = 0; then
33602 if test "$HAVE_SHL_FUNCS" = 0; then
33603 if test "$USE_UNIX" = 1; then
33604 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33605echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33606 wxUSE_DYNAMIC_LOADER=no
33607 wxUSE_DYNLIB_CLASS=no
33608 else
33609 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33610echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33611 fi
33612 fi
33613 fi
33614 fi
33615fi
33616
33617if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33618 cat >>confdefs.h <<\_ACEOF
33619#define wxUSE_DYNAMIC_LOADER 1
33620_ACEOF
33621
33622fi
33623if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33624 cat >>confdefs.h <<\_ACEOF
33625#define wxUSE_DYNLIB_CLASS 1
33626_ACEOF
33627
33628fi
33629
33630
33631
33632if test "$wxUSE_PLUGINS" = "yes" ; then
33633 if test "$wxUSE_SHARED" = "no" ; then
33634 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33635echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33636 wxUSE_PLUGINS=no
33637 fi
33638 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33639 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33640echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33641 wxUSE_PLUGINS=no
33642 fi
33643 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33644 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33645echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33646 wxUSE_PLUGINS=no
33647 fi
33648 if test "$wxUSE_PLUGINS" = "yes" ; then
33649 cat >>confdefs.h <<\_ACEOF
33650#define wxUSE_PLUGINS 1
33651_ACEOF
33652
33653 fi
33654fi
33655
33656
33657if test "$wxUSE_STL" = "yes"; then
33658 cat >>confdefs.h <<\_ACEOF
33659#define wxUSE_STL 1
33660_ACEOF
33661
33662fi
33663
33664if test "$wxUSE_APPLE_IEEE" = "yes"; then
33665 cat >>confdefs.h <<\_ACEOF
33666#define wxUSE_APPLE_IEEE 1
33667_ACEOF
33668
33669fi
33670
33671if test "$wxUSE_TIMER" = "yes"; then
33672 cat >>confdefs.h <<\_ACEOF
33673#define wxUSE_TIMER 1
33674_ACEOF
33675
33676fi
33677
33678WITH_PLUGIN_SDL=0
33679if test "$wxUSE_SOUND" = "yes"; then
33680 if test "$USE_UNIX" = "1" ; then
33681
33682for ac_header in sys/soundcard.h
33683do
33684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33685if eval "test \"\${$as_ac_Header+set}\" = set"; then
33686 echo "$as_me:$LINENO: checking for $ac_header" >&5
33687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33688if eval "test \"\${$as_ac_Header+set}\" = set"; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33690fi
33691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33693else
33694 # Is the header compilable?
33695echo "$as_me:$LINENO: checking $ac_header usability" >&5
33696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33697cat >conftest.$ac_ext <<_ACEOF
33698/* confdefs.h. */
33699_ACEOF
33700cat confdefs.h >>conftest.$ac_ext
33701cat >>conftest.$ac_ext <<_ACEOF
33702/* end confdefs.h. */
33703$ac_includes_default
33704#include <$ac_header>
33705_ACEOF
33706rm -f conftest.$ac_objext
33707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33708 (eval $ac_compile) 2>conftest.er1
a848cd7e 33709 ac_status=$?
ac1cb8d3
VS
33710 grep -v '^ *+' conftest.er1 >conftest.err
33711 rm -f conftest.er1
33712 cat conftest.err >&5
a848cd7e
SC
33713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714 (exit $ac_status); } &&
4d4ff94c 33715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33717 (eval $ac_try) 2>&5
33718 ac_status=$?
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); }; } &&
33721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33724 ac_status=$?
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; }; then
33727 ac_header_compiler=yes
33728else
33729 echo "$as_me: failed program was:" >&5
33730sed 's/^/| /' conftest.$ac_ext >&5
33731
33732ac_header_compiler=no
33733fi
ac1cb8d3 33734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33736echo "${ECHO_T}$ac_header_compiler" >&6
33737
33738# Is the header present?
33739echo "$as_me:$LINENO: checking $ac_header presence" >&5
33740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33741cat >conftest.$ac_ext <<_ACEOF
33742/* confdefs.h. */
33743_ACEOF
33744cat confdefs.h >>conftest.$ac_ext
33745cat >>conftest.$ac_ext <<_ACEOF
33746/* end confdefs.h. */
33747#include <$ac_header>
33748_ACEOF
33749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33751 ac_status=$?
33752 grep -v '^ *+' conftest.er1 >conftest.err
33753 rm -f conftest.er1
33754 cat conftest.err >&5
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); } >/dev/null; then
33757 if test -s conftest.err; then
33758 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33760 else
33761 ac_cpp_err=
33762 fi
33763else
33764 ac_cpp_err=yes
33765fi
33766if test -z "$ac_cpp_err"; then
33767 ac_header_preproc=yes
33768else
33769 echo "$as_me: failed program was:" >&5
33770sed 's/^/| /' conftest.$ac_ext >&5
33771
33772 ac_header_preproc=no
33773fi
33774rm -f conftest.err conftest.$ac_ext
33775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33776echo "${ECHO_T}$ac_header_preproc" >&6
33777
33778# So? What about this header?
ac1cb8d3
VS
33779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33780 yes:no: )
a848cd7e
SC
33781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33784echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33785 ac_header_preproc=yes
a848cd7e 33786 ;;
ac1cb8d3 33787 no:yes:* )
a848cd7e
SC
33788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33791echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33793echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33795echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33799echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33800 (
33801 cat <<\_ASBOX
ac1cb8d3
VS
33802## ----------------------------------------- ##
33803## Report this to wx-dev@lists.wxwidgets.org ##
33804## ----------------------------------------- ##
a848cd7e
SC
33805_ASBOX
33806 ) |
33807 sed "s/^/$as_me: WARNING: /" >&2
33808 ;;
33809esac
33810echo "$as_me:$LINENO: checking for $ac_header" >&5
33811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33812if eval "test \"\${$as_ac_Header+set}\" = set"; then
33813 echo $ECHO_N "(cached) $ECHO_C" >&6
33814else
ac1cb8d3 33815 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33816fi
33817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33819
33820fi
33821if test `eval echo '${'$as_ac_Header'}'` = yes; then
33822 cat >>confdefs.h <<_ACEOF
33823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33824_ACEOF
33825
33826fi
33827
33828done
33829
33830
33831 if test "$wxUSE_LIBSDL" != "no"; then
33832
33833# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
33834if test "${with_sdl_prefix+set}" = set; then
33835 withval="$with_sdl_prefix"
33836 sdl_prefix="$withval"
33837else
33838 sdl_prefix=""
33839fi;
33840
33841# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
33842if test "${with_sdl_exec_prefix+set}" = set; then
33843 withval="$with_sdl_exec_prefix"
33844 sdl_exec_prefix="$withval"
33845else
33846 sdl_exec_prefix=""
33847fi;
33848# Check whether --enable-sdltest or --disable-sdltest was given.
33849if test "${enable_sdltest+set}" = set; then
33850 enableval="$enable_sdltest"
33851
33852else
33853 enable_sdltest=yes
33854fi;
33855
33856 if test x$sdl_exec_prefix != x ; then
33857 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33858 if test x${SDL_CONFIG+set} != xset ; then
33859 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33860 fi
33861 fi
33862 if test x$sdl_prefix != x ; then
33863 sdl_args="$sdl_args --prefix=$sdl_prefix"
33864 if test x${SDL_CONFIG+set} != xset ; then
33865 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33866 fi
33867 fi
33868
33869
33870 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33871 # Extract the first word of "sdl-config", so it can be a program name with args.
33872set dummy sdl-config; ac_word=$2
33873echo "$as_me:$LINENO: checking for $ac_word" >&5
33874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33875if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33876 echo $ECHO_N "(cached) $ECHO_C" >&6
33877else
33878 case $SDL_CONFIG in
33879 [\\/]* | ?:[\\/]*)
33880 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33881 ;;
33882 *)
33883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33884for as_dir in $PATH
33885do
33886 IFS=$as_save_IFS
33887 test -z "$as_dir" && as_dir=.
33888 for ac_exec_ext in '' $ac_executable_extensions; do
33889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33890 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33892 break 2
33893 fi
33894done
33895done
33896
33897 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33898 ;;
33899esac
33900fi
33901SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33902
33903if test -n "$SDL_CONFIG"; then
33904 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33905echo "${ECHO_T}$SDL_CONFIG" >&6
33906else
33907 echo "$as_me:$LINENO: result: no" >&5
33908echo "${ECHO_T}no" >&6
33909fi
33910
33911 min_sdl_version=1.2.0
33912 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33913echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
33914 no_sdl=""
33915 if test "$SDL_CONFIG" = "no" ; then
33916 no_sdl=yes
33917 else
33918 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33919 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33920
33921 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33922 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33923 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33925 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33927 if test "x$enable_sdltest" = "xyes" ; then
33928 ac_save_CFLAGS="$CFLAGS"
33929 ac_save_LIBS="$LIBS"
33930 CFLAGS="$CFLAGS $SDL_CFLAGS"
33931 LIBS="$LIBS $SDL_LIBS"
33932 rm -f conf.sdltest
33933 if test "$cross_compiling" = yes; then
33934 echo $ac_n "cross compiling; assumed OK... $ac_c"
33935else
33936 cat >conftest.$ac_ext <<_ACEOF
33937/* confdefs.h. */
33938_ACEOF
33939cat confdefs.h >>conftest.$ac_ext
33940cat >>conftest.$ac_ext <<_ACEOF
33941/* end confdefs.h. */
33942
33943#include <stdio.h>
33944#include <stdlib.h>
33945#include <string.h>
33946#include "SDL.h"
33947
33948char*
33949my_strdup (char *str)
33950{
33951 char *new_str;
33952
33953 if (str)
33954 {
33955 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33956 strcpy (new_str, str);
33957 }
33958 else
33959 new_str = NULL;
33960
33961 return new_str;
33962}
33963
33964int main (int argc, char *argv[])
33965{
33966 int major, minor, micro;
33967 char *tmp_version;
33968
33969 /* This hangs on some systems (?)
33970 system ("touch conf.sdltest");
33971 */
33972 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33973
33974 /* HP/UX 9 (%@#!) writes to sscanf strings */
33975 tmp_version = my_strdup("$min_sdl_version");
33976 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33977 printf("%s, bad version string\n", "$min_sdl_version");
33978 exit(1);
33979 }
33980
33981 if (($sdl_major_version > major) ||
33982 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33983 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33984 {
33985 return 0;
33986 }
33987 else
33988 {
33989 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33990 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33991 printf("*** best to upgrade to the required version.\n");
33992 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33993 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33994 printf("*** config.cache before re-running configure\n");
33995 return 1;
33996 }
33997}
33998
33999
34000_ACEOF
34001rm -f conftest$ac_exeext
34002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34003 (eval $ac_link) 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34009 ac_status=$?
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34012 :
34013else
34014 echo "$as_me: program exited with status $ac_status" >&5
34015echo "$as_me: failed program was:" >&5
34016sed 's/^/| /' conftest.$ac_ext >&5
34017
34018( exit $ac_status )
34019no_sdl=yes
34020fi
ac1cb8d3 34021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34022fi
34023 CFLAGS="$ac_save_CFLAGS"
34024 LIBS="$ac_save_LIBS"
34025 fi
34026 fi
34027 if test "x$no_sdl" = x ; then
34028 echo "$as_me:$LINENO: result: yes" >&5
34029echo "${ECHO_T}yes" >&6
34030
34031 EXTRALIBS_SDL="$SDL_LIBS"
34032 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34033 cat >>confdefs.h <<\_ACEOF
34034#define wxUSE_LIBSDL 1
34035_ACEOF
34036
34037
34038 else
34039 echo "$as_me:$LINENO: result: no" >&5
34040echo "${ECHO_T}no" >&6
34041 if test "$SDL_CONFIG" = "no" ; then
34042 echo "*** The sdl-config script installed by SDL could not be found"
34043 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34044 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34045 echo "*** full path to sdl-config."
34046 else
34047 if test -f conf.sdltest ; then
34048 :
34049 else
34050 echo "*** Could not run SDL test program, checking why..."
34051 CFLAGS="$CFLAGS $SDL_CFLAGS"
34052 LIBS="$LIBS $SDL_LIBS"
34053 cat >conftest.$ac_ext <<_ACEOF
34054/* confdefs.h. */
34055_ACEOF
34056cat confdefs.h >>conftest.$ac_ext
34057cat >>conftest.$ac_ext <<_ACEOF
34058/* end confdefs.h. */
34059
34060#include <stdio.h>
34061#include "SDL.h"
34062
34063int main(int argc, char *argv[])
34064{ return 0; }
34065#undef main
34066#define main K_and_R_C_main
34067
34068int
34069main ()
34070{
34071 return 0;
34072 ;
34073 return 0;
34074}
34075_ACEOF
34076rm -f conftest.$ac_objext conftest$ac_exeext
34077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34078 (eval $ac_link) 2>conftest.er1
a848cd7e 34079 ac_status=$?
ac1cb8d3
VS
34080 grep -v '^ *+' conftest.er1 >conftest.err
34081 rm -f conftest.er1
34082 cat conftest.err >&5
a848cd7e
SC
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); } &&
4d4ff94c 34085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34087 (eval $ac_try) 2>&5
34088 ac_status=$?
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); }; } &&
34091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34093 (eval $ac_try) 2>&5
34094 ac_status=$?
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); }; }; then
34097 echo "*** The test program compiled, but did not run. This usually means"
34098 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34099 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34100 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34101 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34102 echo "*** is required on your system"
34103 echo "***"
34104 echo "*** If you have an old version installed, it is best to remove it, although"
34105 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34106else
34107 echo "$as_me: failed program was:" >&5
34108sed 's/^/| /' conftest.$ac_ext >&5
34109
34110 echo "*** The test program failed to compile or link. See the file config.log for the"
34111 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34112 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34113 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34114fi
ac1cb8d3
VS
34115rm -f conftest.err conftest.$ac_objext \
34116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34117 CFLAGS="$ac_save_CFLAGS"
34118 LIBS="$ac_save_LIBS"
34119 fi
34120 fi
34121 SDL_CFLAGS=""
34122 SDL_LIBS=""
34123 wxUSE_LIBSDL="no"
34124 fi
34125
34126
34127 rm -f conf.sdltest
34128
34129 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34130 WITH_PLUGIN_SDL=1
34131 fi
34132 fi
34133 fi
34134
34135 cat >>confdefs.h <<\_ACEOF
34136#define wxUSE_SOUND 1
34137_ACEOF
34138
34139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34140fi
34141
34142if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34143 cat >>confdefs.h <<\_ACEOF
34144#define wxUSE_CMDLINE_PARSER 1
34145_ACEOF
34146
34147fi
34148
34149if test "$wxUSE_STOPWATCH" = "yes"; then
34150 cat >>confdefs.h <<\_ACEOF
34151#define wxUSE_STOPWATCH 1
34152_ACEOF
34153
34154fi
34155
34156if test "$wxUSE_DATETIME" = "yes"; then
34157 cat >>confdefs.h <<\_ACEOF
34158#define wxUSE_DATETIME 1
34159_ACEOF
34160
34161fi
34162
34163if test "$wxUSE_FILE" = "yes"; then
34164 cat >>confdefs.h <<\_ACEOF
34165#define wxUSE_FILE 1
34166_ACEOF
34167
34168fi
34169
34170if test "$wxUSE_FFILE" = "yes"; then
34171 cat >>confdefs.h <<\_ACEOF
34172#define wxUSE_FFILE 1
34173_ACEOF
34174
34175fi
34176
34177if test "$wxUSE_FILESYSTEM" = "yes"; then
34178 cat >>confdefs.h <<\_ACEOF
34179#define wxUSE_FILESYSTEM 1
34180_ACEOF
34181
34182fi
34183
34184if test "$wxUSE_FS_ZIP" = "yes"; then
34185 cat >>confdefs.h <<\_ACEOF
34186#define wxUSE_FS_ZIP 1
34187_ACEOF
34188
34189fi
34190
34191if test "$wxUSE_ZIPSTREAM" = "yes"; then
34192 cat >>confdefs.h <<\_ACEOF
34193#define wxUSE_ZIPSTREAM 1
34194_ACEOF
34195
34196fi
34197
a848cd7e
SC
34198if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34199 cat >>confdefs.h <<\_ACEOF
34200#define wxUSE_ON_FATAL_EXCEPTION 1
34201_ACEOF
34202
34203fi
34204
34205if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34206 cat >>confdefs.h <<\_ACEOF
34207#define wxUSE_SNGLINST_CHECKER 1
34208_ACEOF
34209
34210fi
34211
34212if test "$wxUSE_BUSYINFO" = "yes"; then
34213 cat >>confdefs.h <<\_ACEOF
34214#define wxUSE_BUSYINFO 1
34215_ACEOF
34216
34217fi
34218
34219if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34220 cat >>confdefs.h <<\_ACEOF
34221#define wxUSE_STD_IOSTREAM 1
34222_ACEOF
34223
34224fi
34225
34226if test "$wxUSE_TEXTBUFFER" = "yes"; then
34227 cat >>confdefs.h <<\_ACEOF
34228#define wxUSE_TEXTBUFFER 1
34229_ACEOF
34230
34231fi
34232
34233if test "$wxUSE_TEXTFILE" = "yes"; then
34234 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34235 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34236echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34237 else
34238 cat >>confdefs.h <<\_ACEOF
34239#define wxUSE_TEXTFILE 1
34240_ACEOF
34241
34242 fi
34243fi
34244
34245if test "$wxUSE_CONFIG" = "yes" ; then
34246 if test "$wxUSE_TEXTFILE" != "yes"; then
34247 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34248echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34249 else
34250 cat >>confdefs.h <<\_ACEOF
34251#define wxUSE_CONFIG 1
34252_ACEOF
34253
34254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34255 fi
34256fi
34257
34258if test "$wxUSE_INTL" = "yes" ; then
34259 if test "$wxUSE_FILE" != "yes"; then
34260 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34261echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34262 else
34263 cat >>confdefs.h <<\_ACEOF
34264#define wxUSE_INTL 1
34265_ACEOF
34266
34267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34268 GUIDIST="$GUIDIST INTL_DIST"
34269 fi
34270fi
34271
34272if test "$wxUSE_LOG" = "yes"; then
34273 cat >>confdefs.h <<\_ACEOF
34274#define wxUSE_LOG 1
34275_ACEOF
34276
34277
34278 if test "$wxUSE_LOGGUI" = "yes"; then
34279 cat >>confdefs.h <<\_ACEOF
34280#define wxUSE_LOGGUI 1
34281_ACEOF
34282
34283 fi
34284
34285 if test "$wxUSE_LOGWINDOW" = "yes"; then
34286 cat >>confdefs.h <<\_ACEOF
34287#define wxUSE_LOGWINDOW 1
34288_ACEOF
34289
34290 fi
34291
34292 if test "$wxUSE_LOGDIALOG" = "yes"; then
34293 cat >>confdefs.h <<\_ACEOF
34294#define wxUSE_LOG_DIALOG 1
34295_ACEOF
34296
34297 fi
34298fi
34299
34300if test "$wxUSE_LONGLONG" = "yes"; then
34301 cat >>confdefs.h <<\_ACEOF
34302#define wxUSE_LONGLONG 1
34303_ACEOF
34304
34305fi
34306
34307if test "$wxUSE_GEOMETRY" = "yes"; then
34308 cat >>confdefs.h <<\_ACEOF
34309#define wxUSE_GEOMETRY 1
34310_ACEOF
34311
34312fi
34313
34314if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34315 cat >>confdefs.h <<\_ACEOF
34316#define wxUSE_DIALUP_MANAGER 1
34317_ACEOF
34318
34319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34320fi
34321
34322if test "$wxUSE_STREAMS" = "yes" ; then
34323 cat >>confdefs.h <<\_ACEOF
34324#define wxUSE_STREAMS 1
34325_ACEOF
34326
34327fi
34328
34329
34330if test "$wxUSE_DATETIME" = "yes"; then
34331
34332for ac_func in strptime
34333do
34334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34335echo "$as_me:$LINENO: checking for $ac_func" >&5
34336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34337if eval "test \"\${$as_ac_var+set}\" = set"; then
34338 echo $ECHO_N "(cached) $ECHO_C" >&6
34339else
34340 cat >conftest.$ac_ext <<_ACEOF
34341/* confdefs.h. */
34342_ACEOF
34343cat confdefs.h >>conftest.$ac_ext
34344cat >>conftest.$ac_ext <<_ACEOF
34345/* end confdefs.h. */
ac1cb8d3
VS
34346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34348#define $ac_func innocuous_$ac_func
34349
a848cd7e
SC
34350/* System header to define __stub macros and hopefully few prototypes,
34351 which can conflict with char $ac_func (); below.
34352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34353 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34354
a848cd7e
SC
34355#ifdef __STDC__
34356# include <limits.h>
34357#else
34358# include <assert.h>
34359#endif
ac1cb8d3
VS
34360
34361#undef $ac_func
34362
a848cd7e
SC
34363/* Override any gcc2 internal prototype to avoid an error. */
34364#ifdef __cplusplus
34365extern "C"
34366{
34367#endif
34368/* We use char because int might match the return type of a gcc2
34369 builtin and then its argument prototype would still apply. */
34370char $ac_func ();
34371/* The GNU C library defines this for functions which it implements
34372 to always fail with ENOSYS. Some functions are actually named
34373 something starting with __ and the normal name is an alias. */
34374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34375choke me
34376#else
34377char (*f) () = $ac_func;
34378#endif
34379#ifdef __cplusplus
34380}
34381#endif
34382
34383int
34384main ()
34385{
34386return f != $ac_func;
34387 ;
34388 return 0;
34389}
34390_ACEOF
34391rm -f conftest.$ac_objext conftest$ac_exeext
34392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34393 (eval $ac_link) 2>conftest.er1
a848cd7e 34394 ac_status=$?
ac1cb8d3
VS
34395 grep -v '^ *+' conftest.er1 >conftest.err
34396 rm -f conftest.er1
34397 cat conftest.err >&5
a848cd7e
SC
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); } &&
4d4ff94c 34400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402 (eval $ac_try) 2>&5
34403 ac_status=$?
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); }; } &&
34406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34408 (eval $ac_try) 2>&5
34409 ac_status=$?
34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411 (exit $ac_status); }; }; then
34412 eval "$as_ac_var=yes"
34413else
34414 echo "$as_me: failed program was:" >&5
34415sed 's/^/| /' conftest.$ac_ext >&5
34416
34417eval "$as_ac_var=no"
34418fi
ac1cb8d3
VS
34419rm -f conftest.err conftest.$ac_objext \
34420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34421fi
34422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34424if test `eval echo '${'$as_ac_var'}'` = yes; then
34425 cat >>confdefs.h <<_ACEOF
34426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34427_ACEOF
34428
34429fi
34430done
34431
34432
34433 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34434echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34435if test "${wx_cv_var_timezone+set}" = set; then
34436 echo $ECHO_N "(cached) $ECHO_C" >&6
34437else
34438
34439 cat >conftest.$ac_ext <<_ACEOF
34440/* confdefs.h. */
34441_ACEOF
34442cat confdefs.h >>conftest.$ac_ext
34443cat >>conftest.$ac_ext <<_ACEOF
34444/* end confdefs.h. */
34445
34446 #include <time.h>
34447
34448int
34449main ()
34450{
34451
34452 int tz;
34453 tz = timezone;
34454
34455 ;
34456 return 0;
34457}
34458_ACEOF
34459rm -f conftest.$ac_objext
34460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34461 (eval $ac_compile) 2>conftest.er1
a848cd7e 34462 ac_status=$?
ac1cb8d3
VS
34463 grep -v '^ *+' conftest.er1 >conftest.err
34464 rm -f conftest.er1
34465 cat conftest.err >&5
a848cd7e
SC
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); } &&
4d4ff94c 34468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470 (eval $ac_try) 2>&5
34471 ac_status=$?
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); }; } &&
34474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476 (eval $ac_try) 2>&5
34477 ac_status=$?
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); }; }; then
34480
34481 wx_cv_var_timezone=timezone
34482
34483else
34484 echo "$as_me: failed program was:" >&5
34485sed 's/^/| /' conftest.$ac_ext >&5
34486
34487
34488 cat >conftest.$ac_ext <<_ACEOF
34489/* confdefs.h. */
34490_ACEOF
34491cat confdefs.h >>conftest.$ac_ext
34492cat >>conftest.$ac_ext <<_ACEOF
34493/* end confdefs.h. */
34494
34495 #include <time.h>
34496
34497int
34498main ()
34499{
34500
34501 int tz;
34502 tz = _timezone;
34503
34504 ;
34505 return 0;
34506}
34507_ACEOF
34508rm -f conftest.$ac_objext
34509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34510 (eval $ac_compile) 2>conftest.er1
a848cd7e 34511 ac_status=$?
ac1cb8d3
VS
34512 grep -v '^ *+' conftest.er1 >conftest.err
34513 rm -f conftest.er1
34514 cat conftest.err >&5
a848cd7e
SC
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); } &&
4d4ff94c 34517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519 (eval $ac_try) 2>&5
34520 ac_status=$?
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; } &&
34523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525 (eval $ac_try) 2>&5
34526 ac_status=$?
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); }; }; then
34529
34530 wx_cv_var_timezone=_timezone
34531
34532else
34533 echo "$as_me: failed program was:" >&5
34534sed 's/^/| /' conftest.$ac_ext >&5
34535
34536
34537 cat >conftest.$ac_ext <<_ACEOF
34538/* confdefs.h. */
34539_ACEOF
34540cat confdefs.h >>conftest.$ac_ext
34541cat >>conftest.$ac_ext <<_ACEOF
34542/* end confdefs.h. */
34543
34544 #include <time.h>
34545
34546int
34547main ()
34548{
34549
34550 int tz;
34551 tz = __timezone;
34552
34553 ;
34554 return 0;
34555}
34556_ACEOF
34557rm -f conftest.$ac_objext
34558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34559 (eval $ac_compile) 2>conftest.er1
a848cd7e 34560 ac_status=$?
ac1cb8d3
VS
34561 grep -v '^ *+' conftest.er1 >conftest.err
34562 rm -f conftest.er1
34563 cat conftest.err >&5
a848cd7e
SC
34564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565 (exit $ac_status); } &&
4d4ff94c 34566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34568 (eval $ac_try) 2>&5
34569 ac_status=$?
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; } &&
34572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574 (eval $ac_try) 2>&5
34575 ac_status=$?
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); }; }; then
34578
34579 wx_cv_var_timezone=__timezone
34580
34581else
34582 echo "$as_me: failed program was:" >&5
34583sed 's/^/| /' conftest.$ac_ext >&5
34584
34585
34586 if test "$USE_DOS" = 0 ; then
34587 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34588echo "$as_me: WARNING: no timezone variable" >&2;}
34589 fi
34590
34591
34592fi
ac1cb8d3 34593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34594
34595
34596fi
ac1cb8d3 34597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34598
34599
34600fi
ac1cb8d3 34601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34602
34603
34604fi
34605echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34606echo "${ECHO_T}$wx_cv_var_timezone" >&6
34607
34608 if test "x$wx_cv_var_timezone" != x ; then
34609 cat >>confdefs.h <<_ACEOF
34610#define WX_TIMEZONE $wx_cv_var_timezone
34611_ACEOF
34612
34613 fi
34614
34615
34616for ac_func in localtime
34617do
34618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34619echo "$as_me:$LINENO: checking for $ac_func" >&5
34620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34621if eval "test \"\${$as_ac_var+set}\" = set"; then
34622 echo $ECHO_N "(cached) $ECHO_C" >&6
34623else
34624 cat >conftest.$ac_ext <<_ACEOF
34625/* confdefs.h. */
34626_ACEOF
34627cat confdefs.h >>conftest.$ac_ext
34628cat >>conftest.$ac_ext <<_ACEOF
34629/* end confdefs.h. */
ac1cb8d3
VS
34630/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34632#define $ac_func innocuous_$ac_func
34633
a848cd7e
SC
34634/* System header to define __stub macros and hopefully few prototypes,
34635 which can conflict with char $ac_func (); below.
34636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34637 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34638
a848cd7e
SC
34639#ifdef __STDC__
34640# include <limits.h>
34641#else
34642# include <assert.h>
34643#endif
ac1cb8d3
VS
34644
34645#undef $ac_func
34646
a848cd7e
SC
34647/* Override any gcc2 internal prototype to avoid an error. */
34648#ifdef __cplusplus
34649extern "C"
34650{
34651#endif
34652/* We use char because int might match the return type of a gcc2
34653 builtin and then its argument prototype would still apply. */
34654char $ac_func ();
34655/* The GNU C library defines this for functions which it implements
34656 to always fail with ENOSYS. Some functions are actually named
34657 something starting with __ and the normal name is an alias. */
34658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34659choke me
34660#else
34661char (*f) () = $ac_func;
34662#endif
34663#ifdef __cplusplus
34664}
34665#endif
34666
34667int
34668main ()
34669{
34670return f != $ac_func;
34671 ;
34672 return 0;
34673}
34674_ACEOF
34675rm -f conftest.$ac_objext conftest$ac_exeext
34676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34677 (eval $ac_link) 2>conftest.er1
a848cd7e 34678 ac_status=$?
ac1cb8d3
VS
34679 grep -v '^ *+' conftest.er1 >conftest.err
34680 rm -f conftest.er1
34681 cat conftest.err >&5
a848cd7e
SC
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } &&
4d4ff94c 34684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; } &&
34690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34693 ac_status=$?
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; }; then
34696 eval "$as_ac_var=yes"
34697else
34698 echo "$as_me: failed program was:" >&5
34699sed 's/^/| /' conftest.$ac_ext >&5
34700
34701eval "$as_ac_var=no"
34702fi
ac1cb8d3
VS
34703rm -f conftest.err conftest.$ac_objext \
34704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34705fi
34706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34708if test `eval echo '${'$as_ac_var'}'` = yes; then
34709 cat >>confdefs.h <<_ACEOF
34710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34711_ACEOF
34712
34713fi
34714done
34715
34716
34717 if test "$ac_cv_func_localtime" = "yes"; then
34718 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34719echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34720if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34721 echo $ECHO_N "(cached) $ECHO_C" >&6
34722else
34723
34724 cat >conftest.$ac_ext <<_ACEOF
34725/* confdefs.h. */
34726_ACEOF
34727cat confdefs.h >>conftest.$ac_ext
34728cat >>conftest.$ac_ext <<_ACEOF
34729/* end confdefs.h. */
34730
34731 #include <time.h>
34732
34733int
34734main ()
34735{
34736
34737 struct tm tm;
34738 tm.tm_gmtoff++;
34739
34740 ;
34741 return 0;
34742}
34743_ACEOF
34744rm -f conftest.$ac_objext
34745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34746 (eval $ac_compile) 2>conftest.er1
a848cd7e 34747 ac_status=$?
ac1cb8d3
VS
34748 grep -v '^ *+' conftest.er1 >conftest.err
34749 rm -f conftest.er1
34750 cat conftest.err >&5
a848cd7e
SC
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
4d4ff94c 34753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; } &&
34759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34762 ac_status=$?
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; }; then
34765
34766 wx_cv_struct_tm_has_gmtoff=yes
34767
34768else
34769 echo "$as_me: failed program was:" >&5
34770sed 's/^/| /' conftest.$ac_ext >&5
34771
34772wx_cv_struct_tm_has_gmtoff=no
34773
34774fi
ac1cb8d3 34775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34776
34777fi
34778echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34779echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
34780 fi
34781
34782 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
34783 cat >>confdefs.h <<\_ACEOF
34784#define WX_GMTOFF_IN_TM 1
34785_ACEOF
34786
34787 fi
34788
34789
34790
34791for ac_func in gettimeofday ftime
34792do
34793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34794echo "$as_me:$LINENO: checking for $ac_func" >&5
34795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34796if eval "test \"\${$as_ac_var+set}\" = set"; then
34797 echo $ECHO_N "(cached) $ECHO_C" >&6
34798else
34799 cat >conftest.$ac_ext <<_ACEOF
34800/* confdefs.h. */
34801_ACEOF
34802cat confdefs.h >>conftest.$ac_ext
34803cat >>conftest.$ac_ext <<_ACEOF
34804/* end confdefs.h. */
ac1cb8d3
VS
34805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34807#define $ac_func innocuous_$ac_func
34808
a848cd7e
SC
34809/* System header to define __stub macros and hopefully few prototypes,
34810 which can conflict with char $ac_func (); below.
34811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34812 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34813
a848cd7e
SC
34814#ifdef __STDC__
34815# include <limits.h>
34816#else
34817# include <assert.h>
34818#endif
ac1cb8d3
VS
34819
34820#undef $ac_func
34821
a848cd7e
SC
34822/* Override any gcc2 internal prototype to avoid an error. */
34823#ifdef __cplusplus
34824extern "C"
34825{
34826#endif
34827/* We use char because int might match the return type of a gcc2
34828 builtin and then its argument prototype would still apply. */
34829char $ac_func ();
34830/* The GNU C library defines this for functions which it implements
34831 to always fail with ENOSYS. Some functions are actually named
34832 something starting with __ and the normal name is an alias. */
34833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34834choke me
34835#else
34836char (*f) () = $ac_func;
34837#endif
34838#ifdef __cplusplus
34839}
34840#endif
34841
34842int
34843main ()
34844{
34845return f != $ac_func;
34846 ;
34847 return 0;
34848}
34849_ACEOF
34850rm -f conftest.$ac_objext conftest$ac_exeext
34851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34852 (eval $ac_link) 2>conftest.er1
a848cd7e 34853 ac_status=$?
ac1cb8d3
VS
34854 grep -v '^ *+' conftest.er1 >conftest.err
34855 rm -f conftest.er1
34856 cat conftest.err >&5
a848cd7e
SC
34857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34858 (exit $ac_status); } &&
4d4ff94c 34859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34861 (eval $ac_try) 2>&5
34862 ac_status=$?
34863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864 (exit $ac_status); }; } &&
34865 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34867 (eval $ac_try) 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 eval "$as_ac_var=yes"
34872else
34873 echo "$as_me: failed program was:" >&5
34874sed 's/^/| /' conftest.$ac_ext >&5
34875
34876eval "$as_ac_var=no"
34877fi
ac1cb8d3
VS
34878rm -f conftest.err conftest.$ac_objext \
34879 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34880fi
34881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34883if test `eval echo '${'$as_ac_var'}'` = yes; then
34884 cat >>confdefs.h <<_ACEOF
34885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34886_ACEOF
34887 break
34888fi
34889done
34890
34891
34892 if test "$ac_cv_func_gettimeofday" = "yes"; then
34893 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
34894echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
34895if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
34896 echo $ECHO_N "(cached) $ECHO_C" >&6
34897else
34898
34899
34900
34901 ac_ext=cc
34902ac_cpp='$CXXCPP $CPPFLAGS'
34903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34906
34907
34908 cat >conftest.$ac_ext <<_ACEOF
34909/* confdefs.h. */
34910_ACEOF
34911cat confdefs.h >>conftest.$ac_ext
34912cat >>conftest.$ac_ext <<_ACEOF
34913/* end confdefs.h. */
34914
34915 #include <sys/time.h>
34916 #include <unistd.h>
34917
34918int
34919main ()
34920{
34921
34922 struct timeval tv;
34923 gettimeofday(&tv, NULL);
34924
34925 ;
34926 return 0;
34927}
34928_ACEOF
34929rm -f conftest.$ac_objext
34930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34931 (eval $ac_compile) 2>conftest.er1
a848cd7e 34932 ac_status=$?
ac1cb8d3
VS
34933 grep -v '^ *+' conftest.er1 >conftest.err
34934 rm -f conftest.er1
34935 cat conftest.err >&5
a848cd7e
SC
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); } &&
4d4ff94c 34938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940 (eval $ac_try) 2>&5
34941 ac_status=$?
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); }; } &&
34944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34946 (eval $ac_try) 2>&5
34947 ac_status=$?
34948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949 (exit $ac_status); }; }; then
34950 wx_cv_func_gettimeofday_has_2_args=yes
34951else
34952 echo "$as_me: failed program was:" >&5
34953sed 's/^/| /' conftest.$ac_ext >&5
34954
34955cat >conftest.$ac_ext <<_ACEOF
34956/* confdefs.h. */
34957_ACEOF
34958cat confdefs.h >>conftest.$ac_ext
34959cat >>conftest.$ac_ext <<_ACEOF
34960/* end confdefs.h. */
34961
34962 #include <sys/time.h>
34963 #include <unistd.h>
34964
34965int
34966main ()
34967{
34968
34969 struct timeval tv;
34970 gettimeofday(&tv);
34971
34972 ;
34973 return 0;
34974}
34975_ACEOF
34976rm -f conftest.$ac_objext
34977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34978 (eval $ac_compile) 2>conftest.er1
a848cd7e 34979 ac_status=$?
ac1cb8d3
VS
34980 grep -v '^ *+' conftest.er1 >conftest.err
34981 rm -f conftest.er1
34982 cat conftest.err >&5
a848cd7e
SC
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); } &&
4d4ff94c 34985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34987 (eval $ac_try) 2>&5
34988 ac_status=$?
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); }; } &&
34991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993 (eval $ac_try) 2>&5
34994 ac_status=$?
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; }; then
34997 wx_cv_func_gettimeofday_has_2_args=no
34998else
34999 echo "$as_me: failed program was:" >&5
35000sed 's/^/| /' conftest.$ac_ext >&5
35001
35002
35003 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35004echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35005 wx_cv_func_gettimeofday_has_2_args=unknown
35006
35007
35008fi
ac1cb8d3 35009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35010
35011fi
ac1cb8d3 35012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35013 ac_ext=c
35014ac_cpp='$CPP $CPPFLAGS'
35015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35017ac_compiler_gnu=$ac_cv_c_compiler_gnu
35018
35019
35020fi
35021echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35022echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35023
35024 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35025 cat >>confdefs.h <<\_ACEOF
35026#define WX_GETTIMEOFDAY_NO_TZ 1
35027_ACEOF
35028
35029 fi
35030 fi
35031
35032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35033fi
35034
35035
35036if test "$wxUSE_SOCKETS" = "yes"; then
35037 if test "$wxUSE_MGL" = "1"; then
35038 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35039echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35040 wxUSE_SOCKETS="no"
35041 fi
35042fi
35043
35044if test "$wxUSE_SOCKETS" = "yes"; then
35045 if test "$TOOLKIT" != "MSW"; then
35046 echo "$as_me:$LINENO: checking for socket" >&5
35047echo $ECHO_N "checking for socket... $ECHO_C" >&6
35048if test "${ac_cv_func_socket+set}" = set; then
35049 echo $ECHO_N "(cached) $ECHO_C" >&6
35050else
35051 cat >conftest.$ac_ext <<_ACEOF
35052/* confdefs.h. */
35053_ACEOF
35054cat confdefs.h >>conftest.$ac_ext
35055cat >>conftest.$ac_ext <<_ACEOF
35056/* end confdefs.h. */
ac1cb8d3
VS
35057/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35059#define socket innocuous_socket
35060
a848cd7e
SC
35061/* System header to define __stub macros and hopefully few prototypes,
35062 which can conflict with char socket (); below.
35063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35064 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35065
a848cd7e
SC
35066#ifdef __STDC__
35067# include <limits.h>
35068#else
35069# include <assert.h>
35070#endif
ac1cb8d3
VS
35071
35072#undef socket
35073
a848cd7e
SC
35074/* Override any gcc2 internal prototype to avoid an error. */
35075#ifdef __cplusplus
35076extern "C"
35077{
35078#endif
35079/* We use char because int might match the return type of a gcc2
35080 builtin and then its argument prototype would still apply. */
35081char socket ();
35082/* The GNU C library defines this for functions which it implements
35083 to always fail with ENOSYS. Some functions are actually named
35084 something starting with __ and the normal name is an alias. */
35085#if defined (__stub_socket) || defined (__stub___socket)
35086choke me
35087#else
35088char (*f) () = socket;
35089#endif
35090#ifdef __cplusplus
35091}
35092#endif
35093
35094int
35095main ()
35096{
35097return f != socket;
35098 ;
35099 return 0;
35100}
35101_ACEOF
35102rm -f conftest.$ac_objext conftest$ac_exeext
35103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35104 (eval $ac_link) 2>conftest.er1
a848cd7e 35105 ac_status=$?
ac1cb8d3
VS
35106 grep -v '^ *+' conftest.er1 >conftest.err
35107 rm -f conftest.er1
35108 cat conftest.err >&5
a848cd7e
SC
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
4d4ff94c 35111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; } &&
35117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; }; then
35123 ac_cv_func_socket=yes
35124else
35125 echo "$as_me: failed program was:" >&5
35126sed 's/^/| /' conftest.$ac_ext >&5
35127
35128ac_cv_func_socket=no
35129fi
ac1cb8d3
VS
35130rm -f conftest.err conftest.$ac_objext \
35131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35132fi
35133echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35134echo "${ECHO_T}$ac_cv_func_socket" >&6
35135if test $ac_cv_func_socket = yes; then
35136 :
35137else
35138
35139 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35140echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35141if test "${ac_cv_lib_socket_socket+set}" = set; then
35142 echo $ECHO_N "(cached) $ECHO_C" >&6
35143else
35144 ac_check_lib_save_LIBS=$LIBS
35145LIBS="-lsocket $LIBS"
35146cat >conftest.$ac_ext <<_ACEOF
35147/* confdefs.h. */
35148_ACEOF
35149cat confdefs.h >>conftest.$ac_ext
35150cat >>conftest.$ac_ext <<_ACEOF
35151/* end confdefs.h. */
35152
35153/* Override any gcc2 internal prototype to avoid an error. */
35154#ifdef __cplusplus
35155extern "C"
35156#endif
35157/* We use char because int might match the return type of a gcc2
35158 builtin and then its argument prototype would still apply. */
35159char socket ();
35160int
35161main ()
35162{
35163socket ();
35164 ;
35165 return 0;
35166}
35167_ACEOF
35168rm -f conftest.$ac_objext conftest$ac_exeext
35169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35170 (eval $ac_link) 2>conftest.er1
a848cd7e 35171 ac_status=$?
ac1cb8d3
VS
35172 grep -v '^ *+' conftest.er1 >conftest.err
35173 rm -f conftest.er1
35174 cat conftest.err >&5
a848cd7e
SC
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); } &&
4d4ff94c 35177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35179 (eval $ac_try) 2>&5
35180 ac_status=$?
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); }; } &&
35183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35185 (eval $ac_try) 2>&5
35186 ac_status=$?
35187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35188 (exit $ac_status); }; }; then
35189 ac_cv_lib_socket_socket=yes
35190else
35191 echo "$as_me: failed program was:" >&5
35192sed 's/^/| /' conftest.$ac_ext >&5
35193
35194ac_cv_lib_socket_socket=no
35195fi
ac1cb8d3
VS
35196rm -f conftest.err conftest.$ac_objext \
35197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35198LIBS=$ac_check_lib_save_LIBS
35199fi
35200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35201echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35202if test $ac_cv_lib_socket_socket = yes; then
35203 if test "$INET_LINK" != " -lsocket"; then
35204 INET_LINK="$INET_LINK -lsocket"
35205 fi
35206else
35207
35208 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35209echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35210 wxUSE_SOCKETS=no
35211
35212
35213fi
35214
35215
35216
35217fi
35218
35219 fi
35220fi
35221
35222if test "$wxUSE_SOCKETS" = "yes" ; then
35223 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35224 ac_ext=cc
35225ac_cpp='$CXXCPP $CPPFLAGS'
35226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35229
35230 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35231echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35232if test "${wx_cv_type_getsockname3+set}" = set; then
35233 echo $ECHO_N "(cached) $ECHO_C" >&6
35234else
35235
35236 cat >conftest.$ac_ext <<_ACEOF
35237/* confdefs.h. */
35238_ACEOF
35239cat confdefs.h >>conftest.$ac_ext
35240cat >>conftest.$ac_ext <<_ACEOF
35241/* end confdefs.h. */
35242
35243 #include <sys/types.h>
35244 #include <sys/socket.h>
35245
35246int
35247main ()
35248{
35249
35250 socklen_t len;
35251 getsockname(0, 0, &len);
35252
35253 ;
35254 return 0;
35255}
35256_ACEOF
35257rm -f conftest.$ac_objext
35258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35259 (eval $ac_compile) 2>conftest.er1
a848cd7e 35260 ac_status=$?
ac1cb8d3
VS
35261 grep -v '^ *+' conftest.er1 >conftest.err
35262 rm -f conftest.er1
35263 cat conftest.err >&5
a848cd7e
SC
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); } &&
4d4ff94c 35266 { ac_try='test -z "$ac_cxx_werror_flag" || 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_objext'
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 wx_cv_type_getsockname3=socklen_t
35279else
35280 echo "$as_me: failed program was:" >&5
35281sed 's/^/| /' conftest.$ac_ext >&5
35282
35283
35284 CFLAGS_OLD="$CFLAGS"
35285 if test "$GCC" = yes ; then
35286 CFLAGS="$CFLAGS -Werror"
35287 fi
35288
35289 cat >conftest.$ac_ext <<_ACEOF
35290/* confdefs.h. */
35291_ACEOF
35292cat confdefs.h >>conftest.$ac_ext
35293cat >>conftest.$ac_ext <<_ACEOF
35294/* end confdefs.h. */
35295
35296 #include <sys/types.h>
35297 #include <sys/socket.h>
35298
35299int
35300main ()
35301{
35302
35303 size_t len;
35304 getsockname(0, 0, &len);
35305
35306 ;
35307 return 0;
35308}
35309_ACEOF
35310rm -f conftest.$ac_objext
35311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35312 (eval $ac_compile) 2>conftest.er1
a848cd7e 35313 ac_status=$?
ac1cb8d3
VS
35314 grep -v '^ *+' conftest.er1 >conftest.err
35315 rm -f conftest.er1
35316 cat conftest.err >&5
a848cd7e
SC
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); } &&
4d4ff94c 35319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35321 (eval $ac_try) 2>&5
35322 ac_status=$?
35323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35324 (exit $ac_status); }; } &&
35325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35327 (eval $ac_try) 2>&5
35328 ac_status=$?
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); }; }; then
35331 wx_cv_type_getsockname3=size_t
35332else
35333 echo "$as_me: failed program was:" >&5
35334sed 's/^/| /' conftest.$ac_ext >&5
35335
35336cat >conftest.$ac_ext <<_ACEOF
35337/* confdefs.h. */
35338_ACEOF
35339cat confdefs.h >>conftest.$ac_ext
35340cat >>conftest.$ac_ext <<_ACEOF
35341/* end confdefs.h. */
35342
35343 #include <sys/types.h>
35344 #include <sys/socket.h>
35345
35346int
35347main ()
35348{
35349
35350 int len;
35351 getsockname(0, 0, &len);
35352
35353 ;
35354 return 0;
35355}
35356_ACEOF
35357rm -f conftest.$ac_objext
35358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35359 (eval $ac_compile) 2>conftest.er1
a848cd7e 35360 ac_status=$?
ac1cb8d3
VS
35361 grep -v '^ *+' conftest.er1 >conftest.err
35362 rm -f conftest.er1
35363 cat conftest.err >&5
a848cd7e
SC
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); } &&
4d4ff94c 35366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35369 ac_status=$?
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; } &&
35372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35374 (eval $ac_try) 2>&5
35375 ac_status=$?
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); }; }; then
35378 wx_cv_type_getsockname3=int
35379else
35380 echo "$as_me: failed program was:" >&5
35381sed 's/^/| /' conftest.$ac_ext >&5
35382
35383wx_cv_type_getsockname3=unknown
35384
35385fi
ac1cb8d3 35386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35387
35388fi
ac1cb8d3 35389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35390
35391 CFLAGS="$CFLAGS_OLD"
35392
35393
35394fi
ac1cb8d3 35395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35396
35397fi
35398echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35399echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35400
35401 if test "$wx_cv_type_getsockname3" = "unknown"; then
35402 wxUSE_SOCKETS=no
35403 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35404echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35405 else
35406 cat >>confdefs.h <<_ACEOF
35407#define SOCKLEN_T $wx_cv_type_getsockname3
35408_ACEOF
35409
35410 fi
4d4ff94c
VZ
35411 ac_ext=c
35412ac_cpp='$CPP $CPPFLAGS'
35413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35415ac_compiler_gnu=$ac_cv_c_compiler_gnu
35416
a848cd7e
SC
35417 fi
35418fi
35419
35420if test "$wxUSE_SOCKETS" = "yes" ; then
35421 cat >>confdefs.h <<\_ACEOF
35422#define wxUSE_SOCKETS 1
35423_ACEOF
35424
35425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35426fi
35427
35428if test "$wxUSE_PROTOCOL" = "yes"; then
35429 if test "$wxUSE_SOCKETS" != "yes"; then
35430 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35431echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35432 wxUSE_PROTOCOL=no
35433 fi
35434fi
35435
35436if test "$wxUSE_PROTOCOL" = "yes"; then
35437 cat >>confdefs.h <<\_ACEOF
35438#define wxUSE_PROTOCOL 1
35439_ACEOF
35440
35441
35442 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35443 cat >>confdefs.h <<\_ACEOF
35444#define wxUSE_PROTOCOL_HTTP 1
35445_ACEOF
35446
35447 fi
35448 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35449 cat >>confdefs.h <<\_ACEOF
35450#define wxUSE_PROTOCOL_FTP 1
35451_ACEOF
35452
35453 fi
35454 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35455 cat >>confdefs.h <<\_ACEOF
35456#define wxUSE_PROTOCOL_FILE 1
35457_ACEOF
35458
35459 fi
35460else
35461 if test "$wxUSE_FS_INET" = "yes"; then
35462 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35463echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35464 wxUSE_FS_INET="no"
35465 fi
35466fi
35467
35468if test "$wxUSE_URL" = "yes"; then
35469 if test "$wxUSE_PROTOCOL" != "yes"; then
35470 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35471echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35472 wxUSE_URL=no
35473 fi
35474 if test "$wxUSE_URL" = "yes"; then
35475 cat >>confdefs.h <<\_ACEOF
35476#define wxUSE_URL 1
35477_ACEOF
35478
35479 fi
35480fi
35481
35482if test "$wxUSE_FS_INET" = "yes"; then
35483 cat >>confdefs.h <<\_ACEOF
35484#define wxUSE_FS_INET 1
35485_ACEOF
35486
35487fi
35488
35489
35490if test "$wxUSE_GUI" = "yes"; then
35491
35492 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35493 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35494echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35495 wxUSE_JOYSTICK=no
35496 fi
35497
35498 if test "$TOOLKIT" != "MSW"; then
35499 if test "$wxUSE_JOYSTICK" = "yes"; then
35500
35501for ac_header in linux/joystick.h
35502do
35503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35504if eval "test \"\${$as_ac_Header+set}\" = set"; then
35505 echo "$as_me:$LINENO: checking for $ac_header" >&5
35506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35507if eval "test \"\${$as_ac_Header+set}\" = set"; then
35508 echo $ECHO_N "(cached) $ECHO_C" >&6
35509fi
35510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35512else
35513 # Is the header compilable?
35514echo "$as_me:$LINENO: checking $ac_header usability" >&5
35515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35516cat >conftest.$ac_ext <<_ACEOF
35517/* confdefs.h. */
35518_ACEOF
35519cat confdefs.h >>conftest.$ac_ext
35520cat >>conftest.$ac_ext <<_ACEOF
35521/* end confdefs.h. */
35522$ac_includes_default
35523#include <$ac_header>
35524_ACEOF
35525rm -f conftest.$ac_objext
35526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35527 (eval $ac_compile) 2>conftest.er1
a848cd7e 35528 ac_status=$?
ac1cb8d3
VS
35529 grep -v '^ *+' conftest.er1 >conftest.err
35530 rm -f conftest.er1
35531 cat conftest.err >&5
a848cd7e
SC
35532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533 (exit $ac_status); } &&
4d4ff94c 35534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536 (eval $ac_try) 2>&5
35537 ac_status=$?
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); }; } &&
35540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35542 (eval $ac_try) 2>&5
35543 ac_status=$?
35544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545 (exit $ac_status); }; }; then
35546 ac_header_compiler=yes
35547else
35548 echo "$as_me: failed program was:" >&5
35549sed 's/^/| /' conftest.$ac_ext >&5
35550
35551ac_header_compiler=no
35552fi
ac1cb8d3 35553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35555echo "${ECHO_T}$ac_header_compiler" >&6
35556
35557# Is the header present?
35558echo "$as_me:$LINENO: checking $ac_header presence" >&5
35559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35560cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h. */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h. */
35566#include <$ac_header>
35567_ACEOF
35568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35570 ac_status=$?
35571 grep -v '^ *+' conftest.er1 >conftest.err
35572 rm -f conftest.er1
35573 cat conftest.err >&5
35574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575 (exit $ac_status); } >/dev/null; then
35576 if test -s conftest.err; then
35577 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35579 else
35580 ac_cpp_err=
35581 fi
35582else
35583 ac_cpp_err=yes
35584fi
35585if test -z "$ac_cpp_err"; then
35586 ac_header_preproc=yes
35587else
35588 echo "$as_me: failed program was:" >&5
35589sed 's/^/| /' conftest.$ac_ext >&5
35590
35591 ac_header_preproc=no
35592fi
35593rm -f conftest.err conftest.$ac_ext
35594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35595echo "${ECHO_T}$ac_header_preproc" >&6
35596
35597# So? What about this header?
ac1cb8d3
VS
35598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35599 yes:no: )
a848cd7e
SC
35600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35604 ac_header_preproc=yes
a848cd7e 35605 ;;
ac1cb8d3 35606 no:yes:* )
a848cd7e
SC
35607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35619 (
35620 cat <<\_ASBOX
ac1cb8d3
VS
35621## ----------------------------------------- ##
35622## Report this to wx-dev@lists.wxwidgets.org ##
35623## ----------------------------------------- ##
a848cd7e
SC
35624_ASBOX
35625 ) |
35626 sed "s/^/$as_me: WARNING: /" >&2
35627 ;;
35628esac
35629echo "$as_me:$LINENO: checking for $ac_header" >&5
35630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35631if eval "test \"\${$as_ac_Header+set}\" = set"; then
35632 echo $ECHO_N "(cached) $ECHO_C" >&6
35633else
ac1cb8d3 35634 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35635fi
35636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35638
35639fi
35640if test `eval echo '${'$as_ac_Header'}'` = yes; then
35641 cat >>confdefs.h <<_ACEOF
35642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35643_ACEOF
35644
35645fi
35646
35647done
35648
35649 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35650 wxUSE_JOYSTICK=no
35651 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35652echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35653 fi
35654 fi
35655 fi
35656
35657 if test "$wxUSE_JOYSTICK" = "yes"; then
35658 cat >>confdefs.h <<\_ACEOF
35659#define wxUSE_JOYSTICK 1
35660_ACEOF
35661
35662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35663 fi
35664fi
35665
35666
35667
35668if test "$wxUSE_FONTMAP" = "yes" ; then
35669 cat >>confdefs.h <<\_ACEOF
35670#define wxUSE_FONTMAP 1
35671_ACEOF
35672
35673fi
35674
35675if test "$wxUSE_UNICODE" = "yes" ; then
35676 cat >>confdefs.h <<\_ACEOF
35677#define wxUSE_UNICODE 1
35678_ACEOF
35679
35680
35681 if test "$USE_WIN32" != 1; then
35682 wxUSE_UNICODE_MSLU=no
35683 fi
35684
35685 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35686 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35687echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35688if test "${ac_cv_lib_unicows_main+set}" = set; then
35689 echo $ECHO_N "(cached) $ECHO_C" >&6
35690else
35691 ac_check_lib_save_LIBS=$LIBS
35692LIBS="-lunicows $LIBS"
35693cat >conftest.$ac_ext <<_ACEOF
35694/* confdefs.h. */
35695_ACEOF
35696cat confdefs.h >>conftest.$ac_ext
35697cat >>conftest.$ac_ext <<_ACEOF
35698/* end confdefs.h. */
35699
35700
35701int
35702main ()
35703{
35704main ();
35705 ;
35706 return 0;
35707}
35708_ACEOF
35709rm -f conftest.$ac_objext conftest$ac_exeext
35710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35711 (eval $ac_link) 2>conftest.er1
a848cd7e 35712 ac_status=$?
ac1cb8d3
VS
35713 grep -v '^ *+' conftest.er1 >conftest.err
35714 rm -f conftest.er1
35715 cat conftest.err >&5
a848cd7e
SC
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); } &&
4d4ff94c 35718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35720 (eval $ac_try) 2>&5
35721 ac_status=$?
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); }; } &&
35724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35726 (eval $ac_try) 2>&5
35727 ac_status=$?
35728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729 (exit $ac_status); }; }; then
35730 ac_cv_lib_unicows_main=yes
35731else
35732 echo "$as_me: failed program was:" >&5
35733sed 's/^/| /' conftest.$ac_ext >&5
35734
35735ac_cv_lib_unicows_main=no
35736fi
ac1cb8d3
VS
35737rm -f conftest.err conftest.$ac_objext \
35738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35739LIBS=$ac_check_lib_save_LIBS
35740fi
35741echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35742echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35743if test $ac_cv_lib_unicows_main = yes; then
35744
35745 cat >>confdefs.h <<\_ACEOF
35746#define wxUSE_UNICODE_MSLU 1
35747_ACEOF
35748
35749
35750else
35751
35752 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35753 Applications will only run on Windows NT/2000/XP!" >&5
35754echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35755 Applications will only run on Windows NT/2000/XP!" >&2;}
35756 wxUSE_UNICODE_MSLU=no
35757
35758fi
35759
35760 fi
35761fi
35762
35763if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35764 cat >>confdefs.h <<\_ACEOF
35765#define wxUSE_EXPERIMENTAL_PRINTF 1
35766_ACEOF
35767
35768fi
35769
35770
35771if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35772 cat >>confdefs.h <<\_ACEOF
35773#define wxUSE_POSTSCRIPT 1
35774_ACEOF
35775
35776fi
35777
35778cat >>confdefs.h <<\_ACEOF
35779#define wxUSE_AFM_FOR_POSTSCRIPT 1
35780_ACEOF
35781
35782
35783cat >>confdefs.h <<\_ACEOF
35784#define wxUSE_NORMALIZED_PS_FONTS 1
35785_ACEOF
35786
35787
35788
35789if test "$wxUSE_CONSTRAINTS" = "yes"; then
35790 cat >>confdefs.h <<\_ACEOF
35791#define wxUSE_CONSTRAINTS 1
35792_ACEOF
35793
35794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35795fi
35796
8a7b1113
VZ
35797if test "$wxUSE_MDI" = "yes"; then
35798 cat >>confdefs.h <<\_ACEOF
35799#define wxUSE_MDI 1
35800_ACEOF
35801
35802
35803 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35804 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35805#define wxUSE_MDI_ARCHITECTURE 1
35806_ACEOF
35807
8a7b1113
VZ
35808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35809 fi
a848cd7e
SC
35810fi
35811
35812if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35813 cat >>confdefs.h <<\_ACEOF
35814#define wxUSE_DOC_VIEW_ARCHITECTURE 1
35815_ACEOF
35816
35817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35818 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35820 fi
35821fi
35822
35823if test "$wxUSE_HELP" = "yes"; then
35824 cat >>confdefs.h <<\_ACEOF
35825#define wxUSE_HELP 1
35826_ACEOF
35827
35828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35829
35830 if test "$wxUSE_MSW" = 1; then
35831 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
35832 cat >>confdefs.h <<\_ACEOF
35833#define wxUSE_MS_HTML_HELP 1
35834_ACEOF
35835
35836 fi
35837 fi
35838
35839 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35840 if test "$wxUSE_HTML" = "yes"; then
35841 cat >>confdefs.h <<\_ACEOF
35842#define wxUSE_WXHTML_HELP 1
35843_ACEOF
35844
35845 else
35846 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35847echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
35848 wxUSE_WXHTML_HELP=no
35849 fi
35850 fi
35851fi
35852
35853if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35854 if test "$wxUSE_CONSTRAINTS" != "yes"; then
35855 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35856echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
35857 else
35858 cat >>confdefs.h <<\_ACEOF
35859#define wxUSE_PRINTING_ARCHITECTURE 1
35860_ACEOF
35861
35862 fi
35863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35864fi
35865
35866if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35867 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35868echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35869 { (exit 1); exit 1; }; }
35870fi
35871
35872
35873if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35874 -o "$wxUSE_CLIPBOARD" = "yes" \
35875 -o "$wxUSE_OLE" = "yes" \
35876 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35877
35878for ac_header in ole2.h
35879do
35880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35881if eval "test \"\${$as_ac_Header+set}\" = set"; then
35882 echo "$as_me:$LINENO: checking for $ac_header" >&5
35883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35884if eval "test \"\${$as_ac_Header+set}\" = set"; then
35885 echo $ECHO_N "(cached) $ECHO_C" >&6
35886fi
35887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35889else
35890 # Is the header compilable?
35891echo "$as_me:$LINENO: checking $ac_header usability" >&5
35892echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35893cat >conftest.$ac_ext <<_ACEOF
35894/* confdefs.h. */
35895_ACEOF
35896cat confdefs.h >>conftest.$ac_ext
35897cat >>conftest.$ac_ext <<_ACEOF
35898/* end confdefs.h. */
35899$ac_includes_default
35900#include <$ac_header>
35901_ACEOF
35902rm -f conftest.$ac_objext
35903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35904 (eval $ac_compile) 2>conftest.er1
a848cd7e 35905 ac_status=$?
ac1cb8d3
VS
35906 grep -v '^ *+' conftest.er1 >conftest.err
35907 rm -f conftest.er1
35908 cat conftest.err >&5
a848cd7e
SC
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } &&
4d4ff94c 35911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35913 (eval $ac_try) 2>&5
35914 ac_status=$?
35915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35916 (exit $ac_status); }; } &&
35917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35919 (eval $ac_try) 2>&5
35920 ac_status=$?
35921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35922 (exit $ac_status); }; }; then
35923 ac_header_compiler=yes
35924else
35925 echo "$as_me: failed program was:" >&5
35926sed 's/^/| /' conftest.$ac_ext >&5
35927
35928ac_header_compiler=no
35929fi
ac1cb8d3 35930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35932echo "${ECHO_T}$ac_header_compiler" >&6
35933
35934# Is the header present?
35935echo "$as_me:$LINENO: checking $ac_header presence" >&5
35936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35937cat >conftest.$ac_ext <<_ACEOF
35938/* confdefs.h. */
35939_ACEOF
35940cat confdefs.h >>conftest.$ac_ext
35941cat >>conftest.$ac_ext <<_ACEOF
35942/* end confdefs.h. */
35943#include <$ac_header>
35944_ACEOF
35945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35947 ac_status=$?
35948 grep -v '^ *+' conftest.er1 >conftest.err
35949 rm -f conftest.er1
35950 cat conftest.err >&5
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); } >/dev/null; then
35953 if test -s conftest.err; then
35954 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35956 else
35957 ac_cpp_err=
35958 fi
35959else
35960 ac_cpp_err=yes
35961fi
35962if test -z "$ac_cpp_err"; then
35963 ac_header_preproc=yes
35964else
35965 echo "$as_me: failed program was:" >&5
35966sed 's/^/| /' conftest.$ac_ext >&5
35967
35968 ac_header_preproc=no
35969fi
35970rm -f conftest.err conftest.$ac_ext
35971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35972echo "${ECHO_T}$ac_header_preproc" >&6
35973
35974# So? What about this header?
ac1cb8d3
VS
35975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35976 yes:no: )
a848cd7e
SC
35977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35978echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35980echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35981 ac_header_preproc=yes
a848cd7e 35982 ;;
ac1cb8d3 35983 no:yes:* )
a848cd7e
SC
35984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35985echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35987echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35989echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35991echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35995echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35996 (
35997 cat <<\_ASBOX
ac1cb8d3
VS
35998## ----------------------------------------- ##
35999## Report this to wx-dev@lists.wxwidgets.org ##
36000## ----------------------------------------- ##
a848cd7e
SC
36001_ASBOX
36002 ) |
36003 sed "s/^/$as_me: WARNING: /" >&2
36004 ;;
36005esac
36006echo "$as_me:$LINENO: checking for $ac_header" >&5
36007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36008if eval "test \"\${$as_ac_Header+set}\" = set"; then
36009 echo $ECHO_N "(cached) $ECHO_C" >&6
36010else
ac1cb8d3 36011 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36012fi
36013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36015
36016fi
36017if test `eval echo '${'$as_ac_Header'}'` = yes; then
36018 cat >>confdefs.h <<_ACEOF
36019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36020_ACEOF
36021
36022fi
36023
36024done
36025
36026
36027 if test "$ac_cv_header_ole2_h" = "yes" ; then
36028 if test "$GCC" = yes ; then
36029
36030
36031 ac_ext=cc
36032ac_cpp='$CXXCPP $CPPFLAGS'
36033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36036
36037
36038 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36039echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36040 cat >conftest.$ac_ext <<_ACEOF
36041/* confdefs.h. */
36042_ACEOF
36043cat confdefs.h >>conftest.$ac_ext
36044cat >>conftest.$ac_ext <<_ACEOF
36045/* end confdefs.h. */
36046#include <windows.h>
36047 #include <ole2.h>
36048int
36049main ()
36050{
36051
36052 ;
36053 return 0;
36054}
36055_ACEOF
36056rm -f conftest.$ac_objext
36057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36058 (eval $ac_compile) 2>conftest.er1
a848cd7e 36059 ac_status=$?
ac1cb8d3
VS
36060 grep -v '^ *+' conftest.er1 >conftest.err
36061 rm -f conftest.er1
36062 cat conftest.err >&5
a848cd7e
SC
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } &&
4d4ff94c 36065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36067 (eval $ac_try) 2>&5
36068 ac_status=$?
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); }; } &&
36071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36073 (eval $ac_try) 2>&5
36074 ac_status=$?
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); }; }; then
36077 echo "$as_me:$LINENO: result: no" >&5
36078echo "${ECHO_T}no" >&6
36079else
36080 echo "$as_me: failed program was:" >&5
36081sed 's/^/| /' conftest.$ac_ext >&5
36082
36083echo "$as_me:$LINENO: result: yes" >&5
36084echo "${ECHO_T}yes" >&6
36085 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36086fi
ac1cb8d3 36087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36088 ac_ext=c
36089ac_cpp='$CPP $CPPFLAGS'
36090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36092ac_compiler_gnu=$ac_cv_c_compiler_gnu
36093
36094 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36095 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36096 if test "$wxUSE_OLE" = "yes" ; then
36097 cat >>confdefs.h <<\_ACEOF
36098#define wxUSE_OLE 1
36099_ACEOF
36100
36101 fi
36102 fi
36103
36104 if test "$wxUSE_DATAOBJ" = "yes" ; then
36105 cat >>confdefs.h <<\_ACEOF
36106#define wxUSE_DATAOBJ 1
36107_ACEOF
36108
36109 fi
36110 else
36111 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36112echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36113
36114 wxUSE_CLIPBOARD=no
36115 wxUSE_DRAG_AND_DROP=no
36116 wxUSE_DATAOBJ=no
36117 wxUSE_OLE=no
36118 fi
36119
36120 if test "$wxUSE_METAFILE" = "yes"; then
36121 cat >>confdefs.h <<\_ACEOF
36122#define wxUSE_METAFILE 1
36123_ACEOF
36124
36125
36126 cat >>confdefs.h <<\_ACEOF
36127#define wxUSE_ENH_METAFILE 1
36128_ACEOF
36129
36130 fi
36131fi
36132
36133if test "$wxUSE_IPC" = "yes"; then
36134 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36135 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36136echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36137 fi
36138
36139 cat >>confdefs.h <<\_ACEOF
36140#define wxUSE_IPC 1
36141_ACEOF
36142
36143fi
36144
36145if test "$wxUSE_CLIPBOARD" = "yes"; then
36146 if test "$wxUSE_MGL" = 1; then
36147 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36148echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36149 wxUSE_CLIPBOARD=no
36150 fi
36151
36152 if test "$wxUSE_CLIPBOARD" = "yes"; then
36153 cat >>confdefs.h <<\_ACEOF
36154#define wxUSE_CLIPBOARD 1
36155_ACEOF
36156
36157
36158 cat >>confdefs.h <<\_ACEOF
36159#define wxUSE_DATAOBJ 1
36160_ACEOF
36161
36162 fi
36163fi
36164
36165if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36166 if test "$wxUSE_GTK" = 1; then
36167 if test "$WXGTK12" != 1; then
36168 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36169echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36170 wxUSE_DRAG_AND_DROP=no
36171 fi
36172 fi
36173
36174 if test "$wxUSE_MOTIF" = 1; then
36175 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36176echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36177 wxUSE_DRAG_AND_DROP=no
36178 fi
36179
36180 if test "$wxUSE_X11" = 1; then
36181 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36182echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36183 wxUSE_DRAG_AND_DROP=no
36184 fi
36185
36186 if test "$wxUSE_MGL" = 1; then
36187 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36188echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36189 wxUSE_DRAG_AND_DROP=no
36190 fi
36191
36192 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36193 cat >>confdefs.h <<\_ACEOF
36194#define wxUSE_DRAG_AND_DROP 1
36195_ACEOF
36196
36197 fi
36198
36199fi
36200
36201if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36203fi
36204
36205if test "$wxUSE_SPLINES" = "yes" ; then
36206 cat >>confdefs.h <<\_ACEOF
36207#define wxUSE_SPLINES 1
36208_ACEOF
36209
36210fi
36211
36212
36213USES_CONTROLS=0
36214if test "$wxUSE_CONTROLS" = "yes"; then
36215 USES_CONTROLS=1
36216fi
36217
36218if test "$wxUSE_ACCEL" = "yes"; then
36219 cat >>confdefs.h <<\_ACEOF
36220#define wxUSE_ACCEL 1
36221_ACEOF
36222
36223 USES_CONTROLS=1
36224fi
36225
36226if test "$wxUSE_BUTTON" = "yes"; then
36227 cat >>confdefs.h <<\_ACEOF
36228#define wxUSE_BUTTON 1
36229_ACEOF
36230
36231 USES_CONTROLS=1
36232fi
36233
36234if test "$wxUSE_BMPBUTTON" = "yes"; then
36235 cat >>confdefs.h <<\_ACEOF
36236#define wxUSE_BMPBUTTON 1
36237_ACEOF
36238
36239 USES_CONTROLS=1
36240fi
36241
36242if test "$wxUSE_CALCTRL" = "yes"; then
36243 cat >>confdefs.h <<\_ACEOF
36244#define wxUSE_CALENDARCTRL 1
36245_ACEOF
36246
36247 USES_CONTROLS=1
36248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36249fi
36250
36251if test "$wxUSE_CARET" = "yes"; then
36252 cat >>confdefs.h <<\_ACEOF
36253#define wxUSE_CARET 1
36254_ACEOF
36255
36256 USES_CONTROLS=1
36257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36258fi
36259
36260if test "$wxUSE_COMBOBOX" = "yes"; then
36261 cat >>confdefs.h <<\_ACEOF
36262#define wxUSE_COMBOBOX 1
36263_ACEOF
36264
36265 USES_CONTROLS=1
36266fi
36267
36268if test "$wxUSE_CHOICE" = "yes"; then
36269 cat >>confdefs.h <<\_ACEOF
36270#define wxUSE_CHOICE 1
36271_ACEOF
36272
36273 USES_CONTROLS=1
36274fi
36275
36276if test "$wxUSE_CHECKBOX" = "yes"; then
36277 cat >>confdefs.h <<\_ACEOF
36278#define wxUSE_CHECKBOX 1
36279_ACEOF
36280
36281 USES_CONTROLS=1
36282fi
36283
36284if test "$wxUSE_CHECKLST" = "yes"; then
36285 cat >>confdefs.h <<\_ACEOF
36286#define wxUSE_CHECKLISTBOX 1
36287_ACEOF
36288
36289 USES_CONTROLS=1
36290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36291fi
36292
36293if test "$wxUSE_DISPLAY" = "yes"; then
36294 cat >>confdefs.h <<\_ACEOF
36295#define wxUSE_DISPLAY 1
36296_ACEOF
36297
36298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36299fi
36300
36301if test "$wxUSE_GAUGE" = "yes"; then
36302 cat >>confdefs.h <<\_ACEOF
36303#define wxUSE_GAUGE 1
36304_ACEOF
36305
36306 USES_CONTROLS=1
36307fi
36308
36309if test "$wxUSE_GRID" = "yes"; then
36310 cat >>confdefs.h <<\_ACEOF
36311#define wxUSE_GRID 1
36312_ACEOF
36313
36314 USES_CONTROLS=1
36315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36316fi
36317
36318if test "$wxUSE_IMAGLIST" = "yes"; then
36319 cat >>confdefs.h <<\_ACEOF
36320#define wxUSE_IMAGLIST 1
36321_ACEOF
36322
36323fi
36324
36325if test "$wxUSE_LISTBOOK" = "yes"; then
36326 cat >>confdefs.h <<\_ACEOF
36327#define wxUSE_LISTBOOK 1
36328_ACEOF
36329
36330 USES_CONTROLS=1
36331fi
36332
36333if test "$wxUSE_LISTBOX" = "yes"; then
36334 cat >>confdefs.h <<\_ACEOF
36335#define wxUSE_LISTBOX 1
36336_ACEOF
36337
36338 USES_CONTROLS=1
36339fi
36340
36341if test "$wxUSE_LISTCTRL" = "yes"; then
36342 if test "$wxUSE_IMAGLIST" = "yes"; then
36343 cat >>confdefs.h <<\_ACEOF
36344#define wxUSE_LISTCTRL 1
36345_ACEOF
36346
36347 USES_CONTROLS=1
36348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36349 else
36350 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36351echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36352 fi
36353fi
36354
36355if test "$wxUSE_NOTEBOOK" = "yes"; then
36356 cat >>confdefs.h <<\_ACEOF
36357#define wxUSE_NOTEBOOK 1
36358_ACEOF
36359
36360 USES_CONTROLS=1
36361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36362fi
36363
36364
36365if test "$wxUSE_RADIOBOX" = "yes"; then
36366 cat >>confdefs.h <<\_ACEOF
36367#define wxUSE_RADIOBOX 1
36368_ACEOF
36369
36370 USES_CONTROLS=1
36371fi
36372
36373if test "$wxUSE_RADIOBTN" = "yes"; then
36374 cat >>confdefs.h <<\_ACEOF
36375#define wxUSE_RADIOBTN 1
36376_ACEOF
36377
36378 USES_CONTROLS=1
36379fi
36380
36381if test "$wxUSE_SASH" = "yes"; then
36382 cat >>confdefs.h <<\_ACEOF
36383#define wxUSE_SASH 1
36384_ACEOF
36385
36386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36387fi
36388
36389if test "$wxUSE_SCROLLBAR" = "yes"; then
36390 cat >>confdefs.h <<\_ACEOF
36391#define wxUSE_SCROLLBAR 1
36392_ACEOF
36393
36394 USES_CONTROLS=1
36395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36396fi
36397
36398if test "$wxUSE_SLIDER" = "yes"; then
36399 cat >>confdefs.h <<\_ACEOF
36400#define wxUSE_SLIDER 1
36401_ACEOF
36402
36403 USES_CONTROLS=1
36404fi
36405
36406if test "$wxUSE_SPINBTN" = "yes"; then
36407 cat >>confdefs.h <<\_ACEOF
36408#define wxUSE_SPINBTN 1
36409_ACEOF
36410
36411 USES_CONTROLS=1
36412fi
36413
36414if test "$wxUSE_SPINCTRL" = "yes"; then
36415 cat >>confdefs.h <<\_ACEOF
36416#define wxUSE_SPINCTRL 1
36417_ACEOF
36418
36419 USES_CONTROLS=1
36420fi
36421
36422if test "$wxUSE_SPLITTER" = "yes"; then
36423 cat >>confdefs.h <<\_ACEOF
36424#define wxUSE_SPLITTER 1
36425_ACEOF
36426
36427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36428fi
36429
36430if test "$wxUSE_STATBMP" = "yes"; then
36431 cat >>confdefs.h <<\_ACEOF
36432#define wxUSE_STATBMP 1
36433_ACEOF
36434
36435 USES_CONTROLS=1
36436fi
36437
36438if test "$wxUSE_STATBOX" = "yes"; then
36439 cat >>confdefs.h <<\_ACEOF
36440#define wxUSE_STATBOX 1
36441_ACEOF
36442
36443 USES_CONTROLS=1
36444fi
36445
36446if test "$wxUSE_STATTEXT" = "yes"; then
36447 cat >>confdefs.h <<\_ACEOF
36448#define wxUSE_STATTEXT 1
36449_ACEOF
36450
36451 USES_CONTROLS=1
36452fi
36453
36454if test "$wxUSE_STATLINE" = "yes"; then
36455 cat >>confdefs.h <<\_ACEOF
36456#define wxUSE_STATLINE 1
36457_ACEOF
36458
36459 USES_CONTROLS=1
36460fi
36461
36462if test "$wxUSE_STATUSBAR" = "yes"; then
36463 cat >>confdefs.h <<\_ACEOF
36464#define wxUSE_STATUSBAR 1
36465_ACEOF
36466
36467 USES_CONTROLS=1
36468
36469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36470fi
36471
36472if test "$wxUSE_TABDIALOG" = "yes"; then
36473 cat >>confdefs.h <<\_ACEOF
36474#define wxUSE_TAB_DIALOG 1
36475_ACEOF
36476
36477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36478fi
36479
36480if test "$wxUSE_TEXTCTRL" = "yes"; then
36481 cat >>confdefs.h <<\_ACEOF
36482#define wxUSE_TEXTCTRL 1
36483_ACEOF
36484
36485 USES_CONTROLS=1
36486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36487fi
36488
36489if test "$wxUSE_TOGGLEBTN" = "yes"; then
36490 if test "$wxUSE_COCOA" = 1 ; then
36491 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36492echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36493 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36494 else
36495 if test "$wxUSE_PM" = 1; then
36496 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36497echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36498 wxUSE_TOGGLEBTN=no
36499 fi
a848cd7e
SC
36500 fi
36501 if test "$wxUSE_UNIVERSAL" = "yes"; then
36502 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36503echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36504 wxUSE_TOGGLEBTN=no
36505 fi
36506
36507 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36508 cat >>confdefs.h <<\_ACEOF
36509#define wxUSE_TOGGLEBTN 1
36510_ACEOF
36511
36512 USES_CONTROLS=1
36513 fi
36514fi
36515
36516if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36517 cat >>confdefs.h <<\_ACEOF
36518#define wxUSE_TOOLBAR_SIMPLE 1
36519_ACEOF
36520
36521 wxUSE_TOOLBAR="yes"
36522 USES_CONTROLS=1
36523fi
36524
36525if test "$wxUSE_TOOLBAR" = "yes"; then
36526 cat >>confdefs.h <<\_ACEOF
36527#define wxUSE_TOOLBAR 1
36528_ACEOF
36529
36530 USES_CONTROLS=1
36531
36532 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36533 wxUSE_TOOLBAR_NATIVE="yes"
36534 fi
36535
36536 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36537 cat >>confdefs.h <<\_ACEOF
36538#define wxUSE_TOOLBAR_NATIVE 1
36539_ACEOF
36540
36541 USES_CONTROLS=1
36542 fi
36543
36544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36545fi
36546
36547if test "$wxUSE_TOOLTIPS" = "yes"; then
36548 if test "$wxUSE_MOTIF" = 1; then
36549 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36550echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36551 else
36552 if test "$wxUSE_UNIVERSAL" = "yes"; then
36553 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36554echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36555 else
36556 cat >>confdefs.h <<\_ACEOF
36557#define wxUSE_TOOLTIPS 1
36558_ACEOF
36559
36560 fi
36561 fi
36562fi
36563
36564if test "$wxUSE_TREECTRL" = "yes"; then
36565 if test "$wxUSE_IMAGLIST" = "yes"; then
36566 cat >>confdefs.h <<\_ACEOF
36567#define wxUSE_TREECTRL 1
36568_ACEOF
36569
36570 USES_CONTROLS=1
36571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36572 else
36573 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36574echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36575 fi
36576fi
36577
36578if test "$wxUSE_POPUPWIN" = "yes"; then
36579 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36580 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36581echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36582 else
36583 if test "$wxUSE_PM" = 1; then
36584 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36585echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36586 else
36587 cat >>confdefs.h <<\_ACEOF
36588#define wxUSE_POPUPWIN 1
36589_ACEOF
36590
36591
36592 USES_CONTROLS=1
36593 fi
36594 fi
36595fi
36596
36597if test "$wxUSE_TIPWINDOW" = "yes"; then
36598 if test "$wxUSE_PM" = 1; then
36599 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36600echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36601 else
36602 cat >>confdefs.h <<\_ACEOF
36603#define wxUSE_TIPWINDOW 1
36604_ACEOF
36605
36606 fi
36607fi
36608
36609if test "$USES_CONTROLS" = 1; then
36610 cat >>confdefs.h <<\_ACEOF
36611#define wxUSE_CONTROLS 1
36612_ACEOF
36613
36614fi
36615
36616
36617if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36618 cat >>confdefs.h <<\_ACEOF
36619#define wxUSE_ACCESSIBILITY 1
36620_ACEOF
36621
36622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36623fi
36624
36625if test "$wxUSE_DRAGIMAGE" = "yes"; then
36626 cat >>confdefs.h <<\_ACEOF
36627#define wxUSE_DRAGIMAGE 1
36628_ACEOF
36629
36630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36631fi
36632
36633if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36634 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36635 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36636echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36637 else
36638 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36639#define wxUSE_EXCEPTIONS 1
36640_ACEOF
36641
07bea8f0
VS
36642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36643 fi
a848cd7e
SC
36644fi
36645
36646USE_HTML=0
36647if test "$wxUSE_HTML" = "yes"; then
36648 cat >>confdefs.h <<\_ACEOF
36649#define wxUSE_HTML 1
36650_ACEOF
36651
36652 USE_HTML=1
36653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36654 if test "$wxUSE_MAC" = 1; then
36655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36656 fi
a848cd7e 36657fi
646b6ec1 36658if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36659 if test "$wxUSE_MAC" = 1; then
36660 old_CPPFLAGS="$CPPFLAGS"
36661 CPPFLAGS="$CPPFLAGS -x objective-c++"
36662 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36663echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36664if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36665 echo $ECHO_N "(cached) $ECHO_C" >&6
36666else
36667 cat >conftest.$ac_ext <<_ACEOF
36668/* confdefs.h. */
36669_ACEOF
36670cat confdefs.h >>conftest.$ac_ext
36671cat >>conftest.$ac_ext <<_ACEOF
36672/* end confdefs.h. */
36673#include <Carbon/Carbon.h>
36674
36675#include <WebKit/HIWebView.h>
36676_ACEOF
36677rm -f conftest.$ac_objext
36678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36679 (eval $ac_compile) 2>conftest.er1
36680 ac_status=$?
36681 grep -v '^ *+' conftest.er1 >conftest.err
36682 rm -f conftest.er1
36683 cat conftest.err >&5
36684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685 (exit $ac_status); } &&
4d4ff94c 36686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
36687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36688 (eval $ac_try) 2>&5
36689 ac_status=$?
36690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); }; } &&
36692 { ac_try='test -s conftest.$ac_objext'
36693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694 (eval $ac_try) 2>&5
36695 ac_status=$?
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); }; }; then
36698 ac_cv_header_WebKit_HIWebView_h=yes
36699else
36700 echo "$as_me: failed program was:" >&5
36701sed 's/^/| /' conftest.$ac_ext >&5
36702
36703ac_cv_header_WebKit_HIWebView_h=no
36704fi
36705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36706fi
36707echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36708echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36709if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36710
36711 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36712#define wxUSE_WEBKIT 1
36713_ACEOF
36714
07bea8f0
VS
36715 WEBKIT_LINK="-framework WebKit"
36716
36717else
36718
36719 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36720echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36721 wxUSE_WEBKIT=no
36722
646b6ec1
VS
36723fi
36724
07bea8f0
VS
36725
36726 CPPFLAGS="$old_CPPFLAGS"
36727 elif test "$wxUSE_COCOA" = 1; then
36728 cat >>confdefs.h <<\_ACEOF
36729#define wxUSE_WEBKIT 1
36730_ACEOF
36731
36732 else
36733 wxUSE_WEBKIT=no
36734 fi
36735fi
36736
36737
a848cd7e
SC
36738if test "$wxUSE_MENUS" = "yes"; then
36739 cat >>confdefs.h <<\_ACEOF
36740#define wxUSE_MENUS 1
36741_ACEOF
36742
36743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36744fi
36745
36746if test "$wxUSE_METAFILE" = "yes"; then
36747 cat >>confdefs.h <<\_ACEOF
36748#define wxUSE_METAFILE 1
36749_ACEOF
36750
36751fi
36752
36753if test "$wxUSE_MIMETYPE" = "yes"; then
36754 cat >>confdefs.h <<\_ACEOF
36755#define wxUSE_MIMETYPE 1
36756_ACEOF
36757
36758fi
36759
36760if test "$wxUSE_MINIFRAME" = "yes"; then
36761 cat >>confdefs.h <<\_ACEOF
36762#define wxUSE_MINIFRAME 1
36763_ACEOF
36764
36765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36766fi
36767
36768if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36769 cat >>confdefs.h <<\_ACEOF
36770#define wxUSE_SYSTEM_OPTIONS 1
36771_ACEOF
36772
36773 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36774 "$TOOLKIT" = "MOTIF"; then
36775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36776 fi
36777fi
36778
36779
36780if test "$wxUSE_VALIDATORS" = "yes"; then
36781 cat >>confdefs.h <<\_ACEOF
36782#define wxUSE_VALIDATORS 1
36783_ACEOF
36784
36785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36786fi
36787
36788if test "$wxUSE_PALETTE" = "yes" ; then
36789 cat >>confdefs.h <<\_ACEOF
36790#define wxUSE_PALETTE 1
36791_ACEOF
36792
36793fi
36794
36795if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36796 LIBS=" -lunicows $LIBS"
36797fi
36798
36799
36800if test "$wxUSE_IMAGE" = "yes" ; then
36801 cat >>confdefs.h <<\_ACEOF
36802#define wxUSE_IMAGE 1
36803_ACEOF
36804
36805
36806 if test "$wxUSE_GIF" = "yes" ; then
36807 cat >>confdefs.h <<\_ACEOF
36808#define wxUSE_GIF 1
36809_ACEOF
36810
36811 fi
36812
36813 if test "$wxUSE_PCX" = "yes" ; then
36814 cat >>confdefs.h <<\_ACEOF
36815#define wxUSE_PCX 1
36816_ACEOF
36817
36818 fi
36819
36820 if test "$wxUSE_IFF" = "yes" ; then
36821 cat >>confdefs.h <<\_ACEOF
36822#define wxUSE_IFF 1
36823_ACEOF
36824
36825 fi
36826
36827 if test "$wxUSE_PNM" = "yes" ; then
36828 cat >>confdefs.h <<\_ACEOF
36829#define wxUSE_PNM 1
36830_ACEOF
36831
36832 fi
36833
36834 if test "$wxUSE_XPM" = "yes" ; then
36835 cat >>confdefs.h <<\_ACEOF
36836#define wxUSE_XPM 1
36837_ACEOF
36838
36839 fi
36840
36841 if test "$wxUSE_ICO_CUR" = "yes" ; then
36842 cat >>confdefs.h <<\_ACEOF
36843#define wxUSE_ICO_CUR 1
36844_ACEOF
36845
36846 fi
36847fi
36848
36849
36850if test "$wxUSE_CHOICEDLG" = "yes"; then
36851 cat >>confdefs.h <<\_ACEOF
36852#define wxUSE_CHOICEDLG 1
36853_ACEOF
36854
36855fi
36856
36857if test "$wxUSE_COLOURDLG" = "yes"; then
36858 cat >>confdefs.h <<\_ACEOF
36859#define wxUSE_COLOURDLG 1
36860_ACEOF
36861
36862fi
36863
36864if test "$wxUSE_FILEDLG" = "yes"; then
36865 cat >>confdefs.h <<\_ACEOF
36866#define wxUSE_FILEDLG 1
36867_ACEOF
36868
36869fi
36870
36871if test "$wxUSE_FINDREPLDLG" = "yes"; then
36872 cat >>confdefs.h <<\_ACEOF
36873#define wxUSE_FINDREPLDLG 1
36874_ACEOF
36875
36876fi
36877
36878if test "$wxUSE_FONTDLG" = "yes"; then
36879 cat >>confdefs.h <<\_ACEOF
36880#define wxUSE_FONTDLG 1
36881_ACEOF
36882
36883fi
36884
36885if test "$wxUSE_DIRDLG" = "yes"; then
36886 if test "$wxUSE_TREECTRL" != "yes"; then
36887 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36888echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
36889 else
36890 cat >>confdefs.h <<\_ACEOF
36891#define wxUSE_DIRDLG 1
36892_ACEOF
36893
36894 fi
36895fi
36896
36897if test "$wxUSE_MSGDLG" = "yes"; then
36898 cat >>confdefs.h <<\_ACEOF
36899#define wxUSE_MSGDLG 1
36900_ACEOF
36901
36902fi
36903
36904if test "$wxUSE_NUMBERDLG" = "yes"; then
36905 cat >>confdefs.h <<\_ACEOF
36906#define wxUSE_NUMBERDLG 1
36907_ACEOF
36908
36909fi
36910
36911if test "$wxUSE_PROGRESSDLG" = "yes"; then
36912 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36913 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36914echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
36915 else
36916 cat >>confdefs.h <<\_ACEOF
36917#define wxUSE_PROGRESSDLG 1
36918_ACEOF
36919
36920 fi
36921fi
36922
36923if test "$wxUSE_SPLASH" = "yes"; then
36924 cat >>confdefs.h <<\_ACEOF
36925#define wxUSE_SPLASH 1
36926_ACEOF
36927
2057db16 36928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
36929fi
36930
36931if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36932 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36933 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36934echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
36935 else
36936 cat >>confdefs.h <<\_ACEOF
36937#define wxUSE_STARTUP_TIPS 1
36938_ACEOF
36939
36940 fi
36941fi
36942
36943if test "$wxUSE_TEXTDLG" = "yes"; then
36944 cat >>confdefs.h <<\_ACEOF
36945#define wxUSE_TEXTDLG 1
36946_ACEOF
36947
36948fi
36949
36950if test "$wxUSE_WIZARDDLG" = "yes"; then
36951 cat >>confdefs.h <<\_ACEOF
36952#define wxUSE_WIZARDDLG 1
36953_ACEOF
36954
36955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36956fi
36957
36958
36959if test "$cross_compiling" = "yes"; then
36960 OSINFO="\"$host\""
36961else
36962 OSINFO=`uname -s -r -m`
36963 OSINFO="\"$OSINFO\""
36964fi
36965
36966cat >>confdefs.h <<_ACEOF
36967#define WXWIN_OS_DESCRIPTION $OSINFO
36968_ACEOF
36969
36970
36971
36972if test "x$prefix" != "xNONE"; then
36973 wxPREFIX=$prefix
36974else
36975 wxPREFIX=$ac_default_prefix
36976fi
36977
36978cat >>confdefs.h <<_ACEOF
36979#define wxINSTALL_PREFIX "$wxPREFIX"
36980_ACEOF
36981
36982
36983top_builddir_wxconfig=`pwd`
36984
36985
36986
36987CORE_BASE_LIBS="net base"
36988CORE_GUI_LIBS="adv core"
36989
36990if test "$wxUSE_XML" = "yes" ; then
36991 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36992fi
36993if test "$wxUSE_ODBC" != "no" ; then
36994 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36995 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
36996fi
36997if test "$wxUSE_HTML" = "yes" ; then
36998 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36999fi
37000
37001if test "$wxUSE_GUI" != "yes"; then
37002 CORE_GUI_LIBS=""
37003fi
37004
37005
37006
37007
37008
37009
37010
37011
37012if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37013 if test "$wxUSE_SOUND" = "yes"; then
37014 LDFLAGS="$LDFLAGS -framework QuickTime"
37015 fi
37016 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37017fi
37018if test "$wxUSE_COCOA" = 1 ; then
37019 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37020fi
37021
37022
37023LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37024
37025have_cos=0
37026have_floor=0
37027
37028for ac_func in cos
37029do
37030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37031echo "$as_me:$LINENO: checking for $ac_func" >&5
37032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37033if eval "test \"\${$as_ac_var+set}\" = set"; then
37034 echo $ECHO_N "(cached) $ECHO_C" >&6
37035else
37036 cat >conftest.$ac_ext <<_ACEOF
37037/* confdefs.h. */
37038_ACEOF
37039cat confdefs.h >>conftest.$ac_ext
37040cat >>conftest.$ac_ext <<_ACEOF
37041/* end confdefs.h. */
ac1cb8d3
VS
37042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37044#define $ac_func innocuous_$ac_func
37045
a848cd7e
SC
37046/* System header to define __stub macros and hopefully few prototypes,
37047 which can conflict with char $ac_func (); below.
37048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37049 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37050
a848cd7e
SC
37051#ifdef __STDC__
37052# include <limits.h>
37053#else
37054# include <assert.h>
37055#endif
ac1cb8d3
VS
37056
37057#undef $ac_func
37058
a848cd7e
SC
37059/* Override any gcc2 internal prototype to avoid an error. */
37060#ifdef __cplusplus
37061extern "C"
37062{
37063#endif
37064/* We use char because int might match the return type of a gcc2
37065 builtin and then its argument prototype would still apply. */
37066char $ac_func ();
37067/* The GNU C library defines this for functions which it implements
37068 to always fail with ENOSYS. Some functions are actually named
37069 something starting with __ and the normal name is an alias. */
37070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37071choke me
37072#else
37073char (*f) () = $ac_func;
37074#endif
37075#ifdef __cplusplus
37076}
37077#endif
37078
37079int
37080main ()
37081{
37082return f != $ac_func;
37083 ;
37084 return 0;
37085}
37086_ACEOF
37087rm -f conftest.$ac_objext conftest$ac_exeext
37088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37089 (eval $ac_link) 2>conftest.er1
a848cd7e 37090 ac_status=$?
ac1cb8d3
VS
37091 grep -v '^ *+' conftest.er1 >conftest.err
37092 rm -f conftest.er1
37093 cat conftest.err >&5
a848cd7e
SC
37094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37095 (exit $ac_status); } &&
4d4ff94c 37096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37098 (eval $ac_try) 2>&5
37099 ac_status=$?
37100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101 (exit $ac_status); }; } &&
37102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37104 (eval $ac_try) 2>&5
37105 ac_status=$?
37106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107 (exit $ac_status); }; }; then
37108 eval "$as_ac_var=yes"
37109else
37110 echo "$as_me: failed program was:" >&5
37111sed 's/^/| /' conftest.$ac_ext >&5
37112
37113eval "$as_ac_var=no"
37114fi
ac1cb8d3
VS
37115rm -f conftest.err conftest.$ac_objext \
37116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37117fi
37118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37120if test `eval echo '${'$as_ac_var'}'` = yes; then
37121 cat >>confdefs.h <<_ACEOF
37122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37123_ACEOF
37124 have_cos=1
37125fi
37126done
37127
37128
37129for ac_func in floor
37130do
37131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37132echo "$as_me:$LINENO: checking for $ac_func" >&5
37133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37134if eval "test \"\${$as_ac_var+set}\" = set"; then
37135 echo $ECHO_N "(cached) $ECHO_C" >&6
37136else
37137 cat >conftest.$ac_ext <<_ACEOF
37138/* confdefs.h. */
37139_ACEOF
37140cat confdefs.h >>conftest.$ac_ext
37141cat >>conftest.$ac_ext <<_ACEOF
37142/* end confdefs.h. */
ac1cb8d3
VS
37143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37145#define $ac_func innocuous_$ac_func
37146
a848cd7e
SC
37147/* System header to define __stub macros and hopefully few prototypes,
37148 which can conflict with char $ac_func (); below.
37149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37150 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37151
a848cd7e
SC
37152#ifdef __STDC__
37153# include <limits.h>
37154#else
37155# include <assert.h>
37156#endif
ac1cb8d3
VS
37157
37158#undef $ac_func
37159
a848cd7e
SC
37160/* Override any gcc2 internal prototype to avoid an error. */
37161#ifdef __cplusplus
37162extern "C"
37163{
37164#endif
37165/* We use char because int might match the return type of a gcc2
37166 builtin and then its argument prototype would still apply. */
37167char $ac_func ();
37168/* The GNU C library defines this for functions which it implements
37169 to always fail with ENOSYS. Some functions are actually named
37170 something starting with __ and the normal name is an alias. */
37171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37172choke me
37173#else
37174char (*f) () = $ac_func;
37175#endif
37176#ifdef __cplusplus
37177}
37178#endif
37179
37180int
37181main ()
37182{
37183return f != $ac_func;
37184 ;
37185 return 0;
37186}
37187_ACEOF
37188rm -f conftest.$ac_objext conftest$ac_exeext
37189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37190 (eval $ac_link) 2>conftest.er1
a848cd7e 37191 ac_status=$?
ac1cb8d3
VS
37192 grep -v '^ *+' conftest.er1 >conftest.err
37193 rm -f conftest.er1
37194 cat conftest.err >&5
a848cd7e
SC
37195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196 (exit $ac_status); } &&
4d4ff94c 37197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37199 (eval $ac_try) 2>&5
37200 ac_status=$?
37201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37202 (exit $ac_status); }; } &&
37203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37205 (eval $ac_try) 2>&5
37206 ac_status=$?
37207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37208 (exit $ac_status); }; }; then
37209 eval "$as_ac_var=yes"
37210else
37211 echo "$as_me: failed program was:" >&5
37212sed 's/^/| /' conftest.$ac_ext >&5
37213
37214eval "$as_ac_var=no"
37215fi
ac1cb8d3
VS
37216rm -f conftest.err conftest.$ac_objext \
37217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37218fi
37219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37221if test `eval echo '${'$as_ac_var'}'` = yes; then
37222 cat >>confdefs.h <<_ACEOF
37223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37224_ACEOF
37225 have_floor=1
37226fi
37227done
37228
37229echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37230echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37231if test "$have_cos" = 1 -a "$have_floor" = 1; then
37232 echo "$as_me:$LINENO: result: yes" >&5
37233echo "${ECHO_T}yes" >&6
37234else
37235 echo "$as_me:$LINENO: result: no" >&5
37236echo "${ECHO_T}no" >&6
37237 LIBS="$LIBS -lm"
37238 # use different functions to avoid configure caching
37239 have_sin=0
37240 have_ceil=0
37241
37242for ac_func in sin
37243do
37244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37245echo "$as_me:$LINENO: checking for $ac_func" >&5
37246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37247if eval "test \"\${$as_ac_var+set}\" = set"; then
37248 echo $ECHO_N "(cached) $ECHO_C" >&6
37249else
37250 cat >conftest.$ac_ext <<_ACEOF
37251/* confdefs.h. */
37252_ACEOF
37253cat confdefs.h >>conftest.$ac_ext
37254cat >>conftest.$ac_ext <<_ACEOF
37255/* end confdefs.h. */
ac1cb8d3
VS
37256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37258#define $ac_func innocuous_$ac_func
37259
a848cd7e
SC
37260/* System header to define __stub macros and hopefully few prototypes,
37261 which can conflict with char $ac_func (); below.
37262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37264
a848cd7e
SC
37265#ifdef __STDC__
37266# include <limits.h>
37267#else
37268# include <assert.h>
37269#endif
ac1cb8d3
VS
37270
37271#undef $ac_func
37272
a848cd7e
SC
37273/* Override any gcc2 internal prototype to avoid an error. */
37274#ifdef __cplusplus
37275extern "C"
37276{
37277#endif
37278/* We use char because int might match the return type of a gcc2
37279 builtin and then its argument prototype would still apply. */
37280char $ac_func ();
37281/* The GNU C library defines this for functions which it implements
37282 to always fail with ENOSYS. Some functions are actually named
37283 something starting with __ and the normal name is an alias. */
37284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37285choke me
37286#else
37287char (*f) () = $ac_func;
37288#endif
37289#ifdef __cplusplus
37290}
37291#endif
37292
37293int
37294main ()
37295{
37296return f != $ac_func;
37297 ;
37298 return 0;
37299}
37300_ACEOF
37301rm -f conftest.$ac_objext conftest$ac_exeext
37302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37303 (eval $ac_link) 2>conftest.er1
a848cd7e 37304 ac_status=$?
ac1cb8d3
VS
37305 grep -v '^ *+' conftest.er1 >conftest.err
37306 rm -f conftest.er1
37307 cat conftest.err >&5
a848cd7e
SC
37308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309 (exit $ac_status); } &&
4d4ff94c 37310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37312 (eval $ac_try) 2>&5
37313 ac_status=$?
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); }; } &&
37316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37319 ac_status=$?
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; }; then
37322 eval "$as_ac_var=yes"
37323else
37324 echo "$as_me: failed program was:" >&5
37325sed 's/^/| /' conftest.$ac_ext >&5
37326
37327eval "$as_ac_var=no"
37328fi
ac1cb8d3
VS
37329rm -f conftest.err conftest.$ac_objext \
37330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37331fi
37332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37334if test `eval echo '${'$as_ac_var'}'` = yes; then
37335 cat >>confdefs.h <<_ACEOF
37336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37337_ACEOF
37338 have_sin=1
37339fi
37340done
37341
37342
37343for ac_func in ceil
37344do
37345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37346echo "$as_me:$LINENO: checking for $ac_func" >&5
37347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37348if eval "test \"\${$as_ac_var+set}\" = set"; then
37349 echo $ECHO_N "(cached) $ECHO_C" >&6
37350else
37351 cat >conftest.$ac_ext <<_ACEOF
37352/* confdefs.h. */
37353_ACEOF
37354cat confdefs.h >>conftest.$ac_ext
37355cat >>conftest.$ac_ext <<_ACEOF
37356/* end confdefs.h. */
ac1cb8d3
VS
37357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37359#define $ac_func innocuous_$ac_func
37360
a848cd7e
SC
37361/* System header to define __stub macros and hopefully few prototypes,
37362 which can conflict with char $ac_func (); below.
37363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37364 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37365
a848cd7e
SC
37366#ifdef __STDC__
37367# include <limits.h>
37368#else
37369# include <assert.h>
37370#endif
ac1cb8d3
VS
37371
37372#undef $ac_func
37373
a848cd7e
SC
37374/* Override any gcc2 internal prototype to avoid an error. */
37375#ifdef __cplusplus
37376extern "C"
37377{
37378#endif
37379/* We use char because int might match the return type of a gcc2
37380 builtin and then its argument prototype would still apply. */
37381char $ac_func ();
37382/* The GNU C library defines this for functions which it implements
37383 to always fail with ENOSYS. Some functions are actually named
37384 something starting with __ and the normal name is an alias. */
37385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37386choke me
37387#else
37388char (*f) () = $ac_func;
37389#endif
37390#ifdef __cplusplus
37391}
37392#endif
37393
37394int
37395main ()
37396{
37397return f != $ac_func;
37398 ;
37399 return 0;
37400}
37401_ACEOF
37402rm -f conftest.$ac_objext conftest$ac_exeext
37403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37404 (eval $ac_link) 2>conftest.er1
a848cd7e 37405 ac_status=$?
ac1cb8d3
VS
37406 grep -v '^ *+' conftest.er1 >conftest.err
37407 rm -f conftest.er1
37408 cat conftest.err >&5
a848cd7e
SC
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); } &&
4d4ff94c 37411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413 (eval $ac_try) 2>&5
37414 ac_status=$?
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); }; } &&
37417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37419 (eval $ac_try) 2>&5
37420 ac_status=$?
37421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422 (exit $ac_status); }; }; then
37423 eval "$as_ac_var=yes"
37424else
37425 echo "$as_me: failed program was:" >&5
37426sed 's/^/| /' conftest.$ac_ext >&5
37427
37428eval "$as_ac_var=no"
37429fi
ac1cb8d3
VS
37430rm -f conftest.err conftest.$ac_objext \
37431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37432fi
37433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37435if test `eval echo '${'$as_ac_var'}'` = yes; then
37436 cat >>confdefs.h <<_ACEOF
37437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37438_ACEOF
37439 have_ceil=1
37440fi
37441done
37442
37443 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37444echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37445 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37446 echo "$as_me:$LINENO: result: yes" >&5
37447echo "${ECHO_T}yes" >&6
37448 else
37449 echo "$as_me:$LINENO: result: no" >&5
37450echo "${ECHO_T}no" >&6
37451 # not sure we should warn the user, crash, etc.
37452 fi
37453fi
37454
37455if test "$wxUSE_GUI" = "yes"; then
37456
37457
37458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37459 drawing dynamic erase event exec font image \
37460 minimal propsize rotate shaped widgets render"
37461
37462 if test "$wxUSE_MONOLITHIC" != "yes"; then
37463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37464 fi
37465else
37466 SAMPLES_SUBDIRS="console"
37467fi
37468
37469
37470INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37471-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37472
37473if test "$GXX" = yes ; then
37474 CXXWARNINGS="-Wall"
37475 fi
37476
37477EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37478
0c3c69fc
VS
37479CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37480CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37481CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37482
37483
0c3c69fc 37484LIBS=`echo $LIBS`
a848cd7e
SC
37485EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37486EXTRALIBS_XML="$EXPAT_LINK"
37487EXTRALIBS_HTML="$MSPACK_LINK"
37488EXTRALIBS_ODBC="$ODBC_LINK"
37489if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37490 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37491fi
37492if test "$wxUSE_OPENGL" = "yes"; then
37493 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37494fi
37495
37496LDFLAGS="$LDFLAGS $PROFILE"
37497
37498if test "$wxUSE_GTK" = 1; then
37499 WXCONFIG_INCLUDE=
37500else
37501 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37502fi
37503
37504WXCONFIG_EXTRALIBS="$LIBS"
37505
37506if test "$wxUSE_REGEX" = "builtin" ; then
37507 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37508fi
37509if test "$wxUSE_EXPAT" = "builtin" ; then
37510 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37511fi
37512if test "$wxUSE_ODBC" = "builtin" ; then
37513 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37514fi
37515if test "$wxUSE_LIBTIFF" = "builtin" ; then
37516 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37517fi
37518if test "$wxUSE_LIBJPEG" = "builtin" ; then
37519 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37520fi
37521if test "$wxUSE_LIBPNG" = "builtin" ; then
37522 wxconfig_3rdparty="$wxconfig_3rdparty png"
37523fi
37524if test "$wxUSE_ZLIB" = "builtin" ; then
37525 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37526fi
37527if test "$wxUSE_ODBC" = "builtin" ; then
37528 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37529fi
37530
37531for i in $wxconfig_3rdparty ; do
37532 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37533done
37534
37535
37536if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37537 WXUNIV=1
37538else
37539 WXUNIV=0
37540fi
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550if test $wxUSE_MONOLITHIC = "yes" ; then
37551 MONOLITHIC=1
37552else
37553 MONOLITHIC=0
37554fi
37555
37556if test $wxUSE_PLUGINS = "yes" ; then
37557 USE_PLUGINS=1
37558else
37559 USE_PLUGINS=0
37560fi
37561
37562if test $wxUSE_ODBC != "no" ; then
37563 USE_ODBC=1
37564else
37565 USE_ODBC=0
37566fi
37567
37568if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37569 OFFICIAL_BUILD=1
37570else
37571 OFFICIAL_BUILD=0
37572fi
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37595
37596
37597
37598
37599
37600
37601
37602
4d4ff94c
VZ
37603case "$TOOLKIT" in
37604 GTK)
37605 TOOLKIT_USER="GTK+"
37606 if test "$WXGTK20" = 1; then
37607 TOOLKIT_USER="$TOOLKIT_USER 2"
37608 fi
37609 ;;
37610
37611 *)
37612 TOOLKIT_USER=$TOOLKIT_LOWERCASE
37613 ;;
37614esac
a848cd7e
SC
37615
37616 if test "x$BAKEFILE_HOST" = "x"; then
37617 BAKEFILE_HOST="${host}"
37618 fi
37619
37620 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37621
37622 if test -n "$ac_tool_prefix"; then
37623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37624set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37625echo "$as_me:$LINENO: checking for $ac_word" >&5
37626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37627if test "${ac_cv_prog_RANLIB+set}" = set; then
37628 echo $ECHO_N "(cached) $ECHO_C" >&6
37629else
37630 if test -n "$RANLIB"; then
37631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37632else
37633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37634for as_dir in $PATH
37635do
37636 IFS=$as_save_IFS
37637 test -z "$as_dir" && as_dir=.
37638 for ac_exec_ext in '' $ac_executable_extensions; do
37639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37642 break 2
37643 fi
37644done
37645done
37646
37647fi
37648fi
37649RANLIB=$ac_cv_prog_RANLIB
37650if test -n "$RANLIB"; then
37651 echo "$as_me:$LINENO: result: $RANLIB" >&5
37652echo "${ECHO_T}$RANLIB" >&6
37653else
37654 echo "$as_me:$LINENO: result: no" >&5
37655echo "${ECHO_T}no" >&6
37656fi
37657
37658fi
37659if test -z "$ac_cv_prog_RANLIB"; then
37660 ac_ct_RANLIB=$RANLIB
37661 # Extract the first word of "ranlib", so it can be a program name with args.
37662set dummy ranlib; ac_word=$2
37663echo "$as_me:$LINENO: checking for $ac_word" >&5
37664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37665if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37666 echo $ECHO_N "(cached) $ECHO_C" >&6
37667else
37668 if test -n "$ac_ct_RANLIB"; then
37669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37670else
37671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37672for as_dir in $PATH
37673do
37674 IFS=$as_save_IFS
37675 test -z "$as_dir" && as_dir=.
37676 for ac_exec_ext in '' $ac_executable_extensions; do
37677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37678 ac_cv_prog_ac_ct_RANLIB="ranlib"
37679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37680 break 2
37681 fi
37682done
37683done
37684
37685 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37686fi
37687fi
37688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37689if test -n "$ac_ct_RANLIB"; then
37690 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37691echo "${ECHO_T}$ac_ct_RANLIB" >&6
37692else
37693 echo "$as_me:$LINENO: result: no" >&5
37694echo "${ECHO_T}no" >&6
37695fi
37696
37697 RANLIB=$ac_ct_RANLIB
37698else
37699 RANLIB="$ac_cv_prog_RANLIB"
37700fi
37701
37702 # Find a good install program. We prefer a C program (faster),
37703# so one script is as good as another. But avoid the broken or
37704# incompatible versions:
37705# SysV /etc/install, /usr/sbin/install
37706# SunOS /usr/etc/install
37707# IRIX /sbin/install
37708# AIX /bin/install
37709# AmigaOS /C/install, which installs bootblocks on floppy discs
37710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37711# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37713# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37714# ./install, which can be erroneously created by make from ./install.sh.
37715echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37716echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37717if test -z "$INSTALL"; then
37718if test "${ac_cv_path_install+set}" = set; then
37719 echo $ECHO_N "(cached) $ECHO_C" >&6
37720else
37721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37722for as_dir in $PATH
37723do
37724 IFS=$as_save_IFS
37725 test -z "$as_dir" && as_dir=.
37726 # Account for people who put trailing slashes in PATH elements.
37727case $as_dir/ in
37728 ./ | .// | /cC/* | \
37729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37730 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37731 /usr/ucb/* ) ;;
37732 *)
37733 # OSF1 and SCO ODT 3.0 have their own names for install.
37734 # Don't use installbsd from OSF since it installs stuff as root
37735 # by default.
37736 for ac_prog in ginstall scoinst install; do
37737 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37738 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37739 if test $ac_prog = install &&
37740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37741 # AIX install. It has an incompatible calling convention.
37742 :
37743 elif test $ac_prog = install &&
37744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37745 # program-specific install script used by HP pwplus--don't use.
37746 :
37747 else
37748 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37749 break 3
37750 fi
37751 fi
a848cd7e
SC
37752 done
37753 done
37754 ;;
37755esac
37756done
37757
37758
37759fi
37760 if test "${ac_cv_path_install+set}" = set; then
37761 INSTALL=$ac_cv_path_install
37762 else
37763 # As a last resort, use the slow shell script. We don't cache a
37764 # path for INSTALL within a source directory, because that will
37765 # break other packages using the cache if that directory is
37766 # removed, or if the path is relative.
37767 INSTALL=$ac_install_sh
37768 fi
37769fi
37770echo "$as_me:$LINENO: result: $INSTALL" >&5
37771echo "${ECHO_T}$INSTALL" >&6
37772
37773# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37774# It thinks the first close brace ends the variable substitution.
37775test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37776
37777test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37778
37779test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37780
37781 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37782echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37783LN_S=$as_ln_s
37784if test "$LN_S" = "ln -s"; then
37785 echo "$as_me:$LINENO: result: yes" >&5
37786echo "${ECHO_T}yes" >&6
37787else
37788 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37789echo "${ECHO_T}no, using $LN_S" >&6
37790fi
37791
37792
37793 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37794echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 37795set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
37796if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37797 echo $ECHO_N "(cached) $ECHO_C" >&6
37798else
37799 cat >conftest.make <<\_ACEOF
37800all:
37801 @echo 'ac_maketemp="$(MAKE)"'
37802_ACEOF
37803# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37804eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37805if test -n "$ac_maketemp"; then
37806 eval ac_cv_prog_make_${ac_make}_set=yes
37807else
37808 eval ac_cv_prog_make_${ac_make}_set=no
37809fi
37810rm -f conftest.make
37811fi
37812if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37813 echo "$as_me:$LINENO: result: yes" >&5
37814echo "${ECHO_T}yes" >&6
37815 SET_MAKE=
37816else
37817 echo "$as_me:$LINENO: result: no" >&5
37818echo "${ECHO_T}no" >&6
37819 SET_MAKE="MAKE=${MAKE-make}"
37820fi
37821
37822
37823
37824 if test -n "$ac_tool_prefix"; then
37825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37826set dummy ${ac_tool_prefix}ar; ac_word=$2
37827echo "$as_me:$LINENO: checking for $ac_word" >&5
37828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37829if test "${ac_cv_prog_AR+set}" = set; then
37830 echo $ECHO_N "(cached) $ECHO_C" >&6
37831else
37832 if test -n "$AR"; then
37833 ac_cv_prog_AR="$AR" # Let the user override the test.
37834else
37835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37836for as_dir in $PATH
37837do
37838 IFS=$as_save_IFS
37839 test -z "$as_dir" && as_dir=.
37840 for ac_exec_ext in '' $ac_executable_extensions; do
37841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37842 ac_cv_prog_AR="${ac_tool_prefix}ar"
37843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37844 break 2
37845 fi
37846done
37847done
37848
37849fi
37850fi
37851AR=$ac_cv_prog_AR
37852if test -n "$AR"; then
37853 echo "$as_me:$LINENO: result: $AR" >&5
37854echo "${ECHO_T}$AR" >&6
37855else
37856 echo "$as_me:$LINENO: result: no" >&5
37857echo "${ECHO_T}no" >&6
37858fi
37859
37860fi
37861if test -z "$ac_cv_prog_AR"; then
37862 ac_ct_AR=$AR
37863 # Extract the first word of "ar", so it can be a program name with args.
37864set dummy ar; ac_word=$2
37865echo "$as_me:$LINENO: checking for $ac_word" >&5
37866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37867if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37868 echo $ECHO_N "(cached) $ECHO_C" >&6
37869else
37870 if test -n "$ac_ct_AR"; then
37871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37872else
37873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37874for as_dir in $PATH
37875do
37876 IFS=$as_save_IFS
37877 test -z "$as_dir" && as_dir=.
37878 for ac_exec_ext in '' $ac_executable_extensions; do
37879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37880 ac_cv_prog_ac_ct_AR="ar"
37881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37882 break 2
37883 fi
37884done
37885done
37886
37887 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37888fi
37889fi
37890ac_ct_AR=$ac_cv_prog_ac_ct_AR
37891if test -n "$ac_ct_AR"; then
37892 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37893echo "${ECHO_T}$ac_ct_AR" >&6
37894else
37895 echo "$as_me:$LINENO: result: no" >&5
37896echo "${ECHO_T}no" >&6
37897fi
37898
37899 AR=$ac_ct_AR
37900else
37901 AR="$ac_cv_prog_AR"
37902fi
37903
37904 if test -n "$ac_tool_prefix"; then
37905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37906set dummy ${ac_tool_prefix}strip; ac_word=$2
37907echo "$as_me:$LINENO: checking for $ac_word" >&5
37908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37909if test "${ac_cv_prog_STRIP+set}" = set; then
37910 echo $ECHO_N "(cached) $ECHO_C" >&6
37911else
37912 if test -n "$STRIP"; then
37913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37914else
37915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37916for as_dir in $PATH
37917do
37918 IFS=$as_save_IFS
37919 test -z "$as_dir" && as_dir=.
37920 for ac_exec_ext in '' $ac_executable_extensions; do
37921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37924 break 2
37925 fi
37926done
37927done
37928
37929fi
37930fi
37931STRIP=$ac_cv_prog_STRIP
37932if test -n "$STRIP"; then
37933 echo "$as_me:$LINENO: result: $STRIP" >&5
37934echo "${ECHO_T}$STRIP" >&6
37935else
37936 echo "$as_me:$LINENO: result: no" >&5
37937echo "${ECHO_T}no" >&6
37938fi
37939
37940fi
37941if test -z "$ac_cv_prog_STRIP"; then
37942 ac_ct_STRIP=$STRIP
37943 # Extract the first word of "strip", so it can be a program name with args.
37944set dummy strip; ac_word=$2
37945echo "$as_me:$LINENO: checking for $ac_word" >&5
37946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37947if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37948 echo $ECHO_N "(cached) $ECHO_C" >&6
37949else
37950 if test -n "$ac_ct_STRIP"; then
37951 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37952else
37953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37954for as_dir in $PATH
37955do
37956 IFS=$as_save_IFS
37957 test -z "$as_dir" && as_dir=.
37958 for ac_exec_ext in '' $ac_executable_extensions; do
37959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37960 ac_cv_prog_ac_ct_STRIP="strip"
37961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37962 break 2
37963 fi
37964done
37965done
37966
37967 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37968fi
37969fi
37970ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37971if test -n "$ac_ct_STRIP"; then
37972 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37973echo "${ECHO_T}$ac_ct_STRIP" >&6
37974else
37975 echo "$as_me:$LINENO: result: no" >&5
37976echo "${ECHO_T}no" >&6
37977fi
37978
37979 STRIP=$ac_ct_STRIP
37980else
37981 STRIP="$ac_cv_prog_STRIP"
37982fi
37983
37984 if test -n "$ac_tool_prefix"; then
37985 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37986set dummy ${ac_tool_prefix}nm; ac_word=$2
37987echo "$as_me:$LINENO: checking for $ac_word" >&5
37988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37989if test "${ac_cv_prog_NM+set}" = set; then
37990 echo $ECHO_N "(cached) $ECHO_C" >&6
37991else
37992 if test -n "$NM"; then
37993 ac_cv_prog_NM="$NM" # Let the user override the test.
37994else
37995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37996for as_dir in $PATH
37997do
37998 IFS=$as_save_IFS
37999 test -z "$as_dir" && as_dir=.
38000 for ac_exec_ext in '' $ac_executable_extensions; do
38001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38002 ac_cv_prog_NM="${ac_tool_prefix}nm"
38003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38004 break 2
38005 fi
38006done
38007done
38008
38009fi
38010fi
38011NM=$ac_cv_prog_NM
38012if test -n "$NM"; then
38013 echo "$as_me:$LINENO: result: $NM" >&5
38014echo "${ECHO_T}$NM" >&6
38015else
38016 echo "$as_me:$LINENO: result: no" >&5
38017echo "${ECHO_T}no" >&6
38018fi
38019
38020fi
38021if test -z "$ac_cv_prog_NM"; then
38022 ac_ct_NM=$NM
38023 # Extract the first word of "nm", so it can be a program name with args.
38024set dummy nm; ac_word=$2
38025echo "$as_me:$LINENO: checking for $ac_word" >&5
38026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38027if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38028 echo $ECHO_N "(cached) $ECHO_C" >&6
38029else
38030 if test -n "$ac_ct_NM"; then
38031 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38032else
38033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38034for as_dir in $PATH
38035do
38036 IFS=$as_save_IFS
38037 test -z "$as_dir" && as_dir=.
38038 for ac_exec_ext in '' $ac_executable_extensions; do
38039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38040 ac_cv_prog_ac_ct_NM="nm"
38041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38042 break 2
38043 fi
38044done
38045done
38046
38047 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38048fi
38049fi
38050ac_ct_NM=$ac_cv_prog_ac_ct_NM
38051if test -n "$ac_ct_NM"; then
38052 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38053echo "${ECHO_T}$ac_ct_NM" >&6
38054else
38055 echo "$as_me:$LINENO: result: no" >&5
38056echo "${ECHO_T}no" >&6
38057fi
38058
38059 NM=$ac_ct_NM
38060else
38061 NM="$ac_cv_prog_NM"
38062fi
38063
38064
38065 case ${BAKEFILE_HOST} in
38066 *-hp-hpux* )
a0f9686d 38067 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38068 ;;
38069 *) INSTALL_DIR="$INSTALL -d"
38070 ;;
38071 esac
38072
38073
38074 LDFLAGS_GUI=
38075 case ${BAKEFILE_HOST} in
38076 *-*-cygwin* | *-*-mingw32* )
38077 LDFLAGS_GUI="-mwindows"
38078 esac
38079
38080
38081 fi
38082
38083 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38084echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38085if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38086 echo $ECHO_N "(cached) $ECHO_C" >&6
38087else
38088
38089 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38090 egrep -s GNU > /dev/null); then
38091 bakefile_cv_prog_makeisgnu="yes"
38092 else
38093 bakefile_cv_prog_makeisgnu="no"
38094 fi
38095
38096fi
38097echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38098echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38099
38100 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38101 IF_GNU_MAKE=""
38102 else
38103 IF_GNU_MAKE="#"
38104 fi
38105
38106
38107
38108 PLATFORM_UNIX=0
38109 PLATFORM_WIN32=0
38110 PLATFORM_MSDOS=0
38111 PLATFORM_MAC=0
38112 PLATFORM_MACOSX=0
38113 PLATFORM_OS2=0
38114
38115 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38116 case "${BAKEFILE_HOST}" in
38117 *-*-cygwin* | *-*-mingw32* )
38118 PLATFORM_WIN32=1
38119 ;;
38120 *-pc-msdosdjgpp )
38121 PLATFORM_MSDOS=1
38122 ;;
38123 *-pc-os2_emx | *-pc-os2-emx )
38124 PLATFORM_OS2=1
38125 ;;
38126 powerpc-*-darwin* )
38127 PLATFORM_MAC=1
38128 PLATFORM_MACOSX=1
38129 ;;
38130 * )
38131 PLATFORM_UNIX=1
38132 ;;
38133 esac
38134 else
38135 case "$BAKEFILE_FORCE_PLATFORM" in
38136 win32 )
38137 PLATFORM_WIN32=1
38138 ;;
38139 msdos )
38140 PLATFORM_MSDOS=1
38141 ;;
38142 os2 )
38143 PLATFORM_OS2=1
38144 ;;
38145 darwin )
38146 PLATFORM_MAC=1
38147 PLATFORM_MACOSX=1
38148 ;;
38149 unix )
38150 PLATFORM_UNIX=1
38151 ;;
38152 * )
38153 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38154echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38155 { (exit 1); exit 1; }; }
38156 ;;
38157 esac
38158 fi
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168 # Check whether --enable-omf or --disable-omf was given.
38169if test "${enable_omf+set}" = set; then
38170 enableval="$enable_omf"
38171 bk_os2_use_omf="$enableval"
38172fi;
38173
38174 case "${BAKEFILE_HOST}" in
38175 *-*-darwin* )
38176 CFLAGS="$CFLAGS -fno-common"
38177 CXXFLAGS="$CXXFLAGS -fno-common"
38178 ;;
38179
38180 *-pc-os2_emx | *-pc-os2-emx )
38181 if test "x$bk_os2_use_omf" = "xyes" ; then
38182 AR=emxomfar
38183 RANLIB=:
38184 LDFLAGS="-Zomf $LDFLAGS"
38185 CFLAGS="-Zomf $CFLAGS"
38186 CXXFLAGS="-Zomf $CXXFLAGS"
38187 OS2_LIBEXT="lib"
38188 else
38189 OS2_LIBEXT="a"
38190 fi
38191 ;;
38192 esac
38193
38194
38195 SO_SUFFIX="so"
38196 SO_SUFFIX_MODULE="so"
38197 EXEEXT=""
38198 LIBPREFIX="lib"
38199 LIBEXT=".a"
38200 DLLPREFIX="lib"
38201 DLLPREFIX_MODULE=""
38202 DLLIMP_SUFFIX=""
38203
38204 case "${BAKEFILE_HOST}" in
38205 *-hp-hpux* )
38206 SO_SUFFIX="sl"
38207 SO_SUFFIX_MODULE="sl"
38208 ;;
38209 *-*-aix* )
38210 SO_SUFFIX="a"
38211 SO_SUFFIX_MODULE="a"
38212 ;;
38213 *-*-cygwin* | *-*-mingw32* )
38214 SO_SUFFIX="dll"
38215 SO_SUFFIX_MODULE="dll"
38216 DLLIMP_SUFFIX="dll.a"
38217 EXEEXT=".exe"
38218 DLLPREFIX=""
38219 ;;
38220 *-pc-msdosdjgpp )
38221 EXEEXT=".exe"
38222 DLLPREFIX=""
38223 ;;
38224 *-pc-os2_emx | *-pc-os2-emx )
38225 SO_SUFFIX="dll"
38226 SO_SUFFIX_MODULE="dll"
38227 DLLIMP_SUFFIX=$OS2_LIBEXT
38228 EXEEXT=".exe"
38229 DLLPREFIX=""
38230 LIBPREFIX=""
38231 LIBEXT=".$OS2_LIBEXT"
38232 ;;
38233 powerpc-*-darwin* )
38234 SO_SUFFIX="dylib"
38235 SO_SUFFIX_MODULE="bundle"
38236 ;;
38237 esac
38238
38239 if test "x$DLLIMP_SUFFIX" = "x" ; then
38240 DLLIMP_SUFFIX="$SO_SUFFIX"
38241 fi
38242
38243
38244
38245
38246
38247
38248
38249
38250
38251
38252
38253 SHARED_LD_CC="\$(CC) -shared -o"
38254 SHARED_LD_CXX="\$(CXX) -shared -o"
38255
38256 if test "x$GCC" = "xyes"; then
38257 PIC_FLAG="-fPIC"
38258 fi
38259
38260 case "${BAKEFILE_HOST}" in
38261 *-hp-hpux* )
38262 if test "x$GCC" = "xyes"; then
38263 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38264 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38265 else
38266 LDFLAGS="$LDFLAGS -L/usr/lib"
38267
38268 SHARED_LD_CC="${CC} -b -o"
38269 SHARED_LD_CXX="${CXX} -b -o"
38270 PIC_FLAG="+Z"
38271 fi
38272 ;;
38273
38274 *-*-linux* )
38275 if test "x$GCC" != "xyes"; then
38276 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38277echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38278if test "${bakefile_cv_prog_icc+set}" = set; then
38279 echo $ECHO_N "(cached) $ECHO_C" >&6
38280else
38281
38282 cat >conftest.$ac_ext <<_ACEOF
38283/* confdefs.h. */
38284_ACEOF
38285cat confdefs.h >>conftest.$ac_ext
38286cat >>conftest.$ac_ext <<_ACEOF
38287/* end confdefs.h. */
38288
38289int
38290main ()
38291{
38292
38293 #ifndef __INTEL_COMPILER
38294 #error Not icc
38295 #endif
38296
38297 ;
38298 return 0;
38299}
38300_ACEOF
38301rm -f conftest.$ac_objext
38302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38303 (eval $ac_compile) 2>conftest.er1
a848cd7e 38304 ac_status=$?
ac1cb8d3
VS
38305 grep -v '^ *+' conftest.er1 >conftest.err
38306 rm -f conftest.er1
38307 cat conftest.err >&5
a848cd7e
SC
38308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38309 (exit $ac_status); } &&
4d4ff94c 38310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38312 (eval $ac_try) 2>&5
38313 ac_status=$?
38314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38315 (exit $ac_status); }; } &&
38316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318 (eval $ac_try) 2>&5
38319 ac_status=$?
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); }; }; then
38322 bakefile_cv_prog_icc=yes
38323else
38324 echo "$as_me: failed program was:" >&5
38325sed 's/^/| /' conftest.$ac_ext >&5
38326
38327bakefile_cv_prog_icc=no
38328
38329fi
ac1cb8d3 38330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38331
38332fi
38333echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38334echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38335 if test "$bakefile_cv_prog_icc" = "yes"; then
38336 PIC_FLAG="-KPIC"
38337 fi
38338 fi
38339 ;;
38340
38341 *-*-solaris2* )
38342 if test "x$GCC" != xyes ; then
38343 SHARED_LD_CC="${CC} -G -o"
38344 SHARED_LD_CXX="${CXX} -G -o"
38345 PIC_FLAG="-KPIC"
38346 fi
38347 ;;
38348
38349 *-*-darwin* )
38350
38351 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38352echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38353if test "${wx_cv_gcc31+set}" = set; then
38354 echo $ECHO_N "(cached) $ECHO_C" >&6
38355else
38356
38357 cat >conftest.$ac_ext <<_ACEOF
38358/* confdefs.h. */
38359_ACEOF
38360cat confdefs.h >>conftest.$ac_ext
38361cat >>conftest.$ac_ext <<_ACEOF
38362/* end confdefs.h. */
38363
38364int
38365main ()
38366{
38367
38368 #if (__GNUC__ < 3) || \
38369 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38370 #error old gcc
38371 #endif
38372
38373 ;
38374 return 0;
38375}
38376_ACEOF
38377rm -f conftest.$ac_objext
38378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38379 (eval $ac_compile) 2>conftest.er1
a848cd7e 38380 ac_status=$?
ac1cb8d3
VS
38381 grep -v '^ *+' conftest.er1 >conftest.err
38382 rm -f conftest.er1
38383 cat conftest.err >&5
a848cd7e
SC
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); } &&
4d4ff94c 38386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388 (eval $ac_try) 2>&5
38389 ac_status=$?
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); }; } &&
38392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38394 (eval $ac_try) 2>&5
38395 ac_status=$?
38396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397 (exit $ac_status); }; }; then
38398
38399 wx_cv_gcc31=yes
38400
38401else
38402 echo "$as_me: failed program was:" >&5
38403sed 's/^/| /' conftest.$ac_ext >&5
38404
38405
38406 wx_cv_gcc31=no
38407
38408
38409fi
ac1cb8d3 38410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38411
38412fi
38413echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38414echo "${ECHO_T}$wx_cv_gcc31" >&6
38415 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38416
38417D='$'
38418cat <<EOF >shared-ld-sh
a848cd7e
SC
38419#!/bin/sh
38420#-----------------------------------------------------------------------------
38421#-- Name: distrib/mac/shared-ld-sh
38422#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38423#-- Author: Gilles Depeyrot
38424#-- Copyright: (c) 2002 Gilles Depeyrot
38425#-- Licence: any use permitted
38426#-----------------------------------------------------------------------------
38427
38428verbose=0
38429args=""
38430objects=""
38431linking_flag="-dynamiclib"
38432
473276a9
VS
38433while test ${D}# -gt 0; do
38434 case ${D}1 in
a848cd7e
SC
38435
38436 -v)
38437 verbose=1
38438 ;;
38439
38440 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38441 # collect these options and values
473276a9 38442 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38443 shift
38444 ;;
38445
38446 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38447 # collect these options
473276a9 38448 args="${D}{args} ${D}1"
a848cd7e
SC
38449 ;;
38450
38451 -dynamiclib|-bundle)
473276a9 38452 linking_flag="${D}1"
a848cd7e
SC
38453 ;;
38454
38455 -*)
473276a9 38456 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38457 exit 1
38458 ;;
38459
38460 *.o | *.a | *.dylib)
38461 # collect object files
473276a9 38462 objects="${D}{objects} ${D}1"
a848cd7e
SC
38463 ;;
38464
38465 *)
473276a9 38466 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38467 exit 1
38468 ;;
38469
38470 esac
38471 shift
38472done
38473
38474#
38475# Link one module containing all the others
38476#
473276a9
VS
38477if test ${D}{verbose} = 1; then
38478 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38479fi
473276a9
VS
38480c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38481status=${D}?
38482if test ${D}{status} != 0; then
38483 exit ${D}{status}
a848cd7e
SC
38484fi
38485
38486#
38487# Link the shared library from the single module created
38488#
473276a9
VS
38489if test ${D}{verbose} = 1; then
38490 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38491fi
473276a9
VS
38492c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38493status=${D}?
38494if test ${D}{status} != 0; then
38495 exit ${D}{status}
a848cd7e
SC
38496fi
38497
38498#
38499# Remove intermediate module
38500#
473276a9 38501rm -f master.${D}${D}.o
a848cd7e
SC
38502
38503exit 0
38504EOF
473276a9 38505
a848cd7e
SC
38506 chmod +x shared-ld-sh
38507
38508 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38509 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38510 SHARED_LD_CXX="$SHARED_LD_CC"
38511 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38512 else
38513 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38514 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38515 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38516 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38517 fi
38518
38519 PIC_FLAG="-dynamic -fPIC"
38520 ;;
38521
38522 *-*-aix* )
38523 if test "x$GCC" != "xyes"; then
38524 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38525set dummy makeC++SharedLib; ac_word=$2
38526echo "$as_me:$LINENO: checking for $ac_word" >&5
38527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38528if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38529 echo $ECHO_N "(cached) $ECHO_C" >&6
38530else
38531 if test -n "$AIX_CXX_LD"; then
38532 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38533else
38534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38535for as_dir in $PATH
38536do
38537 IFS=$as_save_IFS
38538 test -z "$as_dir" && as_dir=.
38539 for ac_exec_ext in '' $ac_executable_extensions; do
38540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38541 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38543 break 2
38544 fi
38545done
38546done
38547
38548 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38549fi
38550fi
38551AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38552if test -n "$AIX_CXX_LD"; then
38553 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38554echo "${ECHO_T}$AIX_CXX_LD" >&6
38555else
38556 echo "$as_me:$LINENO: result: no" >&5
38557echo "${ECHO_T}no" >&6
38558fi
38559
38560 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38561 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38562 fi
38563 ;;
38564
38565 *-*-beos* )
38566 SHARED_LD_CC="${LD} -shared -o"
38567 SHARED_LD_CXX="${LD} -shared -o"
38568 ;;
38569
38570 *-*-irix* )
38571 if test "x$GCC" != "xyes"; then
38572 PIC_FLAG="-KPIC"
38573 fi
38574 ;;
38575
38576 *-*-cygwin* | *-*-mingw32* )
38577 PIC_FLAG=""
38578 ;;
38579
38580 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38581 SHARED_LD_CC="`pwd`/dllar.sh -o"
38582 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38583 PIC_FLAG=""
473276a9
VS
38584
38585D='$'
38586cat <<EOF >dllar.sh
38587#!/bin/sh
38588#
38589# dllar - a tool to build both a .dll and an .a file
38590# from a set of object (.o) files for EMX/OS2.
38591#
38592# Written by Andrew Zabolotny, bit@freya.etu.ru
38593# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38594#
38595# This script will accept a set of files on the command line.
38596# All the public symbols from the .o files will be exported into
38597# a .DEF file, then linker will be run (through gcc) against them to
38598# build a shared library consisting of all given .o files. All libraries
38599# (.a) will be first decompressed into component .o files then act as
38600# described above. You can optionally give a description (-d "description")
38601# which will be put into .DLL. To see the list of accepted options (as well
38602# as command-line format) simply run this program without options. The .DLL
38603# is built to be imported by name (there is no guarantee that new versions
38604# of the library you build will have same ordinals for same symbols).
38605#
38606# dllar is free software; you can redistribute it and/or modify
38607# it under the terms of the GNU General Public License as published by
38608# the Free Software Foundation; either version 2, or (at your option)
38609# any later version.
38610#
38611# dllar is distributed in the hope that it will be useful,
38612# but WITHOUT ANY WARRANTY; without even the implied warranty of
38613# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38614# GNU General Public License for more details.
38615#
38616# You should have received a copy of the GNU General Public License
38617# along with dllar; see the file COPYING. If not, write to the Free
38618# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38619# 02111-1307, USA.
38620
38621# To successfuly run this program you will need:
38622# - Current drive should have LFN support (HPFS, ext2, network, etc)
38623# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38624# - gcc
38625# (used to build the .dll)
38626# - emxexp
38627# (used to create .def file from .o files)
38628# - emximp
38629# (used to create .a file from .def file)
38630# - GNU text utilites (cat, sort, uniq)
38631# used to process emxexp output
38632# - GNU file utilities (mv, rm)
38633# - GNU sed
38634# - lxlite (optional, see flag below)
38635# (used for general .dll cleanup)
38636#
38637
38638flag_USE_LXLITE=1;
38639
38640#
38641# helper functions
38642# basnam, variant of basename, which does _not_ remove the path, _iff_
38643# second argument (suffix to remove) is given
38644basnam(){
38645 case ${D}# in
38646 1)
38647 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38648 ;;
38649 2)
38650 echo ${D}1 | sed 's/'${D}2'${D}//'
38651 ;;
38652 *)
38653 echo "error in basnam ${D}*"
38654 exit 8
38655 ;;
38656 esac
38657}
38658
38659# Cleanup temporary files and output
38660CleanUp() {
38661 cd ${D}curDir
38662 for i in ${D}inputFiles ; do
38663 case ${D}i in
38664 *!)
38665 rm -rf \`basnam ${D}i !\`
38666 ;;
38667 *)
38668 ;;
38669 esac
38670 done
38671
38672 # Kill result in case of failure as there is just to many stupid make/nmake
38673 # things out there which doesn't do this.
2057db16 38674 if [] ${D}# -eq 0 []; then
473276a9
VS
38675 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38676 fi
38677}
38678
38679# Print usage and exit script with rc=1.
38680PrintHelp() {
2057db16
VS
38681 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38682 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38683 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38684 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38685 echo ' []*.o[] []*.a[]'
473276a9
VS
38686 echo '*> "output_file" should have no extension.'
38687 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38688 echo ' The import library name is derived from this and is set to "name".a,'
38689 echo ' unless overridden by -import'
38690 echo '*> "importlib_name" should have no extension.'
38691 echo ' If it has the .o, or .a extension, it is automatically removed.'
38692 echo ' This name is used as the import library name and may be longer and'
38693 echo ' more descriptive than the DLL name which has to follow the old '
38694 echo ' 8.3 convention of FAT.'
38695 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38696 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38697 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38698 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38699 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38700 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38701 echo ' If the last character of a symbol is "*", all symbols beginning'
38702 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38703 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38704 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38705 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38706 echo ' C runtime DLLs.'
2057db16 38707 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38708 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38709 echo ' unchanged to GCC at the end of command line.'
38710 echo '*> If you create a DLL from a library and you do not specify -o,'
38711 echo ' the basename for DLL and import library will be set to library name,'
38712 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38713 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38714 echo ' library will be renamed into gcc_s.a.'
38715 echo '--------'
38716 echo 'Example:'
38717 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38718 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38719 CleanUp
38720 exit 1
38721}
38722
38723# Execute a command.
38724# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38725# @Uses Whatever CleanUp() uses.
38726doCommand() {
38727 echo "${D}*"
38728 eval ${D}*
38729 rcCmd=${D}?
38730
2057db16 38731 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38732 echo "command failed, exit code="${D}rcCmd
38733 CleanUp
38734 exit ${D}rcCmd
38735 fi
38736}
38737
38738# main routine
38739# setup globals
38740cmdLine=${D}*
38741outFile=""
38742outimpFile=""
38743inputFiles=""
38744description=""
38745CC=gcc.exe
38746CFLAGS="-s -Zcrtdll"
38747EXTRA_CFLAGS=""
38748EXPORT_BY_ORDINALS=0
38749exclude_symbols=""
38750library_flags=""
38751curDir=\`pwd\`
38752curDirS=curDir
38753case ${D}curDirS in
38754*/)
38755 ;;
38756*)
38757 curDirS=${D}{curDirS}"/"
38758 ;;
38759esac
38760# Parse commandline
38761libsToLink=0
2057db16 38762while [] ${D}1 []; do
473276a9
VS
38763 case ${D}1 in
38764 -ord*)
38765 EXPORT_BY_ORDINALS=1;
38766 ;;
38767 -o*)
38768 shift
38769 outFile=${D}1
38770 ;;
38771 -i*)
38772 shift
38773 outimpFile=${D}1
38774 ;;
38775 -d*)
38776 shift
38777 description=${D}1
38778 ;;
38779 -f*)
38780 shift
38781 CFLAGS=${D}1
38782 ;;
38783 -c*)
38784 shift
38785 CC=${D}1
38786 ;;
38787 -h*)
38788 PrintHelp
38789 ;;
38790 -ex*)
38791 shift
38792 exclude_symbols=${D}{exclude_symbols}${D}1" "
38793 ;;
38794 -libf*)
38795 shift
38796 library_flags=${D}{library_flags}${D}1" "
38797 ;;
38798 -nocrt*)
38799 CFLAGS="-s"
38800 ;;
38801 -nolxl*)
38802 flag_USE_LXLITE=0
38803 ;;
38804 -* | /*)
38805 case ${D}1 in
38806 -L* | -l*)
38807 libsToLink=1
38808 ;;
38809 *)
38810 ;;
38811 esac
38812 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38813 ;;
38814 *)
38815 found=0;
2057db16 38816 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
38817 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38818 else
38819 for file in ${D}1 ; do
2057db16 38820 if [] -f ${D}file []; then
473276a9
VS
38821 inputFiles="${D}{inputFiles} ${D}file"
38822 found=1
38823 fi
38824 done
2057db16 38825 if [] ${D}found -eq 0 []; then
473276a9
VS
38826 echo "ERROR: No file(s) found: "${D}1
38827 exit 8
38828 fi
38829 fi
38830 ;;
38831 esac
38832 shift
38833done # iterate cmdline words
38834
38835#
2057db16 38836if [] -z "${D}inputFiles" []; then
473276a9
VS
38837 echo "dllar: no input files"
38838 PrintHelp
38839fi
38840
38841# Now extract all .o files from .a files
38842newInputFiles=""
38843for file in ${D}inputFiles ; do
38844 case ${D}file in
38845 *.a | *.lib)
38846 case ${D}file in
38847 *.a)
38848 suffix=".a"
38849 AR="ar"
38850 ;;
38851 *.lib)
38852 suffix=".lib"
38853 AR="emxomfar"
38854 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
38855 ;;
38856 *)
38857 ;;
38858 esac
38859 dirname=\`basnam ${D}file ${D}suffix\`"_%"
38860 mkdir ${D}dirname
2057db16 38861 if [] ${D}? -ne 0 []; then
473276a9
VS
38862 echo "Failed to create subdirectory ./${D}dirname"
38863 CleanUp
38864 exit 8;
38865 fi
38866 # Append '!' to indicate archive
38867 newInputFiles="${D}newInputFiles ${D}{dirname}!"
38868 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
38869 cd ${D}curDir
38870 found=0;
38871 for subfile in ${D}dirname/*.o* ; do
2057db16 38872 if [] -f ${D}subfile []; then
473276a9 38873 found=1
2057db16 38874 if [] -s ${D}subfile []; then
473276a9
VS
38875 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
38876 newInputFiles="${D}newInputFiles ${D}subfile"
38877 fi
38878 fi
38879 done
2057db16 38880 if [] ${D}found -eq 0 []; then
473276a9
VS
38881 echo "WARNING: there are no files in archive \'${D}file\'"
38882 fi
38883 ;;
38884 *)
38885 newInputFiles="${D}{newInputFiles} ${D}file"
38886 ;;
38887 esac
38888done
38889inputFiles="${D}newInputFiles"
38890
38891# Output filename(s).
38892do_backup=0;
2057db16 38893if [] -z ${D}outFile []; then
473276a9
VS
38894 do_backup=1;
38895 set outFile ${D}inputFiles; outFile=${D}2
38896fi
38897
38898# If it is an archive, remove the '!' and the '_%' suffixes
38899case ${D}outFile in
38900*_%!)
38901 outFile=\`basnam ${D}outFile _%!\`
38902 ;;
38903*)
38904 ;;
38905esac
38906case ${D}outFile in
38907*.dll)
38908 outFile=\`basnam ${D}outFile .dll\`
38909 ;;
38910*.DLL)
38911 outFile=\`basnam ${D}outFile .DLL\`
38912 ;;
38913*.o)
38914 outFile=\`basnam ${D}outFile .o\`
38915 ;;
38916*.obj)
38917 outFile=\`basnam ${D}outFile .obj\`
38918 ;;
38919*.a)
38920 outFile=\`basnam ${D}outFile .a\`
38921 ;;
38922*.lib)
38923 outFile=\`basnam ${D}outFile .lib\`
38924 ;;
38925*)
38926 ;;
38927esac
38928case ${D}outimpFile in
38929*.a)
38930 outimpFile=\`basnam ${D}outimpFile .a\`
38931 ;;
38932*.lib)
38933 outimpFile=\`basnam ${D}outimpFile .lib\`
38934 ;;
38935*)
38936 ;;
38937esac
2057db16 38938if [] -z ${D}outimpFile []; then
473276a9
VS
38939 outimpFile=${D}outFile
38940fi
38941defFile="${D}{outFile}.def"
38942arcFile="${D}{outimpFile}.a"
38943arcFile2="${D}{outimpFile}.lib"
38944dllFile="${D}outFile"
38945# Add suffix to dllFile later, first we need a version to use as
38946# name in .def file.
38947
2057db16
VS
38948if [] ${D}do_backup -ne 0 [] ; then
38949 if [] -f ${D}arcFile [] ; then
473276a9
VS
38950 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
38951 fi
2057db16 38952 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
38953 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
38954 fi
38955fi
38956
38957# Extract public symbols from all the object files.
38958tmpdefFile=${D}{defFile}_%
38959rm -f ${D}tmpdefFile
38960for file in ${D}inputFiles ; do
38961 case ${D}file in
38962 *!)
38963 ;;
38964 *)
38965 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
38966 ;;
38967 esac
38968done
38969
38970# Create the def file.
38971rm -f ${D}defFile
38972echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
38973dllFile="${D}dllFile.dll"
2057db16 38974if [] -n ${D}description []; then
473276a9
VS
38975 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
38976fi
38977echo "EXPORTS" >> ${D}defFile
38978
38979doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
38980grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
38981
38982# Checks if the export is ok or not.
38983for word in ${D}exclude_symbols; do
38984 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
38985 mv ${D}{tmpdefFile}% ${D}tmpdefFile
38986done
38987
38988
2057db16 38989if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
38990 sed "=" < ${D}tmpdefFile | \
38991 sed '
38992 N
38993 : loop
2057db16 38994 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
38995 t loop
38996 ' > ${D}{tmpdefFile}%
38997 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
38998else
38999 rm -f ${D}{tmpdefFile}%
39000fi
39001cat ${D}tmpdefFile >> ${D}defFile
39002rm -f ${D}tmpdefFile
39003
39004# Do linking, create implib, and apply lxlite.
39005gccCmdl="";
39006for file in ${D}inputFiles ; do
39007 case ${D}file in
39008 *!)
39009 ;;
39010 *)
39011 gccCmdl="${D}gccCmdl ${D}file"
39012 ;;
39013 esac
39014done
39015doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39016touch "${D}{outFile}.dll"
39017
39018doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39019if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39020 add_flags="";
2057db16 39021 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39022 add_flags="-ynd"
39023 fi
39024 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39025fi
39026doCommand "emxomf -s -l ${D}arcFile"
39027
39028# Successful exit.
39029CleanUp 1
39030exit 0
39031EOF
39032
39033 chmod +x dllar.sh
a848cd7e
SC
39034 ;;
39035
39036 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39037 *-*-sunos4* | \
39038 *-*-osf* | \
39039 *-*-dgux5* | \
39040 *-*-sysv5* )
39041 ;;
39042
39043 *)
39044 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39045echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39046 { (exit 1); exit 1; }; }
39047 esac
39048
2057db16
VS
39049 if test "x$PIC_FLAG" != "x" ; then
39050 PIC_FLAG="$PIC_FLAG -DPIC"
39051 fi
39052
a848cd7e
SC
39053 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39054 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39055 fi
39056 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39057 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39058 fi
39059
39060
39061
39062
39063
39064
39065
39066
39067 USE_SOVERSION=0
39068 USE_SOVERLINUX=0
39069 USE_SOVERSOLARIS=0
39070 USE_SOSYMLINKS=0
39071 USE_MACVERSION=0
39072 SONAME_FLAG=
39073
39074 case "${BAKEFILE_HOST}" in
39075 *-*-linux* )
39076 SONAME_FLAG="-Wl,-soname,"
39077 USE_SOVERSION=1
39078 USE_SOVERLINUX=1
39079 USE_SOSYMLINKS=1
39080 ;;
39081
39082 *-*-solaris2* )
39083 SONAME_FLAG="-h "
39084 USE_SOVERSION=1
39085 USE_SOVERSOLARIS=1
39086 USE_SOSYMLINKS=1
39087 ;;
39088
39089 *-*-darwin* )
39090 USE_MACVERSION=1
39091 USE_SOVERSION=1
39092 USE_SOSYMLINKS=1
39093 ;;
39094 esac
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39105echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39106 DEPS_TRACKING=0
39107
39108 if test "x$GCC" = "xyes"; then
39109 DEPSMODE=gcc
39110 DEPS_TRACKING=1
39111 case "${BAKEFILE_HOST}" in
39112 powerpc-*-darwin* )
39113 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39114 ;;
39115 * )
39116 DEPSFLAG_GCC="-MMD"
39117 ;;
39118 esac
39119 echo "$as_me:$LINENO: result: gcc" >&5
39120echo "${ECHO_T}gcc" >&6
39121 else
39122 echo "$as_me:$LINENO: result: none" >&5
39123echo "${ECHO_T}none" >&6
39124 fi
39125
39126 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39127
39128D='$'
39129cat <<EOF >bk-deps
a848cd7e
SC
39130#!/bin/sh
39131
39132# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39133# script. It is used to track C/C++ files dependencies in portable way.
39134#
39135# Permission is given to use this file in any way.
39136
473276a9 39137DEPSMODE=${DEPSMODE}
a848cd7e 39138DEPSDIR=.deps
473276a9 39139DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39140
473276a9 39141mkdir -p ${D}DEPSDIR
a848cd7e 39142
473276a9
VS
39143if test ${D}DEPSMODE = gcc ; then
39144 ${D}* ${D}{DEPSFLAG_GCC}
39145 status=${D}?
39146 if test ${D}{status} != 0 ; then
39147 exit ${D}{status}
a848cd7e
SC
39148 fi
39149 # move created file to the location we want it in:
473276a9
VS
39150 while test ${D}# -gt 0; do
39151 case "${D}1" in
a848cd7e
SC
39152 -o )
39153 shift
473276a9 39154 objfile=${D}1
a848cd7e
SC
39155 ;;
39156 -* )
39157 ;;
39158 * )
473276a9 39159 srcfile=${D}1
a848cd7e
SC
39160 ;;
39161 esac
39162 shift
39163 done
473276a9
VS
39164 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39165 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39166 if test -f ${D}depfile ; then
39167 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39168 rm -f ${D}depfile
a848cd7e 39169 else
473276a9
VS
39170 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39171 if test -f ${D}depfile ; then
39172 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39173 rm -f ${D}depfile
a848cd7e
SC
39174 fi
39175 fi
39176 exit 0
39177else
473276a9
VS
39178 ${D}*
39179 exit ${D}?
a848cd7e
SC
39180fi
39181EOF
473276a9 39182
a848cd7e
SC
39183 chmod +x bk-deps
39184 fi
39185
39186
39187
39188
39189 RESCOMP=
39190 SETFILE=
39191
39192 case ${BAKEFILE_HOST} in
39193 *-*-cygwin* | *-*-mingw32* )
39194 if test "$build" != "$host" ; then
39195 RESCOMP=$host_alias-windres
39196 else
39197 # Extract the first word of "windres", so it can be a program name with args.
39198set dummy windres; ac_word=$2
39199echo "$as_me:$LINENO: checking for $ac_word" >&5
39200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39201if test "${ac_cv_prog_RESCOMP+set}" = set; then
39202 echo $ECHO_N "(cached) $ECHO_C" >&6
39203else
39204 if test -n "$RESCOMP"; then
39205 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39206else
39207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39208for as_dir in $PATH
39209do
39210 IFS=$as_save_IFS
39211 test -z "$as_dir" && as_dir=.
39212 for ac_exec_ext in '' $ac_executable_extensions; do
39213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39214 ac_cv_prog_RESCOMP="windres"
39215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39216 break 2
39217 fi
39218done
39219done
39220
39221 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39222fi
39223fi
39224RESCOMP=$ac_cv_prog_RESCOMP
39225if test -n "$RESCOMP"; then
39226 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39227echo "${ECHO_T}$RESCOMP" >&6
39228else
39229 echo "$as_me:$LINENO: result: no" >&5
39230echo "${ECHO_T}no" >&6
39231fi
39232
39233 fi
39234 ;;
39235
39236 *-*-darwin* )
39237 # Extract the first word of "Rez", so it can be a program name with args.
39238set dummy Rez; ac_word=$2
39239echo "$as_me:$LINENO: checking for $ac_word" >&5
39240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39241if test "${ac_cv_prog_RESCOMP+set}" = set; then
39242 echo $ECHO_N "(cached) $ECHO_C" >&6
39243else
39244 if test -n "$RESCOMP"; then
39245 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39246else
39247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39248for as_dir in $PATH
39249do
39250 IFS=$as_save_IFS
39251 test -z "$as_dir" && as_dir=.
39252 for ac_exec_ext in '' $ac_executable_extensions; do
39253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39254 ac_cv_prog_RESCOMP="Rez"
39255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39256 break 2
39257 fi
39258done
39259done
39260
39261 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39262fi
39263fi
39264RESCOMP=$ac_cv_prog_RESCOMP
39265if test -n "$RESCOMP"; then
39266 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39267echo "${ECHO_T}$RESCOMP" >&6
39268else
39269 echo "$as_me:$LINENO: result: no" >&5
39270echo "${ECHO_T}no" >&6
39271fi
39272
39273 # Extract the first word of "SetFile", so it can be a program name with args.
39274set dummy SetFile; ac_word=$2
39275echo "$as_me:$LINENO: checking for $ac_word" >&5
39276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39277if test "${ac_cv_prog_SETFILE+set}" = set; then
39278 echo $ECHO_N "(cached) $ECHO_C" >&6
39279else
39280 if test -n "$SETFILE"; then
39281 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39282else
39283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39284for as_dir in $PATH
39285do
39286 IFS=$as_save_IFS
39287 test -z "$as_dir" && as_dir=.
39288 for ac_exec_ext in '' $ac_executable_extensions; do
39289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39290 ac_cv_prog_SETFILE="SetFile"
39291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39292 break 2
39293 fi
39294done
39295done
39296
39297 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39298fi
39299fi
39300SETFILE=$ac_cv_prog_SETFILE
39301if test -n "$SETFILE"; then
39302 echo "$as_me:$LINENO: result: $SETFILE" >&5
39303echo "${ECHO_T}$SETFILE" >&6
39304else
39305 echo "$as_me:$LINENO: result: no" >&5
39306echo "${ECHO_T}no" >&6
39307fi
39308
39309 ;;
39310 esac
39311
39312
39313
39314
39315
2057db16 39316 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39317
dcc1b6ad 39318
a0f9686d
VS
39319
39320
39321
9f45f08e 39322BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39323
646b6ec1 39324
74b84332 39325
a848cd7e
SC
39326 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39327if test "${enable_precomp_headers+set}" = set; then
39328 enableval="$enable_precomp_headers"
39329 bk_use_pch="$enableval"
39330fi;
39331
39332 GCC_PCH=0
39333
39334 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39335 if test "x$GCC" = "xyes"; then
39336 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39337echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39338 cat >conftest.$ac_ext <<_ACEOF
39339/* confdefs.h. */
39340_ACEOF
39341cat confdefs.h >>conftest.$ac_ext
39342cat >>conftest.$ac_ext <<_ACEOF
39343/* end confdefs.h. */
39344
39345int
39346main ()
39347{
39348
39349 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39350 #error "no pch support"
39351 #endif
39352 #if (__GNUC__ < 3)
39353 #error "no pch support"
39354 #endif
39355 #if (__GNUC__ == 3) && \
39356 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39357 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39358 #error "no pch support"
39359 #endif
39360
39361 ;
39362 return 0;
39363}
39364_ACEOF
39365rm -f conftest.$ac_objext
39366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39367 (eval $ac_compile) 2>conftest.er1
a848cd7e 39368 ac_status=$?
ac1cb8d3
VS
39369 grep -v '^ *+' conftest.er1 >conftest.err
39370 rm -f conftest.er1
39371 cat conftest.err >&5
a848cd7e
SC
39372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39373 (exit $ac_status); } &&
4d4ff94c 39374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39376 (eval $ac_try) 2>&5
39377 ac_status=$?
39378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379 (exit $ac_status); }; } &&
39380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382 (eval $ac_try) 2>&5
39383 ac_status=$?
39384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); }; }; then
39386
39387 echo "$as_me:$LINENO: result: yes" >&5
39388echo "${ECHO_T}yes" >&6
a848cd7e
SC
39389 GCC_PCH=1
39390
39391else
39392 echo "$as_me: failed program was:" >&5
39393sed 's/^/| /' conftest.$ac_ext >&5
39394
39395
39396 echo "$as_me:$LINENO: result: no" >&5
39397echo "${ECHO_T}no" >&6
39398
39399fi
ac1cb8d3 39400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39401 if test $GCC_PCH = 1 ; then
39402 cat <<EOF >bk-make-pch
39403#!/bin/sh
39404
39405# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39406# script. It is used to generated precompiled headers.
39407#
39408# Permission is given to use this file in any way.
39409
39410outfile="\${1}"
39411header="\${2}"
39412shift
39413shift
39414
39415compiler=
39416headerfile=
39417while test \${#} -gt 0; do
39418 case "\${1}" in
39419 -I* )
39420 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39421 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39422 headerfile="\${incdir}/\${header}"
39423 fi
39424 ;;
39425 esac
39426 compiler="\${compiler} \${1}"
39427 shift
39428done
39429
39430if test "x\${headerfile}" = "x" ; then
39431 echo "error: can't find header \${header} in include paths" >2
39432else
39433 if test -f \${outfile} ; then
39434 rm -f \${outfile}
39435 else
39436 mkdir -p \`dirname \${outfile}\`
39437 fi
39438 depsfile=".deps/\`basename \${outfile}\`.d"
39439 mkdir -p .deps
39440 # can do this because gcc is >= 3.4:
39441 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39442 exit \${?}
39443fi
39444EOF
39445 chmod +x bk-make-pch
39446 fi
39447 fi
39448 fi
39449
39450
39451
39452
39453
dcc1b6ad
VS
39454
39455
39456 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39457if test "${enable_precomp_headers+set}" = set; then
39458 enableval="$enable_precomp_headers"
39459 bk_use_pch="$enableval"
39460fi;
39461
39462 GCC_PCH=0
39463
39464 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39465 if test "x$GCC" = "xyes"; then
39466 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39467echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39468 cat >conftest.$ac_ext <<_ACEOF
39469/* confdefs.h. */
39470_ACEOF
39471cat confdefs.h >>conftest.$ac_ext
39472cat >>conftest.$ac_ext <<_ACEOF
39473/* end confdefs.h. */
39474
39475int
39476main ()
39477{
39478
39479 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39480 #error "no pch support"
39481 #endif
39482 #if (__GNUC__ < 3)
39483 #error "no pch support"
39484 #endif
39485 #if (__GNUC__ == 3) && \
39486 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39487 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39488 #error "no pch support"
39489 #endif
39490
39491 ;
39492 return 0;
39493}
39494_ACEOF
39495rm -f conftest.$ac_objext
39496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39497 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39498 ac_status=$?
ac1cb8d3
VS
39499 grep -v '^ *+' conftest.er1 >conftest.err
39500 rm -f conftest.er1
39501 cat conftest.err >&5
dcc1b6ad
VS
39502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39503 (exit $ac_status); } &&
4d4ff94c 39504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39506 (eval $ac_try) 2>&5
39507 ac_status=$?
39508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509 (exit $ac_status); }; } &&
39510 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39512 (eval $ac_try) 2>&5
39513 ac_status=$?
39514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39515 (exit $ac_status); }; }; then
39516
39517 echo "$as_me:$LINENO: result: yes" >&5
39518echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39519 GCC_PCH=1
39520
39521else
39522 echo "$as_me: failed program was:" >&5
39523sed 's/^/| /' conftest.$ac_ext >&5
39524
39525
39526 echo "$as_me:$LINENO: result: no" >&5
39527echo "${ECHO_T}no" >&6
39528
39529fi
ac1cb8d3 39530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39531 if test $GCC_PCH = 1 ; then
39532 cat <<EOF >bk-make-pch
39533#!/bin/sh
39534
39535# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39536# script. It is used to generated precompiled headers.
39537#
39538# Permission is given to use this file in any way.
39539
39540outfile="\${1}"
39541header="\${2}"
39542shift
39543shift
39544
39545compiler=
39546headerfile=
39547while test \${#} -gt 0; do
39548 case "\${1}" in
39549 -I* )
39550 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39551 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39552 headerfile="\${incdir}/\${header}"
39553 fi
39554 ;;
39555 esac
39556 compiler="\${compiler} \${1}"
39557 shift
39558done
39559
39560if test "x\${headerfile}" = "x" ; then
39561 echo "error: can't find header \${header} in include paths" >2
39562else
39563 if test -f \${outfile} ; then
39564 rm -f \${outfile}
39565 else
39566 mkdir -p \`dirname \${outfile}\`
39567 fi
39568 depsfile=".deps/\`basename \${outfile}\`.d"
39569 mkdir -p .deps
39570 # can do this because gcc is >= 3.4:
39571 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39572 exit \${?}
39573fi
39574EOF
39575 chmod +x bk-make-pch
39576 fi
39577 fi
39578 fi
39579
39580
39581
4d4ff94c 39582
a848cd7e
SC
39583 COND_BUILD_DEBUG="#"
39584 if test "x$BUILD" = "xdebug" ; then
39585 COND_BUILD_DEBUG=""
39586 fi
39587
39588 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39589 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39590 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39591 fi
39592
39593 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39594 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39595 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39596 fi
39597
39598 COND_BUILD_DEBUG_UNICODE_0="#"
39599 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39600 COND_BUILD_DEBUG_UNICODE_0=""
39601 fi
39602
39603 COND_BUILD_DEBUG_UNICODE_1="#"
39604 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39605 COND_BUILD_DEBUG_UNICODE_1=""
39606 fi
39607
39608 COND_BUILD_RELEASE="#"
39609 if test "x$BUILD" = "xrelease" ; then
39610 COND_BUILD_RELEASE=""
39611 fi
39612
39613 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39614 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39615 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39616 fi
39617
39618 COND_BUILD_RELEASE_UNICODE_0="#"
39619 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39620 COND_BUILD_RELEASE_UNICODE_0=""
39621 fi
39622
39623 COND_BUILD_RELEASE_UNICODE_1="#"
39624 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39625 COND_BUILD_RELEASE_UNICODE_1=""
39626 fi
39627
39628 COND_DEBUG_FLAG_1="#"
39629 if test "x$DEBUG_FLAG" = "x1" ; then
39630 COND_DEBUG_FLAG_1=""
39631 fi
39632
39633 COND_DEBUG_INFO_0="#"
39634 if test "x$DEBUG_INFO" = "x0" ; then
39635 COND_DEBUG_INFO_0=""
39636 fi
39637
39638 COND_DEBUG_INFO_1="#"
39639 if test "x$DEBUG_INFO" = "x1" ; then
39640 COND_DEBUG_INFO_1=""
39641 fi
39642
39643 COND_DEPS_TRACKING_0="#"
39644 if test "x$DEPS_TRACKING" = "x0" ; then
39645 COND_DEPS_TRACKING_0=""
39646 fi
39647
39648 COND_DEPS_TRACKING_1="#"
39649 if test "x$DEPS_TRACKING" = "x1" ; then
39650 COND_DEPS_TRACKING_1=""
39651 fi
39652
39653 COND_GCC_PCH_1="#"
39654 if test "x$GCC_PCH" = "x1" ; then
39655 COND_GCC_PCH_1=""
39656 fi
39657
39658 COND_MONOLITHIC_0="#"
39659 if test "x$MONOLITHIC" = "x0" ; then
39660 COND_MONOLITHIC_0=""
39661 fi
39662
39663 COND_MONOLITHIC_0_SHARED_0="#"
39664 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39665 COND_MONOLITHIC_0_SHARED_0=""
39666 fi
39667
39668 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39669 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39670 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39671 fi
39672
39673 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39674 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39675 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39676 fi
39677
39678 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39679 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39680 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39681 fi
39682
39683 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39684 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39685 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39686 fi
39687
39688 COND_MONOLITHIC_0_SHARED_1="#"
39689 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39690 COND_MONOLITHIC_0_SHARED_1=""
39691 fi
39692
39693 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39694 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39695 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39696 fi
39697
39698 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39699 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39700 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39701 fi
39702
39703 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39704 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39705 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39706 fi
39707
39708 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39709 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39710 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39711 fi
39712
39713 COND_MONOLITHIC_0_USE_ODBC_1="#"
39714 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39715 COND_MONOLITHIC_0_USE_ODBC_1=""
39716 fi
39717
39718 COND_MONOLITHIC_1="#"
39719 if test "x$MONOLITHIC" = "x1" ; then
39720 COND_MONOLITHIC_1=""
39721 fi
39722
39723 COND_MONOLITHIC_1_SHARED_0="#"
39724 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39725 COND_MONOLITHIC_1_SHARED_0=""
39726 fi
39727
39728 COND_MONOLITHIC_1_SHARED_1="#"
39729 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39730 COND_MONOLITHIC_1_SHARED_1=""
39731 fi
39732
39733 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39734 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39735 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39736 fi
39737
39738 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39739 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39740 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39741 fi
39742
39743 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39744 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39745 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39746 fi
39747
39748 COND_PLATFORM_MACOSX_1="#"
39749 if test "x$PLATFORM_MACOSX" = "x1" ; then
39750 COND_PLATFORM_MACOSX_1=""
39751 fi
39752
39753 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39754 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39755 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39756 fi
39757
39758 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39759 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39760 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39761 fi
39762
39763 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39764 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39765 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39766 fi
39767
ebee3cd0
VS
39768 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
39769 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
39770 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
39771 fi
39772
39773 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
39774 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
39775 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
39776 fi
39777
a848cd7e
SC
39778 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39779 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39780 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39781 fi
39782
39783 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39784 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39785 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39786 fi
39787
39788 COND_PLATFORM_MAC_1="#"
39789 if test "x$PLATFORM_MAC" = "x1" ; then
39790 COND_PLATFORM_MAC_1=""
39791 fi
39792
39793 COND_PLATFORM_OS2_1="#"
39794 if test "x$PLATFORM_OS2" = "x1" ; then
39795 COND_PLATFORM_OS2_1=""
39796 fi
39797
39798 COND_PLATFORM_UNIX_0="#"
39799 if test "x$PLATFORM_UNIX" = "x0" ; then
39800 COND_PLATFORM_UNIX_0=""
39801 fi
39802
39803 COND_PLATFORM_UNIX_1="#"
39804 if test "x$PLATFORM_UNIX" = "x1" ; then
39805 COND_PLATFORM_UNIX_1=""
39806 fi
39807
39808 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39809 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39810 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39811 fi
39812
39813 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39814 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39815 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39816 fi
39817
39818 COND_PLATFORM_WIN32_0="#"
39819 if test "x$PLATFORM_WIN32" = "x0" ; then
39820 COND_PLATFORM_WIN32_0=""
39821 fi
39822
39823 COND_PLATFORM_WIN32_1="#"
39824 if test "x$PLATFORM_WIN32" = "x1" ; then
39825 COND_PLATFORM_WIN32_1=""
39826 fi
39827
39828 COND_SHARED_0="#"
39829 if test "x$SHARED" = "x0" ; then
39830 COND_SHARED_0=""
39831 fi
39832
39833 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39834 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39835 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39836 fi
39837
39838 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39839 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39840 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39841 fi
39842
39843 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39844 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39845 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39846 fi
39847
39848 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39849 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39850 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39851 fi
39852
39853 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39854 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39855 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39856 fi
39857
39858 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39859 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39860 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39861 fi
39862
39863 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39864 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39865 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39866 fi
39867
39868 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39869 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39870 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39871 fi
39872
39873 COND_SHARED_1="#"
39874 if test "x$SHARED" = "x1" ; then
39875 COND_SHARED_1=""
39876 fi
39877
39878 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39879 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39880 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39881 fi
39882
39883 COND_TOOLKIT_COCOA="#"
39884 if test "x$TOOLKIT" = "xCOCOA" ; then
39885 COND_TOOLKIT_COCOA=""
39886 fi
39887
39888 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39889 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39890 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39891 fi
39892
39893 COND_TOOLKIT_GTK="#"
39894 if test "x$TOOLKIT" = "xGTK" ; then
39895 COND_TOOLKIT_GTK=""
39896 fi
39897
39898 COND_TOOLKIT_GTK_USE_GUI_1="#"
39899 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39900 COND_TOOLKIT_GTK_USE_GUI_1=""
39901 fi
39902
39903 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39904 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39905 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39906 fi
39907
39908 COND_TOOLKIT_MAC="#"
39909 if test "x$TOOLKIT" = "xMAC" ; then
39910 COND_TOOLKIT_MAC=""
39911 fi
39912
39913 COND_TOOLKIT_MAC_USE_GUI_1="#"
39914 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39915 COND_TOOLKIT_MAC_USE_GUI_1=""
39916 fi
39917
39918 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39919 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39920 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39921 fi
39922
4d4ff94c
VZ
39923 COND_TOOLKIT_MAC_WXUNIV_0="#"
39924 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
39925 COND_TOOLKIT_MAC_WXUNIV_0=""
39926 fi
39927
a848cd7e
SC
39928 COND_TOOLKIT_MGL="#"
39929 if test "x$TOOLKIT" = "xMGL" ; then
39930 COND_TOOLKIT_MGL=""
39931 fi
39932
39933 COND_TOOLKIT_MGL_USE_GUI_1="#"
39934 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39935 COND_TOOLKIT_MGL_USE_GUI_1=""
39936 fi
39937
39938 COND_TOOLKIT_MOTIF="#"
39939 if test "x$TOOLKIT" = "xMOTIF" ; then
39940 COND_TOOLKIT_MOTIF=""
39941 fi
39942
39943 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39944 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39945 COND_TOOLKIT_MOTIF_USE_GUI_1=""
39946 fi
39947
39948 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39949 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39950 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
39951 fi
39952
39953 COND_TOOLKIT_MSW="#"
39954 if test "x$TOOLKIT" = "xMSW" ; then
39955 COND_TOOLKIT_MSW=""
39956 fi
39957
39958 COND_TOOLKIT_MSW_USE_GUI_1="#"
39959 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39960 COND_TOOLKIT_MSW_USE_GUI_1=""
39961 fi
39962
39963 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39964 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39965 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
39966 fi
39967
4d4ff94c
VZ
39968 COND_TOOLKIT_MSW_WXUNIV_0="#"
39969 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
39970 COND_TOOLKIT_MSW_WXUNIV_0=""
39971 fi
39972
a848cd7e
SC
39973 COND_TOOLKIT_PM="#"
39974 if test "x$TOOLKIT" = "xPM" ; then
39975 COND_TOOLKIT_PM=""
39976 fi
39977
39978 COND_TOOLKIT_PM_USE_GUI_1="#"
39979 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39980 COND_TOOLKIT_PM_USE_GUI_1=""
39981 fi
39982
39983 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39984 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39985 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39986 fi
39987
4d4ff94c
VZ
39988 COND_TOOLKIT_PM_WXUNIV_0="#"
39989 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
39990 COND_TOOLKIT_PM_WXUNIV_0=""
39991 fi
39992
3fd9c298
DE
39993 COND_TOOLKIT_WINCE="#"
39994 if test "x$TOOLKIT" = "xWINCE" ; then
39995 COND_TOOLKIT_WINCE=""
39996 fi
39997
39998 COND_TOOLKIT_WINCE_USE_GUI_1="#"
39999 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40000 COND_TOOLKIT_WINCE_USE_GUI_1=""
40001 fi
40002
40003 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40004 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40005 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40006 fi
40007
a848cd7e
SC
40008 COND_TOOLKIT_X11="#"
40009 if test "x$TOOLKIT" = "xX11" ; then
40010 COND_TOOLKIT_X11=""
40011 fi
40012
40013 COND_TOOLKIT_X11_USE_GUI_1="#"
40014 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40015 COND_TOOLKIT_X11_USE_GUI_1=""
40016 fi
40017
40018 COND_UNICODE_1="#"
40019 if test "x$UNICODE" = "x1" ; then
40020 COND_UNICODE_1=""
40021 fi
40022
40023 COND_USE_EXCEPTIONS_0="#"
40024 if test "x$USE_EXCEPTIONS" = "x0" ; then
40025 COND_USE_EXCEPTIONS_0=""
40026 fi
40027
40028 COND_USE_EXCEPTIONS_1="#"
40029 if test "x$USE_EXCEPTIONS" = "x1" ; then
40030 COND_USE_EXCEPTIONS_1=""
40031 fi
40032
40033 COND_USE_GUI_0="#"
40034 if test "x$USE_GUI" = "x0" ; then
40035 COND_USE_GUI_0=""
40036 fi
40037
40038 COND_USE_GUI_1="#"
40039 if test "x$USE_GUI" = "x1" ; then
40040 COND_USE_GUI_1=""
40041 fi
40042
40043 COND_USE_GUI_1_WXUNIV_0="#"
40044 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40045 COND_USE_GUI_1_WXUNIV_0=""
40046 fi
40047
40048 COND_USE_GUI_1_WXUNIV_1="#"
40049 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40050 COND_USE_GUI_1_WXUNIV_1=""
40051 fi
40052
40053 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40054 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40055 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40056 fi
40057
40058 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40059 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40060 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40061 fi
40062
40063 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40064 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40065 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40066 fi
40067
4d4ff94c
VZ
40068 COND_USE_ODBC_1="#"
40069 if test "x$USE_ODBC" = "x1" ; then
40070 COND_USE_ODBC_1=""
40071 fi
40072
a848cd7e
SC
40073 COND_USE_PLUGINS_0="#"
40074 if test "x$USE_PLUGINS" = "x0" ; then
40075 COND_USE_PLUGINS_0=""
40076 fi
40077
40078 COND_USE_SOSYMLINKS_1="#"
40079 if test "x$USE_SOSYMLINKS" = "x1" ; then
40080 COND_USE_SOSYMLINKS_1=""
40081 fi
40082
40083 COND_USE_SOVERLINUX_1="#"
40084 if test "x$USE_SOVERLINUX" = "x1" ; then
40085 COND_USE_SOVERLINUX_1=""
40086 fi
40087
40088 COND_USE_SOVERSION_0="#"
40089 if test "x$USE_SOVERSION" = "x0" ; then
40090 COND_USE_SOVERSION_0=""
40091 fi
40092
40093 COND_USE_SOVERSOLARIS_1="#"
40094 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40095 COND_USE_SOVERSOLARIS_1=""
40096 fi
40097
40098 COND_WITH_PLUGIN_SDL_1="#"
40099 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40100 COND_WITH_PLUGIN_SDL_1=""
40101 fi
40102
4d4ff94c
VZ
40103 COND_WITH_SDL_1="#"
40104 if test "x$WITH_SDL" = "x1" ; then
40105 COND_WITH_SDL_1=""
40106 fi
40107
a848cd7e
SC
40108 COND_WXUNIV_1="#"
40109 if test "x$WXUNIV" = "x1" ; then
40110 COND_WXUNIV_1=""
40111 fi
40112
40113 COND_WXUSE_EXPAT_BUILTIN="#"
40114 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40115 COND_WXUSE_EXPAT_BUILTIN=""
40116 fi
40117
40118 COND_WXUSE_LIBJPEG_BUILTIN="#"
40119 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40120 COND_WXUSE_LIBJPEG_BUILTIN=""
40121 fi
40122
40123 COND_WXUSE_LIBPNG_BUILTIN="#"
40124 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40125 COND_WXUSE_LIBPNG_BUILTIN=""
40126 fi
40127
40128 COND_WXUSE_LIBTIFF_BUILTIN="#"
40129 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40130 COND_WXUSE_LIBTIFF_BUILTIN=""
40131 fi
40132
40133 COND_WXUSE_ODBC_BUILTIN="#"
40134 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40135 COND_WXUSE_ODBC_BUILTIN=""
40136 fi
40137
40138 COND_WXUSE_REGEX_BUILTIN="#"
40139 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40140 COND_WXUSE_REGEX_BUILTIN=""
40141 fi
40142
40143 COND_WXUSE_ZLIB_BUILTIN="#"
40144 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40145 COND_WXUSE_ZLIB_BUILTIN=""
40146 fi
40147
dcc1b6ad
VS
40148 COND_BUILD_DEBUG="#"
40149 if test "x$BUILD" = "xdebug" ; then
40150 COND_BUILD_DEBUG=""
40151 fi
40152
40153 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40154 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40155 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40156 fi
40157
40158 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40159 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40160 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40161 fi
40162
40163 COND_BUILD_DEBUG_UNICODE_0="#"
40164 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40165 COND_BUILD_DEBUG_UNICODE_0=""
40166 fi
40167
40168 COND_BUILD_DEBUG_UNICODE_1="#"
40169 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40170 COND_BUILD_DEBUG_UNICODE_1=""
40171 fi
40172
40173 COND_BUILD_RELEASE="#"
40174 if test "x$BUILD" = "xrelease" ; then
40175 COND_BUILD_RELEASE=""
40176 fi
40177
40178 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40179 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40180 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40181 fi
40182
40183 COND_BUILD_RELEASE_UNICODE_0="#"
40184 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40185 COND_BUILD_RELEASE_UNICODE_0=""
40186 fi
40187
40188 COND_BUILD_RELEASE_UNICODE_1="#"
40189 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40190 COND_BUILD_RELEASE_UNICODE_1=""
40191 fi
40192
40193 COND_DEBUG_FLAG_1="#"
40194 if test "x$DEBUG_FLAG" = "x1" ; then
40195 COND_DEBUG_FLAG_1=""
40196 fi
40197
40198 COND_DEBUG_INFO_0="#"
40199 if test "x$DEBUG_INFO" = "x0" ; then
40200 COND_DEBUG_INFO_0=""
40201 fi
40202
40203 COND_DEBUG_INFO_1="#"
40204 if test "x$DEBUG_INFO" = "x1" ; then
40205 COND_DEBUG_INFO_1=""
40206 fi
40207
40208 COND_DEPS_TRACKING_0="#"
40209 if test "x$DEPS_TRACKING" = "x0" ; then
40210 COND_DEPS_TRACKING_0=""
40211 fi
40212
40213 COND_DEPS_TRACKING_1="#"
40214 if test "x$DEPS_TRACKING" = "x1" ; then
40215 COND_DEPS_TRACKING_1=""
40216 fi
40217
40218 COND_GCC_PCH_1="#"
40219 if test "x$GCC_PCH" = "x1" ; then
40220 COND_GCC_PCH_1=""
40221 fi
40222
40223 COND_MONOLITHIC_0="#"
40224 if test "x$MONOLITHIC" = "x0" ; then
40225 COND_MONOLITHIC_0=""
40226 fi
40227
40228 COND_MONOLITHIC_0_SHARED_0="#"
40229 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40230 COND_MONOLITHIC_0_SHARED_0=""
40231 fi
40232
40233 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40234 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40235 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40236 fi
40237
40238 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40239 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40240 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40241 fi
40242
40243 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40244 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40245 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40246 fi
40247
40248 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40249 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40250 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40251 fi
40252
40253 COND_MONOLITHIC_0_SHARED_1="#"
40254 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40255 COND_MONOLITHIC_0_SHARED_1=""
40256 fi
40257
40258 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40259 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40260 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40261 fi
40262
40263 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40264 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40265 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40266 fi
40267
40268 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40269 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40270 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40271 fi
40272
40273 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40274 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40275 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40276 fi
40277
40278 COND_MONOLITHIC_0_USE_ODBC_1="#"
40279 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40280 COND_MONOLITHIC_0_USE_ODBC_1=""
40281 fi
40282
40283 COND_MONOLITHIC_1="#"
40284 if test "x$MONOLITHIC" = "x1" ; then
40285 COND_MONOLITHIC_1=""
40286 fi
40287
40288 COND_MONOLITHIC_1_SHARED_0="#"
40289 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40290 COND_MONOLITHIC_1_SHARED_0=""
40291 fi
40292
40293 COND_MONOLITHIC_1_SHARED_1="#"
40294 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40295 COND_MONOLITHIC_1_SHARED_1=""
40296 fi
40297
40298 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40299 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40300 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40301 fi
40302
40303 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40304 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40305 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40306 fi
40307
40308 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40309 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40310 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40311 fi
40312
40313 COND_PLATFORM_MACOSX_1="#"
40314 if test "x$PLATFORM_MACOSX" = "x1" ; then
40315 COND_PLATFORM_MACOSX_1=""
40316 fi
40317
40318 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40319 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40320 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40321 fi
40322
40323 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40324 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40325 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40326 fi
40327
40328 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40329 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40330 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40331 fi
40332
40333 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40334 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40335 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40336 fi
40337
40338 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40339 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40340 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40341 fi
40342
40343 COND_PLATFORM_MAC_1="#"
40344 if test "x$PLATFORM_MAC" = "x1" ; then
40345 COND_PLATFORM_MAC_1=""
40346 fi
40347
40348 COND_PLATFORM_OS2_1="#"
40349 if test "x$PLATFORM_OS2" = "x1" ; then
40350 COND_PLATFORM_OS2_1=""
40351 fi
40352
40353 COND_PLATFORM_UNIX_0="#"
40354 if test "x$PLATFORM_UNIX" = "x0" ; then
40355 COND_PLATFORM_UNIX_0=""
40356 fi
40357
40358 COND_PLATFORM_UNIX_1="#"
40359 if test "x$PLATFORM_UNIX" = "x1" ; then
40360 COND_PLATFORM_UNIX_1=""
40361 fi
40362
40363 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40364 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40365 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40366 fi
40367
40368 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40369 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40370 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40371 fi
40372
40373 COND_PLATFORM_WIN32_0="#"
40374 if test "x$PLATFORM_WIN32" = "x0" ; then
40375 COND_PLATFORM_WIN32_0=""
40376 fi
40377
40378 COND_PLATFORM_WIN32_1="#"
40379 if test "x$PLATFORM_WIN32" = "x1" ; then
40380 COND_PLATFORM_WIN32_1=""
40381 fi
40382
40383 COND_SHARED_0="#"
40384 if test "x$SHARED" = "x0" ; then
40385 COND_SHARED_0=""
40386 fi
40387
40388 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40389 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40390 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40391 fi
40392
40393 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40394 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40395 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40396 fi
40397
40398 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40399 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40400 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40401 fi
40402
40403 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40404 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40405 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40406 fi
40407
40408 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40409 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40410 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40411 fi
40412
40413 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40414 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40415 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40416 fi
40417
40418 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40419 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40420 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40421 fi
40422
40423 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40424 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40425 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40426 fi
40427
40428 COND_SHARED_1="#"
40429 if test "x$SHARED" = "x1" ; then
40430 COND_SHARED_1=""
40431 fi
40432
40433 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40434 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40435 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40436 fi
40437
40438 COND_TOOLKIT_COCOA="#"
40439 if test "x$TOOLKIT" = "xCOCOA" ; then
40440 COND_TOOLKIT_COCOA=""
40441 fi
40442
40443 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40444 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40445 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40446 fi
40447
40448 COND_TOOLKIT_GTK="#"
40449 if test "x$TOOLKIT" = "xGTK" ; then
40450 COND_TOOLKIT_GTK=""
40451 fi
40452
40453 COND_TOOLKIT_GTK_USE_GUI_1="#"
40454 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40455 COND_TOOLKIT_GTK_USE_GUI_1=""
40456 fi
40457
40458 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40459 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40460 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40461 fi
40462
40463 COND_TOOLKIT_MAC="#"
40464 if test "x$TOOLKIT" = "xMAC" ; then
40465 COND_TOOLKIT_MAC=""
40466 fi
40467
40468 COND_TOOLKIT_MAC_USE_GUI_1="#"
40469 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40470 COND_TOOLKIT_MAC_USE_GUI_1=""
40471 fi
40472
40473 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40474 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40475 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40476 fi
40477
40478 COND_TOOLKIT_MGL="#"
40479 if test "x$TOOLKIT" = "xMGL" ; then
40480 COND_TOOLKIT_MGL=""
40481 fi
40482
40483 COND_TOOLKIT_MGL_USE_GUI_1="#"
40484 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40485 COND_TOOLKIT_MGL_USE_GUI_1=""
40486 fi
40487
40488 COND_TOOLKIT_MOTIF="#"
40489 if test "x$TOOLKIT" = "xMOTIF" ; then
40490 COND_TOOLKIT_MOTIF=""
40491 fi
40492
40493 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40494 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40495 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40496 fi
40497
40498 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40499 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40500 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40501 fi
40502
40503 COND_TOOLKIT_MSW="#"
40504 if test "x$TOOLKIT" = "xMSW" ; then
40505 COND_TOOLKIT_MSW=""
40506 fi
40507
40508 COND_TOOLKIT_MSW_USE_GUI_1="#"
40509 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40510 COND_TOOLKIT_MSW_USE_GUI_1=""
40511 fi
40512
40513 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40514 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40515 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40516 fi
40517
40518 COND_TOOLKIT_PM="#"
40519 if test "x$TOOLKIT" = "xPM" ; then
40520 COND_TOOLKIT_PM=""
40521 fi
40522
40523 COND_TOOLKIT_PM_USE_GUI_1="#"
40524 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40525 COND_TOOLKIT_PM_USE_GUI_1=""
40526 fi
40527
40528 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40529 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40530 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40531 fi
40532
40533 COND_TOOLKIT_WINCE="#"
40534 if test "x$TOOLKIT" = "xWINCE" ; then
40535 COND_TOOLKIT_WINCE=""
40536 fi
40537
40538 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40539 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40540 COND_TOOLKIT_WINCE_USE_GUI_1=""
40541 fi
40542
40543 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40544 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40545 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40546 fi
40547
40548 COND_TOOLKIT_X11="#"
40549 if test "x$TOOLKIT" = "xX11" ; then
40550 COND_TOOLKIT_X11=""
40551 fi
40552
40553 COND_TOOLKIT_X11_USE_GUI_1="#"
40554 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40555 COND_TOOLKIT_X11_USE_GUI_1=""
40556 fi
40557
40558 COND_UNICODE_1="#"
40559 if test "x$UNICODE" = "x1" ; then
40560 COND_UNICODE_1=""
40561 fi
40562
40563 COND_USE_EXCEPTIONS_0="#"
40564 if test "x$USE_EXCEPTIONS" = "x0" ; then
40565 COND_USE_EXCEPTIONS_0=""
40566 fi
40567
40568 COND_USE_EXCEPTIONS_1="#"
40569 if test "x$USE_EXCEPTIONS" = "x1" ; then
40570 COND_USE_EXCEPTIONS_1=""
40571 fi
40572
40573 COND_USE_GUI_0="#"
40574 if test "x$USE_GUI" = "x0" ; then
40575 COND_USE_GUI_0=""
40576 fi
40577
40578 COND_USE_GUI_1="#"
40579 if test "x$USE_GUI" = "x1" ; then
40580 COND_USE_GUI_1=""
40581 fi
40582
40583 COND_USE_GUI_1_WXUNIV_0="#"
40584 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40585 COND_USE_GUI_1_WXUNIV_0=""
40586 fi
40587
40588 COND_USE_GUI_1_WXUNIV_1="#"
40589 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40590 COND_USE_GUI_1_WXUNIV_1=""
40591 fi
40592
40593 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40594 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40595 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40596 fi
40597
40598 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40599 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40600 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40601 fi
40602
40603 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40604 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40605 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40606 fi
40607
40608 COND_USE_ODBC_1="#"
40609 if test "x$USE_ODBC" = "x1" ; then
40610 COND_USE_ODBC_1=""
40611 fi
40612
40613 COND_USE_PLUGINS_0="#"
40614 if test "x$USE_PLUGINS" = "x0" ; then
40615 COND_USE_PLUGINS_0=""
40616 fi
40617
40618 COND_USE_SOSYMLINKS_1="#"
40619 if test "x$USE_SOSYMLINKS" = "x1" ; then
40620 COND_USE_SOSYMLINKS_1=""
40621 fi
40622
40623 COND_USE_SOVERLINUX_1="#"
40624 if test "x$USE_SOVERLINUX" = "x1" ; then
40625 COND_USE_SOVERLINUX_1=""
40626 fi
40627
40628 COND_USE_SOVERSION_0="#"
40629 if test "x$USE_SOVERSION" = "x0" ; then
40630 COND_USE_SOVERSION_0=""
40631 fi
40632
40633 COND_USE_SOVERSOLARIS_1="#"
40634 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40635 COND_USE_SOVERSOLARIS_1=""
40636 fi
40637
40638 COND_WITH_PLUGIN_SDL_1="#"
40639 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40640 COND_WITH_PLUGIN_SDL_1=""
40641 fi
40642
40643 COND_WXUNIV_1="#"
40644 if test "x$WXUNIV" = "x1" ; then
40645 COND_WXUNIV_1=""
40646 fi
40647
40648 COND_WXUSE_EXPAT_BUILTIN="#"
40649 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40650 COND_WXUSE_EXPAT_BUILTIN=""
40651 fi
40652
40653 COND_WXUSE_LIBJPEG_BUILTIN="#"
40654 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40655 COND_WXUSE_LIBJPEG_BUILTIN=""
40656 fi
40657
40658 COND_WXUSE_LIBPNG_BUILTIN="#"
40659 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40660 COND_WXUSE_LIBPNG_BUILTIN=""
40661 fi
40662
40663 COND_WXUSE_LIBTIFF_BUILTIN="#"
40664 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40665 COND_WXUSE_LIBTIFF_BUILTIN=""
40666 fi
40667
40668 COND_WXUSE_ODBC_BUILTIN="#"
40669 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40670 COND_WXUSE_ODBC_BUILTIN=""
40671 fi
40672
40673 COND_WXUSE_REGEX_BUILTIN="#"
40674 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40675 COND_WXUSE_REGEX_BUILTIN=""
40676 fi
40677
40678 COND_WXUSE_ZLIB_BUILTIN="#"
40679 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40680 COND_WXUSE_ZLIB_BUILTIN=""
40681 fi
40682
a848cd7e
SC
40683
40684
2057db16
VS
40685 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40686 { { 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
40687echo "$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;}
40688 { (exit 1); exit 1; }; }
40689 fi
40690
a848cd7e
SC
40691
40692
74b84332 40693GCC_PRAGMA_FLAGS=""
a848cd7e 40694if test $GCC_PCH = 1 ; then
74b84332 40695 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40696else
40697 case "${host}" in
40698 powerpc-*-darwin* )
74b84332 40699 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40700 ;;
bea8e651 40701 *-*-mingw32* )
1f344abf
VS
40702 if test "$wxUSE_STL" = "yes" -o \
40703 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40704 "$wxUSE_NO_RTTI" != "yes"; then
40705 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40706echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40707 cat >conftest.$ac_ext <<_ACEOF
40708/* confdefs.h. */
40709_ACEOF
40710cat confdefs.h >>conftest.$ac_ext
40711cat >>conftest.$ac_ext <<_ACEOF
40712/* end confdefs.h. */
40713
40714int
40715main ()
40716{
1f344abf 40717#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40718 #error "Not GCC 3.2 or greater"
40719 #endif
40720
40721 ;
40722 return 0;
40723}
40724_ACEOF
40725rm -f conftest.$ac_objext
40726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40727 (eval $ac_compile) 2>conftest.er1
bea8e651 40728 ac_status=$?
ac1cb8d3
VS
40729 grep -v '^ *+' conftest.er1 >conftest.err
40730 rm -f conftest.er1
40731 cat conftest.err >&5
bea8e651
MB
40732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40733 (exit $ac_status); } &&
4d4ff94c 40734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40736 (eval $ac_try) 2>&5
40737 ac_status=$?
40738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739 (exit $ac_status); }; } &&
40740 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40742 (eval $ac_try) 2>&5
40743 ac_status=$?
40744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745 (exit $ac_status); }; }; then
74b84332 40746 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40747 echo "$as_me:$LINENO: result: yes" >&5
40748echo "${ECHO_T}yes" >&6
40749else
40750 echo "$as_me: failed program was:" >&5
40751sed 's/^/| /' conftest.$ac_ext >&5
40752
40753echo "$as_me:$LINENO: result: no" >&5
40754echo "${ECHO_T}no" >&6
40755fi
ac1cb8d3 40756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40757 fi
40758 ;;
a848cd7e
SC
40759 esac
40760fi
74b84332 40761CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40762
40763
40764SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
74b84332 40863
a848cd7e
SC
40864
40865
40866echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40867echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40868set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40869if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40870 echo $ECHO_N "(cached) $ECHO_C" >&6
40871else
40872 cat >conftest.make <<\_ACEOF
40873all:
40874 @echo 'ac_maketemp="$(MAKE)"'
40875_ACEOF
40876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40877eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40878if test -n "$ac_maketemp"; then
40879 eval ac_cv_prog_make_${ac_make}_set=yes
40880else
40881 eval ac_cv_prog_make_${ac_make}_set=no
40882fi
40883rm -f conftest.make
40884fi
40885if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40886 echo "$as_me:$LINENO: result: yes" >&5
40887echo "${ECHO_T}yes" >&6
40888 SET_MAKE=
40889else
40890 echo "$as_me:$LINENO: result: no" >&5
40891echo "${ECHO_T}no" >&6
40892 SET_MAKE="MAKE=${MAKE-make}"
40893fi
40894
40895
40896if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
40897 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
40898fi
40899
40900 ac_config_headers="$ac_config_headers setup.h"
40901
40902
8708fa76 40903 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
40904
40905
40906 ac_config_commands="$ac_config_commands default"
40907
40908
40909
40910if test "$wxUSE_GUI" = "yes"; then
40911 SUBDIRS="samples demos utils contrib"
40912else SUBDIRS="samples utils"
40913fi
40914
40915
40916
40917# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
40918if test "${with_cppunit_prefix+set}" = set; then
40919 withval="$with_cppunit_prefix"
40920 cppunit_config_prefix="$withval"
40921else
40922 cppunit_config_prefix=""
40923fi;
40924
40925# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
40926if test "${with_cppunit_exec_prefix+set}" = set; then
40927 withval="$with_cppunit_exec_prefix"
40928 cppunit_config_exec_prefix="$withval"
40929else
40930 cppunit_config_exec_prefix=""
40931fi;
40932
40933 if test x$cppunit_config_exec_prefix != x ; then
40934 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
40935 if test x${CPPUNIT_CONFIG+set} != xset ; then
40936 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
40937 fi
40938 fi
40939 if test x$cppunit_config_prefix != x ; then
40940 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
40941 if test x${CPPUNIT_CONFIG+set} != xset ; then
40942 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
40943 fi
40944 fi
40945
40946 # Extract the first word of "cppunit-config", so it can be a program name with args.
40947set dummy cppunit-config; ac_word=$2
40948echo "$as_me:$LINENO: checking for $ac_word" >&5
40949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40950if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
40951 echo $ECHO_N "(cached) $ECHO_C" >&6
40952else
40953 case $CPPUNIT_CONFIG in
40954 [\\/]* | ?:[\\/]*)
40955 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
40956 ;;
40957 *)
40958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40959for as_dir in $PATH
40960do
40961 IFS=$as_save_IFS
40962 test -z "$as_dir" && as_dir=.
40963 for ac_exec_ext in '' $ac_executable_extensions; do
40964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40965 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40967 break 2
40968 fi
40969done
40970done
40971
40972 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
40973 ;;
40974esac
40975fi
40976CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
40977
40978if test -n "$CPPUNIT_CONFIG"; then
40979 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
40980echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
40981else
40982 echo "$as_me:$LINENO: result: no" >&5
40983echo "${ECHO_T}no" >&6
40984fi
40985
40986 cppunit_version_min=1.8.0
40987
40988 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
40989echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
40990 no_cppunit=""
40991 if test "$CPPUNIT_CONFIG" = "no" ; then
40992 no_cppunit=yes
40993 else
40994 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
40995 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
40996 cppunit_version=`$CPPUNIT_CONFIG --version`
40997
40998 cppunit_major_version=`echo $cppunit_version | \
40999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41000 cppunit_minor_version=`echo $cppunit_version | \
41001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41002 cppunit_micro_version=`echo $cppunit_version | \
41003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41004
41005 cppunit_major_min=`echo $cppunit_version_min | \
41006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41007 cppunit_minor_min=`echo $cppunit_version_min | \
41008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41009 cppunit_micro_min=`echo $cppunit_version_min | \
41010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41011
41012 cppunit_version_proper=`expr \
41013 $cppunit_major_version \> $cppunit_major_min \| \
41014 $cppunit_major_version \= $cppunit_major_min \& \
41015 $cppunit_minor_version \> $cppunit_minor_min \| \
41016 $cppunit_major_version \= $cppunit_major_min \& \
41017 $cppunit_minor_version \= $cppunit_minor_min \& \
41018 $cppunit_micro_version \>= $cppunit_micro_min `
41019
41020 if test "$cppunit_version_proper" = "1" ; then
41021 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41022echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41023 else
41024 echo "$as_me:$LINENO: result: no" >&5
41025echo "${ECHO_T}no" >&6
41026 no_cppunit=yes
41027 fi
41028 fi
41029
41030 if test "x$no_cppunit" = x ; then
c2218763 41031 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41032 else
41033 CPPUNIT_CFLAGS=""
41034 CPPUNIT_LIBS=""
c2218763 41035 :
a848cd7e
SC
41036 fi
41037
41038
41039
41040
41041
41042for subdir in `echo $SUBDIRS`; do
41043 if test -d ${srcdir}/${subdir} ; then
41044 if test "$wxUSE_GUI" = "yes"; then
41045 if test ${subdir} = "samples"; then
41046 makefiles="samples/Makefile.in $makefiles"
41047 for sample in `echo $SAMPLES_SUBDIRS`; do
41048 if test -d $srcdir/samples/$sample; then
41049 makefiles="samples/$sample/Makefile.in $makefiles"
41050 fi
41051 done
41052 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41053 fi
41054 else if test ${subdir} = "samples"; then
41055 makefiles="samples/Makefile.in samples/console/Makefile.in"
41056 elif test ${subdir} = "utils"; then
41057 makefiles="utils/HelpGen/Makefile.in \
41058 utils/HelpGen/src/Makefile.in \
41059 utils/tex2rtf/Makefile.in \
41060 utils/tex2rtf/src/Makefile.in"
41061 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41062 fi
41063 fi
41064
41065 for mkin in $makefiles ; do
41066 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41067 ac_config_files="$ac_config_files $mk"
41068
41069 done
41070 fi
41071done
41072
41073
41074cat >confcache <<\_ACEOF
41075# This file is a shell script that caches the results of configure
41076# tests run on this system so they can be shared between configure
41077# scripts and configure runs, see configure's option --config-cache.
41078# It is not useful on other systems. If it contains results you don't
41079# want to keep, you may remove or edit it.
41080#
41081# config.status only pays attention to the cache file if you give it
41082# the --recheck option to rerun configure.
41083#
41084# `ac_cv_env_foo' variables (set or unset) will be overridden when
41085# loading this file, other *unset* `ac_cv_foo' will be assigned the
41086# following values.
41087
41088_ACEOF
41089
41090# The following way of writing the cache mishandles newlines in values,
41091# but we know of no workaround that is simple, portable, and efficient.
41092# So, don't put newlines in cache variables' values.
41093# Ultrix sh set writes to stderr and can't be redirected directly,
41094# and sets the high bit in the cache file unless we assign to the vars.
41095{
41096 (set) 2>&1 |
41097 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41098 *ac_space=\ *)
41099 # `set' does not quote correctly, so add quotes (double-quote
41100 # substitution turns \\\\ into \\, and sed turns \\ into \).
41101 sed -n \
ac1cb8d3
VS
41102 "s/'/'\\\\''/g;
41103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41104 ;;
41105 *)
41106 # `set' quotes correctly as required by POSIX, so do not add quotes.
41107 sed -n \
ac1cb8d3 41108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41109 ;;
41110 esac;
41111} |
41112 sed '
41113 t clear
41114 : clear
41115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41116 t end
41117 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41118 : end' >>confcache
41119if diff $cache_file confcache >/dev/null 2>&1; then :; else
41120 if test -w $cache_file; then
41121 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41122 cat confcache >$cache_file
41123 else
41124 echo "not updating unwritable cache $cache_file"
41125 fi
41126fi
41127rm -f confcache
41128
41129test "x$prefix" = xNONE && prefix=$ac_default_prefix
41130# Let make expand exec_prefix.
41131test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41132
41133# VPATH may cause trouble with some makes, so we remove $(srcdir),
41134# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41135# trailing colons and then remove the whole line if VPATH becomes empty
41136# (actually we leave an empty line to preserve line numbers).
41137if test "x$srcdir" = x.; then
ac1cb8d3 41138 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41139s/:*\$(srcdir):*/:/;
41140s/:*\${srcdir}:*/:/;
41141s/:*@srcdir@:*/:/;
ac1cb8d3 41142s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41143s/:*$//;
ac1cb8d3 41144s/^[^=]*=[ ]*$//;
a848cd7e
SC
41145}'
41146fi
41147
41148DEFS=-DHAVE_CONFIG_H
41149
41150ac_libobjs=
41151ac_ltlibobjs=
41152for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41153 # 1. Remove the extension, and $U if already installed.
41154 ac_i=`echo "$ac_i" |
ac1cb8d3 41155 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41156 # 2. Add them.
41157 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41158 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41159done
41160LIBOBJS=$ac_libobjs
41161
41162LTLIBOBJS=$ac_ltlibobjs
41163
41164
41165
41166: ${CONFIG_STATUS=./config.status}
41167ac_clean_files_save=$ac_clean_files
41168ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41169{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41170echo "$as_me: creating $CONFIG_STATUS" >&6;}
41171cat >$CONFIG_STATUS <<_ACEOF
41172#! $SHELL
41173# Generated by $as_me.
41174# Run this file to recreate the current configuration.
41175# Compiler output produced by configure, useful for debugging
41176# configure, is in config.log if it exists.
41177
41178debug=false
41179ac_cs_recheck=false
41180ac_cs_silent=false
41181SHELL=\${CONFIG_SHELL-$SHELL}
41182_ACEOF
41183
41184cat >>$CONFIG_STATUS <<\_ACEOF
41185## --------------------- ##
41186## M4sh Initialization. ##
41187## --------------------- ##
41188
41189# Be Bourne compatible
41190if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41191 emulate sh
41192 NULLCMD=:
41193 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41194 # is contrary to our usage. Disable this feature.
41195 alias -g '${1+"$@"}'='"$@"'
41196elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41197 set -o posix
41198fi
ac1cb8d3 41199DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41200
41201# Support unset when possible.
ac1cb8d3 41202if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41203 as_unset=unset
41204else
41205 as_unset=false
41206fi
41207
41208
41209# Work around bugs in pre-3.0 UWIN ksh.
41210$as_unset ENV MAIL MAILPATH
41211PS1='$ '
41212PS2='> '
41213PS4='+ '
41214
41215# NLS nuisances.
41216for as_var in \
41217 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41218 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41219 LC_TELEPHONE LC_TIME
41220do
ac1cb8d3 41221 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41222 eval $as_var=C; export $as_var
41223 else
41224 $as_unset $as_var
41225 fi
41226done
41227
41228# Required to use basename.
41229if expr a : '\(a\)' >/dev/null 2>&1; then
41230 as_expr=expr
41231else
41232 as_expr=false
41233fi
41234
41235if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41236 as_basename=basename
41237else
41238 as_basename=false
41239fi
41240
41241
41242# Name of the executable.
41243as_me=`$as_basename "$0" ||
41244$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41245 X"$0" : 'X\(//\)$' \| \
41246 X"$0" : 'X\(/\)$' \| \
41247 . : '\(.\)' 2>/dev/null ||
41248echo X/"$0" |
41249 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41250 /^X\/\(\/\/\)$/{ s//\1/; q; }
41251 /^X\/\(\/\).*/{ s//\1/; q; }
41252 s/.*/./; q'`
41253
41254
41255# PATH needs CR, and LINENO needs CR and PATH.
41256# Avoid depending upon Character Ranges.
41257as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41259as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41260as_cr_digits='0123456789'
41261as_cr_alnum=$as_cr_Letters$as_cr_digits
41262
41263# The user is always right.
41264if test "${PATH_SEPARATOR+set}" != set; then
41265 echo "#! /bin/sh" >conf$$.sh
41266 echo "exit 0" >>conf$$.sh
41267 chmod +x conf$$.sh
41268 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41269 PATH_SEPARATOR=';'
41270 else
41271 PATH_SEPARATOR=:
41272 fi
41273 rm -f conf$$.sh
41274fi
41275
41276
41277 as_lineno_1=$LINENO
41278 as_lineno_2=$LINENO
41279 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41280 test "x$as_lineno_1" != "x$as_lineno_2" &&
41281 test "x$as_lineno_3" = "x$as_lineno_2" || {
41282 # Find who we are. Look in the path if we contain no path at all
41283 # relative or not.
41284 case $0 in
41285 *[\\/]* ) as_myself=$0 ;;
41286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41287for as_dir in $PATH
41288do
41289 IFS=$as_save_IFS
41290 test -z "$as_dir" && as_dir=.
41291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41292done
41293
41294 ;;
41295 esac
41296 # We did not find ourselves, most probably we were run as `sh COMMAND'
41297 # in which case we are not to be found in the path.
41298 if test "x$as_myself" = x; then
41299 as_myself=$0
41300 fi
41301 if test ! -f "$as_myself"; then
41302 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41303echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41304 { (exit 1); exit 1; }; }
41305 fi
41306 case $CONFIG_SHELL in
41307 '')
41308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41309for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41310do
41311 IFS=$as_save_IFS
41312 test -z "$as_dir" && as_dir=.
41313 for as_base in sh bash ksh sh5; do
41314 case $as_dir in
41315 /*)
41316 if ("$as_dir/$as_base" -c '
41317 as_lineno_1=$LINENO
41318 as_lineno_2=$LINENO
41319 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41320 test "x$as_lineno_1" != "x$as_lineno_2" &&
41321 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41322 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41323 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41324 CONFIG_SHELL=$as_dir/$as_base
41325 export CONFIG_SHELL
41326 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41327 fi;;
41328 esac
41329 done
41330done
41331;;
41332 esac
41333
41334 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41335 # uniformly replaced by the line number. The first 'sed' inserts a
41336 # line-number line before each line; the second 'sed' does the real
41337 # work. The second script uses 'N' to pair each line-number line
41338 # with the numbered line, and appends trailing '-' during
41339 # substitution so that $LINENO is not a special case at line end.
41340 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41341 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41342 sed '=' <$as_myself |
41343 sed '
41344 N
41345 s,$,-,
41346 : loop
41347 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41348 t loop
41349 s,-$,,
41350 s,^['$as_cr_digits']*\n,,
41351 ' >$as_me.lineno &&
41352 chmod +x $as_me.lineno ||
41353 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41354echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41355 { (exit 1); exit 1; }; }
41356
41357 # Don't try to exec as it changes $[0], causing all sort of problems
41358 # (the dirname of $[0] is not the place where we might find the
41359 # original and so on. Autoconf is especially sensible to this).
41360 . ./$as_me.lineno
41361 # Exit status is that of the last command.
41362 exit
41363}
41364
41365
41366case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41367 *c*,-n*) ECHO_N= ECHO_C='
41368' ECHO_T=' ' ;;
41369 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41370 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41371esac
41372
41373if expr a : '\(a\)' >/dev/null 2>&1; then
41374 as_expr=expr
41375else
41376 as_expr=false
41377fi
41378
41379rm -f conf$$ conf$$.exe conf$$.file
41380echo >conf$$.file
41381if ln -s conf$$.file conf$$ 2>/dev/null; then
41382 # We could just check for DJGPP; but this test a) works b) is more generic
41383 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41384 if test -f conf$$.exe; then
41385 # Don't use ln at all; we don't have any links
41386 as_ln_s='cp -p'
41387 else
41388 as_ln_s='ln -s'
41389 fi
41390elif ln conf$$.file conf$$ 2>/dev/null; then
41391 as_ln_s=ln
41392else
41393 as_ln_s='cp -p'
41394fi
41395rm -f conf$$ conf$$.exe conf$$.file
41396
41397if mkdir -p . 2>/dev/null; then
41398 as_mkdir_p=:
41399else
ac1cb8d3 41400 test -d ./-p && rmdir ./-p
a848cd7e
SC
41401 as_mkdir_p=false
41402fi
41403
41404as_executable_p="test -f"
41405
41406# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41407as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41408
41409# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41410as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41411
41412
41413# IFS
41414# We need space, tab and new line, in precisely that order.
41415as_nl='
41416'
41417IFS=" $as_nl"
41418
41419# CDPATH.
41420$as_unset CDPATH
41421
41422exec 6>&1
41423
41424# Open the log real soon, to keep \$[0] and so on meaningful, and to
41425# report actual input values of CONFIG_FILES etc. instead of their
41426# values after options handling. Logging --version etc. is OK.
41427exec 5>>config.log
41428{
41429 echo
41430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41431## Running $as_me. ##
41432_ASBOX
41433} >&5
41434cat >&5 <<_CSEOF
41435
77ffb593 41436This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41437generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41438
41439 CONFIG_FILES = $CONFIG_FILES
41440 CONFIG_HEADERS = $CONFIG_HEADERS
41441 CONFIG_LINKS = $CONFIG_LINKS
41442 CONFIG_COMMANDS = $CONFIG_COMMANDS
41443 $ $0 $@
41444
41445_CSEOF
41446echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41447echo >&5
41448_ACEOF
41449
41450# Files that config.status was made for.
41451if test -n "$ac_config_files"; then
41452 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41453fi
41454
41455if test -n "$ac_config_headers"; then
41456 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41457fi
41458
41459if test -n "$ac_config_links"; then
41460 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41461fi
41462
41463if test -n "$ac_config_commands"; then
41464 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41465fi
41466
41467cat >>$CONFIG_STATUS <<\_ACEOF
41468
41469ac_cs_usage="\
41470\`$as_me' instantiates files from templates according to the
41471current configuration.
41472
41473Usage: $0 [OPTIONS] [FILE]...
41474
41475 -h, --help print this help, then exit
41476 -V, --version print version number, then exit
41477 -q, --quiet do not print progress messages
41478 -d, --debug don't remove temporary files
41479 --recheck update $as_me by reconfiguring in the same conditions
41480 --file=FILE[:TEMPLATE]
ac1cb8d3 41481 instantiate the configuration file FILE
a848cd7e 41482 --header=FILE[:TEMPLATE]
ac1cb8d3 41483 instantiate the configuration header FILE
a848cd7e
SC
41484
41485Configuration files:
41486$config_files
41487
41488Configuration headers:
41489$config_headers
41490
41491Configuration commands:
41492$config_commands
41493
41494Report bugs to <bug-autoconf@gnu.org>."
41495_ACEOF
41496
41497cat >>$CONFIG_STATUS <<_ACEOF
41498ac_cs_version="\\
77ffb593 41499wxWidgets config.status 2.5.2
ac1cb8d3 41500configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41501 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41502
ac1cb8d3 41503Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41504This config.status script is free software; the Free Software Foundation
41505gives unlimited permission to copy, distribute and modify it."
41506srcdir=$srcdir
41507INSTALL="$INSTALL"
41508_ACEOF
41509
41510cat >>$CONFIG_STATUS <<\_ACEOF
41511# If no file are specified by the user, then we need to provide default
41512# value. By we need to know if files were specified by the user.
41513ac_need_defaults=:
41514while test $# != 0
41515do
41516 case $1 in
41517 --*=*)
41518 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41519 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41520 ac_shift=:
41521 ;;
41522 -*)
41523 ac_option=$1
41524 ac_optarg=$2
41525 ac_shift=shift
41526 ;;
41527 *) # This is not an option, so the user has probably given explicit
41528 # arguments.
41529 ac_option=$1
41530 ac_need_defaults=false;;
41531 esac
41532
41533 case $ac_option in
41534 # Handling of the options.
41535_ACEOF
41536cat >>$CONFIG_STATUS <<\_ACEOF
41537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41538 ac_cs_recheck=: ;;
41539 --version | --vers* | -V )
41540 echo "$ac_cs_version"; exit 0 ;;
41541 --he | --h)
41542 # Conflict between --help and --header
41543 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41544Try \`$0 --help' for more information." >&5
41545echo "$as_me: error: ambiguous option: $1
41546Try \`$0 --help' for more information." >&2;}
41547 { (exit 1); exit 1; }; };;
41548 --help | --hel | -h )
41549 echo "$ac_cs_usage"; exit 0 ;;
41550 --debug | --d* | -d )
41551 debug=: ;;
41552 --file | --fil | --fi | --f )
41553 $ac_shift
41554 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41555 ac_need_defaults=false;;
41556 --header | --heade | --head | --hea )
41557 $ac_shift
41558 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41559 ac_need_defaults=false;;
41560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41562 ac_cs_silent=: ;;
41563
41564 # This is an error.
41565 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41566Try \`$0 --help' for more information." >&5
41567echo "$as_me: error: unrecognized option: $1
41568Try \`$0 --help' for more information." >&2;}
41569 { (exit 1); exit 1; }; } ;;
41570
41571 *) ac_config_targets="$ac_config_targets $1" ;;
41572
41573 esac
41574 shift
41575done
41576
41577ac_configure_extra_args=
41578
41579if $ac_cs_silent; then
41580 exec 6>/dev/null
41581 ac_configure_extra_args="$ac_configure_extra_args --silent"
41582fi
41583
41584_ACEOF
41585cat >>$CONFIG_STATUS <<_ACEOF
41586if \$ac_cs_recheck; then
41587 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41588 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41589fi
41590
41591_ACEOF
41592
41593cat >>$CONFIG_STATUS <<_ACEOF
41594#
41595# INIT-COMMANDS section.
41596#
41597
41598
41599 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41600 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
4b167aca 41601 WX_RELEASE="${WX_RELEASE}"
a848cd7e
SC
41602 LN_S="${LN_S}"
41603
41604
41605
41606_ACEOF
41607
41608
41609
41610cat >>$CONFIG_STATUS <<\_ACEOF
41611for ac_config_target in $ac_config_targets
41612do
41613 case "$ac_config_target" in
41614 # Handling of arguments.
41615 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41616 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41617 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41618 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41619 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41620 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41621 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41622 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41623echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41624 { (exit 1); exit 1; }; };;
41625 esac
41626done
41627
41628# If the user did not use the arguments to specify the items to instantiate,
41629# then the envvar interface is used. Set only those that are not.
41630# We use the long form for the default assignment because of an extremely
41631# bizarre bug on SunOS 4.1.3.
41632if $ac_need_defaults; then
41633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41635 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41636fi
41637
41638# Have a temporary directory for convenience. Make it in the build tree
41639# simply because there is no reason to put it here, and in addition,
41640# creating and moving files from /tmp can sometimes cause problems.
41641# Create a temporary directory, and hook for its removal unless debugging.
41642$debug ||
41643{
41644 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41645 trap '{ (exit 1); exit 1; }' 1 2 13 15
41646}
41647
41648# Create a (secure) tmp directory for tmp files.
41649
41650{
41651 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41652 test -n "$tmp" && test -d "$tmp"
41653} ||
41654{
41655 tmp=./confstat$$-$RANDOM
41656 (umask 077 && mkdir $tmp)
41657} ||
41658{
41659 echo "$me: cannot create a temporary directory in ." >&2
41660 { (exit 1); exit 1; }
41661}
41662
41663_ACEOF
41664
41665cat >>$CONFIG_STATUS <<_ACEOF
41666
41667#
41668# CONFIG_FILES section.
41669#
41670
41671# No need to generate the scripts if there are no CONFIG_FILES.
41672# This happens for instance when ./config.status config.h
41673if test -n "\$CONFIG_FILES"; then
41674 # Protect against being on the right side of a sed subst in config.status.
41675 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41676 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41677s,@SHELL@,$SHELL,;t t
41678s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41679s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41680s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41681s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41682s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41683s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41684s,@exec_prefix@,$exec_prefix,;t t
41685s,@prefix@,$prefix,;t t
41686s,@program_transform_name@,$program_transform_name,;t t
41687s,@bindir@,$bindir,;t t
41688s,@sbindir@,$sbindir,;t t
41689s,@libexecdir@,$libexecdir,;t t
41690s,@datadir@,$datadir,;t t
41691s,@sysconfdir@,$sysconfdir,;t t
41692s,@sharedstatedir@,$sharedstatedir,;t t
41693s,@localstatedir@,$localstatedir,;t t
41694s,@libdir@,$libdir,;t t
41695s,@includedir@,$includedir,;t t
41696s,@oldincludedir@,$oldincludedir,;t t
41697s,@infodir@,$infodir,;t t
41698s,@mandir@,$mandir,;t t
41699s,@build_alias@,$build_alias,;t t
41700s,@host_alias@,$host_alias,;t t
41701s,@target_alias@,$target_alias,;t t
41702s,@DEFS@,$DEFS,;t t
41703s,@ECHO_C@,$ECHO_C,;t t
41704s,@ECHO_N@,$ECHO_N,;t t
41705s,@ECHO_T@,$ECHO_T,;t t
41706s,@LIBS@,$LIBS,;t t
41707s,@build@,$build,;t t
41708s,@build_cpu@,$build_cpu,;t t
41709s,@build_vendor@,$build_vendor,;t t
41710s,@build_os@,$build_os,;t t
41711s,@host@,$host,;t t
41712s,@host_cpu@,$host_cpu,;t t
41713s,@host_vendor@,$host_vendor,;t t
41714s,@host_os@,$host_os,;t t
41715s,@target@,$target,;t t
41716s,@target_cpu@,$target_cpu,;t t
41717s,@target_vendor@,$target_vendor,;t t
41718s,@target_os@,$target_os,;t t
41719s,@CC@,$CC,;t t
41720s,@CFLAGS@,$CFLAGS,;t t
41721s,@LDFLAGS@,$LDFLAGS,;t t
41722s,@CPPFLAGS@,$CPPFLAGS,;t t
41723s,@ac_ct_CC@,$ac_ct_CC,;t t
41724s,@EXEEXT@,$EXEEXT,;t t
41725s,@OBJEXT@,$OBJEXT,;t t
41726s,@CPP@,$CPP,;t t
41727s,@EGREP@,$EGREP,;t t
41728s,@CXX@,$CXX,;t t
41729s,@CXXFLAGS@,$CXXFLAGS,;t t
41730s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41731s,@RANLIB@,$RANLIB,;t t
41732s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41733s,@AR@,$AR,;t t
41734s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41735s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41736s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41737s,@STRIP@,$STRIP,;t t
41738s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41739s,@LN_S@,$LN_S,;t t
41740s,@CXXCPP@,$CXXCPP,;t t
41741s,@subdirs@,$subdirs,;t t
41742s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41743s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41744s,@GTK_LIBS@,$GTK_LIBS,;t t
41745s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41746s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41747s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41748s,@X_CFLAGS@,$X_CFLAGS,;t t
41749s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41750s,@X_LIBS@,$X_LIBS,;t t
41751s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41752s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41753s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41754s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41755s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41756s,@RESCOMP@,$RESCOMP,;t t
41757s,@DEREZ@,$DEREZ,;t t
41758s,@SETFILE@,$SETFILE,;t t
41759s,@LIBICONV@,$LIBICONV,;t t
41760s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41761s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41762s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41763s,@SDL_LIBS@,$SDL_LIBS,;t t
41764s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41765s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41766s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41767s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41768s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41769s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41770s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41771s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41772s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41773s,@VENDOR@,$VENDOR,;t t
41774s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
41775s,@WXUNIV@,$WXUNIV,;t t
41776s,@MONOLITHIC@,$MONOLITHIC,;t t
41777s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41778s,@EXTRALIBS@,$EXTRALIBS,;t t
41779s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41780s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41781s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41782s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41783s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41784s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
41785s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
41786s,@UNICODE@,$UNICODE,;t t
41787s,@BUILD@,$BUILD,;t t
41788s,@DEBUG_INFO@,$DEBUG_INFO,;t t
41789s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
41790s,@SHARED@,$SHARED,;t t
41791s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
41792s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
41793s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
41794s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
41795s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
41796s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
41797s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
41798s,@SET_MAKE@,$SET_MAKE,;t t
41799s,@MAKE_SET@,$MAKE_SET,;t t
41800s,@ac_ct_AR@,$ac_ct_AR,;t t
41801s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41802s,@NM@,$NM,;t t
41803s,@ac_ct_NM@,$ac_ct_NM,;t t
41804s,@INSTALL_DIR@,$INSTALL_DIR,;t t
41805s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
41806s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
41807s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
41808s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
41809s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
41810s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
41811s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
41812s,@SO_SUFFIX@,$SO_SUFFIX,;t t
41813s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
41814s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
41815s,@LIBPREFIX@,$LIBPREFIX,;t t
41816s,@LIBEXT@,$LIBEXT,;t t
41817s,@DLLPREFIX@,$DLLPREFIX,;t t
41818s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
41819s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
41820s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
41821s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
41822s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
41823s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
41824s,@PIC_FLAG@,$PIC_FLAG,;t t
41825s,@USE_SOVERSION@,$USE_SOVERSION,;t t
41826s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
41827s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
41828s,@USE_MACVERSION@,$USE_MACVERSION,;t t
41829s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
41830s,@SONAME_FLAG@,$SONAME_FLAG,;t t
41831s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
41832s,@GCC_PCH@,$GCC_PCH,;t t
41833s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
41834s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
41835s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
41836s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
41837s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
41838s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
41839s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
41840s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
41841s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
41842s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
41843s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
41844s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
41845s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
41846s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
41847s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
41848s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
41849s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
41850s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
41851s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
41852s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
41853s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
41854s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
41855s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
41856s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
41857s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
41858s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
41859s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
41860s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
41861s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
41862s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
41863s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
41864s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
41865s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
41866s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
41867s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
41868s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
41869s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
41870s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
41871s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
41872s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
41873s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
41874s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
41875s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
41876s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
41877s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
41878s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
41879s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
41880s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
41881s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
41882s,@COND_SHARED_0@,$COND_SHARED_0,;t t
41883s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
41884s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41885s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41886s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41887s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
41888s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
41889s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
41890s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
41891s,@COND_SHARED_1@,$COND_SHARED_1,;t t
41892s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
41893s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
41894s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
41895s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
41896s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
41897s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
41898s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
41899s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
41900s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
4d4ff94c 41901s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
41902s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
41903s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
41904s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
41905s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
41906s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
41907s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
41908s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
41909s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
4d4ff94c 41910s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
41911s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
41912s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
41913s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
4d4ff94c 41914s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
41915s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
41916s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
41917s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
41918s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
41919s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
41920s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
41921s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
41922s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
41923s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
41924s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
41925s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
41926s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
41927s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41928s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41929s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
4d4ff94c 41930s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
41931s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
41932s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
41933s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
41934s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
41935s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
41936s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
4d4ff94c 41937s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
a848cd7e
SC
41938s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
41939s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
41940s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
41941s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
41942s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
41943s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
41944s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
41945s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
41946s,@PATH_IFS@,$PATH_IFS,;t t
41947s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
41948s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
41949s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 41950s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
41951s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
41952s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
41953s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
41954s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
41955s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
41956s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
41957s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
41958s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
41959s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
41960s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
41961s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
41962s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
41963s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
41964s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
41965s,@WX_ALL@,$WX_ALL,;t t
41966s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
41967s,@SHARED_LD@,$SHARED_LD,;t t
41968s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
41969s,@STATIC_FLAG@,$STATIC_FLAG,;t t
41970s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
41971s,@USE_GUI@,$USE_GUI,;t t
41972s,@AFMINSTALL@,$AFMINSTALL,;t t
41973s,@WIN32INSTALL@,$WIN32INSTALL,;t t
41974s,@TOOLKIT@,$TOOLKIT,;t t
41975s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
41976s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
41977s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
41978s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
41979s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
41980s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
41981s,@cross_compiling@,$cross_compiling,;t t
41982s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
41983s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
41984s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
41985s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
41986s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
41987s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
41988s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
41989s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 41990s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 41991s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 41992s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
41993s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
41994s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
41995s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
41996s,@ALL_HEADERS@,$ALL_HEADERS,;t t
41997s,@ALL_SOURCES@,$ALL_SOURCES,;t t
41998s,@GUIDIST@,$GUIDIST,;t t
41999s,@PORT_FILES@,$PORT_FILES,;t t
42000s,@DISTDIR@,$DISTDIR,;t t
42001s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42002s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42003s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42004s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42005s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42006s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42007s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42008s,@RESFLAGS@,$RESFLAGS,;t t
42009s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42010s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42011s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42012s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42013s,@MACRESCOMP@,$MACRESCOMP,;t t
42014s,@MACSETFILE@,$MACSETFILE,;t t
42015s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42016s,@GCC@,$GCC,;t t
a848cd7e
SC
42017s,@DLLTOOL@,$DLLTOOL,;t t
42018s,@AS@,$AS,;t t
42019s,@LD@,$LD,;t t
42020s,@MAKEINFO@,$MAKEINFO,;t t
42021s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42022s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42023s,@LIBOBJS@,$LIBOBJS,;t t
42024s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42025CEOF
42026
42027_ACEOF
42028
42029 cat >>$CONFIG_STATUS <<\_ACEOF
42030 # Split the substitutions into bite-sized pieces for seds with
42031 # small command number limits, like on Digital OSF/1 and HP-UX.
42032 ac_max_sed_lines=48
42033 ac_sed_frag=1 # Number of current file.
42034 ac_beg=1 # First line for current file.
42035 ac_end=$ac_max_sed_lines # Line after last line for current file.
42036 ac_more_lines=:
42037 ac_sed_cmds=
42038 while $ac_more_lines; do
42039 if test $ac_beg -gt 1; then
42040 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42041 else
42042 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42043 fi
42044 if test ! -s $tmp/subs.frag; then
42045 ac_more_lines=false
42046 else
42047 # The purpose of the label and of the branching condition is to
42048 # speed up the sed processing (if there are no `@' at all, there
42049 # is no need to browse any of the substitutions).
42050 # These are the two extra sed commands mentioned above.
42051 (echo ':t
42052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42053 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42054 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42055 else
ac1cb8d3 42056 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42057 fi
42058 ac_sed_frag=`expr $ac_sed_frag + 1`
42059 ac_beg=$ac_end
42060 ac_end=`expr $ac_end + $ac_max_sed_lines`
42061 fi
42062 done
42063 if test -z "$ac_sed_cmds"; then
42064 ac_sed_cmds=cat
42065 fi
42066fi # test -n "$CONFIG_FILES"
42067
42068_ACEOF
42069cat >>$CONFIG_STATUS <<\_ACEOF
42070for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42072 case $ac_file in
42073 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42074 cat >$tmp/stdin
42075 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42077 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42079 * ) ac_file_in=$ac_file.in ;;
42080 esac
42081
42082 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42083 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42085 X"$ac_file" : 'X\(//\)[^/]' \| \
42086 X"$ac_file" : 'X\(//\)$' \| \
42087 X"$ac_file" : 'X\(/\)' \| \
42088 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42089echo X"$ac_file" |
42090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42092 /^X\(\/\/\)$/{ s//\1/; q; }
42093 /^X\(\/\).*/{ s//\1/; q; }
42094 s/.*/./; q'`
42095 { if $as_mkdir_p; then
42096 mkdir -p "$ac_dir"
42097 else
42098 as_dir="$ac_dir"
42099 as_dirs=
42100 while test ! -d "$as_dir"; do
42101 as_dirs="$as_dir $as_dirs"
42102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42104 X"$as_dir" : 'X\(//\)[^/]' \| \
42105 X"$as_dir" : 'X\(//\)$' \| \
42106 X"$as_dir" : 'X\(/\)' \| \
42107 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42108echo X"$as_dir" |
42109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42111 /^X\(\/\/\)$/{ s//\1/; q; }
42112 /^X\(\/\).*/{ s//\1/; q; }
42113 s/.*/./; q'`
42114 done
42115 test ! -n "$as_dirs" || mkdir $as_dirs
42116 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42117echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42118 { (exit 1); exit 1; }; }; }
42119
42120 ac_builddir=.
42121
42122if test "$ac_dir" != .; then
42123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42124 # A "../" for each directory in $ac_dir_suffix.
42125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42126else
42127 ac_dir_suffix= ac_top_builddir=
42128fi
42129
42130case $srcdir in
42131 .) # No --srcdir option. We are building in place.
42132 ac_srcdir=.
42133 if test -z "$ac_top_builddir"; then
42134 ac_top_srcdir=.
42135 else
42136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42137 fi ;;
42138 [\\/]* | ?:[\\/]* ) # Absolute path.
42139 ac_srcdir=$srcdir$ac_dir_suffix;
42140 ac_top_srcdir=$srcdir ;;
42141 *) # Relative path.
42142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42144esac
ac1cb8d3
VS
42145
42146# Do not use `cd foo && pwd` to compute absolute paths, because
42147# the directories may not exist.
42148case `pwd` in
42149.) ac_abs_builddir="$ac_dir";;
42150*)
42151 case "$ac_dir" in
42152 .) ac_abs_builddir=`pwd`;;
42153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42155 esac;;
42156esac
42157case $ac_abs_builddir in
42158.) ac_abs_top_builddir=${ac_top_builddir}.;;
42159*)
42160 case ${ac_top_builddir}. in
42161 .) ac_abs_top_builddir=$ac_abs_builddir;;
42162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42164 esac;;
42165esac
42166case $ac_abs_builddir in
42167.) ac_abs_srcdir=$ac_srcdir;;
42168*)
42169 case $ac_srcdir in
42170 .) ac_abs_srcdir=$ac_abs_builddir;;
42171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42173 esac;;
42174esac
42175case $ac_abs_builddir in
42176.) ac_abs_top_srcdir=$ac_top_srcdir;;
42177*)
42178 case $ac_top_srcdir in
42179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42182 esac;;
42183esac
a848cd7e
SC
42184
42185
42186 case $INSTALL in
42187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42188 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42189 esac
42190
a848cd7e
SC
42191 # Let's still pretend it is `configure' which instantiates (i.e., don't
42192 # use $as_me), people would be surprised to read:
42193 # /* config.h. Generated by config.status. */
42194 if test x"$ac_file" = x-; then
42195 configure_input=
42196 else
42197 configure_input="$ac_file. "
42198 fi
42199 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42200 sed 's,.*/,,'` by configure."
a848cd7e
SC
42201
42202 # First look for the input files in the build tree, otherwise in the
42203 # src tree.
42204 ac_file_inputs=`IFS=:
42205 for f in $ac_file_in; do
42206 case $f in
42207 -) echo $tmp/stdin ;;
42208 [\\/$]*)
ac1cb8d3
VS
42209 # Absolute (can't be DOS-style, as IFS=:)
42210 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42211echo "$as_me: error: cannot find input file: $f" >&2;}
42212 { (exit 1); exit 1; }; }
ac1cb8d3 42213 echo "$f";;
a848cd7e 42214 *) # Relative
ac1cb8d3
VS
42215 if test -f "$f"; then
42216 # Build tree
42217 echo "$f"
42218 elif test -f "$srcdir/$f"; then
42219 # Source tree
42220 echo "$srcdir/$f"
42221 else
42222 # /dev/null tree
42223 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42224echo "$as_me: error: cannot find input file: $f" >&2;}
42225 { (exit 1); exit 1; }; }
ac1cb8d3 42226 fi;;
a848cd7e
SC
42227 esac
42228 done` || { (exit 1); exit 1; }
4d4ff94c
VZ
42229
42230 if test x"$ac_file" != x-; then
42231 { echo "$as_me:$LINENO: creating $ac_file" >&5
42232echo "$as_me: creating $ac_file" >&6;}
42233 rm -f "$ac_file"
42234 fi
a848cd7e
SC
42235_ACEOF
42236cat >>$CONFIG_STATUS <<_ACEOF
42237 sed "$ac_vpsub
42238$extrasub
42239_ACEOF
42240cat >>$CONFIG_STATUS <<\_ACEOF
42241:t
42242/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42243s,@configure_input@,$configure_input,;t t
42244s,@srcdir@,$ac_srcdir,;t t
42245s,@abs_srcdir@,$ac_abs_srcdir,;t t
42246s,@top_srcdir@,$ac_top_srcdir,;t t
42247s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42248s,@builddir@,$ac_builddir,;t t
42249s,@abs_builddir@,$ac_abs_builddir,;t t
42250s,@top_builddir@,$ac_top_builddir,;t t
42251s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42252s,@INSTALL@,$ac_INSTALL,;t t
42253" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42254 rm -f $tmp/stdin
42255 if test x"$ac_file" != x-; then
42256 mv $tmp/out $ac_file
42257 else
42258 cat $tmp/out
42259 rm -f $tmp/out
42260 fi
42261
42262done
42263_ACEOF
42264cat >>$CONFIG_STATUS <<\_ACEOF
42265
42266#
42267# CONFIG_HEADER section.
42268#
42269
42270# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42271# NAME is the cpp macro being defined and VALUE is the value it is being given.
42272#
42273# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42274ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42275ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42276ac_dC=' '
42277ac_dD=',;t'
42278# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42279ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42280ac_uB='$,\1#\2define\3'
42281ac_uC=' '
42282ac_uD=',;t'
42283
42284for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42286 case $ac_file in
42287 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42288 cat >$tmp/stdin
42289 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42291 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42292 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42293 * ) ac_file_in=$ac_file.in ;;
42294 esac
42295
42296 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42297echo "$as_me: creating $ac_file" >&6;}
42298
42299 # First look for the input files in the build tree, otherwise in the
42300 # src tree.
42301 ac_file_inputs=`IFS=:
42302 for f in $ac_file_in; do
42303 case $f in
42304 -) echo $tmp/stdin ;;
42305 [\\/$]*)
ac1cb8d3
VS
42306 # Absolute (can't be DOS-style, as IFS=:)
42307 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42308echo "$as_me: error: cannot find input file: $f" >&2;}
42309 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42310 # Do quote $f, to prevent DOS paths from being IFS'd.
42311 echo "$f";;
a848cd7e 42312 *) # Relative
ac1cb8d3
VS
42313 if test -f "$f"; then
42314 # Build tree
42315 echo "$f"
42316 elif test -f "$srcdir/$f"; then
42317 # Source tree
42318 echo "$srcdir/$f"
42319 else
42320 # /dev/null tree
42321 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42322echo "$as_me: error: cannot find input file: $f" >&2;}
42323 { (exit 1); exit 1; }; }
ac1cb8d3 42324 fi;;
a848cd7e
SC
42325 esac
42326 done` || { (exit 1); exit 1; }
42327 # Remove the trailing spaces.
ac1cb8d3 42328 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42329
42330_ACEOF
42331
42332# Transform confdefs.h into two sed scripts, `conftest.defines' and
42333# `conftest.undefs', that substitutes the proper values into
42334# config.h.in to produce config.h. The first handles `#define'
42335# templates, and the second `#undef' templates.
42336# And first: Protect against being on the right side of a sed subst in
42337# config.status. Protect against being in an unquoted here document
42338# in config.status.
42339rm -f conftest.defines conftest.undefs
42340# Using a here document instead of a string reduces the quoting nightmare.
42341# Putting comments in sed scripts is not portable.
42342#
42343# `end' is used to avoid that the second main sed command (meant for
42344# 0-ary CPP macros) applies to n-ary macro definitions.
42345# See the Autoconf documentation for `clear'.
42346cat >confdef2sed.sed <<\_ACEOF
42347s/[\\&,]/\\&/g
42348s,[\\$`],\\&,g
42349t clear
42350: clear
ac1cb8d3 42351s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42352t end
ac1cb8d3 42353s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42354: end
42355_ACEOF
42356# If some macros were called several times there might be several times
42357# the same #defines, which is useless. Nevertheless, we may not want to
42358# sort them, since we want the *last* AC-DEFINE to be honored.
42359uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42360sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42361rm -f confdef2sed.sed
42362
42363# This sed command replaces #undef with comments. This is necessary, for
42364# example, in the case of _POSIX_SOURCE, which is predefined and required
42365# on some systems where configure will not decide to define it.
42366cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42367s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42368_ACEOF
42369
42370# Break up conftest.defines because some shells have a limit on the size
42371# of here documents, and old seds have small limits too (100 cmds).
42372echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42373echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42374echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42375echo ' :' >>$CONFIG_STATUS
42376rm -f conftest.tail
42377while grep . conftest.defines >/dev/null
42378do
42379 # Write a limited-size here document to $tmp/defines.sed.
42380 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42381 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42382 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42383 # Work around the forget-to-reset-the-flag bug.
42384 echo 't clr' >>$CONFIG_STATUS
42385 echo ': clr' >>$CONFIG_STATUS
42386 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42387 echo 'CEOF
42388 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42389 rm -f $tmp/in
42390 mv $tmp/out $tmp/in
42391' >>$CONFIG_STATUS
42392 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42393 rm -f conftest.defines
42394 mv conftest.tail conftest.defines
42395done
42396rm -f conftest.defines
42397echo ' fi # grep' >>$CONFIG_STATUS
42398echo >>$CONFIG_STATUS
42399
42400# Break up conftest.undefs because some shells have a limit on the size
42401# of here documents, and old seds have small limits too (100 cmds).
42402echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42403rm -f conftest.tail
42404while grep . conftest.undefs >/dev/null
42405do
42406 # Write a limited-size here document to $tmp/undefs.sed.
42407 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42408 # Speed up: don't consider the non `#undef'
ac1cb8d3 42409 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42410 # Work around the forget-to-reset-the-flag bug.
42411 echo 't clr' >>$CONFIG_STATUS
42412 echo ': clr' >>$CONFIG_STATUS
42413 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42414 echo 'CEOF
42415 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42416 rm -f $tmp/in
42417 mv $tmp/out $tmp/in
42418' >>$CONFIG_STATUS
42419 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42420 rm -f conftest.undefs
42421 mv conftest.tail conftest.undefs
42422done
42423rm -f conftest.undefs
42424
42425cat >>$CONFIG_STATUS <<\_ACEOF
42426 # Let's still pretend it is `configure' which instantiates (i.e., don't
42427 # use $as_me), people would be surprised to read:
42428 # /* config.h. Generated by config.status. */
42429 if test x"$ac_file" = x-; then
42430 echo "/* Generated by configure. */" >$tmp/config.h
42431 else
42432 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42433 fi
42434 cat $tmp/in >>$tmp/config.h
42435 rm -f $tmp/in
42436 if test x"$ac_file" != x-; then
42437 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42438 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42439echo "$as_me: $ac_file is unchanged" >&6;}
42440 else
42441 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42442$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42443 X"$ac_file" : 'X\(//\)[^/]' \| \
42444 X"$ac_file" : 'X\(//\)$' \| \
42445 X"$ac_file" : 'X\(/\)' \| \
42446 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42447echo X"$ac_file" |
42448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42450 /^X\(\/\/\)$/{ s//\1/; q; }
42451 /^X\(\/\).*/{ s//\1/; q; }
42452 s/.*/./; q'`
42453 { if $as_mkdir_p; then
42454 mkdir -p "$ac_dir"
42455 else
42456 as_dir="$ac_dir"
42457 as_dirs=
42458 while test ! -d "$as_dir"; do
42459 as_dirs="$as_dir $as_dirs"
42460 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42461$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42462 X"$as_dir" : 'X\(//\)[^/]' \| \
42463 X"$as_dir" : 'X\(//\)$' \| \
42464 X"$as_dir" : 'X\(/\)' \| \
42465 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42466echo X"$as_dir" |
42467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42469 /^X\(\/\/\)$/{ s//\1/; q; }
42470 /^X\(\/\).*/{ s//\1/; q; }
42471 s/.*/./; q'`
42472 done
42473 test ! -n "$as_dirs" || mkdir $as_dirs
42474 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42475echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42476 { (exit 1); exit 1; }; }; }
42477
42478 rm -f $ac_file
42479 mv $tmp/config.h $ac_file
42480 fi
42481 else
42482 cat $tmp/config.h
42483 rm -f $tmp/config.h
42484 fi
42485done
42486_ACEOF
42487cat >>$CONFIG_STATUS <<\_ACEOF
42488
42489#
42490# CONFIG_COMMANDS section.
42491#
42492for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42495 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42496$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42497 X"$ac_dest" : 'X\(//\)[^/]' \| \
42498 X"$ac_dest" : 'X\(//\)$' \| \
42499 X"$ac_dest" : 'X\(/\)' \| \
42500 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42501echo X"$ac_dest" |
42502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42504 /^X\(\/\/\)$/{ s//\1/; q; }
42505 /^X\(\/\).*/{ s//\1/; q; }
42506 s/.*/./; q'`
ac1cb8d3
VS
42507 { if $as_mkdir_p; then
42508 mkdir -p "$ac_dir"
42509 else
42510 as_dir="$ac_dir"
42511 as_dirs=
42512 while test ! -d "$as_dir"; do
42513 as_dirs="$as_dir $as_dirs"
42514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42515$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42516 X"$as_dir" : 'X\(//\)[^/]' \| \
42517 X"$as_dir" : 'X\(//\)$' \| \
42518 X"$as_dir" : 'X\(/\)' \| \
42519 . : '\(.\)' 2>/dev/null ||
42520echo X"$as_dir" |
42521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42523 /^X\(\/\/\)$/{ s//\1/; q; }
42524 /^X\(\/\).*/{ s//\1/; q; }
42525 s/.*/./; q'`
42526 done
42527 test ! -n "$as_dirs" || mkdir $as_dirs
42528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42529echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42530 { (exit 1); exit 1; }; }; }
42531
a848cd7e
SC
42532 ac_builddir=.
42533
42534if test "$ac_dir" != .; then
42535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42536 # A "../" for each directory in $ac_dir_suffix.
42537 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42538else
42539 ac_dir_suffix= ac_top_builddir=
42540fi
42541
42542case $srcdir in
42543 .) # No --srcdir option. We are building in place.
42544 ac_srcdir=.
42545 if test -z "$ac_top_builddir"; then
42546 ac_top_srcdir=.
42547 else
42548 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42549 fi ;;
42550 [\\/]* | ?:[\\/]* ) # Absolute path.
42551 ac_srcdir=$srcdir$ac_dir_suffix;
42552 ac_top_srcdir=$srcdir ;;
42553 *) # Relative path.
42554 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42555 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42556esac
ac1cb8d3
VS
42557
42558# Do not use `cd foo && pwd` to compute absolute paths, because
42559# the directories may not exist.
42560case `pwd` in
42561.) ac_abs_builddir="$ac_dir";;
42562*)
42563 case "$ac_dir" in
42564 .) ac_abs_builddir=`pwd`;;
42565 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42566 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42567 esac;;
42568esac
42569case $ac_abs_builddir in
42570.) ac_abs_top_builddir=${ac_top_builddir}.;;
42571*)
42572 case ${ac_top_builddir}. in
42573 .) ac_abs_top_builddir=$ac_abs_builddir;;
42574 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42575 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42576 esac;;
42577esac
42578case $ac_abs_builddir in
42579.) ac_abs_srcdir=$ac_srcdir;;
42580*)
42581 case $ac_srcdir in
42582 .) ac_abs_srcdir=$ac_abs_builddir;;
42583 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42584 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42585 esac;;
42586esac
42587case $ac_abs_builddir in
42588.) ac_abs_top_srcdir=$ac_top_srcdir;;
42589*)
42590 case $ac_top_srcdir in
42591 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42592 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42593 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42594 esac;;
42595esac
a848cd7e
SC
42596
42597
42598 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42599echo "$as_me: executing $ac_dest commands" >&6;}
42600 case $ac_dest in
42601 default )
a848cd7e
SC
42602 if test ! -d lib; then
42603 mkdir lib
42604 fi
42605 if test ! -d lib/wx; then
42606 mkdir lib/wx
42607 fi
8708fa76
VS
42608 if test ! -d lib/wx/config; then
42609 mkdir lib/wx/config
42610 fi
a848cd7e
SC
42611 if test ! -d lib/wx/include; then
42612 mkdir lib/wx/include
42613 fi
42614 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42615 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42616 fi
42617 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42618 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42619 fi
42620 if test -f setup.h; then
42621 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42622 fi
8708fa76 42623
4b167aca 42624 if test ! -h wx-config; then
8708fa76 42625 chmod +x wx-config
48112931 42626 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
4b167aca 42627 ${LN_S} wx-config-${WX_RELEASE} wx-config
8708fa76 42628 fi
4b167aca
VS
42629 ( cd lib/wx/config ;
42630 rm -f ${TOOLCHAIN_NAME}
42631 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
42632
8708fa76
VS
42633 if test -f wx-config-wrapper; then
42634 chmod +x wx-config-wrapper
4b167aca 42635 mv -f wx-config-wrapper wx-config-${WX_RELEASE}
b3de4970 42636 rm -f wx${TOOLCHAIN_NAME}-config
4b167aca 42637 ${LN_S} wx-config-${WX_RELEASE} wx${TOOLCHAIN_NAME}-config
8708fa76 42638 fi
a848cd7e
SC
42639 ;;
42640 esac
42641done
42642_ACEOF
42643
42644cat >>$CONFIG_STATUS <<\_ACEOF
42645
42646{ (exit 0); exit 0; }
42647_ACEOF
42648chmod +x $CONFIG_STATUS
42649ac_clean_files=$ac_clean_files_save
42650
42651
42652# configure is writing to config.log, and then calls config.status.
42653# config.status does its own redirection, appending to config.log.
42654# Unfortunately, on DOS this fails, as config.log is still kept open
42655# by configure, so config.status won't be able to write to it; its
42656# output is simply discarded. So we exec the FD to /dev/null,
42657# effectively closing config.log, so it can be properly (re)opened and
42658# appended to by config.status. When coming back to configure, we
42659# need to make the FD available again.
42660if test "$no_create" != yes; then
42661 ac_cs_success=:
42662 ac_config_status_args=
42663 test "$silent" = yes &&
42664 ac_config_status_args="$ac_config_status_args --quiet"
42665 exec 5>/dev/null
42666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42667 exec 5>>config.log
42668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42669 # would make configure fail if this is the last instruction.
42670 $ac_cs_success || { (exit 1); exit 1; }
42671fi
42672
42673#
42674# CONFIG_SUBDIRS section.
42675#
42676if test "$no_recursion" != yes; then
42677
42678 # Remove --cache-file and --srcdir arguments so they do not pile up.
42679 ac_sub_configure_args=
42680 ac_prev=
42681 for ac_arg in $ac_configure_args; do
42682 if test -n "$ac_prev"; then
42683 ac_prev=
42684 continue
42685 fi
42686 case $ac_arg in
42687 -cache-file | --cache-file | --cache-fil | --cache-fi \
42688 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42689 ac_prev=cache_file ;;
42690 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42691 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42692 | --c=*)
42693 ;;
42694 --config-cache | -C)
42695 ;;
42696 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42697 ac_prev=srcdir ;;
42698 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42699 ;;
42700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42701 ac_prev=prefix ;;
42702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42703 ;;
42704 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42705 esac
42706 done
42707
42708 # Always prepend --prefix to ensure using the same prefix
42709 # in subdir configurations.
42710 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42711
42712 ac_popdir=`pwd`
42713 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42714
42715 # Do not complain, so a configure script can configure whichever
42716 # parts of a large source tree are present.
42717 test -d $srcdir/$ac_dir || continue
42718
42719 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42720echo "$as_me: configuring in $ac_dir" >&6;}
42721 { if $as_mkdir_p; then
42722 mkdir -p "$ac_dir"
42723 else
42724 as_dir="$ac_dir"
42725 as_dirs=
42726 while test ! -d "$as_dir"; do
42727 as_dirs="$as_dir $as_dirs"
42728 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42730 X"$as_dir" : 'X\(//\)[^/]' \| \
42731 X"$as_dir" : 'X\(//\)$' \| \
42732 X"$as_dir" : 'X\(/\)' \| \
42733 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42734echo X"$as_dir" |
42735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42737 /^X\(\/\/\)$/{ s//\1/; q; }
42738 /^X\(\/\).*/{ s//\1/; q; }
42739 s/.*/./; q'`
42740 done
42741 test ! -n "$as_dirs" || mkdir $as_dirs
42742 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42743echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42744 { (exit 1); exit 1; }; }; }
42745
42746 ac_builddir=.
42747
42748if test "$ac_dir" != .; then
42749 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42750 # A "../" for each directory in $ac_dir_suffix.
42751 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42752else
42753 ac_dir_suffix= ac_top_builddir=
42754fi
42755
42756case $srcdir in
42757 .) # No --srcdir option. We are building in place.
42758 ac_srcdir=.
42759 if test -z "$ac_top_builddir"; then
42760 ac_top_srcdir=.
42761 else
42762 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42763 fi ;;
42764 [\\/]* | ?:[\\/]* ) # Absolute path.
42765 ac_srcdir=$srcdir$ac_dir_suffix;
42766 ac_top_srcdir=$srcdir ;;
42767 *) # Relative path.
42768 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42769 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42770esac
ac1cb8d3
VS
42771
42772# Do not use `cd foo && pwd` to compute absolute paths, because
42773# the directories may not exist.
42774case `pwd` in
42775.) ac_abs_builddir="$ac_dir";;
42776*)
42777 case "$ac_dir" in
42778 .) ac_abs_builddir=`pwd`;;
42779 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42780 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42781 esac;;
42782esac
42783case $ac_abs_builddir in
42784.) ac_abs_top_builddir=${ac_top_builddir}.;;
42785*)
42786 case ${ac_top_builddir}. in
42787 .) ac_abs_top_builddir=$ac_abs_builddir;;
42788 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42789 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42790 esac;;
42791esac
42792case $ac_abs_builddir in
42793.) ac_abs_srcdir=$ac_srcdir;;
42794*)
42795 case $ac_srcdir in
42796 .) ac_abs_srcdir=$ac_abs_builddir;;
42797 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42798 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42799 esac;;
42800esac
42801case $ac_abs_builddir in
42802.) ac_abs_top_srcdir=$ac_top_srcdir;;
42803*)
42804 case $ac_top_srcdir in
42805 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42806 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42807 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42808 esac;;
42809esac
a848cd7e
SC
42810
42811
42812 cd $ac_dir
42813
42814 # Check for guested configure; otherwise get Cygnus style configure.
42815 if test -f $ac_srcdir/configure.gnu; then
42816 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42817 elif test -f $ac_srcdir/configure; then
42818 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42819 elif test -f $ac_srcdir/configure.in; then
42820 ac_sub_configure=$ac_configure
42821 else
42822 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42823echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42824 ac_sub_configure=
42825 fi
42826
42827 # The recursion is here.
42828 if test -n "$ac_sub_configure"; then
42829 # Make the cache file name correct relative to the subdirectory.
42830 case $cache_file in
42831 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42832 *) # Relative path.
ac1cb8d3 42833 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
42834 esac
42835
42836 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42837echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42838 # The eval makes quoting arguments work.
42839 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
42840 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42841 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
42842echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
42843 { (exit 1); exit 1; }; }
42844 fi
42845
4d4ff94c 42846 cd "$ac_popdir"
a848cd7e
SC
42847 done
42848fi
42849
42850
42851echo
77ffb593 42852echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 42853echo ""
4d4ff94c 42854echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 42855echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 42856
77ffb593
JS
42857echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
42858echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
42859echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 42860
77ffb593
JS
42861echo " What level of wxWidgets compatibility should be enabled?"
42862echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
42863echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 42864
77ffb593 42865echo " Which libraries should wxWidgets use?"
a848cd7e
SC
42866echo " jpeg ${wxUSE_LIBJPEG-none}"
42867echo " png ${wxUSE_LIBPNG-none}"
42868echo " regex ${wxUSE_REGEX}"
42869echo " tiff ${wxUSE_LIBTIFF-none}"
42870if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
42871echo " xpm ${wxUSE_LIBXPM-none}"
42872fi
42873echo " zlib ${wxUSE_ZLIB}"
42874echo " odbc ${wxUSE_ODBC}"
42875echo " expat ${wxUSE_EXPAT}"
42876echo " libmspack ${wxUSE_LIBMSPACK}"
42877echo " sdl ${wxUSE_LIBSDL}"
42878
42879echo ""
42880