]> git.saurik.com Git - wxWidgets.git/blame - configure
Removed unneeded GSocket files
[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"
2057db16 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_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)
1040 --disable-precomp-headers don't use precompiled headers even if compiler can
1041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gtk use GTK+
1046 --with-motif use Motif/Lesstif
1047 --with-mac use Mac OS X
1048 --with-cocoa use Cocoa
1049 --with-wine use Wine
1050 --with-msw use MS-Windows
1051 --with-pm use OS/2 Presentation Manager
1052 --with-mgl use SciTech MGL
1053 --with-microwin use MicroWindows
1054 --with-x11 use X11
1055 --with-libpng use libpng (PNG image format)
1056 --with-libjpeg use libjpeg (JPEG file format)
1057 --with-libtiff use libtiff (TIFF file format)
1058 --with-libxpm use libxpm (XPM file format)
1059 --with-libmspack use libmspack (CHM help files loading)
1060 --with-sdl use SDL for audio on Unix
1061 --with-opengl use OpenGL (or Mesa)
1062 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1063 --with-regex enable support for wxRegEx class
1064 --with-zlib use zlib for LZW compression
1065 --with-odbc use the IODBC and wxODBC classes
1066 --with-expat enable XML support using expat parser
1067 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1068 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1069 --with-x use the X Window System
1070 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1071 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1072 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1073 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1074 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1075
1076Some influential environment variables:
dcc1b6ad
VS
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CPP C preprocessor
1084 CXX C++ compiler command
1085 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
a848cd7e
SC
1087
1088Use these variables to override the choices made by `configure' or to help
1089it to find libraries and programs with nonstandard names/locations.
1090
77ffb593 1091Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1092_ACEOF
1093fi
1094
1095if test "$ac_init_help" = "recursive"; then
1096 # If there are subdirs, report their specific --help.
1097 ac_popdir=`pwd`
1098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099 test -d $ac_dir || continue
1100 ac_builddir=.
1101
1102if test "$ac_dir" != .; then
1103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104 # A "../" for each directory in $ac_dir_suffix.
1105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106else
1107 ac_dir_suffix= ac_top_builddir=
1108fi
1109
1110case $srcdir in
1111 .) # No --srcdir option. We are building in place.
1112 ac_srcdir=.
1113 if test -z "$ac_top_builddir"; then
1114 ac_top_srcdir=.
1115 else
1116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117 fi ;;
1118 [\\/]* | ?:[\\/]* ) # Absolute path.
1119 ac_srcdir=$srcdir$ac_dir_suffix;
1120 ac_top_srcdir=$srcdir ;;
1121 *) # Relative path.
1122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124esac
ac1cb8d3
VS
1125
1126# Do not use `cd foo && pwd` to compute absolute paths, because
1127# the directories may not exist.
1128case `pwd` in
1129.) ac_abs_builddir="$ac_dir";;
1130*)
1131 case "$ac_dir" in
1132 .) ac_abs_builddir=`pwd`;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_builddir=${ac_top_builddir}.;;
1139*)
1140 case ${ac_top_builddir}. in
1141 .) ac_abs_top_builddir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_srcdir=$ac_srcdir;;
1148*)
1149 case $ac_srcdir in
1150 .) ac_abs_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_top_srcdir=$ac_top_srcdir;;
1157*)
1158 case $ac_top_srcdir in
1159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162 esac;;
1163esac
a848cd7e
SC
1164
1165 cd $ac_dir
1166 # Check for guested configure; otherwise get Cygnus style configure.
1167 if test -f $ac_srcdir/configure.gnu; then
1168 echo
1169 $SHELL $ac_srcdir/configure.gnu --help=recursive
1170 elif test -f $ac_srcdir/configure; then
1171 echo
1172 $SHELL $ac_srcdir/configure --help=recursive
1173 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1174 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1175 echo
1176 $ac_configure --help
1177 else
1178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179 fi
ea7db9ff 1180 cd $ac_popdir
a848cd7e
SC
1181 done
1182fi
1183
1184test -n "$ac_init_help" && exit 0
1185if $ac_init_version; then
1186 cat <<\_ACEOF
77ffb593 1187wxWidgets configure 2.5.2
ac1cb8d3 1188generated by GNU Autoconf 2.59
a848cd7e 1189
ac1cb8d3 1190Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1191This configure script is free software; the Free Software Foundation
1192gives unlimited permission to copy, distribute and modify it.
1193_ACEOF
1194 exit 0
1195fi
1196exec 5>config.log
1197cat >&5 <<_ACEOF
1198This file contains any messages produced by compilers while
1199running configure, to aid debugging if configure makes a mistake.
1200
77ffb593 1201It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1202generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1203
1204 $ $0 $@
1205
1206_ACEOF
1207{
1208cat <<_ASUNAME
1209## --------- ##
1210## Platform. ##
1211## --------- ##
1212
1213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221
1222/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1223/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1226/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1227/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1228/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1229
1230_ASUNAME
1231
1232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233for as_dir in $PATH
1234do
1235 IFS=$as_save_IFS
1236 test -z "$as_dir" && as_dir=.
1237 echo "PATH: $as_dir"
1238done
1239
1240} >&5
1241
1242cat >&5 <<_ACEOF
1243
1244
1245## ----------- ##
1246## Core tests. ##
1247## ----------- ##
1248
1249_ACEOF
1250
1251
1252# Keep a trace of the command line.
1253# Strip out --no-create and --no-recursion so they do not pile up.
1254# Strip out --silent because we don't want to record it for future runs.
1255# Also quote any args containing shell meta-characters.
1256# Make two passes to allow for proper duplicate-argument suppression.
1257ac_configure_args=
1258ac_configure_args0=
1259ac_configure_args1=
1260ac_sep=
1261ac_must_keep_next=false
1262for ac_pass in 1 2
1263do
1264 for ac_arg
1265 do
1266 case $ac_arg in
1267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 continue ;;
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 esac
1274 case $ac_pass in
1275 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 2)
1277 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278 if test $ac_must_keep_next = true; then
ac1cb8d3 1279 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1280 else
ac1cb8d3
VS
1281 case $ac_arg in
1282 *=* | --config-cache | -C | -disable-* | --disable-* \
1283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285 | -with-* | --with-* | -without-* | --without-* | --x)
1286 case "$ac_configure_args0 " in
1287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288 esac
1289 ;;
1290 -* ) ac_must_keep_next=true ;;
1291 esac
a848cd7e
SC
1292 fi
1293 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294 # Get rid of the leading space.
1295 ac_sep=" "
1296 ;;
1297 esac
1298 done
1299done
1300$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303# When interrupted or exit'd, cleanup temporary files, and complete
1304# config.log. We remove comments because anyway the quotes in there
1305# would cause problems or look ugly.
1306# WARNING: Be sure not to use single quotes in there, as some shells,
1307# such as our DU 5.0 friend, will then `close' the trap.
1308trap 'exit_status=$?
1309 # Save into config.log some information that might help in debugging.
1310 {
1311 echo
1312
1313 cat <<\_ASBOX
1314## ---------------- ##
1315## Cache variables. ##
1316## ---------------- ##
1317_ASBOX
1318 echo
1319 # The following way of writing the cache mishandles newlines in values,
1320{
1321 (set) 2>&1 |
1322 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323 *ac_space=\ *)
1324 sed -n \
ac1cb8d3
VS
1325 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1327 ;;
1328 *)
1329 sed -n \
ac1cb8d3 1330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1331 ;;
1332 esac;
1333}
1334 echo
1335
1336 cat <<\_ASBOX
1337## ----------------- ##
1338## Output variables. ##
1339## ----------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_vars
1343 do
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1346 done | sort
1347 echo
1348
1349 if test -n "$ac_subst_files"; then
1350 cat <<\_ASBOX
1351## ------------- ##
1352## Output files. ##
1353## ------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_files
1357 do
1358 eval ac_val=$`echo $ac_var`
ac1cb8d3 1359 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1360 done | sort
1361 echo
1362 fi
1363
1364 if test -s confdefs.h; then
1365 cat <<\_ASBOX
1366## ----------- ##
1367## confdefs.h. ##
1368## ----------- ##
1369_ASBOX
1370 echo
1371 sed "/^$/d" confdefs.h | sort
1372 echo
1373 fi
1374 test "$ac_signal" != 0 &&
1375 echo "$as_me: caught signal $ac_signal"
1376 echo "$as_me: exit $exit_status"
1377 } >&5
ac1cb8d3 1378 rm -f core *.core &&
a848cd7e
SC
1379 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380 exit $exit_status
1381 ' 0
1382for ac_signal in 1 2 13 15; do
1383 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384done
1385ac_signal=0
1386
1387# confdefs.h avoids OS command line length limits that DEFS can exceed.
1388rm -rf conftest* confdefs.h
1389# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390echo >confdefs.h
1391
1392# Predefined preprocessor variables.
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_NAME "$PACKAGE_NAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_VERSION "$PACKAGE_VERSION"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_STRING "$PACKAGE_STRING"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416_ACEOF
1417
1418
1419# Let the site file select an alternate cache file if it wants to.
1420# Prefer explicitly selected file to automatically selected ones.
1421if test -z "$CONFIG_SITE"; then
1422 if test "x$prefix" != xNONE; then
1423 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424 else
1425 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 fi
1427fi
1428for ac_site_file in $CONFIG_SITE; do
1429 if test -r "$ac_site_file"; then
1430 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431echo "$as_me: loading site script $ac_site_file" >&6;}
1432 sed 's/^/| /' "$ac_site_file" >&5
1433 . "$ac_site_file"
1434 fi
1435done
1436
1437if test -r "$cache_file"; then
1438 # Some versions of bash will fail to source /dev/null (special
1439 # files actually), so we avoid doing that.
1440 if test -f "$cache_file"; then
1441 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442echo "$as_me: loading cache $cache_file" >&6;}
1443 case $cache_file in
1444 [\\/]* | ?:[\\/]* ) . $cache_file;;
1445 *) . ./$cache_file;;
1446 esac
1447 fi
1448else
1449 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450echo "$as_me: creating cache $cache_file" >&6;}
1451 >$cache_file
1452fi
1453
1454# Check that the precious variables saved in the cache have kept the same
1455# value.
1456ac_cache_corrupted=false
1457for ac_var in `(set) 2>&1 |
ac1cb8d3 1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1464 set,)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,set)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,);;
1473 *)
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1476echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1478echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1480echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1481 ac_cache_corrupted=:
a848cd7e
SC
1482 fi;;
1483 esac
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1486 case $ac_new_val in
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1490 esac
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494 esac
1495 fi
1496done
1497if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1503fi
1504
1505ac_ext=c
1506ac_cpp='$CPP $CPPFLAGS'
1507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
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
1540ac_aux_dir=
1541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565# Make sure we can run config.sub.
1566$ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571echo "$as_me:$LINENO: checking build system type" >&5
1572echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_build_alias=$build_alias
1577test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590echo "${ECHO_T}$ac_cv_build" >&6
1591build=$ac_cv_build
1592build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597echo "$as_me:$LINENO: checking host system type" >&5
1598echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_host_alias=$host_alias
1603test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610fi
1611echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612echo "${ECHO_T}$ac_cv_host" >&6
1613host=$ac_cv_host
1614host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619echo "$as_me:$LINENO: checking target system type" >&5
1620echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624 ac_cv_target_alias=$target_alias
1625test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632fi
1633echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634echo "${ECHO_T}$ac_cv_target" >&6
1635target=$ac_cv_target
1636target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641# The aliases save the names the user supplied, while $host etc.
1642# will get canonicalized.
1643test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1645 NONENONEs,x,x, &&
1646 program_prefix=${target_alias}-
1647
1648
1649
1650WX_MAJOR_VERSION_NUMBER=2
1651WX_MINOR_VERSION_NUMBER=5
de59c161 1652WX_RELEASE_NUMBER=2
224bf05c 1653WX_SUBRELEASE_NUMBER=3
a848cd7e
SC
1654
1655WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1656WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1657
1658WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1659
de59c161 1660WX_CURRENT=2
a848cd7e
SC
1661WX_REVISION=0
1662WX_AGE=0
1663
1664
1665
1666USE_UNIX=1
1667USE_OS2=0
1668USE_WIN32=0
1669USE_DOS=0
1670USE_BEOS=0
1671USE_MAC=0
1672
1673USE_AIX=
1674USE_BSD= USE_DARWIN= USE_FREEBSD=
1675USE_GNU= USE_HPUX=
1676USE_LINUX=
1677USE_NETBSD=
1678USE_OPENBSD=
1679USE_OSF= USE_SGI=
1680USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1681USE_ULTRIX=
1682USE_UNIXWARE=
1683
1684USE_ALPHA=
1685
1686NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1687
1688ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1689
1690DEFAULT_wxUSE_COCOA=0
1691DEFAULT_wxUSE_GTK=0
1692DEFAULT_wxUSE_MAC=0
1693DEFAULT_wxUSE_MGL=0
1694DEFAULT_wxUSE_MICROWIN=0
1695DEFAULT_wxUSE_MOTIF=0
1696DEFAULT_wxUSE_MSW=0
1697DEFAULT_wxUSE_PM=0
1698DEFAULT_wxUSE_X11=0
1699
1700DEFAULT_DEFAULT_wxUSE_COCOA=0
1701DEFAULT_DEFAULT_wxUSE_GTK=0
1702DEFAULT_DEFAULT_wxUSE_MAC=0
1703DEFAULT_DEFAULT_wxUSE_MGL=0
1704DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_DEFAULT_wxUSE_MSW=0
1707DEFAULT_DEFAULT_wxUSE_PM=0
1708DEFAULT_DEFAULT_wxUSE_X11=0
1709
1710PROGRAM_EXT=
1711SO_SUFFIX=so
1712SAMPLES_RPATH_FLAG=
1713SAMPLES_RPATH_POSTLINK=
1714
1715case "${host}" in
1716 *-hp-hpux* )
1717 USE_HPUX=1
1718 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1719 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1720 SO_SUFFIX=sl
1721 cat >>confdefs.h <<\_ACEOF
1722#define __HPUX__ 1
1723_ACEOF
1724
1725 ;;
1726 *-*-linux* )
1727 USE_LINUX=1
1728 cat >>confdefs.h <<\_ACEOF
1729#define __LINUX__ 1
1730_ACEOF
1731
1732 TMP=`uname -m`
1733 if test "x$TMP" = "xalpha"; then
1734 USE_ALPHA=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __ALPHA__ 1
1737_ACEOF
1738
1739 fi
1740 DEFAULT_DEFAULT_wxUSE_GTK=1
1741 ;;
1742 *-*-gnu* | *-*-k*bsd*-gnu )
1743 USE_GNU=1
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-irix5* | *-*-irix6* )
1755 USE_SGI=1
1756 USE_SVR4=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __SGI__ 1
1759_ACEOF
1760
1761 cat >>confdefs.h <<\_ACEOF
1762#define __SVR4__ 1
1763_ACEOF
1764
1765 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1766 ;;
1767 *-*-solaris2* )
1768 USE_SUN=1
1769 USE_SOLARIS=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SUN__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SOLARIS__ 1
1777_ACEOF
1778
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SVR4__ 1
1781_ACEOF
1782
1783 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1784 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1785 ;;
1786 *-*-sunos4* )
1787 USE_SUN=1
1788 USE_SUNOS=1
1789 USE_BSD=1
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SUN__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SUNOS__ 1
1796_ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799#define __BSD__ 1
1800_ACEOF
1801
1802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1803 ;;
1804 *-*-freebsd*)
1805 USE_BSD=1
1806 USE_FREEBSD=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __FREEBSD__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __BSD__ 1
1813_ACEOF
1814
1815 DEFAULT_DEFAULT_wxUSE_GTK=1
1816 ;;
1817 *-*-openbsd*)
1818 USE_BSD=1
1819 USE_OPENBSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821#define __OPENBSD__ 1
1822_ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825#define __BSD__ 1
1826_ACEOF
1827
1828 DEFAULT_DEFAULT_wxUSE_GTK=1
1829 ;;
1830 *-*-netbsd*)
1831 USE_BSD=1
1832 USE_NETBSD=1
1833 cat >>confdefs.h <<\_ACEOF
1834#define __NETBSD__ 1
1835_ACEOF
1836
1837 cat >>confdefs.h <<\_ACEOF
1838#define __BSD__ 1
1839_ACEOF
1840
1841 DEFAULT_DEFAULT_wxUSE_GTK=1
1842 ;;
1843 *-*-osf* )
1844 USE_ALPHA=1
1845 USE_OSF=1
1846 cat >>confdefs.h <<\_ACEOF
1847#define __ALPHA__ 1
1848_ACEOF
1849
1850 cat >>confdefs.h <<\_ACEOF
1851#define __OSF__ 1
1852_ACEOF
1853
1854 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1855 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1856 ;;
1857 *-*-dgux5* )
1858 USE_ALPHA=1
1859 USE_SVR4=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __SVR4__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 ;;
1870 *-*-sysv5* )
1871 USE_SYSV=1
1872 USE_SVR4=1
1873 cat >>confdefs.h <<\_ACEOF
1874#define __SYSV__ 1
1875_ACEOF
1876
1877 cat >>confdefs.h <<\_ACEOF
1878#define __SVR4__ 1
1879_ACEOF
1880
1881 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882 ;;
1883 *-*-aix* )
1884 USE_AIX=1
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 SO_SUFFIX=a
1888 cat >>confdefs.h <<\_ACEOF
1889#define __AIX__ 1
1890_ACEOF
1891
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SYSV__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902
1903 *-*-*UnixWare*)
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 USE_UNIXWARE=1
1907 cat >>confdefs.h <<\_ACEOF
1908#define __UNIXWARE__ 1
1909_ACEOF
1910
1911 ;;
1912
1913 *-*-cygwin* | *-*-mingw32* )
1914 SO_SUFFIX=dll
1915 PROGRAM_EXT=".exe"
1916 RESCOMP=windres
1917 DEFAULT_DEFAULT_wxUSE_MSW=1
1918 ;;
1919
1920 *-pc-msdosdjgpp )
1921 USE_UNIX=0
1922 USE_DOS=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __DOS__ 1
1925_ACEOF
1926
1927 PROGRAM_EXT=".exe"
1928 DEFAULT_DEFAULT_wxUSE_MGL=1
1929 LIBS="$LIBS -lstdc++"
1930 ;;
1931
1932 *-pc-os2_emx | *-pc-os2-emx )
1933 cat >>confdefs.h <<\_ACEOF
1934#define __EMX__ 1
1935_ACEOF
1936
1937 USE_OS2=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __OS2__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_PM=1
1944 CXX=gcc
1945 LDFLAGS="$LDFLAGS -Zcrtdll"
1946 ac_executable_extensions=".exe"
1947 export ac_executable_extensions
1948 ac_save_IFS="$IFS"
1949 IFS='\\'
1950 ac_TEMP_PATH=
1951 for ac_dir in $PATH; do
1952 IFS=$ac_save_IFS
1953 if test -z "$ac_TEMP_PATH"; then
1954 ac_TEMP_PATH="$ac_dir"
1955 else
1956 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1957 fi
1958 done
1959 export PATH="$ac_TEMP_PATH"
1960 unset ac_TEMP_PATH
1961 ;;
1962
1963 powerpc-*-darwin* )
1964 USE_BSD=1
1965 USE_DARWIN=1
1966 SO_SUFFIX=dylib
1967 cat >>confdefs.h <<\_ACEOF
1968#define __BSD__ 1
1969_ACEOF
1970
1971 cat >>confdefs.h <<\_ACEOF
1972#define __DARWIN__ 1
1973_ACEOF
1974
1975 cat >>confdefs.h <<\_ACEOF
1976#define __POWERPC__ 1
1977_ACEOF
1978
1979 cat >>confdefs.h <<\_ACEOF
1980#define TARGET_CARBON 1
1981_ACEOF
1982
1983 DEFAULT_DEFAULT_wxUSE_MAC=1
1984 ;;
1985
1986 *-*-beos* )
1987 USE_BEOS=1
1988 cat >>confdefs.h <<\_ACEOF
1989#define __BEOS__ 1
1990_ACEOF
1991
1992 ;;
1993
1994 *)
1995 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1996echo "$as_me: error: unknown system type ${host}." >&2;}
1997 { (exit 1); exit 1; }; }
1998esac
1999
2000
2001
2002
2003 wx_arg_cache_file="configarg.cache"
2004 echo "loading argument cache $wx_arg_cache_file"
2005 rm -f ${wx_arg_cache_file}.tmp
2006 touch ${wx_arg_cache_file}.tmp
2007 touch ${wx_arg_cache_file}
2008
2009
2010DEBUG_CONFIGURE=0
2011if test $DEBUG_CONFIGURE = 1; then
2012 DEFAULT_wxUSE_UNIVERSAL=no
2013 DEFAULT_wxUSE_STL=no
2014
2015 DEFAULT_wxUSE_NANOX=no
2016
2017 DEFAULT_wxUSE_THREADS=yes
2018
2019 DEFAULT_wxUSE_SHARED=yes
2020 DEFAULT_wxUSE_OPTIMISE=no
2021 DEFAULT_wxUSE_PROFILE=no
2022 DEFAULT_wxUSE_NO_DEPS=no
2023 DEFAULT_wxUSE_NO_RTTI=no
2024 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2025 DEFAULT_wxUSE_PERMISSIVE=no
2026 DEFAULT_wxUSE_DEBUG_FLAG=yes
2027 DEFAULT_wxUSE_DEBUG_INFO=yes
2028 DEFAULT_wxUSE_DEBUG_GDB=yes
2029 DEFAULT_wxUSE_MEM_TRACING=no
2030 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2031 DEFAULT_wxUSE_DMALLOC=no
2032 DEFAULT_wxUSE_APPLE_IEEE=no
2033
2034 DEFAULT_wxUSE_EXCEPTIONS=no
2035 DEFAULT_wxUSE_LOG=yes
2036 DEFAULT_wxUSE_LOGWINDOW=no
2037 DEFAULT_wxUSE_LOGGUI=no
2038 DEFAULT_wxUSE_LOGDIALOG=no
2039
2040 DEFAULT_wxUSE_GUI=yes
2041 DEFAULT_wxUSE_CONTROLS=no
2042
2043 DEFAULT_wxUSE_REGEX=no
2044 DEFAULT_wxUSE_XML=no
2045 DEFAULT_wxUSE_EXPAT=no
2046 DEFAULT_wxUSE_ZLIB=no
2047 DEFAULT_wxUSE_LIBPNG=no
2048 DEFAULT_wxUSE_LIBJPEG=no
2049 DEFAULT_wxUSE_LIBTIFF=no
2050 DEFAULT_wxUSE_LIBXPM=no
2051 DEFAULT_wxUSE_LIBMSPACK=no
2052 DEFAULT_wxUSE_LIBSDL=no
2053 DEFAULT_wxUSE_ODBC=no
2054 DEFAULT_wxUSE_OPENGL=no
2055
2056 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2057 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2058 DEFAULT_wxUSE_STD_IOSTREAM=no
2059 DEFAULT_wxUSE_CMDLINE_PARSER=no
2060 DEFAULT_wxUSE_DATETIME=no
2061 DEFAULT_wxUSE_TIMER=no
2062 DEFAULT_wxUSE_STOPWATCH=no
2063 DEFAULT_wxUSE_FILE=no
2064 DEFAULT_wxUSE_FFILE=no
2065 DEFAULT_wxUSE_TEXTBUFFER=no
2066 DEFAULT_wxUSE_TEXTFILE=no
2067 DEFAULT_wxUSE_SOUND=no
2068 DEFAULT_wxUSE_INTL=no
2069 DEFAULT_wxUSE_CONFIG=no
2070 DEFAULT_wxUSE_FONTMAP=no
2071 DEFAULT_wxUSE_STREAMS=no
2072 DEFAULT_wxUSE_SOCKETS=no
2073 DEFAULT_wxUSE_OLE=no
2074 DEFAULT_wxUSE_DATAOBJ=no
2075 DEFAULT_wxUSE_DIALUP_MANAGER=no
2076 DEFAULT_wxUSE_JOYSTICK=no
2077 DEFAULT_wxUSE_DYNLIB_CLASS=no
2078 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2079 DEFAULT_wxUSE_LONGLONG=no
2080 DEFAULT_wxUSE_GEOMETRY=no
2081
2082 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2083 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2084 DEFAULT_wxUSE_POSTSCRIPT=no
2085
2086 DEFAULT_wxUSE_CLIPBOARD=no
2087 DEFAULT_wxUSE_TOOLTIPS=no
2088 DEFAULT_wxUSE_DRAG_AND_DROP=no
2089 DEFAULT_wxUSE_DRAGIMAGE=no
2090 DEFAULT_wxUSE_SPLINES=no
2091
8a7b1113 2092 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2093 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2094 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2095 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2096
2097 DEFAULT_wxUSE_RESOURCES=no
2098 DEFAULT_wxUSE_CONSTRAINTS=no
2099 DEFAULT_wxUSE_IPC=no
2100 DEFAULT_wxUSE_HELP=no
2101 DEFAULT_wxUSE_MS_HTML_HELP=no
2102 DEFAULT_wxUSE_WXHTML_HELP=no
2103 DEFAULT_wxUSE_TREELAYOUT=no
2104 DEFAULT_wxUSE_METAFILE=no
2105 DEFAULT_wxUSE_MIMETYPE=no
2106 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2107 DEFAULT_wxUSE_PROTOCOL=no
2108 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2109 DEFAULT_wxUSE_PROTOCOL_FTP=no
2110 DEFAULT_wxUSE_PROTOCOL_FILE=no
2111 DEFAULT_wxUSE_URL=no
2112
2113 DEFAULT_wxUSE_COMMONDLGS=no
2114 DEFAULT_wxUSE_CHOICEDLG=no
2115 DEFAULT_wxUSE_COLOURDLG=no
2116 DEFAULT_wxUSE_DIRDLG=no
2117 DEFAULT_wxUSE_FILEDLG=no
2118 DEFAULT_wxUSE_FINDREPLDLG=no
2119 DEFAULT_wxUSE_FONTDLG=no
2120 DEFAULT_wxUSE_MSGDLG=no
2121 DEFAULT_wxUSE_NUMBERDLG=no
2122 DEFAULT_wxUSE_TEXTDLG=no
2123 DEFAULT_wxUSE_SPLASH=no
2124 DEFAULT_wxUSE_STARTUP_TIPS=no
2125 DEFAULT_wxUSE_PROGRESSDLG=no
2126 DEFAULT_wxUSE_WIZARDDLG=no
2127
2128 DEFAULT_wxUSE_MENUS=no
2129 DEFAULT_wxUSE_MINIFRAME=no
2130 DEFAULT_wxUSE_HTML=no
646b6ec1 2131 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2132 DEFAULT_wxUSE_FILESYSTEM=no
2133 DEFAULT_wxUSE_FS_INET=no
2134 DEFAULT_wxUSE_FS_ZIP=no
2135 DEFAULT_wxUSE_BUSYINFO=no
2136 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2137 DEFAULT_wxUSE_VALIDATORS=no
2138
2139 DEFAULT_wxUSE_ACCEL=no
2140 DEFAULT_wxUSE_BUTTON=no
2141 DEFAULT_wxUSE_BMPBUTTON=no
2142 DEFAULT_wxUSE_CALCTRL=no
2143 DEFAULT_wxUSE_CARET=no
2144 DEFAULT_wxUSE_CHECKBOX=no
2145 DEFAULT_wxUSE_CHECKLST=no
2146 DEFAULT_wxUSE_CHOICE=no
2147 DEFAULT_wxUSE_COMBOBOX=no
2148 DEFAULT_wxUSE_DISPLAY=no
2149 DEFAULT_wxUSE_GAUGE=no
2150 DEFAULT_wxUSE_GRID=no
2151 DEFAULT_wxUSE_IMAGLIST=no
2152 DEFAULT_wxUSE_LISTBOOK=no
2153 DEFAULT_wxUSE_LISTBOX=no
2154 DEFAULT_wxUSE_LISTCTRL=no
2155 DEFAULT_wxUSE_NOTEBOOK=no
2156 DEFAULT_wxUSE_RADIOBOX=no
2157 DEFAULT_wxUSE_RADIOBTN=no
2158 DEFAULT_wxUSE_SASH=no
2159 DEFAULT_wxUSE_SCROLLBAR=no
2160 DEFAULT_wxUSE_SLIDER=no
2161 DEFAULT_wxUSE_SPINBTN=no
2162 DEFAULT_wxUSE_SPINCTRL=no
2163 DEFAULT_wxUSE_SPLITTER=no
2164 DEFAULT_wxUSE_STATBMP=no
2165 DEFAULT_wxUSE_STATBOX=no
2166 DEFAULT_wxUSE_STATLINE=no
2167 DEFAULT_wxUSE_STATTEXT=no
2168 DEFAULT_wxUSE_STATUSBAR=yes
2169 DEFAULT_wxUSE_TABDIALOG=no
2170 DEFAULT_wxUSE_TEXTCTRL=no
2171 DEFAULT_wxUSE_TOGGLEBTN=no
2172 DEFAULT_wxUSE_TOOLBAR=no
2173 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2174 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2175 DEFAULT_wxUSE_TREECTRL=no
2176 DEFAULT_wxUSE_POPUPWIN=no
2177 DEFAULT_wxUSE_TIPWINDOW=no
2178
2179 DEFAULT_wxUSE_UNICODE=no
2180 DEFAULT_wxUSE_UNICODE_MSLU=no
2181 DEFAULT_wxUSE_WCSRTOMBS=no
2182
2183 DEFAULT_wxUSE_PALETTE=no
2184 DEFAULT_wxUSE_IMAGE=no
2185 DEFAULT_wxUSE_GIF=no
2186 DEFAULT_wxUSE_PCX=no
2187 DEFAULT_wxUSE_PNM=no
2188 DEFAULT_wxUSE_IFF=no
2189 DEFAULT_wxUSE_XPM=no
2190 DEFAULT_wxUSE_ICO_CUR=no
2191 DEFAULT_wxUSE_ACCESSIBILITY=no
2192
2193 DEFAULT_wxUSE_MONOLITHIC=no
2194 DEFAULT_wxUSE_PLUGINS=no
2195 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2196else
2197 DEFAULT_wxUSE_UNIVERSAL=no
2198 DEFAULT_wxUSE_STL=no
2199
2200 DEFAULT_wxUSE_NANOX=no
2201
2202 DEFAULT_wxUSE_THREADS=yes
2203
2204 DEFAULT_wxUSE_SHARED=yes
2205 DEFAULT_wxUSE_OPTIMISE=yes
2206 DEFAULT_wxUSE_PROFILE=no
2207 DEFAULT_wxUSE_NO_DEPS=no
2208 DEFAULT_wxUSE_NO_RTTI=no
2209 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2210 DEFAULT_wxUSE_PERMISSIVE=no
2211 DEFAULT_wxUSE_DEBUG_FLAG=no
2212 DEFAULT_wxUSE_DEBUG_INFO=no
2213 DEFAULT_wxUSE_DEBUG_GDB=no
2214 DEFAULT_wxUSE_MEM_TRACING=no
2215 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2216 DEFAULT_wxUSE_DMALLOC=no
2217 DEFAULT_wxUSE_APPLE_IEEE=yes
2218
2219 DEFAULT_wxUSE_EXCEPTIONS=yes
2220 DEFAULT_wxUSE_LOG=yes
2221 DEFAULT_wxUSE_LOGWINDOW=yes
2222 DEFAULT_wxUSE_LOGGUI=yes
2223 DEFAULT_wxUSE_LOGDIALOG=yes
2224
2225 DEFAULT_wxUSE_GUI=yes
2226
2227 DEFAULT_wxUSE_REGEX=yes
2228 DEFAULT_wxUSE_XML=yes
2229 DEFAULT_wxUSE_EXPAT=yes
2230 DEFAULT_wxUSE_ZLIB=yes
2231 DEFAULT_wxUSE_LIBPNG=yes
2232 DEFAULT_wxUSE_LIBJPEG=yes
2233 DEFAULT_wxUSE_LIBTIFF=yes
2234 DEFAULT_wxUSE_LIBXPM=yes
2235 DEFAULT_wxUSE_LIBMSPACK=yes
2236 DEFAULT_wxUSE_LIBSDL=no
2237 DEFAULT_wxUSE_ODBC=no
2238 DEFAULT_wxUSE_OPENGL=no
2239
2240 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2241 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2242 DEFAULT_wxUSE_STD_IOSTREAM=no
2243 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2244 DEFAULT_wxUSE_DATETIME=yes
2245 DEFAULT_wxUSE_TIMER=yes
2246 DEFAULT_wxUSE_STOPWATCH=yes
2247 DEFAULT_wxUSE_FILE=yes
2248 DEFAULT_wxUSE_FFILE=yes
2249 DEFAULT_wxUSE_TEXTBUFFER=yes
2250 DEFAULT_wxUSE_TEXTFILE=yes
2251 DEFAULT_wxUSE_SOUND=yes
2252 DEFAULT_wxUSE_INTL=yes
2253 DEFAULT_wxUSE_CONFIG=yes
2254 DEFAULT_wxUSE_FONTMAP=yes
2255 DEFAULT_wxUSE_STREAMS=yes
2256 DEFAULT_wxUSE_SOCKETS=yes
2257 DEFAULT_wxUSE_OLE=yes
2258 DEFAULT_wxUSE_DATAOBJ=yes
2259 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2260 DEFAULT_wxUSE_JOYSTICK=yes
2261 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2262 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2263 DEFAULT_wxUSE_LONGLONG=yes
2264 DEFAULT_wxUSE_GEOMETRY=yes
2265
2266 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2267 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2268 DEFAULT_wxUSE_POSTSCRIPT=yes
2269
2270 DEFAULT_wxUSE_CLIPBOARD=yes
2271 DEFAULT_wxUSE_TOOLTIPS=yes
2272 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2273 DEFAULT_wxUSE_DRAGIMAGE=yes
2274 DEFAULT_wxUSE_SPLINES=yes
2275
8a7b1113 2276 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2277 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2278 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2279 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2280
2281 DEFAULT_wxUSE_RESOURCES=no
2282 DEFAULT_wxUSE_CONSTRAINTS=yes
2283 DEFAULT_wxUSE_IPC=yes
2284 DEFAULT_wxUSE_HELP=yes
2285 DEFAULT_wxUSE_MS_HTML_HELP=yes
2286 DEFAULT_wxUSE_WXHTML_HELP=yes
2287 DEFAULT_wxUSE_TREELAYOUT=yes
2288 DEFAULT_wxUSE_METAFILE=yes
2289 DEFAULT_wxUSE_MIMETYPE=yes
2290 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2291 DEFAULT_wxUSE_PROTOCOL=yes
2292 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2293 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2294 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2295 DEFAULT_wxUSE_URL=yes
2296
2297 DEFAULT_wxUSE_COMMONDLGS=yes
2298 DEFAULT_wxUSE_CHOICEDLG=yes
2299 DEFAULT_wxUSE_COLOURDLG=yes
2300 DEFAULT_wxUSE_DIRDLG=yes
2301 DEFAULT_wxUSE_FILEDLG=yes
2302 DEFAULT_wxUSE_FINDREPLDLG=yes
2303 DEFAULT_wxUSE_FONTDLG=yes
2304 DEFAULT_wxUSE_MSGDLG=yes
2305 DEFAULT_wxUSE_NUMBERDLG=yes
2306 DEFAULT_wxUSE_TEXTDLG=yes
2307 DEFAULT_wxUSE_SPLASH=yes
2308 DEFAULT_wxUSE_STARTUP_TIPS=yes
2309 DEFAULT_wxUSE_PROGRESSDLG=yes
2310 DEFAULT_wxUSE_WIZARDDLG=yes
2311
2312 DEFAULT_wxUSE_MENUS=yes
2313 DEFAULT_wxUSE_MINIFRAME=yes
2314 DEFAULT_wxUSE_HTML=yes
646b6ec1 2315 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_FILESYSTEM=yes
2317 DEFAULT_wxUSE_FS_INET=yes
2318 DEFAULT_wxUSE_FS_ZIP=yes
2319 DEFAULT_wxUSE_BUSYINFO=yes
2320 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2321 DEFAULT_wxUSE_VALIDATORS=yes
2322
2323 DEFAULT_wxUSE_ACCEL=yes
2324 DEFAULT_wxUSE_BUTTON=yes
2325 DEFAULT_wxUSE_BMPBUTTON=yes
2326 DEFAULT_wxUSE_CALCTRL=yes
2327 DEFAULT_wxUSE_CARET=yes
2328 DEFAULT_wxUSE_CHECKBOX=yes
2329 DEFAULT_wxUSE_CHECKLST=yes
2330 DEFAULT_wxUSE_CHOICE=yes
2331 DEFAULT_wxUSE_COMBOBOX=yes
2332 DEFAULT_wxUSE_DISPLAY=yes
2333 DEFAULT_wxUSE_GAUGE=yes
2334 DEFAULT_wxUSE_GRID=yes
2335 DEFAULT_wxUSE_IMAGLIST=yes
2336 DEFAULT_wxUSE_LISTBOOK=yes
2337 DEFAULT_wxUSE_LISTBOX=yes
2338 DEFAULT_wxUSE_LISTCTRL=yes
2339 DEFAULT_wxUSE_NOTEBOOK=yes
2340 DEFAULT_wxUSE_RADIOBOX=yes
2341 DEFAULT_wxUSE_RADIOBTN=yes
2342 DEFAULT_wxUSE_SASH=yes
2343 DEFAULT_wxUSE_SCROLLBAR=yes
2344 DEFAULT_wxUSE_SLIDER=yes
2345 DEFAULT_wxUSE_SPINBTN=yes
2346 DEFAULT_wxUSE_SPINCTRL=yes
2347 DEFAULT_wxUSE_SPLITTER=yes
2348 DEFAULT_wxUSE_STATBMP=yes
2349 DEFAULT_wxUSE_STATBOX=yes
2350 DEFAULT_wxUSE_STATLINE=yes
2351 DEFAULT_wxUSE_STATTEXT=yes
2352 DEFAULT_wxUSE_STATUSBAR=yes
2353 DEFAULT_wxUSE_TABDIALOG=no
2354 DEFAULT_wxUSE_TEXTCTRL=yes
2355 DEFAULT_wxUSE_TOGGLEBTN=yes
2356 DEFAULT_wxUSE_TOOLBAR=yes
2357 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2358 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2359 DEFAULT_wxUSE_TREECTRL=yes
2360 DEFAULT_wxUSE_POPUPWIN=yes
2361 DEFAULT_wxUSE_TIPWINDOW=yes
2362
2363 DEFAULT_wxUSE_UNICODE=no
2364 DEFAULT_wxUSE_UNICODE_MSLU=yes
2365 DEFAULT_wxUSE_WCSRTOMBS=no
2366
2367 DEFAULT_wxUSE_PALETTE=yes
2368 DEFAULT_wxUSE_IMAGE=yes
2369 DEFAULT_wxUSE_GIF=yes
2370 DEFAULT_wxUSE_PCX=yes
2371 DEFAULT_wxUSE_IFF=no
2372 DEFAULT_wxUSE_PNM=yes
2373 DEFAULT_wxUSE_XPM=yes
2374 DEFAULT_wxUSE_ICO_CUR=yes
2375 DEFAULT_wxUSE_ACCESSIBILITY=no
2376
2377 DEFAULT_wxUSE_MONOLITHIC=no
2378 DEFAULT_wxUSE_PLUGINS=no
2379 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2380
2381 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2382fi
2383
2384
2385
2386for toolkit in `echo $ALL_TOOLKITS`; do
2387 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2388 if test "x$LINE" != "x" ; then
2389 has_toolkit_in_cache=1
2390 eval "DEFAULT_$LINE"
2391 eval "CACHE_$toolkit=1"
2392 fi
2393done
2394
2395
2396
2397 enablestring=
2398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2399echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2400 no_cache=0
2401 # Check whether --enable-gui or --disable-gui was given.
2402if test "${enable_gui+set}" = set; then
2403 enableval="$enable_gui"
2404
2405 if test "$enableval" = yes; then
2406 ac_cv_use_gui='wxUSE_GUI=yes'
2407 else
2408 ac_cv_use_gui='wxUSE_GUI=no'
2409 fi
2410
2411else
2412
2413 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2421
2422fi;
2423
2424 eval "$ac_cv_use_gui"
2425 if test "$no_cache" != 1; then
2426 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2427 fi
2428
2429 if test "$wxUSE_GUI" = yes; then
2430 echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
2432 else
2433 echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6
2435 fi
2436
2437
2438 enablestring=
2439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2440echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2441 no_cache=0
2442 # Check whether --enable-monolithic or --disable-monolithic was given.
2443if test "${enable_monolithic+set}" = set; then
2444 enableval="$enable_monolithic"
2445
2446 if test "$enableval" = yes; then
2447 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2448 else
2449 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2450 fi
2451
2452else
2453
2454 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2455 if test "x$LINE" != x ; then
2456 eval "DEFAULT_$LINE"
2457 else
2458 no_cache=1
2459 fi
2460
2461 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2462
2463fi;
2464
2465 eval "$ac_cv_use_monolithic"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_MONOLITHIC" = yes; then
2471 echo "$as_me:$LINENO: result: yes" >&5
2472echo "${ECHO_T}yes" >&6
2473 else
2474 echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6
2476 fi
2477
2478
2479 enablestring=
2480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2481echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2482 no_cache=0
2483 # Check whether --enable-plugins or --disable-plugins was given.
2484if test "${enable_plugins+set}" = set; then
2485 enableval="$enable_plugins"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2489 else
2490 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2491 fi
2492
2493else
2494
2495 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2503
2504fi;
2505
2506 eval "$ac_cv_use_plugins"
2507 if test "$no_cache" != 1; then
2508 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2509 fi
2510
2511 if test "$wxUSE_PLUGINS" = yes; then
2512 echo "$as_me:$LINENO: result: yes" >&5
2513echo "${ECHO_T}yes" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517 fi
2518
2519
2520if test "$wxUSE_GUI" = "yes"; then
2521
2522
2523 enablestring=
2524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2525echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2526 no_cache=0
2527 # Check whether --enable-universal or --disable-universal was given.
2528if test "${enable_universal+set}" = set; then
2529 enableval="$enable_universal"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2533 else
2534 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2535 fi
2536
2537else
2538
2539 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2547
2548fi;
2549
2550 eval "$ac_cv_use_universal"
2551 if test "$no_cache" != 1; then
2552 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2553 fi
2554
2555 if test "$wxUSE_UNIVERSAL" = yes; then
2556 echo "$as_me:$LINENO: result: yes" >&5
2557echo "${ECHO_T}yes" >&6
2558 else
2559 echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6
2561 fi
2562
2563
2564# Check whether --with-gtk or --without-gtk was given.
2565if test "${with_gtk+set}" = set; then
2566 withval="$with_gtk"
2567 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2568fi;
2569
2570# Check whether --with-motif or --without-motif was given.
2571if test "${with_motif+set}" = set; then
2572 withval="$with_motif"
2573 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2574fi;
2575
2576# Check whether --with-mac or --without-mac was given.
2577if test "${with_mac+set}" = set; then
2578 withval="$with_mac"
2579 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2580fi;
2581
2582# Check whether --with-cocoa or --without-cocoa was given.
2583if test "${with_cocoa+set}" = set; then
2584 withval="$with_cocoa"
2585 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2586fi;
2587
2588# Check whether --with-wine or --without-wine was given.
2589if test "${with_wine+set}" = set; then
2590 withval="$with_wine"
2591 wxUSE_WINE="$withval" CACHE_WINE=1
2592fi;
2593
2594# Check whether --with-msw or --without-msw was given.
2595if test "${with_msw+set}" = set; then
2596 withval="$with_msw"
2597 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-pm or --without-pm was given.
2601if test "${with_pm+set}" = set; then
2602 withval="$with_pm"
2603 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-mgl or --without-mgl was given.
2607if test "${with_mgl+set}" = set; then
2608 withval="$with_mgl"
2609 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-microwin or --without-microwin was given.
2613if test "${with_microwin+set}" = set; then
2614 withval="$with_microwin"
2615 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-x11 or --without-x11 was given.
2619if test "${with_x11+set}" = set; then
2620 withval="$with_x11"
2621 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624 enablestring=
2625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2626echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2627 no_cache=0
2628 # Check whether --enable-nanox or --disable-nanox was given.
2629if test "${enable_nanox+set}" = set; then
2630 enableval="$enable_nanox"
2631
2632 if test "$enableval" = yes; then
2633 ac_cv_use_nanox='wxUSE_NANOX=yes'
2634 else
2635 ac_cv_use_nanox='wxUSE_NANOX=no'
2636 fi
2637
2638else
2639
2640 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2641 if test "x$LINE" != x ; then
2642 eval "DEFAULT_$LINE"
2643 else
2644 no_cache=1
2645 fi
2646
2647 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2648
2649fi;
2650
2651 eval "$ac_cv_use_nanox"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_NANOX" = yes; then
2657 echo "$as_me:$LINENO: result: yes" >&5
2658echo "${ECHO_T}yes" >&6
2659 else
2660 echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
2662 fi
2663
2664
2665
2666 enablestring=
2667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2668echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2669 no_cache=0
2670 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2671if test "${enable_gtk2+set}" = set; then
2672 enableval="$enable_gtk2"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2676 else
2677 ac_cv_use_gtk2='wxUSE_GTK2=no'
2678 fi
2679
2680else
2681
2682 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2690
2691fi;
2692
2693 eval "$ac_cv_use_gtk2"
2694 if test "$no_cache" != 1; then
2695 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2696 fi
2697
2698 if test "$wxUSE_GTK2" = yes; then
2699 echo "$as_me:$LINENO: result: yes" >&5
2700echo "${ECHO_T}yes" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6
2704 fi
2705
2706
2707 enablestring=
2708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2709echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2710 no_cache=0
2711 # Check whether --enable-gpe or --disable-gpe was given.
2712if test "${enable_gpe+set}" = set; then
2713 enableval="$enable_gpe"
2714
2715 if test "$enableval" = yes; then
2716 ac_cv_use_gpe='wxUSE_GPE=yes'
2717 else
2718 ac_cv_use_gpe='wxUSE_GPE=no'
2719 fi
2720
2721else
2722
2723 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
2730 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2731
2732fi;
2733
2734 eval "$ac_cv_use_gpe"
2735 if test "$no_cache" != 1; then
2736 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2737 fi
2738
2739 if test "$wxUSE_GPE" = yes; then
2740 echo "$as_me:$LINENO: result: yes" >&5
2741echo "${ECHO_T}yes" >&6
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
2745 fi
2746
2747
2748
2749 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2750echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2751 no_cache=0
2752
2753# Check whether --with-libpng or --without-libpng was given.
2754if test "${with_libpng+set}" = set; then
2755 withval="$with_libpng"
2756
2757 if test "$withval" = yes; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2759 elif test "$withval" = no; then
2760 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2761 elif test "$withval" = sys; then
2762 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2763 elif test "$withval" = builtin; then
2764 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2765 else
2766 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2767echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2781
2782fi;
2783
2784 eval "$ac_cv_use_libpng"
2785 if test "$no_cache" != 1; then
2786 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2787 fi
2788
2789 if test "$wxUSE_LIBPNG" = yes; then
2790 echo "$as_me:$LINENO: result: yes" >&5
2791echo "${ECHO_T}yes" >&6
2792 elif test "$wxUSE_LIBPNG" = no; then
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
2795 elif test "$wxUSE_LIBPNG" = sys; then
2796 echo "$as_me:$LINENO: result: system version" >&5
2797echo "${ECHO_T}system version" >&6
2798 elif test "$wxUSE_LIBPNG" = builtin; then
2799 echo "$as_me:$LINENO: result: builtin version" >&5
2800echo "${ECHO_T}builtin version" >&6
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807
2808 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2809echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2810 no_cache=0
2811
2812# Check whether --with-libjpeg or --without-libjpeg was given.
2813if test "${with_libjpeg+set}" = set; then
2814 withval="$with_libjpeg"
2815
2816 if test "$withval" = yes; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2818 elif test "$withval" = no; then
2819 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2820 elif test "$withval" = sys; then
2821 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2822 elif test "$withval" = builtin; then
2823 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2824 else
2825 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2826echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829
2830else
2831
2832 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2840
2841fi;
2842
2843 eval "$ac_cv_use_libjpeg"
2844 if test "$no_cache" != 1; then
2845 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2846 fi
2847
2848 if test "$wxUSE_LIBJPEG" = yes; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850echo "${ECHO_T}yes" >&6
2851 elif test "$wxUSE_LIBJPEG" = no; then
2852 echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6
2854 elif test "$wxUSE_LIBJPEG" = sys; then
2855 echo "$as_me:$LINENO: result: system version" >&5
2856echo "${ECHO_T}system version" >&6
2857 elif test "$wxUSE_LIBJPEG" = builtin; then
2858 echo "$as_me:$LINENO: result: builtin version" >&5
2859echo "${ECHO_T}builtin version" >&6
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866
2867 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2868echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2869 no_cache=0
2870
2871# Check whether --with-libtiff or --without-libtiff was given.
2872if test "${with_libtiff+set}" = set; then
2873 withval="$with_libtiff"
2874
2875 if test "$withval" = yes; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2877 elif test "$withval" = no; then
2878 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2879 elif test "$withval" = sys; then
2880 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2881 elif test "$withval" = builtin; then
2882 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2883 else
2884 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2885echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2886 { (exit 1); exit 1; }; }
2887 fi
2888
2889else
2890
2891 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2892 if test "x$LINE" != x ; then
2893 eval "DEFAULT_$LINE"
2894 else
2895 no_cache=1
2896 fi
2897
2898 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2899
2900fi;
2901
2902 eval "$ac_cv_use_libtiff"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_LIBTIFF" = yes; then
2908 echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6
2910 elif test "$wxUSE_LIBTIFF" = no; then
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
2913 elif test "$wxUSE_LIBTIFF" = sys; then
2914 echo "$as_me:$LINENO: result: system version" >&5
2915echo "${ECHO_T}system version" >&6
2916 elif test "$wxUSE_LIBTIFF" = builtin; then
2917 echo "$as_me:$LINENO: result: builtin version" >&5
2918echo "${ECHO_T}builtin version" >&6
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925
2926 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2927echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2928 no_cache=0
2929
2930# Check whether --with-libxpm or --without-libxpm was given.
2931if test "${with_libxpm+set}" = set; then
2932 withval="$with_libxpm"
2933
2934 if test "$withval" = yes; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2936 elif test "$withval" = no; then
2937 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2938 elif test "$withval" = sys; then
2939 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2940 elif test "$withval" = builtin; then
2941 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2942 else
2943 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2944echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2945 { (exit 1); exit 1; }; }
2946 fi
2947
2948else
2949
2950 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2958
2959fi;
2960
2961 eval "$ac_cv_use_libxpm"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_LIBXPM" = yes; then
2967 echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6
2969 elif test "$wxUSE_LIBXPM" = no; then
2970 echo "$as_me:$LINENO: result: no" >&5
2971echo "${ECHO_T}no" >&6
2972 elif test "$wxUSE_LIBXPM" = sys; then
2973 echo "$as_me:$LINENO: result: system version" >&5
2974echo "${ECHO_T}system version" >&6
2975 elif test "$wxUSE_LIBXPM" = builtin; then
2976 echo "$as_me:$LINENO: result: builtin version" >&5
2977echo "${ECHO_T}builtin version" >&6
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984
2985 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2986echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2987 no_cache=0
2988
2989# Check whether --with-libmspack or --without-libmspack was given.
2990if test "${with_libmspack+set}" = set; then
2991 withval="$with_libmspack"
2992
2993 if test "$withval" = yes; then
2994 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2995 else
2996 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2997 fi
2998
2999else
3000
3001 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3002 if test "x$LINE" != x ; then
3003 eval "DEFAULT_$LINE"
3004 else
3005 no_cache=1
3006 fi
3007
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3009
3010fi;
3011
3012 eval "$ac_cv_use_libmspack"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$wxUSE_LIBMSPACK" = yes; then
3018 echo "$as_me:$LINENO: result: yes" >&5
3019echo "${ECHO_T}yes" >&6
3020 else
3021 echo "$as_me:$LINENO: result: no" >&5
3022echo "${ECHO_T}no" >&6
3023 fi
3024
3025
3026 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3027echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3028 no_cache=0
3029
3030# Check whether --with-sdl or --without-sdl was given.
3031if test "${with_sdl+set}" = set; then
3032 withval="$with_sdl"
3033
3034 if test "$withval" = yes; then
3035 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3036 else
3037 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3038 fi
3039
3040else
3041
3042 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3043 if test "x$LINE" != x ; then
3044 eval "DEFAULT_$LINE"
3045 else
3046 no_cache=1
3047 fi
3048
3049 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3050
3051fi;
3052
3053 eval "$ac_cv_use_sdl"
3054 if test "$no_cache" != 1; then
3055 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3056 fi
3057
3058 if test "$wxUSE_LIBSDL" = yes; then
3059 echo "$as_me:$LINENO: result: yes" >&5
3060echo "${ECHO_T}yes" >&6
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063echo "${ECHO_T}no" >&6
3064 fi
3065
3066
3067 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3068echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3069 no_cache=0
3070
3071# Check whether --with-opengl or --without-opengl was given.
3072if test "${with_opengl+set}" = set; then
3073 withval="$with_opengl"
3074
3075 if test "$withval" = yes; then
3076 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3077 else
3078 ac_cv_use_opengl='wxUSE_OPENGL=no'
3079 fi
3080
3081else
3082
3083 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3084 if test "x$LINE" != x ; then
3085 eval "DEFAULT_$LINE"
3086 else
3087 no_cache=1
3088 fi
3089
3090 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3091
3092fi;
3093
3094 eval "$ac_cv_use_opengl"
3095 if test "$no_cache" != 1; then
3096 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3097 fi
3098
3099 if test "$wxUSE_OPENGL" = yes; then
3100 echo "$as_me:$LINENO: result: yes" >&5
3101echo "${ECHO_T}yes" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105 fi
3106
3107
3108fi
3109
3110
3111 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3112echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3113 no_cache=0
3114
3115# Check whether --with-dmalloc or --without-dmalloc was given.
3116if test "${with_dmalloc+set}" = set; then
3117 withval="$with_dmalloc"
3118
3119 if test "$withval" = yes; then
3120 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3121 else
3122 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3123 fi
3124
3125else
3126
3127 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3135
3136fi;
3137
3138 eval "$ac_cv_use_dmalloc"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_DMALLOC" = yes; then
3144 echo "$as_me:$LINENO: result: yes" >&5
3145echo "${ECHO_T}yes" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149 fi
3150
3151
3152 echo "$as_me:$LINENO: checking for --with-regex" >&5
3153echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3154 no_cache=0
3155
3156# Check whether --with-regex or --without-regex was given.
3157if test "${with_regex+set}" = set; then
3158 withval="$with_regex"
3159
3160 if test "$withval" = yes; then
3161 ac_cv_use_regex='wxUSE_REGEX=yes'
3162 elif test "$withval" = no; then
3163 ac_cv_use_regex='wxUSE_REGEX=no'
3164 elif test "$withval" = sys; then
3165 ac_cv_use_regex='wxUSE_REGEX=sys'
3166 elif test "$withval" = builtin; then
3167 ac_cv_use_regex='wxUSE_REGEX=builtin'
3168 else
3169 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3170echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3171 { (exit 1); exit 1; }; }
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3184
3185fi;
3186
3187 eval "$ac_cv_use_regex"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_REGEX" = yes; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194echo "${ECHO_T}yes" >&6
3195 elif test "$wxUSE_REGEX" = no; then
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198 elif test "$wxUSE_REGEX" = sys; then
3199 echo "$as_me:$LINENO: result: system version" >&5
3200echo "${ECHO_T}system version" >&6
3201 elif test "$wxUSE_REGEX" = builtin; then
3202 echo "$as_me:$LINENO: result: builtin version" >&5
3203echo "${ECHO_T}builtin version" >&6
3204 else
3205 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3206echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3207 { (exit 1); exit 1; }; }
3208 fi
3209
3210
3211 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3212echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3213 no_cache=0
3214
3215# Check whether --with-zlib or --without-zlib was given.
3216if test "${with_zlib+set}" = set; then
3217 withval="$with_zlib"
3218
3219 if test "$withval" = yes; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3221 elif test "$withval" = no; then
3222 ac_cv_use_zlib='wxUSE_ZLIB=no'
3223 elif test "$withval" = sys; then
3224 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3225 elif test "$withval" = builtin; then
3226 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3227 else
3228 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3229echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233else
3234
3235 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3236 if test "x$LINE" != x ; then
3237 eval "DEFAULT_$LINE"
3238 else
3239 no_cache=1
3240 fi
3241
3242 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3243
3244fi;
3245
3246 eval "$ac_cv_use_zlib"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_ZLIB" = yes; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254 elif test "$wxUSE_ZLIB" = no; then
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257 elif test "$wxUSE_ZLIB" = sys; then
3258 echo "$as_me:$LINENO: result: system version" >&5
3259echo "${ECHO_T}system version" >&6
3260 elif test "$wxUSE_ZLIB" = builtin; then
3261 echo "$as_me:$LINENO: result: builtin version" >&5
3262echo "${ECHO_T}builtin version" >&6
3263 else
3264 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3265echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269
3270 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3271echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3272 no_cache=0
3273
3274# Check whether --with-odbc or --without-odbc was given.
3275if test "${with_odbc+set}" = set; then
3276 withval="$with_odbc"
3277
3278 if test "$withval" = yes; then
3279 ac_cv_use_odbc='wxUSE_ODBC=yes'
3280 elif test "$withval" = no; then
3281 ac_cv_use_odbc='wxUSE_ODBC=no'
3282 elif test "$withval" = sys; then
3283 ac_cv_use_odbc='wxUSE_ODBC=sys'
3284 elif test "$withval" = builtin; then
3285 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3286 else
3287 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3288echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3289 { (exit 1); exit 1; }; }
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3302
3303fi;
3304
3305 eval "$ac_cv_use_odbc"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_ODBC" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313 elif test "$wxUSE_ODBC" = no; then
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316 elif test "$wxUSE_ODBC" = sys; then
3317 echo "$as_me:$LINENO: result: system version" >&5
3318echo "${ECHO_T}system version" >&6
3319 elif test "$wxUSE_ODBC" = builtin; then
3320 echo "$as_me:$LINENO: result: builtin version" >&5
3321echo "${ECHO_T}builtin version" >&6
3322 else
3323 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3324echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3325 { (exit 1); exit 1; }; }
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: checking for --with-expat" >&5
3330echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3331 no_cache=0
3332
3333# Check whether --with-expat or --without-expat was given.
3334if test "${with_expat+set}" = set; then
3335 withval="$with_expat"
3336
3337 if test "$withval" = yes; then
3338 ac_cv_use_expat='wxUSE_EXPAT=yes'
3339 elif test "$withval" = no; then
3340 ac_cv_use_expat='wxUSE_EXPAT=no'
3341 elif test "$withval" = sys; then
3342 ac_cv_use_expat='wxUSE_EXPAT=sys'
3343 elif test "$withval" = builtin; then
3344 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3345 else
3346 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3347echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351else
3352
3353 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3361
3362fi;
3363
3364 eval "$ac_cv_use_expat"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_EXPAT" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371echo "${ECHO_T}yes" >&6
3372 elif test "$wxUSE_EXPAT" = no; then
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375 elif test "$wxUSE_EXPAT" = sys; then
3376 echo "$as_me:$LINENO: result: system version" >&5
3377echo "${ECHO_T}system version" >&6
3378 elif test "$wxUSE_EXPAT" = builtin; then
3379 echo "$as_me:$LINENO: result: builtin version" >&5
3380echo "${ECHO_T}builtin version" >&6
3381 else
3382 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3383echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3384 { (exit 1); exit 1; }; }
3385 fi
3386
3387
3388
3389
3390 enablestring=
3391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3392echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3393 no_cache=0
3394 # Check whether --enable-shared or --disable-shared was given.
3395if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397
3398 if test "$enableval" = yes; then
3399 ac_cv_use_shared='wxUSE_SHARED=yes'
3400 else
3401 ac_cv_use_shared='wxUSE_SHARED=no'
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3414
3415fi;
3416
3417 eval "$ac_cv_use_shared"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_SHARED" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 fi
3429
3430
3431 enablestring=
3432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3433echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3434 no_cache=0
3435 # Check whether --enable-optimise or --disable-optimise was given.
3436if test "${enable_optimise+set}" = set; then
3437 enableval="$enable_optimise"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3441 else
3442 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3443 fi
3444
3445else
3446
3447 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3455
3456fi;
3457
3458 eval "$ac_cv_use_optimise"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_OPTIMISE" = yes; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465echo "${ECHO_T}yes" >&6
3466 else
3467 echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6
3469 fi
3470
3471
3472 enablestring=
3473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3474echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3475 no_cache=0
3476 # Check whether --enable-debug or --disable-debug was given.
3477if test "${enable_debug+set}" = set; then
3478 enableval="$enable_debug"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_debug='wxUSE_DEBUG=yes'
3482 else
3483 ac_cv_use_debug='wxUSE_DEBUG=no'
3484 fi
3485
3486else
3487
3488 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3496
3497fi;
3498
3499 eval "$ac_cv_use_debug"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_DEBUG" = yes; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506echo "${ECHO_T}yes" >&6
3507 else
3508 echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6
3510 fi
3511
3512
3513 enablestring=
3514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3515echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3516 no_cache=0
3517 # Check whether --enable-stl or --disable-stl was given.
3518if test "${enable_stl+set}" = set; then
3519 enableval="$enable_stl"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_stl='wxUSE_STL=yes'
3523 else
3524 ac_cv_use_stl='wxUSE_STL=no'
3525 fi
3526
3527else
3528
3529 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3537
3538fi;
3539
3540 eval "$ac_cv_use_stl"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_STL" = yes; then
3546 echo "$as_me:$LINENO: result: yes" >&5
3547echo "${ECHO_T}yes" >&6
3548 else
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
3551 fi
3552
3553if test "$USE_OS2" = "1"; then
3554
3555 enablestring=
3556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3557echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3558 no_cache=0
3559 # Check whether --enable-omf or --disable-omf was given.
3560if test "${enable_omf+set}" = set; then
3561 enableval="$enable_omf"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_omf='wxUSE_OMF=yes'
3565 else
3566 ac_cv_use_omf='wxUSE_OMF=no'
3567 fi
3568
3569else
3570
3571 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3579
3580fi;
3581
3582 eval "$ac_cv_use_omf"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_OMF" = yes; then
3588 echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
3590 else
3591 echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
3593 fi
3594
3595fi
3596
3597if test "$wxUSE_DEBUG" = "yes"; then
3598 DEFAULT_wxUSE_DEBUG_FLAG=yes
3599 DEFAULT_wxUSE_DEBUG_INFO=yes
3600 BUILD=debug
3601elif test "$wxUSE_DEBUG" = "no"; then
3602 DEFAULT_wxUSE_DEBUG_FLAG=no
3603 DEFAULT_wxUSE_DEBUG_INFO=no
3604 BUILD=release
3605fi
3606
3607
3608 enablestring=
3609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3610echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3611 no_cache=0
3612 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3613if test "${enable_debug_flag+set}" = set; then
3614 enableval="$enable_debug_flag"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3618 else
3619 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3620 fi
3621
3622else
3623
3624 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3632
3633fi;
3634
3635 eval "$ac_cv_use_debug_flag"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_DEBUG_FLAG" = yes; then
3641 echo "$as_me:$LINENO: result: yes" >&5
3642echo "${ECHO_T}yes" >&6
3643 else
3644 echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
3646 fi
3647
3648
3649 enablestring=
3650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3651echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3652 no_cache=0
3653 # Check whether --enable-debug_info or --disable-debug_info was given.
3654if test "${enable_debug_info+set}" = set; then
3655 enableval="$enable_debug_info"
3656
3657 if test "$enableval" = yes; then
3658 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3659 else
3660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3661 fi
3662
3663else
3664
3665 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3666 if test "x$LINE" != x ; then
3667 eval "DEFAULT_$LINE"
3668 else
3669 no_cache=1
3670 fi
3671
3672 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3673
3674fi;
3675
3676 eval "$ac_cv_use_debug_info"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_DEBUG_INFO" = yes; then
3682 echo "$as_me:$LINENO: result: yes" >&5
3683echo "${ECHO_T}yes" >&6
3684 else
3685 echo "$as_me:$LINENO: result: no" >&5
3686echo "${ECHO_T}no" >&6
3687 fi
3688
3689
3690 enablestring=
3691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3692echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3693 no_cache=0
3694 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3695if test "${enable_debug_gdb+set}" = set; then
3696 enableval="$enable_debug_gdb"
3697
3698 if test "$enableval" = yes; then
3699 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3700 else
3701 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3702 fi
3703
3704else
3705
3706 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3707 if test "x$LINE" != x ; then
3708 eval "DEFAULT_$LINE"
3709 else
3710 no_cache=1
3711 fi
3712
3713 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3714
3715fi;
3716
3717 eval "$ac_cv_use_debug_gdb"
3718 if test "$no_cache" != 1; then
3719 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3720 fi
3721
3722 if test "$wxUSE_DEBUG_GDB" = yes; then
3723 echo "$as_me:$LINENO: result: yes" >&5
3724echo "${ECHO_T}yes" >&6
3725 else
3726 echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728 fi
3729
3730
3731 enablestring=
3732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3733echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3734 no_cache=0
3735 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3736if test "${enable_debug_cntxt+set}" = set; then
3737 enableval="$enable_debug_cntxt"
3738
3739 if test "$enableval" = yes; then
3740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3741 else
3742 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3743 fi
3744
3745else
3746
3747 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3748 if test "x$LINE" != x ; then
3749 eval "DEFAULT_$LINE"
3750 else
3751 no_cache=1
3752 fi
3753
3754 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3755
3756fi;
3757
3758 eval "$ac_cv_use_debug_cntxt"
3759 if test "$no_cache" != 1; then
3760 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3761 fi
3762
3763 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3764 echo "$as_me:$LINENO: result: yes" >&5
3765echo "${ECHO_T}yes" >&6
3766 else
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
3769 fi
3770
3771
3772 enablestring=
3773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3774echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3775 no_cache=0
3776 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3777if test "${enable_mem_tracing+set}" = set; then
3778 enableval="$enable_mem_tracing"
3779
3780 if test "$enableval" = yes; then
3781 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3782 else
3783 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3784 fi
3785
3786else
3787
3788 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3789 if test "x$LINE" != x ; then
3790 eval "DEFAULT_$LINE"
3791 else
3792 no_cache=1
3793 fi
3794
3795 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3796
3797fi;
3798
3799 eval "$ac_cv_use_mem_tracing"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_MEM_TRACING" = yes; then
3805 echo "$as_me:$LINENO: result: yes" >&5
3806echo "${ECHO_T}yes" >&6
3807 else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
3810 fi
3811
3812
3813 enablestring=
3814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3815echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3816 no_cache=0
3817 # Check whether --enable-profile or --disable-profile was given.
3818if test "${enable_profile+set}" = set; then
3819 enableval="$enable_profile"
3820
3821 if test "$enableval" = yes; then
3822 ac_cv_use_profile='wxUSE_PROFILE=yes'
3823 else
3824 ac_cv_use_profile='wxUSE_PROFILE=no'
3825 fi
3826
3827else
3828
3829 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3837
3838fi;
3839
3840 eval "$ac_cv_use_profile"
3841 if test "$no_cache" != 1; then
3842 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3843 fi
3844
3845 if test "$wxUSE_PROFILE" = yes; then
3846 echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850echo "${ECHO_T}no" >&6
3851 fi
3852
3853
3854 enablestring=
3855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3856echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3857 no_cache=0
3858 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3859if test "${enable_no_rtti+set}" = set; then
3860 enableval="$enable_no_rtti"
3861
3862 if test "$enableval" = yes; then
3863 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3864 else
3865 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3866 fi
3867
3868else
3869
3870 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3871 if test "x$LINE" != x ; then
3872 eval "DEFAULT_$LINE"
3873 else
3874 no_cache=1
3875 fi
3876
3877 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3878
3879fi;
3880
3881 eval "$ac_cv_use_no_rtti"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_NO_RTTI" = yes; then
3887 echo "$as_me:$LINENO: result: yes" >&5
3888echo "${ECHO_T}yes" >&6
3889 else
3890 echo "$as_me:$LINENO: result: no" >&5
3891echo "${ECHO_T}no" >&6
3892 fi
3893
3894
3895 enablestring=
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3898 no_cache=0
3899 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3900if test "${enable_no_exceptions+set}" = set; then
3901 enableval="$enable_no_exceptions"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3905 else
3906 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3907 fi
3908
3909else
3910
3911 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3919
3920fi;
3921
3922 eval "$ac_cv_use_no_exceptions"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
3930 else
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
3933 fi
3934
3935
3936 enablestring=
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3939 no_cache=0
3940 # Check whether --enable-permissive or --disable-permissive was given.
3941if test "${enable_permissive+set}" = set; then
3942 enableval="$enable_permissive"
3943
3944 if test "$enableval" = yes; then
3945 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3946 else
3947 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3948 fi
3949
3950else
3951
3952 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3960
3961fi;
3962
3963 eval "$ac_cv_use_permissive"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_PERMISSIVE" = yes; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
3974 fi
3975
3976
3977 enablestring=
3978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3979echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3980 no_cache=0
3981 # Check whether --enable-no_deps or --disable-no_deps was given.
3982if test "${enable_no_deps+set}" = set; then
3983 enableval="$enable_no_deps"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3987 else
3988 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3989 fi
3990
3991else
3992
3993 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4001
4002fi;
4003
4004 eval "$ac_cv_use_no_deps"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_NO_DEPS" = yes; then
4010 echo "$as_me:$LINENO: result: yes" >&5
4011echo "${ECHO_T}yes" >&6
4012 else
4013 echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
4015 fi
4016
4017
4018
4019 enablestring=
4020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4021echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4022 no_cache=0
4023 # Check whether --enable-compat22 or --disable-compat22 was given.
4024if test "${enable_compat22+set}" = set; then
4025 enableval="$enable_compat22"
4026
4027 if test "$enableval" = yes; then
4028 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4029 else
4030 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4031 fi
4032
4033else
4034
4035 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4043
4044fi;
4045
4046 eval "$ac_cv_use_compat22"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4052 echo "$as_me:$LINENO: result: yes" >&5
4053echo "${ECHO_T}yes" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056echo "${ECHO_T}no" >&6
4057 fi
4058
4059
4060 enablestring=disable
4061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4062echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4063 no_cache=0
4064 # Check whether --enable-compat24 or --disable-compat24 was given.
4065if test "${enable_compat24+set}" = set; then
4066 enableval="$enable_compat24"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4070 else
4071 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4084
4085fi;
4086
4087 eval "$ac_cv_use_compat24"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4093 echo "$as_me:$LINENO: result: yes" >&5
4094echo "${ECHO_T}yes" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101# Check whether --enable-rpath or --disable-rpath was given.
4102if test "${enable_rpath+set}" = set; then
4103 enableval="$enable_rpath"
4104 wxRPATH_DIR="$enableval"
4105fi;
4106
ac1cb8d3 4107if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4108 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4109fi
4110
4111
4112
4113
4114 enablestring=
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-intl or --disable-intl was given.
4119if test "${enable_intl+set}" = set; then
4120 enableval="$enable_intl"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_intl='wxUSE_INTL=yes'
4124 else
4125 ac_cv_use_intl='wxUSE_INTL=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4138
4139fi;
4140
4141 eval "$ac_cv_use_intl"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_INTL" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
4155 enablestring=
4156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4157echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4158 no_cache=0
4159 # Check whether --enable-config or --disable-config was given.
4160if test "${enable_config+set}" = set; then
4161 enableval="$enable_config"
4162
4163 if test "$enableval" = yes; then
4164 ac_cv_use_config='wxUSE_CONFIG=yes'
4165 else
4166 ac_cv_use_config='wxUSE_CONFIG=no'
4167 fi
4168
4169else
4170
4171 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4179
4180fi;
4181
4182 eval "$ac_cv_use_config"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_CONFIG" = yes; then
4188 echo "$as_me:$LINENO: result: yes" >&5
4189echo "${ECHO_T}yes" >&6
4190 else
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193 fi
4194
4195
4196
4197 enablestring=
4198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4199echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4200 no_cache=0
4201 # Check whether --enable-protocols or --disable-protocols was given.
4202if test "${enable_protocols+set}" = set; then
4203 enableval="$enable_protocols"
4204
4205 if test "$enableval" = yes; then
4206 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4207 else
4208 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4209 fi
4210
4211else
4212
4213 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4214 if test "x$LINE" != x ; then
4215 eval "DEFAULT_$LINE"
4216 else
4217 no_cache=1
4218 fi
4219
4220 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4221
4222fi;
4223
4224 eval "$ac_cv_use_protocols"
4225 if test "$no_cache" != 1; then
4226 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4227 fi
4228
4229 if test "$wxUSE_PROTOCOL" = yes; then
4230 echo "$as_me:$LINENO: result: yes" >&5
4231echo "${ECHO_T}yes" >&6
4232 else
4233 echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235 fi
4236
4237
4238 enablestring=
4239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4240echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4241 no_cache=0
4242 # Check whether --enable-ftp or --disable-ftp was given.
4243if test "${enable_ftp+set}" = set; then
4244 enableval="$enable_ftp"
4245
4246 if test "$enableval" = yes; then
4247 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4248 else
4249 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4250 fi
4251
4252else
4253
4254 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4255 if test "x$LINE" != x ; then
4256 eval "DEFAULT_$LINE"
4257 else
4258 no_cache=1
4259 fi
4260
4261 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4262
4263fi;
4264
4265 eval "$ac_cv_use_ftp"
4266 if test "$no_cache" != 1; then
4267 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4268 fi
4269
4270 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4271 echo "$as_me:$LINENO: result: yes" >&5
4272echo "${ECHO_T}yes" >&6
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275echo "${ECHO_T}no" >&6
4276 fi
4277
4278
4279 enablestring=
4280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4281echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4282 no_cache=0
4283 # Check whether --enable-http or --disable-http was given.
4284if test "${enable_http+set}" = set; then
4285 enableval="$enable_http"
4286
4287 if test "$enableval" = yes; then
4288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4289 else
4290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4291 fi
4292
4293else
4294
4295 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4296 if test "x$LINE" != x ; then
4297 eval "DEFAULT_$LINE"
4298 else
4299 no_cache=1
4300 fi
4301
4302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4303
4304fi;
4305
4306 eval "$ac_cv_use_http"
4307 if test "$no_cache" != 1; then
4308 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4309 fi
4310
4311 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4312 echo "$as_me:$LINENO: result: yes" >&5
4313echo "${ECHO_T}yes" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6
4317 fi
4318
4319
4320 enablestring=
4321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4322echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4323 no_cache=0
4324 # Check whether --enable-fileproto or --disable-fileproto was given.
4325if test "${enable_fileproto+set}" = set; then
4326 enableval="$enable_fileproto"
4327
4328 if test "$enableval" = yes; then
4329 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4330 else
4331 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4332 fi
4333
4334else
4335
4336 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4337 if test "x$LINE" != x ; then
4338 eval "DEFAULT_$LINE"
4339 else
4340 no_cache=1
4341 fi
4342
4343 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4344
4345fi;
4346
4347 eval "$ac_cv_use_fileproto"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4353 echo "$as_me:$LINENO: result: yes" >&5
4354echo "${ECHO_T}yes" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357echo "${ECHO_T}no" >&6
4358 fi
4359
4360
4361 enablestring=
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4364 no_cache=0
4365 # Check whether --enable-sockets or --disable-sockets was given.
4366if test "${enable_sockets+set}" = set; then
4367 enableval="$enable_sockets"
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4371 else
4372 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4373 fi
4374
4375else
4376
4377 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4385
4386fi;
4387
4388 eval "$ac_cv_use_sockets"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_SOCKETS" = yes; then
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
4396 else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399 fi
4400
4401
4402 enablestring=
4403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4404echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4405 no_cache=0
4406 # Check whether --enable-ole or --disable-ole was given.
4407if test "${enable_ole+set}" = set; then
4408 enableval="$enable_ole"
4409
4410 if test "$enableval" = yes; then
4411 ac_cv_use_ole='wxUSE_OLE=yes'
4412 else
4413 ac_cv_use_ole='wxUSE_OLE=no'
4414 fi
4415
4416else
4417
4418 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4419 if test "x$LINE" != x ; then
4420 eval "DEFAULT_$LINE"
4421 else
4422 no_cache=1
4423 fi
4424
4425 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4426
4427fi;
4428
4429 eval "$ac_cv_use_ole"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_OLE" = yes; then
4435 echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6
4437 else
4438 echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440 fi
4441
4442
4443 enablestring=
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4445echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4446 no_cache=0
4447 # Check whether --enable-dataobj or --disable-dataobj was given.
4448if test "${enable_dataobj+set}" = set; then
4449 enableval="$enable_dataobj"
4450
4451 if test "$enableval" = yes; then
4452 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4453 else
4454 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4455 fi
4456
4457else
4458
4459 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4467
4468fi;
4469
4470 eval "$ac_cv_use_dataobj"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_DATAOBJ" = yes; then
4476 echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481 fi
4482
4483
4484
4485 enablestring=
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4488 no_cache=0
4489 # Check whether --enable-ipc or --disable-ipc was given.
4490if test "${enable_ipc+set}" = set; then
4491 enableval="$enable_ipc"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_ipc='wxUSE_IPC=yes'
4495 else
4496 ac_cv_use_ipc='wxUSE_IPC=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4509
4510fi;
4511
4512 eval "$ac_cv_use_ipc"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_IPC" = yes; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
4520 else
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
4523 fi
4524
4525
4526
4527 enablestring=
4528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4529echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4530 no_cache=0
4531 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4532if test "${enable_apple_ieee+set}" = set; then
4533 enableval="$enable_apple_ieee"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4537 else
4538 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4539 fi
4540
4541else
4542
4543 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4551
4552fi;
4553
4554 eval "$ac_cv_use_apple_ieee"
4555 if test "$no_cache" != 1; then
4556 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4557 fi
4558
4559 if test "$wxUSE_APPLE_IEEE" = yes; then
4560 echo "$as_me:$LINENO: result: yes" >&5
4561echo "${ECHO_T}yes" >&6
4562 else
4563 echo "$as_me:$LINENO: result: no" >&5
4564echo "${ECHO_T}no" >&6
4565 fi
4566
4567
4568 enablestring=
4569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4570echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4571 no_cache=0
4572 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4573if test "${enable_catch_segvs+set}" = set; then
4574 enableval="$enable_catch_segvs"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4578 else
4579 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4580 fi
4581
4582else
4583
4584 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4592
4593fi;
4594
4595 eval "$ac_cv_use_catch_segvs"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4601 echo "$as_me:$LINENO: result: yes" >&5
4602echo "${ECHO_T}yes" >&6
4603 else
4604 echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
4606 fi
4607
4608
4609 enablestring=
4610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4611echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4612 no_cache=0
4613 # Check whether --enable-cmdline or --disable-cmdline was given.
4614if test "${enable_cmdline+set}" = set; then
4615 enableval="$enable_cmdline"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4619 else
4620 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4633
4634fi;
4635
4636 eval "$ac_cv_use_cmdline"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
4644 else
4645 echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6
4647 fi
4648
4649
4650 enablestring=
4651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4652echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4653 no_cache=0
4654 # Check whether --enable-datetime or --disable-datetime was given.
4655if test "${enable_datetime+set}" = set; then
4656 enableval="$enable_datetime"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4660 else
4661 ac_cv_use_datetime='wxUSE_DATETIME=no'
4662 fi
4663
4664else
4665
4666 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4674
4675fi;
4676
4677 eval "$ac_cv_use_datetime"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_DATETIME" = yes; then
4683 echo "$as_me:$LINENO: result: yes" >&5
4684echo "${ECHO_T}yes" >&6
4685 else
4686 echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
4688 fi
4689
4690
4691 enablestring=
4692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4693echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4694 no_cache=0
4695 # Check whether --enable-dialupman or --disable-dialupman was given.
4696if test "${enable_dialupman+set}" = set; then
4697 enableval="$enable_dialupman"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4701 else
4702 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4703 fi
4704
4705else
4706
4707 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4715
4716fi;
4717
4718 eval "$ac_cv_use_dialupman"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4724 echo "$as_me:$LINENO: result: yes" >&5
4725echo "${ECHO_T}yes" >&6
4726 else
4727 echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6
4729 fi
4730
4731
4732 enablestring=
4733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4734echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4735 no_cache=0
4736 # Check whether --enable-dynlib or --disable-dynlib was given.
4737if test "${enable_dynlib+set}" = set; then
4738 enableval="$enable_dynlib"
4739
4740 if test "$enableval" = yes; then
4741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4742 else
4743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4744 fi
4745
4746else
4747
4748 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
4755 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4756
4757fi;
4758
4759 eval "$ac_cv_use_dynlib"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4765 echo "$as_me:$LINENO: result: yes" >&5
4766echo "${ECHO_T}yes" >&6
4767 else
4768 echo "$as_me:$LINENO: result: no" >&5
4769echo "${ECHO_T}no" >&6
4770 fi
4771
4772
4773 enablestring=
4774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4775echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4776 no_cache=0
4777 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4778if test "${enable_dynamicloader+set}" = set; then
4779 enableval="$enable_dynamicloader"
4780
4781 if test "$enableval" = yes; then
4782 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4783 else
4784 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4785 fi
4786
4787else
4788
4789 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4797
4798fi;
4799
4800 eval "$ac_cv_use_dynamicloader"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4806 echo "$as_me:$LINENO: result: yes" >&5
4807echo "${ECHO_T}yes" >&6
4808 else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811 fi
4812
4813
4814 enablestring=
4815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4816echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4817 no_cache=0
4818 # Check whether --enable-exceptions or --disable-exceptions was given.
4819if test "${enable_exceptions+set}" = set; then
4820 enableval="$enable_exceptions"
4821
4822 if test "$enableval" = yes; then
4823 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4824 else
4825 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4826 fi
4827
4828else
4829
4830 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 else
4834 no_cache=1
4835 fi
4836
4837 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4838
4839fi;
4840
4841 eval "$ac_cv_use_exceptions"
4842 if test "$no_cache" != 1; then
4843 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4844 fi
4845
4846 if test "$wxUSE_EXCEPTIONS" = yes; then
4847 echo "$as_me:$LINENO: result: yes" >&5
4848echo "${ECHO_T}yes" >&6
4849 else
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852 fi
4853
4854
4855 enablestring=
4856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4857echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4858 no_cache=0
4859 # Check whether --enable-ffile or --disable-ffile was given.
4860if test "${enable_ffile+set}" = set; then
4861 enableval="$enable_ffile"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_ffile='wxUSE_FFILE=yes'
4865 else
4866 ac_cv_use_ffile='wxUSE_FFILE=no'
4867 fi
4868
4869else
4870
4871 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4879
4880fi;
4881
4882 eval "$ac_cv_use_ffile"
4883 if test "$no_cache" != 1; then
4884 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4885 fi
4886
4887 if test "$wxUSE_FFILE" = yes; then
4888 echo "$as_me:$LINENO: result: yes" >&5
4889echo "${ECHO_T}yes" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893 fi
4894
4895
4896 enablestring=
4897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4898echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4899 no_cache=0
4900 # Check whether --enable-file or --disable-file was given.
4901if test "${enable_file+set}" = set; then
4902 enableval="$enable_file"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_file='wxUSE_FILE=yes'
4906 else
4907 ac_cv_use_file='wxUSE_FILE=no'
4908 fi
4909
4910else
4911
4912 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4920
4921fi;
4922
4923 eval "$ac_cv_use_file"
4924 if test "$no_cache" != 1; then
4925 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4926 fi
4927
4928 if test "$wxUSE_FILE" = yes; then
4929 echo "$as_me:$LINENO: result: yes" >&5
4930echo "${ECHO_T}yes" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934 fi
4935
4936
4937 enablestring=
4938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4939echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4940 no_cache=0
4941 # Check whether --enable-filesystem or --disable-filesystem was given.
4942if test "${enable_filesystem+set}" = set; then
4943 enableval="$enable_filesystem"
4944
4945 if test "$enableval" = yes; then
4946 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4947 else
4948 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4949 fi
4950
4951else
4952
4953 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4961
4962fi;
4963
4964 eval "$ac_cv_use_filesystem"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_FILESYSTEM" = yes; then
4970 echo "$as_me:$LINENO: result: yes" >&5
4971echo "${ECHO_T}yes" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975 fi
4976
4977
4978 enablestring=
4979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4980echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4981 no_cache=0
4982 # Check whether --enable-fontmap or --disable-fontmap was given.
4983if test "${enable_fontmap+set}" = set; then
4984 enableval="$enable_fontmap"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4988 else
4989 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5002
5003fi;
5004
5005 eval "$ac_cv_use_fontmap"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_FONTMAP" = yes; then
5011 echo "$as_me:$LINENO: result: yes" >&5
5012echo "${ECHO_T}yes" >&6
5013 else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016 fi
5017
5018
5019 enablestring=
5020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5021echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5022 no_cache=0
5023 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5024if test "${enable_fs_inet+set}" = set; then
5025 enableval="$enable_fs_inet"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5029 else
5030 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5031 fi
5032
5033else
5034
5035 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5043
5044fi;
5045
5046 eval "$ac_cv_use_fs_inet"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5049 fi
5050
5051 if test "$wxUSE_FS_INET" = yes; then
5052 echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057 fi
5058
5059
5060 enablestring=
5061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5062echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5063 no_cache=0
5064 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5065if test "${enable_fs_zip+set}" = set; then
5066 enableval="$enable_fs_zip"
5067
5068 if test "$enableval" = yes; then
5069 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5070 else
5071 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5072 fi
5073
5074else
5075
5076 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5084
5085fi;
5086
5087 eval "$ac_cv_use_fs_zip"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_FS_ZIP" = yes; then
5093 echo "$as_me:$LINENO: result: yes" >&5
5094echo "${ECHO_T}yes" >&6
5095 else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098 fi
5099
5100
5101 enablestring=
5102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5103echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5104 no_cache=0
5105 # Check whether --enable-geometry or --disable-geometry was given.
5106if test "${enable_geometry+set}" = set; then
5107 enableval="$enable_geometry"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5111 else
5112 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5113 fi
5114
5115else
5116
5117 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5125
5126fi;
5127
5128 eval "$ac_cv_use_geometry"
5129 if test "$no_cache" != 1; then
5130 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5131 fi
5132
5133 if test "$wxUSE_GEOMETRY" = yes; then
5134 echo "$as_me:$LINENO: result: yes" >&5
5135echo "${ECHO_T}yes" >&6
5136 else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139 fi
5140
5141
5142 enablestring=
5143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5144echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5145 no_cache=0
5146 # Check whether --enable-log or --disable-log was given.
5147if test "${enable_log+set}" = set; then
5148 enableval="$enable_log"
5149
5150 if test "$enableval" = yes; then
5151 ac_cv_use_log='wxUSE_LOG=yes'
5152 else
5153 ac_cv_use_log='wxUSE_LOG=no'
5154 fi
5155
5156else
5157
5158 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5166
5167fi;
5168
5169 eval "$ac_cv_use_log"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_LOG" = yes; then
5175 echo "$as_me:$LINENO: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180 fi
5181
5182
5183 enablestring=
5184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5186 no_cache=0
5187 # Check whether --enable-longlong or --disable-longlong was given.
5188if test "${enable_longlong+set}" = set; then
5189 enableval="$enable_longlong"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5193 else
5194 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5207
5208fi;
5209
5210 eval "$ac_cv_use_longlong"
5211 if test "$no_cache" != 1; then
5212 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5213 fi
5214
5215 if test "$wxUSE_LONGLONG" = yes; then
5216 echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221 fi
5222
5223
5224 enablestring=
5225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5226echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5227 no_cache=0
5228 # Check whether --enable-mimetype or --disable-mimetype was given.
5229if test "${enable_mimetype+set}" = set; then
5230 enableval="$enable_mimetype"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5234 else
5235 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5236 fi
5237
5238else
5239
5240 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5248
5249fi;
5250
5251 eval "$ac_cv_use_mimetype"
5252 if test "$no_cache" != 1; then
5253 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5254 fi
5255
5256 if test "$wxUSE_MIMETYPE" = yes; then
5257 echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
5259 else
5260 echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262 fi
5263
5264
5265 enablestring=
5266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5267echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5268 no_cache=0
5269 # Check whether --enable-mslu or --disable-mslu was given.
5270if test "${enable_mslu+set}" = set; then
5271 enableval="$enable_mslu"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5275 else
5276 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5289
5290fi;
5291
5292 eval "$ac_cv_use_mslu"
5293 if test "$no_cache" != 1; then
5294 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5295 fi
5296
5297 if test "$wxUSE_UNICODE_MSLU" = yes; then
5298 echo "$as_me:$LINENO: result: yes" >&5
5299echo "${ECHO_T}yes" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303 fi
5304
5305
5306 enablestring=
5307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5308echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5309 no_cache=0
5310 # Check whether --enable-snglinst or --disable-snglinst was given.
5311if test "${enable_snglinst+set}" = set; then
5312 enableval="$enable_snglinst"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5316 else
5317 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5318 fi
5319
5320else
5321
5322 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5330
5331fi;
5332
5333 eval "$ac_cv_use_snglinst"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5339 echo "$as_me:$LINENO: result: yes" >&5
5340echo "${ECHO_T}yes" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
5344 fi
5345
5346
5347 enablestring=
5348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5349echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5350 no_cache=0
5351 # Check whether --enable-streams or --disable-streams was given.
5352if test "${enable_streams+set}" = set; then
5353 enableval="$enable_streams"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_streams='wxUSE_STREAMS=yes'
5357 else
5358 ac_cv_use_streams='wxUSE_STREAMS=no'
5359 fi
5360
5361else
5362
5363 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5371
5372fi;
5373
5374 eval "$ac_cv_use_streams"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_STREAMS" = yes; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381echo "${ECHO_T}yes" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385 fi
5386
5387
5388 enablestring=
5389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5390echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5391 no_cache=0
5392 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5393if test "${enable_std_iostreams+set}" = set; then
5394 enableval="$enable_std_iostreams"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5398 else
5399 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5412
5413fi;
5414
5415 eval "$ac_cv_use_std_iostreams"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_STD_IOSTREAM" = yes; then
5421 echo "$as_me:$LINENO: result: yes" >&5
5422echo "${ECHO_T}yes" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426 fi
5427
5428
5429 enablestring=
5430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5431echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5432 no_cache=0
5433 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5434if test "${enable_stopwatch+set}" = set; then
5435 enableval="$enable_stopwatch"
5436
5437 if test "$enableval" = yes; then
5438 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5439 else
5440 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5441 fi
5442
5443else
5444
5445 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 else
5449 no_cache=1
5450 fi
5451
5452 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5453
5454fi;
5455
5456 eval "$ac_cv_use_stopwatch"
5457 if test "$no_cache" != 1; then
5458 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5459 fi
5460
5461 if test "$wxUSE_STOPWATCH" = yes; then
5462 echo "$as_me:$LINENO: result: yes" >&5
5463echo "${ECHO_T}yes" >&6
5464 else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467 fi
5468
5469
5470 enablestring=
5471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5472echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5473 no_cache=0
5474 # Check whether --enable-system_options or --disable-system_options was given.
5475if test "${enable_system_options+set}" = set; then
5476 enableval="$enable_system_options"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5480 else
5481 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5482 fi
5483
5484else
5485
5486 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5494
5495fi;
5496
5497 eval "$ac_cv_use_system_options"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5503 echo "$as_me:$LINENO: result: yes" >&5
5504echo "${ECHO_T}yes" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508 fi
5509
5510
5511 enablestring=
5512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5513echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5514 no_cache=0
5515 # Check whether --enable-textbuf or --disable-textbuf was given.
5516if test "${enable_textbuf+set}" = set; then
5517 enableval="$enable_textbuf"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5521 else
5522 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5523 fi
5524
5525else
5526
5527 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5535
5536fi;
5537
5538 eval "$ac_cv_use_textbuf"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_TEXTBUFFER" = yes; then
5544 echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6
5546 else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549 fi
5550
5551
5552 enablestring=
5553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5554echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5555 no_cache=0
5556 # Check whether --enable-textfile or --disable-textfile was given.
5557if test "${enable_textfile+set}" = set; then
5558 enableval="$enable_textfile"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5562 else
5563 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5564 fi
5565
5566else
5567
5568 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5576
5577fi;
5578
5579 eval "$ac_cv_use_textfile"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_TEXTFILE" = yes; then
5585 echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590 fi
5591
5592
5593 enablestring=
5594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5595echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5596 no_cache=0
5597 # Check whether --enable-timer or --disable-timer was given.
5598if test "${enable_timer+set}" = set; then
5599 enableval="$enable_timer"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_timer='wxUSE_TIMER=yes'
5603 else
5604 ac_cv_use_timer='wxUSE_TIMER=no'
5605 fi
5606
5607else
5608
5609 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5617
5618fi;
5619
5620 eval "$ac_cv_use_timer"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_TIMER" = yes; then
5626 echo "$as_me:$LINENO: result: yes" >&5
5627echo "${ECHO_T}yes" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631 fi
5632
5633
5634 enablestring=
5635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5636echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5637 no_cache=0
5638 # Check whether --enable-unicode or --disable-unicode was given.
5639if test "${enable_unicode+set}" = set; then
5640 enableval="$enable_unicode"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5644 else
5645 ac_cv_use_unicode='wxUSE_UNICODE=no'
5646 fi
5647
5648else
5649
5650 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5658
5659fi;
5660
5661 eval "$ac_cv_use_unicode"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_UNICODE" = yes; then
5667 echo "$as_me:$LINENO: result: yes" >&5
5668echo "${ECHO_T}yes" >&6
5669 else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672 fi
5673
5674
5675 enablestring=
5676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5677echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5678 no_cache=0
5679 # Check whether --enable-sound or --disable-sound was given.
5680if test "${enable_sound+set}" = set; then
5681 enableval="$enable_sound"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_sound='wxUSE_SOUND=yes'
5685 else
5686 ac_cv_use_sound='wxUSE_SOUND=no'
5687 fi
5688
5689else
5690
5691 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5699
5700fi;
5701
5702 eval "$ac_cv_use_sound"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_SOUND" = yes; then
5708 echo "$as_me:$LINENO: result: yes" >&5
5709echo "${ECHO_T}yes" >&6
5710 else
5711 echo "$as_me:$LINENO: result: no" >&5
5712echo "${ECHO_T}no" >&6
5713 fi
5714
5715
5716 enablestring=
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5719 no_cache=0
5720 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5721if test "${enable_wxprintfv+set}" = set; then
5722 enableval="$enable_wxprintfv"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5726 else
5727 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5728 fi
5729
5730else
5731
5732 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5740
5741fi;
5742
5743 eval "$ac_cv_use_wxprintfv"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
5751 else
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754 fi
5755
5756
5757 enablestring=
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5760 no_cache=0
5761 # Check whether --enable-zipstream or --disable-zipstream was given.
5762if test "${enable_zipstream+set}" = set; then
5763 enableval="$enable_zipstream"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5767 else
5768 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5769 fi
5770
5771else
5772
5773 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5781
5782fi;
5783
5784 eval "$ac_cv_use_zipstream"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_ZIPSTREAM" = yes; then
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795 fi
5796
5797
a848cd7e
SC
5798
5799 enablestring=
5800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5801echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5802 no_cache=0
5803 # Check whether --enable-url or --disable-url was given.
5804if test "${enable_url+set}" = set; then
5805 enableval="$enable_url"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_url='wxUSE_URL=yes'
5809 else
5810 ac_cv_use_url='wxUSE_URL=no'
5811 fi
5812
5813else
5814
5815 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5823
5824fi;
5825
5826 eval "$ac_cv_use_url"
5827 if test "$no_cache" != 1; then
5828 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5829 fi
5830
5831 if test "$wxUSE_URL" = yes; then
5832 echo "$as_me:$LINENO: result: yes" >&5
5833echo "${ECHO_T}yes" >&6
5834 else
5835 echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837 fi
5838
5839
5840 enablestring=
5841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5842echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5843 no_cache=0
5844 # Check whether --enable-protocol or --disable-protocol was given.
5845if test "${enable_protocol+set}" = set; then
5846 enableval="$enable_protocol"
5847
5848 if test "$enableval" = yes; then
5849 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5850 else
5851 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5852 fi
5853
5854else
5855
5856 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5864
5865fi;
5866
5867 eval "$ac_cv_use_protocol"
5868 if test "$no_cache" != 1; then
5869 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5870 fi
5871
5872 if test "$wxUSE_PROTOCOL" = yes; then
5873 echo "$as_me:$LINENO: result: yes" >&5
5874echo "${ECHO_T}yes" >&6
5875 else
5876 echo "$as_me:$LINENO: result: no" >&5
5877echo "${ECHO_T}no" >&6
5878 fi
5879
5880
5881 enablestring=
5882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5883echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5884 no_cache=0
5885 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5886if test "${enable_protocol_http+set}" = set; then
5887 enableval="$enable_protocol_http"
5888
5889 if test "$enableval" = yes; then
5890 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5891 else
5892 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5893 fi
5894
5895else
5896
5897 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5905
5906fi;
5907
5908 eval "$ac_cv_use_protocol_http"
5909 if test "$no_cache" != 1; then
5910 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5911 fi
5912
5913 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5914 echo "$as_me:$LINENO: result: yes" >&5
5915echo "${ECHO_T}yes" >&6
5916 else
5917 echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6
5919 fi
5920
5921
5922 enablestring=
5923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5924echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5925 no_cache=0
5926 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5927if test "${enable_protocol_ftp+set}" = set; then
5928 enableval="$enable_protocol_ftp"
5929
5930 if test "$enableval" = yes; then
5931 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5932 else
5933 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5934 fi
5935
5936else
5937
5938 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5939 if test "x$LINE" != x ; then
5940 eval "DEFAULT_$LINE"
5941 else
5942 no_cache=1
5943 fi
5944
5945 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5946
5947fi;
5948
5949 eval "$ac_cv_use_protocol_ftp"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5955 echo "$as_me:$LINENO: result: yes" >&5
5956echo "${ECHO_T}yes" >&6
5957 else
5958 echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6
5960 fi
5961
5962
5963 enablestring=
5964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5965echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5966 no_cache=0
5967 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5968if test "${enable_protocol_file+set}" = set; then
5969 enableval="$enable_protocol_file"
5970
5971 if test "$enableval" = yes; then
5972 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5973 else
5974 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5975 fi
5976
5977else
5978
5979 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5980 if test "x$LINE" != x ; then
5981 eval "DEFAULT_$LINE"
5982 else
5983 no_cache=1
5984 fi
5985
5986 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5987
5988fi;
5989
5990 eval "$ac_cv_use_protocol_file"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5996 echo "$as_me:$LINENO: result: yes" >&5
5997echo "${ECHO_T}yes" >&6
5998 else
5999 echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
6001 fi
6002
6003
6004
6005
6006
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-threads or --disable-threads was given.
6012if test "${enable_threads+set}" = set; then
6013 enableval="$enable_threads"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_threads='wxUSE_THREADS=yes'
6017 else
6018 ac_cv_use_threads='wxUSE_THREADS=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6031
6032fi;
6033
6034 eval "$ac_cv_use_threads"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_THREADS" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
6048if test "$wxUSE_GUI" = "yes"; then
6049
6050
6051
6052 enablestring=
6053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6054echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6055 no_cache=0
6056 # Check whether --enable-docview or --disable-docview was given.
6057if test "${enable_docview+set}" = set; then
6058 enableval="$enable_docview"
6059
6060 if test "$enableval" = yes; then
6061 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6062 else
6063 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6064 fi
6065
6066else
6067
6068 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6076
6077fi;
6078
6079 eval "$ac_cv_use_docview"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6085 echo "$as_me:$LINENO: result: yes" >&5
6086echo "${ECHO_T}yes" >&6
6087 else
6088 echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6
6090 fi
6091
6092
6093 enablestring=
6094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6095echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6096 no_cache=0
6097 # Check whether --enable-help or --disable-help was given.
6098if test "${enable_help+set}" = set; then
6099 enableval="$enable_help"
6100
6101 if test "$enableval" = yes; then
6102 ac_cv_use_help='wxUSE_HELP=yes'
6103 else
6104 ac_cv_use_help='wxUSE_HELP=no'
6105 fi
6106
6107else
6108
6109 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6117
6118fi;
6119
6120 eval "$ac_cv_use_help"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_HELP" = yes; then
6126 echo "$as_me:$LINENO: result: yes" >&5
6127echo "${ECHO_T}yes" >&6
6128 else
6129 echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6
6131 fi
6132
6133
6134 enablestring=
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6136echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6137 no_cache=0
6138 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6139if test "${enable_mshtmlhelp+set}" = set; then
6140 enableval="$enable_mshtmlhelp"
6141
6142 if test "$enableval" = yes; then
6143 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6144 else
6145 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6146 fi
6147
6148else
6149
6150 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6158
6159fi;
6160
6161 eval "$ac_cv_use_mshtmlhelp"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_MS_HTML_HELP" = yes; then
6167 echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172 fi
6173
6174
6175 enablestring=
6176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6177echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6178 no_cache=0
6179 # Check whether --enable-html or --disable-html was given.
6180if test "${enable_html+set}" = set; then
6181 enableval="$enable_html"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_html='wxUSE_HTML=yes'
6185 else
6186 ac_cv_use_html='wxUSE_HTML=no'
6187 fi
6188
6189else
6190
6191 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6199
6200fi;
6201
6202 eval "$ac_cv_use_html"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_HTML" = yes; then
6208 echo "$as_me:$LINENO: result: yes" >&5
6209echo "${ECHO_T}yes" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213 fi
6214
6215
6216 enablestring=
6217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6218echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6219 no_cache=0
6220 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6221if test "${enable_htmlhelp+set}" = set; then
6222 enableval="$enable_htmlhelp"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6226 else
6227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6240
6241fi;
6242
6243 eval "$ac_cv_use_htmlhelp"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_WXHTML_HELP" = yes; then
6249 echo "$as_me:$LINENO: result: yes" >&5
6250echo "${ECHO_T}yes" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257 enablestring=
6258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6259echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6260 no_cache=0
6261 # Check whether --enable-constraints or --disable-constraints was given.
6262if test "${enable_constraints+set}" = set; then
6263 enableval="$enable_constraints"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6267 else
6268 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6281
6282fi;
6283
6284 eval "$ac_cv_use_constraints"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_CONSTRAINTS" = yes; then
6290 echo "$as_me:$LINENO: result: yes" >&5
6291echo "${ECHO_T}yes" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295 fi
6296
6297
6298 enablestring=
6299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6300echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6301 no_cache=0
6302 # Check whether --enable-printarch or --disable-printarch was given.
6303if test "${enable_printarch+set}" = set; then
6304 enableval="$enable_printarch"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6308 else
6309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6322
6323fi;
6324
6325 eval "$ac_cv_use_printarch"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6331 echo "$as_me:$LINENO: result: yes" >&5
6332echo "${ECHO_T}yes" >&6
6333 else
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336 fi
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-mdi or --disable-mdi was given.
6344if test "${enable_mdi+set}" = set; then
6345 enableval="$enable_mdi"
6346
6347 if test "$enableval" = yes; then
8a7b1113 6348 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6349 else
8a7b1113 6350 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6351 fi
6352
6353else
6354
8a7b1113 6355 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
8a7b1113 6362 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6363
6364fi;
6365
6366 eval "$ac_cv_use_mdi"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6369 fi
6370
8a7b1113
VZ
6371 if test "$wxUSE_MDI" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380 enablestring=
6381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6382echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6383 no_cache=0
6384 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6385if test "${enable_mdidoc+set}" = set; then
6386 enableval="$enable_mdidoc"
6387
6388 if test "$enableval" = yes; then
6389 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6390 else
6391 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6392 fi
6393
6394else
6395
6396 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6404
6405fi;
6406
6407 eval "$ac_cv_use_mdidoc"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6410 fi
6411
a848cd7e
SC
6412 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6413 echo "$as_me:$LINENO: result: yes" >&5
6414echo "${ECHO_T}yes" >&6
6415 else
6416 echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6
6418 fi
6419
6420
6421 enablestring=
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6423echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6424 no_cache=0
6425 # Check whether --enable-loggui or --disable-loggui was given.
6426if test "${enable_loggui+set}" = set; then
6427 enableval="$enable_loggui"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6431 else
6432 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6433 fi
6434
6435else
6436
6437 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6445
6446fi;
6447
6448 eval "$ac_cv_use_loggui"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_LOGGUI" = yes; then
6454 echo "$as_me:$LINENO: result: yes" >&5
6455echo "${ECHO_T}yes" >&6
6456 else
6457 echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6
6459 fi
6460
6461
6462 enablestring=
6463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6464echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6465 no_cache=0
6466 # Check whether --enable-logwin or --disable-logwin was given.
6467if test "${enable_logwin+set}" = set; then
6468 enableval="$enable_logwin"
6469
6470 if test "$enableval" = yes; then
6471 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6472 else
6473 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6474 fi
6475
6476else
6477
6478 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6479 if test "x$LINE" != x ; then
6480 eval "DEFAULT_$LINE"
6481 else
6482 no_cache=1
6483 fi
6484
6485 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6486
6487fi;
6488
6489 eval "$ac_cv_use_logwin"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_LOGWINDOW" = yes; then
6495 echo "$as_me:$LINENO: result: yes" >&5
6496echo "${ECHO_T}yes" >&6
6497 else
6498 echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6
6500 fi
6501
6502
6503 enablestring=
6504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6505echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6506 no_cache=0
6507 # Check whether --enable-logdialog or --disable-logdialog was given.
6508if test "${enable_logdialog+set}" = set; then
6509 enableval="$enable_logdialog"
6510
6511 if test "$enableval" = yes; then
6512 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6513 else
6514 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6515 fi
6516
6517else
6518
6519 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6527
6528fi;
6529
6530 eval "$ac_cv_use_logdialog"
6531 if test "$no_cache" != 1; then
6532 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6533 fi
6534
6535 if test "$wxUSE_LOGDIALOG" = yes; then
6536 echo "$as_me:$LINENO: result: yes" >&5
6537echo "${ECHO_T}yes" >&6
6538 else
6539 echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541 fi
6542
6543
646b6ec1
VS
6544 enablestring=
6545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6546echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6547 no_cache=0
6548 # Check whether --enable-webkit or --disable-webkit was given.
6549if test "${enable_webkit+set}" = set; then
6550 enableval="$enable_webkit"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6554 else
6555 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6556 fi
6557
6558else
6559
6560 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6568
6569fi;
6570
6571 eval "$ac_cv_use_webkit"
6572 if test "$no_cache" != 1; then
6573 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6574 fi
6575
6576 if test "$wxUSE_WEBKIT" = yes; then
6577 echo "$as_me:$LINENO: result: yes" >&5
6578echo "${ECHO_T}yes" >&6
6579 else
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
6582 fi
6583
6584
a848cd7e
SC
6585
6586 enablestring=
6587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6588echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6589 no_cache=0
6590 # Check whether --enable-postscript or --disable-postscript was given.
6591if test "${enable_postscript+set}" = set; then
6592 enableval="$enable_postscript"
6593
6594 if test "$enableval" = yes; then
6595 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6596 else
6597 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6598 fi
6599
6600else
6601
6602 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 else
6606 no_cache=1
6607 fi
6608
6609 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6610
6611fi;
6612
6613 eval "$ac_cv_use_postscript"
6614 if test "$no_cache" != 1; then
6615 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6616 fi
6617
6618 if test "$wxUSE_POSTSCRIPT" = yes; then
6619 echo "$as_me:$LINENO: result: yes" >&5
6620echo "${ECHO_T}yes" >&6
6621 else
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
6624 fi
6625
6626
6627
6628
6629
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-prologio or --disable-prologio was given.
6635if test "${enable_prologio+set}" = set; then
6636 enableval="$enable_prologio"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6640 else
6641 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6654
6655fi;
6656
6657 eval "$ac_cv_use_prologio"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_PROLOGIO" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-resources or --disable-resources was given.
6676if test "${enable_resources+set}" = set; then
6677 enableval="$enable_resources"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6681 else
6682 ac_cv_use_resources='wxUSE_RESOURCES=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6695
6696fi;
6697
6698 eval "$ac_cv_use_resources"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_RESOURCES" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712
6713
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-clipboard or --disable-clipboard was given.
6719if test "${enable_clipboard+set}" = set; then
6720 enableval="$enable_clipboard"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6724 else
6725 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6738
6739fi;
6740
6741 eval "$ac_cv_use_clipboard"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_CLIPBOARD" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755 enablestring=
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-dnd or --disable-dnd was given.
6760if test "${enable_dnd+set}" = set; then
6761 enableval="$enable_dnd"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6765 else
6766 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6779
6780fi;
6781
6782 eval "$ac_cv_use_dnd"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
6790 else
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
6793 fi
6794
6795
6796 enablestring=
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6798echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6799 no_cache=0
6800 # Check whether --enable-metafile or --disable-metafile was given.
6801if test "${enable_metafile+set}" = set; then
6802 enableval="$enable_metafile"
6803
6804 if test "$enableval" = yes; then
6805 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6806 else
6807 ac_cv_use_metafile='wxUSE_METAFILE=no'
6808 fi
6809
6810else
6811
6812 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6820
6821fi;
6822
6823 eval "$ac_cv_use_metafile"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_METAFILE" = yes; then
6829 echo "$as_me:$LINENO: result: yes" >&5
6830echo "${ECHO_T}yes" >&6
6831 else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834 fi
6835
6836
6837
6838
6839
6840 enablestring=
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6842echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-controls or --disable-controls was given.
6845if test "${enable_controls+set}" = set; then
6846 enableval="$enable_controls"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6850 else
6851 ac_cv_use_controls='wxUSE_CONTROLS=no'
6852 fi
6853
6854else
6855
6856 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6864
6865fi;
6866
6867 eval "$ac_cv_use_controls"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_CONTROLS" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881if test "$wxUSE_CONTROLS" = "yes"; then
6882 DEFAULT_wxUSE_ACCEL=yes
6883 DEFAULT_wxUSE_BMPBUTTON=yes
6884 DEFAULT_wxUSE_BUTTON=yes
6885 DEFAULT_wxUSE_CALCTRL=no
6886 DEFAULT_wxUSE_CARET=yes
6887 DEFAULT_wxUSE_COMBOBOX=yes
6888 DEFAULT_wxUSE_CHECKBOX=yes
6889 DEFAULT_wxUSE_CHECKLISTBOX=yes
6890 DEFAULT_wxUSE_CHOICE=yes
6891 DEFAULT_wxUSE_GAUGE=yes
6892 DEFAULT_wxUSE_GRID=yes
6893 DEFAULT_wxUSE_IMAGLIST=yes
6894 DEFAULT_wxUSE_LISTBOOK=yes
6895 DEFAULT_wxUSE_LISTBOX=yes
6896 DEFAULT_wxUSE_LISTCTRL=yes
6897 DEFAULT_wxUSE_NOTEBOOK=yes
6898 DEFAULT_wxUSE_RADIOBOX=yes
6899 DEFAULT_wxUSE_RADIOBTN=yes
6900 DEFAULT_wxUSE_SASH=yes
6901 DEFAULT_wxUSE_SCROLLBAR=yes
6902 DEFAULT_wxUSE_SLIDER=yes
6903 DEFAULT_wxUSE_SPINBTN=yes
6904 DEFAULT_wxUSE_SPINCTRL=yes
6905 DEFAULT_wxUSE_SPLITTER=yes
6906 DEFAULT_wxUSE_STATBMP=yes
6907 DEFAULT_wxUSE_STATBOX=yes
6908 DEFAULT_wxUSE_STATLINE=yes
6909 DEFAULT_wxUSE_STATUSBAR=yes
6910 DEFAULT_wxUSE_TAB_DIALOG=yes
6911 DEFAULT_wxUSE_TOGGLEBTN=yes
6912 DEFAULT_wxUSE_TOOLBAR=yes
6913 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6914 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6915 DEFAULT_wxUSE_TOOLTIPS=yes
6916 DEFAULT_wxUSE_TREECTRL=yes
6917 DEFAULT_wxUSE_POPUPWIN=yes
6918 DEFAULT_wxUSE_TIPWINDOW=yes
6919elif test "$wxUSE_CONTROLS" = "no"; then
6920 DEFAULT_wxUSE_ACCEL=no
6921 DEFAULT_wxUSE_BMPBUTTON=no
6922 DEFAULT_wxUSE_BUTTON=no
6923 DEFAULT_wxUSE_CALCTRL=no
6924 DEFAULT_wxUSE_CARET=no
6925 DEFAULT_wxUSE_COMBOBOX=no
6926 DEFAULT_wxUSE_CHECKBOX=no
6927 DEFAULT_wxUSE_CHECKLISTBOX=no
6928 DEFAULT_wxUSE_CHOICE=no
6929 DEFAULT_wxUSE_GAUGE=no
6930 DEFAULT_wxUSE_GRID=no
6931 DEFAULT_wxUSE_IMAGLIST=no
6932 DEFAULT_wxUSE_LISTBOOK=no
6933 DEFAULT_wxUSE_LISTBOX=no
6934 DEFAULT_wxUSE_LISTCTRL=no
6935 DEFAULT_wxUSE_NOTEBOOK=no
6936 DEFAULT_wxUSE_RADIOBOX=no
6937 DEFAULT_wxUSE_RADIOBTN=no
6938 DEFAULT_wxUSE_SASH=no
6939 DEFAULT_wxUSE_SCROLLBAR=no
6940 DEFAULT_wxUSE_SLIDER=no
6941 DEFAULT_wxUSE_SPINBTN=no
6942 DEFAULT_wxUSE_SPINCTRL=no
6943 DEFAULT_wxUSE_SPLITTER=no
6944 DEFAULT_wxUSE_STATBMP=no
6945 DEFAULT_wxUSE_STATBOX=no
6946 DEFAULT_wxUSE_STATLINE=no
6947 DEFAULT_wxUSE_STATUSBAR=no
6948 DEFAULT_wxUSE_TAB_DIALOG=no
6949 DEFAULT_wxUSE_TOGGLEBTN=no
6950 DEFAULT_wxUSE_TOOLBAR=no
6951 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6952 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6953 DEFAULT_wxUSE_TOOLTIPS=no
6954 DEFAULT_wxUSE_TREECTRL=no
6955 DEFAULT_wxUSE_POPUPWIN=no
6956 DEFAULT_wxUSE_TIPWINDOW=no
6957fi
6958
6959## FIXME: This is a blatant hack
6960if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6961 wxUSE_PRINTING_ARCHITECTURE=no
6962 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6963 DEFAULT_wxUSE_TOOLTIPS=no
6964 DEFAULT_wxUSE_DRAGIMAGE=no
6965fi
6966
6967
6968 enablestring=
6969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6970echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6971 no_cache=0
6972 # Check whether --enable-accel or --disable-accel was given.
6973if test "${enable_accel+set}" = set; then
6974 enableval="$enable_accel"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_accel='wxUSE_ACCEL=yes'
6978 else
6979 ac_cv_use_accel='wxUSE_ACCEL=no'
6980 fi
6981
6982else
6983
6984 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6992
6993fi;
6994
6995 eval "$ac_cv_use_accel"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_ACCEL" = yes; then
7001 echo "$as_me:$LINENO: result: yes" >&5
7002echo "${ECHO_T}yes" >&6
7003 else
7004 echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6
7006 fi
7007
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7011echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-button or --disable-button was given.
7014if test "${enable_button+set}" = set; then
7015 enableval="$enable_button"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_button='wxUSE_BUTTON=yes'
7019 else
7020 ac_cv_use_button='wxUSE_BUTTON=no'
7021 fi
7022
7023else
7024
7025 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7033
7034fi;
7035
7036 eval "$ac_cv_use_button"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_BUTTON" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050 enablestring=
7051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7052echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7053 no_cache=0
7054 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7055if test "${enable_bmpbutton+set}" = set; then
7056 enableval="$enable_bmpbutton"
7057
7058 if test "$enableval" = yes; then
7059 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7060 else
7061 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7062 fi
7063
7064else
7065
7066 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7067 if test "x$LINE" != x ; then
7068 eval "DEFAULT_$LINE"
7069 else
7070 no_cache=1
7071 fi
7072
7073 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7074
7075fi;
7076
7077 eval "$ac_cv_use_bmpbutton"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_BMPBUTTON" = yes; then
7083 echo "$as_me:$LINENO: result: yes" >&5
7084echo "${ECHO_T}yes" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6
7088 fi
7089
7090
7091 enablestring=
7092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7093echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7094 no_cache=0
7095 # Check whether --enable-calendar or --disable-calendar was given.
7096if test "${enable_calendar+set}" = set; then
7097 enableval="$enable_calendar"
7098
7099 if test "$enableval" = yes; then
7100 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7101 else
7102 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7103 fi
7104
7105else
7106
7107 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7108 if test "x$LINE" != x ; then
7109 eval "DEFAULT_$LINE"
7110 else
7111 no_cache=1
7112 fi
7113
7114 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7115
7116fi;
7117
7118 eval "$ac_cv_use_calendar"
7119 if test "$no_cache" != 1; then
7120 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7121 fi
7122
7123 if test "$wxUSE_CALCTRL" = yes; then
7124 echo "$as_me:$LINENO: result: yes" >&5
7125echo "${ECHO_T}yes" >&6
7126 else
7127 echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6
7129 fi
7130
7131
7132 enablestring=
7133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7134echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7135 no_cache=0
7136 # Check whether --enable-caret or --disable-caret was given.
7137if test "${enable_caret+set}" = set; then
7138 enableval="$enable_caret"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_caret='wxUSE_CARET=yes'
7142 else
7143 ac_cv_use_caret='wxUSE_CARET=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7156
7157fi;
7158
7159 eval "$ac_cv_use_caret"
7160 if test "$no_cache" != 1; then
7161 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7162 fi
7163
7164 if test "$wxUSE_CARET" = yes; then
7165 echo "$as_me:$LINENO: result: yes" >&5
7166echo "${ECHO_T}yes" >&6
7167 else
7168 echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6
7170 fi
7171
7172
7173 enablestring=
7174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7175echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7176 no_cache=0
7177 # Check whether --enable-checkbox or --disable-checkbox was given.
7178if test "${enable_checkbox+set}" = set; then
7179 enableval="$enable_checkbox"
7180
7181 if test "$enableval" = yes; then
7182 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7183 else
7184 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7185 fi
7186
7187else
7188
7189 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7190 if test "x$LINE" != x ; then
7191 eval "DEFAULT_$LINE"
7192 else
7193 no_cache=1
7194 fi
7195
7196 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7197
7198fi;
7199
7200 eval "$ac_cv_use_checkbox"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_CHECKBOX" = yes; then
7206 echo "$as_me:$LINENO: result: yes" >&5
7207echo "${ECHO_T}yes" >&6
7208 else
7209 echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6
7211 fi
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-checklst or --disable-checklst was given.
7219if test "${enable_checklst+set}" = set; then
7220 enableval="$enable_checklst"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7224 else
7225 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7238
7239fi;
7240
7241 eval "$ac_cv_use_checklst"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CHECKLST" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255 enablestring=
7256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7257echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7258 no_cache=0
7259 # Check whether --enable-choice or --disable-choice was given.
7260if test "${enable_choice+set}" = set; then
7261 enableval="$enable_choice"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_choice='wxUSE_CHOICE=yes'
7265 else
7266 ac_cv_use_choice='wxUSE_CHOICE=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7279
7280fi;
7281
7282 eval "$ac_cv_use_choice"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_CHOICE" = yes; then
7288 echo "$as_me:$LINENO: result: yes" >&5
7289echo "${ECHO_T}yes" >&6
7290 else
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
7293 fi
7294
7295
7296 enablestring=
7297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7298echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7299 no_cache=0
7300 # Check whether --enable-combobox or --disable-combobox was given.
7301if test "${enable_combobox+set}" = set; then
7302 enableval="$enable_combobox"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7306 else
7307 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7308 fi
7309
7310else
7311
7312 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7320
7321fi;
7322
7323 eval "$ac_cv_use_combobox"
7324 if test "$no_cache" != 1; then
7325 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7326 fi
7327
7328 if test "$wxUSE_COMBOBOX" = yes; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330echo "${ECHO_T}yes" >&6
7331 else
7332 echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6
7334 fi
7335
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-display or --disable-display was given.
7342if test "${enable_display+set}" = set; then
7343 enableval="$enable_display"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_display='wxUSE_DISPLAY=yes'
7347 else
7348 ac_cv_use_display='wxUSE_DISPLAY=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7361
7362fi;
7363
7364 eval "$ac_cv_use_display"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_DISPLAY" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-gauge or --disable-gauge was given.
7383if test "${enable_gauge+set}" = set; then
7384 enableval="$enable_gauge"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7388 else
7389 ac_cv_use_gauge='wxUSE_GAUGE=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7402
7403fi;
7404
7405 eval "$ac_cv_use_gauge"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_GAUGE" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-grid or --disable-grid was given.
7424if test "${enable_grid+set}" = set; then
7425 enableval="$enable_grid"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_grid='wxUSE_GRID=yes'
7429 else
7430 ac_cv_use_grid='wxUSE_GRID=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7443
7444fi;
7445
7446 eval "$ac_cv_use_grid"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_GRID" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-imaglist or --disable-imaglist was given.
7465if test "${enable_imaglist+set}" = set; then
7466 enableval="$enable_imaglist"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7470 else
7471 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7484
7485fi;
7486
7487 eval "$ac_cv_use_imaglist"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_IMAGLIST" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-listbook or --disable-listbook was given.
7506if test "${enable_listbook+set}" = set; then
7507 enableval="$enable_listbook"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7511 else
7512 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7525
7526fi;
7527
7528 eval "$ac_cv_use_listbook"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_LISTBOOK" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-listbox or --disable-listbox was given.
7547if test "${enable_listbox+set}" = set; then
7548 enableval="$enable_listbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7552 else
7553 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_listbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_LISTBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-listctrl or --disable-listctrl was given.
7588if test "${enable_listctrl+set}" = set; then
7589 enableval="$enable_listctrl"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7593 else
7594 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7607
7608fi;
7609
7610 eval "$ac_cv_use_listctrl"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_LISTCTRL" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-notebook or --disable-notebook was given.
7629if test "${enable_notebook+set}" = set; then
7630 enableval="$enable_notebook"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7634 else
7635 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7648
7649fi;
7650
7651 eval "$ac_cv_use_notebook"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_NOTEBOOK" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-radiobox or --disable-radiobox was given.
7670if test "${enable_radiobox+set}" = set; then
7671 enableval="$enable_radiobox"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7675 else
7676 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7689
7690fi;
7691
7692 eval "$ac_cv_use_radiobox"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_RADIOBOX" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7711if test "${enable_radiobtn+set}" = set; then
7712 enableval="$enable_radiobtn"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7716 else
7717 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7730
7731fi;
7732
7733 eval "$ac_cv_use_radiobtn"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_RADIOBTN" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-sash or --disable-sash was given.
7752if test "${enable_sash+set}" = set; then
7753 enableval="$enable_sash"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_sash='wxUSE_SASH=yes'
7757 else
7758 ac_cv_use_sash='wxUSE_SASH=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7771
7772fi;
7773
7774 eval "$ac_cv_use_sash"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_SASH" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7793if test "${enable_scrollbar+set}" = set; then
7794 enableval="$enable_scrollbar"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7798 else
7799 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7812
7813fi;
7814
7815 eval "$ac_cv_use_scrollbar"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_SCROLLBAR" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-slider or --disable-slider was given.
7834if test "${enable_slider+set}" = set; then
7835 enableval="$enable_slider"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_slider='wxUSE_SLIDER=yes'
7839 else
7840 ac_cv_use_slider='wxUSE_SLIDER=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7853
7854fi;
7855
7856 eval "$ac_cv_use_slider"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_SLIDER" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7875if test "${enable_spinbtn+set}" = set; then
7876 enableval="$enable_spinbtn"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7880 else
7881 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7894
7895fi;
7896
7897 eval "$ac_cv_use_spinbtn"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_SPINBTN" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7916if test "${enable_spinctrl+set}" = set; then
7917 enableval="$enable_spinctrl"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7921 else
7922 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7935
7936fi;
7937
7938 eval "$ac_cv_use_spinctrl"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_SPINCTRL" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-splitter or --disable-splitter was given.
7957if test "${enable_splitter+set}" = set; then
7958 enableval="$enable_splitter"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7962 else
7963 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7976
7977fi;
7978
7979 eval "$ac_cv_use_splitter"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_SPLITTER" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-statbmp or --disable-statbmp was given.
7998if test "${enable_statbmp+set}" = set; then
7999 enableval="$enable_statbmp"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8003 else
8004 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8017
8018fi;
8019
8020 eval "$ac_cv_use_statbmp"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_STATBMP" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-statbox or --disable-statbox was given.
8039if test "${enable_statbox+set}" = set; then
8040 enableval="$enable_statbox"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8044 else
8045 ac_cv_use_statbox='wxUSE_STATBOX=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8058
8059fi;
8060
8061 eval "$ac_cv_use_statbox"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_STATBOX" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-statline or --disable-statline was given.
8080if test "${enable_statline+set}" = set; then
8081 enableval="$enable_statline"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_statline='wxUSE_STATLINE=yes'
8085 else
8086 ac_cv_use_statline='wxUSE_STATLINE=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8099
8100fi;
8101
8102 eval "$ac_cv_use_statline"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_STATLINE" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-stattext or --disable-stattext was given.
8121if test "${enable_stattext+set}" = set; then
8122 enableval="$enable_stattext"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8126 else
8127 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8140
8141fi;
8142
8143 eval "$ac_cv_use_stattext"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_STATTEXT" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-statusbar or --disable-statusbar was given.
8162if test "${enable_statusbar+set}" = set; then
8163 enableval="$enable_statusbar"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8167 else
8168 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8181
8182fi;
8183
8184 eval "$ac_cv_use_statusbar"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_STATUSBAR" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8203if test "${enable_tabdialog+set}" = set; then
8204 enableval="$enable_tabdialog"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8208 else
8209 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8222
8223fi;
8224
8225 eval "$ac_cv_use_tabdialog"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_TABDIALOG" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-textctrl or --disable-textctrl was given.
8244if test "${enable_textctrl+set}" = set; then
8245 enableval="$enable_textctrl"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8249 else
8250 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8263
8264fi;
8265
8266 eval "$ac_cv_use_textctrl"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_TEXTCTRL" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8285if test "${enable_togglebtn+set}" = set; then
8286 enableval="$enable_togglebtn"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8290 else
8291 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8304
8305fi;
8306
8307 eval "$ac_cv_use_togglebtn"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_TOGGLEBTN" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-toolbar or --disable-toolbar was given.
8326if test "${enable_toolbar+set}" = set; then
8327 enableval="$enable_toolbar"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8331 else
8332 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8345
8346fi;
8347
8348 eval "$ac_cv_use_toolbar"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_TOOLBAR" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8367if test "${enable_tbarnative+set}" = set; then
8368 enableval="$enable_tbarnative"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8372 else
8373 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8386
8387fi;
8388
8389 eval "$ac_cv_use_tbarnative"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8408if test "${enable_tbarsmpl+set}" = set; then
8409 enableval="$enable_tbarsmpl"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8413 else
8414 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8427
8428fi;
8429
8430 eval "$ac_cv_use_tbarsmpl"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-treectrl or --disable-treectrl was given.
8449if test "${enable_treectrl+set}" = set; then
8450 enableval="$enable_treectrl"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8454 else
8455 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8468
8469fi;
8470
8471 eval "$ac_cv_use_treectrl"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_TREECTRL" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8490if test "${enable_tipwindow+set}" = set; then
8491 enableval="$enable_tipwindow"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8495 else
8496 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8509
8510fi;
8511
8512 eval "$ac_cv_use_tipwindow"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_TIPWINDOW" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-popupwin or --disable-popupwin was given.
8531if test "${enable_popupwin+set}" = set; then
8532 enableval="$enable_popupwin"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8536 else
8537 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8550
8551fi;
8552
8553 eval "$ac_cv_use_popupwin"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_POPUPWIN" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567
8568
8569 enablestring=
8570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8571echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8572 no_cache=0
8573 # Check whether --enable-commondlg or --disable-commondlg was given.
8574if test "${enable_commondlg+set}" = set; then
8575 enableval="$enable_commondlg"
8576
8577 if test "$enableval" = yes; then
8578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8579 else
8580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8581 fi
8582
8583else
8584
8585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8586 if test "x$LINE" != x ; then
8587 eval "DEFAULT_$LINE"
8588 else
8589 no_cache=1
8590 fi
8591
8592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8593
8594fi;
8595
8596 eval "$ac_cv_use_commondlg"
8597 if test "$no_cache" != 1; then
8598 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8599 fi
8600
8601 if test "$wxUSE_COMMONDLGS" = yes; then
8602 echo "$as_me:$LINENO: result: yes" >&5
8603echo "${ECHO_T}yes" >&6
8604 else
8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
8607 fi
8608
8609
8610 enablestring=
8611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8612echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8613 no_cache=0
8614 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8615if test "${enable_choicedlg+set}" = set; then
8616 enableval="$enable_choicedlg"
8617
8618 if test "$enableval" = yes; then
8619 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8620 else
8621 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8622 fi
8623
8624else
8625
8626 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8627 if test "x$LINE" != x ; then
8628 eval "DEFAULT_$LINE"
8629 else
8630 no_cache=1
8631 fi
8632
8633 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8634
8635fi;
8636
8637 eval "$ac_cv_use_choicedlg"
8638 if test "$no_cache" != 1; then
8639 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8640 fi
8641
8642 if test "$wxUSE_CHOICEDLG" = yes; then
8643 echo "$as_me:$LINENO: result: yes" >&5
8644echo "${ECHO_T}yes" >&6
8645 else
8646 echo "$as_me:$LINENO: result: no" >&5
8647echo "${ECHO_T}no" >&6
8648 fi
8649
8650
8651 enablestring=
8652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8653echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8654 no_cache=0
8655 # Check whether --enable-coldlg or --disable-coldlg was given.
8656if test "${enable_coldlg+set}" = set; then
8657 enableval="$enable_coldlg"
8658
8659 if test "$enableval" = yes; then
8660 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8661 else
8662 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8663 fi
8664
8665else
8666
8667 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8668 if test "x$LINE" != x ; then
8669 eval "DEFAULT_$LINE"
8670 else
8671 no_cache=1
8672 fi
8673
8674 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8675
8676fi;
8677
8678 eval "$ac_cv_use_coldlg"
8679 if test "$no_cache" != 1; then
8680 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8681 fi
8682
8683 if test "$wxUSE_COLOURDLG" = yes; then
8684 echo "$as_me:$LINENO: result: yes" >&5
8685echo "${ECHO_T}yes" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688echo "${ECHO_T}no" >&6
8689 fi
8690
8691
8692 enablestring=
8693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8694echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8695 no_cache=0
8696 # Check whether --enable-filedlg or --disable-filedlg was given.
8697if test "${enable_filedlg+set}" = set; then
8698 enableval="$enable_filedlg"
8699
8700 if test "$enableval" = yes; then
8701 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8702 else
8703 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8704 fi
8705
8706else
8707
8708 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8709 if test "x$LINE" != x ; then
8710 eval "DEFAULT_$LINE"
8711 else
8712 no_cache=1
8713 fi
8714
8715 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8716
8717fi;
8718
8719 eval "$ac_cv_use_filedlg"
8720 if test "$no_cache" != 1; then
8721 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8722 fi
8723
8724 if test "$wxUSE_FILEDLG" = yes; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726echo "${ECHO_T}yes" >&6
8727 else
8728 echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
8730 fi
8731
8732
8733 enablestring=
8734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8735echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8736 no_cache=0
8737 # Check whether --enable-finddlg or --disable-finddlg was given.
8738if test "${enable_finddlg+set}" = set; then
8739 enableval="$enable_finddlg"
8740
8741 if test "$enableval" = yes; then
8742 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8743 else
8744 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8745 fi
8746
8747else
8748
8749 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8750 if test "x$LINE" != x ; then
8751 eval "DEFAULT_$LINE"
8752 else
8753 no_cache=1
8754 fi
8755
8756 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8757
8758fi;
8759
8760 eval "$ac_cv_use_finddlg"
8761 if test "$no_cache" != 1; then
8762 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8763 fi
8764
8765 if test "$wxUSE_FINDREPLDLG" = yes; then
8766 echo "$as_me:$LINENO: result: yes" >&5
8767echo "${ECHO_T}yes" >&6
8768 else
8769 echo "$as_me:$LINENO: result: no" >&5
8770echo "${ECHO_T}no" >&6
8771 fi
8772
8773
8774 enablestring=
8775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8776echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8777 no_cache=0
8778 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8779if test "${enable_fontdlg+set}" = set; then
8780 enableval="$enable_fontdlg"
8781
8782 if test "$enableval" = yes; then
8783 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8784 else
8785 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8786 fi
8787
8788else
8789
8790 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8791 if test "x$LINE" != x ; then
8792 eval "DEFAULT_$LINE"
8793 else
8794 no_cache=1
8795 fi
8796
8797 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8798
8799fi;
8800
8801 eval "$ac_cv_use_fontdlg"
8802 if test "$no_cache" != 1; then
8803 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8804 fi
8805
8806 if test "$wxUSE_FONTDLG" = yes; then
8807 echo "$as_me:$LINENO: result: yes" >&5
8808echo "${ECHO_T}yes" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
8812 fi
8813
8814
8815 enablestring=
8816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8817echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8818 no_cache=0
8819 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8820if test "${enable_dirdlg+set}" = set; then
8821 enableval="$enable_dirdlg"
8822
8823 if test "$enableval" = yes; then
8824 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8825 else
8826 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8827 fi
8828
8829else
8830
8831 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8832 if test "x$LINE" != x ; then
8833 eval "DEFAULT_$LINE"
8834 else
8835 no_cache=1
8836 fi
8837
8838 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8839
8840fi;
8841
8842 eval "$ac_cv_use_dirdlg"
8843 if test "$no_cache" != 1; then
8844 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8845 fi
8846
8847 if test "$wxUSE_DIRDLG" = yes; then
8848 echo "$as_me:$LINENO: result: yes" >&5
8849echo "${ECHO_T}yes" >&6
8850 else
8851 echo "$as_me:$LINENO: result: no" >&5
8852echo "${ECHO_T}no" >&6
8853 fi
8854
8855
8856 enablestring=
8857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8858echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8859 no_cache=0
8860 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8861if test "${enable_msgdlg+set}" = set; then
8862 enableval="$enable_msgdlg"
8863
8864 if test "$enableval" = yes; then
8865 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8866 else
8867 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8868 fi
8869
8870else
8871
8872 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8873 if test "x$LINE" != x ; then
8874 eval "DEFAULT_$LINE"
8875 else
8876 no_cache=1
8877 fi
8878
8879 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8880
8881fi;
8882
8883 eval "$ac_cv_use_msgdlg"
8884 if test "$no_cache" != 1; then
8885 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8886 fi
8887
8888 if test "$wxUSE_MSGDLG" = yes; then
8889 echo "$as_me:$LINENO: result: yes" >&5
8890echo "${ECHO_T}yes" >&6
8891 else
8892 echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
8894 fi
8895
8896
8897 enablestring=
8898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8899echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8900 no_cache=0
8901 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8902if test "${enable_numberdlg+set}" = set; then
8903 enableval="$enable_numberdlg"
8904
8905 if test "$enableval" = yes; then
8906 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8907 else
8908 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8909 fi
8910
8911else
8912
8913 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8914 if test "x$LINE" != x ; then
8915 eval "DEFAULT_$LINE"
8916 else
8917 no_cache=1
8918 fi
8919
8920 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8921
8922fi;
8923
8924 eval "$ac_cv_use_numberdlg"
8925 if test "$no_cache" != 1; then
8926 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8927 fi
8928
8929 if test "$wxUSE_NUMBERDLG" = yes; then
8930 echo "$as_me:$LINENO: result: yes" >&5
8931echo "${ECHO_T}yes" >&6
8932 else
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
8935 fi
8936
8937
8938 enablestring=
8939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8940echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8941 no_cache=0
8942 # Check whether --enable-splash or --disable-splash was given.
8943if test "${enable_splash+set}" = set; then
8944 enableval="$enable_splash"
8945
8946 if test "$enableval" = yes; then
8947 ac_cv_use_splash='wxUSE_SPLASH=yes'
8948 else
8949 ac_cv_use_splash='wxUSE_SPLASH=no'
8950 fi
8951
8952else
8953
8954 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8955 if test "x$LINE" != x ; then
8956 eval "DEFAULT_$LINE"
8957 else
8958 no_cache=1
8959 fi
8960
8961 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8962
8963fi;
8964
8965 eval "$ac_cv_use_splash"
8966 if test "$no_cache" != 1; then
8967 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8968 fi
8969
8970 if test "$wxUSE_SPLASH" = yes; then
8971 echo "$as_me:$LINENO: result: yes" >&5
8972echo "${ECHO_T}yes" >&6
8973 else
8974 echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
8976 fi
8977
8978
8979 enablestring=
8980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8981echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8982 no_cache=0
8983 # Check whether --enable-textdlg or --disable-textdlg was given.
8984if test "${enable_textdlg+set}" = set; then
8985 enableval="$enable_textdlg"
8986
8987 if test "$enableval" = yes; then
8988 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8989 else
8990 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8991 fi
8992
8993else
8994
8995 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8996 if test "x$LINE" != x ; then
8997 eval "DEFAULT_$LINE"
8998 else
8999 no_cache=1
9000 fi
9001
9002 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9003
9004fi;
9005
9006 eval "$ac_cv_use_textdlg"
9007 if test "$no_cache" != 1; then
9008 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9009 fi
9010
9011 if test "$wxUSE_TEXTDLG" = yes; then
9012 echo "$as_me:$LINENO: result: yes" >&5
9013echo "${ECHO_T}yes" >&6
9014 else
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017 fi
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9025if test "${enable_tipdlg+set}" = set; then
9026 enableval="$enable_tipdlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9030 else
9031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9044
9045fi;
9046
9047 eval "$ac_cv_use_tipdlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_STARTUP_TIPS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9066if test "${enable_progressdlg+set}" = set; then
9067 enableval="$enable_progressdlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9071 else
9072 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_progressdlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_PROGRESSDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9107if test "${enable_wizarddlg+set}" = set; then
9108 enableval="$enable_wizarddlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9112 else
9113 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_wizarddlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_WIZARDDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143
9144
9145 enablestring=
9146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9147echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9148 no_cache=0
9149 # Check whether --enable-menus or --disable-menus was given.
9150if test "${enable_menus+set}" = set; then
9151 enableval="$enable_menus"
9152
9153 if test "$enableval" = yes; then
9154 ac_cv_use_menus='wxUSE_MENUS=yes'
9155 else
9156 ac_cv_use_menus='wxUSE_MENUS=no'
9157 fi
9158
9159else
9160
9161 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9162 if test "x$LINE" != x ; then
9163 eval "DEFAULT_$LINE"
9164 else
9165 no_cache=1
9166 fi
9167
9168 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9169
9170fi;
9171
9172 eval "$ac_cv_use_menus"
9173 if test "$no_cache" != 1; then
9174 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9175 fi
9176
9177 if test "$wxUSE_MENUS" = yes; then
9178 echo "$as_me:$LINENO: result: yes" >&5
9179echo "${ECHO_T}yes" >&6
9180 else
9181 echo "$as_me:$LINENO: result: no" >&5
9182echo "${ECHO_T}no" >&6
9183 fi
9184
9185
9186 enablestring=
9187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9188echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9189 no_cache=0
9190 # Check whether --enable-miniframe or --disable-miniframe was given.
9191if test "${enable_miniframe+set}" = set; then
9192 enableval="$enable_miniframe"
9193
9194 if test "$enableval" = yes; then
9195 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9196 else
9197 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9198 fi
9199
9200else
9201
9202 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9203 if test "x$LINE" != x ; then
9204 eval "DEFAULT_$LINE"
9205 else
9206 no_cache=1
9207 fi
9208
9209 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9210
9211fi;
9212
9213 eval "$ac_cv_use_miniframe"
9214 if test "$no_cache" != 1; then
9215 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9216 fi
9217
9218 if test "$wxUSE_MINIFRAME" = yes; then
9219 echo "$as_me:$LINENO: result: yes" >&5
9220echo "${ECHO_T}yes" >&6
9221 else
9222 echo "$as_me:$LINENO: result: no" >&5
9223echo "${ECHO_T}no" >&6
9224 fi
9225
9226
9227 enablestring=
9228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9229echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9230 no_cache=0
9231 # Check whether --enable-tooltips or --disable-tooltips was given.
9232if test "${enable_tooltips+set}" = set; then
9233 enableval="$enable_tooltips"
9234
9235 if test "$enableval" = yes; then
9236 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9237 else
9238 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9239 fi
9240
9241else
9242
9243 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9244 if test "x$LINE" != x ; then
9245 eval "DEFAULT_$LINE"
9246 else
9247 no_cache=1
9248 fi
9249
9250 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9251
9252fi;
9253
9254 eval "$ac_cv_use_tooltips"
9255 if test "$no_cache" != 1; then
9256 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9257 fi
9258
9259 if test "$wxUSE_TOOLTIPS" = yes; then
9260 echo "$as_me:$LINENO: result: yes" >&5
9261echo "${ECHO_T}yes" >&6
9262 else
9263 echo "$as_me:$LINENO: result: no" >&5
9264echo "${ECHO_T}no" >&6
9265 fi
9266
9267
9268 enablestring=
9269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9270echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9271 no_cache=0
9272 # Check whether --enable-splines or --disable-splines was given.
9273if test "${enable_splines+set}" = set; then
9274 enableval="$enable_splines"
9275
9276 if test "$enableval" = yes; then
9277 ac_cv_use_splines='wxUSE_SPLINES=yes'
9278 else
9279 ac_cv_use_splines='wxUSE_SPLINES=no'
9280 fi
9281
9282else
9283
9284 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9285 if test "x$LINE" != x ; then
9286 eval "DEFAULT_$LINE"
9287 else
9288 no_cache=1
9289 fi
9290
9291 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9292
9293fi;
9294
9295 eval "$ac_cv_use_splines"
9296 if test "$no_cache" != 1; then
9297 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9298 fi
9299
9300 if test "$wxUSE_SPLINES" = yes; then
9301 echo "$as_me:$LINENO: result: yes" >&5
9302echo "${ECHO_T}yes" >&6
9303 else
9304 echo "$as_me:$LINENO: result: no" >&5
9305echo "${ECHO_T}no" >&6
9306 fi
9307
9308
9309 enablestring=
9310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9311echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9312 no_cache=0
9313 # Check whether --enable-validators or --disable-validators was given.
9314if test "${enable_validators+set}" = set; then
9315 enableval="$enable_validators"
9316
9317 if test "$enableval" = yes; then
9318 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9319 else
9320 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9321 fi
9322
9323else
9324
9325 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9326 if test "x$LINE" != x ; then
9327 eval "DEFAULT_$LINE"
9328 else
9329 no_cache=1
9330 fi
9331
9332 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9333
9334fi;
9335
9336 eval "$ac_cv_use_validators"
9337 if test "$no_cache" != 1; then
9338 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9339 fi
9340
9341 if test "$wxUSE_VALIDATORS" = yes; then
9342 echo "$as_me:$LINENO: result: yes" >&5
9343echo "${ECHO_T}yes" >&6
9344 else
9345 echo "$as_me:$LINENO: result: no" >&5
9346echo "${ECHO_T}no" >&6
9347 fi
9348
9349
9350 enablestring=
9351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9352echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9353 no_cache=0
9354 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9355if test "${enable_busyinfo+set}" = set; then
9356 enableval="$enable_busyinfo"
9357
9358 if test "$enableval" = yes; then
9359 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9360 else
9361 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9362 fi
9363
9364else
9365
9366 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9367 if test "x$LINE" != x ; then
9368 eval "DEFAULT_$LINE"
9369 else
9370 no_cache=1
9371 fi
9372
9373 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9374
9375fi;
9376
9377 eval "$ac_cv_use_busyinfo"
9378 if test "$no_cache" != 1; then
9379 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9380 fi
9381
9382 if test "$wxUSE_BUSYINFO" = yes; then
9383 echo "$as_me:$LINENO: result: yes" >&5
9384echo "${ECHO_T}yes" >&6
9385 else
9386 echo "$as_me:$LINENO: result: no" >&5
9387echo "${ECHO_T}no" >&6
9388 fi
9389
9390
9391 enablestring=
9392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9393echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9394 no_cache=0
9395 # Check whether --enable-joystick or --disable-joystick was given.
9396if test "${enable_joystick+set}" = set; then
9397 enableval="$enable_joystick"
9398
9399 if test "$enableval" = yes; then
9400 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9401 else
9402 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9403 fi
9404
9405else
9406
9407 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9408 if test "x$LINE" != x ; then
9409 eval "DEFAULT_$LINE"
9410 else
9411 no_cache=1
9412 fi
9413
9414 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9415
9416fi;
9417
9418 eval "$ac_cv_use_joystick"
9419 if test "$no_cache" != 1; then
9420 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9421 fi
9422
9423 if test "$wxUSE_JOYSTICK" = yes; then
9424 echo "$as_me:$LINENO: result: yes" >&5
9425echo "${ECHO_T}yes" >&6
9426 else
9427 echo "$as_me:$LINENO: result: no" >&5
9428echo "${ECHO_T}no" >&6
9429 fi
9430
9431
9432 enablestring=
9433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9434echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9435 no_cache=0
9436 # Check whether --enable-metafile or --disable-metafile was given.
9437if test "${enable_metafile+set}" = set; then
9438 enableval="$enable_metafile"
9439
9440 if test "$enableval" = yes; then
9441 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9442 else
9443 ac_cv_use_metafile='wxUSE_METAFILE=no'
9444 fi
9445
9446else
9447
9448 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9449 if test "x$LINE" != x ; then
9450 eval "DEFAULT_$LINE"
9451 else
9452 no_cache=1
9453 fi
9454
9455 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9456
9457fi;
9458
9459 eval "$ac_cv_use_metafile"
9460 if test "$no_cache" != 1; then
9461 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9462 fi
9463
9464 if test "$wxUSE_METAFILE" = yes; then
9465 echo "$as_me:$LINENO: result: yes" >&5
9466echo "${ECHO_T}yes" >&6
9467 else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470 fi
9471
9472
9473 enablestring=
9474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9475echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9476 no_cache=0
9477 # Check whether --enable-dragimage or --disable-dragimage was given.
9478if test "${enable_dragimage+set}" = set; then
9479 enableval="$enable_dragimage"
9480
9481 if test "$enableval" = yes; then
9482 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9483 else
9484 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9485 fi
9486
9487else
9488
9489 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9490 if test "x$LINE" != x ; then
9491 eval "DEFAULT_$LINE"
9492 else
9493 no_cache=1
9494 fi
9495
9496 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9497
9498fi;
9499
9500 eval "$ac_cv_use_dragimage"
9501 if test "$no_cache" != 1; then
9502 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9503 fi
9504
9505 if test "$wxUSE_DRAGIMAGE" = yes; then
9506 echo "$as_me:$LINENO: result: yes" >&5
9507echo "${ECHO_T}yes" >&6
9508 else
9509 echo "$as_me:$LINENO: result: no" >&5
9510echo "${ECHO_T}no" >&6
9511 fi
9512
9513
9514 enablestring=
9515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9516echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9517 no_cache=0
9518 # Check whether --enable-accessibility or --disable-accessibility was given.
9519if test "${enable_accessibility+set}" = set; then
9520 enableval="$enable_accessibility"
9521
9522 if test "$enableval" = yes; then
9523 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9524 else
9525 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9526 fi
9527
9528else
9529
9530 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9531 if test "x$LINE" != x ; then
9532 eval "DEFAULT_$LINE"
9533 else
9534 no_cache=1
9535 fi
9536
9537 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9538
9539fi;
9540
9541 eval "$ac_cv_use_accessibility"
9542 if test "$no_cache" != 1; then
9543 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9544 fi
9545
9546 if test "$wxUSE_ACCESSIBILITY" = yes; then
9547 echo "$as_me:$LINENO: result: yes" >&5
9548echo "${ECHO_T}yes" >&6
9549 else
9550 echo "$as_me:$LINENO: result: no" >&5
9551echo "${ECHO_T}no" >&6
9552 fi
9553
9554
9555
9556
9557 enablestring=
9558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9559echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9560 no_cache=0
9561 # Check whether --enable-palette or --disable-palette was given.
9562if test "${enable_palette+set}" = set; then
9563 enableval="$enable_palette"
9564
9565 if test "$enableval" = yes; then
9566 ac_cv_use_palette='wxUSE_PALETTE=yes'
9567 else
9568 ac_cv_use_palette='wxUSE_PALETTE=no'
9569 fi
9570
9571else
9572
9573 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9574 if test "x$LINE" != x ; then
9575 eval "DEFAULT_$LINE"
9576 else
9577 no_cache=1
9578 fi
9579
9580 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9581
9582fi;
9583
9584 eval "$ac_cv_use_palette"
9585 if test "$no_cache" != 1; then
9586 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9587 fi
9588
9589 if test "$wxUSE_PALETTE" = yes; then
9590 echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6
9592 else
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
9595 fi
9596
9597
9598 enablestring=
9599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9600echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9601 no_cache=0
9602 # Check whether --enable-image or --disable-image was given.
9603if test "${enable_image+set}" = set; then
9604 enableval="$enable_image"
9605
9606 if test "$enableval" = yes; then
9607 ac_cv_use_image='wxUSE_IMAGE=yes'
9608 else
9609 ac_cv_use_image='wxUSE_IMAGE=no'
9610 fi
9611
9612else
9613
9614 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9615 if test "x$LINE" != x ; then
9616 eval "DEFAULT_$LINE"
9617 else
9618 no_cache=1
9619 fi
9620
9621 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9622
9623fi;
9624
9625 eval "$ac_cv_use_image"
9626 if test "$no_cache" != 1; then
9627 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9628 fi
9629
9630 if test "$wxUSE_IMAGE" = yes; then
9631 echo "$as_me:$LINENO: result: yes" >&5
9632echo "${ECHO_T}yes" >&6
9633 else
9634 echo "$as_me:$LINENO: result: no" >&5
9635echo "${ECHO_T}no" >&6
9636 fi
9637
9638
9639 enablestring=
9640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9641echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9642 no_cache=0
9643 # Check whether --enable-gif or --disable-gif was given.
9644if test "${enable_gif+set}" = set; then
9645 enableval="$enable_gif"
9646
9647 if test "$enableval" = yes; then
9648 ac_cv_use_gif='wxUSE_GIF=yes'
9649 else
9650 ac_cv_use_gif='wxUSE_GIF=no'
9651 fi
9652
9653else
9654
9655 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9656 if test "x$LINE" != x ; then
9657 eval "DEFAULT_$LINE"
9658 else
9659 no_cache=1
9660 fi
9661
9662 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9663
9664fi;
9665
9666 eval "$ac_cv_use_gif"
9667 if test "$no_cache" != 1; then
9668 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9669 fi
9670
9671 if test "$wxUSE_GIF" = yes; then
9672 echo "$as_me:$LINENO: result: yes" >&5
9673echo "${ECHO_T}yes" >&6
9674 else
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
9677 fi
9678
9679
9680 enablestring=
9681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9682echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9683 no_cache=0
9684 # Check whether --enable-pcx or --disable-pcx was given.
9685if test "${enable_pcx+set}" = set; then
9686 enableval="$enable_pcx"
9687
9688 if test "$enableval" = yes; then
9689 ac_cv_use_pcx='wxUSE_PCX=yes'
9690 else
9691 ac_cv_use_pcx='wxUSE_PCX=no'
9692 fi
9693
9694else
9695
9696 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9697 if test "x$LINE" != x ; then
9698 eval "DEFAULT_$LINE"
9699 else
9700 no_cache=1
9701 fi
9702
9703 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9704
9705fi;
9706
9707 eval "$ac_cv_use_pcx"
9708 if test "$no_cache" != 1; then
9709 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9710 fi
9711
9712 if test "$wxUSE_PCX" = yes; then
9713 echo "$as_me:$LINENO: result: yes" >&5
9714echo "${ECHO_T}yes" >&6
9715 else
9716 echo "$as_me:$LINENO: result: no" >&5
9717echo "${ECHO_T}no" >&6
9718 fi
9719
9720
9721 enablestring=
9722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9723echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9724 no_cache=0
9725 # Check whether --enable-iff or --disable-iff was given.
9726if test "${enable_iff+set}" = set; then
9727 enableval="$enable_iff"
9728
9729 if test "$enableval" = yes; then
9730 ac_cv_use_iff='wxUSE_IFF=yes'
9731 else
9732 ac_cv_use_iff='wxUSE_IFF=no'
9733 fi
9734
9735else
9736
9737 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9738 if test "x$LINE" != x ; then
9739 eval "DEFAULT_$LINE"
9740 else
9741 no_cache=1
9742 fi
9743
9744 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9745
9746fi;
9747
9748 eval "$ac_cv_use_iff"
9749 if test "$no_cache" != 1; then
9750 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9751 fi
9752
9753 if test "$wxUSE_IFF" = yes; then
9754 echo "$as_me:$LINENO: result: yes" >&5
9755echo "${ECHO_T}yes" >&6
9756 else
9757 echo "$as_me:$LINENO: result: no" >&5
9758echo "${ECHO_T}no" >&6
9759 fi
9760
9761
9762 enablestring=
9763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9764echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9765 no_cache=0
9766 # Check whether --enable-pnm or --disable-pnm was given.
9767if test "${enable_pnm+set}" = set; then
9768 enableval="$enable_pnm"
9769
9770 if test "$enableval" = yes; then
9771 ac_cv_use_pnm='wxUSE_PNM=yes'
9772 else
9773 ac_cv_use_pnm='wxUSE_PNM=no'
9774 fi
9775
9776else
9777
9778 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9779 if test "x$LINE" != x ; then
9780 eval "DEFAULT_$LINE"
9781 else
9782 no_cache=1
9783 fi
9784
9785 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9786
9787fi;
9788
9789 eval "$ac_cv_use_pnm"
9790 if test "$no_cache" != 1; then
9791 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9792 fi
9793
9794 if test "$wxUSE_PNM" = yes; then
9795 echo "$as_me:$LINENO: result: yes" >&5
9796echo "${ECHO_T}yes" >&6
9797 else
9798 echo "$as_me:$LINENO: result: no" >&5
9799echo "${ECHO_T}no" >&6
9800 fi
9801
9802
9803 enablestring=
9804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9805echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9806 no_cache=0
9807 # Check whether --enable-xpm or --disable-xpm was given.
9808if test "${enable_xpm+set}" = set; then
9809 enableval="$enable_xpm"
9810
9811 if test "$enableval" = yes; then
9812 ac_cv_use_xpm='wxUSE_XPM=yes'
9813 else
9814 ac_cv_use_xpm='wxUSE_XPM=no'
9815 fi
9816
9817else
9818
9819 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9820 if test "x$LINE" != x ; then
9821 eval "DEFAULT_$LINE"
9822 else
9823 no_cache=1
9824 fi
9825
9826 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9827
9828fi;
9829
9830 eval "$ac_cv_use_xpm"
9831 if test "$no_cache" != 1; then
9832 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9833 fi
9834
9835 if test "$wxUSE_XPM" = yes; then
9836 echo "$as_me:$LINENO: result: yes" >&5
9837echo "${ECHO_T}yes" >&6
9838 else
9839 echo "$as_me:$LINENO: result: no" >&5
9840echo "${ECHO_T}no" >&6
9841 fi
9842
9843
9844 enablestring=
9845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9846echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9847 no_cache=0
9848 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9849if test "${enable_ico_cur+set}" = set; then
9850 enableval="$enable_ico_cur"
9851
9852 if test "$enableval" = yes; then
9853 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9854 else
9855 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9856 fi
9857
9858else
9859
9860 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9861 if test "x$LINE" != x ; then
9862 eval "DEFAULT_$LINE"
9863 else
9864 no_cache=1
9865 fi
9866
9867 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9868
9869fi;
9870
9871 eval "$ac_cv_use_ico_cur"
9872 if test "$no_cache" != 1; then
9873 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9874 fi
9875
9876 if test "$wxUSE_ICO_CUR" = yes; then
9877 echo "$as_me:$LINENO: result: yes" >&5
9878echo "${ECHO_T}yes" >&6
9879 else
9880 echo "$as_me:$LINENO: result: no" >&5
9881echo "${ECHO_T}no" >&6
9882 fi
9883
9884
9885fi
9886
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9891echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-official_build or --disable-official_build was given.
9894if test "${enable_official_build+set}" = set; then
9895 enableval="$enable_official_build"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9899 else
9900 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9901 fi
9902
9903else
9904
9905 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9906 if test "x$LINE" != x ; then
9907 eval "DEFAULT_$LINE"
9908 else
9909 no_cache=1
9910 fi
9911
9912 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9913
9914fi;
9915
9916 eval "$ac_cv_use_official_build"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9922 echo "$as_me:$LINENO: result: yes" >&5
9923echo "${ECHO_T}yes" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
9927 fi
9928
9929# Check whether --enable-vendor or --disable-vendor was given.
9930if test "${enable_vendor+set}" = set; then
9931 enableval="$enable_vendor"
9932 VENDOR="$enableval"
9933fi;
9934if test "x$VENDOR" = "x"; then
9935 VENDOR="custom"
9936fi
9937
9938case "${host}" in
9939 *-pc-os2_emx | *-pc-os2-emx )
9940 PATH_IFS=';'
a848cd7e
SC
9941 ;;
9942 *)
9943 PATH_IFS=':'
9944 ;;
9945esac
9946
9947
9948
9949 echo "saving argument cache $wx_arg_cache_file"
9950 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9951
9952
9953
9954echo "$as_me:$LINENO: checking for toolkit" >&5
9955echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9956
9957# In Wine, we need to default to MSW, not GTK or MOTIF
9958if test "$wxUSE_WINE" = "yes"; then
9959 DEFAULT_DEFAULT_wxUSE_GTK=0
9960 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9961 DEFAULT_DEFAULT_wxUSE_MSW=1
9962 wxUSE_SHARED=no
9963fi
9964
9965if test "$wxUSE_GUI" = "yes"; then
9966
9967 if test "$USE_BEOS" = 1; then
9968 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9969echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi
9972
9973 if test "$TOOLKIT_GIVEN" = 1; then
9974 for toolkit in `echo $ALL_TOOLKITS`; do
9975 var=wxUSE_$toolkit
9976 eval "value=\$${var}"
9977 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9978 done
9979 else
9980 for toolkit in `echo $ALL_TOOLKITS`; do
9981 if test "$has_toolkit_in_cache" != 1; then
9982 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9983 else
9984 var=DEFAULT_wxUSE_$toolkit
9985 fi
9986 eval "wxUSE_$toolkit=\$${var}"
9987 done
9988 fi
9989
9990 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9991 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9992 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9993
9994 case "${host}" in
9995 *-pc-os2_emx | *-pc-os2-emx )
9996 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9997 esac
9998
9999 case "$NUM_TOOLKITS" in
10000 1)
10001 ;;
10002 0)
10003 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10004echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10005 { (exit 1); exit 1; }; }
10006 ;;
10007 *)
10008 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10009echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10010 { (exit 1); exit 1; }; }
10011 esac
10012
10013 for toolkit in `echo $ALL_TOOLKITS`; do
10014 var=wxUSE_$toolkit
10015 eval "value=\$${var}"
10016 if test "x$value" != x; then
10017 cache_var=CACHE_$toolkit
10018 eval "cache=\$${cache_var}"
10019 if test "$cache" = 1; then
10020 echo "$var=$value" >> ${wx_arg_cache_file}
10021 fi
10022 if test "$value" = 1; then
10023 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10024 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10025echo "${ECHO_T}$toolkit_echo" >&6
10026 fi
10027 fi
10028 done
10029else
10030 if test "x$host_alias" != "x"; then
10031 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10032echo "${ECHO_T}base ($host_alias hosted) only" >&6
10033 else
10034 echo "$as_me:$LINENO: result: base only" >&5
10035echo "${ECHO_T}base only" >&6
10036 fi
10037fi
10038
10039wants_win32=0
10040doesnt_want_win32=0
10041case "${host}" in
10042 *-*-cygwin*)
10043 if test "$wxUSE_MSW" = 1 ; then
10044 wants_win32=1
10045 else
10046 doesnt_want_win32=1
10047 fi
10048 ;;
10049 *-*-mingw*)
10050 wants_win32=1
10051 ;;
10052esac
10053
10054if test "$wxUSE_WINE" = "yes"; then
10055 wants_win32=1
10056 CC=winegcc
10057 CXX=wineg++
10058 RESCOMP=wrc
10059 LDFLAGS_GUI="-mwindows"
10060fi
10061
10062if test "$wants_win32" = 1 ; then
10063 USE_UNIX=0
10064 USE_WIN32=1
10065 cat >>confdefs.h <<\_ACEOF
10066#define __WIN32__ 1
10067_ACEOF
10068
10069 cat >>confdefs.h <<\_ACEOF
10070#define __WIN95__ 1
10071_ACEOF
10072
10073 cat >>confdefs.h <<\_ACEOF
10074#define __WINDOWS__ 1
10075_ACEOF
10076
10077 cat >>confdefs.h <<\_ACEOF
10078#define __GNUWIN32__ 1
10079_ACEOF
10080
10081 cat >>confdefs.h <<\_ACEOF
10082#define STRICT 1
10083_ACEOF
10084
10085 cat >>confdefs.h <<\_ACEOF
10086#define WINVER 0x0400
10087_ACEOF
10088
10089fi
10090if test "$doesnt_want_win32" = 1 ; then
10091 USE_UNIX=1
10092 USE_WIN32=0
10093fi
10094
10095if test "$USE_UNIX" = 1 ; then
10096 wxUSE_UNIX=yes
10097 cat >>confdefs.h <<\_ACEOF
10098#define __UNIX__ 1
10099_ACEOF
10100
10101fi
10102
10103
10104cat >confcache <<\_ACEOF
10105# This file is a shell script that caches the results of configure
10106# tests run on this system so they can be shared between configure
10107# scripts and configure runs, see configure's option --config-cache.
10108# It is not useful on other systems. If it contains results you don't
10109# want to keep, you may remove or edit it.
10110#
10111# config.status only pays attention to the cache file if you give it
10112# the --recheck option to rerun configure.
10113#
10114# `ac_cv_env_foo' variables (set or unset) will be overridden when
10115# loading this file, other *unset* `ac_cv_foo' will be assigned the
10116# following values.
10117
10118_ACEOF
10119
10120# The following way of writing the cache mishandles newlines in values,
10121# but we know of no workaround that is simple, portable, and efficient.
10122# So, don't put newlines in cache variables' values.
10123# Ultrix sh set writes to stderr and can't be redirected directly,
10124# and sets the high bit in the cache file unless we assign to the vars.
10125{
10126 (set) 2>&1 |
10127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10128 *ac_space=\ *)
10129 # `set' does not quote correctly, so add quotes (double-quote
10130 # substitution turns \\\\ into \\, and sed turns \\ into \).
10131 sed -n \
ac1cb8d3
VS
10132 "s/'/'\\\\''/g;
10133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10134 ;;
10135 *)
10136 # `set' quotes correctly as required by POSIX, so do not add quotes.
10137 sed -n \
ac1cb8d3 10138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10139 ;;
10140 esac;
10141} |
10142 sed '
10143 t clear
10144 : clear
10145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10146 t end
10147 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10148 : end' >>confcache
10149if diff $cache_file confcache >/dev/null 2>&1; then :; else
10150 if test -w $cache_file; then
10151 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10152 cat confcache >$cache_file
10153 else
10154 echo "not updating unwritable cache $cache_file"
10155 fi
10156fi
10157rm -f confcache
10158
10159if test "$build" != "$host" ; then
10160 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10161 CC=$host_alias-gcc
10162 CXX=$host_alias-c++
10163 AR=$host_alias-ar
10164 RANLIB=$host_alias-ranlib
10165 DLLTOOL=$host_alias-dlltool
10166 RESCOMP=$host_alias-windres
10167 LD=$host_alias-ld
10168 NM=$host_alias-nm
10169 STRIP=$host_alias-strip
10170 else
10171 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10172echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10173 { (exit 1); exit 1; }; }
10174 fi
10175fi
10176
10177CFLAGS=${CFLAGS:=}
10178ac_ext=c
10179ac_cpp='$CPP $CPPFLAGS'
10180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183if test -n "$ac_tool_prefix"; then
10184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10185set dummy ${ac_tool_prefix}gcc; ac_word=$2
10186echo "$as_me:$LINENO: checking for $ac_word" >&5
10187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188if test "${ac_cv_prog_CC+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191 if test -n "$CC"; then
10192 ac_cv_prog_CC="$CC" # Let the user override the test.
10193else
10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205done
10206done
10207
10208fi
10209fi
10210CC=$ac_cv_prog_CC
10211if test -n "$CC"; then
10212 echo "$as_me:$LINENO: result: $CC" >&5
10213echo "${ECHO_T}$CC" >&6
10214else
10215 echo "$as_me:$LINENO: result: no" >&5
10216echo "${ECHO_T}no" >&6
10217fi
10218
10219fi
10220if test -z "$ac_cv_prog_CC"; then
10221 ac_ct_CC=$CC
10222 # Extract the first word of "gcc", so it can be a program name with args.
10223set dummy gcc; ac_word=$2
10224echo "$as_me:$LINENO: checking for $ac_word" >&5
10225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229 if test -n "$ac_ct_CC"; then
10230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10231else
10232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $PATH
10234do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239 ac_cv_prog_ac_ct_CC="gcc"
10240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10242 fi
10243done
10244done
10245
10246fi
10247fi
10248ac_ct_CC=$ac_cv_prog_ac_ct_CC
10249if test -n "$ac_ct_CC"; then
10250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10251echo "${ECHO_T}$ac_ct_CC" >&6
10252else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255fi
10256
10257 CC=$ac_ct_CC
10258else
10259 CC="$ac_cv_prog_CC"
10260fi
10261
10262if test -z "$CC"; then
10263 if test -n "$ac_tool_prefix"; then
10264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10265set dummy ${ac_tool_prefix}cc; ac_word=$2
10266echo "$as_me:$LINENO: checking for $ac_word" >&5
10267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268if test "${ac_cv_prog_CC+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 if test -n "$CC"; then
10272 ac_cv_prog_CC="$CC" # Let the user override the test.
10273else
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281 ac_cv_prog_CC="${ac_tool_prefix}cc"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10284 fi
10285done
10286done
10287
10288fi
10289fi
10290CC=$ac_cv_prog_CC
10291if test -n "$CC"; then
10292 echo "$as_me:$LINENO: result: $CC" >&5
10293echo "${ECHO_T}$CC" >&6
10294else
10295 echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297fi
10298
10299fi
10300if test -z "$ac_cv_prog_CC"; then
10301 ac_ct_CC=$CC
10302 # Extract the first word of "cc", so it can be a program name with args.
10303set dummy cc; ac_word=$2
10304echo "$as_me:$LINENO: checking for $ac_word" >&5
10305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 if test -n "$ac_ct_CC"; then
10310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10311else
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_ac_ct_CC="cc"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323done
10324done
10325
10326fi
10327fi
10328ac_ct_CC=$ac_cv_prog_ac_ct_CC
10329if test -n "$ac_ct_CC"; then
10330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10331echo "${ECHO_T}$ac_ct_CC" >&6
10332else
10333 echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6
10335fi
10336
10337 CC=$ac_ct_CC
10338else
10339 CC="$ac_cv_prog_CC"
10340fi
10341
10342fi
10343if test -z "$CC"; then
10344 # Extract the first word of "cc", so it can be a program name with args.
10345set dummy cc; ac_word=$2
10346echo "$as_me:$LINENO: checking for $ac_word" >&5
10347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348if test "${ac_cv_prog_CC+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 if test -n "$CC"; then
10352 ac_cv_prog_CC="$CC" # Let the user override the test.
10353else
10354 ac_prog_rejected=no
10355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
10357do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10363 ac_prog_rejected=yes
10364 continue
10365 fi
10366 ac_cv_prog_CC="cc"
10367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10369 fi
10370done
10371done
10372
10373if test $ac_prog_rejected = yes; then
10374 # We found a bogon in the path, so make sure we never use it.
10375 set dummy $ac_cv_prog_CC
10376 shift
10377 if test $# != 0; then
10378 # We chose a different compiler from the bogus one.
10379 # However, it has the same basename, so the bogon will be chosen
10380 # first if we set CC to just the basename; use the full file name.
10381 shift
10382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10383 fi
10384fi
10385fi
10386fi
10387CC=$ac_cv_prog_CC
10388if test -n "$CC"; then
10389 echo "$as_me:$LINENO: result: $CC" >&5
10390echo "${ECHO_T}$CC" >&6
10391else
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
10394fi
10395
10396fi
10397if test -z "$CC"; then
10398 if test -n "$ac_tool_prefix"; then
10399 for ac_prog in cl
10400 do
10401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10403echo "$as_me:$LINENO: checking for $ac_word" >&5
10404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10405if test "${ac_cv_prog_CC+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407else
10408 if test -n "$CC"; then
10409 ac_cv_prog_CC="$CC" # Let the user override the test.
10410else
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422done
10423done
10424
10425fi
10426fi
10427CC=$ac_cv_prog_CC
10428if test -n "$CC"; then
10429 echo "$as_me:$LINENO: result: $CC" >&5
10430echo "${ECHO_T}$CC" >&6
10431else
10432 echo "$as_me:$LINENO: result: no" >&5
10433echo "${ECHO_T}no" >&6
10434fi
10435
10436 test -n "$CC" && break
10437 done
10438fi
10439if test -z "$CC"; then
10440 ac_ct_CC=$CC
10441 for ac_prog in cl
10442do
10443 # Extract the first word of "$ac_prog", so it can be a program name with args.
10444set dummy $ac_prog; ac_word=$2
10445echo "$as_me:$LINENO: checking for $ac_word" >&5
10446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 if test -n "$ac_ct_CC"; then
10451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_ac_ct_CC="$ac_prog"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464done
10465done
10466
10467fi
10468fi
10469ac_ct_CC=$ac_cv_prog_ac_ct_CC
10470if test -n "$ac_ct_CC"; then
10471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10472echo "${ECHO_T}$ac_ct_CC" >&6
10473else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476fi
10477
10478 test -n "$ac_ct_CC" && break
10479done
10480
10481 CC=$ac_ct_CC
10482fi
10483
10484fi
10485
10486
10487test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10488See \`config.log' for more details." >&5
10489echo "$as_me: error: no acceptable C compiler found in \$PATH
10490See \`config.log' for more details." >&2;}
10491 { (exit 1); exit 1; }; }
10492
10493# Provide some information about the compiler.
10494echo "$as_me:$LINENO:" \
10495 "checking for C compiler version" >&5
10496ac_compiler=`set X $ac_compile; echo $2`
10497{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10498 (eval $ac_compiler --version </dev/null >&5) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }
10502{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10503 (eval $ac_compiler -v </dev/null >&5) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }
10507{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10508 (eval $ac_compiler -V </dev/null >&5) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }
10512
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519
10520int
10521main ()
10522{
10523
10524 ;
10525 return 0;
10526}
10527_ACEOF
10528ac_clean_files_save=$ac_clean_files
10529ac_clean_files="$ac_clean_files a.out a.exe b.out"
10530# Try to create an executable without -o first, disregard a.out.
10531# It will help us diagnose broken compilers, and finding out an intuition
10532# of exeext.
ac1cb8d3
VS
10533echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10534echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10535ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10536if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10537 (eval $ac_link_default) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; then
10541 # Find the output, starting from the most likely. This scheme is
10542# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10543# resort.
10544
10545# Be careful to initialize this variable, since it used to be cached.
10546# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10547ac_cv_exeext=
10548# b.out is created by i960 compilers.
10549for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10550do
10551 test -f "$ac_file" || continue
10552 case $ac_file in
10553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10554 ;;
a848cd7e 10555 conftest.$ac_ext )
ac1cb8d3
VS
10556 # This is the source file.
10557 ;;
a848cd7e 10558 [ab].out )
ac1cb8d3
VS
10559 # We found the default executable, but exeext='' is most
10560 # certainly right.
10561 break;;
a848cd7e 10562 *.* )
ac1cb8d3
VS
10563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10564 # FIXME: I believe we export ac_cv_exeext for Libtool,
10565 # but it would be cool to find out if it's true. Does anybody
10566 # maintain Libtool? --akim.
10567 export ac_cv_exeext
10568 break;;
a848cd7e 10569 * )
ac1cb8d3 10570 break;;
a848cd7e
SC
10571 esac
10572done
10573else
10574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10578See \`config.log' for more details." >&5
10579echo "$as_me: error: C compiler cannot create executables
10580See \`config.log' for more details." >&2;}
10581 { (exit 77); exit 77; }; }
10582fi
10583
10584ac_exeext=$ac_cv_exeext
10585echo "$as_me:$LINENO: result: $ac_file" >&5
10586echo "${ECHO_T}$ac_file" >&6
10587
10588# Check the compiler produces executables we can run. If not, either
10589# the compiler is broken, or we cross compile.
10590echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10591echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10592# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10593# If not cross compiling, check that we can run a simple program.
10594if test "$cross_compiling" != yes; then
10595 if { ac_try='./$ac_file'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 cross_compiling=no
10602 else
10603 if test "$cross_compiling" = maybe; then
10604 cross_compiling=yes
10605 else
10606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10607If you meant to cross compile, use \`--host'.
10608See \`config.log' for more details." >&5
10609echo "$as_me: error: cannot run C compiled programs.
10610If you meant to cross compile, use \`--host'.
10611See \`config.log' for more details." >&2;}
10612 { (exit 1); exit 1; }; }
10613 fi
10614 fi
10615fi
10616echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618
10619rm -f a.out a.exe conftest$ac_cv_exeext b.out
10620ac_clean_files=$ac_clean_files_save
10621# Check the compiler produces executables we can run. If not, either
10622# the compiler is broken, or we cross compile.
10623echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10624echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10625echo "$as_me:$LINENO: result: $cross_compiling" >&5
10626echo "${ECHO_T}$cross_compiling" >&6
10627
10628echo "$as_me:$LINENO: checking for suffix of executables" >&5
10629echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; then
10635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10636# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10637# work properly (i.e., refer to `conftest.exe'), while it won't with
10638# `rm'.
10639for ac_file in conftest.exe conftest conftest.*; do
10640 test -f "$ac_file" || continue
10641 case $ac_file in
10642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10644 export ac_cv_exeext
10645 break;;
a848cd7e
SC
10646 * ) break;;
10647 esac
10648done
10649else
10650 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10651See \`config.log' for more details." >&5
10652echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10653See \`config.log' for more details." >&2;}
10654 { (exit 1); exit 1; }; }
10655fi
10656
10657rm -f conftest$ac_cv_exeext
10658echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10659echo "${ECHO_T}$ac_cv_exeext" >&6
10660
10661rm -f conftest.$ac_ext
10662EXEEXT=$ac_cv_exeext
10663ac_exeext=$EXEEXT
10664echo "$as_me:$LINENO: checking for suffix of object files" >&5
10665echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10666if test "${ac_cv_objext+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668else
10669 cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h. */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
10674/* end confdefs.h. */
10675
10676int
10677main ()
10678{
10679
10680 ;
10681 return 0;
10682}
10683_ACEOF
10684rm -f conftest.o conftest.obj
10685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; then
10690 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10691 case $ac_file in
10692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10694 break;;
10695 esac
10696done
10697else
10698 echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10702See \`config.log' for more details." >&5
10703echo "$as_me: error: cannot compute suffix of object files: cannot compile
10704See \`config.log' for more details." >&2;}
10705 { (exit 1); exit 1; }; }
10706fi
10707
10708rm -f conftest.$ac_cv_objext conftest.$ac_ext
10709fi
10710echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10711echo "${ECHO_T}$ac_cv_objext" >&6
10712OBJEXT=$ac_cv_objext
10713ac_objext=$OBJEXT
10714echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10715echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10716if test "${ac_cv_c_compiler_gnu+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718else
10719 cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725
10726int
10727main ()
10728{
10729#ifndef __GNUC__
10730 choke me
10731#endif
10732
10733 ;
10734 return 0;
10735}
10736_ACEOF
10737rm -f conftest.$ac_objext
10738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10739 (eval $ac_compile) 2>conftest.er1
a848cd7e 10740 ac_status=$?
ac1cb8d3
VS
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
a848cd7e
SC
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
ea7db9ff
DE
10746 { ac_try='test -z "$ac_c_werror_flag"
10747 || 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); } &&
ea7db9ff
DE
10805 { ac_try='test -z "$ac_c_werror_flag"
10806 || test ! -s conftest.err'
ac1cb8d3
VS
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_prog_cc_g=yes
10819else
10820 echo "$as_me: failed program was:" >&5
10821sed 's/^/| /' conftest.$ac_ext >&5
10822
10823ac_cv_prog_cc_g=no
10824fi
ac1cb8d3 10825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10826fi
10827echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10828echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10829if test "$ac_test_CFLAGS" = set; then
10830 CFLAGS=$ac_save_CFLAGS
10831elif test $ac_cv_prog_cc_g = yes; then
10832 if test "$GCC" = yes; then
10833 CFLAGS="-g -O2"
10834 else
10835 CFLAGS="-g"
10836 fi
10837else
10838 if test "$GCC" = yes; then
10839 CFLAGS="-O2"
10840 else
10841 CFLAGS=
10842 fi
10843fi
10844echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10845echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10846if test "${ac_cv_prog_cc_stdc+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848else
10849 ac_cv_prog_cc_stdc=no
10850ac_save_CC=$CC
10851cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
10857#include <stdarg.h>
10858#include <stdio.h>
10859#include <sys/types.h>
10860#include <sys/stat.h>
10861/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10862struct buf { int x; };
10863FILE * (*rcsopen) (struct buf *, struct stat *, int);
10864static char *e (p, i)
10865 char **p;
10866 int i;
10867{
10868 return p[i];
10869}
10870static char *f (char * (*g) (char **, int), char **p, ...)
10871{
10872 char *s;
10873 va_list v;
10874 va_start (v,p);
10875 s = g (p, va_arg (v,int));
10876 va_end (v);
10877 return s;
10878}
ac1cb8d3
VS
10879
10880/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10881 function prototypes and stuff, but not '\xHH' hex character constants.
10882 These don't provoke an error unfortunately, instead are silently treated
10883 as 'x'. The following induces an error, until -std1 is added to get
10884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10885 array size at least. It's necessary to write '\x00'==0 to get something
10886 that's true only with -std1. */
10887int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10888
a848cd7e
SC
10889int test (int i, double x);
10890struct s1 {int (*f) (int a);};
10891struct s2 {int (*f) (double a);};
10892int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10893int argc;
10894char **argv;
10895int
10896main ()
10897{
10898return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10899 ;
10900 return 0;
10901}
10902_ACEOF
10903# Don't try gcc -ansi; that turns off useful extensions and
10904# breaks some systems' header files.
10905# AIX -qlanglvl=ansi
10906# Ultrix and OSF/1 -std1
10907# HP-UX 10.20 and later -Ae
10908# HP-UX older versions -Aa -D_HPUX_SOURCE
10909# SVR4 -Xc -D__EXTENSIONS__
10910for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10911do
10912 CC="$ac_save_CC $ac_arg"
10913 rm -f conftest.$ac_objext
10914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10915 (eval $ac_compile) 2>conftest.er1
a848cd7e 10916 ac_status=$?
ac1cb8d3
VS
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
a848cd7e
SC
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
ea7db9ff
DE
10922 { ac_try='test -z "$ac_c_werror_flag"
10923 || test ! -s conftest.err'
ac1cb8d3
VS
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 ac_cv_prog_cc_stdc=$ac_arg
10936break
10937else
10938 echo "$as_me: failed program was:" >&5
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941fi
ac1cb8d3 10942rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10943done
10944rm -f conftest.$ac_ext conftest.$ac_objext
10945CC=$ac_save_CC
10946
10947fi
10948
10949case "x$ac_cv_prog_cc_stdc" in
10950 x|xno)
10951 echo "$as_me:$LINENO: result: none needed" >&5
10952echo "${ECHO_T}none needed" >&6 ;;
10953 *)
10954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10955echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10956 CC="$CC $ac_cv_prog_cc_stdc" ;;
10957esac
10958
10959# Some people use a C++ compiler to compile C. Since we use `exit',
10960# in C++ we need to declare it. In case someone uses the same compiler
10961# for both compiling C and C++ we need to have the C++ compiler decide
10962# the declaration of exit, since it's the most demanding environment.
10963cat >conftest.$ac_ext <<_ACEOF
10964#ifndef __cplusplus
10965 choke me
10966#endif
10967_ACEOF
10968rm -f conftest.$ac_objext
10969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10970 (eval $ac_compile) 2>conftest.er1
a848cd7e 10971 ac_status=$?
ac1cb8d3
VS
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
a848cd7e
SC
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
ea7db9ff
DE
10977 { ac_try='test -z "$ac_c_werror_flag"
10978 || test ! -s conftest.err'
ac1cb8d3
VS
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 for ac_declaration in \
ac1cb8d3 10991 '' \
a848cd7e
SC
10992 'extern "C" void std::exit (int) throw (); using std::exit;' \
10993 'extern "C" void std::exit (int); using std::exit;' \
10994 'extern "C" void exit (int) throw ();' \
10995 'extern "C" void exit (int);' \
10996 'void exit (int);'
10997do
10998 cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
de59c161 11004$ac_declaration
ac1cb8d3 11005#include <stdlib.h>
a848cd7e
SC
11006int
11007main ()
11008{
11009exit (42);
11010 ;
11011 return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext
11015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11016 (eval $ac_compile) 2>conftest.er1
a848cd7e 11017 ac_status=$?
ac1cb8d3
VS
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
a848cd7e
SC
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
ea7db9ff
DE
11023 { ac_try='test -z "$ac_c_werror_flag"
11024 || test ! -s conftest.err'
ac1cb8d3
VS
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 :
11037else
11038 echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
11041continue
11042fi
ac1cb8d3 11043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11044 cat >conftest.$ac_ext <<_ACEOF
11045/* confdefs.h. */
11046_ACEOF
11047cat confdefs.h >>conftest.$ac_ext
11048cat >>conftest.$ac_ext <<_ACEOF
11049/* end confdefs.h. */
11050$ac_declaration
11051int
11052main ()
11053{
11054exit (42);
11055 ;
11056 return 0;
11057}
11058_ACEOF
11059rm -f conftest.$ac_objext
11060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11061 (eval $ac_compile) 2>conftest.er1
a848cd7e 11062 ac_status=$?
ac1cb8d3
VS
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
a848cd7e
SC
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
ea7db9ff
DE
11068 { ac_try='test -z "$ac_c_werror_flag"
11069 || test ! -s conftest.err'
ac1cb8d3
VS
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 break
11082else
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086fi
ac1cb8d3 11087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11088done
11089rm -f conftest*
11090if test -n "$ac_declaration"; then
11091 echo '#ifdef __cplusplus' >>confdefs.h
11092 echo $ac_declaration >>confdefs.h
11093 echo '#endif' >>confdefs.h
11094fi
11095
11096else
11097 echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
11100fi
ac1cb8d3 11101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11102ac_ext=c
11103ac_cpp='$CPP $CPPFLAGS'
11104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106ac_compiler_gnu=$ac_cv_c_compiler_gnu
11107
11108
11109
11110ac_ext=c
11111ac_cpp='$CPP $CPPFLAGS'
11112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11114ac_compiler_gnu=$ac_cv_c_compiler_gnu
11115echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11116echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11117# On Suns, sometimes $CPP names a directory.
11118if test -n "$CPP" && test -d "$CPP"; then
11119 CPP=
11120fi
11121if test -z "$CPP"; then
11122 if test "${ac_cv_prog_CPP+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 # Double quotes because CPP needs to be expanded
11126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11127 do
11128 ac_preproc_ok=false
11129for ac_c_preproc_warn_flag in '' yes
11130do
11131 # Use a header file that comes with gcc, so configuring glibc
11132 # with a fresh cross-compiler works.
11133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134 # <limits.h> exists even on freestanding compilers.
11135 # On the NeXT, cc -E runs the code through the compiler's parser,
11136 # not just through cpp. "Syntax error" is here to catch this case.
11137 cat >conftest.$ac_ext <<_ACEOF
11138/* confdefs.h. */
11139_ACEOF
11140cat confdefs.h >>conftest.$ac_ext
11141cat >>conftest.$ac_ext <<_ACEOF
11142/* end confdefs.h. */
11143#ifdef __STDC__
11144# include <limits.h>
11145#else
11146# include <assert.h>
11147#endif
ac1cb8d3 11148 Syntax error
a848cd7e
SC
11149_ACEOF
11150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } >/dev/null; then
11158 if test -s conftest.err; then
11159 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11161 else
11162 ac_cpp_err=
11163 fi
11164else
11165 ac_cpp_err=yes
11166fi
11167if test -z "$ac_cpp_err"; then
11168 :
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 # Broken: fails on valid input.
11174continue
11175fi
11176rm -f conftest.err conftest.$ac_ext
11177
11178 # OK, works on sane cases. Now check whether non-existent headers
11179 # can be detected and how.
11180 cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h. */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h. */
11186#include <ac_nonexistent.h>
11187_ACEOF
11188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } >/dev/null; then
11196 if test -s conftest.err; then
11197 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11199 else
11200 ac_cpp_err=
11201 fi
11202else
11203 ac_cpp_err=yes
11204fi
11205if test -z "$ac_cpp_err"; then
11206 # Broken: success on invalid input.
11207continue
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 # Passes both tests.
11213ac_preproc_ok=:
11214break
11215fi
11216rm -f conftest.err conftest.$ac_ext
11217
11218done
11219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11220rm -f conftest.err conftest.$ac_ext
11221if $ac_preproc_ok; then
11222 break
11223fi
11224
11225 done
11226 ac_cv_prog_CPP=$CPP
11227
11228fi
11229 CPP=$ac_cv_prog_CPP
11230else
11231 ac_cv_prog_CPP=$CPP
11232fi
11233echo "$as_me:$LINENO: result: $CPP" >&5
11234echo "${ECHO_T}$CPP" >&6
11235ac_preproc_ok=false
11236for ac_c_preproc_warn_flag in '' yes
11237do
11238 # Use a header file that comes with gcc, so configuring glibc
11239 # with a fresh cross-compiler works.
11240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 # <limits.h> exists even on freestanding compilers.
11242 # On the NeXT, cc -E runs the code through the compiler's parser,
11243 # not just through cpp. "Syntax error" is here to catch this case.
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250#ifdef __STDC__
11251# include <limits.h>
11252#else
11253# include <assert.h>
11254#endif
ac1cb8d3 11255 Syntax error
a848cd7e
SC
11256_ACEOF
11257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11268 else
11269 ac_cpp_err=
11270 fi
11271else
11272 ac_cpp_err=yes
11273fi
11274if test -z "$ac_cpp_err"; then
11275 :
11276else
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 # Broken: fails on valid input.
11281continue
11282fi
11283rm -f conftest.err conftest.$ac_ext
11284
11285 # OK, works on sane cases. Now check whether non-existent headers
11286 # can be detected and how.
11287 cat >conftest.$ac_ext <<_ACEOF
11288/* confdefs.h. */
11289_ACEOF
11290cat confdefs.h >>conftest.$ac_ext
11291cat >>conftest.$ac_ext <<_ACEOF
11292/* end confdefs.h. */
11293#include <ac_nonexistent.h>
11294_ACEOF
11295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null; then
11303 if test -s conftest.err; then
11304 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11306 else
11307 ac_cpp_err=
11308 fi
11309else
11310 ac_cpp_err=yes
11311fi
11312if test -z "$ac_cpp_err"; then
11313 # Broken: success on invalid input.
11314continue
11315else
11316 echo "$as_me: failed program was:" >&5
11317sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 # Passes both tests.
11320ac_preproc_ok=:
11321break
11322fi
11323rm -f conftest.err conftest.$ac_ext
11324
11325done
11326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11327rm -f conftest.err conftest.$ac_ext
11328if $ac_preproc_ok; then
11329 :
11330else
11331 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11332See \`config.log' for more details." >&5
11333echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11334See \`config.log' for more details." >&2;}
11335 { (exit 1); exit 1; }; }
11336fi
11337
11338ac_ext=c
11339ac_cpp='$CPP $CPPFLAGS'
11340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342ac_compiler_gnu=$ac_cv_c_compiler_gnu
11343
11344
11345echo "$as_me:$LINENO: checking for egrep" >&5
11346echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11347if test "${ac_cv_prog_egrep+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349else
11350 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11351 then ac_cv_prog_egrep='grep -E'
11352 else ac_cv_prog_egrep='egrep'
11353 fi
11354fi
11355echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11356echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11357 EGREP=$ac_cv_prog_egrep
11358
11359
11360if test $ac_cv_c_compiler_gnu = yes; then
11361 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11362echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11363if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365else
11366 ac_pattern="Autoconf.*'x'"
11367 cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373#include <sgtty.h>
11374Autoconf TIOCGETP
11375_ACEOF
11376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11377 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11378 ac_cv_prog_gcc_traditional=yes
11379else
11380 ac_cv_prog_gcc_traditional=no
11381fi
11382rm -f conftest*
11383
11384
11385 if test $ac_cv_prog_gcc_traditional = no; then
11386 cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
11392#include <termio.h>
11393Autoconf TCGETA
11394_ACEOF
11395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11396 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11397 ac_cv_prog_gcc_traditional=yes
11398fi
11399rm -f conftest*
11400
11401 fi
11402fi
11403echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11404echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11405 if test $ac_cv_prog_gcc_traditional = yes; then
11406 CC="$CC -traditional"
11407 fi
11408fi
11409
11410
11411
11412
11413ac_ext=cc
11414ac_cpp='$CXXCPP $CPPFLAGS'
11415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11418
11419
11420CXXFLAGS=${CXXFLAGS:=}
11421ac_ext=cc
11422ac_cpp='$CXXCPP $CPPFLAGS'
11423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11426if test -n "$ac_tool_prefix"; then
11427 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11428 do
11429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11431echo "$as_me:$LINENO: checking for $ac_word" >&5
11432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433if test "${ac_cv_prog_CXX+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 if test -n "$CXX"; then
11437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452
11453fi
11454fi
11455CXX=$ac_cv_prog_CXX
11456if test -n "$CXX"; then
11457 echo "$as_me:$LINENO: result: $CXX" >&5
11458echo "${ECHO_T}$CXX" >&6
11459else
11460 echo "$as_me:$LINENO: result: no" >&5
11461echo "${ECHO_T}no" >&6
11462fi
11463
11464 test -n "$CXX" && break
11465 done
11466fi
11467if test -z "$CXX"; then
11468 ac_ct_CXX=$CXX
11469 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11470do
11471 # Extract the first word of "$ac_prog", so it can be a program name with args.
11472set dummy $ac_prog; ac_word=$2
11473echo "$as_me:$LINENO: checking for $ac_word" >&5
11474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11475if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478 if test -n "$ac_ct_CXX"; then
11479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11480else
11481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482for as_dir in $PATH
11483do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488 ac_cv_prog_ac_ct_CXX="$ac_prog"
11489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11491 fi
11492done
11493done
11494
11495fi
11496fi
11497ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11498if test -n "$ac_ct_CXX"; then
11499 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11500echo "${ECHO_T}$ac_ct_CXX" >&6
11501else
11502 echo "$as_me:$LINENO: result: no" >&5
11503echo "${ECHO_T}no" >&6
11504fi
11505
11506 test -n "$ac_ct_CXX" && break
11507done
11508test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11509
11510 CXX=$ac_ct_CXX
11511fi
11512
11513
11514# Provide some information about the compiler.
11515echo "$as_me:$LINENO:" \
11516 "checking for C++ compiler version" >&5
11517ac_compiler=`set X $ac_compile; echo $2`
11518{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11519 (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11529 (eval $ac_compiler -V </dev/null >&5) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }
11533
11534echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11535echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11536if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545
11546int
11547main ()
11548{
11549#ifndef __GNUC__
11550 choke me
11551#endif
11552
11553 ;
11554 return 0;
11555}
11556_ACEOF
11557rm -f conftest.$ac_objext
11558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11559 (eval $ac_compile) 2>conftest.er1
a848cd7e 11560 ac_status=$?
ac1cb8d3
VS
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
a848cd7e
SC
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
ea7db9ff
DE
11566 { ac_try='test -z "$ac_cxx_werror_flag"
11567 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_compiler_gnu=yes
11580else
11581 echo "$as_me: failed program was:" >&5
11582sed 's/^/| /' conftest.$ac_ext >&5
11583
11584ac_compiler_gnu=no
11585fi
ac1cb8d3 11586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11587ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11588
11589fi
11590echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11591echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11592GXX=`test $ac_compiler_gnu = yes && echo yes`
11593ac_test_CXXFLAGS=${CXXFLAGS+set}
11594ac_save_CXXFLAGS=$CXXFLAGS
11595CXXFLAGS="-g"
11596echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11597echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11598if test "${ac_cv_prog_cxx_g+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607
11608int
11609main ()
11610{
11611
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext
11617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11618 (eval $ac_compile) 2>conftest.er1
a848cd7e 11619 ac_status=$?
ac1cb8d3
VS
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
a848cd7e
SC
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
ea7db9ff
DE
11625 { ac_try='test -z "$ac_cxx_werror_flag"
11626 || test ! -s conftest.err'
ac1cb8d3
VS
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_prog_cxx_g=yes
11639else
11640 echo "$as_me: failed program was:" >&5
11641sed 's/^/| /' conftest.$ac_ext >&5
11642
11643ac_cv_prog_cxx_g=no
11644fi
ac1cb8d3 11645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11646fi
11647echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11648echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11649if test "$ac_test_CXXFLAGS" = set; then
11650 CXXFLAGS=$ac_save_CXXFLAGS
11651elif test $ac_cv_prog_cxx_g = yes; then
11652 if test "$GXX" = yes; then
11653 CXXFLAGS="-g -O2"
11654 else
11655 CXXFLAGS="-g"
11656 fi
11657else
11658 if test "$GXX" = yes; then
11659 CXXFLAGS="-O2"
11660 else
11661 CXXFLAGS=
11662 fi
11663fi
11664for ac_declaration in \
ac1cb8d3 11665 '' \
a848cd7e
SC
11666 'extern "C" void std::exit (int) throw (); using std::exit;' \
11667 'extern "C" void std::exit (int); using std::exit;' \
11668 'extern "C" void exit (int) throw ();' \
11669 'extern "C" void exit (int);' \
11670 'void exit (int);'
11671do
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
de59c161 11678$ac_declaration
ac1cb8d3 11679#include <stdlib.h>
a848cd7e
SC
11680int
11681main ()
11682{
11683exit (42);
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11690 (eval $ac_compile) 2>conftest.er1
a848cd7e 11691 ac_status=$?
ac1cb8d3
VS
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
a848cd7e
SC
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
ea7db9ff
DE
11697 { ac_try='test -z "$ac_cxx_werror_flag"
11698 || test ! -s conftest.err'
ac1cb8d3
VS
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 :
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715continue
11716fi
ac1cb8d3 11717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11718 cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724$ac_declaration
11725int
11726main ()
11727{
11728exit (42);
11729 ;
11730 return 0;
11731}
11732_ACEOF
11733rm -f conftest.$ac_objext
11734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11735 (eval $ac_compile) 2>conftest.er1
a848cd7e 11736 ac_status=$?
ac1cb8d3
VS
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
a848cd7e
SC
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
ea7db9ff
DE
11742 { ac_try='test -z "$ac_cxx_werror_flag"
11743 || test ! -s conftest.err'
ac1cb8d3
VS
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 break
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760fi
ac1cb8d3 11761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11762done
11763rm -f conftest*
11764if test -n "$ac_declaration"; then
11765 echo '#ifdef __cplusplus' >>confdefs.h
11766 echo $ac_declaration >>confdefs.h
11767 echo '#endif' >>confdefs.h
11768fi
11769
11770ac_ext=cc
11771ac_cpp='$CXXCPP $CPPFLAGS'
11772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11775
11776
11777ac_ext=c
11778ac_cpp='$CPP $CPPFLAGS'
11779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11781ac_compiler_gnu=$ac_cv_c_compiler_gnu
11782
11783
a848cd7e
SC
11784if test -n "$ac_tool_prefix"; then
11785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11787echo "$as_me:$LINENO: checking for $ac_word" >&5
11788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789if test "${ac_cv_prog_RANLIB+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 if test -n "$RANLIB"; then
11793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11805 fi
11806done
11807done
11808
11809fi
11810fi
11811RANLIB=$ac_cv_prog_RANLIB
11812if test -n "$RANLIB"; then
11813 echo "$as_me:$LINENO: result: $RANLIB" >&5
11814echo "${ECHO_T}$RANLIB" >&6
11815else
11816 echo "$as_me:$LINENO: result: no" >&5
11817echo "${ECHO_T}no" >&6
11818fi
11819
11820fi
11821if test -z "$ac_cv_prog_RANLIB"; then
11822 ac_ct_RANLIB=$RANLIB
11823 # Extract the first word of "ranlib", so it can be a program name with args.
11824set dummy ranlib; ac_word=$2
11825echo "$as_me:$LINENO: checking for $ac_word" >&5
11826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11827if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else
11830 if test -n "$ac_ct_RANLIB"; then
11831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11832else
11833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834for as_dir in $PATH
11835do
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11840 ac_cv_prog_ac_ct_RANLIB="ranlib"
11841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11843 fi
11844done
11845done
11846
11847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11848fi
11849fi
11850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11851if test -n "$ac_ct_RANLIB"; then
11852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11853echo "${ECHO_T}$ac_ct_RANLIB" >&6
11854else
11855 echo "$as_me:$LINENO: result: no" >&5
11856echo "${ECHO_T}no" >&6
11857fi
11858
11859 RANLIB=$ac_ct_RANLIB
11860else
11861 RANLIB="$ac_cv_prog_RANLIB"
11862fi
11863
11864
11865# Extract the first word of "ar", so it can be a program name with args.
11866set dummy ar; ac_word=$2
11867echo "$as_me:$LINENO: checking for $ac_word" >&5
11868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11869if test "${ac_cv_prog_AR+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 if test -n "$AR"; then
11873 ac_cv_prog_AR="$AR" # Let the user override the test.
11874else
11875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876for as_dir in $PATH
11877do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_AR="ar"
11883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886done
11887done
11888
11889fi
11890fi
11891AR=$ac_cv_prog_AR
11892if test -n "$AR"; then
11893 echo "$as_me:$LINENO: result: $AR" >&5
11894echo "${ECHO_T}$AR" >&6
11895else
11896 echo "$as_me:$LINENO: result: no" >&5
11897echo "${ECHO_T}no" >&6
11898fi
11899
11900if test "x$AR" = "x" ; then
77ffb593
JS
11901 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11902echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11903 { (exit 1); exit 1; }; }
11904fi
11905
11906# Find a good install program. We prefer a C program (faster),
11907# so one script is as good as another. But avoid the broken or
11908# incompatible versions:
11909# SysV /etc/install, /usr/sbin/install
11910# SunOS /usr/etc/install
11911# IRIX /sbin/install
11912# AIX /bin/install
11913# AmigaOS /C/install, which installs bootblocks on floppy discs
11914# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11915# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11916# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11917# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11918# ./install, which can be erroneously created by make from ./install.sh.
11919echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11920echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11921if test -z "$INSTALL"; then
11922if test "${ac_cv_path_install+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926for as_dir in $PATH
11927do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 # Account for people who put trailing slashes in PATH elements.
11931case $as_dir/ in
11932 ./ | .// | /cC/* | \
11933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11934 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11935 /usr/ucb/* ) ;;
11936 *)
11937 # OSF1 and SCO ODT 3.0 have their own names for install.
11938 # Don't use installbsd from OSF since it installs stuff as root
11939 # by default.
11940 for ac_prog in ginstall scoinst install; do
11941 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11942 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11943 if test $ac_prog = install &&
11944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11945 # AIX install. It has an incompatible calling convention.
11946 :
11947 elif test $ac_prog = install &&
11948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11949 # program-specific install script used by HP pwplus--don't use.
11950 :
11951 else
11952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11953 break 3
11954 fi
11955 fi
a848cd7e
SC
11956 done
11957 done
11958 ;;
11959esac
11960done
11961
11962
11963fi
11964 if test "${ac_cv_path_install+set}" = set; then
11965 INSTALL=$ac_cv_path_install
11966 else
11967 # As a last resort, use the slow shell script. We don't cache a
11968 # path for INSTALL within a source directory, because that will
11969 # break other packages using the cache if that directory is
11970 # removed, or if the path is relative.
11971 INSTALL=$ac_install_sh
11972 fi
11973fi
11974echo "$as_me:$LINENO: result: $INSTALL" >&5
11975echo "${ECHO_T}$INSTALL" >&6
11976
11977# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11978# It thinks the first close brace ends the variable substitution.
11979test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11980
11981test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11982
11983test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11984
11985
11986case ${INSTALL} in
11987 /* ) # Absolute
11988 ;;
11989 ?:* ) # Drive letter, considered as absolute.
11990 ;;
11991 *)
11992 INSTALL=`pwd`/${INSTALL} ;;
11993esac
11994
11995case ${host} in
11996 *-hp-hpux* )
11997 INSTALL_DIR="mkdir"
11998 ;;
11999
12000 *) INSTALL_DIR="$INSTALL -d"
12001 ;;
12002esac
12003
12004
12005case "${host}" in
12006
12007 powerpc-*-darwin* )
12008 INSTALL_PROGRAM="cp -fp"
12009 INSTALL_DATA="cp -fp"
12010 ;;
12011 *)
12012 ;;
12013esac
12014
12015# Extract the first word of "strip", so it can be a program name with args.
12016set dummy strip; ac_word=$2
12017echo "$as_me:$LINENO: checking for $ac_word" >&5
12018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12019if test "${ac_cv_prog_STRIP+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022 if test -n "$STRIP"; then
12023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12024else
12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032 ac_cv_prog_STRIP="strip"
12033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 break 2
12035 fi
12036done
12037done
12038
12039 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12040fi
12041fi
12042STRIP=$ac_cv_prog_STRIP
12043if test -n "$STRIP"; then
12044 echo "$as_me:$LINENO: result: $STRIP" >&5
12045echo "${ECHO_T}$STRIP" >&6
12046else
12047 echo "$as_me:$LINENO: result: no" >&5
12048echo "${ECHO_T}no" >&6
12049fi
12050
12051
12052echo "$as_me:$LINENO: checking if make is GNU make" >&5
12053echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12054if test "${wx_cv_prog_makeisgnu+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056else
12057
12058 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12059 egrep -s GNU > /dev/null); then
12060 wx_cv_prog_makeisgnu="yes"
12061 else
12062 wx_cv_prog_makeisgnu="no"
12063 fi
12064
12065fi
12066echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12067echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12068
12069if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12070 IF_GNU_MAKE=""
12071else
12072 IF_GNU_MAKE="#"
12073fi
12074
12075
12076
12077if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12078echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12079echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12080if test "${wx_cv_prog_makevpath+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083
12084cat - << EOF > confMake
12085check : file
12086 cp \$? \$@
12087 cp \$? final_file
12088EOF
12089
12090if test ! -d sub ; then
12091 mkdir sub
12092fi
12093echo dummy > sub/file
12094${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12095RESULT=$?
12096rm -f sub/file check final_file confMake
12097rmdir sub
12098if test "$RESULT" = 0; then
12099 wx_cv_prog_makevpath="yes"
12100else
12101 wx_cv_prog_makevpath="no"
12102fi
12103
12104fi
12105echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12106echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12107
12108if test "x$wx_cv_prog_makevpath" != "xyes"; then
12109{ { echo "$as_me:$LINENO: error:
12110You need a make-utility that is able to use the variable
12111VPATH correctly.
12112If your version of make does not support VPATH correctly,
12113please install GNU-make (possibly as gmake), and start
12114configure with the following command:
12115export MAKE=gmake; ./configure for sh-type shells
12116setenv MAKE gmake; ./configure for csh-type shells
12117Also please do remember to use gmake in this case every time
12118you are trying to compile.
12119" >&5
12120echo "$as_me: error:
12121You need a make-utility that is able to use the variable
12122VPATH correctly.
12123If your version of make does not support VPATH correctly,
12124please install GNU-make (possibly as gmake), and start
12125configure with the following command:
12126export MAKE=gmake; ./configure for sh-type shells
12127setenv MAKE gmake; ./configure for csh-type shells
12128Also please do remember to use gmake in this case every time
12129you are trying to compile.
12130" >&2;}
12131 { (exit 1); exit 1; }; }
12132fi fi
12133echo "$as_me:$LINENO: checking whether ln -s works" >&5
12134echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12135LN_S=$as_ln_s
12136if test "$LN_S" = "ln -s"; then
12137 echo "$as_me:$LINENO: result: yes" >&5
12138echo "${ECHO_T}yes" >&6
12139else
12140 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12141echo "${ECHO_T}no, using $LN_S" >&6
12142fi
12143
12144
12145
12146case "${host}" in
12147 *-pc-os2_emx | *-pc-os2-emx )
12148 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12149 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12150echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12151if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154 ac_check_lib_save_LIBS=$LIBS
12155LIBS="-lcExt $LIBS"
12156cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
12162
12163/* Override any gcc2 internal prototype to avoid an error. */
12164#ifdef __cplusplus
12165extern "C"
12166#endif
12167/* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12169char drand48 ();
12170int
12171main ()
12172{
12173drand48 ();
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext conftest$ac_exeext
12179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12180 (eval $ac_link) 2>conftest.er1
a848cd7e 12181 ac_status=$?
ac1cb8d3
VS
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
a848cd7e
SC
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
ea7db9ff
DE
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
ac1cb8d3
VS
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_lib_cExt_drand48=yes
12201else
12202 echo "$as_me: failed program was:" >&5
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
12205ac_cv_lib_cExt_drand48=no
12206fi
ac1cb8d3
VS
12207rm -f conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12209LIBS=$ac_check_lib_save_LIBS
12210fi
12211echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12212echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12213if test $ac_cv_lib_cExt_drand48 = yes; then
12214 LIBS="$LIBS -lcExt"
12215fi
12216
12217 else
12218 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12219 fi
12220 echo "$as_me:$LINENO: checking for gcc version" >&5
12221echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12222if test "${wx_cv_gccversion+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224else
12225
12226 cat >conftest.$ac_ext <<_ACEOF
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
12232
12233int
12234main ()
12235{
12236
12237 #if (__GNUC__ < 3)
12238 #error old gcc
12239 #endif
12240
12241 ;
12242 return 0;
12243}
12244_ACEOF
12245rm -f conftest.$ac_objext
12246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12247 (eval $ac_compile) 2>conftest.er1
a848cd7e 12248 ac_status=$?
ac1cb8d3
VS
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
a848cd7e
SC
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
ea7db9ff
DE
12254 { ac_try='test -z "$ac_c_werror_flag"
12255 || test ! -s conftest.err'
ac1cb8d3
VS
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267
12268 cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
12274
12275int
12276main ()
12277{
12278
12279 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12280 #error intermediate gcc
12281 #endif
12282
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287rm -f conftest.$ac_objext
12288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12289 (eval $ac_compile) 2>conftest.er1
a848cd7e 12290 ac_status=$?
ac1cb8d3
VS
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
a848cd7e
SC
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
ea7db9ff
DE
12296 { ac_try='test -z "$ac_c_werror_flag"
12297 || test ! -s conftest.err'
ac1cb8d3
VS
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309
12310 wx_cv_gccversion=Innotek
12311
12312else
12313 echo "$as_me: failed program was:" >&5
12314sed 's/^/| /' conftest.$ac_ext >&5
12315
12316
12317 wx_cv_gccversion=3
12318
12319
12320fi
ac1cb8d3 12321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12322
12323else
12324 echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
12327
12328 wx_cv_gccversion=2
12329
12330
12331fi
ac1cb8d3 12332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12333
12334fi
12335echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12336echo "${ECHO_T}$wx_cv_gccversion" >&6
12337 if test "$wx_cv_gccversion" = "2"; then
12338 LIBS="$LIBS -lstdcpp"
12339 LDFLAGS="$LDFLAGS -Zsysv-signals"
12340 else
12341 if test "$wx_cv_gccversion" = "3"; then
12342 LIBS="$LIBS -lstdcxx"
12343 LDFLAGS="$LDFLAGS -Zsysv-signals"
12344 else
12345 LIBS="$LIBS -lstdc++"
12346 fi
12347 fi
12348 if test "$wxUSE_OMF" = "yes"; then
de59c161 12349 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12350 fi
12351 ;;
12352 *)
12353
12354
12355
12356 ac_ext=cc
12357ac_cpp='$CXXCPP $CPPFLAGS'
12358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12361
12362
12363
12364echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12365echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12366if test "${ac_cv_string_strcasecmp+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368else
12369
12370 cat >conftest.$ac_ext <<_ACEOF
12371/* confdefs.h. */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */
12376
12377 #include <string.h>
12378
12379int
12380main ()
12381{
12382
12383 strcasecmp("foo", "bar");
12384
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext conftest$ac_exeext
12390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12391 (eval $ac_link) 2>conftest.er1
a848cd7e 12392 ac_status=$?
ac1cb8d3
VS
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
a848cd7e
SC
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
ea7db9ff
DE
12398 { ac_try='test -z "$ac_cxx_werror_flag"
12399 || test ! -s conftest.err'
ac1cb8d3
VS
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_string_strcasecmp=yes
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416ac_cv_string_strcasecmp=no
12417
12418fi
ac1cb8d3
VS
12419rm -f conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12421
12422fi
12423echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12424echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12425
12426 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12427 cat >>confdefs.h <<\_ACEOF
12428#define HAVE_STRCASECMP_IN_STRING_H 1
12429_ACEOF
12430
12431 else
12432 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12433echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12434if test "${ac_cv_strings_strcasecmp+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
12437
12438 cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
12444
12445 #include <strings.h>
12446
12447int
12448main ()
12449{
12450
12451 strcasecmp("foo", "bar");
12452
12453 ;
12454 return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext conftest$ac_exeext
12458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12459 (eval $ac_link) 2>conftest.er1
a848cd7e 12460 ac_status=$?
ac1cb8d3
VS
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
a848cd7e
SC
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
ea7db9ff
DE
12466 { ac_try='test -z "$ac_cxx_werror_flag"
12467 || test ! -s conftest.err'
ac1cb8d3
VS
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_strings_strcasecmp=yes
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484ac_cv_strings_strcasecmp=no
12485
12486fi
ac1cb8d3
VS
12487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12489
12490fi
12491echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12492echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12493
12494 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12495 cat >>confdefs.h <<\_ACEOF
12496#define HAVE_STRCASECMP_IN_STRINGS_H 1
12497_ACEOF
12498
12499 else
12500 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12501echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12502 { (exit 1); exit 1; }; }
12503 fi
12504 fi
12505
12506 ac_ext=c
12507ac_cpp='$CPP $CPPFLAGS'
12508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511
12512 ;;
12513esac
12514
12515
12516echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12517echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12518if test "${ac_cv_header_stdc+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520else
12521 cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
12527#include <stdlib.h>
12528#include <stdarg.h>
12529#include <string.h>
12530#include <float.h>
12531
12532int
12533main ()
12534{
12535
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12542 (eval $ac_compile) 2>conftest.er1
a848cd7e 12543 ac_status=$?
ac1cb8d3
VS
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
a848cd7e
SC
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
ea7db9ff
DE
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
ac1cb8d3
VS
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_header_stdc=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567ac_cv_header_stdc=no
12568fi
ac1cb8d3 12569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12570
12571if test $ac_cv_header_stdc = yes; then
12572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12573 cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
12579#include <string.h>
12580
12581_ACEOF
12582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12583 $EGREP "memchr" >/dev/null 2>&1; then
12584 :
12585else
12586 ac_cv_header_stdc=no
12587fi
12588rm -f conftest*
12589
12590fi
12591
12592if test $ac_cv_header_stdc = yes; then
12593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
12601
12602_ACEOF
12603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12604 $EGREP "free" >/dev/null 2>&1; then
12605 :
12606else
12607 ac_cv_header_stdc=no
12608fi
12609rm -f conftest*
12610
12611fi
12612
12613if test $ac_cv_header_stdc = yes; then
12614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12615 if test "$cross_compiling" = yes; then
12616 :
12617else
12618 cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h. */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h. */
12624#include <ctype.h>
12625#if ((' ' & 0x0FF) == 0x020)
12626# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12627# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12628#else
12629# define ISLOWER(c) \
ac1cb8d3
VS
12630 (('a' <= (c) && (c) <= 'i') \
12631 || ('j' <= (c) && (c) <= 'r') \
12632 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12633# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12634#endif
12635
12636#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12637int
12638main ()
12639{
12640 int i;
12641 for (i = 0; i < 256; i++)
12642 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12643 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12644 exit(2);
12645 exit (0);
12646}
12647_ACEOF
12648rm -f conftest$ac_exeext
12649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 :
12660else
12661 echo "$as_me: program exited with status $ac_status" >&5
12662echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
12665( exit $ac_status )
12666ac_cv_header_stdc=no
12667fi
ac1cb8d3 12668rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12669fi
12670fi
12671fi
12672echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12673echo "${ECHO_T}$ac_cv_header_stdc" >&6
12674if test $ac_cv_header_stdc = yes; then
12675
12676cat >>confdefs.h <<\_ACEOF
12677#define STDC_HEADERS 1
12678_ACEOF
12679
12680fi
12681
12682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12693 inttypes.h stdint.h unistd.h
a848cd7e
SC
12694do
12695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12696echo "$as_me:$LINENO: checking for $ac_header" >&5
12697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12698if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
12701 cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
12707$ac_includes_default
12708
12709#include <$ac_header>
12710_ACEOF
12711rm -f conftest.$ac_objext
12712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12713 (eval $ac_compile) 2>conftest.er1
a848cd7e 12714 ac_status=$?
ac1cb8d3
VS
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
a848cd7e
SC
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
ea7db9ff
DE
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
ac1cb8d3
VS
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_Header=yes"
12734else
12735 echo "$as_me: failed program was:" >&5
12736sed 's/^/| /' conftest.$ac_ext >&5
12737
12738eval "$as_ac_Header=no"
12739fi
ac1cb8d3 12740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12741fi
12742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12744if test `eval echo '${'$as_ac_Header'}'` = yes; then
12745 cat >>confdefs.h <<_ACEOF
12746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12747_ACEOF
12748
12749fi
12750
12751done
12752
12753
12754
12755for ac_header in stdlib.h
12756do
12757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12758if eval "test \"\${$as_ac_Header+set}\" = set"; then
12759 echo "$as_me:$LINENO: checking for $ac_header" >&5
12760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12761if eval "test \"\${$as_ac_Header+set}\" = set"; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763fi
12764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12766else
12767 # Is the header compilable?
12768echo "$as_me:$LINENO: checking $ac_header usability" >&5
12769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12770cat >conftest.$ac_ext <<_ACEOF
12771/* confdefs.h. */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h. */
12776$ac_includes_default
12777#include <$ac_header>
12778_ACEOF
12779rm -f conftest.$ac_objext
12780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12781 (eval $ac_compile) 2>conftest.er1
a848cd7e 12782 ac_status=$?
ac1cb8d3
VS
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
a848cd7e
SC
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
ea7db9ff
DE
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
ac1cb8d3
VS
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_header_compiler=yes
12802else
12803 echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806ac_header_compiler=no
12807fi
ac1cb8d3 12808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12809echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12810echo "${ECHO_T}$ac_header_compiler" >&6
12811
12812# Is the header present?
12813echo "$as_me:$LINENO: checking $ac_header presence" >&5
12814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12815cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821#include <$ac_header>
12822_ACEOF
12823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } >/dev/null; then
12831 if test -s conftest.err; then
12832 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12834 else
12835 ac_cpp_err=
12836 fi
12837else
12838 ac_cpp_err=yes
12839fi
12840if test -z "$ac_cpp_err"; then
12841 ac_header_preproc=yes
12842else
12843 echo "$as_me: failed program was:" >&5
12844sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 ac_header_preproc=no
12847fi
12848rm -f conftest.err conftest.$ac_ext
12849echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12850echo "${ECHO_T}$ac_header_preproc" >&6
12851
12852# So? What about this header?
ac1cb8d3
VS
12853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12854 yes:no: )
a848cd7e
SC
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12859 ac_header_preproc=yes
a848cd7e 12860 ;;
ac1cb8d3 12861 no:yes:* )
a848cd7e
SC
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12874 (
12875 cat <<\_ASBOX
ac1cb8d3
VS
12876## ----------------------------------------- ##
12877## Report this to wx-dev@lists.wxwidgets.org ##
12878## ----------------------------------------- ##
a848cd7e
SC
12879_ASBOX
12880 ) |
12881 sed "s/^/$as_me: WARNING: /" >&2
12882 ;;
12883esac
12884echo "$as_me:$LINENO: checking for $ac_header" >&5
12885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12886if eval "test \"\${$as_ac_Header+set}\" = set"; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888else
ac1cb8d3 12889 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12890fi
12891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12893
12894fi
12895if test `eval echo '${'$as_ac_Header'}'` = yes; then
12896 cat >>confdefs.h <<_ACEOF
12897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12898_ACEOF
12899
12900fi
12901
12902done
12903
12904
12905for ac_header in malloc.h
12906do
12907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12908if eval "test \"\${$as_ac_Header+set}\" = set"; then
12909 echo "$as_me:$LINENO: checking for $ac_header" >&5
12910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12911if eval "test \"\${$as_ac_Header+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913fi
12914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916else
12917 # Is the header compilable?
12918echo "$as_me:$LINENO: checking $ac_header usability" >&5
12919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12920cat >conftest.$ac_ext <<_ACEOF
12921/* confdefs.h. */
12922_ACEOF
12923cat confdefs.h >>conftest.$ac_ext
12924cat >>conftest.$ac_ext <<_ACEOF
12925/* end confdefs.h. */
12926$ac_includes_default
12927#include <$ac_header>
12928_ACEOF
12929rm -f conftest.$ac_objext
12930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12931 (eval $ac_compile) 2>conftest.er1
a848cd7e 12932 ac_status=$?
ac1cb8d3
VS
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
a848cd7e
SC
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
ea7db9ff
DE
12938 { ac_try='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
ac1cb8d3
VS
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_header_compiler=yes
12952else
12953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956ac_header_compiler=no
12957fi
ac1cb8d3 12958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12960echo "${ECHO_T}$ac_header_compiler" >&6
12961
12962# Is the header present?
12963echo "$as_me:$LINENO: checking $ac_header presence" >&5
12964echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12965cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971#include <$ac_header>
12972_ACEOF
12973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } >/dev/null; then
12981 if test -s conftest.err; then
12982 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12984 else
12985 ac_cpp_err=
12986 fi
12987else
12988 ac_cpp_err=yes
12989fi
12990if test -z "$ac_cpp_err"; then
12991 ac_header_preproc=yes
12992else
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_header_preproc=no
12997fi
12998rm -f conftest.err conftest.$ac_ext
12999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13000echo "${ECHO_T}$ac_header_preproc" >&6
13001
13002# So? What about this header?
ac1cb8d3
VS
13003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13004 yes:no: )
a848cd7e
SC
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13008echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13009 ac_header_preproc=yes
a848cd7e 13010 ;;
ac1cb8d3 13011 no:yes:* )
a848cd7e
SC
13012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13017echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13019echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13023echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13024 (
13025 cat <<\_ASBOX
ac1cb8d3
VS
13026## ----------------------------------------- ##
13027## Report this to wx-dev@lists.wxwidgets.org ##
13028## ----------------------------------------- ##
a848cd7e
SC
13029_ASBOX
13030 ) |
13031 sed "s/^/$as_me: WARNING: /" >&2
13032 ;;
13033esac
13034echo "$as_me:$LINENO: checking for $ac_header" >&5
13035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13036if eval "test \"\${$as_ac_Header+set}\" = set"; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038else
ac1cb8d3 13039 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13040fi
13041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13043
13044fi
13045if test `eval echo '${'$as_ac_Header'}'` = yes; then
13046 cat >>confdefs.h <<_ACEOF
13047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13048_ACEOF
13049
13050fi
13051
13052done
13053
13054
13055for ac_header in unistd.h
13056do
13057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13058if eval "test \"\${$as_ac_Header+set}\" = set"; then
13059 echo "$as_me:$LINENO: checking for $ac_header" >&5
13060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13061if eval "test \"\${$as_ac_Header+set}\" = set"; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063fi
13064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13066else
13067 # Is the header compilable?
13068echo "$as_me:$LINENO: checking $ac_header usability" >&5
13069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13070cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h. */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
13075/* end confdefs.h. */
13076$ac_includes_default
13077#include <$ac_header>
13078_ACEOF
13079rm -f conftest.$ac_objext
13080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13081 (eval $ac_compile) 2>conftest.er1
a848cd7e 13082 ac_status=$?
ac1cb8d3
VS
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
a848cd7e
SC
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
ea7db9ff
DE
13088 { ac_try='test -z "$ac_c_werror_flag"
13089 || test ! -s conftest.err'
ac1cb8d3
VS
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_header_compiler=yes
13102else
13103 echo "$as_me: failed program was:" >&5
13104sed 's/^/| /' conftest.$ac_ext >&5
13105
13106ac_header_compiler=no
13107fi
ac1cb8d3 13108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13109echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110echo "${ECHO_T}$ac_header_compiler" >&6
13111
13112# Is the header present?
13113echo "$as_me:$LINENO: checking $ac_header presence" >&5
13114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13115cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
13121#include <$ac_header>
13122_ACEOF
13123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } >/dev/null; then
13131 if test -s conftest.err; then
13132 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13134 else
13135 ac_cpp_err=
13136 fi
13137else
13138 ac_cpp_err=yes
13139fi
13140if test -z "$ac_cpp_err"; then
13141 ac_header_preproc=yes
13142else
13143 echo "$as_me: failed program was:" >&5
13144sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 ac_header_preproc=no
13147fi
13148rm -f conftest.err conftest.$ac_ext
13149echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13150echo "${ECHO_T}$ac_header_preproc" >&6
13151
13152# So? What about this header?
ac1cb8d3
VS
13153case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13154 yes:no: )
a848cd7e
SC
13155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13159 ac_header_preproc=yes
a848cd7e 13160 ;;
ac1cb8d3 13161 no:yes:* )
a848cd7e
SC
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13165echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13169echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13174 (
13175 cat <<\_ASBOX
ac1cb8d3
VS
13176## ----------------------------------------- ##
13177## Report this to wx-dev@lists.wxwidgets.org ##
13178## ----------------------------------------- ##
a848cd7e
SC
13179_ASBOX
13180 ) |
13181 sed "s/^/$as_me: WARNING: /" >&2
13182 ;;
13183esac
13184echo "$as_me:$LINENO: checking for $ac_header" >&5
13185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13186if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188else
ac1cb8d3 13189 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13190fi
13191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13193
13194fi
13195if test `eval echo '${'$as_ac_Header'}'` = yes; then
13196 cat >>confdefs.h <<_ACEOF
13197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13198_ACEOF
13199
13200fi
13201
13202done
13203
13204
13205for ac_header in wchar.h
13206do
13207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13208if eval "test \"\${$as_ac_Header+set}\" = set"; then
13209 echo "$as_me:$LINENO: checking for $ac_header" >&5
13210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13211if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213fi
13214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13216else
13217 # Is the header compilable?
13218echo "$as_me:$LINENO: checking $ac_header usability" >&5
13219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13220cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226$ac_includes_default
13227#include <$ac_header>
13228_ACEOF
13229rm -f conftest.$ac_objext
13230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13231 (eval $ac_compile) 2>conftest.er1
a848cd7e 13232 ac_status=$?
ac1cb8d3
VS
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
a848cd7e
SC
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
ea7db9ff
DE
13238 { ac_try='test -z "$ac_c_werror_flag"
13239 || test ! -s conftest.err'
ac1cb8d3
VS
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_header_compiler=yes
13252else
13253 echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
13256ac_header_compiler=no
13257fi
ac1cb8d3 13258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13260echo "${ECHO_T}$ac_header_compiler" >&6
13261
13262# Is the header present?
13263echo "$as_me:$LINENO: checking $ac_header presence" >&5
13264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13265cat >conftest.$ac_ext <<_ACEOF
13266/* confdefs.h. */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h. */
13271#include <$ac_header>
13272_ACEOF
13273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } >/dev/null; then
13281 if test -s conftest.err; then
13282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13284 else
13285 ac_cpp_err=
13286 fi
13287else
13288 ac_cpp_err=yes
13289fi
13290if test -z "$ac_cpp_err"; then
13291 ac_header_preproc=yes
13292else
13293 echo "$as_me: failed program was:" >&5
13294sed 's/^/| /' conftest.$ac_ext >&5
13295
13296 ac_header_preproc=no
13297fi
13298rm -f conftest.err conftest.$ac_ext
13299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300echo "${ECHO_T}$ac_header_preproc" >&6
13301
13302# So? What about this header?
ac1cb8d3
VS
13303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13304 yes:no: )
a848cd7e
SC
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13309 ac_header_preproc=yes
a848cd7e 13310 ;;
ac1cb8d3 13311 no:yes:* )
a848cd7e
SC
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13324 (
13325 cat <<\_ASBOX
ac1cb8d3
VS
13326## ----------------------------------------- ##
13327## Report this to wx-dev@lists.wxwidgets.org ##
13328## ----------------------------------------- ##
a848cd7e
SC
13329_ASBOX
13330 ) |
13331 sed "s/^/$as_me: WARNING: /" >&2
13332 ;;
13333esac
13334echo "$as_me:$LINENO: checking for $ac_header" >&5
13335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338else
ac1cb8d3 13339 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13340fi
13341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13343
13344fi
13345if test `eval echo '${'$as_ac_Header'}'` = yes; then
13346 cat >>confdefs.h <<_ACEOF
13347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13348_ACEOF
13349
13350fi
13351
13352done
13353
13354
13355if test "$ac_cv_header_wchar_h" != "yes"; then
13356
13357for ac_header in wcstr.h
13358do
13359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13360if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo "$as_me:$LINENO: checking for $ac_header" >&5
13362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13363if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365fi
13366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13368else
13369 # Is the header compilable?
13370echo "$as_me:$LINENO: checking $ac_header usability" >&5
13371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13372cat >conftest.$ac_ext <<_ACEOF
13373/* confdefs.h. */
13374_ACEOF
13375cat confdefs.h >>conftest.$ac_ext
13376cat >>conftest.$ac_ext <<_ACEOF
13377/* end confdefs.h. */
13378$ac_includes_default
13379#include <$ac_header>
13380_ACEOF
13381rm -f conftest.$ac_objext
13382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13383 (eval $ac_compile) 2>conftest.er1
a848cd7e 13384 ac_status=$?
ac1cb8d3
VS
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
a848cd7e
SC
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
ea7db9ff
DE
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
ac1cb8d3
VS
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_header_compiler=yes
13404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408ac_header_compiler=no
13409fi
ac1cb8d3 13410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13412echo "${ECHO_T}$ac_header_compiler" >&6
13413
13414# Is the header present?
13415echo "$as_me:$LINENO: checking $ac_header presence" >&5
13416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13417cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <$ac_header>
13424_ACEOF
13425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13427 ac_status=$?
13428 grep -v '^ *+' conftest.er1 >conftest.err
13429 rm -f conftest.er1
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null; then
13433 if test -s conftest.err; then
13434 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13436 else
13437 ac_cpp_err=
13438 fi
13439else
13440 ac_cpp_err=yes
13441fi
13442if test -z "$ac_cpp_err"; then
13443 ac_header_preproc=yes
13444else
13445 echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_header_preproc=no
13449fi
13450rm -f conftest.err conftest.$ac_ext
13451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13452echo "${ECHO_T}$ac_header_preproc" >&6
13453
13454# So? What about this header?
ac1cb8d3
VS
13455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13456 yes:no: )
a848cd7e
SC
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13461 ac_header_preproc=yes
a848cd7e 13462 ;;
ac1cb8d3 13463 no:yes:* )
a848cd7e
SC
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13476 (
13477 cat <<\_ASBOX
ac1cb8d3
VS
13478## ----------------------------------------- ##
13479## Report this to wx-dev@lists.wxwidgets.org ##
13480## ----------------------------------------- ##
a848cd7e
SC
13481_ASBOX
13482 ) |
13483 sed "s/^/$as_me: WARNING: /" >&2
13484 ;;
13485esac
13486echo "$as_me:$LINENO: checking for $ac_header" >&5
13487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13488if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
ac1cb8d3 13491 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13492fi
13493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13495
13496fi
13497if test `eval echo '${'$as_ac_Header'}'` = yes; then
13498 cat >>confdefs.h <<_ACEOF
13499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13500_ACEOF
13501
13502fi
13503
13504done
13505
13506fi
13507
13508
13509for ac_header in fnmatch.h
13510do
13511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo "$as_me:$LINENO: checking for $ac_header" >&5
13514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517fi
13518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520else
13521 # Is the header compilable?
13522echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530$ac_includes_default
13531#include <$ac_header>
13532_ACEOF
13533rm -f conftest.$ac_objext
13534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13535 (eval $ac_compile) 2>conftest.er1
a848cd7e 13536 ac_status=$?
ac1cb8d3
VS
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
a848cd7e
SC
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
ea7db9ff
DE
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
ac1cb8d3
VS
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_header_compiler=yes
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560ac_header_compiler=no
13561fi
ac1cb8d3 13562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13564echo "${ECHO_T}$ac_header_compiler" >&6
13565
13566# Is the header present?
13567echo "$as_me:$LINENO: checking $ac_header presence" >&5
13568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13569cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
13575#include <$ac_header>
13576_ACEOF
13577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } >/dev/null; then
13585 if test -s conftest.err; then
13586 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13588 else
13589 ac_cpp_err=
13590 fi
13591else
13592 ac_cpp_err=yes
13593fi
13594if test -z "$ac_cpp_err"; then
13595 ac_header_preproc=yes
13596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_header_preproc=no
13601fi
13602rm -f conftest.err conftest.$ac_ext
13603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13604echo "${ECHO_T}$ac_header_preproc" >&6
13605
13606# So? What about this header?
ac1cb8d3
VS
13607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13608 yes:no: )
a848cd7e
SC
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13613 ac_header_preproc=yes
a848cd7e 13614 ;;
ac1cb8d3 13615 no:yes:* )
a848cd7e
SC
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13628 (
13629 cat <<\_ASBOX
ac1cb8d3
VS
13630## ----------------------------------------- ##
13631## Report this to wx-dev@lists.wxwidgets.org ##
13632## ----------------------------------------- ##
a848cd7e
SC
13633_ASBOX
13634 ) |
13635 sed "s/^/$as_me: WARNING: /" >&2
13636 ;;
13637esac
13638echo "$as_me:$LINENO: checking for $ac_header" >&5
13639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13640if eval "test \"\${$as_ac_Header+set}\" = set"; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
ac1cb8d3 13643 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13644fi
13645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13647
13648fi
13649if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650 cat >>confdefs.h <<_ACEOF
13651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652_ACEOF
13653
13654fi
13655
13656done
13657
13658
13659if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13660
13661for ac_func in fnmatch
13662do
13663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13664echo "$as_me:$LINENO: checking for $ac_func" >&5
13665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13666if eval "test \"\${$as_ac_var+set}\" = set"; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669 cat >conftest.$ac_ext <<_ACEOF
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
ac1cb8d3
VS
13675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13677#define $ac_func innocuous_$ac_func
13678
a848cd7e
SC
13679/* System header to define __stub macros and hopefully few prototypes,
13680 which can conflict with char $ac_func (); below.
13681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13682 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13683
a848cd7e
SC
13684#ifdef __STDC__
13685# include <limits.h>
13686#else
13687# include <assert.h>
13688#endif
ac1cb8d3
VS
13689
13690#undef $ac_func
13691
a848cd7e
SC
13692/* Override any gcc2 internal prototype to avoid an error. */
13693#ifdef __cplusplus
13694extern "C"
13695{
13696#endif
13697/* We use char because int might match the return type of a gcc2
13698 builtin and then its argument prototype would still apply. */
13699char $ac_func ();
13700/* The GNU C library defines this for functions which it implements
13701 to always fail with ENOSYS. Some functions are actually named
13702 something starting with __ and the normal name is an alias. */
13703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13704choke me
13705#else
13706char (*f) () = $ac_func;
13707#endif
13708#ifdef __cplusplus
13709}
13710#endif
13711
13712int
13713main ()
13714{
13715return f != $ac_func;
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720rm -f conftest.$ac_objext conftest$ac_exeext
13721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13722 (eval $ac_link) 2>conftest.er1
a848cd7e 13723 ac_status=$?
ac1cb8d3
VS
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
a848cd7e
SC
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
ea7db9ff
DE
13729 { ac_try='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
ac1cb8d3
VS
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 eval "$as_ac_var=yes"
13743else
13744 echo "$as_me: failed program was:" >&5
13745sed 's/^/| /' conftest.$ac_ext >&5
13746
13747eval "$as_ac_var=no"
13748fi
ac1cb8d3
VS
13749rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13751fi
13752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13754if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h <<_ACEOF
13756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757_ACEOF
13758
13759fi
13760done
13761
13762fi
13763
13764
13765for ac_header in langinfo.h
13766do
13767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13768if eval "test \"\${$as_ac_Header+set}\" = set"; then
13769 echo "$as_me:$LINENO: checking for $ac_header" >&5
13770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13771if eval "test \"\${$as_ac_Header+set}\" = set"; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773fi
13774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13776else
13777 # Is the header compilable?
13778echo "$as_me:$LINENO: checking $ac_header usability" >&5
13779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13780cat >conftest.$ac_ext <<_ACEOF
13781/* confdefs.h. */
13782_ACEOF
13783cat confdefs.h >>conftest.$ac_ext
13784cat >>conftest.$ac_ext <<_ACEOF
13785/* end confdefs.h. */
13786$ac_includes_default
13787#include <$ac_header>
13788_ACEOF
13789rm -f conftest.$ac_objext
13790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13791 (eval $ac_compile) 2>conftest.er1
a848cd7e 13792 ac_status=$?
ac1cb8d3
VS
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
a848cd7e
SC
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
ea7db9ff
DE
13798 { ac_try='test -z "$ac_c_werror_flag"
13799 || test ! -s conftest.err'
ac1cb8d3
VS
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_header_compiler=yes
13812else
13813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816ac_header_compiler=no
13817fi
ac1cb8d3 13818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13820echo "${ECHO_T}$ac_header_compiler" >&6
13821
13822# Is the header present?
13823echo "$as_me:$LINENO: checking $ac_header presence" >&5
13824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13825cat >conftest.$ac_ext <<_ACEOF
13826/* confdefs.h. */
13827_ACEOF
13828cat confdefs.h >>conftest.$ac_ext
13829cat >>conftest.$ac_ext <<_ACEOF
13830/* end confdefs.h. */
13831#include <$ac_header>
13832_ACEOF
13833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } >/dev/null; then
13841 if test -s conftest.err; then
13842 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13844 else
13845 ac_cpp_err=
13846 fi
13847else
13848 ac_cpp_err=yes
13849fi
13850if test -z "$ac_cpp_err"; then
13851 ac_header_preproc=yes
13852else
13853 echo "$as_me: failed program was:" >&5
13854sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 ac_header_preproc=no
13857fi
13858rm -f conftest.err conftest.$ac_ext
13859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13860echo "${ECHO_T}$ac_header_preproc" >&6
13861
13862# So? What about this header?
ac1cb8d3
VS
13863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13864 yes:no: )
a848cd7e
SC
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13869 ac_header_preproc=yes
a848cd7e 13870 ;;
ac1cb8d3 13871 no:yes:* )
a848cd7e
SC
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13884 (
13885 cat <<\_ASBOX
ac1cb8d3
VS
13886## ----------------------------------------- ##
13887## Report this to wx-dev@lists.wxwidgets.org ##
13888## ----------------------------------------- ##
a848cd7e
SC
13889_ASBOX
13890 ) |
13891 sed "s/^/$as_me: WARNING: /" >&2
13892 ;;
13893esac
13894echo "$as_me:$LINENO: checking for $ac_header" >&5
13895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13896if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898else
ac1cb8d3 13899 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13900fi
13901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13903
13904fi
13905if test `eval echo '${'$as_ac_Header'}'` = yes; then
13906 cat >>confdefs.h <<_ACEOF
13907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13908_ACEOF
13909
13910fi
13911
13912done
13913
13914
13915case "${host}" in
13916 *-pc-os2_emx | *-pc-os2-emx )
13917 if test $ac_cv_header_langinfo_h = "yes"; then
13918 LIBS="$LIBS -lintl"
13919 fi
13920 ;;
13921esac
13922
13923if test "$wxUSE_GUI" = "yes"; then
13924 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13925
13926for ac_header in X11/Xlib.h
13927do
13928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929if eval "test \"\${$as_ac_Header+set}\" = set"; then
13930 echo "$as_me:$LINENO: checking for $ac_header" >&5
13931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13932if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934fi
13935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13937else
13938 # Is the header compilable?
13939echo "$as_me:$LINENO: checking $ac_header usability" >&5
13940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13941cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h. */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
13946/* end confdefs.h. */
13947$ac_includes_default
13948#include <$ac_header>
13949_ACEOF
13950rm -f conftest.$ac_objext
13951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13952 (eval $ac_compile) 2>conftest.er1
a848cd7e 13953 ac_status=$?
ac1cb8d3
VS
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
a848cd7e
SC
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
ea7db9ff
DE
13959 { ac_try='test -z "$ac_c_werror_flag"
13960 || test ! -s conftest.err'
ac1cb8d3
VS
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_header_compiler=yes
13973else
13974 echo "$as_me: failed program was:" >&5
13975sed 's/^/| /' conftest.$ac_ext >&5
13976
13977ac_header_compiler=no
13978fi
ac1cb8d3 13979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981echo "${ECHO_T}$ac_header_compiler" >&6
13982
13983# Is the header present?
13984echo "$as_me:$LINENO: checking $ac_header presence" >&5
13985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13986cat >conftest.$ac_ext <<_ACEOF
13987/* confdefs.h. */
13988_ACEOF
13989cat confdefs.h >>conftest.$ac_ext
13990cat >>conftest.$ac_ext <<_ACEOF
13991/* end confdefs.h. */
13992#include <$ac_header>
13993_ACEOF
13994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null; then
14002 if test -s conftest.err; then
14003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14005 else
14006 ac_cpp_err=
14007 fi
14008else
14009 ac_cpp_err=yes
14010fi
14011if test -z "$ac_cpp_err"; then
14012 ac_header_preproc=yes
14013else
14014 echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_header_preproc=no
14018fi
14019rm -f conftest.err conftest.$ac_ext
14020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14021echo "${ECHO_T}$ac_header_preproc" >&6
14022
14023# So? What about this header?
ac1cb8d3
VS
14024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14025 yes:no: )
a848cd7e
SC
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14030 ac_header_preproc=yes
a848cd7e 14031 ;;
ac1cb8d3 14032 no:yes:* )
a848cd7e
SC
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14045 (
14046 cat <<\_ASBOX
ac1cb8d3
VS
14047## ----------------------------------------- ##
14048## Report this to wx-dev@lists.wxwidgets.org ##
14049## ----------------------------------------- ##
a848cd7e
SC
14050_ASBOX
14051 ) |
14052 sed "s/^/$as_me: WARNING: /" >&2
14053 ;;
14054esac
14055echo "$as_me:$LINENO: checking for $ac_header" >&5
14056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
ac1cb8d3 14060 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14061fi
14062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14064
14065fi
14066if test `eval echo '${'$as_ac_Header'}'` = yes; then
14067 cat >>confdefs.h <<_ACEOF
14068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14069_ACEOF
14070
14071fi
14072
14073done
14074
14075
14076for ac_header in X11/XKBlib.h
14077do
14078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14079echo "$as_me:$LINENO: checking for $ac_header" >&5
14080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
14090
14091 #if HAVE_X11_XLIB_H
14092 #include <X11/Xlib.h>
14093 #endif
14094
14095
14096#include <$ac_header>
14097_ACEOF
14098rm -f conftest.$ac_objext
14099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14100 (eval $ac_compile) 2>conftest.er1
a848cd7e 14101 ac_status=$?
ac1cb8d3
VS
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
a848cd7e
SC
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
ea7db9ff
DE
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
ac1cb8d3
VS
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 eval "$as_ac_Header=yes"
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125eval "$as_ac_Header=no"
14126fi
ac1cb8d3 14127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14128fi
14129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14131if test `eval echo '${'$as_ac_Header'}'` = yes; then
14132 cat >>confdefs.h <<_ACEOF
14133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14134_ACEOF
14135
14136fi
14137
14138done
14139
14140 fi
14141fi
14142
14143
14144echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14145echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14146if test "${ac_cv_c_const+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149 cat >conftest.$ac_ext <<_ACEOF
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155
14156int
14157main ()
14158{
14159/* FIXME: Include the comments suggested by Paul. */
14160#ifndef __cplusplus
14161 /* Ultrix mips cc rejects this. */
14162 typedef int charset[2];
14163 const charset x;
14164 /* SunOS 4.1.1 cc rejects this. */
14165 char const *const *ccp;
14166 char **p;
14167 /* NEC SVR4.0.2 mips cc rejects this. */
14168 struct point {int x, y;};
14169 static struct point const zero = {0,0};
14170 /* AIX XL C 1.02.0.0 rejects this.
14171 It does not let you subtract one const X* pointer from another in
14172 an arm of an if-expression whose if-part is not a constant
14173 expression */
14174 const char *g = "string";
14175 ccp = &g + (g ? g-g : 0);
14176 /* HPUX 7.0 cc rejects these. */
14177 ++ccp;
14178 p = (char**) ccp;
14179 ccp = (char const *const *) p;
14180 { /* SCO 3.2v4 cc rejects this. */
14181 char *t;
14182 char const *s = 0 ? (char *) 0 : (char const *) 0;
14183
14184 *t++ = 0;
14185 }
14186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14187 int x[] = {25, 17};
14188 const int *foo = &x[0];
14189 ++foo;
14190 }
14191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14192 typedef const int *iptr;
14193 iptr p = 0;
14194 ++p;
14195 }
14196 { /* AIX XL C 1.02.0.0 rejects this saying
14197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14198 struct s { int j; const int *ap[3]; };
14199 struct s *b; b->j = 5;
14200 }
14201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14202 const int foo = 10;
14203 }
14204#endif
14205
14206 ;
14207 return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext
14211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14212 (eval $ac_compile) 2>conftest.er1
a848cd7e 14213 ac_status=$?
ac1cb8d3
VS
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
a848cd7e
SC
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
ea7db9ff
DE
14219 { ac_try='test -z "$ac_c_werror_flag"
14220 || test ! -s conftest.err'
ac1cb8d3
VS
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
14232 ac_cv_c_const=yes
14233else
14234 echo "$as_me: failed program was:" >&5
14235sed 's/^/| /' conftest.$ac_ext >&5
14236
14237ac_cv_c_const=no
14238fi
ac1cb8d3 14239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14240fi
14241echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14242echo "${ECHO_T}$ac_cv_c_const" >&6
14243if test $ac_cv_c_const = no; then
14244
14245cat >>confdefs.h <<\_ACEOF
14246#define const
14247_ACEOF
14248
14249fi
14250
14251echo "$as_me:$LINENO: checking for inline" >&5
14252echo $ECHO_N "checking for inline... $ECHO_C" >&6
14253if test "${ac_cv_c_inline+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255else
14256 ac_cv_c_inline=no
14257for ac_kw in inline __inline__ __inline; do
14258 cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
14264#ifndef __cplusplus
14265typedef int foo_t;
14266static $ac_kw foo_t static_foo () {return 0; }
14267$ac_kw foo_t foo () {return 0; }
14268#endif
14269
14270_ACEOF
14271rm -f conftest.$ac_objext
14272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14273 (eval $ac_compile) 2>conftest.er1
a848cd7e 14274 ac_status=$?
ac1cb8d3
VS
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
a848cd7e
SC
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
ea7db9ff
DE
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
ac1cb8d3
VS
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_c_inline=$ac_kw; break
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298fi
ac1cb8d3 14299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14300done
14301
14302fi
14303echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14304echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14305
14306
a848cd7e
SC
14307case $ac_cv_c_inline in
14308 inline | yes) ;;
ac1cb8d3
VS
14309 *)
14310 case $ac_cv_c_inline in
14311 no) ac_val=;;
14312 *) ac_val=$ac_cv_c_inline;;
14313 esac
14314 cat >>confdefs.h <<_ACEOF
14315#ifndef __cplusplus
14316#define inline $ac_val
14317#endif
de59c161 14318_ACEOF
ac1cb8d3 14319 ;;
a848cd7e
SC
14320esac
14321
14322
14323echo "$as_me:$LINENO: checking for char" >&5
14324echo $ECHO_N "checking for char... $ECHO_C" >&6
14325if test "${ac_cv_type_char+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327else
14328 cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334$ac_includes_default
14335int
14336main ()
14337{
14338if ((char *) 0)
14339 return 0;
14340if (sizeof (char))
14341 return 0;
14342 ;
14343 return 0;
14344}
14345_ACEOF
14346rm -f conftest.$ac_objext
14347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14348 (eval $ac_compile) 2>conftest.er1
a848cd7e 14349 ac_status=$?
ac1cb8d3
VS
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
a848cd7e
SC
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
ea7db9ff
DE
14355 { ac_try='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
ac1cb8d3
VS
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_type_char=yes
14369else
14370 echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373ac_cv_type_char=no
14374fi
ac1cb8d3 14375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14376fi
14377echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14378echo "${ECHO_T}$ac_cv_type_char" >&6
14379
14380echo "$as_me:$LINENO: checking size of char" >&5
14381echo $ECHO_N "checking size of char... $ECHO_C" >&6
14382if test "${ac_cv_sizeof_char+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384else
14385 if test "$ac_cv_type_char" = yes; then
14386 # The cast to unsigned long works around a bug in the HP C Compiler
14387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14389 # This bug is HP SR number 8606223364.
14390 if test "$cross_compiling" = yes; then
14391 # Depending upon the size, compute the lo and hi bounds.
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399int
14400main ()
14401{
14402static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14403test_array [0] = 0
14404
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext
14410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14411 (eval $ac_compile) 2>conftest.er1
a848cd7e 14412 ac_status=$?
ac1cb8d3
VS
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
a848cd7e
SC
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
ea7db9ff
DE
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
ac1cb8d3
VS
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_lo=0 ac_mid=0
14432 while :; do
14433 cat >conftest.$ac_ext <<_ACEOF
14434/* confdefs.h. */
14435_ACEOF
14436cat confdefs.h >>conftest.$ac_ext
14437cat >>conftest.$ac_ext <<_ACEOF
14438/* end confdefs.h. */
14439$ac_includes_default
14440int
14441main ()
14442{
14443static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14444test_array [0] = 0
14445
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext
14451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14452 (eval $ac_compile) 2>conftest.er1
a848cd7e 14453 ac_status=$?
ac1cb8d3
VS
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
a848cd7e
SC
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
ea7db9ff
DE
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
ac1cb8d3
VS
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_hi=$ac_mid; break
14473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14478 if test $ac_lo -le $ac_mid; then
14479 ac_lo= ac_hi=
14480 break
14481 fi
14482 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14483fi
ac1cb8d3 14484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14485 done
14486else
14487 echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
14490cat >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))) < 0)];
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); } &&
ea7db9ff
DE
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
ac1cb8d3
VS
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_hi=-1 ac_mid=-1
14530 while :; do
14531 cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h. */
14537$ac_includes_default
14538int
14539main ()
14540{
14541static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14542test_array [0] = 0
14543
14544 ;
14545 return 0;
14546}
14547_ACEOF
14548rm -f conftest.$ac_objext
14549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14550 (eval $ac_compile) 2>conftest.er1
a848cd7e 14551 ac_status=$?
ac1cb8d3
VS
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
a848cd7e
SC
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
ea7db9ff
DE
14557 { ac_try='test -z "$ac_c_werror_flag"
14558 || test ! -s conftest.err'
ac1cb8d3
VS
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_lo=$ac_mid; break
14571else
14572 echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14576 if test $ac_mid -le $ac_hi; then
14577 ac_lo= ac_hi=
14578 break
14579 fi
14580 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14581fi
ac1cb8d3 14582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14583 done
14584else
14585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
14588ac_lo= ac_hi=
14589fi
ac1cb8d3 14590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14591fi
ac1cb8d3 14592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14593# Binary search between lo and hi bounds.
14594while test "x$ac_lo" != "x$ac_hi"; do
14595 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14596 cat >conftest.$ac_ext <<_ACEOF
14597/* confdefs.h. */
14598_ACEOF
14599cat confdefs.h >>conftest.$ac_ext
14600cat >>conftest.$ac_ext <<_ACEOF
14601/* end confdefs.h. */
14602$ac_includes_default
14603int
14604main ()
14605{
14606static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14607test_array [0] = 0
14608
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613rm -f conftest.$ac_objext
14614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14615 (eval $ac_compile) 2>conftest.er1
a848cd7e 14616 ac_status=$?
ac1cb8d3
VS
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
a848cd7e
SC
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
ea7db9ff
DE
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
ac1cb8d3
VS
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_hi=$ac_mid
14636else
14637 echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
14640ac_lo=`expr '(' $ac_mid ')' + 1`
14641fi
ac1cb8d3 14642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14643done
14644case $ac_lo in
14645?*) ac_cv_sizeof_char=$ac_lo;;
14646'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14647See \`config.log' for more details." >&5
14648echo "$as_me: error: cannot compute sizeof (char), 77
14649See \`config.log' for more details." >&2;}
14650 { (exit 1); exit 1; }; } ;;
14651esac
14652else
14653 if test "$cross_compiling" = yes; then
ea7db9ff
DE
14654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14655See \`config.log' for more details." >&5
14656echo "$as_me: error: cannot run test program while cross compiling
14657See \`config.log' for more details." >&2;}
a848cd7e
SC
14658 { (exit 1); exit 1; }; }
14659else
14660 cat >conftest.$ac_ext <<_ACEOF
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
14665/* end confdefs.h. */
14666$ac_includes_default
14667long longval () { return (long) (sizeof (char)); }
14668unsigned long ulongval () { return (long) (sizeof (char)); }
14669#include <stdio.h>
14670#include <stdlib.h>
14671int
14672main ()
14673{
14674
14675 FILE *f = fopen ("conftest.val", "w");
14676 if (! f)
14677 exit (1);
14678 if (((long) (sizeof (char))) < 0)
14679 {
14680 long i = longval ();
14681 if (i != ((long) (sizeof (char))))
14682 exit (1);
14683 fprintf (f, "%ld\n", i);
14684 }
14685 else
14686 {
14687 unsigned long i = ulongval ();
14688 if (i != ((long) (sizeof (char))))
14689 exit (1);
14690 fprintf (f, "%lu\n", i);
14691 }
14692 exit (ferror (f) || fclose (f) != 0);
14693
14694 ;
14695 return 0;
14696}
14697_ACEOF
14698rm -f conftest$ac_exeext
14699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 ac_cv_sizeof_char=`cat conftest.val`
14710else
14711 echo "$as_me: program exited with status $ac_status" >&5
14712echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715( exit $ac_status )
14716{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14717See \`config.log' for more details." >&5
14718echo "$as_me: error: cannot compute sizeof (char), 77
14719See \`config.log' for more details." >&2;}
14720 { (exit 1); exit 1; }; }
14721fi
ac1cb8d3 14722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14723fi
14724fi
14725rm -f conftest.val
14726else
14727 ac_cv_sizeof_char=0
14728fi
14729fi
14730echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14731echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14732cat >>confdefs.h <<_ACEOF
14733#define SIZEOF_CHAR $ac_cv_sizeof_char
14734_ACEOF
14735
14736
14737echo "$as_me:$LINENO: checking for short" >&5
14738echo $ECHO_N "checking for short... $ECHO_C" >&6
14739if test "${ac_cv_type_short+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748$ac_includes_default
14749int
14750main ()
14751{
14752if ((short *) 0)
14753 return 0;
14754if (sizeof (short))
14755 return 0;
14756 ;
14757 return 0;
14758}
14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14762 (eval $ac_compile) 2>conftest.er1
a848cd7e 14763 ac_status=$?
ac1cb8d3
VS
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
a848cd7e
SC
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
ea7db9ff
DE
14769 { ac_try='test -z "$ac_c_werror_flag"
14770 || test ! -s conftest.err'
ac1cb8d3
VS
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_type_short=yes
14783else
14784 echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
14787ac_cv_type_short=no
14788fi
ac1cb8d3 14789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14790fi
14791echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14792echo "${ECHO_T}$ac_cv_type_short" >&6
14793
14794echo "$as_me:$LINENO: checking size of short" >&5
14795echo $ECHO_N "checking size of short... $ECHO_C" >&6
14796if test "${ac_cv_sizeof_short+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798else
14799 if test "$ac_cv_type_short" = yes; then
14800 # The cast to unsigned long works around a bug in the HP C Compiler
14801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14803 # This bug is HP SR number 8606223364.
14804 if test "$cross_compiling" = yes; then
14805 # Depending upon the size, compute the lo and hi bounds.
14806cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h. */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h. */
14812$ac_includes_default
14813int
14814main ()
14815{
14816static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14817test_array [0] = 0
14818
14819 ;
14820 return 0;
14821}
14822_ACEOF
14823rm -f conftest.$ac_objext
14824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14825 (eval $ac_compile) 2>conftest.er1
a848cd7e 14826 ac_status=$?
ac1cb8d3
VS
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
a848cd7e
SC
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
ea7db9ff
DE
14832 { ac_try='test -z "$ac_c_werror_flag"
14833 || test ! -s conftest.err'
ac1cb8d3
VS
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_lo=0 ac_mid=0
14846 while :; do
14847 cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h. */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h. */
14853$ac_includes_default
14854int
14855main ()
14856{
14857static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14858test_array [0] = 0
14859
14860 ;
14861 return 0;
14862}
14863_ACEOF
14864rm -f conftest.$ac_objext
14865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14866 (eval $ac_compile) 2>conftest.er1
a848cd7e 14867 ac_status=$?
ac1cb8d3
VS
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
a848cd7e
SC
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
ea7db9ff
DE
14873 { ac_try='test -z "$ac_c_werror_flag"
14874 || test ! -s conftest.err'
ac1cb8d3
VS
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_hi=$ac_mid; break
14887else
14888 echo "$as_me: failed program was:" >&5
14889sed 's/^/| /' conftest.$ac_ext >&5
14890
14891ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14892 if test $ac_lo -le $ac_mid; then
14893 ac_lo= ac_hi=
14894 break
14895 fi
14896 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14897fi
ac1cb8d3 14898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14899 done
14900else
14901 echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904cat >conftest.$ac_ext <<_ACEOF
14905/* confdefs.h. */
14906_ACEOF
14907cat confdefs.h >>conftest.$ac_ext
14908cat >>conftest.$ac_ext <<_ACEOF
14909/* end confdefs.h. */
14910$ac_includes_default
14911int
14912main ()
14913{
14914static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14915test_array [0] = 0
14916
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921rm -f conftest.$ac_objext
14922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14923 (eval $ac_compile) 2>conftest.er1
a848cd7e 14924 ac_status=$?
ac1cb8d3
VS
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
a848cd7e
SC
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
ea7db9ff
DE
14930 { ac_try='test -z "$ac_c_werror_flag"
14931 || test ! -s conftest.err'
ac1cb8d3
VS
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; } &&
14937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_hi=-1 ac_mid=-1
14944 while :; do
14945 cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h. */
14951$ac_includes_default
14952int
14953main ()
14954{
14955static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14956test_array [0] = 0
14957
14958 ;
14959 return 0;
14960}
14961_ACEOF
14962rm -f conftest.$ac_objext
14963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14964 (eval $ac_compile) 2>conftest.er1
a848cd7e 14965 ac_status=$?
ac1cb8d3
VS
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
a848cd7e
SC
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
ea7db9ff
DE
14971 { ac_try='test -z "$ac_c_werror_flag"
14972 || test ! -s conftest.err'
ac1cb8d3
VS
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_lo=$ac_mid; break
14985else
14986 echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14990 if test $ac_mid -le $ac_hi; then
14991 ac_lo= ac_hi=
14992 break
14993 fi
14994 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14995fi
ac1cb8d3 14996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14997 done
14998else
14999 echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002ac_lo= ac_hi=
15003fi
ac1cb8d3 15004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15005fi
ac1cb8d3 15006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15007# Binary search between lo and hi bounds.
15008while test "x$ac_lo" != "x$ac_hi"; do
15009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15010 cat >conftest.$ac_ext <<_ACEOF
15011/* confdefs.h. */
15012_ACEOF
15013cat confdefs.h >>conftest.$ac_ext
15014cat >>conftest.$ac_ext <<_ACEOF
15015/* end confdefs.h. */
15016$ac_includes_default
15017int
15018main ()
15019{
15020static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15021test_array [0] = 0
15022
15023 ;
15024 return 0;
15025}
15026_ACEOF
15027rm -f conftest.$ac_objext
15028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15029 (eval $ac_compile) 2>conftest.er1
a848cd7e 15030 ac_status=$?
ac1cb8d3
VS
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
a848cd7e
SC
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
ea7db9ff
DE
15036 { ac_try='test -z "$ac_c_werror_flag"
15037 || test ! -s conftest.err'
ac1cb8d3
VS
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; } &&
15043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_hi=$ac_mid
15050else
15051 echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
15054ac_lo=`expr '(' $ac_mid ')' + 1`
15055fi
ac1cb8d3 15056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15057done
15058case $ac_lo in
15059?*) ac_cv_sizeof_short=$ac_lo;;
15060'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15061See \`config.log' for more details." >&5
15062echo "$as_me: error: cannot compute sizeof (short), 77
15063See \`config.log' for more details." >&2;}
15064 { (exit 1); exit 1; }; } ;;
15065esac
15066else
15067 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15069See \`config.log' for more details." >&5
15070echo "$as_me: error: cannot run test program while cross compiling
15071See \`config.log' for more details." >&2;}
a848cd7e
SC
15072 { (exit 1); exit 1; }; }
15073else
15074 cat >conftest.$ac_ext <<_ACEOF
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080$ac_includes_default
15081long longval () { return (long) (sizeof (short)); }
15082unsigned long ulongval () { return (long) (sizeof (short)); }
15083#include <stdio.h>
15084#include <stdlib.h>
15085int
15086main ()
15087{
15088
15089 FILE *f = fopen ("conftest.val", "w");
15090 if (! f)
15091 exit (1);
15092 if (((long) (sizeof (short))) < 0)
15093 {
15094 long i = longval ();
15095 if (i != ((long) (sizeof (short))))
15096 exit (1);
15097 fprintf (f, "%ld\n", i);
15098 }
15099 else
15100 {
15101 unsigned long i = ulongval ();
15102 if (i != ((long) (sizeof (short))))
15103 exit (1);
15104 fprintf (f, "%lu\n", i);
15105 }
15106 exit (ferror (f) || fclose (f) != 0);
15107
15108 ;
15109 return 0;
15110}
15111_ACEOF
15112rm -f conftest$ac_exeext
15113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 ac_cv_sizeof_short=`cat conftest.val`
15124else
15125 echo "$as_me: program exited with status $ac_status" >&5
15126echo "$as_me: failed program was:" >&5
15127sed 's/^/| /' conftest.$ac_ext >&5
15128
15129( exit $ac_status )
15130{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15131See \`config.log' for more details." >&5
15132echo "$as_me: error: cannot compute sizeof (short), 77
15133See \`config.log' for more details." >&2;}
15134 { (exit 1); exit 1; }; }
15135fi
ac1cb8d3 15136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15137fi
15138fi
15139rm -f conftest.val
15140else
15141 ac_cv_sizeof_short=0
15142fi
15143fi
15144echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15145echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15146cat >>confdefs.h <<_ACEOF
15147#define SIZEOF_SHORT $ac_cv_sizeof_short
15148_ACEOF
15149
15150
15151echo "$as_me:$LINENO: checking for void *" >&5
15152echo $ECHO_N "checking for void *... $ECHO_C" >&6
15153if test "${ac_cv_type_void_p+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155else
15156 cat >conftest.$ac_ext <<_ACEOF
15157/* confdefs.h. */
15158_ACEOF
15159cat confdefs.h >>conftest.$ac_ext
15160cat >>conftest.$ac_ext <<_ACEOF
15161/* end confdefs.h. */
15162$ac_includes_default
15163int
15164main ()
15165{
15166if ((void * *) 0)
15167 return 0;
15168if (sizeof (void *))
15169 return 0;
15170 ;
15171 return 0;
15172}
15173_ACEOF
15174rm -f conftest.$ac_objext
15175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15176 (eval $ac_compile) 2>conftest.er1
a848cd7e 15177 ac_status=$?
ac1cb8d3
VS
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
a848cd7e
SC
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
ea7db9ff
DE
15183 { ac_try='test -z "$ac_c_werror_flag"
15184 || test ! -s conftest.err'
ac1cb8d3
VS
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; } &&
15190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_cv_type_void_p=yes
15197else
15198 echo "$as_me: failed program was:" >&5
15199sed 's/^/| /' conftest.$ac_ext >&5
15200
15201ac_cv_type_void_p=no
15202fi
ac1cb8d3 15203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15204fi
15205echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15206echo "${ECHO_T}$ac_cv_type_void_p" >&6
15207
15208echo "$as_me:$LINENO: checking size of void *" >&5
15209echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15210if test "${ac_cv_sizeof_void_p+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212else
15213 if test "$ac_cv_type_void_p" = yes; then
15214 # The cast to unsigned long works around a bug in the HP C Compiler
15215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15217 # This bug is HP SR number 8606223364.
15218 if test "$cross_compiling" = yes; then
15219 # Depending upon the size, compute the lo and hi bounds.
15220cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h. */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h. */
15226$ac_includes_default
15227int
15228main ()
15229{
15230static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15231test_array [0] = 0
15232
15233 ;
15234 return 0;
15235}
15236_ACEOF
15237rm -f conftest.$ac_objext
15238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15239 (eval $ac_compile) 2>conftest.er1
a848cd7e 15240 ac_status=$?
ac1cb8d3
VS
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
a848cd7e
SC
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
ea7db9ff
DE
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
ac1cb8d3
VS
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_lo=0 ac_mid=0
15260 while :; do
15261 cat >conftest.$ac_ext <<_ACEOF
15262/* confdefs.h. */
15263_ACEOF
15264cat confdefs.h >>conftest.$ac_ext
15265cat >>conftest.$ac_ext <<_ACEOF
15266/* end confdefs.h. */
15267$ac_includes_default
15268int
15269main ()
15270{
15271static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15272test_array [0] = 0
15273
15274 ;
15275 return 0;
15276}
15277_ACEOF
15278rm -f conftest.$ac_objext
15279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15280 (eval $ac_compile) 2>conftest.er1
a848cd7e 15281 ac_status=$?
ac1cb8d3
VS
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
a848cd7e
SC
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
ea7db9ff
DE
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || 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=$ac_mid; break
15301else
15302 echo "$as_me: failed program was:" >&5
15303sed 's/^/| /' conftest.$ac_ext >&5
15304
15305ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15306 if test $ac_lo -le $ac_mid; then
15307 ac_lo= ac_hi=
15308 break
15309 fi
15310 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15311fi
ac1cb8d3 15312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15313 done
15314else
15315 echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318cat >conftest.$ac_ext <<_ACEOF
15319/* confdefs.h. */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h. */
15324$ac_includes_default
15325int
15326main ()
15327{
15328static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15329test_array [0] = 0
15330
15331 ;
15332 return 0;
15333}
15334_ACEOF
15335rm -f conftest.$ac_objext
15336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15337 (eval $ac_compile) 2>conftest.er1
a848cd7e 15338 ac_status=$?
ac1cb8d3
VS
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
a848cd7e
SC
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
ea7db9ff
DE
15344 { ac_try='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
ac1cb8d3
VS
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_hi=-1 ac_mid=-1
15358 while :; do
15359 cat >conftest.$ac_ext <<_ACEOF
15360/* confdefs.h. */
15361_ACEOF
15362cat confdefs.h >>conftest.$ac_ext
15363cat >>conftest.$ac_ext <<_ACEOF
15364/* end confdefs.h. */
15365$ac_includes_default
15366int
15367main ()
15368{
15369static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15370test_array [0] = 0
15371
15372 ;
15373 return 0;
15374}
15375_ACEOF
15376rm -f conftest.$ac_objext
15377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15378 (eval $ac_compile) 2>conftest.er1
a848cd7e 15379 ac_status=$?
ac1cb8d3
VS
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
a848cd7e
SC
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
ea7db9ff
DE
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
ac1cb8d3
VS
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_lo=$ac_mid; break
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15404 if test $ac_mid -le $ac_hi; then
15405 ac_lo= ac_hi=
15406 break
15407 fi
15408 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15409fi
ac1cb8d3 15410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15411 done
15412else
15413 echo "$as_me: failed program was:" >&5
15414sed 's/^/| /' conftest.$ac_ext >&5
15415
15416ac_lo= ac_hi=
15417fi
ac1cb8d3 15418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15419fi
ac1cb8d3 15420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15421# Binary search between lo and hi bounds.
15422while test "x$ac_lo" != "x$ac_hi"; do
15423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15424 cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430$ac_includes_default
15431int
15432main ()
15433{
15434static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15435test_array [0] = 0
15436
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15443 (eval $ac_compile) 2>conftest.er1
a848cd7e 15444 ac_status=$?
ac1cb8d3
VS
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
a848cd7e
SC
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
ea7db9ff
DE
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
ac1cb8d3
VS
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_hi=$ac_mid
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468ac_lo=`expr '(' $ac_mid ')' + 1`
15469fi
ac1cb8d3 15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15471done
15472case $ac_lo in
15473?*) ac_cv_sizeof_void_p=$ac_lo;;
15474'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15475See \`config.log' for more details." >&5
15476echo "$as_me: error: cannot compute sizeof (void *), 77
15477See \`config.log' for more details." >&2;}
15478 { (exit 1); exit 1; }; } ;;
15479esac
15480else
15481 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15483See \`config.log' for more details." >&5
15484echo "$as_me: error: cannot run test program while cross compiling
15485See \`config.log' for more details." >&2;}
a848cd7e
SC
15486 { (exit 1); exit 1; }; }
15487else
15488 cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495long longval () { return (long) (sizeof (void *)); }
15496unsigned long ulongval () { return (long) (sizeof (void *)); }
15497#include <stdio.h>
15498#include <stdlib.h>
15499int
15500main ()
15501{
15502
15503 FILE *f = fopen ("conftest.val", "w");
15504 if (! f)
15505 exit (1);
15506 if (((long) (sizeof (void *))) < 0)
15507 {
15508 long i = longval ();
15509 if (i != ((long) (sizeof (void *))))
15510 exit (1);
15511 fprintf (f, "%ld\n", i);
15512 }
15513 else
15514 {
15515 unsigned long i = ulongval ();
15516 if (i != ((long) (sizeof (void *))))
15517 exit (1);
15518 fprintf (f, "%lu\n", i);
15519 }
15520 exit (ferror (f) || fclose (f) != 0);
15521
15522 ;
15523 return 0;
15524}
15525_ACEOF
15526rm -f conftest$ac_exeext
15527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_sizeof_void_p=`cat conftest.val`
15538else
15539 echo "$as_me: program exited with status $ac_status" >&5
15540echo "$as_me: failed program was:" >&5
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
15543( exit $ac_status )
15544{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15545See \`config.log' for more details." >&5
15546echo "$as_me: error: cannot compute sizeof (void *), 77
15547See \`config.log' for more details." >&2;}
15548 { (exit 1); exit 1; }; }
15549fi
ac1cb8d3 15550rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15551fi
15552fi
15553rm -f conftest.val
15554else
15555 ac_cv_sizeof_void_p=0
15556fi
15557fi
15558echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15559echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15560cat >>confdefs.h <<_ACEOF
15561#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15562_ACEOF
15563
15564
15565echo "$as_me:$LINENO: checking for int" >&5
15566echo $ECHO_N "checking for int... $ECHO_C" >&6
15567if test "${ac_cv_type_int+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569else
15570 cat >conftest.$ac_ext <<_ACEOF
15571/* confdefs.h. */
15572_ACEOF
15573cat confdefs.h >>conftest.$ac_ext
15574cat >>conftest.$ac_ext <<_ACEOF
15575/* end confdefs.h. */
15576$ac_includes_default
15577int
15578main ()
15579{
15580if ((int *) 0)
15581 return 0;
15582if (sizeof (int))
15583 return 0;
15584 ;
15585 return 0;
15586}
15587_ACEOF
15588rm -f conftest.$ac_objext
15589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15590 (eval $ac_compile) 2>conftest.er1
a848cd7e 15591 ac_status=$?
ac1cb8d3
VS
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
a848cd7e
SC
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
ea7db9ff
DE
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || 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_cv_type_int=yes
15611else
15612 echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615ac_cv_type_int=no
15616fi
ac1cb8d3 15617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15618fi
15619echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15620echo "${ECHO_T}$ac_cv_type_int" >&6
15621
15622echo "$as_me:$LINENO: checking size of int" >&5
15623echo $ECHO_N "checking size of int... $ECHO_C" >&6
15624if test "${ac_cv_sizeof_int+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626else
15627 if test "$ac_cv_type_int" = yes; then
15628 # The cast to unsigned long works around a bug in the HP C Compiler
15629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15631 # This bug is HP SR number 8606223364.
15632 if test "$cross_compiling" = yes; then
15633 # Depending upon the size, compute the lo and hi bounds.
15634cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640$ac_includes_default
15641int
15642main ()
15643{
15644static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15645test_array [0] = 0
15646
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651rm -f conftest.$ac_objext
15652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15653 (eval $ac_compile) 2>conftest.er1
a848cd7e 15654 ac_status=$?
ac1cb8d3
VS
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
a848cd7e
SC
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
ea7db9ff
DE
15660 { ac_try='test -z "$ac_c_werror_flag"
15661 || test ! -s conftest.err'
ac1cb8d3
VS
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_lo=0 ac_mid=0
15674 while :; do
15675 cat >conftest.$ac_ext <<_ACEOF
15676/* confdefs.h. */
15677_ACEOF
15678cat confdefs.h >>conftest.$ac_ext
15679cat >>conftest.$ac_ext <<_ACEOF
15680/* end confdefs.h. */
15681$ac_includes_default
15682int
15683main ()
15684{
15685static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15686test_array [0] = 0
15687
15688 ;
15689 return 0;
15690}
15691_ACEOF
15692rm -f conftest.$ac_objext
15693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15694 (eval $ac_compile) 2>conftest.er1
a848cd7e 15695 ac_status=$?
ac1cb8d3
VS
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
a848cd7e
SC
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
ea7db9ff
DE
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
ac1cb8d3
VS
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_hi=$ac_mid; break
15715else
15716 echo "$as_me: failed program was:" >&5
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
15719ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15720 if test $ac_lo -le $ac_mid; then
15721 ac_lo= ac_hi=
15722 break
15723 fi
15724 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15725fi
ac1cb8d3 15726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15727 done
15728else
15729 echo "$as_me: failed program was:" >&5
15730sed 's/^/| /' conftest.$ac_ext >&5
15731
15732cat >conftest.$ac_ext <<_ACEOF
15733/* confdefs.h. */
15734_ACEOF
15735cat confdefs.h >>conftest.$ac_ext
15736cat >>conftest.$ac_ext <<_ACEOF
15737/* end confdefs.h. */
15738$ac_includes_default
15739int
15740main ()
15741{
15742static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15743test_array [0] = 0
15744
15745 ;
15746 return 0;
15747}
15748_ACEOF
15749rm -f conftest.$ac_objext
15750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15751 (eval $ac_compile) 2>conftest.er1
a848cd7e 15752 ac_status=$?
ac1cb8d3
VS
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
a848cd7e
SC
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
ea7db9ff
DE
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
ac1cb8d3
VS
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_hi=-1 ac_mid=-1
15772 while :; do
15773 cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779$ac_includes_default
15780int
15781main ()
15782{
15783static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15784test_array [0] = 0
15785
15786 ;
15787 return 0;
15788}
15789_ACEOF
15790rm -f conftest.$ac_objext
15791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15792 (eval $ac_compile) 2>conftest.er1
a848cd7e 15793 ac_status=$?
ac1cb8d3
VS
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
a848cd7e
SC
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
ea7db9ff
DE
15799 { ac_try='test -z "$ac_c_werror_flag"
15800 || test ! -s conftest.err'
ac1cb8d3
VS
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_lo=$ac_mid; break
15813else
15814 echo "$as_me: failed program was:" >&5
15815sed 's/^/| /' conftest.$ac_ext >&5
15816
15817ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15818 if test $ac_mid -le $ac_hi; then
15819 ac_lo= ac_hi=
15820 break
15821 fi
15822 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15823fi
ac1cb8d3 15824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15825 done
15826else
15827 echo "$as_me: failed program was:" >&5
15828sed 's/^/| /' conftest.$ac_ext >&5
15829
15830ac_lo= ac_hi=
15831fi
ac1cb8d3 15832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15833fi
ac1cb8d3 15834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15835# Binary search between lo and hi bounds.
15836while test "x$ac_lo" != "x$ac_hi"; do
15837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15838 cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844$ac_includes_default
15845int
15846main ()
15847{
15848static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15849test_array [0] = 0
15850
15851 ;
15852 return 0;
15853}
15854_ACEOF
15855rm -f conftest.$ac_objext
15856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15857 (eval $ac_compile) 2>conftest.er1
a848cd7e 15858 ac_status=$?
ac1cb8d3
VS
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
a848cd7e
SC
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
ea7db9ff
DE
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
ac1cb8d3
VS
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_hi=$ac_mid
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882ac_lo=`expr '(' $ac_mid ')' + 1`
15883fi
ac1cb8d3 15884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15885done
15886case $ac_lo in
15887?*) ac_cv_sizeof_int=$ac_lo;;
15888'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15889See \`config.log' for more details." >&5
15890echo "$as_me: error: cannot compute sizeof (int), 77
15891See \`config.log' for more details." >&2;}
15892 { (exit 1); exit 1; }; } ;;
15893esac
15894else
15895 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15897See \`config.log' for more details." >&5
15898echo "$as_me: error: cannot run test program while cross compiling
15899See \`config.log' for more details." >&2;}
a848cd7e
SC
15900 { (exit 1); exit 1; }; }
15901else
15902 cat >conftest.$ac_ext <<_ACEOF
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
15908$ac_includes_default
15909long longval () { return (long) (sizeof (int)); }
15910unsigned long ulongval () { return (long) (sizeof (int)); }
15911#include <stdio.h>
15912#include <stdlib.h>
15913int
15914main ()
15915{
15916
15917 FILE *f = fopen ("conftest.val", "w");
15918 if (! f)
15919 exit (1);
15920 if (((long) (sizeof (int))) < 0)
15921 {
15922 long i = longval ();
15923 if (i != ((long) (sizeof (int))))
15924 exit (1);
15925 fprintf (f, "%ld\n", i);
15926 }
15927 else
15928 {
15929 unsigned long i = ulongval ();
15930 if (i != ((long) (sizeof (int))))
15931 exit (1);
15932 fprintf (f, "%lu\n", i);
15933 }
15934 exit (ferror (f) || fclose (f) != 0);
15935
15936 ;
15937 return 0;
15938}
15939_ACEOF
15940rm -f conftest$ac_exeext
15941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 ac_cv_sizeof_int=`cat conftest.val`
15952else
15953 echo "$as_me: program exited with status $ac_status" >&5
15954echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957( exit $ac_status )
15958{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15959See \`config.log' for more details." >&5
15960echo "$as_me: error: cannot compute sizeof (int), 77
15961See \`config.log' for more details." >&2;}
15962 { (exit 1); exit 1; }; }
15963fi
ac1cb8d3 15964rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15965fi
15966fi
15967rm -f conftest.val
15968else
15969 ac_cv_sizeof_int=0
15970fi
15971fi
15972echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15973echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15974cat >>confdefs.h <<_ACEOF
15975#define SIZEOF_INT $ac_cv_sizeof_int
15976_ACEOF
15977
15978
15979echo "$as_me:$LINENO: checking for long" >&5
15980echo $ECHO_N "checking for long... $ECHO_C" >&6
15981if test "${ac_cv_type_long+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983else
15984 cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990$ac_includes_default
15991int
15992main ()
15993{
15994if ((long *) 0)
15995 return 0;
15996if (sizeof (long))
15997 return 0;
15998 ;
15999 return 0;
16000}
16001_ACEOF
16002rm -f conftest.$ac_objext
16003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16004 (eval $ac_compile) 2>conftest.er1
a848cd7e 16005 ac_status=$?
ac1cb8d3
VS
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
a848cd7e
SC
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
ea7db9ff
DE
16011 { ac_try='test -z "$ac_c_werror_flag"
16012 || test ! -s conftest.err'
ac1cb8d3
VS
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_cv_type_long=yes
16025else
16026 echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029ac_cv_type_long=no
16030fi
ac1cb8d3 16031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16032fi
16033echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16034echo "${ECHO_T}$ac_cv_type_long" >&6
16035
16036echo "$as_me:$LINENO: checking size of long" >&5
16037echo $ECHO_N "checking size of long... $ECHO_C" >&6
16038if test "${ac_cv_sizeof_long+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040else
16041 if test "$ac_cv_type_long" = yes; then
16042 # The cast to unsigned long works around a bug in the HP C Compiler
16043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16045 # This bug is HP SR number 8606223364.
16046 if test "$cross_compiling" = yes; then
16047 # Depending upon the size, compute the lo and hi bounds.
16048cat >conftest.$ac_ext <<_ACEOF
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054$ac_includes_default
16055int
16056main ()
16057{
16058static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16059test_array [0] = 0
16060
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065rm -f conftest.$ac_objext
16066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16067 (eval $ac_compile) 2>conftest.er1
a848cd7e 16068 ac_status=$?
ac1cb8d3
VS
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
a848cd7e
SC
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
ea7db9ff
DE
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
ac1cb8d3
VS
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_lo=0 ac_mid=0
16088 while :; do
16089 cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h. */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h. */
16095$ac_includes_default
16096int
16097main ()
16098{
16099static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16100test_array [0] = 0
16101
16102 ;
16103 return 0;
16104}
16105_ACEOF
16106rm -f conftest.$ac_objext
16107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16108 (eval $ac_compile) 2>conftest.er1
a848cd7e 16109 ac_status=$?
ac1cb8d3
VS
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
a848cd7e
SC
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
ea7db9ff
DE
16115 { ac_try='test -z "$ac_c_werror_flag"
16116 || test ! -s conftest.err'
ac1cb8d3
VS
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_hi=$ac_mid; break
16129else
16130 echo "$as_me: failed program was:" >&5
16131sed 's/^/| /' conftest.$ac_ext >&5
16132
16133ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16134 if test $ac_lo -le $ac_mid; then
16135 ac_lo= ac_hi=
16136 break
16137 fi
16138 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16139fi
ac1cb8d3 16140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16141 done
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146cat >conftest.$ac_ext <<_ACEOF
16147/* confdefs.h. */
16148_ACEOF
16149cat confdefs.h >>conftest.$ac_ext
16150cat >>conftest.$ac_ext <<_ACEOF
16151/* end confdefs.h. */
16152$ac_includes_default
16153int
16154main ()
16155{
16156static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16157test_array [0] = 0
16158
16159 ;
16160 return 0;
16161}
16162_ACEOF
16163rm -f conftest.$ac_objext
16164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16165 (eval $ac_compile) 2>conftest.er1
a848cd7e 16166 ac_status=$?
ac1cb8d3
VS
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
a848cd7e
SC
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
ea7db9ff
DE
16172 { ac_try='test -z "$ac_c_werror_flag"
16173 || test ! -s conftest.err'
ac1cb8d3
VS
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_hi=-1 ac_mid=-1
16186 while :; do
16187 cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193$ac_includes_default
16194int
16195main ()
16196{
16197static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16198test_array [0] = 0
16199
16200 ;
16201 return 0;
16202}
16203_ACEOF
16204rm -f conftest.$ac_objext
16205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16206 (eval $ac_compile) 2>conftest.er1
a848cd7e 16207 ac_status=$?
ac1cb8d3
VS
16208 grep -v '^ *+' conftest.er1 >conftest.err
16209 rm -f conftest.er1
16210 cat conftest.err >&5
a848cd7e
SC
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
ea7db9ff
DE
16213 { ac_try='test -z "$ac_c_werror_flag"
16214 || test ! -s conftest.err'
ac1cb8d3
VS
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_lo=$ac_mid; break
16227else
16228 echo "$as_me: failed program was:" >&5
16229sed 's/^/| /' conftest.$ac_ext >&5
16230
16231ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16232 if test $ac_mid -le $ac_hi; then
16233 ac_lo= ac_hi=
16234 break
16235 fi
16236 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16237fi
ac1cb8d3 16238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16239 done
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244ac_lo= ac_hi=
16245fi
ac1cb8d3 16246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16247fi
ac1cb8d3 16248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16249# Binary search between lo and hi bounds.
16250while test "x$ac_lo" != "x$ac_hi"; do
16251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16252 cat >conftest.$ac_ext <<_ACEOF
16253/* confdefs.h. */
16254_ACEOF
16255cat confdefs.h >>conftest.$ac_ext
16256cat >>conftest.$ac_ext <<_ACEOF
16257/* end confdefs.h. */
16258$ac_includes_default
16259int
16260main ()
16261{
16262static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16263test_array [0] = 0
16264
16265 ;
16266 return 0;
16267}
16268_ACEOF
16269rm -f conftest.$ac_objext
16270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16271 (eval $ac_compile) 2>conftest.er1
a848cd7e 16272 ac_status=$?
ac1cb8d3
VS
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
a848cd7e
SC
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
ea7db9ff
DE
16278 { ac_try='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
ac1cb8d3
VS
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_hi=$ac_mid
16292else
16293 echo "$as_me: failed program was:" >&5
16294sed 's/^/| /' conftest.$ac_ext >&5
16295
16296ac_lo=`expr '(' $ac_mid ')' + 1`
16297fi
ac1cb8d3 16298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16299done
16300case $ac_lo in
16301?*) ac_cv_sizeof_long=$ac_lo;;
16302'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16303See \`config.log' for more details." >&5
16304echo "$as_me: error: cannot compute sizeof (long), 77
16305See \`config.log' for more details." >&2;}
16306 { (exit 1); exit 1; }; } ;;
16307esac
16308else
16309 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16310 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16311See \`config.log' for more details." >&5
16312echo "$as_me: error: cannot run test program while cross compiling
16313See \`config.log' for more details." >&2;}
a848cd7e
SC
16314 { (exit 1); exit 1; }; }
16315else
16316 cat >conftest.$ac_ext <<_ACEOF
16317/* confdefs.h. */
16318_ACEOF
16319cat confdefs.h >>conftest.$ac_ext
16320cat >>conftest.$ac_ext <<_ACEOF
16321/* end confdefs.h. */
16322$ac_includes_default
16323long longval () { return (long) (sizeof (long)); }
16324unsigned long ulongval () { return (long) (sizeof (long)); }
16325#include <stdio.h>
16326#include <stdlib.h>
16327int
16328main ()
16329{
16330
16331 FILE *f = fopen ("conftest.val", "w");
16332 if (! f)
16333 exit (1);
16334 if (((long) (sizeof (long))) < 0)
16335 {
16336 long i = longval ();
16337 if (i != ((long) (sizeof (long))))
16338 exit (1);
16339 fprintf (f, "%ld\n", i);
16340 }
16341 else
16342 {
16343 unsigned long i = ulongval ();
16344 if (i != ((long) (sizeof (long))))
16345 exit (1);
16346 fprintf (f, "%lu\n", i);
16347 }
16348 exit (ferror (f) || fclose (f) != 0);
16349
16350 ;
16351 return 0;
16352}
16353_ACEOF
16354rm -f conftest$ac_exeext
16355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16356 (eval $ac_link) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 ac_cv_sizeof_long=`cat conftest.val`
16366else
16367 echo "$as_me: program exited with status $ac_status" >&5
16368echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
16371( exit $ac_status )
16372{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16373See \`config.log' for more details." >&5
16374echo "$as_me: error: cannot compute sizeof (long), 77
16375See \`config.log' for more details." >&2;}
16376 { (exit 1); exit 1; }; }
16377fi
ac1cb8d3 16378rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16379fi
16380fi
16381rm -f conftest.val
16382else
16383 ac_cv_sizeof_long=0
16384fi
16385fi
16386echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16387echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16388cat >>confdefs.h <<_ACEOF
16389#define SIZEOF_LONG $ac_cv_sizeof_long
16390_ACEOF
16391
16392
16393echo "$as_me:$LINENO: checking for size_t" >&5
16394echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16395if test "${ac_cv_type_size_t+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397else
16398 cat >conftest.$ac_ext <<_ACEOF
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
16403/* end confdefs.h. */
16404$ac_includes_default
16405int
16406main ()
16407{
16408if ((size_t *) 0)
16409 return 0;
16410if (sizeof (size_t))
16411 return 0;
16412 ;
16413 return 0;
16414}
16415_ACEOF
16416rm -f conftest.$ac_objext
16417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16418 (eval $ac_compile) 2>conftest.er1
a848cd7e 16419 ac_status=$?
ac1cb8d3
VS
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
a848cd7e
SC
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
ea7db9ff
DE
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
ac1cb8d3
VS
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_type_size_t=yes
16439else
16440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443ac_cv_type_size_t=no
16444fi
ac1cb8d3 16445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16446fi
16447echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16448echo "${ECHO_T}$ac_cv_type_size_t" >&6
16449
16450echo "$as_me:$LINENO: checking size of size_t" >&5
16451echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16452if test "${ac_cv_sizeof_size_t+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454else
16455 if test "$ac_cv_type_size_t" = yes; then
16456 # The cast to unsigned long works around a bug in the HP C Compiler
16457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16459 # This bug is HP SR number 8606223364.
16460 if test "$cross_compiling" = yes; then
16461 # Depending upon the size, compute the lo and hi bounds.
16462cat >conftest.$ac_ext <<_ACEOF
16463/* confdefs.h. */
16464_ACEOF
16465cat confdefs.h >>conftest.$ac_ext
16466cat >>conftest.$ac_ext <<_ACEOF
16467/* end confdefs.h. */
16468$ac_includes_default
16469int
16470main ()
16471{
16472static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16473test_array [0] = 0
16474
16475 ;
16476 return 0;
16477}
16478_ACEOF
16479rm -f conftest.$ac_objext
16480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16481 (eval $ac_compile) 2>conftest.er1
a848cd7e 16482 ac_status=$?
ac1cb8d3
VS
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
a848cd7e
SC
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
ea7db9ff
DE
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
ac1cb8d3
VS
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_lo=0 ac_mid=0
16502 while :; do
16503 cat >conftest.$ac_ext <<_ACEOF
16504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
16509$ac_includes_default
16510int
16511main ()
16512{
16513static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16514test_array [0] = 0
16515
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16522 (eval $ac_compile) 2>conftest.er1
a848cd7e 16523 ac_status=$?
ac1cb8d3
VS
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
a848cd7e
SC
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
ea7db9ff
DE
16529 { ac_try='test -z "$ac_c_werror_flag"
16530 || test ! -s conftest.err'
ac1cb8d3
VS
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_hi=$ac_mid; break
16543else
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
16547ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16548 if test $ac_lo -le $ac_mid; then
16549 ac_lo= ac_hi=
16550 break
16551 fi
16552 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16553fi
ac1cb8d3 16554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16555 done
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560cat >conftest.$ac_ext <<_ACEOF
16561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
16566$ac_includes_default
16567int
16568main ()
16569{
16570static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16571test_array [0] = 0
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest.$ac_objext
16578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16579 (eval $ac_compile) 2>conftest.er1
a848cd7e 16580 ac_status=$?
ac1cb8d3
VS
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
a848cd7e
SC
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } &&
ea7db9ff
DE
16586 { ac_try='test -z "$ac_c_werror_flag"
16587 || test ! -s conftest.err'
ac1cb8d3
VS
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_hi=-1 ac_mid=-1
16600 while :; do
16601 cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607$ac_includes_default
16608int
16609main ()
16610{
16611static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16612test_array [0] = 0
16613
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16620 (eval $ac_compile) 2>conftest.er1
a848cd7e 16621 ac_status=$?
ac1cb8d3
VS
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
a848cd7e
SC
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
ea7db9ff
DE
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
ac1cb8d3
VS
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_lo=$ac_mid; break
16641else
16642 echo "$as_me: failed program was:" >&5
16643sed 's/^/| /' conftest.$ac_ext >&5
16644
16645ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16646 if test $ac_mid -le $ac_hi; then
16647 ac_lo= ac_hi=
16648 break
16649 fi
16650 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16651fi
ac1cb8d3 16652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16653 done
16654else
16655 echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
16657
16658ac_lo= ac_hi=
16659fi
ac1cb8d3 16660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16661fi
ac1cb8d3 16662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16663# Binary search between lo and hi bounds.
16664while test "x$ac_lo" != "x$ac_hi"; do
16665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16666 cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672$ac_includes_default
16673int
16674main ()
16675{
16676static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16677test_array [0] = 0
16678
16679 ;
16680 return 0;
16681}
16682_ACEOF
16683rm -f conftest.$ac_objext
16684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16685 (eval $ac_compile) 2>conftest.er1
a848cd7e 16686 ac_status=$?
ac1cb8d3
VS
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
a848cd7e
SC
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
ea7db9ff
DE
16692 { ac_try='test -z "$ac_c_werror_flag"
16693 || test ! -s conftest.err'
ac1cb8d3
VS
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_hi=$ac_mid
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710ac_lo=`expr '(' $ac_mid ')' + 1`
16711fi
ac1cb8d3 16712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16713done
16714case $ac_lo in
16715?*) ac_cv_sizeof_size_t=$ac_lo;;
16716'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16717See \`config.log' for more details." >&5
16718echo "$as_me: error: cannot compute sizeof (size_t), 77
16719See \`config.log' for more details." >&2;}
16720 { (exit 1); exit 1; }; } ;;
16721esac
16722else
16723 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16724 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16725See \`config.log' for more details." >&5
16726echo "$as_me: error: cannot run test program while cross compiling
16727See \`config.log' for more details." >&2;}
a848cd7e
SC
16728 { (exit 1); exit 1; }; }
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
16737long longval () { return (long) (sizeof (size_t)); }
16738unsigned long ulongval () { return (long) (sizeof (size_t)); }
16739#include <stdio.h>
16740#include <stdlib.h>
16741int
16742main ()
16743{
16744
16745 FILE *f = fopen ("conftest.val", "w");
16746 if (! f)
16747 exit (1);
16748 if (((long) (sizeof (size_t))) < 0)
16749 {
16750 long i = longval ();
16751 if (i != ((long) (sizeof (size_t))))
16752 exit (1);
16753 fprintf (f, "%ld\n", i);
16754 }
16755 else
16756 {
16757 unsigned long i = ulongval ();
16758 if (i != ((long) (sizeof (size_t))))
16759 exit (1);
16760 fprintf (f, "%lu\n", i);
16761 }
16762 exit (ferror (f) || fclose (f) != 0);
16763
16764 ;
16765 return 0;
16766}
16767_ACEOF
16768rm -f conftest$ac_exeext
16769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16770 (eval $ac_link) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_cv_sizeof_size_t=`cat conftest.val`
16780else
16781 echo "$as_me: program exited with status $ac_status" >&5
16782echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785( exit $ac_status )
16786{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16787See \`config.log' for more details." >&5
16788echo "$as_me: error: cannot compute sizeof (size_t), 77
16789See \`config.log' for more details." >&2;}
16790 { (exit 1); exit 1; }; }
16791fi
ac1cb8d3 16792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16793fi
16794fi
16795rm -f conftest.val
16796else
16797 ac_cv_sizeof_size_t=0
16798fi
16799fi
16800echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16801echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16802cat >>confdefs.h <<_ACEOF
16803#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16804_ACEOF
16805
16806
16807
16808case "${host}" in
16809 arm-*-linux* )
16810 echo "$as_me:$LINENO: checking for long long" >&5
16811echo $ECHO_N "checking for long long... $ECHO_C" >&6
16812if test "${ac_cv_type_long_long+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814else
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822int
16823main ()
16824{
16825if ((long long *) 0)
16826 return 0;
16827if (sizeof (long long))
16828 return 0;
16829 ;
16830 return 0;
16831}
16832_ACEOF
16833rm -f conftest.$ac_objext
16834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16835 (eval $ac_compile) 2>conftest.er1
a848cd7e 16836 ac_status=$?
ac1cb8d3
VS
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
a848cd7e
SC
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
ea7db9ff
DE
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
ac1cb8d3
VS
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_type_long_long=yes
16856else
16857 echo "$as_me: failed program was:" >&5
16858sed 's/^/| /' conftest.$ac_ext >&5
16859
16860ac_cv_type_long_long=no
16861fi
ac1cb8d3 16862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16863fi
16864echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16865echo "${ECHO_T}$ac_cv_type_long_long" >&6
16866
16867echo "$as_me:$LINENO: checking size of long long" >&5
16868echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16869if test "${ac_cv_sizeof_long_long+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871else
16872 if test "$ac_cv_type_long_long" = yes; then
16873 # The cast to unsigned long works around a bug in the HP C Compiler
16874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16876 # This bug is HP SR number 8606223364.
16877 if test "$cross_compiling" = yes; then
16878 # Depending upon the size, compute the lo and hi bounds.
16879cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885$ac_includes_default
16886int
16887main ()
16888{
16889static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16890test_array [0] = 0
16891
16892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext
16897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16898 (eval $ac_compile) 2>conftest.er1
a848cd7e 16899 ac_status=$?
ac1cb8d3
VS
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
a848cd7e
SC
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
ea7db9ff
DE
16905 { ac_try='test -z "$ac_c_werror_flag"
16906 || test ! -s conftest.err'
ac1cb8d3
VS
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_lo=0 ac_mid=0
16919 while :; do
16920 cat >conftest.$ac_ext <<_ACEOF
16921/* confdefs.h. */
16922_ACEOF
16923cat confdefs.h >>conftest.$ac_ext
16924cat >>conftest.$ac_ext <<_ACEOF
16925/* end confdefs.h. */
16926$ac_includes_default
16927int
16928main ()
16929{
16930static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16931test_array [0] = 0
16932
16933 ;
16934 return 0;
16935}
16936_ACEOF
16937rm -f conftest.$ac_objext
16938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16939 (eval $ac_compile) 2>conftest.er1
a848cd7e 16940 ac_status=$?
ac1cb8d3
VS
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
a848cd7e
SC
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
ea7db9ff
DE
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
ac1cb8d3
VS
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_hi=$ac_mid; break
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
16964ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16965 if test $ac_lo -le $ac_mid; then
16966 ac_lo= ac_hi=
16967 break
16968 fi
16969 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16970fi
ac1cb8d3 16971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16972 done
16973else
16974 echo "$as_me: failed program was:" >&5
16975sed 's/^/| /' conftest.$ac_ext >&5
16976
16977cat >conftest.$ac_ext <<_ACEOF
16978/* confdefs.h. */
16979_ACEOF
16980cat confdefs.h >>conftest.$ac_ext
16981cat >>conftest.$ac_ext <<_ACEOF
16982/* end confdefs.h. */
16983$ac_includes_default
16984int
16985main ()
16986{
16987static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16988test_array [0] = 0
16989
16990 ;
16991 return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext
16995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16996 (eval $ac_compile) 2>conftest.er1
a848cd7e 16997 ac_status=$?
ac1cb8d3
VS
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
a848cd7e
SC
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
ea7db9ff
DE
17003 { ac_try='test -z "$ac_c_werror_flag"
17004 || test ! -s conftest.err'
ac1cb8d3
VS
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_hi=-1 ac_mid=-1
17017 while :; do
17018 cat >conftest.$ac_ext <<_ACEOF
17019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
17024$ac_includes_default
17025int
17026main ()
17027{
17028static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17029test_array [0] = 0
17030
17031 ;
17032 return 0;
17033}
17034_ACEOF
17035rm -f conftest.$ac_objext
17036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17037 (eval $ac_compile) 2>conftest.er1
a848cd7e 17038 ac_status=$?
ac1cb8d3
VS
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
a848cd7e
SC
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
ea7db9ff
DE
17044 { ac_try='test -z "$ac_c_werror_flag"
17045 || test ! -s conftest.err'
ac1cb8d3
VS
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_lo=$ac_mid; break
17058else
17059 echo "$as_me: failed program was:" >&5
17060sed 's/^/| /' conftest.$ac_ext >&5
17061
17062ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17063 if test $ac_mid -le $ac_hi; then
17064 ac_lo= ac_hi=
17065 break
17066 fi
17067 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17068fi
ac1cb8d3 17069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17070 done
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075ac_lo= ac_hi=
17076fi
ac1cb8d3 17077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17078fi
ac1cb8d3 17079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17080# Binary search between lo and hi bounds.
17081while test "x$ac_lo" != "x$ac_hi"; do
17082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17083 cat >conftest.$ac_ext <<_ACEOF
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089$ac_includes_default
17090int
17091main ()
17092{
17093static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17094test_array [0] = 0
17095
17096 ;
17097 return 0;
17098}
17099_ACEOF
17100rm -f conftest.$ac_objext
17101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17102 (eval $ac_compile) 2>conftest.er1
a848cd7e 17103 ac_status=$?
ac1cb8d3
VS
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
a848cd7e
SC
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
ea7db9ff
DE
17109 { ac_try='test -z "$ac_c_werror_flag"
17110 || test ! -s conftest.err'
ac1cb8d3
VS
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_hi=$ac_mid
17123else
17124 echo "$as_me: failed program was:" >&5
17125sed 's/^/| /' conftest.$ac_ext >&5
17126
17127ac_lo=`expr '(' $ac_mid ')' + 1`
17128fi
ac1cb8d3 17129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17130done
17131case $ac_lo in
17132?*) ac_cv_sizeof_long_long=$ac_lo;;
17133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17134See \`config.log' for more details." >&5
17135echo "$as_me: error: cannot compute sizeof (long long), 77
17136See \`config.log' for more details." >&2;}
17137 { (exit 1); exit 1; }; } ;;
17138esac
17139else
17140 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17142See \`config.log' for more details." >&5
17143echo "$as_me: error: cannot run test program while cross compiling
17144See \`config.log' for more details." >&2;}
a848cd7e
SC
17145 { (exit 1); exit 1; }; }
17146else
17147 cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
17153$ac_includes_default
17154long longval () { return (long) (sizeof (long long)); }
17155unsigned long ulongval () { return (long) (sizeof (long long)); }
17156#include <stdio.h>
17157#include <stdlib.h>
17158int
17159main ()
17160{
17161
17162 FILE *f = fopen ("conftest.val", "w");
17163 if (! f)
17164 exit (1);
17165 if (((long) (sizeof (long long))) < 0)
17166 {
17167 long i = longval ();
17168 if (i != ((long) (sizeof (long long))))
17169 exit (1);
17170 fprintf (f, "%ld\n", i);
17171 }
17172 else
17173 {
17174 unsigned long i = ulongval ();
17175 if (i != ((long) (sizeof (long long))))
17176 exit (1);
17177 fprintf (f, "%lu\n", i);
17178 }
17179 exit (ferror (f) || fclose (f) != 0);
17180
17181 ;
17182 return 0;
17183}
17184_ACEOF
17185rm -f conftest$ac_exeext
17186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_sizeof_long_long=`cat conftest.val`
17197else
17198 echo "$as_me: program exited with status $ac_status" >&5
17199echo "$as_me: failed program was:" >&5
17200sed 's/^/| /' conftest.$ac_ext >&5
17201
17202( exit $ac_status )
17203{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17204See \`config.log' for more details." >&5
17205echo "$as_me: error: cannot compute sizeof (long long), 77
17206See \`config.log' for more details." >&2;}
17207 { (exit 1); exit 1; }; }
17208fi
ac1cb8d3 17209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17210fi
17211fi
17212rm -f conftest.val
17213else
17214 ac_cv_sizeof_long_long=0
17215fi
17216fi
17217echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17218echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17219cat >>confdefs.h <<_ACEOF
17220#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17221_ACEOF
17222
17223
17224 ;;
17225 *-hp-hpux* )
17226 echo "$as_me:$LINENO: checking for long long" >&5
17227echo $ECHO_N "checking for long long... $ECHO_C" >&6
17228if test "${ac_cv_type_long_long+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241if ((long long *) 0)
17242 return 0;
17243if (sizeof (long long))
17244 return 0;
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17251 (eval $ac_compile) 2>conftest.er1
a848cd7e 17252 ac_status=$?
ac1cb8d3
VS
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
a848cd7e
SC
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
ea7db9ff
DE
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
ac1cb8d3
VS
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_type_long_long=yes
17272else
17273 echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276ac_cv_type_long_long=no
17277fi
ac1cb8d3 17278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17279fi
17280echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17281echo "${ECHO_T}$ac_cv_type_long_long" >&6
17282
17283echo "$as_me:$LINENO: checking size of long long" >&5
17284echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17285if test "${ac_cv_sizeof_long_long+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288 if test "$ac_cv_type_long_long" = yes; then
17289 # The cast to unsigned long works around a bug in the HP C Compiler
17290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17292 # This bug is HP SR number 8606223364.
17293 if test "$cross_compiling" = yes; then
17294 # Depending upon the size, compute the lo and hi bounds.
17295cat >conftest.$ac_ext <<_ACEOF
17296/* confdefs.h. */
17297_ACEOF
17298cat confdefs.h >>conftest.$ac_ext
17299cat >>conftest.$ac_ext <<_ACEOF
17300/* end confdefs.h. */
17301$ac_includes_default
17302int
17303main ()
17304{
17305static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17306test_array [0] = 0
17307
17308 ;
17309 return 0;
17310}
17311_ACEOF
17312rm -f conftest.$ac_objext
17313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17314 (eval $ac_compile) 2>conftest.er1
a848cd7e 17315 ac_status=$?
ac1cb8d3
VS
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
a848cd7e
SC
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
ea7db9ff
DE
17321 { ac_try='test -z "$ac_c_werror_flag"
17322 || test ! -s conftest.err'
ac1cb8d3
VS
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_lo=0 ac_mid=0
17335 while :; do
17336 cat >conftest.$ac_ext <<_ACEOF
17337/* confdefs.h. */
17338_ACEOF
17339cat confdefs.h >>conftest.$ac_ext
17340cat >>conftest.$ac_ext <<_ACEOF
17341/* end confdefs.h. */
17342$ac_includes_default
17343int
17344main ()
17345{
17346static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17347test_array [0] = 0
17348
17349 ;
17350 return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext
17354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17355 (eval $ac_compile) 2>conftest.er1
a848cd7e 17356 ac_status=$?
ac1cb8d3
VS
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
a848cd7e
SC
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
ea7db9ff
DE
17362 { ac_try='test -z "$ac_c_werror_flag"
17363 || 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_hi=$ac_mid; break
17376else
17377 echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17381 if test $ac_lo -le $ac_mid; then
17382 ac_lo= ac_hi=
17383 break
17384 fi
17385 ac_mid=`expr 2 '*' $ac_mid + 1`
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
17393cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399$ac_includes_default
17400int
17401main ()
17402{
17403static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17404test_array [0] = 0
17405
17406 ;
17407 return 0;
17408}
17409_ACEOF
17410rm -f conftest.$ac_objext
17411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17412 (eval $ac_compile) 2>conftest.er1
a848cd7e 17413 ac_status=$?
ac1cb8d3
VS
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
a848cd7e
SC
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
ea7db9ff
DE
17419 { ac_try='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
ac1cb8d3
VS
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_hi=-1 ac_mid=-1
17433 while :; do
17434 cat >conftest.$ac_ext <<_ACEOF
17435/* confdefs.h. */
17436_ACEOF
17437cat confdefs.h >>conftest.$ac_ext
17438cat >>conftest.$ac_ext <<_ACEOF
17439/* end confdefs.h. */
17440$ac_includes_default
17441int
17442main ()
17443{
17444static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17445test_array [0] = 0
17446
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17453 (eval $ac_compile) 2>conftest.er1
a848cd7e 17454 ac_status=$?
ac1cb8d3
VS
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
a848cd7e
SC
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
ea7db9ff
DE
17460 { ac_try='test -z "$ac_c_werror_flag"
17461 || test ! -s conftest.err'
ac1cb8d3
VS
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_lo=$ac_mid; break
17474else
17475 echo "$as_me: failed program was:" >&5
17476sed 's/^/| /' conftest.$ac_ext >&5
17477
17478ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17479 if test $ac_mid -le $ac_hi; then
17480 ac_lo= ac_hi=
17481 break
17482 fi
17483 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17484fi
ac1cb8d3 17485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17486 done
17487else
17488 echo "$as_me: failed program was:" >&5
17489sed 's/^/| /' conftest.$ac_ext >&5
17490
17491ac_lo= ac_hi=
17492fi
ac1cb8d3 17493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17494fi
ac1cb8d3 17495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17496# Binary search between lo and hi bounds.
17497while test "x$ac_lo" != "x$ac_hi"; do
17498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17499 cat >conftest.$ac_ext <<_ACEOF
17500/* confdefs.h. */
17501_ACEOF
17502cat confdefs.h >>conftest.$ac_ext
17503cat >>conftest.$ac_ext <<_ACEOF
17504/* end confdefs.h. */
17505$ac_includes_default
17506int
17507main ()
17508{
17509static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17510test_array [0] = 0
17511
17512 ;
17513 return 0;
17514}
17515_ACEOF
17516rm -f conftest.$ac_objext
17517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17518 (eval $ac_compile) 2>conftest.er1
a848cd7e 17519 ac_status=$?
ac1cb8d3
VS
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
a848cd7e
SC
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
ea7db9ff
DE
17525 { ac_try='test -z "$ac_c_werror_flag"
17526 || test ! -s conftest.err'
ac1cb8d3
VS
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_hi=$ac_mid
17539else
17540 echo "$as_me: failed program was:" >&5
17541sed 's/^/| /' conftest.$ac_ext >&5
17542
17543ac_lo=`expr '(' $ac_mid ')' + 1`
17544fi
ac1cb8d3 17545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17546done
17547case $ac_lo in
17548?*) ac_cv_sizeof_long_long=$ac_lo;;
17549'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17550See \`config.log' for more details." >&5
17551echo "$as_me: error: cannot compute sizeof (long long), 77
17552See \`config.log' for more details." >&2;}
17553 { (exit 1); exit 1; }; } ;;
17554esac
17555else
17556 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17558See \`config.log' for more details." >&5
17559echo "$as_me: error: cannot run test program while cross compiling
17560See \`config.log' for more details." >&2;}
a848cd7e
SC
17561 { (exit 1); exit 1; }; }
17562else
17563 cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
17569$ac_includes_default
17570long longval () { return (long) (sizeof (long long)); }
17571unsigned long ulongval () { return (long) (sizeof (long long)); }
17572#include <stdio.h>
17573#include <stdlib.h>
17574int
17575main ()
17576{
17577
17578 FILE *f = fopen ("conftest.val", "w");
17579 if (! f)
17580 exit (1);
17581 if (((long) (sizeof (long long))) < 0)
17582 {
17583 long i = longval ();
17584 if (i != ((long) (sizeof (long long))))
17585 exit (1);
17586 fprintf (f, "%ld\n", i);
17587 }
17588 else
17589 {
17590 unsigned long i = ulongval ();
17591 if (i != ((long) (sizeof (long long))))
17592 exit (1);
17593 fprintf (f, "%lu\n", i);
17594 }
17595 exit (ferror (f) || fclose (f) != 0);
17596
17597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest$ac_exeext
17602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603 (eval $ac_link) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 ac_cv_sizeof_long_long=`cat conftest.val`
17613else
17614 echo "$as_me: program exited with status $ac_status" >&5
17615echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618( exit $ac_status )
17619{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17620See \`config.log' for more details." >&5
17621echo "$as_me: error: cannot compute sizeof (long long), 77
17622See \`config.log' for more details." >&2;}
17623 { (exit 1); exit 1; }; }
17624fi
ac1cb8d3 17625rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17626fi
17627fi
17628rm -f conftest.val
17629else
17630 ac_cv_sizeof_long_long=0
17631fi
17632fi
17633echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17634echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17635cat >>confdefs.h <<_ACEOF
17636#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17637_ACEOF
17638
17639
17640 if test "$ac_cv_sizeof_long_long" != "0"; then
17641 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17642 fi
17643 ;;
17644 * )
17645 echo "$as_me:$LINENO: checking for long long" >&5
17646echo $ECHO_N "checking for long long... $ECHO_C" >&6
17647if test "${ac_cv_type_long_long+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649else
17650 cat >conftest.$ac_ext <<_ACEOF
17651/* confdefs.h. */
17652_ACEOF
17653cat confdefs.h >>conftest.$ac_ext
17654cat >>conftest.$ac_ext <<_ACEOF
17655/* end confdefs.h. */
17656$ac_includes_default
17657int
17658main ()
17659{
17660if ((long long *) 0)
17661 return 0;
17662if (sizeof (long long))
17663 return 0;
17664 ;
17665 return 0;
17666}
17667_ACEOF
17668rm -f conftest.$ac_objext
17669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17670 (eval $ac_compile) 2>conftest.er1
a848cd7e 17671 ac_status=$?
ac1cb8d3
VS
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
a848cd7e
SC
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
ea7db9ff
DE
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || 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_cv_type_long_long=yes
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_cv_type_long_long=no
17696fi
ac1cb8d3 17697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17698fi
17699echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17700echo "${ECHO_T}$ac_cv_type_long_long" >&6
17701
17702echo "$as_me:$LINENO: checking size of long long" >&5
17703echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17704if test "${ac_cv_sizeof_long_long+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706else
17707 if test "$ac_cv_type_long_long" = yes; then
17708 # The cast to unsigned long works around a bug in the HP C Compiler
17709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17711 # This bug is HP SR number 8606223364.
17712 if test "$cross_compiling" = yes; then
17713 # Depending upon the size, compute the lo and hi bounds.
17714cat >conftest.$ac_ext <<_ACEOF
17715/* confdefs.h. */
17716_ACEOF
17717cat confdefs.h >>conftest.$ac_ext
17718cat >>conftest.$ac_ext <<_ACEOF
17719/* end confdefs.h. */
17720$ac_includes_default
17721int
17722main ()
17723{
17724static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17725test_array [0] = 0
17726
17727 ;
17728 return 0;
17729}
17730_ACEOF
17731rm -f conftest.$ac_objext
17732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17733 (eval $ac_compile) 2>conftest.er1
a848cd7e 17734 ac_status=$?
ac1cb8d3
VS
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
a848cd7e
SC
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
ea7db9ff
DE
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
ac1cb8d3
VS
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_lo=0 ac_mid=0
17754 while :; do
17755 cat >conftest.$ac_ext <<_ACEOF
17756/* confdefs.h. */
17757_ACEOF
17758cat confdefs.h >>conftest.$ac_ext
17759cat >>conftest.$ac_ext <<_ACEOF
17760/* end confdefs.h. */
17761$ac_includes_default
17762int
17763main ()
17764{
17765static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17766test_array [0] = 0
17767
17768 ;
17769 return 0;
17770}
17771_ACEOF
17772rm -f conftest.$ac_objext
17773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17774 (eval $ac_compile) 2>conftest.er1
a848cd7e 17775 ac_status=$?
ac1cb8d3
VS
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
a848cd7e
SC
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
ea7db9ff
DE
17781 { ac_try='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
ac1cb8d3
VS
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_hi=$ac_mid; break
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17800 if test $ac_lo -le $ac_mid; then
17801 ac_lo= ac_hi=
17802 break
17803 fi
17804 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17807 done
17808else
17809 echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812cat >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))) < 0)];
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); } &&
ea7db9ff
DE
17838 { ac_try='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
ac1cb8d3
VS
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_hi=-1 ac_mid=-1
17852 while :; do
17853 cat >conftest.$ac_ext <<_ACEOF
17854/* confdefs.h. */
17855_ACEOF
17856cat confdefs.h >>conftest.$ac_ext
17857cat >>conftest.$ac_ext <<_ACEOF
17858/* end confdefs.h. */
17859$ac_includes_default
17860int
17861main ()
17862{
17863static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17864test_array [0] = 0
17865
17866 ;
17867 return 0;
17868}
17869_ACEOF
17870rm -f conftest.$ac_objext
17871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17872 (eval $ac_compile) 2>conftest.er1
a848cd7e 17873 ac_status=$?
ac1cb8d3
VS
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
a848cd7e
SC
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
ea7db9ff
DE
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
ac1cb8d3
VS
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_lo=$ac_mid; break
17893else
17894 echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
17897ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17898 if test $ac_mid -le $ac_hi; then
17899 ac_lo= ac_hi=
17900 break
17901 fi
17902 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17903fi
ac1cb8d3 17904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17905 done
17906else
17907 echo "$as_me: failed program was:" >&5
17908sed 's/^/| /' conftest.$ac_ext >&5
17909
17910ac_lo= ac_hi=
17911fi
ac1cb8d3 17912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17913fi
ac1cb8d3 17914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17915# Binary search between lo and hi bounds.
17916while test "x$ac_lo" != "x$ac_hi"; do
17917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17918 cat >conftest.$ac_ext <<_ACEOF
17919/* confdefs.h. */
17920_ACEOF
17921cat confdefs.h >>conftest.$ac_ext
17922cat >>conftest.$ac_ext <<_ACEOF
17923/* end confdefs.h. */
17924$ac_includes_default
17925int
17926main ()
17927{
17928static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17929test_array [0] = 0
17930
17931 ;
17932 return 0;
17933}
17934_ACEOF
17935rm -f conftest.$ac_objext
17936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17937 (eval $ac_compile) 2>conftest.er1
a848cd7e 17938 ac_status=$?
ac1cb8d3
VS
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
a848cd7e
SC
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
ea7db9ff
DE
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=$ac_mid
17958else
17959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962ac_lo=`expr '(' $ac_mid ')' + 1`
17963fi
ac1cb8d3 17964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17965done
17966case $ac_lo in
17967?*) ac_cv_sizeof_long_long=$ac_lo;;
17968'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17969See \`config.log' for more details." >&5
17970echo "$as_me: error: cannot compute sizeof (long long), 77
17971See \`config.log' for more details." >&2;}
17972 { (exit 1); exit 1; }; } ;;
17973esac
17974else
17975 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17977See \`config.log' for more details." >&5
17978echo "$as_me: error: cannot run test program while cross compiling
17979See \`config.log' for more details." >&2;}
a848cd7e
SC
17980 { (exit 1); exit 1; }; }
17981else
17982 cat >conftest.$ac_ext <<_ACEOF
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
17988$ac_includes_default
17989long longval () { return (long) (sizeof (long long)); }
17990unsigned long ulongval () { return (long) (sizeof (long long)); }
17991#include <stdio.h>
17992#include <stdlib.h>
17993int
17994main ()
17995{
17996
17997 FILE *f = fopen ("conftest.val", "w");
17998 if (! f)
17999 exit (1);
18000 if (((long) (sizeof (long long))) < 0)
18001 {
18002 long i = longval ();
18003 if (i != ((long) (sizeof (long long))))
18004 exit (1);
18005 fprintf (f, "%ld\n", i);
18006 }
18007 else
18008 {
18009 unsigned long i = ulongval ();
18010 if (i != ((long) (sizeof (long long))))
18011 exit (1);
18012 fprintf (f, "%lu\n", i);
18013 }
18014 exit (ferror (f) || fclose (f) != 0);
18015
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020rm -f conftest$ac_exeext
18021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022 (eval $ac_link) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_sizeof_long_long=`cat conftest.val`
18032else
18033 echo "$as_me: program exited with status $ac_status" >&5
18034echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037( exit $ac_status )
18038{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18039See \`config.log' for more details." >&5
18040echo "$as_me: error: cannot compute sizeof (long long), 77
18041See \`config.log' for more details." >&2;}
18042 { (exit 1); exit 1; }; }
18043fi
ac1cb8d3 18044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18045fi
18046fi
18047rm -f conftest.val
18048else
18049 ac_cv_sizeof_long_long=0
18050fi
18051fi
18052echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18053echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18054cat >>confdefs.h <<_ACEOF
18055#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18056_ACEOF
18057
18058
18059esac
18060
18061echo "$as_me:$LINENO: checking size of wchar_t" >&5
18062echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18063if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18065else
18066
18067 if test "$cross_compiling" = yes; then
18068
18069 case "${host}" in
18070 *-pc-msdosdjgpp )
18071 wx_cv_sizeof_wchar_t=0
18072 ;;
18073 * )
18074 wx_cv_sizeof_wchar_t=4
18075 ;;
18076 esac
18077
18078
18079else
18080 cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086
18087 /* DJGPP only has fake wchar_t: */
18088 #ifdef __DJGPP__
18089 # error "fake wchar_t"
18090 #endif
18091 #ifdef HAVE_WCHAR_H
18092 # ifdef __CYGWIN__
18093 # include <stddef.h>
18094 # endif
18095 # include <wchar.h>
18096 #endif
18097 #ifdef HAVE_STDLIB_H
18098 # include <stdlib.h>
18099 #endif
18100 #include <stdio.h>
18101 int main()
18102 {
18103 FILE *f=fopen("conftestval", "w");
18104 if (!f) exit(1);
18105 fprintf(f, "%i", sizeof(wchar_t));
18106 exit(0);
18107 }
18108
18109_ACEOF
18110rm -f conftest$ac_exeext
18111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18112 (eval $ac_link) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 wx_cv_sizeof_wchar_t=`cat conftestval`
18122else
18123 echo "$as_me: program exited with status $ac_status" >&5
18124echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127( exit $ac_status )
18128wx_cv_sizeof_wchar_t=0
18129fi
ac1cb8d3 18130rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18131fi
18132
18133fi
18134echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18135echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18136
18137cat >>confdefs.h <<_ACEOF
18138#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18139_ACEOF
18140
18141
18142# Check whether --enable-largefile or --disable-largefile was given.
18143if test "${enable_largefile+set}" = set; then
18144 enableval="$enable_largefile"
18145
18146fi;
18147if test "$enable_largefile" != no; then
18148 wx_largefile=no
18149
18150 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18151echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18152if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154else
18155
18156 cat >conftest.$ac_ext <<_ACEOF
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162#define _FILE_OFFSET_BITS 64
18163 #include <sys/types.h>
18164int
18165main ()
18166{
18167typedef struct {
18168 unsigned int field: sizeof(off_t) == 8;
18169} wxlf;
18170
18171 ;
18172 return 0;
18173}
18174_ACEOF
18175rm -f conftest.$ac_objext
18176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18177 (eval $ac_compile) 2>conftest.er1
a848cd7e 18178 ac_status=$?
ac1cb8d3
VS
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
a848cd7e
SC
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
ea7db9ff
DE
18184 { ac_try='test -z "$ac_c_werror_flag"
18185 || test ! -s conftest.err'
ac1cb8d3
VS
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18197 ac_cv_sys_file_offset_bits=64
18198else
18199 echo "$as_me: failed program was:" >&5
18200sed 's/^/| /' conftest.$ac_ext >&5
18201
18202ac_cv_sys_file_offset_bits=no
18203fi
ac1cb8d3 18204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18205
18206
18207fi
18208echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18209echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18210
18211 if test "$ac_cv_sys_file_offset_bits" != no; then
18212 wx_largefile=yes
18213 cat >>confdefs.h <<_ACEOF
18214#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18215_ACEOF
18216
18217 fi
18218
18219 if test "x$wx_largefile" != "xyes"; then
18220
18221 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18222echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18223if test "${ac_cv_sys_large_files+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226
18227 cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
18233#define _LARGE_FILES 1
18234 #include <sys/types.h>
18235int
18236main ()
18237{
18238typedef struct {
18239 unsigned int field: sizeof(off_t) == 8;
18240} wxlf;
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest.$ac_objext
18247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18248 (eval $ac_compile) 2>conftest.er1
a848cd7e 18249 ac_status=$?
ac1cb8d3
VS
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
a848cd7e
SC
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
ea7db9ff
DE
18255 { ac_try='test -z "$ac_c_werror_flag"
18256 || test ! -s conftest.err'
ac1cb8d3
VS
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_sys_large_files=1
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273ac_cv_sys_large_files=no
18274fi
ac1cb8d3 18275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18276
18277
18278fi
18279echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18280echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18281
18282 if test "$ac_cv_sys_large_files" != no; then
18283 wx_largefile=yes
18284 cat >>confdefs.h <<_ACEOF
18285#define _LARGE_FILES $ac_cv_sys_large_files
18286_ACEOF
18287
18288 fi
18289
18290 fi
18291
18292 echo "$as_me:$LINENO: checking if large file support is available" >&5
18293echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18294 if test "x$wx_largefile" = "xyes"; then
18295 cat >>confdefs.h <<\_ACEOF
18296#define HAVE_LARGEFILE_SUPPORT 1
18297_ACEOF
18298
18299 fi
18300 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18301echo "${ECHO_T}$wx_largefile" >&6
18302fi
18303
18304
18305if test "x$wx_largefile" = "xyes"; then
18306 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18307 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18308 else
18309 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18310 fi
18311 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18312fi
18313
18314echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18315echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18316if test "${ac_cv_c_bigendian+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318else
18319 ac_cv_c_bigendian=unknown
18320# See if sys/param.h defines the BYTE_ORDER macro.
18321cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327#include <sys/types.h>
18328#include <sys/param.h>
18329int
18330main ()
18331{
18332
18333#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18334 bogus endian macros
18335#endif
18336 ;
18337 return 0;
18338}
18339_ACEOF
18340rm -f conftest.$ac_objext
18341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18342 (eval $ac_compile) 2>conftest.er1
a848cd7e 18343 ac_status=$?
ac1cb8d3
VS
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
a848cd7e
SC
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
ea7db9ff
DE
18349 { ac_try='test -z "$ac_c_werror_flag"
18350 || test ! -s conftest.err'
ac1cb8d3
VS
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } &&
18356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 # It does; now see whether it defined to BIG_ENDIAN or not.
18363cat >conftest.$ac_ext <<_ACEOF
18364/* confdefs.h. */
18365_ACEOF
18366cat confdefs.h >>conftest.$ac_ext
18367cat >>conftest.$ac_ext <<_ACEOF
18368/* end confdefs.h. */
18369#include <sys/types.h>
18370#include <sys/param.h>
18371int
18372main ()
18373{
18374
18375#if BYTE_ORDER != BIG_ENDIAN
18376 not big endian
18377#endif
18378 ;
18379 return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext
18383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18384 (eval $ac_compile) 2>conftest.er1
a848cd7e 18385 ac_status=$?
ac1cb8d3
VS
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
a848cd7e
SC
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
ea7db9ff
DE
18391 { ac_try='test -z "$ac_c_werror_flag"
18392 || test ! -s conftest.err'
ac1cb8d3
VS
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_c_bigendian=yes
18405else
18406 echo "$as_me: failed program was:" >&5
18407sed 's/^/| /' conftest.$ac_ext >&5
18408
18409ac_cv_c_bigendian=no
18410fi
ac1cb8d3 18411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18412else
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
18416fi
ac1cb8d3 18417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18418if test $ac_cv_c_bigendian = unknown; then
18419if test "$cross_compiling" = yes; then
18420 ac_cv_c_bigendian=unknown
18421else
18422 cat >conftest.$ac_ext <<_ACEOF
18423/* confdefs.h. */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
18427/* end confdefs.h. */
18428main () {
18429 /* Are we little or big endian? From Harbison&Steele. */
18430 union
18431 {
18432 long l;
18433 char c[sizeof (long)];
18434 } u;
18435 u.l = 1;
18436 exit (u.c[sizeof (long) - 1] == 1);
18437}
18438_ACEOF
18439rm -f conftest$ac_exeext
18440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441 (eval $ac_link) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_c_bigendian=no
18451else
18452 echo "$as_me: program exited with status $ac_status" >&5
18453echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456( exit $ac_status )
18457ac_cv_c_bigendian=yes
18458fi
ac1cb8d3 18459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18460fi
18461fi
18462fi
18463echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18464echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18465if test $ac_cv_c_bigendian = unknown; then
18466 { 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
18467echo "$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;}
18468fi
18469if test $ac_cv_c_bigendian = yes; then
18470 cat >>confdefs.h <<\_ACEOF
18471#define WORDS_BIGENDIAN 1
18472_ACEOF
18473
18474fi
18475
18476
18477ac_ext=cc
18478ac_cpp='$CXXCPP $CPPFLAGS'
18479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18483echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18484if test -z "$CXXCPP"; then
18485 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488 # Double quotes because CXXCPP needs to be expanded
18489 for CXXCPP in "$CXX -E" "/lib/cpp"
18490 do
18491 ac_preproc_ok=false
18492for ac_cxx_preproc_warn_flag in '' yes
18493do
18494 # Use a header file that comes with gcc, so configuring glibc
18495 # with a fresh cross-compiler works.
18496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18497 # <limits.h> exists even on freestanding compilers.
18498 # On the NeXT, cc -E runs the code through the compiler's parser,
18499 # not just through cpp. "Syntax error" is here to catch this case.
18500 cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506#ifdef __STDC__
18507# include <limits.h>
18508#else
18509# include <assert.h>
18510#endif
ac1cb8d3 18511 Syntax error
a848cd7e
SC
18512_ACEOF
18513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } >/dev/null; then
18521 if test -s conftest.err; then
18522 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18524 else
18525 ac_cpp_err=
18526 fi
18527else
18528 ac_cpp_err=yes
18529fi
18530if test -z "$ac_cpp_err"; then
18531 :
18532else
18533 echo "$as_me: failed program was:" >&5
18534sed 's/^/| /' conftest.$ac_ext >&5
18535
18536 # Broken: fails on valid input.
18537continue
18538fi
18539rm -f conftest.err conftest.$ac_ext
18540
18541 # OK, works on sane cases. Now check whether non-existent headers
18542 # can be detected and how.
18543 cat >conftest.$ac_ext <<_ACEOF
18544/* confdefs.h. */
18545_ACEOF
18546cat confdefs.h >>conftest.$ac_ext
18547cat >>conftest.$ac_ext <<_ACEOF
18548/* end confdefs.h. */
18549#include <ac_nonexistent.h>
18550_ACEOF
18551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } >/dev/null; then
18559 if test -s conftest.err; then
18560 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18561 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18562 else
18563 ac_cpp_err=
18564 fi
18565else
18566 ac_cpp_err=yes
18567fi
18568if test -z "$ac_cpp_err"; then
18569 # Broken: success on invalid input.
18570continue
18571else
18572 echo "$as_me: failed program was:" >&5
18573sed 's/^/| /' conftest.$ac_ext >&5
18574
18575 # Passes both tests.
18576ac_preproc_ok=:
18577break
18578fi
18579rm -f conftest.err conftest.$ac_ext
18580
18581done
18582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18583rm -f conftest.err conftest.$ac_ext
18584if $ac_preproc_ok; then
18585 break
18586fi
18587
18588 done
18589 ac_cv_prog_CXXCPP=$CXXCPP
18590
18591fi
18592 CXXCPP=$ac_cv_prog_CXXCPP
18593else
18594 ac_cv_prog_CXXCPP=$CXXCPP
18595fi
18596echo "$as_me:$LINENO: result: $CXXCPP" >&5
18597echo "${ECHO_T}$CXXCPP" >&6
18598ac_preproc_ok=false
18599for ac_cxx_preproc_warn_flag in '' yes
18600do
18601 # Use a header file that comes with gcc, so configuring glibc
18602 # with a fresh cross-compiler works.
18603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604 # <limits.h> exists even on freestanding compilers.
18605 # On the NeXT, cc -E runs the code through the compiler's parser,
18606 # not just through cpp. "Syntax error" is here to catch this case.
18607 cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613#ifdef __STDC__
18614# include <limits.h>
18615#else
18616# include <assert.h>
18617#endif
ac1cb8d3 18618 Syntax error
a848cd7e
SC
18619_ACEOF
18620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18622 ac_status=$?
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } >/dev/null; then
18628 if test -s conftest.err; then
18629 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18630 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18631 else
18632 ac_cpp_err=
18633 fi
18634else
18635 ac_cpp_err=yes
18636fi
18637if test -z "$ac_cpp_err"; then
18638 :
18639else
18640 echo "$as_me: failed program was:" >&5
18641sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 # Broken: fails on valid input.
18644continue
18645fi
18646rm -f conftest.err conftest.$ac_ext
18647
18648 # OK, works on sane cases. Now check whether non-existent headers
18649 # can be detected and how.
18650 cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656#include <ac_nonexistent.h>
18657_ACEOF
18658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } >/dev/null; then
18666 if test -s conftest.err; then
18667 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18669 else
18670 ac_cpp_err=
18671 fi
18672else
18673 ac_cpp_err=yes
18674fi
18675if test -z "$ac_cpp_err"; then
18676 # Broken: success on invalid input.
18677continue
18678else
18679 echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682 # Passes both tests.
18683ac_preproc_ok=:
18684break
18685fi
18686rm -f conftest.err conftest.$ac_ext
18687
18688done
18689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18690rm -f conftest.err conftest.$ac_ext
18691if $ac_preproc_ok; then
18692 :
18693else
18694 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18695See \`config.log' for more details." >&5
18696echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18697See \`config.log' for more details." >&2;}
18698 { (exit 1); exit 1; }; }
18699fi
18700
18701ac_ext=cc
18702ac_cpp='$CXXCPP $CPPFLAGS'
18703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18706
18707
18708
2057db16
VS
18709 if test "$cross_compiling" = "yes"; then
18710 cat >>confdefs.h <<\_ACEOF
18711#define wxUSE_IOSTREAMH 1
18712_ACEOF
18713
18714 else
a848cd7e
SC
18715
18716
18717 ac_ext=cc
18718ac_cpp='$CXXCPP $CPPFLAGS'
18719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18722
18723
18724
18725for ac_header in iostream
18726do
18727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18728if eval "test \"\${$as_ac_Header+set}\" = set"; then
18729 echo "$as_me:$LINENO: checking for $ac_header" >&5
18730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18731if eval "test \"\${$as_ac_Header+set}\" = set"; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733fi
18734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18736else
18737 # Is the header compilable?
18738echo "$as_me:$LINENO: checking $ac_header usability" >&5
18739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18740cat >conftest.$ac_ext <<_ACEOF
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
18746$ac_includes_default
18747#include <$ac_header>
18748_ACEOF
18749rm -f conftest.$ac_objext
18750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18751 (eval $ac_compile) 2>conftest.er1
a848cd7e 18752 ac_status=$?
ac1cb8d3
VS
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
a848cd7e
SC
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
ea7db9ff
DE
18758 { ac_try='test -z "$ac_cxx_werror_flag"
18759 || test ! -s conftest.err'
ac1cb8d3
VS
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_header_compiler=yes
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776ac_header_compiler=no
18777fi
ac1cb8d3 18778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18780echo "${ECHO_T}$ac_header_compiler" >&6
18781
18782# Is the header present?
18783echo "$as_me:$LINENO: checking $ac_header presence" >&5
18784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18785cat >conftest.$ac_ext <<_ACEOF
18786/* confdefs.h. */
18787_ACEOF
18788cat confdefs.h >>conftest.$ac_ext
18789cat >>conftest.$ac_ext <<_ACEOF
18790/* end confdefs.h. */
18791#include <$ac_header>
18792_ACEOF
18793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } >/dev/null; then
18801 if test -s conftest.err; then
18802 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18804 else
18805 ac_cpp_err=
18806 fi
18807else
18808 ac_cpp_err=yes
18809fi
18810if test -z "$ac_cpp_err"; then
18811 ac_header_preproc=yes
18812else
18813 echo "$as_me: failed program was:" >&5
18814sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 ac_header_preproc=no
18817fi
18818rm -f conftest.err conftest.$ac_ext
18819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18820echo "${ECHO_T}$ac_header_preproc" >&6
18821
18822# So? What about this header?
ac1cb8d3
VS
18823case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18824 yes:no: )
a848cd7e
SC
18825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18829 ac_header_preproc=yes
a848cd7e 18830 ;;
ac1cb8d3 18831 no:yes:* )
a848cd7e
SC
18832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18839echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18844 (
18845 cat <<\_ASBOX
ac1cb8d3
VS
18846## ----------------------------------------- ##
18847## Report this to wx-dev@lists.wxwidgets.org ##
18848## ----------------------------------------- ##
a848cd7e
SC
18849_ASBOX
18850 ) |
18851 sed "s/^/$as_me: WARNING: /" >&2
18852 ;;
18853esac
18854echo "$as_me:$LINENO: checking for $ac_header" >&5
18855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18856if eval "test \"\${$as_ac_Header+set}\" = set"; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18858else
ac1cb8d3 18859 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18860fi
18861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18862echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18863
18864fi
18865if test `eval echo '${'$as_ac_Header'}'` = yes; then
18866 cat >>confdefs.h <<_ACEOF
18867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18868_ACEOF
18869
18870fi
18871
18872done
18873
18874
18875 if test "$ac_cv_header_iostream" = "yes" ; then
18876 :
18877 else
18878 cat >>confdefs.h <<\_ACEOF
18879#define wxUSE_IOSTREAMH 1
18880_ACEOF
18881
18882 fi
18883
18884 ac_ext=c
18885ac_cpp='$CPP $CPPFLAGS'
18886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18888ac_compiler_gnu=$ac_cv_c_compiler_gnu
18889
2057db16 18890 fi
a848cd7e
SC
18891
18892
18893
18894 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18895echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18896if test "${wx_cv_cpp_bool+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898else
18899
18900
18901
18902 ac_ext=cc
18903ac_cpp='$CXXCPP $CPPFLAGS'
18904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18907
18908
18909 cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915
18916
18917int
18918main ()
18919{
18920
18921 bool b = true;
18922
18923 return 0;
18924
18925 ;
18926 return 0;
18927}
18928_ACEOF
18929rm -f conftest.$ac_objext
18930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18931 (eval $ac_compile) 2>conftest.er1
a848cd7e 18932 ac_status=$?
ac1cb8d3
VS
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
a848cd7e
SC
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
ea7db9ff
DE
18938 { ac_try='test -z "$ac_cxx_werror_flag"
18939 || test ! -s conftest.err'
ac1cb8d3
VS
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18951
18952 wx_cv_cpp_bool=yes
18953
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958
18959 wx_cv_cpp_bool=no
18960
18961
18962fi
ac1cb8d3 18963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18964
18965 ac_ext=c
18966ac_cpp='$CPP $CPPFLAGS'
18967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969ac_compiler_gnu=$ac_cv_c_compiler_gnu
18970
18971
18972fi
18973echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18974echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18975
18976 if test "$wx_cv_cpp_bool" = "yes"; then
18977 cat >>confdefs.h <<\_ACEOF
18978#define HAVE_BOOL 1
18979_ACEOF
18980
18981 fi
18982
18983
18984
18985 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18986echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18987if test "${wx_cv_explicit+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989else
18990
18991
18992
18993 ac_ext=cc
18994ac_cpp='$CXXCPP $CPPFLAGS'
18995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18998
18999
19000 cat >conftest.$ac_ext <<_ACEOF
19001/* confdefs.h. */
19002_ACEOF
19003cat confdefs.h >>conftest.$ac_ext
19004cat >>conftest.$ac_ext <<_ACEOF
19005/* end confdefs.h. */
19006
19007 class Foo { public: explicit Foo(int) {} };
19008
19009int
19010main ()
19011{
19012
19013 return 0;
19014
19015 ;
19016 return 0;
19017}
19018_ACEOF
19019rm -f conftest.$ac_objext
19020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19021 (eval $ac_compile) 2>conftest.er1
a848cd7e 19022 ac_status=$?
ac1cb8d3
VS
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
a848cd7e
SC
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
ea7db9ff
DE
19028 { ac_try='test -z "$ac_cxx_werror_flag"
19029 || test ! -s conftest.err'
ac1cb8d3
VS
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041
19042 cat >conftest.$ac_ext <<_ACEOF
19043/* confdefs.h. */
19044_ACEOF
19045cat confdefs.h >>conftest.$ac_ext
19046cat >>conftest.$ac_ext <<_ACEOF
19047/* end confdefs.h. */
19048
19049 class Foo { public: explicit Foo(int) {} };
19050 static void TakeFoo(const Foo& foo) { }
19051
19052int
19053main ()
19054{
19055
19056 TakeFoo(17);
19057 return 0;
19058
19059 ;
19060 return 0;
19061}
19062_ACEOF
19063rm -f conftest.$ac_objext
19064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19065 (eval $ac_compile) 2>conftest.er1
a848cd7e 19066 ac_status=$?
ac1cb8d3
VS
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
a848cd7e
SC
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
ea7db9ff
DE
19072 { ac_try='test -z "$ac_cxx_werror_flag"
19073 || test ! -s conftest.err'
ac1cb8d3
VS
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 wx_cv_explicit=no
19086else
19087 echo "$as_me: failed program was:" >&5
19088sed 's/^/| /' conftest.$ac_ext >&5
19089
19090wx_cv_explicit=yes
19091
19092fi
ac1cb8d3 19093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19094
19095else
19096 echo "$as_me: failed program was:" >&5
19097sed 's/^/| /' conftest.$ac_ext >&5
19098
19099wx_cv_explicit=no
19100
19101fi
ac1cb8d3 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19103
19104 ac_ext=c
19105ac_cpp='$CPP $CPPFLAGS'
19106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
19110
19111fi
19112echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19113echo "${ECHO_T}$wx_cv_explicit" >&6
19114
19115 if test "$wx_cv_explicit" = "yes"; then
19116 cat >>confdefs.h <<\_ACEOF
19117#define HAVE_EXPLICIT 1
19118_ACEOF
19119
19120 fi
19121
19122
19123echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19124echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19125if test "${ac_cv_cxx_const_cast+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127else
19128
19129
19130 ac_ext=cc
19131ac_cpp='$CXXCPP $CPPFLAGS'
19132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19135
19136 cat >conftest.$ac_ext <<_ACEOF
19137/* confdefs.h. */
19138_ACEOF
19139cat confdefs.h >>conftest.$ac_ext
19140cat >>conftest.$ac_ext <<_ACEOF
19141/* end confdefs.h. */
19142
19143int
19144main ()
19145{
19146int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19147 ;
19148 return 0;
19149}
19150_ACEOF
19151rm -f conftest.$ac_objext
19152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19153 (eval $ac_compile) 2>conftest.er1
a848cd7e 19154 ac_status=$?
ac1cb8d3
VS
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
a848cd7e
SC
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
ea7db9ff
DE
19160 { ac_try='test -z "$ac_cxx_werror_flag"
19161 || test ! -s conftest.err'
ac1cb8d3
VS
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_cxx_const_cast=yes
19174else
19175 echo "$as_me: failed program was:" >&5
19176sed 's/^/| /' conftest.$ac_ext >&5
19177
19178ac_cv_cxx_const_cast=no
19179fi
ac1cb8d3 19180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19181 ac_ext=c
19182ac_cpp='$CPP $CPPFLAGS'
19183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186
19187
19188fi
19189echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19190echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19191if test "$ac_cv_cxx_const_cast" = yes; then
19192
19193cat >>confdefs.h <<\_ACEOF
19194#define HAVE_CONST_CAST
19195_ACEOF
19196
19197fi
19198
19199echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19200echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19201if test "${ac_cv_cxx_static_cast+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203else
19204
19205
19206 ac_ext=cc
19207ac_cpp='$CXXCPP $CPPFLAGS'
19208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19211
19212 cat >conftest.$ac_ext <<_ACEOF
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h. */
19218#include <typeinfo>
19219class Base { public : Base () {} virtual void f () = 0; };
19220class Derived : public Base { public : Derived () {} virtual void f () {} };
19221int g (Derived&) { return 0; }
19222int
19223main ()
19224{
19225
19226Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19233 (eval $ac_compile) 2>conftest.er1
a848cd7e 19234 ac_status=$?
ac1cb8d3
VS
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
a848cd7e
SC
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
ea7db9ff
DE
19240 { ac_try='test -z "$ac_cxx_werror_flag"
19241 || test ! -s conftest.err'
ac1cb8d3
VS
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 ac_cv_cxx_static_cast=yes
19254else
19255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258ac_cv_cxx_static_cast=no
19259fi
ac1cb8d3 19260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19261 ac_ext=c
19262ac_cpp='$CPP $CPPFLAGS'
19263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265ac_compiler_gnu=$ac_cv_c_compiler_gnu
19266
19267
19268fi
19269echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19270echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19271if test "$ac_cv_cxx_static_cast" = yes; then
19272
19273cat >>confdefs.h <<\_ACEOF
19274#define HAVE_STATIC_CAST
19275_ACEOF
19276
19277fi
19278
19279
19280if test "$wxUSE_STL" = "yes"; then
19281 ac_ext=cc
19282ac_cpp='$CXXCPP $CPPFLAGS'
19283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19286
19287
19288 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19289echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19290 cat >conftest.$ac_ext <<_ACEOF
19291/* confdefs.h. */
19292_ACEOF
19293cat confdefs.h >>conftest.$ac_ext
19294cat >>conftest.$ac_ext <<_ACEOF
19295/* end confdefs.h. */
19296#include <string>
19297 #include <functional>
19298 #include <algorithm>
19299 #include <vector>
19300 #include <list>
19301int
19302main ()
19303{
19304std::vector<int> moo;
19305 std::list<int> foo;
19306 std::vector<int>::iterator it =
19307 std::find_if(moo.begin(), moo.end(),
19308 std::bind2nd(std::less<int>(), 3));
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19315 (eval $ac_compile) 2>conftest.er1
a848cd7e 19316 ac_status=$?
ac1cb8d3
VS
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
a848cd7e
SC
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
ea7db9ff
DE
19322 { ac_try='test -z "$ac_cxx_werror_flag"
19323 || test ! -s conftest.err'
ac1cb8d3
VS
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 echo "$as_me:$LINENO: result: yes" >&5
19336echo "${ECHO_T}yes" >&6
19337else
19338 echo "$as_me: failed program was:" >&5
19339sed 's/^/| /' conftest.$ac_ext >&5
19340
19341echo "$as_me:$LINENO: result: no" >&5
19342echo "${ECHO_T}no" >&6
19343 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19344echo "$as_me: error: Basic STL functionality missing" >&2;}
19345 { (exit 1); exit 1; }; }
19346fi
ac1cb8d3 19347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19348
19349 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19350echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19351 cat >conftest.$ac_ext <<_ACEOF
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
19357#include <string>
19358int
19359main ()
19360{
19361std::wstring foo;
19362 ;
19363 return 0;
19364}
19365_ACEOF
19366rm -f conftest.$ac_objext
19367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19368 (eval $ac_compile) 2>conftest.er1
a848cd7e 19369 ac_status=$?
ac1cb8d3
VS
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
a848cd7e
SC
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
ea7db9ff
DE
19375 { ac_try='test -z "$ac_cxx_werror_flag"
19376 || test ! -s conftest.err'
ac1cb8d3
VS
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 echo "$as_me:$LINENO: result: yes" >&5
19389echo "${ECHO_T}yes" >&6
19390 cat >>confdefs.h <<\_ACEOF
19391#define HAVE_STD_WSTRING 1
19392_ACEOF
19393
19394else
19395 echo "$as_me: failed program was:" >&5
19396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398echo "$as_me:$LINENO: result: no" >&5
19399echo "${ECHO_T}no" >&6
19400fi
ac1cb8d3 19401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19402
19403 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19404echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19405 cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
19411#include <string>
19412int
19413main ()
19414{
19415std::string foo, bar;
19416 foo.compare(bar);
19417 foo.compare(1, 1, bar);
19418 foo.compare(1, 1, bar, 1, 1);
19419 foo.compare("");
19420 foo.compare(1, 1, "");
19421 foo.compare(1, 1, "", 2);
19422 ;
19423 return 0;
19424}
19425_ACEOF
19426rm -f conftest.$ac_objext
19427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19428 (eval $ac_compile) 2>conftest.er1
a848cd7e 19429 ac_status=$?
ac1cb8d3
VS
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
a848cd7e
SC
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
ea7db9ff
DE
19435 { ac_try='test -z "$ac_cxx_werror_flag"
19436 || test ! -s conftest.err'
ac1cb8d3
VS
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 echo "$as_me:$LINENO: result: yes" >&5
19449echo "${ECHO_T}yes" >&6
19450 cat >>confdefs.h <<\_ACEOF
19451#define HAVE_STD_STRING_COMPARE 1
19452_ACEOF
19453
19454else
19455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
19458echo "$as_me:$LINENO: result: no" >&5
19459echo "${ECHO_T}no" >&6
19460fi
ac1cb8d3 19461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19462
19463 if test "${ac_cv_header_hash_map+set}" = set; then
19464 echo "$as_me:$LINENO: checking for hash_map" >&5
19465echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19466if test "${ac_cv_header_hash_map+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468fi
19469echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19470echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19471else
19472 # Is the header compilable?
19473echo "$as_me:$LINENO: checking hash_map usability" >&5
19474echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19475cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h. */
19481$ac_includes_default
19482#include <hash_map>
19483_ACEOF
19484rm -f conftest.$ac_objext
19485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19486 (eval $ac_compile) 2>conftest.er1
bdcade0a 19487 ac_status=$?
ac1cb8d3
VS
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
bdcade0a
MB
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } &&
ea7db9ff
DE
19493 { ac_try='test -z "$ac_cxx_werror_flag"
19494 || test ! -s conftest.err'
ac1cb8d3
VS
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; }; then
19506 ac_header_compiler=yes
19507else
19508 echo "$as_me: failed program was:" >&5
19509sed 's/^/| /' conftest.$ac_ext >&5
19510
19511ac_header_compiler=no
19512fi
ac1cb8d3 19513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19514echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19515echo "${ECHO_T}$ac_header_compiler" >&6
19516
19517# Is the header present?
19518echo "$as_me:$LINENO: checking hash_map presence" >&5
19519echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19520cat >conftest.$ac_ext <<_ACEOF
19521/* confdefs.h. */
19522_ACEOF
19523cat confdefs.h >>conftest.$ac_ext
19524cat >>conftest.$ac_ext <<_ACEOF
19525/* end confdefs.h. */
19526#include <hash_map>
19527_ACEOF
19528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } >/dev/null; then
19536 if test -s conftest.err; then
19537 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19538 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19539 else
19540 ac_cpp_err=
19541 fi
19542else
19543 ac_cpp_err=yes
19544fi
19545if test -z "$ac_cpp_err"; then
19546 ac_header_preproc=yes
19547else
19548 echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
19550
19551 ac_header_preproc=no
19552fi
19553rm -f conftest.err conftest.$ac_ext
19554echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19555echo "${ECHO_T}$ac_header_preproc" >&6
19556
19557# So? What about this header?
ac1cb8d3
VS
19558case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19559 yes:no: )
bdcade0a
MB
19560 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19561echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19562 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19563echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19564 ac_header_preproc=yes
bdcade0a 19565 ;;
ac1cb8d3 19566 no:yes:* )
bdcade0a
MB
19567 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19568echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19569 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19570echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19571 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19572echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19573 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19574echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19575 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19576echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19577 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19578echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19579 (
19580 cat <<\_ASBOX
ac1cb8d3
VS
19581## ----------------------------------------- ##
19582## Report this to wx-dev@lists.wxwidgets.org ##
19583## ----------------------------------------- ##
bdcade0a
MB
19584_ASBOX
19585 ) |
19586 sed "s/^/$as_me: WARNING: /" >&2
19587 ;;
19588esac
19589echo "$as_me:$LINENO: checking for hash_map" >&5
19590echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19591if test "${ac_cv_header_hash_map+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19593else
19594 ac_cv_header_hash_map=$ac_header_preproc
19595fi
19596echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19597echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19598
19599fi
19600if test $ac_cv_header_hash_map = yes; then
19601 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19602echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19604/* confdefs.h. */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h. */
19609#include <hash_map>
19610 #include <hash_set>
19611int
19612main ()
19613{
19614std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19615 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19616 ;
19617 return 0;
19618}
19619_ACEOF
19620rm -f conftest.$ac_objext
19621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19622 (eval $ac_compile) 2>conftest.er1
bdcade0a 19623 ac_status=$?
ac1cb8d3
VS
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
bdcade0a
MB
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
ea7db9ff
DE
19629 { ac_try='test -z "$ac_cxx_werror_flag"
19630 || test ! -s conftest.err'
ac1cb8d3
VS
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } &&
19636 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 echo "$as_me:$LINENO: result: yes" >&5
19643echo "${ECHO_T}yes" >&6
19644 cat >>confdefs.h <<\_ACEOF
19645#define HAVE_HASH_MAP 1
19646_ACEOF
19647
19648 cat >>confdefs.h <<\_ACEOF
19649#define HAVE_STD_HASH_MAP 1
19650_ACEOF
19651
19652else
19653 echo "$as_me: failed program was:" >&5
19654sed 's/^/| /' conftest.$ac_ext >&5
19655
19656echo "$as_me:$LINENO: result: no" >&5
19657echo "${ECHO_T}no" >&6
19658fi
ac1cb8d3 19659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19660
19661fi
19662
19663
19664
19665 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19666 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19667echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19668if test "${ac_cv_header_ext_hash_map+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19670fi
19671echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19672echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19673else
19674 # Is the header compilable?
19675echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19676echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19677cat >conftest.$ac_ext <<_ACEOF
19678/* confdefs.h. */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h. */
19683$ac_includes_default
19684#include <ext/hash_map>
19685_ACEOF
19686rm -f conftest.$ac_objext
19687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19688 (eval $ac_compile) 2>conftest.er1
bdcade0a 19689 ac_status=$?
ac1cb8d3
VS
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
bdcade0a
MB
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
ea7db9ff
DE
19695 { ac_try='test -z "$ac_cxx_werror_flag"
19696 || test ! -s conftest.err'
ac1cb8d3
VS
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_header_compiler=yes
19709else
19710 echo "$as_me: failed program was:" >&5
19711sed 's/^/| /' conftest.$ac_ext >&5
19712
19713ac_header_compiler=no
19714fi
ac1cb8d3 19715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19717echo "${ECHO_T}$ac_header_compiler" >&6
19718
19719# Is the header present?
19720echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19721echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19722cat >conftest.$ac_ext <<_ACEOF
19723/* confdefs.h. */
19724_ACEOF
19725cat confdefs.h >>conftest.$ac_ext
19726cat >>conftest.$ac_ext <<_ACEOF
19727/* end confdefs.h. */
19728#include <ext/hash_map>
19729_ACEOF
19730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19732 ac_status=$?
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } >/dev/null; then
19738 if test -s conftest.err; then
19739 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19741 else
19742 ac_cpp_err=
19743 fi
19744else
19745 ac_cpp_err=yes
19746fi
19747if test -z "$ac_cpp_err"; then
19748 ac_header_preproc=yes
19749else
19750 echo "$as_me: failed program was:" >&5
19751sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 ac_header_preproc=no
19754fi
19755rm -f conftest.err conftest.$ac_ext
19756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19757echo "${ECHO_T}$ac_header_preproc" >&6
19758
19759# So? What about this header?
ac1cb8d3
VS
19760case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19761 yes:no: )
bdcade0a
MB
19762 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19763echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19765echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19766 ac_header_preproc=yes
bdcade0a 19767 ;;
ac1cb8d3 19768 no:yes:* )
bdcade0a
MB
19769 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19770echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19771 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19772echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19774echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19776echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19777 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19778echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19779 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19780echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19781 (
19782 cat <<\_ASBOX
ac1cb8d3
VS
19783## ----------------------------------------- ##
19784## Report this to wx-dev@lists.wxwidgets.org ##
19785## ----------------------------------------- ##
bdcade0a
MB
19786_ASBOX
19787 ) |
19788 sed "s/^/$as_me: WARNING: /" >&2
19789 ;;
19790esac
19791echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19792echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19793if test "${ac_cv_header_ext_hash_map+set}" = set; then
19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19795else
19796 ac_cv_header_ext_hash_map=$ac_header_preproc
19797fi
19798echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19799echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19800
19801fi
19802if test $ac_cv_header_ext_hash_map = yes; then
19803 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19804echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19805 cat >conftest.$ac_ext <<_ACEOF
19806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811#include <ext/hash_map>
19812 #include <ext/hash_set>
19813int
19814main ()
19815{
19816__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19817 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19818 ;
19819 return 0;
19820}
19821_ACEOF
19822rm -f conftest.$ac_objext
19823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19824 (eval $ac_compile) 2>conftest.er1
bdcade0a 19825 ac_status=$?
ac1cb8d3
VS
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
bdcade0a
MB
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
ea7db9ff
DE
19831 { ac_try='test -z "$ac_cxx_werror_flag"
19832 || test ! -s conftest.err'
ac1cb8d3
VS
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 echo "$as_me:$LINENO: result: yes" >&5
19845echo "${ECHO_T}yes" >&6
19846 cat >>confdefs.h <<\_ACEOF
19847#define HAVE_EXT_HASH_MAP 1
19848_ACEOF
19849
19850 cat >>confdefs.h <<\_ACEOF
19851#define HAVE_GNU_CXX_HASH_MAP 1
19852_ACEOF
19853
19854else
19855 echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858echo "$as_me:$LINENO: result: no" >&5
19859echo "${ECHO_T}no" >&6
19860fi
ac1cb8d3 19861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19862
19863fi
19864
19865
a848cd7e
SC
19866
19867 ac_ext=c
19868ac_cpp='$CPP $CPPFLAGS'
19869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871ac_compiler_gnu=$ac_cv_c_compiler_gnu
19872
19873fi
19874
19875
19876SEARCH_INCLUDE="\
19877 /usr/local/include \
19878 \
19879 /usr/Motif-2.1/include \
19880 /usr/Motif-1.2/include \
19881 /usr/include/Motif1.2 \
19882 /opt/xpm/include/X11 \
19883 /opt/GBxpm/include/ \
19884 /opt/GBxpm/X11/include/ \
19885 \
19886 /usr/dt/include \
19887 /usr/openwin/include \
19888 \
19889 /usr/include/Xm \
19890 \
19891 /usr/X11R6/include \
19892 /usr/X11R6.4/include \
19893 /usr/X11R5/include \
19894 /usr/X11R4/include \
19895 \
19896 /usr/include/X11R6 \
19897 /usr/include/X11R5 \
19898 /usr/include/X11R4 \
19899 \
19900 /usr/local/X11R6/include \
19901 /usr/local/X11R5/include \
19902 /usr/local/X11R4/include \
19903 \
19904 /usr/local/include/X11R6 \
19905 /usr/local/include/X11R5 \
19906 /usr/local/include/X11R4 \
19907 \
19908 /usr/X11/include \
19909 /usr/include/X11 \
19910 /usr/local/X11/include \
19911 /usr/local/include/X11 \
19912 \
19913 /usr/X386/include \
19914 /usr/x386/include \
19915 /usr/XFree86/include/X11 \
19916 \
19917 X:/XFree86/include \
19918 X:/XFree86/include/X11 \
19919 \
19920 /usr/include/gtk \
19921 /usr/local/include/gtk \
19922 /usr/include/glib \
19923 /usr/local/include/glib \
19924 \
19925 /usr/include/qt \
19926 /usr/local/include/qt \
19927 \
19928 /usr/local/arm/3.3.2/include \
19929 \
19930 /usr/include/windows \
19931 /usr/include/wine \
19932 /usr/local/include/wine \
19933 \
19934 /usr/unsupported/include \
19935 /usr/athena/include \
19936 /usr/local/x11r5/include \
19937 /usr/lpp/Xamples/include \
19938 \
19939 /usr/openwin/share/include"
19940
19941SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19942
19943
19944cat >confcache <<\_ACEOF
19945# This file is a shell script that caches the results of configure
19946# tests run on this system so they can be shared between configure
19947# scripts and configure runs, see configure's option --config-cache.
19948# It is not useful on other systems. If it contains results you don't
19949# want to keep, you may remove or edit it.
19950#
19951# config.status only pays attention to the cache file if you give it
19952# the --recheck option to rerun configure.
19953#
19954# `ac_cv_env_foo' variables (set or unset) will be overridden when
19955# loading this file, other *unset* `ac_cv_foo' will be assigned the
19956# following values.
19957
19958_ACEOF
19959
19960# The following way of writing the cache mishandles newlines in values,
19961# but we know of no workaround that is simple, portable, and efficient.
19962# So, don't put newlines in cache variables' values.
19963# Ultrix sh set writes to stderr and can't be redirected directly,
19964# and sets the high bit in the cache file unless we assign to the vars.
19965{
19966 (set) 2>&1 |
19967 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19968 *ac_space=\ *)
19969 # `set' does not quote correctly, so add quotes (double-quote
19970 # substitution turns \\\\ into \\, and sed turns \\ into \).
19971 sed -n \
ac1cb8d3
VS
19972 "s/'/'\\\\''/g;
19973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19974 ;;
19975 *)
19976 # `set' quotes correctly as required by POSIX, so do not add quotes.
19977 sed -n \
ac1cb8d3 19978 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19979 ;;
19980 esac;
19981} |
19982 sed '
19983 t clear
19984 : clear
19985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19986 t end
19987 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19988 : end' >>confcache
19989if diff $cache_file confcache >/dev/null 2>&1; then :; else
19990 if test -w $cache_file; then
19991 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19992 cat confcache >$cache_file
19993 else
19994 echo "not updating unwritable cache $cache_file"
19995 fi
19996fi
19997rm -f confcache
19998
19999if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20000 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20001echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20002if test "${wx_cv_lib_glibc21+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004else
20005
20006 cat >conftest.$ac_ext <<_ACEOF
20007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
20012#include <features.h>
20013int
20014main ()
20015{
20016
20017 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20018 #error not glibc2.1
20019 #endif
20020
20021 ;
20022 return 0;
20023}
20024_ACEOF
20025rm -f conftest.$ac_objext
20026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20027 (eval $ac_compile) 2>conftest.er1
a848cd7e 20028 ac_status=$?
ac1cb8d3
VS
20029 grep -v '^ *+' conftest.er1 >conftest.err
20030 rm -f conftest.er1
20031 cat conftest.err >&5
a848cd7e
SC
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } &&
ea7db9ff
DE
20034 { ac_try='test -z "$ac_c_werror_flag"
20035 || test ! -s conftest.err'
ac1cb8d3
VS
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047
20048 wx_cv_lib_glibc21=yes
20049
20050else
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054
20055 wx_cv_lib_glibc21=no
20056
20057
20058fi
ac1cb8d3 20059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20060
20061fi
20062echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20063echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20064 if test "$wx_cv_lib_glibc21" = "yes"; then
20065 cat >>confdefs.h <<\_ACEOF
20066#define wxHAVE_GLIBC2 1
20067_ACEOF
20068
20069 fi
20070fi
20071
20072if test "x$wx_cv_lib_glibc21" = "xyes"; then
20073 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20074 cat >>confdefs.h <<\_ACEOF
20075#define _GNU_SOURCE 1
20076_ACEOF
20077
20078 fi
20079fi
20080
20081
20082
20083if test "$wxUSE_REGEX" != "no"; then
20084 cat >>confdefs.h <<\_ACEOF
20085#define wxUSE_REGEX 1
20086_ACEOF
20087
20088
20089 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20090 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20091echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20092 wxUSE_REGEX=builtin
20093 fi
20094
20095 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20096 if test "${ac_cv_header_regex_h+set}" = set; then
20097 echo "$as_me:$LINENO: checking for regex.h" >&5
20098echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20099if test "${ac_cv_header_regex_h+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20101fi
20102echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20103echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20104else
20105 # Is the header compilable?
20106echo "$as_me:$LINENO: checking regex.h usability" >&5
20107echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20108cat >conftest.$ac_ext <<_ACEOF
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
20114$ac_includes_default
20115#include <regex.h>
20116_ACEOF
20117rm -f conftest.$ac_objext
20118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20119 (eval $ac_compile) 2>conftest.er1
a848cd7e 20120 ac_status=$?
ac1cb8d3
VS
20121 grep -v '^ *+' conftest.er1 >conftest.err
20122 rm -f conftest.er1
20123 cat conftest.err >&5
a848cd7e
SC
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
ea7db9ff
DE
20126 { ac_try='test -z "$ac_c_werror_flag"
20127 || test ! -s conftest.err'
ac1cb8d3
VS
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_header_compiler=yes
20140else
20141 echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144ac_header_compiler=no
20145fi
ac1cb8d3 20146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20148echo "${ECHO_T}$ac_header_compiler" >&6
20149
20150# Is the header present?
20151echo "$as_me:$LINENO: checking regex.h presence" >&5
20152echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20153cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159#include <regex.h>
20160_ACEOF
20161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } >/dev/null; then
20169 if test -s conftest.err; then
20170 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20172 else
20173 ac_cpp_err=
20174 fi
20175else
20176 ac_cpp_err=yes
20177fi
20178if test -z "$ac_cpp_err"; then
20179 ac_header_preproc=yes
20180else
20181 echo "$as_me: failed program was:" >&5
20182sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ac_header_preproc=no
20185fi
20186rm -f conftest.err conftest.$ac_ext
20187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20188echo "${ECHO_T}$ac_header_preproc" >&6
20189
20190# So? What about this header?
ac1cb8d3
VS
20191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20192 yes:no: )
a848cd7e
SC
20193 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20194echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20195 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20196echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20197 ac_header_preproc=yes
a848cd7e 20198 ;;
ac1cb8d3 20199 no:yes:* )
a848cd7e
SC
20200 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20201echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20202 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20203echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20205echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20207echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20208 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20209echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20210 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20211echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20212 (
20213 cat <<\_ASBOX
ac1cb8d3
VS
20214## ----------------------------------------- ##
20215## Report this to wx-dev@lists.wxwidgets.org ##
20216## ----------------------------------------- ##
a848cd7e
SC
20217_ASBOX
20218 ) |
20219 sed "s/^/$as_me: WARNING: /" >&2
20220 ;;
20221esac
20222echo "$as_me:$LINENO: checking for regex.h" >&5
20223echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20224if test "${ac_cv_header_regex_h+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226else
20227 ac_cv_header_regex_h=$ac_header_preproc
20228fi
20229echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20230echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20231
20232fi
20233if test $ac_cv_header_regex_h = yes; then
20234
20235for ac_func in regcomp
20236do
20237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20238echo "$as_me:$LINENO: checking for $ac_func" >&5
20239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20240if eval "test \"\${$as_ac_var+set}\" = set"; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242else
20243 cat >conftest.$ac_ext <<_ACEOF
20244/* confdefs.h. */
20245_ACEOF
20246cat confdefs.h >>conftest.$ac_ext
20247cat >>conftest.$ac_ext <<_ACEOF
20248/* end confdefs.h. */
ac1cb8d3
VS
20249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20251#define $ac_func innocuous_$ac_func
20252
a848cd7e
SC
20253/* System header to define __stub macros and hopefully few prototypes,
20254 which can conflict with char $ac_func (); below.
20255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20257
a848cd7e
SC
20258#ifdef __STDC__
20259# include <limits.h>
20260#else
20261# include <assert.h>
20262#endif
ac1cb8d3
VS
20263
20264#undef $ac_func
20265
a848cd7e
SC
20266/* Override any gcc2 internal prototype to avoid an error. */
20267#ifdef __cplusplus
20268extern "C"
20269{
20270#endif
20271/* We use char because int might match the return type of a gcc2
20272 builtin and then its argument prototype would still apply. */
20273char $ac_func ();
20274/* The GNU C library defines this for functions which it implements
20275 to always fail with ENOSYS. Some functions are actually named
20276 something starting with __ and the normal name is an alias. */
20277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20278choke me
20279#else
20280char (*f) () = $ac_func;
20281#endif
20282#ifdef __cplusplus
20283}
20284#endif
20285
20286int
20287main ()
20288{
20289return f != $ac_func;
20290 ;
20291 return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext conftest$ac_exeext
20295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20296 (eval $ac_link) 2>conftest.er1
a848cd7e 20297 ac_status=$?
ac1cb8d3
VS
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
a848cd7e
SC
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
ea7db9ff
DE
20303 { ac_try='test -z "$ac_c_werror_flag"
20304 || test ! -s conftest.err'
ac1cb8d3
VS
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 eval "$as_ac_var=yes"
20317else
20318 echo "$as_me: failed program was:" >&5
20319sed 's/^/| /' conftest.$ac_ext >&5
20320
20321eval "$as_ac_var=no"
20322fi
ac1cb8d3
VS
20323rm -f conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20325fi
20326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20328if test `eval echo '${'$as_ac_var'}'` = yes; then
20329 cat >>confdefs.h <<_ACEOF
20330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20331_ACEOF
20332
20333fi
20334done
20335
20336fi
20337
20338
20339
20340 if test "x$ac_cv_func_regcomp" != "xyes"; then
20341 if test "$wxUSE_REGEX" = "sys" ; then
20342 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20343echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20344 { (exit 1); exit 1; }; }
20345 else
20346 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20347echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20348 wxUSE_REGEX=builtin
20349 fi
20350 else
20351 wxUSE_REGEX=sys
20352 cat >>confdefs.h <<\_ACEOF
20353#define WX_NO_REGEX_ADVANCED 1
20354_ACEOF
20355
20356 fi
20357 fi
20358fi
20359
20360
20361ZLIB_LINK=
20362if test "$wxUSE_ZLIB" != "no" ; then
20363 cat >>confdefs.h <<\_ACEOF
20364#define wxUSE_ZLIB 1
20365_ACEOF
20366
20367
20368 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20369 if test "$USE_DARWIN" = 1; then
20370 system_zlib_h_ok="yes"
20371 else
20372 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20373echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20374if test "${ac_cv_header_zlib_h+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376else
20377 if test "$cross_compiling" = yes; then
20378 unset ac_cv_header_zlib_h
20379
20380else
20381 cat >conftest.$ac_ext <<_ACEOF
20382/* confdefs.h. */
20383_ACEOF
20384cat confdefs.h >>conftest.$ac_ext
20385cat >>conftest.$ac_ext <<_ACEOF
20386/* end confdefs.h. */
20387
20388 #include <zlib.h>
20389 #include <stdio.h>
20390
20391 int main()
20392 {
20393 FILE *f=fopen("conftestval", "w");
20394 if (!f) exit(1);
20395 fprintf(f, "%s",
20396 ZLIB_VERSION[0] == '1' &&
20397 (ZLIB_VERSION[2] > '1' ||
20398 (ZLIB_VERSION[2] == '1' &&
20399 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20400 exit(0);
20401 }
20402
20403_ACEOF
20404rm -f conftest$ac_exeext
20405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20406 (eval $ac_link) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; }; then
20415 ac_cv_header_zlib_h=`cat conftestval`
20416else
20417 echo "$as_me: program exited with status $ac_status" >&5
20418echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421( exit $ac_status )
20422ac_cv_header_zlib_h=no
20423fi
ac1cb8d3 20424rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20425fi
20426
20427fi
20428echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20429echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20430 if test "${ac_cv_header_zlib_h+set}" = set; then
20431 echo "$as_me:$LINENO: checking for zlib.h" >&5
20432echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20433if test "${ac_cv_header_zlib_h+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20435fi
20436echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20437echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20438else
20439 # Is the header compilable?
20440echo "$as_me:$LINENO: checking zlib.h usability" >&5
20441echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20442cat >conftest.$ac_ext <<_ACEOF
20443/* confdefs.h. */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h. */
20448$ac_includes_default
20449#include <zlib.h>
20450_ACEOF
20451rm -f conftest.$ac_objext
20452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20453 (eval $ac_compile) 2>conftest.er1
a848cd7e 20454 ac_status=$?
ac1cb8d3
VS
20455 grep -v '^ *+' conftest.er1 >conftest.err
20456 rm -f conftest.er1
20457 cat conftest.err >&5
a848cd7e
SC
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
ea7db9ff
DE
20460 { ac_try='test -z "$ac_c_werror_flag"
20461 || test ! -s conftest.err'
ac1cb8d3
VS
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; } &&
20467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; }; then
20473 ac_header_compiler=yes
20474else
20475 echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478ac_header_compiler=no
20479fi
ac1cb8d3 20480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20482echo "${ECHO_T}$ac_header_compiler" >&6
20483
20484# Is the header present?
20485echo "$as_me:$LINENO: checking zlib.h presence" >&5
20486echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20487cat >conftest.$ac_ext <<_ACEOF
20488/* confdefs.h. */
20489_ACEOF
20490cat confdefs.h >>conftest.$ac_ext
20491cat >>conftest.$ac_ext <<_ACEOF
20492/* end confdefs.h. */
20493#include <zlib.h>
20494_ACEOF
20495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } >/dev/null; then
20503 if test -s conftest.err; then
20504 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20506 else
20507 ac_cpp_err=
20508 fi
20509else
20510 ac_cpp_err=yes
20511fi
20512if test -z "$ac_cpp_err"; then
20513 ac_header_preproc=yes
20514else
20515 echo "$as_me: failed program was:" >&5
20516sed 's/^/| /' conftest.$ac_ext >&5
20517
20518 ac_header_preproc=no
20519fi
20520rm -f conftest.err conftest.$ac_ext
20521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522echo "${ECHO_T}$ac_header_preproc" >&6
20523
20524# So? What about this header?
ac1cb8d3
VS
20525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20526 yes:no: )
a848cd7e
SC
20527 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20528echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20529 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20530echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20531 ac_header_preproc=yes
a848cd7e 20532 ;;
ac1cb8d3 20533 no:yes:* )
a848cd7e
SC
20534 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20535echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20536 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20537echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20539echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20541echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20542 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20543echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20544 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20545echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20546 (
20547 cat <<\_ASBOX
ac1cb8d3
VS
20548## ----------------------------------------- ##
20549## Report this to wx-dev@lists.wxwidgets.org ##
20550## ----------------------------------------- ##
a848cd7e
SC
20551_ASBOX
20552 ) |
20553 sed "s/^/$as_me: WARNING: /" >&2
20554 ;;
20555esac
20556echo "$as_me:$LINENO: checking for zlib.h" >&5
20557echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20558if test "${ac_cv_header_zlib_h+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20560else
20561 ac_cv_header_zlib_h=$ac_header_preproc
20562fi
20563echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20564echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20565
20566fi
20567
20568
20569
20570 system_zlib_h_ok=$ac_cv_header_zlib_h
20571 fi
20572
20573 if test "$system_zlib_h_ok" = "yes"; then
20574 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20575echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20576if test "${ac_cv_lib_z_deflate+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578else
20579 ac_check_lib_save_LIBS=$LIBS
20580LIBS="-lz $LIBS"
20581cat >conftest.$ac_ext <<_ACEOF
20582/* confdefs.h. */
20583_ACEOF
20584cat confdefs.h >>conftest.$ac_ext
20585cat >>conftest.$ac_ext <<_ACEOF
20586/* end confdefs.h. */
20587
20588/* Override any gcc2 internal prototype to avoid an error. */
20589#ifdef __cplusplus
20590extern "C"
20591#endif
20592/* We use char because int might match the return type of a gcc2
20593 builtin and then its argument prototype would still apply. */
20594char deflate ();
20595int
20596main ()
20597{
20598deflate ();
20599 ;
20600 return 0;
20601}
20602_ACEOF
20603rm -f conftest.$ac_objext conftest$ac_exeext
20604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20605 (eval $ac_link) 2>conftest.er1
a848cd7e 20606 ac_status=$?
ac1cb8d3
VS
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
a848cd7e
SC
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
ea7db9ff
DE
20612 { ac_try='test -z "$ac_c_werror_flag"
20613 || test ! -s conftest.err'
ac1cb8d3
VS
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; } &&
20619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; }; then
20625 ac_cv_lib_z_deflate=yes
20626else
20627 echo "$as_me: failed program was:" >&5
20628sed 's/^/| /' conftest.$ac_ext >&5
20629
20630ac_cv_lib_z_deflate=no
20631fi
ac1cb8d3
VS
20632rm -f conftest.err conftest.$ac_objext \
20633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20634LIBS=$ac_check_lib_save_LIBS
20635fi
20636echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20637echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20638if test $ac_cv_lib_z_deflate = yes; then
20639 ZLIB_LINK=" -lz"
20640fi
20641
20642 fi
20643
20644 if test "x$ZLIB_LINK" = "x" ; then
20645 if test "$wxUSE_ZLIB" = "sys" ; then
20646 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20647echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20648 { (exit 1); exit 1; }; }
20649 else
20650 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20651echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20652 wxUSE_ZLIB=builtin
20653 fi
20654 else
20655 wxUSE_ZLIB=sys
20656 fi
20657 fi
20658fi
20659
20660
20661PNG_LINK=
20662if test "$wxUSE_LIBPNG" != "no" ; then
20663 cat >>confdefs.h <<\_ACEOF
20664#define wxUSE_LIBPNG 1
20665_ACEOF
20666
20667
20668 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20669 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20670echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20671 wxUSE_LIBPNG=sys
20672 fi
20673
20674 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20675 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20676echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20677 wxUSE_LIBPNG=builtin
20678 fi
20679
20680 if test "$wxUSE_MGL" != 1 ; then
20681 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20682 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20683echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20684if test "${ac_cv_header_png_h+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686else
20687 if test "$cross_compiling" = yes; then
20688 unset ac_cv_header_png_h
20689
20690else
20691 cat >conftest.$ac_ext <<_ACEOF
20692/* confdefs.h. */
20693_ACEOF
20694cat confdefs.h >>conftest.$ac_ext
20695cat >>conftest.$ac_ext <<_ACEOF
20696/* end confdefs.h. */
20697
20698 #include <png.h>
20699 #include <stdio.h>
20700
20701 int main()
20702 {
20703 FILE *f=fopen("conftestval", "w");
20704 if (!f) exit(1);
20705 fprintf(f, "%s",
20706 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20707 exit(0);
20708 }
20709
20710_ACEOF
20711rm -f conftest$ac_exeext
20712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713 (eval $ac_link) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_header_png_h=`cat conftestval`
20723else
20724 echo "$as_me: program exited with status $ac_status" >&5
20725echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728( exit $ac_status )
20729ac_cv_header_png_h=no
20730fi
ac1cb8d3 20731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20732fi
20733
20734fi
20735echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20736echo "${ECHO_T}$ac_cv_header_png_h" >&6
20737 if test "${ac_cv_header_png_h+set}" = set; then
20738 echo "$as_me:$LINENO: checking for png.h" >&5
20739echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20740if test "${ac_cv_header_png_h+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742fi
20743echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20744echo "${ECHO_T}$ac_cv_header_png_h" >&6
20745else
20746 # Is the header compilable?
20747echo "$as_me:$LINENO: checking png.h usability" >&5
20748echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20749cat >conftest.$ac_ext <<_ACEOF
20750/* confdefs.h. */
20751_ACEOF
20752cat confdefs.h >>conftest.$ac_ext
20753cat >>conftest.$ac_ext <<_ACEOF
20754/* end confdefs.h. */
20755$ac_includes_default
20756#include <png.h>
20757_ACEOF
20758rm -f conftest.$ac_objext
20759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20760 (eval $ac_compile) 2>conftest.er1
a848cd7e 20761 ac_status=$?
ac1cb8d3
VS
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
a848cd7e
SC
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
ea7db9ff
DE
20767 { ac_try='test -z "$ac_c_werror_flag"
20768 || test ! -s conftest.err'
ac1cb8d3
VS
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 ac_header_compiler=yes
20781else
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785ac_header_compiler=no
20786fi
ac1cb8d3 20787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20789echo "${ECHO_T}$ac_header_compiler" >&6
20790
20791# Is the header present?
20792echo "$as_me:$LINENO: checking png.h presence" >&5
20793echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20794cat >conftest.$ac_ext <<_ACEOF
20795/* confdefs.h. */
20796_ACEOF
20797cat confdefs.h >>conftest.$ac_ext
20798cat >>conftest.$ac_ext <<_ACEOF
20799/* end confdefs.h. */
20800#include <png.h>
20801_ACEOF
20802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } >/dev/null; then
20810 if test -s conftest.err; then
20811 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20813 else
20814 ac_cpp_err=
20815 fi
20816else
20817 ac_cpp_err=yes
20818fi
20819if test -z "$ac_cpp_err"; then
20820 ac_header_preproc=yes
20821else
20822 echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 ac_header_preproc=no
20826fi
20827rm -f conftest.err conftest.$ac_ext
20828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20829echo "${ECHO_T}$ac_header_preproc" >&6
20830
20831# So? What about this header?
ac1cb8d3
VS
20832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20833 yes:no: )
a848cd7e
SC
20834 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20835echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20836 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20837echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20838 ac_header_preproc=yes
a848cd7e 20839 ;;
ac1cb8d3 20840 no:yes:* )
a848cd7e
SC
20841 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20842echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20843 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20844echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20845 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20846echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20848echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20849 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20850echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20851 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20852echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20853 (
20854 cat <<\_ASBOX
ac1cb8d3
VS
20855## ----------------------------------------- ##
20856## Report this to wx-dev@lists.wxwidgets.org ##
20857## ----------------------------------------- ##
a848cd7e
SC
20858_ASBOX
20859 ) |
20860 sed "s/^/$as_me: WARNING: /" >&2
20861 ;;
20862esac
20863echo "$as_me:$LINENO: checking for png.h" >&5
20864echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20865if test "${ac_cv_header_png_h+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867else
20868 ac_cv_header_png_h=$ac_header_preproc
20869fi
20870echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20871echo "${ECHO_T}$ac_cv_header_png_h" >&6
20872
20873fi
20874
20875
20876
20877 if test "$ac_cv_header_png_h" = "yes"; then
20878 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20879echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20880if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20882else
20883 ac_check_lib_save_LIBS=$LIBS
20884LIBS="-lpng -lz -lm $LIBS"
20885cat >conftest.$ac_ext <<_ACEOF
20886/* confdefs.h. */
20887_ACEOF
20888cat confdefs.h >>conftest.$ac_ext
20889cat >>conftest.$ac_ext <<_ACEOF
20890/* end confdefs.h. */
20891
20892/* Override any gcc2 internal prototype to avoid an error. */
20893#ifdef __cplusplus
20894extern "C"
20895#endif
20896/* We use char because int might match the return type of a gcc2
20897 builtin and then its argument prototype would still apply. */
20898char png_check_sig ();
20899int
20900main ()
20901{
20902png_check_sig ();
20903 ;
20904 return 0;
20905}
20906_ACEOF
20907rm -f conftest.$ac_objext conftest$ac_exeext
20908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20909 (eval $ac_link) 2>conftest.er1
a848cd7e 20910 ac_status=$?
ac1cb8d3
VS
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
a848cd7e
SC
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
ea7db9ff
DE
20916 { ac_try='test -z "$ac_c_werror_flag"
20917 || test ! -s conftest.err'
ac1cb8d3
VS
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_cv_lib_png_png_check_sig=yes
20930else
20931 echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934ac_cv_lib_png_png_check_sig=no
20935fi
ac1cb8d3
VS
20936rm -f conftest.err conftest.$ac_objext \
20937 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20938LIBS=$ac_check_lib_save_LIBS
20939fi
20940echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20941echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20942if test $ac_cv_lib_png_png_check_sig = yes; then
20943 PNG_LINK=" -lpng -lz"
20944fi
20945
20946 fi
20947
20948 if test "x$PNG_LINK" = "x" ; then
20949 if test "$wxUSE_LIBPNG" = "sys" ; then
20950 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20951echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20952 { (exit 1); exit 1; }; }
20953 else
20954 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20955echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20956 wxUSE_LIBPNG=builtin
20957 fi
20958 else
20959 wxUSE_LIBPNG=sys
20960 fi
20961 fi
20962 fi
20963
20964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20965fi
20966
20967
20968JPEG_LINK=
20969if test "$wxUSE_LIBJPEG" != "no" ; then
20970 cat >>confdefs.h <<\_ACEOF
20971#define wxUSE_LIBJPEG 1
20972_ACEOF
20973
20974
20975 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20976 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20977echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20978 wxUSE_LIBJPEG=sys
20979 fi
20980
20981 if test "$wxUSE_MGL" != 1 ; then
20982 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20983 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20984echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20985 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20987else
20988 cat >conftest.$ac_ext <<_ACEOF
20989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
20994
20995 #undef HAVE_STDLIB_H
20996 #include <stdio.h>
20997 #include <jpeglib.h>
20998
20999int
21000main ()
21001{
21002
21003
21004 ;
21005 return 0;
21006}
21007_ACEOF
21008rm -f conftest.$ac_objext
21009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21010 (eval $ac_compile) 2>conftest.er1
a848cd7e 21011 ac_status=$?
ac1cb8d3
VS
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
a848cd7e
SC
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
ea7db9ff
DE
21017 { ac_try='test -z "$ac_c_werror_flag"
21018 || test ! -s conftest.err'
ac1cb8d3
VS
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 ac_cv_header_jpeglib_h=yes
21031else
21032 echo "$as_me: failed program was:" >&5
21033sed 's/^/| /' conftest.$ac_ext >&5
21034
21035ac_cv_header_jpeglib_h=no
21036
21037fi
ac1cb8d3 21038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21039
21040fi
21041
21042 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21043echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21044
21045 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21046 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21047echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21048if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050else
21051 ac_check_lib_save_LIBS=$LIBS
21052LIBS="-ljpeg $LIBS"
21053cat >conftest.$ac_ext <<_ACEOF
21054/* confdefs.h. */
21055_ACEOF
21056cat confdefs.h >>conftest.$ac_ext
21057cat >>conftest.$ac_ext <<_ACEOF
21058/* end confdefs.h. */
21059
21060/* Override any gcc2 internal prototype to avoid an error. */
21061#ifdef __cplusplus
21062extern "C"
21063#endif
21064/* We use char because int might match the return type of a gcc2
21065 builtin and then its argument prototype would still apply. */
21066char jpeg_read_header ();
21067int
21068main ()
21069{
21070jpeg_read_header ();
21071 ;
21072 return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext conftest$ac_exeext
21076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21077 (eval $ac_link) 2>conftest.er1
a848cd7e 21078 ac_status=$?
ac1cb8d3
VS
21079 grep -v '^ *+' conftest.er1 >conftest.err
21080 rm -f conftest.er1
21081 cat conftest.err >&5
a848cd7e
SC
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } &&
ea7db9ff
DE
21084 { ac_try='test -z "$ac_c_werror_flag"
21085 || test ! -s conftest.err'
ac1cb8d3
VS
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21097 ac_cv_lib_jpeg_jpeg_read_header=yes
21098else
21099 echo "$as_me: failed program was:" >&5
21100sed 's/^/| /' conftest.$ac_ext >&5
21101
21102ac_cv_lib_jpeg_jpeg_read_header=no
21103fi
ac1cb8d3
VS
21104rm -f conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21106LIBS=$ac_check_lib_save_LIBS
21107fi
21108echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21109echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21110if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21111 JPEG_LINK=" -ljpeg"
21112fi
21113
21114 fi
21115
21116 if test "x$JPEG_LINK" = "x" ; then
21117 if test "$wxUSE_LIBJPEG" = "sys" ; then
21118 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21119echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21120 { (exit 1); exit 1; }; }
21121 else
21122 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21123echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21124 wxUSE_LIBJPEG=builtin
21125 fi
21126 else
21127 wxUSE_LIBJPEG=sys
21128 fi
21129 fi
21130 fi
21131fi
21132
21133
21134TIFF_LINK=
21135TIFF_PREREQ_LINKS=-lm
21136if test "$wxUSE_LIBTIFF" != "no" ; then
21137 cat >>confdefs.h <<\_ACEOF
21138#define wxUSE_LIBTIFF 1
21139_ACEOF
21140
21141
21142 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21143 if test "$wxUSE_LIBJPEG" = "sys"; then
21144 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21145 fi
21146 if test "$wxUSE_ZLIB" = "sys"; then
21147 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21148 fi
21149 if test "${ac_cv_header_tiffio_h+set}" = set; then
21150 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21151echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21152if test "${ac_cv_header_tiffio_h+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154fi
21155echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21156echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21157else
21158 # Is the header compilable?
21159echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21160echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21161cat >conftest.$ac_ext <<_ACEOF
21162/* confdefs.h. */
21163_ACEOF
21164cat confdefs.h >>conftest.$ac_ext
21165cat >>conftest.$ac_ext <<_ACEOF
21166/* end confdefs.h. */
21167$ac_includes_default
21168#include <tiffio.h>
21169_ACEOF
21170rm -f conftest.$ac_objext
21171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21172 (eval $ac_compile) 2>conftest.er1
a848cd7e 21173 ac_status=$?
ac1cb8d3
VS
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
a848cd7e
SC
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } &&
ea7db9ff
DE
21179 { ac_try='test -z "$ac_c_werror_flag"
21180 || test ! -s conftest.err'
ac1cb8d3
VS
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; } &&
21186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 ac_header_compiler=yes
21193else
21194 echo "$as_me: failed program was:" >&5
21195sed 's/^/| /' conftest.$ac_ext >&5
21196
21197ac_header_compiler=no
21198fi
ac1cb8d3 21199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21201echo "${ECHO_T}$ac_header_compiler" >&6
21202
21203# Is the header present?
21204echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21205echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21206cat >conftest.$ac_ext <<_ACEOF
21207/* confdefs.h. */
21208_ACEOF
21209cat confdefs.h >>conftest.$ac_ext
21210cat >>conftest.$ac_ext <<_ACEOF
21211/* end confdefs.h. */
21212#include <tiffio.h>
21213_ACEOF
21214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21216 ac_status=$?
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } >/dev/null; then
21222 if test -s conftest.err; then
21223 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21225 else
21226 ac_cpp_err=
21227 fi
21228else
21229 ac_cpp_err=yes
21230fi
21231if test -z "$ac_cpp_err"; then
21232 ac_header_preproc=yes
21233else
21234 echo "$as_me: failed program was:" >&5
21235sed 's/^/| /' conftest.$ac_ext >&5
21236
21237 ac_header_preproc=no
21238fi
21239rm -f conftest.err conftest.$ac_ext
21240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21241echo "${ECHO_T}$ac_header_preproc" >&6
21242
21243# So? What about this header?
ac1cb8d3
VS
21244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21245 yes:no: )
a848cd7e
SC
21246 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21247echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21248 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21249echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21250 ac_header_preproc=yes
a848cd7e 21251 ;;
ac1cb8d3 21252 no:yes:* )
a848cd7e
SC
21253 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21254echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21255 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21256echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21257 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21258echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21259 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21260echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21261 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21262echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21263 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21264echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21265 (
21266 cat <<\_ASBOX
ac1cb8d3
VS
21267## ----------------------------------------- ##
21268## Report this to wx-dev@lists.wxwidgets.org ##
21269## ----------------------------------------- ##
a848cd7e
SC
21270_ASBOX
21271 ) |
21272 sed "s/^/$as_me: WARNING: /" >&2
21273 ;;
21274esac
21275echo "$as_me:$LINENO: checking for tiffio.h" >&5
21276echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21277if test "${ac_cv_header_tiffio_h+set}" = set; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21279else
21280 ac_cv_header_tiffio_h=$ac_header_preproc
21281fi
21282echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21283echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21284
21285fi
21286if test $ac_cv_header_tiffio_h = yes; then
21287
21288 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21289echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21290if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21292else
21293 ac_check_lib_save_LIBS=$LIBS
21294LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21295cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h. */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h. */
21301
21302/* Override any gcc2 internal prototype to avoid an error. */
21303#ifdef __cplusplus
21304extern "C"
21305#endif
21306/* We use char because int might match the return type of a gcc2
21307 builtin and then its argument prototype would still apply. */
21308char TIFFError ();
21309int
21310main ()
21311{
21312TIFFError ();
21313 ;
21314 return 0;
21315}
21316_ACEOF
21317rm -f conftest.$ac_objext conftest$ac_exeext
21318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21319 (eval $ac_link) 2>conftest.er1
a848cd7e 21320 ac_status=$?
ac1cb8d3
VS
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
a848cd7e
SC
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } &&
ea7db9ff
DE
21326 { ac_try='test -z "$ac_c_werror_flag"
21327 || test ! -s conftest.err'
ac1cb8d3
VS
21328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329 (eval $ac_try) 2>&5
21330 ac_status=$?
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; } &&
21333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; }; then
21339 ac_cv_lib_tiff_TIFFError=yes
21340else
21341 echo "$as_me: failed program was:" >&5
21342sed 's/^/| /' conftest.$ac_ext >&5
21343
21344ac_cv_lib_tiff_TIFFError=no
21345fi
ac1cb8d3
VS
21346rm -f conftest.err conftest.$ac_objext \
21347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21348LIBS=$ac_check_lib_save_LIBS
21349fi
21350echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21351echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21352if test $ac_cv_lib_tiff_TIFFError = yes; then
21353 TIFF_LINK=" -ltiff"
21354fi
21355
21356
21357
21358fi
21359
21360
21361
21362 if test "x$TIFF_LINK" = "x" ; then
21363 if test "$wxUSE_LIBTIFF" = "sys" ; then
21364 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21365echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21366 { (exit 1); exit 1; }; }
21367 else
21368 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21369echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21370 wxUSE_LIBTIFF=builtin
21371 fi
21372 else
21373 wxUSE_LIBTIFF=sys
21374 fi
21375 fi
21376fi
21377
21378
21379if test "$wxUSE_EXPAT" != "no"; then
21380 wxUSE_XML=yes
21381 cat >>confdefs.h <<\_ACEOF
21382#define wxUSE_EXPAT 1
21383_ACEOF
21384
21385 cat >>confdefs.h <<\_ACEOF
21386#define wxUSE_XML 1
21387_ACEOF
21388
21389
21390 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21391 if test "${ac_cv_header_expat_h+set}" = set; then
21392 echo "$as_me:$LINENO: checking for expat.h" >&5
21393echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21394if test "${ac_cv_header_expat_h+set}" = set; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396fi
21397echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21398echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21399else
21400 # Is the header compilable?
21401echo "$as_me:$LINENO: checking expat.h usability" >&5
21402echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21403cat >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$ac_includes_default
21410#include <expat.h>
21411_ACEOF
21412rm -f conftest.$ac_objext
21413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21414 (eval $ac_compile) 2>conftest.er1
a848cd7e 21415 ac_status=$?
ac1cb8d3
VS
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
a848cd7e
SC
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
ea7db9ff
DE
21421 { ac_try='test -z "$ac_c_werror_flag"
21422 || test ! -s conftest.err'
ac1cb8d3
VS
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; } &&
21428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21434 ac_header_compiler=yes
21435else
21436 echo "$as_me: failed program was:" >&5
21437sed 's/^/| /' conftest.$ac_ext >&5
21438
21439ac_header_compiler=no
21440fi
ac1cb8d3 21441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21442echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21443echo "${ECHO_T}$ac_header_compiler" >&6
21444
21445# Is the header present?
21446echo "$as_me:$LINENO: checking expat.h presence" >&5
21447echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21448cat >conftest.$ac_ext <<_ACEOF
21449/* confdefs.h. */
21450_ACEOF
21451cat confdefs.h >>conftest.$ac_ext
21452cat >>conftest.$ac_ext <<_ACEOF
21453/* end confdefs.h. */
21454#include <expat.h>
21455_ACEOF
21456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } >/dev/null; then
21464 if test -s conftest.err; then
21465 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21467 else
21468 ac_cpp_err=
21469 fi
21470else
21471 ac_cpp_err=yes
21472fi
21473if test -z "$ac_cpp_err"; then
21474 ac_header_preproc=yes
21475else
21476 echo "$as_me: failed program was:" >&5
21477sed 's/^/| /' conftest.$ac_ext >&5
21478
21479 ac_header_preproc=no
21480fi
21481rm -f conftest.err conftest.$ac_ext
21482echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21483echo "${ECHO_T}$ac_header_preproc" >&6
21484
21485# So? What about this header?
ac1cb8d3
VS
21486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21487 yes:no: )
a848cd7e
SC
21488 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21489echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21490 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21491echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21492 ac_header_preproc=yes
a848cd7e 21493 ;;
ac1cb8d3 21494 no:yes:* )
a848cd7e
SC
21495 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21496echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21497 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21498echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21500echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21502echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21503 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21504echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21505 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21506echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21507 (
21508 cat <<\_ASBOX
ac1cb8d3
VS
21509## ----------------------------------------- ##
21510## Report this to wx-dev@lists.wxwidgets.org ##
21511## ----------------------------------------- ##
a848cd7e
SC
21512_ASBOX
21513 ) |
21514 sed "s/^/$as_me: WARNING: /" >&2
21515 ;;
21516esac
21517echo "$as_me:$LINENO: checking for expat.h" >&5
21518echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21519if test "${ac_cv_header_expat_h+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521else
21522 ac_cv_header_expat_h=$ac_header_preproc
21523fi
21524echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21525echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21526
21527fi
21528if test $ac_cv_header_expat_h = yes; then
21529 found_expat_h=1
21530fi
21531
21532
21533 if test "x$found_expat_h" = "x1"; then
21534 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21535echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21536if test "${wx_cv_expat_is_not_broken+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21538else
21539
21540
21541
21542 ac_ext=cc
21543ac_cpp='$CXXCPP $CPPFLAGS'
21544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21547
21548 cat >conftest.$ac_ext <<_ACEOF
21549/* confdefs.h. */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h. */
21554#include <expat.h>
21555int
21556main ()
21557{
21558
21559 ;
21560 return 0;
21561}
21562_ACEOF
21563rm -f conftest.$ac_objext
21564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21565 (eval $ac_compile) 2>conftest.er1
a848cd7e 21566 ac_status=$?
ac1cb8d3
VS
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
a848cd7e
SC
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
ea7db9ff
DE
21572 { ac_try='test -z "$ac_cxx_werror_flag"
21573 || test ! -s conftest.err'
ac1cb8d3
VS
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 wx_cv_expat_is_not_broken=yes
21586else
21587 echo "$as_me: failed program was:" >&5
21588sed 's/^/| /' conftest.$ac_ext >&5
21589
21590wx_cv_expat_is_not_broken=no
21591
21592fi
ac1cb8d3 21593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21594 ac_ext=c
21595ac_cpp='$CPP $CPPFLAGS'
21596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21598ac_compiler_gnu=$ac_cv_c_compiler_gnu
21599
21600
21601
21602fi
21603echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21604echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21605 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21606 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21607echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21608if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610else
21611 ac_check_lib_save_LIBS=$LIBS
21612LIBS="-lexpat $LIBS"
21613cat >conftest.$ac_ext <<_ACEOF
21614/* confdefs.h. */
21615_ACEOF
21616cat confdefs.h >>conftest.$ac_ext
21617cat >>conftest.$ac_ext <<_ACEOF
21618/* end confdefs.h. */
21619
21620/* Override any gcc2 internal prototype to avoid an error. */
21621#ifdef __cplusplus
21622extern "C"
21623#endif
21624/* We use char because int might match the return type of a gcc2
21625 builtin and then its argument prototype would still apply. */
21626char XML_ParserCreate ();
21627int
21628main ()
21629{
21630XML_ParserCreate ();
21631 ;
21632 return 0;
21633}
21634_ACEOF
21635rm -f conftest.$ac_objext conftest$ac_exeext
21636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21637 (eval $ac_link) 2>conftest.er1
a848cd7e 21638 ac_status=$?
ac1cb8d3
VS
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
a848cd7e
SC
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } &&
ea7db9ff
DE
21644 { ac_try='test -z "$ac_c_werror_flag"
21645 || test ! -s conftest.err'
ac1cb8d3
VS
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; } &&
21651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657 ac_cv_lib_expat_XML_ParserCreate=yes
21658else
21659 echo "$as_me: failed program was:" >&5
21660sed 's/^/| /' conftest.$ac_ext >&5
21661
21662ac_cv_lib_expat_XML_ParserCreate=no
21663fi
ac1cb8d3
VS
21664rm -f conftest.err conftest.$ac_objext \
21665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21666LIBS=$ac_check_lib_save_LIBS
21667fi
21668echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21669echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21670if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21671 EXPAT_LINK=" -lexpat"
21672fi
21673
21674 fi
21675 fi
21676 if test "x$EXPAT_LINK" = "x" ; then
21677 if test "$wxUSE_EXPAT" = "sys" ; then
21678 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21679echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21680 { (exit 1); exit 1; }; }
21681 else
21682 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21683echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21684 wxUSE_EXPAT=builtin
21685 fi
21686 else
21687 wxUSE_EXPAT=sys
21688 fi
21689 fi
21690 if test "$wxUSE_EXPAT" = "builtin" ; then
21691
21692
21693subdirs="$subdirs src/expat"
21694
21695 fi
21696fi
21697
21698
21699
21700if test "$wxUSE_LIBMSPACK" != "no"; then
21701
21702 if test "${ac_cv_header_mspack_h+set}" = set; then
21703 echo "$as_me:$LINENO: checking for mspack.h" >&5
21704echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21705if test "${ac_cv_header_mspack_h+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707fi
21708echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21709echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21710else
21711 # Is the header compilable?
21712echo "$as_me:$LINENO: checking mspack.h usability" >&5
21713echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21714cat >conftest.$ac_ext <<_ACEOF
21715/* confdefs.h. */
21716_ACEOF
21717cat confdefs.h >>conftest.$ac_ext
21718cat >>conftest.$ac_ext <<_ACEOF
21719/* end confdefs.h. */
21720$ac_includes_default
21721#include <mspack.h>
21722_ACEOF
21723rm -f conftest.$ac_objext
21724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21725 (eval $ac_compile) 2>conftest.er1
a848cd7e 21726 ac_status=$?
ac1cb8d3
VS
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
a848cd7e
SC
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
ea7db9ff
DE
21732 { ac_try='test -z "$ac_c_werror_flag"
21733 || test ! -s conftest.err'
ac1cb8d3
VS
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21736 ac_status=$?
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; } &&
21739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; }; then
21745 ac_header_compiler=yes
21746else
21747 echo "$as_me: failed program was:" >&5
21748sed 's/^/| /' conftest.$ac_ext >&5
21749
21750ac_header_compiler=no
21751fi
ac1cb8d3 21752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21754echo "${ECHO_T}$ac_header_compiler" >&6
21755
21756# Is the header present?
21757echo "$as_me:$LINENO: checking mspack.h presence" >&5
21758echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21759cat >conftest.$ac_ext <<_ACEOF
21760/* confdefs.h. */
21761_ACEOF
21762cat confdefs.h >>conftest.$ac_ext
21763cat >>conftest.$ac_ext <<_ACEOF
21764/* end confdefs.h. */
21765#include <mspack.h>
21766_ACEOF
21767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21769 ac_status=$?
21770 grep -v '^ *+' conftest.er1 >conftest.err
21771 rm -f conftest.er1
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } >/dev/null; then
21775 if test -s conftest.err; then
21776 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21778 else
21779 ac_cpp_err=
21780 fi
21781else
21782 ac_cpp_err=yes
21783fi
21784if test -z "$ac_cpp_err"; then
21785 ac_header_preproc=yes
21786else
21787 echo "$as_me: failed program was:" >&5
21788sed 's/^/| /' conftest.$ac_ext >&5
21789
21790 ac_header_preproc=no
21791fi
21792rm -f conftest.err conftest.$ac_ext
21793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21794echo "${ECHO_T}$ac_header_preproc" >&6
21795
21796# So? What about this header?
ac1cb8d3
VS
21797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21798 yes:no: )
a848cd7e
SC
21799 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21800echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21801 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21802echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21803 ac_header_preproc=yes
a848cd7e 21804 ;;
ac1cb8d3 21805 no:yes:* )
a848cd7e
SC
21806 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21807echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21808 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21809echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21811echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21813echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21814 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21815echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21816 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21817echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21818 (
21819 cat <<\_ASBOX
ac1cb8d3
VS
21820## ----------------------------------------- ##
21821## Report this to wx-dev@lists.wxwidgets.org ##
21822## ----------------------------------------- ##
a848cd7e
SC
21823_ASBOX
21824 ) |
21825 sed "s/^/$as_me: WARNING: /" >&2
21826 ;;
21827esac
21828echo "$as_me:$LINENO: checking for mspack.h" >&5
21829echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21830if test "${ac_cv_header_mspack_h+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21832else
21833 ac_cv_header_mspack_h=$ac_header_preproc
21834fi
21835echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21836echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21837
21838fi
21839if test $ac_cv_header_mspack_h = yes; then
21840 found_mspack_h=1
21841fi
21842
21843
21844 if test "x$found_mspack_h" = "x1"; then
21845 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21846echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21847if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849else
21850 ac_check_lib_save_LIBS=$LIBS
21851LIBS="-lmspack $LIBS"
21852cat >conftest.$ac_ext <<_ACEOF
21853/* confdefs.h. */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h. */
21858
21859/* Override any gcc2 internal prototype to avoid an error. */
21860#ifdef __cplusplus
21861extern "C"
21862#endif
21863/* We use char because int might match the return type of a gcc2
21864 builtin and then its argument prototype would still apply. */
21865char mspack_create_chm_decompressor ();
21866int
21867main ()
21868{
21869mspack_create_chm_decompressor ();
21870 ;
21871 return 0;
21872}
21873_ACEOF
21874rm -f conftest.$ac_objext conftest$ac_exeext
21875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21876 (eval $ac_link) 2>conftest.er1
a848cd7e 21877 ac_status=$?
ac1cb8d3
VS
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
a848cd7e
SC
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } &&
ea7db9ff
DE
21883 { ac_try='test -z "$ac_c_werror_flag"
21884 || test ! -s conftest.err'
ac1cb8d3
VS
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21897else
21898 echo "$as_me: failed program was:" >&5
21899sed 's/^/| /' conftest.$ac_ext >&5
21900
21901ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21902fi
ac1cb8d3
VS
21903rm -f conftest.err conftest.$ac_objext \
21904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21905LIBS=$ac_check_lib_save_LIBS
21906fi
21907echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21908echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21909if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21910 MSPACK_LINK=" -lmspack"
21911fi
21912
21913 fi
21914 if test "x$MSPACK_LINK" = "x" ; then
21915 wxUSE_LIBMSPACK=no
21916 else
21917 cat >>confdefs.h <<\_ACEOF
21918#define wxUSE_LIBMSPACK 1
21919_ACEOF
21920
21921 fi
21922fi
21923
21924
21925
21926AFMINSTALL=
21927WIN32INSTALL=
21928
21929TOOLKIT=
21930TOOLKIT_INCLUDE=
21931WIDGET_SET=
21932
21933if test "$USE_WIN32" = 1 ; then
21934
21935for ac_header in w32api.h
21936do
21937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21938if eval "test \"\${$as_ac_Header+set}\" = set"; then
21939 echo "$as_me:$LINENO: checking for $ac_header" >&5
21940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21941if eval "test \"\${$as_ac_Header+set}\" = set"; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943fi
21944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21946else
21947 # Is the header compilable?
21948echo "$as_me:$LINENO: checking $ac_header usability" >&5
21949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21950cat >conftest.$ac_ext <<_ACEOF
21951/* confdefs.h. */
21952_ACEOF
21953cat confdefs.h >>conftest.$ac_ext
21954cat >>conftest.$ac_ext <<_ACEOF
21955/* end confdefs.h. */
21956$ac_includes_default
21957#include <$ac_header>
21958_ACEOF
21959rm -f conftest.$ac_objext
21960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21961 (eval $ac_compile) 2>conftest.er1
a848cd7e 21962 ac_status=$?
ac1cb8d3
VS
21963 grep -v '^ *+' conftest.er1 >conftest.err
21964 rm -f conftest.er1
21965 cat conftest.err >&5
a848cd7e
SC
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } &&
ea7db9ff
DE
21968 { ac_try='test -z "$ac_c_werror_flag"
21969 || test ! -s conftest.err'
ac1cb8d3
VS
21970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21972 ac_status=$?
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; } &&
21975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21977 (eval $ac_try) 2>&5
21978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; }; then
21981 ac_header_compiler=yes
21982else
21983 echo "$as_me: failed program was:" >&5
21984sed 's/^/| /' conftest.$ac_ext >&5
21985
21986ac_header_compiler=no
21987fi
ac1cb8d3 21988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990echo "${ECHO_T}$ac_header_compiler" >&6
21991
21992# Is the header present?
21993echo "$as_me:$LINENO: checking $ac_header presence" >&5
21994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21995cat >conftest.$ac_ext <<_ACEOF
21996/* confdefs.h. */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h. */
22001#include <$ac_header>
22002_ACEOF
22003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } >/dev/null; then
22011 if test -s conftest.err; then
22012 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22014 else
22015 ac_cpp_err=
22016 fi
22017else
22018 ac_cpp_err=yes
22019fi
22020if test -z "$ac_cpp_err"; then
22021 ac_header_preproc=yes
22022else
22023 echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
22026 ac_header_preproc=no
22027fi
22028rm -f conftest.err conftest.$ac_ext
22029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22030echo "${ECHO_T}$ac_header_preproc" >&6
22031
22032# So? What about this header?
ac1cb8d3
VS
22033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22034 yes:no: )
a848cd7e
SC
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22039 ac_header_preproc=yes
a848cd7e 22040 ;;
ac1cb8d3 22041 no:yes:* )
a848cd7e
SC
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22054 (
22055 cat <<\_ASBOX
ac1cb8d3
VS
22056## ----------------------------------------- ##
22057## Report this to wx-dev@lists.wxwidgets.org ##
22058## ----------------------------------------- ##
a848cd7e
SC
22059_ASBOX
22060 ) |
22061 sed "s/^/$as_me: WARNING: /" >&2
22062 ;;
22063esac
22064echo "$as_me:$LINENO: checking for $ac_header" >&5
22065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22066if eval "test \"\${$as_ac_Header+set}\" = set"; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22068else
ac1cb8d3 22069 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22070fi
22071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22073
22074fi
22075if test `eval echo '${'$as_ac_Header'}'` = yes; then
22076 cat >>confdefs.h <<_ACEOF
22077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22078_ACEOF
22079
22080fi
22081
22082done
22083
22084 if test "${ac_cv_header_windows_h+set}" = set; then
22085 echo "$as_me:$LINENO: checking for windows.h" >&5
22086echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22087if test "${ac_cv_header_windows_h+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22089fi
22090echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22091echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22092else
22093 # Is the header compilable?
22094echo "$as_me:$LINENO: checking windows.h usability" >&5
22095echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22096cat >conftest.$ac_ext <<_ACEOF
22097/* confdefs.h. */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h. */
22102$ac_includes_default
22103#include <windows.h>
22104_ACEOF
22105rm -f conftest.$ac_objext
22106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22107 (eval $ac_compile) 2>conftest.er1
a848cd7e 22108 ac_status=$?
ac1cb8d3
VS
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
a848cd7e
SC
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
ea7db9ff
DE
22114 { ac_try='test -z "$ac_c_werror_flag"
22115 || test ! -s conftest.err'
ac1cb8d3
VS
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ac_header_compiler=yes
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132ac_header_compiler=no
22133fi
ac1cb8d3 22134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22136echo "${ECHO_T}$ac_header_compiler" >&6
22137
22138# Is the header present?
22139echo "$as_me:$LINENO: checking windows.h presence" >&5
22140echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22141cat >conftest.$ac_ext <<_ACEOF
22142/* confdefs.h. */
22143_ACEOF
22144cat confdefs.h >>conftest.$ac_ext
22145cat >>conftest.$ac_ext <<_ACEOF
22146/* end confdefs.h. */
22147#include <windows.h>
22148_ACEOF
22149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22151 ac_status=$?
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } >/dev/null; then
22157 if test -s conftest.err; then
22158 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22160 else
22161 ac_cpp_err=
22162 fi
22163else
22164 ac_cpp_err=yes
22165fi
22166if test -z "$ac_cpp_err"; then
22167 ac_header_preproc=yes
22168else
22169 echo "$as_me: failed program was:" >&5
22170sed 's/^/| /' conftest.$ac_ext >&5
22171
22172 ac_header_preproc=no
22173fi
22174rm -f conftest.err conftest.$ac_ext
22175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22176echo "${ECHO_T}$ac_header_preproc" >&6
22177
22178# So? What about this header?
ac1cb8d3
VS
22179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22180 yes:no: )
a848cd7e
SC
22181 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22182echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22183 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22184echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22185 ac_header_preproc=yes
a848cd7e 22186 ;;
ac1cb8d3 22187 no:yes:* )
a848cd7e
SC
22188 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22189echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22190 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22191echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22193echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22195echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22196 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22197echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22198 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22199echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22200 (
22201 cat <<\_ASBOX
ac1cb8d3
VS
22202## ----------------------------------------- ##
22203## Report this to wx-dev@lists.wxwidgets.org ##
22204## ----------------------------------------- ##
a848cd7e
SC
22205_ASBOX
22206 ) |
22207 sed "s/^/$as_me: WARNING: /" >&2
22208 ;;
22209esac
22210echo "$as_me:$LINENO: checking for windows.h" >&5
22211echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22212if test "${ac_cv_header_windows_h+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
22215 ac_cv_header_windows_h=$ac_header_preproc
22216fi
22217echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22218echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22219
22220fi
22221if test $ac_cv_header_windows_h = yes; then
22222 :
22223else
22224
22225 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22226echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22227 { (exit 1); exit 1; }; }
22228
22229fi
22230
22231
22232
22233 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22234
22235 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22236 LIBS="$LIBS -loleacc"
22237 fi
22238
22239 case "${host}" in
22240 *-*-cygwin* )
22241 LIBS="$LIBS -lkernel32 -luser32"
22242 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22243 esac
22244
22245 if test "$wxUSE_ODBC" = "sys" ; then
22246 wxUSE_ODBC = "yes"
22247 fi
22248 if test "$wxUSE_ODBC" = "yes" ; then
22249 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22250 cat >>confdefs.h <<\_ACEOF
22251#define wxUSE_ODBC 1
22252_ACEOF
22253
22254 fi
22255
22256 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22257 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22258
22259 WIN32INSTALL=win32install
22260fi
22261
22262if test "$wxUSE_GUI" = "yes"; then
22263 USE_GUI=1
22264
22265 GUI_TK_LIBRARY=
22266
22267 WXGTK12=
22268 WXGTK127=
22269 WXGTK20=
22270 WXGPE=
22271
22272 if test "$wxUSE_MSW" = 1 ; then
22273 TOOLKIT=MSW
22274 GUIDIST=MSW_DIST
22275
22276 case "${host}" in
22277 *-*-mingw32* )
22278 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22279 esac
22280 fi
22281
22282 if test "$wxUSE_GTK" = 1; then
22283 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22284echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22285
22286 gtk_version_cached=1
22287 if test "${wx_cv_lib_gtk+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290
22291 gtk_version_cached=0
22292 echo "$as_me:$LINENO: result: " >&5
22293echo "${ECHO_T}" >&6
22294
22295 GTK_MODULES=
22296 if test "$wxUSE_THREADS" = "yes"; then
22297 GTK_MODULES=gthread
22298 fi
22299
22300 wx_cv_lib_gtk=
22301 if test "x$wxUSE_GTK2" = "xyes"; then
22302 # Check whether --enable-gtktest or --disable-gtktest was given.
22303if test "${enable_gtktest+set}" = set; then
22304 enableval="$enable_gtktest"
22305
22306else
22307 enable_gtktest=yes
22308fi;
22309
22310 pkg_config_args=gtk+-2.0
22311 for module in . $GTK_MODULES
22312 do
22313 case "$module" in
22314 gthread)
22315 pkg_config_args="$pkg_config_args gthread-2.0"
22316 ;;
22317 esac
22318 done
22319
22320 no_gtk=""
22321
22322 # Extract the first word of "pkg-config", so it can be a program name with args.
22323set dummy pkg-config; ac_word=$2
22324echo "$as_me:$LINENO: checking for $ac_word" >&5
22325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22326if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22328else
22329 case $PKG_CONFIG in
22330 [\\/]* | ?:[\\/]*)
22331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22332 ;;
22333 *)
22334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22335for as_dir in $PATH
22336do
22337 IFS=$as_save_IFS
22338 test -z "$as_dir" && as_dir=.
22339 for ac_exec_ext in '' $ac_executable_extensions; do
22340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22341 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22343 break 2
22344 fi
22345done
22346done
22347
22348 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22349 ;;
22350esac
22351fi
22352PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22353
22354if test -n "$PKG_CONFIG"; then
22355 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22356echo "${ECHO_T}$PKG_CONFIG" >&6
22357else
22358 echo "$as_me:$LINENO: result: no" >&5
22359echo "${ECHO_T}no" >&6
22360fi
22361
22362
22363 if test x$PKG_CONFIG != xno ; then
22364 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22365 :
22366 else
c2218763 22367 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22368 no_gtk=yes
22369 PKG_CONFIG=no
22370 fi
22371 else
22372 no_gtk=yes
22373 fi
22374
22375 min_gtk_version=2.0.0
22376 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22377echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22378
22379 if test x$PKG_CONFIG != xno ; then
22380 ## don't try to run the test against uninstalled libtool libs
22381 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22382 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22383 enable_gtktest=no
22384 fi
22385
22386 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22387 :
22388 else
22389 no_gtk=yes
22390 fi
22391 fi
22392
22393 if test x"$no_gtk" = x ; then
22394 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22395 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22396 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22397 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22398 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22400 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22401 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22402 if test "x$enable_gtktest" = "xyes" ; then
22403 ac_save_CFLAGS="$CFLAGS"
22404 ac_save_LIBS="$LIBS"
22405 CFLAGS="$CFLAGS $GTK_CFLAGS"
22406 LIBS="$GTK_LIBS $LIBS"
22407 rm -f conf.gtktest
22408 if test "$cross_compiling" = yes; then
22409 echo $ac_n "cross compiling; assumed OK... $ac_c"
22410else
22411 cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h. */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h. */
22417
22418#include <gtk/gtk.h>
22419#include <stdio.h>
22420#include <stdlib.h>
22421
22422int
22423main ()
22424{
22425 int major, minor, micro;
22426 char *tmp_version;
22427
22428 system ("touch conf.gtktest");
22429
22430 /* HP/UX 9 (%@#!) writes to sscanf strings */
22431 tmp_version = g_strdup("$min_gtk_version");
22432 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22433 printf("%s, bad version string\n", "$min_gtk_version");
22434 exit(1);
22435 }
22436
22437 if ((gtk_major_version != $gtk_config_major_version) ||
22438 (gtk_minor_version != $gtk_config_minor_version) ||
22439 (gtk_micro_version != $gtk_config_micro_version))
22440 {
22441 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22442 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22443 gtk_major_version, gtk_minor_version, gtk_micro_version);
22444 printf ("*** was found! If pkg-config was correct, then it is best\n");
22445 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22446 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22447 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22448 printf("*** required on your system.\n");
22449 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22450 printf("*** to point to the correct configuration files\n");
22451 }
22452 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22453 (gtk_minor_version != GTK_MINOR_VERSION) ||
22454 (gtk_micro_version != GTK_MICRO_VERSION))
22455 {
22456 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22457 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22458 printf("*** library (version %d.%d.%d)\n",
22459 gtk_major_version, gtk_minor_version, gtk_micro_version);
22460 }
22461 else
22462 {
22463 if ((gtk_major_version > major) ||
22464 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22465 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22466 {
22467 return 0;
22468 }
22469 else
22470 {
22471 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22472 gtk_major_version, gtk_minor_version, gtk_micro_version);
22473 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22474 major, minor, micro);
22475 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22476 printf("***\n");
22477 printf("*** If you have already installed a sufficiently new version, this error\n");
22478 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22479 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22480 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22481 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22482 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22483 printf("*** so that the correct libraries are found at run-time))\n");
22484 }
22485 }
22486 return 1;
22487}
22488
22489_ACEOF
22490rm -f conftest$ac_exeext
22491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>&5
22493 ac_status=$?
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 :
22502else
22503 echo "$as_me: program exited with status $ac_status" >&5
22504echo "$as_me: failed program was:" >&5
22505sed 's/^/| /' conftest.$ac_ext >&5
22506
22507( exit $ac_status )
22508no_gtk=yes
22509fi
ac1cb8d3 22510rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22511fi
22512 CFLAGS="$ac_save_CFLAGS"
22513 LIBS="$ac_save_LIBS"
22514 fi
22515 fi
22516 if test "x$no_gtk" = x ; then
22517 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22518echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22519 wx_cv_lib_gtk=2.0
22520 else
22521 echo "$as_me:$LINENO: result: no" >&5
22522echo "${ECHO_T}no" >&6
22523 if test "$PKG_CONFIG" = "no" ; then
22524 echo "*** A new enough version of pkg-config was not found."
22525 echo "*** See http://pkgconfig.sourceforge.net"
22526 else
22527 if test -f conf.gtktest ; then
22528 :
22529 else
22530 echo "*** Could not run GTK+ test program, checking why..."
22531 ac_save_CFLAGS="$CFLAGS"
22532 ac_save_LIBS="$LIBS"
22533 CFLAGS="$CFLAGS $GTK_CFLAGS"
22534 LIBS="$LIBS $GTK_LIBS"
22535 cat >conftest.$ac_ext <<_ACEOF
22536/* confdefs.h. */
22537_ACEOF
22538cat confdefs.h >>conftest.$ac_ext
22539cat >>conftest.$ac_ext <<_ACEOF
22540/* end confdefs.h. */
22541
22542#include <gtk/gtk.h>
22543#include <stdio.h>
22544
22545int
22546main ()
22547{
22548 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22549 ;
22550 return 0;
22551}
22552_ACEOF
22553rm -f conftest.$ac_objext conftest$ac_exeext
22554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22555 (eval $ac_link) 2>conftest.er1
a848cd7e 22556 ac_status=$?
ac1cb8d3
VS
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
a848cd7e
SC
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
ea7db9ff
DE
22562 { ac_try='test -z "$ac_c_werror_flag"
22563 || test ! -s conftest.err'
ac1cb8d3
VS
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; } &&
22569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 echo "*** The test program compiled, but did not run. This usually means"
22576 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22577 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22578 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22579 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22580 echo "*** is required on your system"
22581 echo "***"
22582 echo "*** If you have an old version installed, it is best to remove it, although"
22583 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22584else
22585 echo "$as_me: failed program was:" >&5
22586sed 's/^/| /' conftest.$ac_ext >&5
22587
22588 echo "*** The test program failed to compile or link. See the file config.log for the"
22589 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22590fi
ac1cb8d3
VS
22591rm -f conftest.err conftest.$ac_objext \
22592 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22593 CFLAGS="$ac_save_CFLAGS"
22594 LIBS="$ac_save_LIBS"
22595 fi
22596 fi
22597 GTK_CFLAGS=""
22598 GTK_LIBS=""
22599 :
22600 fi
22601
22602
22603 rm -f conf.gtktest
22604
22605 else
22606
22607# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22608if test "${with_gtk_prefix+set}" = set; then
22609 withval="$with_gtk_prefix"
22610 gtk_config_prefix="$withval"
22611else
22612 gtk_config_prefix=""
22613fi;
22614
22615# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22616if test "${with_gtk_exec_prefix+set}" = set; then
22617 withval="$with_gtk_exec_prefix"
22618 gtk_config_exec_prefix="$withval"
22619else
22620 gtk_config_exec_prefix=""
22621fi;
22622# Check whether --enable-gtktest or --disable-gtktest was given.
22623if test "${enable_gtktest+set}" = set; then
22624 enableval="$enable_gtktest"
22625
22626else
22627 enable_gtktest=yes
22628fi;
22629
22630 for module in . $GTK_MODULES
22631 do
22632 case "$module" in
22633 gthread)
22634 gtk_config_args="$gtk_config_args gthread"
22635 ;;
22636 esac
22637 done
22638
22639 if test x$gtk_config_exec_prefix != x ; then
22640 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22641 if test x${GTK_CONFIG+set} != xset ; then
22642 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22643 fi
22644 fi
22645 if test x$gtk_config_prefix != x ; then
22646 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22647 if test x${GTK_CONFIG+set} != xset ; then
22648 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22649 fi
22650 fi
22651
22652 # Extract the first word of "gtk-config", so it can be a program name with args.
22653set dummy gtk-config; ac_word=$2
22654echo "$as_me:$LINENO: checking for $ac_word" >&5
22655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22656if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22658else
22659 case $GTK_CONFIG in
22660 [\\/]* | ?:[\\/]*)
22661 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22662 ;;
22663 *)
22664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22665for as_dir in $PATH
22666do
22667 IFS=$as_save_IFS
22668 test -z "$as_dir" && as_dir=.
22669 for ac_exec_ext in '' $ac_executable_extensions; do
22670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22671 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22673 break 2
22674 fi
22675done
22676done
22677
22678 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22679 ;;
22680esac
22681fi
22682GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22683
22684if test -n "$GTK_CONFIG"; then
22685 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22686echo "${ECHO_T}$GTK_CONFIG" >&6
22687else
22688 echo "$as_me:$LINENO: result: no" >&5
22689echo "${ECHO_T}no" >&6
22690fi
22691
22692 min_gtk_version=1.2.7
22693 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22694echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22695 no_gtk=""
22696 if test "$GTK_CONFIG" = "no" ; then
22697 no_gtk=yes
22698 else
22699 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22700 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22701 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22703 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22705 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22707 if test "x$enable_gtktest" = "xyes" ; then
22708 ac_save_CFLAGS="$CFLAGS"
22709 ac_save_LIBS="$LIBS"
22710 CFLAGS="$CFLAGS $GTK_CFLAGS"
22711 LIBS="$GTK_LIBS $LIBS"
22712 rm -f conf.gtktest
22713 if test "$cross_compiling" = yes; then
22714 echo $ac_n "cross compiling; assumed OK... $ac_c"
22715else
22716 cat >conftest.$ac_ext <<_ACEOF
22717/* confdefs.h. */
22718_ACEOF
22719cat confdefs.h >>conftest.$ac_ext
22720cat >>conftest.$ac_ext <<_ACEOF
22721/* end confdefs.h. */
22722
22723#include <gtk/gtk.h>
22724#include <stdio.h>
22725#include <stdlib.h>
22726
22727int
22728main ()
22729{
22730 int major, minor, micro;
22731 char *tmp_version;
22732
22733 system ("touch conf.gtktest");
22734
22735 /* HP/UX 9 (%@#!) writes to sscanf strings */
22736 tmp_version = g_strdup("$min_gtk_version");
22737 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22738 printf("%s, bad version string\n", "$min_gtk_version");
22739 exit(1);
22740 }
22741
22742 if ((gtk_major_version != $gtk_config_major_version) ||
22743 (gtk_minor_version != $gtk_config_minor_version) ||
22744 (gtk_micro_version != $gtk_config_micro_version))
22745 {
22746 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22747 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22748 gtk_major_version, gtk_minor_version, gtk_micro_version);
22749 printf ("*** was found! If gtk-config was correct, then it is best\n");
22750 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22751 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22752 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22753 printf("*** required on your system.\n");
22754 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22755 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22756 printf("*** before re-running configure\n");
22757 }
22758#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22759 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22760 (gtk_minor_version != GTK_MINOR_VERSION) ||
22761 (gtk_micro_version != GTK_MICRO_VERSION))
22762 {
22763 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22764 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22765 printf("*** library (version %d.%d.%d)\n",
22766 gtk_major_version, gtk_minor_version, gtk_micro_version);
22767 }
22768#endif /* defined (GTK_MAJOR_VERSION) ... */
22769 else
22770 {
22771 if ((gtk_major_version > major) ||
22772 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22773 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22774 {
22775 return 0;
22776 }
22777 else
22778 {
22779 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22780 gtk_major_version, gtk_minor_version, gtk_micro_version);
22781 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22782 major, minor, micro);
22783 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22784 printf("***\n");
22785 printf("*** If you have already installed a sufficiently new version, this error\n");
22786 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22787 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22788 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22789 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22790 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22791 printf("*** so that the correct libraries are found at run-time))\n");
22792 }
22793 }
22794 return 1;
22795}
22796
22797_ACEOF
22798rm -f conftest$ac_exeext
22799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>&5
22801 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22806 ac_status=$?
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; }; then
22809 :
22810else
22811 echo "$as_me: program exited with status $ac_status" >&5
22812echo "$as_me: failed program was:" >&5
22813sed 's/^/| /' conftest.$ac_ext >&5
22814
22815( exit $ac_status )
22816no_gtk=yes
22817fi
ac1cb8d3 22818rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22819fi
22820 CFLAGS="$ac_save_CFLAGS"
22821 LIBS="$ac_save_LIBS"
22822 fi
22823 fi
22824 if test "x$no_gtk" = x ; then
22825 echo "$as_me:$LINENO: result: yes" >&5
22826echo "${ECHO_T}yes" >&6
22827 wx_cv_lib_gtk=1.2.7
22828 else
22829 echo "$as_me:$LINENO: result: no" >&5
22830echo "${ECHO_T}no" >&6
22831 if test "$GTK_CONFIG" = "no" ; then
22832 echo "*** The gtk-config script installed by GTK could not be found"
22833 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22834 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22835 echo "*** full path to gtk-config."
22836 else
22837 if test -f conf.gtktest ; then
22838 :
22839 else
22840 echo "*** Could not run GTK test program, checking why..."
22841 CFLAGS="$CFLAGS $GTK_CFLAGS"
22842 LIBS="$LIBS $GTK_LIBS"
22843 cat >conftest.$ac_ext <<_ACEOF
22844/* confdefs.h. */
22845_ACEOF
22846cat confdefs.h >>conftest.$ac_ext
22847cat >>conftest.$ac_ext <<_ACEOF
22848/* end confdefs.h. */
22849
22850#include <gtk/gtk.h>
22851#include <stdio.h>
22852
22853int
22854main ()
22855{
22856 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22857 ;
22858 return 0;
22859}
22860_ACEOF
22861rm -f conftest.$ac_objext conftest$ac_exeext
22862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22863 (eval $ac_link) 2>conftest.er1
a848cd7e 22864 ac_status=$?
ac1cb8d3
VS
22865 grep -v '^ *+' conftest.er1 >conftest.err
22866 rm -f conftest.er1
22867 cat conftest.err >&5
a848cd7e
SC
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } &&
ea7db9ff
DE
22870 { ac_try='test -z "$ac_c_werror_flag"
22871 || test ! -s conftest.err'
ac1cb8d3
VS
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; } &&
22877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 echo "*** The test program compiled, but did not run. This usually means"
22884 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22885 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22886 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22887 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22888 echo "*** is required on your system"
22889 echo "***"
22890 echo "*** If you have an old version installed, it is best to remove it, although"
22891 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22892 echo "***"
22893 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22894 echo "*** came with the system with the command"
22895 echo "***"
22896 echo "*** rpm --erase --nodeps gtk gtk-devel"
22897else
22898 echo "$as_me: failed program was:" >&5
22899sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 echo "*** The test program failed to compile or link. See the file config.log for the"
22902 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22903 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22904 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22905fi
ac1cb8d3
VS
22906rm -f conftest.err conftest.$ac_objext \
22907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22908 CFLAGS="$ac_save_CFLAGS"
22909 LIBS="$ac_save_LIBS"
22910 fi
22911 fi
22912 GTK_CFLAGS=""
22913 GTK_LIBS=""
22914 :
22915 fi
22916
22917
22918 rm -f conf.gtktest
22919
22920
22921 if test -z "$wx_cv_lib_gtk"; then
22922
22923# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22924if test "${with_gtk_prefix+set}" = set; then
22925 withval="$with_gtk_prefix"
22926 gtk_config_prefix="$withval"
22927else
22928 gtk_config_prefix=""
22929fi;
22930
22931# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22932if test "${with_gtk_exec_prefix+set}" = set; then
22933 withval="$with_gtk_exec_prefix"
22934 gtk_config_exec_prefix="$withval"
22935else
22936 gtk_config_exec_prefix=""
22937fi;
22938# Check whether --enable-gtktest or --disable-gtktest was given.
22939if test "${enable_gtktest+set}" = set; then
22940 enableval="$enable_gtktest"
22941
22942else
22943 enable_gtktest=yes
22944fi;
22945
22946 for module in . $GTK_MODULES
22947 do
22948 case "$module" in
22949 gthread)
22950 gtk_config_args="$gtk_config_args gthread"
22951 ;;
22952 esac
22953 done
22954
22955 if test x$gtk_config_exec_prefix != x ; then
22956 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22957 if test x${GTK_CONFIG+set} != xset ; then
22958 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22959 fi
22960 fi
22961 if test x$gtk_config_prefix != x ; then
22962 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22963 if test x${GTK_CONFIG+set} != xset ; then
22964 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22965 fi
22966 fi
22967
22968 # Extract the first word of "gtk-config", so it can be a program name with args.
22969set dummy gtk-config; ac_word=$2
22970echo "$as_me:$LINENO: checking for $ac_word" >&5
22971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22972if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974else
22975 case $GTK_CONFIG in
22976 [\\/]* | ?:[\\/]*)
22977 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22978 ;;
22979 *)
22980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981for as_dir in $PATH
22982do
22983 IFS=$as_save_IFS
22984 test -z "$as_dir" && as_dir=.
22985 for ac_exec_ext in '' $ac_executable_extensions; do
22986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22987 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22989 break 2
22990 fi
22991done
22992done
22993
22994 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22995 ;;
22996esac
22997fi
22998GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22999
23000if test -n "$GTK_CONFIG"; then
23001 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23002echo "${ECHO_T}$GTK_CONFIG" >&6
23003else
23004 echo "$as_me:$LINENO: result: no" >&5
23005echo "${ECHO_T}no" >&6
23006fi
23007
23008 min_gtk_version=1.2.3
23009 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23010echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23011 no_gtk=""
23012 if test "$GTK_CONFIG" = "no" ; then
23013 no_gtk=yes
23014 else
23015 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23016 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23017 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23018 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23019 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23021 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23023 if test "x$enable_gtktest" = "xyes" ; then
23024 ac_save_CFLAGS="$CFLAGS"
23025 ac_save_LIBS="$LIBS"
23026 CFLAGS="$CFLAGS $GTK_CFLAGS"
23027 LIBS="$GTK_LIBS $LIBS"
23028 rm -f conf.gtktest
23029 if test "$cross_compiling" = yes; then
23030 echo $ac_n "cross compiling; assumed OK... $ac_c"
23031else
23032 cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
23038
23039#include <gtk/gtk.h>
23040#include <stdio.h>
23041#include <stdlib.h>
23042
23043int
23044main ()
23045{
23046 int major, minor, micro;
23047 char *tmp_version;
23048
23049 system ("touch conf.gtktest");
23050
23051 /* HP/UX 9 (%@#!) writes to sscanf strings */
23052 tmp_version = g_strdup("$min_gtk_version");
23053 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23054 printf("%s, bad version string\n", "$min_gtk_version");
23055 exit(1);
23056 }
23057
23058 if ((gtk_major_version != $gtk_config_major_version) ||
23059 (gtk_minor_version != $gtk_config_minor_version) ||
23060 (gtk_micro_version != $gtk_config_micro_version))
23061 {
23062 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23063 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23064 gtk_major_version, gtk_minor_version, gtk_micro_version);
23065 printf ("*** was found! If gtk-config was correct, then it is best\n");
23066 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23067 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23068 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23069 printf("*** required on your system.\n");
23070 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23071 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23072 printf("*** before re-running configure\n");
23073 }
23074#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23075 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23076 (gtk_minor_version != GTK_MINOR_VERSION) ||
23077 (gtk_micro_version != GTK_MICRO_VERSION))
23078 {
23079 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23080 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23081 printf("*** library (version %d.%d.%d)\n",
23082 gtk_major_version, gtk_minor_version, gtk_micro_version);
23083 }
23084#endif /* defined (GTK_MAJOR_VERSION) ... */
23085 else
23086 {
23087 if ((gtk_major_version > major) ||
23088 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23089 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23090 {
23091 return 0;
23092 }
23093 else
23094 {
23095 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23096 gtk_major_version, gtk_minor_version, gtk_micro_version);
23097 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23098 major, minor, micro);
23099 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23100 printf("***\n");
23101 printf("*** If you have already installed a sufficiently new version, this error\n");
23102 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23103 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23104 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23105 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23106 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23107 printf("*** so that the correct libraries are found at run-time))\n");
23108 }
23109 }
23110 return 1;
23111}
23112
23113_ACEOF
23114rm -f conftest$ac_exeext
23115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23116 (eval $ac_link) 2>&5
23117 ac_status=$?
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23122 ac_status=$?
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; }; then
23125 :
23126else
23127 echo "$as_me: program exited with status $ac_status" >&5
23128echo "$as_me: failed program was:" >&5
23129sed 's/^/| /' conftest.$ac_ext >&5
23130
23131( exit $ac_status )
23132no_gtk=yes
23133fi
ac1cb8d3 23134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23135fi
23136 CFLAGS="$ac_save_CFLAGS"
23137 LIBS="$ac_save_LIBS"
23138 fi
23139 fi
23140 if test "x$no_gtk" = x ; then
23141 echo "$as_me:$LINENO: result: yes" >&5
23142echo "${ECHO_T}yes" >&6
23143 wx_cv_lib_gtk=1.2.3
23144 else
23145 echo "$as_me:$LINENO: result: no" >&5
23146echo "${ECHO_T}no" >&6
23147 if test "$GTK_CONFIG" = "no" ; then
23148 echo "*** The gtk-config script installed by GTK could not be found"
23149 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23150 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23151 echo "*** full path to gtk-config."
23152 else
23153 if test -f conf.gtktest ; then
23154 :
23155 else
23156 echo "*** Could not run GTK test program, checking why..."
23157 CFLAGS="$CFLAGS $GTK_CFLAGS"
23158 LIBS="$LIBS $GTK_LIBS"
23159 cat >conftest.$ac_ext <<_ACEOF
23160/* confdefs.h. */
23161_ACEOF
23162cat confdefs.h >>conftest.$ac_ext
23163cat >>conftest.$ac_ext <<_ACEOF
23164/* end confdefs.h. */
23165
23166#include <gtk/gtk.h>
23167#include <stdio.h>
23168
23169int
23170main ()
23171{
23172 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23173 ;
23174 return 0;
23175}
23176_ACEOF
23177rm -f conftest.$ac_objext conftest$ac_exeext
23178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23179 (eval $ac_link) 2>conftest.er1
a848cd7e 23180 ac_status=$?
ac1cb8d3
VS
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
a848cd7e
SC
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
ea7db9ff
DE
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
ac1cb8d3
VS
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23199 echo "*** The test program compiled, but did not run. This usually means"
23200 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23201 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23202 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23203 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23204 echo "*** is required on your system"
23205 echo "***"
23206 echo "*** If you have an old version installed, it is best to remove it, although"
23207 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23208 echo "***"
23209 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23210 echo "*** came with the system with the command"
23211 echo "***"
23212 echo "*** rpm --erase --nodeps gtk gtk-devel"
23213else
23214 echo "$as_me: failed program was:" >&5
23215sed 's/^/| /' conftest.$ac_ext >&5
23216
23217 echo "*** The test program failed to compile or link. See the file config.log for the"
23218 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23219 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23220 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23221fi
ac1cb8d3
VS
23222rm -f conftest.err conftest.$ac_objext \
23223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23224 CFLAGS="$ac_save_CFLAGS"
23225 LIBS="$ac_save_LIBS"
23226 fi
23227 fi
23228 GTK_CFLAGS=""
23229 GTK_LIBS=""
23230 :
23231 fi
23232
23233
23234 rm -f conf.gtktest
23235
23236 fi
23237 fi
23238
23239 if test -z "$wx_cv_lib_gtk"; then
23240 wx_cv_lib_gtk=none
23241 else
23242 wx_cv_cflags_gtk=$GTK_CFLAGS
23243 wx_cv_libs_gtk=$GTK_LIBS
23244 fi
23245
23246
23247fi
23248
23249
23250 if test "$gtk_version_cached" = 1; then
23251 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23252echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23253 fi
23254
23255 case "$wx_cv_lib_gtk" in
23256 2.0) WXGTK20=1
23257 TOOLKIT_VERSION=2
23258 ;;
23259 1.2.7) WXGTK127=1
23260 WXGTK12=1
23261 ;;
23262 1.2.3) WXGTK12=1
23263 ;;
23264 *) { { echo "$as_me:$LINENO: error:
23265Please check that gtk-config is in path, the directory
23266where GTK+ libraries are installed (returned by
23267'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23268equivalent variable and GTK+ is version 1.2.3 or above.
23269 " >&5
23270echo "$as_me: error:
23271Please check that gtk-config is in path, the directory
23272where GTK+ libraries are installed (returned by
23273'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23274equivalent variable and GTK+ is version 1.2.3 or above.
23275 " >&2;}
23276 { (exit 1); exit 1; }; }
23277 ;;
23278 esac
23279
23280 if test "$WXGTK20" = 1; then
23281 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23282
23283 succeeded=no
23284
23285 if test -z "$PKG_CONFIG"; then
23286 # Extract the first word of "pkg-config", so it can be a program name with args.
23287set dummy pkg-config; ac_word=$2
23288echo "$as_me:$LINENO: checking for $ac_word" >&5
23289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23290if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23291 echo $ECHO_N "(cached) $ECHO_C" >&6
23292else
23293 case $PKG_CONFIG in
23294 [\\/]* | ?:[\\/]*)
23295 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23296 ;;
23297 *)
23298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23299for as_dir in $PATH
23300do
23301 IFS=$as_save_IFS
23302 test -z "$as_dir" && as_dir=.
23303 for ac_exec_ext in '' $ac_executable_extensions; do
23304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23305 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23307 break 2
23308 fi
23309done
23310done
23311
23312 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23313 ;;
23314esac
23315fi
23316PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23317
23318if test -n "$PKG_CONFIG"; then
23319 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23320echo "${ECHO_T}$PKG_CONFIG" >&6
23321else
23322 echo "$as_me:$LINENO: result: no" >&5
23323echo "${ECHO_T}no" >&6
23324fi
23325
23326 fi
23327
23328 if test "$PKG_CONFIG" = "no" ; then
23329 echo "*** The pkg-config script could not be found. Make sure it is"
23330 echo "*** in your path, or set the PKG_CONFIG environment variable"
23331 echo "*** to the full path to pkg-config."
23332 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23333 else
23334 PKG_CONFIG_MIN_VERSION=0.9.0
23335 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23336 echo "$as_me:$LINENO: checking for pangoft2" >&5
23337echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23338
23339 if $PKG_CONFIG --exists "pangoft2" ; then
23340 echo "$as_me:$LINENO: result: yes" >&5
23341echo "${ECHO_T}yes" >&6
23342 succeeded=yes
23343
23344 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23345echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23346 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23347 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23348echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23349
23350 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23351echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23352 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23353 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23354echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23355 else
23356 PANGOFT2_CFLAGS=""
23357 PANGOFT2_LIBS=""
23358 ## If we have a custom action on failure, don't print errors, but
23359 ## do set a variable so people can do so.
23360 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23361
23362 fi
23363
23364
23365
23366 else
23367 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23368 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23369 fi
23370 fi
23371
23372 if test $succeeded = yes; then
23373
23374 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23375 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23376
23377 else
23378
23379 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23380echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23381 wxUSE_PRINTING_ARCHITECTURE="no"
23382
23383
23384 fi
23385
23386 fi
304205f1
VS
23387
23388 save_CFLAGS="$CFLAGS"
23389 save_LIBS="$LIBS"
23390 CFLAGS="$CFLAGS $GTK_CFLAGS"
23391 LIBS="$LIBS $GTK_LIBS"
23392
23393for ac_func in pango_font_family_is_monospace
23394do
23395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23396echo "$as_me:$LINENO: checking for $ac_func" >&5
23397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23398if eval "test \"\${$as_ac_var+set}\" = set"; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23400else
23401 cat >conftest.$ac_ext <<_ACEOF
23402/* confdefs.h. */
23403_ACEOF
23404cat confdefs.h >>conftest.$ac_ext
23405cat >>conftest.$ac_ext <<_ACEOF
23406/* end confdefs.h. */
23407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23409#define $ac_func innocuous_$ac_func
23410
23411/* System header to define __stub macros and hopefully few prototypes,
23412 which can conflict with char $ac_func (); below.
23413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23414 <limits.h> exists even on freestanding compilers. */
23415
23416#ifdef __STDC__
23417# include <limits.h>
23418#else
23419# include <assert.h>
23420#endif
23421
23422#undef $ac_func
23423
23424/* Override any gcc2 internal prototype to avoid an error. */
23425#ifdef __cplusplus
23426extern "C"
23427{
23428#endif
23429/* We use char because int might match the return type of a gcc2
23430 builtin and then its argument prototype would still apply. */
23431char $ac_func ();
23432/* The GNU C library defines this for functions which it implements
23433 to always fail with ENOSYS. Some functions are actually named
23434 something starting with __ and the normal name is an alias. */
23435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23436choke me
23437#else
23438char (*f) () = $ac_func;
23439#endif
23440#ifdef __cplusplus
23441}
23442#endif
23443
23444int
23445main ()
23446{
23447return f != $ac_func;
23448 ;
23449 return 0;
23450}
23451_ACEOF
23452rm -f conftest.$ac_objext conftest$ac_exeext
23453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23454 (eval $ac_link) 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } &&
ea7db9ff
DE
23461 { ac_try='test -z "$ac_c_werror_flag"
23462 || test ! -s conftest.err'
304205f1
VS
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; } &&
23468 { ac_try='test -s conftest$ac_exeext'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; }; then
23474 eval "$as_ac_var=yes"
23475else
23476 echo "$as_me: failed program was:" >&5
23477sed 's/^/| /' conftest.$ac_ext >&5
23478
23479eval "$as_ac_var=no"
23480fi
23481rm -f conftest.err conftest.$ac_objext \
23482 conftest$ac_exeext conftest.$ac_ext
23483fi
23484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23486if test `eval echo '${'$as_ac_var'}'` = yes; then
23487 cat >>confdefs.h <<_ACEOF
23488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23489_ACEOF
23490
23491fi
23492done
23493
23494 CFLAGS="$save_CFLAGS"
23495 LIBS="$save_LIBS"
a848cd7e
SC
23496 else
23497 if test "$wxUSE_UNICODE" = "yes"; then
23498 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23499echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23500 wxUSE_UNICODE=no
23501 fi
23502 fi
23503
23504 if test "$USE_DARWIN" != 1; then
23505
23506for ac_func in poll
23507do
23508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23509echo "$as_me:$LINENO: checking for $ac_func" >&5
23510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23511if eval "test \"\${$as_ac_var+set}\" = set"; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23513else
23514 cat >conftest.$ac_ext <<_ACEOF
23515/* confdefs.h. */
23516_ACEOF
23517cat confdefs.h >>conftest.$ac_ext
23518cat >>conftest.$ac_ext <<_ACEOF
23519/* end confdefs.h. */
ac1cb8d3
VS
23520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23522#define $ac_func innocuous_$ac_func
23523
a848cd7e
SC
23524/* System header to define __stub macros and hopefully few prototypes,
23525 which can conflict with char $ac_func (); below.
23526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23527 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23528
a848cd7e
SC
23529#ifdef __STDC__
23530# include <limits.h>
23531#else
23532# include <assert.h>
23533#endif
ac1cb8d3
VS
23534
23535#undef $ac_func
23536
a848cd7e
SC
23537/* Override any gcc2 internal prototype to avoid an error. */
23538#ifdef __cplusplus
23539extern "C"
23540{
23541#endif
23542/* We use char because int might match the return type of a gcc2
23543 builtin and then its argument prototype would still apply. */
23544char $ac_func ();
23545/* The GNU C library defines this for functions which it implements
23546 to always fail with ENOSYS. Some functions are actually named
23547 something starting with __ and the normal name is an alias. */
23548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23549choke me
23550#else
23551char (*f) () = $ac_func;
23552#endif
23553#ifdef __cplusplus
23554}
23555#endif
23556
23557int
23558main ()
23559{
23560return f != $ac_func;
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext conftest$ac_exeext
23566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23567 (eval $ac_link) 2>conftest.er1
a848cd7e 23568 ac_status=$?
ac1cb8d3
VS
23569 grep -v '^ *+' conftest.er1 >conftest.err
23570 rm -f conftest.er1
23571 cat conftest.err >&5
a848cd7e
SC
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } &&
ea7db9ff
DE
23574 { ac_try='test -z "$ac_c_werror_flag"
23575 || test ! -s conftest.err'
ac1cb8d3
VS
23576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577 (eval $ac_try) 2>&5
23578 ac_status=$?
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); }; } &&
23581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 eval "$as_ac_var=yes"
23588else
23589 echo "$as_me: failed program was:" >&5
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
23592eval "$as_ac_var=no"
23593fi
ac1cb8d3
VS
23594rm -f conftest.err conftest.$ac_objext \
23595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23596fi
23597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23599if test `eval echo '${'$as_ac_var'}'` = yes; then
23600 cat >>confdefs.h <<_ACEOF
23601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23602_ACEOF
23603
23604fi
23605done
23606
23607 fi
23608
23609 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23610 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23611
23612 AFMINSTALL=afminstall
23613 TOOLKIT=GTK
23614 GUIDIST=GTK_DIST
23615
23616 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23617echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23618if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23620else
23621 ac_check_lib_save_LIBS=$LIBS
23622LIBS="-lgdk $LIBS"
23623cat >conftest.$ac_ext <<_ACEOF
23624/* confdefs.h. */
23625_ACEOF
23626cat confdefs.h >>conftest.$ac_ext
23627cat >>conftest.$ac_ext <<_ACEOF
23628/* end confdefs.h. */
23629
23630/* Override any gcc2 internal prototype to avoid an error. */
23631#ifdef __cplusplus
23632extern "C"
23633#endif
23634/* We use char because int might match the return type of a gcc2
23635 builtin and then its argument prototype would still apply. */
23636char gdk_im_open ();
23637int
23638main ()
23639{
23640gdk_im_open ();
23641 ;
23642 return 0;
23643}
23644_ACEOF
23645rm -f conftest.$ac_objext conftest$ac_exeext
23646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23647 (eval $ac_link) 2>conftest.er1
a848cd7e 23648 ac_status=$?
ac1cb8d3
VS
23649 grep -v '^ *+' conftest.er1 >conftest.err
23650 rm -f conftest.er1
23651 cat conftest.err >&5
a848cd7e
SC
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } &&
ea7db9ff
DE
23654 { ac_try='test -z "$ac_c_werror_flag"
23655 || test ! -s conftest.err'
ac1cb8d3
VS
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; } &&
23661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23664 ac_status=$?
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 ac_cv_lib_gdk_gdk_im_open=yes
23668else
23669 echo "$as_me: failed program was:" >&5
23670sed 's/^/| /' conftest.$ac_ext >&5
23671
23672ac_cv_lib_gdk_gdk_im_open=no
23673fi
ac1cb8d3
VS
23674rm -f conftest.err conftest.$ac_objext \
23675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23676LIBS=$ac_check_lib_save_LIBS
23677fi
23678echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23679echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23680if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23681 cat >>confdefs.h <<\_ACEOF
23682#define HAVE_XIM 1
23683_ACEOF
23684
23685fi
23686
23687
23688
23689 if test "$wxUSE_GPE" = "yes"; then
23690 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23691echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23692
23693ac_find_libraries=
23694for ac_dir in $SEARCH_LIB /usr/lib;
23695 do
23696 for ac_extension in a so sl dylib; do
23697 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23698 ac_find_libraries=$ac_dir
23699 break 2
23700 fi
23701 done
23702 done
23703
23704 if test "$ac_find_libraries" != "" ; then
23705
23706 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23707 result=$?
23708 if test $result = 0; then
23709 ac_path_to_link=""
23710 else
23711 ac_path_to_link=" -L$ac_find_libraries"
23712 fi
23713
23714 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23715 WXGPE=1
23716 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23717echo "${ECHO_T}found at $ac_find_libraries" >&6
23718 else
23719 echo "$as_me:$LINENO: result: not found" >&5
23720echo "${ECHO_T}not found" >&6
23721 fi
23722
23723 fi
23724 fi
23725
23726 if test "$wxUSE_MGL" = 1; then
23727 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23728echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23729 if test "x$MGL_ROOT" = x ; then
23730 echo "$as_me:$LINENO: result: not found" >&5
23731echo "${ECHO_T}not found" >&6
23732 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23733echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23734 { (exit 1); exit 1; }; }
23735 else
23736 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23737echo "${ECHO_T}$MGL_ROOT" >&6
23738 fi
23739
23740 echo "$as_me:$LINENO: checking for libmgl location" >&5
23741echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23742 case "${host}" in
23743 *-*-linux* )
23744 if test "x$wxUSE_SHARED" = xyes ; then
23745 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23746 else
23747 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23748 fi
23749 ;;
23750 *-pc-msdosdjgpp )
23751 mgl_os_candidates="dos32/dj2"
23752 ;;
23753 *)
23754 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23755echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23756 { (exit 1); exit 1; }; }
23757 esac
23758
23759 mgl_lib_type=""
23760 mgl_os=""
23761
23762 for mgl_os_i in $mgl_os_candidates ; do
23763 if test "x$mgl_os" = x ; then
23764 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23765 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23766 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23767 mgl_lib_type=debug
23768 mgl_os=$mgl_os_i
23769 fi
23770 fi
23771 if test "x$mgl_lib_type" = x ; then
23772 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23773 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23774 mgl_lib_type=release
23775 mgl_os=$mgl_os_i
23776 fi
23777 fi
23778 fi
23779 done
23780
23781 if test "x$mgl_os" = x ; then
23782 echo "$as_me:$LINENO: result: not found" >&5
23783echo "${ECHO_T}not found" >&6
23784 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23785echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23786 { (exit 1); exit 1; }; }
23787 fi
23788 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23789echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23790
23791 wxUSE_UNIVERSAL="yes"
23792
23793 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23794 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23795
23796 AFMINSTALL=afminstall
23797 TOOLKIT=MGL
23798 GUIDIST=MGL_DIST
23799 fi
23800
23801 if test "$wxUSE_MICROWIN" = 1; then
23802 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23803echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23804 if test "x$MICROWINDOWS" = x ; then
23805 echo "$as_me:$LINENO: result: not found" >&5
23806echo "${ECHO_T}not found" >&6
23807 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23808echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23809 { (exit 1); exit 1; }; }
23810 else
23811 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23812echo "${ECHO_T}$MICROWINDOWS" >&6
23813 fi
23814
23815 if test -f $MICROWINDOWS/lib/libmwin.a; then
23816 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23817echo "${ECHO_T}MicroWindows' libraries found." >&6
23818 else
23819 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23820echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23821 { (exit 1); exit 1; }; }
23822 fi
23823
23824 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23825 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23826
23827 wxUSE_UNIVERSAL="yes"
23828
23829 AFMINSTALL=afminstall
23830 TOOLKIT=MICROWIN
23831 GUIDIST=MICROWIN_DIST
23832
23833 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23834 fi
23835
74b84332 23836 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ea7db9ff 23837 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23838echo $ECHO_N "checking for X... $ECHO_C" >&6
23839
23840
23841# Check whether --with-x or --without-x was given.
23842if test "${with_x+set}" = set; then
23843 withval="$with_x"
23844
23845fi;
23846# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23847if test "x$with_x" = xno; then
23848 # The user explicitly disabled X.
23849 have_x=disabled
23850else
23851 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23852 # Both variables are already set.
23853 have_x=yes
23854 else
23855 if test "${ac_cv_have_x+set}" = set; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23857else
23858 # One or both of the vars are not set, and there is no cached value.
23859ac_x_includes=no ac_x_libraries=no
23860rm -fr conftest.dir
23861if mkdir conftest.dir; then
23862 cd conftest.dir
23863 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23864 cat >Imakefile <<'_ACEOF'
23865acfindx:
23866 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23867_ACEOF
23868 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23870 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23871 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23872 for ac_extension in a so sl; do
23873 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23874 test -f $ac_im_libdir/libX11.$ac_extension; then
23875 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23876 fi
23877 done
23878 # Screen out bogus values from the imake configuration. They are
23879 # bogus both because they are the default anyway, and because
23880 # using them would break gcc on systems where it needs fixed includes.
23881 case $ac_im_incroot in
23882 /usr/include) ;;
23883 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23884 esac
23885 case $ac_im_usrlibdir in
23886 /usr/lib | /lib) ;;
23887 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23888 esac
23889 fi
23890 cd ..
23891 rm -fr conftest.dir
23892fi
23893
23894# Standard set of common directories for X headers.
23895# Check X11 before X11Rn because it is often a symlink to the current release.
23896ac_x_header_dirs='
23897/usr/X11/include
23898/usr/X11R6/include
23899/usr/X11R5/include
23900/usr/X11R4/include
23901
23902/usr/include/X11
23903/usr/include/X11R6
23904/usr/include/X11R5
23905/usr/include/X11R4
23906
23907/usr/local/X11/include
23908/usr/local/X11R6/include
23909/usr/local/X11R5/include
23910/usr/local/X11R4/include
23911
23912/usr/local/include/X11
23913/usr/local/include/X11R6
23914/usr/local/include/X11R5
23915/usr/local/include/X11R4
23916
23917/usr/X386/include
23918/usr/x386/include
23919/usr/XFree86/include/X11
23920
23921/usr/include
23922/usr/local/include
23923/usr/unsupported/include
23924/usr/athena/include
23925/usr/local/x11r5/include
23926/usr/lpp/Xamples/include
23927
23928/usr/openwin/include
23929/usr/openwin/share/include'
23930
23931if test "$ac_x_includes" = no; then
ea7db9ff 23932 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
23933 # First, try using that file with no special directory specified.
23934 cat >conftest.$ac_ext <<_ACEOF
23935/* confdefs.h. */
23936_ACEOF
23937cat confdefs.h >>conftest.$ac_ext
23938cat >>conftest.$ac_ext <<_ACEOF
23939/* end confdefs.h. */
23940#include <X11/Intrinsic.h>
23941_ACEOF
23942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } >/dev/null; then
23950 if test -s conftest.err; then
23951 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23953 else
23954 ac_cpp_err=
23955 fi
23956else
23957 ac_cpp_err=yes
23958fi
23959if test -z "$ac_cpp_err"; then
23960 # We can compile using X headers with no special include directory.
23961ac_x_includes=
23962else
23963 echo "$as_me: failed program was:" >&5
23964sed 's/^/| /' conftest.$ac_ext >&5
23965
23966 for ac_dir in $ac_x_header_dirs; do
23967 if test -r "$ac_dir/X11/Intrinsic.h"; then
23968 ac_x_includes=$ac_dir
23969 break
23970 fi
23971done
23972fi
23973rm -f conftest.err conftest.$ac_ext
23974fi # $ac_x_includes = no
23975
23976if test "$ac_x_libraries" = no; then
23977 # Check for the libraries.
23978 # See if we find them without any special options.
23979 # Don't add to $LIBS permanently.
23980 ac_save_LIBS=$LIBS
23981 LIBS="-lXt $LIBS"
23982 cat >conftest.$ac_ext <<_ACEOF
23983/* confdefs.h. */
23984_ACEOF
23985cat confdefs.h >>conftest.$ac_ext
23986cat >>conftest.$ac_ext <<_ACEOF
23987/* end confdefs.h. */
23988#include <X11/Intrinsic.h>
23989int
23990main ()
23991{
23992XtMalloc (0)
23993 ;
23994 return 0;
23995}
23996_ACEOF
23997rm -f conftest.$ac_objext conftest$ac_exeext
23998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23999 (eval $ac_link) 2>conftest.er1
a848cd7e 24000 ac_status=$?
ac1cb8d3
VS
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
a848cd7e
SC
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
ea7db9ff
DE
24006 { ac_try='test -z "$ac_c_werror_flag"
24007 || test ! -s conftest.err'
ac1cb8d3
VS
24008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; } &&
24013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); }; }; then
24019 LIBS=$ac_save_LIBS
24020# We can link X programs with no special library path.
24021ac_x_libraries=
24022else
24023 echo "$as_me: failed program was:" >&5
24024sed 's/^/| /' conftest.$ac_ext >&5
24025
24026LIBS=$ac_save_LIBS
24027for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24028do
24029 # Don't even attempt the hair of trying to link an X program!
24030 for ac_extension in a so sl; do
24031 if test -r $ac_dir/libXt.$ac_extension; then
24032 ac_x_libraries=$ac_dir
24033 break 2
24034 fi
24035 done
24036done
24037fi
ac1cb8d3
VS
24038rm -f conftest.err conftest.$ac_objext \
24039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24040fi # $ac_x_libraries = no
24041
24042if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24043 # Didn't find X anywhere. Cache the known absence of X.
24044 ac_cv_have_x="have_x=no"
24045else
24046 # Record where we found X for the cache.
24047 ac_cv_have_x="have_x=yes \
ac1cb8d3 24048 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24049fi
24050fi
24051
24052 fi
24053 eval "$ac_cv_have_x"
24054fi # $with_x != no
24055
24056if test "$have_x" != yes; then
24057 echo "$as_me:$LINENO: result: $have_x" >&5
24058echo "${ECHO_T}$have_x" >&6
24059 no_x=yes
24060else
24061 # If each of the values was on the command line, it overrides each guess.
24062 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24063 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24064 # Update the cache value to reflect the command line values.
24065 ac_cv_have_x="have_x=yes \
24066 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ea7db9ff
DE
24067 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24068echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24069fi
24070
24071if test "$no_x" = yes; then
24072 # Not all programs may use this symbol, but it does not hurt to define it.
24073
24074cat >>confdefs.h <<\_ACEOF
24075#define X_DISPLAY_MISSING 1
24076_ACEOF
24077
24078 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24079else
24080 if test -n "$x_includes"; then
24081 X_CFLAGS="$X_CFLAGS -I$x_includes"
24082 fi
24083
24084 # It would also be nice to do this for all -L options, not just this one.
24085 if test -n "$x_libraries"; then
24086 X_LIBS="$X_LIBS -L$x_libraries"
24087 # For Solaris; some versions of Sun CC require a space after -R and
24088 # others require no space. Words are not sufficient . . . .
24089 case `(uname -sr) 2>/dev/null` in
24090 "SunOS 5"*)
24091 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24092echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24093 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24094 cat >conftest.$ac_ext <<_ACEOF
24095/* confdefs.h. */
24096_ACEOF
24097cat confdefs.h >>conftest.$ac_ext
24098cat >>conftest.$ac_ext <<_ACEOF
24099/* end confdefs.h. */
24100
24101int
24102main ()
24103{
24104
24105 ;
24106 return 0;
24107}
24108_ACEOF
24109rm -f conftest.$ac_objext conftest$ac_exeext
24110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24111 (eval $ac_link) 2>conftest.er1
a848cd7e 24112 ac_status=$?
ac1cb8d3
VS
24113 grep -v '^ *+' conftest.er1 >conftest.err
24114 rm -f conftest.er1
24115 cat conftest.err >&5
a848cd7e
SC
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } &&
ea7db9ff
DE
24118 { ac_try='test -z "$ac_c_werror_flag"
24119 || test ! -s conftest.err'
ac1cb8d3
VS
24120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; } &&
24125 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24128 ac_status=$?
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; }; then
24131 ac_R_nospace=yes
24132else
24133 echo "$as_me: failed program was:" >&5
24134sed 's/^/| /' conftest.$ac_ext >&5
24135
24136ac_R_nospace=no
24137fi
ac1cb8d3
VS
24138rm -f conftest.err conftest.$ac_objext \
24139 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24140 if test $ac_R_nospace = yes; then
24141 echo "$as_me:$LINENO: result: no" >&5
24142echo "${ECHO_T}no" >&6
24143 X_LIBS="$X_LIBS -R$x_libraries"
24144 else
24145 LIBS="$ac_xsave_LIBS -R $x_libraries"
24146 cat >conftest.$ac_ext <<_ACEOF
24147/* confdefs.h. */
24148_ACEOF
24149cat confdefs.h >>conftest.$ac_ext
24150cat >>conftest.$ac_ext <<_ACEOF
24151/* end confdefs.h. */
24152
24153int
24154main ()
24155{
24156
24157 ;
24158 return 0;
24159}
24160_ACEOF
24161rm -f conftest.$ac_objext conftest$ac_exeext
24162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24163 (eval $ac_link) 2>conftest.er1
a848cd7e 24164 ac_status=$?
ac1cb8d3
VS
24165 grep -v '^ *+' conftest.er1 >conftest.err
24166 rm -f conftest.er1
24167 cat conftest.err >&5
a848cd7e
SC
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); } &&
ea7db9ff
DE
24170 { ac_try='test -z "$ac_c_werror_flag"
24171 || test ! -s conftest.err'
ac1cb8d3
VS
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24174 ac_status=$?
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; } &&
24177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24179 (eval $ac_try) 2>&5
24180 ac_status=$?
24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); }; }; then
24183 ac_R_space=yes
24184else
24185 echo "$as_me: failed program was:" >&5
24186sed 's/^/| /' conftest.$ac_ext >&5
24187
24188ac_R_space=no
24189fi
ac1cb8d3
VS
24190rm -f conftest.err conftest.$ac_objext \
24191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24192 if test $ac_R_space = yes; then
24193 echo "$as_me:$LINENO: result: yes" >&5
24194echo "${ECHO_T}yes" >&6
24195 X_LIBS="$X_LIBS -R $x_libraries"
24196 else
24197 echo "$as_me:$LINENO: result: neither works" >&5
24198echo "${ECHO_T}neither works" >&6
24199 fi
24200 fi
24201 LIBS=$ac_xsave_LIBS
24202 esac
24203 fi
24204
24205 # Check for system-dependent libraries X programs must link with.
24206 # Do this before checking for the system-independent R6 libraries
24207 # (-lICE), since we may need -lsocket or whatever for X linking.
24208
24209 if test "$ISC" = yes; then
24210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24211 else
24212 # Martyn Johnson says this is needed for Ultrix, if the X
24213 # libraries were built with DECnet support. And Karl Berry says
24214 # the Alpha needs dnet_stub (dnet does not exist).
24215 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24216 cat >conftest.$ac_ext <<_ACEOF
24217/* confdefs.h. */
24218_ACEOF
24219cat confdefs.h >>conftest.$ac_ext
24220cat >>conftest.$ac_ext <<_ACEOF
24221/* end confdefs.h. */
24222
24223/* Override any gcc2 internal prototype to avoid an error. */
24224#ifdef __cplusplus
24225extern "C"
24226#endif
24227/* We use char because int might match the return type of a gcc2
24228 builtin and then its argument prototype would still apply. */
24229char XOpenDisplay ();
24230int
24231main ()
24232{
24233XOpenDisplay ();
24234 ;
24235 return 0;
24236}
24237_ACEOF
24238rm -f conftest.$ac_objext conftest$ac_exeext
24239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24240 (eval $ac_link) 2>conftest.er1
a848cd7e 24241 ac_status=$?
ac1cb8d3
VS
24242 grep -v '^ *+' conftest.er1 >conftest.err
24243 rm -f conftest.er1
24244 cat conftest.err >&5
a848cd7e
SC
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } &&
ea7db9ff
DE
24247 { ac_try='test -z "$ac_c_werror_flag"
24248 || test ! -s conftest.err'
ac1cb8d3
VS
24249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24250 (eval $ac_try) 2>&5
24251 ac_status=$?
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); }; } &&
24254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24256 (eval $ac_try) 2>&5
24257 ac_status=$?
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); }; }; then
24260 :
24261else
24262 echo "$as_me: failed program was:" >&5
24263sed 's/^/| /' conftest.$ac_ext >&5
24264
24265echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24266echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24267if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24269else
24270 ac_check_lib_save_LIBS=$LIBS
24271LIBS="-ldnet $LIBS"
24272cat >conftest.$ac_ext <<_ACEOF
24273/* confdefs.h. */
24274_ACEOF
24275cat confdefs.h >>conftest.$ac_ext
24276cat >>conftest.$ac_ext <<_ACEOF
24277/* end confdefs.h. */
24278
24279/* Override any gcc2 internal prototype to avoid an error. */
24280#ifdef __cplusplus
24281extern "C"
24282#endif
24283/* We use char because int might match the return type of a gcc2
24284 builtin and then its argument prototype would still apply. */
24285char dnet_ntoa ();
24286int
24287main ()
24288{
24289dnet_ntoa ();
24290 ;
24291 return 0;
24292}
24293_ACEOF
24294rm -f conftest.$ac_objext conftest$ac_exeext
24295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24296 (eval $ac_link) 2>conftest.er1
a848cd7e 24297 ac_status=$?
ac1cb8d3
VS
24298 grep -v '^ *+' conftest.er1 >conftest.err
24299 rm -f conftest.er1
24300 cat conftest.err >&5
a848cd7e
SC
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); } &&
ea7db9ff
DE
24303 { ac_try='test -z "$ac_c_werror_flag"
24304 || test ! -s conftest.err'
ac1cb8d3
VS
24305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24306 (eval $ac_try) 2>&5
24307 ac_status=$?
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); }; } &&
24310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312 (eval $ac_try) 2>&5
24313 ac_status=$?
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; }; then
24316 ac_cv_lib_dnet_dnet_ntoa=yes
24317else
24318 echo "$as_me: failed program was:" >&5
24319sed 's/^/| /' conftest.$ac_ext >&5
24320
24321ac_cv_lib_dnet_dnet_ntoa=no
24322fi
ac1cb8d3
VS
24323rm -f conftest.err conftest.$ac_objext \
24324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24325LIBS=$ac_check_lib_save_LIBS
24326fi
24327echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24328echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24329if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24330 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24331fi
24332
24333 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24334 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24335echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24336if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24337 echo $ECHO_N "(cached) $ECHO_C" >&6
24338else
24339 ac_check_lib_save_LIBS=$LIBS
24340LIBS="-ldnet_stub $LIBS"
24341cat >conftest.$ac_ext <<_ACEOF
24342/* confdefs.h. */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h. */
24347
24348/* Override any gcc2 internal prototype to avoid an error. */
24349#ifdef __cplusplus
24350extern "C"
24351#endif
24352/* We use char because int might match the return type of a gcc2
24353 builtin and then its argument prototype would still apply. */
24354char dnet_ntoa ();
24355int
24356main ()
24357{
24358dnet_ntoa ();
24359 ;
24360 return 0;
24361}
24362_ACEOF
24363rm -f conftest.$ac_objext conftest$ac_exeext
24364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24365 (eval $ac_link) 2>conftest.er1
a848cd7e 24366 ac_status=$?
ac1cb8d3
VS
24367 grep -v '^ *+' conftest.er1 >conftest.err
24368 rm -f conftest.er1
24369 cat conftest.err >&5
a848cd7e
SC
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
ea7db9ff
DE
24372 { ac_try='test -z "$ac_c_werror_flag"
24373 || test ! -s conftest.err'
ac1cb8d3
VS
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; } &&
24379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; }; then
24385 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24386else
24387 echo "$as_me: failed program was:" >&5
24388sed 's/^/| /' conftest.$ac_ext >&5
24389
24390ac_cv_lib_dnet_stub_dnet_ntoa=no
24391fi
ac1cb8d3
VS
24392rm -f conftest.err conftest.$ac_objext \
24393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24394LIBS=$ac_check_lib_save_LIBS
24395fi
24396echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24397echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24398if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24399 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24400fi
24401
24402 fi
24403fi
ac1cb8d3
VS
24404rm -f conftest.err conftest.$ac_objext \
24405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24406 LIBS="$ac_xsave_LIBS"
24407
24408 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24409 # to get the SysV transport functions.
24410 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24411 # needs -lnsl.
24412 # The nsl library prevents programs from opening the X display
24413 # on Irix 5.2, according to T.E. Dickey.
24414 # The functions gethostbyname, getservbyname, and inet_addr are
24415 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24416 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24417echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24418if test "${ac_cv_func_gethostbyname+set}" = set; then
24419 echo $ECHO_N "(cached) $ECHO_C" >&6
24420else
24421 cat >conftest.$ac_ext <<_ACEOF
24422/* confdefs.h. */
24423_ACEOF
24424cat confdefs.h >>conftest.$ac_ext
24425cat >>conftest.$ac_ext <<_ACEOF
24426/* end confdefs.h. */
ac1cb8d3
VS
24427/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24429#define gethostbyname innocuous_gethostbyname
24430
a848cd7e
SC
24431/* System header to define __stub macros and hopefully few prototypes,
24432 which can conflict with char gethostbyname (); below.
24433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24434 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24435
a848cd7e
SC
24436#ifdef __STDC__
24437# include <limits.h>
24438#else
24439# include <assert.h>
24440#endif
ac1cb8d3
VS
24441
24442#undef gethostbyname
24443
a848cd7e
SC
24444/* Override any gcc2 internal prototype to avoid an error. */
24445#ifdef __cplusplus
24446extern "C"
24447{
24448#endif
24449/* We use char because int might match the return type of a gcc2
24450 builtin and then its argument prototype would still apply. */
24451char gethostbyname ();
24452/* The GNU C library defines this for functions which it implements
24453 to always fail with ENOSYS. Some functions are actually named
24454 something starting with __ and the normal name is an alias. */
24455#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24456choke me
24457#else
24458char (*f) () = gethostbyname;
24459#endif
24460#ifdef __cplusplus
24461}
24462#endif
24463
24464int
24465main ()
24466{
24467return f != gethostbyname;
24468 ;
24469 return 0;
24470}
24471_ACEOF
24472rm -f conftest.$ac_objext conftest$ac_exeext
24473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24474 (eval $ac_link) 2>conftest.er1
a848cd7e 24475 ac_status=$?
ac1cb8d3
VS
24476 grep -v '^ *+' conftest.er1 >conftest.err
24477 rm -f conftest.er1
24478 cat conftest.err >&5
a848cd7e
SC
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } &&
ea7db9ff
DE
24481 { ac_try='test -z "$ac_c_werror_flag"
24482 || test ! -s conftest.err'
ac1cb8d3
VS
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; } &&
24488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490 (eval $ac_try) 2>&5
24491 ac_status=$?
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); }; }; then
24494 ac_cv_func_gethostbyname=yes
24495else
24496 echo "$as_me: failed program was:" >&5
24497sed 's/^/| /' conftest.$ac_ext >&5
24498
24499ac_cv_func_gethostbyname=no
24500fi
ac1cb8d3
VS
24501rm -f conftest.err conftest.$ac_objext \
24502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24503fi
24504echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24505echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24506
24507 if test $ac_cv_func_gethostbyname = no; then
24508 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24509echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24510if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24511 echo $ECHO_N "(cached) $ECHO_C" >&6
24512else
24513 ac_check_lib_save_LIBS=$LIBS
24514LIBS="-lnsl $LIBS"
24515cat >conftest.$ac_ext <<_ACEOF
24516/* confdefs.h. */
24517_ACEOF
24518cat confdefs.h >>conftest.$ac_ext
24519cat >>conftest.$ac_ext <<_ACEOF
24520/* end confdefs.h. */
24521
24522/* Override any gcc2 internal prototype to avoid an error. */
24523#ifdef __cplusplus
24524extern "C"
24525#endif
24526/* We use char because int might match the return type of a gcc2
24527 builtin and then its argument prototype would still apply. */
24528char gethostbyname ();
24529int
24530main ()
24531{
24532gethostbyname ();
24533 ;
24534 return 0;
24535}
24536_ACEOF
24537rm -f conftest.$ac_objext conftest$ac_exeext
24538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24539 (eval $ac_link) 2>conftest.er1
24540 ac_status=$?
24541 grep -v '^ *+' conftest.er1 >conftest.err
24542 rm -f conftest.er1
24543 cat conftest.err >&5
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } &&
ea7db9ff
DE
24546 { ac_try='test -z "$ac_c_werror_flag"
24547 || test ! -s conftest.err'
ac1cb8d3
VS
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; } &&
24553 { ac_try='test -s conftest$ac_exeext'
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; }; then
24559 ac_cv_lib_nsl_gethostbyname=yes
24560else
24561 echo "$as_me: failed program was:" >&5
24562sed 's/^/| /' conftest.$ac_ext >&5
24563
24564ac_cv_lib_nsl_gethostbyname=no
24565fi
24566rm -f conftest.err conftest.$ac_objext \
24567 conftest$ac_exeext conftest.$ac_ext
24568LIBS=$ac_check_lib_save_LIBS
24569fi
24570echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24571echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24572if test $ac_cv_lib_nsl_gethostbyname = yes; then
24573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24574fi
24575
24576 if test $ac_cv_lib_nsl_gethostbyname = no; then
24577 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24578echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24579if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24580 echo $ECHO_N "(cached) $ECHO_C" >&6
24581else
24582 ac_check_lib_save_LIBS=$LIBS
24583LIBS="-lbsd $LIBS"
24584cat >conftest.$ac_ext <<_ACEOF
24585/* confdefs.h. */
24586_ACEOF
24587cat confdefs.h >>conftest.$ac_ext
24588cat >>conftest.$ac_ext <<_ACEOF
24589/* end confdefs.h. */
24590
24591/* Override any gcc2 internal prototype to avoid an error. */
24592#ifdef __cplusplus
24593extern "C"
24594#endif
24595/* We use char because int might match the return type of a gcc2
24596 builtin and then its argument prototype would still apply. */
24597char gethostbyname ();
24598int
24599main ()
24600{
24601gethostbyname ();
24602 ;
24603 return 0;
24604}
24605_ACEOF
24606rm -f conftest.$ac_objext conftest$ac_exeext
24607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24608 (eval $ac_link) 2>conftest.er1
a848cd7e 24609 ac_status=$?
ac1cb8d3
VS
24610 grep -v '^ *+' conftest.er1 >conftest.err
24611 rm -f conftest.er1
24612 cat conftest.err >&5
a848cd7e
SC
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } &&
ea7db9ff
DE
24615 { ac_try='test -z "$ac_c_werror_flag"
24616 || test ! -s conftest.err'
a848cd7e
SC
24617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618 (eval $ac_try) 2>&5
24619 ac_status=$?
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24621 (exit $ac_status); }; } &&
24622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24625 ac_status=$?
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; }; then
24628 ac_cv_lib_bsd_gethostbyname=yes
24629else
24630 echo "$as_me: failed program was:" >&5
24631sed 's/^/| /' conftest.$ac_ext >&5
24632
24633ac_cv_lib_bsd_gethostbyname=no
24634fi
ac1cb8d3
VS
24635rm -f conftest.err conftest.$ac_objext \
24636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24637LIBS=$ac_check_lib_save_LIBS
24638fi
24639echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24640echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24641if test $ac_cv_lib_bsd_gethostbyname = yes; then
24642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24643fi
24644
24645 fi
24646 fi
24647
24648 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24649 # socket/setsockopt and other routines are undefined under SCO ODT
24650 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24651 # on later versions), says Simon Leinen: it contains gethostby*
24652 # variants that don't use the name server (or something). -lsocket
24653 # must be given before -lnsl if both are needed. We assume that
24654 # if connect needs -lnsl, so does gethostbyname.
24655 echo "$as_me:$LINENO: checking for connect" >&5
24656echo $ECHO_N "checking for connect... $ECHO_C" >&6
24657if test "${ac_cv_func_connect+set}" = set; then
24658 echo $ECHO_N "(cached) $ECHO_C" >&6
24659else
24660 cat >conftest.$ac_ext <<_ACEOF
24661/* confdefs.h. */
24662_ACEOF
24663cat confdefs.h >>conftest.$ac_ext
24664cat >>conftest.$ac_ext <<_ACEOF
24665/* end confdefs.h. */
ac1cb8d3
VS
24666/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24668#define connect innocuous_connect
24669
a848cd7e
SC
24670/* System header to define __stub macros and hopefully few prototypes,
24671 which can conflict with char connect (); below.
24672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24673 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24674
a848cd7e
SC
24675#ifdef __STDC__
24676# include <limits.h>
24677#else
24678# include <assert.h>
24679#endif
ac1cb8d3
VS
24680
24681#undef connect
24682
a848cd7e
SC
24683/* Override any gcc2 internal prototype to avoid an error. */
24684#ifdef __cplusplus
24685extern "C"
24686{
24687#endif
24688/* We use char because int might match the return type of a gcc2
24689 builtin and then its argument prototype would still apply. */
24690char connect ();
24691/* The GNU C library defines this for functions which it implements
24692 to always fail with ENOSYS. Some functions are actually named
24693 something starting with __ and the normal name is an alias. */
24694#if defined (__stub_connect) || defined (__stub___connect)
24695choke me
24696#else
24697char (*f) () = connect;
24698#endif
24699#ifdef __cplusplus
24700}
24701#endif
24702
24703int
24704main ()
24705{
24706return f != connect;
24707 ;
24708 return 0;
24709}
24710_ACEOF
24711rm -f conftest.$ac_objext conftest$ac_exeext
24712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24713 (eval $ac_link) 2>conftest.er1
a848cd7e 24714 ac_status=$?
ac1cb8d3
VS
24715 grep -v '^ *+' conftest.er1 >conftest.err
24716 rm -f conftest.er1
24717 cat conftest.err >&5
a848cd7e
SC
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } &&
ea7db9ff
DE
24720 { ac_try='test -z "$ac_c_werror_flag"
24721 || test ! -s conftest.err'
ac1cb8d3
VS
24722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; } &&
24727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24729 (eval $ac_try) 2>&5
24730 ac_status=$?
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); }; }; then
24733 ac_cv_func_connect=yes
24734else
24735 echo "$as_me: failed program was:" >&5
24736sed 's/^/| /' conftest.$ac_ext >&5
24737
24738ac_cv_func_connect=no
24739fi
ac1cb8d3
VS
24740rm -f conftest.err conftest.$ac_objext \
24741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24742fi
24743echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24744echo "${ECHO_T}$ac_cv_func_connect" >&6
24745
24746 if test $ac_cv_func_connect = no; then
24747 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24748echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24749if test "${ac_cv_lib_socket_connect+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24751else
24752 ac_check_lib_save_LIBS=$LIBS
24753LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24754cat >conftest.$ac_ext <<_ACEOF
24755/* confdefs.h. */
24756_ACEOF
24757cat confdefs.h >>conftest.$ac_ext
24758cat >>conftest.$ac_ext <<_ACEOF
24759/* end confdefs.h. */
24760
24761/* Override any gcc2 internal prototype to avoid an error. */
24762#ifdef __cplusplus
24763extern "C"
24764#endif
24765/* We use char because int might match the return type of a gcc2
24766 builtin and then its argument prototype would still apply. */
24767char connect ();
24768int
24769main ()
24770{
24771connect ();
24772 ;
24773 return 0;
24774}
24775_ACEOF
24776rm -f conftest.$ac_objext conftest$ac_exeext
24777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24778 (eval $ac_link) 2>conftest.er1
a848cd7e 24779 ac_status=$?
ac1cb8d3
VS
24780 grep -v '^ *+' conftest.er1 >conftest.err
24781 rm -f conftest.er1
24782 cat conftest.err >&5
a848cd7e
SC
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } &&
ea7db9ff
DE
24785 { ac_try='test -z "$ac_c_werror_flag"
24786 || test ! -s conftest.err'
ac1cb8d3
VS
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; } &&
24792 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 ac_cv_lib_socket_connect=yes
24799else
24800 echo "$as_me: failed program was:" >&5
24801sed 's/^/| /' conftest.$ac_ext >&5
24802
24803ac_cv_lib_socket_connect=no
24804fi
ac1cb8d3
VS
24805rm -f conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24807LIBS=$ac_check_lib_save_LIBS
24808fi
24809echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24810echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24811if test $ac_cv_lib_socket_connect = yes; then
24812 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24813fi
24814
24815 fi
24816
24817 # Guillermo Gomez says -lposix is necessary on A/UX.
24818 echo "$as_me:$LINENO: checking for remove" >&5
24819echo $ECHO_N "checking for remove... $ECHO_C" >&6
24820if test "${ac_cv_func_remove+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24822else
24823 cat >conftest.$ac_ext <<_ACEOF
24824/* confdefs.h. */
24825_ACEOF
24826cat confdefs.h >>conftest.$ac_ext
24827cat >>conftest.$ac_ext <<_ACEOF
24828/* end confdefs.h. */
ac1cb8d3
VS
24829/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24831#define remove innocuous_remove
24832
a848cd7e
SC
24833/* System header to define __stub macros and hopefully few prototypes,
24834 which can conflict with char remove (); below.
24835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24836 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24837
a848cd7e
SC
24838#ifdef __STDC__
24839# include <limits.h>
24840#else
24841# include <assert.h>
24842#endif
ac1cb8d3
VS
24843
24844#undef remove
24845
a848cd7e
SC
24846/* Override any gcc2 internal prototype to avoid an error. */
24847#ifdef __cplusplus
24848extern "C"
24849{
24850#endif
24851/* We use char because int might match the return type of a gcc2
24852 builtin and then its argument prototype would still apply. */
24853char remove ();
24854/* The GNU C library defines this for functions which it implements
24855 to always fail with ENOSYS. Some functions are actually named
24856 something starting with __ and the normal name is an alias. */
24857#if defined (__stub_remove) || defined (__stub___remove)
24858choke me
24859#else
24860char (*f) () = remove;
24861#endif
24862#ifdef __cplusplus
24863}
24864#endif
24865
24866int
24867main ()
24868{
24869return f != remove;
24870 ;
24871 return 0;
24872}
24873_ACEOF
24874rm -f conftest.$ac_objext conftest$ac_exeext
24875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24876 (eval $ac_link) 2>conftest.er1
a848cd7e 24877 ac_status=$?
ac1cb8d3
VS
24878 grep -v '^ *+' conftest.er1 >conftest.err
24879 rm -f conftest.er1
24880 cat conftest.err >&5
a848cd7e
SC
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } &&
ea7db9ff
DE
24883 { ac_try='test -z "$ac_c_werror_flag"
24884 || 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_remove=yes
24897else
24898 echo "$as_me: failed program was:" >&5
24899sed 's/^/| /' conftest.$ac_ext >&5
24900
24901ac_cv_func_remove=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_remove" >&5
24907echo "${ECHO_T}$ac_cv_func_remove" >&6
24908
24909 if test $ac_cv_func_remove = no; then
24910 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24911echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24912if test "${ac_cv_lib_posix_remove+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24914else
24915 ac_check_lib_save_LIBS=$LIBS
24916LIBS="-lposix $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 remove ();
24931int
24932main ()
24933{
24934remove ();
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); } &&
ea7db9ff
DE
24948 { ac_try='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
ac1cb8d3
VS
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_cv_lib_posix_remove=yes
24962else
24963 echo "$as_me: failed program was:" >&5
24964sed 's/^/| /' conftest.$ac_ext >&5
24965
24966ac_cv_lib_posix_remove=no
24967fi
ac1cb8d3
VS
24968rm -f conftest.err conftest.$ac_objext \
24969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24970LIBS=$ac_check_lib_save_LIBS
24971fi
24972echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24973echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24974if test $ac_cv_lib_posix_remove = yes; then
24975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24976fi
24977
24978 fi
24979
24980 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24981 echo "$as_me:$LINENO: checking for shmat" >&5
24982echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24983if test "${ac_cv_func_shmat+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24985else
24986 cat >conftest.$ac_ext <<_ACEOF
24987/* confdefs.h. */
24988_ACEOF
24989cat confdefs.h >>conftest.$ac_ext
24990cat >>conftest.$ac_ext <<_ACEOF
24991/* end confdefs.h. */
ac1cb8d3
VS
24992/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24994#define shmat innocuous_shmat
24995
a848cd7e
SC
24996/* System header to define __stub macros and hopefully few prototypes,
24997 which can conflict with char shmat (); below.
24998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24999 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25000
a848cd7e
SC
25001#ifdef __STDC__
25002# include <limits.h>
25003#else
25004# include <assert.h>
25005#endif
ac1cb8d3
VS
25006
25007#undef shmat
25008
a848cd7e
SC
25009/* Override any gcc2 internal prototype to avoid an error. */
25010#ifdef __cplusplus
25011extern "C"
25012{
25013#endif
25014/* We use char because int might match the return type of a gcc2
25015 builtin and then its argument prototype would still apply. */
25016char shmat ();
25017/* The GNU C library defines this for functions which it implements
25018 to always fail with ENOSYS. Some functions are actually named
25019 something starting with __ and the normal name is an alias. */
25020#if defined (__stub_shmat) || defined (__stub___shmat)
25021choke me
25022#else
25023char (*f) () = shmat;
25024#endif
25025#ifdef __cplusplus
25026}
25027#endif
25028
25029int
25030main ()
25031{
25032return f != shmat;
25033 ;
25034 return 0;
25035}
25036_ACEOF
25037rm -f conftest.$ac_objext conftest$ac_exeext
25038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25039 (eval $ac_link) 2>conftest.er1
a848cd7e 25040 ac_status=$?
ac1cb8d3
VS
25041 grep -v '^ *+' conftest.er1 >conftest.err
25042 rm -f conftest.er1
25043 cat conftest.err >&5
a848cd7e
SC
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
ea7db9ff
DE
25046 { ac_try='test -z "$ac_c_werror_flag"
25047 || test ! -s conftest.err'
ac1cb8d3
VS
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; } &&
25053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; }; then
25059 ac_cv_func_shmat=yes
25060else
25061 echo "$as_me: failed program was:" >&5
25062sed 's/^/| /' conftest.$ac_ext >&5
25063
25064ac_cv_func_shmat=no
25065fi
ac1cb8d3
VS
25066rm -f conftest.err conftest.$ac_objext \
25067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25068fi
25069echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25070echo "${ECHO_T}$ac_cv_func_shmat" >&6
25071
25072 if test $ac_cv_func_shmat = no; then
25073 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25074echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25075if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25077else
25078 ac_check_lib_save_LIBS=$LIBS
25079LIBS="-lipc $LIBS"
25080cat >conftest.$ac_ext <<_ACEOF
25081/* confdefs.h. */
25082_ACEOF
25083cat confdefs.h >>conftest.$ac_ext
25084cat >>conftest.$ac_ext <<_ACEOF
25085/* end confdefs.h. */
25086
25087/* Override any gcc2 internal prototype to avoid an error. */
25088#ifdef __cplusplus
25089extern "C"
25090#endif
25091/* We use char because int might match the return type of a gcc2
25092 builtin and then its argument prototype would still apply. */
25093char shmat ();
25094int
25095main ()
25096{
25097shmat ();
25098 ;
25099 return 0;
25100}
25101_ACEOF
25102rm -f conftest.$ac_objext conftest$ac_exeext
25103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25104 (eval $ac_link) 2>conftest.er1
a848cd7e 25105 ac_status=$?
ac1cb8d3
VS
25106 grep -v '^ *+' conftest.er1 >conftest.err
25107 rm -f conftest.er1
25108 cat conftest.err >&5
a848cd7e
SC
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } &&
ea7db9ff
DE
25111 { ac_try='test -z "$ac_c_werror_flag"
25112 || test ! -s conftest.err'
ac1cb8d3
VS
25113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114 (eval $ac_try) 2>&5
25115 ac_status=$?
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; } &&
25118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; }; then
25124 ac_cv_lib_ipc_shmat=yes
25125else
25126 echo "$as_me: failed program was:" >&5
25127sed 's/^/| /' conftest.$ac_ext >&5
25128
25129ac_cv_lib_ipc_shmat=no
25130fi
ac1cb8d3
VS
25131rm -f conftest.err conftest.$ac_objext \
25132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25133LIBS=$ac_check_lib_save_LIBS
25134fi
25135echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25136echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25137if test $ac_cv_lib_ipc_shmat = yes; then
25138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25139fi
25140
25141 fi
25142 fi
25143
25144 # Check for libraries that X11R6 Xt/Xaw programs need.
25145 ac_save_LDFLAGS=$LDFLAGS
25146 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25147 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25148 # check for ICE first), but we must link in the order -lSM -lICE or
25149 # we get undefined symbols. So assume we have SM if we have ICE.
25150 # These have to be linked with before -lX11, unlike the other
25151 # libraries we check for below, so use a different variable.
25152 # John Interrante, Karl Berry
25153 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25154echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25155if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25157else
25158 ac_check_lib_save_LIBS=$LIBS
25159LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25160cat >conftest.$ac_ext <<_ACEOF
25161/* confdefs.h. */
25162_ACEOF
25163cat confdefs.h >>conftest.$ac_ext
25164cat >>conftest.$ac_ext <<_ACEOF
25165/* end confdefs.h. */
25166
25167/* Override any gcc2 internal prototype to avoid an error. */
25168#ifdef __cplusplus
25169extern "C"
25170#endif
25171/* We use char because int might match the return type of a gcc2
25172 builtin and then its argument prototype would still apply. */
25173char IceConnectionNumber ();
25174int
25175main ()
25176{
25177IceConnectionNumber ();
25178 ;
25179 return 0;
25180}
25181_ACEOF
25182rm -f conftest.$ac_objext conftest$ac_exeext
25183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25184 (eval $ac_link) 2>conftest.er1
a848cd7e 25185 ac_status=$?
ac1cb8d3
VS
25186 grep -v '^ *+' conftest.er1 >conftest.err
25187 rm -f conftest.er1
25188 cat conftest.err >&5
a848cd7e
SC
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } &&
ea7db9ff
DE
25191 { ac_try='test -z "$ac_c_werror_flag"
25192 || test ! -s conftest.err'
ac1cb8d3
VS
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; } &&
25198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; }; then
25204 ac_cv_lib_ICE_IceConnectionNumber=yes
25205else
25206 echo "$as_me: failed program was:" >&5
25207sed 's/^/| /' conftest.$ac_ext >&5
25208
25209ac_cv_lib_ICE_IceConnectionNumber=no
25210fi
ac1cb8d3
VS
25211rm -f conftest.err conftest.$ac_objext \
25212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25213LIBS=$ac_check_lib_save_LIBS
25214fi
25215echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25216echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25217if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25218 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25219fi
25220
25221 LDFLAGS=$ac_save_LDFLAGS
25222
25223fi
25224
25225
25226 if test "$no_x" = "yes"; then
25227 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25228echo "$as_me: error: X11 not found" >&2;}
25229 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25230 fi
25231
74b84332
VS
25232 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25233 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25234 AFMINSTALL=afminstall
25235 COMPILED_X_PROGRAM=0
25236
74b84332
VS
25237 fi
25238
25239 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25240 if test "$wxUSE_NANOX" = "yes"; then
25241 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25242echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25243 if test "x$MICROWIN" = x ; then
25244 echo "$as_me:$LINENO: result: not found" >&5
25245echo "${ECHO_T}not found" >&6
25246 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25247echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25248 { (exit 1); exit 1; }; }
25249 else
25250 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25251echo "${ECHO_T}$MICROWIN" >&6
25252 cat >>confdefs.h <<\_ACEOF
25253#define wxUSE_NANOX 1
25254_ACEOF
25255
25256 fi
25257 fi
25258
25259 if test "$wxUSE_UNICODE" = "yes"; then
25260
25261 succeeded=no
25262
25263 if test -z "$PKG_CONFIG"; then
25264 # Extract the first word of "pkg-config", so it can be a program name with args.
25265set dummy pkg-config; ac_word=$2
25266echo "$as_me:$LINENO: checking for $ac_word" >&5
25267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25268if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25270else
25271 case $PKG_CONFIG in
25272 [\\/]* | ?:[\\/]*)
25273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25274 ;;
25275 *)
25276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25277for as_dir in $PATH
25278do
25279 IFS=$as_save_IFS
25280 test -z "$as_dir" && as_dir=.
25281 for ac_exec_ext in '' $ac_executable_extensions; do
25282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25285 break 2
25286 fi
25287done
25288done
25289
25290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25291 ;;
25292esac
25293fi
25294PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25295
25296if test -n "$PKG_CONFIG"; then
25297 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25298echo "${ECHO_T}$PKG_CONFIG" >&6
25299else
25300 echo "$as_me:$LINENO: result: no" >&5
25301echo "${ECHO_T}no" >&6
25302fi
25303
25304 fi
25305
25306 if test "$PKG_CONFIG" = "no" ; then
25307 echo "*** The pkg-config script could not be found. Make sure it is"
25308 echo "*** in your path, or set the PKG_CONFIG environment variable"
25309 echo "*** to the full path to pkg-config."
25310 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25311 else
25312 PKG_CONFIG_MIN_VERSION=0.9.0
25313 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25314 echo "$as_me:$LINENO: checking for pangox" >&5
25315echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25316
25317 if $PKG_CONFIG --exists "pangox" ; then
25318 echo "$as_me:$LINENO: result: yes" >&5
25319echo "${ECHO_T}yes" >&6
25320 succeeded=yes
25321
25322 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25323echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25324 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25325 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25326echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25327
25328 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25329echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25330 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25331 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25332echo "${ECHO_T}$PANGOX_LIBS" >&6
25333 else
25334 PANGOX_CFLAGS=""
25335 PANGOX_LIBS=""
25336 ## If we have a custom action on failure, don't print errors, but
25337 ## do set a variable so people can do so.
25338 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25339
25340 fi
25341
25342
25343
25344 else
25345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25347 fi
25348 fi
25349
25350 if test $succeeded = yes; then
25351
25352 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25353 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25354
25355 else
25356
25357 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25358echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25359 { (exit 1); exit 1; }; }
25360
25361
25362 fi
25363
25364
25365 succeeded=no
25366
25367 if test -z "$PKG_CONFIG"; then
25368 # Extract the first word of "pkg-config", so it can be a program name with args.
25369set dummy pkg-config; ac_word=$2
25370echo "$as_me:$LINENO: checking for $ac_word" >&5
25371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25372if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25374else
25375 case $PKG_CONFIG in
25376 [\\/]* | ?:[\\/]*)
25377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25378 ;;
25379 *)
25380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25381for as_dir in $PATH
25382do
25383 IFS=$as_save_IFS
25384 test -z "$as_dir" && as_dir=.
25385 for ac_exec_ext in '' $ac_executable_extensions; do
25386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25389 break 2
25390 fi
25391done
25392done
25393
25394 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25395 ;;
25396esac
25397fi
25398PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25399
25400if test -n "$PKG_CONFIG"; then
25401 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25402echo "${ECHO_T}$PKG_CONFIG" >&6
25403else
25404 echo "$as_me:$LINENO: result: no" >&5
25405echo "${ECHO_T}no" >&6
25406fi
25407
25408 fi
25409
25410 if test "$PKG_CONFIG" = "no" ; then
25411 echo "*** The pkg-config script could not be found. Make sure it is"
25412 echo "*** in your path, or set the PKG_CONFIG environment variable"
25413 echo "*** to the full path to pkg-config."
25414 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25415 else
25416 PKG_CONFIG_MIN_VERSION=0.9.0
25417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25418 echo "$as_me:$LINENO: checking for pangoft2" >&5
25419echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25420
25421 if $PKG_CONFIG --exists "pangoft2" ; then
25422 echo "$as_me:$LINENO: result: yes" >&5
25423echo "${ECHO_T}yes" >&6
25424 succeeded=yes
25425
25426 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25427echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25428 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25429 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25430echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25431
25432 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25433echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25434 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25435 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25436echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25437 else
25438 PANGOFT2_CFLAGS=""
25439 PANGOFT2_LIBS=""
25440 ## If we have a custom action on failure, don't print errors, but
25441 ## do set a variable so people can do so.
25442 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25443
25444 fi
25445
25446
25447
25448 else
25449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25451 fi
25452 fi
25453
25454 if test $succeeded = yes; then
25455
25456 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25457 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25458
25459 else
25460
25461 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25462echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25463 wxUSE_PRINTING_ARCHITECTURE="no"
25464
25465
25466 fi
25467
25468
25469 succeeded=no
25470
25471 if test -z "$PKG_CONFIG"; then
25472 # Extract the first word of "pkg-config", so it can be a program name with args.
25473set dummy pkg-config; ac_word=$2
25474echo "$as_me:$LINENO: checking for $ac_word" >&5
25475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25476if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25478else
25479 case $PKG_CONFIG in
25480 [\\/]* | ?:[\\/]*)
25481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25482 ;;
25483 *)
25484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485for as_dir in $PATH
25486do
25487 IFS=$as_save_IFS
25488 test -z "$as_dir" && as_dir=.
25489 for ac_exec_ext in '' $ac_executable_extensions; do
25490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25493 break 2
25494 fi
25495done
25496done
25497
25498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25499 ;;
25500esac
25501fi
25502PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25503
25504if test -n "$PKG_CONFIG"; then
25505 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25506echo "${ECHO_T}$PKG_CONFIG" >&6
25507else
25508 echo "$as_me:$LINENO: result: no" >&5
25509echo "${ECHO_T}no" >&6
25510fi
25511
25512 fi
25513
25514 if test "$PKG_CONFIG" = "no" ; then
25515 echo "*** The pkg-config script could not be found. Make sure it is"
25516 echo "*** in your path, or set the PKG_CONFIG environment variable"
25517 echo "*** to the full path to pkg-config."
25518 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25519 else
25520 PKG_CONFIG_MIN_VERSION=0.9.0
25521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25522 echo "$as_me:$LINENO: checking for pangoxft" >&5
25523echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25524
25525 if $PKG_CONFIG --exists "pangoxft" ; then
25526 echo "$as_me:$LINENO: result: yes" >&5
25527echo "${ECHO_T}yes" >&6
25528 succeeded=yes
25529
25530 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25531echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25532 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25533 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25534echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25535
25536 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25537echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25538 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25539 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25540echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25541 else
25542 PANGOXFT_CFLAGS=""
25543 PANGOXFT_LIBS=""
25544 ## If we have a custom action on failure, don't print errors, but
25545 ## do set a variable so people can do so.
25546 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25547
25548 fi
25549
25550
25551
25552 else
25553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25555 fi
25556 fi
25557
25558 if test $succeeded = yes; then
25559
25560 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25561 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25562
25563 else
25564
25565 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25566echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25567
25568
25569 fi
25570
304205f1
VS
25571 save_CFLAGS="$CFLAGS"
25572 save_LIBS="$LIBS"
25573 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25574 LIBS="$LIBS $PANGOX_LIBS"
25575
25576for ac_func in pango_font_family_is_monospace
25577do
25578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25579echo "$as_me:$LINENO: checking for $ac_func" >&5
25580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25581if eval "test \"\${$as_ac_var+set}\" = set"; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25583else
25584 cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h. */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h. */
25590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25592#define $ac_func innocuous_$ac_func
25593
25594/* System header to define __stub macros and hopefully few prototypes,
25595 which can conflict with char $ac_func (); below.
25596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25597 <limits.h> exists even on freestanding compilers. */
25598
25599#ifdef __STDC__
25600# include <limits.h>
25601#else
25602# include <assert.h>
25603#endif
25604
25605#undef $ac_func
25606
25607/* Override any gcc2 internal prototype to avoid an error. */
25608#ifdef __cplusplus
25609extern "C"
25610{
25611#endif
25612/* We use char because int might match the return type of a gcc2
25613 builtin and then its argument prototype would still apply. */
25614char $ac_func ();
25615/* The GNU C library defines this for functions which it implements
25616 to always fail with ENOSYS. Some functions are actually named
25617 something starting with __ and the normal name is an alias. */
25618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25619choke me
25620#else
25621char (*f) () = $ac_func;
25622#endif
25623#ifdef __cplusplus
25624}
25625#endif
25626
25627int
25628main ()
25629{
25630return f != $ac_func;
25631 ;
25632 return 0;
25633}
25634_ACEOF
25635rm -f conftest.$ac_objext conftest$ac_exeext
25636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637 (eval $ac_link) 2>conftest.er1
25638 ac_status=$?
25639 grep -v '^ *+' conftest.er1 >conftest.err
25640 rm -f conftest.er1
25641 cat conftest.err >&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } &&
ea7db9ff
DE
25644 { ac_try='test -z "$ac_c_werror_flag"
25645 || test ! -s conftest.err'
304205f1
VS
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; } &&
25651 { ac_try='test -s conftest$ac_exeext'
25652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); }; }; then
25657 eval "$as_ac_var=yes"
25658else
25659 echo "$as_me: failed program was:" >&5
25660sed 's/^/| /' conftest.$ac_ext >&5
25661
25662eval "$as_ac_var=no"
25663fi
25664rm -f conftest.err conftest.$ac_objext \
25665 conftest$ac_exeext conftest.$ac_ext
25666fi
25667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25669if test `eval echo '${'$as_ac_var'}'` = yes; then
25670 cat >>confdefs.h <<_ACEOF
25671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25672_ACEOF
25673
25674fi
25675done
25676
25677 CFLAGS="$save_CFLAGS"
25678 LIBS="$save_LIBS"
a848cd7e
SC
25679 fi
25680
25681 wxUSE_UNIVERSAL="yes"
25682
25683 if test "$wxUSE_NANOX" = "yes"; then
25684 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25685 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"
25686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25687 else
25688 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25689 fi
25690
25691 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25692 TOOLKIT=X11
25693 GUIDIST=X11_DIST
25694 fi
25695
25696 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25697 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25698echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25699
74b84332
VS
25700ac_find_includes=
25701for ac_dir in $SEARCH_INCLUDE /usr/include;
25702 do
25703 if test -f "$ac_dir/Xm/Xm.h"; then
25704 ac_find_includes=$ac_dir
25705 break
25706 fi
25707 done
a848cd7e 25708
74b84332
VS
25709 if test "$ac_find_includes" != "" ; then
25710 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25711echo "${ECHO_T}found in $ac_find_includes" >&6
25712
25713 if test "x$ac_find_includes" = "x/usr/include"; then
25714 ac_path_to_include=""
25715 else
25716 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25717 result=$?
25718 if test $result = 0; then
25719 ac_path_to_include=""
25720 else
25721 ac_path_to_include=" -I$ac_find_includes"
25722 fi
a848cd7e
SC
25723 fi
25724
74b84332
VS
25725 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25726 else
25727 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25728/* confdefs.h. */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
25732/* end confdefs.h. */
25733
74b84332
VS
25734 #include <Xm/Xm.h>
25735
a848cd7e
SC
25736int
25737main ()
25738{
25739
74b84332
VS
25740 int version;
25741 version = xmUseVersion;
25742
a848cd7e
SC
25743 ;
25744 return 0;
25745}
25746_ACEOF
74b84332
VS
25747rm -f conftest.$ac_objext
25748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25749 (eval $ac_compile) 2>conftest.er1
a848cd7e 25750 ac_status=$?
ac1cb8d3
VS
25751 grep -v '^ *+' conftest.er1 >conftest.err
25752 rm -f conftest.er1
25753 cat conftest.err >&5
a848cd7e
SC
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); } &&
ea7db9ff
DE
25756 { ac_try='test -z "$ac_c_werror_flag"
25757 || test ! -s conftest.err'
ac1cb8d3
VS
25758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); }; } &&
74b84332 25763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765 (eval $ac_try) 2>&5
25766 ac_status=$?
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); }; }; then
74b84332
VS
25769
25770 echo "$as_me:$LINENO: result: found in default search path" >&5
25771echo "${ECHO_T}found in default search path" >&6
25772 COMPILED_X_PROGRAM=1
25773
a848cd7e
SC
25774else
25775 echo "$as_me: failed program was:" >&5
25776sed 's/^/| /' conftest.$ac_ext >&5
25777
a848cd7e 25778
74b84332
VS
25779 echo "$as_me:$LINENO: result: no" >&5
25780echo "${ECHO_T}no" >&6
25781 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25782echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25783 { (exit 1); exit 1; }; }
a848cd7e 25784
a848cd7e 25785
a848cd7e 25786fi
74b84332
VS
25787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25788 fi
25789
25790 if test "$COMPILED_X_PROGRAM" = 0; then
25791 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25792echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25793
25794ac_find_libraries=
25795for ac_dir in $SEARCH_LIB /usr/lib;
25796 do
25797 for ac_extension in a so sl dylib; do
25798 if test -f "$ac_dir/libXm.$ac_extension"; then
25799 ac_find_libraries=$ac_dir
25800 break 2
a848cd7e 25801 fi
74b84332
VS
25802 done
25803 done
a848cd7e 25804
74b84332
VS
25805 if test "$ac_find_libraries" != "" ; then
25806 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25807echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25808
74b84332
VS
25809
25810 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25811 result=$?
25812 if test $result = 0; then
25813 ac_path_to_link=""
a848cd7e 25814 else
74b84332
VS
25815 ac_path_to_link=" -L$ac_find_libraries"
25816 fi
25817
25818 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25819 else
25820 save_CFLAGS=$CFLAGS
25821 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25822
25823 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25824/* confdefs.h. */
25825_ACEOF
25826cat confdefs.h >>conftest.$ac_ext
25827cat >>conftest.$ac_ext <<_ACEOF
25828/* end confdefs.h. */
25829
74b84332
VS
25830 #include <Xm/Xm.h>
25831
a848cd7e
SC
25832int
25833main ()
25834{
74b84332
VS
25835
25836 int version;
25837 version = xmUseVersion;
25838
a848cd7e
SC
25839 ;
25840 return 0;
25841}
25842_ACEOF
74b84332
VS
25843rm -f conftest.$ac_objext
25844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
a848cd7e 25846 ac_status=$?
ac1cb8d3
VS
25847 grep -v '^ *+' conftest.er1 >conftest.err
25848 rm -f conftest.er1
25849 cat conftest.err >&5
a848cd7e
SC
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
ea7db9ff
DE
25852 { ac_try='test -z "$ac_c_werror_flag"
25853 || test ! -s conftest.err'
ac1cb8d3
VS
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
74b84332 25859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
74b84332
VS
25865
25866 echo "$as_me:$LINENO: result: found in default search path" >&5
25867echo "${ECHO_T}found in default search path" >&6
25868 COMPILED_X_PROGRAM=1
25869
a848cd7e
SC
25870else
25871 echo "$as_me: failed program was:" >&5
25872sed 's/^/| /' conftest.$ac_ext >&5
25873
74b84332
VS
25874
25875 echo "$as_me:$LINENO: result: no" >&5
25876echo "${ECHO_T}no" >&6
25877 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25878echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25879 { (exit 1); exit 1; }; }
25880
25881
25882fi
25883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884
25885 CFLAGS=$save_CFLAGS
25886 fi
25887 fi
25888
25889 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25890echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25891 libp_link=""
25892 libsm_ice_link=""
25893 libs_found=0
25894 for libp in "" " -lXp"; do
25895 if test "$libs_found" = "0"; then
25896 for libsm_ice in "" " -lSM -lICE"; do
25897 if test "$libs_found" = "0"; then
25898 save_LIBS="$LIBS"
25899 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25900 save_CFLAGS=$CFLAGS
25901 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25902
25903 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25904/* confdefs.h. */
25905_ACEOF
25906cat confdefs.h >>conftest.$ac_ext
25907cat >>conftest.$ac_ext <<_ACEOF
25908/* end confdefs.h. */
25909
74b84332
VS
25910 #include <Xm/Xm.h>
25911 #include <Xm/List.h>
25912
a848cd7e
SC
25913int
25914main ()
25915{
74b84332
VS
25916
25917 XmString string = NULL;
25918 Widget w = NULL;
25919 int position = 0;
25920 XmListAddItem(w, string, position);
25921
a848cd7e
SC
25922 ;
25923 return 0;
25924}
25925_ACEOF
25926rm -f conftest.$ac_objext conftest$ac_exeext
25927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25928 (eval $ac_link) 2>conftest.er1
a848cd7e 25929 ac_status=$?
ac1cb8d3
VS
25930 grep -v '^ *+' conftest.er1 >conftest.err
25931 rm -f conftest.er1
25932 cat conftest.err >&5
a848cd7e
SC
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } &&
ea7db9ff
DE
25935 { ac_try='test -z "$ac_c_werror_flag"
25936 || test ! -s conftest.err'
ac1cb8d3
VS
25937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); }; } &&
25942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; }; then
25948
25949 libp_link="$libp"
25950 libsm_ice_link="$libsm_ice"
25951 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25952echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25953 libs_found=1
25954
25955else
25956 echo "$as_me: failed program was:" >&5
25957sed 's/^/| /' conftest.$ac_ext >&5
25958
25959
25960
25961fi
ac1cb8d3
VS
25962rm -f conftest.err conftest.$ac_objext \
25963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25964
25965 LIBS="$save_LIBS"
25966 CFLAGS=$save_CFLAGS
25967 fi
25968 done
25969 fi
25970 done
25971
25972 if test "$libs_found" = "0"; then
25973 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25974echo "${ECHO_T}can't find the right libraries" >&6
25975 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25976echo "$as_me: error: can't link a simple motif program" >&2;}
25977 { (exit 1); exit 1; }; }
25978 fi
25979
25980 save_CFLAGS=$CFLAGS
25981 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25982 echo "$as_me:$LINENO: checking for Motif 2" >&5
25983echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25984 cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
25990
25991 #include <Xm/Xm.h>
25992
25993int
25994main ()
25995{
25996
25997 #if XmVersion < 2000
25998 #error "Not Motif 2"
25999 #endif
26000
26001 ;
26002 return 0;
26003}
26004_ACEOF
26005rm -f conftest.$ac_objext
26006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26007 (eval $ac_compile) 2>conftest.er1
a848cd7e 26008 ac_status=$?
ac1cb8d3
VS
26009 grep -v '^ *+' conftest.er1 >conftest.err
26010 rm -f conftest.er1
26011 cat conftest.err >&5
a848cd7e
SC
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } &&
ea7db9ff
DE
26014 { ac_try='test -z "$ac_c_werror_flag"
26015 || test ! -s conftest.err'
ac1cb8d3
VS
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; } &&
26021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; }; then
26027
26028 cat >>confdefs.h <<\_ACEOF
26029#define __WXMOTIF20__ 1
26030_ACEOF
26031
26032 echo "$as_me:$LINENO: result: found" >&5
26033echo "${ECHO_T}found" >&6
26034
26035else
26036 echo "$as_me: failed program was:" >&5
26037sed 's/^/| /' conftest.$ac_ext >&5
26038
26039
26040 cat >>confdefs.h <<\_ACEOF
26041#define __WXMOTIF20__ 0
26042_ACEOF
26043
26044 echo "$as_me:$LINENO: result: not found" >&5
26045echo "${ECHO_T}not found" >&6
26046
26047fi
ac1cb8d3 26048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26049 CFLAGS=$save_CFLAGS
26050
26051 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26052 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26053 TOOLKIT=MOTIF
26054 GUIDIST=MOTIF_DIST
26055 fi
26056
74b84332 26057 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26058 if test "$wxUSE_LIBXPM" = "sys"; then
26059 echo "$as_me:$LINENO: checking for Xpm library" >&5
26060echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26061
26062ac_find_libraries=
26063for ac_dir in $SEARCH_LIB /usr/lib;
26064 do
26065 for ac_extension in a so sl dylib; do
26066 if test -f "$ac_dir/libXpm.$ac_extension"; then
26067 ac_find_libraries=$ac_dir
26068 break 2
26069 fi
26070 done
26071 done
26072
26073 if test "$ac_find_libraries" != "" ; then
26074
26075 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26076 result=$?
26077 if test $result = 0; then
26078 ac_path_to_link=""
26079 else
26080 ac_path_to_link=" -L$ac_find_libraries"
26081 fi
26082
26083 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26084 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26085echo "${ECHO_T}found at $ac_find_libraries" >&6
26086
26087 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26088echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26089if test "${wx_cv_x11_xpm_h+set}" = set; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26091else
26092
26093 save_CFLAGS=$CFLAGS
26094 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26095
26096 cat >conftest.$ac_ext <<_ACEOF
26097/* confdefs.h. */
26098_ACEOF
26099cat confdefs.h >>conftest.$ac_ext
26100cat >>conftest.$ac_ext <<_ACEOF
26101/* end confdefs.h. */
26102
26103 #include <X11/xpm.h>
26104
26105int
26106main ()
26107{
26108
26109 int version;
26110 version = XpmLibraryVersion();
26111
26112 ;
26113 return 0;
26114}
26115_ACEOF
26116rm -f conftest.$ac_objext
26117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26118 (eval $ac_compile) 2>conftest.er1
a848cd7e 26119 ac_status=$?
ac1cb8d3
VS
26120 grep -v '^ *+' conftest.er1 >conftest.err
26121 rm -f conftest.er1
26122 cat conftest.err >&5
a848cd7e
SC
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } &&
ea7db9ff
DE
26125 { ac_try='test -z "$ac_c_werror_flag"
26126 || test ! -s conftest.err'
ac1cb8d3
VS
26127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26129 ac_status=$?
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); }; } &&
26132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26134 (eval $ac_try) 2>&5
26135 ac_status=$?
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); }; }; then
26138 wx_cv_x11_xpm_h=yes
26139else
26140 echo "$as_me: failed program was:" >&5
26141sed 's/^/| /' conftest.$ac_ext >&5
26142
26143wx_cv_x11_xpm_h=no
26144
26145fi
ac1cb8d3 26146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26147
26148 CFLAGS=$save_CFLAGS
26149
26150
26151fi
26152echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26153echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26154
26155 if test $wx_cv_x11_xpm_h = "yes"; then
26156 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26157 cat >>confdefs.h <<\_ACEOF
26158#define wxHAVE_LIB_XPM 1
26159_ACEOF
26160
26161 else
26162 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26163echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26164 fi
26165 fi
26166
26167 fi
26168
26169 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26170echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26171if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26172 echo $ECHO_N "(cached) $ECHO_C" >&6
26173else
26174 ac_check_lib_save_LIBS=$LIBS
26175LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26176cat >conftest.$ac_ext <<_ACEOF
26177/* confdefs.h. */
26178_ACEOF
26179cat confdefs.h >>conftest.$ac_ext
26180cat >>conftest.$ac_ext <<_ACEOF
26181/* end confdefs.h. */
26182
26183/* Override any gcc2 internal prototype to avoid an error. */
26184#ifdef __cplusplus
26185extern "C"
26186#endif
26187/* We use char because int might match the return type of a gcc2
26188 builtin and then its argument prototype would still apply. */
26189char XShapeQueryExtension ();
26190int
26191main ()
26192{
26193XShapeQueryExtension ();
26194 ;
26195 return 0;
26196}
26197_ACEOF
26198rm -f conftest.$ac_objext conftest$ac_exeext
26199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26200 (eval $ac_link) 2>conftest.er1
a848cd7e 26201 ac_status=$?
ac1cb8d3
VS
26202 grep -v '^ *+' conftest.er1 >conftest.err
26203 rm -f conftest.er1
26204 cat conftest.err >&5
a848cd7e
SC
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); } &&
ea7db9ff
DE
26207 { ac_try='test -z "$ac_c_werror_flag"
26208 || test ! -s conftest.err'
ac1cb8d3
VS
26209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210 (eval $ac_try) 2>&5
26211 ac_status=$?
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); }; } &&
26214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216 (eval $ac_try) 2>&5
26217 ac_status=$?
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); }; }; then
26220 ac_cv_lib_Xext_XShapeQueryExtension=yes
26221else
26222 echo "$as_me: failed program was:" >&5
26223sed 's/^/| /' conftest.$ac_ext >&5
26224
26225ac_cv_lib_Xext_XShapeQueryExtension=no
26226fi
ac1cb8d3
VS
26227rm -f conftest.err conftest.$ac_objext \
26228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26229LIBS=$ac_check_lib_save_LIBS
26230fi
26231echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26232echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26233if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26234
26235 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26236 wxHAVE_XEXT_LIB=1
26237
26238fi
26239
26240
26241 if test "$wxHAVE_XEXT_LIB" = 1; then
26242 save_CFLAGS="$CFLAGS"
26243 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26244
26245 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26246echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26247 cat >conftest.$ac_ext <<_ACEOF
26248/* confdefs.h. */
26249_ACEOF
26250cat confdefs.h >>conftest.$ac_ext
26251cat >>conftest.$ac_ext <<_ACEOF
26252/* end confdefs.h. */
26253
26254 #include <X11/Xlib.h>
26255 #include <X11/extensions/shape.h>
26256
26257int
26258main ()
26259{
26260
26261 int dummy1, dummy2;
26262 XShapeQueryExtension((Display*)NULL,
26263 (int*)NULL, (int*)NULL);
26264
26265 ;
26266 return 0;
26267}
26268_ACEOF
26269rm -f conftest.$ac_objext
26270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26271 (eval $ac_compile) 2>conftest.er1
a848cd7e 26272 ac_status=$?
ac1cb8d3
VS
26273 grep -v '^ *+' conftest.er1 >conftest.err
26274 rm -f conftest.er1
26275 cat conftest.err >&5
a848cd7e
SC
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } &&
ea7db9ff
DE
26278 { ac_try='test -z "$ac_c_werror_flag"
26279 || test ! -s conftest.err'
ac1cb8d3
VS
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; } &&
26285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26291
26292 cat >>confdefs.h <<\_ACEOF
26293#define HAVE_XSHAPE 1
26294_ACEOF
26295
26296 echo "$as_me:$LINENO: result: found" >&5
26297echo "${ECHO_T}found" >&6
26298
26299else
26300 echo "$as_me: failed program was:" >&5
26301sed 's/^/| /' conftest.$ac_ext >&5
26302
26303
26304 echo "$as_me:$LINENO: result: not found" >&5
26305echo "${ECHO_T}not found" >&6
26306
26307fi
ac1cb8d3 26308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26309 CFLAGS="$save_CFLAGS"
26310
26311 fi
26312 fi
26313
26314 if test "$wxUSE_MAC" = 1; then
26315 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26316echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26317 if test "$GCC" = yes; then
26318 echo "$as_me:$LINENO: result: gcc" >&5
26319echo "${ECHO_T}gcc" >&6
26320 CPPFLAGS_PASCAL="-fpascal-strings"
26321 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26322 echo "$as_me:$LINENO: result: xlc" >&5
26323echo "${ECHO_T}xlc" >&6
26324 CPPFLAGS_PASCAL="-qmacpstr"
26325 else
26326 echo "$as_me:$LINENO: result: none" >&5
26327echo "${ECHO_T}none" >&6
26328 fi
26329
26330 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26331
26332 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26333 TOOLKIT=MAC
26334 GUIDIST=MACX_DIST
26335 WXBASEPORT="_carbon"
26336 fi
26337
26338 if test "$wxUSE_COCOA" = 1; then
26339 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26340 TOOLKIT=COCOA
26341 GUIDIST=COCOA_DIST
26342 fi
26343
26344 if test "$wxUSE_PM" = 1; then
26345 TOOLKIT=PM
de59c161
RD
26346 GUIDIST=PM_DIST
26347 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26348echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26349if test "${wx_cv_spbcdata+set}" = set; then
26350 echo $ECHO_N "(cached) $ECHO_C" >&6
26351else
26352
26353 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26354/* confdefs.h. */
26355_ACEOF
26356cat confdefs.h >>conftest.$ac_ext
26357cat >>conftest.$ac_ext <<_ACEOF
26358/* end confdefs.h. */
26359
26360 #define INCL_PM
26361 #include <os2.h>
26362
26363int
26364main ()
26365{
26366
26367 SPBCDATA test;
26368
26369 ;
26370 return 0;
26371}
26372_ACEOF
26373rm -f conftest.$ac_objext
26374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26375 (eval $ac_compile) 2>conftest.er1
de59c161 26376 ac_status=$?
ac1cb8d3
VS
26377 grep -v '^ *+' conftest.er1 >conftest.err
26378 rm -f conftest.er1
26379 cat conftest.err >&5
de59c161
RD
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
ea7db9ff
DE
26382 { ac_try='test -z "$ac_c_werror_flag"
26383 || test ! -s conftest.err'
ac1cb8d3
VS
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; } &&
26389 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); }; }; then
26395 wx_cv_spbcdata=yes
26396else
26397 echo "$as_me: failed program was:" >&5
26398sed 's/^/| /' conftest.$ac_ext >&5
26399
26400wx_cv_spbcdata=no
26401
26402fi
ac1cb8d3 26403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26404
26405
26406fi
26407echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26408echo "${ECHO_T}$wx_cv_spbcdata" >&6
26409
26410 if test $wx_cv_spbcdata = "yes"; then
26411 cat >>confdefs.h <<\_ACEOF
26412#define HAVE_SPBCDATA 1
26413_ACEOF
26414
26415 fi
a848cd7e
SC
26416 fi
26417
26418 if test "$TOOLKIT" = "PM" ; then
26419 TOOLKIT_DIR="os2"
26420 else
26421 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26422 fi
26423
26424 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26425
26426 if test "$wxUSE_UNIVERSAL" = "yes"; then
26427 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26428
26429 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26430 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26431
26432 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26433 if test "$wxUSE_X11" = 1; then
26434 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26435 else
26436 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26437 fi
26438 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26439 WIDGET_SET=univ
26440 else
26441 ALL_OBJECTS="\$(GUIOBJS)"
26442 ALL_SOURCES="\$(ALL_SOURCES)"
26443 ALL_HEADERS="\$(ALL_HEADERS)"
26444 fi
26445
26446 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26447
26448 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26449 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26450 fi
26451
26452 if test "$wxUSE_HTML" = "yes"; then
26453 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26454 fi
26455
26456 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26457 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26458 fi
26459 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26460 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26461 fi
26462 if test "$wxUSE_LIBPNG" = "builtin" ; then
26463 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26464 fi
26465
26466 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26467 DISTDIR="wx\$(TOOLKIT)"
26468else
26469 USE_GUI=0
26470
26471 TOOLKIT_DIR="base"
26472
26473 if test "$USE_WIN32" = 1 ; then
26474 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26475 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26476
26477 TOOLKIT="MSW"
26478 else
26479 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26480 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26481 fi
26482
26483 ALL_SOURCES="\$(ALL_SOURCES)"
26484 ALL_HEADERS="\$(ALL_HEADERS)"
26485
26486 PORT_FILES="\${top_srcdir}/src/files.lst"
26487
26488 GUIDIST="BASE_DIST"
26489 DISTDIR="wxBase"
26490fi
26491
26492
26493
26494
26495IODBC_C_SRC=""
26496
26497
26498if test "$TOOLKIT" != "MSW" ; then
26499
26500 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26501
26502 if test "${ac_cv_header_sql_h+set}" = set; then
26503 echo "$as_me:$LINENO: checking for sql.h" >&5
26504echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26505if test "${ac_cv_header_sql_h+set}" = set; then
26506 echo $ECHO_N "(cached) $ECHO_C" >&6
26507fi
26508echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26509echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26510else
26511 # Is the header compilable?
26512echo "$as_me:$LINENO: checking sql.h usability" >&5
26513echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26514cat >conftest.$ac_ext <<_ACEOF
26515/* confdefs.h. */
26516_ACEOF
26517cat confdefs.h >>conftest.$ac_ext
26518cat >>conftest.$ac_ext <<_ACEOF
26519/* end confdefs.h. */
26520$ac_includes_default
26521#include <sql.h>
26522_ACEOF
26523rm -f conftest.$ac_objext
26524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26525 (eval $ac_compile) 2>conftest.er1
a848cd7e 26526 ac_status=$?
ac1cb8d3
VS
26527 grep -v '^ *+' conftest.er1 >conftest.err
26528 rm -f conftest.er1
26529 cat conftest.err >&5
a848cd7e
SC
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } &&
ea7db9ff
DE
26532 { ac_try='test -z "$ac_c_werror_flag"
26533 || test ! -s conftest.err'
ac1cb8d3
VS
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; } &&
26539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26542 ac_status=$?
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; }; then
26545 ac_header_compiler=yes
26546else
26547 echo "$as_me: failed program was:" >&5
26548sed 's/^/| /' conftest.$ac_ext >&5
26549
26550ac_header_compiler=no
26551fi
ac1cb8d3 26552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26554echo "${ECHO_T}$ac_header_compiler" >&6
26555
26556# Is the header present?
26557echo "$as_me:$LINENO: checking sql.h presence" >&5
26558echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26559cat >conftest.$ac_ext <<_ACEOF
26560/* confdefs.h. */
26561_ACEOF
26562cat confdefs.h >>conftest.$ac_ext
26563cat >>conftest.$ac_ext <<_ACEOF
26564/* end confdefs.h. */
26565#include <sql.h>
26566_ACEOF
26567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26569 ac_status=$?
26570 grep -v '^ *+' conftest.er1 >conftest.err
26571 rm -f conftest.er1
26572 cat conftest.err >&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); } >/dev/null; then
26575 if test -s conftest.err; then
26576 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26578 else
26579 ac_cpp_err=
26580 fi
26581else
26582 ac_cpp_err=yes
26583fi
26584if test -z "$ac_cpp_err"; then
26585 ac_header_preproc=yes
26586else
26587 echo "$as_me: failed program was:" >&5
26588sed 's/^/| /' conftest.$ac_ext >&5
26589
26590 ac_header_preproc=no
26591fi
26592rm -f conftest.err conftest.$ac_ext
26593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26594echo "${ECHO_T}$ac_header_preproc" >&6
26595
26596# So? What about this header?
ac1cb8d3
VS
26597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26598 yes:no: )
a848cd7e
SC
26599 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26600echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26601 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26602echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26603 ac_header_preproc=yes
a848cd7e 26604 ;;
ac1cb8d3 26605 no:yes:* )
a848cd7e
SC
26606 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26607echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26608 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26609echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26610 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26611echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26612 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26613echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26614 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26615echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26616 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26617echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26618 (
26619 cat <<\_ASBOX
ac1cb8d3
VS
26620## ----------------------------------------- ##
26621## Report this to wx-dev@lists.wxwidgets.org ##
26622## ----------------------------------------- ##
a848cd7e
SC
26623_ASBOX
26624 ) |
26625 sed "s/^/$as_me: WARNING: /" >&2
26626 ;;
26627esac
26628echo "$as_me:$LINENO: checking for sql.h" >&5
26629echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26630if test "${ac_cv_header_sql_h+set}" = set; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
26632else
26633 ac_cv_header_sql_h=$ac_header_preproc
26634fi
26635echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26636echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26637
26638fi
26639if test $ac_cv_header_sql_h = yes; then
26640 found_sql_h=1
26641fi
26642
26643
26644 if test "x$found_sql_h" = "x1" ; then
26645 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26646echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26647if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26648 echo $ECHO_N "(cached) $ECHO_C" >&6
26649else
26650 ac_check_lib_save_LIBS=$LIBS
26651LIBS="-liodbc $LIBS"
26652cat >conftest.$ac_ext <<_ACEOF
26653/* confdefs.h. */
26654_ACEOF
26655cat confdefs.h >>conftest.$ac_ext
26656cat >>conftest.$ac_ext <<_ACEOF
26657/* end confdefs.h. */
26658
26659/* Override any gcc2 internal prototype to avoid an error. */
26660#ifdef __cplusplus
26661extern "C"
26662#endif
26663/* We use char because int might match the return type of a gcc2
26664 builtin and then its argument prototype would still apply. */
26665char SQLAllocEnv ();
26666int
26667main ()
26668{
26669SQLAllocEnv ();
26670 ;
26671 return 0;
26672}
26673_ACEOF
26674rm -f conftest.$ac_objext conftest$ac_exeext
26675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26676 (eval $ac_link) 2>conftest.er1
a848cd7e 26677 ac_status=$?
ac1cb8d3
VS
26678 grep -v '^ *+' conftest.er1 >conftest.err
26679 rm -f conftest.er1
26680 cat conftest.err >&5
a848cd7e
SC
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
ea7db9ff
DE
26683 { ac_try='test -z "$ac_c_werror_flag"
26684 || test ! -s conftest.err'
ac1cb8d3
VS
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ac_cv_lib_iodbc_SQLAllocEnv=yes
26697else
26698 echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
26701ac_cv_lib_iodbc_SQLAllocEnv=no
26702fi
ac1cb8d3
VS
26703rm -f conftest.err conftest.$ac_objext \
26704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26705LIBS=$ac_check_lib_save_LIBS
26706fi
26707echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26708echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26709if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26710 ODBC_LINK=" -liodbc"
26711else
26712
26713 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26714echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26715if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26717else
26718 ac_check_lib_save_LIBS=$LIBS
26719LIBS="-lunixodbc $LIBS"
26720cat >conftest.$ac_ext <<_ACEOF
26721/* confdefs.h. */
26722_ACEOF
26723cat confdefs.h >>conftest.$ac_ext
26724cat >>conftest.$ac_ext <<_ACEOF
26725/* end confdefs.h. */
26726
26727/* Override any gcc2 internal prototype to avoid an error. */
26728#ifdef __cplusplus
26729extern "C"
26730#endif
26731/* We use char because int might match the return type of a gcc2
26732 builtin and then its argument prototype would still apply. */
26733char SQLAllocEnv ();
26734int
26735main ()
26736{
26737SQLAllocEnv ();
26738 ;
26739 return 0;
26740}
26741_ACEOF
26742rm -f conftest.$ac_objext conftest$ac_exeext
26743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26744 (eval $ac_link) 2>conftest.er1
a848cd7e 26745 ac_status=$?
ac1cb8d3
VS
26746 grep -v '^ *+' conftest.er1 >conftest.err
26747 rm -f conftest.er1
26748 cat conftest.err >&5
a848cd7e
SC
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } &&
ea7db9ff
DE
26751 { ac_try='test -z "$ac_c_werror_flag"
26752 || test ! -s conftest.err'
ac1cb8d3
VS
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26755 ac_status=$?
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; } &&
26758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760 (eval $ac_try) 2>&5
26761 ac_status=$?
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26765else
26766 echo "$as_me: failed program was:" >&5
26767sed 's/^/| /' conftest.$ac_ext >&5
26768
26769ac_cv_lib_unixodbc_SQLAllocEnv=no
26770fi
ac1cb8d3
VS
26771rm -f conftest.err conftest.$ac_objext \
26772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26773LIBS=$ac_check_lib_save_LIBS
26774fi
26775echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26776echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26777if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26778 ODBC_LINK=" -lunixodbc"
26779else
26780
26781 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26782echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26783if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26785else
26786 ac_check_lib_save_LIBS=$LIBS
26787LIBS="-lodbc $LIBS"
26788cat >conftest.$ac_ext <<_ACEOF
26789/* confdefs.h. */
26790_ACEOF
26791cat confdefs.h >>conftest.$ac_ext
26792cat >>conftest.$ac_ext <<_ACEOF
26793/* end confdefs.h. */
26794
26795/* Override any gcc2 internal prototype to avoid an error. */
26796#ifdef __cplusplus
26797extern "C"
26798#endif
26799/* We use char because int might match the return type of a gcc2
26800 builtin and then its argument prototype would still apply. */
26801char SQLAllocEnv ();
26802int
26803main ()
26804{
26805SQLAllocEnv ();
26806 ;
26807 return 0;
26808}
26809_ACEOF
26810rm -f conftest.$ac_objext conftest$ac_exeext
26811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26812 (eval $ac_link) 2>conftest.er1
a848cd7e 26813 ac_status=$?
ac1cb8d3
VS
26814 grep -v '^ *+' conftest.er1 >conftest.err
26815 rm -f conftest.er1
26816 cat conftest.err >&5
a848cd7e
SC
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); } &&
ea7db9ff
DE
26819 { ac_try='test -z "$ac_c_werror_flag"
26820 || test ! -s conftest.err'
ac1cb8d3
VS
26821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; } &&
26826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26828 (eval $ac_try) 2>&5
26829 ac_status=$?
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); }; }; then
26832 ac_cv_lib_odbc_SQLAllocEnv=yes
26833else
26834 echo "$as_me: failed program was:" >&5
26835sed 's/^/| /' conftest.$ac_ext >&5
26836
26837ac_cv_lib_odbc_SQLAllocEnv=no
26838fi
ac1cb8d3
VS
26839rm -f conftest.err conftest.$ac_objext \
26840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26841LIBS=$ac_check_lib_save_LIBS
26842fi
26843echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26844echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26845if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26846 ODBC_LINK=" -lodbc"
26847fi
26848
26849
26850fi
26851
26852
26853fi
26854
26855 fi
26856 if test "x$ODBC_LINK" = "x" ; then
26857 if test "$wxUSE_ODBC" = "sys" ; then
26858 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26859echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26860 { (exit 1); exit 1; }; }
26861 else
26862 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26863echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26864 wxUSE_ODBC=builtin
26865 fi
26866 else
26867 wxUSE_ODBC=sys
26868 fi
26869 fi
26870 if test "$wxUSE_ODBC" != "no" ; then
26871 cat >>confdefs.h <<\_ACEOF
26872#define wxUSE_ODBC 1
26873_ACEOF
26874
26875 if test "$wxUSE_ODBC" = "builtin" ; then
26876 cat >>confdefs.h <<\_ACEOF
26877#define wxUSE_BUILTIN_IODBC 1
26878_ACEOF
26879
26880 fi
26881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26882
26883 WXODBCFLAG="-D_IODBC_"
26884 fi
26885fi
26886
26887if test "$wxUSE_REGEX" = "builtin" ; then
26888 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26889fi
26890if test "$wxUSE_ZLIB" = "builtin" ; then
26891 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26892fi
26893
01cb68df 26894
a848cd7e 26895if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26896 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26897 echo "$as_me:$LINENO: checking for Xinerama" >&5
26898echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26899
26900ac_find_libraries=
26901for ac_dir in $SEARCH_LIB /usr/lib;
26902 do
26903 for ac_extension in a so sl dylib; do
26904 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26905 ac_find_libraries=$ac_dir
26906 break 2
26907 fi
26908 done
26909 done
26910
26911 if test "$ac_find_libraries" != "" ; then
26912
26913 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26914 result=$?
26915 if test $result = 0; then
26916 ac_path_to_link=""
26917 else
26918 ac_path_to_link=" -L$ac_find_libraries"
26919 fi
26920
26921 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26922 LDFLAGS="$LDFLAGS $ac_path_to_link"
26923 fi
26924 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26925 echo "$as_me:$LINENO: result: yes" >&5
26926echo "${ECHO_T}yes" >&6
26927
26928 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26929echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26930
26931ac_find_libraries=
26932for ac_dir in $SEARCH_LIB /usr/lib;
26933 do
26934 for ac_extension in a so sl dylib; do
26935 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26936 ac_find_libraries=$ac_dir
26937 break 2
26938 fi
26939 done
26940 done
26941
26942 if test "$ac_find_libraries" != "" ; then
26943 echo "$as_me:$LINENO: result: yes" >&5
26944echo "${ECHO_T}yes" >&6
26945
26946for ac_header in X11/extensions/xf86vmode.h
26947do
26948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26949echo "$as_me:$LINENO: checking for $ac_header" >&5
26950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26951if eval "test \"\${$as_ac_Header+set}\" = set"; then
26952 echo $ECHO_N "(cached) $ECHO_C" >&6
26953else
26954 cat >conftest.$ac_ext <<_ACEOF
26955/* confdefs.h. */
26956_ACEOF
26957cat confdefs.h >>conftest.$ac_ext
26958cat >>conftest.$ac_ext <<_ACEOF
26959/* end confdefs.h. */
26960
26961 #if HAVE_X11_XLIB_H
26962 #include <X11/Xlib.h>
26963 #endif
26964
26965
26966#include <$ac_header>
26967_ACEOF
26968rm -f conftest.$ac_objext
26969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26970 (eval $ac_compile) 2>conftest.er1
a848cd7e 26971 ac_status=$?
ac1cb8d3
VS
26972 grep -v '^ *+' conftest.er1 >conftest.err
26973 rm -f conftest.er1
26974 cat conftest.err >&5
a848cd7e
SC
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); } &&
ea7db9ff
DE
26977 { ac_try='test -z "$ac_c_werror_flag"
26978 || test ! -s conftest.err'
ac1cb8d3
VS
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; } &&
26984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986 (eval $ac_try) 2>&5
26987 ac_status=$?
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; }; then
26990 eval "$as_ac_Header=yes"
26991else
26992 echo "$as_me: failed program was:" >&5
26993sed 's/^/| /' conftest.$ac_ext >&5
26994
26995eval "$as_ac_Header=no"
26996fi
ac1cb8d3 26997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26998fi
26999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27001if test `eval echo '${'$as_ac_Header'}'` = yes; then
27002 cat >>confdefs.h <<_ACEOF
27003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27004_ACEOF
27005
27006 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27007
27008fi
27009
27010done
27011
27012 else
27013 echo "$as_me:$LINENO: result: no" >&5
27014echo "${ECHO_T}no" >&6
27015 fi
27016
27017 else
27018 echo "$as_me:$LINENO: result: no" >&5
27019echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27020 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27021echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27022 wxUSE_DISPLAY="no"
27023 fi
01cb68df
RG
27024 elif test "$wxUSE_MSW" = 1; then
27025
27026
27027for ac_header in multimon.h ddraw.h
27028do
27029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27030if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031 echo "$as_me:$LINENO: checking for $ac_header" >&5
27032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27033if eval "test \"\${$as_ac_Header+set}\" = set"; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27035fi
27036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27038else
27039 # Is the header compilable?
27040echo "$as_me:$LINENO: checking $ac_header usability" >&5
27041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27042cat >conftest.$ac_ext <<_ACEOF
27043/* confdefs.h. */
27044_ACEOF
27045cat confdefs.h >>conftest.$ac_ext
27046cat >>conftest.$ac_ext <<_ACEOF
27047/* end confdefs.h. */
27048$ac_includes_default
27049#include <$ac_header>
27050_ACEOF
27051rm -f conftest.$ac_objext
27052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27053 (eval $ac_compile) 2>conftest.er1
01cb68df 27054 ac_status=$?
ac1cb8d3
VS
27055 grep -v '^ *+' conftest.er1 >conftest.err
27056 rm -f conftest.er1
27057 cat conftest.err >&5
01cb68df
RG
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } &&
ea7db9ff
DE
27060 { ac_try='test -z "$ac_c_werror_flag"
27061 || test ! -s conftest.err'
ac1cb8d3
VS
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; } &&
27067 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069 (eval $ac_try) 2>&5
27070 ac_status=$?
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; }; then
27073 ac_header_compiler=yes
27074else
27075 echo "$as_me: failed program was:" >&5
27076sed 's/^/| /' conftest.$ac_ext >&5
27077
27078ac_header_compiler=no
27079fi
ac1cb8d3 27080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27082echo "${ECHO_T}$ac_header_compiler" >&6
27083
27084# Is the header present?
27085echo "$as_me:$LINENO: checking $ac_header presence" >&5
27086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27087cat >conftest.$ac_ext <<_ACEOF
27088/* confdefs.h. */
27089_ACEOF
27090cat confdefs.h >>conftest.$ac_ext
27091cat >>conftest.$ac_ext <<_ACEOF
27092/* end confdefs.h. */
27093#include <$ac_header>
27094_ACEOF
27095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27097 ac_status=$?
27098 grep -v '^ *+' conftest.er1 >conftest.err
27099 rm -f conftest.er1
27100 cat conftest.err >&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } >/dev/null; then
27103 if test -s conftest.err; then
27104 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27106 else
27107 ac_cpp_err=
27108 fi
27109else
27110 ac_cpp_err=yes
27111fi
27112if test -z "$ac_cpp_err"; then
27113 ac_header_preproc=yes
27114else
27115 echo "$as_me: failed program was:" >&5
27116sed 's/^/| /' conftest.$ac_ext >&5
27117
27118 ac_header_preproc=no
27119fi
27120rm -f conftest.err conftest.$ac_ext
27121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27122echo "${ECHO_T}$ac_header_preproc" >&6
27123
27124# So? What about this header?
ac1cb8d3
VS
27125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27126 yes:no: )
01cb68df
RG
27127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27131 ac_header_preproc=yes
01cb68df 27132 ;;
ac1cb8d3 27133 no:yes:* )
01cb68df
RG
27134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27146 (
27147 cat <<\_ASBOX
ac1cb8d3
VS
27148## ----------------------------------------- ##
27149## Report this to wx-dev@lists.wxwidgets.org ##
27150## ----------------------------------------- ##
01cb68df
RG
27151_ASBOX
27152 ) |
27153 sed "s/^/$as_me: WARNING: /" >&2
27154 ;;
27155esac
27156echo "$as_me:$LINENO: checking for $ac_header" >&5
27157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27158if eval "test \"\${$as_ac_Header+set}\" = set"; then
27159 echo $ECHO_N "(cached) $ECHO_C" >&6
27160else
ac1cb8d3 27161 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27162fi
27163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27165
27166fi
27167if test `eval echo '${'$as_ac_Header'}'` = yes; then
27168 cat >>confdefs.h <<_ACEOF
27169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27170_ACEOF
27171
27172else
27173
27174 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27175 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27176echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27177
27178fi
27179
27180done
27181
a848cd7e
SC
27182 fi
27183fi
27184
27185
27186USE_OPENGL=0
27187if test "$wxUSE_OPENGL" = "yes"; then
27188 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27189 OPENGL_LIBS="-framework OpenGL -framework AGL"
27190 elif test "$wxUSE_MSW" = 1; then
27191 OPENGL_LIBS="-lopengl32 -lglu32"
27192 else
27193
27194
27195ac_find_includes=
27196for ac_dir in $SEARCH_INCLUDE /usr/include;
27197 do
27198 if test -f "$ac_dir/GL/gl.h"; then
27199 ac_find_includes=$ac_dir
27200 break
27201 fi
27202 done
27203
27204 if test "$ac_find_includes" != "" ; then
27205 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27206echo "${ECHO_T}found in $ac_find_includes" >&6
27207
27208 if test "x$ac_find_includes" = "x/usr/include"; then
27209 ac_path_to_include=""
27210 else
27211 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27212 result=$?
27213 if test $result = 0; then
27214 ac_path_to_include=""
27215 else
27216 ac_path_to_include=" -I$ac_find_includes"
27217 fi
27218 fi
27219
27220 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27221 fi
27222
27223 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27224 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27225echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27226if test "${ac_cv_header_GL_gl_h+set}" = set; then
27227 echo $ECHO_N "(cached) $ECHO_C" >&6
27228fi
27229echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27230echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27231else
27232 # Is the header compilable?
27233echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27234echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27235cat >conftest.$ac_ext <<_ACEOF
27236/* confdefs.h. */
27237_ACEOF
27238cat confdefs.h >>conftest.$ac_ext
27239cat >>conftest.$ac_ext <<_ACEOF
27240/* end confdefs.h. */
27241$ac_includes_default
27242#include <GL/gl.h>
27243_ACEOF
27244rm -f conftest.$ac_objext
27245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27246 (eval $ac_compile) 2>conftest.er1
a848cd7e 27247 ac_status=$?
ac1cb8d3
VS
27248 grep -v '^ *+' conftest.er1 >conftest.err
27249 rm -f conftest.er1
27250 cat conftest.err >&5
a848cd7e
SC
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
ea7db9ff
DE
27253 { ac_try='test -z "$ac_c_werror_flag"
27254 || test ! -s conftest.err'
ac1cb8d3
VS
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; } &&
27260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; }; then
27266 ac_header_compiler=yes
27267else
27268 echo "$as_me: failed program was:" >&5
27269sed 's/^/| /' conftest.$ac_ext >&5
27270
27271ac_header_compiler=no
27272fi
ac1cb8d3 27273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27275echo "${ECHO_T}$ac_header_compiler" >&6
27276
27277# Is the header present?
27278echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27279echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27280cat >conftest.$ac_ext <<_ACEOF
27281/* confdefs.h. */
27282_ACEOF
27283cat confdefs.h >>conftest.$ac_ext
27284cat >>conftest.$ac_ext <<_ACEOF
27285/* end confdefs.h. */
27286#include <GL/gl.h>
27287_ACEOF
27288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27290 ac_status=$?
27291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } >/dev/null; then
27296 if test -s conftest.err; then
27297 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27299 else
27300 ac_cpp_err=
27301 fi
27302else
27303 ac_cpp_err=yes
27304fi
27305if test -z "$ac_cpp_err"; then
27306 ac_header_preproc=yes
27307else
27308 echo "$as_me: failed program was:" >&5
27309sed 's/^/| /' conftest.$ac_ext >&5
27310
27311 ac_header_preproc=no
27312fi
27313rm -f conftest.err conftest.$ac_ext
27314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27315echo "${ECHO_T}$ac_header_preproc" >&6
27316
27317# So? What about this header?
ac1cb8d3
VS
27318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27319 yes:no: )
a848cd7e
SC
27320 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27321echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27322 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27323echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27324 ac_header_preproc=yes
a848cd7e 27325 ;;
ac1cb8d3 27326 no:yes:* )
a848cd7e
SC
27327 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27328echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27329 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27330echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27331 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27332echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27334echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27335 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27336echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27337 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27338echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27339 (
27340 cat <<\_ASBOX
ac1cb8d3
VS
27341## ----------------------------------------- ##
27342## Report this to wx-dev@lists.wxwidgets.org ##
27343## ----------------------------------------- ##
a848cd7e
SC
27344_ASBOX
27345 ) |
27346 sed "s/^/$as_me: WARNING: /" >&2
27347 ;;
27348esac
27349echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27350echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27351if test "${ac_cv_header_GL_gl_h+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27353else
27354 ac_cv_header_GL_gl_h=$ac_header_preproc
27355fi
27356echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27357echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27358
27359fi
27360if test $ac_cv_header_GL_gl_h = yes; then
27361
27362 found_gl=0
27363
27364 echo "$as_me:$LINENO: checking for -lGL" >&5
27365echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27366
27367ac_find_libraries=
27368for ac_dir in $SEARCH_LIB /usr/lib;
27369 do
27370 for ac_extension in a so sl dylib; do
27371 if test -f "$ac_dir/libGL.$ac_extension"; then
27372 ac_find_libraries=$ac_dir
27373 break 2
27374 fi
27375 done
27376 done
27377
27378 if test "$ac_find_libraries" != "" ; then
27379
27380 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27381 result=$?
27382 if test $result = 0; then
27383 ac_path_to_link=""
27384 else
27385 ac_path_to_link=" -L$ac_find_libraries"
27386 fi
27387
27388 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27389 LDFLAGS_GL="$ac_path_to_link"
27390 fi
27391
27392
27393ac_find_libraries=
27394for ac_dir in $SEARCH_LIB /usr/lib;
27395 do
27396 for ac_extension in a so sl dylib; do
27397 if test -f "$ac_dir/libGLU.$ac_extension"; then
27398 ac_find_libraries=$ac_dir
27399 break 2
27400 fi
27401 done
27402 done
27403
27404 if test "$ac_find_libraries" != "" ; then
27405
27406 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27407 result=$?
27408 if test $result = 0; then
27409 ac_path_to_link=""
27410 else
27411 ac_path_to_link=" -L$ac_find_libraries"
27412 fi
27413
27414 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27415 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27416 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27417 fi
27418
27419 found_gl=1
27420 OPENGL_LIBS="-lGL -lGLU"
27421 echo "$as_me:$LINENO: result: yes" >&5
27422echo "${ECHO_T}yes" >&6
27423 fi
27424 fi
27425
27426 if test "$found_gl" != 1; then
27427 echo "$as_me:$LINENO: result: no" >&5
27428echo "${ECHO_T}no" >&6
27429 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27430echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27431
27432ac_find_libraries=
27433for ac_dir in $SEARCH_LIB /usr/lib;
27434 do
27435 for ac_extension in a so sl dylib; do
27436 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27437 ac_find_libraries=$ac_dir
27438 break 2
27439 fi
27440 done
27441 done
27442
27443 if test "$ac_find_libraries" != "" ; then
27444
27445 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27446 result=$?
27447 if test $result = 0; then
27448 ac_path_to_link=""
27449 else
27450 ac_path_to_link=" -L$ac_find_libraries"
27451 fi
27452
27453 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27454 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27455 echo "$as_me:$LINENO: result: yes" >&5
27456echo "${ECHO_T}yes" >&6
27457 else
27458 echo "$as_me:$LINENO: result: no" >&5
27459echo "${ECHO_T}no" >&6
27460 fi
27461 fi
27462
27463fi
27464
27465
27466
27467 if test "x$OPENGL_LIBS" = "x"; then
27468 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27469echo "$as_me: error: OpenGL libraries not available" >&2;}
27470 { (exit 1); exit 1; }; }
27471 fi
27472 fi
27473
27474 if test "$wxUSE_OPENGL" = "yes"; then
27475 USE_OPENGL=1
27476 cat >>confdefs.h <<\_ACEOF
27477#define wxUSE_OPENGL 1
27478_ACEOF
27479
27480 cat >>confdefs.h <<\_ACEOF
27481#define wxUSE_GLCANVAS 1
27482_ACEOF
27483
27484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27485 fi
27486fi
27487
27488if test -z "$TOOLKIT_VPATH" ; then
27489 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27490fi
27491
27492if test -n "$TOOLKIT" ; then
27493 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27494fi
27495
27496UNICODE=0
27497lib_unicode_suffix=
48112931 27498wxconfig_filename_unicode="ansi"
a848cd7e
SC
27499if test "$wxUSE_UNICODE" = "yes"; then
27500 lib_unicode_suffix=u
48112931 27501 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27502 UNICODE=1
27503fi
27504
27505lib_debug_suffix=
48112931 27506wxconfig_filename_debug="release"
a848cd7e
SC
27507DEBUG_FLAG=0
27508if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27509 lib_debug_suffix=d
48112931 27510 wxconfig_filename_debug="debug"
a848cd7e
SC
27511 DEBUG_FLAG=1
27512fi
27513
27514DEBUG_INFO=0
27515if test "$wxUSE_DEBUG_INFO" = "yes"; then
27516 DEBUG_INFO=1
27517fi
27518
27519WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27520
27521TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27522TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27523
48112931
VS
27524WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27525
a848cd7e
SC
27526if test "$cross_compiling" = "yes"; then
27527 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27528 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27529 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27530 HOST_SUFFIX="-${host_alias}"
27531fi
27532
27533WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27534WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27535WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27536WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27537
27538WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27539WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27540
27541WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27542WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27543WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27544WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27545
27546case "${host}" in
27547 *-*-cygwin* | *-*-mingw32* )
27548 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27549 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27550 ;;
27551
27552 *-*-darwin* )
27553
27554 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27555 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27556
27557 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27558 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27559 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27560 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27561
27562 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27563 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27564 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27565 fi
27566 ;;
27567esac
27568
27569WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27570WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27571
27572WXCONFIG_LIBS="-l${WX_LIBRARY}"
27573WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27574
27575if test "$wxUSE_OPENGL" = "yes"; then
27576 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27577 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27578fi
27579
27580
27581
27582if test "$wxUSE_SHARED" = "yes"; then
27583 case "${host}" in
27584 *-pc-msdosdjgpp )
27585 wxUSE_SHARED=no
27586 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27587echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27588 ;;
27589 esac
27590fi
27591
27592SHARED=0
27593if test "$wxUSE_SHARED" = "yes"; then
27594 SHARED=1
27595
27596
27597 found_versioning=no
27598
27599
27600 if test $found_versioning = no ; then
27601 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27602echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27603if test "${wx_cv_version_script+set}" = set; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27605else
27606
27607 echo "VER_1 { *; };" >conftest.sym
27608 echo "int main() { return 0; }" >conftest.cpp
27609
27610 if { ac_try='
27611 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27612 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27615 ac_status=$?
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; } ; then
27618 if test -s conftest.stderr ; then
27619 wx_cv_version_script=no
27620 else
27621 wx_cv_version_script=yes
27622 fi
27623 else
27624 wx_cv_version_script=no
27625 fi
27626 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27627
27628fi
27629echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27630echo "${ECHO_T}$wx_cv_version_script" >&6
27631 if test $wx_cv_version_script = yes ; then
27632 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27633 fi
27634 fi
27635
27636
27637 case "${host}" in
27638 *-*-linux* | *-*-gnu* )
27639 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27640 ;;
27641
27642 *-*-solaris2* )
27643 if test "$GCC" = yes ; then
27644 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27645
27646 saveLdflags="$LDFLAGS"
27647 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27648 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27649echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27650 cat >conftest.$ac_ext <<_ACEOF
27651/* confdefs.h. */
27652_ACEOF
27653cat confdefs.h >>conftest.$ac_ext
27654cat >>conftest.$ac_ext <<_ACEOF
27655/* end confdefs.h. */
27656
27657int
27658main ()
27659{
27660
27661 ;
27662 return 0;
27663}
27664_ACEOF
27665rm -f conftest.$ac_objext conftest$ac_exeext
27666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27667 (eval $ac_link) 2>conftest.er1
a848cd7e 27668 ac_status=$?
ac1cb8d3
VS
27669 grep -v '^ *+' conftest.er1 >conftest.err
27670 rm -f conftest.er1
27671 cat conftest.err >&5
a848cd7e
SC
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } &&
ea7db9ff
DE
27674 { ac_try='test -z "$ac_c_werror_flag"
27675 || test ! -s conftest.err'
ac1cb8d3
VS
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687
27688 echo "$as_me:$LINENO: result: yes" >&5
27689echo "${ECHO_T}yes" >&6
27690 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27691
27692else
27693 echo "$as_me: failed program was:" >&5
27694sed 's/^/| /' conftest.$ac_ext >&5
27695
27696
27697 echo "$as_me:$LINENO: result: no" >&5
27698echo "${ECHO_T}no" >&6
27699 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27700echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27701 LDFLAGS="$saveLdflags -Wl,-R,/"
27702 cat >conftest.$ac_ext <<_ACEOF
27703/* confdefs.h. */
27704_ACEOF
27705cat confdefs.h >>conftest.$ac_ext
27706cat >>conftest.$ac_ext <<_ACEOF
27707/* end confdefs.h. */
27708
27709int
27710main ()
27711{
27712
27713 ;
27714 return 0;
27715}
27716_ACEOF
27717rm -f conftest.$ac_objext conftest$ac_exeext
27718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27719 (eval $ac_link) 2>conftest.er1
a848cd7e 27720 ac_status=$?
ac1cb8d3
VS
27721 grep -v '^ *+' conftest.er1 >conftest.err
27722 rm -f conftest.er1
27723 cat conftest.err >&5
a848cd7e
SC
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } &&
ea7db9ff
DE
27726 { ac_try='test -z "$ac_c_werror_flag"
27727 || test ! -s conftest.err'
ac1cb8d3
VS
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; } &&
27733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27735 (eval $ac_try) 2>&5
27736 ac_status=$?
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); }; }; then
27739
27740 echo "$as_me:$LINENO: result: yes" >&5
27741echo "${ECHO_T}yes" >&6
27742 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27743else
27744 echo "$as_me: failed program was:" >&5
27745sed 's/^/| /' conftest.$ac_ext >&5
27746
27747
27748 echo "$as_me:$LINENO: result: no" >&5
27749echo "${ECHO_T}no" >&6
27750
27751fi
ac1cb8d3
VS
27752rm -f conftest.err conftest.$ac_objext \
27753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27754
27755fi
ac1cb8d3
VS
27756rm -f conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27758 LDFLAGS="$saveLdflags"
27759 else
27760 SHARED_LD="${CXX} -G -o"
27761 PIC_FLAG="-KPIC"
27762 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27763 fi
27764 ;;
27765
27766 powerpc-*-darwin* )
27767 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27768 cat <<EOF >change-install-names
27769#!/bin/sh
27770libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27771inst_cmd="install_name_tool "
27772for i in \${libnames} ; do
27773 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27774done
27775\${inst_cmd} \${3}
27776EOF
27777 chmod +x change-install-names
27778 ;;
27779
27780 *-*-cygwin* | *-*-mingw32* )
27781 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27782 ;;
27783
27784 esac
27785
27786 if test "x$WX_TARGET_LIBRARY" = "x"; then
27787 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27788 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27789 fi
27790
27791 WX_TARGET_LIBRARY_TYPE="so"
27792 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27793fi
27794
27795if test "$wxUSE_SHARED" = "no"; then
27796
27797 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27798 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27799 fi
27800
27801 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27802 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27803 fi
27804
27805 if test "$wxUSE_OPENGL" = "yes"; then
27806 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27807 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27808 else
27809 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27810 fi
27811
27812 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27813 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27814
27815 WX_TARGET_LIBRARY_TYPE="a"
27816 INSTALL_LIBRARY='$(INSTALL_DATA)'
27817
27818 STATIC_FLAG="yes"
27819else
27820 STATIC_FLAG="no"
27821fi
27822
27823if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27824 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27825 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27826 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27827
27828 # Extract the first word of "Rez", so it can be a program name with args.
27829set dummy Rez; ac_word=$2
27830echo "$as_me:$LINENO: checking for $ac_word" >&5
27831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27832if test "${ac_cv_prog_RESCOMP+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27834else
27835 if test -n "$RESCOMP"; then
27836 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27837else
27838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27839for as_dir in $PATH
27840do
27841 IFS=$as_save_IFS
27842 test -z "$as_dir" && as_dir=.
27843 for ac_exec_ext in '' $ac_executable_extensions; do
27844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27845 ac_cv_prog_RESCOMP="Rez"
27846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27847 break 2
27848 fi
27849done
27850done
27851
27852 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27853fi
27854fi
27855RESCOMP=$ac_cv_prog_RESCOMP
27856if test -n "$RESCOMP"; then
27857 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27858echo "${ECHO_T}$RESCOMP" >&6
27859else
27860 echo "$as_me:$LINENO: result: no" >&5
27861echo "${ECHO_T}no" >&6
27862fi
27863
27864 # Extract the first word of "DeRez", so it can be a program name with args.
27865set dummy DeRez; ac_word=$2
27866echo "$as_me:$LINENO: checking for $ac_word" >&5
27867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27868if test "${ac_cv_prog_DEREZ+set}" = set; then
27869 echo $ECHO_N "(cached) $ECHO_C" >&6
27870else
27871 if test -n "$DEREZ"; then
27872 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27873else
27874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27875for as_dir in $PATH
27876do
27877 IFS=$as_save_IFS
27878 test -z "$as_dir" && as_dir=.
27879 for ac_exec_ext in '' $ac_executable_extensions; do
27880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27881 ac_cv_prog_DEREZ="DeRez"
27882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27883 break 2
27884 fi
27885done
27886done
27887
27888 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27889fi
27890fi
27891DEREZ=$ac_cv_prog_DEREZ
27892if test -n "$DEREZ"; then
27893 echo "$as_me:$LINENO: result: $DEREZ" >&5
27894echo "${ECHO_T}$DEREZ" >&6
27895else
27896 echo "$as_me:$LINENO: result: no" >&5
27897echo "${ECHO_T}no" >&6
27898fi
27899
27900 # Extract the first word of "SetFile", so it can be a program name with args.
27901set dummy SetFile; ac_word=$2
27902echo "$as_me:$LINENO: checking for $ac_word" >&5
27903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27904if test "${ac_cv_prog_SETFILE+set}" = set; then
27905 echo $ECHO_N "(cached) $ECHO_C" >&6
27906else
27907 if test -n "$SETFILE"; then
27908 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27909else
27910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27911for as_dir in $PATH
27912do
27913 IFS=$as_save_IFS
27914 test -z "$as_dir" && as_dir=.
27915 for ac_exec_ext in '' $ac_executable_extensions; do
27916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27917 ac_cv_prog_SETFILE="SetFile"
27918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27919 break 2
27920 fi
27921done
27922done
27923
27924 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27925fi
27926fi
27927SETFILE=$ac_cv_prog_SETFILE
27928if test -n "$SETFILE"; then
27929 echo "$as_me:$LINENO: result: $SETFILE" >&5
27930echo "${ECHO_T}$SETFILE" >&6
27931else
27932 echo "$as_me:$LINENO: result: no" >&5
27933echo "${ECHO_T}no" >&6
27934fi
27935
27936
27937 MACSETFILE="\$(SETFILE)"
27938
27939 if test "$wxUSE_MAC" = 1; then
27940 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27941
27942 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27943 else
27944 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27945 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27946 fi
27947else
27948 MACSETFILE="@#"
27949 MACRESWXCONFIG="#"
27950
27951 if test "$wxUSE_PM" = 1; then
27952 MACRESCOMP="emxbind -ep"
27953 else
27954 MACRESCOMP="@#"
27955 fi
27956fi
27957
27958
27959
27960echo "$as_me:$LINENO: checking for mode_t" >&5
27961echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27962if test "${ac_cv_type_mode_t+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27964else
27965 cat >conftest.$ac_ext <<_ACEOF
27966/* confdefs.h. */
27967_ACEOF
27968cat confdefs.h >>conftest.$ac_ext
27969cat >>conftest.$ac_ext <<_ACEOF
27970/* end confdefs.h. */
27971$ac_includes_default
27972int
27973main ()
27974{
27975if ((mode_t *) 0)
27976 return 0;
27977if (sizeof (mode_t))
27978 return 0;
27979 ;
27980 return 0;
27981}
27982_ACEOF
27983rm -f conftest.$ac_objext
27984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27985 (eval $ac_compile) 2>conftest.er1
a848cd7e 27986 ac_status=$?
ac1cb8d3
VS
27987 grep -v '^ *+' conftest.er1 >conftest.err
27988 rm -f conftest.er1
27989 cat conftest.err >&5
a848cd7e
SC
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } &&
ea7db9ff
DE
27992 { ac_try='test -z "$ac_c_werror_flag"
27993 || test ! -s conftest.err'
ac1cb8d3
VS
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; } &&
27999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28002 ac_status=$?
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 ac_cv_type_mode_t=yes
28006else
28007 echo "$as_me: failed program was:" >&5
28008sed 's/^/| /' conftest.$ac_ext >&5
28009
28010ac_cv_type_mode_t=no
28011fi
ac1cb8d3 28012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28013fi
28014echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28015echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28016if test $ac_cv_type_mode_t = yes; then
28017 :
28018else
28019
28020cat >>confdefs.h <<_ACEOF
28021#define mode_t int
28022_ACEOF
28023
28024fi
28025
28026echo "$as_me:$LINENO: checking for off_t" >&5
28027echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28028if test "${ac_cv_type_off_t+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28030else
28031 cat >conftest.$ac_ext <<_ACEOF
28032/* confdefs.h. */
28033_ACEOF
28034cat confdefs.h >>conftest.$ac_ext
28035cat >>conftest.$ac_ext <<_ACEOF
28036/* end confdefs.h. */
28037$ac_includes_default
28038int
28039main ()
28040{
28041if ((off_t *) 0)
28042 return 0;
28043if (sizeof (off_t))
28044 return 0;
28045 ;
28046 return 0;
28047}
28048_ACEOF
28049rm -f conftest.$ac_objext
28050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28051 (eval $ac_compile) 2>conftest.er1
a848cd7e 28052 ac_status=$?
ac1cb8d3
VS
28053 grep -v '^ *+' conftest.er1 >conftest.err
28054 rm -f conftest.er1
28055 cat conftest.err >&5
a848cd7e
SC
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
ea7db9ff
DE
28058 { ac_try='test -z "$ac_c_werror_flag"
28059 || test ! -s conftest.err'
ac1cb8d3
VS
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067 (eval $ac_try) 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; }; then
28071 ac_cv_type_off_t=yes
28072else
28073 echo "$as_me: failed program was:" >&5
28074sed 's/^/| /' conftest.$ac_ext >&5
28075
28076ac_cv_type_off_t=no
28077fi
ac1cb8d3 28078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28079fi
28080echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28081echo "${ECHO_T}$ac_cv_type_off_t" >&6
28082if test $ac_cv_type_off_t = yes; then
28083 :
28084else
28085
28086cat >>confdefs.h <<_ACEOF
28087#define off_t long
28088_ACEOF
28089
28090fi
28091
28092echo "$as_me:$LINENO: checking for pid_t" >&5
28093echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28094if test "${ac_cv_type_pid_t+set}" = set; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28096else
28097 cat >conftest.$ac_ext <<_ACEOF
28098/* confdefs.h. */
28099_ACEOF
28100cat confdefs.h >>conftest.$ac_ext
28101cat >>conftest.$ac_ext <<_ACEOF
28102/* end confdefs.h. */
28103$ac_includes_default
28104int
28105main ()
28106{
28107if ((pid_t *) 0)
28108 return 0;
28109if (sizeof (pid_t))
28110 return 0;
28111 ;
28112 return 0;
28113}
28114_ACEOF
28115rm -f conftest.$ac_objext
28116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28117 (eval $ac_compile) 2>conftest.er1
a848cd7e 28118 ac_status=$?
ac1cb8d3
VS
28119 grep -v '^ *+' conftest.er1 >conftest.err
28120 rm -f conftest.er1
28121 cat conftest.err >&5
a848cd7e
SC
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
ea7db9ff
DE
28124 { ac_try='test -z "$ac_c_werror_flag"
28125 || test ! -s conftest.err'
ac1cb8d3
VS
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28128 ac_status=$?
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; } &&
28131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; }; then
28137 ac_cv_type_pid_t=yes
28138else
28139 echo "$as_me: failed program was:" >&5
28140sed 's/^/| /' conftest.$ac_ext >&5
28141
28142ac_cv_type_pid_t=no
28143fi
ac1cb8d3 28144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28145fi
28146echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28147echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28148if test $ac_cv_type_pid_t = yes; then
28149 :
28150else
28151
28152cat >>confdefs.h <<_ACEOF
28153#define pid_t int
28154_ACEOF
28155
28156fi
28157
28158echo "$as_me:$LINENO: checking for size_t" >&5
28159echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28160if test "${ac_cv_type_size_t+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28162else
28163 cat >conftest.$ac_ext <<_ACEOF
28164/* confdefs.h. */
28165_ACEOF
28166cat confdefs.h >>conftest.$ac_ext
28167cat >>conftest.$ac_ext <<_ACEOF
28168/* end confdefs.h. */
28169$ac_includes_default
28170int
28171main ()
28172{
28173if ((size_t *) 0)
28174 return 0;
28175if (sizeof (size_t))
28176 return 0;
28177 ;
28178 return 0;
28179}
28180_ACEOF
28181rm -f conftest.$ac_objext
28182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28183 (eval $ac_compile) 2>conftest.er1
a848cd7e 28184 ac_status=$?
ac1cb8d3
VS
28185 grep -v '^ *+' conftest.er1 >conftest.err
28186 rm -f conftest.er1
28187 cat conftest.err >&5
a848cd7e
SC
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
ea7db9ff
DE
28190 { ac_try='test -z "$ac_c_werror_flag"
28191 || test ! -s conftest.err'
ac1cb8d3
VS
28192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 (eval $ac_try) 2>&5
28194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; } &&
28197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28199 (eval $ac_try) 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 ac_cv_type_size_t=yes
28204else
28205 echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
28208ac_cv_type_size_t=no
28209fi
ac1cb8d3 28210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28211fi
28212echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28213echo "${ECHO_T}$ac_cv_type_size_t" >&6
28214if test $ac_cv_type_size_t = yes; then
28215 :
28216else
28217
28218cat >>confdefs.h <<_ACEOF
28219#define size_t unsigned
28220_ACEOF
28221
28222fi
28223
28224echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28225echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28226if test "${ac_cv_type_uid_t+set}" = set; then
28227 echo $ECHO_N "(cached) $ECHO_C" >&6
28228else
28229 cat >conftest.$ac_ext <<_ACEOF
28230/* confdefs.h. */
28231_ACEOF
28232cat confdefs.h >>conftest.$ac_ext
28233cat >>conftest.$ac_ext <<_ACEOF
28234/* end confdefs.h. */
28235#include <sys/types.h>
28236
28237_ACEOF
28238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28239 $EGREP "uid_t" >/dev/null 2>&1; then
28240 ac_cv_type_uid_t=yes
28241else
28242 ac_cv_type_uid_t=no
28243fi
28244rm -f conftest*
28245
28246fi
28247echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28248echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28249if test $ac_cv_type_uid_t = no; then
28250
28251cat >>confdefs.h <<\_ACEOF
28252#define uid_t int
28253_ACEOF
28254
28255
28256cat >>confdefs.h <<\_ACEOF
28257#define gid_t int
28258_ACEOF
28259
28260fi
28261
28262
28263
28264
28265ac_ext=cc
28266ac_cpp='$CXXCPP $CPPFLAGS'
28267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28270
28271echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28272echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28273if test "${wx_cv_size_t_is_uint+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28275else
28276
28277 cat >conftest.$ac_ext <<_ACEOF
28278/* confdefs.h. */
28279_ACEOF
28280cat confdefs.h >>conftest.$ac_ext
28281cat >>conftest.$ac_ext <<_ACEOF
28282/* end confdefs.h. */
28283#include <stddef.h>
28284int
28285main ()
28286{
28287
28288 return 0; }
28289
28290 struct Foo { void foo(size_t); void foo(unsigned int); };
28291
28292 int bar() {
28293
28294 ;
28295 return 0;
28296}
28297_ACEOF
28298rm -f conftest.$ac_objext
28299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28300 (eval $ac_compile) 2>conftest.er1
a848cd7e 28301 ac_status=$?
ac1cb8d3
VS
28302 grep -v '^ *+' conftest.er1 >conftest.err
28303 rm -f conftest.er1
28304 cat conftest.err >&5
a848cd7e
SC
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); } &&
ea7db9ff
DE
28307 { ac_try='test -z "$ac_cxx_werror_flag"
28308 || test ! -s conftest.err'
ac1cb8d3
VS
28309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28310 (eval $ac_try) 2>&5
28311 ac_status=$?
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); }; } &&
28314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316 (eval $ac_try) 2>&5
28317 ac_status=$?
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); }; }; then
28320 wx_cv_size_t_is_uint=no
28321else
28322 echo "$as_me: failed program was:" >&5
28323sed 's/^/| /' conftest.$ac_ext >&5
28324
28325wx_cv_size_t_is_uint=yes
28326
28327fi
ac1cb8d3 28328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28329
28330
28331fi
28332echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28333echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28334
28335if test "$wx_cv_size_t_is_uint" = "yes"; then
28336 cat >>confdefs.h <<\_ACEOF
28337#define wxSIZE_T_IS_UINT 1
28338_ACEOF
28339
28340else
28341 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28342echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28343if test "${wx_cv_size_t_is_ulong+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28345else
28346 cat >conftest.$ac_ext <<_ACEOF
28347/* confdefs.h. */
28348_ACEOF
28349cat confdefs.h >>conftest.$ac_ext
28350cat >>conftest.$ac_ext <<_ACEOF
28351/* end confdefs.h. */
28352#include <stddef.h>
28353int
28354main ()
28355{
28356
28357 return 0; }
28358
28359 struct Foo { void foo(size_t); void foo(unsigned long); };
28360
28361 int bar() {
28362
28363 ;
28364 return 0;
28365}
28366_ACEOF
28367rm -f conftest.$ac_objext
28368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28369 (eval $ac_compile) 2>conftest.er1
a848cd7e 28370 ac_status=$?
ac1cb8d3
VS
28371 grep -v '^ *+' conftest.er1 >conftest.err
28372 rm -f conftest.er1
28373 cat conftest.err >&5
a848cd7e
SC
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } &&
ea7db9ff
DE
28376 { ac_try='test -z "$ac_cxx_werror_flag"
28377 || test ! -s conftest.err'
ac1cb8d3
VS
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28380 ac_status=$?
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; } &&
28383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28385 (eval $ac_try) 2>&5
28386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; }; then
28389 wx_cv_size_t_is_ulong=no
28390else
28391 echo "$as_me: failed program was:" >&5
28392sed 's/^/| /' conftest.$ac_ext >&5
28393
28394wx_cv_size_t_is_ulong=yes
28395
28396fi
ac1cb8d3 28397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28398
28399fi
28400echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28401echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28402
28403 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28404 cat >>confdefs.h <<\_ACEOF
28405#define wxSIZE_T_IS_ULONG 1
28406_ACEOF
28407
28408 fi
28409fi
28410
28411ac_ext=c
28412ac_cpp='$CPP $CPPFLAGS'
28413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28415ac_compiler_gnu=$ac_cv_c_compiler_gnu
28416
28417
28418
28419echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28420echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28421if test "${wx_cv_struct_pw_gecos+set}" = set; then
28422 echo $ECHO_N "(cached) $ECHO_C" >&6
28423else
28424
28425 cat >conftest.$ac_ext <<_ACEOF
28426/* confdefs.h. */
28427_ACEOF
28428cat confdefs.h >>conftest.$ac_ext
28429cat >>conftest.$ac_ext <<_ACEOF
28430/* end confdefs.h. */
28431#include <pwd.h>
28432int
28433main ()
28434{
28435
28436 char *p;
28437 struct passwd *pw;
28438 p = pw->pw_gecos;
28439
28440 ;
28441 return 0;
28442}
28443_ACEOF
28444rm -f conftest.$ac_objext
28445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28446 (eval $ac_compile) 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); } &&
ea7db9ff
DE
28453 { ac_try='test -z "$ac_c_werror_flag"
28454 || test ! -s conftest.err'
ac1cb8d3
VS
28455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28456 (eval $ac_try) 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; } &&
28460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; }; then
28466
28467 wx_cv_struct_pw_gecos=yes
28468
28469else
28470 echo "$as_me: failed program was:" >&5
28471sed 's/^/| /' conftest.$ac_ext >&5
28472
28473
28474 wx_cv_struct_pw_gecos=no
28475
28476
28477fi
ac1cb8d3 28478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28479
28480
28481fi
28482echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28483echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28484
28485if test "$wx_cv_struct_pw_gecos" = "yes"; then
28486 cat >>confdefs.h <<\_ACEOF
28487#define HAVE_PW_GECOS 1
28488_ACEOF
28489
28490fi
28491
28492
28493if test "$wx_cv_sizeof_wchar_t" != "0"; then
28494 cat >>confdefs.h <<\_ACEOF
28495#define wxUSE_WCHAR_T 1
28496_ACEOF
28497
28498
28499 WCSLEN_FOUND=0
28500 WCHAR_LINK=
28501
28502for ac_func in wcslen
28503do
28504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28505echo "$as_me:$LINENO: checking for $ac_func" >&5
28506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28507if eval "test \"\${$as_ac_var+set}\" = set"; then
28508 echo $ECHO_N "(cached) $ECHO_C" >&6
28509else
28510 cat >conftest.$ac_ext <<_ACEOF
28511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
ac1cb8d3
VS
28516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28518#define $ac_func innocuous_$ac_func
28519
a848cd7e
SC
28520/* System header to define __stub macros and hopefully few prototypes,
28521 which can conflict with char $ac_func (); below.
28522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28523 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28524
a848cd7e
SC
28525#ifdef __STDC__
28526# include <limits.h>
28527#else
28528# include <assert.h>
28529#endif
ac1cb8d3
VS
28530
28531#undef $ac_func
28532
a848cd7e
SC
28533/* Override any gcc2 internal prototype to avoid an error. */
28534#ifdef __cplusplus
28535extern "C"
28536{
28537#endif
28538/* We use char because int might match the return type of a gcc2
28539 builtin and then its argument prototype would still apply. */
28540char $ac_func ();
28541/* The GNU C library defines this for functions which it implements
28542 to always fail with ENOSYS. Some functions are actually named
28543 something starting with __ and the normal name is an alias. */
28544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28545choke me
28546#else
28547char (*f) () = $ac_func;
28548#endif
28549#ifdef __cplusplus
28550}
28551#endif
28552
28553int
28554main ()
28555{
28556return f != $ac_func;
28557 ;
28558 return 0;
28559}
28560_ACEOF
28561rm -f conftest.$ac_objext conftest$ac_exeext
28562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28563 (eval $ac_link) 2>conftest.er1
a848cd7e 28564 ac_status=$?
ac1cb8d3
VS
28565 grep -v '^ *+' conftest.er1 >conftest.err
28566 rm -f conftest.er1
28567 cat conftest.err >&5
a848cd7e
SC
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } &&
ea7db9ff
DE
28570 { ac_try='test -z "$ac_c_werror_flag"
28571 || test ! -s conftest.err'
ac1cb8d3
VS
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28574 ac_status=$?
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; } &&
28577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579 (eval $ac_try) 2>&5
28580 ac_status=$?
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
28583 eval "$as_ac_var=yes"
28584else
28585 echo "$as_me: failed program was:" >&5
28586sed 's/^/| /' conftest.$ac_ext >&5
28587
28588eval "$as_ac_var=no"
28589fi
ac1cb8d3
VS
28590rm -f conftest.err conftest.$ac_objext \
28591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28592fi
28593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28594echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28595if test `eval echo '${'$as_ac_var'}'` = yes; then
28596 cat >>confdefs.h <<_ACEOF
28597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28598_ACEOF
28599 WCSLEN_FOUND=1
28600fi
28601done
28602
28603
28604 if test "$WCSLEN_FOUND" = 0; then
28605 if test "$TOOLKIT" = "MSW"; then
28606 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28607echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28608if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28609 echo $ECHO_N "(cached) $ECHO_C" >&6
28610else
28611 ac_check_lib_save_LIBS=$LIBS
28612LIBS="-lmsvcrt $LIBS"
28613cat >conftest.$ac_ext <<_ACEOF
28614/* confdefs.h. */
28615_ACEOF
28616cat confdefs.h >>conftest.$ac_ext
28617cat >>conftest.$ac_ext <<_ACEOF
28618/* end confdefs.h. */
28619
28620/* Override any gcc2 internal prototype to avoid an error. */
28621#ifdef __cplusplus
28622extern "C"
28623#endif
28624/* We use char because int might match the return type of a gcc2
28625 builtin and then its argument prototype would still apply. */
28626char wcslen ();
28627int
28628main ()
28629{
28630wcslen ();
28631 ;
28632 return 0;
28633}
28634_ACEOF
28635rm -f conftest.$ac_objext conftest$ac_exeext
28636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28637 (eval $ac_link) 2>conftest.er1
a848cd7e 28638 ac_status=$?
ac1cb8d3
VS
28639 grep -v '^ *+' conftest.er1 >conftest.err
28640 rm -f conftest.er1
28641 cat conftest.err >&5
a848cd7e
SC
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); } &&
ea7db9ff
DE
28644 { ac_try='test -z "$ac_c_werror_flag"
28645 || test ! -s conftest.err'
ac1cb8d3
VS
28646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; } &&
28651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653 (eval $ac_try) 2>&5
28654 ac_status=$?
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; }; then
28657 ac_cv_lib_msvcrt_wcslen=yes
28658else
28659 echo "$as_me: failed program was:" >&5
28660sed 's/^/| /' conftest.$ac_ext >&5
28661
28662ac_cv_lib_msvcrt_wcslen=no
28663fi
ac1cb8d3
VS
28664rm -f conftest.err conftest.$ac_objext \
28665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28666LIBS=$ac_check_lib_save_LIBS
28667fi
28668echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28669echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28670if test $ac_cv_lib_msvcrt_wcslen = yes; then
28671 WCHAR_OK=1
28672fi
28673
28674 else
28675 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28676echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28677if test "${ac_cv_lib_w_wcslen+set}" = set; then
28678 echo $ECHO_N "(cached) $ECHO_C" >&6
28679else
28680 ac_check_lib_save_LIBS=$LIBS
28681LIBS="-lw $LIBS"
28682cat >conftest.$ac_ext <<_ACEOF
28683/* confdefs.h. */
28684_ACEOF
28685cat confdefs.h >>conftest.$ac_ext
28686cat >>conftest.$ac_ext <<_ACEOF
28687/* end confdefs.h. */
28688
28689/* Override any gcc2 internal prototype to avoid an error. */
28690#ifdef __cplusplus
28691extern "C"
28692#endif
28693/* We use char because int might match the return type of a gcc2
28694 builtin and then its argument prototype would still apply. */
28695char wcslen ();
28696int
28697main ()
28698{
28699wcslen ();
28700 ;
28701 return 0;
28702}
28703_ACEOF
28704rm -f conftest.$ac_objext conftest$ac_exeext
28705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28706 (eval $ac_link) 2>conftest.er1
a848cd7e 28707 ac_status=$?
ac1cb8d3
VS
28708 grep -v '^ *+' conftest.er1 >conftest.err
28709 rm -f conftest.er1
28710 cat conftest.err >&5
a848cd7e
SC
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } &&
ea7db9ff
DE
28713 { ac_try='test -z "$ac_c_werror_flag"
28714 || test ! -s conftest.err'
ac1cb8d3
VS
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28717 ac_status=$?
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; } &&
28720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722 (eval $ac_try) 2>&5
28723 ac_status=$?
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28726 ac_cv_lib_w_wcslen=yes
28727else
28728 echo "$as_me: failed program was:" >&5
28729sed 's/^/| /' conftest.$ac_ext >&5
28730
28731ac_cv_lib_w_wcslen=no
28732fi
ac1cb8d3
VS
28733rm -f conftest.err conftest.$ac_objext \
28734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28735LIBS=$ac_check_lib_save_LIBS
28736fi
28737echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28738echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28739if test $ac_cv_lib_w_wcslen = yes; then
28740
28741 WCHAR_LINK=" -lw"
28742 WCSLEN_FOUND=1
28743
28744fi
28745
28746 fi
28747 fi
28748
28749 if test "$WCSLEN_FOUND" = 1; then
28750 cat >>confdefs.h <<\_ACEOF
28751#define HAVE_WCSLEN 1
28752_ACEOF
28753
28754 fi
28755
473276a9
VS
28756 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28757 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28758 fi
28759
a848cd7e
SC
28760
28761for ac_func in wcsrtombs
28762do
28763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28764echo "$as_me:$LINENO: checking for $ac_func" >&5
28765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28766if eval "test \"\${$as_ac_var+set}\" = set"; then
28767 echo $ECHO_N "(cached) $ECHO_C" >&6
28768else
28769 cat >conftest.$ac_ext <<_ACEOF
28770/* confdefs.h. */
28771_ACEOF
28772cat confdefs.h >>conftest.$ac_ext
28773cat >>conftest.$ac_ext <<_ACEOF
28774/* end confdefs.h. */
ac1cb8d3
VS
28775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28777#define $ac_func innocuous_$ac_func
28778
a848cd7e
SC
28779/* System header to define __stub macros and hopefully few prototypes,
28780 which can conflict with char $ac_func (); below.
28781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28782 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28783
a848cd7e
SC
28784#ifdef __STDC__
28785# include <limits.h>
28786#else
28787# include <assert.h>
28788#endif
ac1cb8d3
VS
28789
28790#undef $ac_func
28791
a848cd7e
SC
28792/* Override any gcc2 internal prototype to avoid an error. */
28793#ifdef __cplusplus
28794extern "C"
28795{
28796#endif
28797/* We use char because int might match the return type of a gcc2
28798 builtin and then its argument prototype would still apply. */
28799char $ac_func ();
28800/* The GNU C library defines this for functions which it implements
28801 to always fail with ENOSYS. Some functions are actually named
28802 something starting with __ and the normal name is an alias. */
28803#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28804choke me
28805#else
28806char (*f) () = $ac_func;
28807#endif
28808#ifdef __cplusplus
28809}
28810#endif
28811
28812int
28813main ()
28814{
28815return f != $ac_func;
28816 ;
28817 return 0;
28818}
28819_ACEOF
28820rm -f conftest.$ac_objext conftest$ac_exeext
28821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28822 (eval $ac_link) 2>conftest.er1
a848cd7e 28823 ac_status=$?
ac1cb8d3
VS
28824 grep -v '^ *+' conftest.er1 >conftest.err
28825 rm -f conftest.er1
28826 cat conftest.err >&5
a848cd7e
SC
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } &&
ea7db9ff
DE
28829 { ac_try='test -z "$ac_c_werror_flag"
28830 || test ! -s conftest.err'
ac1cb8d3
VS
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); }; }; then
28842 eval "$as_ac_var=yes"
28843else
28844 echo "$as_me: failed program was:" >&5
28845sed 's/^/| /' conftest.$ac_ext >&5
28846
28847eval "$as_ac_var=no"
28848fi
ac1cb8d3
VS
28849rm -f conftest.err conftest.$ac_objext \
28850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28851fi
28852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28853echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28854if test `eval echo '${'$as_ac_var'}'` = yes; then
28855 cat >>confdefs.h <<_ACEOF
28856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28857_ACEOF
28858
28859fi
28860done
28861
28862else
28863 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28864echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28865fi
28866
28867
28868
28869ac_ext=cc
28870ac_cpp='$CXXCPP $CPPFLAGS'
28871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28874
28875
28876
28877for ac_func in vsnprintf
28878do
28879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28880echo "$as_me:$LINENO: checking for $ac_func" >&5
28881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28882if eval "test \"\${$as_ac_var+set}\" = set"; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28884else
28885 cat >conftest.$ac_ext <<_ACEOF
28886/* confdefs.h. */
28887_ACEOF
28888cat confdefs.h >>conftest.$ac_ext
28889cat >>conftest.$ac_ext <<_ACEOF
28890/* end confdefs.h. */
ac1cb8d3
VS
28891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28893#define $ac_func innocuous_$ac_func
28894
a848cd7e
SC
28895/* System header to define __stub macros and hopefully few prototypes,
28896 which can conflict with char $ac_func (); below.
28897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28898 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28899
a848cd7e
SC
28900#ifdef __STDC__
28901# include <limits.h>
28902#else
28903# include <assert.h>
28904#endif
ac1cb8d3
VS
28905
28906#undef $ac_func
28907
a848cd7e
SC
28908/* Override any gcc2 internal prototype to avoid an error. */
28909#ifdef __cplusplus
28910extern "C"
28911{
28912#endif
28913/* We use char because int might match the return type of a gcc2
28914 builtin and then its argument prototype would still apply. */
28915char $ac_func ();
28916/* The GNU C library defines this for functions which it implements
28917 to always fail with ENOSYS. Some functions are actually named
28918 something starting with __ and the normal name is an alias. */
28919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28920choke me
28921#else
28922char (*f) () = $ac_func;
28923#endif
28924#ifdef __cplusplus
28925}
28926#endif
28927
28928int
28929main ()
28930{
28931return f != $ac_func;
28932 ;
28933 return 0;
28934}
28935_ACEOF
28936rm -f conftest.$ac_objext conftest$ac_exeext
28937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28938 (eval $ac_link) 2>conftest.er1
a848cd7e 28939 ac_status=$?
ac1cb8d3
VS
28940 grep -v '^ *+' conftest.er1 >conftest.err
28941 rm -f conftest.er1
28942 cat conftest.err >&5
a848cd7e
SC
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } &&
ea7db9ff
DE
28945 { ac_try='test -z "$ac_cxx_werror_flag"
28946 || test ! -s conftest.err'
ac1cb8d3
VS
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; } &&
28952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28958 eval "$as_ac_var=yes"
28959else
28960 echo "$as_me: failed program was:" >&5
28961sed 's/^/| /' conftest.$ac_ext >&5
28962
28963eval "$as_ac_var=no"
28964fi
ac1cb8d3
VS
28965rm -f conftest.err conftest.$ac_objext \
28966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28967fi
28968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28969echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28970if test `eval echo '${'$as_ac_var'}'` = yes; then
28971 cat >>confdefs.h <<_ACEOF
28972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28973_ACEOF
28974
28975fi
28976done
28977
28978
28979if test "$ac_cv_func_vsnprintf" = "yes"; then
28980 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28981echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28982if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28983 echo $ECHO_N "(cached) $ECHO_C" >&6
28984else
28985
28986 cat >conftest.$ac_ext <<_ACEOF
28987/* confdefs.h. */
28988_ACEOF
28989cat confdefs.h >>conftest.$ac_ext
28990cat >>conftest.$ac_ext <<_ACEOF
28991/* end confdefs.h. */
28992
28993 #include <stdio.h>
28994 #include <stdarg.h>
28995
28996int
28997main ()
28998{
28999
29000 char *buf;
29001 va_list ap;
29002 vsnprintf(buf, 10u, "%s", ap);
29003
29004 ;
29005 return 0;
29006}
29007_ACEOF
29008rm -f conftest.$ac_objext
29009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29010 (eval $ac_compile) 2>conftest.er1
a848cd7e 29011 ac_status=$?
ac1cb8d3
VS
29012 grep -v '^ *+' conftest.er1 >conftest.err
29013 rm -f conftest.er1
29014 cat conftest.err >&5
a848cd7e
SC
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } &&
ea7db9ff
DE
29017 { ac_try='test -z "$ac_cxx_werror_flag"
29018 || test ! -s conftest.err'
ac1cb8d3
VS
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; } &&
29024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29030 wx_cv_func_vsnprintf_decl=yes
29031else
29032 echo "$as_me: failed program was:" >&5
29033sed 's/^/| /' conftest.$ac_ext >&5
29034
29035wx_cv_func_vsnprintf_decl=no
29036
29037fi
ac1cb8d3 29038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29039
29040
29041fi
29042echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29043echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29044
29045 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29046 cat >>confdefs.h <<\_ACEOF
29047#define HAVE_VSNPRINTF_DECL 1
29048_ACEOF
29049
29050 fi
29051fi
29052
29053if test "$wxUSE_UNICODE" = yes; then
29054
29055
29056
fbe47c7b
VS
29057
29058
29059
29060for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29061do
29062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29063echo "$as_me:$LINENO: checking for $ac_func" >&5
29064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29065if eval "test \"\${$as_ac_var+set}\" = set"; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
29068 cat >conftest.$ac_ext <<_ACEOF
29069/* confdefs.h. */
29070_ACEOF
29071cat confdefs.h >>conftest.$ac_ext
29072cat >>conftest.$ac_ext <<_ACEOF
29073/* end confdefs.h. */
ac1cb8d3
VS
29074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29076#define $ac_func innocuous_$ac_func
29077
a848cd7e
SC
29078/* System header to define __stub macros and hopefully few prototypes,
29079 which can conflict with char $ac_func (); below.
29080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29081 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29082
a848cd7e
SC
29083#ifdef __STDC__
29084# include <limits.h>
29085#else
29086# include <assert.h>
29087#endif
ac1cb8d3
VS
29088
29089#undef $ac_func
29090
a848cd7e
SC
29091/* Override any gcc2 internal prototype to avoid an error. */
29092#ifdef __cplusplus
29093extern "C"
29094{
29095#endif
29096/* We use char because int might match the return type of a gcc2
29097 builtin and then its argument prototype would still apply. */
29098char $ac_func ();
29099/* The GNU C library defines this for functions which it implements
29100 to always fail with ENOSYS. Some functions are actually named
29101 something starting with __ and the normal name is an alias. */
29102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29103choke me
29104#else
29105char (*f) () = $ac_func;
29106#endif
29107#ifdef __cplusplus
29108}
29109#endif
29110
29111int
29112main ()
29113{
29114return f != $ac_func;
29115 ;
29116 return 0;
29117}
29118_ACEOF
29119rm -f conftest.$ac_objext conftest$ac_exeext
29120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29121 (eval $ac_link) 2>conftest.er1
a848cd7e 29122 ac_status=$?
ac1cb8d3
VS
29123 grep -v '^ *+' conftest.er1 >conftest.err
29124 rm -f conftest.er1
29125 cat conftest.err >&5
a848cd7e
SC
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); } &&
ea7db9ff
DE
29128 { ac_try='test -z "$ac_cxx_werror_flag"
29129 || test ! -s conftest.err'
ac1cb8d3
VS
29130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131 (eval $ac_try) 2>&5
29132 ac_status=$?
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; } &&
29135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29137 (eval $ac_try) 2>&5
29138 ac_status=$?
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; }; then
29141 eval "$as_ac_var=yes"
29142else
29143 echo "$as_me: failed program was:" >&5
29144sed 's/^/| /' conftest.$ac_ext >&5
29145
29146eval "$as_ac_var=no"
29147fi
ac1cb8d3
VS
29148rm -f conftest.err conftest.$ac_objext \
29149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29150fi
29151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29152echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29153if test `eval echo '${'$as_ac_var'}'` = yes; then
29154 cat >>confdefs.h <<_ACEOF
29155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29156_ACEOF
29157
29158fi
29159done
29160
29161
29162 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29163echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29164 cat >conftest.$ac_ext <<_ACEOF
29165/* confdefs.h. */
29166_ACEOF
29167cat confdefs.h >>conftest.$ac_ext
29168cat >>conftest.$ac_ext <<_ACEOF
29169/* end confdefs.h. */
29170#include <wchar.h>
29171int
29172main ()
29173{
29174&_vsnwprintf;
29175 ;
29176 return 0;
29177}
29178_ACEOF
29179rm -f conftest.$ac_objext
29180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29181 (eval $ac_compile) 2>conftest.er1
a848cd7e 29182 ac_status=$?
ac1cb8d3
VS
29183 grep -v '^ *+' conftest.er1 >conftest.err
29184 rm -f conftest.er1
29185 cat conftest.err >&5
a848cd7e
SC
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } &&
ea7db9ff
DE
29188 { ac_try='test -z "$ac_cxx_werror_flag"
29189 || test ! -s conftest.err'
ac1cb8d3
VS
29190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191 (eval $ac_try) 2>&5
29192 ac_status=$?
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29198 ac_status=$?
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; }; then
29201 echo "$as_me:$LINENO: result: yes" >&5
29202echo "${ECHO_T}yes" >&6
29203 cat >>confdefs.h <<\_ACEOF
29204#define HAVE__VSNWPRINTF 1
29205_ACEOF
29206
29207else
29208 echo "$as_me: failed program was:" >&5
29209sed 's/^/| /' conftest.$ac_ext >&5
29210
29211echo "$as_me:$LINENO: result: no" >&5
29212echo "${ECHO_T}no" >&6
29213fi
ac1cb8d3 29214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29215fi
29216
29217ac_ext=c
29218ac_cpp='$CPP $CPPFLAGS'
29219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221ac_compiler_gnu=$ac_cv_c_compiler_gnu
29222
29223
29224
29225
29226if test "$TOOLKIT" != "MSW"; then
29227
29228
29229
29230
29231ac_ext=cc
29232ac_cpp='$CXXCPP $CPPFLAGS'
29233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29236
29237
29238
29239
29240# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29241if test "${with_libiconv_prefix+set}" = set; then
29242 withval="$with_libiconv_prefix"
29243
29244 for dir in `echo "$withval" | tr : ' '`; do
29245 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29246 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29247 done
29248
29249fi;
29250
29251 echo "$as_me:$LINENO: checking for iconv" >&5
29252echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29253if test "${am_cv_func_iconv+set}" = set; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29255else
29256
29257 am_cv_func_iconv="no, consider installing GNU libiconv"
29258 am_cv_lib_iconv=no
29259 cat >conftest.$ac_ext <<_ACEOF
29260/* confdefs.h. */
29261_ACEOF
29262cat confdefs.h >>conftest.$ac_ext
29263cat >>conftest.$ac_ext <<_ACEOF
29264/* end confdefs.h. */
29265#include <stdlib.h>
29266#include <iconv.h>
29267int
29268main ()
29269{
29270iconv_t cd = iconv_open("","");
29271 iconv(cd,NULL,NULL,NULL,NULL);
29272 iconv_close(cd);
29273 ;
29274 return 0;
29275}
29276_ACEOF
29277rm -f conftest.$ac_objext conftest$ac_exeext
29278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29279 (eval $ac_link) 2>conftest.er1
a848cd7e 29280 ac_status=$?
ac1cb8d3
VS
29281 grep -v '^ *+' conftest.er1 >conftest.err
29282 rm -f conftest.er1
29283 cat conftest.err >&5
a848cd7e
SC
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } &&
ea7db9ff
DE
29286 { ac_try='test -z "$ac_cxx_werror_flag"
29287 || test ! -s conftest.err'
ac1cb8d3
VS
29288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29289 (eval $ac_try) 2>&5
29290 ac_status=$?
29291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 (exit $ac_status); }; } &&
29293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295 (eval $ac_try) 2>&5
29296 ac_status=$?
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); }; }; then
29299 am_cv_func_iconv=yes
29300else
29301 echo "$as_me: failed program was:" >&5
29302sed 's/^/| /' conftest.$ac_ext >&5
29303
29304fi
ac1cb8d3
VS
29305rm -f conftest.err conftest.$ac_objext \
29306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29307 if test "$am_cv_func_iconv" != yes; then
29308 am_save_LIBS="$LIBS"
29309 LIBS="$LIBS -liconv"
29310 cat >conftest.$ac_ext <<_ACEOF
29311/* confdefs.h. */
29312_ACEOF
29313cat confdefs.h >>conftest.$ac_ext
29314cat >>conftest.$ac_ext <<_ACEOF
29315/* end confdefs.h. */
29316#include <stdlib.h>
29317#include <iconv.h>
29318int
29319main ()
29320{
29321iconv_t cd = iconv_open("","");
29322 iconv(cd,NULL,NULL,NULL,NULL);
29323 iconv_close(cd);
29324 ;
29325 return 0;
29326}
29327_ACEOF
29328rm -f conftest.$ac_objext conftest$ac_exeext
29329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29330 (eval $ac_link) 2>conftest.er1
a848cd7e 29331 ac_status=$?
ac1cb8d3
VS
29332 grep -v '^ *+' conftest.er1 >conftest.err
29333 rm -f conftest.er1
29334 cat conftest.err >&5
a848cd7e
SC
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); } &&
ea7db9ff
DE
29337 { ac_try='test -z "$ac_cxx_werror_flag"
29338 || test ! -s conftest.err'
ac1cb8d3
VS
29339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29340 (eval $ac_try) 2>&5
29341 ac_status=$?
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); }; } &&
29344 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29346 (eval $ac_try) 2>&5
29347 ac_status=$?
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; }; then
29350 am_cv_lib_iconv=yes
29351 am_cv_func_iconv=yes
29352else
29353 echo "$as_me: failed program was:" >&5
29354sed 's/^/| /' conftest.$ac_ext >&5
29355
29356fi
ac1cb8d3
VS
29357rm -f conftest.err conftest.$ac_objext \
29358 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29359 LIBS="$am_save_LIBS"
29360 fi
29361
29362fi
29363echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29364echo "${ECHO_T}$am_cv_func_iconv" >&6
29365 if test "$am_cv_func_iconv" = yes; then
29366
29367cat >>confdefs.h <<\_ACEOF
29368#define HAVE_ICONV 1
29369_ACEOF
29370
29371 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29372echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29373if test "${wx_cv_func_iconv_const+set}" = set; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29375else
29376 cat >conftest.$ac_ext <<_ACEOF
29377/* confdefs.h. */
29378_ACEOF
29379cat confdefs.h >>conftest.$ac_ext
29380cat >>conftest.$ac_ext <<_ACEOF
29381/* end confdefs.h. */
29382
29383#include <stdlib.h>
29384#include <iconv.h>
29385extern
29386#ifdef __cplusplus
29387"C"
29388#endif
29389#if defined(__STDC__) || defined(__cplusplus)
29390size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29391#else
29392size_t iconv();
29393#endif
29394
29395int
29396main ()
29397{
29398
29399 ;
29400 return 0;
29401}
29402_ACEOF
29403rm -f conftest.$ac_objext
29404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29405 (eval $ac_compile) 2>conftest.er1
a848cd7e 29406 ac_status=$?
ac1cb8d3
VS
29407 grep -v '^ *+' conftest.er1 >conftest.err
29408 rm -f conftest.er1
29409 cat conftest.err >&5
a848cd7e
SC
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); } &&
ea7db9ff
DE
29412 { ac_try='test -z "$ac_cxx_werror_flag"
29413 || test ! -s conftest.err'
ac1cb8d3
VS
29414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; } &&
29419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421 (eval $ac_try) 2>&5
29422 ac_status=$?
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); }; }; then
29425 wx_cv_func_iconv_const="no"
29426else
29427 echo "$as_me: failed program was:" >&5
29428sed 's/^/| /' conftest.$ac_ext >&5
29429
29430wx_cv_func_iconv_const="yes"
29431
29432fi
ac1cb8d3 29433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29434
29435fi
29436echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29437echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29438
29439 iconv_const=
29440 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29441 iconv_const="const"
29442 fi
29443
29444
29445cat >>confdefs.h <<_ACEOF
29446#define ICONV_CONST $iconv_const
29447_ACEOF
29448
29449 fi
29450 LIBICONV=
29451 if test "$am_cv_lib_iconv" = yes; then
29452 LIBICONV="-liconv"
29453 fi
29454
29455
29456LIBS="$LIBICONV $LIBS"
29457ac_ext=c
29458ac_cpp='$CPP $CPPFLAGS'
29459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29461ac_compiler_gnu=$ac_cv_c_compiler_gnu
29462
29463
29464if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29465
29466for ac_func in sigaction
29467do
29468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29469echo "$as_me:$LINENO: checking for $ac_func" >&5
29470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29471if eval "test \"\${$as_ac_var+set}\" = set"; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29473else
29474 cat >conftest.$ac_ext <<_ACEOF
29475/* confdefs.h. */
29476_ACEOF
29477cat confdefs.h >>conftest.$ac_ext
29478cat >>conftest.$ac_ext <<_ACEOF
29479/* end confdefs.h. */
ac1cb8d3
VS
29480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29482#define $ac_func innocuous_$ac_func
29483
a848cd7e
SC
29484/* System header to define __stub macros and hopefully few prototypes,
29485 which can conflict with char $ac_func (); below.
29486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29488
a848cd7e
SC
29489#ifdef __STDC__
29490# include <limits.h>
29491#else
29492# include <assert.h>
29493#endif
ac1cb8d3
VS
29494
29495#undef $ac_func
29496
a848cd7e
SC
29497/* Override any gcc2 internal prototype to avoid an error. */
29498#ifdef __cplusplus
29499extern "C"
29500{
29501#endif
29502/* We use char because int might match the return type of a gcc2
29503 builtin and then its argument prototype would still apply. */
29504char $ac_func ();
29505/* The GNU C library defines this for functions which it implements
29506 to always fail with ENOSYS. Some functions are actually named
29507 something starting with __ and the normal name is an alias. */
29508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29509choke me
29510#else
29511char (*f) () = $ac_func;
29512#endif
29513#ifdef __cplusplus
29514}
29515#endif
29516
29517int
29518main ()
29519{
29520return f != $ac_func;
29521 ;
29522 return 0;
29523}
29524_ACEOF
29525rm -f conftest.$ac_objext conftest$ac_exeext
29526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29527 (eval $ac_link) 2>conftest.er1
a848cd7e 29528 ac_status=$?
ac1cb8d3
VS
29529 grep -v '^ *+' conftest.er1 >conftest.err
29530 rm -f conftest.er1
29531 cat conftest.err >&5
a848cd7e
SC
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); } &&
ea7db9ff
DE
29534 { ac_try='test -z "$ac_c_werror_flag"
29535 || test ! -s conftest.err'
ac1cb8d3
VS
29536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29537 (eval $ac_try) 2>&5
29538 ac_status=$?
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); }; } &&
29541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29543 (eval $ac_try) 2>&5
29544 ac_status=$?
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; }; then
29547 eval "$as_ac_var=yes"
29548else
29549 echo "$as_me: failed program was:" >&5
29550sed 's/^/| /' conftest.$ac_ext >&5
29551
29552eval "$as_ac_var=no"
29553fi
ac1cb8d3
VS
29554rm -f conftest.err conftest.$ac_objext \
29555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29556fi
29557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29559if test `eval echo '${'$as_ac_var'}'` = yes; then
29560 cat >>confdefs.h <<_ACEOF
29561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29562_ACEOF
29563
29564fi
29565done
29566
29567
29568 if test "$ac_cv_func_sigaction" = "no"; then
29569 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29570echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29571 wxUSE_ON_FATAL_EXCEPTION=no
29572 fi
29573
29574 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29575
29576
29577 ac_ext=cc
29578ac_cpp='$CXXCPP $CPPFLAGS'
29579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29582
29583
29584 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29585echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29586if test "${wx_cv_type_sa_handler+set}" = set; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29588else
29589
29590 cat >conftest.$ac_ext <<_ACEOF
29591/* confdefs.h. */
29592_ACEOF
29593cat confdefs.h >>conftest.$ac_ext
29594cat >>conftest.$ac_ext <<_ACEOF
29595/* end confdefs.h. */
29596#include <signal.h>
29597int
29598main ()
29599{
29600
29601 extern void testSigHandler(int);
29602
29603 struct sigaction sa;
29604 sa.sa_handler = testSigHandler;
29605
29606 ;
29607 return 0;
29608}
29609_ACEOF
29610rm -f conftest.$ac_objext
29611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29612 (eval $ac_compile) 2>conftest.er1
a848cd7e 29613 ac_status=$?
ac1cb8d3
VS
29614 grep -v '^ *+' conftest.er1 >conftest.err
29615 rm -f conftest.er1
29616 cat conftest.err >&5
a848cd7e
SC
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } &&
ea7db9ff
DE
29619 { ac_try='test -z "$ac_cxx_werror_flag"
29620 || test ! -s conftest.err'
ac1cb8d3
VS
29621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29623 ac_status=$?
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; } &&
29626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29629 ac_status=$?
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; }; then
29632
29633 wx_cv_type_sa_handler=int
29634
29635else
29636 echo "$as_me: failed program was:" >&5
29637sed 's/^/| /' conftest.$ac_ext >&5
29638
29639
29640 wx_cv_type_sa_handler=void
29641
29642fi
ac1cb8d3 29643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29644
29645fi
29646echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29647echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29648
29649 ac_ext=c
29650ac_cpp='$CPP $CPPFLAGS'
29651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29653ac_compiler_gnu=$ac_cv_c_compiler_gnu
29654
29655
29656 cat >>confdefs.h <<_ACEOF
29657#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29658_ACEOF
29659
29660 fi
29661fi
29662
29663
29664
29665for ac_func in mkstemp mktemp
29666do
29667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29668echo "$as_me:$LINENO: checking for $ac_func" >&5
29669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29670if eval "test \"\${$as_ac_var+set}\" = set"; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29672else
29673 cat >conftest.$ac_ext <<_ACEOF
29674/* confdefs.h. */
29675_ACEOF
29676cat confdefs.h >>conftest.$ac_ext
29677cat >>conftest.$ac_ext <<_ACEOF
29678/* end confdefs.h. */
ac1cb8d3
VS
29679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29681#define $ac_func innocuous_$ac_func
29682
a848cd7e
SC
29683/* System header to define __stub macros and hopefully few prototypes,
29684 which can conflict with char $ac_func (); below.
29685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29686 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29687
a848cd7e
SC
29688#ifdef __STDC__
29689# include <limits.h>
29690#else
29691# include <assert.h>
29692#endif
ac1cb8d3
VS
29693
29694#undef $ac_func
29695
a848cd7e
SC
29696/* Override any gcc2 internal prototype to avoid an error. */
29697#ifdef __cplusplus
29698extern "C"
29699{
29700#endif
29701/* We use char because int might match the return type of a gcc2
29702 builtin and then its argument prototype would still apply. */
29703char $ac_func ();
29704/* The GNU C library defines this for functions which it implements
29705 to always fail with ENOSYS. Some functions are actually named
29706 something starting with __ and the normal name is an alias. */
29707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29708choke me
29709#else
29710char (*f) () = $ac_func;
29711#endif
29712#ifdef __cplusplus
29713}
29714#endif
29715
29716int
29717main ()
29718{
29719return f != $ac_func;
29720 ;
29721 return 0;
29722}
29723_ACEOF
29724rm -f conftest.$ac_objext conftest$ac_exeext
29725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29726 (eval $ac_link) 2>conftest.er1
a848cd7e 29727 ac_status=$?
ac1cb8d3
VS
29728 grep -v '^ *+' conftest.er1 >conftest.err
29729 rm -f conftest.er1
29730 cat conftest.err >&5
a848cd7e
SC
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); } &&
ea7db9ff
DE
29733 { ac_try='test -z "$ac_c_werror_flag"
29734 || test ! -s conftest.err'
ac1cb8d3
VS
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; } &&
29740 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742 (eval $ac_try) 2>&5
29743 ac_status=$?
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); }; }; then
29746 eval "$as_ac_var=yes"
29747else
29748 echo "$as_me: failed program was:" >&5
29749sed 's/^/| /' conftest.$ac_ext >&5
29750
29751eval "$as_ac_var=no"
29752fi
ac1cb8d3
VS
29753rm -f conftest.err conftest.$ac_objext \
29754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29755fi
29756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29757echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29758if test `eval echo '${'$as_ac_var'}'` = yes; then
29759 cat >>confdefs.h <<_ACEOF
29760#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29761_ACEOF
29762 break
29763fi
29764done
29765
29766
29767echo "$as_me:$LINENO: checking for statfs" >&5
29768echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29769if test "${wx_cv_func_statfs+set}" = set; then
29770 echo $ECHO_N "(cached) $ECHO_C" >&6
29771else
29772 cat >conftest.$ac_ext <<_ACEOF
29773/* confdefs.h. */
29774_ACEOF
29775cat confdefs.h >>conftest.$ac_ext
29776cat >>conftest.$ac_ext <<_ACEOF
29777/* end confdefs.h. */
29778
29779 #if defined(__BSD__)
29780 #include <sys/param.h>
29781 #include <sys/mount.h>
29782 #else
29783 #include <sys/vfs.h>
29784 #endif
29785
29786int
29787main ()
29788{
29789
29790 long l;
29791 struct statfs fs;
29792 statfs("/", &fs);
29793 l = fs.f_bsize;
29794 l += fs.f_blocks;
29795 l += fs.f_bavail;
29796
29797 ;
29798 return 0;
29799}
29800_ACEOF
29801rm -f conftest.$ac_objext
29802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29803 (eval $ac_compile) 2>conftest.er1
a848cd7e 29804 ac_status=$?
ac1cb8d3
VS
29805 grep -v '^ *+' conftest.er1 >conftest.err
29806 rm -f conftest.er1
29807 cat conftest.err >&5
a848cd7e
SC
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } &&
ea7db9ff
DE
29810 { ac_try='test -z "$ac_c_werror_flag"
29811 || test ! -s conftest.err'
ac1cb8d3
VS
29812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29813 (eval $ac_try) 2>&5
29814 ac_status=$?
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); }; } &&
29817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29819 (eval $ac_try) 2>&5
29820 ac_status=$?
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; }; then
29823
29824 wx_cv_func_statfs=yes
29825
29826else
29827 echo "$as_me: failed program was:" >&5
29828sed 's/^/| /' conftest.$ac_ext >&5
29829
29830
29831 wx_cv_func_statfs=no
29832
29833
29834fi
ac1cb8d3 29835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29836
29837fi
29838echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29839echo "${ECHO_T}$wx_cv_func_statfs" >&6
29840
29841if test "$wx_cv_func_statfs" = "yes"; then
29842 wx_cv_type_statvfs_t="struct statfs"
29843 cat >>confdefs.h <<\_ACEOF
29844#define HAVE_STATFS 1
29845_ACEOF
29846
29847else
29848 echo "$as_me:$LINENO: checking for statvfs" >&5
29849echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29850if test "${wx_cv_func_statvfs+set}" = set; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29852else
29853 cat >conftest.$ac_ext <<_ACEOF
29854/* confdefs.h. */
29855_ACEOF
29856cat confdefs.h >>conftest.$ac_ext
29857cat >>conftest.$ac_ext <<_ACEOF
29858/* end confdefs.h. */
29859
29860 #include <stddef.h>
29861 #include <sys/statvfs.h>
29862
29863int
29864main ()
29865{
29866
29867 statvfs("/", NULL);
29868
29869 ;
29870 return 0;
29871}
29872_ACEOF
29873rm -f conftest.$ac_objext
29874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29875 (eval $ac_compile) 2>conftest.er1
a848cd7e 29876 ac_status=$?
ac1cb8d3
VS
29877 grep -v '^ *+' conftest.er1 >conftest.err
29878 rm -f conftest.er1
29879 cat conftest.err >&5
a848cd7e
SC
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); } &&
ea7db9ff
DE
29882 { ac_try='test -z "$ac_c_werror_flag"
29883 || test ! -s conftest.err'
ac1cb8d3
VS
29884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29885 (eval $ac_try) 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; } &&
29889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29891 (eval $ac_try) 2>&5
29892 ac_status=$?
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; }; then
29895 wx_cv_func_statvfs=yes
29896else
29897 echo "$as_me: failed program was:" >&5
29898sed 's/^/| /' conftest.$ac_ext >&5
29899
29900wx_cv_func_statvfs=no
29901
29902fi
ac1cb8d3 29903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29904
29905fi
29906echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29907echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29908
29909 if test "$wx_cv_func_statvfs" = "yes"; then
29910
29911
29912 ac_ext=cc
29913ac_cpp='$CXXCPP $CPPFLAGS'
29914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29917
29918
29919 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29920echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29921if test "${wx_cv_type_statvfs_t+set}" = set; then
29922 echo $ECHO_N "(cached) $ECHO_C" >&6
29923else
29924 cat >conftest.$ac_ext <<_ACEOF
29925/* confdefs.h. */
29926_ACEOF
29927cat confdefs.h >>conftest.$ac_ext
29928cat >>conftest.$ac_ext <<_ACEOF
29929/* end confdefs.h. */
29930
29931 #include <sys/statvfs.h>
29932
29933int
29934main ()
29935{
29936
29937 long l;
29938 statvfs_t fs;
29939 statvfs("/", &fs);
29940 l = fs.f_bsize;
29941 l += fs.f_blocks;
29942 l += fs.f_bavail;
29943
29944 ;
29945 return 0;
29946}
29947_ACEOF
29948rm -f conftest.$ac_objext
29949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29950 (eval $ac_compile) 2>conftest.er1
a848cd7e 29951 ac_status=$?
ac1cb8d3
VS
29952 grep -v '^ *+' conftest.er1 >conftest.err
29953 rm -f conftest.er1
29954 cat conftest.err >&5
a848cd7e
SC
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); } &&
ea7db9ff
DE
29957 { ac_try='test -z "$ac_cxx_werror_flag"
29958 || test ! -s conftest.err'
ac1cb8d3
VS
29959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960 (eval $ac_try) 2>&5
29961 ac_status=$?
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; } &&
29964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966 (eval $ac_try) 2>&5
29967 ac_status=$?
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); }; }; then
29970 wx_cv_type_statvfs_t=statvfs_t
29971else
29972 echo "$as_me: failed program was:" >&5
29973sed 's/^/| /' conftest.$ac_ext >&5
29974
29975
29976 cat >conftest.$ac_ext <<_ACEOF
29977/* confdefs.h. */
29978_ACEOF
29979cat confdefs.h >>conftest.$ac_ext
29980cat >>conftest.$ac_ext <<_ACEOF
29981/* end confdefs.h. */
29982
29983 #include <sys/statvfs.h>
29984
29985int
29986main ()
29987{
29988
29989 long l;
29990 struct statvfs fs;
29991 statvfs("/", &fs);
29992 l = fs.f_bsize;
29993 l += fs.f_blocks;
29994 l += fs.f_bavail;
29995
29996 ;
29997 return 0;
29998}
29999_ACEOF
30000rm -f conftest.$ac_objext
30001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30002 (eval $ac_compile) 2>conftest.er1
a848cd7e 30003 ac_status=$?
ac1cb8d3
VS
30004 grep -v '^ *+' conftest.er1 >conftest.err
30005 rm -f conftest.er1
30006 cat conftest.err >&5
a848cd7e
SC
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } &&
ea7db9ff
DE
30009 { ac_try='test -z "$ac_cxx_werror_flag"
30010 || test ! -s conftest.err'
ac1cb8d3
VS
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; } &&
30016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; }; then
30022 wx_cv_type_statvfs_t="struct statvfs"
30023else
30024 echo "$as_me: failed program was:" >&5
30025sed 's/^/| /' conftest.$ac_ext >&5
30026
30027wx_cv_type_statvfs_t="unknown"
30028
30029fi
ac1cb8d3 30030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30031
30032
30033fi
ac1cb8d3 30034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30035
30036fi
30037echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30038echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30039
30040 ac_ext=c
30041ac_cpp='$CPP $CPPFLAGS'
30042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044ac_compiler_gnu=$ac_cv_c_compiler_gnu
30045
30046
30047 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30048 cat >>confdefs.h <<\_ACEOF
30049#define HAVE_STATVFS 1
30050_ACEOF
30051
30052 fi
30053 else
30054 wx_cv_type_statvfs_t="unknown"
30055 fi
30056fi
30057
30058if test "$wx_cv_type_statvfs_t" != "unknown"; then
30059 cat >>confdefs.h <<_ACEOF
30060#define WX_STATFS_T $wx_cv_type_statvfs_t
30061_ACEOF
30062
30063else
30064 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30065echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30066fi
30067
30068if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30069
30070
30071for ac_func in fcntl flock
30072do
30073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30074echo "$as_me:$LINENO: checking for $ac_func" >&5
30075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30076if eval "test \"\${$as_ac_var+set}\" = set"; then
30077 echo $ECHO_N "(cached) $ECHO_C" >&6
30078else
30079 cat >conftest.$ac_ext <<_ACEOF
30080/* confdefs.h. */
30081_ACEOF
30082cat confdefs.h >>conftest.$ac_ext
30083cat >>conftest.$ac_ext <<_ACEOF
30084/* end confdefs.h. */
ac1cb8d3
VS
30085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30087#define $ac_func innocuous_$ac_func
30088
a848cd7e
SC
30089/* System header to define __stub macros and hopefully few prototypes,
30090 which can conflict with char $ac_func (); below.
30091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30092 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30093
a848cd7e
SC
30094#ifdef __STDC__
30095# include <limits.h>
30096#else
30097# include <assert.h>
30098#endif
ac1cb8d3
VS
30099
30100#undef $ac_func
30101
a848cd7e
SC
30102/* Override any gcc2 internal prototype to avoid an error. */
30103#ifdef __cplusplus
30104extern "C"
30105{
30106#endif
30107/* We use char because int might match the return type of a gcc2
30108 builtin and then its argument prototype would still apply. */
30109char $ac_func ();
30110/* The GNU C library defines this for functions which it implements
30111 to always fail with ENOSYS. Some functions are actually named
30112 something starting with __ and the normal name is an alias. */
30113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30114choke me
30115#else
30116char (*f) () = $ac_func;
30117#endif
30118#ifdef __cplusplus
30119}
30120#endif
30121
30122int
30123main ()
30124{
30125return f != $ac_func;
30126 ;
30127 return 0;
30128}
30129_ACEOF
30130rm -f conftest.$ac_objext conftest$ac_exeext
30131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30132 (eval $ac_link) 2>conftest.er1
a848cd7e 30133 ac_status=$?
ac1cb8d3
VS
30134 grep -v '^ *+' conftest.er1 >conftest.err
30135 rm -f conftest.er1
30136 cat conftest.err >&5
a848cd7e
SC
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); } &&
ea7db9ff
DE
30139 { ac_try='test -z "$ac_c_werror_flag"
30140 || test ! -s conftest.err'
ac1cb8d3
VS
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 eval "$as_ac_var=yes"
30153else
30154 echo "$as_me: failed program was:" >&5
30155sed 's/^/| /' conftest.$ac_ext >&5
30156
30157eval "$as_ac_var=no"
30158fi
ac1cb8d3
VS
30159rm -f conftest.err conftest.$ac_objext \
30160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30161fi
30162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30164if test `eval echo '${'$as_ac_var'}'` = yes; then
30165 cat >>confdefs.h <<_ACEOF
30166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30167_ACEOF
30168 break
30169fi
30170done
30171
30172
30173 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30174 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30175echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30176 wxUSE_SNGLINST_CHECKER=no
30177 fi
30178fi
30179
30180
30181for ac_func in timegm
30182do
30183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30184echo "$as_me:$LINENO: checking for $ac_func" >&5
30185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30186if eval "test \"\${$as_ac_var+set}\" = set"; then
30187 echo $ECHO_N "(cached) $ECHO_C" >&6
30188else
30189 cat >conftest.$ac_ext <<_ACEOF
30190/* confdefs.h. */
30191_ACEOF
30192cat confdefs.h >>conftest.$ac_ext
30193cat >>conftest.$ac_ext <<_ACEOF
30194/* end confdefs.h. */
ac1cb8d3
VS
30195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30197#define $ac_func innocuous_$ac_func
30198
a848cd7e
SC
30199/* System header to define __stub macros and hopefully few prototypes,
30200 which can conflict with char $ac_func (); below.
30201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30202 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30203
a848cd7e
SC
30204#ifdef __STDC__
30205# include <limits.h>
30206#else
30207# include <assert.h>
30208#endif
ac1cb8d3
VS
30209
30210#undef $ac_func
30211
a848cd7e
SC
30212/* Override any gcc2 internal prototype to avoid an error. */
30213#ifdef __cplusplus
30214extern "C"
30215{
30216#endif
30217/* We use char because int might match the return type of a gcc2
30218 builtin and then its argument prototype would still apply. */
30219char $ac_func ();
30220/* The GNU C library defines this for functions which it implements
30221 to always fail with ENOSYS. Some functions are actually named
30222 something starting with __ and the normal name is an alias. */
30223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30224choke me
30225#else
30226char (*f) () = $ac_func;
30227#endif
30228#ifdef __cplusplus
30229}
30230#endif
30231
30232int
30233main ()
30234{
30235return f != $ac_func;
30236 ;
30237 return 0;
30238}
30239_ACEOF
30240rm -f conftest.$ac_objext conftest$ac_exeext
30241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30242 (eval $ac_link) 2>conftest.er1
a848cd7e 30243 ac_status=$?
ac1cb8d3
VS
30244 grep -v '^ *+' conftest.er1 >conftest.err
30245 rm -f conftest.er1
30246 cat conftest.err >&5
a848cd7e
SC
30247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248 (exit $ac_status); } &&
ea7db9ff
DE
30249 { ac_try='test -z "$ac_c_werror_flag"
30250 || test ! -s conftest.err'
ac1cb8d3
VS
30251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252 (eval $ac_try) 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; } &&
30256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30258 (eval $ac_try) 2>&5
30259 ac_status=$?
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); }; }; then
30262 eval "$as_ac_var=yes"
30263else
30264 echo "$as_me: failed program was:" >&5
30265sed 's/^/| /' conftest.$ac_ext >&5
30266
30267eval "$as_ac_var=no"
30268fi
ac1cb8d3
VS
30269rm -f conftest.err conftest.$ac_objext \
30270 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30271fi
30272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30274if test `eval echo '${'$as_ac_var'}'` = yes; then
30275 cat >>confdefs.h <<_ACEOF
30276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30277_ACEOF
30278
30279fi
30280done
30281
30282
30283
30284
30285for ac_func in putenv setenv
30286do
30287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30288echo "$as_me:$LINENO: checking for $ac_func" >&5
30289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30290if eval "test \"\${$as_ac_var+set}\" = set"; then
30291 echo $ECHO_N "(cached) $ECHO_C" >&6
30292else
30293 cat >conftest.$ac_ext <<_ACEOF
30294/* confdefs.h. */
30295_ACEOF
30296cat confdefs.h >>conftest.$ac_ext
30297cat >>conftest.$ac_ext <<_ACEOF
30298/* end confdefs.h. */
ac1cb8d3
VS
30299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30301#define $ac_func innocuous_$ac_func
30302
a848cd7e
SC
30303/* System header to define __stub macros and hopefully few prototypes,
30304 which can conflict with char $ac_func (); below.
30305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30307
a848cd7e
SC
30308#ifdef __STDC__
30309# include <limits.h>
30310#else
30311# include <assert.h>
30312#endif
ac1cb8d3
VS
30313
30314#undef $ac_func
30315
a848cd7e
SC
30316/* Override any gcc2 internal prototype to avoid an error. */
30317#ifdef __cplusplus
30318extern "C"
30319{
30320#endif
30321/* We use char because int might match the return type of a gcc2
30322 builtin and then its argument prototype would still apply. */
30323char $ac_func ();
30324/* The GNU C library defines this for functions which it implements
30325 to always fail with ENOSYS. Some functions are actually named
30326 something starting with __ and the normal name is an alias. */
30327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30328choke me
30329#else
30330char (*f) () = $ac_func;
30331#endif
30332#ifdef __cplusplus
30333}
30334#endif
30335
30336int
30337main ()
30338{
30339return f != $ac_func;
30340 ;
30341 return 0;
30342}
30343_ACEOF
30344rm -f conftest.$ac_objext conftest$ac_exeext
30345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30346 (eval $ac_link) 2>conftest.er1
a848cd7e 30347 ac_status=$?
ac1cb8d3
VS
30348 grep -v '^ *+' conftest.er1 >conftest.err
30349 rm -f conftest.er1
30350 cat conftest.err >&5
a848cd7e
SC
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); } &&
ea7db9ff
DE
30353 { ac_try='test -z "$ac_c_werror_flag"
30354 || test ! -s conftest.err'
ac1cb8d3
VS
30355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30356 (eval $ac_try) 2>&5
30357 ac_status=$?
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; } &&
30360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30362 (eval $ac_try) 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; }; then
30366 eval "$as_ac_var=yes"
30367else
30368 echo "$as_me: failed program was:" >&5
30369sed 's/^/| /' conftest.$ac_ext >&5
30370
30371eval "$as_ac_var=no"
30372fi
ac1cb8d3
VS
30373rm -f conftest.err conftest.$ac_objext \
30374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30375fi
30376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30378if test `eval echo '${'$as_ac_var'}'` = yes; then
30379 cat >>confdefs.h <<_ACEOF
30380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30381_ACEOF
30382 break
30383fi
30384done
30385
30386
30387HAVE_SOME_SLEEP_FUNC=0
30388if test "$USE_BEOS" = 1; then
30389 cat >>confdefs.h <<\_ACEOF
30390#define HAVE_SLEEP 1
30391_ACEOF
30392
30393 HAVE_SOME_SLEEP_FUNC=1
30394fi
30395
30396if test "$USE_DARWIN" = 1; then
30397 cat >>confdefs.h <<\_ACEOF
30398#define HAVE_USLEEP 1
30399_ACEOF
30400
30401 HAVE_SOME_SLEEP_FUNC=1
30402fi
30403
30404if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30405 POSIX4_LINK=
30406
30407for ac_func in nanosleep
30408do
30409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30410echo "$as_me:$LINENO: checking for $ac_func" >&5
30411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30412if eval "test \"\${$as_ac_var+set}\" = set"; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30414else
30415 cat >conftest.$ac_ext <<_ACEOF
30416/* confdefs.h. */
30417_ACEOF
30418cat confdefs.h >>conftest.$ac_ext
30419cat >>conftest.$ac_ext <<_ACEOF
30420/* end confdefs.h. */
ac1cb8d3
VS
30421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30423#define $ac_func innocuous_$ac_func
30424
a848cd7e
SC
30425/* System header to define __stub macros and hopefully few prototypes,
30426 which can conflict with char $ac_func (); below.
30427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30428 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30429
a848cd7e
SC
30430#ifdef __STDC__
30431# include <limits.h>
30432#else
30433# include <assert.h>
30434#endif
ac1cb8d3
VS
30435
30436#undef $ac_func
30437
a848cd7e
SC
30438/* Override any gcc2 internal prototype to avoid an error. */
30439#ifdef __cplusplus
30440extern "C"
30441{
30442#endif
30443/* We use char because int might match the return type of a gcc2
30444 builtin and then its argument prototype would still apply. */
30445char $ac_func ();
30446/* The GNU C library defines this for functions which it implements
30447 to always fail with ENOSYS. Some functions are actually named
30448 something starting with __ and the normal name is an alias. */
30449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30450choke me
30451#else
30452char (*f) () = $ac_func;
30453#endif
30454#ifdef __cplusplus
30455}
30456#endif
30457
30458int
30459main ()
30460{
30461return f != $ac_func;
30462 ;
30463 return 0;
30464}
30465_ACEOF
30466rm -f conftest.$ac_objext conftest$ac_exeext
30467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30468 (eval $ac_link) 2>conftest.er1
a848cd7e 30469 ac_status=$?
ac1cb8d3
VS
30470 grep -v '^ *+' conftest.er1 >conftest.err
30471 rm -f conftest.er1
30472 cat conftest.err >&5
a848cd7e
SC
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); } &&
ea7db9ff
DE
30475 { ac_try='test -z "$ac_c_werror_flag"
30476 || test ! -s conftest.err'
ac1cb8d3
VS
30477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478 (eval $ac_try) 2>&5
30479 ac_status=$?
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); }; } &&
30482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30484 (eval $ac_try) 2>&5
30485 ac_status=$?
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; }; then
30488 eval "$as_ac_var=yes"
30489else
30490 echo "$as_me: failed program was:" >&5
30491sed 's/^/| /' conftest.$ac_ext >&5
30492
30493eval "$as_ac_var=no"
30494fi
ac1cb8d3
VS
30495rm -f conftest.err conftest.$ac_objext \
30496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30497fi
30498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30500if test `eval echo '${'$as_ac_var'}'` = yes; then
30501 cat >>confdefs.h <<_ACEOF
30502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30503_ACEOF
30504 cat >>confdefs.h <<\_ACEOF
30505#define HAVE_NANOSLEEP 1
30506_ACEOF
30507
30508else
30509
30510 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30511echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30512if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
30515 ac_check_lib_save_LIBS=$LIBS
30516LIBS="-lposix4 $LIBS"
30517cat >conftest.$ac_ext <<_ACEOF
30518/* confdefs.h. */
30519_ACEOF
30520cat confdefs.h >>conftest.$ac_ext
30521cat >>conftest.$ac_ext <<_ACEOF
30522/* end confdefs.h. */
30523
30524/* Override any gcc2 internal prototype to avoid an error. */
30525#ifdef __cplusplus
30526extern "C"
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 nanosleep ();
30531int
30532main ()
30533{
30534nanosleep ();
30535 ;
30536 return 0;
30537}
30538_ACEOF
30539rm -f conftest.$ac_objext conftest$ac_exeext
30540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30541 (eval $ac_link) 2>conftest.er1
a848cd7e 30542 ac_status=$?
ac1cb8d3
VS
30543 grep -v '^ *+' conftest.er1 >conftest.err
30544 rm -f conftest.er1
30545 cat conftest.err >&5
a848cd7e
SC
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); } &&
ea7db9ff
DE
30548 { ac_try='test -z "$ac_c_werror_flag"
30549 || test ! -s conftest.err'
ac1cb8d3
VS
30550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30551 (eval $ac_try) 2>&5
30552 ac_status=$?
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); }; } &&
30555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30557 (eval $ac_try) 2>&5
30558 ac_status=$?
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; }; then
30561 ac_cv_lib_posix4_nanosleep=yes
30562else
30563 echo "$as_me: failed program was:" >&5
30564sed 's/^/| /' conftest.$ac_ext >&5
30565
30566ac_cv_lib_posix4_nanosleep=no
30567fi
ac1cb8d3
VS
30568rm -f conftest.err conftest.$ac_objext \
30569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30570LIBS=$ac_check_lib_save_LIBS
30571fi
30572echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30573echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30574if test $ac_cv_lib_posix4_nanosleep = yes; then
30575
30576 cat >>confdefs.h <<\_ACEOF
30577#define HAVE_NANOSLEEP 1
30578_ACEOF
30579
30580 POSIX4_LINK=" -lposix4"
30581
30582else
30583
30584
30585for ac_func in usleep
30586do
30587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30588echo "$as_me:$LINENO: checking for $ac_func" >&5
30589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30590if eval "test \"\${$as_ac_var+set}\" = set"; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30592else
30593 cat >conftest.$ac_ext <<_ACEOF
30594/* confdefs.h. */
30595_ACEOF
30596cat confdefs.h >>conftest.$ac_ext
30597cat >>conftest.$ac_ext <<_ACEOF
30598/* end confdefs.h. */
ac1cb8d3
VS
30599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30601#define $ac_func innocuous_$ac_func
30602
a848cd7e
SC
30603/* System header to define __stub macros and hopefully few prototypes,
30604 which can conflict with char $ac_func (); below.
30605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30606 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30607
a848cd7e
SC
30608#ifdef __STDC__
30609# include <limits.h>
30610#else
30611# include <assert.h>
30612#endif
ac1cb8d3
VS
30613
30614#undef $ac_func
30615
a848cd7e
SC
30616/* Override any gcc2 internal prototype to avoid an error. */
30617#ifdef __cplusplus
30618extern "C"
30619{
30620#endif
30621/* We use char because int might match the return type of a gcc2
30622 builtin and then its argument prototype would still apply. */
30623char $ac_func ();
30624/* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30628choke me
30629#else
30630char (*f) () = $ac_func;
30631#endif
30632#ifdef __cplusplus
30633}
30634#endif
30635
30636int
30637main ()
30638{
30639return f != $ac_func;
30640 ;
30641 return 0;
30642}
30643_ACEOF
30644rm -f conftest.$ac_objext conftest$ac_exeext
30645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30646 (eval $ac_link) 2>conftest.er1
a848cd7e 30647 ac_status=$?
ac1cb8d3
VS
30648 grep -v '^ *+' conftest.er1 >conftest.err
30649 rm -f conftest.er1
30650 cat conftest.err >&5
a848cd7e
SC
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
ea7db9ff
DE
30653 { ac_try='test -z "$ac_c_werror_flag"
30654 || test ! -s conftest.err'
ac1cb8d3
VS
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30663 ac_status=$?
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 eval "$as_ac_var=yes"
30667else
30668 echo "$as_me: failed program was:" >&5
30669sed 's/^/| /' conftest.$ac_ext >&5
30670
30671eval "$as_ac_var=no"
30672fi
ac1cb8d3
VS
30673rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30675fi
30676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30678if test `eval echo '${'$as_ac_var'}'` = yes; then
30679 cat >>confdefs.h <<_ACEOF
30680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30681_ACEOF
30682 cat >>confdefs.h <<\_ACEOF
30683#define HAVE_USLEEP 1
30684_ACEOF
30685
30686else
30687 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30688echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30689
30690fi
30691done
30692
30693
30694
30695fi
30696
30697
30698
30699fi
30700done
30701
30702fi
30703
30704
30705
30706for ac_func in uname gethostname
30707do
30708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30709echo "$as_me:$LINENO: checking for $ac_func" >&5
30710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30711if eval "test \"\${$as_ac_var+set}\" = set"; then
30712 echo $ECHO_N "(cached) $ECHO_C" >&6
30713else
30714 cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
ac1cb8d3
VS
30720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30722#define $ac_func innocuous_$ac_func
30723
a848cd7e
SC
30724/* System header to define __stub macros and hopefully few prototypes,
30725 which can conflict with char $ac_func (); below.
30726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30728
a848cd7e
SC
30729#ifdef __STDC__
30730# include <limits.h>
30731#else
30732# include <assert.h>
30733#endif
ac1cb8d3
VS
30734
30735#undef $ac_func
30736
a848cd7e
SC
30737/* Override any gcc2 internal prototype to avoid an error. */
30738#ifdef __cplusplus
30739extern "C"
30740{
30741#endif
30742/* We use char because int might match the return type of a gcc2
30743 builtin and then its argument prototype would still apply. */
30744char $ac_func ();
30745/* The GNU C library defines this for functions which it implements
30746 to always fail with ENOSYS. Some functions are actually named
30747 something starting with __ and the normal name is an alias. */
30748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30749choke me
30750#else
30751char (*f) () = $ac_func;
30752#endif
30753#ifdef __cplusplus
30754}
30755#endif
30756
30757int
30758main ()
30759{
30760return f != $ac_func;
30761 ;
30762 return 0;
30763}
30764_ACEOF
30765rm -f conftest.$ac_objext conftest$ac_exeext
30766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30767 (eval $ac_link) 2>conftest.er1
a848cd7e 30768 ac_status=$?
ac1cb8d3
VS
30769 grep -v '^ *+' conftest.er1 >conftest.err
30770 rm -f conftest.er1
30771 cat conftest.err >&5
a848cd7e
SC
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } &&
ea7db9ff
DE
30774 { ac_try='test -z "$ac_c_werror_flag"
30775 || test ! -s conftest.err'
ac1cb8d3
VS
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; } &&
30781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30787 eval "$as_ac_var=yes"
30788else
30789 echo "$as_me: failed program was:" >&5
30790sed 's/^/| /' conftest.$ac_ext >&5
30791
30792eval "$as_ac_var=no"
30793fi
ac1cb8d3
VS
30794rm -f conftest.err conftest.$ac_objext \
30795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30796fi
30797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30799if test `eval echo '${'$as_ac_var'}'` = yes; then
30800 cat >>confdefs.h <<_ACEOF
30801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802_ACEOF
30803 break
30804fi
30805done
30806
30807
30808
30809
30810ac_ext=cc
30811ac_cpp='$CXXCPP $CPPFLAGS'
30812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30815
30816
30817
30818for ac_func in strtok_r
30819do
30820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30821echo "$as_me:$LINENO: checking for $ac_func" >&5
30822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30823if eval "test \"\${$as_ac_var+set}\" = set"; then
30824 echo $ECHO_N "(cached) $ECHO_C" >&6
30825else
30826 cat >conftest.$ac_ext <<_ACEOF
30827/* confdefs.h. */
30828_ACEOF
30829cat confdefs.h >>conftest.$ac_ext
30830cat >>conftest.$ac_ext <<_ACEOF
30831/* end confdefs.h. */
ac1cb8d3
VS
30832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30834#define $ac_func innocuous_$ac_func
30835
a848cd7e
SC
30836/* System header to define __stub macros and hopefully few prototypes,
30837 which can conflict with char $ac_func (); below.
30838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30840
a848cd7e
SC
30841#ifdef __STDC__
30842# include <limits.h>
30843#else
30844# include <assert.h>
30845#endif
ac1cb8d3
VS
30846
30847#undef $ac_func
30848
a848cd7e
SC
30849/* Override any gcc2 internal prototype to avoid an error. */
30850#ifdef __cplusplus
30851extern "C"
30852{
30853#endif
30854/* We use char because int might match the return type of a gcc2
30855 builtin and then its argument prototype would still apply. */
30856char $ac_func ();
30857/* The GNU C library defines this for functions which it implements
30858 to always fail with ENOSYS. Some functions are actually named
30859 something starting with __ and the normal name is an alias. */
30860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30861choke me
30862#else
30863char (*f) () = $ac_func;
30864#endif
30865#ifdef __cplusplus
30866}
30867#endif
30868
30869int
30870main ()
30871{
30872return f != $ac_func;
30873 ;
30874 return 0;
30875}
30876_ACEOF
30877rm -f conftest.$ac_objext conftest$ac_exeext
30878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30879 (eval $ac_link) 2>conftest.er1
a848cd7e 30880 ac_status=$?
ac1cb8d3
VS
30881 grep -v '^ *+' conftest.er1 >conftest.err
30882 rm -f conftest.er1
30883 cat conftest.err >&5
a848cd7e
SC
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } &&
ea7db9ff
DE
30886 { ac_try='test -z "$ac_cxx_werror_flag"
30887 || test ! -s conftest.err'
ac1cb8d3
VS
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895 (eval $ac_try) 2>&5
30896 ac_status=$?
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; }; then
30899 eval "$as_ac_var=yes"
30900else
30901 echo "$as_me: failed program was:" >&5
30902sed 's/^/| /' conftest.$ac_ext >&5
30903
30904eval "$as_ac_var=no"
30905fi
ac1cb8d3
VS
30906rm -f conftest.err conftest.$ac_objext \
30907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30908fi
30909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30911if test `eval echo '${'$as_ac_var'}'` = yes; then
30912 cat >>confdefs.h <<_ACEOF
30913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30914_ACEOF
30915
30916fi
30917done
30918
30919
30920ac_ext=c
30921ac_cpp='$CPP $CPPFLAGS'
30922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30924ac_compiler_gnu=$ac_cv_c_compiler_gnu
30925
30926
30927INET_LINK=
30928
30929for ac_func in inet_addr
30930do
30931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30932echo "$as_me:$LINENO: checking for $ac_func" >&5
30933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30934if eval "test \"\${$as_ac_var+set}\" = set"; then
30935 echo $ECHO_N "(cached) $ECHO_C" >&6
30936else
30937 cat >conftest.$ac_ext <<_ACEOF
30938/* confdefs.h. */
30939_ACEOF
30940cat confdefs.h >>conftest.$ac_ext
30941cat >>conftest.$ac_ext <<_ACEOF
30942/* end confdefs.h. */
ac1cb8d3
VS
30943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30945#define $ac_func innocuous_$ac_func
30946
a848cd7e
SC
30947/* System header to define __stub macros and hopefully few prototypes,
30948 which can conflict with char $ac_func (); below.
30949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30950 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30951
a848cd7e
SC
30952#ifdef __STDC__
30953# include <limits.h>
30954#else
30955# include <assert.h>
30956#endif
ac1cb8d3
VS
30957
30958#undef $ac_func
30959
a848cd7e
SC
30960/* Override any gcc2 internal prototype to avoid an error. */
30961#ifdef __cplusplus
30962extern "C"
30963{
30964#endif
30965/* We use char because int might match the return type of a gcc2
30966 builtin and then its argument prototype would still apply. */
30967char $ac_func ();
30968/* The GNU C library defines this for functions which it implements
30969 to always fail with ENOSYS. Some functions are actually named
30970 something starting with __ and the normal name is an alias. */
30971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30972choke me
30973#else
30974char (*f) () = $ac_func;
30975#endif
30976#ifdef __cplusplus
30977}
30978#endif
30979
30980int
30981main ()
30982{
30983return f != $ac_func;
30984 ;
30985 return 0;
30986}
30987_ACEOF
30988rm -f conftest.$ac_objext conftest$ac_exeext
30989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30990 (eval $ac_link) 2>conftest.er1
a848cd7e 30991 ac_status=$?
ac1cb8d3
VS
30992 grep -v '^ *+' conftest.er1 >conftest.err
30993 rm -f conftest.er1
30994 cat conftest.err >&5
a848cd7e
SC
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); } &&
ea7db9ff
DE
30997 { ac_try='test -z "$ac_c_werror_flag"
30998 || test ! -s conftest.err'
ac1cb8d3
VS
30999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 (eval $ac_try) 2>&5
31001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; } &&
31004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006 (eval $ac_try) 2>&5
31007 ac_status=$?
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; }; then
31010 eval "$as_ac_var=yes"
31011else
31012 echo "$as_me: failed program was:" >&5
31013sed 's/^/| /' conftest.$ac_ext >&5
31014
31015eval "$as_ac_var=no"
31016fi
ac1cb8d3
VS
31017rm -f conftest.err conftest.$ac_objext \
31018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31019fi
31020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31022if test `eval echo '${'$as_ac_var'}'` = yes; then
31023 cat >>confdefs.h <<_ACEOF
31024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31025_ACEOF
31026 cat >>confdefs.h <<\_ACEOF
31027#define HAVE_INET_ADDR 1
31028_ACEOF
31029
31030else
31031
31032 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31033echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31034if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31036else
31037 ac_check_lib_save_LIBS=$LIBS
31038LIBS="-lnsl $LIBS"
31039cat >conftest.$ac_ext <<_ACEOF
31040/* confdefs.h. */
31041_ACEOF
31042cat confdefs.h >>conftest.$ac_ext
31043cat >>conftest.$ac_ext <<_ACEOF
31044/* end confdefs.h. */
31045
31046/* Override any gcc2 internal prototype to avoid an error. */
31047#ifdef __cplusplus
31048extern "C"
31049#endif
31050/* We use char because int might match the return type of a gcc2
31051 builtin and then its argument prototype would still apply. */
31052char inet_addr ();
31053int
31054main ()
31055{
31056inet_addr ();
31057 ;
31058 return 0;
31059}
31060_ACEOF
31061rm -f conftest.$ac_objext conftest$ac_exeext
31062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31063 (eval $ac_link) 2>conftest.er1
a848cd7e 31064 ac_status=$?
ac1cb8d3
VS
31065 grep -v '^ *+' conftest.er1 >conftest.err
31066 rm -f conftest.er1
31067 cat conftest.err >&5
a848cd7e
SC
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); } &&
ea7db9ff
DE
31070 { ac_try='test -z "$ac_c_werror_flag"
31071 || test ! -s conftest.err'
ac1cb8d3
VS
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; } &&
31077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079 (eval $ac_try) 2>&5
31080 ac_status=$?
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; }; then
31083 ac_cv_lib_nsl_inet_addr=yes
31084else
31085 echo "$as_me: failed program was:" >&5
31086sed 's/^/| /' conftest.$ac_ext >&5
31087
31088ac_cv_lib_nsl_inet_addr=no
31089fi
ac1cb8d3
VS
31090rm -f conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31092LIBS=$ac_check_lib_save_LIBS
31093fi
31094echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31095echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31096if test $ac_cv_lib_nsl_inet_addr = yes; then
31097 INET_LINK="nsl"
31098else
31099
31100 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31101echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31102if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31103 echo $ECHO_N "(cached) $ECHO_C" >&6
31104else
31105 ac_check_lib_save_LIBS=$LIBS
31106LIBS="-lresolv $LIBS"
31107cat >conftest.$ac_ext <<_ACEOF
31108/* confdefs.h. */
31109_ACEOF
31110cat confdefs.h >>conftest.$ac_ext
31111cat >>conftest.$ac_ext <<_ACEOF
31112/* end confdefs.h. */
31113
31114/* Override any gcc2 internal prototype to avoid an error. */
31115#ifdef __cplusplus
31116extern "C"
31117#endif
31118/* We use char because int might match the return type of a gcc2
31119 builtin and then its argument prototype would still apply. */
31120char inet_addr ();
31121int
31122main ()
31123{
31124inet_addr ();
31125 ;
31126 return 0;
31127}
31128_ACEOF
31129rm -f conftest.$ac_objext conftest$ac_exeext
31130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31131 (eval $ac_link) 2>conftest.er1
a848cd7e 31132 ac_status=$?
ac1cb8d3
VS
31133 grep -v '^ *+' conftest.er1 >conftest.err
31134 rm -f conftest.er1
31135 cat conftest.err >&5
a848cd7e
SC
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); } &&
ea7db9ff
DE
31138 { ac_try='test -z "$ac_c_werror_flag"
31139 || test ! -s conftest.err'
ac1cb8d3
VS
31140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141 (eval $ac_try) 2>&5
31142 ac_status=$?
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; } &&
31145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147 (eval $ac_try) 2>&5
31148 ac_status=$?
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
31151 ac_cv_lib_resolv_inet_addr=yes
31152else
31153 echo "$as_me: failed program was:" >&5
31154sed 's/^/| /' conftest.$ac_ext >&5
31155
31156ac_cv_lib_resolv_inet_addr=no
31157fi
ac1cb8d3
VS
31158rm -f conftest.err conftest.$ac_objext \
31159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31160LIBS=$ac_check_lib_save_LIBS
31161fi
31162echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31163echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31164if test $ac_cv_lib_resolv_inet_addr = yes; then
31165 INET_LINK="resolv"
31166else
31167
31168 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31169echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31170if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31171 echo $ECHO_N "(cached) $ECHO_C" >&6
31172else
31173 ac_check_lib_save_LIBS=$LIBS
31174LIBS="-lsocket $LIBS"
31175cat >conftest.$ac_ext <<_ACEOF
31176/* confdefs.h. */
31177_ACEOF
31178cat confdefs.h >>conftest.$ac_ext
31179cat >>conftest.$ac_ext <<_ACEOF
31180/* end confdefs.h. */
31181
31182/* Override any gcc2 internal prototype to avoid an error. */
31183#ifdef __cplusplus
31184extern "C"
31185#endif
31186/* We use char because int might match the return type of a gcc2
31187 builtin and then its argument prototype would still apply. */
31188char inet_addr ();
31189int
31190main ()
31191{
31192inet_addr ();
31193 ;
31194 return 0;
31195}
31196_ACEOF
31197rm -f conftest.$ac_objext conftest$ac_exeext
31198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31199 (eval $ac_link) 2>conftest.er1
a848cd7e 31200 ac_status=$?
ac1cb8d3
VS
31201 grep -v '^ *+' conftest.er1 >conftest.err
31202 rm -f conftest.er1
31203 cat conftest.err >&5
a848cd7e
SC
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } &&
ea7db9ff
DE
31206 { ac_try='test -z "$ac_c_werror_flag"
31207 || test ! -s conftest.err'
ac1cb8d3
VS
31208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209 (eval $ac_try) 2>&5
31210 ac_status=$?
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; } &&
31213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215 (eval $ac_try) 2>&5
31216 ac_status=$?
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; }; then
31219 ac_cv_lib_socket_inet_addr=yes
31220else
31221 echo "$as_me: failed program was:" >&5
31222sed 's/^/| /' conftest.$ac_ext >&5
31223
31224ac_cv_lib_socket_inet_addr=no
31225fi
ac1cb8d3
VS
31226rm -f conftest.err conftest.$ac_objext \
31227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31228LIBS=$ac_check_lib_save_LIBS
31229fi
31230echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31231echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31232if test $ac_cv_lib_socket_inet_addr = yes; then
31233 INET_LINK="socket"
31234
31235fi
31236
31237
31238
31239fi
31240
31241
31242
31243fi
31244
31245
31246
31247fi
31248done
31249
31250
31251
31252for ac_func in inet_aton
31253do
31254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31255echo "$as_me:$LINENO: checking for $ac_func" >&5
31256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31257if eval "test \"\${$as_ac_var+set}\" = set"; then
31258 echo $ECHO_N "(cached) $ECHO_C" >&6
31259else
31260 cat >conftest.$ac_ext <<_ACEOF
31261/* confdefs.h. */
31262_ACEOF
31263cat confdefs.h >>conftest.$ac_ext
31264cat >>conftest.$ac_ext <<_ACEOF
31265/* end confdefs.h. */
ac1cb8d3
VS
31266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31268#define $ac_func innocuous_$ac_func
31269
a848cd7e
SC
31270/* System header to define __stub macros and hopefully few prototypes,
31271 which can conflict with char $ac_func (); below.
31272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31273 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31274
a848cd7e
SC
31275#ifdef __STDC__
31276# include <limits.h>
31277#else
31278# include <assert.h>
31279#endif
ac1cb8d3
VS
31280
31281#undef $ac_func
31282
a848cd7e
SC
31283/* Override any gcc2 internal prototype to avoid an error. */
31284#ifdef __cplusplus
31285extern "C"
31286{
31287#endif
31288/* We use char because int might match the return type of a gcc2
31289 builtin and then its argument prototype would still apply. */
31290char $ac_func ();
31291/* The GNU C library defines this for functions which it implements
31292 to always fail with ENOSYS. Some functions are actually named
31293 something starting with __ and the normal name is an alias. */
31294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31295choke me
31296#else
31297char (*f) () = $ac_func;
31298#endif
31299#ifdef __cplusplus
31300}
31301#endif
31302
31303int
31304main ()
31305{
31306return f != $ac_func;
31307 ;
31308 return 0;
31309}
31310_ACEOF
31311rm -f conftest.$ac_objext conftest$ac_exeext
31312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31313 (eval $ac_link) 2>conftest.er1
a848cd7e 31314 ac_status=$?
ac1cb8d3
VS
31315 grep -v '^ *+' conftest.er1 >conftest.err
31316 rm -f conftest.er1
31317 cat conftest.err >&5
a848cd7e
SC
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); } &&
ea7db9ff
DE
31320 { ac_try='test -z "$ac_c_werror_flag"
31321 || test ! -s conftest.err'
ac1cb8d3
VS
31322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31323 (eval $ac_try) 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; } &&
31327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31329 (eval $ac_try) 2>&5
31330 ac_status=$?
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; }; then
31333 eval "$as_ac_var=yes"
31334else
31335 echo "$as_me: failed program was:" >&5
31336sed 's/^/| /' conftest.$ac_ext >&5
31337
31338eval "$as_ac_var=no"
31339fi
ac1cb8d3
VS
31340rm -f conftest.err conftest.$ac_objext \
31341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31342fi
31343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31345if test `eval echo '${'$as_ac_var'}'` = yes; then
31346 cat >>confdefs.h <<_ACEOF
31347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31348_ACEOF
31349 cat >>confdefs.h <<\_ACEOF
31350#define HAVE_INET_ATON 1
31351_ACEOF
31352
31353else
31354
31355 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31356echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31357echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31358if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31359 echo $ECHO_N "(cached) $ECHO_C" >&6
31360else
31361 ac_check_lib_save_LIBS=$LIBS
31362LIBS="-l$INET_LINK $LIBS"
31363cat >conftest.$ac_ext <<_ACEOF
31364/* confdefs.h. */
31365_ACEOF
31366cat confdefs.h >>conftest.$ac_ext
31367cat >>conftest.$ac_ext <<_ACEOF
31368/* end confdefs.h. */
31369
31370/* Override any gcc2 internal prototype to avoid an error. */
31371#ifdef __cplusplus
31372extern "C"
31373#endif
31374/* We use char because int might match the return type of a gcc2
31375 builtin and then its argument prototype would still apply. */
31376char inet_aton ();
31377int
31378main ()
31379{
31380inet_aton ();
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385rm -f conftest.$ac_objext conftest$ac_exeext
31386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31387 (eval $ac_link) 2>conftest.er1
a848cd7e 31388 ac_status=$?
ac1cb8d3
VS
31389 grep -v '^ *+' conftest.er1 >conftest.err
31390 rm -f conftest.er1
31391 cat conftest.err >&5
a848cd7e
SC
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } &&
ea7db9ff
DE
31394 { ac_try='test -z "$ac_c_werror_flag"
31395 || test ! -s conftest.err'
ac1cb8d3
VS
31396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397 (eval $ac_try) 2>&5
31398 ac_status=$?
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; } &&
31401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403 (eval $ac_try) 2>&5
31404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
31407 eval "$as_ac_Lib=yes"
31408else
31409 echo "$as_me: failed program was:" >&5
31410sed 's/^/| /' conftest.$ac_ext >&5
31411
31412eval "$as_ac_Lib=no"
31413fi
ac1cb8d3
VS
31414rm -f conftest.err conftest.$ac_objext \
31415 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31416LIBS=$ac_check_lib_save_LIBS
31417fi
31418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31419echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31420if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31421 cat >>confdefs.h <<\_ACEOF
31422#define HAVE_INET_ATON 1
31423_ACEOF
31424
31425fi
31426
31427
31428fi
31429done
31430
31431
31432if test "x$INET_LINK" != "x"; then
31433 cat >>confdefs.h <<\_ACEOF
31434#define HAVE_INET_ADDR 1
31435_ACEOF
31436
31437 INET_LINK=" -l$INET_LINK"
31438fi
31439
31440fi
31441
31442
31443
31444EXTRALIBS_ESD=
31445echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31446echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31447if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31448 echo $ECHO_N "(cached) $ECHO_C" >&6
31449else
31450 ac_check_lib_save_LIBS=$LIBS
31451LIBS="-lesd $LIBS"
31452cat >conftest.$ac_ext <<_ACEOF
31453/* confdefs.h. */
31454_ACEOF
31455cat confdefs.h >>conftest.$ac_ext
31456cat >>conftest.$ac_ext <<_ACEOF
31457/* end confdefs.h. */
31458
31459/* Override any gcc2 internal prototype to avoid an error. */
31460#ifdef __cplusplus
31461extern "C"
31462#endif
31463/* We use char because int might match the return type of a gcc2
31464 builtin and then its argument prototype would still apply. */
31465char esd_close ();
31466int
31467main ()
31468{
31469esd_close ();
31470 ;
31471 return 0;
31472}
31473_ACEOF
31474rm -f conftest.$ac_objext conftest$ac_exeext
31475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31476 (eval $ac_link) 2>conftest.er1
a848cd7e 31477 ac_status=$?
ac1cb8d3
VS
31478 grep -v '^ *+' conftest.er1 >conftest.err
31479 rm -f conftest.er1
31480 cat conftest.err >&5
a848cd7e
SC
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } &&
ea7db9ff
DE
31483 { ac_try='test -z "$ac_c_werror_flag"
31484 || test ! -s conftest.err'
ac1cb8d3
VS
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; } &&
31490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31492 (eval $ac_try) 2>&5
31493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; }; then
31496 ac_cv_lib_esd_esd_close=yes
31497else
31498 echo "$as_me: failed program was:" >&5
31499sed 's/^/| /' conftest.$ac_ext >&5
31500
31501ac_cv_lib_esd_esd_close=no
31502fi
ac1cb8d3
VS
31503rm -f conftest.err conftest.$ac_objext \
31504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31505LIBS=$ac_check_lib_save_LIBS
31506fi
31507echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31508echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31509if test $ac_cv_lib_esd_esd_close = yes; then
31510
31511
31512for ac_header in esd.h
31513do
31514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31515if eval "test \"\${$as_ac_Header+set}\" = set"; then
31516 echo "$as_me:$LINENO: checking for $ac_header" >&5
31517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31518if eval "test \"\${$as_ac_Header+set}\" = set"; then
31519 echo $ECHO_N "(cached) $ECHO_C" >&6
31520fi
31521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31523else
31524 # Is the header compilable?
31525echo "$as_me:$LINENO: checking $ac_header usability" >&5
31526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31527cat >conftest.$ac_ext <<_ACEOF
31528/* confdefs.h. */
31529_ACEOF
31530cat confdefs.h >>conftest.$ac_ext
31531cat >>conftest.$ac_ext <<_ACEOF
31532/* end confdefs.h. */
31533$ac_includes_default
31534#include <$ac_header>
31535_ACEOF
31536rm -f conftest.$ac_objext
31537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31538 (eval $ac_compile) 2>conftest.er1
a848cd7e 31539 ac_status=$?
ac1cb8d3
VS
31540 grep -v '^ *+' conftest.er1 >conftest.err
31541 rm -f conftest.er1
31542 cat conftest.err >&5
a848cd7e
SC
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); } &&
ea7db9ff
DE
31545 { ac_try='test -z "$ac_c_werror_flag"
31546 || test ! -s conftest.err'
ac1cb8d3
VS
31547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31548 (eval $ac_try) 2>&5
31549 ac_status=$?
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; } &&
31552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31554 (eval $ac_try) 2>&5
31555 ac_status=$?
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; }; then
31558 ac_header_compiler=yes
31559else
31560 echo "$as_me: failed program was:" >&5
31561sed 's/^/| /' conftest.$ac_ext >&5
31562
31563ac_header_compiler=no
31564fi
ac1cb8d3 31565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31567echo "${ECHO_T}$ac_header_compiler" >&6
31568
31569# Is the header present?
31570echo "$as_me:$LINENO: checking $ac_header presence" >&5
31571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31572cat >conftest.$ac_ext <<_ACEOF
31573/* confdefs.h. */
31574_ACEOF
31575cat confdefs.h >>conftest.$ac_ext
31576cat >>conftest.$ac_ext <<_ACEOF
31577/* end confdefs.h. */
31578#include <$ac_header>
31579_ACEOF
31580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31582 ac_status=$?
31583 grep -v '^ *+' conftest.er1 >conftest.err
31584 rm -f conftest.er1
31585 cat conftest.err >&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); } >/dev/null; then
31588 if test -s conftest.err; then
31589 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31591 else
31592 ac_cpp_err=
31593 fi
31594else
31595 ac_cpp_err=yes
31596fi
31597if test -z "$ac_cpp_err"; then
31598 ac_header_preproc=yes
31599else
31600 echo "$as_me: failed program was:" >&5
31601sed 's/^/| /' conftest.$ac_ext >&5
31602
31603 ac_header_preproc=no
31604fi
31605rm -f conftest.err conftest.$ac_ext
31606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31607echo "${ECHO_T}$ac_header_preproc" >&6
31608
31609# So? What about this header?
ac1cb8d3
VS
31610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31611 yes:no: )
a848cd7e
SC
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31616 ac_header_preproc=yes
a848cd7e 31617 ;;
ac1cb8d3 31618 no:yes:* )
a848cd7e
SC
31619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31631 (
31632 cat <<\_ASBOX
ac1cb8d3
VS
31633## ----------------------------------------- ##
31634## Report this to wx-dev@lists.wxwidgets.org ##
31635## ----------------------------------------- ##
a848cd7e
SC
31636_ASBOX
31637 ) |
31638 sed "s/^/$as_me: WARNING: /" >&2
31639 ;;
31640esac
31641echo "$as_me:$LINENO: checking for $ac_header" >&5
31642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31643if eval "test \"\${$as_ac_Header+set}\" = set"; then
31644 echo $ECHO_N "(cached) $ECHO_C" >&6
31645else
ac1cb8d3 31646 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31647fi
31648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31650
31651fi
31652if test `eval echo '${'$as_ac_Header'}'` = yes; then
31653 cat >>confdefs.h <<_ACEOF
31654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31655_ACEOF
31656
31657 EXTRALIBS_ESD="-lesd"
31658
31659fi
31660
31661done
31662
31663
31664fi
31665
31666
31667
31668echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31669echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31670cat >conftest.$ac_ext <<_ACEOF
31671/* confdefs.h. */
31672_ACEOF
31673cat confdefs.h >>conftest.$ac_ext
31674cat >>conftest.$ac_ext <<_ACEOF
31675/* end confdefs.h. */
31676#ifdef __linux__
31677 #include <linux/cdrom.h>
31678 #else
31679 /* For Solaris */
31680 #include <sys/cdio.h>
31681 #endif
31682
31683int
31684main ()
31685{
31686struct cdrom_tocentry entry, old_entry;
31687 ;
31688 return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext
31692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31693 (eval $ac_compile) 2>conftest.er1
a848cd7e 31694 ac_status=$?
ac1cb8d3
VS
31695 grep -v '^ *+' conftest.er1 >conftest.err
31696 rm -f conftest.er1
31697 cat conftest.err >&5
a848cd7e
SC
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); } &&
ea7db9ff
DE
31700 { ac_try='test -z "$ac_c_werror_flag"
31701 || test ! -s conftest.err'
ac1cb8d3
VS
31702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703 (eval $ac_try) 2>&5
31704 ac_status=$?
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; } &&
31707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31709 (eval $ac_try) 2>&5
31710 ac_status=$?
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); }; }; then
31713 echo "$as_me:$LINENO: result: yes" >&5
31714echo "${ECHO_T}yes" >&6
31715 cat >>confdefs.h <<\_ACEOF
31716#define HAVE_KNOWN_CDROM_INTERFACE 1
31717_ACEOF
31718
31719else
31720 echo "$as_me: failed program was:" >&5
31721sed 's/^/| /' conftest.$ac_ext >&5
31722
31723echo "$as_me:$LINENO: result: no" >&5
31724echo "${ECHO_T}no" >&6
31725fi
ac1cb8d3 31726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31727
31728
31729cat >confcache <<\_ACEOF
31730# This file is a shell script that caches the results of configure
31731# tests run on this system so they can be shared between configure
31732# scripts and configure runs, see configure's option --config-cache.
31733# It is not useful on other systems. If it contains results you don't
31734# want to keep, you may remove or edit it.
31735#
31736# config.status only pays attention to the cache file if you give it
31737# the --recheck option to rerun configure.
31738#
31739# `ac_cv_env_foo' variables (set or unset) will be overridden when
31740# loading this file, other *unset* `ac_cv_foo' will be assigned the
31741# following values.
31742
31743_ACEOF
31744
31745# The following way of writing the cache mishandles newlines in values,
31746# but we know of no workaround that is simple, portable, and efficient.
31747# So, don't put newlines in cache variables' values.
31748# Ultrix sh set writes to stderr and can't be redirected directly,
31749# and sets the high bit in the cache file unless we assign to the vars.
31750{
31751 (set) 2>&1 |
31752 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31753 *ac_space=\ *)
31754 # `set' does not quote correctly, so add quotes (double-quote
31755 # substitution turns \\\\ into \\, and sed turns \\ into \).
31756 sed -n \
ac1cb8d3
VS
31757 "s/'/'\\\\''/g;
31758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31759 ;;
31760 *)
31761 # `set' quotes correctly as required by POSIX, so do not add quotes.
31762 sed -n \
ac1cb8d3 31763 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31764 ;;
31765 esac;
31766} |
31767 sed '
31768 t clear
31769 : clear
31770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31771 t end
31772 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31773 : end' >>confcache
31774if diff $cache_file confcache >/dev/null 2>&1; then :; else
31775 if test -w $cache_file; then
31776 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31777 cat confcache >$cache_file
31778 else
31779 echo "not updating unwritable cache $cache_file"
31780 fi
31781fi
31782rm -f confcache
31783
31784
31785CPP_MT_FLAG=
31786if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31787
31788
31789 THREADS_LINK=
31790 THREADS_CFLAGS=
31791
31792 if test "$wxUSE_THREADS" = "yes" ; then
31793 if test "$USE_BEOS" = 1; then
31794 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31795echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31796 wxUSE_THREADS="no"
31797 fi
31798 fi
31799
31800 if test "$wxUSE_THREADS" = "yes" ; then
31801
31802
31803 THREAD_OPTS="-pthread"
31804 case "${host}" in
31805 *-*-solaris2* | *-*-sunos4* )
31806 if test "x$GCC" = "xyes"; then
31807 THREAD_OPTS="-pthreads $THREAD_OPTS"
31808 else
31809 THREAD_OPTS="-mt $THREAD_OPTS"
31810 fi
31811 ;;
31812 *-*-freebsd*)
31813 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31814 ;;
31815 *-*-darwin* | *-*-cygwin* )
31816 THREAD_OPTS=""
31817 ;;
31818 *-*-aix*)
31819 THREAD_OPTS="pthreads"
31820 ;;
31821 *-hp-hpux* )
31822 if test "x$GCC" != "xyes"; then
31823 THREAD_OPTS=""
31824 fi
31825 ;;
31826
31827 *-*-irix* )
31828 if test "x$GCC" = "xyes"; then
31829 THREAD_OPTS=""
31830 fi
31831 ;;
31832
31833 *-*-*UnixWare*)
31834 if test "x$GCC" != "xyes"; then
31835 THREAD_OPTS="-Ethread"
31836 fi
31837 ;;
31838 esac
31839
31840 THREAD_OPTS="$THREAD_OPTS pthread none"
31841
31842 THREADS_OK=no
31843 for flag in $THREAD_OPTS; do
31844 case $flag in
31845 none)
31846 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31847echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31848 ;;
31849
31850 -*)
31851 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31852echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31853 THREADS_CFLAGS="$flag"
31854 ;;
31855
31856 *)
31857 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31858echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31859 THREADS_LINK="-l$flag"
31860 ;;
31861 esac
31862
31863 save_LIBS="$LIBS"
31864 save_CFLAGS="$CFLAGS"
31865 LIBS="$THREADS_LINK $LIBS"
31866 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31867
31868 cat >conftest.$ac_ext <<_ACEOF
31869/* confdefs.h. */
31870_ACEOF
31871cat confdefs.h >>conftest.$ac_ext
31872cat >>conftest.$ac_ext <<_ACEOF
31873/* end confdefs.h. */
31874#include <pthread.h>
31875int
31876main ()
31877{
31878pthread_create(0,0,0,0);
31879 ;
31880 return 0;
31881}
31882_ACEOF
31883rm -f conftest.$ac_objext conftest$ac_exeext
31884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31885 (eval $ac_link) 2>conftest.er1
a848cd7e 31886 ac_status=$?
ac1cb8d3
VS
31887 grep -v '^ *+' conftest.er1 >conftest.err
31888 rm -f conftest.er1
31889 cat conftest.err >&5
a848cd7e
SC
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); } &&
ea7db9ff
DE
31892 { ac_try='test -z "$ac_c_werror_flag"
31893 || test ! -s conftest.err'
ac1cb8d3
VS
31894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31895 (eval $ac_try) 2>&5
31896 ac_status=$?
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; } &&
31899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31901 (eval $ac_try) 2>&5
31902 ac_status=$?
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }; }; then
31905 THREADS_OK=yes
31906else
31907 echo "$as_me: failed program was:" >&5
31908sed 's/^/| /' conftest.$ac_ext >&5
31909
31910fi
ac1cb8d3
VS
31911rm -f conftest.err conftest.$ac_objext \
31912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31913
31914 LIBS="$save_LIBS"
31915 CFLAGS="$save_CFLAGS"
31916
31917 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31918echo "${ECHO_T}$THREADS_OK" >&6
31919 if test "x$THREADS_OK" = "xyes"; then
31920 break;
31921 fi
31922
31923 THREADS_LINK=""
31924 THREADS_CFLAGS=""
31925 done
31926
31927 if test "x$THREADS_OK" != "xyes"; then
31928 wxUSE_THREADS=no
31929 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31930echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31931 else
31932 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31933 LIBS="$THREADS_LINK $LIBS"
31934
31935 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31936echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31937 flag=no
31938 case "${host}" in
31939 *-aix*)
31940 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31941 flag="-D_THREAD_SAFE"
31942 ;;
31943 *-freebsd*)
31944 flag="-D_THREAD_SAFE"
31945 ;;
31946 *-hp-hpux* )
31947 flag="-D_REENTRANT"
31948 if test "x$GCC" != "xyes"; then
31949 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31950
31951 LIBS="$LIBS -lcma"
a848cd7e
SC
31952 fi
31953 ;;
31954 *solaris* | alpha*-osf*)
31955 flag="-D_REENTRANT"
31956 ;;
31957 esac
31958 echo "$as_me:$LINENO: result: ${flag}" >&5
31959echo "${ECHO_T}${flag}" >&6
31960 if test "x$flag" != xno; then
31961 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31962 fi
31963
31964 if test "x$THREADS_CFLAGS" != "x"; then
31965 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31966 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31967 fi
31968 fi
31969 fi
31970
31971 if test "$wxUSE_THREADS" = "yes" ; then
31972
31973for ac_func in thr_setconcurrency
31974do
31975as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31976echo "$as_me:$LINENO: checking for $ac_func" >&5
31977echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31978if eval "test \"\${$as_ac_var+set}\" = set"; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31980else
31981 cat >conftest.$ac_ext <<_ACEOF
31982/* confdefs.h. */
31983_ACEOF
31984cat confdefs.h >>conftest.$ac_ext
31985cat >>conftest.$ac_ext <<_ACEOF
31986/* end confdefs.h. */
ac1cb8d3
VS
31987/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31989#define $ac_func innocuous_$ac_func
31990
a848cd7e
SC
31991/* System header to define __stub macros and hopefully few prototypes,
31992 which can conflict with char $ac_func (); below.
31993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31994 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31995
a848cd7e
SC
31996#ifdef __STDC__
31997# include <limits.h>
31998#else
31999# include <assert.h>
32000#endif
ac1cb8d3
VS
32001
32002#undef $ac_func
32003
a848cd7e
SC
32004/* Override any gcc2 internal prototype to avoid an error. */
32005#ifdef __cplusplus
32006extern "C"
32007{
32008#endif
32009/* We use char because int might match the return type of a gcc2
32010 builtin and then its argument prototype would still apply. */
32011char $ac_func ();
32012/* The GNU C library defines this for functions which it implements
32013 to always fail with ENOSYS. Some functions are actually named
32014 something starting with __ and the normal name is an alias. */
32015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32016choke me
32017#else
32018char (*f) () = $ac_func;
32019#endif
32020#ifdef __cplusplus
32021}
32022#endif
32023
32024int
32025main ()
32026{
32027return f != $ac_func;
32028 ;
32029 return 0;
32030}
32031_ACEOF
32032rm -f conftest.$ac_objext conftest$ac_exeext
32033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32034 (eval $ac_link) 2>conftest.er1
a848cd7e 32035 ac_status=$?
ac1cb8d3
VS
32036 grep -v '^ *+' conftest.er1 >conftest.err
32037 rm -f conftest.er1
32038 cat conftest.err >&5
a848cd7e
SC
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); } &&
ea7db9ff
DE
32041 { ac_try='test -z "$ac_c_werror_flag"
32042 || test ! -s conftest.err'
ac1cb8d3
VS
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; } &&
32048 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
32054 eval "$as_ac_var=yes"
32055else
32056 echo "$as_me: failed program was:" >&5
32057sed 's/^/| /' conftest.$ac_ext >&5
32058
32059eval "$as_ac_var=no"
32060fi
ac1cb8d3
VS
32061rm -f conftest.err conftest.$ac_objext \
32062 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32063fi
32064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32065echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32066if test `eval echo '${'$as_ac_var'}'` = yes; then
32067 cat >>confdefs.h <<_ACEOF
32068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32069_ACEOF
32070
32071fi
32072done
32073
32074
32075
32076for ac_header in sched.h
32077do
32078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32079if eval "test \"\${$as_ac_Header+set}\" = set"; then
32080 echo "$as_me:$LINENO: checking for $ac_header" >&5
32081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32082if eval "test \"\${$as_ac_Header+set}\" = set"; then
32083 echo $ECHO_N "(cached) $ECHO_C" >&6
32084fi
32085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32087else
32088 # Is the header compilable?
32089echo "$as_me:$LINENO: checking $ac_header usability" >&5
32090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32091cat >conftest.$ac_ext <<_ACEOF
32092/* confdefs.h. */
32093_ACEOF
32094cat confdefs.h >>conftest.$ac_ext
32095cat >>conftest.$ac_ext <<_ACEOF
32096/* end confdefs.h. */
32097$ac_includes_default
32098#include <$ac_header>
32099_ACEOF
32100rm -f conftest.$ac_objext
32101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32102 (eval $ac_compile) 2>conftest.er1
a848cd7e 32103 ac_status=$?
ac1cb8d3
VS
32104 grep -v '^ *+' conftest.er1 >conftest.err
32105 rm -f conftest.er1
32106 cat conftest.err >&5
a848cd7e
SC
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); } &&
ea7db9ff
DE
32109 { ac_try='test -z "$ac_c_werror_flag"
32110 || test ! -s conftest.err'
ac1cb8d3
VS
32111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32112 (eval $ac_try) 2>&5
32113 ac_status=$?
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); }; } &&
32116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32118 (eval $ac_try) 2>&5
32119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; }; then
32122 ac_header_compiler=yes
32123else
32124 echo "$as_me: failed program was:" >&5
32125sed 's/^/| /' conftest.$ac_ext >&5
32126
32127ac_header_compiler=no
32128fi
ac1cb8d3 32129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32130echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32131echo "${ECHO_T}$ac_header_compiler" >&6
32132
32133# Is the header present?
32134echo "$as_me:$LINENO: checking $ac_header presence" >&5
32135echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32136cat >conftest.$ac_ext <<_ACEOF
32137/* confdefs.h. */
32138_ACEOF
32139cat confdefs.h >>conftest.$ac_ext
32140cat >>conftest.$ac_ext <<_ACEOF
32141/* end confdefs.h. */
32142#include <$ac_header>
32143_ACEOF
32144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32146 ac_status=$?
32147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } >/dev/null; then
32152 if test -s conftest.err; then
32153 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32155 else
32156 ac_cpp_err=
32157 fi
32158else
32159 ac_cpp_err=yes
32160fi
32161if test -z "$ac_cpp_err"; then
32162 ac_header_preproc=yes
32163else
32164 echo "$as_me: failed program was:" >&5
32165sed 's/^/| /' conftest.$ac_ext >&5
32166
32167 ac_header_preproc=no
32168fi
32169rm -f conftest.err conftest.$ac_ext
32170echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32171echo "${ECHO_T}$ac_header_preproc" >&6
32172
32173# So? What about this header?
ac1cb8d3
VS
32174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32175 yes:no: )
a848cd7e
SC
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32180 ac_header_preproc=yes
a848cd7e 32181 ;;
ac1cb8d3 32182 no:yes:* )
a848cd7e
SC
32183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32186echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32190echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32195 (
32196 cat <<\_ASBOX
ac1cb8d3
VS
32197## ----------------------------------------- ##
32198## Report this to wx-dev@lists.wxwidgets.org ##
32199## ----------------------------------------- ##
a848cd7e
SC
32200_ASBOX
32201 ) |
32202 sed "s/^/$as_me: WARNING: /" >&2
32203 ;;
32204esac
32205echo "$as_me:$LINENO: checking for $ac_header" >&5
32206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32207if eval "test \"\${$as_ac_Header+set}\" = set"; then
32208 echo $ECHO_N "(cached) $ECHO_C" >&6
32209else
ac1cb8d3 32210 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32211fi
32212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32214
32215fi
32216if test `eval echo '${'$as_ac_Header'}'` = yes; then
32217 cat >>confdefs.h <<_ACEOF
32218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32219_ACEOF
32220
32221fi
32222
32223done
32224
32225 if test "$ac_cv_header_sched_h" = "yes"; then
32226 echo "$as_me:$LINENO: checking for sched_yield" >&5
32227echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32228if test "${ac_cv_func_sched_yield+set}" = set; then
32229 echo $ECHO_N "(cached) $ECHO_C" >&6
32230else
32231 cat >conftest.$ac_ext <<_ACEOF
32232/* confdefs.h. */
32233_ACEOF
32234cat confdefs.h >>conftest.$ac_ext
32235cat >>conftest.$ac_ext <<_ACEOF
32236/* end confdefs.h. */
ac1cb8d3
VS
32237/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32239#define sched_yield innocuous_sched_yield
32240
a848cd7e
SC
32241/* System header to define __stub macros and hopefully few prototypes,
32242 which can conflict with char sched_yield (); below.
32243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32244 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32245
a848cd7e
SC
32246#ifdef __STDC__
32247# include <limits.h>
32248#else
32249# include <assert.h>
32250#endif
ac1cb8d3
VS
32251
32252#undef sched_yield
32253
a848cd7e
SC
32254/* Override any gcc2 internal prototype to avoid an error. */
32255#ifdef __cplusplus
32256extern "C"
32257{
32258#endif
32259/* We use char because int might match the return type of a gcc2
32260 builtin and then its argument prototype would still apply. */
32261char sched_yield ();
32262/* The GNU C library defines this for functions which it implements
32263 to always fail with ENOSYS. Some functions are actually named
32264 something starting with __ and the normal name is an alias. */
32265#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32266choke me
32267#else
32268char (*f) () = sched_yield;
32269#endif
32270#ifdef __cplusplus
32271}
32272#endif
32273
32274int
32275main ()
32276{
32277return f != sched_yield;
32278 ;
32279 return 0;
32280}
32281_ACEOF
32282rm -f conftest.$ac_objext conftest$ac_exeext
32283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32284 (eval $ac_link) 2>conftest.er1
a848cd7e 32285 ac_status=$?
ac1cb8d3
VS
32286 grep -v '^ *+' conftest.er1 >conftest.err
32287 rm -f conftest.er1
32288 cat conftest.err >&5
a848cd7e
SC
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); } &&
ea7db9ff
DE
32291 { ac_try='test -z "$ac_c_werror_flag"
32292 || test ! -s conftest.err'
ac1cb8d3
VS
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; } &&
32298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300 (eval $ac_try) 2>&5
32301 ac_status=$?
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; }; then
32304 ac_cv_func_sched_yield=yes
32305else
32306 echo "$as_me: failed program was:" >&5
32307sed 's/^/| /' conftest.$ac_ext >&5
32308
32309ac_cv_func_sched_yield=no
32310fi
ac1cb8d3
VS
32311rm -f conftest.err conftest.$ac_objext \
32312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32313fi
32314echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32315echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32316if test $ac_cv_func_sched_yield = yes; then
32317 cat >>confdefs.h <<\_ACEOF
32318#define HAVE_SCHED_YIELD 1
32319_ACEOF
32320
32321else
32322
32323 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32324echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32325if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32326 echo $ECHO_N "(cached) $ECHO_C" >&6
32327else
32328 ac_check_lib_save_LIBS=$LIBS
32329LIBS="-lposix4 $LIBS"
32330cat >conftest.$ac_ext <<_ACEOF
32331/* confdefs.h. */
32332_ACEOF
32333cat confdefs.h >>conftest.$ac_ext
32334cat >>conftest.$ac_ext <<_ACEOF
32335/* end confdefs.h. */
32336
32337/* Override any gcc2 internal prototype to avoid an error. */
32338#ifdef __cplusplus
32339extern "C"
32340#endif
32341/* We use char because int might match the return type of a gcc2
32342 builtin and then its argument prototype would still apply. */
32343char sched_yield ();
32344int
32345main ()
32346{
32347sched_yield ();
32348 ;
32349 return 0;
32350}
32351_ACEOF
32352rm -f conftest.$ac_objext conftest$ac_exeext
32353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32354 (eval $ac_link) 2>conftest.er1
a848cd7e 32355 ac_status=$?
ac1cb8d3
VS
32356 grep -v '^ *+' conftest.er1 >conftest.err
32357 rm -f conftest.er1
32358 cat conftest.err >&5
a848cd7e
SC
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); } &&
ea7db9ff
DE
32361 { ac_try='test -z "$ac_c_werror_flag"
32362 || test ! -s conftest.err'
ac1cb8d3
VS
32363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32364 (eval $ac_try) 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; } &&
32368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32370 (eval $ac_try) 2>&5
32371 ac_status=$?
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); }; }; then
32374 ac_cv_lib_posix4_sched_yield=yes
32375else
32376 echo "$as_me: failed program was:" >&5
32377sed 's/^/| /' conftest.$ac_ext >&5
32378
32379ac_cv_lib_posix4_sched_yield=no
32380fi
ac1cb8d3
VS
32381rm -f conftest.err conftest.$ac_objext \
32382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32383LIBS=$ac_check_lib_save_LIBS
32384fi
32385echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32386echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32387if test $ac_cv_lib_posix4_sched_yield = yes; then
32388 cat >>confdefs.h <<\_ACEOF
32389#define HAVE_SCHED_YIELD 1
32390_ACEOF
32391 POSIX4_LINK=" -lposix4"
32392else
32393 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32394echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32395
32396fi
32397
32398
32399
32400fi
32401
32402 fi
32403
32404 HAVE_PRIOR_FUNCS=0
32405 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32406echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32407if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32409else
32410 cat >conftest.$ac_ext <<_ACEOF
32411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
ac1cb8d3
VS
32416/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32418#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32419
a848cd7e
SC
32420/* System header to define __stub macros and hopefully few prototypes,
32421 which can conflict with char pthread_attr_getschedpolicy (); below.
32422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32423 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32424
a848cd7e
SC
32425#ifdef __STDC__
32426# include <limits.h>
32427#else
32428# include <assert.h>
32429#endif
ac1cb8d3
VS
32430
32431#undef pthread_attr_getschedpolicy
32432
a848cd7e
SC
32433/* Override any gcc2 internal prototype to avoid an error. */
32434#ifdef __cplusplus
32435extern "C"
32436{
32437#endif
32438/* We use char because int might match the return type of a gcc2
32439 builtin and then its argument prototype would still apply. */
32440char pthread_attr_getschedpolicy ();
32441/* The GNU C library defines this for functions which it implements
32442 to always fail with ENOSYS. Some functions are actually named
32443 something starting with __ and the normal name is an alias. */
32444#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32445choke me
32446#else
32447char (*f) () = pthread_attr_getschedpolicy;
32448#endif
32449#ifdef __cplusplus
32450}
32451#endif
32452
32453int
32454main ()
32455{
32456return f != pthread_attr_getschedpolicy;
32457 ;
32458 return 0;
32459}
32460_ACEOF
32461rm -f conftest.$ac_objext conftest$ac_exeext
32462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32463 (eval $ac_link) 2>conftest.er1
a848cd7e 32464 ac_status=$?
ac1cb8d3
VS
32465 grep -v '^ *+' conftest.er1 >conftest.err
32466 rm -f conftest.er1
32467 cat conftest.err >&5
a848cd7e
SC
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); } &&
ea7db9ff
DE
32470 { ac_try='test -z "$ac_c_werror_flag"
32471 || test ! -s conftest.err'
ac1cb8d3
VS
32472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32473 (eval $ac_try) 2>&5
32474 ac_status=$?
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; } &&
32477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32479 (eval $ac_try) 2>&5
32480 ac_status=$?
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); }; }; then
32483 ac_cv_func_pthread_attr_getschedpolicy=yes
32484else
32485 echo "$as_me: failed program was:" >&5
32486sed 's/^/| /' conftest.$ac_ext >&5
32487
32488ac_cv_func_pthread_attr_getschedpolicy=no
32489fi
ac1cb8d3
VS
32490rm -f conftest.err conftest.$ac_objext \
32491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32492fi
32493echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32494echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32495if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32496 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32497echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32498if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32499 echo $ECHO_N "(cached) $ECHO_C" >&6
32500else
32501 cat >conftest.$ac_ext <<_ACEOF
32502/* confdefs.h. */
32503_ACEOF
32504cat confdefs.h >>conftest.$ac_ext
32505cat >>conftest.$ac_ext <<_ACEOF
32506/* end confdefs.h. */
ac1cb8d3
VS
32507/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32509#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32510
a848cd7e
SC
32511/* System header to define __stub macros and hopefully few prototypes,
32512 which can conflict with char pthread_attr_setschedparam (); below.
32513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32514 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32515
a848cd7e
SC
32516#ifdef __STDC__
32517# include <limits.h>
32518#else
32519# include <assert.h>
32520#endif
ac1cb8d3
VS
32521
32522#undef pthread_attr_setschedparam
32523
a848cd7e
SC
32524/* Override any gcc2 internal prototype to avoid an error. */
32525#ifdef __cplusplus
32526extern "C"
32527{
32528#endif
32529/* We use char because int might match the return type of a gcc2
32530 builtin and then its argument prototype would still apply. */
32531char pthread_attr_setschedparam ();
32532/* The GNU C library defines this for functions which it implements
32533 to always fail with ENOSYS. Some functions are actually named
32534 something starting with __ and the normal name is an alias. */
32535#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32536choke me
32537#else
32538char (*f) () = pthread_attr_setschedparam;
32539#endif
32540#ifdef __cplusplus
32541}
32542#endif
32543
32544int
32545main ()
32546{
32547return f != pthread_attr_setschedparam;
32548 ;
32549 return 0;
32550}
32551_ACEOF
32552rm -f conftest.$ac_objext conftest$ac_exeext
32553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32554 (eval $ac_link) 2>conftest.er1
a848cd7e 32555 ac_status=$?
ac1cb8d3
VS
32556 grep -v '^ *+' conftest.er1 >conftest.err
32557 rm -f conftest.er1
32558 cat conftest.err >&5
a848cd7e
SC
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); } &&
ea7db9ff
DE
32561 { ac_try='test -z "$ac_c_werror_flag"
32562 || test ! -s conftest.err'
ac1cb8d3
VS
32563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32564 (eval $ac_try) 2>&5
32565 ac_status=$?
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); }; } &&
32568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32570 (eval $ac_try) 2>&5
32571 ac_status=$?
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; }; then
32574 ac_cv_func_pthread_attr_setschedparam=yes
32575else
32576 echo "$as_me: failed program was:" >&5
32577sed 's/^/| /' conftest.$ac_ext >&5
32578
32579ac_cv_func_pthread_attr_setschedparam=no
32580fi
ac1cb8d3
VS
32581rm -f conftest.err conftest.$ac_objext \
32582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32583fi
32584echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32585echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32586if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32587 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32588echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32589if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32590 echo $ECHO_N "(cached) $ECHO_C" >&6
32591else
32592 cat >conftest.$ac_ext <<_ACEOF
32593/* confdefs.h. */
32594_ACEOF
32595cat confdefs.h >>conftest.$ac_ext
32596cat >>conftest.$ac_ext <<_ACEOF
32597/* end confdefs.h. */
ac1cb8d3
VS
32598/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32600#define sched_get_priority_max innocuous_sched_get_priority_max
32601
a848cd7e
SC
32602/* System header to define __stub macros and hopefully few prototypes,
32603 which can conflict with char sched_get_priority_max (); below.
32604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32606
a848cd7e
SC
32607#ifdef __STDC__
32608# include <limits.h>
32609#else
32610# include <assert.h>
32611#endif
ac1cb8d3
VS
32612
32613#undef sched_get_priority_max
32614
a848cd7e
SC
32615/* Override any gcc2 internal prototype to avoid an error. */
32616#ifdef __cplusplus
32617extern "C"
32618{
32619#endif
32620/* We use char because int might match the return type of a gcc2
32621 builtin and then its argument prototype would still apply. */
32622char sched_get_priority_max ();
32623/* The GNU C library defines this for functions which it implements
32624 to always fail with ENOSYS. Some functions are actually named
32625 something starting with __ and the normal name is an alias. */
32626#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32627choke me
32628#else
32629char (*f) () = sched_get_priority_max;
32630#endif
32631#ifdef __cplusplus
32632}
32633#endif
32634
32635int
32636main ()
32637{
32638return f != sched_get_priority_max;
32639 ;
32640 return 0;
32641}
32642_ACEOF
32643rm -f conftest.$ac_objext conftest$ac_exeext
32644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32645 (eval $ac_link) 2>conftest.er1
a848cd7e 32646 ac_status=$?
ac1cb8d3
VS
32647 grep -v '^ *+' conftest.er1 >conftest.err
32648 rm -f conftest.er1
32649 cat conftest.err >&5
a848cd7e
SC
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); } &&
ea7db9ff
DE
32652 { ac_try='test -z "$ac_c_werror_flag"
32653 || test ! -s conftest.err'
ac1cb8d3
VS
32654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 (eval $ac_try) 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; } &&
32659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32661 (eval $ac_try) 2>&5
32662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; }; then
32665 ac_cv_func_sched_get_priority_max=yes
32666else
32667 echo "$as_me: failed program was:" >&5
32668sed 's/^/| /' conftest.$ac_ext >&5
32669
32670ac_cv_func_sched_get_priority_max=no
32671fi
ac1cb8d3
VS
32672rm -f conftest.err conftest.$ac_objext \
32673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32674fi
32675echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32676echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32677if test $ac_cv_func_sched_get_priority_max = yes; then
32678 HAVE_PRIOR_FUNCS=1
32679else
32680 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32681echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32682if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32683 echo $ECHO_N "(cached) $ECHO_C" >&6
32684else
32685 ac_check_lib_save_LIBS=$LIBS
32686LIBS="-lposix4 $LIBS"
32687cat >conftest.$ac_ext <<_ACEOF
32688/* confdefs.h. */
32689_ACEOF
32690cat confdefs.h >>conftest.$ac_ext
32691cat >>conftest.$ac_ext <<_ACEOF
32692/* end confdefs.h. */
32693
32694/* Override any gcc2 internal prototype to avoid an error. */
32695#ifdef __cplusplus
32696extern "C"
32697#endif
32698/* We use char because int might match the return type of a gcc2
32699 builtin and then its argument prototype would still apply. */
32700char sched_get_priority_max ();
32701int
32702main ()
32703{
32704sched_get_priority_max ();
32705 ;
32706 return 0;
32707}
32708_ACEOF
32709rm -f conftest.$ac_objext conftest$ac_exeext
32710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32711 (eval $ac_link) 2>conftest.er1
a848cd7e 32712 ac_status=$?
ac1cb8d3
VS
32713 grep -v '^ *+' conftest.er1 >conftest.err
32714 rm -f conftest.er1
32715 cat conftest.err >&5
a848cd7e
SC
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); } &&
ea7db9ff
DE
32718 { ac_try='test -z "$ac_c_werror_flag"
32719 || test ! -s conftest.err'
ac1cb8d3
VS
32720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721 (eval $ac_try) 2>&5
32722 ac_status=$?
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; } &&
32725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32728 ac_status=$?
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; }; then
32731 ac_cv_lib_posix4_sched_get_priority_max=yes
32732else
32733 echo "$as_me: failed program was:" >&5
32734sed 's/^/| /' conftest.$ac_ext >&5
32735
32736ac_cv_lib_posix4_sched_get_priority_max=no
32737fi
ac1cb8d3
VS
32738rm -f conftest.err conftest.$ac_objext \
32739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32740LIBS=$ac_check_lib_save_LIBS
32741fi
32742echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32743echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32744if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32745
32746 HAVE_PRIOR_FUNCS=1
32747 POSIX4_LINK=" -lposix4"
32748
32749fi
32750
32751
32752fi
32753
32754
32755fi
32756
32757
32758fi
32759
32760
32761 if test "$HAVE_PRIOR_FUNCS" = 1; then
32762 cat >>confdefs.h <<\_ACEOF
32763#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32764_ACEOF
32765
32766 else
32767 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32768echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32769 fi
32770
32771 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32772echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32773if test "${ac_cv_func_pthread_cancel+set}" = set; then
32774 echo $ECHO_N "(cached) $ECHO_C" >&6
32775else
32776 cat >conftest.$ac_ext <<_ACEOF
32777/* confdefs.h. */
32778_ACEOF
32779cat confdefs.h >>conftest.$ac_ext
32780cat >>conftest.$ac_ext <<_ACEOF
32781/* end confdefs.h. */
ac1cb8d3
VS
32782/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32784#define pthread_cancel innocuous_pthread_cancel
32785
a848cd7e
SC
32786/* System header to define __stub macros and hopefully few prototypes,
32787 which can conflict with char pthread_cancel (); below.
32788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32789 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32790
a848cd7e
SC
32791#ifdef __STDC__
32792# include <limits.h>
32793#else
32794# include <assert.h>
32795#endif
ac1cb8d3
VS
32796
32797#undef pthread_cancel
32798
a848cd7e
SC
32799/* Override any gcc2 internal prototype to avoid an error. */
32800#ifdef __cplusplus
32801extern "C"
32802{
32803#endif
32804/* We use char because int might match the return type of a gcc2
32805 builtin and then its argument prototype would still apply. */
32806char pthread_cancel ();
32807/* The GNU C library defines this for functions which it implements
32808 to always fail with ENOSYS. Some functions are actually named
32809 something starting with __ and the normal name is an alias. */
32810#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32811choke me
32812#else
32813char (*f) () = pthread_cancel;
32814#endif
32815#ifdef __cplusplus
32816}
32817#endif
32818
32819int
32820main ()
32821{
32822return f != pthread_cancel;
32823 ;
32824 return 0;
32825}
32826_ACEOF
32827rm -f conftest.$ac_objext conftest$ac_exeext
32828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32829 (eval $ac_link) 2>conftest.er1
a848cd7e 32830 ac_status=$?
ac1cb8d3
VS
32831 grep -v '^ *+' conftest.er1 >conftest.err
32832 rm -f conftest.er1
32833 cat conftest.err >&5
a848cd7e
SC
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); } &&
ea7db9ff
DE
32836 { ac_try='test -z "$ac_c_werror_flag"
32837 || test ! -s conftest.err'
ac1cb8d3
VS
32838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839 (eval $ac_try) 2>&5
32840 ac_status=$?
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; } &&
32843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32845 (eval $ac_try) 2>&5
32846 ac_status=$?
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); }; }; then
32849 ac_cv_func_pthread_cancel=yes
32850else
32851 echo "$as_me: failed program was:" >&5
32852sed 's/^/| /' conftest.$ac_ext >&5
32853
32854ac_cv_func_pthread_cancel=no
32855fi
ac1cb8d3
VS
32856rm -f conftest.err conftest.$ac_objext \
32857 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32858fi
32859echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32860echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32861if test $ac_cv_func_pthread_cancel = yes; then
32862 cat >>confdefs.h <<\_ACEOF
32863#define HAVE_PTHREAD_CANCEL 1
32864_ACEOF
32865
32866else
32867 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32868echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32869fi
32870
32871
32872
32873
32874 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32875echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32876if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32877 echo $ECHO_N "(cached) $ECHO_C" >&6
32878else
32879
32880 cat >conftest.$ac_ext <<_ACEOF
32881/* confdefs.h. */
32882_ACEOF
32883cat confdefs.h >>conftest.$ac_ext
32884cat >>conftest.$ac_ext <<_ACEOF
32885/* end confdefs.h. */
32886#include <pthread.h>
32887int
32888main ()
32889{
32890
32891 pthread_mutexattr_t attr;
32892 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32893
32894 ;
32895 return 0;
32896}
32897_ACEOF
32898rm -f conftest.$ac_objext
32899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32900 (eval $ac_compile) 2>conftest.er1
a848cd7e 32901 ac_status=$?
ac1cb8d3
VS
32902 grep -v '^ *+' conftest.er1 >conftest.err
32903 rm -f conftest.er1
32904 cat conftest.err >&5
a848cd7e
SC
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); } &&
ea7db9ff
DE
32907 { ac_try='test -z "$ac_c_werror_flag"
32908 || test ! -s conftest.err'
ac1cb8d3
VS
32909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32910 (eval $ac_try) 2>&5
32911 ac_status=$?
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; } &&
32914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32916 (eval $ac_try) 2>&5
32917 ac_status=$?
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; }; then
32920
32921 wx_cv_type_pthread_mutexattr_t=yes
32922
32923else
32924 echo "$as_me: failed program was:" >&5
32925sed 's/^/| /' conftest.$ac_ext >&5
32926
32927
32928 wx_cv_type_pthread_mutexattr_t=no
32929
32930
32931fi
ac1cb8d3 32932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32933
32934fi
32935echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32936echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32937
32938 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32939 cat >>confdefs.h <<\_ACEOF
32940#define HAVE_PTHREAD_MUTEXATTR_T 1
32941_ACEOF
32942
32943 else
32944 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32945echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32946if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32947 echo $ECHO_N "(cached) $ECHO_C" >&6
32948else
32949
32950 cat >conftest.$ac_ext <<_ACEOF
32951/* confdefs.h. */
32952_ACEOF
32953cat confdefs.h >>conftest.$ac_ext
32954cat >>conftest.$ac_ext <<_ACEOF
32955/* end confdefs.h. */
32956#include <pthread.h>
32957int
32958main ()
32959{
32960
32961 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32962
32963 ;
32964 return 0;
32965}
32966_ACEOF
32967rm -f conftest.$ac_objext
32968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32969 (eval $ac_compile) 2>conftest.er1
a848cd7e 32970 ac_status=$?
ac1cb8d3
VS
32971 grep -v '^ *+' conftest.er1 >conftest.err
32972 rm -f conftest.er1
32973 cat conftest.err >&5
a848cd7e
SC
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } &&
ea7db9ff
DE
32976 { ac_try='test -z "$ac_c_werror_flag"
32977 || test ! -s conftest.err'
ac1cb8d3
VS
32978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32979 (eval $ac_try) 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; } &&
32983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32985 (eval $ac_try) 2>&5
32986 ac_status=$?
32987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988 (exit $ac_status); }; }; then
32989
32990 wx_cv_type_pthread_rec_mutex_init=yes
32991
32992else
32993 echo "$as_me: failed program was:" >&5
32994sed 's/^/| /' conftest.$ac_ext >&5
32995
32996
32997 wx_cv_type_pthread_rec_mutex_init=no
32998
32999
33000fi
ac1cb8d3 33001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33002
33003fi
33004echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33005echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33006 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33007 cat >>confdefs.h <<\_ACEOF
33008#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33009_ACEOF
33010
33011 else
33012 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33013echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33014 fi
33015 fi
33016 fi
33017
33018else
33019 if test "$wxUSE_THREADS" = "yes" ; then
33020 case "${host}" in
33021 *-*-mingw32* )
33022 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33023echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33024if test "${wx_cv_cflags_mthread+set}" = set; then
33025 echo $ECHO_N "(cached) $ECHO_C" >&6
33026else
33027
33028 CFLAGS_OLD="$CFLAGS"
33029 CFLAGS="$CFLAGS -mthreads"
33030 cat >conftest.$ac_ext <<_ACEOF
33031/* confdefs.h. */
33032_ACEOF
33033cat confdefs.h >>conftest.$ac_ext
33034cat >>conftest.$ac_ext <<_ACEOF
33035/* end confdefs.h. */
33036
33037int
33038main ()
33039{
33040
33041 ;
33042 return 0;
33043}
33044_ACEOF
33045rm -f conftest.$ac_objext
33046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33047 (eval $ac_compile) 2>conftest.er1
a848cd7e 33048 ac_status=$?
ac1cb8d3
VS
33049 grep -v '^ *+' conftest.er1 >conftest.err
33050 rm -f conftest.er1
33051 cat conftest.err >&5
a848cd7e
SC
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } &&
ea7db9ff
DE
33054 { ac_try='test -z "$ac_c_werror_flag"
33055 || test ! -s conftest.err'
ac1cb8d3
VS
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33058 ac_status=$?
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; } &&
33061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063 (eval $ac_try) 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; }; then
33067 wx_cv_cflags_mthread=yes
33068else
33069 echo "$as_me: failed program was:" >&5
33070sed 's/^/| /' conftest.$ac_ext >&5
33071
33072wx_cv_cflags_mthread=no
33073
33074fi
ac1cb8d3 33075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33076
33077
33078fi
33079echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33080echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33081
33082 if test "$wx_cv_cflags_mthread" = "yes"; then
33083 CXXFLAGS="$CXXFLAGS -mthreads"
33084 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33085 LDFLAGS="$LDFLAGS -mthreads"
33086 else
33087 CFLAGS="$CFLAGS_OLD"
33088 fi
33089 ;;
33090 *-pc-os2*emx )
33091 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33092 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33093 LDFLAGS="$LDFLAGS -Zmt"
33094 ;;
33095 esac
33096 fi
33097fi
33098
33099if test "$wxUSE_THREADS" = "yes"; then
33100 cat >>confdefs.h <<\_ACEOF
33101#define wxUSE_THREADS 1
33102_ACEOF
33103
33104
33105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33106else
33107 if test "$ac_cv_func_strtok_r" = "yes"; then
33108 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33109echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33110 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33111 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33112 echo "$as_me:$LINENO: result: yes" >&5
33113echo "${ECHO_T}yes" >&6
33114 else
33115 echo "$as_me:$LINENO: result: no" >&5
33116echo "${ECHO_T}no" >&6
33117 fi
33118 fi
33119fi
33120
33121if test "$WXGTK20" = 1 ; then
33122 cat >>confdefs.h <<_ACEOF
33123#define __WXGTK20__ $WXGTK20
33124_ACEOF
33125
33126 WXGTK12=1
33127fi
33128
33129if test "$WXGTK12" = 1 ; then
33130 cat >>confdefs.h <<_ACEOF
33131#define __WXGTK12__ $WXGTK12
33132_ACEOF
33133
33134fi
33135
33136if test "$WXGTK127" = 1 ; then
33137 cat >>confdefs.h <<_ACEOF
33138#define __WXGTK127__ $WXGTK127
33139_ACEOF
33140
33141fi
33142
33143if test "$WXGPE" = 1 ; then
33144 cat >>confdefs.h <<_ACEOF
33145#define __WXGPE__ $WXGPE
33146_ACEOF
33147
33148fi
33149
33150WXDEBUG=
33151
33152if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33153 WXDEBUG="-g"
33154 wxUSE_OPTIMISE=no
33155fi
33156
33157if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33158 wxUSE_DEBUG_INFO=yes
33159 WXDEBUG="-ggdb"
33160fi
33161
33162if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33163 cat >>confdefs.h <<\_ACEOF
33164#define WXDEBUG 1
33165_ACEOF
33166
33167 WXDEBUG_DEFINE="-D__WXDEBUG__"
33168else
33169 if test "$wxUSE_GTK" = 1 ; then
33170 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33171 fi
33172fi
33173
33174if test "$wxUSE_MEM_TRACING" = "yes" ; then
33175 cat >>confdefs.h <<\_ACEOF
33176#define wxUSE_MEMORY_TRACING 1
33177_ACEOF
33178
33179 cat >>confdefs.h <<\_ACEOF
33180#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33181_ACEOF
33182
33183 cat >>confdefs.h <<\_ACEOF
33184#define wxUSE_DEBUG_NEW_ALWAYS 1
33185_ACEOF
33186
33187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33188fi
33189
33190if test "$wxUSE_DMALLOC" = "yes" ; then
33191 DMALLOC_LIBS="-ldmalloc"
33192fi
33193
33194PROFILE=
33195if test "$wxUSE_PROFILE" = "yes" ; then
33196 PROFILE=" -pg"
33197fi
33198
33199CODE_GEN_FLAGS=
33200CODE_GEN_FLAGS_CXX=
33201if test "$GCC" = "yes" ; then
33202 if test "$wxUSE_NO_RTTI" = "yes" ; then
33203 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33204 fi
33205 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33206 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33207 fi
33208 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33209 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33210 fi
33211
33212 case "${host}" in
33213 powerpc*-*-aix* )
33214 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33215 ;;
33216 *-hppa* )
33217 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33218 ;;
33219 esac
33220fi
33221
33222OPTIMISE=
33223if test "$wxUSE_OPTIMISE" = "no" ; then
33224 if test "$GCC" = yes ; then
33225 OPTIMISE="-O0"
33226 fi
33227else
33228 if test "$GCC" = yes ; then
33229 OPTIMISE="-O2"
33230
33231 case "${host}" in
33232 i586-*-*|i686-*-* )
33233 OPTIMISE="${OPTIMISE} "
33234 ;;
33235 esac
33236 else
33237 OPTIMISE="-O"
33238 fi
33239fi
33240
33241
33242if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33243 cat >>confdefs.h <<\_ACEOF
33244#define WXWIN_COMPATIBILITY_2_2 1
33245_ACEOF
33246
33247
33248 WXWIN_COMPATIBILITY_2_4="yes"
33249fi
33250
33251if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33252 cat >>confdefs.h <<\_ACEOF
33253#define WXWIN_COMPATIBILITY_2_4 1
33254_ACEOF
33255
33256fi
33257
33258
33259if test "$wxUSE_GUI" = "yes"; then
33260 cat >>confdefs.h <<\_ACEOF
33261#define wxUSE_GUI 1
33262_ACEOF
33263
33264
33265 else
33266 cat >>confdefs.h <<\_ACEOF
33267#define wxUSE_NOGUI 1
33268_ACEOF
33269
33270fi
33271
33272
33273if test "$wxUSE_UNIX" = "yes"; then
33274 cat >>confdefs.h <<\_ACEOF
33275#define wxUSE_UNIX 1
33276_ACEOF
33277
33278fi
33279
33280
33281if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33282
33283 HAVE_DL_FUNCS=0
33284 HAVE_SHL_FUNCS=0
33285 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33286 if test "$USE_DARWIN" = 1; then
33287 HAVE_DL_FUNCS=1
33288 else
33289
33290for ac_func in dlopen
33291do
33292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33293echo "$as_me:$LINENO: checking for $ac_func" >&5
33294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33295if eval "test \"\${$as_ac_var+set}\" = set"; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33297else
33298 cat >conftest.$ac_ext <<_ACEOF
33299/* confdefs.h. */
33300_ACEOF
33301cat confdefs.h >>conftest.$ac_ext
33302cat >>conftest.$ac_ext <<_ACEOF
33303/* end confdefs.h. */
ac1cb8d3
VS
33304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33306#define $ac_func innocuous_$ac_func
33307
a848cd7e
SC
33308/* System header to define __stub macros and hopefully few prototypes,
33309 which can conflict with char $ac_func (); below.
33310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33311 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33312
a848cd7e
SC
33313#ifdef __STDC__
33314# include <limits.h>
33315#else
33316# include <assert.h>
33317#endif
ac1cb8d3
VS
33318
33319#undef $ac_func
33320
a848cd7e
SC
33321/* Override any gcc2 internal prototype to avoid an error. */
33322#ifdef __cplusplus
33323extern "C"
33324{
33325#endif
33326/* We use char because int might match the return type of a gcc2
33327 builtin and then its argument prototype would still apply. */
33328char $ac_func ();
33329/* The GNU C library defines this for functions which it implements
33330 to always fail with ENOSYS. Some functions are actually named
33331 something starting with __ and the normal name is an alias. */
33332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33333choke me
33334#else
33335char (*f) () = $ac_func;
33336#endif
33337#ifdef __cplusplus
33338}
33339#endif
33340
33341int
33342main ()
33343{
33344return f != $ac_func;
33345 ;
33346 return 0;
33347}
33348_ACEOF
33349rm -f conftest.$ac_objext conftest$ac_exeext
33350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33351 (eval $ac_link) 2>conftest.er1
a848cd7e 33352 ac_status=$?
ac1cb8d3
VS
33353 grep -v '^ *+' conftest.er1 >conftest.err
33354 rm -f conftest.er1
33355 cat conftest.err >&5
a848cd7e
SC
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); } &&
ea7db9ff
DE
33358 { ac_try='test -z "$ac_c_werror_flag"
33359 || test ! -s conftest.err'
ac1cb8d3
VS
33360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33361 (eval $ac_try) 2>&5
33362 ac_status=$?
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); }; } &&
33365 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33367 (eval $ac_try) 2>&5
33368 ac_status=$?
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; }; then
33371 eval "$as_ac_var=yes"
33372else
33373 echo "$as_me: failed program was:" >&5
33374sed 's/^/| /' conftest.$ac_ext >&5
33375
33376eval "$as_ac_var=no"
33377fi
ac1cb8d3
VS
33378rm -f conftest.err conftest.$ac_objext \
33379 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33380fi
33381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33383if test `eval echo '${'$as_ac_var'}'` = yes; then
33384 cat >>confdefs.h <<_ACEOF
33385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33386_ACEOF
33387
33388 cat >>confdefs.h <<\_ACEOF
33389#define HAVE_DLOPEN 1
33390_ACEOF
33391
33392 HAVE_DL_FUNCS=1
33393
33394else
33395
33396 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33397echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33398if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33399 echo $ECHO_N "(cached) $ECHO_C" >&6
33400else
33401 ac_check_lib_save_LIBS=$LIBS
33402LIBS="-ldl $LIBS"
33403cat >conftest.$ac_ext <<_ACEOF
33404/* confdefs.h. */
33405_ACEOF
33406cat confdefs.h >>conftest.$ac_ext
33407cat >>conftest.$ac_ext <<_ACEOF
33408/* end confdefs.h. */
33409
33410/* Override any gcc2 internal prototype to avoid an error. */
33411#ifdef __cplusplus
33412extern "C"
33413#endif
33414/* We use char because int might match the return type of a gcc2
33415 builtin and then its argument prototype would still apply. */
33416char dlopen ();
33417int
33418main ()
33419{
33420dlopen ();
33421 ;
33422 return 0;
33423}
33424_ACEOF
33425rm -f conftest.$ac_objext conftest$ac_exeext
33426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33427 (eval $ac_link) 2>conftest.er1
a848cd7e 33428 ac_status=$?
ac1cb8d3
VS
33429 grep -v '^ *+' conftest.er1 >conftest.err
33430 rm -f conftest.er1
33431 cat conftest.err >&5
a848cd7e
SC
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } &&
ea7db9ff
DE
33434 { ac_try='test -z "$ac_c_werror_flag"
33435 || test ! -s conftest.err'
ac1cb8d3
VS
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33438 ac_status=$?
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; }; then
33447 ac_cv_lib_dl_dlopen=yes
33448else
33449 echo "$as_me: failed program was:" >&5
33450sed 's/^/| /' conftest.$ac_ext >&5
33451
33452ac_cv_lib_dl_dlopen=no
33453fi
ac1cb8d3
VS
33454rm -f conftest.err conftest.$ac_objext \
33455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33456LIBS=$ac_check_lib_save_LIBS
33457fi
33458echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33459echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33460if test $ac_cv_lib_dl_dlopen = yes; then
33461
33462 cat >>confdefs.h <<\_ACEOF
33463#define HAVE_DLOPEN 1
33464_ACEOF
33465
33466 HAVE_DL_FUNCS=1
33467 DL_LINK=" -ldl$DL_LINK"
33468
33469else
33470
33471
33472for ac_func in shl_load
33473do
33474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33475echo "$as_me:$LINENO: checking for $ac_func" >&5
33476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33477if eval "test \"\${$as_ac_var+set}\" = set"; then
33478 echo $ECHO_N "(cached) $ECHO_C" >&6
33479else
33480 cat >conftest.$ac_ext <<_ACEOF
33481/* confdefs.h. */
33482_ACEOF
33483cat confdefs.h >>conftest.$ac_ext
33484cat >>conftest.$ac_ext <<_ACEOF
33485/* end confdefs.h. */
ac1cb8d3
VS
33486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33488#define $ac_func innocuous_$ac_func
33489
a848cd7e
SC
33490/* System header to define __stub macros and hopefully few prototypes,
33491 which can conflict with char $ac_func (); below.
33492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33493 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33494
a848cd7e
SC
33495#ifdef __STDC__
33496# include <limits.h>
33497#else
33498# include <assert.h>
33499#endif
ac1cb8d3
VS
33500
33501#undef $ac_func
33502
a848cd7e
SC
33503/* Override any gcc2 internal prototype to avoid an error. */
33504#ifdef __cplusplus
33505extern "C"
33506{
33507#endif
33508/* We use char because int might match the return type of a gcc2
33509 builtin and then its argument prototype would still apply. */
33510char $ac_func ();
33511/* The GNU C library defines this for functions which it implements
33512 to always fail with ENOSYS. Some functions are actually named
33513 something starting with __ and the normal name is an alias. */
33514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33515choke me
33516#else
33517char (*f) () = $ac_func;
33518#endif
33519#ifdef __cplusplus
33520}
33521#endif
33522
33523int
33524main ()
33525{
33526return f != $ac_func;
33527 ;
33528 return 0;
33529}
33530_ACEOF
33531rm -f conftest.$ac_objext conftest$ac_exeext
33532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33533 (eval $ac_link) 2>conftest.er1
a848cd7e 33534 ac_status=$?
ac1cb8d3
VS
33535 grep -v '^ *+' conftest.er1 >conftest.err
33536 rm -f conftest.er1
33537 cat conftest.err >&5
a848cd7e
SC
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); } &&
ea7db9ff
DE
33540 { ac_try='test -z "$ac_c_werror_flag"
33541 || test ! -s conftest.err'
ac1cb8d3
VS
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; } &&
33547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33549 (eval $ac_try) 2>&5
33550 ac_status=$?
33551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 (exit $ac_status); }; }; then
33553 eval "$as_ac_var=yes"
33554else
33555 echo "$as_me: failed program was:" >&5
33556sed 's/^/| /' conftest.$ac_ext >&5
33557
33558eval "$as_ac_var=no"
33559fi
ac1cb8d3
VS
33560rm -f conftest.err conftest.$ac_objext \
33561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33562fi
33563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33565if test `eval echo '${'$as_ac_var'}'` = yes; then
33566 cat >>confdefs.h <<_ACEOF
33567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33568_ACEOF
33569
33570 cat >>confdefs.h <<\_ACEOF
33571#define HAVE_SHL_LOAD 1
33572_ACEOF
33573
33574 HAVE_SHL_FUNCS=1
33575
33576else
33577
33578 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33579echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33580if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33581 echo $ECHO_N "(cached) $ECHO_C" >&6
33582else
33583 ac_check_lib_save_LIBS=$LIBS
33584LIBS="-lshl_load $LIBS"
33585cat >conftest.$ac_ext <<_ACEOF
33586/* confdefs.h. */
33587_ACEOF
33588cat confdefs.h >>conftest.$ac_ext
33589cat >>conftest.$ac_ext <<_ACEOF
33590/* end confdefs.h. */
33591
33592/* Override any gcc2 internal prototype to avoid an error. */
33593#ifdef __cplusplus
33594extern "C"
33595#endif
33596/* We use char because int might match the return type of a gcc2
33597 builtin and then its argument prototype would still apply. */
33598char dld ();
33599int
33600main ()
33601{
33602dld ();
33603 ;
33604 return 0;
33605}
33606_ACEOF
33607rm -f conftest.$ac_objext conftest$ac_exeext
33608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33609 (eval $ac_link) 2>conftest.er1
a848cd7e 33610 ac_status=$?
ac1cb8d3
VS
33611 grep -v '^ *+' conftest.er1 >conftest.err
33612 rm -f conftest.er1
33613 cat conftest.err >&5
a848cd7e
SC
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); } &&
ea7db9ff
DE
33616 { ac_try='test -z "$ac_c_werror_flag"
33617 || test ! -s conftest.err'
ac1cb8d3
VS
33618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33619 (eval $ac_try) 2>&5
33620 ac_status=$?
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; } &&
33623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33625 (eval $ac_try) 2>&5
33626 ac_status=$?
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; }; then
33629 ac_cv_lib_shl_load_dld=yes
33630else
33631 echo "$as_me: failed program was:" >&5
33632sed 's/^/| /' conftest.$ac_ext >&5
33633
33634ac_cv_lib_shl_load_dld=no
33635fi
ac1cb8d3
VS
33636rm -f conftest.err conftest.$ac_objext \
33637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33638LIBS=$ac_check_lib_save_LIBS
33639fi
33640echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33641echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33642if test $ac_cv_lib_shl_load_dld = yes; then
33643
33644 HAVE_SHL_FUNCS=1
33645 DL_LINK=" -ldld$DL_LINK"
33646
33647fi
33648
33649
33650fi
33651done
33652
33653
33654fi
33655
33656
33657fi
33658done
33659
33660
33661 if test "$HAVE_DL_FUNCS" = 1; then
33662
33663for ac_func in dlerror
33664do
33665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33666echo "$as_me:$LINENO: checking for $ac_func" >&5
33667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33668if eval "test \"\${$as_ac_var+set}\" = set"; then
33669 echo $ECHO_N "(cached) $ECHO_C" >&6
33670else
33671 cat >conftest.$ac_ext <<_ACEOF
33672/* confdefs.h. */
33673_ACEOF
33674cat confdefs.h >>conftest.$ac_ext
33675cat >>conftest.$ac_ext <<_ACEOF
33676/* end confdefs.h. */
ac1cb8d3
VS
33677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33679#define $ac_func innocuous_$ac_func
33680
a848cd7e
SC
33681/* System header to define __stub macros and hopefully few prototypes,
33682 which can conflict with char $ac_func (); below.
33683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33684 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33685
a848cd7e
SC
33686#ifdef __STDC__
33687# include <limits.h>
33688#else
33689# include <assert.h>
33690#endif
ac1cb8d3
VS
33691
33692#undef $ac_func
33693
a848cd7e
SC
33694/* Override any gcc2 internal prototype to avoid an error. */
33695#ifdef __cplusplus
33696extern "C"
33697{
33698#endif
33699/* We use char because int might match the return type of a gcc2
33700 builtin and then its argument prototype would still apply. */
33701char $ac_func ();
33702/* The GNU C library defines this for functions which it implements
33703 to always fail with ENOSYS. Some functions are actually named
33704 something starting with __ and the normal name is an alias. */
33705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33706choke me
33707#else
33708char (*f) () = $ac_func;
33709#endif
33710#ifdef __cplusplus
33711}
33712#endif
33713
33714int
33715main ()
33716{
33717return f != $ac_func;
33718 ;
33719 return 0;
33720}
33721_ACEOF
33722rm -f conftest.$ac_objext conftest$ac_exeext
33723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33724 (eval $ac_link) 2>conftest.er1
a848cd7e 33725 ac_status=$?
ac1cb8d3
VS
33726 grep -v '^ *+' conftest.er1 >conftest.err
33727 rm -f conftest.er1
33728 cat conftest.err >&5
a848cd7e
SC
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } &&
ea7db9ff
DE
33731 { ac_try='test -z "$ac_c_werror_flag"
33732 || test ! -s conftest.err'
ac1cb8d3
VS
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; } &&
33738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33740 (eval $ac_try) 2>&5
33741 ac_status=$?
33742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); }; }; then
33744 eval "$as_ac_var=yes"
33745else
33746 echo "$as_me: failed program was:" >&5
33747sed 's/^/| /' conftest.$ac_ext >&5
33748
33749eval "$as_ac_var=no"
33750fi
ac1cb8d3
VS
33751rm -f conftest.err conftest.$ac_objext \
33752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33753fi
33754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33756if test `eval echo '${'$as_ac_var'}'` = yes; then
33757 cat >>confdefs.h <<_ACEOF
33758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33759_ACEOF
33760 cat >>confdefs.h <<\_ACEOF
33761#define HAVE_DLERROR 1
33762_ACEOF
33763
33764else
33765
33766 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33767echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33768if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33769 echo $ECHO_N "(cached) $ECHO_C" >&6
33770else
33771 ac_check_lib_save_LIBS=$LIBS
33772LIBS="-ldl $LIBS"
33773cat >conftest.$ac_ext <<_ACEOF
33774/* confdefs.h. */
33775_ACEOF
33776cat confdefs.h >>conftest.$ac_ext
33777cat >>conftest.$ac_ext <<_ACEOF
33778/* end confdefs.h. */
33779
33780/* Override any gcc2 internal prototype to avoid an error. */
33781#ifdef __cplusplus
33782extern "C"
33783#endif
33784/* We use char because int might match the return type of a gcc2
33785 builtin and then its argument prototype would still apply. */
33786char dlerror ();
33787int
33788main ()
33789{
33790dlerror ();
33791 ;
33792 return 0;
33793}
33794_ACEOF
33795rm -f conftest.$ac_objext conftest$ac_exeext
33796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33797 (eval $ac_link) 2>conftest.er1
a848cd7e 33798 ac_status=$?
ac1cb8d3
VS
33799 grep -v '^ *+' conftest.er1 >conftest.err
33800 rm -f conftest.er1
33801 cat conftest.err >&5
a848cd7e
SC
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); } &&
ea7db9ff
DE
33804 { ac_try='test -z "$ac_c_werror_flag"
33805 || test ! -s conftest.err'
ac1cb8d3
VS
33806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33807 (eval $ac_try) 2>&5
33808 ac_status=$?
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); }; } &&
33811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813 (eval $ac_try) 2>&5
33814 ac_status=$?
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); }; }; then
33817 ac_cv_lib_dl_dlerror=yes
33818else
33819 echo "$as_me: failed program was:" >&5
33820sed 's/^/| /' conftest.$ac_ext >&5
33821
33822ac_cv_lib_dl_dlerror=no
33823fi
ac1cb8d3
VS
33824rm -f conftest.err conftest.$ac_objext \
33825 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33826LIBS=$ac_check_lib_save_LIBS
33827fi
33828echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33829echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33830if test $ac_cv_lib_dl_dlerror = yes; then
33831 cat >>confdefs.h <<\_ACEOF
33832#define HAVE_DLERROR 1
33833_ACEOF
33834
33835fi
33836
33837
33838
33839fi
33840done
33841
33842 fi
33843 fi
33844
33845 if test "$HAVE_DL_FUNCS" = 0; then
33846 if test "$HAVE_SHL_FUNCS" = 0; then
33847 if test "$USE_UNIX" = 1; then
33848 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33849echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33850 wxUSE_DYNAMIC_LOADER=no
33851 wxUSE_DYNLIB_CLASS=no
33852 else
33853 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33854echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33855 fi
33856 fi
33857 fi
33858 fi
33859fi
33860
33861if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33862 cat >>confdefs.h <<\_ACEOF
33863#define wxUSE_DYNAMIC_LOADER 1
33864_ACEOF
33865
33866fi
33867if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33868 cat >>confdefs.h <<\_ACEOF
33869#define wxUSE_DYNLIB_CLASS 1
33870_ACEOF
33871
33872fi
33873
33874
33875
33876if test "$wxUSE_PLUGINS" = "yes" ; then
33877 if test "$wxUSE_SHARED" = "no" ; then
33878 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33879echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33880 wxUSE_PLUGINS=no
33881 fi
33882 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33883 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33884echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33885 wxUSE_PLUGINS=no
33886 fi
33887 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33888 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33889echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33890 wxUSE_PLUGINS=no
33891 fi
33892 if test "$wxUSE_PLUGINS" = "yes" ; then
33893 cat >>confdefs.h <<\_ACEOF
33894#define wxUSE_PLUGINS 1
33895_ACEOF
33896
33897 fi
33898fi
33899
33900
33901if test "$wxUSE_STL" = "yes"; then
33902 cat >>confdefs.h <<\_ACEOF
33903#define wxUSE_STL 1
33904_ACEOF
33905
33906fi
33907
33908if test "$wxUSE_APPLE_IEEE" = "yes"; then
33909 cat >>confdefs.h <<\_ACEOF
33910#define wxUSE_APPLE_IEEE 1
33911_ACEOF
33912
33913fi
33914
33915if test "$wxUSE_TIMER" = "yes"; then
33916 cat >>confdefs.h <<\_ACEOF
33917#define wxUSE_TIMER 1
33918_ACEOF
33919
33920fi
33921
33922WITH_PLUGIN_SDL=0
33923if test "$wxUSE_SOUND" = "yes"; then
33924 if test "$USE_UNIX" = "1" ; then
33925
33926for ac_header in sys/soundcard.h
33927do
33928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33929if eval "test \"\${$as_ac_Header+set}\" = set"; then
33930 echo "$as_me:$LINENO: checking for $ac_header" >&5
33931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33932if eval "test \"\${$as_ac_Header+set}\" = set"; then
33933 echo $ECHO_N "(cached) $ECHO_C" >&6
33934fi
33935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33937else
33938 # Is the header compilable?
33939echo "$as_me:$LINENO: checking $ac_header usability" >&5
33940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33941cat >conftest.$ac_ext <<_ACEOF
33942/* confdefs.h. */
33943_ACEOF
33944cat confdefs.h >>conftest.$ac_ext
33945cat >>conftest.$ac_ext <<_ACEOF
33946/* end confdefs.h. */
33947$ac_includes_default
33948#include <$ac_header>
33949_ACEOF
33950rm -f conftest.$ac_objext
33951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33952 (eval $ac_compile) 2>conftest.er1
a848cd7e 33953 ac_status=$?
ac1cb8d3
VS
33954 grep -v '^ *+' conftest.er1 >conftest.err
33955 rm -f conftest.er1
33956 cat conftest.err >&5
a848cd7e
SC
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); } &&
ea7db9ff
DE
33959 { ac_try='test -z "$ac_c_werror_flag"
33960 || test ! -s conftest.err'
ac1cb8d3
VS
33961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 (eval $ac_try) 2>&5
33963 ac_status=$?
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; } &&
33966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33969 ac_status=$?
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; }; then
33972 ac_header_compiler=yes
33973else
33974 echo "$as_me: failed program was:" >&5
33975sed 's/^/| /' conftest.$ac_ext >&5
33976
33977ac_header_compiler=no
33978fi
ac1cb8d3 33979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33981echo "${ECHO_T}$ac_header_compiler" >&6
33982
33983# Is the header present?
33984echo "$as_me:$LINENO: checking $ac_header presence" >&5
33985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33986cat >conftest.$ac_ext <<_ACEOF
33987/* confdefs.h. */
33988_ACEOF
33989cat confdefs.h >>conftest.$ac_ext
33990cat >>conftest.$ac_ext <<_ACEOF
33991/* end confdefs.h. */
33992#include <$ac_header>
33993_ACEOF
33994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33996 ac_status=$?
33997 grep -v '^ *+' conftest.er1 >conftest.err
33998 rm -f conftest.er1
33999 cat conftest.err >&5
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); } >/dev/null; then
34002 if test -s conftest.err; then
34003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34005 else
34006 ac_cpp_err=
34007 fi
34008else
34009 ac_cpp_err=yes
34010fi
34011if test -z "$ac_cpp_err"; then
34012 ac_header_preproc=yes
34013else
34014 echo "$as_me: failed program was:" >&5
34015sed 's/^/| /' conftest.$ac_ext >&5
34016
34017 ac_header_preproc=no
34018fi
34019rm -f conftest.err conftest.$ac_ext
34020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34021echo "${ECHO_T}$ac_header_preproc" >&6
34022
34023# So? What about this header?
ac1cb8d3
VS
34024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34025 yes:no: )
a848cd7e
SC
34026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34030 ac_header_preproc=yes
a848cd7e 34031 ;;
ac1cb8d3 34032 no:yes:* )
a848cd7e
SC
34033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34045 (
34046 cat <<\_ASBOX
ac1cb8d3
VS
34047## ----------------------------------------- ##
34048## Report this to wx-dev@lists.wxwidgets.org ##
34049## ----------------------------------------- ##
a848cd7e
SC
34050_ASBOX
34051 ) |
34052 sed "s/^/$as_me: WARNING: /" >&2
34053 ;;
34054esac
34055echo "$as_me:$LINENO: checking for $ac_header" >&5
34056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34057if eval "test \"\${$as_ac_Header+set}\" = set"; then
34058 echo $ECHO_N "(cached) $ECHO_C" >&6
34059else
ac1cb8d3 34060 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34061fi
34062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34064
34065fi
34066if test `eval echo '${'$as_ac_Header'}'` = yes; then
34067 cat >>confdefs.h <<_ACEOF
34068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34069_ACEOF
34070
34071fi
34072
34073done
34074
34075
34076 if test "$wxUSE_LIBSDL" != "no"; then
34077
34078# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34079if test "${with_sdl_prefix+set}" = set; then
34080 withval="$with_sdl_prefix"
34081 sdl_prefix="$withval"
34082else
34083 sdl_prefix=""
34084fi;
34085
34086# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34087if test "${with_sdl_exec_prefix+set}" = set; then
34088 withval="$with_sdl_exec_prefix"
34089 sdl_exec_prefix="$withval"
34090else
34091 sdl_exec_prefix=""
34092fi;
34093# Check whether --enable-sdltest or --disable-sdltest was given.
34094if test "${enable_sdltest+set}" = set; then
34095 enableval="$enable_sdltest"
34096
34097else
34098 enable_sdltest=yes
34099fi;
34100
34101 if test x$sdl_exec_prefix != x ; then
34102 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34103 if test x${SDL_CONFIG+set} != xset ; then
34104 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34105 fi
34106 fi
34107 if test x$sdl_prefix != x ; then
34108 sdl_args="$sdl_args --prefix=$sdl_prefix"
34109 if test x${SDL_CONFIG+set} != xset ; then
34110 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34111 fi
34112 fi
34113
34114
34115 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34116 # Extract the first word of "sdl-config", so it can be a program name with args.
34117set dummy sdl-config; ac_word=$2
34118echo "$as_me:$LINENO: checking for $ac_word" >&5
34119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34120if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34121 echo $ECHO_N "(cached) $ECHO_C" >&6
34122else
34123 case $SDL_CONFIG in
34124 [\\/]* | ?:[\\/]*)
34125 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34126 ;;
34127 *)
34128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34129for as_dir in $PATH
34130do
34131 IFS=$as_save_IFS
34132 test -z "$as_dir" && as_dir=.
34133 for ac_exec_ext in '' $ac_executable_extensions; do
34134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34135 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34137 break 2
34138 fi
34139done
34140done
34141
34142 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34143 ;;
34144esac
34145fi
34146SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34147
34148if test -n "$SDL_CONFIG"; then
34149 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34150echo "${ECHO_T}$SDL_CONFIG" >&6
34151else
34152 echo "$as_me:$LINENO: result: no" >&5
34153echo "${ECHO_T}no" >&6
34154fi
34155
34156 min_sdl_version=1.2.0
34157 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34158echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34159 no_sdl=""
34160 if test "$SDL_CONFIG" = "no" ; then
34161 no_sdl=yes
34162 else
34163 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34164 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34165
34166 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34167 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34168 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34169 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34170 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34171 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34172 if test "x$enable_sdltest" = "xyes" ; then
34173 ac_save_CFLAGS="$CFLAGS"
34174 ac_save_LIBS="$LIBS"
34175 CFLAGS="$CFLAGS $SDL_CFLAGS"
34176 LIBS="$LIBS $SDL_LIBS"
34177 rm -f conf.sdltest
34178 if test "$cross_compiling" = yes; then
34179 echo $ac_n "cross compiling; assumed OK... $ac_c"
34180else
34181 cat >conftest.$ac_ext <<_ACEOF
34182/* confdefs.h. */
34183_ACEOF
34184cat confdefs.h >>conftest.$ac_ext
34185cat >>conftest.$ac_ext <<_ACEOF
34186/* end confdefs.h. */
34187
34188#include <stdio.h>
34189#include <stdlib.h>
34190#include <string.h>
34191#include "SDL.h"
34192
34193char*
34194my_strdup (char *str)
34195{
34196 char *new_str;
34197
34198 if (str)
34199 {
34200 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34201 strcpy (new_str, str);
34202 }
34203 else
34204 new_str = NULL;
34205
34206 return new_str;
34207}
34208
34209int main (int argc, char *argv[])
34210{
34211 int major, minor, micro;
34212 char *tmp_version;
34213
34214 /* This hangs on some systems (?)
34215 system ("touch conf.sdltest");
34216 */
34217 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34218
34219 /* HP/UX 9 (%@#!) writes to sscanf strings */
34220 tmp_version = my_strdup("$min_sdl_version");
34221 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34222 printf("%s, bad version string\n", "$min_sdl_version");
34223 exit(1);
34224 }
34225
34226 if (($sdl_major_version > major) ||
34227 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34228 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34229 {
34230 return 0;
34231 }
34232 else
34233 {
34234 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34235 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34236 printf("*** best to upgrade to the required version.\n");
34237 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34238 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34239 printf("*** config.cache before re-running configure\n");
34240 return 1;
34241 }
34242}
34243
34244
34245_ACEOF
34246rm -f conftest$ac_exeext
34247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34248 (eval $ac_link) 2>&5
34249 ac_status=$?
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
34254 ac_status=$?
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; }; then
34257 :
34258else
34259 echo "$as_me: program exited with status $ac_status" >&5
34260echo "$as_me: failed program was:" >&5
34261sed 's/^/| /' conftest.$ac_ext >&5
34262
34263( exit $ac_status )
34264no_sdl=yes
34265fi
ac1cb8d3 34266rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34267fi
34268 CFLAGS="$ac_save_CFLAGS"
34269 LIBS="$ac_save_LIBS"
34270 fi
34271 fi
34272 if test "x$no_sdl" = x ; then
34273 echo "$as_me:$LINENO: result: yes" >&5
34274echo "${ECHO_T}yes" >&6
34275
34276 EXTRALIBS_SDL="$SDL_LIBS"
34277 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34278 cat >>confdefs.h <<\_ACEOF
34279#define wxUSE_LIBSDL 1
34280_ACEOF
34281
34282
34283 else
34284 echo "$as_me:$LINENO: result: no" >&5
34285echo "${ECHO_T}no" >&6
34286 if test "$SDL_CONFIG" = "no" ; then
34287 echo "*** The sdl-config script installed by SDL could not be found"
34288 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34289 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34290 echo "*** full path to sdl-config."
34291 else
34292 if test -f conf.sdltest ; then
34293 :
34294 else
34295 echo "*** Could not run SDL test program, checking why..."
34296 CFLAGS="$CFLAGS $SDL_CFLAGS"
34297 LIBS="$LIBS $SDL_LIBS"
34298 cat >conftest.$ac_ext <<_ACEOF
34299/* confdefs.h. */
34300_ACEOF
34301cat confdefs.h >>conftest.$ac_ext
34302cat >>conftest.$ac_ext <<_ACEOF
34303/* end confdefs.h. */
34304
34305#include <stdio.h>
34306#include "SDL.h"
34307
34308int main(int argc, char *argv[])
34309{ return 0; }
34310#undef main
34311#define main K_and_R_C_main
34312
34313int
34314main ()
34315{
34316 return 0;
34317 ;
34318 return 0;
34319}
34320_ACEOF
34321rm -f conftest.$ac_objext conftest$ac_exeext
34322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34323 (eval $ac_link) 2>conftest.er1
a848cd7e 34324 ac_status=$?
ac1cb8d3
VS
34325 grep -v '^ *+' conftest.er1 >conftest.err
34326 rm -f conftest.er1
34327 cat conftest.err >&5
a848cd7e
SC
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); } &&
ea7db9ff
DE
34330 { ac_try='test -z "$ac_c_werror_flag"
34331 || test ! -s conftest.err'
ac1cb8d3
VS
34332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34333 (eval $ac_try) 2>&5
34334 ac_status=$?
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); }; } &&
34337 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34340 ac_status=$?
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; }; then
34343 echo "*** The test program compiled, but did not run. This usually means"
34344 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34345 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34346 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34347 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34348 echo "*** is required on your system"
34349 echo "***"
34350 echo "*** If you have an old version installed, it is best to remove it, although"
34351 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34352else
34353 echo "$as_me: failed program was:" >&5
34354sed 's/^/| /' conftest.$ac_ext >&5
34355
34356 echo "*** The test program failed to compile or link. See the file config.log for the"
34357 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34358 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34359 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34360fi
ac1cb8d3
VS
34361rm -f conftest.err conftest.$ac_objext \
34362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34363 CFLAGS="$ac_save_CFLAGS"
34364 LIBS="$ac_save_LIBS"
34365 fi
34366 fi
34367 SDL_CFLAGS=""
34368 SDL_LIBS=""
34369 wxUSE_LIBSDL="no"
34370 fi
34371
34372
34373 rm -f conf.sdltest
34374
34375 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34376 WITH_PLUGIN_SDL=1
34377 fi
34378 fi
34379 fi
34380
34381 cat >>confdefs.h <<\_ACEOF
34382#define wxUSE_SOUND 1
34383_ACEOF
34384
34385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34386fi
34387
34388if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34389 cat >>confdefs.h <<\_ACEOF
34390#define wxUSE_CMDLINE_PARSER 1
34391_ACEOF
34392
34393fi
34394
34395if test "$wxUSE_STOPWATCH" = "yes"; then
34396 cat >>confdefs.h <<\_ACEOF
34397#define wxUSE_STOPWATCH 1
34398_ACEOF
34399
34400fi
34401
34402if test "$wxUSE_DATETIME" = "yes"; then
34403 cat >>confdefs.h <<\_ACEOF
34404#define wxUSE_DATETIME 1
34405_ACEOF
34406
34407fi
34408
34409if test "$wxUSE_FILE" = "yes"; then
34410 cat >>confdefs.h <<\_ACEOF
34411#define wxUSE_FILE 1
34412_ACEOF
34413
34414fi
34415
34416if test "$wxUSE_FFILE" = "yes"; then
34417 cat >>confdefs.h <<\_ACEOF
34418#define wxUSE_FFILE 1
34419_ACEOF
34420
34421fi
34422
34423if test "$wxUSE_FILESYSTEM" = "yes"; then
34424 cat >>confdefs.h <<\_ACEOF
34425#define wxUSE_FILESYSTEM 1
34426_ACEOF
34427
34428fi
34429
34430if test "$wxUSE_FS_ZIP" = "yes"; then
34431 cat >>confdefs.h <<\_ACEOF
34432#define wxUSE_FS_ZIP 1
34433_ACEOF
34434
34435fi
34436
34437if test "$wxUSE_ZIPSTREAM" = "yes"; then
34438 cat >>confdefs.h <<\_ACEOF
34439#define wxUSE_ZIPSTREAM 1
34440_ACEOF
34441
34442fi
34443
a848cd7e
SC
34444if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34445 cat >>confdefs.h <<\_ACEOF
34446#define wxUSE_ON_FATAL_EXCEPTION 1
34447_ACEOF
34448
34449fi
34450
34451if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34452 cat >>confdefs.h <<\_ACEOF
34453#define wxUSE_SNGLINST_CHECKER 1
34454_ACEOF
34455
34456fi
34457
34458if test "$wxUSE_BUSYINFO" = "yes"; then
34459 cat >>confdefs.h <<\_ACEOF
34460#define wxUSE_BUSYINFO 1
34461_ACEOF
34462
34463fi
34464
34465if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34466 cat >>confdefs.h <<\_ACEOF
34467#define wxUSE_STD_IOSTREAM 1
34468_ACEOF
34469
34470fi
34471
34472if test "$wxUSE_TEXTBUFFER" = "yes"; then
34473 cat >>confdefs.h <<\_ACEOF
34474#define wxUSE_TEXTBUFFER 1
34475_ACEOF
34476
34477fi
34478
34479if test "$wxUSE_TEXTFILE" = "yes"; then
34480 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34481 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34482echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34483 else
34484 cat >>confdefs.h <<\_ACEOF
34485#define wxUSE_TEXTFILE 1
34486_ACEOF
34487
34488 fi
34489fi
34490
34491if test "$wxUSE_CONFIG" = "yes" ; then
34492 if test "$wxUSE_TEXTFILE" != "yes"; then
34493 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34494echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34495 else
34496 cat >>confdefs.h <<\_ACEOF
34497#define wxUSE_CONFIG 1
34498_ACEOF
34499
34500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34501 fi
34502fi
34503
34504if test "$wxUSE_INTL" = "yes" ; then
34505 if test "$wxUSE_FILE" != "yes"; then
34506 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34507echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34508 else
34509 cat >>confdefs.h <<\_ACEOF
34510#define wxUSE_INTL 1
34511_ACEOF
34512
34513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34514 GUIDIST="$GUIDIST INTL_DIST"
34515 fi
34516fi
34517
34518if test "$wxUSE_LOG" = "yes"; then
34519 cat >>confdefs.h <<\_ACEOF
34520#define wxUSE_LOG 1
34521_ACEOF
34522
34523
34524 if test "$wxUSE_LOGGUI" = "yes"; then
34525 cat >>confdefs.h <<\_ACEOF
34526#define wxUSE_LOGGUI 1
34527_ACEOF
34528
34529 fi
34530
34531 if test "$wxUSE_LOGWINDOW" = "yes"; then
34532 cat >>confdefs.h <<\_ACEOF
34533#define wxUSE_LOGWINDOW 1
34534_ACEOF
34535
34536 fi
34537
34538 if test "$wxUSE_LOGDIALOG" = "yes"; then
34539 cat >>confdefs.h <<\_ACEOF
34540#define wxUSE_LOG_DIALOG 1
34541_ACEOF
34542
34543 fi
34544fi
34545
34546if test "$wxUSE_LONGLONG" = "yes"; then
34547 cat >>confdefs.h <<\_ACEOF
34548#define wxUSE_LONGLONG 1
34549_ACEOF
34550
34551fi
34552
34553if test "$wxUSE_GEOMETRY" = "yes"; then
34554 cat >>confdefs.h <<\_ACEOF
34555#define wxUSE_GEOMETRY 1
34556_ACEOF
34557
34558fi
34559
34560if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34561 cat >>confdefs.h <<\_ACEOF
34562#define wxUSE_DIALUP_MANAGER 1
34563_ACEOF
34564
34565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34566fi
34567
34568if test "$wxUSE_STREAMS" = "yes" ; then
34569 cat >>confdefs.h <<\_ACEOF
34570#define wxUSE_STREAMS 1
34571_ACEOF
34572
34573fi
34574
34575
34576if test "$wxUSE_DATETIME" = "yes"; then
34577
34578for ac_func in strptime
34579do
34580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34581echo "$as_me:$LINENO: checking for $ac_func" >&5
34582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34583if eval "test \"\${$as_ac_var+set}\" = set"; then
34584 echo $ECHO_N "(cached) $ECHO_C" >&6
34585else
34586 cat >conftest.$ac_ext <<_ACEOF
34587/* confdefs.h. */
34588_ACEOF
34589cat confdefs.h >>conftest.$ac_ext
34590cat >>conftest.$ac_ext <<_ACEOF
34591/* end confdefs.h. */
ac1cb8d3
VS
34592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34594#define $ac_func innocuous_$ac_func
34595
a848cd7e
SC
34596/* System header to define __stub macros and hopefully few prototypes,
34597 which can conflict with char $ac_func (); below.
34598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34599 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34600
a848cd7e
SC
34601#ifdef __STDC__
34602# include <limits.h>
34603#else
34604# include <assert.h>
34605#endif
ac1cb8d3
VS
34606
34607#undef $ac_func
34608
a848cd7e
SC
34609/* Override any gcc2 internal prototype to avoid an error. */
34610#ifdef __cplusplus
34611extern "C"
34612{
34613#endif
34614/* We use char because int might match the return type of a gcc2
34615 builtin and then its argument prototype would still apply. */
34616char $ac_func ();
34617/* The GNU C library defines this for functions which it implements
34618 to always fail with ENOSYS. Some functions are actually named
34619 something starting with __ and the normal name is an alias. */
34620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34621choke me
34622#else
34623char (*f) () = $ac_func;
34624#endif
34625#ifdef __cplusplus
34626}
34627#endif
34628
34629int
34630main ()
34631{
34632return f != $ac_func;
34633 ;
34634 return 0;
34635}
34636_ACEOF
34637rm -f conftest.$ac_objext conftest$ac_exeext
34638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34639 (eval $ac_link) 2>conftest.er1
a848cd7e 34640 ac_status=$?
ac1cb8d3
VS
34641 grep -v '^ *+' conftest.er1 >conftest.err
34642 rm -f conftest.er1
34643 cat conftest.err >&5
a848cd7e
SC
34644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34645 (exit $ac_status); } &&
ea7db9ff
DE
34646 { ac_try='test -z "$ac_c_werror_flag"
34647 || test ! -s conftest.err'
ac1cb8d3
VS
34648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34649 (eval $ac_try) 2>&5
34650 ac_status=$?
34651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34652 (exit $ac_status); }; } &&
34653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34655 (eval $ac_try) 2>&5
34656 ac_status=$?
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); }; }; then
34659 eval "$as_ac_var=yes"
34660else
34661 echo "$as_me: failed program was:" >&5
34662sed 's/^/| /' conftest.$ac_ext >&5
34663
34664eval "$as_ac_var=no"
34665fi
ac1cb8d3
VS
34666rm -f conftest.err conftest.$ac_objext \
34667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34668fi
34669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34670echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34671if test `eval echo '${'$as_ac_var'}'` = yes; then
34672 cat >>confdefs.h <<_ACEOF
34673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34674_ACEOF
34675
34676fi
34677done
34678
34679
34680 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34681echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34682if test "${wx_cv_var_timezone+set}" = set; then
34683 echo $ECHO_N "(cached) $ECHO_C" >&6
34684else
34685
34686 cat >conftest.$ac_ext <<_ACEOF
34687/* confdefs.h. */
34688_ACEOF
34689cat confdefs.h >>conftest.$ac_ext
34690cat >>conftest.$ac_ext <<_ACEOF
34691/* end confdefs.h. */
34692
34693 #include <time.h>
34694
34695int
34696main ()
34697{
34698
34699 int tz;
34700 tz = timezone;
34701
34702 ;
34703 return 0;
34704}
34705_ACEOF
34706rm -f conftest.$ac_objext
34707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34708 (eval $ac_compile) 2>conftest.er1
a848cd7e 34709 ac_status=$?
ac1cb8d3
VS
34710 grep -v '^ *+' conftest.er1 >conftest.err
34711 rm -f conftest.er1
34712 cat conftest.err >&5
a848cd7e
SC
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); } &&
ea7db9ff
DE
34715 { ac_try='test -z "$ac_c_werror_flag"
34716 || test ! -s conftest.err'
ac1cb8d3
VS
34717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34718 (eval $ac_try) 2>&5
34719 ac_status=$?
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); }; } &&
34722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34724 (eval $ac_try) 2>&5
34725 ac_status=$?
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; }; then
34728
34729 wx_cv_var_timezone=timezone
34730
34731else
34732 echo "$as_me: failed program was:" >&5
34733sed 's/^/| /' conftest.$ac_ext >&5
34734
34735
34736 cat >conftest.$ac_ext <<_ACEOF
34737/* confdefs.h. */
34738_ACEOF
34739cat confdefs.h >>conftest.$ac_ext
34740cat >>conftest.$ac_ext <<_ACEOF
34741/* end confdefs.h. */
34742
34743 #include <time.h>
34744
34745int
34746main ()
34747{
34748
34749 int tz;
34750 tz = _timezone;
34751
34752 ;
34753 return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext
34757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34758 (eval $ac_compile) 2>conftest.er1
a848cd7e 34759 ac_status=$?
ac1cb8d3
VS
34760 grep -v '^ *+' conftest.er1 >conftest.err
34761 rm -f conftest.er1
34762 cat conftest.err >&5
a848cd7e
SC
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
ea7db9ff
DE
34765 { ac_try='test -z "$ac_c_werror_flag"
34766 || test ! -s conftest.err'
ac1cb8d3
VS
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34769 ac_status=$?
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; } &&
34772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34774 (eval $ac_try) 2>&5
34775 ac_status=$?
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); }; }; then
34778
34779 wx_cv_var_timezone=_timezone
34780
34781else
34782 echo "$as_me: failed program was:" >&5
34783sed 's/^/| /' conftest.$ac_ext >&5
34784
34785
34786 cat >conftest.$ac_ext <<_ACEOF
34787/* confdefs.h. */
34788_ACEOF
34789cat confdefs.h >>conftest.$ac_ext
34790cat >>conftest.$ac_ext <<_ACEOF
34791/* end confdefs.h. */
34792
34793 #include <time.h>
34794
34795int
34796main ()
34797{
34798
34799 int tz;
34800 tz = __timezone;
34801
34802 ;
34803 return 0;
34804}
34805_ACEOF
34806rm -f conftest.$ac_objext
34807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34808 (eval $ac_compile) 2>conftest.er1
a848cd7e 34809 ac_status=$?
ac1cb8d3
VS
34810 grep -v '^ *+' conftest.er1 >conftest.err
34811 rm -f conftest.er1
34812 cat conftest.err >&5
a848cd7e
SC
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); } &&
ea7db9ff
DE
34815 { ac_try='test -z "$ac_c_werror_flag"
34816 || test ! -s conftest.err'
ac1cb8d3
VS
34817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34818 (eval $ac_try) 2>&5
34819 ac_status=$?
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); }; } &&
34822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824 (eval $ac_try) 2>&5
34825 ac_status=$?
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); }; }; then
34828
34829 wx_cv_var_timezone=__timezone
34830
34831else
34832 echo "$as_me: failed program was:" >&5
34833sed 's/^/| /' conftest.$ac_ext >&5
34834
34835
34836 if test "$USE_DOS" = 0 ; then
34837 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34838echo "$as_me: WARNING: no timezone variable" >&2;}
34839 fi
34840
34841
34842fi
ac1cb8d3 34843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34844
34845
34846fi
ac1cb8d3 34847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34848
34849
34850fi
ac1cb8d3 34851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34852
34853
34854fi
34855echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34856echo "${ECHO_T}$wx_cv_var_timezone" >&6
34857
34858 if test "x$wx_cv_var_timezone" != x ; then
34859 cat >>confdefs.h <<_ACEOF
34860#define WX_TIMEZONE $wx_cv_var_timezone
34861_ACEOF
34862
34863 fi
34864
34865
34866for ac_func in localtime
34867do
34868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34869echo "$as_me:$LINENO: checking for $ac_func" >&5
34870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34871if eval "test \"\${$as_ac_var+set}\" = set"; then
34872 echo $ECHO_N "(cached) $ECHO_C" >&6
34873else
34874 cat >conftest.$ac_ext <<_ACEOF
34875/* confdefs.h. */
34876_ACEOF
34877cat confdefs.h >>conftest.$ac_ext
34878cat >>conftest.$ac_ext <<_ACEOF
34879/* end confdefs.h. */
ac1cb8d3
VS
34880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34882#define $ac_func innocuous_$ac_func
34883
a848cd7e
SC
34884/* System header to define __stub macros and hopefully few prototypes,
34885 which can conflict with char $ac_func (); below.
34886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34887 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34888
a848cd7e
SC
34889#ifdef __STDC__
34890# include <limits.h>
34891#else
34892# include <assert.h>
34893#endif
ac1cb8d3
VS
34894
34895#undef $ac_func
34896
a848cd7e
SC
34897/* Override any gcc2 internal prototype to avoid an error. */
34898#ifdef __cplusplus
34899extern "C"
34900{
34901#endif
34902/* We use char because int might match the return type of a gcc2
34903 builtin and then its argument prototype would still apply. */
34904char $ac_func ();
34905/* The GNU C library defines this for functions which it implements
34906 to always fail with ENOSYS. Some functions are actually named
34907 something starting with __ and the normal name is an alias. */
34908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34909choke me
34910#else
34911char (*f) () = $ac_func;
34912#endif
34913#ifdef __cplusplus
34914}
34915#endif
34916
34917int
34918main ()
34919{
34920return f != $ac_func;
34921 ;
34922 return 0;
34923}
34924_ACEOF
34925rm -f conftest.$ac_objext conftest$ac_exeext
34926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34927 (eval $ac_link) 2>conftest.er1
a848cd7e 34928 ac_status=$?
ac1cb8d3
VS
34929 grep -v '^ *+' conftest.er1 >conftest.err
34930 rm -f conftest.er1
34931 cat conftest.err >&5
a848cd7e
SC
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); } &&
ea7db9ff
DE
34934 { ac_try='test -z "$ac_c_werror_flag"
34935 || test ! -s conftest.err'
ac1cb8d3
VS
34936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34937 (eval $ac_try) 2>&5
34938 ac_status=$?
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); }; } &&
34941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34943 (eval $ac_try) 2>&5
34944 ac_status=$?
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); }; }; then
34947 eval "$as_ac_var=yes"
34948else
34949 echo "$as_me: failed program was:" >&5
34950sed 's/^/| /' conftest.$ac_ext >&5
34951
34952eval "$as_ac_var=no"
34953fi
ac1cb8d3
VS
34954rm -f conftest.err conftest.$ac_objext \
34955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34956fi
34957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34958echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34959if test `eval echo '${'$as_ac_var'}'` = yes; then
34960 cat >>confdefs.h <<_ACEOF
34961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34962_ACEOF
34963
34964fi
34965done
34966
34967
34968 if test "$ac_cv_func_localtime" = "yes"; then
34969 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34970echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34971if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34973else
34974
34975 cat >conftest.$ac_ext <<_ACEOF
34976/* confdefs.h. */
34977_ACEOF
34978cat confdefs.h >>conftest.$ac_ext
34979cat >>conftest.$ac_ext <<_ACEOF
34980/* end confdefs.h. */
34981
34982 #include <time.h>
34983
34984int
34985main ()
34986{
34987
34988 struct tm tm;
34989 tm.tm_gmtoff++;
34990
34991 ;
34992 return 0;
34993}
34994_ACEOF
34995rm -f conftest.$ac_objext
34996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34997 (eval $ac_compile) 2>conftest.er1
a848cd7e 34998 ac_status=$?
ac1cb8d3
VS
34999 grep -v '^ *+' conftest.er1 >conftest.err
35000 rm -f conftest.er1
35001 cat conftest.err >&5
a848cd7e
SC
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); } &&
ea7db9ff
DE
35004 { ac_try='test -z "$ac_c_werror_flag"
35005 || test ! -s conftest.err'
ac1cb8d3
VS
35006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35007 (eval $ac_try) 2>&5
35008 ac_status=$?
35009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010 (exit $ac_status); }; } &&
35011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35013 (eval $ac_try) 2>&5
35014 ac_status=$?
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); }; }; then
35017
35018 wx_cv_struct_tm_has_gmtoff=yes
35019
35020else
35021 echo "$as_me: failed program was:" >&5
35022sed 's/^/| /' conftest.$ac_ext >&5
35023
35024wx_cv_struct_tm_has_gmtoff=no
35025
35026fi
ac1cb8d3 35027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35028
35029fi
35030echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35031echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35032 fi
35033
35034 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35035 cat >>confdefs.h <<\_ACEOF
35036#define WX_GMTOFF_IN_TM 1
35037_ACEOF
35038
35039 fi
35040
35041
35042
35043for ac_func in gettimeofday ftime
35044do
35045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35046echo "$as_me:$LINENO: checking for $ac_func" >&5
35047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35048if eval "test \"\${$as_ac_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35059#define $ac_func innocuous_$ac_func
35060
a848cd7e
SC
35061/* System header to define __stub macros and hopefully few prototypes,
35062 which can conflict with char $ac_func (); 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 $ac_func
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 $ac_func ();
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_$ac_func) || defined (__stub___$ac_func)
35086choke me
35087#else
35088char (*f) () = $ac_func;
35089#endif
35090#ifdef __cplusplus
35091}
35092#endif
35093
35094int
35095main ()
35096{
35097return f != $ac_func;
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); } &&
ea7db9ff
DE
35111 { ac_try='test -z "$ac_c_werror_flag"
35112 || test ! -s conftest.err'
ac1cb8d3
VS
35113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114 (eval $ac_try) 2>&5
35115 ac_status=$?
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); }; } &&
35118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35120 (eval $ac_try) 2>&5
35121 ac_status=$?
35122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123 (exit $ac_status); }; }; then
35124 eval "$as_ac_var=yes"
35125else
35126 echo "$as_me: failed program was:" >&5
35127sed 's/^/| /' conftest.$ac_ext >&5
35128
35129eval "$as_ac_var=no"
35130fi
ac1cb8d3
VS
35131rm -f conftest.err conftest.$ac_objext \
35132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35133fi
35134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35136if test `eval echo '${'$as_ac_var'}'` = yes; then
35137 cat >>confdefs.h <<_ACEOF
35138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35139_ACEOF
35140 break
35141fi
35142done
35143
35144
35145 if test "$ac_cv_func_gettimeofday" = "yes"; then
35146 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35147echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35148if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35149 echo $ECHO_N "(cached) $ECHO_C" >&6
35150else
35151
35152
35153
35154 ac_ext=cc
35155ac_cpp='$CXXCPP $CPPFLAGS'
35156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35159
35160
35161 cat >conftest.$ac_ext <<_ACEOF
35162/* confdefs.h. */
35163_ACEOF
35164cat confdefs.h >>conftest.$ac_ext
35165cat >>conftest.$ac_ext <<_ACEOF
35166/* end confdefs.h. */
35167
35168 #include <sys/time.h>
35169 #include <unistd.h>
35170
35171int
35172main ()
35173{
35174
35175 struct timeval tv;
35176 gettimeofday(&tv, NULL);
35177
35178 ;
35179 return 0;
35180}
35181_ACEOF
35182rm -f conftest.$ac_objext
35183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35184 (eval $ac_compile) 2>conftest.er1
a848cd7e 35185 ac_status=$?
ac1cb8d3
VS
35186 grep -v '^ *+' conftest.er1 >conftest.err
35187 rm -f conftest.er1
35188 cat conftest.err >&5
a848cd7e
SC
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); } &&
ea7db9ff
DE
35191 { ac_try='test -z "$ac_cxx_werror_flag"
35192 || test ! -s conftest.err'
ac1cb8d3
VS
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; } &&
35198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35200 (eval $ac_try) 2>&5
35201 ac_status=$?
35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203 (exit $ac_status); }; }; then
35204 wx_cv_func_gettimeofday_has_2_args=yes
35205else
35206 echo "$as_me: failed program was:" >&5
35207sed 's/^/| /' conftest.$ac_ext >&5
35208
35209cat >conftest.$ac_ext <<_ACEOF
35210/* confdefs.h. */
35211_ACEOF
35212cat confdefs.h >>conftest.$ac_ext
35213cat >>conftest.$ac_ext <<_ACEOF
35214/* end confdefs.h. */
35215
35216 #include <sys/time.h>
35217 #include <unistd.h>
35218
35219int
35220main ()
35221{
35222
35223 struct timeval tv;
35224 gettimeofday(&tv);
35225
35226 ;
35227 return 0;
35228}
35229_ACEOF
35230rm -f conftest.$ac_objext
35231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35232 (eval $ac_compile) 2>conftest.er1
a848cd7e 35233 ac_status=$?
ac1cb8d3
VS
35234 grep -v '^ *+' conftest.er1 >conftest.err
35235 rm -f conftest.er1
35236 cat conftest.err >&5
a848cd7e
SC
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); } &&
ea7db9ff
DE
35239 { ac_try='test -z "$ac_cxx_werror_flag"
35240 || test ! -s conftest.err'
ac1cb8d3
VS
35241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242 (eval $ac_try) 2>&5
35243 ac_status=$?
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); }; } &&
35246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35248 (eval $ac_try) 2>&5
35249 ac_status=$?
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251 (exit $ac_status); }; }; then
35252 wx_cv_func_gettimeofday_has_2_args=no
35253else
35254 echo "$as_me: failed program was:" >&5
35255sed 's/^/| /' conftest.$ac_ext >&5
35256
35257
35258 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35259echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35260 wx_cv_func_gettimeofday_has_2_args=unknown
35261
35262
35263fi
ac1cb8d3 35264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35265
35266fi
ac1cb8d3 35267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35268 ac_ext=c
35269ac_cpp='$CPP $CPPFLAGS'
35270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35272ac_compiler_gnu=$ac_cv_c_compiler_gnu
35273
35274
35275fi
35276echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35277echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35278
35279 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35280 cat >>confdefs.h <<\_ACEOF
35281#define WX_GETTIMEOFDAY_NO_TZ 1
35282_ACEOF
35283
35284 fi
35285 fi
35286
35287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35288fi
35289
35290
35291if test "$wxUSE_SOCKETS" = "yes"; then
35292 if test "$wxUSE_MGL" = "1"; then
35293 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35294echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35295 wxUSE_SOCKETS="no"
35296 fi
35297fi
35298
35299if test "$wxUSE_SOCKETS" = "yes"; then
35300 if test "$TOOLKIT" != "MSW"; then
35301 echo "$as_me:$LINENO: checking for socket" >&5
35302echo $ECHO_N "checking for socket... $ECHO_C" >&6
35303if test "${ac_cv_func_socket+set}" = set; then
35304 echo $ECHO_N "(cached) $ECHO_C" >&6
35305else
35306 cat >conftest.$ac_ext <<_ACEOF
35307/* confdefs.h. */
35308_ACEOF
35309cat confdefs.h >>conftest.$ac_ext
35310cat >>conftest.$ac_ext <<_ACEOF
35311/* end confdefs.h. */
ac1cb8d3
VS
35312/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35314#define socket innocuous_socket
35315
a848cd7e
SC
35316/* System header to define __stub macros and hopefully few prototypes,
35317 which can conflict with char socket (); below.
35318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35319 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35320
a848cd7e
SC
35321#ifdef __STDC__
35322# include <limits.h>
35323#else
35324# include <assert.h>
35325#endif
ac1cb8d3
VS
35326
35327#undef socket
35328
a848cd7e
SC
35329/* Override any gcc2 internal prototype to avoid an error. */
35330#ifdef __cplusplus
35331extern "C"
35332{
35333#endif
35334/* We use char because int might match the return type of a gcc2
35335 builtin and then its argument prototype would still apply. */
35336char socket ();
35337/* The GNU C library defines this for functions which it implements
35338 to always fail with ENOSYS. Some functions are actually named
35339 something starting with __ and the normal name is an alias. */
35340#if defined (__stub_socket) || defined (__stub___socket)
35341choke me
35342#else
35343char (*f) () = socket;
35344#endif
35345#ifdef __cplusplus
35346}
35347#endif
35348
35349int
35350main ()
35351{
35352return f != socket;
35353 ;
35354 return 0;
35355}
35356_ACEOF
35357rm -f conftest.$ac_objext conftest$ac_exeext
35358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35359 (eval $ac_link) 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); } &&
ea7db9ff
DE
35366 { ac_try='test -z "$ac_c_werror_flag"
35367 || test ! -s conftest.err'
ac1cb8d3
VS
35368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35369 (eval $ac_try) 2>&5
35370 ac_status=$?
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); }; } &&
35373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35375 (eval $ac_try) 2>&5
35376 ac_status=$?
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); }; }; then
35379 ac_cv_func_socket=yes
35380else
35381 echo "$as_me: failed program was:" >&5
35382sed 's/^/| /' conftest.$ac_ext >&5
35383
35384ac_cv_func_socket=no
35385fi
ac1cb8d3
VS
35386rm -f conftest.err conftest.$ac_objext \
35387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35388fi
35389echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35390echo "${ECHO_T}$ac_cv_func_socket" >&6
35391if test $ac_cv_func_socket = yes; then
35392 :
35393else
35394
35395 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35396echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35397if test "${ac_cv_lib_socket_socket+set}" = set; then
35398 echo $ECHO_N "(cached) $ECHO_C" >&6
35399else
35400 ac_check_lib_save_LIBS=$LIBS
35401LIBS="-lsocket $LIBS"
35402cat >conftest.$ac_ext <<_ACEOF
35403/* confdefs.h. */
35404_ACEOF
35405cat confdefs.h >>conftest.$ac_ext
35406cat >>conftest.$ac_ext <<_ACEOF
35407/* end confdefs.h. */
35408
35409/* Override any gcc2 internal prototype to avoid an error. */
35410#ifdef __cplusplus
35411extern "C"
35412#endif
35413/* We use char because int might match the return type of a gcc2
35414 builtin and then its argument prototype would still apply. */
35415char socket ();
35416int
35417main ()
35418{
35419socket ();
35420 ;
35421 return 0;
35422}
35423_ACEOF
35424rm -f conftest.$ac_objext conftest$ac_exeext
35425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35426 (eval $ac_link) 2>conftest.er1
a848cd7e 35427 ac_status=$?
ac1cb8d3
VS
35428 grep -v '^ *+' conftest.er1 >conftest.err
35429 rm -f conftest.er1
35430 cat conftest.err >&5
a848cd7e
SC
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); } &&
ea7db9ff
DE
35433 { ac_try='test -z "$ac_c_werror_flag"
35434 || test ! -s conftest.err'
ac1cb8d3
VS
35435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35436 (eval $ac_try) 2>&5
35437 ac_status=$?
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); }; } &&
35440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; }; then
35446 ac_cv_lib_socket_socket=yes
35447else
35448 echo "$as_me: failed program was:" >&5
35449sed 's/^/| /' conftest.$ac_ext >&5
35450
35451ac_cv_lib_socket_socket=no
35452fi
ac1cb8d3
VS
35453rm -f conftest.err conftest.$ac_objext \
35454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35455LIBS=$ac_check_lib_save_LIBS
35456fi
35457echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35458echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35459if test $ac_cv_lib_socket_socket = yes; then
35460 if test "$INET_LINK" != " -lsocket"; then
35461 INET_LINK="$INET_LINK -lsocket"
35462 fi
35463else
35464
35465 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35466echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35467 wxUSE_SOCKETS=no
35468
35469
35470fi
35471
35472
35473
35474fi
35475
35476 fi
35477fi
35478
35479if test "$wxUSE_SOCKETS" = "yes" ; then
35480 if test "$TOOLKIT" != "MSW"; then
35481 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35482echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35483if test "${wx_cv_type_getsockname3+set}" = set; then
35484 echo $ECHO_N "(cached) $ECHO_C" >&6
35485else
35486
35487 cat >conftest.$ac_ext <<_ACEOF
35488/* confdefs.h. */
35489_ACEOF
35490cat confdefs.h >>conftest.$ac_ext
35491cat >>conftest.$ac_ext <<_ACEOF
35492/* end confdefs.h. */
35493
35494 #include <sys/types.h>
35495 #include <sys/socket.h>
35496
35497int
35498main ()
35499{
35500
35501 socklen_t len;
35502 getsockname(0, 0, &len);
35503
35504 ;
35505 return 0;
35506}
35507_ACEOF
35508rm -f conftest.$ac_objext
35509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35510 (eval $ac_compile) 2>conftest.er1
a848cd7e 35511 ac_status=$?
ac1cb8d3
VS
35512 grep -v '^ *+' conftest.er1 >conftest.err
35513 rm -f conftest.er1
35514 cat conftest.err >&5
a848cd7e
SC
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); } &&
ea7db9ff
DE
35517 { ac_try='test -z "$ac_c_werror_flag"
35518 || test ! -s conftest.err'
ac1cb8d3
VS
35519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520 (eval $ac_try) 2>&5
35521 ac_status=$?
35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523 (exit $ac_status); }; } &&
35524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35526 (eval $ac_try) 2>&5
35527 ac_status=$?
35528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); }; }; then
35530 wx_cv_type_getsockname3=socklen_t
35531else
35532 echo "$as_me: failed program was:" >&5
35533sed 's/^/| /' conftest.$ac_ext >&5
35534
35535
35536 CFLAGS_OLD="$CFLAGS"
35537 if test "$GCC" = yes ; then
35538 CFLAGS="$CFLAGS -Werror"
35539 fi
35540
35541 cat >conftest.$ac_ext <<_ACEOF
35542/* confdefs.h. */
35543_ACEOF
35544cat confdefs.h >>conftest.$ac_ext
35545cat >>conftest.$ac_ext <<_ACEOF
35546/* end confdefs.h. */
35547
35548 #include <sys/types.h>
35549 #include <sys/socket.h>
35550
35551int
35552main ()
35553{
35554
35555 size_t len;
35556 getsockname(0, 0, &len);
35557
35558 ;
35559 return 0;
35560}
35561_ACEOF
35562rm -f conftest.$ac_objext
35563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35564 (eval $ac_compile) 2>conftest.er1
a848cd7e 35565 ac_status=$?
ac1cb8d3
VS
35566 grep -v '^ *+' conftest.er1 >conftest.err
35567 rm -f conftest.er1
35568 cat conftest.err >&5
a848cd7e
SC
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); } &&
ea7db9ff
DE
35571 { ac_try='test -z "$ac_c_werror_flag"
35572 || test ! -s conftest.err'
ac1cb8d3
VS
35573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35574 (eval $ac_try) 2>&5
35575 ac_status=$?
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); }; } &&
35578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35580 (eval $ac_try) 2>&5
35581 ac_status=$?
35582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583 (exit $ac_status); }; }; then
35584 wx_cv_type_getsockname3=size_t
35585else
35586 echo "$as_me: failed program was:" >&5
35587sed 's/^/| /' conftest.$ac_ext >&5
35588
35589cat >conftest.$ac_ext <<_ACEOF
35590/* confdefs.h. */
35591_ACEOF
35592cat confdefs.h >>conftest.$ac_ext
35593cat >>conftest.$ac_ext <<_ACEOF
35594/* end confdefs.h. */
35595
35596 #include <sys/types.h>
35597 #include <sys/socket.h>
35598
35599int
35600main ()
35601{
35602
35603 int len;
35604 getsockname(0, 0, &len);
35605
35606 ;
35607 return 0;
35608}
35609_ACEOF
35610rm -f conftest.$ac_objext
35611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35612 (eval $ac_compile) 2>conftest.er1
a848cd7e 35613 ac_status=$?
ac1cb8d3
VS
35614 grep -v '^ *+' conftest.er1 >conftest.err
35615 rm -f conftest.er1
35616 cat conftest.err >&5
a848cd7e
SC
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); } &&
ea7db9ff
DE
35619 { ac_try='test -z "$ac_c_werror_flag"
35620 || test ! -s conftest.err'
ac1cb8d3
VS
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; } &&
35626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35628 (eval $ac_try) 2>&5
35629 ac_status=$?
35630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631 (exit $ac_status); }; }; then
35632 wx_cv_type_getsockname3=int
35633else
35634 echo "$as_me: failed program was:" >&5
35635sed 's/^/| /' conftest.$ac_ext >&5
35636
35637wx_cv_type_getsockname3=unknown
35638
35639fi
ac1cb8d3 35640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35641
35642fi
ac1cb8d3 35643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35644
35645 CFLAGS="$CFLAGS_OLD"
35646
35647
35648fi
ac1cb8d3 35649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35650
35651fi
35652echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35653echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35654
35655 if test "$wx_cv_type_getsockname3" = "unknown"; then
35656 wxUSE_SOCKETS=no
35657 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35658echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35659 else
35660 cat >>confdefs.h <<_ACEOF
35661#define SOCKLEN_T $wx_cv_type_getsockname3
35662_ACEOF
35663
35664 fi
35665 fi
35666fi
35667
35668if test "$wxUSE_SOCKETS" = "yes" ; then
35669 cat >>confdefs.h <<\_ACEOF
35670#define wxUSE_SOCKETS 1
35671_ACEOF
35672
35673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35674fi
35675
35676if test "$wxUSE_PROTOCOL" = "yes"; then
35677 if test "$wxUSE_SOCKETS" != "yes"; then
35678 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35679echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35680 wxUSE_PROTOCOL=no
35681 fi
35682fi
35683
35684if test "$wxUSE_PROTOCOL" = "yes"; then
35685 cat >>confdefs.h <<\_ACEOF
35686#define wxUSE_PROTOCOL 1
35687_ACEOF
35688
35689
35690 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35691 cat >>confdefs.h <<\_ACEOF
35692#define wxUSE_PROTOCOL_HTTP 1
35693_ACEOF
35694
35695 fi
35696 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35697 cat >>confdefs.h <<\_ACEOF
35698#define wxUSE_PROTOCOL_FTP 1
35699_ACEOF
35700
35701 fi
35702 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35703 cat >>confdefs.h <<\_ACEOF
35704#define wxUSE_PROTOCOL_FILE 1
35705_ACEOF
35706
35707 fi
35708else
35709 if test "$wxUSE_FS_INET" = "yes"; then
35710 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35711echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35712 wxUSE_FS_INET="no"
35713 fi
35714fi
35715
35716if test "$wxUSE_URL" = "yes"; then
35717 if test "$wxUSE_PROTOCOL" != "yes"; then
35718 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35719echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35720 wxUSE_URL=no
35721 fi
35722 if test "$wxUSE_URL" = "yes"; then
35723 cat >>confdefs.h <<\_ACEOF
35724#define wxUSE_URL 1
35725_ACEOF
35726
35727 fi
35728fi
35729
35730if test "$wxUSE_FS_INET" = "yes"; then
35731 cat >>confdefs.h <<\_ACEOF
35732#define wxUSE_FS_INET 1
35733_ACEOF
35734
35735fi
35736
35737
35738if test "$wxUSE_GUI" = "yes"; then
35739
35740 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35741 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35742echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35743 wxUSE_JOYSTICK=no
35744 fi
35745
35746 if test "$TOOLKIT" != "MSW"; then
35747 if test "$wxUSE_JOYSTICK" = "yes"; then
35748
35749for ac_header in linux/joystick.h
35750do
35751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35752if eval "test \"\${$as_ac_Header+set}\" = set"; then
35753 echo "$as_me:$LINENO: checking for $ac_header" >&5
35754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35755if eval "test \"\${$as_ac_Header+set}\" = set"; then
35756 echo $ECHO_N "(cached) $ECHO_C" >&6
35757fi
35758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35760else
35761 # Is the header compilable?
35762echo "$as_me:$LINENO: checking $ac_header usability" >&5
35763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35764cat >conftest.$ac_ext <<_ACEOF
35765/* confdefs.h. */
35766_ACEOF
35767cat confdefs.h >>conftest.$ac_ext
35768cat >>conftest.$ac_ext <<_ACEOF
35769/* end confdefs.h. */
35770$ac_includes_default
35771#include <$ac_header>
35772_ACEOF
35773rm -f conftest.$ac_objext
35774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35775 (eval $ac_compile) 2>conftest.er1
a848cd7e 35776 ac_status=$?
ac1cb8d3
VS
35777 grep -v '^ *+' conftest.er1 >conftest.err
35778 rm -f conftest.er1
35779 cat conftest.err >&5
a848cd7e
SC
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); } &&
ea7db9ff
DE
35782 { ac_try='test -z "$ac_c_werror_flag"
35783 || test ! -s conftest.err'
ac1cb8d3
VS
35784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785 (eval $ac_try) 2>&5
35786 ac_status=$?
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); }; } &&
35789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791 (eval $ac_try) 2>&5
35792 ac_status=$?
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); }; }; then
35795 ac_header_compiler=yes
35796else
35797 echo "$as_me: failed program was:" >&5
35798sed 's/^/| /' conftest.$ac_ext >&5
35799
35800ac_header_compiler=no
35801fi
ac1cb8d3 35802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35804echo "${ECHO_T}$ac_header_compiler" >&6
35805
35806# Is the header present?
35807echo "$as_me:$LINENO: checking $ac_header presence" >&5
35808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35809cat >conftest.$ac_ext <<_ACEOF
35810/* confdefs.h. */
35811_ACEOF
35812cat confdefs.h >>conftest.$ac_ext
35813cat >>conftest.$ac_ext <<_ACEOF
35814/* end confdefs.h. */
35815#include <$ac_header>
35816_ACEOF
35817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35819 ac_status=$?
35820 grep -v '^ *+' conftest.er1 >conftest.err
35821 rm -f conftest.er1
35822 cat conftest.err >&5
35823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824 (exit $ac_status); } >/dev/null; then
35825 if test -s conftest.err; then
35826 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35828 else
35829 ac_cpp_err=
35830 fi
35831else
35832 ac_cpp_err=yes
35833fi
35834if test -z "$ac_cpp_err"; then
35835 ac_header_preproc=yes
35836else
35837 echo "$as_me: failed program was:" >&5
35838sed 's/^/| /' conftest.$ac_ext >&5
35839
35840 ac_header_preproc=no
35841fi
35842rm -f conftest.err conftest.$ac_ext
35843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35844echo "${ECHO_T}$ac_header_preproc" >&6
35845
35846# So? What about this header?
ac1cb8d3
VS
35847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35848 yes:no: )
a848cd7e
SC
35849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35853 ac_header_preproc=yes
a848cd7e 35854 ;;
ac1cb8d3 35855 no:yes:* )
a848cd7e
SC
35856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35859echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35863echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35868 (
35869 cat <<\_ASBOX
ac1cb8d3
VS
35870## ----------------------------------------- ##
35871## Report this to wx-dev@lists.wxwidgets.org ##
35872## ----------------------------------------- ##
a848cd7e
SC
35873_ASBOX
35874 ) |
35875 sed "s/^/$as_me: WARNING: /" >&2
35876 ;;
35877esac
35878echo "$as_me:$LINENO: checking for $ac_header" >&5
35879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35880if eval "test \"\${$as_ac_Header+set}\" = set"; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35882else
ac1cb8d3 35883 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35884fi
35885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35887
35888fi
35889if test `eval echo '${'$as_ac_Header'}'` = yes; then
35890 cat >>confdefs.h <<_ACEOF
35891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35892_ACEOF
35893
35894fi
35895
35896done
35897
35898 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35899 wxUSE_JOYSTICK=no
35900 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35901echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35902 fi
35903 fi
35904 fi
35905
35906 if test "$wxUSE_JOYSTICK" = "yes"; then
35907 cat >>confdefs.h <<\_ACEOF
35908#define wxUSE_JOYSTICK 1
35909_ACEOF
35910
35911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35912 fi
35913fi
35914
35915
35916
35917if test "$wxUSE_FONTMAP" = "yes" ; then
35918 cat >>confdefs.h <<\_ACEOF
35919#define wxUSE_FONTMAP 1
35920_ACEOF
35921
35922fi
35923
35924if test "$wxUSE_UNICODE" = "yes" ; then
35925 cat >>confdefs.h <<\_ACEOF
35926#define wxUSE_UNICODE 1
35927_ACEOF
35928
35929
35930 if test "$USE_WIN32" != 1; then
35931 wxUSE_UNICODE_MSLU=no
35932 fi
35933
35934 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35935 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35936echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35937if test "${ac_cv_lib_unicows_main+set}" = set; then
35938 echo $ECHO_N "(cached) $ECHO_C" >&6
35939else
35940 ac_check_lib_save_LIBS=$LIBS
35941LIBS="-lunicows $LIBS"
35942cat >conftest.$ac_ext <<_ACEOF
35943/* confdefs.h. */
35944_ACEOF
35945cat confdefs.h >>conftest.$ac_ext
35946cat >>conftest.$ac_ext <<_ACEOF
35947/* end confdefs.h. */
35948
35949
35950int
35951main ()
35952{
35953main ();
35954 ;
35955 return 0;
35956}
35957_ACEOF
35958rm -f conftest.$ac_objext conftest$ac_exeext
35959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35960 (eval $ac_link) 2>conftest.er1
a848cd7e 35961 ac_status=$?
ac1cb8d3
VS
35962 grep -v '^ *+' conftest.er1 >conftest.err
35963 rm -f conftest.er1
35964 cat conftest.err >&5
a848cd7e
SC
35965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35966 (exit $ac_status); } &&
ea7db9ff
DE
35967 { ac_try='test -z "$ac_c_werror_flag"
35968 || test ! -s conftest.err'
ac1cb8d3
VS
35969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35970 (eval $ac_try) 2>&5
35971 ac_status=$?
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); }; } &&
35974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35976 (eval $ac_try) 2>&5
35977 ac_status=$?
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); }; }; then
35980 ac_cv_lib_unicows_main=yes
35981else
35982 echo "$as_me: failed program was:" >&5
35983sed 's/^/| /' conftest.$ac_ext >&5
35984
35985ac_cv_lib_unicows_main=no
35986fi
ac1cb8d3
VS
35987rm -f conftest.err conftest.$ac_objext \
35988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35989LIBS=$ac_check_lib_save_LIBS
35990fi
35991echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35992echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35993if test $ac_cv_lib_unicows_main = yes; then
35994
35995 cat >>confdefs.h <<\_ACEOF
35996#define wxUSE_UNICODE_MSLU 1
35997_ACEOF
35998
35999
36000else
36001
36002 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36003 Applications will only run on Windows NT/2000/XP!" >&5
36004echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36005 Applications will only run on Windows NT/2000/XP!" >&2;}
36006 wxUSE_UNICODE_MSLU=no
36007
36008fi
36009
36010 fi
36011fi
36012
36013if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36014 cat >>confdefs.h <<\_ACEOF
36015#define wxUSE_EXPERIMENTAL_PRINTF 1
36016_ACEOF
36017
36018fi
36019
36020
36021if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36022 cat >>confdefs.h <<\_ACEOF
36023#define wxUSE_POSTSCRIPT 1
36024_ACEOF
36025
36026fi
36027
36028cat >>confdefs.h <<\_ACEOF
36029#define wxUSE_AFM_FOR_POSTSCRIPT 1
36030_ACEOF
36031
36032
36033cat >>confdefs.h <<\_ACEOF
36034#define wxUSE_NORMALIZED_PS_FONTS 1
36035_ACEOF
36036
36037
36038
36039if test "$wxUSE_CONSTRAINTS" = "yes"; then
36040 cat >>confdefs.h <<\_ACEOF
36041#define wxUSE_CONSTRAINTS 1
36042_ACEOF
36043
36044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36045fi
36046
8a7b1113
VZ
36047if test "$wxUSE_MDI" = "yes"; then
36048 cat >>confdefs.h <<\_ACEOF
36049#define wxUSE_MDI 1
36050_ACEOF
36051
36052
36053 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36054 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36055#define wxUSE_MDI_ARCHITECTURE 1
36056_ACEOF
36057
8a7b1113
VZ
36058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36059 fi
a848cd7e
SC
36060fi
36061
36062if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36063 cat >>confdefs.h <<\_ACEOF
36064#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36065_ACEOF
36066
36067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36068 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36070 fi
36071fi
36072
36073if test "$wxUSE_HELP" = "yes"; then
36074 cat >>confdefs.h <<\_ACEOF
36075#define wxUSE_HELP 1
36076_ACEOF
36077
36078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36079
36080 if test "$wxUSE_MSW" = 1; then
36081 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36082 cat >>confdefs.h <<\_ACEOF
36083#define wxUSE_MS_HTML_HELP 1
36084_ACEOF
36085
36086 fi
36087 fi
36088
36089 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36090 if test "$wxUSE_HTML" = "yes"; then
36091 cat >>confdefs.h <<\_ACEOF
36092#define wxUSE_WXHTML_HELP 1
36093_ACEOF
36094
36095 else
36096 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36097echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36098 wxUSE_WXHTML_HELP=no
36099 fi
36100 fi
36101fi
36102
36103if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36104 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36105 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36106echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36107 else
36108 cat >>confdefs.h <<\_ACEOF
36109#define wxUSE_PRINTING_ARCHITECTURE 1
36110_ACEOF
36111
36112 fi
36113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36114fi
36115
36116if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36117 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36118echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36119 { (exit 1); exit 1; }; }
36120fi
36121
36122
36123if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36124 -o "$wxUSE_CLIPBOARD" = "yes" \
36125 -o "$wxUSE_OLE" = "yes" \
36126 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36127
36128for ac_header in ole2.h
36129do
36130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36131if eval "test \"\${$as_ac_Header+set}\" = set"; then
36132 echo "$as_me:$LINENO: checking for $ac_header" >&5
36133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36134if eval "test \"\${$as_ac_Header+set}\" = set"; then
36135 echo $ECHO_N "(cached) $ECHO_C" >&6
36136fi
36137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36139else
36140 # Is the header compilable?
36141echo "$as_me:$LINENO: checking $ac_header usability" >&5
36142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36143cat >conftest.$ac_ext <<_ACEOF
36144/* confdefs.h. */
36145_ACEOF
36146cat confdefs.h >>conftest.$ac_ext
36147cat >>conftest.$ac_ext <<_ACEOF
36148/* end confdefs.h. */
36149$ac_includes_default
36150#include <$ac_header>
36151_ACEOF
36152rm -f conftest.$ac_objext
36153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36154 (eval $ac_compile) 2>conftest.er1
a848cd7e 36155 ac_status=$?
ac1cb8d3
VS
36156 grep -v '^ *+' conftest.er1 >conftest.err
36157 rm -f conftest.er1
36158 cat conftest.err >&5
a848cd7e
SC
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); } &&
ea7db9ff
DE
36161 { ac_try='test -z "$ac_c_werror_flag"
36162 || test ! -s conftest.err'
ac1cb8d3
VS
36163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164 (eval $ac_try) 2>&5
36165 ac_status=$?
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); }; } &&
36168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36171 ac_status=$?
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; }; then
36174 ac_header_compiler=yes
36175else
36176 echo "$as_me: failed program was:" >&5
36177sed 's/^/| /' conftest.$ac_ext >&5
36178
36179ac_header_compiler=no
36180fi
ac1cb8d3 36181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36183echo "${ECHO_T}$ac_header_compiler" >&6
36184
36185# Is the header present?
36186echo "$as_me:$LINENO: checking $ac_header presence" >&5
36187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36188cat >conftest.$ac_ext <<_ACEOF
36189/* confdefs.h. */
36190_ACEOF
36191cat confdefs.h >>conftest.$ac_ext
36192cat >>conftest.$ac_ext <<_ACEOF
36193/* end confdefs.h. */
36194#include <$ac_header>
36195_ACEOF
36196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36198 ac_status=$?
36199 grep -v '^ *+' conftest.er1 >conftest.err
36200 rm -f conftest.er1
36201 cat conftest.err >&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); } >/dev/null; then
36204 if test -s conftest.err; then
36205 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36207 else
36208 ac_cpp_err=
36209 fi
36210else
36211 ac_cpp_err=yes
36212fi
36213if test -z "$ac_cpp_err"; then
36214 ac_header_preproc=yes
36215else
36216 echo "$as_me: failed program was:" >&5
36217sed 's/^/| /' conftest.$ac_ext >&5
36218
36219 ac_header_preproc=no
36220fi
36221rm -f conftest.err conftest.$ac_ext
36222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36223echo "${ECHO_T}$ac_header_preproc" >&6
36224
36225# So? What about this header?
ac1cb8d3
VS
36226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36227 yes:no: )
a848cd7e
SC
36228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36232 ac_header_preproc=yes
a848cd7e 36233 ;;
ac1cb8d3 36234 no:yes:* )
a848cd7e
SC
36235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36247 (
36248 cat <<\_ASBOX
ac1cb8d3
VS
36249## ----------------------------------------- ##
36250## Report this to wx-dev@lists.wxwidgets.org ##
36251## ----------------------------------------- ##
a848cd7e
SC
36252_ASBOX
36253 ) |
36254 sed "s/^/$as_me: WARNING: /" >&2
36255 ;;
36256esac
36257echo "$as_me:$LINENO: checking for $ac_header" >&5
36258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36259if eval "test \"\${$as_ac_Header+set}\" = set"; then
36260 echo $ECHO_N "(cached) $ECHO_C" >&6
36261else
ac1cb8d3 36262 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36263fi
36264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36266
36267fi
36268if test `eval echo '${'$as_ac_Header'}'` = yes; then
36269 cat >>confdefs.h <<_ACEOF
36270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36271_ACEOF
36272
36273fi
36274
36275done
36276
36277
36278 if test "$ac_cv_header_ole2_h" = "yes" ; then
36279 if test "$GCC" = yes ; then
36280
36281
36282 ac_ext=cc
36283ac_cpp='$CXXCPP $CPPFLAGS'
36284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36287
36288
36289 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36290echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36291 cat >conftest.$ac_ext <<_ACEOF
36292/* confdefs.h. */
36293_ACEOF
36294cat confdefs.h >>conftest.$ac_ext
36295cat >>conftest.$ac_ext <<_ACEOF
36296/* end confdefs.h. */
36297#include <windows.h>
36298 #include <ole2.h>
36299int
36300main ()
36301{
36302
36303 ;
36304 return 0;
36305}
36306_ACEOF
36307rm -f conftest.$ac_objext
36308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36309 (eval $ac_compile) 2>conftest.er1
a848cd7e 36310 ac_status=$?
ac1cb8d3
VS
36311 grep -v '^ *+' conftest.er1 >conftest.err
36312 rm -f conftest.er1
36313 cat conftest.err >&5
a848cd7e
SC
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); } &&
ea7db9ff
DE
36316 { ac_try='test -z "$ac_cxx_werror_flag"
36317 || test ! -s conftest.err'
ac1cb8d3
VS
36318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319 (eval $ac_try) 2>&5
36320 ac_status=$?
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); }; } &&
36323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36325 (eval $ac_try) 2>&5
36326 ac_status=$?
36327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328 (exit $ac_status); }; }; then
36329 echo "$as_me:$LINENO: result: no" >&5
36330echo "${ECHO_T}no" >&6
36331else
36332 echo "$as_me: failed program was:" >&5
36333sed 's/^/| /' conftest.$ac_ext >&5
36334
36335echo "$as_me:$LINENO: result: yes" >&5
36336echo "${ECHO_T}yes" >&6
36337 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36338fi
ac1cb8d3 36339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36340 ac_ext=c
36341ac_cpp='$CPP $CPPFLAGS'
36342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36344ac_compiler_gnu=$ac_cv_c_compiler_gnu
36345
36346 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36347 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36348 if test "$wxUSE_OLE" = "yes" ; then
36349 cat >>confdefs.h <<\_ACEOF
36350#define wxUSE_OLE 1
36351_ACEOF
36352
36353 fi
36354 fi
36355
36356 if test "$wxUSE_DATAOBJ" = "yes" ; then
36357 cat >>confdefs.h <<\_ACEOF
36358#define wxUSE_DATAOBJ 1
36359_ACEOF
36360
36361 fi
36362 else
36363 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36364echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36365
36366 wxUSE_CLIPBOARD=no
36367 wxUSE_DRAG_AND_DROP=no
36368 wxUSE_DATAOBJ=no
36369 wxUSE_OLE=no
36370 fi
36371
36372 if test "$wxUSE_METAFILE" = "yes"; then
36373 cat >>confdefs.h <<\_ACEOF
36374#define wxUSE_METAFILE 1
36375_ACEOF
36376
36377
36378 cat >>confdefs.h <<\_ACEOF
36379#define wxUSE_ENH_METAFILE 1
36380_ACEOF
36381
36382 fi
36383fi
36384
36385if test "$wxUSE_IPC" = "yes"; then
36386 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36387 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36388echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36389 fi
36390
36391 cat >>confdefs.h <<\_ACEOF
36392#define wxUSE_IPC 1
36393_ACEOF
36394
36395fi
36396
36397if test "$wxUSE_CLIPBOARD" = "yes"; then
36398 if test "$wxUSE_MGL" = 1; then
36399 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36400echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36401 wxUSE_CLIPBOARD=no
36402 fi
36403
36404 if test "$wxUSE_CLIPBOARD" = "yes"; then
36405 cat >>confdefs.h <<\_ACEOF
36406#define wxUSE_CLIPBOARD 1
36407_ACEOF
36408
36409
36410 cat >>confdefs.h <<\_ACEOF
36411#define wxUSE_DATAOBJ 1
36412_ACEOF
36413
36414 fi
36415fi
36416
36417if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36418 if test "$wxUSE_GTK" = 1; then
36419 if test "$WXGTK12" != 1; then
36420 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36421echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36422 wxUSE_DRAG_AND_DROP=no
36423 fi
36424 fi
36425
36426 if test "$wxUSE_MOTIF" = 1; then
36427 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36428echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36429 wxUSE_DRAG_AND_DROP=no
36430 fi
36431
36432 if test "$wxUSE_X11" = 1; then
36433 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36434echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36435 wxUSE_DRAG_AND_DROP=no
36436 fi
36437
36438 if test "$wxUSE_MGL" = 1; then
36439 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36440echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36441 wxUSE_DRAG_AND_DROP=no
36442 fi
36443
36444 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36445 cat >>confdefs.h <<\_ACEOF
36446#define wxUSE_DRAG_AND_DROP 1
36447_ACEOF
36448
36449 fi
36450
36451fi
36452
36453if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36455fi
36456
36457if test "$wxUSE_SPLINES" = "yes" ; then
36458 cat >>confdefs.h <<\_ACEOF
36459#define wxUSE_SPLINES 1
36460_ACEOF
36461
36462fi
36463
36464
36465USES_CONTROLS=0
36466if test "$wxUSE_CONTROLS" = "yes"; then
36467 USES_CONTROLS=1
36468fi
36469
36470if test "$wxUSE_ACCEL" = "yes"; then
36471 cat >>confdefs.h <<\_ACEOF
36472#define wxUSE_ACCEL 1
36473_ACEOF
36474
36475 USES_CONTROLS=1
36476fi
36477
36478if test "$wxUSE_BUTTON" = "yes"; then
36479 cat >>confdefs.h <<\_ACEOF
36480#define wxUSE_BUTTON 1
36481_ACEOF
36482
36483 USES_CONTROLS=1
36484fi
36485
36486if test "$wxUSE_BMPBUTTON" = "yes"; then
36487 cat >>confdefs.h <<\_ACEOF
36488#define wxUSE_BMPBUTTON 1
36489_ACEOF
36490
36491 USES_CONTROLS=1
36492fi
36493
36494if test "$wxUSE_CALCTRL" = "yes"; then
36495 cat >>confdefs.h <<\_ACEOF
36496#define wxUSE_CALENDARCTRL 1
36497_ACEOF
36498
36499 USES_CONTROLS=1
36500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36501fi
36502
36503if test "$wxUSE_CARET" = "yes"; then
36504 cat >>confdefs.h <<\_ACEOF
36505#define wxUSE_CARET 1
36506_ACEOF
36507
36508 USES_CONTROLS=1
36509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36510fi
36511
36512if test "$wxUSE_COMBOBOX" = "yes"; then
36513 cat >>confdefs.h <<\_ACEOF
36514#define wxUSE_COMBOBOX 1
36515_ACEOF
36516
36517 USES_CONTROLS=1
36518fi
36519
36520if test "$wxUSE_CHOICE" = "yes"; then
36521 cat >>confdefs.h <<\_ACEOF
36522#define wxUSE_CHOICE 1
36523_ACEOF
36524
36525 USES_CONTROLS=1
36526fi
36527
36528if test "$wxUSE_CHECKBOX" = "yes"; then
36529 cat >>confdefs.h <<\_ACEOF
36530#define wxUSE_CHECKBOX 1
36531_ACEOF
36532
36533 USES_CONTROLS=1
36534fi
36535
36536if test "$wxUSE_CHECKLST" = "yes"; then
36537 cat >>confdefs.h <<\_ACEOF
36538#define wxUSE_CHECKLISTBOX 1
36539_ACEOF
36540
36541 USES_CONTROLS=1
36542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36543fi
36544
36545if test "$wxUSE_DISPLAY" = "yes"; then
36546 cat >>confdefs.h <<\_ACEOF
36547#define wxUSE_DISPLAY 1
36548_ACEOF
36549
36550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36551fi
36552
36553if test "$wxUSE_GAUGE" = "yes"; then
36554 cat >>confdefs.h <<\_ACEOF
36555#define wxUSE_GAUGE 1
36556_ACEOF
36557
36558 USES_CONTROLS=1
36559fi
36560
36561if test "$wxUSE_GRID" = "yes"; then
36562 cat >>confdefs.h <<\_ACEOF
36563#define wxUSE_GRID 1
36564_ACEOF
36565
36566 USES_CONTROLS=1
36567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36568fi
36569
36570if test "$wxUSE_IMAGLIST" = "yes"; then
36571 cat >>confdefs.h <<\_ACEOF
36572#define wxUSE_IMAGLIST 1
36573_ACEOF
36574
36575fi
36576
36577if test "$wxUSE_LISTBOOK" = "yes"; then
36578 cat >>confdefs.h <<\_ACEOF
36579#define wxUSE_LISTBOOK 1
36580_ACEOF
36581
36582 USES_CONTROLS=1
36583fi
36584
36585if test "$wxUSE_LISTBOX" = "yes"; then
36586 cat >>confdefs.h <<\_ACEOF
36587#define wxUSE_LISTBOX 1
36588_ACEOF
36589
36590 USES_CONTROLS=1
36591fi
36592
36593if test "$wxUSE_LISTCTRL" = "yes"; then
36594 if test "$wxUSE_IMAGLIST" = "yes"; then
36595 cat >>confdefs.h <<\_ACEOF
36596#define wxUSE_LISTCTRL 1
36597_ACEOF
36598
36599 USES_CONTROLS=1
36600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36601 else
36602 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36603echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36604 fi
36605fi
36606
36607if test "$wxUSE_NOTEBOOK" = "yes"; then
36608 cat >>confdefs.h <<\_ACEOF
36609#define wxUSE_NOTEBOOK 1
36610_ACEOF
36611
36612 USES_CONTROLS=1
36613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36614fi
36615
36616
36617if test "$wxUSE_RADIOBOX" = "yes"; then
36618 cat >>confdefs.h <<\_ACEOF
36619#define wxUSE_RADIOBOX 1
36620_ACEOF
36621
36622 USES_CONTROLS=1
36623fi
36624
36625if test "$wxUSE_RADIOBTN" = "yes"; then
36626 cat >>confdefs.h <<\_ACEOF
36627#define wxUSE_RADIOBTN 1
36628_ACEOF
36629
36630 USES_CONTROLS=1
36631fi
36632
36633if test "$wxUSE_SASH" = "yes"; then
36634 cat >>confdefs.h <<\_ACEOF
36635#define wxUSE_SASH 1
36636_ACEOF
36637
36638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36639fi
36640
36641if test "$wxUSE_SCROLLBAR" = "yes"; then
36642 cat >>confdefs.h <<\_ACEOF
36643#define wxUSE_SCROLLBAR 1
36644_ACEOF
36645
36646 USES_CONTROLS=1
36647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36648fi
36649
36650if test "$wxUSE_SLIDER" = "yes"; then
36651 cat >>confdefs.h <<\_ACEOF
36652#define wxUSE_SLIDER 1
36653_ACEOF
36654
36655 USES_CONTROLS=1
36656fi
36657
36658if test "$wxUSE_SPINBTN" = "yes"; then
36659 cat >>confdefs.h <<\_ACEOF
36660#define wxUSE_SPINBTN 1
36661_ACEOF
36662
36663 USES_CONTROLS=1
36664fi
36665
36666if test "$wxUSE_SPINCTRL" = "yes"; then
36667 cat >>confdefs.h <<\_ACEOF
36668#define wxUSE_SPINCTRL 1
36669_ACEOF
36670
36671 USES_CONTROLS=1
36672fi
36673
36674if test "$wxUSE_SPLITTER" = "yes"; then
36675 cat >>confdefs.h <<\_ACEOF
36676#define wxUSE_SPLITTER 1
36677_ACEOF
36678
36679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36680fi
36681
36682if test "$wxUSE_STATBMP" = "yes"; then
36683 cat >>confdefs.h <<\_ACEOF
36684#define wxUSE_STATBMP 1
36685_ACEOF
36686
36687 USES_CONTROLS=1
36688fi
36689
36690if test "$wxUSE_STATBOX" = "yes"; then
36691 cat >>confdefs.h <<\_ACEOF
36692#define wxUSE_STATBOX 1
36693_ACEOF
36694
36695 USES_CONTROLS=1
36696fi
36697
36698if test "$wxUSE_STATTEXT" = "yes"; then
36699 cat >>confdefs.h <<\_ACEOF
36700#define wxUSE_STATTEXT 1
36701_ACEOF
36702
36703 USES_CONTROLS=1
36704fi
36705
36706if test "$wxUSE_STATLINE" = "yes"; then
36707 cat >>confdefs.h <<\_ACEOF
36708#define wxUSE_STATLINE 1
36709_ACEOF
36710
36711 USES_CONTROLS=1
36712fi
36713
36714if test "$wxUSE_STATUSBAR" = "yes"; then
36715 cat >>confdefs.h <<\_ACEOF
36716#define wxUSE_STATUSBAR 1
36717_ACEOF
36718
36719 USES_CONTROLS=1
36720
36721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36722fi
36723
36724if test "$wxUSE_TABDIALOG" = "yes"; then
36725 cat >>confdefs.h <<\_ACEOF
36726#define wxUSE_TAB_DIALOG 1
36727_ACEOF
36728
36729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36730fi
36731
36732if test "$wxUSE_TEXTCTRL" = "yes"; then
36733 cat >>confdefs.h <<\_ACEOF
36734#define wxUSE_TEXTCTRL 1
36735_ACEOF
36736
36737 USES_CONTROLS=1
36738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36739fi
36740
36741if test "$wxUSE_TOGGLEBTN" = "yes"; then
36742 if test "$wxUSE_COCOA" = 1 ; then
36743 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36744echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36745 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36746 else
36747 if test "$wxUSE_PM" = 1; then
36748 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36749echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36750 wxUSE_TOGGLEBTN=no
36751 fi
a848cd7e
SC
36752 fi
36753 if test "$wxUSE_UNIVERSAL" = "yes"; then
36754 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36755echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36756 wxUSE_TOGGLEBTN=no
36757 fi
36758
36759 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36760 cat >>confdefs.h <<\_ACEOF
36761#define wxUSE_TOGGLEBTN 1
36762_ACEOF
36763
36764 USES_CONTROLS=1
36765 fi
36766fi
36767
36768if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36769 cat >>confdefs.h <<\_ACEOF
36770#define wxUSE_TOOLBAR_SIMPLE 1
36771_ACEOF
36772
36773 wxUSE_TOOLBAR="yes"
36774 USES_CONTROLS=1
36775fi
36776
36777if test "$wxUSE_TOOLBAR" = "yes"; then
36778 cat >>confdefs.h <<\_ACEOF
36779#define wxUSE_TOOLBAR 1
36780_ACEOF
36781
36782 USES_CONTROLS=1
36783
36784 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36785 wxUSE_TOOLBAR_NATIVE="yes"
36786 fi
36787
36788 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36789 cat >>confdefs.h <<\_ACEOF
36790#define wxUSE_TOOLBAR_NATIVE 1
36791_ACEOF
36792
36793 USES_CONTROLS=1
36794 fi
36795
36796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36797fi
36798
36799if test "$wxUSE_TOOLTIPS" = "yes"; then
36800 if test "$wxUSE_MOTIF" = 1; then
36801 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36802echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36803 else
36804 if test "$wxUSE_UNIVERSAL" = "yes"; then
36805 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36806echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36807 else
36808 cat >>confdefs.h <<\_ACEOF
36809#define wxUSE_TOOLTIPS 1
36810_ACEOF
36811
36812 fi
36813 fi
36814fi
36815
36816if test "$wxUSE_TREECTRL" = "yes"; then
36817 if test "$wxUSE_IMAGLIST" = "yes"; then
36818 cat >>confdefs.h <<\_ACEOF
36819#define wxUSE_TREECTRL 1
36820_ACEOF
36821
36822 USES_CONTROLS=1
36823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36824 else
36825 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36826echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36827 fi
36828fi
36829
36830if test "$wxUSE_POPUPWIN" = "yes"; then
36831 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36832 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36833echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36834 else
36835 if test "$wxUSE_PM" = 1; then
36836 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36837echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36838 else
36839 cat >>confdefs.h <<\_ACEOF
36840#define wxUSE_POPUPWIN 1
36841_ACEOF
36842
36843
36844 USES_CONTROLS=1
36845 fi
36846 fi
36847fi
36848
36849if test "$wxUSE_TIPWINDOW" = "yes"; then
36850 if test "$wxUSE_PM" = 1; then
36851 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36852echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36853 else
36854 cat >>confdefs.h <<\_ACEOF
36855#define wxUSE_TIPWINDOW 1
36856_ACEOF
36857
36858 fi
36859fi
36860
36861if test "$USES_CONTROLS" = 1; then
36862 cat >>confdefs.h <<\_ACEOF
36863#define wxUSE_CONTROLS 1
36864_ACEOF
36865
36866fi
36867
36868
36869if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36870 cat >>confdefs.h <<\_ACEOF
36871#define wxUSE_ACCESSIBILITY 1
36872_ACEOF
36873
36874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36875fi
36876
36877if test "$wxUSE_DRAGIMAGE" = "yes"; then
36878 cat >>confdefs.h <<\_ACEOF
36879#define wxUSE_DRAGIMAGE 1
36880_ACEOF
36881
36882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36883fi
36884
36885if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36886 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36887 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36888echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36889 else
36890 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36891#define wxUSE_EXCEPTIONS 1
36892_ACEOF
36893
07bea8f0
VS
36894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36895 fi
a848cd7e
SC
36896fi
36897
36898USE_HTML=0
36899if test "$wxUSE_HTML" = "yes"; then
36900 cat >>confdefs.h <<\_ACEOF
36901#define wxUSE_HTML 1
36902_ACEOF
36903
36904 USE_HTML=1
36905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36906 if test "$wxUSE_MAC" = 1; then
36907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36908 fi
a848cd7e 36909fi
646b6ec1 36910if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36911 if test "$wxUSE_MAC" = 1; then
36912 old_CPPFLAGS="$CPPFLAGS"
36913 CPPFLAGS="$CPPFLAGS -x objective-c++"
36914 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36915echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36916if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36917 echo $ECHO_N "(cached) $ECHO_C" >&6
36918else
36919 cat >conftest.$ac_ext <<_ACEOF
36920/* confdefs.h. */
36921_ACEOF
36922cat confdefs.h >>conftest.$ac_ext
36923cat >>conftest.$ac_ext <<_ACEOF
36924/* end confdefs.h. */
36925#include <Carbon/Carbon.h>
36926
36927#include <WebKit/HIWebView.h>
36928_ACEOF
36929rm -f conftest.$ac_objext
36930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36931 (eval $ac_compile) 2>conftest.er1
36932 ac_status=$?
36933 grep -v '^ *+' conftest.er1 >conftest.err
36934 rm -f conftest.er1
36935 cat conftest.err >&5
36936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); } &&
ea7db9ff
DE
36938 { ac_try='test -z "$ac_c_werror_flag"
36939 || test ! -s conftest.err'
07bea8f0
VS
36940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941 (eval $ac_try) 2>&5
36942 ac_status=$?
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); }; } &&
36945 { ac_try='test -s conftest.$ac_objext'
36946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36947 (eval $ac_try) 2>&5
36948 ac_status=$?
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); }; }; then
36951 ac_cv_header_WebKit_HIWebView_h=yes
36952else
36953 echo "$as_me: failed program was:" >&5
36954sed 's/^/| /' conftest.$ac_ext >&5
36955
36956ac_cv_header_WebKit_HIWebView_h=no
36957fi
36958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36959fi
36960echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36961echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36962if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36963
36964 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36965#define wxUSE_WEBKIT 1
36966_ACEOF
36967
07bea8f0
VS
36968 WEBKIT_LINK="-framework WebKit"
36969
36970else
36971
36972 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36973echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36974 wxUSE_WEBKIT=no
36975
646b6ec1
VS
36976fi
36977
07bea8f0
VS
36978
36979 CPPFLAGS="$old_CPPFLAGS"
36980 elif test "$wxUSE_COCOA" = 1; then
36981 cat >>confdefs.h <<\_ACEOF
36982#define wxUSE_WEBKIT 1
36983_ACEOF
36984
36985 else
36986 wxUSE_WEBKIT=no
36987 fi
36988fi
36989
36990
a848cd7e
SC
36991if test "$wxUSE_MENUS" = "yes"; then
36992 cat >>confdefs.h <<\_ACEOF
36993#define wxUSE_MENUS 1
36994_ACEOF
36995
36996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36997fi
36998
36999if test "$wxUSE_METAFILE" = "yes"; then
37000 cat >>confdefs.h <<\_ACEOF
37001#define wxUSE_METAFILE 1
37002_ACEOF
37003
37004fi
37005
37006if test "$wxUSE_MIMETYPE" = "yes"; then
37007 cat >>confdefs.h <<\_ACEOF
37008#define wxUSE_MIMETYPE 1
37009_ACEOF
37010
37011fi
37012
37013if test "$wxUSE_MINIFRAME" = "yes"; then
37014 cat >>confdefs.h <<\_ACEOF
37015#define wxUSE_MINIFRAME 1
37016_ACEOF
37017
37018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37019fi
37020
37021if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37022 cat >>confdefs.h <<\_ACEOF
37023#define wxUSE_SYSTEM_OPTIONS 1
37024_ACEOF
37025
37026 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37027 "$TOOLKIT" = "MOTIF"; then
37028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37029 fi
37030fi
37031
37032
37033if test "$wxUSE_VALIDATORS" = "yes"; then
37034 cat >>confdefs.h <<\_ACEOF
37035#define wxUSE_VALIDATORS 1
37036_ACEOF
37037
37038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37039fi
37040
37041if test "$wxUSE_PALETTE" = "yes" ; then
37042 cat >>confdefs.h <<\_ACEOF
37043#define wxUSE_PALETTE 1
37044_ACEOF
37045
37046fi
37047
37048if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37049 LIBS=" -lunicows $LIBS"
37050fi
37051
37052
37053if test "$wxUSE_IMAGE" = "yes" ; then
37054 cat >>confdefs.h <<\_ACEOF
37055#define wxUSE_IMAGE 1
37056_ACEOF
37057
37058
37059 if test "$wxUSE_GIF" = "yes" ; then
37060 cat >>confdefs.h <<\_ACEOF
37061#define wxUSE_GIF 1
37062_ACEOF
37063
37064 fi
37065
37066 if test "$wxUSE_PCX" = "yes" ; then
37067 cat >>confdefs.h <<\_ACEOF
37068#define wxUSE_PCX 1
37069_ACEOF
37070
37071 fi
37072
37073 if test "$wxUSE_IFF" = "yes" ; then
37074 cat >>confdefs.h <<\_ACEOF
37075#define wxUSE_IFF 1
37076_ACEOF
37077
37078 fi
37079
37080 if test "$wxUSE_PNM" = "yes" ; then
37081 cat >>confdefs.h <<\_ACEOF
37082#define wxUSE_PNM 1
37083_ACEOF
37084
37085 fi
37086
37087 if test "$wxUSE_XPM" = "yes" ; then
37088 cat >>confdefs.h <<\_ACEOF
37089#define wxUSE_XPM 1
37090_ACEOF
37091
37092 fi
37093
37094 if test "$wxUSE_ICO_CUR" = "yes" ; then
37095 cat >>confdefs.h <<\_ACEOF
37096#define wxUSE_ICO_CUR 1
37097_ACEOF
37098
37099 fi
37100fi
37101
37102
37103if test "$wxUSE_CHOICEDLG" = "yes"; then
37104 cat >>confdefs.h <<\_ACEOF
37105#define wxUSE_CHOICEDLG 1
37106_ACEOF
37107
37108fi
37109
37110if test "$wxUSE_COLOURDLG" = "yes"; then
37111 cat >>confdefs.h <<\_ACEOF
37112#define wxUSE_COLOURDLG 1
37113_ACEOF
37114
37115fi
37116
37117if test "$wxUSE_FILEDLG" = "yes"; then
37118 cat >>confdefs.h <<\_ACEOF
37119#define wxUSE_FILEDLG 1
37120_ACEOF
37121
37122fi
37123
37124if test "$wxUSE_FINDREPLDLG" = "yes"; then
37125 cat >>confdefs.h <<\_ACEOF
37126#define wxUSE_FINDREPLDLG 1
37127_ACEOF
37128
37129fi
37130
37131if test "$wxUSE_FONTDLG" = "yes"; then
37132 cat >>confdefs.h <<\_ACEOF
37133#define wxUSE_FONTDLG 1
37134_ACEOF
37135
37136fi
37137
37138if test "$wxUSE_DIRDLG" = "yes"; then
37139 if test "$wxUSE_TREECTRL" != "yes"; then
37140 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37141echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37142 else
37143 cat >>confdefs.h <<\_ACEOF
37144#define wxUSE_DIRDLG 1
37145_ACEOF
37146
37147 fi
37148fi
37149
37150if test "$wxUSE_MSGDLG" = "yes"; then
37151 cat >>confdefs.h <<\_ACEOF
37152#define wxUSE_MSGDLG 1
37153_ACEOF
37154
37155fi
37156
37157if test "$wxUSE_NUMBERDLG" = "yes"; then
37158 cat >>confdefs.h <<\_ACEOF
37159#define wxUSE_NUMBERDLG 1
37160_ACEOF
37161
37162fi
37163
37164if test "$wxUSE_PROGRESSDLG" = "yes"; then
37165 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37166 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37167echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37168 else
37169 cat >>confdefs.h <<\_ACEOF
37170#define wxUSE_PROGRESSDLG 1
37171_ACEOF
37172
37173 fi
37174fi
37175
37176if test "$wxUSE_SPLASH" = "yes"; then
37177 cat >>confdefs.h <<\_ACEOF
37178#define wxUSE_SPLASH 1
37179_ACEOF
37180
2057db16 37181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37182fi
37183
37184if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37185 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37186 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37187echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37188 else
37189 cat >>confdefs.h <<\_ACEOF
37190#define wxUSE_STARTUP_TIPS 1
37191_ACEOF
37192
37193 fi
37194fi
37195
37196if test "$wxUSE_TEXTDLG" = "yes"; then
37197 cat >>confdefs.h <<\_ACEOF
37198#define wxUSE_TEXTDLG 1
37199_ACEOF
37200
37201fi
37202
37203if test "$wxUSE_WIZARDDLG" = "yes"; then
37204 cat >>confdefs.h <<\_ACEOF
37205#define wxUSE_WIZARDDLG 1
37206_ACEOF
37207
37208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37209fi
37210
37211
37212if test "$cross_compiling" = "yes"; then
37213 OSINFO="\"$host\""
37214else
37215 OSINFO=`uname -s -r -m`
37216 OSINFO="\"$OSINFO\""
37217fi
37218
37219cat >>confdefs.h <<_ACEOF
37220#define WXWIN_OS_DESCRIPTION $OSINFO
37221_ACEOF
37222
37223
37224
37225if test "x$prefix" != "xNONE"; then
37226 wxPREFIX=$prefix
37227else
37228 wxPREFIX=$ac_default_prefix
37229fi
37230
37231cat >>confdefs.h <<_ACEOF
37232#define wxINSTALL_PREFIX "$wxPREFIX"
37233_ACEOF
37234
37235
37236top_builddir_wxconfig=`pwd`
37237
37238
37239
37240CORE_BASE_LIBS="net base"
37241CORE_GUI_LIBS="adv core"
37242
37243if test "$wxUSE_XML" = "yes" ; then
37244 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37245fi
37246if test "$wxUSE_ODBC" != "no" ; then
37247 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37248 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37249fi
37250if test "$wxUSE_HTML" = "yes" ; then
37251 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37252fi
37253
37254if test "$wxUSE_GUI" != "yes"; then
37255 CORE_GUI_LIBS=""
37256fi
37257
37258
37259
37260
37261
37262
37263
37264
37265if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37266 if test "$wxUSE_SOUND" = "yes"; then
37267 LDFLAGS="$LDFLAGS -framework QuickTime"
37268 fi
37269 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37270fi
37271if test "$wxUSE_COCOA" = 1 ; then
37272 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37273fi
37274
37275
37276LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37277
37278have_cos=0
37279have_floor=0
37280
37281for ac_func in cos
37282do
37283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37284echo "$as_me:$LINENO: checking for $ac_func" >&5
37285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37286if eval "test \"\${$as_ac_var+set}\" = set"; then
37287 echo $ECHO_N "(cached) $ECHO_C" >&6
37288else
37289 cat >conftest.$ac_ext <<_ACEOF
37290/* confdefs.h. */
37291_ACEOF
37292cat confdefs.h >>conftest.$ac_ext
37293cat >>conftest.$ac_ext <<_ACEOF
37294/* end confdefs.h. */
ac1cb8d3
VS
37295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37297#define $ac_func innocuous_$ac_func
37298
a848cd7e
SC
37299/* System header to define __stub macros and hopefully few prototypes,
37300 which can conflict with char $ac_func (); below.
37301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37302 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37303
a848cd7e
SC
37304#ifdef __STDC__
37305# include <limits.h>
37306#else
37307# include <assert.h>
37308#endif
ac1cb8d3
VS
37309
37310#undef $ac_func
37311
a848cd7e
SC
37312/* Override any gcc2 internal prototype to avoid an error. */
37313#ifdef __cplusplus
37314extern "C"
37315{
37316#endif
37317/* We use char because int might match the return type of a gcc2
37318 builtin and then its argument prototype would still apply. */
37319char $ac_func ();
37320/* The GNU C library defines this for functions which it implements
37321 to always fail with ENOSYS. Some functions are actually named
37322 something starting with __ and the normal name is an alias. */
37323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37324choke me
37325#else
37326char (*f) () = $ac_func;
37327#endif
37328#ifdef __cplusplus
37329}
37330#endif
37331
37332int
37333main ()
37334{
37335return f != $ac_func;
37336 ;
37337 return 0;
37338}
37339_ACEOF
37340rm -f conftest.$ac_objext conftest$ac_exeext
37341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37342 (eval $ac_link) 2>conftest.er1
a848cd7e 37343 ac_status=$?
ac1cb8d3
VS
37344 grep -v '^ *+' conftest.er1 >conftest.err
37345 rm -f conftest.er1
37346 cat conftest.err >&5
a848cd7e
SC
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } &&
ea7db9ff
DE
37349 { ac_try='test -z "$ac_c_werror_flag"
37350 || test ! -s conftest.err'
ac1cb8d3
VS
37351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352 (eval $ac_try) 2>&5
37353 ac_status=$?
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); }; } &&
37356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358 (eval $ac_try) 2>&5
37359 ac_status=$?
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); }; }; then
37362 eval "$as_ac_var=yes"
37363else
37364 echo "$as_me: failed program was:" >&5
37365sed 's/^/| /' conftest.$ac_ext >&5
37366
37367eval "$as_ac_var=no"
37368fi
ac1cb8d3
VS
37369rm -f conftest.err conftest.$ac_objext \
37370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37371fi
37372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37374if test `eval echo '${'$as_ac_var'}'` = yes; then
37375 cat >>confdefs.h <<_ACEOF
37376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37377_ACEOF
37378 have_cos=1
37379fi
37380done
37381
37382
37383for ac_func in floor
37384do
37385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37386echo "$as_me:$LINENO: checking for $ac_func" >&5
37387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37388if eval "test \"\${$as_ac_var+set}\" = set"; then
37389 echo $ECHO_N "(cached) $ECHO_C" >&6
37390else
37391 cat >conftest.$ac_ext <<_ACEOF
37392/* confdefs.h. */
37393_ACEOF
37394cat confdefs.h >>conftest.$ac_ext
37395cat >>conftest.$ac_ext <<_ACEOF
37396/* end confdefs.h. */
ac1cb8d3
VS
37397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37399#define $ac_func innocuous_$ac_func
37400
a848cd7e
SC
37401/* System header to define __stub macros and hopefully few prototypes,
37402 which can conflict with char $ac_func (); below.
37403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37404 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37405
a848cd7e
SC
37406#ifdef __STDC__
37407# include <limits.h>
37408#else
37409# include <assert.h>
37410#endif
ac1cb8d3
VS
37411
37412#undef $ac_func
37413
a848cd7e
SC
37414/* Override any gcc2 internal prototype to avoid an error. */
37415#ifdef __cplusplus
37416extern "C"
37417{
37418#endif
37419/* We use char because int might match the return type of a gcc2
37420 builtin and then its argument prototype would still apply. */
37421char $ac_func ();
37422/* The GNU C library defines this for functions which it implements
37423 to always fail with ENOSYS. Some functions are actually named
37424 something starting with __ and the normal name is an alias. */
37425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37426choke me
37427#else
37428char (*f) () = $ac_func;
37429#endif
37430#ifdef __cplusplus
37431}
37432#endif
37433
37434int
37435main ()
37436{
37437return f != $ac_func;
37438 ;
37439 return 0;
37440}
37441_ACEOF
37442rm -f conftest.$ac_objext conftest$ac_exeext
37443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37444 (eval $ac_link) 2>conftest.er1
a848cd7e 37445 ac_status=$?
ac1cb8d3
VS
37446 grep -v '^ *+' conftest.er1 >conftest.err
37447 rm -f conftest.er1
37448 cat conftest.err >&5
a848cd7e
SC
37449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450 (exit $ac_status); } &&
ea7db9ff
DE
37451 { ac_try='test -z "$ac_c_werror_flag"
37452 || test ! -s conftest.err'
ac1cb8d3
VS
37453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454 (eval $ac_try) 2>&5
37455 ac_status=$?
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); }; } &&
37458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37460 (eval $ac_try) 2>&5
37461 ac_status=$?
37462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463 (exit $ac_status); }; }; then
37464 eval "$as_ac_var=yes"
37465else
37466 echo "$as_me: failed program was:" >&5
37467sed 's/^/| /' conftest.$ac_ext >&5
37468
37469eval "$as_ac_var=no"
37470fi
ac1cb8d3
VS
37471rm -f conftest.err conftest.$ac_objext \
37472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37473fi
37474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37476if test `eval echo '${'$as_ac_var'}'` = yes; then
37477 cat >>confdefs.h <<_ACEOF
37478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37479_ACEOF
37480 have_floor=1
37481fi
37482done
37483
37484echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37485echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37486if test "$have_cos" = 1 -a "$have_floor" = 1; then
37487 echo "$as_me:$LINENO: result: yes" >&5
37488echo "${ECHO_T}yes" >&6
37489else
37490 echo "$as_me:$LINENO: result: no" >&5
37491echo "${ECHO_T}no" >&6
37492 LIBS="$LIBS -lm"
37493 # use different functions to avoid configure caching
37494 have_sin=0
37495 have_ceil=0
37496
37497for ac_func in sin
37498do
37499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37500echo "$as_me:$LINENO: checking for $ac_func" >&5
37501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37502if eval "test \"\${$as_ac_var+set}\" = set"; then
37503 echo $ECHO_N "(cached) $ECHO_C" >&6
37504else
37505 cat >conftest.$ac_ext <<_ACEOF
37506/* confdefs.h. */
37507_ACEOF
37508cat confdefs.h >>conftest.$ac_ext
37509cat >>conftest.$ac_ext <<_ACEOF
37510/* end confdefs.h. */
ac1cb8d3
VS
37511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37513#define $ac_func innocuous_$ac_func
37514
a848cd7e
SC
37515/* System header to define __stub macros and hopefully few prototypes,
37516 which can conflict with char $ac_func (); below.
37517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37518 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37519
a848cd7e
SC
37520#ifdef __STDC__
37521# include <limits.h>
37522#else
37523# include <assert.h>
37524#endif
ac1cb8d3
VS
37525
37526#undef $ac_func
37527
a848cd7e
SC
37528/* Override any gcc2 internal prototype to avoid an error. */
37529#ifdef __cplusplus
37530extern "C"
37531{
37532#endif
37533/* We use char because int might match the return type of a gcc2
37534 builtin and then its argument prototype would still apply. */
37535char $ac_func ();
37536/* The GNU C library defines this for functions which it implements
37537 to always fail with ENOSYS. Some functions are actually named
37538 something starting with __ and the normal name is an alias. */
37539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37540choke me
37541#else
37542char (*f) () = $ac_func;
37543#endif
37544#ifdef __cplusplus
37545}
37546#endif
37547
37548int
37549main ()
37550{
37551return f != $ac_func;
37552 ;
37553 return 0;
37554}
37555_ACEOF
37556rm -f conftest.$ac_objext conftest$ac_exeext
37557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37558 (eval $ac_link) 2>conftest.er1
a848cd7e 37559 ac_status=$?
ac1cb8d3
VS
37560 grep -v '^ *+' conftest.er1 >conftest.err
37561 rm -f conftest.er1
37562 cat conftest.err >&5
a848cd7e
SC
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); } &&
ea7db9ff
DE
37565 { ac_try='test -z "$ac_c_werror_flag"
37566 || test ! -s conftest.err'
ac1cb8d3
VS
37567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37568 (eval $ac_try) 2>&5
37569 ac_status=$?
37570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; } &&
37572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37574 (eval $ac_try) 2>&5
37575 ac_status=$?
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); }; }; then
37578 eval "$as_ac_var=yes"
37579else
37580 echo "$as_me: failed program was:" >&5
37581sed 's/^/| /' conftest.$ac_ext >&5
37582
37583eval "$as_ac_var=no"
37584fi
ac1cb8d3
VS
37585rm -f conftest.err conftest.$ac_objext \
37586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37587fi
37588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37590if test `eval echo '${'$as_ac_var'}'` = yes; then
37591 cat >>confdefs.h <<_ACEOF
37592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37593_ACEOF
37594 have_sin=1
37595fi
37596done
37597
37598
37599for ac_func in ceil
37600do
37601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37602echo "$as_me:$LINENO: checking for $ac_func" >&5
37603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37604if eval "test \"\${$as_ac_var+set}\" = set"; then
37605 echo $ECHO_N "(cached) $ECHO_C" >&6
37606else
37607 cat >conftest.$ac_ext <<_ACEOF
37608/* confdefs.h. */
37609_ACEOF
37610cat confdefs.h >>conftest.$ac_ext
37611cat >>conftest.$ac_ext <<_ACEOF
37612/* end confdefs.h. */
ac1cb8d3
VS
37613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37615#define $ac_func innocuous_$ac_func
37616
a848cd7e
SC
37617/* System header to define __stub macros and hopefully few prototypes,
37618 which can conflict with char $ac_func (); below.
37619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37621
a848cd7e
SC
37622#ifdef __STDC__
37623# include <limits.h>
37624#else
37625# include <assert.h>
37626#endif
ac1cb8d3
VS
37627
37628#undef $ac_func
37629
a848cd7e
SC
37630/* Override any gcc2 internal prototype to avoid an error. */
37631#ifdef __cplusplus
37632extern "C"
37633{
37634#endif
37635/* We use char because int might match the return type of a gcc2
37636 builtin and then its argument prototype would still apply. */
37637char $ac_func ();
37638/* The GNU C library defines this for functions which it implements
37639 to always fail with ENOSYS. Some functions are actually named
37640 something starting with __ and the normal name is an alias. */
37641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37642choke me
37643#else
37644char (*f) () = $ac_func;
37645#endif
37646#ifdef __cplusplus
37647}
37648#endif
37649
37650int
37651main ()
37652{
37653return f != $ac_func;
37654 ;
37655 return 0;
37656}
37657_ACEOF
37658rm -f conftest.$ac_objext conftest$ac_exeext
37659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37660 (eval $ac_link) 2>conftest.er1
a848cd7e 37661 ac_status=$?
ac1cb8d3
VS
37662 grep -v '^ *+' conftest.er1 >conftest.err
37663 rm -f conftest.er1
37664 cat conftest.err >&5
a848cd7e
SC
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); } &&
ea7db9ff
DE
37667 { ac_try='test -z "$ac_c_werror_flag"
37668 || test ! -s conftest.err'
ac1cb8d3
VS
37669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37670 (eval $ac_try) 2>&5
37671 ac_status=$?
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); }; } &&
37674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37677 ac_status=$?
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; }; then
37680 eval "$as_ac_var=yes"
37681else
37682 echo "$as_me: failed program was:" >&5
37683sed 's/^/| /' conftest.$ac_ext >&5
37684
37685eval "$as_ac_var=no"
37686fi
ac1cb8d3
VS
37687rm -f conftest.err conftest.$ac_objext \
37688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37689fi
37690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37692if test `eval echo '${'$as_ac_var'}'` = yes; then
37693 cat >>confdefs.h <<_ACEOF
37694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37695_ACEOF
37696 have_ceil=1
37697fi
37698done
37699
37700 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37701echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37702 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37703 echo "$as_me:$LINENO: result: yes" >&5
37704echo "${ECHO_T}yes" >&6
37705 else
37706 echo "$as_me:$LINENO: result: no" >&5
37707echo "${ECHO_T}no" >&6
37708 # not sure we should warn the user, crash, etc.
37709 fi
37710fi
37711
37712if test "$wxUSE_GUI" = "yes"; then
37713
37714
37715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37716 drawing dynamic erase event exec font image \
37717 minimal propsize rotate shaped widgets render"
37718
37719 if test "$wxUSE_MONOLITHIC" != "yes"; then
37720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37721 fi
37722else
37723 SAMPLES_SUBDIRS="console"
37724fi
37725
37726
37727INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37728-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37729
37730if test "$GXX" = yes ; then
37731 CXXWARNINGS="-Wall"
37732 fi
37733
37734EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37735
37736CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37737CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37738CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37739
37740
37741LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37742EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37743EXTRALIBS_XML="$EXPAT_LINK"
37744EXTRALIBS_HTML="$MSPACK_LINK"
37745EXTRALIBS_ODBC="$ODBC_LINK"
37746if test "$wxUSE_GUI" = "yes"; then
07bea8f0 37747 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK | sed 's/ \+/ /g'`
a848cd7e
SC
37748fi
37749if test "$wxUSE_OPENGL" = "yes"; then
37750 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37751fi
37752
37753LDFLAGS="$LDFLAGS $PROFILE"
37754
37755if test "$wxUSE_GTK" = 1; then
37756 WXCONFIG_INCLUDE=
37757else
37758 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37759fi
37760
37761WXCONFIG_EXTRALIBS="$LIBS"
37762
37763if test "$wxUSE_REGEX" = "builtin" ; then
37764 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37765fi
37766if test "$wxUSE_EXPAT" = "builtin" ; then
37767 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37768fi
37769if test "$wxUSE_ODBC" = "builtin" ; then
37770 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37771fi
37772if test "$wxUSE_LIBTIFF" = "builtin" ; then
37773 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37774fi
37775if test "$wxUSE_LIBJPEG" = "builtin" ; then
37776 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37777fi
37778if test "$wxUSE_LIBPNG" = "builtin" ; then
37779 wxconfig_3rdparty="$wxconfig_3rdparty png"
37780fi
37781if test "$wxUSE_ZLIB" = "builtin" ; then
37782 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37783fi
37784if test "$wxUSE_ODBC" = "builtin" ; then
37785 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37786fi
37787
37788for i in $wxconfig_3rdparty ; do
37789 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37790done
37791
37792
37793if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37794 WXUNIV=1
37795else
37796 WXUNIV=0
37797fi
37798
37799
37800
37801
37802
37803
37804
37805
37806
37807if test $wxUSE_MONOLITHIC = "yes" ; then
37808 MONOLITHIC=1
37809else
37810 MONOLITHIC=0
37811fi
37812
37813if test $wxUSE_PLUGINS = "yes" ; then
37814 USE_PLUGINS=1
37815else
37816 USE_PLUGINS=0
37817fi
37818
37819if test $wxUSE_ODBC != "no" ; then
37820 USE_ODBC=1
37821else
37822 USE_ODBC=0
37823fi
37824
37825if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37826 OFFICIAL_BUILD=1
37827else
37828 OFFICIAL_BUILD=0
37829fi
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849
37850
37851TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861 if test "x$BAKEFILE_HOST" = "x"; then
37862 BAKEFILE_HOST="${host}"
37863 fi
37864
37865 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37866
37867 if test -n "$ac_tool_prefix"; then
37868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37869set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37870echo "$as_me:$LINENO: checking for $ac_word" >&5
37871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37872if test "${ac_cv_prog_RANLIB+set}" = set; then
37873 echo $ECHO_N "(cached) $ECHO_C" >&6
37874else
37875 if test -n "$RANLIB"; then
37876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37877else
37878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37879for as_dir in $PATH
37880do
37881 IFS=$as_save_IFS
37882 test -z "$as_dir" && as_dir=.
37883 for ac_exec_ext in '' $ac_executable_extensions; do
37884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37887 break 2
37888 fi
37889done
37890done
37891
37892fi
37893fi
37894RANLIB=$ac_cv_prog_RANLIB
37895if test -n "$RANLIB"; then
37896 echo "$as_me:$LINENO: result: $RANLIB" >&5
37897echo "${ECHO_T}$RANLIB" >&6
37898else
37899 echo "$as_me:$LINENO: result: no" >&5
37900echo "${ECHO_T}no" >&6
37901fi
37902
37903fi
37904if test -z "$ac_cv_prog_RANLIB"; then
37905 ac_ct_RANLIB=$RANLIB
37906 # Extract the first word of "ranlib", so it can be a program name with args.
37907set dummy ranlib; ac_word=$2
37908echo "$as_me:$LINENO: checking for $ac_word" >&5
37909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37910if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37911 echo $ECHO_N "(cached) $ECHO_C" >&6
37912else
37913 if test -n "$ac_ct_RANLIB"; then
37914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37915else
37916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37917for as_dir in $PATH
37918do
37919 IFS=$as_save_IFS
37920 test -z "$as_dir" && as_dir=.
37921 for ac_exec_ext in '' $ac_executable_extensions; do
37922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37923 ac_cv_prog_ac_ct_RANLIB="ranlib"
37924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37925 break 2
37926 fi
37927done
37928done
37929
37930 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37931fi
37932fi
37933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37934if test -n "$ac_ct_RANLIB"; then
37935 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37936echo "${ECHO_T}$ac_ct_RANLIB" >&6
37937else
37938 echo "$as_me:$LINENO: result: no" >&5
37939echo "${ECHO_T}no" >&6
37940fi
37941
37942 RANLIB=$ac_ct_RANLIB
37943else
37944 RANLIB="$ac_cv_prog_RANLIB"
37945fi
37946
37947 # Find a good install program. We prefer a C program (faster),
37948# so one script is as good as another. But avoid the broken or
37949# incompatible versions:
37950# SysV /etc/install, /usr/sbin/install
37951# SunOS /usr/etc/install
37952# IRIX /sbin/install
37953# AIX /bin/install
37954# AmigaOS /C/install, which installs bootblocks on floppy discs
37955# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37956# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37957# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37958# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37959# ./install, which can be erroneously created by make from ./install.sh.
37960echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37961echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37962if test -z "$INSTALL"; then
37963if test "${ac_cv_path_install+set}" = set; then
37964 echo $ECHO_N "(cached) $ECHO_C" >&6
37965else
37966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37967for as_dir in $PATH
37968do
37969 IFS=$as_save_IFS
37970 test -z "$as_dir" && as_dir=.
37971 # Account for people who put trailing slashes in PATH elements.
37972case $as_dir/ in
37973 ./ | .// | /cC/* | \
37974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37975 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37976 /usr/ucb/* ) ;;
37977 *)
37978 # OSF1 and SCO ODT 3.0 have their own names for install.
37979 # Don't use installbsd from OSF since it installs stuff as root
37980 # by default.
37981 for ac_prog in ginstall scoinst install; do
37982 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37983 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37984 if test $ac_prog = install &&
37985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37986 # AIX install. It has an incompatible calling convention.
37987 :
37988 elif test $ac_prog = install &&
37989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37990 # program-specific install script used by HP pwplus--don't use.
37991 :
37992 else
37993 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37994 break 3
37995 fi
37996 fi
a848cd7e
SC
37997 done
37998 done
37999 ;;
38000esac
38001done
38002
38003
38004fi
38005 if test "${ac_cv_path_install+set}" = set; then
38006 INSTALL=$ac_cv_path_install
38007 else
38008 # As a last resort, use the slow shell script. We don't cache a
38009 # path for INSTALL within a source directory, because that will
38010 # break other packages using the cache if that directory is
38011 # removed, or if the path is relative.
38012 INSTALL=$ac_install_sh
38013 fi
38014fi
38015echo "$as_me:$LINENO: result: $INSTALL" >&5
38016echo "${ECHO_T}$INSTALL" >&6
38017
38018# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38019# It thinks the first close brace ends the variable substitution.
38020test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38021
38022test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38023
38024test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38025
38026 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38027echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38028LN_S=$as_ln_s
38029if test "$LN_S" = "ln -s"; then
38030 echo "$as_me:$LINENO: result: yes" >&5
38031echo "${ECHO_T}yes" >&6
38032else
38033 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38034echo "${ECHO_T}no, using $LN_S" >&6
38035fi
38036
38037
38038 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38039echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38040set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38041if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38042 echo $ECHO_N "(cached) $ECHO_C" >&6
38043else
38044 cat >conftest.make <<\_ACEOF
38045all:
38046 @echo 'ac_maketemp="$(MAKE)"'
38047_ACEOF
38048# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38049eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38050if test -n "$ac_maketemp"; then
38051 eval ac_cv_prog_make_${ac_make}_set=yes
38052else
38053 eval ac_cv_prog_make_${ac_make}_set=no
38054fi
38055rm -f conftest.make
38056fi
38057if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38058 echo "$as_me:$LINENO: result: yes" >&5
38059echo "${ECHO_T}yes" >&6
38060 SET_MAKE=
38061else
38062 echo "$as_me:$LINENO: result: no" >&5
38063echo "${ECHO_T}no" >&6
38064 SET_MAKE="MAKE=${MAKE-make}"
38065fi
38066
38067
38068
38069 if test -n "$ac_tool_prefix"; then
38070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38071set dummy ${ac_tool_prefix}ar; ac_word=$2
38072echo "$as_me:$LINENO: checking for $ac_word" >&5
38073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38074if test "${ac_cv_prog_AR+set}" = set; then
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38076else
38077 if test -n "$AR"; then
38078 ac_cv_prog_AR="$AR" # Let the user override the test.
38079else
38080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38081for as_dir in $PATH
38082do
38083 IFS=$as_save_IFS
38084 test -z "$as_dir" && as_dir=.
38085 for ac_exec_ext in '' $ac_executable_extensions; do
38086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38087 ac_cv_prog_AR="${ac_tool_prefix}ar"
38088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38089 break 2
38090 fi
38091done
38092done
38093
38094fi
38095fi
38096AR=$ac_cv_prog_AR
38097if test -n "$AR"; then
38098 echo "$as_me:$LINENO: result: $AR" >&5
38099echo "${ECHO_T}$AR" >&6
38100else
38101 echo "$as_me:$LINENO: result: no" >&5
38102echo "${ECHO_T}no" >&6
38103fi
38104
38105fi
38106if test -z "$ac_cv_prog_AR"; then
38107 ac_ct_AR=$AR
38108 # Extract the first word of "ar", so it can be a program name with args.
38109set dummy ar; ac_word=$2
38110echo "$as_me:$LINENO: checking for $ac_word" >&5
38111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38112if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38113 echo $ECHO_N "(cached) $ECHO_C" >&6
38114else
38115 if test -n "$ac_ct_AR"; then
38116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38117else
38118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38119for as_dir in $PATH
38120do
38121 IFS=$as_save_IFS
38122 test -z "$as_dir" && as_dir=.
38123 for ac_exec_ext in '' $ac_executable_extensions; do
38124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38125 ac_cv_prog_ac_ct_AR="ar"
38126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38127 break 2
38128 fi
38129done
38130done
38131
38132 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38133fi
38134fi
38135ac_ct_AR=$ac_cv_prog_ac_ct_AR
38136if test -n "$ac_ct_AR"; then
38137 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38138echo "${ECHO_T}$ac_ct_AR" >&6
38139else
38140 echo "$as_me:$LINENO: result: no" >&5
38141echo "${ECHO_T}no" >&6
38142fi
38143
38144 AR=$ac_ct_AR
38145else
38146 AR="$ac_cv_prog_AR"
38147fi
38148
38149 if test -n "$ac_tool_prefix"; then
38150 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38151set dummy ${ac_tool_prefix}strip; ac_word=$2
38152echo "$as_me:$LINENO: checking for $ac_word" >&5
38153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38154if test "${ac_cv_prog_STRIP+set}" = set; then
38155 echo $ECHO_N "(cached) $ECHO_C" >&6
38156else
38157 if test -n "$STRIP"; then
38158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38159else
38160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38161for as_dir in $PATH
38162do
38163 IFS=$as_save_IFS
38164 test -z "$as_dir" && as_dir=.
38165 for ac_exec_ext in '' $ac_executable_extensions; do
38166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38167 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38169 break 2
38170 fi
38171done
38172done
38173
38174fi
38175fi
38176STRIP=$ac_cv_prog_STRIP
38177if test -n "$STRIP"; then
38178 echo "$as_me:$LINENO: result: $STRIP" >&5
38179echo "${ECHO_T}$STRIP" >&6
38180else
38181 echo "$as_me:$LINENO: result: no" >&5
38182echo "${ECHO_T}no" >&6
38183fi
38184
38185fi
38186if test -z "$ac_cv_prog_STRIP"; then
38187 ac_ct_STRIP=$STRIP
38188 # Extract the first word of "strip", so it can be a program name with args.
38189set dummy strip; ac_word=$2
38190echo "$as_me:$LINENO: checking for $ac_word" >&5
38191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38192if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38193 echo $ECHO_N "(cached) $ECHO_C" >&6
38194else
38195 if test -n "$ac_ct_STRIP"; then
38196 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38197else
38198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38199for as_dir in $PATH
38200do
38201 IFS=$as_save_IFS
38202 test -z "$as_dir" && as_dir=.
38203 for ac_exec_ext in '' $ac_executable_extensions; do
38204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38205 ac_cv_prog_ac_ct_STRIP="strip"
38206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38207 break 2
38208 fi
38209done
38210done
38211
38212 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38213fi
38214fi
38215ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38216if test -n "$ac_ct_STRIP"; then
38217 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38218echo "${ECHO_T}$ac_ct_STRIP" >&6
38219else
38220 echo "$as_me:$LINENO: result: no" >&5
38221echo "${ECHO_T}no" >&6
38222fi
38223
38224 STRIP=$ac_ct_STRIP
38225else
38226 STRIP="$ac_cv_prog_STRIP"
38227fi
38228
38229 if test -n "$ac_tool_prefix"; then
38230 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38231set dummy ${ac_tool_prefix}nm; ac_word=$2
38232echo "$as_me:$LINENO: checking for $ac_word" >&5
38233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38234if test "${ac_cv_prog_NM+set}" = set; then
38235 echo $ECHO_N "(cached) $ECHO_C" >&6
38236else
38237 if test -n "$NM"; then
38238 ac_cv_prog_NM="$NM" # Let the user override the test.
38239else
38240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38241for as_dir in $PATH
38242do
38243 IFS=$as_save_IFS
38244 test -z "$as_dir" && as_dir=.
38245 for ac_exec_ext in '' $ac_executable_extensions; do
38246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38247 ac_cv_prog_NM="${ac_tool_prefix}nm"
38248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38249 break 2
38250 fi
38251done
38252done
38253
38254fi
38255fi
38256NM=$ac_cv_prog_NM
38257if test -n "$NM"; then
38258 echo "$as_me:$LINENO: result: $NM" >&5
38259echo "${ECHO_T}$NM" >&6
38260else
38261 echo "$as_me:$LINENO: result: no" >&5
38262echo "${ECHO_T}no" >&6
38263fi
38264
38265fi
38266if test -z "$ac_cv_prog_NM"; then
38267 ac_ct_NM=$NM
38268 # Extract the first word of "nm", so it can be a program name with args.
38269set dummy nm; ac_word=$2
38270echo "$as_me:$LINENO: checking for $ac_word" >&5
38271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38272if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38273 echo $ECHO_N "(cached) $ECHO_C" >&6
38274else
38275 if test -n "$ac_ct_NM"; then
38276 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38277else
38278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38279for as_dir in $PATH
38280do
38281 IFS=$as_save_IFS
38282 test -z "$as_dir" && as_dir=.
38283 for ac_exec_ext in '' $ac_executable_extensions; do
38284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38285 ac_cv_prog_ac_ct_NM="nm"
38286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38287 break 2
38288 fi
38289done
38290done
38291
38292 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38293fi
38294fi
38295ac_ct_NM=$ac_cv_prog_ac_ct_NM
38296if test -n "$ac_ct_NM"; then
38297 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38298echo "${ECHO_T}$ac_ct_NM" >&6
38299else
38300 echo "$as_me:$LINENO: result: no" >&5
38301echo "${ECHO_T}no" >&6
38302fi
38303
38304 NM=$ac_ct_NM
38305else
38306 NM="$ac_cv_prog_NM"
38307fi
38308
38309
38310 case ${BAKEFILE_HOST} in
38311 *-hp-hpux* )
38312 INSTALL_DIR="mkdir"
38313 ;;
38314 *) INSTALL_DIR="$INSTALL -d"
38315 ;;
38316 esac
38317
38318
38319 LDFLAGS_GUI=
38320 case ${BAKEFILE_HOST} in
38321 *-*-cygwin* | *-*-mingw32* )
38322 LDFLAGS_GUI="-mwindows"
38323 esac
38324
38325
38326 fi
38327
38328 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38329echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38330if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38331 echo $ECHO_N "(cached) $ECHO_C" >&6
38332else
38333
38334 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38335 egrep -s GNU > /dev/null); then
38336 bakefile_cv_prog_makeisgnu="yes"
38337 else
38338 bakefile_cv_prog_makeisgnu="no"
38339 fi
38340
38341fi
38342echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38343echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38344
38345 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38346 IF_GNU_MAKE=""
38347 else
38348 IF_GNU_MAKE="#"
38349 fi
38350
38351
38352
38353 PLATFORM_UNIX=0
38354 PLATFORM_WIN32=0
38355 PLATFORM_MSDOS=0
38356 PLATFORM_MAC=0
38357 PLATFORM_MACOSX=0
38358 PLATFORM_OS2=0
38359
38360 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38361 case "${BAKEFILE_HOST}" in
38362 *-*-cygwin* | *-*-mingw32* )
38363 PLATFORM_WIN32=1
38364 ;;
38365 *-pc-msdosdjgpp )
38366 PLATFORM_MSDOS=1
38367 ;;
38368 *-pc-os2_emx | *-pc-os2-emx )
38369 PLATFORM_OS2=1
38370 ;;
38371 powerpc-*-darwin* )
38372 PLATFORM_MAC=1
38373 PLATFORM_MACOSX=1
38374 ;;
38375 * )
38376 PLATFORM_UNIX=1
38377 ;;
38378 esac
38379 else
38380 case "$BAKEFILE_FORCE_PLATFORM" in
38381 win32 )
38382 PLATFORM_WIN32=1
38383 ;;
38384 msdos )
38385 PLATFORM_MSDOS=1
38386 ;;
38387 os2 )
38388 PLATFORM_OS2=1
38389 ;;
38390 darwin )
38391 PLATFORM_MAC=1
38392 PLATFORM_MACOSX=1
38393 ;;
38394 unix )
38395 PLATFORM_UNIX=1
38396 ;;
38397 * )
38398 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38399echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38400 { (exit 1); exit 1; }; }
38401 ;;
38402 esac
38403 fi
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413 # Check whether --enable-omf or --disable-omf was given.
38414if test "${enable_omf+set}" = set; then
38415 enableval="$enable_omf"
38416 bk_os2_use_omf="$enableval"
38417fi;
38418
38419 case "${BAKEFILE_HOST}" in
38420 *-*-darwin* )
38421 CFLAGS="$CFLAGS -fno-common"
38422 CXXFLAGS="$CXXFLAGS -fno-common"
38423 ;;
38424
38425 *-pc-os2_emx | *-pc-os2-emx )
38426 if test "x$bk_os2_use_omf" = "xyes" ; then
38427 AR=emxomfar
38428 RANLIB=:
38429 LDFLAGS="-Zomf $LDFLAGS"
38430 CFLAGS="-Zomf $CFLAGS"
38431 CXXFLAGS="-Zomf $CXXFLAGS"
38432 OS2_LIBEXT="lib"
38433 else
38434 OS2_LIBEXT="a"
38435 fi
38436 ;;
38437 esac
38438
38439
38440 SO_SUFFIX="so"
38441 SO_SUFFIX_MODULE="so"
38442 EXEEXT=""
38443 LIBPREFIX="lib"
38444 LIBEXT=".a"
38445 DLLPREFIX="lib"
38446 DLLPREFIX_MODULE=""
38447 DLLIMP_SUFFIX=""
38448
38449 case "${BAKEFILE_HOST}" in
38450 *-hp-hpux* )
38451 SO_SUFFIX="sl"
38452 SO_SUFFIX_MODULE="sl"
38453 ;;
38454 *-*-aix* )
38455 SO_SUFFIX="a"
38456 SO_SUFFIX_MODULE="a"
38457 ;;
38458 *-*-cygwin* | *-*-mingw32* )
38459 SO_SUFFIX="dll"
38460 SO_SUFFIX_MODULE="dll"
38461 DLLIMP_SUFFIX="dll.a"
38462 EXEEXT=".exe"
38463 DLLPREFIX=""
38464 ;;
38465 *-pc-msdosdjgpp )
38466 EXEEXT=".exe"
38467 DLLPREFIX=""
38468 ;;
38469 *-pc-os2_emx | *-pc-os2-emx )
38470 SO_SUFFIX="dll"
38471 SO_SUFFIX_MODULE="dll"
38472 DLLIMP_SUFFIX=$OS2_LIBEXT
38473 EXEEXT=".exe"
38474 DLLPREFIX=""
38475 LIBPREFIX=""
38476 LIBEXT=".$OS2_LIBEXT"
38477 ;;
38478 powerpc-*-darwin* )
38479 SO_SUFFIX="dylib"
38480 SO_SUFFIX_MODULE="bundle"
38481 ;;
38482 esac
38483
38484 if test "x$DLLIMP_SUFFIX" = "x" ; then
38485 DLLIMP_SUFFIX="$SO_SUFFIX"
38486 fi
38487
38488
38489
38490
38491
38492
38493
38494
38495
38496
38497
38498 SHARED_LD_CC="\$(CC) -shared -o"
38499 SHARED_LD_CXX="\$(CXX) -shared -o"
38500
38501 if test "x$GCC" = "xyes"; then
38502 PIC_FLAG="-fPIC"
38503 fi
38504
38505 case "${BAKEFILE_HOST}" in
38506 *-hp-hpux* )
38507 if test "x$GCC" = "xyes"; then
38508 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38509 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38510 else
38511 LDFLAGS="$LDFLAGS -L/usr/lib"
38512
38513 SHARED_LD_CC="${CC} -b -o"
38514 SHARED_LD_CXX="${CXX} -b -o"
38515 PIC_FLAG="+Z"
38516 fi
38517 ;;
38518
38519 *-*-linux* )
38520 if test "x$GCC" != "xyes"; then
38521 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38522echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38523if test "${bakefile_cv_prog_icc+set}" = set; then
38524 echo $ECHO_N "(cached) $ECHO_C" >&6
38525else
38526
38527 cat >conftest.$ac_ext <<_ACEOF
38528/* confdefs.h. */
38529_ACEOF
38530cat confdefs.h >>conftest.$ac_ext
38531cat >>conftest.$ac_ext <<_ACEOF
38532/* end confdefs.h. */
38533
38534int
38535main ()
38536{
38537
38538 #ifndef __INTEL_COMPILER
38539 #error Not icc
38540 #endif
38541
38542 ;
38543 return 0;
38544}
38545_ACEOF
38546rm -f conftest.$ac_objext
38547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38548 (eval $ac_compile) 2>conftest.er1
a848cd7e 38549 ac_status=$?
ac1cb8d3
VS
38550 grep -v '^ *+' conftest.er1 >conftest.err
38551 rm -f conftest.er1
38552 cat conftest.err >&5
a848cd7e
SC
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); } &&
ea7db9ff
DE
38555 { ac_try='test -z "$ac_c_werror_flag"
38556 || test ! -s conftest.err'
ac1cb8d3
VS
38557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 (eval $ac_try) 2>&5
38559 ac_status=$?
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); }; } &&
38562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564 (eval $ac_try) 2>&5
38565 ac_status=$?
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); }; }; then
38568 bakefile_cv_prog_icc=yes
38569else
38570 echo "$as_me: failed program was:" >&5
38571sed 's/^/| /' conftest.$ac_ext >&5
38572
38573bakefile_cv_prog_icc=no
38574
38575fi
ac1cb8d3 38576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38577
38578fi
38579echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38580echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38581 if test "$bakefile_cv_prog_icc" = "yes"; then
38582 PIC_FLAG="-KPIC"
38583 fi
38584 fi
38585 ;;
38586
38587 *-*-solaris2* )
38588 if test "x$GCC" != xyes ; then
38589 SHARED_LD_CC="${CC} -G -o"
38590 SHARED_LD_CXX="${CXX} -G -o"
38591 PIC_FLAG="-KPIC"
38592 fi
38593 ;;
38594
38595 *-*-darwin* )
38596
38597 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38598echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38599if test "${wx_cv_gcc31+set}" = set; then
38600 echo $ECHO_N "(cached) $ECHO_C" >&6
38601else
38602
38603 cat >conftest.$ac_ext <<_ACEOF
38604/* confdefs.h. */
38605_ACEOF
38606cat confdefs.h >>conftest.$ac_ext
38607cat >>conftest.$ac_ext <<_ACEOF
38608/* end confdefs.h. */
38609
38610int
38611main ()
38612{
38613
38614 #if (__GNUC__ < 3) || \
38615 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38616 #error old gcc
38617 #endif
38618
38619 ;
38620 return 0;
38621}
38622_ACEOF
38623rm -f conftest.$ac_objext
38624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38625 (eval $ac_compile) 2>conftest.er1
a848cd7e 38626 ac_status=$?
ac1cb8d3
VS
38627 grep -v '^ *+' conftest.er1 >conftest.err
38628 rm -f conftest.er1
38629 cat conftest.err >&5
a848cd7e
SC
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); } &&
ea7db9ff
DE
38632 { ac_try='test -z "$ac_c_werror_flag"
38633 || test ! -s conftest.err'
ac1cb8d3
VS
38634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38635 (eval $ac_try) 2>&5
38636 ac_status=$?
38637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638 (exit $ac_status); }; } &&
38639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38641 (eval $ac_try) 2>&5
38642 ac_status=$?
38643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644 (exit $ac_status); }; }; then
38645
38646 wx_cv_gcc31=yes
38647
38648else
38649 echo "$as_me: failed program was:" >&5
38650sed 's/^/| /' conftest.$ac_ext >&5
38651
38652
38653 wx_cv_gcc31=no
38654
38655
38656fi
ac1cb8d3 38657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38658
38659fi
38660echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38661echo "${ECHO_T}$wx_cv_gcc31" >&6
38662 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38663
38664D='$'
38665cat <<EOF >shared-ld-sh
a848cd7e
SC
38666#!/bin/sh
38667#-----------------------------------------------------------------------------
38668#-- Name: distrib/mac/shared-ld-sh
38669#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38670#-- Author: Gilles Depeyrot
38671#-- Copyright: (c) 2002 Gilles Depeyrot
38672#-- Licence: any use permitted
38673#-----------------------------------------------------------------------------
38674
38675verbose=0
38676args=""
38677objects=""
38678linking_flag="-dynamiclib"
38679
473276a9
VS
38680while test ${D}# -gt 0; do
38681 case ${D}1 in
a848cd7e
SC
38682
38683 -v)
38684 verbose=1
38685 ;;
38686
38687 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38688 # collect these options and values
473276a9 38689 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38690 shift
38691 ;;
38692
38693 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38694 # collect these options
473276a9 38695 args="${D}{args} ${D}1"
a848cd7e
SC
38696 ;;
38697
38698 -dynamiclib|-bundle)
473276a9 38699 linking_flag="${D}1"
a848cd7e
SC
38700 ;;
38701
38702 -*)
473276a9 38703 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38704 exit 1
38705 ;;
38706
38707 *.o | *.a | *.dylib)
38708 # collect object files
473276a9 38709 objects="${D}{objects} ${D}1"
a848cd7e
SC
38710 ;;
38711
38712 *)
473276a9 38713 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38714 exit 1
38715 ;;
38716
38717 esac
38718 shift
38719done
38720
38721#
38722# Link one module containing all the others
38723#
473276a9
VS
38724if test ${D}{verbose} = 1; then
38725 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38726fi
473276a9
VS
38727c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38728status=${D}?
38729if test ${D}{status} != 0; then
38730 exit ${D}{status}
a848cd7e
SC
38731fi
38732
38733#
38734# Link the shared library from the single module created
38735#
473276a9
VS
38736if test ${D}{verbose} = 1; then
38737 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38738fi
473276a9
VS
38739c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38740status=${D}?
38741if test ${D}{status} != 0; then
38742 exit ${D}{status}
a848cd7e
SC
38743fi
38744
38745#
38746# Remove intermediate module
38747#
473276a9 38748rm -f master.${D}${D}.o
a848cd7e
SC
38749
38750exit 0
38751EOF
473276a9 38752
a848cd7e
SC
38753 chmod +x shared-ld-sh
38754
38755 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38756 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38757 SHARED_LD_CXX="$SHARED_LD_CC"
38758 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38759 else
38760 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38761 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38762 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38763 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38764 fi
38765
38766 PIC_FLAG="-dynamic -fPIC"
38767 ;;
38768
38769 *-*-aix* )
38770 if test "x$GCC" != "xyes"; then
38771 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38772set dummy makeC++SharedLib; ac_word=$2
38773echo "$as_me:$LINENO: checking for $ac_word" >&5
38774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38775if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38776 echo $ECHO_N "(cached) $ECHO_C" >&6
38777else
38778 if test -n "$AIX_CXX_LD"; then
38779 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38780else
38781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38782for as_dir in $PATH
38783do
38784 IFS=$as_save_IFS
38785 test -z "$as_dir" && as_dir=.
38786 for ac_exec_ext in '' $ac_executable_extensions; do
38787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38788 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38790 break 2
38791 fi
38792done
38793done
38794
38795 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38796fi
38797fi
38798AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38799if test -n "$AIX_CXX_LD"; then
38800 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38801echo "${ECHO_T}$AIX_CXX_LD" >&6
38802else
38803 echo "$as_me:$LINENO: result: no" >&5
38804echo "${ECHO_T}no" >&6
38805fi
38806
38807 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38808 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38809 fi
38810 ;;
38811
38812 *-*-beos* )
38813 SHARED_LD_CC="${LD} -shared -o"
38814 SHARED_LD_CXX="${LD} -shared -o"
38815 ;;
38816
38817 *-*-irix* )
38818 if test "x$GCC" != "xyes"; then
38819 PIC_FLAG="-KPIC"
38820 fi
38821 ;;
38822
38823 *-*-cygwin* | *-*-mingw32* )
38824 PIC_FLAG=""
38825 ;;
38826
38827 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38828 SHARED_LD_CC="`pwd`/dllar.sh -o"
38829 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38830 PIC_FLAG=""
473276a9
VS
38831
38832D='$'
38833cat <<EOF >dllar.sh
38834#!/bin/sh
38835#
38836# dllar - a tool to build both a .dll and an .a file
38837# from a set of object (.o) files for EMX/OS2.
38838#
38839# Written by Andrew Zabolotny, bit@freya.etu.ru
38840# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38841#
38842# This script will accept a set of files on the command line.
38843# All the public symbols from the .o files will be exported into
38844# a .DEF file, then linker will be run (through gcc) against them to
38845# build a shared library consisting of all given .o files. All libraries
38846# (.a) will be first decompressed into component .o files then act as
38847# described above. You can optionally give a description (-d "description")
38848# which will be put into .DLL. To see the list of accepted options (as well
38849# as command-line format) simply run this program without options. The .DLL
38850# is built to be imported by name (there is no guarantee that new versions
38851# of the library you build will have same ordinals for same symbols).
38852#
38853# dllar is free software; you can redistribute it and/or modify
38854# it under the terms of the GNU General Public License as published by
38855# the Free Software Foundation; either version 2, or (at your option)
38856# any later version.
38857#
38858# dllar is distributed in the hope that it will be useful,
38859# but WITHOUT ANY WARRANTY; without even the implied warranty of
38860# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38861# GNU General Public License for more details.
38862#
38863# You should have received a copy of the GNU General Public License
38864# along with dllar; see the file COPYING. If not, write to the Free
38865# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38866# 02111-1307, USA.
38867
38868# To successfuly run this program you will need:
38869# - Current drive should have LFN support (HPFS, ext2, network, etc)
38870# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38871# - gcc
38872# (used to build the .dll)
38873# - emxexp
38874# (used to create .def file from .o files)
38875# - emximp
38876# (used to create .a file from .def file)
38877# - GNU text utilites (cat, sort, uniq)
38878# used to process emxexp output
38879# - GNU file utilities (mv, rm)
38880# - GNU sed
38881# - lxlite (optional, see flag below)
38882# (used for general .dll cleanup)
38883#
38884
38885flag_USE_LXLITE=1;
38886
38887#
38888# helper functions
38889# basnam, variant of basename, which does _not_ remove the path, _iff_
38890# second argument (suffix to remove) is given
38891basnam(){
38892 case ${D}# in
38893 1)
38894 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38895 ;;
38896 2)
38897 echo ${D}1 | sed 's/'${D}2'${D}//'
38898 ;;
38899 *)
38900 echo "error in basnam ${D}*"
38901 exit 8
38902 ;;
38903 esac
38904}
38905
38906# Cleanup temporary files and output
38907CleanUp() {
38908 cd ${D}curDir
38909 for i in ${D}inputFiles ; do
38910 case ${D}i in
38911 *!)
38912 rm -rf \`basnam ${D}i !\`
38913 ;;
38914 *)
38915 ;;
38916 esac
38917 done
38918
38919 # Kill result in case of failure as there is just to many stupid make/nmake
38920 # things out there which doesn't do this.
2057db16 38921 if [] ${D}# -eq 0 []; then
473276a9
VS
38922 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38923 fi
38924}
38925
38926# Print usage and exit script with rc=1.
38927PrintHelp() {
2057db16
VS
38928 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38929 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38930 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38931 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38932 echo ' []*.o[] []*.a[]'
473276a9
VS
38933 echo '*> "output_file" should have no extension.'
38934 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38935 echo ' The import library name is derived from this and is set to "name".a,'
38936 echo ' unless overridden by -import'
38937 echo '*> "importlib_name" should have no extension.'
38938 echo ' If it has the .o, or .a extension, it is automatically removed.'
38939 echo ' This name is used as the import library name and may be longer and'
38940 echo ' more descriptive than the DLL name which has to follow the old '
38941 echo ' 8.3 convention of FAT.'
38942 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38943 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38944 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38945 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38946 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38947 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38948 echo ' If the last character of a symbol is "*", all symbols beginning'
38949 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38950 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38951 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38952 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38953 echo ' C runtime DLLs.'
2057db16 38954 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38955 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38956 echo ' unchanged to GCC at the end of command line.'
38957 echo '*> If you create a DLL from a library and you do not specify -o,'
38958 echo ' the basename for DLL and import library will be set to library name,'
38959 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38960 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38961 echo ' library will be renamed into gcc_s.a.'
38962 echo '--------'
38963 echo 'Example:'
38964 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38965 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38966 CleanUp
38967 exit 1
38968}
38969
38970# Execute a command.
38971# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38972# @Uses Whatever CleanUp() uses.
38973doCommand() {
38974 echo "${D}*"
38975 eval ${D}*
38976 rcCmd=${D}?
38977
2057db16 38978 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38979 echo "command failed, exit code="${D}rcCmd
38980 CleanUp
38981 exit ${D}rcCmd
38982 fi
38983}
38984
38985# main routine
38986# setup globals
38987cmdLine=${D}*
38988outFile=""
38989outimpFile=""
38990inputFiles=""
38991description=""
38992CC=gcc.exe
38993CFLAGS="-s -Zcrtdll"
38994EXTRA_CFLAGS=""
38995EXPORT_BY_ORDINALS=0
38996exclude_symbols=""
38997library_flags=""
38998curDir=\`pwd\`
38999curDirS=curDir
39000case ${D}curDirS in
39001*/)
39002 ;;
39003*)
39004 curDirS=${D}{curDirS}"/"
39005 ;;
39006esac
39007# Parse commandline
39008libsToLink=0
2057db16 39009while [] ${D}1 []; do
473276a9
VS
39010 case ${D}1 in
39011 -ord*)
39012 EXPORT_BY_ORDINALS=1;
39013 ;;
39014 -o*)
39015 shift
39016 outFile=${D}1
39017 ;;
39018 -i*)
39019 shift
39020 outimpFile=${D}1
39021 ;;
39022 -d*)
39023 shift
39024 description=${D}1
39025 ;;
39026 -f*)
39027 shift
39028 CFLAGS=${D}1
39029 ;;
39030 -c*)
39031 shift
39032 CC=${D}1
39033 ;;
39034 -h*)
39035 PrintHelp
39036 ;;
39037 -ex*)
39038 shift
39039 exclude_symbols=${D}{exclude_symbols}${D}1" "
39040 ;;
39041 -libf*)
39042 shift
39043 library_flags=${D}{library_flags}${D}1" "
39044 ;;
39045 -nocrt*)
39046 CFLAGS="-s"
39047 ;;
39048 -nolxl*)
39049 flag_USE_LXLITE=0
39050 ;;
39051 -* | /*)
39052 case ${D}1 in
39053 -L* | -l*)
39054 libsToLink=1
39055 ;;
39056 *)
39057 ;;
39058 esac
39059 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39060 ;;
39061 *)
39062 found=0;
2057db16 39063 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39064 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39065 else
39066 for file in ${D}1 ; do
2057db16 39067 if [] -f ${D}file []; then
473276a9
VS
39068 inputFiles="${D}{inputFiles} ${D}file"
39069 found=1
39070 fi
39071 done
2057db16 39072 if [] ${D}found -eq 0 []; then
473276a9
VS
39073 echo "ERROR: No file(s) found: "${D}1
39074 exit 8
39075 fi
39076 fi
39077 ;;
39078 esac
39079 shift
39080done # iterate cmdline words
39081
39082#
2057db16 39083if [] -z "${D}inputFiles" []; then
473276a9
VS
39084 echo "dllar: no input files"
39085 PrintHelp
39086fi
39087
39088# Now extract all .o files from .a files
39089newInputFiles=""
39090for file in ${D}inputFiles ; do
39091 case ${D}file in
39092 *.a | *.lib)
39093 case ${D}file in
39094 *.a)
39095 suffix=".a"
39096 AR="ar"
39097 ;;
39098 *.lib)
39099 suffix=".lib"
39100 AR="emxomfar"
39101 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39102 ;;
39103 *)
39104 ;;
39105 esac
39106 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39107 mkdir ${D}dirname
2057db16 39108 if [] ${D}? -ne 0 []; then
473276a9
VS
39109 echo "Failed to create subdirectory ./${D}dirname"
39110 CleanUp
39111 exit 8;
39112 fi
39113 # Append '!' to indicate archive
39114 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39115 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39116 cd ${D}curDir
39117 found=0;
39118 for subfile in ${D}dirname/*.o* ; do
2057db16 39119 if [] -f ${D}subfile []; then
473276a9 39120 found=1
2057db16 39121 if [] -s ${D}subfile []; then
473276a9
VS
39122 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39123 newInputFiles="${D}newInputFiles ${D}subfile"
39124 fi
39125 fi
39126 done
2057db16 39127 if [] ${D}found -eq 0 []; then
473276a9
VS
39128 echo "WARNING: there are no files in archive \'${D}file\'"
39129 fi
39130 ;;
39131 *)
39132 newInputFiles="${D}{newInputFiles} ${D}file"
39133 ;;
39134 esac
39135done
39136inputFiles="${D}newInputFiles"
39137
39138# Output filename(s).
39139do_backup=0;
2057db16 39140if [] -z ${D}outFile []; then
473276a9
VS
39141 do_backup=1;
39142 set outFile ${D}inputFiles; outFile=${D}2
39143fi
39144
39145# If it is an archive, remove the '!' and the '_%' suffixes
39146case ${D}outFile in
39147*_%!)
39148 outFile=\`basnam ${D}outFile _%!\`
39149 ;;
39150*)
39151 ;;
39152esac
39153case ${D}outFile in
39154*.dll)
39155 outFile=\`basnam ${D}outFile .dll\`
39156 ;;
39157*.DLL)
39158 outFile=\`basnam ${D}outFile .DLL\`
39159 ;;
39160*.o)
39161 outFile=\`basnam ${D}outFile .o\`
39162 ;;
39163*.obj)
39164 outFile=\`basnam ${D}outFile .obj\`
39165 ;;
39166*.a)
39167 outFile=\`basnam ${D}outFile .a\`
39168 ;;
39169*.lib)
39170 outFile=\`basnam ${D}outFile .lib\`
39171 ;;
39172*)
39173 ;;
39174esac
39175case ${D}outimpFile in
39176*.a)
39177 outimpFile=\`basnam ${D}outimpFile .a\`
39178 ;;
39179*.lib)
39180 outimpFile=\`basnam ${D}outimpFile .lib\`
39181 ;;
39182*)
39183 ;;
39184esac
2057db16 39185if [] -z ${D}outimpFile []; then
473276a9
VS
39186 outimpFile=${D}outFile
39187fi
39188defFile="${D}{outFile}.def"
39189arcFile="${D}{outimpFile}.a"
39190arcFile2="${D}{outimpFile}.lib"
39191dllFile="${D}outFile"
39192# Add suffix to dllFile later, first we need a version to use as
39193# name in .def file.
39194
2057db16
VS
39195if [] ${D}do_backup -ne 0 [] ; then
39196 if [] -f ${D}arcFile [] ; then
473276a9
VS
39197 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39198 fi
2057db16 39199 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39200 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39201 fi
39202fi
39203
39204# Extract public symbols from all the object files.
39205tmpdefFile=${D}{defFile}_%
39206rm -f ${D}tmpdefFile
39207for file in ${D}inputFiles ; do
39208 case ${D}file in
39209 *!)
39210 ;;
39211 *)
39212 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39213 ;;
39214 esac
39215done
39216
39217# Create the def file.
39218rm -f ${D}defFile
39219echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39220dllFile="${D}dllFile.dll"
2057db16 39221if [] -n ${D}description []; then
473276a9
VS
39222 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39223fi
39224echo "EXPORTS" >> ${D}defFile
39225
39226doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39227grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39228
39229# Checks if the export is ok or not.
39230for word in ${D}exclude_symbols; do
39231 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39232 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39233done
39234
39235
2057db16 39236if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39237 sed "=" < ${D}tmpdefFile | \
39238 sed '
39239 N
39240 : loop
2057db16 39241 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39242 t loop
39243 ' > ${D}{tmpdefFile}%
39244 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39245else
39246 rm -f ${D}{tmpdefFile}%
39247fi
39248cat ${D}tmpdefFile >> ${D}defFile
39249rm -f ${D}tmpdefFile
39250
39251# Do linking, create implib, and apply lxlite.
39252gccCmdl="";
39253for file in ${D}inputFiles ; do
39254 case ${D}file in
39255 *!)
39256 ;;
39257 *)
39258 gccCmdl="${D}gccCmdl ${D}file"
39259 ;;
39260 esac
39261done
39262doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39263touch "${D}{outFile}.dll"
39264
39265doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39266if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39267 add_flags="";
2057db16 39268 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39269 add_flags="-ynd"
39270 fi
39271 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39272fi
39273doCommand "emxomf -s -l ${D}arcFile"
39274
39275# Successful exit.
39276CleanUp 1
39277exit 0
39278EOF
39279
39280 chmod +x dllar.sh
a848cd7e
SC
39281 ;;
39282
39283 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39284 *-*-sunos4* | \
39285 *-*-osf* | \
39286 *-*-dgux5* | \
39287 *-*-sysv5* )
39288 ;;
39289
39290 *)
39291 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39292echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39293 { (exit 1); exit 1; }; }
39294 esac
39295
2057db16
VS
39296 if test "x$PIC_FLAG" != "x" ; then
39297 PIC_FLAG="$PIC_FLAG -DPIC"
39298 fi
39299
a848cd7e
SC
39300 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39301 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39302 fi
39303 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39304 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39305 fi
39306
39307
39308
39309
39310
39311
39312
39313
39314 USE_SOVERSION=0
39315 USE_SOVERLINUX=0
39316 USE_SOVERSOLARIS=0
39317 USE_SOSYMLINKS=0
39318 USE_MACVERSION=0
39319 SONAME_FLAG=
39320
39321 case "${BAKEFILE_HOST}" in
39322 *-*-linux* )
39323 SONAME_FLAG="-Wl,-soname,"
39324 USE_SOVERSION=1
39325 USE_SOVERLINUX=1
39326 USE_SOSYMLINKS=1
39327 ;;
39328
39329 *-*-solaris2* )
39330 SONAME_FLAG="-h "
39331 USE_SOVERSION=1
39332 USE_SOVERSOLARIS=1
39333 USE_SOSYMLINKS=1
39334 ;;
39335
39336 *-*-darwin* )
39337 USE_MACVERSION=1
39338 USE_SOVERSION=1
39339 USE_SOSYMLINKS=1
39340 ;;
39341 esac
39342
39343
39344
39345
39346
39347
39348
39349
39350
39351 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39352echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39353 DEPS_TRACKING=0
39354
39355 if test "x$GCC" = "xyes"; then
39356 DEPSMODE=gcc
39357 DEPS_TRACKING=1
39358 case "${BAKEFILE_HOST}" in
39359 powerpc-*-darwin* )
39360 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39361 ;;
39362 * )
39363 DEPSFLAG_GCC="-MMD"
39364 ;;
39365 esac
39366 echo "$as_me:$LINENO: result: gcc" >&5
39367echo "${ECHO_T}gcc" >&6
39368 else
39369 echo "$as_me:$LINENO: result: none" >&5
39370echo "${ECHO_T}none" >&6
39371 fi
39372
39373 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39374
39375D='$'
39376cat <<EOF >bk-deps
a848cd7e
SC
39377#!/bin/sh
39378
39379# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39380# script. It is used to track C/C++ files dependencies in portable way.
39381#
39382# Permission is given to use this file in any way.
39383
473276a9 39384DEPSMODE=${DEPSMODE}
a848cd7e 39385DEPSDIR=.deps
473276a9 39386DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39387
473276a9 39388mkdir -p ${D}DEPSDIR
a848cd7e 39389
473276a9
VS
39390if test ${D}DEPSMODE = gcc ; then
39391 ${D}* ${D}{DEPSFLAG_GCC}
39392 status=${D}?
39393 if test ${D}{status} != 0 ; then
39394 exit ${D}{status}
a848cd7e
SC
39395 fi
39396 # move created file to the location we want it in:
473276a9
VS
39397 while test ${D}# -gt 0; do
39398 case "${D}1" in
a848cd7e
SC
39399 -o )
39400 shift
473276a9 39401 objfile=${D}1
a848cd7e
SC
39402 ;;
39403 -* )
39404 ;;
39405 * )
473276a9 39406 srcfile=${D}1
a848cd7e
SC
39407 ;;
39408 esac
39409 shift
39410 done
473276a9
VS
39411 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39412 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39413 if test -f ${D}depfile ; then
39414 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39415 rm -f ${D}depfile
a848cd7e 39416 else
473276a9
VS
39417 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39418 if test -f ${D}depfile ; then
39419 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39420 rm -f ${D}depfile
a848cd7e
SC
39421 fi
39422 fi
39423 exit 0
39424else
473276a9
VS
39425 ${D}*
39426 exit ${D}?
a848cd7e
SC
39427fi
39428EOF
473276a9 39429
a848cd7e
SC
39430 chmod +x bk-deps
39431 fi
39432
39433
39434
39435
39436 RESCOMP=
39437 SETFILE=
39438
39439 case ${BAKEFILE_HOST} in
39440 *-*-cygwin* | *-*-mingw32* )
39441 if test "$build" != "$host" ; then
39442 RESCOMP=$host_alias-windres
39443 else
39444 # Extract the first word of "windres", so it can be a program name with args.
39445set dummy windres; ac_word=$2
39446echo "$as_me:$LINENO: checking for $ac_word" >&5
39447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39448if test "${ac_cv_prog_RESCOMP+set}" = set; then
39449 echo $ECHO_N "(cached) $ECHO_C" >&6
39450else
39451 if test -n "$RESCOMP"; then
39452 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39453else
39454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39455for as_dir in $PATH
39456do
39457 IFS=$as_save_IFS
39458 test -z "$as_dir" && as_dir=.
39459 for ac_exec_ext in '' $ac_executable_extensions; do
39460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39461 ac_cv_prog_RESCOMP="windres"
39462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39463 break 2
39464 fi
39465done
39466done
39467
39468 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39469fi
39470fi
39471RESCOMP=$ac_cv_prog_RESCOMP
39472if test -n "$RESCOMP"; then
39473 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39474echo "${ECHO_T}$RESCOMP" >&6
39475else
39476 echo "$as_me:$LINENO: result: no" >&5
39477echo "${ECHO_T}no" >&6
39478fi
39479
39480 fi
39481 ;;
39482
39483 *-*-darwin* )
39484 # Extract the first word of "Rez", so it can be a program name with args.
39485set dummy Rez; ac_word=$2
39486echo "$as_me:$LINENO: checking for $ac_word" >&5
39487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39488if test "${ac_cv_prog_RESCOMP+set}" = set; then
39489 echo $ECHO_N "(cached) $ECHO_C" >&6
39490else
39491 if test -n "$RESCOMP"; then
39492 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39493else
39494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39495for as_dir in $PATH
39496do
39497 IFS=$as_save_IFS
39498 test -z "$as_dir" && as_dir=.
39499 for ac_exec_ext in '' $ac_executable_extensions; do
39500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39501 ac_cv_prog_RESCOMP="Rez"
39502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39503 break 2
39504 fi
39505done
39506done
39507
39508 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39509fi
39510fi
39511RESCOMP=$ac_cv_prog_RESCOMP
39512if test -n "$RESCOMP"; then
39513 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39514echo "${ECHO_T}$RESCOMP" >&6
39515else
39516 echo "$as_me:$LINENO: result: no" >&5
39517echo "${ECHO_T}no" >&6
39518fi
39519
39520 # Extract the first word of "SetFile", so it can be a program name with args.
39521set dummy SetFile; ac_word=$2
39522echo "$as_me:$LINENO: checking for $ac_word" >&5
39523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39524if test "${ac_cv_prog_SETFILE+set}" = set; then
39525 echo $ECHO_N "(cached) $ECHO_C" >&6
39526else
39527 if test -n "$SETFILE"; then
39528 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39529else
39530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39531for as_dir in $PATH
39532do
39533 IFS=$as_save_IFS
39534 test -z "$as_dir" && as_dir=.
39535 for ac_exec_ext in '' $ac_executable_extensions; do
39536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39537 ac_cv_prog_SETFILE="SetFile"
39538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39539 break 2
39540 fi
39541done
39542done
39543
39544 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39545fi
39546fi
39547SETFILE=$ac_cv_prog_SETFILE
39548if test -n "$SETFILE"; then
39549 echo "$as_me:$LINENO: result: $SETFILE" >&5
39550echo "${ECHO_T}$SETFILE" >&6
39551else
39552 echo "$as_me:$LINENO: result: no" >&5
39553echo "${ECHO_T}no" >&6
39554fi
39555
39556 ;;
39557 esac
39558
39559
39560
39561
39562
2057db16 39563 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39564
dcc1b6ad 39565
9f45f08e 39566BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39567
646b6ec1 39568
74b84332 39569
a848cd7e
SC
39570 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39571if test "${enable_precomp_headers+set}" = set; then
39572 enableval="$enable_precomp_headers"
39573 bk_use_pch="$enableval"
39574fi;
39575
39576 GCC_PCH=0
39577
39578 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39579 if test "x$GCC" = "xyes"; then
39580 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39581echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39582 cat >conftest.$ac_ext <<_ACEOF
39583/* confdefs.h. */
39584_ACEOF
39585cat confdefs.h >>conftest.$ac_ext
39586cat >>conftest.$ac_ext <<_ACEOF
39587/* end confdefs.h. */
39588
39589int
39590main ()
39591{
39592
39593 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39594 #error "no pch support"
39595 #endif
39596 #if (__GNUC__ < 3)
39597 #error "no pch support"
39598 #endif
39599 #if (__GNUC__ == 3) && \
39600 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39601 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39602 #error "no pch support"
39603 #endif
39604
39605 ;
39606 return 0;
39607}
39608_ACEOF
39609rm -f conftest.$ac_objext
39610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39611 (eval $ac_compile) 2>conftest.er1
a848cd7e 39612 ac_status=$?
ac1cb8d3
VS
39613 grep -v '^ *+' conftest.er1 >conftest.err
39614 rm -f conftest.er1
39615 cat conftest.err >&5
a848cd7e
SC
39616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617 (exit $ac_status); } &&
ea7db9ff
DE
39618 { ac_try='test -z "$ac_c_werror_flag"
39619 || test ! -s conftest.err'
ac1cb8d3
VS
39620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39621 (eval $ac_try) 2>&5
39622 ac_status=$?
39623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39624 (exit $ac_status); }; } &&
39625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39627 (eval $ac_try) 2>&5
39628 ac_status=$?
39629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39630 (exit $ac_status); }; }; then
39631
39632 echo "$as_me:$LINENO: result: yes" >&5
39633echo "${ECHO_T}yes" >&6
39634 CPPFLAGS="-fpch-deps $CPPFLAGS"
39635 GCC_PCH=1
39636
39637else
39638 echo "$as_me: failed program was:" >&5
39639sed 's/^/| /' conftest.$ac_ext >&5
39640
39641
39642 echo "$as_me:$LINENO: result: no" >&5
39643echo "${ECHO_T}no" >&6
39644
39645fi
ac1cb8d3 39646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39647 if test $GCC_PCH = 1 ; then
39648 cat <<EOF >bk-make-pch
39649#!/bin/sh
39650
39651# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39652# script. It is used to generated precompiled headers.
39653#
39654# Permission is given to use this file in any way.
39655
39656outfile="\${1}"
39657header="\${2}"
39658shift
39659shift
39660
39661compiler=
39662headerfile=
39663while test \${#} -gt 0; do
39664 case "\${1}" in
39665 -I* )
39666 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39667 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39668 headerfile="\${incdir}/\${header}"
39669 fi
39670 ;;
39671 esac
39672 compiler="\${compiler} \${1}"
39673 shift
39674done
39675
39676if test "x\${headerfile}" = "x" ; then
39677 echo "error: can't find header \${header} in include paths" >2
39678else
39679 if test -f \${outfile} ; then
39680 rm -f \${outfile}
39681 else
39682 mkdir -p \`dirname \${outfile}\`
39683 fi
39684 depsfile=".deps/\`basename \${outfile}\`.d"
39685 mkdir -p .deps
39686 # can do this because gcc is >= 3.4:
39687 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39688 exit \${?}
39689fi
39690EOF
39691 chmod +x bk-make-pch
39692 fi
39693 fi
39694 fi
39695
39696
39697
39698
39699
dcc1b6ad
VS
39700
39701
39702 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39703if test "${enable_precomp_headers+set}" = set; then
39704 enableval="$enable_precomp_headers"
39705 bk_use_pch="$enableval"
39706fi;
39707
39708 GCC_PCH=0
39709
39710 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39711 if test "x$GCC" = "xyes"; then
39712 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39713echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39714 cat >conftest.$ac_ext <<_ACEOF
39715/* confdefs.h. */
39716_ACEOF
39717cat confdefs.h >>conftest.$ac_ext
39718cat >>conftest.$ac_ext <<_ACEOF
39719/* end confdefs.h. */
39720
39721int
39722main ()
39723{
39724
39725 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39726 #error "no pch support"
39727 #endif
39728 #if (__GNUC__ < 3)
39729 #error "no pch support"
39730 #endif
39731 #if (__GNUC__ == 3) && \
39732 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39733 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39734 #error "no pch support"
39735 #endif
39736
39737 ;
39738 return 0;
39739}
39740_ACEOF
39741rm -f conftest.$ac_objext
39742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39743 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39744 ac_status=$?
ac1cb8d3
VS
39745 grep -v '^ *+' conftest.er1 >conftest.err
39746 rm -f conftest.er1
39747 cat conftest.err >&5
dcc1b6ad
VS
39748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39749 (exit $ac_status); } &&
ea7db9ff
DE
39750 { ac_try='test -z "$ac_c_werror_flag"
39751 || test ! -s conftest.err'
ac1cb8d3
VS
39752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39753 (eval $ac_try) 2>&5
39754 ac_status=$?
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); }; } &&
39757 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39759 (eval $ac_try) 2>&5
39760 ac_status=$?
39761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762 (exit $ac_status); }; }; then
39763
39764 echo "$as_me:$LINENO: result: yes" >&5
39765echo "${ECHO_T}yes" >&6
39766 CPPFLAGS="-fpch-deps $CPPFLAGS"
39767 GCC_PCH=1
39768
39769else
39770 echo "$as_me: failed program was:" >&5
39771sed 's/^/| /' conftest.$ac_ext >&5
39772
39773
39774 echo "$as_me:$LINENO: result: no" >&5
39775echo "${ECHO_T}no" >&6
39776
39777fi
ac1cb8d3 39778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39779 if test $GCC_PCH = 1 ; then
39780 cat <<EOF >bk-make-pch
39781#!/bin/sh
39782
39783# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39784# script. It is used to generated precompiled headers.
39785#
39786# Permission is given to use this file in any way.
39787
39788outfile="\${1}"
39789header="\${2}"
39790shift
39791shift
39792
39793compiler=
39794headerfile=
39795while test \${#} -gt 0; do
39796 case "\${1}" in
39797 -I* )
39798 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39799 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39800 headerfile="\${incdir}/\${header}"
39801 fi
39802 ;;
39803 esac
39804 compiler="\${compiler} \${1}"
39805 shift
39806done
39807
39808if test "x\${headerfile}" = "x" ; then
39809 echo "error: can't find header \${header} in include paths" >2
39810else
39811 if test -f \${outfile} ; then
39812 rm -f \${outfile}
39813 else
39814 mkdir -p \`dirname \${outfile}\`
39815 fi
39816 depsfile=".deps/\`basename \${outfile}\`.d"
39817 mkdir -p .deps
39818 # can do this because gcc is >= 3.4:
39819 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39820 exit \${?}
39821fi
39822EOF
39823 chmod +x bk-make-pch
39824 fi
39825 fi
39826 fi
39827
39828
39829
39830
a848cd7e
SC
39831 COND_BUILD_DEBUG="#"
39832 if test "x$BUILD" = "xdebug" ; then
39833 COND_BUILD_DEBUG=""
39834 fi
39835
39836 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39837 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39838 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39839 fi
39840
39841 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39842 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39843 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39844 fi
39845
39846 COND_BUILD_DEBUG_UNICODE_0="#"
39847 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39848 COND_BUILD_DEBUG_UNICODE_0=""
39849 fi
39850
39851 COND_BUILD_DEBUG_UNICODE_1="#"
39852 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39853 COND_BUILD_DEBUG_UNICODE_1=""
39854 fi
39855
39856 COND_BUILD_RELEASE="#"
39857 if test "x$BUILD" = "xrelease" ; then
39858 COND_BUILD_RELEASE=""
39859 fi
39860
39861 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39862 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39863 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39864 fi
39865
39866 COND_BUILD_RELEASE_UNICODE_0="#"
39867 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39868 COND_BUILD_RELEASE_UNICODE_0=""
39869 fi
39870
39871 COND_BUILD_RELEASE_UNICODE_1="#"
39872 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39873 COND_BUILD_RELEASE_UNICODE_1=""
39874 fi
39875
39876 COND_DEBUG_FLAG_1="#"
39877 if test "x$DEBUG_FLAG" = "x1" ; then
39878 COND_DEBUG_FLAG_1=""
39879 fi
39880
39881 COND_DEBUG_INFO_0="#"
39882 if test "x$DEBUG_INFO" = "x0" ; then
39883 COND_DEBUG_INFO_0=""
39884 fi
39885
39886 COND_DEBUG_INFO_1="#"
39887 if test "x$DEBUG_INFO" = "x1" ; then
39888 COND_DEBUG_INFO_1=""
39889 fi
39890
39891 COND_DEPS_TRACKING_0="#"
39892 if test "x$DEPS_TRACKING" = "x0" ; then
39893 COND_DEPS_TRACKING_0=""
39894 fi
39895
39896 COND_DEPS_TRACKING_1="#"
39897 if test "x$DEPS_TRACKING" = "x1" ; then
39898 COND_DEPS_TRACKING_1=""
39899 fi
39900
39901 COND_GCC_PCH_1="#"
39902 if test "x$GCC_PCH" = "x1" ; then
39903 COND_GCC_PCH_1=""
39904 fi
39905
39906 COND_MONOLITHIC_0="#"
39907 if test "x$MONOLITHIC" = "x0" ; then
39908 COND_MONOLITHIC_0=""
39909 fi
39910
39911 COND_MONOLITHIC_0_SHARED_0="#"
39912 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39913 COND_MONOLITHIC_0_SHARED_0=""
39914 fi
39915
39916 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39917 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39918 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39919 fi
39920
39921 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39922 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39923 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39924 fi
39925
39926 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39927 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39928 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39929 fi
39930
39931 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39932 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39933 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39934 fi
39935
39936 COND_MONOLITHIC_0_SHARED_1="#"
39937 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39938 COND_MONOLITHIC_0_SHARED_1=""
39939 fi
39940
39941 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39942 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39943 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39944 fi
39945
39946 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39947 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39948 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39949 fi
39950
39951 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39952 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39953 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39954 fi
39955
39956 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39957 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39958 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39959 fi
39960
39961 COND_MONOLITHIC_0_USE_ODBC_1="#"
39962 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39963 COND_MONOLITHIC_0_USE_ODBC_1=""
39964 fi
39965
39966 COND_MONOLITHIC_1="#"
39967 if test "x$MONOLITHIC" = "x1" ; then
39968 COND_MONOLITHIC_1=""
39969 fi
39970
39971 COND_MONOLITHIC_1_SHARED_0="#"
39972 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39973 COND_MONOLITHIC_1_SHARED_0=""
39974 fi
39975
39976 COND_MONOLITHIC_1_SHARED_1="#"
39977 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39978 COND_MONOLITHIC_1_SHARED_1=""
39979 fi
39980
39981 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39982 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39983 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39984 fi
39985
39986 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39987 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39988 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39989 fi
39990
39991 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39992 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39993 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39994 fi
39995
39996 COND_PLATFORM_MACOSX_1="#"
39997 if test "x$PLATFORM_MACOSX" = "x1" ; then
39998 COND_PLATFORM_MACOSX_1=""
39999 fi
40000
40001 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40002 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40003 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40004 fi
40005
40006 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40007 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40008 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40009 fi
40010
40011 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40012 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40013 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40014 fi
40015
40016 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40017 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40018 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40019 fi
40020
40021 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40022 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40023 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40024 fi
40025
40026 COND_PLATFORM_MAC_1="#"
40027 if test "x$PLATFORM_MAC" = "x1" ; then
40028 COND_PLATFORM_MAC_1=""
40029 fi
40030
40031 COND_PLATFORM_OS2_1="#"
40032 if test "x$PLATFORM_OS2" = "x1" ; then
40033 COND_PLATFORM_OS2_1=""
40034 fi
40035
40036 COND_PLATFORM_UNIX_0="#"
40037 if test "x$PLATFORM_UNIX" = "x0" ; then
40038 COND_PLATFORM_UNIX_0=""
40039 fi
40040
40041 COND_PLATFORM_UNIX_1="#"
40042 if test "x$PLATFORM_UNIX" = "x1" ; then
40043 COND_PLATFORM_UNIX_1=""
40044 fi
40045
40046 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40047 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40048 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40049 fi
40050
40051 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40052 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40053 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40054 fi
40055
40056 COND_PLATFORM_WIN32_0="#"
40057 if test "x$PLATFORM_WIN32" = "x0" ; then
40058 COND_PLATFORM_WIN32_0=""
40059 fi
40060
40061 COND_PLATFORM_WIN32_1="#"
40062 if test "x$PLATFORM_WIN32" = "x1" ; then
40063 COND_PLATFORM_WIN32_1=""
40064 fi
40065
40066 COND_SHARED_0="#"
40067 if test "x$SHARED" = "x0" ; then
40068 COND_SHARED_0=""
40069 fi
40070
40071 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40072 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40073 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40074 fi
40075
40076 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40077 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40078 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40079 fi
40080
40081 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40082 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40083 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40084 fi
40085
40086 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40087 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40088 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40089 fi
40090
40091 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40092 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40093 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40094 fi
40095
40096 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40097 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40098 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40099 fi
40100
40101 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40102 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40103 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40104 fi
40105
40106 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40107 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40108 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40109 fi
40110
40111 COND_SHARED_1="#"
40112 if test "x$SHARED" = "x1" ; then
40113 COND_SHARED_1=""
40114 fi
40115
40116 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40117 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40118 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40119 fi
40120
40121 COND_TOOLKIT_COCOA="#"
40122 if test "x$TOOLKIT" = "xCOCOA" ; then
40123 COND_TOOLKIT_COCOA=""
40124 fi
40125
40126 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40127 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40128 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40129 fi
40130
40131 COND_TOOLKIT_GTK="#"
40132 if test "x$TOOLKIT" = "xGTK" ; then
40133 COND_TOOLKIT_GTK=""
40134 fi
40135
40136 COND_TOOLKIT_GTK_USE_GUI_1="#"
40137 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40138 COND_TOOLKIT_GTK_USE_GUI_1=""
40139 fi
40140
40141 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40142 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40143 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40144 fi
40145
40146 COND_TOOLKIT_MAC="#"
40147 if test "x$TOOLKIT" = "xMAC" ; then
40148 COND_TOOLKIT_MAC=""
40149 fi
40150
40151 COND_TOOLKIT_MAC_USE_GUI_1="#"
40152 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40153 COND_TOOLKIT_MAC_USE_GUI_1=""
40154 fi
40155
40156 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40157 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40158 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40159 fi
40160
e835546c
DE
40161 COND_TOOLKIT_MAC_WXUNIV_0="#"
40162 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40163 COND_TOOLKIT_MAC_WXUNIV_0=""
40164 fi
40165
a848cd7e
SC
40166 COND_TOOLKIT_MGL="#"
40167 if test "x$TOOLKIT" = "xMGL" ; then
40168 COND_TOOLKIT_MGL=""
40169 fi
40170
40171 COND_TOOLKIT_MGL_USE_GUI_1="#"
40172 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40173 COND_TOOLKIT_MGL_USE_GUI_1=""
40174 fi
40175
40176 COND_TOOLKIT_MOTIF="#"
40177 if test "x$TOOLKIT" = "xMOTIF" ; then
40178 COND_TOOLKIT_MOTIF=""
40179 fi
40180
40181 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40182 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40183 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40184 fi
40185
40186 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40187 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40188 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40189 fi
40190
40191 COND_TOOLKIT_MSW="#"
40192 if test "x$TOOLKIT" = "xMSW" ; then
40193 COND_TOOLKIT_MSW=""
40194 fi
40195
40196 COND_TOOLKIT_MSW_USE_GUI_1="#"
40197 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40198 COND_TOOLKIT_MSW_USE_GUI_1=""
40199 fi
40200
40201 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40202 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40203 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40204 fi
40205
e835546c
DE
40206 COND_TOOLKIT_MSW_WXUNIV_0="#"
40207 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40208 COND_TOOLKIT_MSW_WXUNIV_0=""
40209 fi
40210
a848cd7e
SC
40211 COND_TOOLKIT_PM="#"
40212 if test "x$TOOLKIT" = "xPM" ; then
40213 COND_TOOLKIT_PM=""
40214 fi
40215
40216 COND_TOOLKIT_PM_USE_GUI_1="#"
40217 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40218 COND_TOOLKIT_PM_USE_GUI_1=""
40219 fi
40220
40221 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40222 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40223 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40224 fi
40225
e835546c
DE
40226 COND_TOOLKIT_PM_WXUNIV_0="#"
40227 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40228 COND_TOOLKIT_PM_WXUNIV_0=""
40229 fi
40230
3fd9c298
DE
40231 COND_TOOLKIT_WINCE="#"
40232 if test "x$TOOLKIT" = "xWINCE" ; then
40233 COND_TOOLKIT_WINCE=""
40234 fi
40235
40236 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40237 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40238 COND_TOOLKIT_WINCE_USE_GUI_1=""
40239 fi
40240
40241 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40242 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40243 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40244 fi
40245
a848cd7e
SC
40246 COND_TOOLKIT_X11="#"
40247 if test "x$TOOLKIT" = "xX11" ; then
40248 COND_TOOLKIT_X11=""
40249 fi
40250
40251 COND_TOOLKIT_X11_USE_GUI_1="#"
40252 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40253 COND_TOOLKIT_X11_USE_GUI_1=""
40254 fi
40255
40256 COND_UNICODE_1="#"
40257 if test "x$UNICODE" = "x1" ; then
40258 COND_UNICODE_1=""
40259 fi
40260
40261 COND_USE_EXCEPTIONS_0="#"
40262 if test "x$USE_EXCEPTIONS" = "x0" ; then
40263 COND_USE_EXCEPTIONS_0=""
40264 fi
40265
40266 COND_USE_EXCEPTIONS_1="#"
40267 if test "x$USE_EXCEPTIONS" = "x1" ; then
40268 COND_USE_EXCEPTIONS_1=""
40269 fi
40270
40271 COND_USE_GUI_0="#"
40272 if test "x$USE_GUI" = "x0" ; then
40273 COND_USE_GUI_0=""
40274 fi
40275
40276 COND_USE_GUI_1="#"
40277 if test "x$USE_GUI" = "x1" ; then
40278 COND_USE_GUI_1=""
40279 fi
40280
40281 COND_USE_GUI_1_WXUNIV_0="#"
40282 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40283 COND_USE_GUI_1_WXUNIV_0=""
40284 fi
40285
40286 COND_USE_GUI_1_WXUNIV_1="#"
40287 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40288 COND_USE_GUI_1_WXUNIV_1=""
40289 fi
40290
40291 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40292 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40293 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40294 fi
40295
40296 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40297 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40298 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40299 fi
40300
40301 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40302 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40303 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40304 fi
40305
40306 COND_USE_ODBC_1="#"
40307 if test "x$USE_ODBC" = "x1" ; then
40308 COND_USE_ODBC_1=""
40309 fi
40310
40311 COND_USE_PLUGINS_0="#"
40312 if test "x$USE_PLUGINS" = "x0" ; then
40313 COND_USE_PLUGINS_0=""
40314 fi
40315
40316 COND_USE_SOSYMLINKS_1="#"
40317 if test "x$USE_SOSYMLINKS" = "x1" ; then
40318 COND_USE_SOSYMLINKS_1=""
40319 fi
40320
40321 COND_USE_SOVERLINUX_1="#"
40322 if test "x$USE_SOVERLINUX" = "x1" ; then
40323 COND_USE_SOVERLINUX_1=""
40324 fi
40325
40326 COND_USE_SOVERSION_0="#"
40327 if test "x$USE_SOVERSION" = "x0" ; then
40328 COND_USE_SOVERSION_0=""
40329 fi
40330
40331 COND_USE_SOVERSOLARIS_1="#"
40332 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40333 COND_USE_SOVERSOLARIS_1=""
40334 fi
40335
40336 COND_WITH_PLUGIN_SDL_1="#"
40337 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40338 COND_WITH_PLUGIN_SDL_1=""
40339 fi
40340
40341 COND_WITH_SDL_1="#"
40342 if test "x$WITH_SDL" = "x1" ; then
40343 COND_WITH_SDL_1=""
40344 fi
40345
40346 COND_WXUNIV_1="#"
40347 if test "x$WXUNIV" = "x1" ; then
40348 COND_WXUNIV_1=""
40349 fi
40350
40351 COND_WXUSE_EXPAT_BUILTIN="#"
40352 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40353 COND_WXUSE_EXPAT_BUILTIN=""
40354 fi
40355
40356 COND_WXUSE_LIBJPEG_BUILTIN="#"
40357 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40358 COND_WXUSE_LIBJPEG_BUILTIN=""
40359 fi
40360
40361 COND_WXUSE_LIBPNG_BUILTIN="#"
40362 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40363 COND_WXUSE_LIBPNG_BUILTIN=""
40364 fi
40365
40366 COND_WXUSE_LIBTIFF_BUILTIN="#"
40367 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40368 COND_WXUSE_LIBTIFF_BUILTIN=""
40369 fi
40370
40371 COND_WXUSE_ODBC_BUILTIN="#"
40372 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40373 COND_WXUSE_ODBC_BUILTIN=""
40374 fi
40375
40376 COND_WXUSE_REGEX_BUILTIN="#"
40377 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40378 COND_WXUSE_REGEX_BUILTIN=""
40379 fi
40380
40381 COND_WXUSE_ZLIB_BUILTIN="#"
40382 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40383 COND_WXUSE_ZLIB_BUILTIN=""
40384 fi
40385
dcc1b6ad
VS
40386 COND_BUILD_DEBUG="#"
40387 if test "x$BUILD" = "xdebug" ; then
40388 COND_BUILD_DEBUG=""
40389 fi
40390
40391 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40392 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40393 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40394 fi
40395
40396 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40397 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40398 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40399 fi
40400
40401 COND_BUILD_DEBUG_UNICODE_0="#"
40402 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40403 COND_BUILD_DEBUG_UNICODE_0=""
40404 fi
40405
40406 COND_BUILD_DEBUG_UNICODE_1="#"
40407 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40408 COND_BUILD_DEBUG_UNICODE_1=""
40409 fi
40410
40411 COND_BUILD_RELEASE="#"
40412 if test "x$BUILD" = "xrelease" ; then
40413 COND_BUILD_RELEASE=""
40414 fi
40415
40416 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40417 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40418 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40419 fi
40420
40421 COND_BUILD_RELEASE_UNICODE_0="#"
40422 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40423 COND_BUILD_RELEASE_UNICODE_0=""
40424 fi
40425
40426 COND_BUILD_RELEASE_UNICODE_1="#"
40427 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40428 COND_BUILD_RELEASE_UNICODE_1=""
40429 fi
40430
40431 COND_DEBUG_FLAG_1="#"
40432 if test "x$DEBUG_FLAG" = "x1" ; then
40433 COND_DEBUG_FLAG_1=""
40434 fi
40435
40436 COND_DEBUG_INFO_0="#"
40437 if test "x$DEBUG_INFO" = "x0" ; then
40438 COND_DEBUG_INFO_0=""
40439 fi
40440
40441 COND_DEBUG_INFO_1="#"
40442 if test "x$DEBUG_INFO" = "x1" ; then
40443 COND_DEBUG_INFO_1=""
40444 fi
40445
40446 COND_DEPS_TRACKING_0="#"
40447 if test "x$DEPS_TRACKING" = "x0" ; then
40448 COND_DEPS_TRACKING_0=""
40449 fi
40450
40451 COND_DEPS_TRACKING_1="#"
40452 if test "x$DEPS_TRACKING" = "x1" ; then
40453 COND_DEPS_TRACKING_1=""
40454 fi
40455
40456 COND_GCC_PCH_1="#"
40457 if test "x$GCC_PCH" = "x1" ; then
40458 COND_GCC_PCH_1=""
40459 fi
40460
40461 COND_MONOLITHIC_0="#"
40462 if test "x$MONOLITHIC" = "x0" ; then
40463 COND_MONOLITHIC_0=""
40464 fi
40465
40466 COND_MONOLITHIC_0_SHARED_0="#"
40467 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40468 COND_MONOLITHIC_0_SHARED_0=""
40469 fi
40470
40471 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40472 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40473 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40474 fi
40475
40476 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40477 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40478 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40479 fi
40480
40481 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40482 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40483 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40484 fi
40485
40486 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40487 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40488 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40489 fi
40490
40491 COND_MONOLITHIC_0_SHARED_1="#"
40492 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40493 COND_MONOLITHIC_0_SHARED_1=""
40494 fi
40495
40496 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40497 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40498 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40499 fi
40500
40501 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40502 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40503 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40504 fi
40505
40506 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40507 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40508 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40509 fi
40510
40511 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40512 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40513 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40514 fi
40515
40516 COND_MONOLITHIC_0_USE_ODBC_1="#"
40517 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40518 COND_MONOLITHIC_0_USE_ODBC_1=""
40519 fi
40520
40521 COND_MONOLITHIC_1="#"
40522 if test "x$MONOLITHIC" = "x1" ; then
40523 COND_MONOLITHIC_1=""
40524 fi
40525
40526 COND_MONOLITHIC_1_SHARED_0="#"
40527 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40528 COND_MONOLITHIC_1_SHARED_0=""
40529 fi
40530
40531 COND_MONOLITHIC_1_SHARED_1="#"
40532 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40533 COND_MONOLITHIC_1_SHARED_1=""
40534 fi
40535
40536 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40537 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40538 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40539 fi
40540
40541 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40542 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40543 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40544 fi
40545
40546 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40547 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40548 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40549 fi
40550
40551 COND_PLATFORM_MACOSX_1="#"
40552 if test "x$PLATFORM_MACOSX" = "x1" ; then
40553 COND_PLATFORM_MACOSX_1=""
40554 fi
40555
40556 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40557 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40558 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40559 fi
40560
40561 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40562 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40563 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40564 fi
40565
40566 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40567 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40568 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40569 fi
40570
40571 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40572 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40573 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40574 fi
40575
40576 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40577 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40578 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40579 fi
40580
40581 COND_PLATFORM_MAC_1="#"
40582 if test "x$PLATFORM_MAC" = "x1" ; then
40583 COND_PLATFORM_MAC_1=""
40584 fi
40585
40586 COND_PLATFORM_OS2_1="#"
40587 if test "x$PLATFORM_OS2" = "x1" ; then
40588 COND_PLATFORM_OS2_1=""
40589 fi
40590
40591 COND_PLATFORM_UNIX_0="#"
40592 if test "x$PLATFORM_UNIX" = "x0" ; then
40593 COND_PLATFORM_UNIX_0=""
40594 fi
40595
40596 COND_PLATFORM_UNIX_1="#"
40597 if test "x$PLATFORM_UNIX" = "x1" ; then
40598 COND_PLATFORM_UNIX_1=""
40599 fi
40600
40601 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40602 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40603 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40604 fi
40605
40606 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40607 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40608 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40609 fi
40610
40611 COND_PLATFORM_WIN32_0="#"
40612 if test "x$PLATFORM_WIN32" = "x0" ; then
40613 COND_PLATFORM_WIN32_0=""
40614 fi
40615
40616 COND_PLATFORM_WIN32_1="#"
40617 if test "x$PLATFORM_WIN32" = "x1" ; then
40618 COND_PLATFORM_WIN32_1=""
40619 fi
40620
40621 COND_SHARED_0="#"
40622 if test "x$SHARED" = "x0" ; then
40623 COND_SHARED_0=""
40624 fi
40625
40626 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40627 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40628 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40629 fi
40630
40631 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40632 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40633 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40634 fi
40635
40636 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40637 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40638 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40639 fi
40640
40641 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40642 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40643 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40644 fi
40645
40646 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40647 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40648 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40649 fi
40650
40651 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40652 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40653 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40654 fi
40655
40656 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40657 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40658 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40659 fi
40660
40661 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40662 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40663 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40664 fi
40665
40666 COND_SHARED_1="#"
40667 if test "x$SHARED" = "x1" ; then
40668 COND_SHARED_1=""
40669 fi
40670
40671 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40672 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40673 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40674 fi
40675
40676 COND_TOOLKIT_COCOA="#"
40677 if test "x$TOOLKIT" = "xCOCOA" ; then
40678 COND_TOOLKIT_COCOA=""
40679 fi
40680
40681 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40682 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40683 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40684 fi
40685
40686 COND_TOOLKIT_GTK="#"
40687 if test "x$TOOLKIT" = "xGTK" ; then
40688 COND_TOOLKIT_GTK=""
40689 fi
40690
40691 COND_TOOLKIT_GTK_USE_GUI_1="#"
40692 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40693 COND_TOOLKIT_GTK_USE_GUI_1=""
40694 fi
40695
40696 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40697 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40698 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40699 fi
40700
40701 COND_TOOLKIT_MAC="#"
40702 if test "x$TOOLKIT" = "xMAC" ; then
40703 COND_TOOLKIT_MAC=""
40704 fi
40705
40706 COND_TOOLKIT_MAC_USE_GUI_1="#"
40707 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40708 COND_TOOLKIT_MAC_USE_GUI_1=""
40709 fi
40710
40711 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40712 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40713 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40714 fi
40715
40716 COND_TOOLKIT_MGL="#"
40717 if test "x$TOOLKIT" = "xMGL" ; then
40718 COND_TOOLKIT_MGL=""
40719 fi
40720
40721 COND_TOOLKIT_MGL_USE_GUI_1="#"
40722 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40723 COND_TOOLKIT_MGL_USE_GUI_1=""
40724 fi
40725
40726 COND_TOOLKIT_MOTIF="#"
40727 if test "x$TOOLKIT" = "xMOTIF" ; then
40728 COND_TOOLKIT_MOTIF=""
40729 fi
40730
40731 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40732 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40733 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40734 fi
40735
40736 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40737 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40738 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40739 fi
40740
40741 COND_TOOLKIT_MSW="#"
40742 if test "x$TOOLKIT" = "xMSW" ; then
40743 COND_TOOLKIT_MSW=""
40744 fi
40745
40746 COND_TOOLKIT_MSW_USE_GUI_1="#"
40747 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40748 COND_TOOLKIT_MSW_USE_GUI_1=""
40749 fi
40750
40751 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40752 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40753 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40754 fi
40755
40756 COND_TOOLKIT_PM="#"
40757 if test "x$TOOLKIT" = "xPM" ; then
40758 COND_TOOLKIT_PM=""
40759 fi
40760
40761 COND_TOOLKIT_PM_USE_GUI_1="#"
40762 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40763 COND_TOOLKIT_PM_USE_GUI_1=""
40764 fi
40765
40766 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40767 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40768 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40769 fi
40770
40771 COND_TOOLKIT_WINCE="#"
40772 if test "x$TOOLKIT" = "xWINCE" ; then
40773 COND_TOOLKIT_WINCE=""
40774 fi
40775
40776 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40777 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40778 COND_TOOLKIT_WINCE_USE_GUI_1=""
40779 fi
40780
40781 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40782 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40783 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40784 fi
40785
40786 COND_TOOLKIT_X11="#"
40787 if test "x$TOOLKIT" = "xX11" ; then
40788 COND_TOOLKIT_X11=""
40789 fi
40790
40791 COND_TOOLKIT_X11_USE_GUI_1="#"
40792 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40793 COND_TOOLKIT_X11_USE_GUI_1=""
40794 fi
40795
40796 COND_UNICODE_1="#"
40797 if test "x$UNICODE" = "x1" ; then
40798 COND_UNICODE_1=""
40799 fi
40800
40801 COND_USE_EXCEPTIONS_0="#"
40802 if test "x$USE_EXCEPTIONS" = "x0" ; then
40803 COND_USE_EXCEPTIONS_0=""
40804 fi
40805
40806 COND_USE_EXCEPTIONS_1="#"
40807 if test "x$USE_EXCEPTIONS" = "x1" ; then
40808 COND_USE_EXCEPTIONS_1=""
40809 fi
40810
40811 COND_USE_GUI_0="#"
40812 if test "x$USE_GUI" = "x0" ; then
40813 COND_USE_GUI_0=""
40814 fi
40815
40816 COND_USE_GUI_1="#"
40817 if test "x$USE_GUI" = "x1" ; then
40818 COND_USE_GUI_1=""
40819 fi
40820
40821 COND_USE_GUI_1_WXUNIV_0="#"
40822 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40823 COND_USE_GUI_1_WXUNIV_0=""
40824 fi
40825
40826 COND_USE_GUI_1_WXUNIV_1="#"
40827 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40828 COND_USE_GUI_1_WXUNIV_1=""
40829 fi
40830
40831 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40832 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40833 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40834 fi
40835
40836 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40837 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40838 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40839 fi
40840
40841 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40842 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40843 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40844 fi
40845
40846 COND_USE_ODBC_1="#"
40847 if test "x$USE_ODBC" = "x1" ; then
40848 COND_USE_ODBC_1=""
40849 fi
40850
40851 COND_USE_PLUGINS_0="#"
40852 if test "x$USE_PLUGINS" = "x0" ; then
40853 COND_USE_PLUGINS_0=""
40854 fi
40855
40856 COND_USE_SOSYMLINKS_1="#"
40857 if test "x$USE_SOSYMLINKS" = "x1" ; then
40858 COND_USE_SOSYMLINKS_1=""
40859 fi
40860
40861 COND_USE_SOVERLINUX_1="#"
40862 if test "x$USE_SOVERLINUX" = "x1" ; then
40863 COND_USE_SOVERLINUX_1=""
40864 fi
40865
40866 COND_USE_SOVERSION_0="#"
40867 if test "x$USE_SOVERSION" = "x0" ; then
40868 COND_USE_SOVERSION_0=""
40869 fi
40870
40871 COND_USE_SOVERSOLARIS_1="#"
40872 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40873 COND_USE_SOVERSOLARIS_1=""
40874 fi
40875
40876 COND_WITH_PLUGIN_SDL_1="#"
40877 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40878 COND_WITH_PLUGIN_SDL_1=""
40879 fi
40880
40881 COND_WXUNIV_1="#"
40882 if test "x$WXUNIV" = "x1" ; then
40883 COND_WXUNIV_1=""
40884 fi
40885
40886 COND_WXUSE_EXPAT_BUILTIN="#"
40887 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40888 COND_WXUSE_EXPAT_BUILTIN=""
40889 fi
40890
40891 COND_WXUSE_LIBJPEG_BUILTIN="#"
40892 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40893 COND_WXUSE_LIBJPEG_BUILTIN=""
40894 fi
40895
40896 COND_WXUSE_LIBPNG_BUILTIN="#"
40897 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40898 COND_WXUSE_LIBPNG_BUILTIN=""
40899 fi
40900
40901 COND_WXUSE_LIBTIFF_BUILTIN="#"
40902 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40903 COND_WXUSE_LIBTIFF_BUILTIN=""
40904 fi
40905
40906 COND_WXUSE_ODBC_BUILTIN="#"
40907 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40908 COND_WXUSE_ODBC_BUILTIN=""
40909 fi
40910
40911 COND_WXUSE_REGEX_BUILTIN="#"
40912 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40913 COND_WXUSE_REGEX_BUILTIN=""
40914 fi
40915
40916 COND_WXUSE_ZLIB_BUILTIN="#"
40917 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40918 COND_WXUSE_ZLIB_BUILTIN=""
40919 fi
40920
a848cd7e
SC
40921
40922
2057db16
VS
40923 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40924 { { 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
40925echo "$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;}
40926 { (exit 1); exit 1; }; }
40927 fi
40928
a848cd7e
SC
40929
40930
74b84332 40931GCC_PRAGMA_FLAGS=""
a848cd7e 40932if test $GCC_PCH = 1 ; then
74b84332 40933 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40934else
40935 case "${host}" in
40936 powerpc-*-darwin* )
74b84332 40937 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40938 ;;
bea8e651 40939 *-*-mingw32* )
1f344abf
VS
40940 if test "$wxUSE_STL" = "yes" -o \
40941 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40942 "$wxUSE_NO_RTTI" != "yes"; then
40943 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40944echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40945 cat >conftest.$ac_ext <<_ACEOF
40946/* confdefs.h. */
40947_ACEOF
40948cat confdefs.h >>conftest.$ac_ext
40949cat >>conftest.$ac_ext <<_ACEOF
40950/* end confdefs.h. */
40951
40952int
40953main ()
40954{
1f344abf 40955#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40956 #error "Not GCC 3.2 or greater"
40957 #endif
40958
40959 ;
40960 return 0;
40961}
40962_ACEOF
40963rm -f conftest.$ac_objext
40964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40965 (eval $ac_compile) 2>conftest.er1
bea8e651 40966 ac_status=$?
ac1cb8d3
VS
40967 grep -v '^ *+' conftest.er1 >conftest.err
40968 rm -f conftest.er1
40969 cat conftest.err >&5
bea8e651
MB
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); } &&
ea7db9ff
DE
40972 { ac_try='test -z "$ac_c_werror_flag"
40973 || test ! -s conftest.err'
ac1cb8d3
VS
40974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40975 (eval $ac_try) 2>&5
40976 ac_status=$?
40977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978 (exit $ac_status); }; } &&
40979 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40981 (eval $ac_try) 2>&5
40982 ac_status=$?
40983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984 (exit $ac_status); }; }; then
74b84332 40985 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40986 echo "$as_me:$LINENO: result: yes" >&5
40987echo "${ECHO_T}yes" >&6
40988else
40989 echo "$as_me: failed program was:" >&5
40990sed 's/^/| /' conftest.$ac_ext >&5
40991
40992echo "$as_me:$LINENO: result: no" >&5
40993echo "${ECHO_T}no" >&6
40994fi
ac1cb8d3 40995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40996 fi
40997 ;;
a848cd7e
SC
40998 esac
40999fi
74b84332 41000CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41001
41002
41003SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101
74b84332 41102
224bf05c 41103
a848cd7e
SC
41104
41105
41106echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41107echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41108set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41109if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41110 echo $ECHO_N "(cached) $ECHO_C" >&6
41111else
41112 cat >conftest.make <<\_ACEOF
41113all:
41114 @echo 'ac_maketemp="$(MAKE)"'
41115_ACEOF
41116# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41117eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41118if test -n "$ac_maketemp"; then
41119 eval ac_cv_prog_make_${ac_make}_set=yes
41120else
41121 eval ac_cv_prog_make_${ac_make}_set=no
41122fi
41123rm -f conftest.make
41124fi
41125if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41126 echo "$as_me:$LINENO: result: yes" >&5
41127echo "${ECHO_T}yes" >&6
41128 SET_MAKE=
41129else
41130 echo "$as_me:$LINENO: result: no" >&5
41131echo "${ECHO_T}no" >&6
41132 SET_MAKE="MAKE=${MAKE-make}"
41133fi
41134
41135
41136if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41137 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41138fi
41139
41140 ac_config_headers="$ac_config_headers setup.h"
41141
41142
8708fa76 41143 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
41144
41145
41146 ac_config_commands="$ac_config_commands default"
41147
41148
41149
41150if test "$wxUSE_GUI" = "yes"; then
41151 SUBDIRS="samples demos utils contrib"
41152else SUBDIRS="samples utils"
41153fi
41154
41155
41156
41157# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41158if test "${with_cppunit_prefix+set}" = set; then
41159 withval="$with_cppunit_prefix"
41160 cppunit_config_prefix="$withval"
41161else
41162 cppunit_config_prefix=""
41163fi;
41164
41165# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41166if test "${with_cppunit_exec_prefix+set}" = set; then
41167 withval="$with_cppunit_exec_prefix"
41168 cppunit_config_exec_prefix="$withval"
41169else
41170 cppunit_config_exec_prefix=""
41171fi;
41172
41173 if test x$cppunit_config_exec_prefix != x ; then
41174 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41175 if test x${CPPUNIT_CONFIG+set} != xset ; then
41176 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41177 fi
41178 fi
41179 if test x$cppunit_config_prefix != x ; then
41180 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41181 if test x${CPPUNIT_CONFIG+set} != xset ; then
41182 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41183 fi
41184 fi
41185
41186 # Extract the first word of "cppunit-config", so it can be a program name with args.
41187set dummy cppunit-config; ac_word=$2
41188echo "$as_me:$LINENO: checking for $ac_word" >&5
41189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41190if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41191 echo $ECHO_N "(cached) $ECHO_C" >&6
41192else
41193 case $CPPUNIT_CONFIG in
41194 [\\/]* | ?:[\\/]*)
41195 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41196 ;;
41197 *)
41198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41199for as_dir in $PATH
41200do
41201 IFS=$as_save_IFS
41202 test -z "$as_dir" && as_dir=.
41203 for ac_exec_ext in '' $ac_executable_extensions; do
41204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41205 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41207 break 2
41208 fi
41209done
41210done
41211
41212 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41213 ;;
41214esac
41215fi
41216CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41217
41218if test -n "$CPPUNIT_CONFIG"; then
41219 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41220echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41221else
41222 echo "$as_me:$LINENO: result: no" >&5
41223echo "${ECHO_T}no" >&6
41224fi
41225
41226 cppunit_version_min=1.8.0
41227
41228 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41229echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41230 no_cppunit=""
41231 if test "$CPPUNIT_CONFIG" = "no" ; then
41232 no_cppunit=yes
41233 else
41234 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41235 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41236 cppunit_version=`$CPPUNIT_CONFIG --version`
41237
41238 cppunit_major_version=`echo $cppunit_version | \
41239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41240 cppunit_minor_version=`echo $cppunit_version | \
41241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41242 cppunit_micro_version=`echo $cppunit_version | \
41243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41244
41245 cppunit_major_min=`echo $cppunit_version_min | \
41246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41247 cppunit_minor_min=`echo $cppunit_version_min | \
41248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41249 cppunit_micro_min=`echo $cppunit_version_min | \
41250 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41251
41252 cppunit_version_proper=`expr \
41253 $cppunit_major_version \> $cppunit_major_min \| \
41254 $cppunit_major_version \= $cppunit_major_min \& \
41255 $cppunit_minor_version \> $cppunit_minor_min \| \
41256 $cppunit_major_version \= $cppunit_major_min \& \
41257 $cppunit_minor_version \= $cppunit_minor_min \& \
41258 $cppunit_micro_version \>= $cppunit_micro_min `
41259
41260 if test "$cppunit_version_proper" = "1" ; then
41261 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41262echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41263 else
41264 echo "$as_me:$LINENO: result: no" >&5
41265echo "${ECHO_T}no" >&6
41266 no_cppunit=yes
41267 fi
41268 fi
41269
41270 if test "x$no_cppunit" = x ; then
c2218763 41271 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41272 else
41273 CPPUNIT_CFLAGS=""
41274 CPPUNIT_LIBS=""
c2218763 41275 :
a848cd7e
SC
41276 fi
41277
41278
41279
41280
41281
41282for subdir in `echo $SUBDIRS`; do
41283 if test -d ${srcdir}/${subdir} ; then
41284 if test "$wxUSE_GUI" = "yes"; then
41285 if test ${subdir} = "samples"; then
41286 makefiles="samples/Makefile.in $makefiles"
41287 for sample in `echo $SAMPLES_SUBDIRS`; do
41288 if test -d $srcdir/samples/$sample; then
41289 makefiles="samples/$sample/Makefile.in $makefiles"
41290 fi
41291 done
41292 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41293 fi
41294 else if test ${subdir} = "samples"; then
41295 makefiles="samples/Makefile.in samples/console/Makefile.in"
41296 elif test ${subdir} = "utils"; then
41297 makefiles="utils/HelpGen/Makefile.in \
41298 utils/HelpGen/src/Makefile.in \
41299 utils/tex2rtf/Makefile.in \
41300 utils/tex2rtf/src/Makefile.in"
41301 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41302 fi
41303 fi
41304
41305 for mkin in $makefiles ; do
41306 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41307 ac_config_files="$ac_config_files $mk"
41308
41309 done
41310 fi
41311done
41312
41313
41314cat >confcache <<\_ACEOF
41315# This file is a shell script that caches the results of configure
41316# tests run on this system so they can be shared between configure
41317# scripts and configure runs, see configure's option --config-cache.
41318# It is not useful on other systems. If it contains results you don't
41319# want to keep, you may remove or edit it.
41320#
41321# config.status only pays attention to the cache file if you give it
41322# the --recheck option to rerun configure.
41323#
41324# `ac_cv_env_foo' variables (set or unset) will be overridden when
41325# loading this file, other *unset* `ac_cv_foo' will be assigned the
41326# following values.
41327
41328_ACEOF
41329
41330# The following way of writing the cache mishandles newlines in values,
41331# but we know of no workaround that is simple, portable, and efficient.
41332# So, don't put newlines in cache variables' values.
41333# Ultrix sh set writes to stderr and can't be redirected directly,
41334# and sets the high bit in the cache file unless we assign to the vars.
41335{
41336 (set) 2>&1 |
41337 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41338 *ac_space=\ *)
41339 # `set' does not quote correctly, so add quotes (double-quote
41340 # substitution turns \\\\ into \\, and sed turns \\ into \).
41341 sed -n \
ac1cb8d3
VS
41342 "s/'/'\\\\''/g;
41343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41344 ;;
41345 *)
41346 # `set' quotes correctly as required by POSIX, so do not add quotes.
41347 sed -n \
ac1cb8d3 41348 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41349 ;;
41350 esac;
41351} |
41352 sed '
41353 t clear
41354 : clear
41355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41356 t end
41357 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41358 : end' >>confcache
41359if diff $cache_file confcache >/dev/null 2>&1; then :; else
41360 if test -w $cache_file; then
41361 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41362 cat confcache >$cache_file
41363 else
41364 echo "not updating unwritable cache $cache_file"
41365 fi
41366fi
41367rm -f confcache
41368
41369test "x$prefix" = xNONE && prefix=$ac_default_prefix
41370# Let make expand exec_prefix.
41371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41372
41373# VPATH may cause trouble with some makes, so we remove $(srcdir),
41374# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41375# trailing colons and then remove the whole line if VPATH becomes empty
41376# (actually we leave an empty line to preserve line numbers).
41377if test "x$srcdir" = x.; then
ac1cb8d3 41378 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41379s/:*\$(srcdir):*/:/;
41380s/:*\${srcdir}:*/:/;
41381s/:*@srcdir@:*/:/;
ac1cb8d3 41382s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41383s/:*$//;
ac1cb8d3 41384s/^[^=]*=[ ]*$//;
a848cd7e
SC
41385}'
41386fi
41387
41388DEFS=-DHAVE_CONFIG_H
41389
41390ac_libobjs=
41391ac_ltlibobjs=
41392for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41393 # 1. Remove the extension, and $U if already installed.
41394 ac_i=`echo "$ac_i" |
ac1cb8d3 41395 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41396 # 2. Add them.
41397 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41398 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41399done
41400LIBOBJS=$ac_libobjs
41401
41402LTLIBOBJS=$ac_ltlibobjs
41403
41404
41405
41406: ${CONFIG_STATUS=./config.status}
41407ac_clean_files_save=$ac_clean_files
41408ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41409{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41410echo "$as_me: creating $CONFIG_STATUS" >&6;}
41411cat >$CONFIG_STATUS <<_ACEOF
41412#! $SHELL
41413# Generated by $as_me.
41414# Run this file to recreate the current configuration.
41415# Compiler output produced by configure, useful for debugging
41416# configure, is in config.log if it exists.
41417
41418debug=false
41419ac_cs_recheck=false
41420ac_cs_silent=false
41421SHELL=\${CONFIG_SHELL-$SHELL}
41422_ACEOF
41423
41424cat >>$CONFIG_STATUS <<\_ACEOF
41425## --------------------- ##
41426## M4sh Initialization. ##
41427## --------------------- ##
41428
41429# Be Bourne compatible
41430if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41431 emulate sh
41432 NULLCMD=:
41433 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41434 # is contrary to our usage. Disable this feature.
41435 alias -g '${1+"$@"}'='"$@"'
41436elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41437 set -o posix
41438fi
ac1cb8d3 41439DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41440
41441# Support unset when possible.
ac1cb8d3 41442if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41443 as_unset=unset
41444else
41445 as_unset=false
41446fi
41447
41448
41449# Work around bugs in pre-3.0 UWIN ksh.
41450$as_unset ENV MAIL MAILPATH
41451PS1='$ '
41452PS2='> '
41453PS4='+ '
41454
41455# NLS nuisances.
41456for as_var in \
41457 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41458 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41459 LC_TELEPHONE LC_TIME
41460do
ac1cb8d3 41461 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41462 eval $as_var=C; export $as_var
41463 else
41464 $as_unset $as_var
41465 fi
41466done
41467
41468# Required to use basename.
41469if expr a : '\(a\)' >/dev/null 2>&1; then
41470 as_expr=expr
41471else
41472 as_expr=false
41473fi
41474
41475if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41476 as_basename=basename
41477else
41478 as_basename=false
41479fi
41480
41481
41482# Name of the executable.
41483as_me=`$as_basename "$0" ||
41484$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41485 X"$0" : 'X\(//\)$' \| \
41486 X"$0" : 'X\(/\)$' \| \
41487 . : '\(.\)' 2>/dev/null ||
41488echo X/"$0" |
41489 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41490 /^X\/\(\/\/\)$/{ s//\1/; q; }
41491 /^X\/\(\/\).*/{ s//\1/; q; }
41492 s/.*/./; q'`
41493
41494
41495# PATH needs CR, and LINENO needs CR and PATH.
41496# Avoid depending upon Character Ranges.
41497as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41498as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41499as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41500as_cr_digits='0123456789'
41501as_cr_alnum=$as_cr_Letters$as_cr_digits
41502
41503# The user is always right.
41504if test "${PATH_SEPARATOR+set}" != set; then
41505 echo "#! /bin/sh" >conf$$.sh
41506 echo "exit 0" >>conf$$.sh
41507 chmod +x conf$$.sh
41508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41509 PATH_SEPARATOR=';'
41510 else
41511 PATH_SEPARATOR=:
41512 fi
41513 rm -f conf$$.sh
41514fi
41515
41516
41517 as_lineno_1=$LINENO
41518 as_lineno_2=$LINENO
41519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41520 test "x$as_lineno_1" != "x$as_lineno_2" &&
41521 test "x$as_lineno_3" = "x$as_lineno_2" || {
41522 # Find who we are. Look in the path if we contain no path at all
41523 # relative or not.
41524 case $0 in
41525 *[\\/]* ) as_myself=$0 ;;
41526 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41527for as_dir in $PATH
41528do
41529 IFS=$as_save_IFS
41530 test -z "$as_dir" && as_dir=.
41531 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41532done
41533
41534 ;;
41535 esac
41536 # We did not find ourselves, most probably we were run as `sh COMMAND'
41537 # in which case we are not to be found in the path.
41538 if test "x$as_myself" = x; then
41539 as_myself=$0
41540 fi
41541 if test ! -f "$as_myself"; then
41542 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41543echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41544 { (exit 1); exit 1; }; }
41545 fi
41546 case $CONFIG_SHELL in
41547 '')
41548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41549for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41550do
41551 IFS=$as_save_IFS
41552 test -z "$as_dir" && as_dir=.
41553 for as_base in sh bash ksh sh5; do
41554 case $as_dir in
41555 /*)
41556 if ("$as_dir/$as_base" -c '
41557 as_lineno_1=$LINENO
41558 as_lineno_2=$LINENO
41559 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41560 test "x$as_lineno_1" != "x$as_lineno_2" &&
41561 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41562 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41563 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41564 CONFIG_SHELL=$as_dir/$as_base
41565 export CONFIG_SHELL
41566 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41567 fi;;
41568 esac
41569 done
41570done
41571;;
41572 esac
41573
41574 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41575 # uniformly replaced by the line number. The first 'sed' inserts a
41576 # line-number line before each line; the second 'sed' does the real
41577 # work. The second script uses 'N' to pair each line-number line
41578 # with the numbered line, and appends trailing '-' during
41579 # substitution so that $LINENO is not a special case at line end.
41580 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41581 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41582 sed '=' <$as_myself |
41583 sed '
41584 N
41585 s,$,-,
41586 : loop
41587 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41588 t loop
41589 s,-$,,
41590 s,^['$as_cr_digits']*\n,,
41591 ' >$as_me.lineno &&
41592 chmod +x $as_me.lineno ||
41593 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41594echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41595 { (exit 1); exit 1; }; }
41596
41597 # Don't try to exec as it changes $[0], causing all sort of problems
41598 # (the dirname of $[0] is not the place where we might find the
41599 # original and so on. Autoconf is especially sensible to this).
41600 . ./$as_me.lineno
41601 # Exit status is that of the last command.
41602 exit
41603}
41604
41605
41606case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41607 *c*,-n*) ECHO_N= ECHO_C='
41608' ECHO_T=' ' ;;
41609 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41610 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41611esac
41612
41613if expr a : '\(a\)' >/dev/null 2>&1; then
41614 as_expr=expr
41615else
41616 as_expr=false
41617fi
41618
41619rm -f conf$$ conf$$.exe conf$$.file
41620echo >conf$$.file
41621if ln -s conf$$.file conf$$ 2>/dev/null; then
41622 # We could just check for DJGPP; but this test a) works b) is more generic
41623 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41624 if test -f conf$$.exe; then
41625 # Don't use ln at all; we don't have any links
41626 as_ln_s='cp -p'
41627 else
41628 as_ln_s='ln -s'
41629 fi
41630elif ln conf$$.file conf$$ 2>/dev/null; then
41631 as_ln_s=ln
41632else
41633 as_ln_s='cp -p'
41634fi
41635rm -f conf$$ conf$$.exe conf$$.file
41636
41637if mkdir -p . 2>/dev/null; then
41638 as_mkdir_p=:
41639else
ac1cb8d3 41640 test -d ./-p && rmdir ./-p
a848cd7e
SC
41641 as_mkdir_p=false
41642fi
41643
41644as_executable_p="test -f"
41645
41646# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41647as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41648
41649# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41650as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41651
41652
41653# IFS
41654# We need space, tab and new line, in precisely that order.
41655as_nl='
41656'
41657IFS=" $as_nl"
41658
41659# CDPATH.
41660$as_unset CDPATH
41661
41662exec 6>&1
41663
41664# Open the log real soon, to keep \$[0] and so on meaningful, and to
41665# report actual input values of CONFIG_FILES etc. instead of their
41666# values after options handling. Logging --version etc. is OK.
41667exec 5>>config.log
41668{
41669 echo
41670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41671## Running $as_me. ##
41672_ASBOX
41673} >&5
41674cat >&5 <<_CSEOF
41675
77ffb593 41676This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41677generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41678
41679 CONFIG_FILES = $CONFIG_FILES
41680 CONFIG_HEADERS = $CONFIG_HEADERS
41681 CONFIG_LINKS = $CONFIG_LINKS
41682 CONFIG_COMMANDS = $CONFIG_COMMANDS
41683 $ $0 $@
41684
41685_CSEOF
41686echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41687echo >&5
41688_ACEOF
41689
41690# Files that config.status was made for.
41691if test -n "$ac_config_files"; then
41692 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41693fi
41694
41695if test -n "$ac_config_headers"; then
41696 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41697fi
41698
41699if test -n "$ac_config_links"; then
41700 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41701fi
41702
41703if test -n "$ac_config_commands"; then
41704 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41705fi
41706
41707cat >>$CONFIG_STATUS <<\_ACEOF
41708
41709ac_cs_usage="\
41710\`$as_me' instantiates files from templates according to the
41711current configuration.
41712
41713Usage: $0 [OPTIONS] [FILE]...
41714
41715 -h, --help print this help, then exit
41716 -V, --version print version number, then exit
41717 -q, --quiet do not print progress messages
41718 -d, --debug don't remove temporary files
41719 --recheck update $as_me by reconfiguring in the same conditions
41720 --file=FILE[:TEMPLATE]
ac1cb8d3 41721 instantiate the configuration file FILE
a848cd7e 41722 --header=FILE[:TEMPLATE]
ac1cb8d3 41723 instantiate the configuration header FILE
a848cd7e
SC
41724
41725Configuration files:
41726$config_files
41727
41728Configuration headers:
41729$config_headers
41730
41731Configuration commands:
41732$config_commands
41733
41734Report bugs to <bug-autoconf@gnu.org>."
41735_ACEOF
41736
41737cat >>$CONFIG_STATUS <<_ACEOF
41738ac_cs_version="\\
77ffb593 41739wxWidgets config.status 2.5.2
ac1cb8d3 41740configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41741 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41742
ac1cb8d3 41743Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41744This config.status script is free software; the Free Software Foundation
41745gives unlimited permission to copy, distribute and modify it."
41746srcdir=$srcdir
41747INSTALL="$INSTALL"
41748_ACEOF
41749
41750cat >>$CONFIG_STATUS <<\_ACEOF
41751# If no file are specified by the user, then we need to provide default
41752# value. By we need to know if files were specified by the user.
41753ac_need_defaults=:
41754while test $# != 0
41755do
41756 case $1 in
41757 --*=*)
41758 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41759 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41760 ac_shift=:
41761 ;;
41762 -*)
41763 ac_option=$1
41764 ac_optarg=$2
41765 ac_shift=shift
41766 ;;
41767 *) # This is not an option, so the user has probably given explicit
41768 # arguments.
41769 ac_option=$1
41770 ac_need_defaults=false;;
41771 esac
41772
41773 case $ac_option in
41774 # Handling of the options.
41775_ACEOF
41776cat >>$CONFIG_STATUS <<\_ACEOF
41777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41778 ac_cs_recheck=: ;;
41779 --version | --vers* | -V )
41780 echo "$ac_cs_version"; exit 0 ;;
41781 --he | --h)
41782 # Conflict between --help and --header
41783 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41784Try \`$0 --help' for more information." >&5
41785echo "$as_me: error: ambiguous option: $1
41786Try \`$0 --help' for more information." >&2;}
41787 { (exit 1); exit 1; }; };;
41788 --help | --hel | -h )
41789 echo "$ac_cs_usage"; exit 0 ;;
41790 --debug | --d* | -d )
41791 debug=: ;;
41792 --file | --fil | --fi | --f )
41793 $ac_shift
41794 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41795 ac_need_defaults=false;;
41796 --header | --heade | --head | --hea )
41797 $ac_shift
41798 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41799 ac_need_defaults=false;;
41800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41801 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41802 ac_cs_silent=: ;;
41803
41804 # This is an error.
41805 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41806Try \`$0 --help' for more information." >&5
41807echo "$as_me: error: unrecognized option: $1
41808Try \`$0 --help' for more information." >&2;}
41809 { (exit 1); exit 1; }; } ;;
41810
41811 *) ac_config_targets="$ac_config_targets $1" ;;
41812
41813 esac
41814 shift
41815done
41816
41817ac_configure_extra_args=
41818
41819if $ac_cs_silent; then
41820 exec 6>/dev/null
41821 ac_configure_extra_args="$ac_configure_extra_args --silent"
41822fi
41823
41824_ACEOF
41825cat >>$CONFIG_STATUS <<_ACEOF
41826if \$ac_cs_recheck; then
41827 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41828 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41829fi
41830
41831_ACEOF
41832
41833cat >>$CONFIG_STATUS <<_ACEOF
41834#
41835# INIT-COMMANDS section.
41836#
41837
41838
41839 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41840 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
a848cd7e
SC
41841 LN_S="${LN_S}"
41842
41843
41844
41845_ACEOF
41846
41847
41848
41849cat >>$CONFIG_STATUS <<\_ACEOF
41850for ac_config_target in $ac_config_targets
41851do
41852 case "$ac_config_target" in
41853 # Handling of arguments.
41854 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41855 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41856 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41857 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41858 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41859 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41860 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41862echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41863 { (exit 1); exit 1; }; };;
41864 esac
41865done
41866
41867# If the user did not use the arguments to specify the items to instantiate,
41868# then the envvar interface is used. Set only those that are not.
41869# We use the long form for the default assignment because of an extremely
41870# bizarre bug on SunOS 4.1.3.
41871if $ac_need_defaults; then
41872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41875fi
41876
41877# Have a temporary directory for convenience. Make it in the build tree
41878# simply because there is no reason to put it here, and in addition,
41879# creating and moving files from /tmp can sometimes cause problems.
41880# Create a temporary directory, and hook for its removal unless debugging.
41881$debug ||
41882{
41883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41884 trap '{ (exit 1); exit 1; }' 1 2 13 15
41885}
41886
41887# Create a (secure) tmp directory for tmp files.
41888
41889{
41890 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41891 test -n "$tmp" && test -d "$tmp"
41892} ||
41893{
41894 tmp=./confstat$$-$RANDOM
41895 (umask 077 && mkdir $tmp)
41896} ||
41897{
41898 echo "$me: cannot create a temporary directory in ." >&2
41899 { (exit 1); exit 1; }
41900}
41901
41902_ACEOF
41903
41904cat >>$CONFIG_STATUS <<_ACEOF
41905
41906#
41907# CONFIG_FILES section.
41908#
41909
41910# No need to generate the scripts if there are no CONFIG_FILES.
41911# This happens for instance when ./config.status config.h
41912if test -n "\$CONFIG_FILES"; then
41913 # Protect against being on the right side of a sed subst in config.status.
41914 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41915 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41916s,@SHELL@,$SHELL,;t t
41917s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41918s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41919s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41920s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41921s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41922s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41923s,@exec_prefix@,$exec_prefix,;t t
41924s,@prefix@,$prefix,;t t
41925s,@program_transform_name@,$program_transform_name,;t t
41926s,@bindir@,$bindir,;t t
41927s,@sbindir@,$sbindir,;t t
41928s,@libexecdir@,$libexecdir,;t t
41929s,@datadir@,$datadir,;t t
41930s,@sysconfdir@,$sysconfdir,;t t
41931s,@sharedstatedir@,$sharedstatedir,;t t
41932s,@localstatedir@,$localstatedir,;t t
41933s,@libdir@,$libdir,;t t
41934s,@includedir@,$includedir,;t t
41935s,@oldincludedir@,$oldincludedir,;t t
41936s,@infodir@,$infodir,;t t
41937s,@mandir@,$mandir,;t t
41938s,@build_alias@,$build_alias,;t t
41939s,@host_alias@,$host_alias,;t t
41940s,@target_alias@,$target_alias,;t t
41941s,@DEFS@,$DEFS,;t t
41942s,@ECHO_C@,$ECHO_C,;t t
41943s,@ECHO_N@,$ECHO_N,;t t
41944s,@ECHO_T@,$ECHO_T,;t t
41945s,@LIBS@,$LIBS,;t t
41946s,@build@,$build,;t t
41947s,@build_cpu@,$build_cpu,;t t
41948s,@build_vendor@,$build_vendor,;t t
41949s,@build_os@,$build_os,;t t
41950s,@host@,$host,;t t
41951s,@host_cpu@,$host_cpu,;t t
41952s,@host_vendor@,$host_vendor,;t t
41953s,@host_os@,$host_os,;t t
41954s,@target@,$target,;t t
41955s,@target_cpu@,$target_cpu,;t t
41956s,@target_vendor@,$target_vendor,;t t
41957s,@target_os@,$target_os,;t t
41958s,@CC@,$CC,;t t
41959s,@CFLAGS@,$CFLAGS,;t t
41960s,@LDFLAGS@,$LDFLAGS,;t t
41961s,@CPPFLAGS@,$CPPFLAGS,;t t
41962s,@ac_ct_CC@,$ac_ct_CC,;t t
41963s,@EXEEXT@,$EXEEXT,;t t
41964s,@OBJEXT@,$OBJEXT,;t t
41965s,@CPP@,$CPP,;t t
41966s,@EGREP@,$EGREP,;t t
41967s,@CXX@,$CXX,;t t
41968s,@CXXFLAGS@,$CXXFLAGS,;t t
41969s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41970s,@RANLIB@,$RANLIB,;t t
41971s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41972s,@AR@,$AR,;t t
41973s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41974s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41975s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41976s,@STRIP@,$STRIP,;t t
41977s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41978s,@LN_S@,$LN_S,;t t
41979s,@CXXCPP@,$CXXCPP,;t t
41980s,@subdirs@,$subdirs,;t t
41981s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41982s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41983s,@GTK_LIBS@,$GTK_LIBS,;t t
41984s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41985s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41986s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41987s,@X_CFLAGS@,$X_CFLAGS,;t t
41988s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41989s,@X_LIBS@,$X_LIBS,;t t
41990s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41991s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41992s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41993s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41994s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41995s,@RESCOMP@,$RESCOMP,;t t
41996s,@DEREZ@,$DEREZ,;t t
41997s,@SETFILE@,$SETFILE,;t t
41998s,@LIBICONV@,$LIBICONV,;t t
41999s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42000s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42001s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42002s,@SDL_LIBS@,$SDL_LIBS,;t t
42003s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42004s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42005s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42006s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42007s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42008s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42009s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42010s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42011s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42012s,@VENDOR@,$VENDOR,;t t
42013s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42014s,@WXUNIV@,$WXUNIV,;t t
42015s,@MONOLITHIC@,$MONOLITHIC,;t t
42016s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42017s,@EXTRALIBS@,$EXTRALIBS,;t t
42018s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42019s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42020s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42021s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42022s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42023s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42024s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42025s,@UNICODE@,$UNICODE,;t t
42026s,@BUILD@,$BUILD,;t t
42027s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42028s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42029s,@SHARED@,$SHARED,;t t
42030s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42031s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42032s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42033s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42034s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42035s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42036s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42037s,@SET_MAKE@,$SET_MAKE,;t t
42038s,@MAKE_SET@,$MAKE_SET,;t t
42039s,@ac_ct_AR@,$ac_ct_AR,;t t
42040s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42041s,@NM@,$NM,;t t
42042s,@ac_ct_NM@,$ac_ct_NM,;t t
42043s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42044s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42045s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42046s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42047s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42048s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42049s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42050s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42051s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42052s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42053s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42054s,@LIBPREFIX@,$LIBPREFIX,;t t
42055s,@LIBEXT@,$LIBEXT,;t t
42056s,@DLLPREFIX@,$DLLPREFIX,;t t
42057s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42058s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42059s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42060s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42061s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42062s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42063s,@PIC_FLAG@,$PIC_FLAG,;t t
42064s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42065s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42066s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42067s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42068s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42069s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42070s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42071s,@GCC_PCH@,$GCC_PCH,;t t
42072s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42073s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42074s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42075s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42076s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42077s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42078s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42079s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42080s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42081s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42082s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42083s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42084s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42085s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42086s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42087s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42088s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42089s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42090s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42091s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42092s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42093s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42094s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42095s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42096s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42097s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42098s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42099s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42100s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42101s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42102s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42103s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42104s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42105s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42106s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42107s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42108s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42109s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42110s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42111s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42112s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42113s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42114s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42115s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42116s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42117s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42118s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42119s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42120s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42121s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42122s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42123s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42124s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42125s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42126s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42127s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42128s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42129s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42130s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42131s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42132s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42133s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42134s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42135s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42136s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42137s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
e835546c 42138s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
42139s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42140s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42141s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42142s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42143s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42144s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42145s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42146s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
e835546c 42147s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
42148s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42149s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42150s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
e835546c 42151s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
42152s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42153s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42154s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42155s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42156s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42157s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42158s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42159s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42160s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42161s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42162s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42163s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42164s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42165s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42166s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42167s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42168s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42169s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42170s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42171s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42172s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42173s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42174s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42175s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42176s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42177s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42178s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42179s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42180s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42181s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42182s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42183s,@PATH_IFS@,$PATH_IFS,;t t
42184s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42185s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42186s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 42187s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
42188s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42189s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42190s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42191s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42192s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42193s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42194s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42195s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42196s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42197s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42198s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42199s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42200s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42201s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42202s,@WX_ALL@,$WX_ALL,;t t
42203s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42204s,@SHARED_LD@,$SHARED_LD,;t t
42205s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42206s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42207s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42208s,@USE_GUI@,$USE_GUI,;t t
42209s,@AFMINSTALL@,$AFMINSTALL,;t t
42210s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42211s,@TOOLKIT@,$TOOLKIT,;t t
42212s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42213s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42214s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42215s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42216s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42217s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42218s,@cross_compiling@,$cross_compiling,;t t
42219s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42220s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42221s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42222s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42223s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42224s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42225s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42226s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 42227s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 42228s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42229s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42230s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42231s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42232s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42233s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42234s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42235s,@GUIDIST@,$GUIDIST,;t t
42236s,@PORT_FILES@,$PORT_FILES,;t t
42237s,@DISTDIR@,$DISTDIR,;t t
42238s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42239s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42240s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42241s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42242s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42243s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42244s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42245s,@RESFLAGS@,$RESFLAGS,;t t
42246s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42247s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42248s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42249s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42250s,@MACRESCOMP@,$MACRESCOMP,;t t
42251s,@MACSETFILE@,$MACSETFILE,;t t
42252s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42253s,@GCC@,$GCC,;t t
a848cd7e
SC
42254s,@DLLTOOL@,$DLLTOOL,;t t
42255s,@AS@,$AS,;t t
42256s,@LD@,$LD,;t t
42257s,@MAKEINFO@,$MAKEINFO,;t t
42258s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42259s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42260s,@LIBOBJS@,$LIBOBJS,;t t
42261s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42262CEOF
42263
42264_ACEOF
42265
42266 cat >>$CONFIG_STATUS <<\_ACEOF
42267 # Split the substitutions into bite-sized pieces for seds with
42268 # small command number limits, like on Digital OSF/1 and HP-UX.
42269 ac_max_sed_lines=48
42270 ac_sed_frag=1 # Number of current file.
42271 ac_beg=1 # First line for current file.
42272 ac_end=$ac_max_sed_lines # Line after last line for current file.
42273 ac_more_lines=:
42274 ac_sed_cmds=
42275 while $ac_more_lines; do
42276 if test $ac_beg -gt 1; then
42277 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42278 else
42279 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42280 fi
42281 if test ! -s $tmp/subs.frag; then
42282 ac_more_lines=false
42283 else
42284 # The purpose of the label and of the branching condition is to
42285 # speed up the sed processing (if there are no `@' at all, there
42286 # is no need to browse any of the substitutions).
42287 # These are the two extra sed commands mentioned above.
42288 (echo ':t
42289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42290 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42291 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42292 else
ac1cb8d3 42293 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42294 fi
42295 ac_sed_frag=`expr $ac_sed_frag + 1`
42296 ac_beg=$ac_end
42297 ac_end=`expr $ac_end + $ac_max_sed_lines`
42298 fi
42299 done
42300 if test -z "$ac_sed_cmds"; then
42301 ac_sed_cmds=cat
42302 fi
42303fi # test -n "$CONFIG_FILES"
42304
42305_ACEOF
42306cat >>$CONFIG_STATUS <<\_ACEOF
42307for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42308 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42309 case $ac_file in
42310 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42311 cat >$tmp/stdin
42312 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42314 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42316 * ) ac_file_in=$ac_file.in ;;
42317 esac
42318
42319 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42320 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42321$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42322 X"$ac_file" : 'X\(//\)[^/]' \| \
42323 X"$ac_file" : 'X\(//\)$' \| \
42324 X"$ac_file" : 'X\(/\)' \| \
42325 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42326echo X"$ac_file" |
42327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42329 /^X\(\/\/\)$/{ s//\1/; q; }
42330 /^X\(\/\).*/{ s//\1/; q; }
42331 s/.*/./; q'`
42332 { if $as_mkdir_p; then
42333 mkdir -p "$ac_dir"
42334 else
42335 as_dir="$ac_dir"
42336 as_dirs=
42337 while test ! -d "$as_dir"; do
42338 as_dirs="$as_dir $as_dirs"
42339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42341 X"$as_dir" : 'X\(//\)[^/]' \| \
42342 X"$as_dir" : 'X\(//\)$' \| \
42343 X"$as_dir" : 'X\(/\)' \| \
42344 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42345echo X"$as_dir" |
42346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42348 /^X\(\/\/\)$/{ s//\1/; q; }
42349 /^X\(\/\).*/{ s//\1/; q; }
42350 s/.*/./; q'`
42351 done
42352 test ! -n "$as_dirs" || mkdir $as_dirs
42353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42355 { (exit 1); exit 1; }; }; }
42356
42357 ac_builddir=.
42358
42359if test "$ac_dir" != .; then
42360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42361 # A "../" for each directory in $ac_dir_suffix.
42362 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42363else
42364 ac_dir_suffix= ac_top_builddir=
42365fi
42366
42367case $srcdir in
42368 .) # No --srcdir option. We are building in place.
42369 ac_srcdir=.
42370 if test -z "$ac_top_builddir"; then
42371 ac_top_srcdir=.
42372 else
42373 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42374 fi ;;
42375 [\\/]* | ?:[\\/]* ) # Absolute path.
42376 ac_srcdir=$srcdir$ac_dir_suffix;
42377 ac_top_srcdir=$srcdir ;;
42378 *) # Relative path.
42379 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42380 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42381esac
ac1cb8d3
VS
42382
42383# Do not use `cd foo && pwd` to compute absolute paths, because
42384# the directories may not exist.
42385case `pwd` in
42386.) ac_abs_builddir="$ac_dir";;
42387*)
42388 case "$ac_dir" in
42389 .) ac_abs_builddir=`pwd`;;
42390 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42391 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42392 esac;;
42393esac
42394case $ac_abs_builddir in
42395.) ac_abs_top_builddir=${ac_top_builddir}.;;
42396*)
42397 case ${ac_top_builddir}. in
42398 .) ac_abs_top_builddir=$ac_abs_builddir;;
42399 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42400 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42401 esac;;
42402esac
42403case $ac_abs_builddir in
42404.) ac_abs_srcdir=$ac_srcdir;;
42405*)
42406 case $ac_srcdir in
42407 .) ac_abs_srcdir=$ac_abs_builddir;;
42408 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42409 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42410 esac;;
42411esac
42412case $ac_abs_builddir in
42413.) ac_abs_top_srcdir=$ac_top_srcdir;;
42414*)
42415 case $ac_top_srcdir in
42416 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42417 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42418 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42419 esac;;
42420esac
a848cd7e
SC
42421
42422
42423 case $INSTALL in
42424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42425 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42426 esac
42427
ea7db9ff
DE
42428 if test x"$ac_file" != x-; then
42429 { echo "$as_me:$LINENO: creating $ac_file" >&5
42430echo "$as_me: creating $ac_file" >&6;}
42431 rm -f "$ac_file"
42432 fi
a848cd7e
SC
42433 # Let's still pretend it is `configure' which instantiates (i.e., don't
42434 # use $as_me), people would be surprised to read:
42435 # /* config.h. Generated by config.status. */
42436 if test x"$ac_file" = x-; then
42437 configure_input=
42438 else
42439 configure_input="$ac_file. "
42440 fi
42441 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42442 sed 's,.*/,,'` by configure."
a848cd7e
SC
42443
42444 # First look for the input files in the build tree, otherwise in the
42445 # src tree.
42446 ac_file_inputs=`IFS=:
42447 for f in $ac_file_in; do
42448 case $f in
42449 -) echo $tmp/stdin ;;
42450 [\\/$]*)
ac1cb8d3
VS
42451 # Absolute (can't be DOS-style, as IFS=:)
42452 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42453echo "$as_me: error: cannot find input file: $f" >&2;}
42454 { (exit 1); exit 1; }; }
ac1cb8d3 42455 echo "$f";;
a848cd7e 42456 *) # Relative
ac1cb8d3
VS
42457 if test -f "$f"; then
42458 # Build tree
42459 echo "$f"
42460 elif test -f "$srcdir/$f"; then
42461 # Source tree
42462 echo "$srcdir/$f"
42463 else
42464 # /dev/null tree
42465 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42466echo "$as_me: error: cannot find input file: $f" >&2;}
42467 { (exit 1); exit 1; }; }
ac1cb8d3 42468 fi;;
a848cd7e
SC
42469 esac
42470 done` || { (exit 1); exit 1; }
42471_ACEOF
42472cat >>$CONFIG_STATUS <<_ACEOF
42473 sed "$ac_vpsub
42474$extrasub
42475_ACEOF
42476cat >>$CONFIG_STATUS <<\_ACEOF
42477:t
42478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42479s,@configure_input@,$configure_input,;t t
42480s,@srcdir@,$ac_srcdir,;t t
42481s,@abs_srcdir@,$ac_abs_srcdir,;t t
42482s,@top_srcdir@,$ac_top_srcdir,;t t
42483s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42484s,@builddir@,$ac_builddir,;t t
42485s,@abs_builddir@,$ac_abs_builddir,;t t
42486s,@top_builddir@,$ac_top_builddir,;t t
42487s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42488s,@INSTALL@,$ac_INSTALL,;t t
42489" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42490 rm -f $tmp/stdin
42491 if test x"$ac_file" != x-; then
42492 mv $tmp/out $ac_file
42493 else
42494 cat $tmp/out
42495 rm -f $tmp/out
42496 fi
42497
42498done
42499_ACEOF
42500cat >>$CONFIG_STATUS <<\_ACEOF
42501
42502#
42503# CONFIG_HEADER section.
42504#
42505
42506# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42507# NAME is the cpp macro being defined and VALUE is the value it is being given.
42508#
42509# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42510ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42511ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42512ac_dC=' '
42513ac_dD=',;t'
42514# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42515ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42516ac_uB='$,\1#\2define\3'
42517ac_uC=' '
42518ac_uD=',;t'
42519
42520for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42522 case $ac_file in
42523 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42524 cat >$tmp/stdin
42525 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42527 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42529 * ) ac_file_in=$ac_file.in ;;
42530 esac
42531
42532 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42533echo "$as_me: creating $ac_file" >&6;}
42534
42535 # First look for the input files in the build tree, otherwise in the
42536 # src tree.
42537 ac_file_inputs=`IFS=:
42538 for f in $ac_file_in; do
42539 case $f in
42540 -) echo $tmp/stdin ;;
42541 [\\/$]*)
ac1cb8d3
VS
42542 # Absolute (can't be DOS-style, as IFS=:)
42543 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42544echo "$as_me: error: cannot find input file: $f" >&2;}
42545 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42546 # Do quote $f, to prevent DOS paths from being IFS'd.
42547 echo "$f";;
a848cd7e 42548 *) # Relative
ac1cb8d3
VS
42549 if test -f "$f"; then
42550 # Build tree
42551 echo "$f"
42552 elif test -f "$srcdir/$f"; then
42553 # Source tree
42554 echo "$srcdir/$f"
42555 else
42556 # /dev/null tree
42557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42558echo "$as_me: error: cannot find input file: $f" >&2;}
42559 { (exit 1); exit 1; }; }
ac1cb8d3 42560 fi;;
a848cd7e
SC
42561 esac
42562 done` || { (exit 1); exit 1; }
42563 # Remove the trailing spaces.
ac1cb8d3 42564 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42565
42566_ACEOF
42567
42568# Transform confdefs.h into two sed scripts, `conftest.defines' and
42569# `conftest.undefs', that substitutes the proper values into
42570# config.h.in to produce config.h. The first handles `#define'
42571# templates, and the second `#undef' templates.
42572# And first: Protect against being on the right side of a sed subst in
42573# config.status. Protect against being in an unquoted here document
42574# in config.status.
42575rm -f conftest.defines conftest.undefs
42576# Using a here document instead of a string reduces the quoting nightmare.
42577# Putting comments in sed scripts is not portable.
42578#
42579# `end' is used to avoid that the second main sed command (meant for
42580# 0-ary CPP macros) applies to n-ary macro definitions.
42581# See the Autoconf documentation for `clear'.
42582cat >confdef2sed.sed <<\_ACEOF
42583s/[\\&,]/\\&/g
42584s,[\\$`],\\&,g
42585t clear
42586: clear
ac1cb8d3 42587s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42588t end
ac1cb8d3 42589s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42590: end
42591_ACEOF
42592# If some macros were called several times there might be several times
42593# the same #defines, which is useless. Nevertheless, we may not want to
42594# sort them, since we want the *last* AC-DEFINE to be honored.
42595uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42596sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42597rm -f confdef2sed.sed
42598
42599# This sed command replaces #undef with comments. This is necessary, for
42600# example, in the case of _POSIX_SOURCE, which is predefined and required
42601# on some systems where configure will not decide to define it.
42602cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42603s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42604_ACEOF
42605
42606# Break up conftest.defines because some shells have a limit on the size
42607# of here documents, and old seds have small limits too (100 cmds).
42608echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42609echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42610echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42611echo ' :' >>$CONFIG_STATUS
42612rm -f conftest.tail
42613while grep . conftest.defines >/dev/null
42614do
42615 # Write a limited-size here document to $tmp/defines.sed.
42616 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42617 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42618 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42619 # Work around the forget-to-reset-the-flag bug.
42620 echo 't clr' >>$CONFIG_STATUS
42621 echo ': clr' >>$CONFIG_STATUS
42622 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42623 echo 'CEOF
42624 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42625 rm -f $tmp/in
42626 mv $tmp/out $tmp/in
42627' >>$CONFIG_STATUS
42628 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42629 rm -f conftest.defines
42630 mv conftest.tail conftest.defines
42631done
42632rm -f conftest.defines
42633echo ' fi # grep' >>$CONFIG_STATUS
42634echo >>$CONFIG_STATUS
42635
42636# Break up conftest.undefs because some shells have a limit on the size
42637# of here documents, and old seds have small limits too (100 cmds).
42638echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42639rm -f conftest.tail
42640while grep . conftest.undefs >/dev/null
42641do
42642 # Write a limited-size here document to $tmp/undefs.sed.
42643 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42644 # Speed up: don't consider the non `#undef'
ac1cb8d3 42645 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42646 # Work around the forget-to-reset-the-flag bug.
42647 echo 't clr' >>$CONFIG_STATUS
42648 echo ': clr' >>$CONFIG_STATUS
42649 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42650 echo 'CEOF
42651 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42652 rm -f $tmp/in
42653 mv $tmp/out $tmp/in
42654' >>$CONFIG_STATUS
42655 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42656 rm -f conftest.undefs
42657 mv conftest.tail conftest.undefs
42658done
42659rm -f conftest.undefs
42660
42661cat >>$CONFIG_STATUS <<\_ACEOF
42662 # Let's still pretend it is `configure' which instantiates (i.e., don't
42663 # use $as_me), people would be surprised to read:
42664 # /* config.h. Generated by config.status. */
42665 if test x"$ac_file" = x-; then
42666 echo "/* Generated by configure. */" >$tmp/config.h
42667 else
42668 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42669 fi
42670 cat $tmp/in >>$tmp/config.h
42671 rm -f $tmp/in
42672 if test x"$ac_file" != x-; then
42673 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42674 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42675echo "$as_me: $ac_file is unchanged" >&6;}
42676 else
42677 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42678$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42679 X"$ac_file" : 'X\(//\)[^/]' \| \
42680 X"$ac_file" : 'X\(//\)$' \| \
42681 X"$ac_file" : 'X\(/\)' \| \
42682 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42683echo X"$ac_file" |
42684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42686 /^X\(\/\/\)$/{ s//\1/; q; }
42687 /^X\(\/\).*/{ s//\1/; q; }
42688 s/.*/./; q'`
42689 { if $as_mkdir_p; then
42690 mkdir -p "$ac_dir"
42691 else
42692 as_dir="$ac_dir"
42693 as_dirs=
42694 while test ! -d "$as_dir"; do
42695 as_dirs="$as_dir $as_dirs"
42696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42698 X"$as_dir" : 'X\(//\)[^/]' \| \
42699 X"$as_dir" : 'X\(//\)$' \| \
42700 X"$as_dir" : 'X\(/\)' \| \
42701 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42702echo X"$as_dir" |
42703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42705 /^X\(\/\/\)$/{ s//\1/; q; }
42706 /^X\(\/\).*/{ s//\1/; q; }
42707 s/.*/./; q'`
42708 done
42709 test ! -n "$as_dirs" || mkdir $as_dirs
42710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42711echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42712 { (exit 1); exit 1; }; }; }
42713
42714 rm -f $ac_file
42715 mv $tmp/config.h $ac_file
42716 fi
42717 else
42718 cat $tmp/config.h
42719 rm -f $tmp/config.h
42720 fi
42721done
42722_ACEOF
42723cat >>$CONFIG_STATUS <<\_ACEOF
42724
42725#
42726# CONFIG_COMMANDS section.
42727#
42728for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42729 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42730 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42731 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42732$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42733 X"$ac_dest" : 'X\(//\)[^/]' \| \
42734 X"$ac_dest" : 'X\(//\)$' \| \
42735 X"$ac_dest" : 'X\(/\)' \| \
42736 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42737echo X"$ac_dest" |
42738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42740 /^X\(\/\/\)$/{ s//\1/; q; }
42741 /^X\(\/\).*/{ s//\1/; q; }
42742 s/.*/./; q'`
ac1cb8d3
VS
42743 { if $as_mkdir_p; then
42744 mkdir -p "$ac_dir"
42745 else
42746 as_dir="$ac_dir"
42747 as_dirs=
42748 while test ! -d "$as_dir"; do
42749 as_dirs="$as_dir $as_dirs"
42750 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42752 X"$as_dir" : 'X\(//\)[^/]' \| \
42753 X"$as_dir" : 'X\(//\)$' \| \
42754 X"$as_dir" : 'X\(/\)' \| \
42755 . : '\(.\)' 2>/dev/null ||
42756echo X"$as_dir" |
42757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42759 /^X\(\/\/\)$/{ s//\1/; q; }
42760 /^X\(\/\).*/{ s//\1/; q; }
42761 s/.*/./; q'`
42762 done
42763 test ! -n "$as_dirs" || mkdir $as_dirs
42764 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42765echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42766 { (exit 1); exit 1; }; }; }
42767
a848cd7e
SC
42768 ac_builddir=.
42769
42770if test "$ac_dir" != .; then
42771 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42772 # A "../" for each directory in $ac_dir_suffix.
42773 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42774else
42775 ac_dir_suffix= ac_top_builddir=
42776fi
42777
42778case $srcdir in
42779 .) # No --srcdir option. We are building in place.
42780 ac_srcdir=.
42781 if test -z "$ac_top_builddir"; then
42782 ac_top_srcdir=.
42783 else
42784 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42785 fi ;;
42786 [\\/]* | ?:[\\/]* ) # Absolute path.
42787 ac_srcdir=$srcdir$ac_dir_suffix;
42788 ac_top_srcdir=$srcdir ;;
42789 *) # Relative path.
42790 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42791 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42792esac
ac1cb8d3
VS
42793
42794# Do not use `cd foo && pwd` to compute absolute paths, because
42795# the directories may not exist.
42796case `pwd` in
42797.) ac_abs_builddir="$ac_dir";;
42798*)
42799 case "$ac_dir" in
42800 .) ac_abs_builddir=`pwd`;;
42801 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42802 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42803 esac;;
42804esac
42805case $ac_abs_builddir in
42806.) ac_abs_top_builddir=${ac_top_builddir}.;;
42807*)
42808 case ${ac_top_builddir}. in
42809 .) ac_abs_top_builddir=$ac_abs_builddir;;
42810 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42811 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42812 esac;;
42813esac
42814case $ac_abs_builddir in
42815.) ac_abs_srcdir=$ac_srcdir;;
42816*)
42817 case $ac_srcdir in
42818 .) ac_abs_srcdir=$ac_abs_builddir;;
42819 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42820 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42821 esac;;
42822esac
42823case $ac_abs_builddir in
42824.) ac_abs_top_srcdir=$ac_top_srcdir;;
42825*)
42826 case $ac_top_srcdir in
42827 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42828 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42829 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42830 esac;;
42831esac
a848cd7e
SC
42832
42833
42834 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42835echo "$as_me: executing $ac_dest commands" >&6;}
42836 case $ac_dest in
42837 default )
a848cd7e
SC
42838 if test ! -d lib; then
42839 mkdir lib
42840 fi
42841 if test ! -d lib/wx; then
42842 mkdir lib/wx
42843 fi
8708fa76
VS
42844 if test ! -d lib/wx/config; then
42845 mkdir lib/wx/config
42846 fi
a848cd7e
SC
42847 if test ! -d lib/wx/include; then
42848 mkdir lib/wx/include
42849 fi
42850 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42851 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42852 fi
42853 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42854 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42855 fi
42856 if test -f setup.h; then
42857 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42858 fi
8708fa76
VS
42859
42860 if test -f wx-config; then
42861 chmod +x wx-config
48112931 42862 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
a87bf378
VS
42863 ( cd lib/wx/config ;
42864 rm -f ${TOOLCHAIN_NAME}
42865 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
8708fa76 42866 fi
8708fa76
VS
42867 if test -f wx-config-wrapper; then
42868 chmod +x wx-config-wrapper
42869 mv -f wx-config-wrapper wx-config
b3de4970
VS
42870 rm -f wx${TOOLCHAIN_NAME}-config
42871 ${LN_S} wx-config wx${TOOLCHAIN_NAME}-config
8708fa76 42872 fi
a848cd7e
SC
42873 ;;
42874 esac
42875done
42876_ACEOF
42877
42878cat >>$CONFIG_STATUS <<\_ACEOF
42879
42880{ (exit 0); exit 0; }
42881_ACEOF
42882chmod +x $CONFIG_STATUS
42883ac_clean_files=$ac_clean_files_save
42884
42885
42886# configure is writing to config.log, and then calls config.status.
42887# config.status does its own redirection, appending to config.log.
42888# Unfortunately, on DOS this fails, as config.log is still kept open
42889# by configure, so config.status won't be able to write to it; its
42890# output is simply discarded. So we exec the FD to /dev/null,
42891# effectively closing config.log, so it can be properly (re)opened and
42892# appended to by config.status. When coming back to configure, we
42893# need to make the FD available again.
42894if test "$no_create" != yes; then
42895 ac_cs_success=:
42896 ac_config_status_args=
42897 test "$silent" = yes &&
42898 ac_config_status_args="$ac_config_status_args --quiet"
42899 exec 5>/dev/null
42900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42901 exec 5>>config.log
42902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42903 # would make configure fail if this is the last instruction.
42904 $ac_cs_success || { (exit 1); exit 1; }
42905fi
42906
42907#
42908# CONFIG_SUBDIRS section.
42909#
42910if test "$no_recursion" != yes; then
42911
42912 # Remove --cache-file and --srcdir arguments so they do not pile up.
42913 ac_sub_configure_args=
42914 ac_prev=
42915 for ac_arg in $ac_configure_args; do
42916 if test -n "$ac_prev"; then
42917 ac_prev=
42918 continue
42919 fi
42920 case $ac_arg in
42921 -cache-file | --cache-file | --cache-fil | --cache-fi \
42922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42923 ac_prev=cache_file ;;
42924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42926 | --c=*)
42927 ;;
42928 --config-cache | -C)
42929 ;;
42930 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42931 ac_prev=srcdir ;;
42932 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42933 ;;
42934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42935 ac_prev=prefix ;;
42936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42937 ;;
42938 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42939 esac
42940 done
42941
42942 # Always prepend --prefix to ensure using the same prefix
42943 # in subdir configurations.
42944 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42945
42946 ac_popdir=`pwd`
42947 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42948
42949 # Do not complain, so a configure script can configure whichever
42950 # parts of a large source tree are present.
42951 test -d $srcdir/$ac_dir || continue
42952
42953 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42954echo "$as_me: configuring in $ac_dir" >&6;}
42955 { if $as_mkdir_p; then
42956 mkdir -p "$ac_dir"
42957 else
42958 as_dir="$ac_dir"
42959 as_dirs=
42960 while test ! -d "$as_dir"; do
42961 as_dirs="$as_dir $as_dirs"
42962 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42964 X"$as_dir" : 'X\(//\)[^/]' \| \
42965 X"$as_dir" : 'X\(//\)$' \| \
42966 X"$as_dir" : 'X\(/\)' \| \
42967 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42968echo X"$as_dir" |
42969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42971 /^X\(\/\/\)$/{ s//\1/; q; }
42972 /^X\(\/\).*/{ s//\1/; q; }
42973 s/.*/./; q'`
42974 done
42975 test ! -n "$as_dirs" || mkdir $as_dirs
42976 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42977echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42978 { (exit 1); exit 1; }; }; }
42979
42980 ac_builddir=.
42981
42982if test "$ac_dir" != .; then
42983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42984 # A "../" for each directory in $ac_dir_suffix.
42985 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42986else
42987 ac_dir_suffix= ac_top_builddir=
42988fi
42989
42990case $srcdir in
42991 .) # No --srcdir option. We are building in place.
42992 ac_srcdir=.
42993 if test -z "$ac_top_builddir"; then
42994 ac_top_srcdir=.
42995 else
42996 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42997 fi ;;
42998 [\\/]* | ?:[\\/]* ) # Absolute path.
42999 ac_srcdir=$srcdir$ac_dir_suffix;
43000 ac_top_srcdir=$srcdir ;;
43001 *) # Relative path.
43002 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43003 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43004esac
ac1cb8d3
VS
43005
43006# Do not use `cd foo && pwd` to compute absolute paths, because
43007# the directories may not exist.
43008case `pwd` in
43009.) ac_abs_builddir="$ac_dir";;
43010*)
43011 case "$ac_dir" in
43012 .) ac_abs_builddir=`pwd`;;
43013 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43014 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43015 esac;;
43016esac
43017case $ac_abs_builddir in
43018.) ac_abs_top_builddir=${ac_top_builddir}.;;
43019*)
43020 case ${ac_top_builddir}. in
43021 .) ac_abs_top_builddir=$ac_abs_builddir;;
43022 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43023 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43024 esac;;
43025esac
43026case $ac_abs_builddir in
43027.) ac_abs_srcdir=$ac_srcdir;;
43028*)
43029 case $ac_srcdir in
43030 .) ac_abs_srcdir=$ac_abs_builddir;;
43031 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43032 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43033 esac;;
43034esac
43035case $ac_abs_builddir in
43036.) ac_abs_top_srcdir=$ac_top_srcdir;;
43037*)
43038 case $ac_top_srcdir in
43039 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43040 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43041 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43042 esac;;
43043esac
a848cd7e
SC
43044
43045
43046 cd $ac_dir
43047
43048 # Check for guested configure; otherwise get Cygnus style configure.
43049 if test -f $ac_srcdir/configure.gnu; then
43050 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43051 elif test -f $ac_srcdir/configure; then
43052 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43053 elif test -f $ac_srcdir/configure.in; then
43054 ac_sub_configure=$ac_configure
43055 else
43056 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43057echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43058 ac_sub_configure=
43059 fi
43060
43061 # The recursion is here.
43062 if test -n "$ac_sub_configure"; then
43063 # Make the cache file name correct relative to the subdirectory.
43064 case $cache_file in
43065 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43066 *) # Relative path.
ac1cb8d3 43067 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43068 esac
43069
43070 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43071echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43072 # The eval makes quoting arguments work.
43073 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43074 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43075 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43076echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43077 { (exit 1); exit 1; }; }
43078 fi
43079
ea7db9ff 43080 cd $ac_popdir
a848cd7e
SC
43081 done
43082fi
43083
43084
43085echo
77ffb593 43086echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43087echo ""
77ffb593
JS
43088echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
43089echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43090
77ffb593
JS
43091echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43092echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43093echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43094
77ffb593
JS
43095echo " What level of wxWidgets compatibility should be enabled?"
43096echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43097echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43098
77ffb593 43099echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43100echo " jpeg ${wxUSE_LIBJPEG-none}"
43101echo " png ${wxUSE_LIBPNG-none}"
43102echo " regex ${wxUSE_REGEX}"
43103echo " tiff ${wxUSE_LIBTIFF-none}"
43104if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43105echo " xpm ${wxUSE_LIBXPM-none}"
43106fi
43107echo " zlib ${wxUSE_ZLIB}"
43108echo " odbc ${wxUSE_ODBC}"
43109echo " expat ${wxUSE_EXPAT}"
43110echo " libmspack ${wxUSE_LIBMSPACK}"
43111echo " sdl ${wxUSE_LIBSDL}"
43112
43113echo ""
43114