]> git.saurik.com Git - wxWidgets.git/blame - configure
moving XRC to the core
[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"
9a8f0513 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_USE_ODBC_1 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
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
1064 --with-opengl use OpenGL (or Mesa)
1065 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1066 --with-regex enable support for wxRegEx class
1067 --with-zlib use zlib for LZW compression
1068 --with-odbc use the IODBC and wxODBC classes
1069 --with-expat enable XML support using expat parser
1070 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1071 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1072 --with-x use the X Window System
1073 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1074 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1075 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1076 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1077 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1078
1079Some influential environment variables:
dcc1b6ad
VS
1080 CC C compiler command
1081 CFLAGS C compiler flags
1082 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1083 nonstandard directory <lib dir>
1084 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1085 headers in a nonstandard directory <include dir>
1086 CPP C preprocessor
1087 CXX C++ compiler command
1088 CXXFLAGS C++ compiler flags
1089 CXXCPP C++ preprocessor
a848cd7e
SC
1090
1091Use these variables to override the choices made by `configure' or to help
1092it to find libraries and programs with nonstandard names/locations.
1093
77ffb593 1094Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1095_ACEOF
1096fi
1097
1098if test "$ac_init_help" = "recursive"; then
1099 # If there are subdirs, report their specific --help.
1100 ac_popdir=`pwd`
1101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1102 test -d $ac_dir || continue
1103 ac_builddir=.
1104
1105if test "$ac_dir" != .; then
1106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1107 # A "../" for each directory in $ac_dir_suffix.
1108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1109else
1110 ac_dir_suffix= ac_top_builddir=
1111fi
1112
1113case $srcdir in
1114 .) # No --srcdir option. We are building in place.
1115 ac_srcdir=.
1116 if test -z "$ac_top_builddir"; then
1117 ac_top_srcdir=.
1118 else
1119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1120 fi ;;
1121 [\\/]* | ?:[\\/]* ) # Absolute path.
1122 ac_srcdir=$srcdir$ac_dir_suffix;
1123 ac_top_srcdir=$srcdir ;;
1124 *) # Relative path.
1125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1126 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1127esac
ac1cb8d3
VS
1128
1129# Do not use `cd foo && pwd` to compute absolute paths, because
1130# the directories may not exist.
1131case `pwd` in
1132.) ac_abs_builddir="$ac_dir";;
1133*)
1134 case "$ac_dir" in
1135 .) ac_abs_builddir=`pwd`;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1137 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_top_builddir=${ac_top_builddir}.;;
1142*)
1143 case ${ac_top_builddir}. in
1144 .) ac_abs_top_builddir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1146 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_srcdir=$ac_srcdir;;
1151*)
1152 case $ac_srcdir in
1153 .) ac_abs_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1155 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1156 esac;;
1157esac
1158case $ac_abs_builddir in
1159.) ac_abs_top_srcdir=$ac_top_srcdir;;
1160*)
1161 case $ac_top_srcdir in
1162 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1164 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1165 esac;;
1166esac
a848cd7e
SC
1167
1168 cd $ac_dir
1169 # Check for guested configure; otherwise get Cygnus style configure.
1170 if test -f $ac_srcdir/configure.gnu; then
1171 echo
1172 $SHELL $ac_srcdir/configure.gnu --help=recursive
1173 elif test -f $ac_srcdir/configure; then
1174 echo
1175 $SHELL $ac_srcdir/configure --help=recursive
1176 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1177 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1178 echo
1179 $ac_configure --help
1180 else
1181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1182 fi
9a8f0513 1183 cd $ac_popdir
a848cd7e
SC
1184 done
1185fi
1186
1187test -n "$ac_init_help" && exit 0
1188if $ac_init_version; then
1189 cat <<\_ACEOF
77ffb593 1190wxWidgets configure 2.5.2
ac1cb8d3 1191generated by GNU Autoconf 2.59
a848cd7e 1192
ac1cb8d3 1193Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1194This configure script is free software; the Free Software Foundation
1195gives unlimited permission to copy, distribute and modify it.
1196_ACEOF
1197 exit 0
1198fi
1199exec 5>config.log
1200cat >&5 <<_ACEOF
1201This file contains any messages produced by compilers while
1202running configure, to aid debugging if configure makes a mistake.
1203
77ffb593 1204It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1205generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1206
1207 $ $0 $@
1208
1209_ACEOF
1210{
1211cat <<_ASUNAME
1212## --------- ##
1213## Platform. ##
1214## --------- ##
1215
1216hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1217uname -m = `(uname -m) 2>/dev/null || echo unknown`
1218uname -r = `(uname -r) 2>/dev/null || echo unknown`
1219uname -s = `(uname -s) 2>/dev/null || echo unknown`
1220uname -v = `(uname -v) 2>/dev/null || echo unknown`
1221
1222/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1223/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1224
1225/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1226/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1227/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1228hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1229/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1230/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1231/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1232
1233_ASUNAME
1234
1235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1236for as_dir in $PATH
1237do
1238 IFS=$as_save_IFS
1239 test -z "$as_dir" && as_dir=.
1240 echo "PATH: $as_dir"
1241done
1242
1243} >&5
1244
1245cat >&5 <<_ACEOF
1246
1247
1248## ----------- ##
1249## Core tests. ##
1250## ----------- ##
1251
1252_ACEOF
1253
1254
1255# Keep a trace of the command line.
1256# Strip out --no-create and --no-recursion so they do not pile up.
1257# Strip out --silent because we don't want to record it for future runs.
1258# Also quote any args containing shell meta-characters.
1259# Make two passes to allow for proper duplicate-argument suppression.
1260ac_configure_args=
1261ac_configure_args0=
1262ac_configure_args1=
1263ac_sep=
1264ac_must_keep_next=false
1265for ac_pass in 1 2
1266do
1267 for ac_arg
1268 do
1269 case $ac_arg in
1270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1273 continue ;;
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 esac
1277 case $ac_pass in
1278 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1279 2)
1280 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1281 if test $ac_must_keep_next = true; then
ac1cb8d3 1282 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1283 else
ac1cb8d3
VS
1284 case $ac_arg in
1285 *=* | --config-cache | -C | -disable-* | --disable-* \
1286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1288 | -with-* | --with-* | -without-* | --without-* | --x)
1289 case "$ac_configure_args0 " in
1290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1291 esac
1292 ;;
1293 -* ) ac_must_keep_next=true ;;
1294 esac
a848cd7e
SC
1295 fi
1296 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1297 # Get rid of the leading space.
1298 ac_sep=" "
1299 ;;
1300 esac
1301 done
1302done
1303$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1304$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1305
1306# When interrupted or exit'd, cleanup temporary files, and complete
1307# config.log. We remove comments because anyway the quotes in there
1308# would cause problems or look ugly.
1309# WARNING: Be sure not to use single quotes in there, as some shells,
1310# such as our DU 5.0 friend, will then `close' the trap.
1311trap 'exit_status=$?
1312 # Save into config.log some information that might help in debugging.
1313 {
1314 echo
1315
1316 cat <<\_ASBOX
1317## ---------------- ##
1318## Cache variables. ##
1319## ---------------- ##
1320_ASBOX
1321 echo
1322 # The following way of writing the cache mishandles newlines in values,
1323{
1324 (set) 2>&1 |
1325 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1326 *ac_space=\ *)
1327 sed -n \
ac1cb8d3
VS
1328 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1330 ;;
1331 *)
1332 sed -n \
ac1cb8d3 1333 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1334 ;;
1335 esac;
1336}
1337 echo
1338
1339 cat <<\_ASBOX
1340## ----------------- ##
1341## Output variables. ##
1342## ----------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_vars
1346 do
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1349 done | sort
1350 echo
1351
1352 if test -n "$ac_subst_files"; then
1353 cat <<\_ASBOX
1354## ------------- ##
1355## Output files. ##
1356## ------------- ##
1357_ASBOX
1358 echo
1359 for ac_var in $ac_subst_files
1360 do
1361 eval ac_val=$`echo $ac_var`
ac1cb8d3 1362 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1363 done | sort
1364 echo
1365 fi
1366
1367 if test -s confdefs.h; then
1368 cat <<\_ASBOX
1369## ----------- ##
1370## confdefs.h. ##
1371## ----------- ##
1372_ASBOX
1373 echo
1374 sed "/^$/d" confdefs.h | sort
1375 echo
1376 fi
1377 test "$ac_signal" != 0 &&
1378 echo "$as_me: caught signal $ac_signal"
1379 echo "$as_me: exit $exit_status"
1380 } >&5
ac1cb8d3 1381 rm -f core *.core &&
a848cd7e
SC
1382 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1383 exit $exit_status
1384 ' 0
1385for ac_signal in 1 2 13 15; do
1386 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1387done
1388ac_signal=0
1389
1390# confdefs.h avoids OS command line length limits that DEFS can exceed.
1391rm -rf conftest* confdefs.h
1392# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1393echo >confdefs.h
1394
1395# Predefined preprocessor variables.
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_NAME "$PACKAGE_NAME"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_VERSION "$PACKAGE_VERSION"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_STRING "$PACKAGE_STRING"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1419_ACEOF
1420
1421
1422# Let the site file select an alternate cache file if it wants to.
1423# Prefer explicitly selected file to automatically selected ones.
1424if test -z "$CONFIG_SITE"; then
1425 if test "x$prefix" != xNONE; then
1426 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1427 else
1428 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1429 fi
1430fi
1431for ac_site_file in $CONFIG_SITE; do
1432 if test -r "$ac_site_file"; then
1433 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1434echo "$as_me: loading site script $ac_site_file" >&6;}
1435 sed 's/^/| /' "$ac_site_file" >&5
1436 . "$ac_site_file"
1437 fi
1438done
1439
1440if test -r "$cache_file"; then
1441 # Some versions of bash will fail to source /dev/null (special
1442 # files actually), so we avoid doing that.
1443 if test -f "$cache_file"; then
1444 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1445echo "$as_me: loading cache $cache_file" >&6;}
1446 case $cache_file in
1447 [\\/]* | ?:[\\/]* ) . $cache_file;;
1448 *) . ./$cache_file;;
1449 esac
1450 fi
1451else
1452 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1453echo "$as_me: creating cache $cache_file" >&6;}
1454 >$cache_file
1455fi
1456
1457# Check that the precious variables saved in the cache have kept the same
1458# value.
1459ac_cache_corrupted=false
1460for ac_var in `(set) 2>&1 |
ac1cb8d3 1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1467 set,)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,set)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,);;
1476 *)
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1479echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1481echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1483echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1484 ac_cache_corrupted=:
a848cd7e
SC
1485 fi;;
1486 esac
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1489 case $ac_new_val in
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1493 esac
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497 esac
1498 fi
1499done
1500if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1506fi
1507
1508ac_ext=c
1509ac_cpp='$CPP $CPPFLAGS'
1510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543ac_aux_dir=
1544for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1557 fi
1558done
1559if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1563fi
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
1568# Make sure we can run config.sub.
1569$ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574echo "$as_me:$LINENO: checking build system type" >&5
1575echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_build_alias=$build_alias
1580test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591fi
1592echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593echo "${ECHO_T}$ac_cv_build" >&6
1594build=$ac_cv_build
1595build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600echo "$as_me:$LINENO: checking host system type" >&5
1601echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 ac_cv_host_alias=$host_alias
1606test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613fi
1614echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615echo "${ECHO_T}$ac_cv_host" >&6
1616host=$ac_cv_host
1617host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622echo "$as_me:$LINENO: checking target system type" >&5
1623echo $ECHO_N "checking target system type... $ECHO_C" >&6
1624if test "${ac_cv_target+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_target_alias=$target_alias
1628test "x$ac_cv_target_alias" = "x" &&
1629 ac_cv_target_alias=$ac_cv_host_alias
1630ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1632echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1634
1635fi
1636echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1637echo "${ECHO_T}$ac_cv_target" >&6
1638target=$ac_cv_target
1639target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642
1643
1644# The aliases save the names the user supplied, while $host etc.
1645# will get canonicalized.
1646test -n "$target_alias" &&
1647 test "$program_prefix$program_suffix$program_transform_name" = \
1648 NONENONEs,x,x, &&
1649 program_prefix=${target_alias}-
1650
1651
1652
1653WX_MAJOR_VERSION_NUMBER=2
1654WX_MINOR_VERSION_NUMBER=5
de59c161 1655WX_RELEASE_NUMBER=2
224bf05c 1656WX_SUBRELEASE_NUMBER=3
a848cd7e
SC
1657
1658WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1659WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1660
1661WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1662
de59c161 1663WX_CURRENT=2
a848cd7e
SC
1664WX_REVISION=0
1665WX_AGE=0
1666
1667
1668
1669USE_UNIX=1
1670USE_OS2=0
1671USE_WIN32=0
1672USE_DOS=0
1673USE_BEOS=0
1674USE_MAC=0
1675
1676USE_AIX=
1677USE_BSD= USE_DARWIN= USE_FREEBSD=
1678USE_GNU= USE_HPUX=
1679USE_LINUX=
1680USE_NETBSD=
1681USE_OPENBSD=
1682USE_OSF= USE_SGI=
1683USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1684USE_ULTRIX=
1685USE_UNIXWARE=
1686
1687USE_ALPHA=
1688
1689NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1690
1691ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1692
1693DEFAULT_wxUSE_COCOA=0
1694DEFAULT_wxUSE_GTK=0
1695DEFAULT_wxUSE_MAC=0
1696DEFAULT_wxUSE_MGL=0
1697DEFAULT_wxUSE_MICROWIN=0
1698DEFAULT_wxUSE_MOTIF=0
1699DEFAULT_wxUSE_MSW=0
1700DEFAULT_wxUSE_PM=0
1701DEFAULT_wxUSE_X11=0
1702
1703DEFAULT_DEFAULT_wxUSE_COCOA=0
1704DEFAULT_DEFAULT_wxUSE_GTK=0
1705DEFAULT_DEFAULT_wxUSE_MAC=0
1706DEFAULT_DEFAULT_wxUSE_MGL=0
1707DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1708DEFAULT_DEFAULT_wxUSE_MOTIF=0
1709DEFAULT_DEFAULT_wxUSE_MSW=0
1710DEFAULT_DEFAULT_wxUSE_PM=0
1711DEFAULT_DEFAULT_wxUSE_X11=0
1712
1713PROGRAM_EXT=
1714SO_SUFFIX=so
1715SAMPLES_RPATH_FLAG=
1716SAMPLES_RPATH_POSTLINK=
1717
1718case "${host}" in
1719 *-hp-hpux* )
1720 USE_HPUX=1
1721 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1722 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1723 SO_SUFFIX=sl
1724 cat >>confdefs.h <<\_ACEOF
1725#define __HPUX__ 1
1726_ACEOF
1727
1728 ;;
1729 *-*-linux* )
1730 USE_LINUX=1
1731 cat >>confdefs.h <<\_ACEOF
1732#define __LINUX__ 1
1733_ACEOF
1734
1735 TMP=`uname -m`
1736 if test "x$TMP" = "xalpha"; then
1737 USE_ALPHA=1
1738 cat >>confdefs.h <<\_ACEOF
1739#define __ALPHA__ 1
1740_ACEOF
1741
1742 fi
1743 DEFAULT_DEFAULT_wxUSE_GTK=1
1744 ;;
1745 *-*-gnu* | *-*-k*bsd*-gnu )
1746 USE_GNU=1
1747 TMP=`uname -m`
1748 if test "x$TMP" = "xalpha"; then
1749 USE_ALPHA=1
1750 cat >>confdefs.h <<\_ACEOF
1751#define __ALPHA__ 1
1752_ACEOF
1753
1754 fi
1755 DEFAULT_DEFAULT_wxUSE_GTK=1
1756 ;;
1757 *-*-irix5* | *-*-irix6* )
1758 USE_SGI=1
1759 USE_SVR4=1
1760 cat >>confdefs.h <<\_ACEOF
1761#define __SGI__ 1
1762_ACEOF
1763
1764 cat >>confdefs.h <<\_ACEOF
1765#define __SVR4__ 1
1766_ACEOF
1767
1768 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1769 ;;
1770 *-*-solaris2* )
1771 USE_SUN=1
1772 USE_SOLARIS=1
1773 USE_SVR4=1
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SUN__ 1
1776_ACEOF
1777
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SOLARIS__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SVR4__ 1
1784_ACEOF
1785
1786 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1787 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1788 ;;
1789 *-*-sunos4* )
1790 USE_SUN=1
1791 USE_SUNOS=1
1792 USE_BSD=1
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SUN__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SUNOS__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __BSD__ 1
1803_ACEOF
1804
1805 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1806 ;;
1807 *-*-freebsd*)
1808 USE_BSD=1
1809 USE_FREEBSD=1
1810 cat >>confdefs.h <<\_ACEOF
1811#define __FREEBSD__ 1
1812_ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815#define __BSD__ 1
1816_ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_GTK=1
1819 ;;
1820 *-*-openbsd*)
1821 USE_BSD=1
1822 USE_OPENBSD=1
1823 cat >>confdefs.h <<\_ACEOF
1824#define __OPENBSD__ 1
1825_ACEOF
1826
1827 cat >>confdefs.h <<\_ACEOF
1828#define __BSD__ 1
1829_ACEOF
1830
1831 DEFAULT_DEFAULT_wxUSE_GTK=1
1832 ;;
1833 *-*-netbsd*)
1834 USE_BSD=1
1835 USE_NETBSD=1
1836 cat >>confdefs.h <<\_ACEOF
1837#define __NETBSD__ 1
1838_ACEOF
1839
1840 cat >>confdefs.h <<\_ACEOF
1841#define __BSD__ 1
1842_ACEOF
1843
1844 DEFAULT_DEFAULT_wxUSE_GTK=1
1845 ;;
1846 *-*-osf* )
1847 USE_ALPHA=1
1848 USE_OSF=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __ALPHA__ 1
1851_ACEOF
1852
1853 cat >>confdefs.h <<\_ACEOF
1854#define __OSF__ 1
1855_ACEOF
1856
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1859 ;;
1860 *-*-dgux5* )
1861 USE_ALPHA=1
1862 USE_SVR4=1
1863 cat >>confdefs.h <<\_ACEOF
1864#define __ALPHA__ 1
1865_ACEOF
1866
1867 cat >>confdefs.h <<\_ACEOF
1868#define __SVR4__ 1
1869_ACEOF
1870
1871 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1872 ;;
1873 *-*-sysv5* )
1874 USE_SYSV=1
1875 USE_SVR4=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SYSV__ 1
1878_ACEOF
1879
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SVR4__ 1
1882_ACEOF
1883
1884 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885 ;;
1886 *-*-aix* )
1887 USE_AIX=1
1888 USE_SYSV=1
1889 USE_SVR4=1
1890 SO_SUFFIX=a
1891 cat >>confdefs.h <<\_ACEOF
1892#define __AIX__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SYSV__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SVR4__ 1
1901_ACEOF
1902
1903 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1904 ;;
1905
1906 *-*-*UnixWare*)
1907 USE_SYSV=1
1908 USE_SVR4=1
1909 USE_UNIXWARE=1
1910 cat >>confdefs.h <<\_ACEOF
1911#define __UNIXWARE__ 1
1912_ACEOF
1913
1914 ;;
1915
1916 *-*-cygwin* | *-*-mingw32* )
1917 SO_SUFFIX=dll
1918 PROGRAM_EXT=".exe"
1919 RESCOMP=windres
1920 DEFAULT_DEFAULT_wxUSE_MSW=1
1921 ;;
1922
1923 *-pc-msdosdjgpp )
1924 USE_UNIX=0
1925 USE_DOS=1
1926 cat >>confdefs.h <<\_ACEOF
1927#define __DOS__ 1
1928_ACEOF
1929
1930 PROGRAM_EXT=".exe"
1931 DEFAULT_DEFAULT_wxUSE_MGL=1
1932 LIBS="$LIBS -lstdc++"
1933 ;;
1934
1935 *-pc-os2_emx | *-pc-os2-emx )
1936 cat >>confdefs.h <<\_ACEOF
1937#define __EMX__ 1
1938_ACEOF
1939
1940 USE_OS2=1
1941 cat >>confdefs.h <<\_ACEOF
1942#define __OS2__ 1
1943_ACEOF
1944
1945 PROGRAM_EXT=".exe"
1946 DEFAULT_DEFAULT_wxUSE_PM=1
1947 CXX=gcc
1948 LDFLAGS="$LDFLAGS -Zcrtdll"
1949 ac_executable_extensions=".exe"
1950 export ac_executable_extensions
1951 ac_save_IFS="$IFS"
1952 IFS='\\'
1953 ac_TEMP_PATH=
1954 for ac_dir in $PATH; do
1955 IFS=$ac_save_IFS
1956 if test -z "$ac_TEMP_PATH"; then
1957 ac_TEMP_PATH="$ac_dir"
1958 else
1959 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1960 fi
1961 done
1962 export PATH="$ac_TEMP_PATH"
1963 unset ac_TEMP_PATH
1964 ;;
1965
1966 powerpc-*-darwin* )
1967 USE_BSD=1
1968 USE_DARWIN=1
1969 SO_SUFFIX=dylib
1970 cat >>confdefs.h <<\_ACEOF
1971#define __BSD__ 1
1972_ACEOF
1973
1974 cat >>confdefs.h <<\_ACEOF
1975#define __DARWIN__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __POWERPC__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define TARGET_CARBON 1
1984_ACEOF
1985
1986 DEFAULT_DEFAULT_wxUSE_MAC=1
1987 ;;
1988
1989 *-*-beos* )
1990 USE_BEOS=1
1991 cat >>confdefs.h <<\_ACEOF
1992#define __BEOS__ 1
1993_ACEOF
1994
1995 ;;
1996
1997 *)
1998 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1999echo "$as_me: error: unknown system type ${host}." >&2;}
2000 { (exit 1); exit 1; }; }
2001esac
2002
2003
2004
2005
2006 wx_arg_cache_file="configarg.cache"
2007 echo "loading argument cache $wx_arg_cache_file"
2008 rm -f ${wx_arg_cache_file}.tmp
2009 touch ${wx_arg_cache_file}.tmp
2010 touch ${wx_arg_cache_file}
2011
2012
2013DEBUG_CONFIGURE=0
2014if test $DEBUG_CONFIGURE = 1; then
2015 DEFAULT_wxUSE_UNIVERSAL=no
2016 DEFAULT_wxUSE_STL=no
2017
2018 DEFAULT_wxUSE_NANOX=no
2019
2020 DEFAULT_wxUSE_THREADS=yes
2021
2022 DEFAULT_wxUSE_SHARED=yes
2023 DEFAULT_wxUSE_OPTIMISE=no
2024 DEFAULT_wxUSE_PROFILE=no
2025 DEFAULT_wxUSE_NO_DEPS=no
2026 DEFAULT_wxUSE_NO_RTTI=no
2027 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2028 DEFAULT_wxUSE_PERMISSIVE=no
2029 DEFAULT_wxUSE_DEBUG_FLAG=yes
2030 DEFAULT_wxUSE_DEBUG_INFO=yes
2031 DEFAULT_wxUSE_DEBUG_GDB=yes
2032 DEFAULT_wxUSE_MEM_TRACING=no
2033 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2034 DEFAULT_wxUSE_DMALLOC=no
2035 DEFAULT_wxUSE_APPLE_IEEE=no
2036
2037 DEFAULT_wxUSE_EXCEPTIONS=no
2038 DEFAULT_wxUSE_LOG=yes
2039 DEFAULT_wxUSE_LOGWINDOW=no
2040 DEFAULT_wxUSE_LOGGUI=no
2041 DEFAULT_wxUSE_LOGDIALOG=no
2042
2043 DEFAULT_wxUSE_GUI=yes
2044 DEFAULT_wxUSE_CONTROLS=no
2045
2046 DEFAULT_wxUSE_REGEX=no
2047 DEFAULT_wxUSE_XML=no
2048 DEFAULT_wxUSE_EXPAT=no
2049 DEFAULT_wxUSE_ZLIB=no
2050 DEFAULT_wxUSE_LIBPNG=no
2051 DEFAULT_wxUSE_LIBJPEG=no
2052 DEFAULT_wxUSE_LIBTIFF=no
2053 DEFAULT_wxUSE_LIBXPM=no
2054 DEFAULT_wxUSE_LIBMSPACK=no
2055 DEFAULT_wxUSE_LIBSDL=no
2056 DEFAULT_wxUSE_ODBC=no
2057 DEFAULT_wxUSE_OPENGL=no
2058
2059 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2060 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2061 DEFAULT_wxUSE_STD_IOSTREAM=no
2062 DEFAULT_wxUSE_CMDLINE_PARSER=no
2063 DEFAULT_wxUSE_DATETIME=no
2064 DEFAULT_wxUSE_TIMER=no
2065 DEFAULT_wxUSE_STOPWATCH=no
2066 DEFAULT_wxUSE_FILE=no
2067 DEFAULT_wxUSE_FFILE=no
2068 DEFAULT_wxUSE_TEXTBUFFER=no
2069 DEFAULT_wxUSE_TEXTFILE=no
2070 DEFAULT_wxUSE_SOUND=no
2071 DEFAULT_wxUSE_INTL=no
2072 DEFAULT_wxUSE_CONFIG=no
2073 DEFAULT_wxUSE_FONTMAP=no
2074 DEFAULT_wxUSE_STREAMS=no
2075 DEFAULT_wxUSE_SOCKETS=no
2076 DEFAULT_wxUSE_OLE=no
2077 DEFAULT_wxUSE_DATAOBJ=no
2078 DEFAULT_wxUSE_DIALUP_MANAGER=no
2079 DEFAULT_wxUSE_JOYSTICK=no
2080 DEFAULT_wxUSE_DYNLIB_CLASS=no
2081 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2082 DEFAULT_wxUSE_LONGLONG=no
2083 DEFAULT_wxUSE_GEOMETRY=no
2084
2085 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2086 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2087 DEFAULT_wxUSE_POSTSCRIPT=no
2088
2089 DEFAULT_wxUSE_CLIPBOARD=no
2090 DEFAULT_wxUSE_TOOLTIPS=no
2091 DEFAULT_wxUSE_DRAG_AND_DROP=no
2092 DEFAULT_wxUSE_DRAGIMAGE=no
2093 DEFAULT_wxUSE_SPLINES=no
2094
8a7b1113 2095 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2096 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2097 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2098 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2099
2100 DEFAULT_wxUSE_RESOURCES=no
2101 DEFAULT_wxUSE_CONSTRAINTS=no
2102 DEFAULT_wxUSE_IPC=no
2103 DEFAULT_wxUSE_HELP=no
2104 DEFAULT_wxUSE_MS_HTML_HELP=no
2105 DEFAULT_wxUSE_WXHTML_HELP=no
2106 DEFAULT_wxUSE_TREELAYOUT=no
2107 DEFAULT_wxUSE_METAFILE=no
2108 DEFAULT_wxUSE_MIMETYPE=no
2109 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2110 DEFAULT_wxUSE_PROTOCOL=no
2111 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2112 DEFAULT_wxUSE_PROTOCOL_FTP=no
2113 DEFAULT_wxUSE_PROTOCOL_FILE=no
2114 DEFAULT_wxUSE_URL=no
2115
2116 DEFAULT_wxUSE_COMMONDLGS=no
2117 DEFAULT_wxUSE_CHOICEDLG=no
2118 DEFAULT_wxUSE_COLOURDLG=no
2119 DEFAULT_wxUSE_DIRDLG=no
2120 DEFAULT_wxUSE_FILEDLG=no
2121 DEFAULT_wxUSE_FINDREPLDLG=no
2122 DEFAULT_wxUSE_FONTDLG=no
2123 DEFAULT_wxUSE_MSGDLG=no
2124 DEFAULT_wxUSE_NUMBERDLG=no
2125 DEFAULT_wxUSE_TEXTDLG=no
2126 DEFAULT_wxUSE_SPLASH=no
2127 DEFAULT_wxUSE_STARTUP_TIPS=no
2128 DEFAULT_wxUSE_PROGRESSDLG=no
2129 DEFAULT_wxUSE_WIZARDDLG=no
2130
2131 DEFAULT_wxUSE_MENUS=no
2132 DEFAULT_wxUSE_MINIFRAME=no
2133 DEFAULT_wxUSE_HTML=no
9a8f0513 2134 DEFAULT_wxUSE_XRC=no
646b6ec1 2135 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2136 DEFAULT_wxUSE_FILESYSTEM=no
2137 DEFAULT_wxUSE_FS_INET=no
2138 DEFAULT_wxUSE_FS_ZIP=no
2139 DEFAULT_wxUSE_BUSYINFO=no
2140 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2141 DEFAULT_wxUSE_VALIDATORS=no
2142
2143 DEFAULT_wxUSE_ACCEL=no
2144 DEFAULT_wxUSE_BUTTON=no
2145 DEFAULT_wxUSE_BMPBUTTON=no
2146 DEFAULT_wxUSE_CALCTRL=no
2147 DEFAULT_wxUSE_CARET=no
2148 DEFAULT_wxUSE_CHECKBOX=no
2149 DEFAULT_wxUSE_CHECKLST=no
2150 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2151 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2152 DEFAULT_wxUSE_COMBOBOX=no
2153 DEFAULT_wxUSE_DISPLAY=no
2154 DEFAULT_wxUSE_GAUGE=no
2155 DEFAULT_wxUSE_GRID=no
2156 DEFAULT_wxUSE_IMAGLIST=no
2157 DEFAULT_wxUSE_LISTBOOK=no
2158 DEFAULT_wxUSE_LISTBOX=no
2159 DEFAULT_wxUSE_LISTCTRL=no
2160 DEFAULT_wxUSE_NOTEBOOK=no
2161 DEFAULT_wxUSE_RADIOBOX=no
2162 DEFAULT_wxUSE_RADIOBTN=no
2163 DEFAULT_wxUSE_SASH=no
2164 DEFAULT_wxUSE_SCROLLBAR=no
2165 DEFAULT_wxUSE_SLIDER=no
2166 DEFAULT_wxUSE_SPINBTN=no
2167 DEFAULT_wxUSE_SPINCTRL=no
2168 DEFAULT_wxUSE_SPLITTER=no
2169 DEFAULT_wxUSE_STATBMP=no
2170 DEFAULT_wxUSE_STATBOX=no
2171 DEFAULT_wxUSE_STATLINE=no
2172 DEFAULT_wxUSE_STATTEXT=no
2173 DEFAULT_wxUSE_STATUSBAR=yes
2174 DEFAULT_wxUSE_TABDIALOG=no
2175 DEFAULT_wxUSE_TEXTCTRL=no
2176 DEFAULT_wxUSE_TOGGLEBTN=no
2177 DEFAULT_wxUSE_TOOLBAR=no
2178 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2179 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2180 DEFAULT_wxUSE_TREECTRL=no
2181 DEFAULT_wxUSE_POPUPWIN=no
2182 DEFAULT_wxUSE_TIPWINDOW=no
2183
2184 DEFAULT_wxUSE_UNICODE=no
2185 DEFAULT_wxUSE_UNICODE_MSLU=no
2186 DEFAULT_wxUSE_WCSRTOMBS=no
2187
2188 DEFAULT_wxUSE_PALETTE=no
2189 DEFAULT_wxUSE_IMAGE=no
2190 DEFAULT_wxUSE_GIF=no
2191 DEFAULT_wxUSE_PCX=no
2192 DEFAULT_wxUSE_PNM=no
2193 DEFAULT_wxUSE_IFF=no
2194 DEFAULT_wxUSE_XPM=no
2195 DEFAULT_wxUSE_ICO_CUR=no
2196 DEFAULT_wxUSE_ACCESSIBILITY=no
2197
2198 DEFAULT_wxUSE_MONOLITHIC=no
2199 DEFAULT_wxUSE_PLUGINS=no
2200 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2201else
2202 DEFAULT_wxUSE_UNIVERSAL=no
2203 DEFAULT_wxUSE_STL=no
2204
2205 DEFAULT_wxUSE_NANOX=no
2206
2207 DEFAULT_wxUSE_THREADS=yes
2208
2209 DEFAULT_wxUSE_SHARED=yes
2210 DEFAULT_wxUSE_OPTIMISE=yes
2211 DEFAULT_wxUSE_PROFILE=no
2212 DEFAULT_wxUSE_NO_DEPS=no
2213 DEFAULT_wxUSE_NO_RTTI=no
2214 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2215 DEFAULT_wxUSE_PERMISSIVE=no
2216 DEFAULT_wxUSE_DEBUG_FLAG=no
2217 DEFAULT_wxUSE_DEBUG_INFO=no
2218 DEFAULT_wxUSE_DEBUG_GDB=no
2219 DEFAULT_wxUSE_MEM_TRACING=no
2220 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2221 DEFAULT_wxUSE_DMALLOC=no
2222 DEFAULT_wxUSE_APPLE_IEEE=yes
2223
2224 DEFAULT_wxUSE_EXCEPTIONS=yes
2225 DEFAULT_wxUSE_LOG=yes
2226 DEFAULT_wxUSE_LOGWINDOW=yes
2227 DEFAULT_wxUSE_LOGGUI=yes
2228 DEFAULT_wxUSE_LOGDIALOG=yes
2229
2230 DEFAULT_wxUSE_GUI=yes
2231
2232 DEFAULT_wxUSE_REGEX=yes
2233 DEFAULT_wxUSE_XML=yes
2234 DEFAULT_wxUSE_EXPAT=yes
2235 DEFAULT_wxUSE_ZLIB=yes
2236 DEFAULT_wxUSE_LIBPNG=yes
2237 DEFAULT_wxUSE_LIBJPEG=yes
2238 DEFAULT_wxUSE_LIBTIFF=yes
2239 DEFAULT_wxUSE_LIBXPM=yes
2240 DEFAULT_wxUSE_LIBMSPACK=yes
2241 DEFAULT_wxUSE_LIBSDL=no
2242 DEFAULT_wxUSE_ODBC=no
2243 DEFAULT_wxUSE_OPENGL=no
2244
2245 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2246 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2247 DEFAULT_wxUSE_STD_IOSTREAM=no
2248 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2249 DEFAULT_wxUSE_DATETIME=yes
2250 DEFAULT_wxUSE_TIMER=yes
2251 DEFAULT_wxUSE_STOPWATCH=yes
2252 DEFAULT_wxUSE_FILE=yes
2253 DEFAULT_wxUSE_FFILE=yes
2254 DEFAULT_wxUSE_TEXTBUFFER=yes
2255 DEFAULT_wxUSE_TEXTFILE=yes
2256 DEFAULT_wxUSE_SOUND=yes
2257 DEFAULT_wxUSE_INTL=yes
2258 DEFAULT_wxUSE_CONFIG=yes
2259 DEFAULT_wxUSE_FONTMAP=yes
2260 DEFAULT_wxUSE_STREAMS=yes
2261 DEFAULT_wxUSE_SOCKETS=yes
2262 DEFAULT_wxUSE_OLE=yes
2263 DEFAULT_wxUSE_DATAOBJ=yes
2264 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2265 DEFAULT_wxUSE_JOYSTICK=yes
2266 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2267 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2268 DEFAULT_wxUSE_LONGLONG=yes
2269 DEFAULT_wxUSE_GEOMETRY=yes
2270
2271 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2272 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2273 DEFAULT_wxUSE_POSTSCRIPT=yes
2274
2275 DEFAULT_wxUSE_CLIPBOARD=yes
2276 DEFAULT_wxUSE_TOOLTIPS=yes
2277 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2278 DEFAULT_wxUSE_DRAGIMAGE=yes
2279 DEFAULT_wxUSE_SPLINES=yes
2280
8a7b1113 2281 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2282 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2283 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2284 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2285
2286 DEFAULT_wxUSE_RESOURCES=no
2287 DEFAULT_wxUSE_CONSTRAINTS=yes
2288 DEFAULT_wxUSE_IPC=yes
2289 DEFAULT_wxUSE_HELP=yes
2290 DEFAULT_wxUSE_MS_HTML_HELP=yes
2291 DEFAULT_wxUSE_WXHTML_HELP=yes
2292 DEFAULT_wxUSE_TREELAYOUT=yes
2293 DEFAULT_wxUSE_METAFILE=yes
2294 DEFAULT_wxUSE_MIMETYPE=yes
2295 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2296 DEFAULT_wxUSE_PROTOCOL=yes
2297 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2298 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2299 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2300 DEFAULT_wxUSE_URL=yes
2301
2302 DEFAULT_wxUSE_COMMONDLGS=yes
2303 DEFAULT_wxUSE_CHOICEDLG=yes
2304 DEFAULT_wxUSE_COLOURDLG=yes
2305 DEFAULT_wxUSE_DIRDLG=yes
2306 DEFAULT_wxUSE_FILEDLG=yes
2307 DEFAULT_wxUSE_FINDREPLDLG=yes
2308 DEFAULT_wxUSE_FONTDLG=yes
2309 DEFAULT_wxUSE_MSGDLG=yes
2310 DEFAULT_wxUSE_NUMBERDLG=yes
2311 DEFAULT_wxUSE_TEXTDLG=yes
2312 DEFAULT_wxUSE_SPLASH=yes
2313 DEFAULT_wxUSE_STARTUP_TIPS=yes
2314 DEFAULT_wxUSE_PROGRESSDLG=yes
2315 DEFAULT_wxUSE_WIZARDDLG=yes
2316
2317 DEFAULT_wxUSE_MENUS=yes
2318 DEFAULT_wxUSE_MINIFRAME=yes
2319 DEFAULT_wxUSE_HTML=yes
9a8f0513 2320 DEFAULT_wxUSE_XRC=yes
646b6ec1 2321 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2322 DEFAULT_wxUSE_FILESYSTEM=yes
2323 DEFAULT_wxUSE_FS_INET=yes
2324 DEFAULT_wxUSE_FS_ZIP=yes
2325 DEFAULT_wxUSE_BUSYINFO=yes
2326 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2327 DEFAULT_wxUSE_VALIDATORS=yes
2328
2329 DEFAULT_wxUSE_ACCEL=yes
2330 DEFAULT_wxUSE_BUTTON=yes
2331 DEFAULT_wxUSE_BMPBUTTON=yes
2332 DEFAULT_wxUSE_CALCTRL=yes
2333 DEFAULT_wxUSE_CARET=yes
2334 DEFAULT_wxUSE_CHECKBOX=yes
2335 DEFAULT_wxUSE_CHECKLST=yes
2336 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2337 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2338 DEFAULT_wxUSE_COMBOBOX=yes
2339 DEFAULT_wxUSE_DISPLAY=yes
2340 DEFAULT_wxUSE_GAUGE=yes
2341 DEFAULT_wxUSE_GRID=yes
2342 DEFAULT_wxUSE_IMAGLIST=yes
2343 DEFAULT_wxUSE_LISTBOOK=yes
2344 DEFAULT_wxUSE_LISTBOX=yes
2345 DEFAULT_wxUSE_LISTCTRL=yes
2346 DEFAULT_wxUSE_NOTEBOOK=yes
2347 DEFAULT_wxUSE_RADIOBOX=yes
2348 DEFAULT_wxUSE_RADIOBTN=yes
2349 DEFAULT_wxUSE_SASH=yes
2350 DEFAULT_wxUSE_SCROLLBAR=yes
2351 DEFAULT_wxUSE_SLIDER=yes
2352 DEFAULT_wxUSE_SPINBTN=yes
2353 DEFAULT_wxUSE_SPINCTRL=yes
2354 DEFAULT_wxUSE_SPLITTER=yes
2355 DEFAULT_wxUSE_STATBMP=yes
2356 DEFAULT_wxUSE_STATBOX=yes
2357 DEFAULT_wxUSE_STATLINE=yes
2358 DEFAULT_wxUSE_STATTEXT=yes
2359 DEFAULT_wxUSE_STATUSBAR=yes
2360 DEFAULT_wxUSE_TABDIALOG=no
2361 DEFAULT_wxUSE_TEXTCTRL=yes
2362 DEFAULT_wxUSE_TOGGLEBTN=yes
2363 DEFAULT_wxUSE_TOOLBAR=yes
2364 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2365 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2366 DEFAULT_wxUSE_TREECTRL=yes
2367 DEFAULT_wxUSE_POPUPWIN=yes
2368 DEFAULT_wxUSE_TIPWINDOW=yes
2369
2370 DEFAULT_wxUSE_UNICODE=no
2371 DEFAULT_wxUSE_UNICODE_MSLU=yes
2372 DEFAULT_wxUSE_WCSRTOMBS=no
2373
2374 DEFAULT_wxUSE_PALETTE=yes
2375 DEFAULT_wxUSE_IMAGE=yes
2376 DEFAULT_wxUSE_GIF=yes
2377 DEFAULT_wxUSE_PCX=yes
2378 DEFAULT_wxUSE_IFF=no
2379 DEFAULT_wxUSE_PNM=yes
2380 DEFAULT_wxUSE_XPM=yes
2381 DEFAULT_wxUSE_ICO_CUR=yes
2382 DEFAULT_wxUSE_ACCESSIBILITY=no
2383
2384 DEFAULT_wxUSE_MONOLITHIC=no
2385 DEFAULT_wxUSE_PLUGINS=no
2386 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2387
2388 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2389fi
2390
2391
2392
2393for toolkit in `echo $ALL_TOOLKITS`; do
2394 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2395 if test "x$LINE" != "x" ; then
2396 has_toolkit_in_cache=1
2397 eval "DEFAULT_$LINE"
2398 eval "CACHE_$toolkit=1"
2399 fi
2400done
2401
2402
2403
2404 enablestring=
2405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2406echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2407 no_cache=0
2408 # Check whether --enable-gui or --disable-gui was given.
2409if test "${enable_gui+set}" = set; then
2410 enableval="$enable_gui"
2411
2412 if test "$enableval" = yes; then
2413 ac_cv_use_gui='wxUSE_GUI=yes'
2414 else
2415 ac_cv_use_gui='wxUSE_GUI=no'
2416 fi
2417
2418else
2419
2420 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2421 if test "x$LINE" != x ; then
2422 eval "DEFAULT_$LINE"
2423 else
2424 no_cache=1
2425 fi
2426
2427 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2428
2429fi;
2430
2431 eval "$ac_cv_use_gui"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_GUI" = yes; then
2437 echo "$as_me:$LINENO: result: yes" >&5
2438echo "${ECHO_T}yes" >&6
2439 else
2440 echo "$as_me:$LINENO: result: no" >&5
2441echo "${ECHO_T}no" >&6
2442 fi
2443
2444
2445 enablestring=
2446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2447echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2448 no_cache=0
2449 # Check whether --enable-monolithic or --disable-monolithic was given.
2450if test "${enable_monolithic+set}" = set; then
2451 enableval="$enable_monolithic"
2452
2453 if test "$enableval" = yes; then
2454 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2455 else
2456 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2457 fi
2458
2459else
2460
2461 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2462 if test "x$LINE" != x ; then
2463 eval "DEFAULT_$LINE"
2464 else
2465 no_cache=1
2466 fi
2467
2468 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2469
2470fi;
2471
2472 eval "$ac_cv_use_monolithic"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_MONOLITHIC" = yes; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483 fi
2484
2485
2486 enablestring=
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2489 no_cache=0
2490 # Check whether --enable-plugins or --disable-plugins was given.
2491if test "${enable_plugins+set}" = set; then
2492 enableval="$enable_plugins"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2496 else
2497 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2510
2511fi;
2512
2513 eval "$ac_cv_use_plugins"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_PLUGINS" = yes; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
2521 else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524 fi
2525
2526
2527if test "$wxUSE_GUI" = "yes"; then
2528
2529
2530 enablestring=
2531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2532echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2533 no_cache=0
2534 # Check whether --enable-universal or --disable-universal was given.
2535if test "${enable_universal+set}" = set; then
2536 enableval="$enable_universal"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2540 else
2541 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2542 fi
2543
2544else
2545
2546 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2554
2555fi;
2556
2557 eval "$ac_cv_use_universal"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_UNIVERSAL" = yes; then
2563 echo "$as_me:$LINENO: result: yes" >&5
2564echo "${ECHO_T}yes" >&6
2565 else
2566 echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6
2568 fi
2569
2570
2571# Check whether --with-gtk or --without-gtk was given.
2572if test "${with_gtk+set}" = set; then
2573 withval="$with_gtk"
2574 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2575fi;
2576
2577# Check whether --with-motif or --without-motif was given.
2578if test "${with_motif+set}" = set; then
2579 withval="$with_motif"
2580 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2581fi;
2582
2583# Check whether --with-mac or --without-mac was given.
2584if test "${with_mac+set}" = set; then
2585 withval="$with_mac"
2586 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2587fi;
2588
2589# Check whether --with-cocoa or --without-cocoa was given.
2590if test "${with_cocoa+set}" = set; then
2591 withval="$with_cocoa"
2592 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2593fi;
2594
2595# Check whether --with-wine or --without-wine was given.
2596if test "${with_wine+set}" = set; then
2597 withval="$with_wine"
2598 wxUSE_WINE="$withval" CACHE_WINE=1
2599fi;
2600
2601# Check whether --with-msw or --without-msw was given.
2602if test "${with_msw+set}" = set; then
2603 withval="$with_msw"
2604 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2605fi;
2606
2607# Check whether --with-pm or --without-pm was given.
2608if test "${with_pm+set}" = set; then
2609 withval="$with_pm"
2610 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2611fi;
2612
2613# Check whether --with-mgl or --without-mgl was given.
2614if test "${with_mgl+set}" = set; then
2615 withval="$with_mgl"
2616 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-microwin or --without-microwin was given.
2620if test "${with_microwin+set}" = set; then
2621 withval="$with_microwin"
2622 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-x11 or --without-x11 was given.
2626if test "${with_x11+set}" = set; then
2627 withval="$with_x11"
2628 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631 enablestring=
2632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2633echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2634 no_cache=0
2635 # Check whether --enable-nanox or --disable-nanox was given.
2636if test "${enable_nanox+set}" = set; then
2637 enableval="$enable_nanox"
2638
2639 if test "$enableval" = yes; then
2640 ac_cv_use_nanox='wxUSE_NANOX=yes'
2641 else
2642 ac_cv_use_nanox='wxUSE_NANOX=no'
2643 fi
2644
2645else
2646
2647 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2648 if test "x$LINE" != x ; then
2649 eval "DEFAULT_$LINE"
2650 else
2651 no_cache=1
2652 fi
2653
2654 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2655
2656fi;
2657
2658 eval "$ac_cv_use_nanox"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_NANOX" = yes; then
2664 echo "$as_me:$LINENO: result: yes" >&5
2665echo "${ECHO_T}yes" >&6
2666 else
2667 echo "$as_me:$LINENO: result: no" >&5
2668echo "${ECHO_T}no" >&6
2669 fi
2670
2671
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2678if test "${enable_gtk2+set}" = set; then
2679 enableval="$enable_gtk2"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2683 else
2684 ac_cv_use_gtk2='wxUSE_GTK2=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2697
2698fi;
2699
2700 eval "$ac_cv_use_gtk2"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_GTK2" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
2714 enablestring=
2715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2716echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2717 no_cache=0
2718 # Check whether --enable-gpe or --disable-gpe was given.
2719if test "${enable_gpe+set}" = set; then
2720 enableval="$enable_gpe"
2721
2722 if test "$enableval" = yes; then
2723 ac_cv_use_gpe='wxUSE_GPE=yes'
2724 else
2725 ac_cv_use_gpe='wxUSE_GPE=no'
2726 fi
2727
2728else
2729
2730 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
2737 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2738
2739fi;
2740
2741 eval "$ac_cv_use_gpe"
2742 if test "$no_cache" != 1; then
2743 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2744 fi
2745
2746 if test "$wxUSE_GPE" = yes; then
2747 echo "$as_me:$LINENO: result: yes" >&5
2748echo "${ECHO_T}yes" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
2752 fi
2753
2754
2755
2756 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2757echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2758 no_cache=0
2759
2760# Check whether --with-libpng or --without-libpng was given.
2761if test "${with_libpng+set}" = set; then
2762 withval="$with_libpng"
2763
2764 if test "$withval" = yes; then
2765 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2766 elif test "$withval" = no; then
2767 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2768 elif test "$withval" = sys; then
2769 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2770 elif test "$withval" = builtin; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2772 else
2773 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2774echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2775 { (exit 1); exit 1; }; }
2776 fi
2777
2778else
2779
2780 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2788
2789fi;
2790
2791 eval "$ac_cv_use_libpng"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_LIBPNG" = yes; then
2797 echo "$as_me:$LINENO: result: yes" >&5
2798echo "${ECHO_T}yes" >&6
2799 elif test "$wxUSE_LIBPNG" = no; then
2800 echo "$as_me:$LINENO: result: no" >&5
2801echo "${ECHO_T}no" >&6
2802 elif test "$wxUSE_LIBPNG" = sys; then
2803 echo "$as_me:$LINENO: result: system version" >&5
2804echo "${ECHO_T}system version" >&6
2805 elif test "$wxUSE_LIBPNG" = builtin; then
2806 echo "$as_me:$LINENO: result: builtin version" >&5
2807echo "${ECHO_T}builtin version" >&6
2808 else
2809 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2810echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2811 { (exit 1); exit 1; }; }
2812 fi
2813
2814
2815 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2816echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2817 no_cache=0
2818
2819# Check whether --with-libjpeg or --without-libjpeg was given.
2820if test "${with_libjpeg+set}" = set; then
2821 withval="$with_libjpeg"
2822
2823 if test "$withval" = yes; then
2824 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2825 elif test "$withval" = no; then
2826 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2827 elif test "$withval" = sys; then
2828 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2829 elif test "$withval" = builtin; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2831 else
2832 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2833echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2834 { (exit 1); exit 1; }; }
2835 fi
2836
2837else
2838
2839 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2840 if test "x$LINE" != x ; then
2841 eval "DEFAULT_$LINE"
2842 else
2843 no_cache=1
2844 fi
2845
2846 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2847
2848fi;
2849
2850 eval "$ac_cv_use_libjpeg"
2851 if test "$no_cache" != 1; then
2852 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2853 fi
2854
2855 if test "$wxUSE_LIBJPEG" = yes; then
2856 echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6
2858 elif test "$wxUSE_LIBJPEG" = no; then
2859 echo "$as_me:$LINENO: result: no" >&5
2860echo "${ECHO_T}no" >&6
2861 elif test "$wxUSE_LIBJPEG" = sys; then
2862 echo "$as_me:$LINENO: result: system version" >&5
2863echo "${ECHO_T}system version" >&6
2864 elif test "$wxUSE_LIBJPEG" = builtin; then
2865 echo "$as_me:$LINENO: result: builtin version" >&5
2866echo "${ECHO_T}builtin version" >&6
2867 else
2868 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2869echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2870 { (exit 1); exit 1; }; }
2871 fi
2872
2873
2874 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2875echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2876 no_cache=0
2877
2878# Check whether --with-libtiff or --without-libtiff was given.
2879if test "${with_libtiff+set}" = set; then
2880 withval="$with_libtiff"
2881
2882 if test "$withval" = yes; then
2883 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2884 elif test "$withval" = no; then
2885 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2886 elif test "$withval" = sys; then
2887 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2888 elif test "$withval" = builtin; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2890 else
2891 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2892echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895
2896else
2897
2898 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2906
2907fi;
2908
2909 eval "$ac_cv_use_libtiff"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_LIBTIFF" = yes; then
2915 echo "$as_me:$LINENO: result: yes" >&5
2916echo "${ECHO_T}yes" >&6
2917 elif test "$wxUSE_LIBTIFF" = no; then
2918 echo "$as_me:$LINENO: result: no" >&5
2919echo "${ECHO_T}no" >&6
2920 elif test "$wxUSE_LIBTIFF" = sys; then
2921 echo "$as_me:$LINENO: result: system version" >&5
2922echo "${ECHO_T}system version" >&6
2923 elif test "$wxUSE_LIBTIFF" = builtin; then
2924 echo "$as_me:$LINENO: result: builtin version" >&5
2925echo "${ECHO_T}builtin version" >&6
2926 else
2927 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2928echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2929 { (exit 1); exit 1; }; }
2930 fi
2931
2932
2933 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2934echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2935 no_cache=0
2936
2937# Check whether --with-libxpm or --without-libxpm was given.
2938if test "${with_libxpm+set}" = set; then
2939 withval="$with_libxpm"
2940
2941 if test "$withval" = yes; then
2942 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2943 elif test "$withval" = no; then
2944 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2945 elif test "$withval" = sys; then
2946 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2947 elif test "$withval" = builtin; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2949 else
2950 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2951echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2952 { (exit 1); exit 1; }; }
2953 fi
2954
2955else
2956
2957 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2958 if test "x$LINE" != x ; then
2959 eval "DEFAULT_$LINE"
2960 else
2961 no_cache=1
2962 fi
2963
2964 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2965
2966fi;
2967
2968 eval "$ac_cv_use_libxpm"
2969 if test "$no_cache" != 1; then
2970 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2971 fi
2972
2973 if test "$wxUSE_LIBXPM" = yes; then
2974 echo "$as_me:$LINENO: result: yes" >&5
2975echo "${ECHO_T}yes" >&6
2976 elif test "$wxUSE_LIBXPM" = no; then
2977 echo "$as_me:$LINENO: result: no" >&5
2978echo "${ECHO_T}no" >&6
2979 elif test "$wxUSE_LIBXPM" = sys; then
2980 echo "$as_me:$LINENO: result: system version" >&5
2981echo "${ECHO_T}system version" >&6
2982 elif test "$wxUSE_LIBXPM" = builtin; then
2983 echo "$as_me:$LINENO: result: builtin version" >&5
2984echo "${ECHO_T}builtin version" >&6
2985 else
2986 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2987echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2988 { (exit 1); exit 1; }; }
2989 fi
2990
2991
2992 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2993echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2994 no_cache=0
2995
2996# Check whether --with-libmspack or --without-libmspack was given.
2997if test "${with_libmspack+set}" = set; then
2998 withval="$with_libmspack"
2999
3000 if test "$withval" = yes; then
3001 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3002 else
3003 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3004 fi
3005
3006else
3007
3008 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3009 if test "x$LINE" != x ; then
3010 eval "DEFAULT_$LINE"
3011 else
3012 no_cache=1
3013 fi
3014
3015 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3016
3017fi;
3018
3019 eval "$ac_cv_use_libmspack"
3020 if test "$no_cache" != 1; then
3021 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3022 fi
3023
3024 if test "$wxUSE_LIBMSPACK" = yes; then
3025 echo "$as_me:$LINENO: result: yes" >&5
3026echo "${ECHO_T}yes" >&6
3027 else
3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
3030 fi
3031
3032
3033 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3034echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3035 no_cache=0
3036
3037# Check whether --with-sdl or --without-sdl was given.
3038if test "${with_sdl+set}" = set; then
3039 withval="$with_sdl"
3040
3041 if test "$withval" = yes; then
3042 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3043 else
3044 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3045 fi
3046
3047else
3048
3049 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
3056 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3057
3058fi;
3059
3060 eval "$ac_cv_use_sdl"
3061 if test "$no_cache" != 1; then
3062 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3063 fi
3064
3065 if test "$wxUSE_LIBSDL" = yes; then
3066 echo "$as_me:$LINENO: result: yes" >&5
3067echo "${ECHO_T}yes" >&6
3068 else
3069 echo "$as_me:$LINENO: result: no" >&5
3070echo "${ECHO_T}no" >&6
3071 fi
3072
3073
3074 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3075echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3076 no_cache=0
3077
3078# Check whether --with-opengl or --without-opengl was given.
3079if test "${with_opengl+set}" = set; then
3080 withval="$with_opengl"
3081
3082 if test "$withval" = yes; then
3083 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3084 else
3085 ac_cv_use_opengl='wxUSE_OPENGL=no'
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3098
3099fi;
3100
3101 eval "$ac_cv_use_opengl"
3102 if test "$no_cache" != 1; then
3103 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3104 fi
3105
3106 if test "$wxUSE_OPENGL" = yes; then
3107 echo "$as_me:$LINENO: result: yes" >&5
3108echo "${ECHO_T}yes" >&6
3109 else
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112 fi
3113
3114
3115fi
3116
3117
3118 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3119echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3120 no_cache=0
3121
3122# Check whether --with-dmalloc or --without-dmalloc was given.
3123if test "${with_dmalloc+set}" = set; then
3124 withval="$with_dmalloc"
3125
3126 if test "$withval" = yes; then
3127 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3128 else
3129 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3142
3143fi;
3144
3145 eval "$ac_cv_use_dmalloc"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_DMALLOC" = yes; then
3151 echo "$as_me:$LINENO: result: yes" >&5
3152echo "${ECHO_T}yes" >&6
3153 else
3154 echo "$as_me:$LINENO: result: no" >&5
3155echo "${ECHO_T}no" >&6
3156 fi
3157
3158
3159 echo "$as_me:$LINENO: checking for --with-regex" >&5
3160echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3161 no_cache=0
3162
3163# Check whether --with-regex or --without-regex was given.
3164if test "${with_regex+set}" = set; then
3165 withval="$with_regex"
3166
3167 if test "$withval" = yes; then
3168 ac_cv_use_regex='wxUSE_REGEX=yes'
3169 elif test "$withval" = no; then
3170 ac_cv_use_regex='wxUSE_REGEX=no'
3171 elif test "$withval" = sys; then
3172 ac_cv_use_regex='wxUSE_REGEX=sys'
3173 elif test "$withval" = builtin; then
3174 ac_cv_use_regex='wxUSE_REGEX=builtin'
3175 else
3176 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3177echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3178 { (exit 1); exit 1; }; }
3179 fi
3180
3181else
3182
3183 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3191
3192fi;
3193
3194 eval "$ac_cv_use_regex"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_REGEX" = yes; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201echo "${ECHO_T}yes" >&6
3202 elif test "$wxUSE_REGEX" = no; then
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205 elif test "$wxUSE_REGEX" = sys; then
3206 echo "$as_me:$LINENO: result: system version" >&5
3207echo "${ECHO_T}system version" >&6
3208 elif test "$wxUSE_REGEX" = builtin; then
3209 echo "$as_me:$LINENO: result: builtin version" >&5
3210echo "${ECHO_T}builtin version" >&6
3211 else
3212 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3213echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3214 { (exit 1); exit 1; }; }
3215 fi
3216
3217
3218 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3219echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3220 no_cache=0
3221
3222# Check whether --with-zlib or --without-zlib was given.
3223if test "${with_zlib+set}" = set; then
3224 withval="$with_zlib"
3225
3226 if test "$withval" = yes; then
3227 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3228 elif test "$withval" = no; then
3229 ac_cv_use_zlib='wxUSE_ZLIB=no'
3230 elif test "$withval" = sys; then
3231 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3232 elif test "$withval" = builtin; then
3233 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3234 else
3235 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3236echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3237 { (exit 1); exit 1; }; }
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3250
3251fi;
3252
3253 eval "$ac_cv_use_zlib"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_ZLIB" = yes; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260echo "${ECHO_T}yes" >&6
3261 elif test "$wxUSE_ZLIB" = no; then
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264 elif test "$wxUSE_ZLIB" = sys; then
3265 echo "$as_me:$LINENO: result: system version" >&5
3266echo "${ECHO_T}system version" >&6
3267 elif test "$wxUSE_ZLIB" = builtin; then
3268 echo "$as_me:$LINENO: result: builtin version" >&5
3269echo "${ECHO_T}builtin version" >&6
3270 else
3271 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3272echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3273 { (exit 1); exit 1; }; }
3274 fi
3275
3276
3277 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3278echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3279 no_cache=0
3280
3281# Check whether --with-odbc or --without-odbc was given.
3282if test "${with_odbc+set}" = set; then
3283 withval="$with_odbc"
3284
3285 if test "$withval" = yes; then
3286 ac_cv_use_odbc='wxUSE_ODBC=yes'
3287 elif test "$withval" = no; then
3288 ac_cv_use_odbc='wxUSE_ODBC=no'
3289 elif test "$withval" = sys; then
3290 ac_cv_use_odbc='wxUSE_ODBC=sys'
3291 elif test "$withval" = builtin; then
3292 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3293 else
3294 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3295echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3296 { (exit 1); exit 1; }; }
3297 fi
3298
3299else
3300
3301 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3302 if test "x$LINE" != x ; then
3303 eval "DEFAULT_$LINE"
3304 else
3305 no_cache=1
3306 fi
3307
3308 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3309
3310fi;
3311
3312 eval "$ac_cv_use_odbc"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_ODBC" = yes; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319echo "${ECHO_T}yes" >&6
3320 elif test "$wxUSE_ODBC" = no; then
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323 elif test "$wxUSE_ODBC" = sys; then
3324 echo "$as_me:$LINENO: result: system version" >&5
3325echo "${ECHO_T}system version" >&6
3326 elif test "$wxUSE_ODBC" = builtin; then
3327 echo "$as_me:$LINENO: result: builtin version" >&5
3328echo "${ECHO_T}builtin version" >&6
3329 else
3330 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3331echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3332 { (exit 1); exit 1; }; }
3333 fi
3334
3335
3336 echo "$as_me:$LINENO: checking for --with-expat" >&5
3337echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3338 no_cache=0
3339
3340# Check whether --with-expat or --without-expat was given.
3341if test "${with_expat+set}" = set; then
3342 withval="$with_expat"
3343
3344 if test "$withval" = yes; then
3345 ac_cv_use_expat='wxUSE_EXPAT=yes'
3346 elif test "$withval" = no; then
3347 ac_cv_use_expat='wxUSE_EXPAT=no'
3348 elif test "$withval" = sys; then
3349 ac_cv_use_expat='wxUSE_EXPAT=sys'
3350 elif test "$withval" = builtin; then
3351 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3352 else
3353 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3354echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3355 { (exit 1); exit 1; }; }
3356 fi
3357
3358else
3359
3360 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3361 if test "x$LINE" != x ; then
3362 eval "DEFAULT_$LINE"
3363 else
3364 no_cache=1
3365 fi
3366
3367 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3368
3369fi;
3370
3371 eval "$ac_cv_use_expat"
3372 if test "$no_cache" != 1; then
3373 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3374 fi
3375
3376 if test "$wxUSE_EXPAT" = yes; then
3377 echo "$as_me:$LINENO: result: yes" >&5
3378echo "${ECHO_T}yes" >&6
3379 elif test "$wxUSE_EXPAT" = no; then
3380 echo "$as_me:$LINENO: result: no" >&5
3381echo "${ECHO_T}no" >&6
3382 elif test "$wxUSE_EXPAT" = sys; then
3383 echo "$as_me:$LINENO: result: system version" >&5
3384echo "${ECHO_T}system version" >&6
3385 elif test "$wxUSE_EXPAT" = builtin; then
3386 echo "$as_me:$LINENO: result: builtin version" >&5
3387echo "${ECHO_T}builtin version" >&6
3388 else
3389 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3390echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3391 { (exit 1); exit 1; }; }
3392 fi
3393
3394
3395
3396
3397 enablestring=
3398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3399echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3400 no_cache=0
3401 # Check whether --enable-shared or --disable-shared was given.
3402if test "${enable_shared+set}" = set; then
3403 enableval="$enable_shared"
3404
3405 if test "$enableval" = yes; then
3406 ac_cv_use_shared='wxUSE_SHARED=yes'
3407 else
3408 ac_cv_use_shared='wxUSE_SHARED=no'
3409 fi
3410
3411else
3412
3413 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3421
3422fi;
3423
3424 eval "$ac_cv_use_shared"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_SHARED" = yes; then
3430 echo "$as_me:$LINENO: result: yes" >&5
3431echo "${ECHO_T}yes" >&6
3432 else
3433 echo "$as_me:$LINENO: result: no" >&5
3434echo "${ECHO_T}no" >&6
3435 fi
3436
3437
3438 enablestring=
3439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3440echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3441 no_cache=0
3442 # Check whether --enable-optimise or --disable-optimise was given.
3443if test "${enable_optimise+set}" = set; then
3444 enableval="$enable_optimise"
3445
3446 if test "$enableval" = yes; then
3447 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3448 else
3449 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3450 fi
3451
3452else
3453
3454 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3462
3463fi;
3464
3465 eval "$ac_cv_use_optimise"
3466 if test "$no_cache" != 1; then
3467 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3468 fi
3469
3470 if test "$wxUSE_OPTIMISE" = yes; then
3471 echo "$as_me:$LINENO: result: yes" >&5
3472echo "${ECHO_T}yes" >&6
3473 else
3474 echo "$as_me:$LINENO: result: no" >&5
3475echo "${ECHO_T}no" >&6
3476 fi
3477
3478
3479 enablestring=
3480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3481echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3482 no_cache=0
3483 # Check whether --enable-debug or --disable-debug was given.
3484if test "${enable_debug+set}" = set; then
3485 enableval="$enable_debug"
3486
3487 if test "$enableval" = yes; then
3488 ac_cv_use_debug='wxUSE_DEBUG=yes'
3489 else
3490 ac_cv_use_debug='wxUSE_DEBUG=no'
3491 fi
3492
3493else
3494
3495 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3496 if test "x$LINE" != x ; then
3497 eval "DEFAULT_$LINE"
3498 else
3499 no_cache=1
3500 fi
3501
3502 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3503
3504fi;
3505
3506 eval "$ac_cv_use_debug"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_DEBUG" = yes; then
3512 echo "$as_me:$LINENO: result: yes" >&5
3513echo "${ECHO_T}yes" >&6
3514 else
3515 echo "$as_me:$LINENO: result: no" >&5
3516echo "${ECHO_T}no" >&6
3517 fi
3518
3519
3520 enablestring=
3521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3522echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3523 no_cache=0
3524 # Check whether --enable-stl or --disable-stl was given.
3525if test "${enable_stl+set}" = set; then
3526 enableval="$enable_stl"
3527
3528 if test "$enableval" = yes; then
3529 ac_cv_use_stl='wxUSE_STL=yes'
3530 else
3531 ac_cv_use_stl='wxUSE_STL=no'
3532 fi
3533
3534else
3535
3536 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3537 if test "x$LINE" != x ; then
3538 eval "DEFAULT_$LINE"
3539 else
3540 no_cache=1
3541 fi
3542
3543 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3544
3545fi;
3546
3547 eval "$ac_cv_use_stl"
3548 if test "$no_cache" != 1; then
3549 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3550 fi
3551
3552 if test "$wxUSE_STL" = yes; then
3553 echo "$as_me:$LINENO: result: yes" >&5
3554echo "${ECHO_T}yes" >&6
3555 else
3556 echo "$as_me:$LINENO: result: no" >&5
3557echo "${ECHO_T}no" >&6
3558 fi
3559
3560if test "$USE_OS2" = "1"; then
3561
3562 enablestring=
3563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3564echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3565 no_cache=0
3566 # Check whether --enable-omf or --disable-omf was given.
3567if test "${enable_omf+set}" = set; then
3568 enableval="$enable_omf"
3569
3570 if test "$enableval" = yes; then
3571 ac_cv_use_omf='wxUSE_OMF=yes'
3572 else
3573 ac_cv_use_omf='wxUSE_OMF=no'
3574 fi
3575
3576else
3577
3578 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3579 if test "x$LINE" != x ; then
3580 eval "DEFAULT_$LINE"
3581 else
3582 no_cache=1
3583 fi
3584
3585 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3586
3587fi;
3588
3589 eval "$ac_cv_use_omf"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_OMF" = yes; then
3595 echo "$as_me:$LINENO: result: yes" >&5
3596echo "${ECHO_T}yes" >&6
3597 else
3598 echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
3600 fi
3601
3602fi
3603
3604if test "$wxUSE_DEBUG" = "yes"; then
3605 DEFAULT_wxUSE_DEBUG_FLAG=yes
3606 DEFAULT_wxUSE_DEBUG_INFO=yes
3607 BUILD=debug
3608elif test "$wxUSE_DEBUG" = "no"; then
3609 DEFAULT_wxUSE_DEBUG_FLAG=no
3610 DEFAULT_wxUSE_DEBUG_INFO=no
3611 BUILD=release
3612fi
3613
3614
3615 enablestring=
3616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3617echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3618 no_cache=0
3619 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3620if test "${enable_debug_flag+set}" = set; then
3621 enableval="$enable_debug_flag"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3625 else
3626 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3627 fi
3628
3629else
3630
3631 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3639
3640fi;
3641
3642 eval "$ac_cv_use_debug_flag"
3643 if test "$no_cache" != 1; then
3644 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3645 fi
3646
3647 if test "$wxUSE_DEBUG_FLAG" = yes; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649echo "${ECHO_T}yes" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
3653 fi
3654
3655
3656 enablestring=
3657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3658echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3659 no_cache=0
3660 # Check whether --enable-debug_info or --disable-debug_info was given.
3661if test "${enable_debug_info+set}" = set; then
3662 enableval="$enable_debug_info"
3663
3664 if test "$enableval" = yes; then
3665 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3666 else
3667 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3668 fi
3669
3670else
3671
3672 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3673 if test "x$LINE" != x ; then
3674 eval "DEFAULT_$LINE"
3675 else
3676 no_cache=1
3677 fi
3678
3679 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3680
3681fi;
3682
3683 eval "$ac_cv_use_debug_info"
3684 if test "$no_cache" != 1; then
3685 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3686 fi
3687
3688 if test "$wxUSE_DEBUG_INFO" = yes; then
3689 echo "$as_me:$LINENO: result: yes" >&5
3690echo "${ECHO_T}yes" >&6
3691 else
3692 echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6
3694 fi
3695
3696
3697 enablestring=
3698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3699echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3700 no_cache=0
3701 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3702if test "${enable_debug_gdb+set}" = set; then
3703 enableval="$enable_debug_gdb"
3704
3705 if test "$enableval" = yes; then
3706 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3707 else
3708 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3709 fi
3710
3711else
3712
3713 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3714 if test "x$LINE" != x ; then
3715 eval "DEFAULT_$LINE"
3716 else
3717 no_cache=1
3718 fi
3719
3720 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3721
3722fi;
3723
3724 eval "$ac_cv_use_debug_gdb"
3725 if test "$no_cache" != 1; then
3726 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3727 fi
3728
3729 if test "$wxUSE_DEBUG_GDB" = yes; then
3730 echo "$as_me:$LINENO: result: yes" >&5
3731echo "${ECHO_T}yes" >&6
3732 else
3733 echo "$as_me:$LINENO: result: no" >&5
3734echo "${ECHO_T}no" >&6
3735 fi
3736
3737
3738 enablestring=
3739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3740echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3741 no_cache=0
3742 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3743if test "${enable_debug_cntxt+set}" = set; then
3744 enableval="$enable_debug_cntxt"
3745
3746 if test "$enableval" = yes; then
3747 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3748 else
3749 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3750 fi
3751
3752else
3753
3754 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3755 if test "x$LINE" != x ; then
3756 eval "DEFAULT_$LINE"
3757 else
3758 no_cache=1
3759 fi
3760
3761 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3762
3763fi;
3764
3765 eval "$ac_cv_use_debug_cntxt"
3766 if test "$no_cache" != 1; then
3767 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3768 fi
3769
3770 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3771 echo "$as_me:$LINENO: result: yes" >&5
3772echo "${ECHO_T}yes" >&6
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775echo "${ECHO_T}no" >&6
3776 fi
3777
3778
3779 enablestring=
3780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3781echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3782 no_cache=0
3783 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3784if test "${enable_mem_tracing+set}" = set; then
3785 enableval="$enable_mem_tracing"
3786
3787 if test "$enableval" = yes; then
3788 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3789 else
3790 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3791 fi
3792
3793else
3794
3795 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3803
3804fi;
3805
3806 eval "$ac_cv_use_mem_tracing"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_MEM_TRACING" = yes; then
3812 echo "$as_me:$LINENO: result: yes" >&5
3813echo "${ECHO_T}yes" >&6
3814 else
3815 echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
3817 fi
3818
3819
3820 enablestring=
3821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3822echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3823 no_cache=0
3824 # Check whether --enable-profile or --disable-profile was given.
3825if test "${enable_profile+set}" = set; then
3826 enableval="$enable_profile"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_profile='wxUSE_PROFILE=yes'
3830 else
3831 ac_cv_use_profile='wxUSE_PROFILE=no'
3832 fi
3833
3834else
3835
3836 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3844
3845fi;
3846
3847 eval "$ac_cv_use_profile"
3848 if test "$no_cache" != 1; then
3849 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3850 fi
3851
3852 if test "$wxUSE_PROFILE" = yes; then
3853 echo "$as_me:$LINENO: result: yes" >&5
3854echo "${ECHO_T}yes" >&6
3855 else
3856 echo "$as_me:$LINENO: result: no" >&5
3857echo "${ECHO_T}no" >&6
3858 fi
3859
3860
3861 enablestring=
3862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3863echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3864 no_cache=0
3865 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3866if test "${enable_no_rtti+set}" = set; then
3867 enableval="$enable_no_rtti"
3868
3869 if test "$enableval" = yes; then
3870 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3871 else
3872 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3873 fi
3874
3875else
3876
3877 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3885
3886fi;
3887
3888 eval "$ac_cv_use_no_rtti"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_NO_RTTI" = yes; then
3894 echo "$as_me:$LINENO: result: yes" >&5
3895echo "${ECHO_T}yes" >&6
3896 else
3897 echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899 fi
3900
3901
3902 enablestring=
3903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3904echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3905 no_cache=0
3906 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3907if test "${enable_no_exceptions+set}" = set; then
3908 enableval="$enable_no_exceptions"
3909
3910 if test "$enableval" = yes; then
3911 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3912 else
3913 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3914 fi
3915
3916else
3917
3918 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3919 if test "x$LINE" != x ; then
3920 eval "DEFAULT_$LINE"
3921 else
3922 no_cache=1
3923 fi
3924
3925 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3926
3927fi;
3928
3929 eval "$ac_cv_use_no_exceptions"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3935 echo "$as_me:$LINENO: result: yes" >&5
3936echo "${ECHO_T}yes" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939echo "${ECHO_T}no" >&6
3940 fi
3941
3942
3943 enablestring=
3944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3945echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3946 no_cache=0
3947 # Check whether --enable-permissive or --disable-permissive was given.
3948if test "${enable_permissive+set}" = set; then
3949 enableval="$enable_permissive"
3950
3951 if test "$enableval" = yes; then
3952 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3953 else
3954 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3955 fi
3956
3957else
3958
3959 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3960 if test "x$LINE" != x ; then
3961 eval "DEFAULT_$LINE"
3962 else
3963 no_cache=1
3964 fi
3965
3966 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3967
3968fi;
3969
3970 eval "$ac_cv_use_permissive"
3971 if test "$no_cache" != 1; then
3972 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3973 fi
3974
3975 if test "$wxUSE_PERMISSIVE" = yes; then
3976 echo "$as_me:$LINENO: result: yes" >&5
3977echo "${ECHO_T}yes" >&6
3978 else
3979 echo "$as_me:$LINENO: result: no" >&5
3980echo "${ECHO_T}no" >&6
3981 fi
3982
3983
3984 enablestring=
3985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3986echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3987 no_cache=0
3988 # Check whether --enable-no_deps or --disable-no_deps was given.
3989if test "${enable_no_deps+set}" = set; then
3990 enableval="$enable_no_deps"
3991
3992 if test "$enableval" = yes; then
3993 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3994 else
3995 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3996 fi
3997
3998else
3999
4000 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4008
4009fi;
4010
4011 eval "$ac_cv_use_no_deps"
4012 if test "$no_cache" != 1; then
4013 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4014 fi
4015
4016 if test "$wxUSE_NO_DEPS" = yes; then
4017 echo "$as_me:$LINENO: result: yes" >&5
4018echo "${ECHO_T}yes" >&6
4019 else
4020 echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6
4022 fi
4023
4024
4025
4026 enablestring=
4027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4028echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4029 no_cache=0
4030 # Check whether --enable-compat22 or --disable-compat22 was given.
4031if test "${enable_compat22+set}" = set; then
4032 enableval="$enable_compat22"
4033
4034 if test "$enableval" = yes; then
4035 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4036 else
4037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4038 fi
4039
4040else
4041
4042 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4043 if test "x$LINE" != x ; then
4044 eval "DEFAULT_$LINE"
4045 else
4046 no_cache=1
4047 fi
4048
4049 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4050
4051fi;
4052
4053 eval "$ac_cv_use_compat22"
4054 if test "$no_cache" != 1; then
4055 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4056 fi
4057
4058 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4059 echo "$as_me:$LINENO: result: yes" >&5
4060echo "${ECHO_T}yes" >&6
4061 else
4062 echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
4064 fi
4065
4066
4067 enablestring=disable
4068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4069echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4070 no_cache=0
4071 # Check whether --enable-compat24 or --disable-compat24 was given.
4072if test "${enable_compat24+set}" = set; then
4073 enableval="$enable_compat24"
4074
4075 if test "$enableval" = yes; then
4076 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4077 else
4078 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4079 fi
4080
4081else
4082
4083 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4091
4092fi;
4093
4094 eval "$ac_cv_use_compat24"
4095 if test "$no_cache" != 1; then
4096 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4097 fi
4098
4099 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4100 echo "$as_me:$LINENO: result: yes" >&5
4101echo "${ECHO_T}yes" >&6
4102 else
4103 echo "$as_me:$LINENO: result: no" >&5
4104echo "${ECHO_T}no" >&6
4105 fi
4106
4107
4108# Check whether --enable-rpath or --disable-rpath was given.
4109if test "${enable_rpath+set}" = set; then
4110 enableval="$enable_rpath"
4111 wxRPATH_DIR="$enableval"
4112fi;
4113
ac1cb8d3 4114if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4115 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4116fi
4117
4118
4119
4120
4121 enablestring=
4122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4123echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4124 no_cache=0
4125 # Check whether --enable-intl or --disable-intl was given.
4126if test "${enable_intl+set}" = set; then
4127 enableval="$enable_intl"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_intl='wxUSE_INTL=yes'
4131 else
4132 ac_cv_use_intl='wxUSE_INTL=no'
4133 fi
4134
4135else
4136
4137 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4145
4146fi;
4147
4148 eval "$ac_cv_use_intl"
4149 if test "$no_cache" != 1; then
4150 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4151 fi
4152
4153 if test "$wxUSE_INTL" = yes; then
4154 echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159 fi
4160
4161
4162 enablestring=
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-config or --disable-config was given.
4167if test "${enable_config+set}" = set; then
4168 enableval="$enable_config"
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_config='wxUSE_CONFIG=yes'
4172 else
4173 ac_cv_use_config='wxUSE_CONFIG=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4186
4187fi;
4188
4189 eval "$ac_cv_use_config"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_CONFIG" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
4202
4203
4204 enablestring=
4205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4206echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4207 no_cache=0
4208 # Check whether --enable-protocols or --disable-protocols was given.
4209if test "${enable_protocols+set}" = set; then
4210 enableval="$enable_protocols"
4211
4212 if test "$enableval" = yes; then
4213 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4214 else
4215 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4216 fi
4217
4218else
4219
4220 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4228
4229fi;
4230
4231 eval "$ac_cv_use_protocols"
4232 if test "$no_cache" != 1; then
4233 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4234 fi
4235
4236 if test "$wxUSE_PROTOCOL" = yes; then
4237 echo "$as_me:$LINENO: result: yes" >&5
4238echo "${ECHO_T}yes" >&6
4239 else
4240 echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6
4242 fi
4243
4244
4245 enablestring=
4246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4247echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4248 no_cache=0
4249 # Check whether --enable-ftp or --disable-ftp was given.
4250if test "${enable_ftp+set}" = set; then
4251 enableval="$enable_ftp"
4252
4253 if test "$enableval" = yes; then
4254 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4255 else
4256 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4257 fi
4258
4259else
4260
4261 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
4268 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4269
4270fi;
4271
4272 eval "$ac_cv_use_ftp"
4273 if test "$no_cache" != 1; then
4274 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4275 fi
4276
4277 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4278 echo "$as_me:$LINENO: result: yes" >&5
4279echo "${ECHO_T}yes" >&6
4280 else
4281 echo "$as_me:$LINENO: result: no" >&5
4282echo "${ECHO_T}no" >&6
4283 fi
4284
4285
4286 enablestring=
4287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4288echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4289 no_cache=0
4290 # Check whether --enable-http or --disable-http was given.
4291if test "${enable_http+set}" = set; then
4292 enableval="$enable_http"
4293
4294 if test "$enableval" = yes; then
4295 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4296 else
4297 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4298 fi
4299
4300else
4301
4302 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4310
4311fi;
4312
4313 eval "$ac_cv_use_http"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4319 echo "$as_me:$LINENO: result: yes" >&5
4320echo "${ECHO_T}yes" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324 fi
4325
4326
4327 enablestring=
4328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4329echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4330 no_cache=0
4331 # Check whether --enable-fileproto or --disable-fileproto was given.
4332if test "${enable_fileproto+set}" = set; then
4333 enableval="$enable_fileproto"
4334
4335 if test "$enableval" = yes; then
4336 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4337 else
4338 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4339 fi
4340
4341else
4342
4343 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4344 if test "x$LINE" != x ; then
4345 eval "DEFAULT_$LINE"
4346 else
4347 no_cache=1
4348 fi
4349
4350 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4351
4352fi;
4353
4354 eval "$ac_cv_use_fileproto"
4355 if test "$no_cache" != 1; then
4356 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4357 fi
4358
4359 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4360 echo "$as_me:$LINENO: result: yes" >&5
4361echo "${ECHO_T}yes" >&6
4362 else
4363 echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365 fi
4366
4367
4368 enablestring=
4369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4370echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4371 no_cache=0
4372 # Check whether --enable-sockets or --disable-sockets was given.
4373if test "${enable_sockets+set}" = set; then
4374 enableval="$enable_sockets"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4378 else
4379 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4380 fi
4381
4382else
4383
4384 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4392
4393fi;
4394
4395 eval "$ac_cv_use_sockets"
4396 if test "$no_cache" != 1; then
4397 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4398 fi
4399
4400 if test "$wxUSE_SOCKETS" = yes; then
4401 echo "$as_me:$LINENO: result: yes" >&5
4402echo "${ECHO_T}yes" >&6
4403 else
4404 echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6
4406 fi
4407
4408
4409 enablestring=
4410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4411echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4412 no_cache=0
4413 # Check whether --enable-ole or --disable-ole was given.
4414if test "${enable_ole+set}" = set; then
4415 enableval="$enable_ole"
4416
4417 if test "$enableval" = yes; then
4418 ac_cv_use_ole='wxUSE_OLE=yes'
4419 else
4420 ac_cv_use_ole='wxUSE_OLE=no'
4421 fi
4422
4423else
4424
4425 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4426 if test "x$LINE" != x ; then
4427 eval "DEFAULT_$LINE"
4428 else
4429 no_cache=1
4430 fi
4431
4432 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4433
4434fi;
4435
4436 eval "$ac_cv_use_ole"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_OLE" = yes; then
4442 echo "$as_me:$LINENO: result: yes" >&5
4443echo "${ECHO_T}yes" >&6
4444 else
4445 echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6
4447 fi
4448
4449
4450 enablestring=
4451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4452echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4453 no_cache=0
4454 # Check whether --enable-dataobj or --disable-dataobj was given.
4455if test "${enable_dataobj+set}" = set; then
4456 enableval="$enable_dataobj"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4460 else
4461 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4462 fi
4463
4464else
4465
4466 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4474
4475fi;
4476
4477 eval "$ac_cv_use_dataobj"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_DATAOBJ" = yes; then
4483 echo "$as_me:$LINENO: result: yes" >&5
4484echo "${ECHO_T}yes" >&6
4485 else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488 fi
4489
4490
4491
4492 enablestring=
4493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4494echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4495 no_cache=0
4496 # Check whether --enable-ipc or --disable-ipc was given.
4497if test "${enable_ipc+set}" = set; then
4498 enableval="$enable_ipc"
4499
4500 if test "$enableval" = yes; then
4501 ac_cv_use_ipc='wxUSE_IPC=yes'
4502 else
4503 ac_cv_use_ipc='wxUSE_IPC=no'
4504 fi
4505
4506else
4507
4508 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
4515 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4516
4517fi;
4518
4519 eval "$ac_cv_use_ipc"
4520 if test "$no_cache" != 1; then
4521 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4522 fi
4523
4524 if test "$wxUSE_IPC" = yes; then
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
4527 else
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
4530 fi
4531
4532
4533
4534 enablestring=
4535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4536echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4537 no_cache=0
4538 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4539if test "${enable_apple_ieee+set}" = set; then
4540 enableval="$enable_apple_ieee"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4544 else
4545 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4558
4559fi;
4560
4561 eval "$ac_cv_use_apple_ieee"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_APPLE_IEEE" = yes; then
4567 echo "$as_me:$LINENO: result: yes" >&5
4568echo "${ECHO_T}yes" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572 fi
4573
4574
4575 enablestring=
4576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4577echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4578 no_cache=0
4579 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4580if test "${enable_catch_segvs+set}" = set; then
4581 enableval="$enable_catch_segvs"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4585 else
4586 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4599
4600fi;
4601
4602 eval "$ac_cv_use_catch_segvs"
4603 if test "$no_cache" != 1; then
4604 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4605 fi
4606
4607 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4608 echo "$as_me:$LINENO: result: yes" >&5
4609echo "${ECHO_T}yes" >&6
4610 else
4611 echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613 fi
4614
4615
4616 enablestring=
4617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4618echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4619 no_cache=0
4620 # Check whether --enable-cmdline or --disable-cmdline was given.
4621if test "${enable_cmdline+set}" = set; then
4622 enableval="$enable_cmdline"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4626 else
4627 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4640
4641fi;
4642
4643 eval "$ac_cv_use_cmdline"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4649 echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6
4651 else
4652 echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
4654 fi
4655
4656
4657 enablestring=
4658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4659echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4660 no_cache=0
4661 # Check whether --enable-datetime or --disable-datetime was given.
4662if test "${enable_datetime+set}" = set; then
4663 enableval="$enable_datetime"
4664
4665 if test "$enableval" = yes; then
4666 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4667 else
4668 ac_cv_use_datetime='wxUSE_DATETIME=no'
4669 fi
4670
4671else
4672
4673 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4681
4682fi;
4683
4684 eval "$ac_cv_use_datetime"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4687 fi
4688
4689 if test "$wxUSE_DATETIME" = yes; then
4690 echo "$as_me:$LINENO: result: yes" >&5
4691echo "${ECHO_T}yes" >&6
4692 else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695 fi
4696
4697
4698 enablestring=
4699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4700echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4701 no_cache=0
4702 # Check whether --enable-dialupman or --disable-dialupman was given.
4703if test "${enable_dialupman+set}" = set; then
4704 enableval="$enable_dialupman"
4705
4706 if test "$enableval" = yes; then
4707 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4708 else
4709 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4710 fi
4711
4712else
4713
4714 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
4721 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4722
4723fi;
4724
4725 eval "$ac_cv_use_dialupman"
4726 if test "$no_cache" != 1; then
4727 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4728 fi
4729
4730 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4731 echo "$as_me:$LINENO: result: yes" >&5
4732echo "${ECHO_T}yes" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736 fi
4737
4738
4739 enablestring=
4740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4741echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4742 no_cache=0
4743 # Check whether --enable-dynlib or --disable-dynlib was given.
4744if test "${enable_dynlib+set}" = set; then
4745 enableval="$enable_dynlib"
4746
4747 if test "$enableval" = yes; then
4748 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4749 else
4750 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4751 fi
4752
4753else
4754
4755 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
4762 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4763
4764fi;
4765
4766 eval "$ac_cv_use_dynlib"
4767 if test "$no_cache" != 1; then
4768 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4769 fi
4770
4771 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
4774 else
4775 echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
4777 fi
4778
4779
4780 enablestring=
4781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4782echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4783 no_cache=0
4784 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4785if test "${enable_dynamicloader+set}" = set; then
4786 enableval="$enable_dynamicloader"
4787
4788 if test "$enableval" = yes; then
4789 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4790 else
4791 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4792 fi
4793
4794else
4795
4796 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
4803 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4804
4805fi;
4806
4807 eval "$ac_cv_use_dynamicloader"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4813 echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818 fi
4819
4820
4821 enablestring=
4822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4823echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4824 no_cache=0
4825 # Check whether --enable-exceptions or --disable-exceptions was given.
4826if test "${enable_exceptions+set}" = set; then
4827 enableval="$enable_exceptions"
4828
4829 if test "$enableval" = yes; then
4830 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4831 else
4832 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4833 fi
4834
4835else
4836
4837 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
4844 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4845
4846fi;
4847
4848 eval "$ac_cv_use_exceptions"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_EXCEPTIONS" = yes; then
4854 echo "$as_me:$LINENO: result: yes" >&5
4855echo "${ECHO_T}yes" >&6
4856 else
4857 echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859 fi
4860
4861
4862 enablestring=
4863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4864echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4865 no_cache=0
4866 # Check whether --enable-ffile or --disable-ffile was given.
4867if test "${enable_ffile+set}" = set; then
4868 enableval="$enable_ffile"
4869
4870 if test "$enableval" = yes; then
4871 ac_cv_use_ffile='wxUSE_FFILE=yes'
4872 else
4873 ac_cv_use_ffile='wxUSE_FFILE=no'
4874 fi
4875
4876else
4877
4878 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
4885 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4886
4887fi;
4888
4889 eval "$ac_cv_use_ffile"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_FFILE" = yes; then
4895 echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900 fi
4901
4902
4903 enablestring=
4904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4905echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4906 no_cache=0
4907 # Check whether --enable-file or --disable-file was given.
4908if test "${enable_file+set}" = set; then
4909 enableval="$enable_file"
4910
4911 if test "$enableval" = yes; then
4912 ac_cv_use_file='wxUSE_FILE=yes'
4913 else
4914 ac_cv_use_file='wxUSE_FILE=no'
4915 fi
4916
4917else
4918
4919 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4927
4928fi;
4929
4930 eval "$ac_cv_use_file"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_FILE" = yes; then
4936 echo "$as_me:$LINENO: result: yes" >&5
4937echo "${ECHO_T}yes" >&6
4938 else
4939 echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
4941 fi
4942
4943
4944 enablestring=
4945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4946echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4947 no_cache=0
4948 # Check whether --enable-filesystem or --disable-filesystem was given.
4949if test "${enable_filesystem+set}" = set; then
4950 enableval="$enable_filesystem"
4951
4952 if test "$enableval" = yes; then
4953 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4954 else
4955 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4956 fi
4957
4958else
4959
4960 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4968
4969fi;
4970
4971 eval "$ac_cv_use_filesystem"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_FILESYSTEM" = yes; then
4977 echo "$as_me:$LINENO: result: yes" >&5
4978echo "${ECHO_T}yes" >&6
4979 else
4980 echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6
4982 fi
4983
4984
4985 enablestring=
4986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4987echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4988 no_cache=0
4989 # Check whether --enable-fontmap or --disable-fontmap was given.
4990if test "${enable_fontmap+set}" = set; then
4991 enableval="$enable_fontmap"
4992
4993 if test "$enableval" = yes; then
4994 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4995 else
4996 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4997 fi
4998
4999else
5000
5001 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5002 if test "x$LINE" != x ; then
5003 eval "DEFAULT_$LINE"
5004 else
5005 no_cache=1
5006 fi
5007
5008 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5009
5010fi;
5011
5012 eval "$ac_cv_use_fontmap"
5013 if test "$no_cache" != 1; then
5014 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5015 fi
5016
5017 if test "$wxUSE_FONTMAP" = yes; then
5018 echo "$as_me:$LINENO: result: yes" >&5
5019echo "${ECHO_T}yes" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023 fi
5024
5025
5026 enablestring=
5027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5028echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5029 no_cache=0
5030 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5031if test "${enable_fs_inet+set}" = set; then
5032 enableval="$enable_fs_inet"
5033
5034 if test "$enableval" = yes; then
5035 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5036 else
5037 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5038 fi
5039
5040else
5041
5042 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5043 if test "x$LINE" != x ; then
5044 eval "DEFAULT_$LINE"
5045 else
5046 no_cache=1
5047 fi
5048
5049 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5050
5051fi;
5052
5053 eval "$ac_cv_use_fs_inet"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_FS_INET" = yes; then
5059 echo "$as_me:$LINENO: result: yes" >&5
5060echo "${ECHO_T}yes" >&6
5061 else
5062 echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
5064 fi
5065
5066
5067 enablestring=
5068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5069echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5070 no_cache=0
5071 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5072if test "${enable_fs_zip+set}" = set; then
5073 enableval="$enable_fs_zip"
5074
5075 if test "$enableval" = yes; then
5076 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5077 else
5078 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5079 fi
5080
5081else
5082
5083 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5084 if test "x$LINE" != x ; then
5085 eval "DEFAULT_$LINE"
5086 else
5087 no_cache=1
5088 fi
5089
5090 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5091
5092fi;
5093
5094 eval "$ac_cv_use_fs_zip"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_FS_ZIP" = yes; then
5100 echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102 else
5103 echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
5105 fi
5106
5107
5108 enablestring=
5109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5110echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5111 no_cache=0
5112 # Check whether --enable-geometry or --disable-geometry was given.
5113if test "${enable_geometry+set}" = set; then
5114 enableval="$enable_geometry"
5115
5116 if test "$enableval" = yes; then
5117 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5118 else
5119 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5120 fi
5121
5122else
5123
5124 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
5131 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5132
5133fi;
5134
5135 eval "$ac_cv_use_geometry"
5136 if test "$no_cache" != 1; then
5137 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5138 fi
5139
5140 if test "$wxUSE_GEOMETRY" = yes; then
5141 echo "$as_me:$LINENO: result: yes" >&5
5142echo "${ECHO_T}yes" >&6
5143 else
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
5146 fi
5147
5148
5149 enablestring=
5150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5151echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5152 no_cache=0
5153 # Check whether --enable-log or --disable-log was given.
5154if test "${enable_log+set}" = set; then
5155 enableval="$enable_log"
5156
5157 if test "$enableval" = yes; then
5158 ac_cv_use_log='wxUSE_LOG=yes'
5159 else
5160 ac_cv_use_log='wxUSE_LOG=no'
5161 fi
5162
5163else
5164
5165 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5166 if test "x$LINE" != x ; then
5167 eval "DEFAULT_$LINE"
5168 else
5169 no_cache=1
5170 fi
5171
5172 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5173
5174fi;
5175
5176 eval "$ac_cv_use_log"
5177 if test "$no_cache" != 1; then
5178 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5179 fi
5180
5181 if test "$wxUSE_LOG" = yes; then
5182 echo "$as_me:$LINENO: result: yes" >&5
5183echo "${ECHO_T}yes" >&6
5184 else
5185 echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
5187 fi
5188
5189
5190 enablestring=
5191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5192echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5193 no_cache=0
5194 # Check whether --enable-longlong or --disable-longlong was given.
5195if test "${enable_longlong+set}" = set; then
5196 enableval="$enable_longlong"
5197
5198 if test "$enableval" = yes; then
5199 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5200 else
5201 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5202 fi
5203
5204else
5205
5206 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
5213 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5214
5215fi;
5216
5217 eval "$ac_cv_use_longlong"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_LONGLONG" = yes; then
5223 echo "$as_me:$LINENO: result: yes" >&5
5224echo "${ECHO_T}yes" >&6
5225 else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228 fi
5229
5230
5231 enablestring=
5232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5233echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5234 no_cache=0
5235 # Check whether --enable-mimetype or --disable-mimetype was given.
5236if test "${enable_mimetype+set}" = set; then
5237 enableval="$enable_mimetype"
5238
5239 if test "$enableval" = yes; then
5240 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5241 else
5242 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5243 fi
5244
5245else
5246
5247 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5248 if test "x$LINE" != x ; then
5249 eval "DEFAULT_$LINE"
5250 else
5251 no_cache=1
5252 fi
5253
5254 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5255
5256fi;
5257
5258 eval "$ac_cv_use_mimetype"
5259 if test "$no_cache" != 1; then
5260 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5261 fi
5262
5263 if test "$wxUSE_MIMETYPE" = yes; then
5264 echo "$as_me:$LINENO: result: yes" >&5
5265echo "${ECHO_T}yes" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269 fi
5270
5271
5272 enablestring=
5273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5274echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5275 no_cache=0
5276 # Check whether --enable-mslu or --disable-mslu was given.
5277if test "${enable_mslu+set}" = set; then
5278 enableval="$enable_mslu"
5279
5280 if test "$enableval" = yes; then
5281 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5282 else
5283 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5284 fi
5285
5286else
5287
5288 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
5295 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5296
5297fi;
5298
5299 eval "$ac_cv_use_mslu"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_UNICODE_MSLU" = yes; then
5305 echo "$as_me:$LINENO: result: yes" >&5
5306echo "${ECHO_T}yes" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310 fi
5311
5312
5313 enablestring=
5314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5315echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5316 no_cache=0
5317 # Check whether --enable-snglinst or --disable-snglinst was given.
5318if test "${enable_snglinst+set}" = set; then
5319 enableval="$enable_snglinst"
5320
5321 if test "$enableval" = yes; then
5322 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5323 else
5324 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5325 fi
5326
5327else
5328
5329 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
5336 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5337
5338fi;
5339
5340 eval "$ac_cv_use_snglinst"
5341 if test "$no_cache" != 1; then
5342 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5343 fi
5344
5345 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5346 echo "$as_me:$LINENO: result: yes" >&5
5347echo "${ECHO_T}yes" >&6
5348 else
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351 fi
5352
5353
5354 enablestring=
5355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5356echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5357 no_cache=0
5358 # Check whether --enable-streams or --disable-streams was given.
5359if test "${enable_streams+set}" = set; then
5360 enableval="$enable_streams"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_streams='wxUSE_STREAMS=yes'
5364 else
5365 ac_cv_use_streams='wxUSE_STREAMS=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5378
5379fi;
5380
5381 eval "$ac_cv_use_streams"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_STREAMS" = yes; then
5387 echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392 fi
5393
5394
5395 enablestring=
5396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5397echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5398 no_cache=0
5399 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5400if test "${enable_std_iostreams+set}" = set; then
5401 enableval="$enable_std_iostreams"
5402
5403 if test "$enableval" = yes; then
5404 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5405 else
5406 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5407 fi
5408
5409else
5410
5411 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5419
5420fi;
5421
5422 eval "$ac_cv_use_std_iostreams"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_STD_IOSTREAM" = yes; then
5428 echo "$as_me:$LINENO: result: yes" >&5
5429echo "${ECHO_T}yes" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6
5433 fi
5434
5435
5436 enablestring=
5437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5438echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5439 no_cache=0
5440 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5441if test "${enable_stopwatch+set}" = set; then
5442 enableval="$enable_stopwatch"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5446 else
5447 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5460
5461fi;
5462
5463 eval "$ac_cv_use_stopwatch"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_STOPWATCH" = yes; then
5469 echo "$as_me:$LINENO: result: yes" >&5
5470echo "${ECHO_T}yes" >&6
5471 else
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
5474 fi
5475
5476
5477 enablestring=
5478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5479echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5480 no_cache=0
5481 # Check whether --enable-system_options or --disable-system_options was given.
5482if test "${enable_system_options+set}" = set; then
5483 enableval="$enable_system_options"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5487 else
5488 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5489 fi
5490
5491else
5492
5493 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5501
5502fi;
5503
5504 eval "$ac_cv_use_system_options"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5510 echo "$as_me:$LINENO: result: yes" >&5
5511echo "${ECHO_T}yes" >&6
5512 else
5513 echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515 fi
5516
5517
5518 enablestring=
5519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5520echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5521 no_cache=0
5522 # Check whether --enable-textbuf or --disable-textbuf was given.
5523if test "${enable_textbuf+set}" = set; then
5524 enableval="$enable_textbuf"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5528 else
5529 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5530 fi
5531
5532else
5533
5534 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5542
5543fi;
5544
5545 eval "$ac_cv_use_textbuf"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_TEXTBUFFER" = yes; then
5551 echo "$as_me:$LINENO: result: yes" >&5
5552echo "${ECHO_T}yes" >&6
5553 else
5554 echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
5556 fi
5557
5558
5559 enablestring=
5560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5561echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5562 no_cache=0
5563 # Check whether --enable-textfile or --disable-textfile was given.
5564if test "${enable_textfile+set}" = set; then
5565 enableval="$enable_textfile"
5566
5567 if test "$enableval" = yes; then
5568 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5569 else
5570 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5571 fi
5572
5573else
5574
5575 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5583
5584fi;
5585
5586 eval "$ac_cv_use_textfile"
5587 if test "$no_cache" != 1; then
5588 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5589 fi
5590
5591 if test "$wxUSE_TEXTFILE" = yes; then
5592 echo "$as_me:$LINENO: result: yes" >&5
5593echo "${ECHO_T}yes" >&6
5594 else
5595 echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597 fi
5598
5599
5600 enablestring=
5601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5602echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5603 no_cache=0
5604 # Check whether --enable-timer or --disable-timer was given.
5605if test "${enable_timer+set}" = set; then
5606 enableval="$enable_timer"
5607
5608 if test "$enableval" = yes; then
5609 ac_cv_use_timer='wxUSE_TIMER=yes'
5610 else
5611 ac_cv_use_timer='wxUSE_TIMER=no'
5612 fi
5613
5614else
5615
5616 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5617 if test "x$LINE" != x ; then
5618 eval "DEFAULT_$LINE"
5619 else
5620 no_cache=1
5621 fi
5622
5623 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5624
5625fi;
5626
5627 eval "$ac_cv_use_timer"
5628 if test "$no_cache" != 1; then
5629 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5630 fi
5631
5632 if test "$wxUSE_TIMER" = yes; then
5633 echo "$as_me:$LINENO: result: yes" >&5
5634echo "${ECHO_T}yes" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638 fi
5639
5640
5641 enablestring=
5642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5643echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5644 no_cache=0
5645 # Check whether --enable-unicode or --disable-unicode was given.
5646if test "${enable_unicode+set}" = set; then
5647 enableval="$enable_unicode"
5648
5649 if test "$enableval" = yes; then
5650 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5651 else
5652 ac_cv_use_unicode='wxUSE_UNICODE=no'
5653 fi
5654
5655else
5656
5657 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
5664 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5665
5666fi;
5667
5668 eval "$ac_cv_use_unicode"
5669 if test "$no_cache" != 1; then
5670 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5671 fi
5672
5673 if test "$wxUSE_UNICODE" = yes; then
5674 echo "$as_me:$LINENO: result: yes" >&5
5675echo "${ECHO_T}yes" >&6
5676 else
5677 echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679 fi
5680
5681
5682 enablestring=
5683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5684echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5685 no_cache=0
5686 # Check whether --enable-sound or --disable-sound was given.
5687if test "${enable_sound+set}" = set; then
5688 enableval="$enable_sound"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_sound='wxUSE_SOUND=yes'
5692 else
5693 ac_cv_use_sound='wxUSE_SOUND=no'
5694 fi
5695
5696else
5697
5698 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5706
5707fi;
5708
5709 eval "$ac_cv_use_sound"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_SOUND" = yes; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716echo "${ECHO_T}yes" >&6
5717 else
5718 echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6
5720 fi
5721
5722
5723 enablestring=
5724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5725echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5726 no_cache=0
5727 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5728if test "${enable_wxprintfv+set}" = set; then
5729 enableval="$enable_wxprintfv"
5730
5731 if test "$enableval" = yes; then
5732 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5733 else
5734 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5735 fi
5736
5737else
5738
5739 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5740 if test "x$LINE" != x ; then
5741 eval "DEFAULT_$LINE"
5742 else
5743 no_cache=1
5744 fi
5745
5746 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5747
5748fi;
5749
5750 eval "$ac_cv_use_wxprintfv"
5751 if test "$no_cache" != 1; then
5752 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5753 fi
5754
5755 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5756 echo "$as_me:$LINENO: result: yes" >&5
5757echo "${ECHO_T}yes" >&6
5758 else
5759 echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761 fi
5762
5763
5764 enablestring=
5765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5766echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5767 no_cache=0
5768 # Check whether --enable-zipstream or --disable-zipstream was given.
5769if test "${enable_zipstream+set}" = set; then
5770 enableval="$enable_zipstream"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5774 else
5775 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5776 fi
5777
5778else
5779
5780 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5788
5789fi;
5790
5791 eval "$ac_cv_use_zipstream"
5792 if test "$no_cache" != 1; then
5793 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5794 fi
5795
5796 if test "$wxUSE_ZIPSTREAM" = yes; then
5797 echo "$as_me:$LINENO: result: yes" >&5
5798echo "${ECHO_T}yes" >&6
5799 else
5800 echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802 fi
5803
5804
a848cd7e
SC
5805
5806 enablestring=
5807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5808echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5809 no_cache=0
5810 # Check whether --enable-url or --disable-url was given.
5811if test "${enable_url+set}" = set; then
5812 enableval="$enable_url"
5813
5814 if test "$enableval" = yes; then
5815 ac_cv_use_url='wxUSE_URL=yes'
5816 else
5817 ac_cv_use_url='wxUSE_URL=no'
5818 fi
5819
5820else
5821
5822 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5823 if test "x$LINE" != x ; then
5824 eval "DEFAULT_$LINE"
5825 else
5826 no_cache=1
5827 fi
5828
5829 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5830
5831fi;
5832
5833 eval "$ac_cv_use_url"
5834 if test "$no_cache" != 1; then
5835 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5836 fi
5837
5838 if test "$wxUSE_URL" = yes; then
5839 echo "$as_me:$LINENO: result: yes" >&5
5840echo "${ECHO_T}yes" >&6
5841 else
5842 echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
5844 fi
5845
5846
5847 enablestring=
5848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5849echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5850 no_cache=0
5851 # Check whether --enable-protocol or --disable-protocol was given.
5852if test "${enable_protocol+set}" = set; then
5853 enableval="$enable_protocol"
5854
5855 if test "$enableval" = yes; then
5856 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5857 else
5858 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5859 fi
5860
5861else
5862
5863 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5864 if test "x$LINE" != x ; then
5865 eval "DEFAULT_$LINE"
5866 else
5867 no_cache=1
5868 fi
5869
5870 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5871
5872fi;
5873
5874 eval "$ac_cv_use_protocol"
5875 if test "$no_cache" != 1; then
5876 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5877 fi
5878
5879 if test "$wxUSE_PROTOCOL" = yes; then
5880 echo "$as_me:$LINENO: result: yes" >&5
5881echo "${ECHO_T}yes" >&6
5882 else
5883 echo "$as_me:$LINENO: result: no" >&5
5884echo "${ECHO_T}no" >&6
5885 fi
5886
5887
5888 enablestring=
5889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5890echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5891 no_cache=0
5892 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5893if test "${enable_protocol_http+set}" = set; then
5894 enableval="$enable_protocol_http"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5898 else
5899 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5900 fi
5901
5902else
5903
5904 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5912
5913fi;
5914
5915 eval "$ac_cv_use_protocol_http"
5916 if test "$no_cache" != 1; then
5917 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5918 fi
5919
5920 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5921 echo "$as_me:$LINENO: result: yes" >&5
5922echo "${ECHO_T}yes" >&6
5923 else
5924 echo "$as_me:$LINENO: result: no" >&5
5925echo "${ECHO_T}no" >&6
5926 fi
5927
5928
5929 enablestring=
5930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5931echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5932 no_cache=0
5933 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5934if test "${enable_protocol_ftp+set}" = set; then
5935 enableval="$enable_protocol_ftp"
5936
5937 if test "$enableval" = yes; then
5938 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5939 else
5940 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5941 fi
5942
5943else
5944
5945 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5946 if test "x$LINE" != x ; then
5947 eval "DEFAULT_$LINE"
5948 else
5949 no_cache=1
5950 fi
5951
5952 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5953
5954fi;
5955
5956 eval "$ac_cv_use_protocol_ftp"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5962 echo "$as_me:$LINENO: result: yes" >&5
5963echo "${ECHO_T}yes" >&6
5964 else
5965 echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
5967 fi
5968
5969
5970 enablestring=
5971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5972echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5973 no_cache=0
5974 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5975if test "${enable_protocol_file+set}" = set; then
5976 enableval="$enable_protocol_file"
5977
5978 if test "$enableval" = yes; then
5979 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5980 else
5981 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5982 fi
5983
5984else
5985
5986 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5987 if test "x$LINE" != x ; then
5988 eval "DEFAULT_$LINE"
5989 else
5990 no_cache=1
5991 fi
5992
5993 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5994
5995fi;
5996
5997 eval "$ac_cv_use_protocol_file"
5998 if test "$no_cache" != 1; then
5999 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6000 fi
6001
6002 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6003 echo "$as_me:$LINENO: result: yes" >&5
6004echo "${ECHO_T}yes" >&6
6005 else
6006 echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6
6008 fi
6009
6010
6011
6012
6013
6014 enablestring=
6015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6017 no_cache=0
6018 # Check whether --enable-threads or --disable-threads was given.
6019if test "${enable_threads+set}" = set; then
6020 enableval="$enable_threads"
6021
6022 if test "$enableval" = yes; then
6023 ac_cv_use_threads='wxUSE_THREADS=yes'
6024 else
6025 ac_cv_use_threads='wxUSE_THREADS=no'
6026 fi
6027
6028else
6029
6030 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
6037 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6038
6039fi;
6040
6041 eval "$ac_cv_use_threads"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_THREADS" = yes; then
6047 echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052 fi
6053
6054
6055if test "$wxUSE_GUI" = "yes"; then
6056
6057
6058
6059 enablestring=
6060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6061echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6062 no_cache=0
6063 # Check whether --enable-docview or --disable-docview was given.
6064if test "${enable_docview+set}" = set; then
6065 enableval="$enable_docview"
6066
6067 if test "$enableval" = yes; then
6068 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6069 else
6070 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6071 fi
6072
6073else
6074
6075 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6083
6084fi;
6085
6086 eval "$ac_cv_use_docview"
6087 if test "$no_cache" != 1; then
6088 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6089 fi
6090
6091 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6092 echo "$as_me:$LINENO: result: yes" >&5
6093echo "${ECHO_T}yes" >&6
6094 else
6095 echo "$as_me:$LINENO: result: no" >&5
6096echo "${ECHO_T}no" >&6
6097 fi
6098
6099
6100 enablestring=
6101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6102echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6103 no_cache=0
6104 # Check whether --enable-help or --disable-help was given.
6105if test "${enable_help+set}" = set; then
6106 enableval="$enable_help"
6107
6108 if test "$enableval" = yes; then
6109 ac_cv_use_help='wxUSE_HELP=yes'
6110 else
6111 ac_cv_use_help='wxUSE_HELP=no'
6112 fi
6113
6114else
6115
6116 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6117 if test "x$LINE" != x ; then
6118 eval "DEFAULT_$LINE"
6119 else
6120 no_cache=1
6121 fi
6122
6123 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6124
6125fi;
6126
6127 eval "$ac_cv_use_help"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_HELP" = yes; then
6133 echo "$as_me:$LINENO: result: yes" >&5
6134echo "${ECHO_T}yes" >&6
6135 else
6136 echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
6138 fi
6139
6140
6141 enablestring=
6142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6143echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6144 no_cache=0
6145 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6146if test "${enable_mshtmlhelp+set}" = set; then
6147 enableval="$enable_mshtmlhelp"
6148
6149 if test "$enableval" = yes; then
6150 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6151 else
6152 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6153 fi
6154
6155else
6156
6157 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6158 if test "x$LINE" != x ; then
6159 eval "DEFAULT_$LINE"
6160 else
6161 no_cache=1
6162 fi
6163
6164 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6165
6166fi;
6167
6168 eval "$ac_cv_use_mshtmlhelp"
6169 if test "$no_cache" != 1; then
6170 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6171 fi
6172
6173 if test "$wxUSE_MS_HTML_HELP" = yes; then
6174 echo "$as_me:$LINENO: result: yes" >&5
6175echo "${ECHO_T}yes" >&6
6176 else
6177 echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
6179 fi
6180
6181
6182 enablestring=
6183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6184echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6185 no_cache=0
6186 # Check whether --enable-html or --disable-html was given.
6187if test "${enable_html+set}" = set; then
6188 enableval="$enable_html"
6189
6190 if test "$enableval" = yes; then
6191 ac_cv_use_html='wxUSE_HTML=yes'
6192 else
6193 ac_cv_use_html='wxUSE_HTML=no'
6194 fi
6195
6196else
6197
6198 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6199 if test "x$LINE" != x ; then
6200 eval "DEFAULT_$LINE"
6201 else
6202 no_cache=1
6203 fi
6204
6205 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6206
6207fi;
6208
6209 eval "$ac_cv_use_html"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_HTML" = yes; then
6215 echo "$as_me:$LINENO: result: yes" >&5
6216echo "${ECHO_T}yes" >&6
6217 else
6218 echo "$as_me:$LINENO: result: no" >&5
6219echo "${ECHO_T}no" >&6
6220 fi
6221
6222
6223 enablestring=
6224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6225echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6226 no_cache=0
6227 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6228if test "${enable_htmlhelp+set}" = set; then
6229 enableval="$enable_htmlhelp"
6230
6231 if test "$enableval" = yes; then
6232 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6233 else
6234 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6235 fi
6236
6237else
6238
6239 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6240 if test "x$LINE" != x ; then
6241 eval "DEFAULT_$LINE"
6242 else
6243 no_cache=1
6244 fi
6245
6246 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6247
6248fi;
6249
6250 eval "$ac_cv_use_htmlhelp"
6251 if test "$no_cache" != 1; then
6252 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6253 fi
6254
6255 if test "$wxUSE_WXHTML_HELP" = yes; then
6256 echo "$as_me:$LINENO: result: yes" >&5
6257echo "${ECHO_T}yes" >&6
6258 else
6259 echo "$as_me:$LINENO: result: no" >&5
6260echo "${ECHO_T}no" >&6
6261 fi
6262
6263
9a8f0513
VS
6264 enablestring=
6265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6266echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6267 no_cache=0
6268 # Check whether --enable-xrc or --disable-xrc was given.
6269if test "${enable_xrc+set}" = set; then
6270 enableval="$enable_xrc"
6271
6272 if test "$enableval" = yes; then
6273 ac_cv_use_xrc='wxUSE_XRC=yes'
6274 else
6275 ac_cv_use_xrc='wxUSE_XRC=no'
6276 fi
6277
6278else
6279
6280 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6288
6289fi;
6290
6291 eval "$ac_cv_use_xrc"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_XRC" = yes; then
6297 echo "$as_me:$LINENO: result: yes" >&5
6298echo "${ECHO_T}yes" >&6
6299 else
6300 echo "$as_me:$LINENO: result: no" >&5
6301echo "${ECHO_T}no" >&6
6302 fi
6303
6304
a848cd7e
SC
6305 enablestring=
6306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6307echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6308 no_cache=0
6309 # Check whether --enable-constraints or --disable-constraints was given.
6310if test "${enable_constraints+set}" = set; then
6311 enableval="$enable_constraints"
6312
6313 if test "$enableval" = yes; then
6314 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6315 else
6316 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6317 fi
6318
6319else
6320
6321 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6322 if test "x$LINE" != x ; then
6323 eval "DEFAULT_$LINE"
6324 else
6325 no_cache=1
6326 fi
6327
6328 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6329
6330fi;
6331
6332 eval "$ac_cv_use_constraints"
6333 if test "$no_cache" != 1; then
6334 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6335 fi
6336
6337 if test "$wxUSE_CONSTRAINTS" = yes; then
6338 echo "$as_me:$LINENO: result: yes" >&5
6339echo "${ECHO_T}yes" >&6
6340 else
6341 echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6
6343 fi
6344
6345
6346 enablestring=
6347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6348echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6349 no_cache=0
6350 # Check whether --enable-printarch or --disable-printarch was given.
6351if test "${enable_printarch+set}" = set; then
6352 enableval="$enable_printarch"
6353
6354 if test "$enableval" = yes; then
6355 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6356 else
6357 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6358 fi
6359
6360else
6361
6362 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6363 if test "x$LINE" != x ; then
6364 eval "DEFAULT_$LINE"
6365 else
6366 no_cache=1
6367 fi
6368
6369 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6370
6371fi;
6372
6373 eval "$ac_cv_use_printarch"
6374 if test "$no_cache" != 1; then
6375 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6376 fi
6377
6378 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6379 echo "$as_me:$LINENO: result: yes" >&5
6380echo "${ECHO_T}yes" >&6
6381 else
6382 echo "$as_me:$LINENO: result: no" >&5
6383echo "${ECHO_T}no" >&6
6384 fi
6385
6386
6387 enablestring=
6388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6389echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6390 no_cache=0
6391 # Check whether --enable-mdi or --disable-mdi was given.
6392if test "${enable_mdi+set}" = set; then
6393 enableval="$enable_mdi"
6394
6395 if test "$enableval" = yes; then
8a7b1113 6396 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6397 else
8a7b1113 6398 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6399 fi
6400
6401else
6402
8a7b1113 6403 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6404 if test "x$LINE" != x ; then
6405 eval "DEFAULT_$LINE"
6406 else
6407 no_cache=1
6408 fi
6409
8a7b1113 6410 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6411
6412fi;
6413
6414 eval "$ac_cv_use_mdi"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6417 fi
6418
8a7b1113
VZ
6419 if test "$wxUSE_MDI" = yes; then
6420 echo "$as_me:$LINENO: result: yes" >&5
6421echo "${ECHO_T}yes" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425 fi
6426
6427
6428 enablestring=
6429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6430echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6431 no_cache=0
6432 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6433if test "${enable_mdidoc+set}" = set; then
6434 enableval="$enable_mdidoc"
6435
6436 if test "$enableval" = yes; then
6437 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6438 else
6439 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6440 fi
6441
6442else
6443
6444 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6452
6453fi;
6454
6455 eval "$ac_cv_use_mdidoc"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6458 fi
6459
a848cd7e
SC
6460 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6461 echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6
6463 else
6464 echo "$as_me:$LINENO: result: no" >&5
6465echo "${ECHO_T}no" >&6
6466 fi
6467
6468
6469 enablestring=
6470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6471echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6472 no_cache=0
6473 # Check whether --enable-loggui or --disable-loggui was given.
6474if test "${enable_loggui+set}" = set; then
6475 enableval="$enable_loggui"
6476
6477 if test "$enableval" = yes; then
6478 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6479 else
6480 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6481 fi
6482
6483else
6484
6485 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6486 if test "x$LINE" != x ; then
6487 eval "DEFAULT_$LINE"
6488 else
6489 no_cache=1
6490 fi
6491
6492 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6493
6494fi;
6495
6496 eval "$ac_cv_use_loggui"
6497 if test "$no_cache" != 1; then
6498 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6499 fi
6500
6501 if test "$wxUSE_LOGGUI" = yes; then
6502 echo "$as_me:$LINENO: result: yes" >&5
6503echo "${ECHO_T}yes" >&6
6504 else
6505 echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507 fi
6508
6509
6510 enablestring=
6511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6512echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6513 no_cache=0
6514 # Check whether --enable-logwin or --disable-logwin was given.
6515if test "${enable_logwin+set}" = set; then
6516 enableval="$enable_logwin"
6517
6518 if test "$enableval" = yes; then
6519 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6520 else
6521 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6522 fi
6523
6524else
6525
6526 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6527 if test "x$LINE" != x ; then
6528 eval "DEFAULT_$LINE"
6529 else
6530 no_cache=1
6531 fi
6532
6533 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6534
6535fi;
6536
6537 eval "$ac_cv_use_logwin"
6538 if test "$no_cache" != 1; then
6539 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6540 fi
6541
6542 if test "$wxUSE_LOGWINDOW" = yes; then
6543 echo "$as_me:$LINENO: result: yes" >&5
6544echo "${ECHO_T}yes" >&6
6545 else
6546 echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6
6548 fi
6549
6550
6551 enablestring=
6552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6553echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6554 no_cache=0
6555 # Check whether --enable-logdialog or --disable-logdialog was given.
6556if test "${enable_logdialog+set}" = set; then
6557 enableval="$enable_logdialog"
6558
6559 if test "$enableval" = yes; then
6560 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6561 else
6562 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6563 fi
6564
6565else
6566
6567 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6568 if test "x$LINE" != x ; then
6569 eval "DEFAULT_$LINE"
6570 else
6571 no_cache=1
6572 fi
6573
6574 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6575
6576fi;
6577
6578 eval "$ac_cv_use_logdialog"
6579 if test "$no_cache" != 1; then
6580 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6581 fi
6582
6583 if test "$wxUSE_LOGDIALOG" = yes; then
6584 echo "$as_me:$LINENO: result: yes" >&5
6585echo "${ECHO_T}yes" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589 fi
6590
6591
646b6ec1
VS
6592 enablestring=
6593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6594echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6595 no_cache=0
6596 # Check whether --enable-webkit or --disable-webkit was given.
6597if test "${enable_webkit+set}" = set; then
6598 enableval="$enable_webkit"
6599
6600 if test "$enableval" = yes; then
6601 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6602 else
6603 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6604 fi
6605
6606else
6607
6608 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6609 if test "x$LINE" != x ; then
6610 eval "DEFAULT_$LINE"
6611 else
6612 no_cache=1
6613 fi
6614
6615 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6616
6617fi;
6618
6619 eval "$ac_cv_use_webkit"
6620 if test "$no_cache" != 1; then
6621 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6622 fi
6623
6624 if test "$wxUSE_WEBKIT" = yes; then
6625 echo "$as_me:$LINENO: result: yes" >&5
6626echo "${ECHO_T}yes" >&6
6627 else
6628 echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630 fi
6631
6632
a848cd7e
SC
6633
6634 enablestring=
6635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6636echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6637 no_cache=0
6638 # Check whether --enable-postscript or --disable-postscript was given.
6639if test "${enable_postscript+set}" = set; then
6640 enableval="$enable_postscript"
6641
6642 if test "$enableval" = yes; then
6643 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6644 else
6645 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6646 fi
6647
6648else
6649
6650 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6651 if test "x$LINE" != x ; then
6652 eval "DEFAULT_$LINE"
6653 else
6654 no_cache=1
6655 fi
6656
6657 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6658
6659fi;
6660
6661 eval "$ac_cv_use_postscript"
6662 if test "$no_cache" != 1; then
6663 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6664 fi
6665
6666 if test "$wxUSE_POSTSCRIPT" = yes; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668echo "${ECHO_T}yes" >&6
6669 else
6670 echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6
6672 fi
6673
6674
6675
6676
6677
6678 enablestring=
6679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6680echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6681 no_cache=0
6682 # Check whether --enable-prologio or --disable-prologio was given.
6683if test "${enable_prologio+set}" = set; then
6684 enableval="$enable_prologio"
6685
6686 if test "$enableval" = yes; then
6687 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6688 else
6689 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6690 fi
6691
6692else
6693
6694 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6695 if test "x$LINE" != x ; then
6696 eval "DEFAULT_$LINE"
6697 else
6698 no_cache=1
6699 fi
6700
6701 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6702
6703fi;
6704
6705 eval "$ac_cv_use_prologio"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_PROLOGIO" = yes; then
6711 echo "$as_me:$LINENO: result: yes" >&5
6712echo "${ECHO_T}yes" >&6
6713 else
6714 echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6
6716 fi
6717
6718
6719 enablestring=
6720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6721echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6722 no_cache=0
6723 # Check whether --enable-resources or --disable-resources was given.
6724if test "${enable_resources+set}" = set; then
6725 enableval="$enable_resources"
6726
6727 if test "$enableval" = yes; then
6728 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6729 else
6730 ac_cv_use_resources='wxUSE_RESOURCES=no'
6731 fi
6732
6733else
6734
6735 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6736 if test "x$LINE" != x ; then
6737 eval "DEFAULT_$LINE"
6738 else
6739 no_cache=1
6740 fi
6741
6742 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6743
6744fi;
6745
6746 eval "$ac_cv_use_resources"
6747 if test "$no_cache" != 1; then
6748 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6749 fi
6750
6751 if test "$wxUSE_RESOURCES" = yes; then
6752 echo "$as_me:$LINENO: result: yes" >&5
6753echo "${ECHO_T}yes" >&6
6754 else
6755 echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6
6757 fi
6758
6759
6760
6761
6762 enablestring=
6763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6764echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6765 no_cache=0
6766 # Check whether --enable-clipboard or --disable-clipboard was given.
6767if test "${enable_clipboard+set}" = set; then
6768 enableval="$enable_clipboard"
6769
6770 if test "$enableval" = yes; then
6771 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6772 else
6773 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6774 fi
6775
6776else
6777
6778 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
6785 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6786
6787fi;
6788
6789 eval "$ac_cv_use_clipboard"
6790 if test "$no_cache" != 1; then
6791 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6792 fi
6793
6794 if test "$wxUSE_CLIPBOARD" = yes; then
6795 echo "$as_me:$LINENO: result: yes" >&5
6796echo "${ECHO_T}yes" >&6
6797 else
6798 echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6
6800 fi
6801
6802
6803 enablestring=
6804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6805echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6806 no_cache=0
6807 # Check whether --enable-dnd or --disable-dnd was given.
6808if test "${enable_dnd+set}" = set; then
6809 enableval="$enable_dnd"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6813 else
6814 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6815 fi
6816
6817else
6818
6819 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6827
6828fi;
6829
6830 eval "$ac_cv_use_dnd"
6831 if test "$no_cache" != 1; then
6832 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6833 fi
6834
6835 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6836 echo "$as_me:$LINENO: result: yes" >&5
6837echo "${ECHO_T}yes" >&6
6838 else
6839 echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6
6841 fi
6842
6843
6844 enablestring=
6845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6846echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6847 no_cache=0
6848 # Check whether --enable-metafile or --disable-metafile was given.
6849if test "${enable_metafile+set}" = set; then
6850 enableval="$enable_metafile"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6854 else
6855 ac_cv_use_metafile='wxUSE_METAFILE=no'
6856 fi
6857
6858else
6859
6860 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6868
6869fi;
6870
6871 eval "$ac_cv_use_metafile"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_METAFILE" = yes; then
6877 echo "$as_me:$LINENO: result: yes" >&5
6878echo "${ECHO_T}yes" >&6
6879 else
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
6882 fi
6883
6884
6885
6886
6887
6888 enablestring=
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6891 no_cache=0
6892 # Check whether --enable-controls or --disable-controls was given.
6893if test "${enable_controls+set}" = set; then
6894 enableval="$enable_controls"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6898 else
6899 ac_cv_use_controls='wxUSE_CONTROLS=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6912
6913fi;
6914
6915 eval "$ac_cv_use_controls"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_CONTROLS" = yes; then
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
6926 fi
6927
6928
6929if test "$wxUSE_CONTROLS" = "yes"; then
6930 DEFAULT_wxUSE_ACCEL=yes
6931 DEFAULT_wxUSE_BMPBUTTON=yes
6932 DEFAULT_wxUSE_BUTTON=yes
6933 DEFAULT_wxUSE_CALCTRL=no
6934 DEFAULT_wxUSE_CARET=yes
6935 DEFAULT_wxUSE_COMBOBOX=yes
6936 DEFAULT_wxUSE_CHECKBOX=yes
6937 DEFAULT_wxUSE_CHECKLISTBOX=yes
6938 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6939 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6940 DEFAULT_wxUSE_GAUGE=yes
6941 DEFAULT_wxUSE_GRID=yes
6942 DEFAULT_wxUSE_IMAGLIST=yes
6943 DEFAULT_wxUSE_LISTBOOK=yes
6944 DEFAULT_wxUSE_LISTBOX=yes
6945 DEFAULT_wxUSE_LISTCTRL=yes
6946 DEFAULT_wxUSE_NOTEBOOK=yes
6947 DEFAULT_wxUSE_RADIOBOX=yes
6948 DEFAULT_wxUSE_RADIOBTN=yes
6949 DEFAULT_wxUSE_SASH=yes
6950 DEFAULT_wxUSE_SCROLLBAR=yes
6951 DEFAULT_wxUSE_SLIDER=yes
6952 DEFAULT_wxUSE_SPINBTN=yes
6953 DEFAULT_wxUSE_SPINCTRL=yes
6954 DEFAULT_wxUSE_SPLITTER=yes
6955 DEFAULT_wxUSE_STATBMP=yes
6956 DEFAULT_wxUSE_STATBOX=yes
6957 DEFAULT_wxUSE_STATLINE=yes
6958 DEFAULT_wxUSE_STATUSBAR=yes
6959 DEFAULT_wxUSE_TAB_DIALOG=yes
6960 DEFAULT_wxUSE_TOGGLEBTN=yes
6961 DEFAULT_wxUSE_TOOLBAR=yes
6962 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6963 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6964 DEFAULT_wxUSE_TOOLTIPS=yes
6965 DEFAULT_wxUSE_TREECTRL=yes
6966 DEFAULT_wxUSE_POPUPWIN=yes
6967 DEFAULT_wxUSE_TIPWINDOW=yes
6968elif test "$wxUSE_CONTROLS" = "no"; then
6969 DEFAULT_wxUSE_ACCEL=no
6970 DEFAULT_wxUSE_BMPBUTTON=no
6971 DEFAULT_wxUSE_BUTTON=no
6972 DEFAULT_wxUSE_CALCTRL=no
6973 DEFAULT_wxUSE_CARET=no
6974 DEFAULT_wxUSE_COMBOBOX=no
6975 DEFAULT_wxUSE_CHECKBOX=no
6976 DEFAULT_wxUSE_CHECKLISTBOX=no
6977 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 6978 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
6979 DEFAULT_wxUSE_GAUGE=no
6980 DEFAULT_wxUSE_GRID=no
6981 DEFAULT_wxUSE_IMAGLIST=no
6982 DEFAULT_wxUSE_LISTBOOK=no
6983 DEFAULT_wxUSE_LISTBOX=no
6984 DEFAULT_wxUSE_LISTCTRL=no
6985 DEFAULT_wxUSE_NOTEBOOK=no
6986 DEFAULT_wxUSE_RADIOBOX=no
6987 DEFAULT_wxUSE_RADIOBTN=no
6988 DEFAULT_wxUSE_SASH=no
6989 DEFAULT_wxUSE_SCROLLBAR=no
6990 DEFAULT_wxUSE_SLIDER=no
6991 DEFAULT_wxUSE_SPINBTN=no
6992 DEFAULT_wxUSE_SPINCTRL=no
6993 DEFAULT_wxUSE_SPLITTER=no
6994 DEFAULT_wxUSE_STATBMP=no
6995 DEFAULT_wxUSE_STATBOX=no
6996 DEFAULT_wxUSE_STATLINE=no
6997 DEFAULT_wxUSE_STATUSBAR=no
6998 DEFAULT_wxUSE_TAB_DIALOG=no
6999 DEFAULT_wxUSE_TOGGLEBTN=no
7000 DEFAULT_wxUSE_TOOLBAR=no
7001 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7002 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7003 DEFAULT_wxUSE_TOOLTIPS=no
7004 DEFAULT_wxUSE_TREECTRL=no
7005 DEFAULT_wxUSE_POPUPWIN=no
7006 DEFAULT_wxUSE_TIPWINDOW=no
7007fi
7008
7009## FIXME: This is a blatant hack
7010if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
7011 wxUSE_PRINTING_ARCHITECTURE=no
7012 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
7013 DEFAULT_wxUSE_TOOLTIPS=no
7014 DEFAULT_wxUSE_DRAGIMAGE=no
7015fi
7016
7017
7018 enablestring=
7019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7020echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7021 no_cache=0
7022 # Check whether --enable-accel or --disable-accel was given.
7023if test "${enable_accel+set}" = set; then
7024 enableval="$enable_accel"
7025
7026 if test "$enableval" = yes; then
7027 ac_cv_use_accel='wxUSE_ACCEL=yes'
7028 else
7029 ac_cv_use_accel='wxUSE_ACCEL=no'
7030 fi
7031
7032else
7033
7034 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7035 if test "x$LINE" != x ; then
7036 eval "DEFAULT_$LINE"
7037 else
7038 no_cache=1
7039 fi
7040
7041 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7042
7043fi;
7044
7045 eval "$ac_cv_use_accel"
7046 if test "$no_cache" != 1; then
7047 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7048 fi
7049
7050 if test "$wxUSE_ACCEL" = yes; then
7051 echo "$as_me:$LINENO: result: yes" >&5
7052echo "${ECHO_T}yes" >&6
7053 else
7054 echo "$as_me:$LINENO: result: no" >&5
7055echo "${ECHO_T}no" >&6
7056 fi
7057
7058
7059 enablestring=
7060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7061echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7062 no_cache=0
7063 # Check whether --enable-button or --disable-button was given.
7064if test "${enable_button+set}" = set; then
7065 enableval="$enable_button"
7066
7067 if test "$enableval" = yes; then
7068 ac_cv_use_button='wxUSE_BUTTON=yes'
7069 else
7070 ac_cv_use_button='wxUSE_BUTTON=no'
7071 fi
7072
7073else
7074
7075 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7076 if test "x$LINE" != x ; then
7077 eval "DEFAULT_$LINE"
7078 else
7079 no_cache=1
7080 fi
7081
7082 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7083
7084fi;
7085
7086 eval "$ac_cv_use_button"
7087 if test "$no_cache" != 1; then
7088 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7089 fi
7090
7091 if test "$wxUSE_BUTTON" = yes; then
7092 echo "$as_me:$LINENO: result: yes" >&5
7093echo "${ECHO_T}yes" >&6
7094 else
7095 echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6
7097 fi
7098
7099
7100 enablestring=
7101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7102echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7103 no_cache=0
7104 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7105if test "${enable_bmpbutton+set}" = set; then
7106 enableval="$enable_bmpbutton"
7107
7108 if test "$enableval" = yes; then
7109 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7110 else
7111 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7112 fi
7113
7114else
7115
7116 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7117 if test "x$LINE" != x ; then
7118 eval "DEFAULT_$LINE"
7119 else
7120 no_cache=1
7121 fi
7122
7123 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7124
7125fi;
7126
7127 eval "$ac_cv_use_bmpbutton"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_BMPBUTTON" = yes; then
7133 echo "$as_me:$LINENO: result: yes" >&5
7134echo "${ECHO_T}yes" >&6
7135 else
7136 echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
7138 fi
7139
7140
7141 enablestring=
7142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7143echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7144 no_cache=0
7145 # Check whether --enable-calendar or --disable-calendar was given.
7146if test "${enable_calendar+set}" = set; then
7147 enableval="$enable_calendar"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7151 else
7152 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7153 fi
7154
7155else
7156
7157 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7165
7166fi;
7167
7168 eval "$ac_cv_use_calendar"
7169 if test "$no_cache" != 1; then
7170 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7171 fi
7172
7173 if test "$wxUSE_CALCTRL" = yes; then
7174 echo "$as_me:$LINENO: result: yes" >&5
7175echo "${ECHO_T}yes" >&6
7176 else
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
7179 fi
7180
7181
7182 enablestring=
7183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7184echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7185 no_cache=0
7186 # Check whether --enable-caret or --disable-caret was given.
7187if test "${enable_caret+set}" = set; then
7188 enableval="$enable_caret"
7189
7190 if test "$enableval" = yes; then
7191 ac_cv_use_caret='wxUSE_CARET=yes'
7192 else
7193 ac_cv_use_caret='wxUSE_CARET=no'
7194 fi
7195
7196else
7197
7198 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7199 if test "x$LINE" != x ; then
7200 eval "DEFAULT_$LINE"
7201 else
7202 no_cache=1
7203 fi
7204
7205 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7206
7207fi;
7208
7209 eval "$ac_cv_use_caret"
7210 if test "$no_cache" != 1; then
7211 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7212 fi
7213
7214 if test "$wxUSE_CARET" = yes; then
7215 echo "$as_me:$LINENO: result: yes" >&5
7216echo "${ECHO_T}yes" >&6
7217 else
7218 echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6
7220 fi
7221
7222
7223 enablestring=
7224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7225echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7226 no_cache=0
7227 # Check whether --enable-checkbox or --disable-checkbox was given.
7228if test "${enable_checkbox+set}" = set; then
7229 enableval="$enable_checkbox"
7230
7231 if test "$enableval" = yes; then
7232 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7233 else
7234 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7235 fi
7236
7237else
7238
7239 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7240 if test "x$LINE" != x ; then
7241 eval "DEFAULT_$LINE"
7242 else
7243 no_cache=1
7244 fi
7245
7246 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7247
7248fi;
7249
7250 eval "$ac_cv_use_checkbox"
7251 if test "$no_cache" != 1; then
7252 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7253 fi
7254
7255 if test "$wxUSE_CHECKBOX" = yes; then
7256 echo "$as_me:$LINENO: result: yes" >&5
7257echo "${ECHO_T}yes" >&6
7258 else
7259 echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6
7261 fi
7262
7263
7264 enablestring=
7265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7266echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7267 no_cache=0
7268 # Check whether --enable-checklst or --disable-checklst was given.
7269if test "${enable_checklst+set}" = set; then
7270 enableval="$enable_checklst"
7271
7272 if test "$enableval" = yes; then
7273 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7274 else
7275 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7276 fi
7277
7278else
7279
7280 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7281 if test "x$LINE" != x ; then
7282 eval "DEFAULT_$LINE"
7283 else
7284 no_cache=1
7285 fi
7286
7287 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7288
7289fi;
7290
7291 eval "$ac_cv_use_checklst"
7292 if test "$no_cache" != 1; then
7293 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7294 fi
7295
7296 if test "$wxUSE_CHECKLST" = yes; then
7297 echo "$as_me:$LINENO: result: yes" >&5
7298echo "${ECHO_T}yes" >&6
7299 else
7300 echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6
7302 fi
7303
7304
7305 enablestring=
7306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7307echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7308 no_cache=0
7309 # Check whether --enable-choice or --disable-choice was given.
7310if test "${enable_choice+set}" = set; then
7311 enableval="$enable_choice"
7312
7313 if test "$enableval" = yes; then
7314 ac_cv_use_choice='wxUSE_CHOICE=yes'
7315 else
7316 ac_cv_use_choice='wxUSE_CHOICE=no'
7317 fi
7318
7319else
7320
7321 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7322 if test "x$LINE" != x ; then
7323 eval "DEFAULT_$LINE"
7324 else
7325 no_cache=1
7326 fi
7327
7328 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7329
7330fi;
7331
7332 eval "$ac_cv_use_choice"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_CHOICE" = yes; then
7338 echo "$as_me:$LINENO: result: yes" >&5
7339echo "${ECHO_T}yes" >&6
7340 else
7341 echo "$as_me:$LINENO: result: no" >&5
7342echo "${ECHO_T}no" >&6
7343 fi
7344
7345
92bbdbcd
WS
7346 enablestring=
7347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7348echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7349 no_cache=0
7350 # Check whether --enable-choicebook or --disable-choicebook was given.
7351if test "${enable_choicebook+set}" = set; then
7352 enableval="$enable_choicebook"
7353
7354 if test "$enableval" = yes; then
7355 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7356 else
7357 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7358 fi
7359
7360else
7361
7362 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7363 if test "x$LINE" != x ; then
7364 eval "DEFAULT_$LINE"
7365 else
7366 no_cache=1
7367 fi
7368
7369 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7370
7371fi;
7372
7373 eval "$ac_cv_use_choicebook"
7374 if test "$no_cache" != 1; then
7375 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7376 fi
7377
7378 if test "$wxUSE_CHOICEBOOK" = yes; then
7379 echo "$as_me:$LINENO: result: yes" >&5
7380echo "${ECHO_T}yes" >&6
7381 else
7382 echo "$as_me:$LINENO: result: no" >&5
7383echo "${ECHO_T}no" >&6
7384 fi
7385
7386
a848cd7e
SC
7387 enablestring=
7388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7389echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7390 no_cache=0
7391 # Check whether --enable-combobox or --disable-combobox was given.
7392if test "${enable_combobox+set}" = set; then
7393 enableval="$enable_combobox"
7394
7395 if test "$enableval" = yes; then
7396 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7397 else
7398 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7399 fi
7400
7401else
7402
7403 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7404 if test "x$LINE" != x ; then
7405 eval "DEFAULT_$LINE"
7406 else
7407 no_cache=1
7408 fi
7409
7410 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7411
7412fi;
7413
7414 eval "$ac_cv_use_combobox"
7415 if test "$no_cache" != 1; then
7416 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7417 fi
7418
7419 if test "$wxUSE_COMBOBOX" = yes; then
7420 echo "$as_me:$LINENO: result: yes" >&5
7421echo "${ECHO_T}yes" >&6
7422 else
7423 echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6
7425 fi
7426
7427
7428 enablestring=
7429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7430echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7431 no_cache=0
7432 # Check whether --enable-display or --disable-display was given.
7433if test "${enable_display+set}" = set; then
7434 enableval="$enable_display"
7435
7436 if test "$enableval" = yes; then
7437 ac_cv_use_display='wxUSE_DISPLAY=yes'
7438 else
7439 ac_cv_use_display='wxUSE_DISPLAY=no'
7440 fi
7441
7442else
7443
7444 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7445 if test "x$LINE" != x ; then
7446 eval "DEFAULT_$LINE"
7447 else
7448 no_cache=1
7449 fi
7450
7451 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7452
7453fi;
7454
7455 eval "$ac_cv_use_display"
7456 if test "$no_cache" != 1; then
7457 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7458 fi
7459
7460 if test "$wxUSE_DISPLAY" = yes; then
7461 echo "$as_me:$LINENO: result: yes" >&5
7462echo "${ECHO_T}yes" >&6
7463 else
7464 echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6
7466 fi
7467
7468
7469 enablestring=
7470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7471echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7472 no_cache=0
7473 # Check whether --enable-gauge or --disable-gauge was given.
7474if test "${enable_gauge+set}" = set; then
7475 enableval="$enable_gauge"
7476
7477 if test "$enableval" = yes; then
7478 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7479 else
7480 ac_cv_use_gauge='wxUSE_GAUGE=no'
7481 fi
7482
7483else
7484
7485 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7486 if test "x$LINE" != x ; then
7487 eval "DEFAULT_$LINE"
7488 else
7489 no_cache=1
7490 fi
7491
7492 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7493
7494fi;
7495
7496 eval "$ac_cv_use_gauge"
7497 if test "$no_cache" != 1; then
7498 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7499 fi
7500
7501 if test "$wxUSE_GAUGE" = yes; then
7502 echo "$as_me:$LINENO: result: yes" >&5
7503echo "${ECHO_T}yes" >&6
7504 else
7505 echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
7507 fi
7508
7509
7510 enablestring=
7511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7512echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7513 no_cache=0
7514 # Check whether --enable-grid or --disable-grid was given.
7515if test "${enable_grid+set}" = set; then
7516 enableval="$enable_grid"
7517
7518 if test "$enableval" = yes; then
7519 ac_cv_use_grid='wxUSE_GRID=yes'
7520 else
7521 ac_cv_use_grid='wxUSE_GRID=no'
7522 fi
7523
7524else
7525
7526 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7527 if test "x$LINE" != x ; then
7528 eval "DEFAULT_$LINE"
7529 else
7530 no_cache=1
7531 fi
7532
7533 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7534
7535fi;
7536
7537 eval "$ac_cv_use_grid"
7538 if test "$no_cache" != 1; then
7539 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7540 fi
7541
7542 if test "$wxUSE_GRID" = yes; then
7543 echo "$as_me:$LINENO: result: yes" >&5
7544echo "${ECHO_T}yes" >&6
7545 else
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548 fi
7549
7550
7551 enablestring=
7552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7553echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7554 no_cache=0
7555 # Check whether --enable-imaglist or --disable-imaglist was given.
7556if test "${enable_imaglist+set}" = set; then
7557 enableval="$enable_imaglist"
7558
7559 if test "$enableval" = yes; then
7560 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7561 else
7562 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7563 fi
7564
7565else
7566
7567 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7568 if test "x$LINE" != x ; then
7569 eval "DEFAULT_$LINE"
7570 else
7571 no_cache=1
7572 fi
7573
7574 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7575
7576fi;
7577
7578 eval "$ac_cv_use_imaglist"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_IMAGLIST" = yes; then
7584 echo "$as_me:$LINENO: result: yes" >&5
7585echo "${ECHO_T}yes" >&6
7586 else
7587 echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6
7589 fi
7590
7591
7592 enablestring=
7593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7594echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7595 no_cache=0
7596 # Check whether --enable-listbook or --disable-listbook was given.
7597if test "${enable_listbook+set}" = set; then
7598 enableval="$enable_listbook"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7602 else
7603 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7604 fi
7605
7606else
7607
7608 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7616
7617fi;
7618
7619 eval "$ac_cv_use_listbook"
7620 if test "$no_cache" != 1; then
7621 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7622 fi
7623
7624 if test "$wxUSE_LISTBOOK" = yes; then
7625 echo "$as_me:$LINENO: result: yes" >&5
7626echo "${ECHO_T}yes" >&6
7627 else
7628 echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6
7630 fi
7631
7632
7633 enablestring=
7634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7635echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7636 no_cache=0
7637 # Check whether --enable-listbox or --disable-listbox was given.
7638if test "${enable_listbox+set}" = set; then
7639 enableval="$enable_listbox"
7640
7641 if test "$enableval" = yes; then
7642 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7643 else
7644 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7645 fi
7646
7647else
7648
7649 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7650 if test "x$LINE" != x ; then
7651 eval "DEFAULT_$LINE"
7652 else
7653 no_cache=1
7654 fi
7655
7656 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7657
7658fi;
7659
7660 eval "$ac_cv_use_listbox"
7661 if test "$no_cache" != 1; then
7662 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7663 fi
7664
7665 if test "$wxUSE_LISTBOX" = yes; then
7666 echo "$as_me:$LINENO: result: yes" >&5
7667echo "${ECHO_T}yes" >&6
7668 else
7669 echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6
7671 fi
7672
7673
7674 enablestring=
7675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7676echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7677 no_cache=0
7678 # Check whether --enable-listctrl or --disable-listctrl was given.
7679if test "${enable_listctrl+set}" = set; then
7680 enableval="$enable_listctrl"
7681
7682 if test "$enableval" = yes; then
7683 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7684 else
7685 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7686 fi
7687
7688else
7689
7690 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7691 if test "x$LINE" != x ; then
7692 eval "DEFAULT_$LINE"
7693 else
7694 no_cache=1
7695 fi
7696
7697 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7698
7699fi;
7700
7701 eval "$ac_cv_use_listctrl"
7702 if test "$no_cache" != 1; then
7703 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7704 fi
7705
7706 if test "$wxUSE_LISTCTRL" = yes; then
7707 echo "$as_me:$LINENO: result: yes" >&5
7708echo "${ECHO_T}yes" >&6
7709 else
7710 echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712 fi
7713
7714
7715 enablestring=
7716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7717echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7718 no_cache=0
7719 # Check whether --enable-notebook or --disable-notebook was given.
7720if test "${enable_notebook+set}" = set; then
7721 enableval="$enable_notebook"
7722
7723 if test "$enableval" = yes; then
7724 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7725 else
7726 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7727 fi
7728
7729else
7730
7731 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7732 if test "x$LINE" != x ; then
7733 eval "DEFAULT_$LINE"
7734 else
7735 no_cache=1
7736 fi
7737
7738 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7739
7740fi;
7741
7742 eval "$ac_cv_use_notebook"
7743 if test "$no_cache" != 1; then
7744 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7745 fi
7746
7747 if test "$wxUSE_NOTEBOOK" = yes; then
7748 echo "$as_me:$LINENO: result: yes" >&5
7749echo "${ECHO_T}yes" >&6
7750 else
7751 echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6
7753 fi
7754
7755
7756 enablestring=
7757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7758echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7759 no_cache=0
7760 # Check whether --enable-radiobox or --disable-radiobox was given.
7761if test "${enable_radiobox+set}" = set; then
7762 enableval="$enable_radiobox"
7763
7764 if test "$enableval" = yes; then
7765 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7766 else
7767 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7768 fi
7769
7770else
7771
7772 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7773 if test "x$LINE" != x ; then
7774 eval "DEFAULT_$LINE"
7775 else
7776 no_cache=1
7777 fi
7778
7779 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7780
7781fi;
7782
7783 eval "$ac_cv_use_radiobox"
7784 if test "$no_cache" != 1; then
7785 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7786 fi
7787
7788 if test "$wxUSE_RADIOBOX" = yes; then
7789 echo "$as_me:$LINENO: result: yes" >&5
7790echo "${ECHO_T}yes" >&6
7791 else
7792 echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6
7794 fi
7795
7796
7797 enablestring=
7798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7799echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7800 no_cache=0
7801 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7802if test "${enable_radiobtn+set}" = set; then
7803 enableval="$enable_radiobtn"
7804
7805 if test "$enableval" = yes; then
7806 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7807 else
7808 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7809 fi
7810
7811else
7812
7813 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7821
7822fi;
7823
7824 eval "$ac_cv_use_radiobtn"
7825 if test "$no_cache" != 1; then
7826 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7827 fi
7828
7829 if test "$wxUSE_RADIOBTN" = yes; then
7830 echo "$as_me:$LINENO: result: yes" >&5
7831echo "${ECHO_T}yes" >&6
7832 else
7833 echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
7835 fi
7836
7837
7838 enablestring=
7839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7840echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7841 no_cache=0
7842 # Check whether --enable-sash or --disable-sash was given.
7843if test "${enable_sash+set}" = set; then
7844 enableval="$enable_sash"
7845
7846 if test "$enableval" = yes; then
7847 ac_cv_use_sash='wxUSE_SASH=yes'
7848 else
7849 ac_cv_use_sash='wxUSE_SASH=no'
7850 fi
7851
7852else
7853
7854 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7855 if test "x$LINE" != x ; then
7856 eval "DEFAULT_$LINE"
7857 else
7858 no_cache=1
7859 fi
7860
7861 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7862
7863fi;
7864
7865 eval "$ac_cv_use_sash"
7866 if test "$no_cache" != 1; then
7867 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7868 fi
7869
7870 if test "$wxUSE_SASH" = yes; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872echo "${ECHO_T}yes" >&6
7873 else
7874 echo "$as_me:$LINENO: result: no" >&5
7875echo "${ECHO_T}no" >&6
7876 fi
7877
7878
7879 enablestring=
7880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7881echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7882 no_cache=0
7883 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7884if test "${enable_scrollbar+set}" = set; then
7885 enableval="$enable_scrollbar"
7886
7887 if test "$enableval" = yes; then
7888 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7889 else
7890 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7891 fi
7892
7893else
7894
7895 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7896 if test "x$LINE" != x ; then
7897 eval "DEFAULT_$LINE"
7898 else
7899 no_cache=1
7900 fi
7901
7902 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7903
7904fi;
7905
7906 eval "$ac_cv_use_scrollbar"
7907 if test "$no_cache" != 1; then
7908 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7909 fi
7910
7911 if test "$wxUSE_SCROLLBAR" = yes; then
7912 echo "$as_me:$LINENO: result: yes" >&5
7913echo "${ECHO_T}yes" >&6
7914 else
7915 echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6
7917 fi
7918
7919
7920 enablestring=
7921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7922echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7923 no_cache=0
7924 # Check whether --enable-slider or --disable-slider was given.
7925if test "${enable_slider+set}" = set; then
7926 enableval="$enable_slider"
7927
7928 if test "$enableval" = yes; then
7929 ac_cv_use_slider='wxUSE_SLIDER=yes'
7930 else
7931 ac_cv_use_slider='wxUSE_SLIDER=no'
7932 fi
7933
7934else
7935
7936 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7937 if test "x$LINE" != x ; then
7938 eval "DEFAULT_$LINE"
7939 else
7940 no_cache=1
7941 fi
7942
7943 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7944
7945fi;
7946
7947 eval "$ac_cv_use_slider"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_SLIDER" = yes; then
7953 echo "$as_me:$LINENO: result: yes" >&5
7954echo "${ECHO_T}yes" >&6
7955 else
7956 echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6
7958 fi
7959
7960
7961 enablestring=
7962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7963echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7964 no_cache=0
7965 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7966if test "${enable_spinbtn+set}" = set; then
7967 enableval="$enable_spinbtn"
7968
7969 if test "$enableval" = yes; then
7970 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7971 else
7972 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7973 fi
7974
7975else
7976
7977 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7978 if test "x$LINE" != x ; then
7979 eval "DEFAULT_$LINE"
7980 else
7981 no_cache=1
7982 fi
7983
7984 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7985
7986fi;
7987
7988 eval "$ac_cv_use_spinbtn"
7989 if test "$no_cache" != 1; then
7990 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7991 fi
7992
7993 if test "$wxUSE_SPINBTN" = yes; then
7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
7996 else
7997 echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
7999 fi
8000
8001
8002 enablestring=
8003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8004echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8005 no_cache=0
8006 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8007if test "${enable_spinctrl+set}" = set; then
8008 enableval="$enable_spinctrl"
8009
8010 if test "$enableval" = yes; then
8011 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8012 else
8013 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8014 fi
8015
8016else
8017
8018 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8019 if test "x$LINE" != x ; then
8020 eval "DEFAULT_$LINE"
8021 else
8022 no_cache=1
8023 fi
8024
8025 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8026
8027fi;
8028
8029 eval "$ac_cv_use_spinctrl"
8030 if test "$no_cache" != 1; then
8031 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8032 fi
8033
8034 if test "$wxUSE_SPINCTRL" = yes; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036echo "${ECHO_T}yes" >&6
8037 else
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
8040 fi
8041
8042
8043 enablestring=
8044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8045echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8046 no_cache=0
8047 # Check whether --enable-splitter or --disable-splitter was given.
8048if test "${enable_splitter+set}" = set; then
8049 enableval="$enable_splitter"
8050
8051 if test "$enableval" = yes; then
8052 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8053 else
8054 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8055 fi
8056
8057else
8058
8059 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8060 if test "x$LINE" != x ; then
8061 eval "DEFAULT_$LINE"
8062 else
8063 no_cache=1
8064 fi
8065
8066 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8067
8068fi;
8069
8070 eval "$ac_cv_use_splitter"
8071 if test "$no_cache" != 1; then
8072 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8073 fi
8074
8075 if test "$wxUSE_SPLITTER" = yes; then
8076 echo "$as_me:$LINENO: result: yes" >&5
8077echo "${ECHO_T}yes" >&6
8078 else
8079 echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6
8081 fi
8082
8083
8084 enablestring=
8085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8086echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8087 no_cache=0
8088 # Check whether --enable-statbmp or --disable-statbmp was given.
8089if test "${enable_statbmp+set}" = set; then
8090 enableval="$enable_statbmp"
8091
8092 if test "$enableval" = yes; then
8093 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8094 else
8095 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8096 fi
8097
8098else
8099
8100 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8101 if test "x$LINE" != x ; then
8102 eval "DEFAULT_$LINE"
8103 else
8104 no_cache=1
8105 fi
8106
8107 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8108
8109fi;
8110
8111 eval "$ac_cv_use_statbmp"
8112 if test "$no_cache" != 1; then
8113 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8114 fi
8115
8116 if test "$wxUSE_STATBMP" = yes; then
8117 echo "$as_me:$LINENO: result: yes" >&5
8118echo "${ECHO_T}yes" >&6
8119 else
8120 echo "$as_me:$LINENO: result: no" >&5
8121echo "${ECHO_T}no" >&6
8122 fi
8123
8124
8125 enablestring=
8126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8127echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8128 no_cache=0
8129 # Check whether --enable-statbox or --disable-statbox was given.
8130if test "${enable_statbox+set}" = set; then
8131 enableval="$enable_statbox"
8132
8133 if test "$enableval" = yes; then
8134 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8135 else
8136 ac_cv_use_statbox='wxUSE_STATBOX=no'
8137 fi
8138
8139else
8140
8141 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8142 if test "x$LINE" != x ; then
8143 eval "DEFAULT_$LINE"
8144 else
8145 no_cache=1
8146 fi
8147
8148 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8149
8150fi;
8151
8152 eval "$ac_cv_use_statbox"
8153 if test "$no_cache" != 1; then
8154 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8155 fi
8156
8157 if test "$wxUSE_STATBOX" = yes; then
8158 echo "$as_me:$LINENO: result: yes" >&5
8159echo "${ECHO_T}yes" >&6
8160 else
8161 echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6
8163 fi
8164
8165
8166 enablestring=
8167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8168echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8169 no_cache=0
8170 # Check whether --enable-statline or --disable-statline was given.
8171if test "${enable_statline+set}" = set; then
8172 enableval="$enable_statline"
8173
8174 if test "$enableval" = yes; then
8175 ac_cv_use_statline='wxUSE_STATLINE=yes'
8176 else
8177 ac_cv_use_statline='wxUSE_STATLINE=no'
8178 fi
8179
8180else
8181
8182 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8183 if test "x$LINE" != x ; then
8184 eval "DEFAULT_$LINE"
8185 else
8186 no_cache=1
8187 fi
8188
8189 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8190
8191fi;
8192
8193 eval "$ac_cv_use_statline"
8194 if test "$no_cache" != 1; then
8195 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8196 fi
8197
8198 if test "$wxUSE_STATLINE" = yes; then
8199 echo "$as_me:$LINENO: result: yes" >&5
8200echo "${ECHO_T}yes" >&6
8201 else
8202 echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
8204 fi
8205
8206
8207 enablestring=
8208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8209echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8210 no_cache=0
8211 # Check whether --enable-stattext or --disable-stattext was given.
8212if test "${enable_stattext+set}" = set; then
8213 enableval="$enable_stattext"
8214
8215 if test "$enableval" = yes; then
8216 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8217 else
8218 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8219 fi
8220
8221else
8222
8223 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8224 if test "x$LINE" != x ; then
8225 eval "DEFAULT_$LINE"
8226 else
8227 no_cache=1
8228 fi
8229
8230 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8231
8232fi;
8233
8234 eval "$ac_cv_use_stattext"
8235 if test "$no_cache" != 1; then
8236 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8237 fi
8238
8239 if test "$wxUSE_STATTEXT" = yes; then
8240 echo "$as_me:$LINENO: result: yes" >&5
8241echo "${ECHO_T}yes" >&6
8242 else
8243 echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6
8245 fi
8246
8247
8248 enablestring=
8249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8250echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8251 no_cache=0
8252 # Check whether --enable-statusbar or --disable-statusbar was given.
8253if test "${enable_statusbar+set}" = set; then
8254 enableval="$enable_statusbar"
8255
8256 if test "$enableval" = yes; then
8257 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8258 else
8259 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8260 fi
8261
8262else
8263
8264 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8265 if test "x$LINE" != x ; then
8266 eval "DEFAULT_$LINE"
8267 else
8268 no_cache=1
8269 fi
8270
8271 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8272
8273fi;
8274
8275 eval "$ac_cv_use_statusbar"
8276 if test "$no_cache" != 1; then
8277 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8278 fi
8279
8280 if test "$wxUSE_STATUSBAR" = yes; then
8281 echo "$as_me:$LINENO: result: yes" >&5
8282echo "${ECHO_T}yes" >&6
8283 else
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
8286 fi
8287
8288
8289 enablestring=
8290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8291echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8292 no_cache=0
8293 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8294if test "${enable_tabdialog+set}" = set; then
8295 enableval="$enable_tabdialog"
8296
8297 if test "$enableval" = yes; then
8298 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8299 else
8300 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8301 fi
8302
8303else
8304
8305 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8306 if test "x$LINE" != x ; then
8307 eval "DEFAULT_$LINE"
8308 else
8309 no_cache=1
8310 fi
8311
8312 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8313
8314fi;
8315
8316 eval "$ac_cv_use_tabdialog"
8317 if test "$no_cache" != 1; then
8318 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8319 fi
8320
8321 if test "$wxUSE_TABDIALOG" = yes; then
8322 echo "$as_me:$LINENO: result: yes" >&5
8323echo "${ECHO_T}yes" >&6
8324 else
8325 echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6
8327 fi
8328
8329
8330 enablestring=
8331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8332echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8333 no_cache=0
8334 # Check whether --enable-textctrl or --disable-textctrl was given.
8335if test "${enable_textctrl+set}" = set; then
8336 enableval="$enable_textctrl"
8337
8338 if test "$enableval" = yes; then
8339 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8340 else
8341 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8342 fi
8343
8344else
8345
8346 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8347 if test "x$LINE" != x ; then
8348 eval "DEFAULT_$LINE"
8349 else
8350 no_cache=1
8351 fi
8352
8353 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8354
8355fi;
8356
8357 eval "$ac_cv_use_textctrl"
8358 if test "$no_cache" != 1; then
8359 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8360 fi
8361
8362 if test "$wxUSE_TEXTCTRL" = yes; then
8363 echo "$as_me:$LINENO: result: yes" >&5
8364echo "${ECHO_T}yes" >&6
8365 else
8366 echo "$as_me:$LINENO: result: no" >&5
8367echo "${ECHO_T}no" >&6
8368 fi
8369
8370
8371 enablestring=
8372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8373echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8374 no_cache=0
8375 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8376if test "${enable_togglebtn+set}" = set; then
8377 enableval="$enable_togglebtn"
8378
8379 if test "$enableval" = yes; then
8380 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8381 else
8382 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
8394 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8395
8396fi;
8397
8398 eval "$ac_cv_use_togglebtn"
8399 if test "$no_cache" != 1; then
8400 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8401 fi
8402
8403 if test "$wxUSE_TOGGLEBTN" = yes; then
8404 echo "$as_me:$LINENO: result: yes" >&5
8405echo "${ECHO_T}yes" >&6
8406 else
8407 echo "$as_me:$LINENO: result: no" >&5
8408echo "${ECHO_T}no" >&6
8409 fi
8410
8411
8412 enablestring=
8413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8414echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8415 no_cache=0
8416 # Check whether --enable-toolbar or --disable-toolbar was given.
8417if test "${enable_toolbar+set}" = set; then
8418 enableval="$enable_toolbar"
8419
8420 if test "$enableval" = yes; then
8421 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8422 else
8423 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8424 fi
8425
8426else
8427
8428 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8429 if test "x$LINE" != x ; then
8430 eval "DEFAULT_$LINE"
8431 else
8432 no_cache=1
8433 fi
8434
8435 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8436
8437fi;
8438
8439 eval "$ac_cv_use_toolbar"
8440 if test "$no_cache" != 1; then
8441 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8442 fi
8443
8444 if test "$wxUSE_TOOLBAR" = yes; then
8445 echo "$as_me:$LINENO: result: yes" >&5
8446echo "${ECHO_T}yes" >&6
8447 else
8448 echo "$as_me:$LINENO: result: no" >&5
8449echo "${ECHO_T}no" >&6
8450 fi
8451
8452
8453 enablestring=
8454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8455echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8456 no_cache=0
8457 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8458if test "${enable_tbarnative+set}" = set; then
8459 enableval="$enable_tbarnative"
8460
8461 if test "$enableval" = yes; then
8462 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8463 else
8464 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8465 fi
8466
8467else
8468
8469 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8470 if test "x$LINE" != x ; then
8471 eval "DEFAULT_$LINE"
8472 else
8473 no_cache=1
8474 fi
8475
8476 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8477
8478fi;
8479
8480 eval "$ac_cv_use_tbarnative"
8481 if test "$no_cache" != 1; then
8482 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8483 fi
8484
8485 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8486 echo "$as_me:$LINENO: result: yes" >&5
8487echo "${ECHO_T}yes" >&6
8488 else
8489 echo "$as_me:$LINENO: result: no" >&5
8490echo "${ECHO_T}no" >&6
8491 fi
8492
8493
8494 enablestring=
8495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8496echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8497 no_cache=0
8498 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8499if test "${enable_tbarsmpl+set}" = set; then
8500 enableval="$enable_tbarsmpl"
8501
8502 if test "$enableval" = yes; then
8503 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8504 else
8505 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8506 fi
8507
8508else
8509
8510 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8518
8519fi;
8520
8521 eval "$ac_cv_use_tbarsmpl"
8522 if test "$no_cache" != 1; then
8523 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8524 fi
8525
8526 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8527 echo "$as_me:$LINENO: result: yes" >&5
8528echo "${ECHO_T}yes" >&6
8529 else
8530 echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6
8532 fi
8533
8534
8535 enablestring=
8536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8537echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8538 no_cache=0
8539 # Check whether --enable-treectrl or --disable-treectrl was given.
8540if test "${enable_treectrl+set}" = set; then
8541 enableval="$enable_treectrl"
8542
8543 if test "$enableval" = yes; then
8544 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8545 else
8546 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8547 fi
8548
8549else
8550
8551 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8552 if test "x$LINE" != x ; then
8553 eval "DEFAULT_$LINE"
8554 else
8555 no_cache=1
8556 fi
8557
8558 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8559
8560fi;
8561
8562 eval "$ac_cv_use_treectrl"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_TREECTRL" = yes; then
8568 echo "$as_me:$LINENO: result: yes" >&5
8569echo "${ECHO_T}yes" >&6
8570 else
8571 echo "$as_me:$LINENO: result: no" >&5
8572echo "${ECHO_T}no" >&6
8573 fi
8574
8575
8576 enablestring=
8577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8578echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8579 no_cache=0
8580 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8581if test "${enable_tipwindow+set}" = set; then
8582 enableval="$enable_tipwindow"
8583
8584 if test "$enableval" = yes; then
8585 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8586 else
8587 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8588 fi
8589
8590else
8591
8592 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8593 if test "x$LINE" != x ; then
8594 eval "DEFAULT_$LINE"
8595 else
8596 no_cache=1
8597 fi
8598
8599 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8600
8601fi;
8602
8603 eval "$ac_cv_use_tipwindow"
8604 if test "$no_cache" != 1; then
8605 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8606 fi
8607
8608 if test "$wxUSE_TIPWINDOW" = yes; then
8609 echo "$as_me:$LINENO: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
8611 else
8612 echo "$as_me:$LINENO: result: no" >&5
8613echo "${ECHO_T}no" >&6
8614 fi
8615
8616
8617 enablestring=
8618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8619echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8620 no_cache=0
8621 # Check whether --enable-popupwin or --disable-popupwin was given.
8622if test "${enable_popupwin+set}" = set; then
8623 enableval="$enable_popupwin"
8624
8625 if test "$enableval" = yes; then
8626 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8627 else
8628 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8629 fi
8630
8631else
8632
8633 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8634 if test "x$LINE" != x ; then
8635 eval "DEFAULT_$LINE"
8636 else
8637 no_cache=1
8638 fi
8639
8640 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8641
8642fi;
8643
8644 eval "$ac_cv_use_popupwin"
8645 if test "$no_cache" != 1; then
8646 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8647 fi
8648
8649 if test "$wxUSE_POPUPWIN" = yes; then
8650 echo "$as_me:$LINENO: result: yes" >&5
8651echo "${ECHO_T}yes" >&6
8652 else
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
8655 fi
8656
8657
8658
8659
8660 enablestring=
8661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8662echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8663 no_cache=0
8664 # Check whether --enable-commondlg or --disable-commondlg was given.
8665if test "${enable_commondlg+set}" = set; then
8666 enableval="$enable_commondlg"
8667
8668 if test "$enableval" = yes; then
8669 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8670 else
8671 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8672 fi
8673
8674else
8675
8676 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8677 if test "x$LINE" != x ; then
8678 eval "DEFAULT_$LINE"
8679 else
8680 no_cache=1
8681 fi
8682
8683 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8684
8685fi;
8686
8687 eval "$ac_cv_use_commondlg"
8688 if test "$no_cache" != 1; then
8689 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8690 fi
8691
8692 if test "$wxUSE_COMMONDLGS" = yes; then
8693 echo "$as_me:$LINENO: result: yes" >&5
8694echo "${ECHO_T}yes" >&6
8695 else
8696 echo "$as_me:$LINENO: result: no" >&5
8697echo "${ECHO_T}no" >&6
8698 fi
8699
8700
8701 enablestring=
8702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8703echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8704 no_cache=0
8705 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8706if test "${enable_choicedlg+set}" = set; then
8707 enableval="$enable_choicedlg"
8708
8709 if test "$enableval" = yes; then
8710 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8711 else
8712 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8713 fi
8714
8715else
8716
8717 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8718 if test "x$LINE" != x ; then
8719 eval "DEFAULT_$LINE"
8720 else
8721 no_cache=1
8722 fi
8723
8724 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8725
8726fi;
8727
8728 eval "$ac_cv_use_choicedlg"
8729 if test "$no_cache" != 1; then
8730 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8731 fi
8732
8733 if test "$wxUSE_CHOICEDLG" = yes; then
8734 echo "$as_me:$LINENO: result: yes" >&5
8735echo "${ECHO_T}yes" >&6
8736 else
8737 echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
8739 fi
8740
8741
8742 enablestring=
8743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8744echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8745 no_cache=0
8746 # Check whether --enable-coldlg or --disable-coldlg was given.
8747if test "${enable_coldlg+set}" = set; then
8748 enableval="$enable_coldlg"
8749
8750 if test "$enableval" = yes; then
8751 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8752 else
8753 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8754 fi
8755
8756else
8757
8758 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8759 if test "x$LINE" != x ; then
8760 eval "DEFAULT_$LINE"
8761 else
8762 no_cache=1
8763 fi
8764
8765 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8766
8767fi;
8768
8769 eval "$ac_cv_use_coldlg"
8770 if test "$no_cache" != 1; then
8771 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8772 fi
8773
8774 if test "$wxUSE_COLOURDLG" = yes; then
8775 echo "$as_me:$LINENO: result: yes" >&5
8776echo "${ECHO_T}yes" >&6
8777 else
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
8780 fi
8781
8782
8783 enablestring=
8784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8785echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8786 no_cache=0
8787 # Check whether --enable-filedlg or --disable-filedlg was given.
8788if test "${enable_filedlg+set}" = set; then
8789 enableval="$enable_filedlg"
8790
8791 if test "$enableval" = yes; then
8792 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8793 else
8794 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8795 fi
8796
8797else
8798
8799 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8800 if test "x$LINE" != x ; then
8801 eval "DEFAULT_$LINE"
8802 else
8803 no_cache=1
8804 fi
8805
8806 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8807
8808fi;
8809
8810 eval "$ac_cv_use_filedlg"
8811 if test "$no_cache" != 1; then
8812 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8813 fi
8814
8815 if test "$wxUSE_FILEDLG" = yes; then
8816 echo "$as_me:$LINENO: result: yes" >&5
8817echo "${ECHO_T}yes" >&6
8818 else
8819 echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6
8821 fi
8822
8823
8824 enablestring=
8825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8826echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8827 no_cache=0
8828 # Check whether --enable-finddlg or --disable-finddlg was given.
8829if test "${enable_finddlg+set}" = set; then
8830 enableval="$enable_finddlg"
8831
8832 if test "$enableval" = yes; then
8833 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8834 else
8835 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8836 fi
8837
8838else
8839
8840 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8841 if test "x$LINE" != x ; then
8842 eval "DEFAULT_$LINE"
8843 else
8844 no_cache=1
8845 fi
8846
8847 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8848
8849fi;
8850
8851 eval "$ac_cv_use_finddlg"
8852 if test "$no_cache" != 1; then
8853 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8854 fi
8855
8856 if test "$wxUSE_FINDREPLDLG" = yes; then
8857 echo "$as_me:$LINENO: result: yes" >&5
8858echo "${ECHO_T}yes" >&6
8859 else
8860 echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
8862 fi
8863
8864
8865 enablestring=
8866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8867echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8868 no_cache=0
8869 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8870if test "${enable_fontdlg+set}" = set; then
8871 enableval="$enable_fontdlg"
8872
8873 if test "$enableval" = yes; then
8874 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8875 else
8876 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8877 fi
8878
8879else
8880
8881 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8882 if test "x$LINE" != x ; then
8883 eval "DEFAULT_$LINE"
8884 else
8885 no_cache=1
8886 fi
8887
8888 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8889
8890fi;
8891
8892 eval "$ac_cv_use_fontdlg"
8893 if test "$no_cache" != 1; then
8894 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8895 fi
8896
8897 if test "$wxUSE_FONTDLG" = yes; then
8898 echo "$as_me:$LINENO: result: yes" >&5
8899echo "${ECHO_T}yes" >&6
8900 else
8901 echo "$as_me:$LINENO: result: no" >&5
8902echo "${ECHO_T}no" >&6
8903 fi
8904
8905
8906 enablestring=
8907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8908echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8909 no_cache=0
8910 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8911if test "${enable_dirdlg+set}" = set; then
8912 enableval="$enable_dirdlg"
8913
8914 if test "$enableval" = yes; then
8915 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8916 else
8917 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8918 fi
8919
8920else
8921
8922 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8923 if test "x$LINE" != x ; then
8924 eval "DEFAULT_$LINE"
8925 else
8926 no_cache=1
8927 fi
8928
8929 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8930
8931fi;
8932
8933 eval "$ac_cv_use_dirdlg"
8934 if test "$no_cache" != 1; then
8935 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8936 fi
8937
8938 if test "$wxUSE_DIRDLG" = yes; then
8939 echo "$as_me:$LINENO: result: yes" >&5
8940echo "${ECHO_T}yes" >&6
8941 else
8942 echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
8944 fi
8945
8946
8947 enablestring=
8948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8949echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8950 no_cache=0
8951 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8952if test "${enable_msgdlg+set}" = set; then
8953 enableval="$enable_msgdlg"
8954
8955 if test "$enableval" = yes; then
8956 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8957 else
8958 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8959 fi
8960
8961else
8962
8963 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8964 if test "x$LINE" != x ; then
8965 eval "DEFAULT_$LINE"
8966 else
8967 no_cache=1
8968 fi
8969
8970 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8971
8972fi;
8973
8974 eval "$ac_cv_use_msgdlg"
8975 if test "$no_cache" != 1; then
8976 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8977 fi
8978
8979 if test "$wxUSE_MSGDLG" = yes; then
8980 echo "$as_me:$LINENO: result: yes" >&5
8981echo "${ECHO_T}yes" >&6
8982 else
8983 echo "$as_me:$LINENO: result: no" >&5
8984echo "${ECHO_T}no" >&6
8985 fi
8986
8987
8988 enablestring=
8989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8990echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8991 no_cache=0
8992 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8993if test "${enable_numberdlg+set}" = set; then
8994 enableval="$enable_numberdlg"
8995
8996 if test "$enableval" = yes; then
8997 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8998 else
8999 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9000 fi
9001
9002else
9003
9004 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9005 if test "x$LINE" != x ; then
9006 eval "DEFAULT_$LINE"
9007 else
9008 no_cache=1
9009 fi
9010
9011 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9012
9013fi;
9014
9015 eval "$ac_cv_use_numberdlg"
9016 if test "$no_cache" != 1; then
9017 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9018 fi
9019
9020 if test "$wxUSE_NUMBERDLG" = yes; then
9021 echo "$as_me:$LINENO: result: yes" >&5
9022echo "${ECHO_T}yes" >&6
9023 else
9024 echo "$as_me:$LINENO: result: no" >&5
9025echo "${ECHO_T}no" >&6
9026 fi
9027
9028
9029 enablestring=
9030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9031echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9032 no_cache=0
9033 # Check whether --enable-splash or --disable-splash was given.
9034if test "${enable_splash+set}" = set; then
9035 enableval="$enable_splash"
9036
9037 if test "$enableval" = yes; then
9038 ac_cv_use_splash='wxUSE_SPLASH=yes'
9039 else
9040 ac_cv_use_splash='wxUSE_SPLASH=no'
9041 fi
9042
9043else
9044
9045 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9046 if test "x$LINE" != x ; then
9047 eval "DEFAULT_$LINE"
9048 else
9049 no_cache=1
9050 fi
9051
9052 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9053
9054fi;
9055
9056 eval "$ac_cv_use_splash"
9057 if test "$no_cache" != 1; then
9058 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9059 fi
9060
9061 if test "$wxUSE_SPLASH" = yes; then
9062 echo "$as_me:$LINENO: result: yes" >&5
9063echo "${ECHO_T}yes" >&6
9064 else
9065 echo "$as_me:$LINENO: result: no" >&5
9066echo "${ECHO_T}no" >&6
9067 fi
9068
9069
9070 enablestring=
9071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9072echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9073 no_cache=0
9074 # Check whether --enable-textdlg or --disable-textdlg was given.
9075if test "${enable_textdlg+set}" = set; then
9076 enableval="$enable_textdlg"
9077
9078 if test "$enableval" = yes; then
9079 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9080 else
9081 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9082 fi
9083
9084else
9085
9086 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9087 if test "x$LINE" != x ; then
9088 eval "DEFAULT_$LINE"
9089 else
9090 no_cache=1
9091 fi
9092
9093 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9094
9095fi;
9096
9097 eval "$ac_cv_use_textdlg"
9098 if test "$no_cache" != 1; then
9099 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9100 fi
9101
9102 if test "$wxUSE_TEXTDLG" = yes; then
9103 echo "$as_me:$LINENO: result: yes" >&5
9104echo "${ECHO_T}yes" >&6
9105 else
9106 echo "$as_me:$LINENO: result: no" >&5
9107echo "${ECHO_T}no" >&6
9108 fi
9109
9110
9111 enablestring=
9112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9113echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9114 no_cache=0
9115 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9116if test "${enable_tipdlg+set}" = set; then
9117 enableval="$enable_tipdlg"
9118
9119 if test "$enableval" = yes; then
9120 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9121 else
9122 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9123 fi
9124
9125else
9126
9127 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9128 if test "x$LINE" != x ; then
9129 eval "DEFAULT_$LINE"
9130 else
9131 no_cache=1
9132 fi
9133
9134 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9135
9136fi;
9137
9138 eval "$ac_cv_use_tipdlg"
9139 if test "$no_cache" != 1; then
9140 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9141 fi
9142
9143 if test "$wxUSE_STARTUP_TIPS" = yes; then
9144 echo "$as_me:$LINENO: result: yes" >&5
9145echo "${ECHO_T}yes" >&6
9146 else
9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
9149 fi
9150
9151
9152 enablestring=
9153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9154echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9155 no_cache=0
9156 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9157if test "${enable_progressdlg+set}" = set; then
9158 enableval="$enable_progressdlg"
9159
9160 if test "$enableval" = yes; then
9161 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9162 else
9163 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9164 fi
9165
9166else
9167
9168 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9169 if test "x$LINE" != x ; then
9170 eval "DEFAULT_$LINE"
9171 else
9172 no_cache=1
9173 fi
9174
9175 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9176
9177fi;
9178
9179 eval "$ac_cv_use_progressdlg"
9180 if test "$no_cache" != 1; then
9181 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9182 fi
9183
9184 if test "$wxUSE_PROGRESSDLG" = yes; then
9185 echo "$as_me:$LINENO: result: yes" >&5
9186echo "${ECHO_T}yes" >&6
9187 else
9188 echo "$as_me:$LINENO: result: no" >&5
9189echo "${ECHO_T}no" >&6
9190 fi
9191
9192
9193 enablestring=
9194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9195echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9196 no_cache=0
9197 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9198if test "${enable_wizarddlg+set}" = set; then
9199 enableval="$enable_wizarddlg"
9200
9201 if test "$enableval" = yes; then
9202 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9203 else
9204 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9205 fi
9206
9207else
9208
9209 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9210 if test "x$LINE" != x ; then
9211 eval "DEFAULT_$LINE"
9212 else
9213 no_cache=1
9214 fi
9215
9216 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9217
9218fi;
9219
9220 eval "$ac_cv_use_wizarddlg"
9221 if test "$no_cache" != 1; then
9222 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9223 fi
9224
9225 if test "$wxUSE_WIZARDDLG" = yes; then
9226 echo "$as_me:$LINENO: result: yes" >&5
9227echo "${ECHO_T}yes" >&6
9228 else
9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
9231 fi
9232
9233
9234
9235
9236 enablestring=
9237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9238echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9239 no_cache=0
9240 # Check whether --enable-menus or --disable-menus was given.
9241if test "${enable_menus+set}" = set; then
9242 enableval="$enable_menus"
9243
9244 if test "$enableval" = yes; then
9245 ac_cv_use_menus='wxUSE_MENUS=yes'
9246 else
9247 ac_cv_use_menus='wxUSE_MENUS=no'
9248 fi
9249
9250else
9251
9252 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9253 if test "x$LINE" != x ; then
9254 eval "DEFAULT_$LINE"
9255 else
9256 no_cache=1
9257 fi
9258
9259 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9260
9261fi;
9262
9263 eval "$ac_cv_use_menus"
9264 if test "$no_cache" != 1; then
9265 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9266 fi
9267
9268 if test "$wxUSE_MENUS" = yes; then
9269 echo "$as_me:$LINENO: result: yes" >&5
9270echo "${ECHO_T}yes" >&6
9271 else
9272 echo "$as_me:$LINENO: result: no" >&5
9273echo "${ECHO_T}no" >&6
9274 fi
9275
9276
9277 enablestring=
9278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9279echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9280 no_cache=0
9281 # Check whether --enable-miniframe or --disable-miniframe was given.
9282if test "${enable_miniframe+set}" = set; then
9283 enableval="$enable_miniframe"
9284
9285 if test "$enableval" = yes; then
9286 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9287 else
9288 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9289 fi
9290
9291else
9292
9293 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9294 if test "x$LINE" != x ; then
9295 eval "DEFAULT_$LINE"
9296 else
9297 no_cache=1
9298 fi
9299
9300 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9301
9302fi;
9303
9304 eval "$ac_cv_use_miniframe"
9305 if test "$no_cache" != 1; then
9306 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9307 fi
9308
9309 if test "$wxUSE_MINIFRAME" = yes; then
9310 echo "$as_me:$LINENO: result: yes" >&5
9311echo "${ECHO_T}yes" >&6
9312 else
9313 echo "$as_me:$LINENO: result: no" >&5
9314echo "${ECHO_T}no" >&6
9315 fi
9316
9317
9318 enablestring=
9319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9320echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9321 no_cache=0
9322 # Check whether --enable-tooltips or --disable-tooltips was given.
9323if test "${enable_tooltips+set}" = set; then
9324 enableval="$enable_tooltips"
9325
9326 if test "$enableval" = yes; then
9327 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9328 else
9329 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9330 fi
9331
9332else
9333
9334 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9335 if test "x$LINE" != x ; then
9336 eval "DEFAULT_$LINE"
9337 else
9338 no_cache=1
9339 fi
9340
9341 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9342
9343fi;
9344
9345 eval "$ac_cv_use_tooltips"
9346 if test "$no_cache" != 1; then
9347 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9348 fi
9349
9350 if test "$wxUSE_TOOLTIPS" = yes; then
9351 echo "$as_me:$LINENO: result: yes" >&5
9352echo "${ECHO_T}yes" >&6
9353 else
9354 echo "$as_me:$LINENO: result: no" >&5
9355echo "${ECHO_T}no" >&6
9356 fi
9357
9358
9359 enablestring=
9360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9361echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9362 no_cache=0
9363 # Check whether --enable-splines or --disable-splines was given.
9364if test "${enable_splines+set}" = set; then
9365 enableval="$enable_splines"
9366
9367 if test "$enableval" = yes; then
9368 ac_cv_use_splines='wxUSE_SPLINES=yes'
9369 else
9370 ac_cv_use_splines='wxUSE_SPLINES=no'
9371 fi
9372
9373else
9374
9375 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9376 if test "x$LINE" != x ; then
9377 eval "DEFAULT_$LINE"
9378 else
9379 no_cache=1
9380 fi
9381
9382 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9383
9384fi;
9385
9386 eval "$ac_cv_use_splines"
9387 if test "$no_cache" != 1; then
9388 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9389 fi
9390
9391 if test "$wxUSE_SPLINES" = yes; then
9392 echo "$as_me:$LINENO: result: yes" >&5
9393echo "${ECHO_T}yes" >&6
9394 else
9395 echo "$as_me:$LINENO: result: no" >&5
9396echo "${ECHO_T}no" >&6
9397 fi
9398
9399
9400 enablestring=
9401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9402echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9403 no_cache=0
9404 # Check whether --enable-validators or --disable-validators was given.
9405if test "${enable_validators+set}" = set; then
9406 enableval="$enable_validators"
9407
9408 if test "$enableval" = yes; then
9409 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9410 else
9411 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9412 fi
9413
9414else
9415
9416 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9417 if test "x$LINE" != x ; then
9418 eval "DEFAULT_$LINE"
9419 else
9420 no_cache=1
9421 fi
9422
9423 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9424
9425fi;
9426
9427 eval "$ac_cv_use_validators"
9428 if test "$no_cache" != 1; then
9429 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9430 fi
9431
9432 if test "$wxUSE_VALIDATORS" = yes; then
9433 echo "$as_me:$LINENO: result: yes" >&5
9434echo "${ECHO_T}yes" >&6
9435 else
9436 echo "$as_me:$LINENO: result: no" >&5
9437echo "${ECHO_T}no" >&6
9438 fi
9439
9440
9441 enablestring=
9442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9443echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9444 no_cache=0
9445 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9446if test "${enable_busyinfo+set}" = set; then
9447 enableval="$enable_busyinfo"
9448
9449 if test "$enableval" = yes; then
9450 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9451 else
9452 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9453 fi
9454
9455else
9456
9457 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9458 if test "x$LINE" != x ; then
9459 eval "DEFAULT_$LINE"
9460 else
9461 no_cache=1
9462 fi
9463
9464 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9465
9466fi;
9467
9468 eval "$ac_cv_use_busyinfo"
9469 if test "$no_cache" != 1; then
9470 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9471 fi
9472
9473 if test "$wxUSE_BUSYINFO" = yes; then
9474 echo "$as_me:$LINENO: result: yes" >&5
9475echo "${ECHO_T}yes" >&6
9476 else
9477 echo "$as_me:$LINENO: result: no" >&5
9478echo "${ECHO_T}no" >&6
9479 fi
9480
9481
9482 enablestring=
9483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9484echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9485 no_cache=0
9486 # Check whether --enable-joystick or --disable-joystick was given.
9487if test "${enable_joystick+set}" = set; then
9488 enableval="$enable_joystick"
9489
9490 if test "$enableval" = yes; then
9491 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9492 else
9493 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9494 fi
9495
9496else
9497
9498 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9499 if test "x$LINE" != x ; then
9500 eval "DEFAULT_$LINE"
9501 else
9502 no_cache=1
9503 fi
9504
9505 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9506
9507fi;
9508
9509 eval "$ac_cv_use_joystick"
9510 if test "$no_cache" != 1; then
9511 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9512 fi
9513
9514 if test "$wxUSE_JOYSTICK" = yes; then
9515 echo "$as_me:$LINENO: result: yes" >&5
9516echo "${ECHO_T}yes" >&6
9517 else
9518 echo "$as_me:$LINENO: result: no" >&5
9519echo "${ECHO_T}no" >&6
9520 fi
9521
9522
9523 enablestring=
9524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9525echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9526 no_cache=0
9527 # Check whether --enable-metafile or --disable-metafile was given.
9528if test "${enable_metafile+set}" = set; then
9529 enableval="$enable_metafile"
9530
9531 if test "$enableval" = yes; then
9532 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9533 else
9534 ac_cv_use_metafile='wxUSE_METAFILE=no'
9535 fi
9536
9537else
9538
9539 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9540 if test "x$LINE" != x ; then
9541 eval "DEFAULT_$LINE"
9542 else
9543 no_cache=1
9544 fi
9545
9546 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9547
9548fi;
9549
9550 eval "$ac_cv_use_metafile"
9551 if test "$no_cache" != 1; then
9552 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9553 fi
9554
9555 if test "$wxUSE_METAFILE" = yes; then
9556 echo "$as_me:$LINENO: result: yes" >&5
9557echo "${ECHO_T}yes" >&6
9558 else
9559 echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
9561 fi
9562
9563
9564 enablestring=
9565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9566echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9567 no_cache=0
9568 # Check whether --enable-dragimage or --disable-dragimage was given.
9569if test "${enable_dragimage+set}" = set; then
9570 enableval="$enable_dragimage"
9571
9572 if test "$enableval" = yes; then
9573 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9574 else
9575 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9576 fi
9577
9578else
9579
9580 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9581 if test "x$LINE" != x ; then
9582 eval "DEFAULT_$LINE"
9583 else
9584 no_cache=1
9585 fi
9586
9587 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9588
9589fi;
9590
9591 eval "$ac_cv_use_dragimage"
9592 if test "$no_cache" != 1; then
9593 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9594 fi
9595
9596 if test "$wxUSE_DRAGIMAGE" = yes; then
9597 echo "$as_me:$LINENO: result: yes" >&5
9598echo "${ECHO_T}yes" >&6
9599 else
9600 echo "$as_me:$LINENO: result: no" >&5
9601echo "${ECHO_T}no" >&6
9602 fi
9603
9604
9605 enablestring=
9606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9607echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9608 no_cache=0
9609 # Check whether --enable-accessibility or --disable-accessibility was given.
9610if test "${enable_accessibility+set}" = set; then
9611 enableval="$enable_accessibility"
9612
9613 if test "$enableval" = yes; then
9614 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9615 else
9616 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9617 fi
9618
9619else
9620
9621 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9622 if test "x$LINE" != x ; then
9623 eval "DEFAULT_$LINE"
9624 else
9625 no_cache=1
9626 fi
9627
9628 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9629
9630fi;
9631
9632 eval "$ac_cv_use_accessibility"
9633 if test "$no_cache" != 1; then
9634 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9635 fi
9636
9637 if test "$wxUSE_ACCESSIBILITY" = yes; then
9638 echo "$as_me:$LINENO: result: yes" >&5
9639echo "${ECHO_T}yes" >&6
9640 else
9641 echo "$as_me:$LINENO: result: no" >&5
9642echo "${ECHO_T}no" >&6
9643 fi
9644
9645
9646
9647
9648 enablestring=
9649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9650echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9651 no_cache=0
9652 # Check whether --enable-palette or --disable-palette was given.
9653if test "${enable_palette+set}" = set; then
9654 enableval="$enable_palette"
9655
9656 if test "$enableval" = yes; then
9657 ac_cv_use_palette='wxUSE_PALETTE=yes'
9658 else
9659 ac_cv_use_palette='wxUSE_PALETTE=no'
9660 fi
9661
9662else
9663
9664 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9665 if test "x$LINE" != x ; then
9666 eval "DEFAULT_$LINE"
9667 else
9668 no_cache=1
9669 fi
9670
9671 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9672
9673fi;
9674
9675 eval "$ac_cv_use_palette"
9676 if test "$no_cache" != 1; then
9677 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9678 fi
9679
9680 if test "$wxUSE_PALETTE" = yes; then
9681 echo "$as_me:$LINENO: result: yes" >&5
9682echo "${ECHO_T}yes" >&6
9683 else
9684 echo "$as_me:$LINENO: result: no" >&5
9685echo "${ECHO_T}no" >&6
9686 fi
9687
9688
9689 enablestring=
9690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9691echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9692 no_cache=0
9693 # Check whether --enable-image or --disable-image was given.
9694if test "${enable_image+set}" = set; then
9695 enableval="$enable_image"
9696
9697 if test "$enableval" = yes; then
9698 ac_cv_use_image='wxUSE_IMAGE=yes'
9699 else
9700 ac_cv_use_image='wxUSE_IMAGE=no'
9701 fi
9702
9703else
9704
9705 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9706 if test "x$LINE" != x ; then
9707 eval "DEFAULT_$LINE"
9708 else
9709 no_cache=1
9710 fi
9711
9712 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9713
9714fi;
9715
9716 eval "$ac_cv_use_image"
9717 if test "$no_cache" != 1; then
9718 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9719 fi
9720
9721 if test "$wxUSE_IMAGE" = yes; then
9722 echo "$as_me:$LINENO: result: yes" >&5
9723echo "${ECHO_T}yes" >&6
9724 else
9725 echo "$as_me:$LINENO: result: no" >&5
9726echo "${ECHO_T}no" >&6
9727 fi
9728
9729
9730 enablestring=
9731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9732echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9733 no_cache=0
9734 # Check whether --enable-gif or --disable-gif was given.
9735if test "${enable_gif+set}" = set; then
9736 enableval="$enable_gif"
9737
9738 if test "$enableval" = yes; then
9739 ac_cv_use_gif='wxUSE_GIF=yes'
9740 else
9741 ac_cv_use_gif='wxUSE_GIF=no'
9742 fi
9743
9744else
9745
9746 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9747 if test "x$LINE" != x ; then
9748 eval "DEFAULT_$LINE"
9749 else
9750 no_cache=1
9751 fi
9752
9753 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9754
9755fi;
9756
9757 eval "$ac_cv_use_gif"
9758 if test "$no_cache" != 1; then
9759 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9760 fi
9761
9762 if test "$wxUSE_GIF" = yes; then
9763 echo "$as_me:$LINENO: result: yes" >&5
9764echo "${ECHO_T}yes" >&6
9765 else
9766 echo "$as_me:$LINENO: result: no" >&5
9767echo "${ECHO_T}no" >&6
9768 fi
9769
9770
9771 enablestring=
9772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9773echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9774 no_cache=0
9775 # Check whether --enable-pcx or --disable-pcx was given.
9776if test "${enable_pcx+set}" = set; then
9777 enableval="$enable_pcx"
9778
9779 if test "$enableval" = yes; then
9780 ac_cv_use_pcx='wxUSE_PCX=yes'
9781 else
9782 ac_cv_use_pcx='wxUSE_PCX=no'
9783 fi
9784
9785else
9786
9787 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9788 if test "x$LINE" != x ; then
9789 eval "DEFAULT_$LINE"
9790 else
9791 no_cache=1
9792 fi
9793
9794 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9795
9796fi;
9797
9798 eval "$ac_cv_use_pcx"
9799 if test "$no_cache" != 1; then
9800 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9801 fi
9802
9803 if test "$wxUSE_PCX" = yes; then
9804 echo "$as_me:$LINENO: result: yes" >&5
9805echo "${ECHO_T}yes" >&6
9806 else
9807 echo "$as_me:$LINENO: result: no" >&5
9808echo "${ECHO_T}no" >&6
9809 fi
9810
9811
9812 enablestring=
9813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9814echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9815 no_cache=0
9816 # Check whether --enable-iff or --disable-iff was given.
9817if test "${enable_iff+set}" = set; then
9818 enableval="$enable_iff"
9819
9820 if test "$enableval" = yes; then
9821 ac_cv_use_iff='wxUSE_IFF=yes'
9822 else
9823 ac_cv_use_iff='wxUSE_IFF=no'
9824 fi
9825
9826else
9827
9828 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9829 if test "x$LINE" != x ; then
9830 eval "DEFAULT_$LINE"
9831 else
9832 no_cache=1
9833 fi
9834
9835 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9836
9837fi;
9838
9839 eval "$ac_cv_use_iff"
9840 if test "$no_cache" != 1; then
9841 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9842 fi
9843
9844 if test "$wxUSE_IFF" = yes; then
9845 echo "$as_me:$LINENO: result: yes" >&5
9846echo "${ECHO_T}yes" >&6
9847 else
9848 echo "$as_me:$LINENO: result: no" >&5
9849echo "${ECHO_T}no" >&6
9850 fi
9851
9852
9853 enablestring=
9854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9855echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9856 no_cache=0
9857 # Check whether --enable-pnm or --disable-pnm was given.
9858if test "${enable_pnm+set}" = set; then
9859 enableval="$enable_pnm"
9860
9861 if test "$enableval" = yes; then
9862 ac_cv_use_pnm='wxUSE_PNM=yes'
9863 else
9864 ac_cv_use_pnm='wxUSE_PNM=no'
9865 fi
9866
9867else
9868
9869 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9870 if test "x$LINE" != x ; then
9871 eval "DEFAULT_$LINE"
9872 else
9873 no_cache=1
9874 fi
9875
9876 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9877
9878fi;
9879
9880 eval "$ac_cv_use_pnm"
9881 if test "$no_cache" != 1; then
9882 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9883 fi
9884
9885 if test "$wxUSE_PNM" = yes; then
9886 echo "$as_me:$LINENO: result: yes" >&5
9887echo "${ECHO_T}yes" >&6
9888 else
9889 echo "$as_me:$LINENO: result: no" >&5
9890echo "${ECHO_T}no" >&6
9891 fi
9892
9893
9894 enablestring=
9895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9896echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9897 no_cache=0
9898 # Check whether --enable-xpm or --disable-xpm was given.
9899if test "${enable_xpm+set}" = set; then
9900 enableval="$enable_xpm"
9901
9902 if test "$enableval" = yes; then
9903 ac_cv_use_xpm='wxUSE_XPM=yes'
9904 else
9905 ac_cv_use_xpm='wxUSE_XPM=no'
9906 fi
9907
9908else
9909
9910 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9911 if test "x$LINE" != x ; then
9912 eval "DEFAULT_$LINE"
9913 else
9914 no_cache=1
9915 fi
9916
9917 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9918
9919fi;
9920
9921 eval "$ac_cv_use_xpm"
9922 if test "$no_cache" != 1; then
9923 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9924 fi
9925
9926 if test "$wxUSE_XPM" = yes; then
9927 echo "$as_me:$LINENO: result: yes" >&5
9928echo "${ECHO_T}yes" >&6
9929 else
9930 echo "$as_me:$LINENO: result: no" >&5
9931echo "${ECHO_T}no" >&6
9932 fi
9933
9934
9935 enablestring=
9936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9937echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9938 no_cache=0
9939 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9940if test "${enable_ico_cur+set}" = set; then
9941 enableval="$enable_ico_cur"
9942
9943 if test "$enableval" = yes; then
9944 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9945 else
9946 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9947 fi
9948
9949else
9950
9951 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9952 if test "x$LINE" != x ; then
9953 eval "DEFAULT_$LINE"
9954 else
9955 no_cache=1
9956 fi
9957
9958 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9959
9960fi;
9961
9962 eval "$ac_cv_use_ico_cur"
9963 if test "$no_cache" != 1; then
9964 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9965 fi
9966
9967 if test "$wxUSE_ICO_CUR" = yes; then
9968 echo "$as_me:$LINENO: result: yes" >&5
9969echo "${ECHO_T}yes" >&6
9970 else
9971 echo "$as_me:$LINENO: result: no" >&5
9972echo "${ECHO_T}no" >&6
9973 fi
9974
9975
9976fi
9977
9978
9979
9980 enablestring=
9981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9982echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9983 no_cache=0
9984 # Check whether --enable-official_build or --disable-official_build was given.
9985if test "${enable_official_build+set}" = set; then
9986 enableval="$enable_official_build"
9987
9988 if test "$enableval" = yes; then
9989 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9990 else
9991 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9992 fi
9993
9994else
9995
9996 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9997 if test "x$LINE" != x ; then
9998 eval "DEFAULT_$LINE"
9999 else
10000 no_cache=1
10001 fi
10002
10003 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10004
10005fi;
10006
10007 eval "$ac_cv_use_official_build"
10008 if test "$no_cache" != 1; then
10009 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10010 fi
10011
10012 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10013 echo "$as_me:$LINENO: result: yes" >&5
10014echo "${ECHO_T}yes" >&6
10015 else
10016 echo "$as_me:$LINENO: result: no" >&5
10017echo "${ECHO_T}no" >&6
10018 fi
10019
10020# Check whether --enable-vendor or --disable-vendor was given.
10021if test "${enable_vendor+set}" = set; then
10022 enableval="$enable_vendor"
10023 VENDOR="$enableval"
10024fi;
10025if test "x$VENDOR" = "x"; then
10026 VENDOR="custom"
10027fi
10028
10029case "${host}" in
10030 *-pc-os2_emx | *-pc-os2-emx )
10031 PATH_IFS=';'
a848cd7e
SC
10032 ;;
10033 *)
10034 PATH_IFS=':'
10035 ;;
10036esac
10037
10038
10039
10040 echo "saving argument cache $wx_arg_cache_file"
10041 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10042
10043
10044
10045echo "$as_me:$LINENO: checking for toolkit" >&5
10046echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10047
10048# In Wine, we need to default to MSW, not GTK or MOTIF
10049if test "$wxUSE_WINE" = "yes"; then
10050 DEFAULT_DEFAULT_wxUSE_GTK=0
10051 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10052 DEFAULT_DEFAULT_wxUSE_MSW=1
10053 wxUSE_SHARED=no
10054fi
10055
10056if test "$wxUSE_GUI" = "yes"; then
10057
10058 if test "$USE_BEOS" = 1; then
10059 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10060echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10061 { (exit 1); exit 1; }; }
10062 fi
10063
10064 if test "$TOOLKIT_GIVEN" = 1; then
10065 for toolkit in `echo $ALL_TOOLKITS`; do
10066 var=wxUSE_$toolkit
10067 eval "value=\$${var}"
10068 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10069 done
10070 else
10071 for toolkit in `echo $ALL_TOOLKITS`; do
10072 if test "$has_toolkit_in_cache" != 1; then
10073 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10074 else
10075 var=DEFAULT_wxUSE_$toolkit
10076 fi
10077 eval "wxUSE_$toolkit=\$${var}"
10078 done
10079 fi
10080
10081 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10082 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10083 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10084
10085 case "${host}" in
10086 *-pc-os2_emx | *-pc-os2-emx )
10087 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10088 esac
10089
10090 case "$NUM_TOOLKITS" in
10091 1)
10092 ;;
10093 0)
10094 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10095echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10096 { (exit 1); exit 1; }; }
10097 ;;
10098 *)
10099 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10100echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10101 { (exit 1); exit 1; }; }
10102 esac
10103
10104 for toolkit in `echo $ALL_TOOLKITS`; do
10105 var=wxUSE_$toolkit
10106 eval "value=\$${var}"
10107 if test "x$value" != x; then
10108 cache_var=CACHE_$toolkit
10109 eval "cache=\$${cache_var}"
10110 if test "$cache" = 1; then
10111 echo "$var=$value" >> ${wx_arg_cache_file}
10112 fi
10113 if test "$value" = 1; then
10114 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10115 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10116echo "${ECHO_T}$toolkit_echo" >&6
10117 fi
10118 fi
10119 done
10120else
10121 if test "x$host_alias" != "x"; then
10122 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10123echo "${ECHO_T}base ($host_alias hosted) only" >&6
10124 else
10125 echo "$as_me:$LINENO: result: base only" >&5
10126echo "${ECHO_T}base only" >&6
10127 fi
10128fi
10129
10130wants_win32=0
10131doesnt_want_win32=0
10132case "${host}" in
10133 *-*-cygwin*)
10134 if test "$wxUSE_MSW" = 1 ; then
10135 wants_win32=1
10136 else
10137 doesnt_want_win32=1
10138 fi
10139 ;;
10140 *-*-mingw*)
10141 wants_win32=1
10142 ;;
10143esac
10144
10145if test "$wxUSE_WINE" = "yes"; then
10146 wants_win32=1
10147 CC=winegcc
10148 CXX=wineg++
10149 RESCOMP=wrc
10150 LDFLAGS_GUI="-mwindows"
10151fi
10152
10153if test "$wants_win32" = 1 ; then
10154 USE_UNIX=0
10155 USE_WIN32=1
10156 cat >>confdefs.h <<\_ACEOF
10157#define __WIN32__ 1
10158_ACEOF
10159
10160 cat >>confdefs.h <<\_ACEOF
10161#define __WIN95__ 1
10162_ACEOF
10163
10164 cat >>confdefs.h <<\_ACEOF
10165#define __WINDOWS__ 1
10166_ACEOF
10167
10168 cat >>confdefs.h <<\_ACEOF
10169#define __GNUWIN32__ 1
10170_ACEOF
10171
10172 cat >>confdefs.h <<\_ACEOF
10173#define STRICT 1
10174_ACEOF
10175
10176 cat >>confdefs.h <<\_ACEOF
10177#define WINVER 0x0400
10178_ACEOF
10179
10180fi
10181if test "$doesnt_want_win32" = 1 ; then
10182 USE_UNIX=1
10183 USE_WIN32=0
10184fi
10185
10186if test "$USE_UNIX" = 1 ; then
10187 wxUSE_UNIX=yes
10188 cat >>confdefs.h <<\_ACEOF
10189#define __UNIX__ 1
10190_ACEOF
10191
10192fi
10193
10194
10195cat >confcache <<\_ACEOF
10196# This file is a shell script that caches the results of configure
10197# tests run on this system so they can be shared between configure
10198# scripts and configure runs, see configure's option --config-cache.
10199# It is not useful on other systems. If it contains results you don't
10200# want to keep, you may remove or edit it.
10201#
10202# config.status only pays attention to the cache file if you give it
10203# the --recheck option to rerun configure.
10204#
10205# `ac_cv_env_foo' variables (set or unset) will be overridden when
10206# loading this file, other *unset* `ac_cv_foo' will be assigned the
10207# following values.
10208
10209_ACEOF
10210
10211# The following way of writing the cache mishandles newlines in values,
10212# but we know of no workaround that is simple, portable, and efficient.
10213# So, don't put newlines in cache variables' values.
10214# Ultrix sh set writes to stderr and can't be redirected directly,
10215# and sets the high bit in the cache file unless we assign to the vars.
10216{
10217 (set) 2>&1 |
10218 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10219 *ac_space=\ *)
10220 # `set' does not quote correctly, so add quotes (double-quote
10221 # substitution turns \\\\ into \\, and sed turns \\ into \).
10222 sed -n \
ac1cb8d3
VS
10223 "s/'/'\\\\''/g;
10224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10225 ;;
10226 *)
10227 # `set' quotes correctly as required by POSIX, so do not add quotes.
10228 sed -n \
ac1cb8d3 10229 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10230 ;;
10231 esac;
10232} |
10233 sed '
10234 t clear
10235 : clear
10236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10237 t end
10238 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10239 : end' >>confcache
10240if diff $cache_file confcache >/dev/null 2>&1; then :; else
10241 if test -w $cache_file; then
10242 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10243 cat confcache >$cache_file
10244 else
10245 echo "not updating unwritable cache $cache_file"
10246 fi
10247fi
10248rm -f confcache
10249
10250if test "$build" != "$host" ; then
10251 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10252 CC=$host_alias-gcc
10253 CXX=$host_alias-c++
10254 AR=$host_alias-ar
10255 RANLIB=$host_alias-ranlib
10256 DLLTOOL=$host_alias-dlltool
10257 RESCOMP=$host_alias-windres
10258 LD=$host_alias-ld
10259 NM=$host_alias-nm
10260 STRIP=$host_alias-strip
10261 else
10262 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10263echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10264 { (exit 1); exit 1; }; }
10265 fi
10266fi
10267
10268CFLAGS=${CFLAGS:=}
10269ac_ext=c
10270ac_cpp='$CPP $CPPFLAGS'
10271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273ac_compiler_gnu=$ac_cv_c_compiler_gnu
10274if test -n "$ac_tool_prefix"; then
10275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10276set dummy ${ac_tool_prefix}gcc; ac_word=$2
10277echo "$as_me:$LINENO: checking for $ac_word" >&5
10278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10279if test "${ac_cv_prog_CC+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 if test -n "$CC"; then
10283 ac_cv_prog_CC="$CC" # Let the user override the test.
10284else
10285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286for as_dir in $PATH
10287do
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10295 fi
10296done
10297done
10298
10299fi
10300fi
10301CC=$ac_cv_prog_CC
10302if test -n "$CC"; then
10303 echo "$as_me:$LINENO: result: $CC" >&5
10304echo "${ECHO_T}$CC" >&6
10305else
10306 echo "$as_me:$LINENO: result: no" >&5
10307echo "${ECHO_T}no" >&6
10308fi
10309
10310fi
10311if test -z "$ac_cv_prog_CC"; then
10312 ac_ct_CC=$CC
10313 # Extract the first word of "gcc", so it can be a program name with args.
10314set dummy gcc; ac_word=$2
10315echo "$as_me:$LINENO: checking for $ac_word" >&5
10316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320 if test -n "$ac_ct_CC"; then
10321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330 ac_cv_prog_ac_ct_CC="gcc"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334done
10335done
10336
10337fi
10338fi
10339ac_ct_CC=$ac_cv_prog_ac_ct_CC
10340if test -n "$ac_ct_CC"; then
10341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10342echo "${ECHO_T}$ac_ct_CC" >&6
10343else
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
10346fi
10347
10348 CC=$ac_ct_CC
10349else
10350 CC="$ac_cv_prog_CC"
10351fi
10352
10353if test -z "$CC"; then
10354 if test -n "$ac_tool_prefix"; then
10355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10356set dummy ${ac_tool_prefix}cc; ac_word=$2
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_CC+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362 if test -n "$CC"; then
10363 ac_cv_prog_CC="$CC" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_CC="${ac_tool_prefix}cc"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
10379fi
10380fi
10381CC=$ac_cv_prog_CC
10382if test -n "$CC"; then
10383 echo "$as_me:$LINENO: result: $CC" >&5
10384echo "${ECHO_T}$CC" >&6
10385else
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
10388fi
10389
10390fi
10391if test -z "$ac_cv_prog_CC"; then
10392 ac_ct_CC=$CC
10393 # Extract the first word of "cc", so it can be a program name with args.
10394set dummy cc; ac_word=$2
10395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
10400 if test -n "$ac_ct_CC"; then
10401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10402else
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_ac_ct_CC="cc"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
10417fi
10418fi
10419ac_ct_CC=$ac_cv_prog_ac_ct_CC
10420if test -n "$ac_ct_CC"; then
10421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10422echo "${ECHO_T}$ac_ct_CC" >&6
10423else
10424 echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
10426fi
10427
10428 CC=$ac_ct_CC
10429else
10430 CC="$ac_cv_prog_CC"
10431fi
10432
10433fi
10434if test -z "$CC"; then
10435 # Extract the first word of "cc", so it can be a program name with args.
10436set dummy cc; ac_word=$2
10437echo "$as_me:$LINENO: checking for $ac_word" >&5
10438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439if test "${ac_cv_prog_CC+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442 if test -n "$CC"; then
10443 ac_cv_prog_CC="$CC" # Let the user override the test.
10444else
10445 ac_prog_rejected=no
10446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10454 ac_prog_rejected=yes
10455 continue
10456 fi
10457 ac_cv_prog_CC="cc"
10458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10460 fi
10461done
10462done
10463
10464if test $ac_prog_rejected = yes; then
10465 # We found a bogon in the path, so make sure we never use it.
10466 set dummy $ac_cv_prog_CC
10467 shift
10468 if test $# != 0; then
10469 # We chose a different compiler from the bogus one.
10470 # However, it has the same basename, so the bogon will be chosen
10471 # first if we set CC to just the basename; use the full file name.
10472 shift
10473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10474 fi
10475fi
10476fi
10477fi
10478CC=$ac_cv_prog_CC
10479if test -n "$CC"; then
10480 echo "$as_me:$LINENO: result: $CC" >&5
10481echo "${ECHO_T}$CC" >&6
10482else
10483 echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6
10485fi
10486
10487fi
10488if test -z "$CC"; then
10489 if test -n "$ac_tool_prefix"; then
10490 for ac_prog in cl
10491 do
10492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10494echo "$as_me:$LINENO: checking for $ac_word" >&5
10495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10496if test "${ac_cv_prog_CC+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499 if test -n "$CC"; then
10500 ac_cv_prog_CC="$CC" # Let the user override the test.
10501else
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513done
10514done
10515
10516fi
10517fi
10518CC=$ac_cv_prog_CC
10519if test -n "$CC"; then
10520 echo "$as_me:$LINENO: result: $CC" >&5
10521echo "${ECHO_T}$CC" >&6
10522else
10523 echo "$as_me:$LINENO: result: no" >&5
10524echo "${ECHO_T}no" >&6
10525fi
10526
10527 test -n "$CC" && break
10528 done
10529fi
10530if test -z "$CC"; then
10531 ac_ct_CC=$CC
10532 for ac_prog in cl
10533do
10534 # Extract the first word of "$ac_prog", so it can be a program name with args.
10535set dummy $ac_prog; ac_word=$2
10536echo "$as_me:$LINENO: checking for $ac_word" >&5
10537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540else
10541 if test -n "$ac_ct_CC"; then
10542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10543else
10544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545for as_dir in $PATH
10546do
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10551 ac_cv_prog_ac_ct_CC="$ac_prog"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10554 fi
10555done
10556done
10557
10558fi
10559fi
10560ac_ct_CC=$ac_cv_prog_ac_ct_CC
10561if test -n "$ac_ct_CC"; then
10562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10563echo "${ECHO_T}$ac_ct_CC" >&6
10564else
10565 echo "$as_me:$LINENO: result: no" >&5
10566echo "${ECHO_T}no" >&6
10567fi
10568
10569 test -n "$ac_ct_CC" && break
10570done
10571
10572 CC=$ac_ct_CC
10573fi
10574
10575fi
10576
10577
10578test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10579See \`config.log' for more details." >&5
10580echo "$as_me: error: no acceptable C compiler found in \$PATH
10581See \`config.log' for more details." >&2;}
10582 { (exit 1); exit 1; }; }
10583
10584# Provide some information about the compiler.
10585echo "$as_me:$LINENO:" \
10586 "checking for C compiler version" >&5
10587ac_compiler=`set X $ac_compile; echo $2`
10588{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10589 (eval $ac_compiler --version </dev/null >&5) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }
10593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10594 (eval $ac_compiler -v </dev/null >&5) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }
10598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10599 (eval $ac_compiler -V </dev/null >&5) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }
10603
10604cat >conftest.$ac_ext <<_ACEOF
10605/* confdefs.h. */
10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h. */
10610
10611int
10612main ()
10613{
10614
10615 ;
10616 return 0;
10617}
10618_ACEOF
10619ac_clean_files_save=$ac_clean_files
10620ac_clean_files="$ac_clean_files a.out a.exe b.out"
10621# Try to create an executable without -o first, disregard a.out.
10622# It will help us diagnose broken compilers, and finding out an intuition
10623# of exeext.
ac1cb8d3
VS
10624echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10625echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10626ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10627if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10628 (eval $ac_link_default) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; then
10632 # Find the output, starting from the most likely. This scheme is
10633# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10634# resort.
10635
10636# Be careful to initialize this variable, since it used to be cached.
10637# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10638ac_cv_exeext=
10639# b.out is created by i960 compilers.
10640for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10641do
10642 test -f "$ac_file" || continue
10643 case $ac_file in
10644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10645 ;;
a848cd7e 10646 conftest.$ac_ext )
ac1cb8d3
VS
10647 # This is the source file.
10648 ;;
a848cd7e 10649 [ab].out )
ac1cb8d3
VS
10650 # We found the default executable, but exeext='' is most
10651 # certainly right.
10652 break;;
a848cd7e 10653 *.* )
ac1cb8d3
VS
10654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10655 # FIXME: I believe we export ac_cv_exeext for Libtool,
10656 # but it would be cool to find out if it's true. Does anybody
10657 # maintain Libtool? --akim.
10658 export ac_cv_exeext
10659 break;;
a848cd7e 10660 * )
ac1cb8d3 10661 break;;
a848cd7e
SC
10662 esac
10663done
10664else
10665 echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10669See \`config.log' for more details." >&5
10670echo "$as_me: error: C compiler cannot create executables
10671See \`config.log' for more details." >&2;}
10672 { (exit 77); exit 77; }; }
10673fi
10674
10675ac_exeext=$ac_cv_exeext
10676echo "$as_me:$LINENO: result: $ac_file" >&5
10677echo "${ECHO_T}$ac_file" >&6
10678
10679# Check the compiler produces executables we can run. If not, either
10680# the compiler is broken, or we cross compile.
10681echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10682echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10683# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10684# If not cross compiling, check that we can run a simple program.
10685if test "$cross_compiling" != yes; then
10686 if { ac_try='./$ac_file'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 cross_compiling=no
10693 else
10694 if test "$cross_compiling" = maybe; then
10695 cross_compiling=yes
10696 else
10697 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10698If you meant to cross compile, use \`--host'.
10699See \`config.log' for more details." >&5
10700echo "$as_me: error: cannot run C compiled programs.
10701If you meant to cross compile, use \`--host'.
10702See \`config.log' for more details." >&2;}
10703 { (exit 1); exit 1; }; }
10704 fi
10705 fi
10706fi
10707echo "$as_me:$LINENO: result: yes" >&5
10708echo "${ECHO_T}yes" >&6
10709
10710rm -f a.out a.exe conftest$ac_cv_exeext b.out
10711ac_clean_files=$ac_clean_files_save
10712# Check the compiler produces executables we can run. If not, either
10713# the compiler is broken, or we cross compile.
10714echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10715echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10716echo "$as_me:$LINENO: result: $cross_compiling" >&5
10717echo "${ECHO_T}$cross_compiling" >&6
10718
10719echo "$as_me:$LINENO: checking for suffix of executables" >&5
10720echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; then
10726 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10727# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10728# work properly (i.e., refer to `conftest.exe'), while it won't with
10729# `rm'.
10730for ac_file in conftest.exe conftest conftest.*; do
10731 test -f "$ac_file" || continue
10732 case $ac_file in
10733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10735 export ac_cv_exeext
10736 break;;
a848cd7e
SC
10737 * ) break;;
10738 esac
10739done
10740else
10741 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10742See \`config.log' for more details." >&5
10743echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10744See \`config.log' for more details." >&2;}
10745 { (exit 1); exit 1; }; }
10746fi
10747
10748rm -f conftest$ac_cv_exeext
10749echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10750echo "${ECHO_T}$ac_cv_exeext" >&6
10751
10752rm -f conftest.$ac_ext
10753EXEEXT=$ac_cv_exeext
10754ac_exeext=$EXEEXT
10755echo "$as_me:$LINENO: checking for suffix of object files" >&5
10756echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10757if test "${ac_cv_objext+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759else
10760 cat >conftest.$ac_ext <<_ACEOF
10761/* confdefs.h. */
10762_ACEOF
10763cat confdefs.h >>conftest.$ac_ext
10764cat >>conftest.$ac_ext <<_ACEOF
10765/* end confdefs.h. */
10766
10767int
10768main ()
10769{
10770
10771 ;
10772 return 0;
10773}
10774_ACEOF
10775rm -f conftest.o conftest.obj
10776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; then
10781 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10782 case $ac_file in
10783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10785 break;;
10786 esac
10787done
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: cannot compute suffix of object files: cannot compile
10795See \`config.log' for more details." >&2;}
10796 { (exit 1); exit 1; }; }
10797fi
10798
10799rm -f conftest.$ac_cv_objext conftest.$ac_ext
10800fi
10801echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10802echo "${ECHO_T}$ac_cv_objext" >&6
10803OBJEXT=$ac_cv_objext
10804ac_objext=$OBJEXT
10805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10807if test "${ac_cv_c_compiler_gnu+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810 cat >conftest.$ac_ext <<_ACEOF
10811/* confdefs.h. */
10812_ACEOF
10813cat confdefs.h >>conftest.$ac_ext
10814cat >>conftest.$ac_ext <<_ACEOF
10815/* end confdefs.h. */
10816
10817int
10818main ()
10819{
10820#ifndef __GNUC__
10821 choke me
10822#endif
10823
10824 ;
10825 return 0;
10826}
10827_ACEOF
10828rm -f conftest.$ac_objext
10829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10830 (eval $ac_compile) 2>conftest.er1
a848cd7e 10831 ac_status=$?
ac1cb8d3
VS
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
a848cd7e
SC
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
9a8f0513
VS
10837 { ac_try='test -z "$ac_c_werror_flag"
10838 || test ! -s conftest.err'
ac1cb8d3
VS
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_compiler_gnu=yes
10851else
10852 echo "$as_me: failed program was:" >&5
10853sed 's/^/| /' conftest.$ac_ext >&5
10854
10855ac_compiler_gnu=no
10856fi
ac1cb8d3 10857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10858ac_cv_c_compiler_gnu=$ac_compiler_gnu
10859
10860fi
10861echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10863GCC=`test $ac_compiler_gnu = yes && echo yes`
10864ac_test_CFLAGS=${CFLAGS+set}
10865ac_save_CFLAGS=$CFLAGS
10866CFLAGS="-g"
10867echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10868echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10869if test "${ac_cv_prog_cc_g+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871else
10872 cat >conftest.$ac_ext <<_ACEOF
10873/* confdefs.h. */
10874_ACEOF
10875cat confdefs.h >>conftest.$ac_ext
10876cat >>conftest.$ac_ext <<_ACEOF
10877/* end confdefs.h. */
10878
10879int
10880main ()
10881{
10882
10883 ;
10884 return 0;
10885}
10886_ACEOF
10887rm -f conftest.$ac_objext
10888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10889 (eval $ac_compile) 2>conftest.er1
a848cd7e 10890 ac_status=$?
ac1cb8d3
VS
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
a848cd7e
SC
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
9a8f0513
VS
10896 { ac_try='test -z "$ac_c_werror_flag"
10897 || test ! -s conftest.err'
ac1cb8d3
VS
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_prog_cc_g=yes
10910else
10911 echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
10914ac_cv_prog_cc_g=no
10915fi
ac1cb8d3 10916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10917fi
10918echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10919echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10920if test "$ac_test_CFLAGS" = set; then
10921 CFLAGS=$ac_save_CFLAGS
10922elif test $ac_cv_prog_cc_g = yes; then
10923 if test "$GCC" = yes; then
10924 CFLAGS="-g -O2"
10925 else
10926 CFLAGS="-g"
10927 fi
10928else
10929 if test "$GCC" = yes; then
10930 CFLAGS="-O2"
10931 else
10932 CFLAGS=
10933 fi
10934fi
10935echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10936echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10937if test "${ac_cv_prog_cc_stdc+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940 ac_cv_prog_cc_stdc=no
10941ac_save_CC=$CC
10942cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h. */
10948#include <stdarg.h>
10949#include <stdio.h>
10950#include <sys/types.h>
10951#include <sys/stat.h>
10952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10953struct buf { int x; };
10954FILE * (*rcsopen) (struct buf *, struct stat *, int);
10955static char *e (p, i)
10956 char **p;
10957 int i;
10958{
10959 return p[i];
10960}
10961static char *f (char * (*g) (char **, int), char **p, ...)
10962{
10963 char *s;
10964 va_list v;
10965 va_start (v,p);
10966 s = g (p, va_arg (v,int));
10967 va_end (v);
10968 return s;
10969}
ac1cb8d3
VS
10970
10971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10972 function prototypes and stuff, but not '\xHH' hex character constants.
10973 These don't provoke an error unfortunately, instead are silently treated
10974 as 'x'. The following induces an error, until -std1 is added to get
10975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10976 array size at least. It's necessary to write '\x00'==0 to get something
10977 that's true only with -std1. */
10978int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10979
a848cd7e
SC
10980int test (int i, double x);
10981struct s1 {int (*f) (int a);};
10982struct s2 {int (*f) (double a);};
10983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10984int argc;
10985char **argv;
10986int
10987main ()
10988{
10989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10990 ;
10991 return 0;
10992}
10993_ACEOF
10994# Don't try gcc -ansi; that turns off useful extensions and
10995# breaks some systems' header files.
10996# AIX -qlanglvl=ansi
10997# Ultrix and OSF/1 -std1
10998# HP-UX 10.20 and later -Ae
10999# HP-UX older versions -Aa -D_HPUX_SOURCE
11000# SVR4 -Xc -D__EXTENSIONS__
11001for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11002do
11003 CC="$ac_save_CC $ac_arg"
11004 rm -f conftest.$ac_objext
11005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11006 (eval $ac_compile) 2>conftest.er1
a848cd7e 11007 ac_status=$?
ac1cb8d3
VS
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
a848cd7e
SC
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
9a8f0513
VS
11013 { ac_try='test -z "$ac_c_werror_flag"
11014 || test ! -s conftest.err'
ac1cb8d3
VS
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
11026 ac_cv_prog_cc_stdc=$ac_arg
11027break
11028else
11029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032fi
ac1cb8d3 11033rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11034done
11035rm -f conftest.$ac_ext conftest.$ac_objext
11036CC=$ac_save_CC
11037
11038fi
11039
11040case "x$ac_cv_prog_cc_stdc" in
11041 x|xno)
11042 echo "$as_me:$LINENO: result: none needed" >&5
11043echo "${ECHO_T}none needed" >&6 ;;
11044 *)
11045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11046echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11047 CC="$CC $ac_cv_prog_cc_stdc" ;;
11048esac
11049
11050# Some people use a C++ compiler to compile C. Since we use `exit',
11051# in C++ we need to declare it. In case someone uses the same compiler
11052# for both compiling C and C++ we need to have the C++ compiler decide
11053# the declaration of exit, since it's the most demanding environment.
11054cat >conftest.$ac_ext <<_ACEOF
11055#ifndef __cplusplus
11056 choke me
11057#endif
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); } &&
9a8f0513
VS
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 for ac_declaration in \
ac1cb8d3 11082 '' \
a848cd7e
SC
11083 'extern "C" void std::exit (int) throw (); using std::exit;' \
11084 'extern "C" void std::exit (int); using std::exit;' \
11085 'extern "C" void exit (int) throw ();' \
11086 'extern "C" void exit (int);' \
11087 'void exit (int);'
11088do
11089 cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
de59c161 11095$ac_declaration
ac1cb8d3 11096#include <stdlib.h>
a848cd7e
SC
11097int
11098main ()
11099{
11100exit (42);
11101 ;
11102 return 0;
11103}
11104_ACEOF
11105rm -f conftest.$ac_objext
11106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11107 (eval $ac_compile) 2>conftest.er1
a848cd7e 11108 ac_status=$?
ac1cb8d3
VS
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
a848cd7e
SC
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
9a8f0513
VS
11114 { ac_try='test -z "$ac_c_werror_flag"
11115 || test ! -s conftest.err'
ac1cb8d3
VS
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; } &&
11121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 :
11128else
11129 echo "$as_me: failed program was:" >&5
11130sed 's/^/| /' conftest.$ac_ext >&5
11131
11132continue
11133fi
ac1cb8d3 11134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11135 cat >conftest.$ac_ext <<_ACEOF
11136/* confdefs.h. */
11137_ACEOF
11138cat confdefs.h >>conftest.$ac_ext
11139cat >>conftest.$ac_ext <<_ACEOF
11140/* end confdefs.h. */
11141$ac_declaration
11142int
11143main ()
11144{
11145exit (42);
11146 ;
11147 return 0;
11148}
11149_ACEOF
11150rm -f conftest.$ac_objext
11151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11152 (eval $ac_compile) 2>conftest.er1
a848cd7e 11153 ac_status=$?
ac1cb8d3
VS
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
a848cd7e
SC
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
9a8f0513
VS
11159 { ac_try='test -z "$ac_c_werror_flag"
11160 || test ! -s conftest.err'
ac1cb8d3
VS
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; } &&
11166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 break
11173else
11174 echo "$as_me: failed program was:" >&5
11175sed 's/^/| /' conftest.$ac_ext >&5
11176
11177fi
ac1cb8d3 11178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11179done
11180rm -f conftest*
11181if test -n "$ac_declaration"; then
11182 echo '#ifdef __cplusplus' >>confdefs.h
11183 echo $ac_declaration >>confdefs.h
11184 echo '#endif' >>confdefs.h
11185fi
11186
11187else
11188 echo "$as_me: failed program was:" >&5
11189sed 's/^/| /' conftest.$ac_ext >&5
11190
11191fi
ac1cb8d3 11192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11193ac_ext=c
11194ac_cpp='$CPP $CPPFLAGS'
11195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11197ac_compiler_gnu=$ac_cv_c_compiler_gnu
11198
11199
11200
11201ac_ext=c
11202ac_cpp='$CPP $CPPFLAGS'
11203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11205ac_compiler_gnu=$ac_cv_c_compiler_gnu
11206echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11207echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11208# On Suns, sometimes $CPP names a directory.
11209if test -n "$CPP" && test -d "$CPP"; then
11210 CPP=
11211fi
11212if test -z "$CPP"; then
11213 if test "${ac_cv_prog_CPP+set}" = set; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215else
11216 # Double quotes because CPP needs to be expanded
11217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11218 do
11219 ac_preproc_ok=false
11220for ac_c_preproc_warn_flag in '' yes
11221do
11222 # Use a header file that comes with gcc, so configuring glibc
11223 # with a fresh cross-compiler works.
11224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11225 # <limits.h> exists even on freestanding compilers.
11226 # On the NeXT, cc -E runs the code through the compiler's parser,
11227 # not just through cpp. "Syntax error" is here to catch this case.
11228 cat >conftest.$ac_ext <<_ACEOF
11229/* confdefs.h. */
11230_ACEOF
11231cat confdefs.h >>conftest.$ac_ext
11232cat >>conftest.$ac_ext <<_ACEOF
11233/* end confdefs.h. */
11234#ifdef __STDC__
11235# include <limits.h>
11236#else
11237# include <assert.h>
11238#endif
ac1cb8d3 11239 Syntax error
a848cd7e
SC
11240_ACEOF
11241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } >/dev/null; then
11249 if test -s conftest.err; then
11250 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11252 else
11253 ac_cpp_err=
11254 fi
11255else
11256 ac_cpp_err=yes
11257fi
11258if test -z "$ac_cpp_err"; then
11259 :
11260else
11261 echo "$as_me: failed program was:" >&5
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 # Broken: fails on valid input.
11265continue
11266fi
11267rm -f conftest.err conftest.$ac_ext
11268
11269 # OK, works on sane cases. Now check whether non-existent headers
11270 # can be detected and how.
11271 cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h. */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h. */
11277#include <ac_nonexistent.h>
11278_ACEOF
11279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11281 ac_status=$?
11282 grep -v '^ *+' conftest.er1 >conftest.err
11283 rm -f conftest.er1
11284 cat conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } >/dev/null; then
11287 if test -s conftest.err; then
11288 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11290 else
11291 ac_cpp_err=
11292 fi
11293else
11294 ac_cpp_err=yes
11295fi
11296if test -z "$ac_cpp_err"; then
11297 # Broken: success on invalid input.
11298continue
11299else
11300 echo "$as_me: failed program was:" >&5
11301sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 # Passes both tests.
11304ac_preproc_ok=:
11305break
11306fi
11307rm -f conftest.err conftest.$ac_ext
11308
11309done
11310# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11311rm -f conftest.err conftest.$ac_ext
11312if $ac_preproc_ok; then
11313 break
11314fi
11315
11316 done
11317 ac_cv_prog_CPP=$CPP
11318
11319fi
11320 CPP=$ac_cv_prog_CPP
11321else
11322 ac_cv_prog_CPP=$CPP
11323fi
11324echo "$as_me:$LINENO: result: $CPP" >&5
11325echo "${ECHO_T}$CPP" >&6
11326ac_preproc_ok=false
11327for ac_c_preproc_warn_flag in '' yes
11328do
11329 # Use a header file that comes with gcc, so configuring glibc
11330 # with a fresh cross-compiler works.
11331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11332 # <limits.h> exists even on freestanding compilers.
11333 # On the NeXT, cc -E runs the code through the compiler's parser,
11334 # not just through cpp. "Syntax error" is here to catch this case.
11335 cat >conftest.$ac_ext <<_ACEOF
11336/* confdefs.h. */
11337_ACEOF
11338cat confdefs.h >>conftest.$ac_ext
11339cat >>conftest.$ac_ext <<_ACEOF
11340/* end confdefs.h. */
11341#ifdef __STDC__
11342# include <limits.h>
11343#else
11344# include <assert.h>
11345#endif
ac1cb8d3 11346 Syntax error
a848cd7e
SC
11347_ACEOF
11348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } >/dev/null; then
11356 if test -s conftest.err; then
11357 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11359 else
11360 ac_cpp_err=
11361 fi
11362else
11363 ac_cpp_err=yes
11364fi
11365if test -z "$ac_cpp_err"; then
11366 :
11367else
11368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
11371 # Broken: fails on valid input.
11372continue
11373fi
11374rm -f conftest.err conftest.$ac_ext
11375
11376 # OK, works on sane cases. Now check whether non-existent headers
11377 # can be detected and how.
11378 cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384#include <ac_nonexistent.h>
11385_ACEOF
11386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } >/dev/null; then
11394 if test -s conftest.err; then
11395 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11397 else
11398 ac_cpp_err=
11399 fi
11400else
11401 ac_cpp_err=yes
11402fi
11403if test -z "$ac_cpp_err"; then
11404 # Broken: success on invalid input.
11405continue
11406else
11407 echo "$as_me: failed program was:" >&5
11408sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 # Passes both tests.
11411ac_preproc_ok=:
11412break
11413fi
11414rm -f conftest.err conftest.$ac_ext
11415
11416done
11417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11418rm -f conftest.err conftest.$ac_ext
11419if $ac_preproc_ok; then
11420 :
11421else
11422 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11423See \`config.log' for more details." >&5
11424echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11425See \`config.log' for more details." >&2;}
11426 { (exit 1); exit 1; }; }
11427fi
11428
11429ac_ext=c
11430ac_cpp='$CPP $CPPFLAGS'
11431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433ac_compiler_gnu=$ac_cv_c_compiler_gnu
11434
11435
11436echo "$as_me:$LINENO: checking for egrep" >&5
11437echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11438if test "${ac_cv_prog_egrep+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11442 then ac_cv_prog_egrep='grep -E'
11443 else ac_cv_prog_egrep='egrep'
11444 fi
11445fi
11446echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11447echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11448 EGREP=$ac_cv_prog_egrep
11449
11450
11451if test $ac_cv_c_compiler_gnu = yes; then
11452 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11453echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11454if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456else
11457 ac_pattern="Autoconf.*'x'"
11458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464#include <sgtty.h>
11465Autoconf TIOCGETP
11466_ACEOF
11467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11468 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11469 ac_cv_prog_gcc_traditional=yes
11470else
11471 ac_cv_prog_gcc_traditional=no
11472fi
11473rm -f conftest*
11474
11475
11476 if test $ac_cv_prog_gcc_traditional = no; then
11477 cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h. */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h. */
11483#include <termio.h>
11484Autoconf TCGETA
11485_ACEOF
11486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11487 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11488 ac_cv_prog_gcc_traditional=yes
11489fi
11490rm -f conftest*
11491
11492 fi
11493fi
11494echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11495echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11496 if test $ac_cv_prog_gcc_traditional = yes; then
11497 CC="$CC -traditional"
11498 fi
11499fi
11500
11501
11502
11503
11504ac_ext=cc
11505ac_cpp='$CXXCPP $CPPFLAGS'
11506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11509
11510
11511CXXFLAGS=${CXXFLAGS:=}
11512ac_ext=cc
11513ac_cpp='$CXXCPP $CPPFLAGS'
11514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11517if test -n "$ac_tool_prefix"; then
11518 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11519 do
11520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11522echo "$as_me:$LINENO: checking for $ac_word" >&5
11523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11524if test "${ac_cv_prog_CXX+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526else
11527 if test -n "$CXX"; then
11528 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11529else
11530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531for as_dir in $PATH
11532do
11533 IFS=$as_save_IFS
11534 test -z "$as_dir" && as_dir=.
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11537 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 break 2
11540 fi
11541done
11542done
11543
11544fi
11545fi
11546CXX=$ac_cv_prog_CXX
11547if test -n "$CXX"; then
11548 echo "$as_me:$LINENO: result: $CXX" >&5
11549echo "${ECHO_T}$CXX" >&6
11550else
11551 echo "$as_me:$LINENO: result: no" >&5
11552echo "${ECHO_T}no" >&6
11553fi
11554
11555 test -n "$CXX" && break
11556 done
11557fi
11558if test -z "$CXX"; then
11559 ac_ct_CXX=$CXX
11560 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11561do
11562 # Extract the first word of "$ac_prog", so it can be a program name with args.
11563set dummy $ac_prog; ac_word=$2
11564echo "$as_me:$LINENO: checking for $ac_word" >&5
11565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11566if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568else
11569 if test -n "$ac_ct_CXX"; then
11570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11571else
11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573for as_dir in $PATH
11574do
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579 ac_cv_prog_ac_ct_CXX="$ac_prog"
11580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11582 fi
11583done
11584done
11585
11586fi
11587fi
11588ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11589if test -n "$ac_ct_CXX"; then
11590 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11591echo "${ECHO_T}$ac_ct_CXX" >&6
11592else
11593 echo "$as_me:$LINENO: result: no" >&5
11594echo "${ECHO_T}no" >&6
11595fi
11596
11597 test -n "$ac_ct_CXX" && break
11598done
11599test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11600
11601 CXX=$ac_ct_CXX
11602fi
11603
11604
11605# Provide some information about the compiler.
11606echo "$as_me:$LINENO:" \
11607 "checking for C++ compiler version" >&5
11608ac_compiler=`set X $ac_compile; echo $2`
11609{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11610 (eval $ac_compiler --version </dev/null >&5) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }
11614{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11615 (eval $ac_compiler -v </dev/null >&5) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }
11619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11620 (eval $ac_compiler -V </dev/null >&5) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }
11624
11625echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11626echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11627if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636
11637int
11638main ()
11639{
11640#ifndef __GNUC__
11641 choke me
11642#endif
11643
11644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext
11649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11650 (eval $ac_compile) 2>conftest.er1
a848cd7e 11651 ac_status=$?
ac1cb8d3
VS
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
a848cd7e
SC
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
9a8f0513
VS
11657 { ac_try='test -z "$ac_cxx_werror_flag"
11658 || test ! -s conftest.err'
ac1cb8d3
VS
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_compiler_gnu=yes
11671else
11672 echo "$as_me: failed program was:" >&5
11673sed 's/^/| /' conftest.$ac_ext >&5
11674
11675ac_compiler_gnu=no
11676fi
ac1cb8d3 11677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11678ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11679
11680fi
11681echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11682echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11683GXX=`test $ac_compiler_gnu = yes && echo yes`
11684ac_test_CXXFLAGS=${CXXFLAGS+set}
11685ac_save_CXXFLAGS=$CXXFLAGS
11686CXXFLAGS="-g"
11687echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11688echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11689if test "${ac_cv_prog_cxx_g+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698
11699int
11700main ()
11701{
11702
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11709 (eval $ac_compile) 2>conftest.er1
a848cd7e 11710 ac_status=$?
ac1cb8d3
VS
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
a848cd7e
SC
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
9a8f0513
VS
11716 { ac_try='test -z "$ac_cxx_werror_flag"
11717 || test ! -s conftest.err'
ac1cb8d3
VS
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_prog_cxx_g=yes
11730else
11731 echo "$as_me: failed program was:" >&5
11732sed 's/^/| /' conftest.$ac_ext >&5
11733
11734ac_cv_prog_cxx_g=no
11735fi
ac1cb8d3 11736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11737fi
11738echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11739echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11740if test "$ac_test_CXXFLAGS" = set; then
11741 CXXFLAGS=$ac_save_CXXFLAGS
11742elif test $ac_cv_prog_cxx_g = yes; then
11743 if test "$GXX" = yes; then
11744 CXXFLAGS="-g -O2"
11745 else
11746 CXXFLAGS="-g"
11747 fi
11748else
11749 if test "$GXX" = yes; then
11750 CXXFLAGS="-O2"
11751 else
11752 CXXFLAGS=
11753 fi
11754fi
11755for ac_declaration in \
ac1cb8d3 11756 '' \
a848cd7e
SC
11757 'extern "C" void std::exit (int) throw (); using std::exit;' \
11758 'extern "C" void std::exit (int); using std::exit;' \
11759 'extern "C" void exit (int) throw ();' \
11760 'extern "C" void exit (int);' \
11761 'void exit (int);'
11762do
11763 cat >conftest.$ac_ext <<_ACEOF
11764/* confdefs.h. */
11765_ACEOF
11766cat confdefs.h >>conftest.$ac_ext
11767cat >>conftest.$ac_ext <<_ACEOF
11768/* end confdefs.h. */
de59c161 11769$ac_declaration
ac1cb8d3 11770#include <stdlib.h>
a848cd7e
SC
11771int
11772main ()
11773{
11774exit (42);
11775 ;
11776 return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext
11780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11781 (eval $ac_compile) 2>conftest.er1
a848cd7e 11782 ac_status=$?
ac1cb8d3
VS
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
a848cd7e
SC
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
9a8f0513
VS
11788 { ac_try='test -z "$ac_cxx_werror_flag"
11789 || test ! -s conftest.err'
ac1cb8d3
VS
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 :
11802else
11803 echo "$as_me: failed program was:" >&5
11804sed 's/^/| /' conftest.$ac_ext >&5
11805
11806continue
11807fi
ac1cb8d3 11808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815$ac_declaration
11816int
11817main ()
11818{
11819exit (42);
11820 ;
11821 return 0;
11822}
11823_ACEOF
11824rm -f conftest.$ac_objext
11825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11826 (eval $ac_compile) 2>conftest.er1
a848cd7e 11827 ac_status=$?
ac1cb8d3
VS
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
a848cd7e
SC
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
9a8f0513
VS
11833 { ac_try='test -z "$ac_cxx_werror_flag"
11834 || test ! -s conftest.err'
ac1cb8d3
VS
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 break
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851fi
ac1cb8d3 11852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11853done
11854rm -f conftest*
11855if test -n "$ac_declaration"; then
11856 echo '#ifdef __cplusplus' >>confdefs.h
11857 echo $ac_declaration >>confdefs.h
11858 echo '#endif' >>confdefs.h
11859fi
11860
11861ac_ext=cc
11862ac_cpp='$CXXCPP $CPPFLAGS'
11863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11866
11867
11868ac_ext=c
11869ac_cpp='$CPP $CPPFLAGS'
11870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11872ac_compiler_gnu=$ac_cv_c_compiler_gnu
11873
11874
a848cd7e
SC
11875if test -n "$ac_tool_prefix"; then
11876 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11877set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11878echo "$as_me:$LINENO: checking for $ac_word" >&5
11879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11880if test "${ac_cv_prog_RANLIB+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11882else
11883 if test -n "$RANLIB"; then
11884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11885else
11886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897done
11898done
11899
11900fi
11901fi
11902RANLIB=$ac_cv_prog_RANLIB
11903if test -n "$RANLIB"; then
11904 echo "$as_me:$LINENO: result: $RANLIB" >&5
11905echo "${ECHO_T}$RANLIB" >&6
11906else
11907 echo "$as_me:$LINENO: result: no" >&5
11908echo "${ECHO_T}no" >&6
11909fi
11910
11911fi
11912if test -z "$ac_cv_prog_RANLIB"; then
11913 ac_ct_RANLIB=$RANLIB
11914 # Extract the first word of "ranlib", so it can be a program name with args.
11915set dummy ranlib; ac_word=$2
11916echo "$as_me:$LINENO: checking for $ac_word" >&5
11917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11918if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 if test -n "$ac_ct_RANLIB"; then
11922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11923else
11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_prog_ac_ct_RANLIB="ranlib"
11932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 break 2
11934 fi
11935done
11936done
11937
11938 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11939fi
11940fi
11941ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11942if test -n "$ac_ct_RANLIB"; then
11943 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11944echo "${ECHO_T}$ac_ct_RANLIB" >&6
11945else
11946 echo "$as_me:$LINENO: result: no" >&5
11947echo "${ECHO_T}no" >&6
11948fi
11949
11950 RANLIB=$ac_ct_RANLIB
11951else
11952 RANLIB="$ac_cv_prog_RANLIB"
11953fi
11954
11955
11956# Extract the first word of "ar", so it can be a program name with args.
11957set dummy ar; ac_word=$2
11958echo "$as_me:$LINENO: checking for $ac_word" >&5
11959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11960if test "${ac_cv_prog_AR+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963 if test -n "$AR"; then
11964 ac_cv_prog_AR="$AR" # Let the user override the test.
11965else
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973 ac_cv_prog_AR="ar"
11974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977done
11978done
11979
11980fi
11981fi
11982AR=$ac_cv_prog_AR
11983if test -n "$AR"; then
11984 echo "$as_me:$LINENO: result: $AR" >&5
11985echo "${ECHO_T}$AR" >&6
11986else
11987 echo "$as_me:$LINENO: result: no" >&5
11988echo "${ECHO_T}no" >&6
11989fi
11990
11991if test "x$AR" = "x" ; then
77ffb593
JS
11992 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11993echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11994 { (exit 1); exit 1; }; }
11995fi
11996
11997# Find a good install program. We prefer a C program (faster),
11998# so one script is as good as another. But avoid the broken or
11999# incompatible versions:
12000# SysV /etc/install, /usr/sbin/install
12001# SunOS /usr/etc/install
12002# IRIX /sbin/install
12003# AIX /bin/install
12004# AmigaOS /C/install, which installs bootblocks on floppy discs
12005# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12006# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12007# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12008# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12009# ./install, which can be erroneously created by make from ./install.sh.
12010echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12011echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12012if test -z "$INSTALL"; then
12013if test "${ac_cv_path_install+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017for as_dir in $PATH
12018do
12019 IFS=$as_save_IFS
12020 test -z "$as_dir" && as_dir=.
12021 # Account for people who put trailing slashes in PATH elements.
12022case $as_dir/ in
12023 ./ | .// | /cC/* | \
12024 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12025 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12026 /usr/ucb/* ) ;;
12027 *)
12028 # OSF1 and SCO ODT 3.0 have their own names for install.
12029 # Don't use installbsd from OSF since it installs stuff as root
12030 # by default.
12031 for ac_prog in ginstall scoinst install; do
12032 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12033 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12034 if test $ac_prog = install &&
12035 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12036 # AIX install. It has an incompatible calling convention.
12037 :
12038 elif test $ac_prog = install &&
12039 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12040 # program-specific install script used by HP pwplus--don't use.
12041 :
12042 else
12043 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12044 break 3
12045 fi
12046 fi
a848cd7e
SC
12047 done
12048 done
12049 ;;
12050esac
12051done
12052
12053
12054fi
12055 if test "${ac_cv_path_install+set}" = set; then
12056 INSTALL=$ac_cv_path_install
12057 else
12058 # As a last resort, use the slow shell script. We don't cache a
12059 # path for INSTALL within a source directory, because that will
12060 # break other packages using the cache if that directory is
12061 # removed, or if the path is relative.
12062 INSTALL=$ac_install_sh
12063 fi
12064fi
12065echo "$as_me:$LINENO: result: $INSTALL" >&5
12066echo "${ECHO_T}$INSTALL" >&6
12067
12068# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12069# It thinks the first close brace ends the variable substitution.
12070test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12071
12072test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12073
12074test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12075
12076
12077case ${INSTALL} in
12078 /* ) # Absolute
12079 ;;
12080 ?:* ) # Drive letter, considered as absolute.
12081 ;;
12082 *)
12083 INSTALL=`pwd`/${INSTALL} ;;
12084esac
12085
a848cd7e
SC
12086
12087case "${host}" in
12088
12089 powerpc-*-darwin* )
12090 INSTALL_PROGRAM="cp -fp"
12091 INSTALL_DATA="cp -fp"
12092 ;;
12093 *)
12094 ;;
12095esac
12096
12097# Extract the first word of "strip", so it can be a program name with args.
12098set dummy strip; ac_word=$2
12099echo "$as_me:$LINENO: checking for $ac_word" >&5
12100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12101if test "${ac_cv_prog_STRIP+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104 if test -n "$STRIP"; then
12105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12106else
12107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108for as_dir in $PATH
12109do
12110 IFS=$as_save_IFS
12111 test -z "$as_dir" && as_dir=.
12112 for ac_exec_ext in '' $ac_executable_extensions; do
12113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12114 ac_cv_prog_STRIP="strip"
12115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 break 2
12117 fi
12118done
12119done
12120
12121 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12122fi
12123fi
12124STRIP=$ac_cv_prog_STRIP
12125if test -n "$STRIP"; then
12126 echo "$as_me:$LINENO: result: $STRIP" >&5
12127echo "${ECHO_T}$STRIP" >&6
12128else
12129 echo "$as_me:$LINENO: result: no" >&5
12130echo "${ECHO_T}no" >&6
12131fi
12132
12133
12134echo "$as_me:$LINENO: checking if make is GNU make" >&5
12135echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12136if test "${wx_cv_prog_makeisgnu+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138else
12139
12140 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12141 egrep -s GNU > /dev/null); then
12142 wx_cv_prog_makeisgnu="yes"
12143 else
12144 wx_cv_prog_makeisgnu="no"
12145 fi
12146
12147fi
12148echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12149echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12150
12151if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12152 IF_GNU_MAKE=""
12153else
12154 IF_GNU_MAKE="#"
12155fi
12156
12157
12158
12159if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12160echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12161echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12162if test "${wx_cv_prog_makevpath+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164else
12165
12166cat - << EOF > confMake
12167check : file
12168 cp \$? \$@
12169 cp \$? final_file
12170EOF
12171
12172if test ! -d sub ; then
12173 mkdir sub
12174fi
12175echo dummy > sub/file
12176${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12177RESULT=$?
12178rm -f sub/file check final_file confMake
12179rmdir sub
12180if test "$RESULT" = 0; then
12181 wx_cv_prog_makevpath="yes"
12182else
12183 wx_cv_prog_makevpath="no"
12184fi
12185
12186fi
12187echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12188echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12189
12190if test "x$wx_cv_prog_makevpath" != "xyes"; then
12191{ { echo "$as_me:$LINENO: error:
12192You need a make-utility that is able to use the variable
12193VPATH correctly.
12194If your version of make does not support VPATH correctly,
12195please install GNU-make (possibly as gmake), and start
12196configure with the following command:
12197export MAKE=gmake; ./configure for sh-type shells
12198setenv MAKE gmake; ./configure for csh-type shells
12199Also please do remember to use gmake in this case every time
12200you are trying to compile.
12201" >&5
12202echo "$as_me: error:
12203You need a make-utility that is able to use the variable
12204VPATH correctly.
12205If your version of make does not support VPATH correctly,
12206please install GNU-make (possibly as gmake), and start
12207configure with the following command:
12208export MAKE=gmake; ./configure for sh-type shells
12209setenv MAKE gmake; ./configure for csh-type shells
12210Also please do remember to use gmake in this case every time
12211you are trying to compile.
12212" >&2;}
12213 { (exit 1); exit 1; }; }
12214fi fi
12215echo "$as_me:$LINENO: checking whether ln -s works" >&5
12216echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12217LN_S=$as_ln_s
12218if test "$LN_S" = "ln -s"; then
12219 echo "$as_me:$LINENO: result: yes" >&5
12220echo "${ECHO_T}yes" >&6
12221else
12222 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12223echo "${ECHO_T}no, using $LN_S" >&6
12224fi
12225
12226
12227
12228case "${host}" in
12229 *-pc-os2_emx | *-pc-os2-emx )
12230 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12231 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12232echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12233if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235else
12236 ac_check_lib_save_LIBS=$LIBS
12237LIBS="-lcExt $LIBS"
12238cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244
12245/* Override any gcc2 internal prototype to avoid an error. */
12246#ifdef __cplusplus
12247extern "C"
12248#endif
12249/* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251char drand48 ();
12252int
12253main ()
12254{
12255drand48 ();
12256 ;
12257 return 0;
12258}
12259_ACEOF
12260rm -f conftest.$ac_objext conftest$ac_exeext
12261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12262 (eval $ac_link) 2>conftest.er1
a848cd7e 12263 ac_status=$?
ac1cb8d3
VS
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
a848cd7e
SC
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
9a8f0513
VS
12269 { ac_try='test -z "$ac_c_werror_flag"
12270 || test ! -s conftest.err'
ac1cb8d3
VS
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_lib_cExt_drand48=yes
12283else
12284 echo "$as_me: failed program was:" >&5
12285sed 's/^/| /' conftest.$ac_ext >&5
12286
12287ac_cv_lib_cExt_drand48=no
12288fi
ac1cb8d3
VS
12289rm -f conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12291LIBS=$ac_check_lib_save_LIBS
12292fi
12293echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12294echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12295if test $ac_cv_lib_cExt_drand48 = yes; then
12296 LIBS="$LIBS -lcExt"
12297fi
12298
12299 else
12300 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12301 fi
12302 echo "$as_me:$LINENO: checking for gcc version" >&5
12303echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12304if test "${wx_cv_gccversion+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307
12308 cat >conftest.$ac_ext <<_ACEOF
12309/* confdefs.h. */
12310_ACEOF
12311cat confdefs.h >>conftest.$ac_ext
12312cat >>conftest.$ac_ext <<_ACEOF
12313/* end confdefs.h. */
12314
12315int
12316main ()
12317{
12318
12319 #if (__GNUC__ < 3)
12320 #error old gcc
12321 #endif
12322
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext
12328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12329 (eval $ac_compile) 2>conftest.er1
a848cd7e 12330 ac_status=$?
ac1cb8d3
VS
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
a848cd7e
SC
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
9a8f0513
VS
12336 { ac_try='test -z "$ac_c_werror_flag"
12337 || test ! -s conftest.err'
ac1cb8d3
VS
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349
12350 cat >conftest.$ac_ext <<_ACEOF
12351/* confdefs.h. */
12352_ACEOF
12353cat confdefs.h >>conftest.$ac_ext
12354cat >>conftest.$ac_ext <<_ACEOF
12355/* end confdefs.h. */
12356
12357int
12358main ()
12359{
12360
12361 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12362 #error intermediate gcc
12363 #endif
12364
12365 ;
12366 return 0;
12367}
12368_ACEOF
12369rm -f conftest.$ac_objext
12370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12371 (eval $ac_compile) 2>conftest.er1
a848cd7e 12372 ac_status=$?
ac1cb8d3
VS
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
a848cd7e
SC
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
9a8f0513
VS
12378 { ac_try='test -z "$ac_c_werror_flag"
12379 || test ! -s conftest.err'
ac1cb8d3
VS
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391
12392 wx_cv_gccversion=Innotek
12393
12394else
12395 echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
12398
12399 wx_cv_gccversion=3
12400
12401
12402fi
ac1cb8d3 12403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12404
12405else
12406 echo "$as_me: failed program was:" >&5
12407sed 's/^/| /' conftest.$ac_ext >&5
12408
12409
12410 wx_cv_gccversion=2
12411
12412
12413fi
ac1cb8d3 12414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12415
12416fi
12417echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12418echo "${ECHO_T}$wx_cv_gccversion" >&6
12419 if test "$wx_cv_gccversion" = "2"; then
12420 LIBS="$LIBS -lstdcpp"
12421 LDFLAGS="$LDFLAGS -Zsysv-signals"
12422 else
12423 if test "$wx_cv_gccversion" = "3"; then
12424 LIBS="$LIBS -lstdcxx"
12425 LDFLAGS="$LDFLAGS -Zsysv-signals"
12426 else
12427 LIBS="$LIBS -lstdc++"
12428 fi
12429 fi
12430 if test "$wxUSE_OMF" = "yes"; then
de59c161 12431 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12432 fi
12433 ;;
12434 *)
12435
12436
12437
12438 ac_ext=cc
12439ac_cpp='$CXXCPP $CPPFLAGS'
12440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12443
12444
12445
12446echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12447echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12448if test "${ac_cv_string_strcasecmp+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450else
12451
12452 cat >conftest.$ac_ext <<_ACEOF
12453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
12458
12459 #include <string.h>
12460
12461int
12462main ()
12463{
12464
12465 strcasecmp("foo", "bar");
12466
12467 ;
12468 return 0;
12469}
12470_ACEOF
12471rm -f conftest.$ac_objext conftest$ac_exeext
12472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12473 (eval $ac_link) 2>conftest.er1
a848cd7e 12474 ac_status=$?
ac1cb8d3
VS
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
a848cd7e
SC
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
9a8f0513
VS
12480 { ac_try='test -z "$ac_cxx_werror_flag"
12481 || test ! -s conftest.err'
ac1cb8d3
VS
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_string_strcasecmp=yes
12494else
12495 echo "$as_me: failed program was:" >&5
12496sed 's/^/| /' conftest.$ac_ext >&5
12497
12498ac_cv_string_strcasecmp=no
12499
12500fi
ac1cb8d3
VS
12501rm -f conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12506echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12507
12508 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12509 cat >>confdefs.h <<\_ACEOF
12510#define HAVE_STRCASECMP_IN_STRING_H 1
12511_ACEOF
12512
12513 else
12514 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12515echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12516if test "${ac_cv_strings_strcasecmp+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
12519
12520 cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526
12527 #include <strings.h>
12528
12529int
12530main ()
12531{
12532
12533 strcasecmp("foo", "bar");
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539rm -f conftest.$ac_objext conftest$ac_exeext
12540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12541 (eval $ac_link) 2>conftest.er1
a848cd7e 12542 ac_status=$?
ac1cb8d3
VS
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
a848cd7e
SC
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
9a8f0513
VS
12548 { ac_try='test -z "$ac_cxx_werror_flag"
12549 || test ! -s conftest.err'
ac1cb8d3
VS
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_strings_strcasecmp=yes
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566ac_cv_strings_strcasecmp=no
12567
12568fi
ac1cb8d3
VS
12569rm -f conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12571
12572fi
12573echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12574echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12575
0c3c69fc 12576 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12577 cat >>confdefs.h <<\_ACEOF
12578#define HAVE_STRCASECMP_IN_STRINGS_H 1
12579_ACEOF
12580
12581 else
12582 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12583echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12584 { (exit 1); exit 1; }; }
12585 fi
12586 fi
12587
12588 ac_ext=c
12589ac_cpp='$CPP $CPPFLAGS'
12590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
12594 ;;
12595esac
12596
12597
12598echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12599echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12600if test "${ac_cv_header_stdc+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603 cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h. */
12609#include <stdlib.h>
12610#include <stdarg.h>
12611#include <string.h>
12612#include <float.h>
12613
12614int
12615main ()
12616{
12617
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622rm -f conftest.$ac_objext
12623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12624 (eval $ac_compile) 2>conftest.er1
a848cd7e 12625 ac_status=$?
ac1cb8d3
VS
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
a848cd7e
SC
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
9a8f0513
VS
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
ac1cb8d3
VS
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_header_stdc=yes
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649ac_cv_header_stdc=no
12650fi
ac1cb8d3 12651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12652
12653if test $ac_cv_header_stdc = yes; then
12654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12655 cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661#include <string.h>
12662
12663_ACEOF
12664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12665 $EGREP "memchr" >/dev/null 2>&1; then
12666 :
12667else
12668 ac_cv_header_stdc=no
12669fi
12670rm -f conftest*
12671
12672fi
12673
12674if test $ac_cv_header_stdc = yes; then
12675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682#include <stdlib.h>
12683
12684_ACEOF
12685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12686 $EGREP "free" >/dev/null 2>&1; then
12687 :
12688else
12689 ac_cv_header_stdc=no
12690fi
12691rm -f conftest*
12692
12693fi
12694
12695if test $ac_cv_header_stdc = yes; then
12696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12697 if test "$cross_compiling" = yes; then
12698 :
12699else
12700 cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
12706#include <ctype.h>
12707#if ((' ' & 0x0FF) == 0x020)
12708# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12709# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12710#else
12711# define ISLOWER(c) \
ac1cb8d3
VS
12712 (('a' <= (c) && (c) <= 'i') \
12713 || ('j' <= (c) && (c) <= 'r') \
12714 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12715# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12716#endif
12717
12718#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12719int
12720main ()
12721{
12722 int i;
12723 for (i = 0; i < 256; i++)
12724 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12725 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12726 exit(2);
12727 exit (0);
12728}
12729_ACEOF
12730rm -f conftest$ac_exeext
12731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732 (eval $ac_link) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 :
12742else
12743 echo "$as_me: program exited with status $ac_status" >&5
12744echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
12747( exit $ac_status )
12748ac_cv_header_stdc=no
12749fi
ac1cb8d3 12750rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12751fi
12752fi
12753fi
12754echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12755echo "${ECHO_T}$ac_cv_header_stdc" >&6
12756if test $ac_cv_header_stdc = yes; then
12757
12758cat >>confdefs.h <<\_ACEOF
12759#define STDC_HEADERS 1
12760_ACEOF
12761
12762fi
12763
12764# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12775 inttypes.h stdint.h unistd.h
a848cd7e
SC
12776do
12777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12778echo "$as_me:$LINENO: checking for $ac_header" >&5
12779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12780if eval "test \"\${$as_ac_Header+set}\" = set"; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782else
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789$ac_includes_default
12790
12791#include <$ac_header>
12792_ACEOF
12793rm -f conftest.$ac_objext
12794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12795 (eval $ac_compile) 2>conftest.er1
a848cd7e 12796 ac_status=$?
ac1cb8d3
VS
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
a848cd7e
SC
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
9a8f0513
VS
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
ac1cb8d3
VS
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 eval "$as_ac_Header=yes"
12816else
12817 echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820eval "$as_ac_Header=no"
12821fi
ac1cb8d3 12822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12823fi
12824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12826if test `eval echo '${'$as_ac_Header'}'` = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12829_ACEOF
12830
12831fi
12832
12833done
12834
12835
12836
12837for ac_header in stdlib.h
12838do
12839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12840if eval "test \"\${$as_ac_Header+set}\" = set"; then
12841 echo "$as_me:$LINENO: checking for $ac_header" >&5
12842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12843if eval "test \"\${$as_ac_Header+set}\" = set"; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845fi
12846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12848else
12849 # Is the header compilable?
12850echo "$as_me:$LINENO: checking $ac_header usability" >&5
12851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12852cat >conftest.$ac_ext <<_ACEOF
12853/* confdefs.h. */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
12857/* end confdefs.h. */
12858$ac_includes_default
12859#include <$ac_header>
12860_ACEOF
12861rm -f conftest.$ac_objext
12862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12863 (eval $ac_compile) 2>conftest.er1
a848cd7e 12864 ac_status=$?
ac1cb8d3
VS
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
a848cd7e
SC
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
9a8f0513
VS
12870 { ac_try='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
ac1cb8d3
VS
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_header_compiler=yes
12884else
12885 echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
12888ac_header_compiler=no
12889fi
ac1cb8d3 12890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12892echo "${ECHO_T}$ac_header_compiler" >&6
12893
12894# Is the header present?
12895echo "$as_me:$LINENO: checking $ac_header presence" >&5
12896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12897cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
12903#include <$ac_header>
12904_ACEOF
12905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } >/dev/null; then
12913 if test -s conftest.err; then
12914 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12916 else
12917 ac_cpp_err=
12918 fi
12919else
12920 ac_cpp_err=yes
12921fi
12922if test -z "$ac_cpp_err"; then
12923 ac_header_preproc=yes
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_header_preproc=no
12929fi
12930rm -f conftest.err conftest.$ac_ext
12931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12932echo "${ECHO_T}$ac_header_preproc" >&6
12933
12934# So? What about this header?
ac1cb8d3
VS
12935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12936 yes:no: )
a848cd7e
SC
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12941 ac_header_preproc=yes
a848cd7e 12942 ;;
ac1cb8d3 12943 no:yes:* )
a848cd7e
SC
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12956 (
12957 cat <<\_ASBOX
ac1cb8d3
VS
12958## ----------------------------------------- ##
12959## Report this to wx-dev@lists.wxwidgets.org ##
12960## ----------------------------------------- ##
a848cd7e
SC
12961_ASBOX
12962 ) |
12963 sed "s/^/$as_me: WARNING: /" >&2
12964 ;;
12965esac
12966echo "$as_me:$LINENO: checking for $ac_header" >&5
12967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12968if eval "test \"\${$as_ac_Header+set}\" = set"; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970else
ac1cb8d3 12971 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12972fi
12973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12975
12976fi
12977if test `eval echo '${'$as_ac_Header'}'` = yes; then
12978 cat >>confdefs.h <<_ACEOF
12979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12980_ACEOF
12981
12982fi
12983
12984done
12985
12986
12987for ac_header in malloc.h
12988do
12989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12990if eval "test \"\${$as_ac_Header+set}\" = set"; then
12991 echo "$as_me:$LINENO: checking for $ac_header" >&5
12992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12993if eval "test \"\${$as_ac_Header+set}\" = set"; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12995fi
12996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12998else
12999 # Is the header compilable?
13000echo "$as_me:$LINENO: checking $ac_header usability" >&5
13001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13002cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h. */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h. */
13008$ac_includes_default
13009#include <$ac_header>
13010_ACEOF
13011rm -f conftest.$ac_objext
13012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13013 (eval $ac_compile) 2>conftest.er1
a848cd7e 13014 ac_status=$?
ac1cb8d3
VS
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
a848cd7e
SC
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
9a8f0513
VS
13020 { ac_try='test -z "$ac_c_werror_flag"
13021 || test ! -s conftest.err'
ac1cb8d3
VS
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; } &&
13027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 ac_header_compiler=yes
13034else
13035 echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038ac_header_compiler=no
13039fi
ac1cb8d3 13040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13042echo "${ECHO_T}$ac_header_compiler" >&6
13043
13044# Is the header present?
13045echo "$as_me:$LINENO: checking $ac_header presence" >&5
13046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13047cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h. */
13053#include <$ac_header>
13054_ACEOF
13055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } >/dev/null; then
13063 if test -s conftest.err; then
13064 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13066 else
13067 ac_cpp_err=
13068 fi
13069else
13070 ac_cpp_err=yes
13071fi
13072if test -z "$ac_cpp_err"; then
13073 ac_header_preproc=yes
13074else
13075 echo "$as_me: failed program was:" >&5
13076sed 's/^/| /' conftest.$ac_ext >&5
13077
13078 ac_header_preproc=no
13079fi
13080rm -f conftest.err conftest.$ac_ext
13081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13082echo "${ECHO_T}$ac_header_preproc" >&6
13083
13084# So? What about this header?
ac1cb8d3
VS
13085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13086 yes:no: )
a848cd7e
SC
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13091 ac_header_preproc=yes
a848cd7e 13092 ;;
ac1cb8d3 13093 no:yes:* )
a848cd7e
SC
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13106 (
13107 cat <<\_ASBOX
ac1cb8d3
VS
13108## ----------------------------------------- ##
13109## Report this to wx-dev@lists.wxwidgets.org ##
13110## ----------------------------------------- ##
a848cd7e
SC
13111_ASBOX
13112 ) |
13113 sed "s/^/$as_me: WARNING: /" >&2
13114 ;;
13115esac
13116echo "$as_me:$LINENO: checking for $ac_header" >&5
13117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13118if eval "test \"\${$as_ac_Header+set}\" = set"; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120else
ac1cb8d3 13121 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13122fi
13123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13125
13126fi
13127if test `eval echo '${'$as_ac_Header'}'` = yes; then
13128 cat >>confdefs.h <<_ACEOF
13129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13130_ACEOF
13131
13132fi
13133
13134done
13135
13136
13137for ac_header in unistd.h
13138do
13139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13140if eval "test \"\${$as_ac_Header+set}\" = set"; then
13141 echo "$as_me:$LINENO: checking for $ac_header" >&5
13142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13143if eval "test \"\${$as_ac_Header+set}\" = set"; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145fi
13146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13148else
13149 # Is the header compilable?
13150echo "$as_me:$LINENO: checking $ac_header usability" >&5
13151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13152cat >conftest.$ac_ext <<_ACEOF
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
13158$ac_includes_default
13159#include <$ac_header>
13160_ACEOF
13161rm -f conftest.$ac_objext
13162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13163 (eval $ac_compile) 2>conftest.er1
a848cd7e 13164 ac_status=$?
ac1cb8d3
VS
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
a848cd7e
SC
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
9a8f0513
VS
13170 { ac_try='test -z "$ac_c_werror_flag"
13171 || test ! -s conftest.err'
ac1cb8d3
VS
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_header_compiler=yes
13184else
13185 echo "$as_me: failed program was:" >&5
13186sed 's/^/| /' conftest.$ac_ext >&5
13187
13188ac_header_compiler=no
13189fi
ac1cb8d3 13190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13192echo "${ECHO_T}$ac_header_compiler" >&6
13193
13194# Is the header present?
13195echo "$as_me:$LINENO: checking $ac_header presence" >&5
13196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13197cat >conftest.$ac_ext <<_ACEOF
13198/* confdefs.h. */
13199_ACEOF
13200cat confdefs.h >>conftest.$ac_ext
13201cat >>conftest.$ac_ext <<_ACEOF
13202/* end confdefs.h. */
13203#include <$ac_header>
13204_ACEOF
13205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } >/dev/null; then
13213 if test -s conftest.err; then
13214 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13216 else
13217 ac_cpp_err=
13218 fi
13219else
13220 ac_cpp_err=yes
13221fi
13222if test -z "$ac_cpp_err"; then
13223 ac_header_preproc=yes
13224else
13225 echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
13227
13228 ac_header_preproc=no
13229fi
13230rm -f conftest.err conftest.$ac_ext
13231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13232echo "${ECHO_T}$ac_header_preproc" >&6
13233
13234# So? What about this header?
ac1cb8d3
VS
13235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13236 yes:no: )
a848cd7e
SC
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13241 ac_header_preproc=yes
a848cd7e 13242 ;;
ac1cb8d3 13243 no:yes:* )
a848cd7e
SC
13244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13251echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13256 (
13257 cat <<\_ASBOX
ac1cb8d3
VS
13258## ----------------------------------------- ##
13259## Report this to wx-dev@lists.wxwidgets.org ##
13260## ----------------------------------------- ##
a848cd7e
SC
13261_ASBOX
13262 ) |
13263 sed "s/^/$as_me: WARNING: /" >&2
13264 ;;
13265esac
13266echo "$as_me:$LINENO: checking for $ac_header" >&5
13267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13268if eval "test \"\${$as_ac_Header+set}\" = set"; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
ac1cb8d3 13271 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13272fi
13273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13275
13276fi
13277if test `eval echo '${'$as_ac_Header'}'` = yes; then
13278 cat >>confdefs.h <<_ACEOF
13279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13280_ACEOF
13281
13282fi
13283
13284done
13285
13286
13287for ac_header in wchar.h
13288do
13289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13290if eval "test \"\${$as_ac_Header+set}\" = set"; then
13291 echo "$as_me:$LINENO: checking for $ac_header" >&5
13292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13293if eval "test \"\${$as_ac_Header+set}\" = set"; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295fi
13296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13298else
13299 # Is the header compilable?
13300echo "$as_me:$LINENO: checking $ac_header usability" >&5
13301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13302cat >conftest.$ac_ext <<_ACEOF
13303/* confdefs.h. */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h. */
13308$ac_includes_default
13309#include <$ac_header>
13310_ACEOF
13311rm -f conftest.$ac_objext
13312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13313 (eval $ac_compile) 2>conftest.er1
a848cd7e 13314 ac_status=$?
ac1cb8d3
VS
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
a848cd7e
SC
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
9a8f0513
VS
13320 { ac_try='test -z "$ac_c_werror_flag"
13321 || test ! -s conftest.err'
ac1cb8d3
VS
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; } &&
13327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 ac_header_compiler=yes
13334else
13335 echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338ac_header_compiler=no
13339fi
ac1cb8d3 13340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13342echo "${ECHO_T}$ac_header_compiler" >&6
13343
13344# Is the header present?
13345echo "$as_me:$LINENO: checking $ac_header presence" >&5
13346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13347cat >conftest.$ac_ext <<_ACEOF
13348/* confdefs.h. */
13349_ACEOF
13350cat confdefs.h >>conftest.$ac_ext
13351cat >>conftest.$ac_ext <<_ACEOF
13352/* end confdefs.h. */
13353#include <$ac_header>
13354_ACEOF
13355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } >/dev/null; then
13363 if test -s conftest.err; then
13364 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13366 else
13367 ac_cpp_err=
13368 fi
13369else
13370 ac_cpp_err=yes
13371fi
13372if test -z "$ac_cpp_err"; then
13373 ac_header_preproc=yes
13374else
13375 echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 ac_header_preproc=no
13379fi
13380rm -f conftest.err conftest.$ac_ext
13381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13382echo "${ECHO_T}$ac_header_preproc" >&6
13383
13384# So? What about this header?
ac1cb8d3
VS
13385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13386 yes:no: )
a848cd7e
SC
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13391 ac_header_preproc=yes
a848cd7e 13392 ;;
ac1cb8d3 13393 no:yes:* )
a848cd7e
SC
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13406 (
13407 cat <<\_ASBOX
ac1cb8d3
VS
13408## ----------------------------------------- ##
13409## Report this to wx-dev@lists.wxwidgets.org ##
13410## ----------------------------------------- ##
a848cd7e
SC
13411_ASBOX
13412 ) |
13413 sed "s/^/$as_me: WARNING: /" >&2
13414 ;;
13415esac
13416echo "$as_me:$LINENO: checking for $ac_header" >&5
13417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13418if eval "test \"\${$as_ac_Header+set}\" = set"; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420else
ac1cb8d3 13421 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13422fi
13423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13425
13426fi
13427if test `eval echo '${'$as_ac_Header'}'` = yes; then
13428 cat >>confdefs.h <<_ACEOF
13429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13430_ACEOF
13431
13432fi
13433
13434done
13435
13436
13437if test "$ac_cv_header_wchar_h" != "yes"; then
13438
13439for ac_header in wcstr.h
13440do
13441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13442if eval "test \"\${$as_ac_Header+set}\" = set"; then
13443 echo "$as_me:$LINENO: checking for $ac_header" >&5
13444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13445if eval "test \"\${$as_ac_Header+set}\" = set"; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447fi
13448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13450else
13451 # Is the header compilable?
13452echo "$as_me:$LINENO: checking $ac_header usability" >&5
13453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13454cat >conftest.$ac_ext <<_ACEOF
13455/* confdefs.h. */
13456_ACEOF
13457cat confdefs.h >>conftest.$ac_ext
13458cat >>conftest.$ac_ext <<_ACEOF
13459/* end confdefs.h. */
13460$ac_includes_default
13461#include <$ac_header>
13462_ACEOF
13463rm -f conftest.$ac_objext
13464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13465 (eval $ac_compile) 2>conftest.er1
a848cd7e 13466 ac_status=$?
ac1cb8d3
VS
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
a848cd7e
SC
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
9a8f0513
VS
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
ac1cb8d3
VS
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_header_compiler=yes
13486else
13487 echo "$as_me: failed program was:" >&5
13488sed 's/^/| /' conftest.$ac_ext >&5
13489
13490ac_header_compiler=no
13491fi
ac1cb8d3 13492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13494echo "${ECHO_T}$ac_header_compiler" >&6
13495
13496# Is the header present?
13497echo "$as_me:$LINENO: checking $ac_header presence" >&5
13498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13499cat >conftest.$ac_ext <<_ACEOF
13500/* confdefs.h. */
13501_ACEOF
13502cat confdefs.h >>conftest.$ac_ext
13503cat >>conftest.$ac_ext <<_ACEOF
13504/* end confdefs.h. */
13505#include <$ac_header>
13506_ACEOF
13507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } >/dev/null; then
13515 if test -s conftest.err; then
13516 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13518 else
13519 ac_cpp_err=
13520 fi
13521else
13522 ac_cpp_err=yes
13523fi
13524if test -z "$ac_cpp_err"; then
13525 ac_header_preproc=yes
13526else
13527 echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 ac_header_preproc=no
13531fi
13532rm -f conftest.err conftest.$ac_ext
13533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13534echo "${ECHO_T}$ac_header_preproc" >&6
13535
13536# So? What about this header?
ac1cb8d3
VS
13537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13538 yes:no: )
a848cd7e
SC
13539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13543 ac_header_preproc=yes
a848cd7e 13544 ;;
ac1cb8d3 13545 no:yes:* )
a848cd7e
SC
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13558 (
13559 cat <<\_ASBOX
ac1cb8d3
VS
13560## ----------------------------------------- ##
13561## Report this to wx-dev@lists.wxwidgets.org ##
13562## ----------------------------------------- ##
a848cd7e
SC
13563_ASBOX
13564 ) |
13565 sed "s/^/$as_me: WARNING: /" >&2
13566 ;;
13567esac
13568echo "$as_me:$LINENO: checking for $ac_header" >&5
13569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13570if eval "test \"\${$as_ac_Header+set}\" = set"; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
ac1cb8d3 13573 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13574fi
13575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13577
13578fi
13579if test `eval echo '${'$as_ac_Header'}'` = yes; then
13580 cat >>confdefs.h <<_ACEOF
13581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13582_ACEOF
13583
13584fi
13585
13586done
13587
13588fi
13589
13590
13591for ac_header in fnmatch.h
13592do
13593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13594if eval "test \"\${$as_ac_Header+set}\" = set"; then
13595 echo "$as_me:$LINENO: checking for $ac_header" >&5
13596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13597if eval "test \"\${$as_ac_Header+set}\" = set"; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599fi
13600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13602else
13603 # Is the header compilable?
13604echo "$as_me:$LINENO: checking $ac_header usability" >&5
13605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13606cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h. */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h. */
13612$ac_includes_default
13613#include <$ac_header>
13614_ACEOF
13615rm -f conftest.$ac_objext
13616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13617 (eval $ac_compile) 2>conftest.er1
a848cd7e 13618 ac_status=$?
ac1cb8d3
VS
13619 grep -v '^ *+' conftest.er1 >conftest.err
13620 rm -f conftest.er1
13621 cat conftest.err >&5
a848cd7e
SC
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
9a8f0513
VS
13624 { ac_try='test -z "$ac_c_werror_flag"
13625 || test ! -s conftest.err'
ac1cb8d3
VS
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 ac_header_compiler=yes
13638else
13639 echo "$as_me: failed program was:" >&5
13640sed 's/^/| /' conftest.$ac_ext >&5
13641
13642ac_header_compiler=no
13643fi
ac1cb8d3 13644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13646echo "${ECHO_T}$ac_header_compiler" >&6
13647
13648# Is the header present?
13649echo "$as_me:$LINENO: checking $ac_header presence" >&5
13650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13651cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657#include <$ac_header>
13658_ACEOF
13659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13661 ac_status=$?
13662 grep -v '^ *+' conftest.er1 >conftest.err
13663 rm -f conftest.er1
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } >/dev/null; then
13667 if test -s conftest.err; then
13668 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13670 else
13671 ac_cpp_err=
13672 fi
13673else
13674 ac_cpp_err=yes
13675fi
13676if test -z "$ac_cpp_err"; then
13677 ac_header_preproc=yes
13678else
13679 echo "$as_me: failed program was:" >&5
13680sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 ac_header_preproc=no
13683fi
13684rm -f conftest.err conftest.$ac_ext
13685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13686echo "${ECHO_T}$ac_header_preproc" >&6
13687
13688# So? What about this header?
ac1cb8d3
VS
13689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13690 yes:no: )
a848cd7e
SC
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13695 ac_header_preproc=yes
a848cd7e 13696 ;;
ac1cb8d3 13697 no:yes:* )
a848cd7e
SC
13698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13710 (
13711 cat <<\_ASBOX
ac1cb8d3
VS
13712## ----------------------------------------- ##
13713## Report this to wx-dev@lists.wxwidgets.org ##
13714## ----------------------------------------- ##
a848cd7e
SC
13715_ASBOX
13716 ) |
13717 sed "s/^/$as_me: WARNING: /" >&2
13718 ;;
13719esac
13720echo "$as_me:$LINENO: checking for $ac_header" >&5
13721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13722if eval "test \"\${$as_ac_Header+set}\" = set"; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13724else
ac1cb8d3 13725 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13726fi
13727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13729
13730fi
13731if test `eval echo '${'$as_ac_Header'}'` = yes; then
13732 cat >>confdefs.h <<_ACEOF
13733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13734_ACEOF
13735
13736fi
13737
13738done
13739
13740
13741if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13742
13743for ac_func in fnmatch
13744do
13745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13746echo "$as_me:$LINENO: checking for $ac_func" >&5
13747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13748if eval "test \"\${$as_ac_var+set}\" = set"; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
13751 cat >conftest.$ac_ext <<_ACEOF
13752/* confdefs.h. */
13753_ACEOF
13754cat confdefs.h >>conftest.$ac_ext
13755cat >>conftest.$ac_ext <<_ACEOF
13756/* end confdefs.h. */
ac1cb8d3
VS
13757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13759#define $ac_func innocuous_$ac_func
13760
a848cd7e
SC
13761/* System header to define __stub macros and hopefully few prototypes,
13762 which can conflict with char $ac_func (); below.
13763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13765
a848cd7e
SC
13766#ifdef __STDC__
13767# include <limits.h>
13768#else
13769# include <assert.h>
13770#endif
ac1cb8d3
VS
13771
13772#undef $ac_func
13773
a848cd7e
SC
13774/* Override any gcc2 internal prototype to avoid an error. */
13775#ifdef __cplusplus
13776extern "C"
13777{
13778#endif
13779/* We use char because int might match the return type of a gcc2
13780 builtin and then its argument prototype would still apply. */
13781char $ac_func ();
13782/* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13786choke me
13787#else
13788char (*f) () = $ac_func;
13789#endif
13790#ifdef __cplusplus
13791}
13792#endif
13793
13794int
13795main ()
13796{
13797return f != $ac_func;
13798 ;
13799 return 0;
13800}
13801_ACEOF
13802rm -f conftest.$ac_objext conftest$ac_exeext
13803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13804 (eval $ac_link) 2>conftest.er1
a848cd7e 13805 ac_status=$?
ac1cb8d3
VS
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
a848cd7e
SC
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
9a8f0513
VS
13811 { ac_try='test -z "$ac_c_werror_flag"
13812 || test ! -s conftest.err'
ac1cb8d3
VS
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 eval "$as_ac_var=yes"
13825else
13826 echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829eval "$as_ac_var=no"
13830fi
ac1cb8d3
VS
13831rm -f conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13833fi
13834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13836if test `eval echo '${'$as_ac_var'}'` = yes; then
13837 cat >>confdefs.h <<_ACEOF
13838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13839_ACEOF
13840
13841fi
13842done
13843
13844fi
13845
13846
13847for ac_header in langinfo.h
13848do
13849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13850if eval "test \"\${$as_ac_Header+set}\" = set"; then
13851 echo "$as_me:$LINENO: checking for $ac_header" >&5
13852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13853if eval "test \"\${$as_ac_Header+set}\" = set"; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13855fi
13856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858else
13859 # Is the header compilable?
13860echo "$as_me:$LINENO: checking $ac_header usability" >&5
13861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13862cat >conftest.$ac_ext <<_ACEOF
13863/* confdefs.h. */
13864_ACEOF
13865cat confdefs.h >>conftest.$ac_ext
13866cat >>conftest.$ac_ext <<_ACEOF
13867/* end confdefs.h. */
13868$ac_includes_default
13869#include <$ac_header>
13870_ACEOF
13871rm -f conftest.$ac_objext
13872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13873 (eval $ac_compile) 2>conftest.er1
a848cd7e 13874 ac_status=$?
ac1cb8d3
VS
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
a848cd7e
SC
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
9a8f0513
VS
13880 { ac_try='test -z "$ac_c_werror_flag"
13881 || test ! -s conftest.err'
ac1cb8d3
VS
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 ac_header_compiler=yes
13894else
13895 echo "$as_me: failed program was:" >&5
13896sed 's/^/| /' conftest.$ac_ext >&5
13897
13898ac_header_compiler=no
13899fi
ac1cb8d3 13900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13901echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13902echo "${ECHO_T}$ac_header_compiler" >&6
13903
13904# Is the header present?
13905echo "$as_me:$LINENO: checking $ac_header presence" >&5
13906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13907cat >conftest.$ac_ext <<_ACEOF
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
13912/* end confdefs.h. */
13913#include <$ac_header>
13914_ACEOF
13915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13917 ac_status=$?
13918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } >/dev/null; then
13923 if test -s conftest.err; then
13924 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13926 else
13927 ac_cpp_err=
13928 fi
13929else
13930 ac_cpp_err=yes
13931fi
13932if test -z "$ac_cpp_err"; then
13933 ac_header_preproc=yes
13934else
13935 echo "$as_me: failed program was:" >&5
13936sed 's/^/| /' conftest.$ac_ext >&5
13937
13938 ac_header_preproc=no
13939fi
13940rm -f conftest.err conftest.$ac_ext
13941echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13942echo "${ECHO_T}$ac_header_preproc" >&6
13943
13944# So? What about this header?
ac1cb8d3
VS
13945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13946 yes:no: )
a848cd7e
SC
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13951 ac_header_preproc=yes
a848cd7e 13952 ;;
ac1cb8d3 13953 no:yes:* )
a848cd7e
SC
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13966 (
13967 cat <<\_ASBOX
ac1cb8d3
VS
13968## ----------------------------------------- ##
13969## Report this to wx-dev@lists.wxwidgets.org ##
13970## ----------------------------------------- ##
a848cd7e
SC
13971_ASBOX
13972 ) |
13973 sed "s/^/$as_me: WARNING: /" >&2
13974 ;;
13975esac
13976echo "$as_me:$LINENO: checking for $ac_header" >&5
13977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13978if eval "test \"\${$as_ac_Header+set}\" = set"; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980else
ac1cb8d3 13981 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13982fi
13983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13985
13986fi
13987if test `eval echo '${'$as_ac_Header'}'` = yes; then
13988 cat >>confdefs.h <<_ACEOF
13989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13990_ACEOF
13991
13992fi
13993
13994done
13995
13996
13997case "${host}" in
13998 *-pc-os2_emx | *-pc-os2-emx )
13999 if test $ac_cv_header_langinfo_h = "yes"; then
14000 LIBS="$LIBS -lintl"
14001 fi
14002 ;;
14003esac
14004
14005if test "$wxUSE_GUI" = "yes"; then
14006 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14007
14008for ac_header in X11/Xlib.h
14009do
14010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14011if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012 echo "$as_me:$LINENO: checking for $ac_header" >&5
14013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016fi
14017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14019else
14020 # Is the header compilable?
14021echo "$as_me:$LINENO: checking $ac_header usability" >&5
14022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14023cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
14028/* end confdefs.h. */
14029$ac_includes_default
14030#include <$ac_header>
14031_ACEOF
14032rm -f conftest.$ac_objext
14033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14034 (eval $ac_compile) 2>conftest.er1
a848cd7e 14035 ac_status=$?
ac1cb8d3
VS
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
a848cd7e
SC
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
9a8f0513
VS
14041 { ac_try='test -z "$ac_c_werror_flag"
14042 || test ! -s conftest.err'
ac1cb8d3
VS
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_header_compiler=yes
14055else
14056 echo "$as_me: failed program was:" >&5
14057sed 's/^/| /' conftest.$ac_ext >&5
14058
14059ac_header_compiler=no
14060fi
ac1cb8d3 14061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14063echo "${ECHO_T}$ac_header_compiler" >&6
14064
14065# Is the header present?
14066echo "$as_me:$LINENO: checking $ac_header presence" >&5
14067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14068cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h. */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h. */
14074#include <$ac_header>
14075_ACEOF
14076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } >/dev/null; then
14084 if test -s conftest.err; then
14085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14087 else
14088 ac_cpp_err=
14089 fi
14090else
14091 ac_cpp_err=yes
14092fi
14093if test -z "$ac_cpp_err"; then
14094 ac_header_preproc=yes
14095else
14096 echo "$as_me: failed program was:" >&5
14097sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ac_header_preproc=no
14100fi
14101rm -f conftest.err conftest.$ac_ext
14102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14103echo "${ECHO_T}$ac_header_preproc" >&6
14104
14105# So? What about this header?
ac1cb8d3
VS
14106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14107 yes:no: )
a848cd7e
SC
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14112 ac_header_preproc=yes
a848cd7e 14113 ;;
ac1cb8d3 14114 no:yes:* )
a848cd7e
SC
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14127 (
14128 cat <<\_ASBOX
ac1cb8d3
VS
14129## ----------------------------------------- ##
14130## Report this to wx-dev@lists.wxwidgets.org ##
14131## ----------------------------------------- ##
a848cd7e
SC
14132_ASBOX
14133 ) |
14134 sed "s/^/$as_me: WARNING: /" >&2
14135 ;;
14136esac
14137echo "$as_me:$LINENO: checking for $ac_header" >&5
14138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14139if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
ac1cb8d3 14142 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14143fi
14144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146
14147fi
14148if test `eval echo '${'$as_ac_Header'}'` = yes; then
14149 cat >>confdefs.h <<_ACEOF
14150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14151_ACEOF
14152
14153fi
14154
14155done
14156
14157
14158for ac_header in X11/XKBlib.h
14159do
14160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14161echo "$as_me:$LINENO: checking for $ac_header" >&5
14162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14163if eval "test \"\${$as_ac_Header+set}\" = set"; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165else
14166 cat >conftest.$ac_ext <<_ACEOF
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
14171/* end confdefs.h. */
14172
14173 #if HAVE_X11_XLIB_H
14174 #include <X11/Xlib.h>
14175 #endif
14176
14177
14178#include <$ac_header>
14179_ACEOF
14180rm -f conftest.$ac_objext
14181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14182 (eval $ac_compile) 2>conftest.er1
a848cd7e 14183 ac_status=$?
ac1cb8d3
VS
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
a848cd7e
SC
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
9a8f0513
VS
14189 { ac_try='test -z "$ac_c_werror_flag"
14190 || test ! -s conftest.err'
ac1cb8d3
VS
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 eval "$as_ac_Header=yes"
14203else
14204 echo "$as_me: failed program was:" >&5
14205sed 's/^/| /' conftest.$ac_ext >&5
14206
14207eval "$as_ac_Header=no"
14208fi
ac1cb8d3 14209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14210fi
14211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14213if test `eval echo '${'$as_ac_Header'}'` = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14216_ACEOF
14217
14218fi
14219
14220done
14221
14222 fi
14223fi
14224
14225
14226echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14227echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14228if test "${ac_cv_c_const+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230else
14231 cat >conftest.$ac_ext <<_ACEOF
14232/* confdefs.h. */
14233_ACEOF
14234cat confdefs.h >>conftest.$ac_ext
14235cat >>conftest.$ac_ext <<_ACEOF
14236/* end confdefs.h. */
14237
14238int
14239main ()
14240{
14241/* FIXME: Include the comments suggested by Paul. */
14242#ifndef __cplusplus
14243 /* Ultrix mips cc rejects this. */
14244 typedef int charset[2];
14245 const charset x;
14246 /* SunOS 4.1.1 cc rejects this. */
14247 char const *const *ccp;
14248 char **p;
14249 /* NEC SVR4.0.2 mips cc rejects this. */
14250 struct point {int x, y;};
14251 static struct point const zero = {0,0};
14252 /* AIX XL C 1.02.0.0 rejects this.
14253 It does not let you subtract one const X* pointer from another in
14254 an arm of an if-expression whose if-part is not a constant
14255 expression */
14256 const char *g = "string";
14257 ccp = &g + (g ? g-g : 0);
14258 /* HPUX 7.0 cc rejects these. */
14259 ++ccp;
14260 p = (char**) ccp;
14261 ccp = (char const *const *) p;
14262 { /* SCO 3.2v4 cc rejects this. */
14263 char *t;
14264 char const *s = 0 ? (char *) 0 : (char const *) 0;
14265
14266 *t++ = 0;
14267 }
14268 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14269 int x[] = {25, 17};
14270 const int *foo = &x[0];
14271 ++foo;
14272 }
14273 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14274 typedef const int *iptr;
14275 iptr p = 0;
14276 ++p;
14277 }
14278 { /* AIX XL C 1.02.0.0 rejects this saying
14279 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14280 struct s { int j; const int *ap[3]; };
14281 struct s *b; b->j = 5;
14282 }
14283 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14284 const int foo = 10;
14285 }
14286#endif
14287
14288 ;
14289 return 0;
14290}
14291_ACEOF
14292rm -f conftest.$ac_objext
14293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14294 (eval $ac_compile) 2>conftest.er1
a848cd7e 14295 ac_status=$?
ac1cb8d3
VS
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
a848cd7e
SC
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
9a8f0513
VS
14301 { ac_try='test -z "$ac_c_werror_flag"
14302 || test ! -s conftest.err'
ac1cb8d3
VS
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_c_const=yes
14315else
14316 echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
14319ac_cv_c_const=no
14320fi
ac1cb8d3 14321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14322fi
14323echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14324echo "${ECHO_T}$ac_cv_c_const" >&6
14325if test $ac_cv_c_const = no; then
14326
14327cat >>confdefs.h <<\_ACEOF
14328#define const
14329_ACEOF
14330
14331fi
14332
14333echo "$as_me:$LINENO: checking for inline" >&5
14334echo $ECHO_N "checking for inline... $ECHO_C" >&6
14335if test "${ac_cv_c_inline+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338 ac_cv_c_inline=no
14339for ac_kw in inline __inline__ __inline; do
14340 cat >conftest.$ac_ext <<_ACEOF
14341/* confdefs.h. */
14342_ACEOF
14343cat confdefs.h >>conftest.$ac_ext
14344cat >>conftest.$ac_ext <<_ACEOF
14345/* end confdefs.h. */
14346#ifndef __cplusplus
14347typedef int foo_t;
14348static $ac_kw foo_t static_foo () {return 0; }
14349$ac_kw foo_t foo () {return 0; }
14350#endif
14351
14352_ACEOF
14353rm -f conftest.$ac_objext
14354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14355 (eval $ac_compile) 2>conftest.er1
a848cd7e 14356 ac_status=$?
ac1cb8d3
VS
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
a848cd7e
SC
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
9a8f0513
VS
14362 { ac_try='test -z "$ac_c_werror_flag"
14363 || test ! -s conftest.err'
ac1cb8d3
VS
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14375 ac_cv_c_inline=$ac_kw; break
14376else
14377 echo "$as_me: failed program was:" >&5
14378sed 's/^/| /' conftest.$ac_ext >&5
14379
14380fi
ac1cb8d3 14381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14382done
14383
14384fi
14385echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14386echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14387
14388
a848cd7e
SC
14389case $ac_cv_c_inline in
14390 inline | yes) ;;
ac1cb8d3
VS
14391 *)
14392 case $ac_cv_c_inline in
14393 no) ac_val=;;
14394 *) ac_val=$ac_cv_c_inline;;
14395 esac
14396 cat >>confdefs.h <<_ACEOF
14397#ifndef __cplusplus
14398#define inline $ac_val
14399#endif
de59c161 14400_ACEOF
ac1cb8d3 14401 ;;
a848cd7e
SC
14402esac
14403
14404
14405echo "$as_me:$LINENO: checking for char" >&5
14406echo $ECHO_N "checking for char... $ECHO_C" >&6
14407if test "${ac_cv_type_char+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409else
14410 cat >conftest.$ac_ext <<_ACEOF
14411/* confdefs.h. */
14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
14416$ac_includes_default
14417int
14418main ()
14419{
14420if ((char *) 0)
14421 return 0;
14422if (sizeof (char))
14423 return 0;
14424 ;
14425 return 0;
14426}
14427_ACEOF
14428rm -f conftest.$ac_objext
14429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14430 (eval $ac_compile) 2>conftest.er1
a848cd7e 14431 ac_status=$?
ac1cb8d3
VS
14432 grep -v '^ *+' conftest.er1 >conftest.err
14433 rm -f conftest.er1
14434 cat conftest.err >&5
a848cd7e
SC
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
9a8f0513
VS
14437 { ac_try='test -z "$ac_c_werror_flag"
14438 || test ! -s conftest.err'
ac1cb8d3
VS
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_type_char=yes
14451else
14452 echo "$as_me: failed program was:" >&5
14453sed 's/^/| /' conftest.$ac_ext >&5
14454
14455ac_cv_type_char=no
14456fi
ac1cb8d3 14457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14458fi
14459echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14460echo "${ECHO_T}$ac_cv_type_char" >&6
14461
14462echo "$as_me:$LINENO: checking size of char" >&5
14463echo $ECHO_N "checking size of char... $ECHO_C" >&6
14464if test "${ac_cv_sizeof_char+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466else
14467 if test "$ac_cv_type_char" = yes; then
14468 # The cast to unsigned long works around a bug in the HP C Compiler
14469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14471 # This bug is HP SR number 8606223364.
14472 if test "$cross_compiling" = yes; then
14473 # Depending upon the size, compute the lo and hi bounds.
14474cat >conftest.$ac_ext <<_ACEOF
14475/* confdefs.h. */
14476_ACEOF
14477cat confdefs.h >>conftest.$ac_ext
14478cat >>conftest.$ac_ext <<_ACEOF
14479/* end confdefs.h. */
14480$ac_includes_default
14481int
14482main ()
14483{
14484static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14485test_array [0] = 0
14486
14487 ;
14488 return 0;
14489}
14490_ACEOF
14491rm -f conftest.$ac_objext
14492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14493 (eval $ac_compile) 2>conftest.er1
a848cd7e 14494 ac_status=$?
ac1cb8d3
VS
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
a848cd7e
SC
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
9a8f0513
VS
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
ac1cb8d3
VS
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_lo=0 ac_mid=0
14514 while :; do
14515 cat >conftest.$ac_ext <<_ACEOF
14516/* confdefs.h. */
14517_ACEOF
14518cat confdefs.h >>conftest.$ac_ext
14519cat >>conftest.$ac_ext <<_ACEOF
14520/* end confdefs.h. */
14521$ac_includes_default
14522int
14523main ()
14524{
14525static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14526test_array [0] = 0
14527
14528 ;
14529 return 0;
14530}
14531_ACEOF
14532rm -f conftest.$ac_objext
14533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14534 (eval $ac_compile) 2>conftest.er1
a848cd7e 14535 ac_status=$?
ac1cb8d3
VS
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
a848cd7e
SC
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
9a8f0513
VS
14541 { ac_try='test -z "$ac_c_werror_flag"
14542 || test ! -s conftest.err'
ac1cb8d3
VS
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_hi=$ac_mid; break
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14560 if test $ac_lo -le $ac_mid; then
14561 ac_lo= ac_hi=
14562 break
14563 fi
14564 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14565fi
ac1cb8d3 14566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14567 done
14568else
14569 echo "$as_me: failed program was:" >&5
14570sed 's/^/| /' conftest.$ac_ext >&5
14571
14572cat >conftest.$ac_ext <<_ACEOF
14573/* confdefs.h. */
14574_ACEOF
14575cat confdefs.h >>conftest.$ac_ext
14576cat >>conftest.$ac_ext <<_ACEOF
14577/* end confdefs.h. */
14578$ac_includes_default
14579int
14580main ()
14581{
14582static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14583test_array [0] = 0
14584
14585 ;
14586 return 0;
14587}
14588_ACEOF
14589rm -f conftest.$ac_objext
14590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14591 (eval $ac_compile) 2>conftest.er1
a848cd7e 14592 ac_status=$?
ac1cb8d3
VS
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
a848cd7e
SC
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
9a8f0513
VS
14598 { ac_try='test -z "$ac_c_werror_flag"
14599 || test ! -s conftest.err'
ac1cb8d3
VS
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 ac_hi=-1 ac_mid=-1
14612 while :; do
14613 cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
14619$ac_includes_default
14620int
14621main ()
14622{
14623static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14624test_array [0] = 0
14625
14626 ;
14627 return 0;
14628}
14629_ACEOF
14630rm -f conftest.$ac_objext
14631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14632 (eval $ac_compile) 2>conftest.er1
a848cd7e 14633 ac_status=$?
ac1cb8d3
VS
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
a848cd7e
SC
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
9a8f0513
VS
14639 { ac_try='test -z "$ac_c_werror_flag"
14640 || test ! -s conftest.err'
ac1cb8d3
VS
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; } &&
14646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_lo=$ac_mid; break
14653else
14654 echo "$as_me: failed program was:" >&5
14655sed 's/^/| /' conftest.$ac_ext >&5
14656
14657ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14658 if test $ac_mid -le $ac_hi; then
14659 ac_lo= ac_hi=
14660 break
14661 fi
14662 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14663fi
ac1cb8d3 14664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14665 done
14666else
14667 echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670ac_lo= ac_hi=
14671fi
ac1cb8d3 14672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14673fi
ac1cb8d3 14674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14675# Binary search between lo and hi bounds.
14676while test "x$ac_lo" != "x$ac_hi"; do
14677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14678 cat >conftest.$ac_ext <<_ACEOF
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
14684$ac_includes_default
14685int
14686main ()
14687{
14688static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14689test_array [0] = 0
14690
14691 ;
14692 return 0;
14693}
14694_ACEOF
14695rm -f conftest.$ac_objext
14696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14697 (eval $ac_compile) 2>conftest.er1
a848cd7e 14698 ac_status=$?
ac1cb8d3
VS
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
a848cd7e
SC
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
9a8f0513
VS
14704 { ac_try='test -z "$ac_c_werror_flag"
14705 || test ! -s conftest.err'
ac1cb8d3
VS
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; } &&
14711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 ac_hi=$ac_mid
14718else
14719 echo "$as_me: failed program was:" >&5
14720sed 's/^/| /' conftest.$ac_ext >&5
14721
14722ac_lo=`expr '(' $ac_mid ')' + 1`
14723fi
ac1cb8d3 14724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14725done
14726case $ac_lo in
14727?*) ac_cv_sizeof_char=$ac_lo;;
14728'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14729See \`config.log' for more details." >&5
14730echo "$as_me: error: cannot compute sizeof (char), 77
14731See \`config.log' for more details." >&2;}
14732 { (exit 1); exit 1; }; } ;;
14733esac
14734else
14735 if test "$cross_compiling" = yes; then
9a8f0513
VS
14736 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14737See \`config.log' for more details." >&5
14738echo "$as_me: error: cannot run test program while cross compiling
14739See \`config.log' for more details." >&2;}
a848cd7e
SC
14740 { (exit 1); exit 1; }; }
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
14749long longval () { return (long) (sizeof (char)); }
14750unsigned long ulongval () { return (long) (sizeof (char)); }
14751#include <stdio.h>
14752#include <stdlib.h>
14753int
14754main ()
14755{
14756
14757 FILE *f = fopen ("conftest.val", "w");
14758 if (! f)
14759 exit (1);
14760 if (((long) (sizeof (char))) < 0)
14761 {
14762 long i = longval ();
14763 if (i != ((long) (sizeof (char))))
14764 exit (1);
14765 fprintf (f, "%ld\n", i);
14766 }
14767 else
14768 {
14769 unsigned long i = ulongval ();
14770 if (i != ((long) (sizeof (char))))
14771 exit (1);
14772 fprintf (f, "%lu\n", i);
14773 }
14774 exit (ferror (f) || fclose (f) != 0);
14775
14776 ;
14777 return 0;
14778}
14779_ACEOF
14780rm -f conftest$ac_exeext
14781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782 (eval $ac_link) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_cv_sizeof_char=`cat conftest.val`
14792else
14793 echo "$as_me: program exited with status $ac_status" >&5
14794echo "$as_me: failed program was:" >&5
14795sed 's/^/| /' conftest.$ac_ext >&5
14796
14797( exit $ac_status )
14798{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14799See \`config.log' for more details." >&5
14800echo "$as_me: error: cannot compute sizeof (char), 77
14801See \`config.log' for more details." >&2;}
14802 { (exit 1); exit 1; }; }
14803fi
ac1cb8d3 14804rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14805fi
14806fi
14807rm -f conftest.val
14808else
14809 ac_cv_sizeof_char=0
14810fi
14811fi
14812echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14813echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14814cat >>confdefs.h <<_ACEOF
14815#define SIZEOF_CHAR $ac_cv_sizeof_char
14816_ACEOF
14817
14818
14819echo "$as_me:$LINENO: checking for short" >&5
14820echo $ECHO_N "checking for short... $ECHO_C" >&6
14821if test "${ac_cv_type_short+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824 cat >conftest.$ac_ext <<_ACEOF
14825/* confdefs.h. */
14826_ACEOF
14827cat confdefs.h >>conftest.$ac_ext
14828cat >>conftest.$ac_ext <<_ACEOF
14829/* end confdefs.h. */
14830$ac_includes_default
14831int
14832main ()
14833{
14834if ((short *) 0)
14835 return 0;
14836if (sizeof (short))
14837 return 0;
14838 ;
14839 return 0;
14840}
14841_ACEOF
14842rm -f conftest.$ac_objext
14843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14844 (eval $ac_compile) 2>conftest.er1
a848cd7e 14845 ac_status=$?
ac1cb8d3
VS
14846 grep -v '^ *+' conftest.er1 >conftest.err
14847 rm -f conftest.er1
14848 cat conftest.err >&5
a848cd7e
SC
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } &&
9a8f0513
VS
14851 { ac_try='test -z "$ac_c_werror_flag"
14852 || test ! -s conftest.err'
ac1cb8d3
VS
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14855 ac_status=$?
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_type_short=yes
14865else
14866 echo "$as_me: failed program was:" >&5
14867sed 's/^/| /' conftest.$ac_ext >&5
14868
14869ac_cv_type_short=no
14870fi
ac1cb8d3 14871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14872fi
14873echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14874echo "${ECHO_T}$ac_cv_type_short" >&6
14875
14876echo "$as_me:$LINENO: checking size of short" >&5
14877echo $ECHO_N "checking size of short... $ECHO_C" >&6
14878if test "${ac_cv_sizeof_short+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880else
14881 if test "$ac_cv_type_short" = yes; then
14882 # The cast to unsigned long works around a bug in the HP C Compiler
14883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14885 # This bug is HP SR number 8606223364.
14886 if test "$cross_compiling" = yes; then
14887 # Depending upon the size, compute the lo and hi bounds.
14888cat >conftest.$ac_ext <<_ACEOF
14889/* confdefs.h. */
14890_ACEOF
14891cat confdefs.h >>conftest.$ac_ext
14892cat >>conftest.$ac_ext <<_ACEOF
14893/* end confdefs.h. */
14894$ac_includes_default
14895int
14896main ()
14897{
14898static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14899test_array [0] = 0
14900
14901 ;
14902 return 0;
14903}
14904_ACEOF
14905rm -f conftest.$ac_objext
14906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14907 (eval $ac_compile) 2>conftest.er1
a848cd7e 14908 ac_status=$?
ac1cb8d3
VS
14909 grep -v '^ *+' conftest.er1 >conftest.err
14910 rm -f conftest.er1
14911 cat conftest.err >&5
a848cd7e
SC
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
9a8f0513
VS
14914 { ac_try='test -z "$ac_c_werror_flag"
14915 || test ! -s conftest.err'
ac1cb8d3
VS
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_lo=0 ac_mid=0
14928 while :; do
14929 cat >conftest.$ac_ext <<_ACEOF
14930/* confdefs.h. */
14931_ACEOF
14932cat confdefs.h >>conftest.$ac_ext
14933cat >>conftest.$ac_ext <<_ACEOF
14934/* end confdefs.h. */
14935$ac_includes_default
14936int
14937main ()
14938{
14939static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14940test_array [0] = 0
14941
14942 ;
14943 return 0;
14944}
14945_ACEOF
14946rm -f conftest.$ac_objext
14947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14948 (eval $ac_compile) 2>conftest.er1
a848cd7e 14949 ac_status=$?
ac1cb8d3
VS
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
a848cd7e
SC
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
9a8f0513
VS
14955 { ac_try='test -z "$ac_c_werror_flag"
14956 || test ! -s conftest.err'
ac1cb8d3
VS
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 ac_hi=$ac_mid; break
14969else
14970 echo "$as_me: failed program was:" >&5
14971sed 's/^/| /' conftest.$ac_ext >&5
14972
14973ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14974 if test $ac_lo -le $ac_mid; then
14975 ac_lo= ac_hi=
14976 break
14977 fi
14978 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14979fi
ac1cb8d3 14980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14981 done
14982else
14983 echo "$as_me: failed program was:" >&5
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
14986cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992$ac_includes_default
14993int
14994main ()
14995{
14996static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14997test_array [0] = 0
14998
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003rm -f conftest.$ac_objext
15004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15005 (eval $ac_compile) 2>conftest.er1
a848cd7e 15006 ac_status=$?
ac1cb8d3
VS
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
a848cd7e
SC
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
9a8f0513
VS
15012 { ac_try='test -z "$ac_c_werror_flag"
15013 || test ! -s conftest.err'
ac1cb8d3
VS
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; } &&
15019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_hi=-1 ac_mid=-1
15026 while :; do
15027 cat >conftest.$ac_ext <<_ACEOF
15028/* confdefs.h. */
15029_ACEOF
15030cat confdefs.h >>conftest.$ac_ext
15031cat >>conftest.$ac_ext <<_ACEOF
15032/* end confdefs.h. */
15033$ac_includes_default
15034int
15035main ()
15036{
15037static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15038test_array [0] = 0
15039
15040 ;
15041 return 0;
15042}
15043_ACEOF
15044rm -f conftest.$ac_objext
15045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15046 (eval $ac_compile) 2>conftest.er1
a848cd7e 15047 ac_status=$?
ac1cb8d3
VS
15048 grep -v '^ *+' conftest.er1 >conftest.err
15049 rm -f conftest.er1
15050 cat conftest.err >&5
a848cd7e
SC
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
9a8f0513
VS
15053 { ac_try='test -z "$ac_c_werror_flag"
15054 || test ! -s conftest.err'
ac1cb8d3
VS
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; } &&
15060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_lo=$ac_mid; break
15067else
15068 echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15072 if test $ac_mid -le $ac_hi; then
15073 ac_lo= ac_hi=
15074 break
15075 fi
15076 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15077fi
ac1cb8d3 15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15079 done
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084ac_lo= ac_hi=
15085fi
ac1cb8d3 15086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15087fi
ac1cb8d3 15088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15089# Binary search between lo and hi bounds.
15090while test "x$ac_lo" != "x$ac_hi"; do
15091 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15092 cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098$ac_includes_default
15099int
15100main ()
15101{
15102static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15103test_array [0] = 0
15104
15105 ;
15106 return 0;
15107}
15108_ACEOF
15109rm -f conftest.$ac_objext
15110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15111 (eval $ac_compile) 2>conftest.er1
a848cd7e 15112 ac_status=$?
ac1cb8d3
VS
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
a848cd7e
SC
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
9a8f0513
VS
15118 { ac_try='test -z "$ac_c_werror_flag"
15119 || test ! -s conftest.err'
ac1cb8d3
VS
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 ac_hi=$ac_mid
15132else
15133 echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136ac_lo=`expr '(' $ac_mid ')' + 1`
15137fi
ac1cb8d3 15138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15139done
15140case $ac_lo in
15141?*) ac_cv_sizeof_short=$ac_lo;;
15142'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15143See \`config.log' for more details." >&5
15144echo "$as_me: error: cannot compute sizeof (short), 77
15145See \`config.log' for more details." >&2;}
15146 { (exit 1); exit 1; }; } ;;
15147esac
15148else
15149 if test "$cross_compiling" = yes; then
9a8f0513
VS
15150 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15151See \`config.log' for more details." >&5
15152echo "$as_me: error: cannot run test program while cross compiling
15153See \`config.log' for more details." >&2;}
a848cd7e
SC
15154 { (exit 1); exit 1; }; }
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
15163long longval () { return (long) (sizeof (short)); }
15164unsigned long ulongval () { return (long) (sizeof (short)); }
15165#include <stdio.h>
15166#include <stdlib.h>
15167int
15168main ()
15169{
15170
15171 FILE *f = fopen ("conftest.val", "w");
15172 if (! f)
15173 exit (1);
15174 if (((long) (sizeof (short))) < 0)
15175 {
15176 long i = longval ();
15177 if (i != ((long) (sizeof (short))))
15178 exit (1);
15179 fprintf (f, "%ld\n", i);
15180 }
15181 else
15182 {
15183 unsigned long i = ulongval ();
15184 if (i != ((long) (sizeof (short))))
15185 exit (1);
15186 fprintf (f, "%lu\n", i);
15187 }
15188 exit (ferror (f) || fclose (f) != 0);
15189
15190 ;
15191 return 0;
15192}
15193_ACEOF
15194rm -f conftest$ac_exeext
15195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196 (eval $ac_link) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_sizeof_short=`cat conftest.val`
15206else
15207 echo "$as_me: program exited with status $ac_status" >&5
15208echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
15211( exit $ac_status )
15212{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15213See \`config.log' for more details." >&5
15214echo "$as_me: error: cannot compute sizeof (short), 77
15215See \`config.log' for more details." >&2;}
15216 { (exit 1); exit 1; }; }
15217fi
ac1cb8d3 15218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15219fi
15220fi
15221rm -f conftest.val
15222else
15223 ac_cv_sizeof_short=0
15224fi
15225fi
15226echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15227echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15228cat >>confdefs.h <<_ACEOF
15229#define SIZEOF_SHORT $ac_cv_sizeof_short
15230_ACEOF
15231
15232
15233echo "$as_me:$LINENO: checking for void *" >&5
15234echo $ECHO_N "checking for void *... $ECHO_C" >&6
15235if test "${ac_cv_type_void_p+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15237else
15238 cat >conftest.$ac_ext <<_ACEOF
15239/* confdefs.h. */
15240_ACEOF
15241cat confdefs.h >>conftest.$ac_ext
15242cat >>conftest.$ac_ext <<_ACEOF
15243/* end confdefs.h. */
15244$ac_includes_default
15245int
15246main ()
15247{
15248if ((void * *) 0)
15249 return 0;
15250if (sizeof (void *))
15251 return 0;
15252 ;
15253 return 0;
15254}
15255_ACEOF
15256rm -f conftest.$ac_objext
15257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15258 (eval $ac_compile) 2>conftest.er1
a848cd7e 15259 ac_status=$?
ac1cb8d3
VS
15260 grep -v '^ *+' conftest.er1 >conftest.err
15261 rm -f conftest.er1
15262 cat conftest.err >&5
a848cd7e
SC
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
9a8f0513
VS
15265 { ac_try='test -z "$ac_c_werror_flag"
15266 || test ! -s conftest.err'
ac1cb8d3
VS
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 ac_cv_type_void_p=yes
15279else
15280 echo "$as_me: failed program was:" >&5
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
15283ac_cv_type_void_p=no
15284fi
ac1cb8d3 15285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15286fi
15287echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15288echo "${ECHO_T}$ac_cv_type_void_p" >&6
15289
15290echo "$as_me:$LINENO: checking size of void *" >&5
15291echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15292if test "${ac_cv_sizeof_void_p+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294else
15295 if test "$ac_cv_type_void_p" = yes; then
15296 # The cast to unsigned long works around a bug in the HP C Compiler
15297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15299 # This bug is HP SR number 8606223364.
15300 if test "$cross_compiling" = yes; then
15301 # Depending upon the size, compute the lo and hi bounds.
15302cat >conftest.$ac_ext <<_ACEOF
15303/* confdefs.h. */
15304_ACEOF
15305cat confdefs.h >>conftest.$ac_ext
15306cat >>conftest.$ac_ext <<_ACEOF
15307/* end confdefs.h. */
15308$ac_includes_default
15309int
15310main ()
15311{
15312static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15313test_array [0] = 0
15314
15315 ;
15316 return 0;
15317}
15318_ACEOF
15319rm -f conftest.$ac_objext
15320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15321 (eval $ac_compile) 2>conftest.er1
a848cd7e 15322 ac_status=$?
ac1cb8d3
VS
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
a848cd7e
SC
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
9a8f0513
VS
15328 { ac_try='test -z "$ac_c_werror_flag"
15329 || test ! -s conftest.err'
ac1cb8d3
VS
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_lo=0 ac_mid=0
15342 while :; do
15343 cat >conftest.$ac_ext <<_ACEOF
15344/* confdefs.h. */
15345_ACEOF
15346cat confdefs.h >>conftest.$ac_ext
15347cat >>conftest.$ac_ext <<_ACEOF
15348/* end confdefs.h. */
15349$ac_includes_default
15350int
15351main ()
15352{
15353static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15354test_array [0] = 0
15355
15356 ;
15357 return 0;
15358}
15359_ACEOF
15360rm -f conftest.$ac_objext
15361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15362 (eval $ac_compile) 2>conftest.er1
a848cd7e 15363 ac_status=$?
ac1cb8d3
VS
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
a848cd7e
SC
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
9a8f0513
VS
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
ac1cb8d3
VS
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_hi=$ac_mid; break
15383else
15384 echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15388 if test $ac_lo -le $ac_mid; then
15389 ac_lo= ac_hi=
15390 break
15391 fi
15392 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15393fi
ac1cb8d3 15394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15395 done
15396else
15397 echo "$as_me: failed program was:" >&5
15398sed 's/^/| /' conftest.$ac_ext >&5
15399
15400cat >conftest.$ac_ext <<_ACEOF
15401/* confdefs.h. */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h. */
15406$ac_includes_default
15407int
15408main ()
15409{
15410static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15411test_array [0] = 0
15412
15413 ;
15414 return 0;
15415}
15416_ACEOF
15417rm -f conftest.$ac_objext
15418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15419 (eval $ac_compile) 2>conftest.er1
a848cd7e 15420 ac_status=$?
ac1cb8d3
VS
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
a848cd7e
SC
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
9a8f0513
VS
15426 { ac_try='test -z "$ac_c_werror_flag"
15427 || test ! -s conftest.err'
ac1cb8d3
VS
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_hi=-1 ac_mid=-1
15440 while :; do
15441 cat >conftest.$ac_ext <<_ACEOF
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
15446/* end confdefs.h. */
15447$ac_includes_default
15448int
15449main ()
15450{
15451static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15452test_array [0] = 0
15453
15454 ;
15455 return 0;
15456}
15457_ACEOF
15458rm -f conftest.$ac_objext
15459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15460 (eval $ac_compile) 2>conftest.er1
a848cd7e 15461 ac_status=$?
ac1cb8d3
VS
15462 grep -v '^ *+' conftest.er1 >conftest.err
15463 rm -f conftest.er1
15464 cat conftest.err >&5
a848cd7e
SC
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
9a8f0513
VS
15467 { ac_try='test -z "$ac_c_werror_flag"
15468 || test ! -s conftest.err'
ac1cb8d3
VS
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 ac_lo=$ac_mid; break
15481else
15482 echo "$as_me: failed program was:" >&5
15483sed 's/^/| /' conftest.$ac_ext >&5
15484
15485ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15486 if test $ac_mid -le $ac_hi; then
15487 ac_lo= ac_hi=
15488 break
15489 fi
15490 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15491fi
ac1cb8d3 15492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15493 done
15494else
15495 echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5
15497
15498ac_lo= ac_hi=
15499fi
ac1cb8d3 15500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15501fi
ac1cb8d3 15502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15503# Binary search between lo and hi bounds.
15504while test "x$ac_lo" != "x$ac_hi"; do
15505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15506 cat >conftest.$ac_ext <<_ACEOF
15507/* confdefs.h. */
15508_ACEOF
15509cat confdefs.h >>conftest.$ac_ext
15510cat >>conftest.$ac_ext <<_ACEOF
15511/* end confdefs.h. */
15512$ac_includes_default
15513int
15514main ()
15515{
15516static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15517test_array [0] = 0
15518
15519 ;
15520 return 0;
15521}
15522_ACEOF
15523rm -f conftest.$ac_objext
15524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15525 (eval $ac_compile) 2>conftest.er1
a848cd7e 15526 ac_status=$?
ac1cb8d3
VS
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
a848cd7e
SC
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
9a8f0513
VS
15532 { ac_try='test -z "$ac_c_werror_flag"
15533 || test ! -s conftest.err'
ac1cb8d3
VS
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; } &&
15539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15545 ac_hi=$ac_mid
15546else
15547 echo "$as_me: failed program was:" >&5
15548sed 's/^/| /' conftest.$ac_ext >&5
15549
15550ac_lo=`expr '(' $ac_mid ')' + 1`
15551fi
ac1cb8d3 15552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15553done
15554case $ac_lo in
15555?*) ac_cv_sizeof_void_p=$ac_lo;;
15556'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15557See \`config.log' for more details." >&5
15558echo "$as_me: error: cannot compute sizeof (void *), 77
15559See \`config.log' for more details." >&2;}
15560 { (exit 1); exit 1; }; } ;;
15561esac
15562else
15563 if test "$cross_compiling" = yes; then
9a8f0513
VS
15564 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15565See \`config.log' for more details." >&5
15566echo "$as_me: error: cannot run test program while cross compiling
15567See \`config.log' for more details." >&2;}
a848cd7e
SC
15568 { (exit 1); exit 1; }; }
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
15577long longval () { return (long) (sizeof (void *)); }
15578unsigned long ulongval () { return (long) (sizeof (void *)); }
15579#include <stdio.h>
15580#include <stdlib.h>
15581int
15582main ()
15583{
15584
15585 FILE *f = fopen ("conftest.val", "w");
15586 if (! f)
15587 exit (1);
15588 if (((long) (sizeof (void *))) < 0)
15589 {
15590 long i = longval ();
15591 if (i != ((long) (sizeof (void *))))
15592 exit (1);
15593 fprintf (f, "%ld\n", i);
15594 }
15595 else
15596 {
15597 unsigned long i = ulongval ();
15598 if (i != ((long) (sizeof (void *))))
15599 exit (1);
15600 fprintf (f, "%lu\n", i);
15601 }
15602 exit (ferror (f) || fclose (f) != 0);
15603
15604 ;
15605 return 0;
15606}
15607_ACEOF
15608rm -f conftest$ac_exeext
15609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15610 (eval $ac_link) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_cv_sizeof_void_p=`cat conftest.val`
15620else
15621 echo "$as_me: program exited with status $ac_status" >&5
15622echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625( exit $ac_status )
15626{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15627See \`config.log' for more details." >&5
15628echo "$as_me: error: cannot compute sizeof (void *), 77
15629See \`config.log' for more details." >&2;}
15630 { (exit 1); exit 1; }; }
15631fi
ac1cb8d3 15632rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15633fi
15634fi
15635rm -f conftest.val
15636else
15637 ac_cv_sizeof_void_p=0
15638fi
15639fi
15640echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15641echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15642cat >>confdefs.h <<_ACEOF
15643#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15644_ACEOF
15645
15646
15647echo "$as_me:$LINENO: checking for int" >&5
15648echo $ECHO_N "checking for int... $ECHO_C" >&6
15649if test "${ac_cv_type_int+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651else
15652 cat >conftest.$ac_ext <<_ACEOF
15653/* confdefs.h. */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h. */
15658$ac_includes_default
15659int
15660main ()
15661{
15662if ((int *) 0)
15663 return 0;
15664if (sizeof (int))
15665 return 0;
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext
15671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15672 (eval $ac_compile) 2>conftest.er1
a848cd7e 15673 ac_status=$?
ac1cb8d3
VS
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
a848cd7e
SC
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
9a8f0513
VS
15679 { ac_try='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
ac1cb8d3
VS
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_type_int=yes
15693else
15694 echo "$as_me: failed program was:" >&5
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
15697ac_cv_type_int=no
15698fi
ac1cb8d3 15699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15700fi
15701echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15702echo "${ECHO_T}$ac_cv_type_int" >&6
15703
15704echo "$as_me:$LINENO: checking size of int" >&5
15705echo $ECHO_N "checking size of int... $ECHO_C" >&6
15706if test "${ac_cv_sizeof_int+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15708else
15709 if test "$ac_cv_type_int" = yes; then
15710 # The cast to unsigned long works around a bug in the HP C Compiler
15711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15713 # This bug is HP SR number 8606223364.
15714 if test "$cross_compiling" = yes; then
15715 # Depending upon the size, compute the lo and hi bounds.
15716cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722$ac_includes_default
15723int
15724main ()
15725{
15726static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15727test_array [0] = 0
15728
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15735 (eval $ac_compile) 2>conftest.er1
a848cd7e 15736 ac_status=$?
ac1cb8d3
VS
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
a848cd7e
SC
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
9a8f0513
VS
15742 { ac_try='test -z "$ac_c_werror_flag"
15743 || test ! -s conftest.err'
ac1cb8d3
VS
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 ac_lo=0 ac_mid=0
15756 while :; do
15757 cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763$ac_includes_default
15764int
15765main ()
15766{
15767static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15768test_array [0] = 0
15769
15770 ;
15771 return 0;
15772}
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15776 (eval $ac_compile) 2>conftest.er1
a848cd7e 15777 ac_status=$?
ac1cb8d3
VS
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
a848cd7e
SC
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
9a8f0513
VS
15783 { ac_try='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
ac1cb8d3
VS
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 ac_hi=$ac_mid; break
15797else
15798 echo "$as_me: failed program was:" >&5
15799sed 's/^/| /' conftest.$ac_ext >&5
15800
15801ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15802 if test $ac_lo -le $ac_mid; then
15803 ac_lo= ac_hi=
15804 break
15805 fi
15806 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15807fi
ac1cb8d3 15808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15809 done
15810else
15811 echo "$as_me: failed program was:" >&5
15812sed 's/^/| /' conftest.$ac_ext >&5
15813
15814cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820$ac_includes_default
15821int
15822main ()
15823{
15824static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15825test_array [0] = 0
15826
15827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15833 (eval $ac_compile) 2>conftest.er1
a848cd7e 15834 ac_status=$?
ac1cb8d3
VS
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
a848cd7e
SC
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
9a8f0513
VS
15840 { ac_try='test -z "$ac_c_werror_flag"
15841 || test ! -s conftest.err'
ac1cb8d3
VS
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; } &&
15847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 ac_hi=-1 ac_mid=-1
15854 while :; do
15855 cat >conftest.$ac_ext <<_ACEOF
15856/* confdefs.h. */
15857_ACEOF
15858cat confdefs.h >>conftest.$ac_ext
15859cat >>conftest.$ac_ext <<_ACEOF
15860/* end confdefs.h. */
15861$ac_includes_default
15862int
15863main ()
15864{
15865static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15866test_array [0] = 0
15867
15868 ;
15869 return 0;
15870}
15871_ACEOF
15872rm -f conftest.$ac_objext
15873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15874 (eval $ac_compile) 2>conftest.er1
a848cd7e 15875 ac_status=$?
ac1cb8d3
VS
15876 grep -v '^ *+' conftest.er1 >conftest.err
15877 rm -f conftest.er1
15878 cat conftest.err >&5
a848cd7e
SC
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
9a8f0513
VS
15881 { ac_try='test -z "$ac_c_werror_flag"
15882 || test ! -s conftest.err'
ac1cb8d3
VS
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } &&
15888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 ac_lo=$ac_mid; break
15895else
15896 echo "$as_me: failed program was:" >&5
15897sed 's/^/| /' conftest.$ac_ext >&5
15898
15899ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15900 if test $ac_mid -le $ac_hi; then
15901 ac_lo= ac_hi=
15902 break
15903 fi
15904 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15905fi
ac1cb8d3 15906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15907 done
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
15912ac_lo= ac_hi=
15913fi
ac1cb8d3 15914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15915fi
ac1cb8d3 15916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15917# Binary search between lo and hi bounds.
15918while test "x$ac_lo" != "x$ac_hi"; do
15919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15920 cat >conftest.$ac_ext <<_ACEOF
15921/* confdefs.h. */
15922_ACEOF
15923cat confdefs.h >>conftest.$ac_ext
15924cat >>conftest.$ac_ext <<_ACEOF
15925/* end confdefs.h. */
15926$ac_includes_default
15927int
15928main ()
15929{
15930static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15931test_array [0] = 0
15932
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15939 (eval $ac_compile) 2>conftest.er1
a848cd7e 15940 ac_status=$?
ac1cb8d3
VS
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
a848cd7e
SC
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
9a8f0513
VS
15946 { ac_try='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
ac1cb8d3
VS
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_hi=$ac_mid
15960else
15961 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5
15963
15964ac_lo=`expr '(' $ac_mid ')' + 1`
15965fi
ac1cb8d3 15966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15967done
15968case $ac_lo in
15969?*) ac_cv_sizeof_int=$ac_lo;;
15970'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15971See \`config.log' for more details." >&5
15972echo "$as_me: error: cannot compute sizeof (int), 77
15973See \`config.log' for more details." >&2;}
15974 { (exit 1); exit 1; }; } ;;
15975esac
15976else
15977 if test "$cross_compiling" = yes; then
9a8f0513
VS
15978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15979See \`config.log' for more details." >&5
15980echo "$as_me: error: cannot run test program while cross compiling
15981See \`config.log' for more details." >&2;}
a848cd7e
SC
15982 { (exit 1); exit 1; }; }
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
15991long longval () { return (long) (sizeof (int)); }
15992unsigned long ulongval () { return (long) (sizeof (int)); }
15993#include <stdio.h>
15994#include <stdlib.h>
15995int
15996main ()
15997{
15998
15999 FILE *f = fopen ("conftest.val", "w");
16000 if (! f)
16001 exit (1);
16002 if (((long) (sizeof (int))) < 0)
16003 {
16004 long i = longval ();
16005 if (i != ((long) (sizeof (int))))
16006 exit (1);
16007 fprintf (f, "%ld\n", i);
16008 }
16009 else
16010 {
16011 unsigned long i = ulongval ();
16012 if (i != ((long) (sizeof (int))))
16013 exit (1);
16014 fprintf (f, "%lu\n", i);
16015 }
16016 exit (ferror (f) || fclose (f) != 0);
16017
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022rm -f conftest$ac_exeext
16023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16024 (eval $ac_link) 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_sizeof_int=`cat conftest.val`
16034else
16035 echo "$as_me: program exited with status $ac_status" >&5
16036echo "$as_me: failed program was:" >&5
16037sed 's/^/| /' conftest.$ac_ext >&5
16038
16039( exit $ac_status )
16040{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16041See \`config.log' for more details." >&5
16042echo "$as_me: error: cannot compute sizeof (int), 77
16043See \`config.log' for more details." >&2;}
16044 { (exit 1); exit 1; }; }
16045fi
ac1cb8d3 16046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16047fi
16048fi
16049rm -f conftest.val
16050else
16051 ac_cv_sizeof_int=0
16052fi
16053fi
16054echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16055echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16056cat >>confdefs.h <<_ACEOF
16057#define SIZEOF_INT $ac_cv_sizeof_int
16058_ACEOF
16059
16060
16061echo "$as_me:$LINENO: checking for long" >&5
16062echo $ECHO_N "checking for long... $ECHO_C" >&6
16063if test "${ac_cv_type_long+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065else
16066 cat >conftest.$ac_ext <<_ACEOF
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
16072$ac_includes_default
16073int
16074main ()
16075{
16076if ((long *) 0)
16077 return 0;
16078if (sizeof (long))
16079 return 0;
16080 ;
16081 return 0;
16082}
16083_ACEOF
16084rm -f conftest.$ac_objext
16085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16086 (eval $ac_compile) 2>conftest.er1
a848cd7e 16087 ac_status=$?
ac1cb8d3
VS
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
a848cd7e
SC
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
9a8f0513
VS
16093 { ac_try='test -z "$ac_c_werror_flag"
16094 || test ! -s conftest.err'
ac1cb8d3
VS
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_type_long=yes
16107else
16108 echo "$as_me: failed program was:" >&5
16109sed 's/^/| /' conftest.$ac_ext >&5
16110
16111ac_cv_type_long=no
16112fi
ac1cb8d3 16113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16114fi
16115echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16116echo "${ECHO_T}$ac_cv_type_long" >&6
16117
16118echo "$as_me:$LINENO: checking size of long" >&5
16119echo $ECHO_N "checking size of long... $ECHO_C" >&6
16120if test "${ac_cv_sizeof_long+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122else
16123 if test "$ac_cv_type_long" = yes; then
16124 # The cast to unsigned long works around a bug in the HP C Compiler
16125 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16126 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16127 # This bug is HP SR number 8606223364.
16128 if test "$cross_compiling" = yes; then
16129 # Depending upon the size, compute the lo and hi bounds.
16130cat >conftest.$ac_ext <<_ACEOF
16131/* confdefs.h. */
16132_ACEOF
16133cat confdefs.h >>conftest.$ac_ext
16134cat >>conftest.$ac_ext <<_ACEOF
16135/* end confdefs.h. */
16136$ac_includes_default
16137int
16138main ()
16139{
16140static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16141test_array [0] = 0
16142
16143 ;
16144 return 0;
16145}
16146_ACEOF
16147rm -f conftest.$ac_objext
16148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16149 (eval $ac_compile) 2>conftest.er1
a848cd7e 16150 ac_status=$?
ac1cb8d3
VS
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
a848cd7e
SC
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
9a8f0513
VS
16156 { ac_try='test -z "$ac_c_werror_flag"
16157 || test ! -s conftest.err'
ac1cb8d3
VS
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; } &&
16163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_lo=0 ac_mid=0
16170 while :; do
16171 cat >conftest.$ac_ext <<_ACEOF
16172/* confdefs.h. */
16173_ACEOF
16174cat confdefs.h >>conftest.$ac_ext
16175cat >>conftest.$ac_ext <<_ACEOF
16176/* end confdefs.h. */
16177$ac_includes_default
16178int
16179main ()
16180{
16181static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16182test_array [0] = 0
16183
16184 ;
16185 return 0;
16186}
16187_ACEOF
16188rm -f conftest.$ac_objext
16189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16190 (eval $ac_compile) 2>conftest.er1
a848cd7e 16191 ac_status=$?
ac1cb8d3
VS
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
a848cd7e
SC
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
9a8f0513
VS
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
ac1cb8d3
VS
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_hi=$ac_mid; break
16211else
16212 echo "$as_me: failed program was:" >&5
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
16215ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16216 if test $ac_lo -le $ac_mid; then
16217 ac_lo= ac_hi=
16218 break
16219 fi
16220 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16221fi
ac1cb8d3 16222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16223 done
16224else
16225 echo "$as_me: failed program was:" >&5
16226sed 's/^/| /' conftest.$ac_ext >&5
16227
16228cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234$ac_includes_default
16235int
16236main ()
16237{
16238static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16239test_array [0] = 0
16240
16241 ;
16242 return 0;
16243}
16244_ACEOF
16245rm -f conftest.$ac_objext
16246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16247 (eval $ac_compile) 2>conftest.er1
a848cd7e 16248 ac_status=$?
ac1cb8d3
VS
16249 grep -v '^ *+' conftest.er1 >conftest.err
16250 rm -f conftest.er1
16251 cat conftest.err >&5
a848cd7e
SC
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
9a8f0513
VS
16254 { ac_try='test -z "$ac_c_werror_flag"
16255 || test ! -s conftest.err'
ac1cb8d3
VS
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_hi=-1 ac_mid=-1
16268 while :; do
16269 cat >conftest.$ac_ext <<_ACEOF
16270/* confdefs.h. */
16271_ACEOF
16272cat confdefs.h >>conftest.$ac_ext
16273cat >>conftest.$ac_ext <<_ACEOF
16274/* end confdefs.h. */
16275$ac_includes_default
16276int
16277main ()
16278{
16279static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16280test_array [0] = 0
16281
16282 ;
16283 return 0;
16284}
16285_ACEOF
16286rm -f conftest.$ac_objext
16287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16288 (eval $ac_compile) 2>conftest.er1
a848cd7e 16289 ac_status=$?
ac1cb8d3
VS
16290 grep -v '^ *+' conftest.er1 >conftest.err
16291 rm -f conftest.er1
16292 cat conftest.err >&5
a848cd7e
SC
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } &&
9a8f0513
VS
16295 { ac_try='test -z "$ac_c_werror_flag"
16296 || test ! -s conftest.err'
ac1cb8d3
VS
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 ac_lo=$ac_mid; break
16309else
16310 echo "$as_me: failed program was:" >&5
16311sed 's/^/| /' conftest.$ac_ext >&5
16312
16313ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16314 if test $ac_mid -le $ac_hi; then
16315 ac_lo= ac_hi=
16316 break
16317 fi
16318 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16319fi
ac1cb8d3 16320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16321 done
16322else
16323 echo "$as_me: failed program was:" >&5
16324sed 's/^/| /' conftest.$ac_ext >&5
16325
16326ac_lo= ac_hi=
16327fi
ac1cb8d3 16328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16329fi
ac1cb8d3 16330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16331# Binary search between lo and hi bounds.
16332while test "x$ac_lo" != "x$ac_hi"; do
16333 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16334 cat >conftest.$ac_ext <<_ACEOF
16335/* confdefs.h. */
16336_ACEOF
16337cat confdefs.h >>conftest.$ac_ext
16338cat >>conftest.$ac_ext <<_ACEOF
16339/* end confdefs.h. */
16340$ac_includes_default
16341int
16342main ()
16343{
16344static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16345test_array [0] = 0
16346
16347 ;
16348 return 0;
16349}
16350_ACEOF
16351rm -f conftest.$ac_objext
16352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16353 (eval $ac_compile) 2>conftest.er1
a848cd7e 16354 ac_status=$?
ac1cb8d3
VS
16355 grep -v '^ *+' conftest.er1 >conftest.err
16356 rm -f conftest.er1
16357 cat conftest.err >&5
a848cd7e
SC
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } &&
9a8f0513
VS
16360 { ac_try='test -z "$ac_c_werror_flag"
16361 || test ! -s conftest.err'
ac1cb8d3
VS
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; } &&
16367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ac_hi=$ac_mid
16374else
16375 echo "$as_me: failed program was:" >&5
16376sed 's/^/| /' conftest.$ac_ext >&5
16377
16378ac_lo=`expr '(' $ac_mid ')' + 1`
16379fi
ac1cb8d3 16380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16381done
16382case $ac_lo in
16383?*) ac_cv_sizeof_long=$ac_lo;;
16384'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16385See \`config.log' for more details." >&5
16386echo "$as_me: error: cannot compute sizeof (long), 77
16387See \`config.log' for more details." >&2;}
16388 { (exit 1); exit 1; }; } ;;
16389esac
16390else
16391 if test "$cross_compiling" = yes; then
9a8f0513
VS
16392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16393See \`config.log' for more details." >&5
16394echo "$as_me: error: cannot run test program while cross compiling
16395See \`config.log' for more details." >&2;}
a848cd7e
SC
16396 { (exit 1); exit 1; }; }
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
16405long longval () { return (long) (sizeof (long)); }
16406unsigned long ulongval () { return (long) (sizeof (long)); }
16407#include <stdio.h>
16408#include <stdlib.h>
16409int
16410main ()
16411{
16412
16413 FILE *f = fopen ("conftest.val", "w");
16414 if (! f)
16415 exit (1);
16416 if (((long) (sizeof (long))) < 0)
16417 {
16418 long i = longval ();
16419 if (i != ((long) (sizeof (long))))
16420 exit (1);
16421 fprintf (f, "%ld\n", i);
16422 }
16423 else
16424 {
16425 unsigned long i = ulongval ();
16426 if (i != ((long) (sizeof (long))))
16427 exit (1);
16428 fprintf (f, "%lu\n", i);
16429 }
16430 exit (ferror (f) || fclose (f) != 0);
16431
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436rm -f conftest$ac_exeext
16437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16438 (eval $ac_link) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_sizeof_long=`cat conftest.val`
16448else
16449 echo "$as_me: program exited with status $ac_status" >&5
16450echo "$as_me: failed program was:" >&5
16451sed 's/^/| /' conftest.$ac_ext >&5
16452
16453( exit $ac_status )
16454{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16455See \`config.log' for more details." >&5
16456echo "$as_me: error: cannot compute sizeof (long), 77
16457See \`config.log' for more details." >&2;}
16458 { (exit 1); exit 1; }; }
16459fi
ac1cb8d3 16460rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16461fi
16462fi
16463rm -f conftest.val
16464else
16465 ac_cv_sizeof_long=0
16466fi
16467fi
16468echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16469echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16470cat >>confdefs.h <<_ACEOF
16471#define SIZEOF_LONG $ac_cv_sizeof_long
16472_ACEOF
16473
16474
16475echo "$as_me:$LINENO: checking for size_t" >&5
16476echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16477if test "${ac_cv_type_size_t+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479else
16480 cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486$ac_includes_default
16487int
16488main ()
16489{
16490if ((size_t *) 0)
16491 return 0;
16492if (sizeof (size_t))
16493 return 0;
16494 ;
16495 return 0;
16496}
16497_ACEOF
16498rm -f conftest.$ac_objext
16499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16500 (eval $ac_compile) 2>conftest.er1
a848cd7e 16501 ac_status=$?
ac1cb8d3
VS
16502 grep -v '^ *+' conftest.er1 >conftest.err
16503 rm -f conftest.er1
16504 cat conftest.err >&5
a848cd7e
SC
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
9a8f0513
VS
16507 { ac_try='test -z "$ac_c_werror_flag"
16508 || test ! -s conftest.err'
ac1cb8d3
VS
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_type_size_t=yes
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
16524
16525ac_cv_type_size_t=no
16526fi
ac1cb8d3 16527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16528fi
16529echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16530echo "${ECHO_T}$ac_cv_type_size_t" >&6
16531
16532echo "$as_me:$LINENO: checking size of size_t" >&5
16533echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16534if test "${ac_cv_sizeof_size_t+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16536else
16537 if test "$ac_cv_type_size_t" = yes; then
16538 # The cast to unsigned long works around a bug in the HP C Compiler
16539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16541 # This bug is HP SR number 8606223364.
16542 if test "$cross_compiling" = yes; then
16543 # Depending upon the size, compute the lo and hi bounds.
16544cat >conftest.$ac_ext <<_ACEOF
16545/* confdefs.h. */
16546_ACEOF
16547cat confdefs.h >>conftest.$ac_ext
16548cat >>conftest.$ac_ext <<_ACEOF
16549/* end confdefs.h. */
16550$ac_includes_default
16551int
16552main ()
16553{
16554static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16555test_array [0] = 0
16556
16557 ;
16558 return 0;
16559}
16560_ACEOF
16561rm -f conftest.$ac_objext
16562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16563 (eval $ac_compile) 2>conftest.er1
a848cd7e 16564 ac_status=$?
ac1cb8d3
VS
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
a848cd7e
SC
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
9a8f0513
VS
16570 { ac_try='test -z "$ac_c_werror_flag"
16571 || test ! -s conftest.err'
ac1cb8d3
VS
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; } &&
16577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_lo=0 ac_mid=0
16584 while :; do
16585 cat >conftest.$ac_ext <<_ACEOF
16586/* confdefs.h. */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h. */
16591$ac_includes_default
16592int
16593main ()
16594{
16595static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16596test_array [0] = 0
16597
16598 ;
16599 return 0;
16600}
16601_ACEOF
16602rm -f conftest.$ac_objext
16603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16604 (eval $ac_compile) 2>conftest.er1
a848cd7e 16605 ac_status=$?
ac1cb8d3
VS
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
a848cd7e
SC
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
9a8f0513
VS
16611 { ac_try='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
ac1cb8d3
VS
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_hi=$ac_mid; break
16625else
16626 echo "$as_me: failed program was:" >&5
16627sed 's/^/| /' conftest.$ac_ext >&5
16628
16629ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16630 if test $ac_lo -le $ac_mid; then
16631 ac_lo= ac_hi=
16632 break
16633 fi
16634 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16635fi
ac1cb8d3 16636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16637 done
16638else
16639 echo "$as_me: failed program was:" >&5
16640sed 's/^/| /' conftest.$ac_ext >&5
16641
16642cat >conftest.$ac_ext <<_ACEOF
16643/* confdefs.h. */
16644_ACEOF
16645cat confdefs.h >>conftest.$ac_ext
16646cat >>conftest.$ac_ext <<_ACEOF
16647/* end confdefs.h. */
16648$ac_includes_default
16649int
16650main ()
16651{
16652static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16653test_array [0] = 0
16654
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16661 (eval $ac_compile) 2>conftest.er1
a848cd7e 16662 ac_status=$?
ac1cb8d3
VS
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
a848cd7e
SC
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
9a8f0513
VS
16668 { ac_try='test -z "$ac_c_werror_flag"
16669 || test ! -s conftest.err'
ac1cb8d3
VS
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 ac_hi=-1 ac_mid=-1
16682 while :; do
16683 cat >conftest.$ac_ext <<_ACEOF
16684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
16689$ac_includes_default
16690int
16691main ()
16692{
16693static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16694test_array [0] = 0
16695
16696 ;
16697 return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext
16701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16702 (eval $ac_compile) 2>conftest.er1
a848cd7e 16703 ac_status=$?
ac1cb8d3
VS
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
a848cd7e
SC
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
9a8f0513
VS
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
ac1cb8d3
VS
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 ac_lo=$ac_mid; break
16723else
16724 echo "$as_me: failed program was:" >&5
16725sed 's/^/| /' conftest.$ac_ext >&5
16726
16727ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16728 if test $ac_mid -le $ac_hi; then
16729 ac_lo= ac_hi=
16730 break
16731 fi
16732 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16733fi
ac1cb8d3 16734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16735 done
16736else
16737 echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740ac_lo= ac_hi=
16741fi
ac1cb8d3 16742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16743fi
ac1cb8d3 16744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16745# Binary search between lo and hi bounds.
16746while test "x$ac_lo" != "x$ac_hi"; do
16747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16748 cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
16754$ac_includes_default
16755int
16756main ()
16757{
16758static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16759test_array [0] = 0
16760
16761 ;
16762 return 0;
16763}
16764_ACEOF
16765rm -f conftest.$ac_objext
16766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16767 (eval $ac_compile) 2>conftest.er1
a848cd7e 16768 ac_status=$?
ac1cb8d3
VS
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
a848cd7e
SC
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
9a8f0513
VS
16774 { ac_try='test -z "$ac_c_werror_flag"
16775 || test ! -s conftest.err'
ac1cb8d3
VS
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 ac_hi=$ac_mid
16788else
16789 echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792ac_lo=`expr '(' $ac_mid ')' + 1`
16793fi
ac1cb8d3 16794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16795done
16796case $ac_lo in
16797?*) ac_cv_sizeof_size_t=$ac_lo;;
16798'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16799See \`config.log' for more details." >&5
16800echo "$as_me: error: cannot compute sizeof (size_t), 77
16801See \`config.log' for more details." >&2;}
16802 { (exit 1); exit 1; }; } ;;
16803esac
16804else
16805 if test "$cross_compiling" = yes; then
9a8f0513
VS
16806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16807See \`config.log' for more details." >&5
16808echo "$as_me: error: cannot run test program while cross compiling
16809See \`config.log' for more details." >&2;}
a848cd7e
SC
16810 { (exit 1); exit 1; }; }
16811else
16812 cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h. */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h. */
16818$ac_includes_default
16819long longval () { return (long) (sizeof (size_t)); }
16820unsigned long ulongval () { return (long) (sizeof (size_t)); }
16821#include <stdio.h>
16822#include <stdlib.h>
16823int
16824main ()
16825{
16826
16827 FILE *f = fopen ("conftest.val", "w");
16828 if (! f)
16829 exit (1);
16830 if (((long) (sizeof (size_t))) < 0)
16831 {
16832 long i = longval ();
16833 if (i != ((long) (sizeof (size_t))))
16834 exit (1);
16835 fprintf (f, "%ld\n", i);
16836 }
16837 else
16838 {
16839 unsigned long i = ulongval ();
16840 if (i != ((long) (sizeof (size_t))))
16841 exit (1);
16842 fprintf (f, "%lu\n", i);
16843 }
16844 exit (ferror (f) || fclose (f) != 0);
16845
16846 ;
16847 return 0;
16848}
16849_ACEOF
16850rm -f conftest$ac_exeext
16851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852 (eval $ac_link) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_sizeof_size_t=`cat conftest.val`
16862else
16863 echo "$as_me: program exited with status $ac_status" >&5
16864echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867( exit $ac_status )
16868{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16869See \`config.log' for more details." >&5
16870echo "$as_me: error: cannot compute sizeof (size_t), 77
16871See \`config.log' for more details." >&2;}
16872 { (exit 1); exit 1; }; }
16873fi
ac1cb8d3 16874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16875fi
16876fi
16877rm -f conftest.val
16878else
16879 ac_cv_sizeof_size_t=0
16880fi
16881fi
16882echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16883echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16884cat >>confdefs.h <<_ACEOF
16885#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16886_ACEOF
16887
16888
16889
16890case "${host}" in
16891 arm-*-linux* )
16892 echo "$as_me:$LINENO: checking for long long" >&5
16893echo $ECHO_N "checking for long long... $ECHO_C" >&6
16894if test "${ac_cv_type_long_long+set}" = set; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896else
16897 cat >conftest.$ac_ext <<_ACEOF
16898/* confdefs.h. */
16899_ACEOF
16900cat confdefs.h >>conftest.$ac_ext
16901cat >>conftest.$ac_ext <<_ACEOF
16902/* end confdefs.h. */
16903$ac_includes_default
16904int
16905main ()
16906{
16907if ((long long *) 0)
16908 return 0;
16909if (sizeof (long long))
16910 return 0;
16911 ;
16912 return 0;
16913}
16914_ACEOF
16915rm -f conftest.$ac_objext
16916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16917 (eval $ac_compile) 2>conftest.er1
a848cd7e 16918 ac_status=$?
ac1cb8d3
VS
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
a848cd7e
SC
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
9a8f0513
VS
16924 { ac_try='test -z "$ac_c_werror_flag"
16925 || test ! -s conftest.err'
ac1cb8d3
VS
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; }; then
16937 ac_cv_type_long_long=yes
16938else
16939 echo "$as_me: failed program was:" >&5
16940sed 's/^/| /' conftest.$ac_ext >&5
16941
16942ac_cv_type_long_long=no
16943fi
ac1cb8d3 16944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16945fi
16946echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16947echo "${ECHO_T}$ac_cv_type_long_long" >&6
16948
16949echo "$as_me:$LINENO: checking size of long long" >&5
16950echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16951if test "${ac_cv_sizeof_long_long+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953else
16954 if test "$ac_cv_type_long_long" = yes; then
16955 # The cast to unsigned long works around a bug in the HP C Compiler
16956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16958 # This bug is HP SR number 8606223364.
16959 if test "$cross_compiling" = yes; then
16960 # Depending upon the size, compute the lo and hi bounds.
16961cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967$ac_includes_default
16968int
16969main ()
16970{
16971static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16972test_array [0] = 0
16973
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978rm -f conftest.$ac_objext
16979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16980 (eval $ac_compile) 2>conftest.er1
a848cd7e 16981 ac_status=$?
ac1cb8d3
VS
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
a848cd7e
SC
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
9a8f0513
VS
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
ac1cb8d3
VS
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_lo=0 ac_mid=0
17001 while :; do
17002 cat >conftest.$ac_ext <<_ACEOF
17003/* confdefs.h. */
17004_ACEOF
17005cat confdefs.h >>conftest.$ac_ext
17006cat >>conftest.$ac_ext <<_ACEOF
17007/* end confdefs.h. */
17008$ac_includes_default
17009int
17010main ()
17011{
17012static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17013test_array [0] = 0
17014
17015 ;
17016 return 0;
17017}
17018_ACEOF
17019rm -f conftest.$ac_objext
17020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17021 (eval $ac_compile) 2>conftest.er1
a848cd7e 17022 ac_status=$?
ac1cb8d3
VS
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
a848cd7e
SC
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
9a8f0513
VS
17028 { ac_try='test -z "$ac_c_werror_flag"
17029 || test ! -s conftest.err'
ac1cb8d3
VS
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_hi=$ac_mid; break
17042else
17043 echo "$as_me: failed program was:" >&5
17044sed 's/^/| /' conftest.$ac_ext >&5
17045
17046ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17047 if test $ac_lo -le $ac_mid; then
17048 ac_lo= ac_hi=
17049 break
17050 fi
17051 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17052fi
ac1cb8d3 17053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17054 done
17055else
17056 echo "$as_me: failed program was:" >&5
17057sed 's/^/| /' conftest.$ac_ext >&5
17058
17059cat >conftest.$ac_ext <<_ACEOF
17060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
17065$ac_includes_default
17066int
17067main ()
17068{
17069static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17070test_array [0] = 0
17071
17072 ;
17073 return 0;
17074}
17075_ACEOF
17076rm -f conftest.$ac_objext
17077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17078 (eval $ac_compile) 2>conftest.er1
a848cd7e 17079 ac_status=$?
ac1cb8d3
VS
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
a848cd7e
SC
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
9a8f0513
VS
17085 { ac_try='test -z "$ac_c_werror_flag"
17086 || test ! -s conftest.err'
ac1cb8d3
VS
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 ac_hi=-1 ac_mid=-1
17099 while :; do
17100 cat >conftest.$ac_ext <<_ACEOF
17101/* confdefs.h. */
17102_ACEOF
17103cat confdefs.h >>conftest.$ac_ext
17104cat >>conftest.$ac_ext <<_ACEOF
17105/* end confdefs.h. */
17106$ac_includes_default
17107int
17108main ()
17109{
17110static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17111test_array [0] = 0
17112
17113 ;
17114 return 0;
17115}
17116_ACEOF
17117rm -f conftest.$ac_objext
17118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17119 (eval $ac_compile) 2>conftest.er1
a848cd7e 17120 ac_status=$?
ac1cb8d3
VS
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
a848cd7e
SC
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
9a8f0513
VS
17126 { ac_try='test -z "$ac_c_werror_flag"
17127 || test ! -s conftest.err'
ac1cb8d3
VS
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
17133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 ac_lo=$ac_mid; break
17140else
17141 echo "$as_me: failed program was:" >&5
17142sed 's/^/| /' conftest.$ac_ext >&5
17143
17144ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17145 if test $ac_mid -le $ac_hi; then
17146 ac_lo= ac_hi=
17147 break
17148 fi
17149 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17150fi
ac1cb8d3 17151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17152 done
17153else
17154 echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157ac_lo= ac_hi=
17158fi
ac1cb8d3 17159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17160fi
ac1cb8d3 17161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17162# Binary search between lo and hi bounds.
17163while test "x$ac_lo" != "x$ac_hi"; do
17164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17165 cat >conftest.$ac_ext <<_ACEOF
17166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
17171$ac_includes_default
17172int
17173main ()
17174{
17175static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17176test_array [0] = 0
17177
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext
17183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17184 (eval $ac_compile) 2>conftest.er1
a848cd7e 17185 ac_status=$?
ac1cb8d3
VS
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
a848cd7e
SC
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
9a8f0513
VS
17191 { ac_try='test -z "$ac_c_werror_flag"
17192 || test ! -s conftest.err'
ac1cb8d3
VS
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 ac_hi=$ac_mid
17205else
17206 echo "$as_me: failed program was:" >&5
17207sed 's/^/| /' conftest.$ac_ext >&5
17208
17209ac_lo=`expr '(' $ac_mid ')' + 1`
17210fi
ac1cb8d3 17211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17212done
17213case $ac_lo in
17214?*) ac_cv_sizeof_long_long=$ac_lo;;
17215'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17216See \`config.log' for more details." >&5
17217echo "$as_me: error: cannot compute sizeof (long long), 77
17218See \`config.log' for more details." >&2;}
17219 { (exit 1); exit 1; }; } ;;
17220esac
17221else
17222 if test "$cross_compiling" = yes; then
9a8f0513
VS
17223 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17224See \`config.log' for more details." >&5
17225echo "$as_me: error: cannot run test program while cross compiling
17226See \`config.log' for more details." >&2;}
a848cd7e
SC
17227 { (exit 1); exit 1; }; }
17228else
17229 cat >conftest.$ac_ext <<_ACEOF
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235$ac_includes_default
17236long longval () { return (long) (sizeof (long long)); }
17237unsigned long ulongval () { return (long) (sizeof (long long)); }
17238#include <stdio.h>
17239#include <stdlib.h>
17240int
17241main ()
17242{
17243
17244 FILE *f = fopen ("conftest.val", "w");
17245 if (! f)
17246 exit (1);
17247 if (((long) (sizeof (long long))) < 0)
17248 {
17249 long i = longval ();
17250 if (i != ((long) (sizeof (long long))))
17251 exit (1);
17252 fprintf (f, "%ld\n", i);
17253 }
17254 else
17255 {
17256 unsigned long i = ulongval ();
17257 if (i != ((long) (sizeof (long long))))
17258 exit (1);
17259 fprintf (f, "%lu\n", i);
17260 }
17261 exit (ferror (f) || fclose (f) != 0);
17262
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267rm -f conftest$ac_exeext
17268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269 (eval $ac_link) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_cv_sizeof_long_long=`cat conftest.val`
17279else
17280 echo "$as_me: program exited with status $ac_status" >&5
17281echo "$as_me: failed program was:" >&5
17282sed 's/^/| /' conftest.$ac_ext >&5
17283
17284( exit $ac_status )
17285{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17286See \`config.log' for more details." >&5
17287echo "$as_me: error: cannot compute sizeof (long long), 77
17288See \`config.log' for more details." >&2;}
17289 { (exit 1); exit 1; }; }
17290fi
ac1cb8d3 17291rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17292fi
17293fi
17294rm -f conftest.val
17295else
17296 ac_cv_sizeof_long_long=0
17297fi
17298fi
17299echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17300echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17301cat >>confdefs.h <<_ACEOF
17302#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17303_ACEOF
17304
17305
17306 ;;
17307 *-hp-hpux* )
17308 echo "$as_me:$LINENO: checking for long long" >&5
17309echo $ECHO_N "checking for long long... $ECHO_C" >&6
17310if test "${ac_cv_type_long_long+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 cat >conftest.$ac_ext <<_ACEOF
17314/* confdefs.h. */
17315_ACEOF
17316cat confdefs.h >>conftest.$ac_ext
17317cat >>conftest.$ac_ext <<_ACEOF
17318/* end confdefs.h. */
17319$ac_includes_default
17320int
17321main ()
17322{
17323if ((long long *) 0)
17324 return 0;
17325if (sizeof (long long))
17326 return 0;
17327 ;
17328 return 0;
17329}
17330_ACEOF
17331rm -f conftest.$ac_objext
17332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17333 (eval $ac_compile) 2>conftest.er1
a848cd7e 17334 ac_status=$?
ac1cb8d3
VS
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
a848cd7e
SC
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
9a8f0513
VS
17340 { ac_try='test -z "$ac_c_werror_flag"
17341 || test ! -s conftest.err'
ac1cb8d3
VS
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } &&
17347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_type_long_long=yes
17354else
17355 echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358ac_cv_type_long_long=no
17359fi
ac1cb8d3 17360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17361fi
17362echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17363echo "${ECHO_T}$ac_cv_type_long_long" >&6
17364
17365echo "$as_me:$LINENO: checking size of long long" >&5
17366echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17367if test "${ac_cv_sizeof_long_long+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369else
17370 if test "$ac_cv_type_long_long" = yes; then
17371 # The cast to unsigned long works around a bug in the HP C Compiler
17372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17374 # This bug is HP SR number 8606223364.
17375 if test "$cross_compiling" = yes; then
17376 # Depending upon the size, compute the lo and hi bounds.
17377cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383$ac_includes_default
17384int
17385main ()
17386{
17387static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17388test_array [0] = 0
17389
17390 ;
17391 return 0;
17392}
17393_ACEOF
17394rm -f conftest.$ac_objext
17395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17396 (eval $ac_compile) 2>conftest.er1
a848cd7e 17397 ac_status=$?
ac1cb8d3
VS
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
a848cd7e
SC
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
9a8f0513
VS
17403 { ac_try='test -z "$ac_c_werror_flag"
17404 || test ! -s conftest.err'
ac1cb8d3
VS
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_lo=0 ac_mid=0
17417 while :; do
17418 cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424$ac_includes_default
17425int
17426main ()
17427{
17428static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17429test_array [0] = 0
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17437 (eval $ac_compile) 2>conftest.er1
a848cd7e 17438 ac_status=$?
ac1cb8d3
VS
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
a848cd7e
SC
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
9a8f0513
VS
17444 { ac_try='test -z "$ac_c_werror_flag"
17445 || test ! -s conftest.err'
ac1cb8d3
VS
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_hi=$ac_mid; break
17458else
17459 echo "$as_me: failed program was:" >&5
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
17462ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17463 if test $ac_lo -le $ac_mid; then
17464 ac_lo= ac_hi=
17465 break
17466 fi
17467 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17468fi
ac1cb8d3 17469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17470 done
17471else
17472 echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
17481$ac_includes_default
17482int
17483main ()
17484{
17485static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17486test_array [0] = 0
17487
17488 ;
17489 return 0;
17490}
17491_ACEOF
17492rm -f conftest.$ac_objext
17493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17494 (eval $ac_compile) 2>conftest.er1
a848cd7e 17495 ac_status=$?
ac1cb8d3
VS
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
a848cd7e
SC
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
9a8f0513
VS
17501 { ac_try='test -z "$ac_c_werror_flag"
17502 || test ! -s conftest.err'
ac1cb8d3
VS
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_hi=-1 ac_mid=-1
17515 while :; do
17516 cat >conftest.$ac_ext <<_ACEOF
17517/* confdefs.h. */
17518_ACEOF
17519cat confdefs.h >>conftest.$ac_ext
17520cat >>conftest.$ac_ext <<_ACEOF
17521/* end confdefs.h. */
17522$ac_includes_default
17523int
17524main ()
17525{
17526static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17527test_array [0] = 0
17528
17529 ;
17530 return 0;
17531}
17532_ACEOF
17533rm -f conftest.$ac_objext
17534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17535 (eval $ac_compile) 2>conftest.er1
a848cd7e 17536 ac_status=$?
ac1cb8d3
VS
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
a848cd7e
SC
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
9a8f0513
VS
17542 { ac_try='test -z "$ac_c_werror_flag"
17543 || test ! -s conftest.err'
ac1cb8d3
VS
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_lo=$ac_mid; break
17556else
17557 echo "$as_me: failed program was:" >&5
17558sed 's/^/| /' conftest.$ac_ext >&5
17559
17560ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17561 if test $ac_mid -le $ac_hi; then
17562 ac_lo= ac_hi=
17563 break
17564 fi
17565 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17566fi
ac1cb8d3 17567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17568 done
17569else
17570 echo "$as_me: failed program was:" >&5
17571sed 's/^/| /' conftest.$ac_ext >&5
17572
17573ac_lo= ac_hi=
17574fi
ac1cb8d3 17575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17576fi
ac1cb8d3 17577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17578# Binary search between lo and hi bounds.
17579while test "x$ac_lo" != "x$ac_hi"; do
17580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17581 cat >conftest.$ac_ext <<_ACEOF
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
17587$ac_includes_default
17588int
17589main ()
17590{
17591static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17592test_array [0] = 0
17593
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598rm -f conftest.$ac_objext
17599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17600 (eval $ac_compile) 2>conftest.er1
a848cd7e 17601 ac_status=$?
ac1cb8d3
VS
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
a848cd7e
SC
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
9a8f0513
VS
17607 { ac_try='test -z "$ac_c_werror_flag"
17608 || test ! -s conftest.err'
ac1cb8d3
VS
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; } &&
17614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 ac_hi=$ac_mid
17621else
17622 echo "$as_me: failed program was:" >&5
17623sed 's/^/| /' conftest.$ac_ext >&5
17624
17625ac_lo=`expr '(' $ac_mid ')' + 1`
17626fi
ac1cb8d3 17627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17628done
17629case $ac_lo in
17630?*) ac_cv_sizeof_long_long=$ac_lo;;
17631'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17632See \`config.log' for more details." >&5
17633echo "$as_me: error: cannot compute sizeof (long long), 77
17634See \`config.log' for more details." >&2;}
17635 { (exit 1); exit 1; }; } ;;
17636esac
17637else
17638 if test "$cross_compiling" = yes; then
9a8f0513
VS
17639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17640See \`config.log' for more details." >&5
17641echo "$as_me: error: cannot run test program while cross compiling
17642See \`config.log' for more details." >&2;}
a848cd7e
SC
17643 { (exit 1); exit 1; }; }
17644else
17645 cat >conftest.$ac_ext <<_ACEOF
17646/* confdefs.h. */
17647_ACEOF
17648cat confdefs.h >>conftest.$ac_ext
17649cat >>conftest.$ac_ext <<_ACEOF
17650/* end confdefs.h. */
17651$ac_includes_default
17652long longval () { return (long) (sizeof (long long)); }
17653unsigned long ulongval () { return (long) (sizeof (long long)); }
17654#include <stdio.h>
17655#include <stdlib.h>
17656int
17657main ()
17658{
17659
17660 FILE *f = fopen ("conftest.val", "w");
17661 if (! f)
17662 exit (1);
17663 if (((long) (sizeof (long long))) < 0)
17664 {
17665 long i = longval ();
17666 if (i != ((long) (sizeof (long long))))
17667 exit (1);
17668 fprintf (f, "%ld\n", i);
17669 }
17670 else
17671 {
17672 unsigned long i = ulongval ();
17673 if (i != ((long) (sizeof (long long))))
17674 exit (1);
17675 fprintf (f, "%lu\n", i);
17676 }
17677 exit (ferror (f) || fclose (f) != 0);
17678
17679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest$ac_exeext
17684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 ac_cv_sizeof_long_long=`cat conftest.val`
17695else
17696 echo "$as_me: program exited with status $ac_status" >&5
17697echo "$as_me: failed program was:" >&5
17698sed 's/^/| /' conftest.$ac_ext >&5
17699
17700( exit $ac_status )
17701{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17702See \`config.log' for more details." >&5
17703echo "$as_me: error: cannot compute sizeof (long long), 77
17704See \`config.log' for more details." >&2;}
17705 { (exit 1); exit 1; }; }
17706fi
ac1cb8d3 17707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17708fi
17709fi
17710rm -f conftest.val
17711else
17712 ac_cv_sizeof_long_long=0
17713fi
17714fi
17715echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17716echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17717cat >>confdefs.h <<_ACEOF
17718#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17719_ACEOF
17720
17721
17722 if test "$ac_cv_sizeof_long_long" != "0"; then
17723 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17724 fi
17725 ;;
17726 * )
17727 echo "$as_me:$LINENO: checking for long long" >&5
17728echo $ECHO_N "checking for long long... $ECHO_C" >&6
17729if test "${ac_cv_type_long_long+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731else
17732 cat >conftest.$ac_ext <<_ACEOF
17733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
17738$ac_includes_default
17739int
17740main ()
17741{
17742if ((long long *) 0)
17743 return 0;
17744if (sizeof (long long))
17745 return 0;
17746 ;
17747 return 0;
17748}
17749_ACEOF
17750rm -f conftest.$ac_objext
17751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17752 (eval $ac_compile) 2>conftest.er1
a848cd7e 17753 ac_status=$?
ac1cb8d3
VS
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
a848cd7e
SC
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
9a8f0513
VS
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
ac1cb8d3
VS
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_type_long_long=yes
17773else
17774 echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777ac_cv_type_long_long=no
17778fi
ac1cb8d3 17779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17780fi
17781echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17782echo "${ECHO_T}$ac_cv_type_long_long" >&6
17783
17784echo "$as_me:$LINENO: checking size of long long" >&5
17785echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17786if test "${ac_cv_sizeof_long_long+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788else
17789 if test "$ac_cv_type_long_long" = yes; then
17790 # The cast to unsigned long works around a bug in the HP C Compiler
17791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17793 # This bug is HP SR number 8606223364.
17794 if test "$cross_compiling" = yes; then
17795 # Depending upon the size, compute the lo and hi bounds.
17796cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802$ac_includes_default
17803int
17804main ()
17805{
17806static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17807test_array [0] = 0
17808
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813rm -f conftest.$ac_objext
17814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17815 (eval $ac_compile) 2>conftest.er1
a848cd7e 17816 ac_status=$?
ac1cb8d3
VS
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
a848cd7e
SC
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
9a8f0513
VS
17822 { ac_try='test -z "$ac_c_werror_flag"
17823 || test ! -s conftest.err'
ac1cb8d3
VS
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_lo=0 ac_mid=0
17836 while :; do
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843$ac_includes_default
17844int
17845main ()
17846{
17847static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17848test_array [0] = 0
17849
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17856 (eval $ac_compile) 2>conftest.er1
a848cd7e 17857 ac_status=$?
ac1cb8d3
VS
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
a848cd7e
SC
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
9a8f0513
VS
17863 { ac_try='test -z "$ac_c_werror_flag"
17864 || test ! -s conftest.err'
ac1cb8d3
VS
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_hi=$ac_mid; break
17877else
17878 echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17882 if test $ac_lo -le $ac_mid; then
17883 ac_lo= ac_hi=
17884 break
17885 fi
17886 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17887fi
ac1cb8d3 17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17889 done
17890else
17891 echo "$as_me: failed program was:" >&5
17892sed 's/^/| /' conftest.$ac_ext >&5
17893
17894cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900$ac_includes_default
17901int
17902main ()
17903{
17904static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17905test_array [0] = 0
17906
17907 ;
17908 return 0;
17909}
17910_ACEOF
17911rm -f conftest.$ac_objext
17912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17913 (eval $ac_compile) 2>conftest.er1
a848cd7e 17914 ac_status=$?
ac1cb8d3
VS
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
a848cd7e
SC
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
9a8f0513
VS
17920 { ac_try='test -z "$ac_c_werror_flag"
17921 || test ! -s conftest.err'
ac1cb8d3
VS
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17933 ac_hi=-1 ac_mid=-1
17934 while :; do
17935 cat >conftest.$ac_ext <<_ACEOF
17936/* confdefs.h. */
17937_ACEOF
17938cat confdefs.h >>conftest.$ac_ext
17939cat >>conftest.$ac_ext <<_ACEOF
17940/* end confdefs.h. */
17941$ac_includes_default
17942int
17943main ()
17944{
17945static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17946test_array [0] = 0
17947
17948 ;
17949 return 0;
17950}
17951_ACEOF
17952rm -f conftest.$ac_objext
17953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17954 (eval $ac_compile) 2>conftest.er1
a848cd7e 17955 ac_status=$?
ac1cb8d3
VS
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
a848cd7e
SC
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
9a8f0513
VS
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
ac1cb8d3
VS
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 ac_lo=$ac_mid; break
17975else
17976 echo "$as_me: failed program was:" >&5
17977sed 's/^/| /' conftest.$ac_ext >&5
17978
17979ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17980 if test $ac_mid -le $ac_hi; then
17981 ac_lo= ac_hi=
17982 break
17983 fi
17984 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17985fi
ac1cb8d3 17986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17987 done
17988else
17989 echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992ac_lo= ac_hi=
17993fi
ac1cb8d3 17994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17995fi
ac1cb8d3 17996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17997# Binary search between lo and hi bounds.
17998while test "x$ac_lo" != "x$ac_hi"; do
17999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18000 cat >conftest.$ac_ext <<_ACEOF
18001/* confdefs.h. */
18002_ACEOF
18003cat confdefs.h >>conftest.$ac_ext
18004cat >>conftest.$ac_ext <<_ACEOF
18005/* end confdefs.h. */
18006$ac_includes_default
18007int
18008main ()
18009{
18010static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18011test_array [0] = 0
18012
18013 ;
18014 return 0;
18015}
18016_ACEOF
18017rm -f conftest.$ac_objext
18018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18019 (eval $ac_compile) 2>conftest.er1
a848cd7e 18020 ac_status=$?
ac1cb8d3
VS
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
a848cd7e
SC
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
9a8f0513
VS
18026 { ac_try='test -z "$ac_c_werror_flag"
18027 || test ! -s conftest.err'
ac1cb8d3
VS
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_hi=$ac_mid
18040else
18041 echo "$as_me: failed program was:" >&5
18042sed 's/^/| /' conftest.$ac_ext >&5
18043
18044ac_lo=`expr '(' $ac_mid ')' + 1`
18045fi
ac1cb8d3 18046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18047done
18048case $ac_lo in
18049?*) ac_cv_sizeof_long_long=$ac_lo;;
18050'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18051See \`config.log' for more details." >&5
18052echo "$as_me: error: cannot compute sizeof (long long), 77
18053See \`config.log' for more details." >&2;}
18054 { (exit 1); exit 1; }; } ;;
18055esac
18056else
18057 if test "$cross_compiling" = yes; then
9a8f0513
VS
18058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18059See \`config.log' for more details." >&5
18060echo "$as_me: error: cannot run test program while cross compiling
18061See \`config.log' for more details." >&2;}
a848cd7e
SC
18062 { (exit 1); exit 1; }; }
18063else
18064 cat >conftest.$ac_ext <<_ACEOF
18065/* confdefs.h. */
18066_ACEOF
18067cat confdefs.h >>conftest.$ac_ext
18068cat >>conftest.$ac_ext <<_ACEOF
18069/* end confdefs.h. */
18070$ac_includes_default
18071long longval () { return (long) (sizeof (long long)); }
18072unsigned long ulongval () { return (long) (sizeof (long long)); }
18073#include <stdio.h>
18074#include <stdlib.h>
18075int
18076main ()
18077{
18078
18079 FILE *f = fopen ("conftest.val", "w");
18080 if (! f)
18081 exit (1);
18082 if (((long) (sizeof (long long))) < 0)
18083 {
18084 long i = longval ();
18085 if (i != ((long) (sizeof (long long))))
18086 exit (1);
18087 fprintf (f, "%ld\n", i);
18088 }
18089 else
18090 {
18091 unsigned long i = ulongval ();
18092 if (i != ((long) (sizeof (long long))))
18093 exit (1);
18094 fprintf (f, "%lu\n", i);
18095 }
18096 exit (ferror (f) || fclose (f) != 0);
18097
18098 ;
18099 return 0;
18100}
18101_ACEOF
18102rm -f conftest$ac_exeext
18103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104 (eval $ac_link) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_sizeof_long_long=`cat conftest.val`
18114else
18115 echo "$as_me: program exited with status $ac_status" >&5
18116echo "$as_me: failed program was:" >&5
18117sed 's/^/| /' conftest.$ac_ext >&5
18118
18119( exit $ac_status )
18120{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18121See \`config.log' for more details." >&5
18122echo "$as_me: error: cannot compute sizeof (long long), 77
18123See \`config.log' for more details." >&2;}
18124 { (exit 1); exit 1; }; }
18125fi
ac1cb8d3 18126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18127fi
18128fi
18129rm -f conftest.val
18130else
18131 ac_cv_sizeof_long_long=0
18132fi
18133fi
18134echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18135echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18136cat >>confdefs.h <<_ACEOF
18137#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18138_ACEOF
18139
18140
18141esac
18142
18143echo "$as_me:$LINENO: checking size of wchar_t" >&5
18144echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18145if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148
18149 if test "$cross_compiling" = yes; then
18150
18151 case "${host}" in
18152 *-pc-msdosdjgpp )
18153 wx_cv_sizeof_wchar_t=0
18154 ;;
18155 * )
18156 wx_cv_sizeof_wchar_t=4
18157 ;;
18158 esac
18159
18160
18161else
18162 cat >conftest.$ac_ext <<_ACEOF
18163/* confdefs.h. */
18164_ACEOF
18165cat confdefs.h >>conftest.$ac_ext
18166cat >>conftest.$ac_ext <<_ACEOF
18167/* end confdefs.h. */
18168
18169 /* DJGPP only has fake wchar_t: */
18170 #ifdef __DJGPP__
18171 # error "fake wchar_t"
18172 #endif
18173 #ifdef HAVE_WCHAR_H
18174 # ifdef __CYGWIN__
18175 # include <stddef.h>
18176 # endif
18177 # include <wchar.h>
18178 #endif
18179 #ifdef HAVE_STDLIB_H
18180 # include <stdlib.h>
18181 #endif
18182 #include <stdio.h>
18183 int main()
18184 {
18185 FILE *f=fopen("conftestval", "w");
18186 if (!f) exit(1);
18187 fprintf(f, "%i", sizeof(wchar_t));
18188 exit(0);
18189 }
18190
18191_ACEOF
18192rm -f conftest$ac_exeext
18193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18194 (eval $ac_link) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; }; then
18203 wx_cv_sizeof_wchar_t=`cat conftestval`
18204else
18205 echo "$as_me: program exited with status $ac_status" >&5
18206echo "$as_me: failed program was:" >&5
18207sed 's/^/| /' conftest.$ac_ext >&5
18208
18209( exit $ac_status )
18210wx_cv_sizeof_wchar_t=0
18211fi
ac1cb8d3 18212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18213fi
18214
18215fi
18216echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18217echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18218
18219cat >>confdefs.h <<_ACEOF
18220#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18221_ACEOF
18222
18223
18224# Check whether --enable-largefile or --disable-largefile was given.
18225if test "${enable_largefile+set}" = set; then
18226 enableval="$enable_largefile"
18227
18228fi;
18229if test "$enable_largefile" != no; then
18230 wx_largefile=no
18231
18232 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18233echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18234if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236else
18237
18238 cat >conftest.$ac_ext <<_ACEOF
18239/* confdefs.h. */
18240_ACEOF
18241cat confdefs.h >>conftest.$ac_ext
18242cat >>conftest.$ac_ext <<_ACEOF
18243/* end confdefs.h. */
18244#define _FILE_OFFSET_BITS 64
18245 #include <sys/types.h>
18246int
18247main ()
18248{
18249typedef struct {
18250 unsigned int field: sizeof(off_t) == 8;
18251} wxlf;
18252
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext
18258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18259 (eval $ac_compile) 2>conftest.er1
a848cd7e 18260 ac_status=$?
ac1cb8d3
VS
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
a848cd7e
SC
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
9a8f0513
VS
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
ac1cb8d3
VS
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_cv_sys_file_offset_bits=64
18280else
18281 echo "$as_me: failed program was:" >&5
18282sed 's/^/| /' conftest.$ac_ext >&5
18283
18284ac_cv_sys_file_offset_bits=no
18285fi
ac1cb8d3 18286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18287
18288
18289fi
18290echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18291echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18292
18293 if test "$ac_cv_sys_file_offset_bits" != no; then
18294 wx_largefile=yes
18295 cat >>confdefs.h <<_ACEOF
18296#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18297_ACEOF
18298
18299 fi
18300
18301 if test "x$wx_largefile" != "xyes"; then
18302
18303 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18304echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18305if test "${ac_cv_sys_large_files+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307else
18308
18309 cat >conftest.$ac_ext <<_ACEOF
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315#define _LARGE_FILES 1
18316 #include <sys/types.h>
18317int
18318main ()
18319{
18320typedef struct {
18321 unsigned int field: sizeof(off_t) == 8;
18322} wxlf;
18323
18324 ;
18325 return 0;
18326}
18327_ACEOF
18328rm -f conftest.$ac_objext
18329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18330 (eval $ac_compile) 2>conftest.er1
a848cd7e 18331 ac_status=$?
ac1cb8d3
VS
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
a848cd7e
SC
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
9a8f0513
VS
18337 { ac_try='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
ac1cb8d3
VS
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_sys_large_files=1
18351else
18352 echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
18355ac_cv_sys_large_files=no
18356fi
ac1cb8d3 18357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18358
18359
18360fi
18361echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18362echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18363
18364 if test "$ac_cv_sys_large_files" != no; then
18365 wx_largefile=yes
18366 cat >>confdefs.h <<_ACEOF
18367#define _LARGE_FILES $ac_cv_sys_large_files
18368_ACEOF
18369
18370 fi
18371
18372 fi
18373
18374 echo "$as_me:$LINENO: checking if large file support is available" >&5
18375echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18376 if test "x$wx_largefile" = "xyes"; then
18377 cat >>confdefs.h <<\_ACEOF
18378#define HAVE_LARGEFILE_SUPPORT 1
18379_ACEOF
18380
18381 fi
18382 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18383echo "${ECHO_T}$wx_largefile" >&6
18384fi
18385
18386
18387if test "x$wx_largefile" = "xyes"; then
18388 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18389 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18390 else
18391 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18392 fi
18393 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18394fi
18395
18396echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18397echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18398if test "${ac_cv_c_bigendian+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18400else
18401 ac_cv_c_bigendian=unknown
18402# See if sys/param.h defines the BYTE_ORDER macro.
18403cat >conftest.$ac_ext <<_ACEOF
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
18409#include <sys/types.h>
18410#include <sys/param.h>
18411int
18412main ()
18413{
18414
18415#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18416 bogus endian macros
18417#endif
18418 ;
18419 return 0;
18420}
18421_ACEOF
18422rm -f conftest.$ac_objext
18423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18424 (eval $ac_compile) 2>conftest.er1
a848cd7e 18425 ac_status=$?
ac1cb8d3
VS
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
a848cd7e
SC
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
9a8f0513
VS
18431 { ac_try='test -z "$ac_c_werror_flag"
18432 || test ! -s conftest.err'
ac1cb8d3
VS
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 # It does; now see whether it defined to BIG_ENDIAN or not.
18445cat >conftest.$ac_ext <<_ACEOF
18446/* confdefs.h. */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
18450/* end confdefs.h. */
18451#include <sys/types.h>
18452#include <sys/param.h>
18453int
18454main ()
18455{
18456
18457#if BYTE_ORDER != BIG_ENDIAN
18458 not big endian
18459#endif
18460 ;
18461 return 0;
18462}
18463_ACEOF
18464rm -f conftest.$ac_objext
18465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18466 (eval $ac_compile) 2>conftest.er1
a848cd7e 18467 ac_status=$?
ac1cb8d3
VS
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
a848cd7e
SC
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
9a8f0513
VS
18473 { ac_try='test -z "$ac_c_werror_flag"
18474 || test ! -s conftest.err'
ac1cb8d3
VS
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_cv_c_bigendian=yes
18487else
18488 echo "$as_me: failed program was:" >&5
18489sed 's/^/| /' conftest.$ac_ext >&5
18490
18491ac_cv_c_bigendian=no
18492fi
ac1cb8d3 18493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18494else
18495 echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
18498fi
ac1cb8d3 18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18500if test $ac_cv_c_bigendian = unknown; then
18501if test "$cross_compiling" = yes; then
18502 ac_cv_c_bigendian=unknown
18503else
18504 cat >conftest.$ac_ext <<_ACEOF
18505/* confdefs.h. */
18506_ACEOF
18507cat confdefs.h >>conftest.$ac_ext
18508cat >>conftest.$ac_ext <<_ACEOF
18509/* end confdefs.h. */
18510main () {
18511 /* Are we little or big endian? From Harbison&Steele. */
18512 union
18513 {
18514 long l;
18515 char c[sizeof (long)];
18516 } u;
18517 u.l = 1;
18518 exit (u.c[sizeof (long) - 1] == 1);
18519}
18520_ACEOF
18521rm -f conftest$ac_exeext
18522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_c_bigendian=no
18533else
18534 echo "$as_me: program exited with status $ac_status" >&5
18535echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538( exit $ac_status )
18539ac_cv_c_bigendian=yes
18540fi
ac1cb8d3 18541rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18542fi
18543fi
18544fi
18545echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18546echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18547if test $ac_cv_c_bigendian = unknown; then
18548 { 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
18549echo "$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;}
18550fi
18551if test $ac_cv_c_bigendian = yes; then
18552 cat >>confdefs.h <<\_ACEOF
18553#define WORDS_BIGENDIAN 1
18554_ACEOF
18555
18556fi
18557
18558
18559ac_ext=cc
18560ac_cpp='$CXXCPP $CPPFLAGS'
18561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18564echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18565echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18566if test -z "$CXXCPP"; then
18567 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569else
18570 # Double quotes because CXXCPP needs to be expanded
18571 for CXXCPP in "$CXX -E" "/lib/cpp"
18572 do
18573 ac_preproc_ok=false
18574for ac_cxx_preproc_warn_flag in '' yes
18575do
18576 # Use a header file that comes with gcc, so configuring glibc
18577 # with a fresh cross-compiler works.
18578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18579 # <limits.h> exists even on freestanding compilers.
18580 # On the NeXT, cc -E runs the code through the compiler's parser,
18581 # not just through cpp. "Syntax error" is here to catch this case.
18582 cat >conftest.$ac_ext <<_ACEOF
18583/* confdefs.h. */
18584_ACEOF
18585cat confdefs.h >>conftest.$ac_ext
18586cat >>conftest.$ac_ext <<_ACEOF
18587/* end confdefs.h. */
18588#ifdef __STDC__
18589# include <limits.h>
18590#else
18591# include <assert.h>
18592#endif
ac1cb8d3 18593 Syntax error
a848cd7e
SC
18594_ACEOF
18595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18597 ac_status=$?
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } >/dev/null; then
18603 if test -s conftest.err; then
18604 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18606 else
18607 ac_cpp_err=
18608 fi
18609else
18610 ac_cpp_err=yes
18611fi
18612if test -z "$ac_cpp_err"; then
18613 :
18614else
18615 echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 # Broken: fails on valid input.
18619continue
18620fi
18621rm -f conftest.err conftest.$ac_ext
18622
18623 # OK, works on sane cases. Now check whether non-existent headers
18624 # can be detected and how.
18625 cat >conftest.$ac_ext <<_ACEOF
18626/* confdefs.h. */
18627_ACEOF
18628cat confdefs.h >>conftest.$ac_ext
18629cat >>conftest.$ac_ext <<_ACEOF
18630/* end confdefs.h. */
18631#include <ac_nonexistent.h>
18632_ACEOF
18633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18635 ac_status=$?
18636 grep -v '^ *+' conftest.er1 >conftest.err
18637 rm -f conftest.er1
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } >/dev/null; then
18641 if test -s conftest.err; then
18642 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18643 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18644 else
18645 ac_cpp_err=
18646 fi
18647else
18648 ac_cpp_err=yes
18649fi
18650if test -z "$ac_cpp_err"; then
18651 # Broken: success on invalid input.
18652continue
18653else
18654 echo "$as_me: failed program was:" >&5
18655sed 's/^/| /' conftest.$ac_ext >&5
18656
18657 # Passes both tests.
18658ac_preproc_ok=:
18659break
18660fi
18661rm -f conftest.err conftest.$ac_ext
18662
18663done
18664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18665rm -f conftest.err conftest.$ac_ext
18666if $ac_preproc_ok; then
18667 break
18668fi
18669
18670 done
18671 ac_cv_prog_CXXCPP=$CXXCPP
18672
18673fi
18674 CXXCPP=$ac_cv_prog_CXXCPP
18675else
18676 ac_cv_prog_CXXCPP=$CXXCPP
18677fi
18678echo "$as_me:$LINENO: result: $CXXCPP" >&5
18679echo "${ECHO_T}$CXXCPP" >&6
18680ac_preproc_ok=false
18681for ac_cxx_preproc_warn_flag in '' yes
18682do
18683 # Use a header file that comes with gcc, so configuring glibc
18684 # with a fresh cross-compiler works.
18685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18686 # <limits.h> exists even on freestanding compilers.
18687 # On the NeXT, cc -E runs the code through the compiler's parser,
18688 # not just through cpp. "Syntax error" is here to catch this case.
18689 cat >conftest.$ac_ext <<_ACEOF
18690/* confdefs.h. */
18691_ACEOF
18692cat confdefs.h >>conftest.$ac_ext
18693cat >>conftest.$ac_ext <<_ACEOF
18694/* end confdefs.h. */
18695#ifdef __STDC__
18696# include <limits.h>
18697#else
18698# include <assert.h>
18699#endif
ac1cb8d3 18700 Syntax error
a848cd7e
SC
18701_ACEOF
18702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } >/dev/null; then
18710 if test -s conftest.err; then
18711 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18712 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18713 else
18714 ac_cpp_err=
18715 fi
18716else
18717 ac_cpp_err=yes
18718fi
18719if test -z "$ac_cpp_err"; then
18720 :
18721else
18722 echo "$as_me: failed program was:" >&5
18723sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 # Broken: fails on valid input.
18726continue
18727fi
18728rm -f conftest.err conftest.$ac_ext
18729
18730 # OK, works on sane cases. Now check whether non-existent headers
18731 # can be detected and how.
18732 cat >conftest.$ac_ext <<_ACEOF
18733/* confdefs.h. */
18734_ACEOF
18735cat confdefs.h >>conftest.$ac_ext
18736cat >>conftest.$ac_ext <<_ACEOF
18737/* end confdefs.h. */
18738#include <ac_nonexistent.h>
18739_ACEOF
18740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } >/dev/null; then
18748 if test -s conftest.err; then
18749 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18751 else
18752 ac_cpp_err=
18753 fi
18754else
18755 ac_cpp_err=yes
18756fi
18757if test -z "$ac_cpp_err"; then
18758 # Broken: success on invalid input.
18759continue
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 # Passes both tests.
18765ac_preproc_ok=:
18766break
18767fi
18768rm -f conftest.err conftest.$ac_ext
18769
18770done
18771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18772rm -f conftest.err conftest.$ac_ext
18773if $ac_preproc_ok; then
18774 :
18775else
18776 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18777See \`config.log' for more details." >&5
18778echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18779See \`config.log' for more details." >&2;}
18780 { (exit 1); exit 1; }; }
18781fi
18782
18783ac_ext=cc
18784ac_cpp='$CXXCPP $CPPFLAGS'
18785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18788
18789
18790
18791
18792
18793 ac_ext=cc
18794ac_cpp='$CXXCPP $CPPFLAGS'
18795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18798
18799
18800
18801for ac_header in iostream
18802do
18803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18804if eval "test \"\${$as_ac_Header+set}\" = set"; then
18805 echo "$as_me:$LINENO: checking for $ac_header" >&5
18806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18807if eval "test \"\${$as_ac_Header+set}\" = set"; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809fi
18810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18812else
18813 # Is the header compilable?
18814echo "$as_me:$LINENO: checking $ac_header usability" >&5
18815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18816cat >conftest.$ac_ext <<_ACEOF
18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822$ac_includes_default
18823#include <$ac_header>
18824_ACEOF
18825rm -f conftest.$ac_objext
18826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18827 (eval $ac_compile) 2>conftest.er1
a848cd7e 18828 ac_status=$?
ac1cb8d3
VS
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
a848cd7e
SC
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
9a8f0513
VS
18834 { ac_try='test -z "$ac_cxx_werror_flag"
18835 || test ! -s conftest.err'
ac1cb8d3
VS
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_header_compiler=yes
18848else
18849 echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
18852ac_header_compiler=no
18853fi
ac1cb8d3 18854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18856echo "${ECHO_T}$ac_header_compiler" >&6
18857
18858# Is the header present?
18859echo "$as_me:$LINENO: checking $ac_header presence" >&5
18860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18861cat >conftest.$ac_ext <<_ACEOF
18862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
18867#include <$ac_header>
18868_ACEOF
18869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18871 ac_status=$?
18872 grep -v '^ *+' conftest.er1 >conftest.err
18873 rm -f conftest.er1
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } >/dev/null; then
18877 if test -s conftest.err; then
18878 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18879 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18880 else
18881 ac_cpp_err=
18882 fi
18883else
18884 ac_cpp_err=yes
18885fi
18886if test -z "$ac_cpp_err"; then
18887 ac_header_preproc=yes
18888else
18889 echo "$as_me: failed program was:" >&5
18890sed 's/^/| /' conftest.$ac_ext >&5
18891
18892 ac_header_preproc=no
18893fi
18894rm -f conftest.err conftest.$ac_ext
18895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18896echo "${ECHO_T}$ac_header_preproc" >&6
18897
18898# So? What about this header?
ac1cb8d3
VS
18899case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18900 yes:no: )
a848cd7e
SC
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18905 ac_header_preproc=yes
a848cd7e 18906 ;;
ac1cb8d3 18907 no:yes:* )
a848cd7e
SC
18908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18920 (
18921 cat <<\_ASBOX
ac1cb8d3
VS
18922## ----------------------------------------- ##
18923## Report this to wx-dev@lists.wxwidgets.org ##
18924## ----------------------------------------- ##
a848cd7e
SC
18925_ASBOX
18926 ) |
18927 sed "s/^/$as_me: WARNING: /" >&2
18928 ;;
18929esac
18930echo "$as_me:$LINENO: checking for $ac_header" >&5
18931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18932if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934else
ac1cb8d3 18935 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18936fi
18937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18939
18940fi
18941if test `eval echo '${'$as_ac_Header'}'` = yes; then
18942 cat >>confdefs.h <<_ACEOF
18943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18944_ACEOF
18945
18946fi
18947
18948done
18949
18950
18951 if test "$ac_cv_header_iostream" = "yes" ; then
18952 :
18953 else
18954 cat >>confdefs.h <<\_ACEOF
18955#define wxUSE_IOSTREAMH 1
18956_ACEOF
18957
18958 fi
18959
18960 ac_ext=c
18961ac_cpp='$CPP $CPPFLAGS'
18962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18964ac_compiler_gnu=$ac_cv_c_compiler_gnu
18965
18966
18967
18968
18969 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18970echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18971if test "${wx_cv_cpp_bool+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973else
18974
18975
18976
18977 ac_ext=cc
18978ac_cpp='$CXXCPP $CPPFLAGS'
18979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18982
18983
18984 cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */
18990
18991
18992int
18993main ()
18994{
18995
18996 bool b = true;
18997
18998 return 0;
18999
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext
19005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19006 (eval $ac_compile) 2>conftest.er1
a848cd7e 19007 ac_status=$?
ac1cb8d3
VS
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
a848cd7e
SC
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
9a8f0513
VS
19013 { ac_try='test -z "$ac_cxx_werror_flag"
19014 || test ! -s conftest.err'
ac1cb8d3
VS
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026
19027 wx_cv_cpp_bool=yes
19028
19029else
19030 echo "$as_me: failed program was:" >&5
19031sed 's/^/| /' conftest.$ac_ext >&5
19032
19033
19034 wx_cv_cpp_bool=no
19035
19036
19037fi
ac1cb8d3 19038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19039
19040 ac_ext=c
19041ac_cpp='$CPP $CPPFLAGS'
19042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19044ac_compiler_gnu=$ac_cv_c_compiler_gnu
19045
19046
19047fi
19048echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19049echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19050
19051 if test "$wx_cv_cpp_bool" = "yes"; then
19052 cat >>confdefs.h <<\_ACEOF
19053#define HAVE_BOOL 1
19054_ACEOF
19055
19056 fi
19057
19058
19059
19060 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19061echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19062if test "${wx_cv_explicit+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065
19066
19067
19068 ac_ext=cc
19069ac_cpp='$CXXCPP $CPPFLAGS'
19070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19073
19074
19075 cat >conftest.$ac_ext <<_ACEOF
19076/* confdefs.h. */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h. */
19081
19082 class Foo { public: explicit Foo(int) {} };
19083
19084int
19085main ()
19086{
19087
19088 return 0;
19089
19090 ;
19091 return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext
19095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19096 (eval $ac_compile) 2>conftest.er1
a848cd7e 19097 ac_status=$?
ac1cb8d3
VS
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
a848cd7e
SC
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
9a8f0513
VS
19103 { ac_try='test -z "$ac_cxx_werror_flag"
19104 || test ! -s conftest.err'
ac1cb8d3
VS
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116
19117 cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h. */
19123
19124 class Foo { public: explicit Foo(int) {} };
19125 static void TakeFoo(const Foo& foo) { }
19126
19127int
19128main ()
19129{
19130
19131 TakeFoo(17);
19132 return 0;
19133
19134 ;
19135 return 0;
19136}
19137_ACEOF
19138rm -f conftest.$ac_objext
19139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19140 (eval $ac_compile) 2>conftest.er1
a848cd7e 19141 ac_status=$?
ac1cb8d3
VS
19142 grep -v '^ *+' conftest.er1 >conftest.err
19143 rm -f conftest.er1
19144 cat conftest.err >&5
a848cd7e
SC
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
9a8f0513
VS
19147 { ac_try='test -z "$ac_cxx_werror_flag"
19148 || test ! -s conftest.err'
ac1cb8d3
VS
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 wx_cv_explicit=no
19161else
19162 echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165wx_cv_explicit=yes
19166
19167fi
ac1cb8d3 19168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19169
19170else
19171 echo "$as_me: failed program was:" >&5
19172sed 's/^/| /' conftest.$ac_ext >&5
19173
19174wx_cv_explicit=no
19175
19176fi
ac1cb8d3 19177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19178
19179 ac_ext=c
19180ac_cpp='$CPP $CPPFLAGS'
19181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184
19185
19186fi
19187echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19188echo "${ECHO_T}$wx_cv_explicit" >&6
19189
19190 if test "$wx_cv_explicit" = "yes"; then
19191 cat >>confdefs.h <<\_ACEOF
19192#define HAVE_EXPLICIT 1
19193_ACEOF
19194
19195 fi
19196
19197
19198echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19199echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19200if test "${ac_cv_cxx_const_cast+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202else
19203
19204
19205 ac_ext=cc
19206ac_cpp='$CXXCPP $CPPFLAGS'
19207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19210
19211 cat >conftest.$ac_ext <<_ACEOF
19212/* confdefs.h. */
19213_ACEOF
19214cat confdefs.h >>conftest.$ac_ext
19215cat >>conftest.$ac_ext <<_ACEOF
19216/* end confdefs.h. */
19217
19218int
19219main ()
19220{
19221int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19222 ;
19223 return 0;
19224}
19225_ACEOF
19226rm -f conftest.$ac_objext
19227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19228 (eval $ac_compile) 2>conftest.er1
a848cd7e 19229 ac_status=$?
ac1cb8d3
VS
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
a848cd7e
SC
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
9a8f0513
VS
19235 { ac_try='test -z "$ac_cxx_werror_flag"
19236 || test ! -s conftest.err'
ac1cb8d3
VS
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_cxx_const_cast=yes
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253ac_cv_cxx_const_cast=no
19254fi
ac1cb8d3 19255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19256 ac_ext=c
19257ac_cpp='$CPP $CPPFLAGS'
19258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19260ac_compiler_gnu=$ac_cv_c_compiler_gnu
19261
19262
19263fi
19264echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19265echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19266if test "$ac_cv_cxx_const_cast" = yes; then
19267
19268cat >>confdefs.h <<\_ACEOF
19269#define HAVE_CONST_CAST
19270_ACEOF
19271
19272fi
19273
19274echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19275echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19276if test "${ac_cv_cxx_static_cast+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19278else
19279
19280
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 cat >conftest.$ac_ext <<_ACEOF
19288/* confdefs.h. */
19289_ACEOF
19290cat confdefs.h >>conftest.$ac_ext
19291cat >>conftest.$ac_ext <<_ACEOF
19292/* end confdefs.h. */
19293#include <typeinfo>
19294class Base { public : Base () {} virtual void f () = 0; };
19295class Derived : public Base { public : Derived () {} virtual void f () {} };
19296int g (Derived&) { return 0; }
19297int
19298main ()
19299{
19300
19301Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19302 ;
19303 return 0;
19304}
19305_ACEOF
19306rm -f conftest.$ac_objext
19307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19308 (eval $ac_compile) 2>conftest.er1
a848cd7e 19309 ac_status=$?
ac1cb8d3
VS
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
a848cd7e
SC
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
9a8f0513
VS
19315 { ac_try='test -z "$ac_cxx_werror_flag"
19316 || test ! -s conftest.err'
ac1cb8d3
VS
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_cv_cxx_static_cast=yes
19329else
19330 echo "$as_me: failed program was:" >&5
19331sed 's/^/| /' conftest.$ac_ext >&5
19332
19333ac_cv_cxx_static_cast=no
19334fi
ac1cb8d3 19335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19336 ac_ext=c
19337ac_cpp='$CPP $CPPFLAGS'
19338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341
19342
19343fi
19344echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19345echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19346if test "$ac_cv_cxx_static_cast" = yes; then
19347
19348cat >>confdefs.h <<\_ACEOF
19349#define HAVE_STATIC_CAST
19350_ACEOF
19351
19352fi
19353
19354
19355if test "$wxUSE_STL" = "yes"; then
19356 ac_ext=cc
19357ac_cpp='$CXXCPP $CPPFLAGS'
19358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19361
19362
19363 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19364echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19365 cat >conftest.$ac_ext <<_ACEOF
19366/* confdefs.h. */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
19370/* end confdefs.h. */
19371#include <string>
19372 #include <functional>
19373 #include <algorithm>
19374 #include <vector>
19375 #include <list>
19376int
19377main ()
19378{
19379std::vector<int> moo;
19380 std::list<int> foo;
19381 std::vector<int>::iterator it =
19382 std::find_if(moo.begin(), moo.end(),
19383 std::bind2nd(std::less<int>(), 3));
19384 ;
19385 return 0;
19386}
19387_ACEOF
19388rm -f conftest.$ac_objext
19389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19390 (eval $ac_compile) 2>conftest.er1
a848cd7e 19391 ac_status=$?
ac1cb8d3
VS
19392 grep -v '^ *+' conftest.er1 >conftest.err
19393 rm -f conftest.er1
19394 cat conftest.err >&5
a848cd7e
SC
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } &&
9a8f0513
VS
19397 { ac_try='test -z "$ac_cxx_werror_flag"
19398 || test ! -s conftest.err'
ac1cb8d3
VS
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 echo "$as_me:$LINENO: result: yes" >&5
19411echo "${ECHO_T}yes" >&6
19412else
19413 echo "$as_me: failed program was:" >&5
19414sed 's/^/| /' conftest.$ac_ext >&5
19415
19416echo "$as_me:$LINENO: result: no" >&5
19417echo "${ECHO_T}no" >&6
19418 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19419echo "$as_me: error: Basic STL functionality missing" >&2;}
19420 { (exit 1); exit 1; }; }
19421fi
ac1cb8d3 19422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19423
19424 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19425echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19426 cat >conftest.$ac_ext <<_ACEOF
19427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
19432#include <string>
19433int
19434main ()
19435{
19436std::wstring foo;
19437 ;
19438 return 0;
19439}
19440_ACEOF
19441rm -f conftest.$ac_objext
19442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19443 (eval $ac_compile) 2>conftest.er1
a848cd7e 19444 ac_status=$?
ac1cb8d3
VS
19445 grep -v '^ *+' conftest.er1 >conftest.err
19446 rm -f conftest.er1
19447 cat conftest.err >&5
a848cd7e
SC
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } &&
9a8f0513
VS
19450 { ac_try='test -z "$ac_cxx_werror_flag"
19451 || test ! -s conftest.err'
ac1cb8d3
VS
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 echo "$as_me:$LINENO: result: yes" >&5
19464echo "${ECHO_T}yes" >&6
19465 cat >>confdefs.h <<\_ACEOF
19466#define HAVE_STD_WSTRING 1
19467_ACEOF
19468
19469else
19470 echo "$as_me: failed program was:" >&5
19471sed 's/^/| /' conftest.$ac_ext >&5
19472
19473echo "$as_me:$LINENO: result: no" >&5
19474echo "${ECHO_T}no" >&6
19475fi
ac1cb8d3 19476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19477
19478 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19479echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19480 cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486#include <string>
19487int
19488main ()
19489{
19490std::string foo, bar;
19491 foo.compare(bar);
19492 foo.compare(1, 1, bar);
19493 foo.compare(1, 1, bar, 1, 1);
19494 foo.compare("");
19495 foo.compare(1, 1, "");
19496 foo.compare(1, 1, "", 2);
19497 ;
19498 return 0;
19499}
19500_ACEOF
19501rm -f conftest.$ac_objext
19502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19503 (eval $ac_compile) 2>conftest.er1
a848cd7e 19504 ac_status=$?
ac1cb8d3
VS
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
a848cd7e
SC
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
9a8f0513
VS
19510 { ac_try='test -z "$ac_cxx_werror_flag"
19511 || test ! -s conftest.err'
ac1cb8d3
VS
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 echo "$as_me:$LINENO: result: yes" >&5
19524echo "${ECHO_T}yes" >&6
19525 cat >>confdefs.h <<\_ACEOF
19526#define HAVE_STD_STRING_COMPARE 1
19527_ACEOF
19528
19529else
19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533echo "$as_me:$LINENO: result: no" >&5
19534echo "${ECHO_T}no" >&6
19535fi
ac1cb8d3 19536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19537
19538 if test "${ac_cv_header_hash_map+set}" = set; then
19539 echo "$as_me:$LINENO: checking for hash_map" >&5
19540echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19541if test "${ac_cv_header_hash_map+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543fi
19544echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19545echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19546else
19547 # Is the header compilable?
19548echo "$as_me:$LINENO: checking hash_map usability" >&5
19549echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19550cat >conftest.$ac_ext <<_ACEOF
19551/* confdefs.h. */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h. */
19556$ac_includes_default
19557#include <hash_map>
19558_ACEOF
19559rm -f conftest.$ac_objext
19560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19561 (eval $ac_compile) 2>conftest.er1
bdcade0a 19562 ac_status=$?
ac1cb8d3
VS
19563 grep -v '^ *+' conftest.er1 >conftest.err
19564 rm -f conftest.er1
19565 cat conftest.err >&5
bdcade0a
MB
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
9a8f0513
VS
19568 { ac_try='test -z "$ac_cxx_werror_flag"
19569 || test ! -s conftest.err'
ac1cb8d3
VS
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_header_compiler=yes
19582else
19583 echo "$as_me: failed program was:" >&5
19584sed 's/^/| /' conftest.$ac_ext >&5
19585
19586ac_header_compiler=no
19587fi
ac1cb8d3 19588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19589echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19590echo "${ECHO_T}$ac_header_compiler" >&6
19591
19592# Is the header present?
19593echo "$as_me:$LINENO: checking hash_map presence" >&5
19594echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19595cat >conftest.$ac_ext <<_ACEOF
19596/* confdefs.h. */
19597_ACEOF
19598cat confdefs.h >>conftest.$ac_ext
19599cat >>conftest.$ac_ext <<_ACEOF
19600/* end confdefs.h. */
19601#include <hash_map>
19602_ACEOF
19603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } >/dev/null; then
19611 if test -s conftest.err; then
19612 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19613 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19614 else
19615 ac_cpp_err=
19616 fi
19617else
19618 ac_cpp_err=yes
19619fi
19620if test -z "$ac_cpp_err"; then
19621 ac_header_preproc=yes
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_header_preproc=no
19627fi
19628rm -f conftest.err conftest.$ac_ext
19629echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19630echo "${ECHO_T}$ac_header_preproc" >&6
19631
19632# So? What about this header?
ac1cb8d3
VS
19633case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19634 yes:no: )
bdcade0a
MB
19635 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19636echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19637 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19638echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19639 ac_header_preproc=yes
bdcade0a 19640 ;;
ac1cb8d3 19641 no:yes:* )
bdcade0a
MB
19642 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19643echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19644 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19645echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19646 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19647echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19649echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19650 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19651echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19652 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19653echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19654 (
19655 cat <<\_ASBOX
ac1cb8d3
VS
19656## ----------------------------------------- ##
19657## Report this to wx-dev@lists.wxwidgets.org ##
19658## ----------------------------------------- ##
bdcade0a
MB
19659_ASBOX
19660 ) |
19661 sed "s/^/$as_me: WARNING: /" >&2
19662 ;;
19663esac
19664echo "$as_me:$LINENO: checking for hash_map" >&5
19665echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19666if test "${ac_cv_header_hash_map+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19668else
19669 ac_cv_header_hash_map=$ac_header_preproc
19670fi
19671echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19672echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19673
19674fi
19675if test $ac_cv_header_hash_map = yes; then
19676 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19677echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19678 cat >conftest.$ac_ext <<_ACEOF
19679/* confdefs.h. */
19680_ACEOF
19681cat confdefs.h >>conftest.$ac_ext
19682cat >>conftest.$ac_ext <<_ACEOF
19683/* end confdefs.h. */
19684#include <hash_map>
19685 #include <hash_set>
19686int
19687main ()
19688{
19689std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19690 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19691 ;
19692 return 0;
19693}
19694_ACEOF
19695rm -f conftest.$ac_objext
19696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19697 (eval $ac_compile) 2>conftest.er1
bdcade0a 19698 ac_status=$?
ac1cb8d3
VS
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
bdcade0a
MB
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
9a8f0513
VS
19704 { ac_try='test -z "$ac_cxx_werror_flag"
19705 || test ! -s conftest.err'
ac1cb8d3
VS
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 echo "$as_me:$LINENO: result: yes" >&5
19718echo "${ECHO_T}yes" >&6
19719 cat >>confdefs.h <<\_ACEOF
19720#define HAVE_HASH_MAP 1
19721_ACEOF
19722
19723 cat >>confdefs.h <<\_ACEOF
19724#define HAVE_STD_HASH_MAP 1
19725_ACEOF
19726
19727else
19728 echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731echo "$as_me:$LINENO: result: no" >&5
19732echo "${ECHO_T}no" >&6
19733fi
ac1cb8d3 19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19735
19736fi
19737
19738
19739
19740 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19741 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19742echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19743if test "${ac_cv_header_ext_hash_map+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745fi
19746echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19747echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19748else
19749 # Is the header compilable?
19750echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19751echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19752cat >conftest.$ac_ext <<_ACEOF
19753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h. */
19758$ac_includes_default
19759#include <ext/hash_map>
19760_ACEOF
19761rm -f conftest.$ac_objext
19762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19763 (eval $ac_compile) 2>conftest.er1
bdcade0a 19764 ac_status=$?
ac1cb8d3
VS
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
bdcade0a
MB
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
9a8f0513
VS
19770 { ac_try='test -z "$ac_cxx_werror_flag"
19771 || test ! -s conftest.err'
ac1cb8d3
VS
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_header_compiler=yes
19784else
19785 echo "$as_me: failed program was:" >&5
19786sed 's/^/| /' conftest.$ac_ext >&5
19787
19788ac_header_compiler=no
19789fi
ac1cb8d3 19790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19792echo "${ECHO_T}$ac_header_compiler" >&6
19793
19794# Is the header present?
19795echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19796echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19797cat >conftest.$ac_ext <<_ACEOF
19798/* confdefs.h. */
19799_ACEOF
19800cat confdefs.h >>conftest.$ac_ext
19801cat >>conftest.$ac_ext <<_ACEOF
19802/* end confdefs.h. */
19803#include <ext/hash_map>
19804_ACEOF
19805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev/null; then
19813 if test -s conftest.err; then
19814 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19816 else
19817 ac_cpp_err=
19818 fi
19819else
19820 ac_cpp_err=yes
19821fi
19822if test -z "$ac_cpp_err"; then
19823 ac_header_preproc=yes
19824else
19825 echo "$as_me: failed program was:" >&5
19826sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ac_header_preproc=no
19829fi
19830rm -f conftest.err conftest.$ac_ext
19831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19832echo "${ECHO_T}$ac_header_preproc" >&6
19833
19834# So? What about this header?
ac1cb8d3
VS
19835case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19836 yes:no: )
bdcade0a
MB
19837 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19838echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19839 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19840echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19841 ac_header_preproc=yes
bdcade0a 19842 ;;
ac1cb8d3 19843 no:yes:* )
bdcade0a
MB
19844 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19845echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19846 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19847echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19849echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19851echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19852 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19853echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19854 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19855echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19856 (
19857 cat <<\_ASBOX
ac1cb8d3
VS
19858## ----------------------------------------- ##
19859## Report this to wx-dev@lists.wxwidgets.org ##
19860## ----------------------------------------- ##
bdcade0a
MB
19861_ASBOX
19862 ) |
19863 sed "s/^/$as_me: WARNING: /" >&2
19864 ;;
19865esac
19866echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19867echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19868if test "${ac_cv_header_ext_hash_map+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871 ac_cv_header_ext_hash_map=$ac_header_preproc
19872fi
19873echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19874echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19875
19876fi
19877if test $ac_cv_header_ext_hash_map = yes; then
19878 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19879echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886#include <ext/hash_map>
19887 #include <ext/hash_set>
19888int
19889main ()
19890{
19891__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19892 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19893 ;
19894 return 0;
19895}
19896_ACEOF
19897rm -f conftest.$ac_objext
19898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19899 (eval $ac_compile) 2>conftest.er1
bdcade0a 19900 ac_status=$?
ac1cb8d3
VS
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
bdcade0a
MB
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
9a8f0513
VS
19906 { ac_try='test -z "$ac_cxx_werror_flag"
19907 || test ! -s conftest.err'
ac1cb8d3
VS
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 echo "$as_me:$LINENO: result: yes" >&5
19920echo "${ECHO_T}yes" >&6
19921 cat >>confdefs.h <<\_ACEOF
19922#define HAVE_EXT_HASH_MAP 1
19923_ACEOF
19924
19925 cat >>confdefs.h <<\_ACEOF
19926#define HAVE_GNU_CXX_HASH_MAP 1
19927_ACEOF
19928
19929else
19930 echo "$as_me: failed program was:" >&5
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933echo "$as_me:$LINENO: result: no" >&5
19934echo "${ECHO_T}no" >&6
19935fi
ac1cb8d3 19936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19937
19938fi
19939
19940
a848cd7e
SC
19941
19942 ac_ext=c
19943ac_cpp='$CPP $CPPFLAGS'
19944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946ac_compiler_gnu=$ac_cv_c_compiler_gnu
19947
19948fi
19949
19950
19951SEARCH_INCLUDE="\
19952 /usr/local/include \
19953 \
19954 /usr/Motif-2.1/include \
19955 /usr/Motif-1.2/include \
19956 /usr/include/Motif1.2 \
19957 /opt/xpm/include/X11 \
19958 /opt/GBxpm/include/ \
19959 /opt/GBxpm/X11/include/ \
19960 \
19961 /usr/dt/include \
19962 /usr/openwin/include \
19963 \
19964 /usr/include/Xm \
19965 \
19966 /usr/X11R6/include \
19967 /usr/X11R6.4/include \
19968 /usr/X11R5/include \
19969 /usr/X11R4/include \
19970 \
19971 /usr/include/X11R6 \
19972 /usr/include/X11R5 \
19973 /usr/include/X11R4 \
19974 \
19975 /usr/local/X11R6/include \
19976 /usr/local/X11R5/include \
19977 /usr/local/X11R4/include \
19978 \
19979 /usr/local/include/X11R6 \
19980 /usr/local/include/X11R5 \
19981 /usr/local/include/X11R4 \
19982 \
19983 /usr/X11/include \
19984 /usr/include/X11 \
19985 /usr/local/X11/include \
19986 /usr/local/include/X11 \
19987 \
19988 /usr/X386/include \
19989 /usr/x386/include \
19990 /usr/XFree86/include/X11 \
19991 \
19992 X:/XFree86/include \
19993 X:/XFree86/include/X11 \
19994 \
19995 /usr/include/gtk \
19996 /usr/local/include/gtk \
19997 /usr/include/glib \
19998 /usr/local/include/glib \
19999 \
20000 /usr/include/qt \
20001 /usr/local/include/qt \
20002 \
20003 /usr/local/arm/3.3.2/include \
20004 \
20005 /usr/include/windows \
20006 /usr/include/wine \
20007 /usr/local/include/wine \
20008 \
20009 /usr/unsupported/include \
20010 /usr/athena/include \
20011 /usr/local/x11r5/include \
20012 /usr/lpp/Xamples/include \
20013 \
20014 /usr/openwin/share/include"
20015
20016SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20017
20018
20019cat >confcache <<\_ACEOF
20020# This file is a shell script that caches the results of configure
20021# tests run on this system so they can be shared between configure
20022# scripts and configure runs, see configure's option --config-cache.
20023# It is not useful on other systems. If it contains results you don't
20024# want to keep, you may remove or edit it.
20025#
20026# config.status only pays attention to the cache file if you give it
20027# the --recheck option to rerun configure.
20028#
20029# `ac_cv_env_foo' variables (set or unset) will be overridden when
20030# loading this file, other *unset* `ac_cv_foo' will be assigned the
20031# following values.
20032
20033_ACEOF
20034
20035# The following way of writing the cache mishandles newlines in values,
20036# but we know of no workaround that is simple, portable, and efficient.
20037# So, don't put newlines in cache variables' values.
20038# Ultrix sh set writes to stderr and can't be redirected directly,
20039# and sets the high bit in the cache file unless we assign to the vars.
20040{
20041 (set) 2>&1 |
20042 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20043 *ac_space=\ *)
20044 # `set' does not quote correctly, so add quotes (double-quote
20045 # substitution turns \\\\ into \\, and sed turns \\ into \).
20046 sed -n \
ac1cb8d3
VS
20047 "s/'/'\\\\''/g;
20048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20049 ;;
20050 *)
20051 # `set' quotes correctly as required by POSIX, so do not add quotes.
20052 sed -n \
ac1cb8d3 20053 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20054 ;;
20055 esac;
20056} |
20057 sed '
20058 t clear
20059 : clear
20060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20061 t end
20062 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20063 : end' >>confcache
20064if diff $cache_file confcache >/dev/null 2>&1; then :; else
20065 if test -w $cache_file; then
20066 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20067 cat confcache >$cache_file
20068 else
20069 echo "not updating unwritable cache $cache_file"
20070 fi
20071fi
20072rm -f confcache
20073
20074if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20075 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20076echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20077if test "${wx_cv_lib_glibc21+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20079else
20080
20081 cat >conftest.$ac_ext <<_ACEOF
20082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h. */
20087#include <features.h>
20088int
20089main ()
20090{
20091
20092 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20093 #error not glibc2.1
20094 #endif
20095
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20102 (eval $ac_compile) 2>conftest.er1
a848cd7e 20103 ac_status=$?
ac1cb8d3
VS
20104 grep -v '^ *+' conftest.er1 >conftest.err
20105 rm -f conftest.er1
20106 cat conftest.err >&5
a848cd7e
SC
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
9a8f0513
VS
20109 { ac_try='test -z "$ac_c_werror_flag"
20110 || test ! -s conftest.err'
ac1cb8d3
VS
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; } &&
20116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122
20123 wx_cv_lib_glibc21=yes
20124
20125else
20126 echo "$as_me: failed program was:" >&5
20127sed 's/^/| /' conftest.$ac_ext >&5
20128
20129
20130 wx_cv_lib_glibc21=no
20131
20132
20133fi
ac1cb8d3 20134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20135
20136fi
20137echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20138echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20139 if test "$wx_cv_lib_glibc21" = "yes"; then
20140 cat >>confdefs.h <<\_ACEOF
20141#define wxHAVE_GLIBC2 1
20142_ACEOF
20143
20144 fi
20145fi
20146
20147if test "x$wx_cv_lib_glibc21" = "xyes"; then
20148 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20149 cat >>confdefs.h <<\_ACEOF
20150#define _GNU_SOURCE 1
20151_ACEOF
20152
20153 fi
20154fi
20155
20156
20157
20158if test "$wxUSE_REGEX" != "no"; then
20159 cat >>confdefs.h <<\_ACEOF
20160#define wxUSE_REGEX 1
20161_ACEOF
20162
20163
20164 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20165 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20166echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20167 wxUSE_REGEX=builtin
20168 fi
20169
20170 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20171 if test "${ac_cv_header_regex_h+set}" = set; then
20172 echo "$as_me:$LINENO: checking for regex.h" >&5
20173echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20174if test "${ac_cv_header_regex_h+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176fi
20177echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20178echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20179else
20180 # Is the header compilable?
20181echo "$as_me:$LINENO: checking regex.h usability" >&5
20182echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20183cat >conftest.$ac_ext <<_ACEOF
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
20189$ac_includes_default
20190#include <regex.h>
20191_ACEOF
20192rm -f conftest.$ac_objext
20193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20194 (eval $ac_compile) 2>conftest.er1
a848cd7e 20195 ac_status=$?
ac1cb8d3
VS
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
a848cd7e
SC
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
9a8f0513
VS
20201 { ac_try='test -z "$ac_c_werror_flag"
20202 || test ! -s conftest.err'
ac1cb8d3
VS
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_header_compiler=yes
20215else
20216 echo "$as_me: failed program was:" >&5
20217sed 's/^/| /' conftest.$ac_ext >&5
20218
20219ac_header_compiler=no
20220fi
ac1cb8d3 20221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20222echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20223echo "${ECHO_T}$ac_header_compiler" >&6
20224
20225# Is the header present?
20226echo "$as_me:$LINENO: checking regex.h presence" >&5
20227echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20228cat >conftest.$ac_ext <<_ACEOF
20229/* confdefs.h. */
20230_ACEOF
20231cat confdefs.h >>conftest.$ac_ext
20232cat >>conftest.$ac_ext <<_ACEOF
20233/* end confdefs.h. */
20234#include <regex.h>
20235_ACEOF
20236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20238 ac_status=$?
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } >/dev/null; then
20244 if test -s conftest.err; then
20245 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20247 else
20248 ac_cpp_err=
20249 fi
20250else
20251 ac_cpp_err=yes
20252fi
20253if test -z "$ac_cpp_err"; then
20254 ac_header_preproc=yes
20255else
20256 echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 ac_header_preproc=no
20260fi
20261rm -f conftest.err conftest.$ac_ext
20262echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20263echo "${ECHO_T}$ac_header_preproc" >&6
20264
20265# So? What about this header?
ac1cb8d3
VS
20266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20267 yes:no: )
a848cd7e
SC
20268 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20269echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20270 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20271echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20272 ac_header_preproc=yes
a848cd7e 20273 ;;
ac1cb8d3 20274 no:yes:* )
a848cd7e
SC
20275 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20276echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20277 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20278echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20280echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20282echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20283 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20284echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20285 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20286echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20287 (
20288 cat <<\_ASBOX
ac1cb8d3
VS
20289## ----------------------------------------- ##
20290## Report this to wx-dev@lists.wxwidgets.org ##
20291## ----------------------------------------- ##
a848cd7e
SC
20292_ASBOX
20293 ) |
20294 sed "s/^/$as_me: WARNING: /" >&2
20295 ;;
20296esac
20297echo "$as_me:$LINENO: checking for regex.h" >&5
20298echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20299if test "${ac_cv_header_regex_h+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20301else
20302 ac_cv_header_regex_h=$ac_header_preproc
20303fi
20304echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20305echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20306
20307fi
20308if test $ac_cv_header_regex_h = yes; then
20309
20310for ac_func in regcomp
20311do
20312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20313echo "$as_me:$LINENO: checking for $ac_func" >&5
20314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20315if eval "test \"\${$as_ac_var+set}\" = set"; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20317else
20318 cat >conftest.$ac_ext <<_ACEOF
20319/* confdefs.h. */
20320_ACEOF
20321cat confdefs.h >>conftest.$ac_ext
20322cat >>conftest.$ac_ext <<_ACEOF
20323/* end confdefs.h. */
ac1cb8d3
VS
20324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20326#define $ac_func innocuous_$ac_func
20327
a848cd7e
SC
20328/* System header to define __stub macros and hopefully few prototypes,
20329 which can conflict with char $ac_func (); below.
20330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20331 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20332
a848cd7e
SC
20333#ifdef __STDC__
20334# include <limits.h>
20335#else
20336# include <assert.h>
20337#endif
ac1cb8d3
VS
20338
20339#undef $ac_func
20340
a848cd7e
SC
20341/* Override any gcc2 internal prototype to avoid an error. */
20342#ifdef __cplusplus
20343extern "C"
20344{
20345#endif
20346/* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20348char $ac_func ();
20349/* The GNU C library defines this for functions which it implements
20350 to always fail with ENOSYS. Some functions are actually named
20351 something starting with __ and the normal name is an alias. */
20352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20353choke me
20354#else
20355char (*f) () = $ac_func;
20356#endif
20357#ifdef __cplusplus
20358}
20359#endif
20360
20361int
20362main ()
20363{
20364return f != $ac_func;
20365 ;
20366 return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext conftest$ac_exeext
20370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20371 (eval $ac_link) 2>conftest.er1
a848cd7e 20372 ac_status=$?
ac1cb8d3
VS
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
a848cd7e
SC
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
9a8f0513
VS
20378 { ac_try='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
ac1cb8d3
VS
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 eval "$as_ac_var=yes"
20392else
20393 echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
20396eval "$as_ac_var=no"
20397fi
ac1cb8d3
VS
20398rm -f conftest.err conftest.$ac_objext \
20399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20400fi
20401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20403if test `eval echo '${'$as_ac_var'}'` = yes; then
20404 cat >>confdefs.h <<_ACEOF
20405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20406_ACEOF
20407
20408fi
20409done
20410
20411fi
20412
20413
20414
20415 if test "x$ac_cv_func_regcomp" != "xyes"; then
20416 if test "$wxUSE_REGEX" = "sys" ; then
20417 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20418echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20419 { (exit 1); exit 1; }; }
20420 else
20421 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20422echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20423 wxUSE_REGEX=builtin
20424 fi
20425 else
20426 wxUSE_REGEX=sys
20427 cat >>confdefs.h <<\_ACEOF
20428#define WX_NO_REGEX_ADVANCED 1
20429_ACEOF
20430
20431 fi
20432 fi
20433fi
20434
20435
20436ZLIB_LINK=
20437if test "$wxUSE_ZLIB" != "no" ; then
20438 cat >>confdefs.h <<\_ACEOF
20439#define wxUSE_ZLIB 1
20440_ACEOF
20441
20442
20443 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20444 if test "$USE_DARWIN" = 1; then
20445 system_zlib_h_ok="yes"
20446 else
20447 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20448echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20449if test "${ac_cv_header_zlib_h+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20451else
20452 if test "$cross_compiling" = yes; then
20453 unset ac_cv_header_zlib_h
20454
20455else
20456 cat >conftest.$ac_ext <<_ACEOF
20457/* confdefs.h. */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h. */
20462
20463 #include <zlib.h>
20464 #include <stdio.h>
20465
20466 int main()
20467 {
20468 FILE *f=fopen("conftestval", "w");
20469 if (!f) exit(1);
20470 fprintf(f, "%s",
20471 ZLIB_VERSION[0] == '1' &&
20472 (ZLIB_VERSION[2] > '1' ||
20473 (ZLIB_VERSION[2] == '1' &&
20474 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20475 exit(0);
20476 }
20477
20478_ACEOF
20479rm -f conftest$ac_exeext
20480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20481 (eval $ac_link) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 ac_cv_header_zlib_h=`cat conftestval`
20491else
20492 echo "$as_me: program exited with status $ac_status" >&5
20493echo "$as_me: failed program was:" >&5
20494sed 's/^/| /' conftest.$ac_ext >&5
20495
20496( exit $ac_status )
20497ac_cv_header_zlib_h=no
20498fi
ac1cb8d3 20499rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20500fi
20501
20502fi
20503echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20504echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20505 if test "${ac_cv_header_zlib_h+set}" = set; then
20506 echo "$as_me:$LINENO: checking for zlib.h" >&5
20507echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20508if test "${ac_cv_header_zlib_h+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510fi
20511echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20512echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20513else
20514 # Is the header compilable?
20515echo "$as_me:$LINENO: checking zlib.h usability" >&5
20516echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20517cat >conftest.$ac_ext <<_ACEOF
20518/* confdefs.h. */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h. */
20523$ac_includes_default
20524#include <zlib.h>
20525_ACEOF
20526rm -f conftest.$ac_objext
20527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20528 (eval $ac_compile) 2>conftest.er1
a848cd7e 20529 ac_status=$?
ac1cb8d3
VS
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
a848cd7e
SC
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
9a8f0513
VS
20535 { ac_try='test -z "$ac_c_werror_flag"
20536 || test ! -s conftest.err'
ac1cb8d3
VS
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20548 ac_header_compiler=yes
20549else
20550 echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553ac_header_compiler=no
20554fi
ac1cb8d3 20555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20557echo "${ECHO_T}$ac_header_compiler" >&6
20558
20559# Is the header present?
20560echo "$as_me:$LINENO: checking zlib.h presence" >&5
20561echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20562cat >conftest.$ac_ext <<_ACEOF
20563/* confdefs.h. */
20564_ACEOF
20565cat confdefs.h >>conftest.$ac_ext
20566cat >>conftest.$ac_ext <<_ACEOF
20567/* end confdefs.h. */
20568#include <zlib.h>
20569_ACEOF
20570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20572 ac_status=$?
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } >/dev/null; then
20578 if test -s conftest.err; then
20579 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20581 else
20582 ac_cpp_err=
20583 fi
20584else
20585 ac_cpp_err=yes
20586fi
20587if test -z "$ac_cpp_err"; then
20588 ac_header_preproc=yes
20589else
20590 echo "$as_me: failed program was:" >&5
20591sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 ac_header_preproc=no
20594fi
20595rm -f conftest.err conftest.$ac_ext
20596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20597echo "${ECHO_T}$ac_header_preproc" >&6
20598
20599# So? What about this header?
ac1cb8d3
VS
20600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20601 yes:no: )
a848cd7e
SC
20602 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20603echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20604 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20605echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20606 ac_header_preproc=yes
a848cd7e 20607 ;;
ac1cb8d3 20608 no:yes:* )
a848cd7e
SC
20609 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20610echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20611 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20612echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20614echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20615 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20616echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20617 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20618echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20619 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20620echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20621 (
20622 cat <<\_ASBOX
ac1cb8d3
VS
20623## ----------------------------------------- ##
20624## Report this to wx-dev@lists.wxwidgets.org ##
20625## ----------------------------------------- ##
a848cd7e
SC
20626_ASBOX
20627 ) |
20628 sed "s/^/$as_me: WARNING: /" >&2
20629 ;;
20630esac
20631echo "$as_me:$LINENO: checking for zlib.h" >&5
20632echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20633if test "${ac_cv_header_zlib_h+set}" = set; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20635else
20636 ac_cv_header_zlib_h=$ac_header_preproc
20637fi
20638echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20639echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20640
20641fi
20642
20643
20644
20645 system_zlib_h_ok=$ac_cv_header_zlib_h
20646 fi
20647
20648 if test "$system_zlib_h_ok" = "yes"; then
20649 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20650echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20651if test "${ac_cv_lib_z_deflate+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653else
20654 ac_check_lib_save_LIBS=$LIBS
20655LIBS="-lz $LIBS"
20656cat >conftest.$ac_ext <<_ACEOF
20657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
20662
20663/* Override any gcc2 internal prototype to avoid an error. */
20664#ifdef __cplusplus
20665extern "C"
20666#endif
20667/* We use char because int might match the return type of a gcc2
20668 builtin and then its argument prototype would still apply. */
20669char deflate ();
20670int
20671main ()
20672{
20673deflate ();
20674 ;
20675 return 0;
20676}
20677_ACEOF
20678rm -f conftest.$ac_objext conftest$ac_exeext
20679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20680 (eval $ac_link) 2>conftest.er1
a848cd7e 20681 ac_status=$?
ac1cb8d3
VS
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
a848cd7e
SC
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
9a8f0513
VS
20687 { ac_try='test -z "$ac_c_werror_flag"
20688 || test ! -s conftest.err'
ac1cb8d3
VS
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20691 ac_status=$?
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; } &&
20694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_lib_z_deflate=yes
20701else
20702 echo "$as_me: failed program was:" >&5
20703sed 's/^/| /' conftest.$ac_ext >&5
20704
20705ac_cv_lib_z_deflate=no
20706fi
ac1cb8d3
VS
20707rm -f conftest.err conftest.$ac_objext \
20708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20709LIBS=$ac_check_lib_save_LIBS
20710fi
20711echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20712echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20713if test $ac_cv_lib_z_deflate = yes; then
20714 ZLIB_LINK=" -lz"
20715fi
20716
20717 fi
20718
20719 if test "x$ZLIB_LINK" = "x" ; then
20720 if test "$wxUSE_ZLIB" = "sys" ; then
20721 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20722echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20723 { (exit 1); exit 1; }; }
20724 else
20725 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20726echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20727 wxUSE_ZLIB=builtin
20728 fi
20729 else
20730 wxUSE_ZLIB=sys
20731 fi
20732 fi
20733fi
20734
20735
20736PNG_LINK=
20737if test "$wxUSE_LIBPNG" != "no" ; then
20738 cat >>confdefs.h <<\_ACEOF
20739#define wxUSE_LIBPNG 1
20740_ACEOF
20741
20742
20743 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20744 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20745echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20746 wxUSE_LIBPNG=sys
20747 fi
20748
20749 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20750 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20751echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20752 wxUSE_LIBPNG=builtin
20753 fi
20754
20755 if test "$wxUSE_MGL" != 1 ; then
20756 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20757 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20758echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20759if test "${ac_cv_header_png_h+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761else
20762 if test "$cross_compiling" = yes; then
20763 unset ac_cv_header_png_h
20764
20765else
20766 cat >conftest.$ac_ext <<_ACEOF
20767/* confdefs.h. */
20768_ACEOF
20769cat confdefs.h >>conftest.$ac_ext
20770cat >>conftest.$ac_ext <<_ACEOF
20771/* end confdefs.h. */
20772
20773 #include <png.h>
20774 #include <stdio.h>
20775
20776 int main()
20777 {
20778 FILE *f=fopen("conftestval", "w");
20779 if (!f) exit(1);
20780 fprintf(f, "%s",
20781 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20782 exit(0);
20783 }
20784
20785_ACEOF
20786rm -f conftest$ac_exeext
20787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20788 (eval $ac_link) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_header_png_h=`cat conftestval`
20798else
20799 echo "$as_me: program exited with status $ac_status" >&5
20800echo "$as_me: failed program was:" >&5
20801sed 's/^/| /' conftest.$ac_ext >&5
20802
20803( exit $ac_status )
20804ac_cv_header_png_h=no
20805fi
ac1cb8d3 20806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20807fi
20808
20809fi
20810echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20811echo "${ECHO_T}$ac_cv_header_png_h" >&6
20812 if test "${ac_cv_header_png_h+set}" = set; then
20813 echo "$as_me:$LINENO: checking for png.h" >&5
20814echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20815if test "${ac_cv_header_png_h+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20817fi
20818echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20819echo "${ECHO_T}$ac_cv_header_png_h" >&6
20820else
20821 # Is the header compilable?
20822echo "$as_me:$LINENO: checking png.h usability" >&5
20823echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20824cat >conftest.$ac_ext <<_ACEOF
20825/* confdefs.h. */
20826_ACEOF
20827cat confdefs.h >>conftest.$ac_ext
20828cat >>conftest.$ac_ext <<_ACEOF
20829/* end confdefs.h. */
20830$ac_includes_default
20831#include <png.h>
20832_ACEOF
20833rm -f conftest.$ac_objext
20834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20835 (eval $ac_compile) 2>conftest.er1
a848cd7e 20836 ac_status=$?
ac1cb8d3
VS
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
a848cd7e
SC
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
9a8f0513
VS
20842 { ac_try='test -z "$ac_c_werror_flag"
20843 || test ! -s conftest.err'
ac1cb8d3
VS
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; } &&
20849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 ac_header_compiler=yes
20856else
20857 echo "$as_me: failed program was:" >&5
20858sed 's/^/| /' conftest.$ac_ext >&5
20859
20860ac_header_compiler=no
20861fi
ac1cb8d3 20862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20864echo "${ECHO_T}$ac_header_compiler" >&6
20865
20866# Is the header present?
20867echo "$as_me:$LINENO: checking png.h presence" >&5
20868echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20869cat >conftest.$ac_ext <<_ACEOF
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
20874/* end confdefs.h. */
20875#include <png.h>
20876_ACEOF
20877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } >/dev/null; then
20885 if test -s conftest.err; then
20886 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20888 else
20889 ac_cpp_err=
20890 fi
20891else
20892 ac_cpp_err=yes
20893fi
20894if test -z "$ac_cpp_err"; then
20895 ac_header_preproc=yes
20896else
20897 echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 ac_header_preproc=no
20901fi
20902rm -f conftest.err conftest.$ac_ext
20903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20904echo "${ECHO_T}$ac_header_preproc" >&6
20905
20906# So? What about this header?
ac1cb8d3
VS
20907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20908 yes:no: )
a848cd7e
SC
20909 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20910echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20911 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20912echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20913 ac_header_preproc=yes
a848cd7e 20914 ;;
ac1cb8d3 20915 no:yes:* )
a848cd7e
SC
20916 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20917echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20918 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20919echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20920 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20921echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20922 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20923echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20924 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20925echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20926 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20927echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20928 (
20929 cat <<\_ASBOX
ac1cb8d3
VS
20930## ----------------------------------------- ##
20931## Report this to wx-dev@lists.wxwidgets.org ##
20932## ----------------------------------------- ##
a848cd7e
SC
20933_ASBOX
20934 ) |
20935 sed "s/^/$as_me: WARNING: /" >&2
20936 ;;
20937esac
20938echo "$as_me:$LINENO: checking for png.h" >&5
20939echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20940if test "${ac_cv_header_png_h+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942else
20943 ac_cv_header_png_h=$ac_header_preproc
20944fi
20945echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20946echo "${ECHO_T}$ac_cv_header_png_h" >&6
20947
20948fi
20949
20950
20951
20952 if test "$ac_cv_header_png_h" = "yes"; then
20953 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20954echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20955if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957else
20958 ac_check_lib_save_LIBS=$LIBS
20959LIBS="-lpng -lz -lm $LIBS"
20960cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
20966
20967/* Override any gcc2 internal prototype to avoid an error. */
20968#ifdef __cplusplus
20969extern "C"
20970#endif
20971/* We use char because int might match the return type of a gcc2
20972 builtin and then its argument prototype would still apply. */
20973char png_check_sig ();
20974int
20975main ()
20976{
20977png_check_sig ();
20978 ;
20979 return 0;
20980}
20981_ACEOF
20982rm -f conftest.$ac_objext conftest$ac_exeext
20983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20984 (eval $ac_link) 2>conftest.er1
a848cd7e 20985 ac_status=$?
ac1cb8d3
VS
20986 grep -v '^ *+' conftest.er1 >conftest.err
20987 rm -f conftest.er1
20988 cat conftest.err >&5
a848cd7e
SC
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
9a8f0513
VS
20991 { ac_try='test -z "$ac_c_werror_flag"
20992 || test ! -s conftest.err'
ac1cb8d3
VS
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; } &&
20998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 ac_cv_lib_png_png_check_sig=yes
21005else
21006 echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
21009ac_cv_lib_png_png_check_sig=no
21010fi
ac1cb8d3
VS
21011rm -f conftest.err conftest.$ac_objext \
21012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21013LIBS=$ac_check_lib_save_LIBS
21014fi
21015echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21016echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21017if test $ac_cv_lib_png_png_check_sig = yes; then
21018 PNG_LINK=" -lpng -lz"
21019fi
21020
21021 fi
21022
21023 if test "x$PNG_LINK" = "x" ; then
21024 if test "$wxUSE_LIBPNG" = "sys" ; then
21025 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21026echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21027 { (exit 1); exit 1; }; }
21028 else
21029 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21030echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21031 wxUSE_LIBPNG=builtin
21032 fi
21033 else
21034 wxUSE_LIBPNG=sys
21035 fi
21036 fi
21037 fi
21038
21039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21040fi
21041
21042
21043JPEG_LINK=
21044if test "$wxUSE_LIBJPEG" != "no" ; then
21045 cat >>confdefs.h <<\_ACEOF
21046#define wxUSE_LIBJPEG 1
21047_ACEOF
21048
21049
21050 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21051 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21052echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21053 wxUSE_LIBJPEG=sys
21054 fi
21055
21056 if test "$wxUSE_MGL" != 1 ; then
21057 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21058 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21059echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21060 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21062else
21063 cat >conftest.$ac_ext <<_ACEOF
21064/* confdefs.h. */
21065_ACEOF
21066cat confdefs.h >>conftest.$ac_ext
21067cat >>conftest.$ac_ext <<_ACEOF
21068/* end confdefs.h. */
21069
21070 #undef HAVE_STDLIB_H
21071 #include <stdio.h>
21072 #include <jpeglib.h>
21073
21074int
21075main ()
21076{
21077
21078
21079 ;
21080 return 0;
21081}
21082_ACEOF
21083rm -f conftest.$ac_objext
21084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21085 (eval $ac_compile) 2>conftest.er1
a848cd7e 21086 ac_status=$?
ac1cb8d3
VS
21087 grep -v '^ *+' conftest.er1 >conftest.err
21088 rm -f conftest.er1
21089 cat conftest.err >&5
a848cd7e
SC
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
9a8f0513
VS
21092 { ac_try='test -z "$ac_c_werror_flag"
21093 || test ! -s conftest.err'
ac1cb8d3
VS
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 ac_cv_header_jpeglib_h=yes
21106else
21107 echo "$as_me: failed program was:" >&5
21108sed 's/^/| /' conftest.$ac_ext >&5
21109
21110ac_cv_header_jpeglib_h=no
21111
21112fi
ac1cb8d3 21113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21114
21115fi
21116
21117 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21118echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21119
21120 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21121 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21122echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21123if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21125else
21126 ac_check_lib_save_LIBS=$LIBS
21127LIBS="-ljpeg $LIBS"
21128cat >conftest.$ac_ext <<_ACEOF
21129/* confdefs.h. */
21130_ACEOF
21131cat confdefs.h >>conftest.$ac_ext
21132cat >>conftest.$ac_ext <<_ACEOF
21133/* end confdefs.h. */
21134
21135/* Override any gcc2 internal prototype to avoid an error. */
21136#ifdef __cplusplus
21137extern "C"
21138#endif
21139/* We use char because int might match the return type of a gcc2
21140 builtin and then its argument prototype would still apply. */
21141char jpeg_read_header ();
21142int
21143main ()
21144{
21145jpeg_read_header ();
21146 ;
21147 return 0;
21148}
21149_ACEOF
21150rm -f conftest.$ac_objext conftest$ac_exeext
21151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21152 (eval $ac_link) 2>conftest.er1
a848cd7e 21153 ac_status=$?
ac1cb8d3
VS
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
a848cd7e
SC
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
9a8f0513
VS
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
ac1cb8d3
VS
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_cv_lib_jpeg_jpeg_read_header=yes
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177ac_cv_lib_jpeg_jpeg_read_header=no
21178fi
ac1cb8d3
VS
21179rm -f conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21181LIBS=$ac_check_lib_save_LIBS
21182fi
21183echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21184echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21185if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21186 JPEG_LINK=" -ljpeg"
21187fi
21188
21189 fi
21190
21191 if test "x$JPEG_LINK" = "x" ; then
21192 if test "$wxUSE_LIBJPEG" = "sys" ; then
21193 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21194echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21195 { (exit 1); exit 1; }; }
21196 else
21197 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21198echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21199 wxUSE_LIBJPEG=builtin
21200 fi
21201 else
21202 wxUSE_LIBJPEG=sys
21203 fi
21204 fi
21205 fi
21206fi
21207
21208
21209TIFF_LINK=
21210TIFF_PREREQ_LINKS=-lm
21211if test "$wxUSE_LIBTIFF" != "no" ; then
21212 cat >>confdefs.h <<\_ACEOF
21213#define wxUSE_LIBTIFF 1
21214_ACEOF
21215
21216
21217 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21218 if test "$wxUSE_LIBJPEG" = "sys"; then
21219 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21220 fi
21221 if test "$wxUSE_ZLIB" = "sys"; then
21222 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21223 fi
21224 if test "${ac_cv_header_tiffio_h+set}" = set; then
21225 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21226echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21227if test "${ac_cv_header_tiffio_h+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229fi
21230echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21231echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21232else
21233 # Is the header compilable?
21234echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21235echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21236cat >conftest.$ac_ext <<_ACEOF
21237/* confdefs.h. */
21238_ACEOF
21239cat confdefs.h >>conftest.$ac_ext
21240cat >>conftest.$ac_ext <<_ACEOF
21241/* end confdefs.h. */
21242$ac_includes_default
21243#include <tiffio.h>
21244_ACEOF
21245rm -f conftest.$ac_objext
21246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21247 (eval $ac_compile) 2>conftest.er1
a848cd7e 21248 ac_status=$?
ac1cb8d3
VS
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
a848cd7e
SC
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
9a8f0513
VS
21254 { ac_try='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
ac1cb8d3
VS
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_header_compiler=yes
21268else
21269 echo "$as_me: failed program was:" >&5
21270sed 's/^/| /' conftest.$ac_ext >&5
21271
21272ac_header_compiler=no
21273fi
ac1cb8d3 21274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21276echo "${ECHO_T}$ac_header_compiler" >&6
21277
21278# Is the header present?
21279echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21280echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21281cat >conftest.$ac_ext <<_ACEOF
21282/* confdefs.h. */
21283_ACEOF
21284cat confdefs.h >>conftest.$ac_ext
21285cat >>conftest.$ac_ext <<_ACEOF
21286/* end confdefs.h. */
21287#include <tiffio.h>
21288_ACEOF
21289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21291 ac_status=$?
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } >/dev/null; then
21297 if test -s conftest.err; then
21298 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21300 else
21301 ac_cpp_err=
21302 fi
21303else
21304 ac_cpp_err=yes
21305fi
21306if test -z "$ac_cpp_err"; then
21307 ac_header_preproc=yes
21308else
21309 echo "$as_me: failed program was:" >&5
21310sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ac_header_preproc=no
21313fi
21314rm -f conftest.err conftest.$ac_ext
21315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21316echo "${ECHO_T}$ac_header_preproc" >&6
21317
21318# So? What about this header?
ac1cb8d3
VS
21319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21320 yes:no: )
a848cd7e
SC
21321 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21322echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21323 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21324echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21325 ac_header_preproc=yes
a848cd7e 21326 ;;
ac1cb8d3 21327 no:yes:* )
a848cd7e
SC
21328 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21329echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21330 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21331echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21332 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21333echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21334 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21335echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21336 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21337echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21338 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21339echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21340 (
21341 cat <<\_ASBOX
ac1cb8d3
VS
21342## ----------------------------------------- ##
21343## Report this to wx-dev@lists.wxwidgets.org ##
21344## ----------------------------------------- ##
a848cd7e
SC
21345_ASBOX
21346 ) |
21347 sed "s/^/$as_me: WARNING: /" >&2
21348 ;;
21349esac
21350echo "$as_me:$LINENO: checking for tiffio.h" >&5
21351echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21352if test "${ac_cv_header_tiffio_h+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354else
21355 ac_cv_header_tiffio_h=$ac_header_preproc
21356fi
21357echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21358echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21359
21360fi
21361if test $ac_cv_header_tiffio_h = yes; then
21362
21363 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21364echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21365if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367else
21368 ac_check_lib_save_LIBS=$LIBS
21369LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21370cat >conftest.$ac_ext <<_ACEOF
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
21376
21377/* Override any gcc2 internal prototype to avoid an error. */
21378#ifdef __cplusplus
21379extern "C"
21380#endif
21381/* We use char because int might match the return type of a gcc2
21382 builtin and then its argument prototype would still apply. */
21383char TIFFError ();
21384int
21385main ()
21386{
21387TIFFError ();
21388 ;
21389 return 0;
21390}
21391_ACEOF
21392rm -f conftest.$ac_objext conftest$ac_exeext
21393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21394 (eval $ac_link) 2>conftest.er1
a848cd7e 21395 ac_status=$?
ac1cb8d3
VS
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
a848cd7e
SC
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
9a8f0513
VS
21401 { ac_try='test -z "$ac_c_werror_flag"
21402 || test ! -s conftest.err'
ac1cb8d3
VS
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } &&
21408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_lib_tiff_TIFFError=yes
21415else
21416 echo "$as_me: failed program was:" >&5
21417sed 's/^/| /' conftest.$ac_ext >&5
21418
21419ac_cv_lib_tiff_TIFFError=no
21420fi
ac1cb8d3
VS
21421rm -f conftest.err conftest.$ac_objext \
21422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21423LIBS=$ac_check_lib_save_LIBS
21424fi
21425echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21426echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21427if test $ac_cv_lib_tiff_TIFFError = yes; then
21428 TIFF_LINK=" -ltiff"
21429fi
21430
21431
21432
21433fi
21434
21435
21436
21437 if test "x$TIFF_LINK" = "x" ; then
21438 if test "$wxUSE_LIBTIFF" = "sys" ; then
21439 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21440echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21441 { (exit 1); exit 1; }; }
21442 else
21443 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21444echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21445 wxUSE_LIBTIFF=builtin
21446 fi
21447 else
21448 wxUSE_LIBTIFF=sys
21449 fi
21450 fi
21451fi
21452
21453
21454if test "$wxUSE_EXPAT" != "no"; then
21455 wxUSE_XML=yes
21456 cat >>confdefs.h <<\_ACEOF
21457#define wxUSE_EXPAT 1
21458_ACEOF
21459
21460 cat >>confdefs.h <<\_ACEOF
21461#define wxUSE_XML 1
21462_ACEOF
21463
21464
21465 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21466 if test "${ac_cv_header_expat_h+set}" = set; then
21467 echo "$as_me:$LINENO: checking for expat.h" >&5
21468echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21469if test "${ac_cv_header_expat_h+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471fi
21472echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21473echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21474else
21475 # Is the header compilable?
21476echo "$as_me:$LINENO: checking expat.h usability" >&5
21477echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21478cat >conftest.$ac_ext <<_ACEOF
21479/* confdefs.h. */
21480_ACEOF
21481cat confdefs.h >>conftest.$ac_ext
21482cat >>conftest.$ac_ext <<_ACEOF
21483/* end confdefs.h. */
21484$ac_includes_default
21485#include <expat.h>
21486_ACEOF
21487rm -f conftest.$ac_objext
21488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21489 (eval $ac_compile) 2>conftest.er1
a848cd7e 21490 ac_status=$?
ac1cb8d3
VS
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
a848cd7e
SC
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
9a8f0513
VS
21496 { ac_try='test -z "$ac_c_werror_flag"
21497 || test ! -s conftest.err'
ac1cb8d3
VS
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_header_compiler=yes
21510else
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514ac_header_compiler=no
21515fi
ac1cb8d3 21516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21518echo "${ECHO_T}$ac_header_compiler" >&6
21519
21520# Is the header present?
21521echo "$as_me:$LINENO: checking expat.h presence" >&5
21522echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21523cat >conftest.$ac_ext <<_ACEOF
21524/* confdefs.h. */
21525_ACEOF
21526cat confdefs.h >>conftest.$ac_ext
21527cat >>conftest.$ac_ext <<_ACEOF
21528/* end confdefs.h. */
21529#include <expat.h>
21530_ACEOF
21531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } >/dev/null; then
21539 if test -s conftest.err; then
21540 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21542 else
21543 ac_cpp_err=
21544 fi
21545else
21546 ac_cpp_err=yes
21547fi
21548if test -z "$ac_cpp_err"; then
21549 ac_header_preproc=yes
21550else
21551 echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554 ac_header_preproc=no
21555fi
21556rm -f conftest.err conftest.$ac_ext
21557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21558echo "${ECHO_T}$ac_header_preproc" >&6
21559
21560# So? What about this header?
ac1cb8d3
VS
21561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21562 yes:no: )
a848cd7e
SC
21563 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21564echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21565 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21566echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21567 ac_header_preproc=yes
a848cd7e 21568 ;;
ac1cb8d3 21569 no:yes:* )
a848cd7e
SC
21570 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21571echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21572 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21573echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21574 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21575echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21577echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21578 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21579echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21580 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21581echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21582 (
21583 cat <<\_ASBOX
ac1cb8d3
VS
21584## ----------------------------------------- ##
21585## Report this to wx-dev@lists.wxwidgets.org ##
21586## ----------------------------------------- ##
a848cd7e
SC
21587_ASBOX
21588 ) |
21589 sed "s/^/$as_me: WARNING: /" >&2
21590 ;;
21591esac
21592echo "$as_me:$LINENO: checking for expat.h" >&5
21593echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21594if test "${ac_cv_header_expat_h+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596else
21597 ac_cv_header_expat_h=$ac_header_preproc
21598fi
21599echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21600echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21601
21602fi
21603if test $ac_cv_header_expat_h = yes; then
21604 found_expat_h=1
21605fi
21606
21607
21608 if test "x$found_expat_h" = "x1"; then
21609 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21610echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21611if test "${wx_cv_expat_is_not_broken+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613else
21614
21615
21616
21617 ac_ext=cc
21618ac_cpp='$CXXCPP $CPPFLAGS'
21619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21622
21623 cat >conftest.$ac_ext <<_ACEOF
21624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
21629#include <expat.h>
21630int
21631main ()
21632{
21633
21634 ;
21635 return 0;
21636}
21637_ACEOF
21638rm -f conftest.$ac_objext
21639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21640 (eval $ac_compile) 2>conftest.er1
a848cd7e 21641 ac_status=$?
ac1cb8d3
VS
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
a848cd7e
SC
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
9a8f0513
VS
21647 { ac_try='test -z "$ac_cxx_werror_flag"
21648 || test ! -s conftest.err'
ac1cb8d3
VS
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; } &&
21654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 wx_cv_expat_is_not_broken=yes
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665wx_cv_expat_is_not_broken=no
21666
21667fi
ac1cb8d3 21668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21669 ac_ext=c
21670ac_cpp='$CPP $CPPFLAGS'
21671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21673ac_compiler_gnu=$ac_cv_c_compiler_gnu
21674
21675
21676
21677fi
21678echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21679echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21680 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21681 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21682echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21683if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21685else
21686 ac_check_lib_save_LIBS=$LIBS
21687LIBS="-lexpat $LIBS"
21688cat >conftest.$ac_ext <<_ACEOF
21689/* confdefs.h. */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h. */
21694
21695/* Override any gcc2 internal prototype to avoid an error. */
21696#ifdef __cplusplus
21697extern "C"
21698#endif
21699/* We use char because int might match the return type of a gcc2
21700 builtin and then its argument prototype would still apply. */
21701char XML_ParserCreate ();
21702int
21703main ()
21704{
21705XML_ParserCreate ();
21706 ;
21707 return 0;
21708}
21709_ACEOF
21710rm -f conftest.$ac_objext conftest$ac_exeext
21711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21712 (eval $ac_link) 2>conftest.er1
a848cd7e 21713 ac_status=$?
ac1cb8d3
VS
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
a848cd7e
SC
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } &&
9a8f0513
VS
21719 { ac_try='test -z "$ac_c_werror_flag"
21720 || test ! -s conftest.err'
ac1cb8d3
VS
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } &&
21726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; }; then
21732 ac_cv_lib_expat_XML_ParserCreate=yes
21733else
21734 echo "$as_me: failed program was:" >&5
21735sed 's/^/| /' conftest.$ac_ext >&5
21736
21737ac_cv_lib_expat_XML_ParserCreate=no
21738fi
ac1cb8d3
VS
21739rm -f conftest.err conftest.$ac_objext \
21740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21741LIBS=$ac_check_lib_save_LIBS
21742fi
21743echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21744echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21745if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21746 EXPAT_LINK=" -lexpat"
21747fi
21748
21749 fi
21750 fi
21751 if test "x$EXPAT_LINK" = "x" ; then
21752 if test "$wxUSE_EXPAT" = "sys" ; then
21753 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21754echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21755 { (exit 1); exit 1; }; }
21756 else
21757 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21758echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21759 wxUSE_EXPAT=builtin
21760 fi
21761 else
21762 wxUSE_EXPAT=sys
21763 fi
21764 fi
21765 if test "$wxUSE_EXPAT" = "builtin" ; then
21766
21767
21768subdirs="$subdirs src/expat"
21769
21770 fi
21771fi
21772
21773
21774
21775if test "$wxUSE_LIBMSPACK" != "no"; then
21776
21777 if test "${ac_cv_header_mspack_h+set}" = set; then
21778 echo "$as_me:$LINENO: checking for mspack.h" >&5
21779echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21780if test "${ac_cv_header_mspack_h+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21782fi
21783echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21784echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21785else
21786 # Is the header compilable?
21787echo "$as_me:$LINENO: checking mspack.h usability" >&5
21788echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21789cat >conftest.$ac_ext <<_ACEOF
21790/* confdefs.h. */
21791_ACEOF
21792cat confdefs.h >>conftest.$ac_ext
21793cat >>conftest.$ac_ext <<_ACEOF
21794/* end confdefs.h. */
21795$ac_includes_default
21796#include <mspack.h>
21797_ACEOF
21798rm -f conftest.$ac_objext
21799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21800 (eval $ac_compile) 2>conftest.er1
a848cd7e 21801 ac_status=$?
ac1cb8d3
VS
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
a848cd7e
SC
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
9a8f0513
VS
21807 { ac_try='test -z "$ac_c_werror_flag"
21808 || test ! -s conftest.err'
ac1cb8d3
VS
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_header_compiler=yes
21821else
21822 echo "$as_me: failed program was:" >&5
21823sed 's/^/| /' conftest.$ac_ext >&5
21824
21825ac_header_compiler=no
21826fi
ac1cb8d3 21827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21828echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21829echo "${ECHO_T}$ac_header_compiler" >&6
21830
21831# Is the header present?
21832echo "$as_me:$LINENO: checking mspack.h presence" >&5
21833echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21834cat >conftest.$ac_ext <<_ACEOF
21835/* confdefs.h. */
21836_ACEOF
21837cat confdefs.h >>conftest.$ac_ext
21838cat >>conftest.$ac_ext <<_ACEOF
21839/* end confdefs.h. */
21840#include <mspack.h>
21841_ACEOF
21842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21844 ac_status=$?
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } >/dev/null; then
21850 if test -s conftest.err; then
21851 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21853 else
21854 ac_cpp_err=
21855 fi
21856else
21857 ac_cpp_err=yes
21858fi
21859if test -z "$ac_cpp_err"; then
21860 ac_header_preproc=yes
21861else
21862 echo "$as_me: failed program was:" >&5
21863sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ac_header_preproc=no
21866fi
21867rm -f conftest.err conftest.$ac_ext
21868echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21869echo "${ECHO_T}$ac_header_preproc" >&6
21870
21871# So? What about this header?
ac1cb8d3
VS
21872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21873 yes:no: )
a848cd7e
SC
21874 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21875echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21876 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21877echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21878 ac_header_preproc=yes
a848cd7e 21879 ;;
ac1cb8d3 21880 no:yes:* )
a848cd7e
SC
21881 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21882echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21883 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21884echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21886echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21888echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21889 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21890echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21891 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21892echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21893 (
21894 cat <<\_ASBOX
ac1cb8d3
VS
21895## ----------------------------------------- ##
21896## Report this to wx-dev@lists.wxwidgets.org ##
21897## ----------------------------------------- ##
a848cd7e
SC
21898_ASBOX
21899 ) |
21900 sed "s/^/$as_me: WARNING: /" >&2
21901 ;;
21902esac
21903echo "$as_me:$LINENO: checking for mspack.h" >&5
21904echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21905if test "${ac_cv_header_mspack_h+set}" = set; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
21907else
21908 ac_cv_header_mspack_h=$ac_header_preproc
21909fi
21910echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21911echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21912
21913fi
21914if test $ac_cv_header_mspack_h = yes; then
21915 found_mspack_h=1
21916fi
21917
21918
21919 if test "x$found_mspack_h" = "x1"; then
21920 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21921echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21922if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924else
21925 ac_check_lib_save_LIBS=$LIBS
21926LIBS="-lmspack $LIBS"
21927cat >conftest.$ac_ext <<_ACEOF
21928/* confdefs.h. */
21929_ACEOF
21930cat confdefs.h >>conftest.$ac_ext
21931cat >>conftest.$ac_ext <<_ACEOF
21932/* end confdefs.h. */
21933
21934/* Override any gcc2 internal prototype to avoid an error. */
21935#ifdef __cplusplus
21936extern "C"
21937#endif
21938/* We use char because int might match the return type of a gcc2
21939 builtin and then its argument prototype would still apply. */
21940char mspack_create_chm_decompressor ();
21941int
21942main ()
21943{
21944mspack_create_chm_decompressor ();
21945 ;
21946 return 0;
21947}
21948_ACEOF
21949rm -f conftest.$ac_objext conftest$ac_exeext
21950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21951 (eval $ac_link) 2>conftest.er1
a848cd7e 21952 ac_status=$?
ac1cb8d3
VS
21953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
a848cd7e
SC
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } &&
9a8f0513
VS
21958 { ac_try='test -z "$ac_c_werror_flag"
21959 || test ! -s conftest.err'
ac1cb8d3
VS
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; } &&
21965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21972else
21973 echo "$as_me: failed program was:" >&5
21974sed 's/^/| /' conftest.$ac_ext >&5
21975
21976ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21977fi
ac1cb8d3
VS
21978rm -f conftest.err conftest.$ac_objext \
21979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21980LIBS=$ac_check_lib_save_LIBS
21981fi
21982echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21983echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21984if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21985 MSPACK_LINK=" -lmspack"
21986fi
21987
21988 fi
21989 if test "x$MSPACK_LINK" = "x" ; then
21990 wxUSE_LIBMSPACK=no
21991 else
21992 cat >>confdefs.h <<\_ACEOF
21993#define wxUSE_LIBMSPACK 1
21994_ACEOF
21995
21996 fi
21997fi
21998
21999
22000
22001AFMINSTALL=
22002WIN32INSTALL=
22003
22004TOOLKIT=
22005TOOLKIT_INCLUDE=
22006WIDGET_SET=
22007
22008if test "$USE_WIN32" = 1 ; then
22009
22010for ac_header in w32api.h
22011do
22012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22013if eval "test \"\${$as_ac_Header+set}\" = set"; then
22014 echo "$as_me:$LINENO: checking for $ac_header" >&5
22015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22016if eval "test \"\${$as_ac_Header+set}\" = set"; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018fi
22019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22021else
22022 # Is the header compilable?
22023echo "$as_me:$LINENO: checking $ac_header usability" >&5
22024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22025cat >conftest.$ac_ext <<_ACEOF
22026/* confdefs.h. */
22027_ACEOF
22028cat confdefs.h >>conftest.$ac_ext
22029cat >>conftest.$ac_ext <<_ACEOF
22030/* end confdefs.h. */
22031$ac_includes_default
22032#include <$ac_header>
22033_ACEOF
22034rm -f conftest.$ac_objext
22035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22036 (eval $ac_compile) 2>conftest.er1
a848cd7e 22037 ac_status=$?
ac1cb8d3
VS
22038 grep -v '^ *+' conftest.er1 >conftest.err
22039 rm -f conftest.er1
22040 cat conftest.err >&5
a848cd7e
SC
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } &&
9a8f0513
VS
22043 { ac_try='test -z "$ac_c_werror_flag"
22044 || test ! -s conftest.err'
ac1cb8d3
VS
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; } &&
22050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; }; then
22056 ac_header_compiler=yes
22057else
22058 echo "$as_me: failed program was:" >&5
22059sed 's/^/| /' conftest.$ac_ext >&5
22060
22061ac_header_compiler=no
22062fi
ac1cb8d3 22063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22065echo "${ECHO_T}$ac_header_compiler" >&6
22066
22067# Is the header present?
22068echo "$as_me:$LINENO: checking $ac_header presence" >&5
22069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22070cat >conftest.$ac_ext <<_ACEOF
22071/* confdefs.h. */
22072_ACEOF
22073cat confdefs.h >>conftest.$ac_ext
22074cat >>conftest.$ac_ext <<_ACEOF
22075/* end confdefs.h. */
22076#include <$ac_header>
22077_ACEOF
22078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } >/dev/null; then
22086 if test -s conftest.err; then
22087 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22089 else
22090 ac_cpp_err=
22091 fi
22092else
22093 ac_cpp_err=yes
22094fi
22095if test -z "$ac_cpp_err"; then
22096 ac_header_preproc=yes
22097else
22098 echo "$as_me: failed program was:" >&5
22099sed 's/^/| /' conftest.$ac_ext >&5
22100
22101 ac_header_preproc=no
22102fi
22103rm -f conftest.err conftest.$ac_ext
22104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22105echo "${ECHO_T}$ac_header_preproc" >&6
22106
22107# So? What about this header?
ac1cb8d3
VS
22108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22109 yes:no: )
a848cd7e
SC
22110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22111echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22113echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22114 ac_header_preproc=yes
a848cd7e 22115 ;;
ac1cb8d3 22116 no:yes:* )
a848cd7e
SC
22117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22120echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22122echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22124echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22126echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22128echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22129 (
22130 cat <<\_ASBOX
ac1cb8d3
VS
22131## ----------------------------------------- ##
22132## Report this to wx-dev@lists.wxwidgets.org ##
22133## ----------------------------------------- ##
a848cd7e
SC
22134_ASBOX
22135 ) |
22136 sed "s/^/$as_me: WARNING: /" >&2
22137 ;;
22138esac
22139echo "$as_me:$LINENO: checking for $ac_header" >&5
22140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22141if eval "test \"\${$as_ac_Header+set}\" = set"; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22143else
ac1cb8d3 22144 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22145fi
22146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22148
22149fi
22150if test `eval echo '${'$as_ac_Header'}'` = yes; then
22151 cat >>confdefs.h <<_ACEOF
22152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22153_ACEOF
22154
22155fi
22156
22157done
22158
22159 if test "${ac_cv_header_windows_h+set}" = set; then
22160 echo "$as_me:$LINENO: checking for windows.h" >&5
22161echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22162if test "${ac_cv_header_windows_h+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164fi
22165echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22166echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22167else
22168 # Is the header compilable?
22169echo "$as_me:$LINENO: checking windows.h usability" >&5
22170echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22171cat >conftest.$ac_ext <<_ACEOF
22172/* confdefs.h. */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h. */
22177$ac_includes_default
22178#include <windows.h>
22179_ACEOF
22180rm -f conftest.$ac_objext
22181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22182 (eval $ac_compile) 2>conftest.er1
a848cd7e 22183 ac_status=$?
ac1cb8d3
VS
22184 grep -v '^ *+' conftest.er1 >conftest.err
22185 rm -f conftest.er1
22186 cat conftest.err >&5
a848cd7e
SC
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } &&
9a8f0513
VS
22189 { ac_try='test -z "$ac_c_werror_flag"
22190 || test ! -s conftest.err'
ac1cb8d3
VS
22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; } &&
22196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22199 ac_status=$?
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 ac_header_compiler=yes
22203else
22204 echo "$as_me: failed program was:" >&5
22205sed 's/^/| /' conftest.$ac_ext >&5
22206
22207ac_header_compiler=no
22208fi
ac1cb8d3 22209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22210echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22211echo "${ECHO_T}$ac_header_compiler" >&6
22212
22213# Is the header present?
22214echo "$as_me:$LINENO: checking windows.h presence" >&5
22215echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22216cat >conftest.$ac_ext <<_ACEOF
22217/* confdefs.h. */
22218_ACEOF
22219cat confdefs.h >>conftest.$ac_ext
22220cat >>conftest.$ac_ext <<_ACEOF
22221/* end confdefs.h. */
22222#include <windows.h>
22223_ACEOF
22224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22226 ac_status=$?
22227 grep -v '^ *+' conftest.er1 >conftest.err
22228 rm -f conftest.er1
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } >/dev/null; then
22232 if test -s conftest.err; then
22233 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22235 else
22236 ac_cpp_err=
22237 fi
22238else
22239 ac_cpp_err=yes
22240fi
22241if test -z "$ac_cpp_err"; then
22242 ac_header_preproc=yes
22243else
22244 echo "$as_me: failed program was:" >&5
22245sed 's/^/| /' conftest.$ac_ext >&5
22246
22247 ac_header_preproc=no
22248fi
22249rm -f conftest.err conftest.$ac_ext
22250echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22251echo "${ECHO_T}$ac_header_preproc" >&6
22252
22253# So? What about this header?
ac1cb8d3
VS
22254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22255 yes:no: )
a848cd7e
SC
22256 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22257echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22258 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22259echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22260 ac_header_preproc=yes
a848cd7e 22261 ;;
ac1cb8d3 22262 no:yes:* )
a848cd7e
SC
22263 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22264echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22265 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22266echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22267 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22268echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22269 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22270echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22271 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22272echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22273 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22274echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22275 (
22276 cat <<\_ASBOX
ac1cb8d3
VS
22277## ----------------------------------------- ##
22278## Report this to wx-dev@lists.wxwidgets.org ##
22279## ----------------------------------------- ##
a848cd7e
SC
22280_ASBOX
22281 ) |
22282 sed "s/^/$as_me: WARNING: /" >&2
22283 ;;
22284esac
22285echo "$as_me:$LINENO: checking for windows.h" >&5
22286echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22287if test "${ac_cv_header_windows_h+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290 ac_cv_header_windows_h=$ac_header_preproc
22291fi
22292echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22293echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22294
22295fi
22296if test $ac_cv_header_windows_h = yes; then
22297 :
22298else
22299
22300 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22301echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22302 { (exit 1); exit 1; }; }
22303
22304fi
22305
22306
22307
22308 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22309
22310 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22311 LIBS="$LIBS -loleacc"
22312 fi
22313
22314 case "${host}" in
22315 *-*-cygwin* )
22316 LIBS="$LIBS -lkernel32 -luser32"
22317 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22318 esac
22319
22320 if test "$wxUSE_ODBC" = "sys" ; then
22321 wxUSE_ODBC = "yes"
22322 fi
22323 if test "$wxUSE_ODBC" = "yes" ; then
22324 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22325 cat >>confdefs.h <<\_ACEOF
22326#define wxUSE_ODBC 1
22327_ACEOF
22328
22329 fi
22330
22331 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22332 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22333
22334 WIN32INSTALL=win32install
22335fi
22336
22337if test "$wxUSE_GUI" = "yes"; then
22338 USE_GUI=1
22339
22340 GUI_TK_LIBRARY=
22341
22342 WXGTK12=
22343 WXGTK127=
22344 WXGTK20=
22345 WXGPE=
22346
22347 if test "$wxUSE_MSW" = 1 ; then
22348 TOOLKIT=MSW
22349 GUIDIST=MSW_DIST
22350
22351 case "${host}" in
22352 *-*-mingw32* )
22353 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22354 esac
22355 fi
22356
22357 if test "$wxUSE_GTK" = 1; then
22358 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22359echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22360
22361 gtk_version_cached=1
22362 if test "${wx_cv_lib_gtk+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22364else
22365
22366 gtk_version_cached=0
22367 echo "$as_me:$LINENO: result: " >&5
22368echo "${ECHO_T}" >&6
22369
22370 GTK_MODULES=
22371 if test "$wxUSE_THREADS" = "yes"; then
22372 GTK_MODULES=gthread
22373 fi
22374
22375 wx_cv_lib_gtk=
22376 if test "x$wxUSE_GTK2" = "xyes"; then
22377 # Check whether --enable-gtktest or --disable-gtktest was given.
22378if test "${enable_gtktest+set}" = set; then
22379 enableval="$enable_gtktest"
22380
22381else
22382 enable_gtktest=yes
22383fi;
22384
22385 pkg_config_args=gtk+-2.0
22386 for module in . $GTK_MODULES
22387 do
22388 case "$module" in
22389 gthread)
22390 pkg_config_args="$pkg_config_args gthread-2.0"
22391 ;;
22392 esac
22393 done
22394
22395 no_gtk=""
22396
22397 # Extract the first word of "pkg-config", so it can be a program name with args.
22398set dummy pkg-config; ac_word=$2
22399echo "$as_me:$LINENO: checking for $ac_word" >&5
22400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22401if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403else
22404 case $PKG_CONFIG in
22405 [\\/]* | ?:[\\/]*)
22406 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22407 ;;
22408 *)
22409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22410for as_dir in $PATH
22411do
22412 IFS=$as_save_IFS
22413 test -z "$as_dir" && as_dir=.
22414 for ac_exec_ext in '' $ac_executable_extensions; do
22415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22416 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22418 break 2
22419 fi
22420done
22421done
22422
22423 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22424 ;;
22425esac
22426fi
22427PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22428
22429if test -n "$PKG_CONFIG"; then
22430 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22431echo "${ECHO_T}$PKG_CONFIG" >&6
22432else
22433 echo "$as_me:$LINENO: result: no" >&5
22434echo "${ECHO_T}no" >&6
22435fi
22436
22437
22438 if test x$PKG_CONFIG != xno ; then
22439 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22440 :
22441 else
c2218763 22442 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22443 no_gtk=yes
22444 PKG_CONFIG=no
22445 fi
22446 else
22447 no_gtk=yes
22448 fi
22449
22450 min_gtk_version=2.0.0
22451 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22452echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22453
22454 if test x$PKG_CONFIG != xno ; then
22455 ## don't try to run the test against uninstalled libtool libs
22456 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22457 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22458 enable_gtktest=no
22459 fi
22460
22461 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22462 :
22463 else
22464 no_gtk=yes
22465 fi
22466 fi
22467
22468 if test x"$no_gtk" = x ; then
22469 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22470 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22471 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22472 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22473 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22474 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22475 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22476 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22477 if test "x$enable_gtktest" = "xyes" ; then
22478 ac_save_CFLAGS="$CFLAGS"
22479 ac_save_LIBS="$LIBS"
22480 CFLAGS="$CFLAGS $GTK_CFLAGS"
22481 LIBS="$GTK_LIBS $LIBS"
22482 rm -f conf.gtktest
22483 if test "$cross_compiling" = yes; then
22484 echo $ac_n "cross compiling; assumed OK... $ac_c"
22485else
22486 cat >conftest.$ac_ext <<_ACEOF
22487/* confdefs.h. */
22488_ACEOF
22489cat confdefs.h >>conftest.$ac_ext
22490cat >>conftest.$ac_ext <<_ACEOF
22491/* end confdefs.h. */
22492
22493#include <gtk/gtk.h>
22494#include <stdio.h>
22495#include <stdlib.h>
22496
22497int
22498main ()
22499{
22500 int major, minor, micro;
22501 char *tmp_version;
22502
22503 system ("touch conf.gtktest");
22504
22505 /* HP/UX 9 (%@#!) writes to sscanf strings */
22506 tmp_version = g_strdup("$min_gtk_version");
22507 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22508 printf("%s, bad version string\n", "$min_gtk_version");
22509 exit(1);
22510 }
22511
22512 if ((gtk_major_version != $gtk_config_major_version) ||
22513 (gtk_minor_version != $gtk_config_minor_version) ||
22514 (gtk_micro_version != $gtk_config_micro_version))
22515 {
22516 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22517 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22518 gtk_major_version, gtk_minor_version, gtk_micro_version);
22519 printf ("*** was found! If pkg-config was correct, then it is best\n");
22520 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22521 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22522 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22523 printf("*** required on your system.\n");
22524 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22525 printf("*** to point to the correct configuration files\n");
22526 }
22527 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22528 (gtk_minor_version != GTK_MINOR_VERSION) ||
22529 (gtk_micro_version != GTK_MICRO_VERSION))
22530 {
22531 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22532 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22533 printf("*** library (version %d.%d.%d)\n",
22534 gtk_major_version, gtk_minor_version, gtk_micro_version);
22535 }
22536 else
22537 {
22538 if ((gtk_major_version > major) ||
22539 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22540 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22541 {
22542 return 0;
22543 }
22544 else
22545 {
22546 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22547 gtk_major_version, gtk_minor_version, gtk_micro_version);
22548 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22549 major, minor, micro);
22550 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22551 printf("***\n");
22552 printf("*** If you have already installed a sufficiently new version, this error\n");
22553 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22554 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22555 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22556 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22557 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22558 printf("*** so that the correct libraries are found at run-time))\n");
22559 }
22560 }
22561 return 1;
22562}
22563
22564_ACEOF
22565rm -f conftest$ac_exeext
22566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22567 (eval $ac_link) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 :
22577else
22578 echo "$as_me: program exited with status $ac_status" >&5
22579echo "$as_me: failed program was:" >&5
22580sed 's/^/| /' conftest.$ac_ext >&5
22581
22582( exit $ac_status )
22583no_gtk=yes
22584fi
ac1cb8d3 22585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22586fi
22587 CFLAGS="$ac_save_CFLAGS"
22588 LIBS="$ac_save_LIBS"
22589 fi
22590 fi
22591 if test "x$no_gtk" = x ; then
22592 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22593echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22594 wx_cv_lib_gtk=2.0
22595 else
22596 echo "$as_me:$LINENO: result: no" >&5
22597echo "${ECHO_T}no" >&6
22598 if test "$PKG_CONFIG" = "no" ; then
22599 echo "*** A new enough version of pkg-config was not found."
22600 echo "*** See http://pkgconfig.sourceforge.net"
22601 else
22602 if test -f conf.gtktest ; then
22603 :
22604 else
22605 echo "*** Could not run GTK+ test program, checking why..."
22606 ac_save_CFLAGS="$CFLAGS"
22607 ac_save_LIBS="$LIBS"
22608 CFLAGS="$CFLAGS $GTK_CFLAGS"
22609 LIBS="$LIBS $GTK_LIBS"
22610 cat >conftest.$ac_ext <<_ACEOF
22611/* confdefs.h. */
22612_ACEOF
22613cat confdefs.h >>conftest.$ac_ext
22614cat >>conftest.$ac_ext <<_ACEOF
22615/* end confdefs.h. */
22616
22617#include <gtk/gtk.h>
22618#include <stdio.h>
22619
22620int
22621main ()
22622{
22623 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22624 ;
22625 return 0;
22626}
22627_ACEOF
22628rm -f conftest.$ac_objext conftest$ac_exeext
22629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22630 (eval $ac_link) 2>conftest.er1
a848cd7e 22631 ac_status=$?
ac1cb8d3
VS
22632 grep -v '^ *+' conftest.er1 >conftest.err
22633 rm -f conftest.er1
22634 cat conftest.err >&5
a848cd7e
SC
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } &&
9a8f0513
VS
22637 { ac_try='test -z "$ac_c_werror_flag"
22638 || test ! -s conftest.err'
ac1cb8d3
VS
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; } &&
22644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 echo "*** The test program compiled, but did not run. This usually means"
22651 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22652 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22653 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22654 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22655 echo "*** is required on your system"
22656 echo "***"
22657 echo "*** If you have an old version installed, it is best to remove it, although"
22658 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22659else
22660 echo "$as_me: failed program was:" >&5
22661sed 's/^/| /' conftest.$ac_ext >&5
22662
22663 echo "*** The test program failed to compile or link. See the file config.log for the"
22664 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22665fi
ac1cb8d3
VS
22666rm -f conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22668 CFLAGS="$ac_save_CFLAGS"
22669 LIBS="$ac_save_LIBS"
22670 fi
22671 fi
22672 GTK_CFLAGS=""
22673 GTK_LIBS=""
22674 :
22675 fi
22676
22677
22678 rm -f conf.gtktest
22679
22680 else
22681
22682# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22683if test "${with_gtk_prefix+set}" = set; then
22684 withval="$with_gtk_prefix"
22685 gtk_config_prefix="$withval"
22686else
22687 gtk_config_prefix=""
22688fi;
22689
22690# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22691if test "${with_gtk_exec_prefix+set}" = set; then
22692 withval="$with_gtk_exec_prefix"
22693 gtk_config_exec_prefix="$withval"
22694else
22695 gtk_config_exec_prefix=""
22696fi;
22697# Check whether --enable-gtktest or --disable-gtktest was given.
22698if test "${enable_gtktest+set}" = set; then
22699 enableval="$enable_gtktest"
22700
22701else
22702 enable_gtktest=yes
22703fi;
22704
22705 for module in . $GTK_MODULES
22706 do
22707 case "$module" in
22708 gthread)
22709 gtk_config_args="$gtk_config_args gthread"
22710 ;;
22711 esac
22712 done
22713
22714 if test x$gtk_config_exec_prefix != x ; then
22715 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22716 if test x${GTK_CONFIG+set} != xset ; then
22717 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22718 fi
22719 fi
22720 if test x$gtk_config_prefix != x ; then
22721 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22722 if test x${GTK_CONFIG+set} != xset ; then
22723 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22724 fi
22725 fi
22726
22727 # Extract the first word of "gtk-config", so it can be a program name with args.
22728set dummy gtk-config; ac_word=$2
22729echo "$as_me:$LINENO: checking for $ac_word" >&5
22730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22731if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22733else
22734 case $GTK_CONFIG in
22735 [\\/]* | ?:[\\/]*)
22736 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22737 ;;
22738 *)
22739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22740for as_dir in $PATH
22741do
22742 IFS=$as_save_IFS
22743 test -z "$as_dir" && as_dir=.
22744 for ac_exec_ext in '' $ac_executable_extensions; do
22745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22746 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22748 break 2
22749 fi
22750done
22751done
22752
22753 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22754 ;;
22755esac
22756fi
22757GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22758
22759if test -n "$GTK_CONFIG"; then
22760 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22761echo "${ECHO_T}$GTK_CONFIG" >&6
22762else
22763 echo "$as_me:$LINENO: result: no" >&5
22764echo "${ECHO_T}no" >&6
22765fi
22766
22767 min_gtk_version=1.2.7
22768 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22769echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22770 no_gtk=""
22771 if test "$GTK_CONFIG" = "no" ; then
22772 no_gtk=yes
22773 else
22774 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22775 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22776 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22777 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22778 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22779 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22780 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22781 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22782 if test "x$enable_gtktest" = "xyes" ; then
22783 ac_save_CFLAGS="$CFLAGS"
22784 ac_save_LIBS="$LIBS"
22785 CFLAGS="$CFLAGS $GTK_CFLAGS"
22786 LIBS="$GTK_LIBS $LIBS"
22787 rm -f conf.gtktest
22788 if test "$cross_compiling" = yes; then
22789 echo $ac_n "cross compiling; assumed OK... $ac_c"
22790else
22791 cat >conftest.$ac_ext <<_ACEOF
22792/* confdefs.h. */
22793_ACEOF
22794cat confdefs.h >>conftest.$ac_ext
22795cat >>conftest.$ac_ext <<_ACEOF
22796/* end confdefs.h. */
22797
22798#include <gtk/gtk.h>
22799#include <stdio.h>
22800#include <stdlib.h>
22801
22802int
22803main ()
22804{
22805 int major, minor, micro;
22806 char *tmp_version;
22807
22808 system ("touch conf.gtktest");
22809
22810 /* HP/UX 9 (%@#!) writes to sscanf strings */
22811 tmp_version = g_strdup("$min_gtk_version");
22812 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22813 printf("%s, bad version string\n", "$min_gtk_version");
22814 exit(1);
22815 }
22816
22817 if ((gtk_major_version != $gtk_config_major_version) ||
22818 (gtk_minor_version != $gtk_config_minor_version) ||
22819 (gtk_micro_version != $gtk_config_micro_version))
22820 {
22821 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22822 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22823 gtk_major_version, gtk_minor_version, gtk_micro_version);
22824 printf ("*** was found! If gtk-config was correct, then it is best\n");
22825 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22826 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22827 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22828 printf("*** required on your system.\n");
22829 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22830 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22831 printf("*** before re-running configure\n");
22832 }
22833#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22834 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22835 (gtk_minor_version != GTK_MINOR_VERSION) ||
22836 (gtk_micro_version != GTK_MICRO_VERSION))
22837 {
22838 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22839 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22840 printf("*** library (version %d.%d.%d)\n",
22841 gtk_major_version, gtk_minor_version, gtk_micro_version);
22842 }
22843#endif /* defined (GTK_MAJOR_VERSION) ... */
22844 else
22845 {
22846 if ((gtk_major_version > major) ||
22847 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22848 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22849 {
22850 return 0;
22851 }
22852 else
22853 {
22854 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22855 gtk_major_version, gtk_minor_version, gtk_micro_version);
22856 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22857 major, minor, micro);
22858 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22859 printf("***\n");
22860 printf("*** If you have already installed a sufficiently new version, this error\n");
22861 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22862 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22863 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22864 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22865 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22866 printf("*** so that the correct libraries are found at run-time))\n");
22867 }
22868 }
22869 return 1;
22870}
22871
22872_ACEOF
22873rm -f conftest$ac_exeext
22874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22875 (eval $ac_link) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); }; }; then
22884 :
22885else
22886 echo "$as_me: program exited with status $ac_status" >&5
22887echo "$as_me: failed program was:" >&5
22888sed 's/^/| /' conftest.$ac_ext >&5
22889
22890( exit $ac_status )
22891no_gtk=yes
22892fi
ac1cb8d3 22893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22894fi
22895 CFLAGS="$ac_save_CFLAGS"
22896 LIBS="$ac_save_LIBS"
22897 fi
22898 fi
22899 if test "x$no_gtk" = x ; then
22900 echo "$as_me:$LINENO: result: yes" >&5
22901echo "${ECHO_T}yes" >&6
22902 wx_cv_lib_gtk=1.2.7
22903 else
22904 echo "$as_me:$LINENO: result: no" >&5
22905echo "${ECHO_T}no" >&6
22906 if test "$GTK_CONFIG" = "no" ; then
22907 echo "*** The gtk-config script installed by GTK could not be found"
22908 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22909 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22910 echo "*** full path to gtk-config."
22911 else
22912 if test -f conf.gtktest ; then
22913 :
22914 else
22915 echo "*** Could not run GTK test program, checking why..."
22916 CFLAGS="$CFLAGS $GTK_CFLAGS"
22917 LIBS="$LIBS $GTK_LIBS"
22918 cat >conftest.$ac_ext <<_ACEOF
22919/* confdefs.h. */
22920_ACEOF
22921cat confdefs.h >>conftest.$ac_ext
22922cat >>conftest.$ac_ext <<_ACEOF
22923/* end confdefs.h. */
22924
22925#include <gtk/gtk.h>
22926#include <stdio.h>
22927
22928int
22929main ()
22930{
22931 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22932 ;
22933 return 0;
22934}
22935_ACEOF
22936rm -f conftest.$ac_objext conftest$ac_exeext
22937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22938 (eval $ac_link) 2>conftest.er1
a848cd7e 22939 ac_status=$?
ac1cb8d3
VS
22940 grep -v '^ *+' conftest.er1 >conftest.err
22941 rm -f conftest.er1
22942 cat conftest.err >&5
a848cd7e
SC
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } &&
9a8f0513
VS
22945 { ac_try='test -z "$ac_c_werror_flag"
22946 || test ! -s conftest.err'
ac1cb8d3
VS
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; } &&
22952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); }; }; then
22958 echo "*** The test program compiled, but did not run. This usually means"
22959 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22960 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22961 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22962 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22963 echo "*** is required on your system"
22964 echo "***"
22965 echo "*** If you have an old version installed, it is best to remove it, although"
22966 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22967 echo "***"
22968 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22969 echo "*** came with the system with the command"
22970 echo "***"
22971 echo "*** rpm --erase --nodeps gtk gtk-devel"
22972else
22973 echo "$as_me: failed program was:" >&5
22974sed 's/^/| /' conftest.$ac_ext >&5
22975
22976 echo "*** The test program failed to compile or link. See the file config.log for the"
22977 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22978 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22979 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22980fi
ac1cb8d3
VS
22981rm -f conftest.err conftest.$ac_objext \
22982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22983 CFLAGS="$ac_save_CFLAGS"
22984 LIBS="$ac_save_LIBS"
22985 fi
22986 fi
22987 GTK_CFLAGS=""
22988 GTK_LIBS=""
22989 :
22990 fi
22991
22992
22993 rm -f conf.gtktest
22994
22995
22996 if test -z "$wx_cv_lib_gtk"; then
22997
22998# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22999if test "${with_gtk_prefix+set}" = set; then
23000 withval="$with_gtk_prefix"
23001 gtk_config_prefix="$withval"
23002else
23003 gtk_config_prefix=""
23004fi;
23005
23006# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23007if test "${with_gtk_exec_prefix+set}" = set; then
23008 withval="$with_gtk_exec_prefix"
23009 gtk_config_exec_prefix="$withval"
23010else
23011 gtk_config_exec_prefix=""
23012fi;
23013# Check whether --enable-gtktest or --disable-gtktest was given.
23014if test "${enable_gtktest+set}" = set; then
23015 enableval="$enable_gtktest"
23016
23017else
23018 enable_gtktest=yes
23019fi;
23020
23021 for module in . $GTK_MODULES
23022 do
23023 case "$module" in
23024 gthread)
23025 gtk_config_args="$gtk_config_args gthread"
23026 ;;
23027 esac
23028 done
23029
23030 if test x$gtk_config_exec_prefix != x ; then
23031 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23032 if test x${GTK_CONFIG+set} != xset ; then
23033 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23034 fi
23035 fi
23036 if test x$gtk_config_prefix != x ; then
23037 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23038 if test x${GTK_CONFIG+set} != xset ; then
23039 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23040 fi
23041 fi
23042
23043 # Extract the first word of "gtk-config", so it can be a program name with args.
23044set dummy gtk-config; ac_word=$2
23045echo "$as_me:$LINENO: checking for $ac_word" >&5
23046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23047if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23049else
23050 case $GTK_CONFIG in
23051 [\\/]* | ?:[\\/]*)
23052 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23053 ;;
23054 *)
23055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23056for as_dir in $PATH
23057do
23058 IFS=$as_save_IFS
23059 test -z "$as_dir" && as_dir=.
23060 for ac_exec_ext in '' $ac_executable_extensions; do
23061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23062 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23064 break 2
23065 fi
23066done
23067done
23068
23069 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23070 ;;
23071esac
23072fi
23073GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23074
23075if test -n "$GTK_CONFIG"; then
23076 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23077echo "${ECHO_T}$GTK_CONFIG" >&6
23078else
23079 echo "$as_me:$LINENO: result: no" >&5
23080echo "${ECHO_T}no" >&6
23081fi
23082
23083 min_gtk_version=1.2.3
23084 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23085echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23086 no_gtk=""
23087 if test "$GTK_CONFIG" = "no" ; then
23088 no_gtk=yes
23089 else
23090 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23091 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23092 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23093 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23094 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23095 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23096 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23097 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23098 if test "x$enable_gtktest" = "xyes" ; then
23099 ac_save_CFLAGS="$CFLAGS"
23100 ac_save_LIBS="$LIBS"
23101 CFLAGS="$CFLAGS $GTK_CFLAGS"
23102 LIBS="$GTK_LIBS $LIBS"
23103 rm -f conf.gtktest
23104 if test "$cross_compiling" = yes; then
23105 echo $ac_n "cross compiling; assumed OK... $ac_c"
23106else
23107 cat >conftest.$ac_ext <<_ACEOF
23108/* confdefs.h. */
23109_ACEOF
23110cat confdefs.h >>conftest.$ac_ext
23111cat >>conftest.$ac_ext <<_ACEOF
23112/* end confdefs.h. */
23113
23114#include <gtk/gtk.h>
23115#include <stdio.h>
23116#include <stdlib.h>
23117
23118int
23119main ()
23120{
23121 int major, minor, micro;
23122 char *tmp_version;
23123
23124 system ("touch conf.gtktest");
23125
23126 /* HP/UX 9 (%@#!) writes to sscanf strings */
23127 tmp_version = g_strdup("$min_gtk_version");
23128 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23129 printf("%s, bad version string\n", "$min_gtk_version");
23130 exit(1);
23131 }
23132
23133 if ((gtk_major_version != $gtk_config_major_version) ||
23134 (gtk_minor_version != $gtk_config_minor_version) ||
23135 (gtk_micro_version != $gtk_config_micro_version))
23136 {
23137 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23138 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23139 gtk_major_version, gtk_minor_version, gtk_micro_version);
23140 printf ("*** was found! If gtk-config was correct, then it is best\n");
23141 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23142 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23143 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23144 printf("*** required on your system.\n");
23145 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23146 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23147 printf("*** before re-running configure\n");
23148 }
23149#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23150 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23151 (gtk_minor_version != GTK_MINOR_VERSION) ||
23152 (gtk_micro_version != GTK_MICRO_VERSION))
23153 {
23154 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23155 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23156 printf("*** library (version %d.%d.%d)\n",
23157 gtk_major_version, gtk_minor_version, gtk_micro_version);
23158 }
23159#endif /* defined (GTK_MAJOR_VERSION) ... */
23160 else
23161 {
23162 if ((gtk_major_version > major) ||
23163 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23164 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23165 {
23166 return 0;
23167 }
23168 else
23169 {
23170 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23171 gtk_major_version, gtk_minor_version, gtk_micro_version);
23172 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23173 major, minor, micro);
23174 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23175 printf("***\n");
23176 printf("*** If you have already installed a sufficiently new version, this error\n");
23177 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23178 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23179 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23180 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23181 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23182 printf("*** so that the correct libraries are found at run-time))\n");
23183 }
23184 }
23185 return 1;
23186}
23187
23188_ACEOF
23189rm -f conftest$ac_exeext
23190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23191 (eval $ac_link) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196 (eval $ac_try) 2>&5
23197 ac_status=$?
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 :
23201else
23202 echo "$as_me: program exited with status $ac_status" >&5
23203echo "$as_me: failed program was:" >&5
23204sed 's/^/| /' conftest.$ac_ext >&5
23205
23206( exit $ac_status )
23207no_gtk=yes
23208fi
ac1cb8d3 23209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23210fi
23211 CFLAGS="$ac_save_CFLAGS"
23212 LIBS="$ac_save_LIBS"
23213 fi
23214 fi
23215 if test "x$no_gtk" = x ; then
23216 echo "$as_me:$LINENO: result: yes" >&5
23217echo "${ECHO_T}yes" >&6
23218 wx_cv_lib_gtk=1.2.3
23219 else
23220 echo "$as_me:$LINENO: result: no" >&5
23221echo "${ECHO_T}no" >&6
23222 if test "$GTK_CONFIG" = "no" ; then
23223 echo "*** The gtk-config script installed by GTK could not be found"
23224 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23225 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23226 echo "*** full path to gtk-config."
23227 else
23228 if test -f conf.gtktest ; then
23229 :
23230 else
23231 echo "*** Could not run GTK test program, checking why..."
23232 CFLAGS="$CFLAGS $GTK_CFLAGS"
23233 LIBS="$LIBS $GTK_LIBS"
23234 cat >conftest.$ac_ext <<_ACEOF
23235/* confdefs.h. */
23236_ACEOF
23237cat confdefs.h >>conftest.$ac_ext
23238cat >>conftest.$ac_ext <<_ACEOF
23239/* end confdefs.h. */
23240
23241#include <gtk/gtk.h>
23242#include <stdio.h>
23243
23244int
23245main ()
23246{
23247 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23248 ;
23249 return 0;
23250}
23251_ACEOF
23252rm -f conftest.$ac_objext conftest$ac_exeext
23253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23254 (eval $ac_link) 2>conftest.er1
a848cd7e 23255 ac_status=$?
ac1cb8d3
VS
23256 grep -v '^ *+' conftest.er1 >conftest.err
23257 rm -f conftest.er1
23258 cat conftest.err >&5
a848cd7e
SC
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } &&
9a8f0513
VS
23261 { ac_try='test -z "$ac_c_werror_flag"
23262 || test ! -s conftest.err'
ac1cb8d3
VS
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; } &&
23268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23271 ac_status=$?
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 echo "*** The test program compiled, but did not run. This usually means"
23275 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23276 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23277 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23278 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23279 echo "*** is required on your system"
23280 echo "***"
23281 echo "*** If you have an old version installed, it is best to remove it, although"
23282 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23283 echo "***"
23284 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23285 echo "*** came with the system with the command"
23286 echo "***"
23287 echo "*** rpm --erase --nodeps gtk gtk-devel"
23288else
23289 echo "$as_me: failed program was:" >&5
23290sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 echo "*** The test program failed to compile or link. See the file config.log for the"
23293 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23294 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23295 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23296fi
ac1cb8d3
VS
23297rm -f conftest.err conftest.$ac_objext \
23298 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23299 CFLAGS="$ac_save_CFLAGS"
23300 LIBS="$ac_save_LIBS"
23301 fi
23302 fi
23303 GTK_CFLAGS=""
23304 GTK_LIBS=""
23305 :
23306 fi
23307
23308
23309 rm -f conf.gtktest
23310
23311 fi
23312 fi
23313
23314 if test -z "$wx_cv_lib_gtk"; then
23315 wx_cv_lib_gtk=none
23316 else
23317 wx_cv_cflags_gtk=$GTK_CFLAGS
23318 wx_cv_libs_gtk=$GTK_LIBS
23319 fi
23320
23321
23322fi
23323
23324
23325 if test "$gtk_version_cached" = 1; then
23326 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23327echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23328 fi
23329
23330 case "$wx_cv_lib_gtk" in
23331 2.0) WXGTK20=1
23332 TOOLKIT_VERSION=2
23333 ;;
23334 1.2.7) WXGTK127=1
23335 WXGTK12=1
23336 ;;
23337 1.2.3) WXGTK12=1
23338 ;;
23339 *) { { echo "$as_me:$LINENO: error:
23340Please check that gtk-config is in path, the directory
23341where GTK+ libraries are installed (returned by
23342'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23343equivalent variable and GTK+ is version 1.2.3 or above.
23344 " >&5
23345echo "$as_me: error:
23346Please check that gtk-config is in path, the directory
23347where GTK+ libraries are installed (returned by
23348'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23349equivalent variable and GTK+ is version 1.2.3 or above.
23350 " >&2;}
23351 { (exit 1); exit 1; }; }
23352 ;;
23353 esac
23354
23355 if test "$WXGTK20" = 1; then
23356 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23357
23358 succeeded=no
23359
23360 if test -z "$PKG_CONFIG"; then
23361 # Extract the first word of "pkg-config", so it can be a program name with args.
23362set dummy pkg-config; ac_word=$2
23363echo "$as_me:$LINENO: checking for $ac_word" >&5
23364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23365if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23367else
23368 case $PKG_CONFIG in
23369 [\\/]* | ?:[\\/]*)
23370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23371 ;;
23372 *)
23373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23374for as_dir in $PATH
23375do
23376 IFS=$as_save_IFS
23377 test -z "$as_dir" && as_dir=.
23378 for ac_exec_ext in '' $ac_executable_extensions; do
23379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23382 break 2
23383 fi
23384done
23385done
23386
23387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23388 ;;
23389esac
23390fi
23391PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23392
23393if test -n "$PKG_CONFIG"; then
23394 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23395echo "${ECHO_T}$PKG_CONFIG" >&6
23396else
23397 echo "$as_me:$LINENO: result: no" >&5
23398echo "${ECHO_T}no" >&6
23399fi
23400
23401 fi
23402
23403 if test "$PKG_CONFIG" = "no" ; then
23404 echo "*** The pkg-config script could not be found. Make sure it is"
23405 echo "*** in your path, or set the PKG_CONFIG environment variable"
23406 echo "*** to the full path to pkg-config."
23407 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23408 else
23409 PKG_CONFIG_MIN_VERSION=0.9.0
23410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23411 echo "$as_me:$LINENO: checking for pangoft2" >&5
23412echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23413
23414 if $PKG_CONFIG --exists "pangoft2" ; then
23415 echo "$as_me:$LINENO: result: yes" >&5
23416echo "${ECHO_T}yes" >&6
23417 succeeded=yes
23418
23419 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23420echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23421 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23422 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23423echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23424
23425 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23426echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23427 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23428 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23429echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23430 else
23431 PANGOFT2_CFLAGS=""
23432 PANGOFT2_LIBS=""
23433 ## If we have a custom action on failure, don't print errors, but
23434 ## do set a variable so people can do so.
23435 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23436
23437 fi
23438
23439
23440
23441 else
23442 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23443 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23444 fi
23445 fi
23446
23447 if test $succeeded = yes; then
23448
23449 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23451
23452 else
23453
23454 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23455echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23456 wxUSE_PRINTING_ARCHITECTURE="no"
23457
23458
23459 fi
23460
23461 fi
304205f1
VS
23462
23463 save_CFLAGS="$CFLAGS"
23464 save_LIBS="$LIBS"
23465 CFLAGS="$CFLAGS $GTK_CFLAGS"
23466 LIBS="$LIBS $GTK_LIBS"
23467
23468for ac_func in pango_font_family_is_monospace
23469do
23470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23471echo "$as_me:$LINENO: checking for $ac_func" >&5
23472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23473if eval "test \"\${$as_ac_var+set}\" = set"; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475else
23476 cat >conftest.$ac_ext <<_ACEOF
23477/* confdefs.h. */
23478_ACEOF
23479cat confdefs.h >>conftest.$ac_ext
23480cat >>conftest.$ac_ext <<_ACEOF
23481/* end confdefs.h. */
23482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23484#define $ac_func innocuous_$ac_func
23485
23486/* System header to define __stub macros and hopefully few prototypes,
23487 which can conflict with char $ac_func (); below.
23488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23489 <limits.h> exists even on freestanding compilers. */
23490
23491#ifdef __STDC__
23492# include <limits.h>
23493#else
23494# include <assert.h>
23495#endif
23496
23497#undef $ac_func
23498
23499/* Override any gcc2 internal prototype to avoid an error. */
23500#ifdef __cplusplus
23501extern "C"
23502{
23503#endif
23504/* We use char because int might match the return type of a gcc2
23505 builtin and then its argument prototype would still apply. */
23506char $ac_func ();
23507/* The GNU C library defines this for functions which it implements
23508 to always fail with ENOSYS. Some functions are actually named
23509 something starting with __ and the normal name is an alias. */
23510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23511choke me
23512#else
23513char (*f) () = $ac_func;
23514#endif
23515#ifdef __cplusplus
23516}
23517#endif
23518
23519int
23520main ()
23521{
23522return f != $ac_func;
23523 ;
23524 return 0;
23525}
23526_ACEOF
23527rm -f conftest.$ac_objext conftest$ac_exeext
23528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23529 (eval $ac_link) 2>conftest.er1
23530 ac_status=$?
23531 grep -v '^ *+' conftest.er1 >conftest.err
23532 rm -f conftest.er1
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } &&
9a8f0513
VS
23536 { ac_try='test -z "$ac_c_werror_flag"
23537 || test ! -s conftest.err'
304205f1
VS
23538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539 (eval $ac_try) 2>&5
23540 ac_status=$?
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); }; } &&
23543 { ac_try='test -s conftest$ac_exeext'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; }; then
23549 eval "$as_ac_var=yes"
23550else
23551 echo "$as_me: failed program was:" >&5
23552sed 's/^/| /' conftest.$ac_ext >&5
23553
23554eval "$as_ac_var=no"
23555fi
23556rm -f conftest.err conftest.$ac_objext \
23557 conftest$ac_exeext conftest.$ac_ext
23558fi
23559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23560echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23561if test `eval echo '${'$as_ac_var'}'` = yes; then
23562 cat >>confdefs.h <<_ACEOF
23563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23564_ACEOF
23565
23566fi
23567done
23568
23569 CFLAGS="$save_CFLAGS"
23570 LIBS="$save_LIBS"
a848cd7e
SC
23571 else
23572 if test "$wxUSE_UNICODE" = "yes"; then
23573 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23574echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23575 wxUSE_UNICODE=no
23576 fi
23577 fi
23578
23579 if test "$USE_DARWIN" != 1; then
23580
23581for ac_func in poll
23582do
23583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23584echo "$as_me:$LINENO: checking for $ac_func" >&5
23585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23586if eval "test \"\${$as_ac_var+set}\" = set"; then
23587 echo $ECHO_N "(cached) $ECHO_C" >&6
23588else
23589 cat >conftest.$ac_ext <<_ACEOF
23590/* confdefs.h. */
23591_ACEOF
23592cat confdefs.h >>conftest.$ac_ext
23593cat >>conftest.$ac_ext <<_ACEOF
23594/* end confdefs.h. */
ac1cb8d3
VS
23595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23597#define $ac_func innocuous_$ac_func
23598
a848cd7e
SC
23599/* System header to define __stub macros and hopefully few prototypes,
23600 which can conflict with char $ac_func (); below.
23601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23603
a848cd7e
SC
23604#ifdef __STDC__
23605# include <limits.h>
23606#else
23607# include <assert.h>
23608#endif
ac1cb8d3
VS
23609
23610#undef $ac_func
23611
a848cd7e
SC
23612/* Override any gcc2 internal prototype to avoid an error. */
23613#ifdef __cplusplus
23614extern "C"
23615{
23616#endif
23617/* We use char because int might match the return type of a gcc2
23618 builtin and then its argument prototype would still apply. */
23619char $ac_func ();
23620/* The GNU C library defines this for functions which it implements
23621 to always fail with ENOSYS. Some functions are actually named
23622 something starting with __ and the normal name is an alias. */
23623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23624choke me
23625#else
23626char (*f) () = $ac_func;
23627#endif
23628#ifdef __cplusplus
23629}
23630#endif
23631
23632int
23633main ()
23634{
23635return f != $ac_func;
23636 ;
23637 return 0;
23638}
23639_ACEOF
23640rm -f conftest.$ac_objext conftest$ac_exeext
23641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23642 (eval $ac_link) 2>conftest.er1
a848cd7e 23643 ac_status=$?
ac1cb8d3
VS
23644 grep -v '^ *+' conftest.er1 >conftest.err
23645 rm -f conftest.er1
23646 cat conftest.err >&5
a848cd7e
SC
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } &&
9a8f0513
VS
23649 { ac_try='test -z "$ac_c_werror_flag"
23650 || test ! -s conftest.err'
ac1cb8d3
VS
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 eval "$as_ac_var=yes"
23663else
23664 echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667eval "$as_ac_var=no"
23668fi
ac1cb8d3
VS
23669rm -f conftest.err conftest.$ac_objext \
23670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23671fi
23672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23674if test `eval echo '${'$as_ac_var'}'` = yes; then
23675 cat >>confdefs.h <<_ACEOF
23676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23677_ACEOF
23678
23679fi
23680done
23681
23682 fi
23683
23684 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23685 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23686
23687 AFMINSTALL=afminstall
23688 TOOLKIT=GTK
23689 GUIDIST=GTK_DIST
23690
23691 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23692echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23693if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23695else
23696 ac_check_lib_save_LIBS=$LIBS
23697LIBS="-lgdk $LIBS"
23698cat >conftest.$ac_ext <<_ACEOF
23699/* confdefs.h. */
23700_ACEOF
23701cat confdefs.h >>conftest.$ac_ext
23702cat >>conftest.$ac_ext <<_ACEOF
23703/* end confdefs.h. */
23704
23705/* Override any gcc2 internal prototype to avoid an error. */
23706#ifdef __cplusplus
23707extern "C"
23708#endif
23709/* We use char because int might match the return type of a gcc2
23710 builtin and then its argument prototype would still apply. */
23711char gdk_im_open ();
23712int
23713main ()
23714{
23715gdk_im_open ();
23716 ;
23717 return 0;
23718}
23719_ACEOF
23720rm -f conftest.$ac_objext conftest$ac_exeext
23721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23722 (eval $ac_link) 2>conftest.er1
a848cd7e 23723 ac_status=$?
ac1cb8d3
VS
23724 grep -v '^ *+' conftest.er1 >conftest.err
23725 rm -f conftest.er1
23726 cat conftest.err >&5
a848cd7e
SC
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } &&
9a8f0513
VS
23729 { ac_try='test -z "$ac_c_werror_flag"
23730 || test ! -s conftest.err'
ac1cb8d3
VS
23731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732 (eval $ac_try) 2>&5
23733 ac_status=$?
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; } &&
23736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23739 ac_status=$?
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; }; then
23742 ac_cv_lib_gdk_gdk_im_open=yes
23743else
23744 echo "$as_me: failed program was:" >&5
23745sed 's/^/| /' conftest.$ac_ext >&5
23746
23747ac_cv_lib_gdk_gdk_im_open=no
23748fi
ac1cb8d3
VS
23749rm -f conftest.err conftest.$ac_objext \
23750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23751LIBS=$ac_check_lib_save_LIBS
23752fi
23753echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23754echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23755if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23756 cat >>confdefs.h <<\_ACEOF
23757#define HAVE_XIM 1
23758_ACEOF
23759
23760fi
23761
23762
23763
23764 if test "$wxUSE_GPE" = "yes"; then
23765 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23766echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23767
23768ac_find_libraries=
23769for ac_dir in $SEARCH_LIB /usr/lib;
23770 do
23771 for ac_extension in a so sl dylib; do
23772 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23773 ac_find_libraries=$ac_dir
23774 break 2
23775 fi
23776 done
23777 done
23778
23779 if test "$ac_find_libraries" != "" ; then
23780
23781 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23782 result=$?
23783 if test $result = 0; then
23784 ac_path_to_link=""
23785 else
23786 ac_path_to_link=" -L$ac_find_libraries"
23787 fi
23788
23789 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23790 WXGPE=1
23791 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23792echo "${ECHO_T}found at $ac_find_libraries" >&6
23793 else
23794 echo "$as_me:$LINENO: result: not found" >&5
23795echo "${ECHO_T}not found" >&6
23796 fi
23797
23798 fi
23799 fi
23800
23801 if test "$wxUSE_MGL" = 1; then
23802 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23803echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23804 if test "x$MGL_ROOT" = 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 MGL library. Make sure MGL_ROOT is set." >&5
23808echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23809 { (exit 1); exit 1; }; }
23810 else
23811 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23812echo "${ECHO_T}$MGL_ROOT" >&6
23813 fi
23814
23815 echo "$as_me:$LINENO: checking for libmgl location" >&5
23816echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23817 case "${host}" in
23818 *-*-linux* )
23819 if test "x$wxUSE_SHARED" = xyes ; then
23820 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23821 else
23822 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23823 fi
23824 ;;
23825 *-pc-msdosdjgpp )
23826 mgl_os_candidates="dos32/dj2"
23827 ;;
23828 *)
23829 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23830echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23831 { (exit 1); exit 1; }; }
23832 esac
23833
23834 mgl_lib_type=""
23835 mgl_os=""
23836
23837 for mgl_os_i in $mgl_os_candidates ; do
23838 if test "x$mgl_os" = x ; then
23839 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23840 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23841 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23842 mgl_lib_type=debug
23843 mgl_os=$mgl_os_i
23844 fi
23845 fi
23846 if test "x$mgl_lib_type" = x ; then
23847 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23848 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23849 mgl_lib_type=release
23850 mgl_os=$mgl_os_i
23851 fi
23852 fi
23853 fi
23854 done
23855
23856 if test "x$mgl_os" = x ; then
23857 echo "$as_me:$LINENO: result: not found" >&5
23858echo "${ECHO_T}not found" >&6
23859 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23860echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23861 { (exit 1); exit 1; }; }
23862 fi
23863 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23864echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23865
23866 wxUSE_UNIVERSAL="yes"
23867
23868 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23869 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23870
23871 AFMINSTALL=afminstall
23872 TOOLKIT=MGL
23873 GUIDIST=MGL_DIST
23874 fi
23875
23876 if test "$wxUSE_MICROWIN" = 1; then
23877 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23878echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23879 if test "x$MICROWINDOWS" = x ; then
23880 echo "$as_me:$LINENO: result: not found" >&5
23881echo "${ECHO_T}not found" >&6
23882 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23883echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23884 { (exit 1); exit 1; }; }
23885 else
23886 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23887echo "${ECHO_T}$MICROWINDOWS" >&6
23888 fi
23889
23890 if test -f $MICROWINDOWS/lib/libmwin.a; then
23891 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23892echo "${ECHO_T}MicroWindows' libraries found." >&6
23893 else
23894 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23895echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23896 { (exit 1); exit 1; }; }
23897 fi
23898
23899 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23900 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23901
23902 wxUSE_UNIVERSAL="yes"
23903
23904 AFMINSTALL=afminstall
23905 TOOLKIT=MICROWIN
23906 GUIDIST=MICROWIN_DIST
23907
23908 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23909 fi
23910
74b84332 23911 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9a8f0513 23912 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23913echo $ECHO_N "checking for X... $ECHO_C" >&6
23914
23915
23916# Check whether --with-x or --without-x was given.
23917if test "${with_x+set}" = set; then
23918 withval="$with_x"
23919
23920fi;
23921# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23922if test "x$with_x" = xno; then
23923 # The user explicitly disabled X.
23924 have_x=disabled
23925else
23926 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23927 # Both variables are already set.
23928 have_x=yes
23929 else
23930 if test "${ac_cv_have_x+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23932else
23933 # One or both of the vars are not set, and there is no cached value.
23934ac_x_includes=no ac_x_libraries=no
23935rm -fr conftest.dir
23936if mkdir conftest.dir; then
23937 cd conftest.dir
23938 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23939 cat >Imakefile <<'_ACEOF'
23940acfindx:
23941 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23942_ACEOF
23943 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23945 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23946 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23947 for ac_extension in a so sl; do
23948 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23949 test -f $ac_im_libdir/libX11.$ac_extension; then
23950 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23951 fi
23952 done
23953 # Screen out bogus values from the imake configuration. They are
23954 # bogus both because they are the default anyway, and because
23955 # using them would break gcc on systems where it needs fixed includes.
23956 case $ac_im_incroot in
23957 /usr/include) ;;
23958 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23959 esac
23960 case $ac_im_usrlibdir in
23961 /usr/lib | /lib) ;;
23962 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23963 esac
23964 fi
23965 cd ..
23966 rm -fr conftest.dir
23967fi
23968
23969# Standard set of common directories for X headers.
23970# Check X11 before X11Rn because it is often a symlink to the current release.
23971ac_x_header_dirs='
23972/usr/X11/include
23973/usr/X11R6/include
23974/usr/X11R5/include
23975/usr/X11R4/include
23976
23977/usr/include/X11
23978/usr/include/X11R6
23979/usr/include/X11R5
23980/usr/include/X11R4
23981
23982/usr/local/X11/include
23983/usr/local/X11R6/include
23984/usr/local/X11R5/include
23985/usr/local/X11R4/include
23986
23987/usr/local/include/X11
23988/usr/local/include/X11R6
23989/usr/local/include/X11R5
23990/usr/local/include/X11R4
23991
23992/usr/X386/include
23993/usr/x386/include
23994/usr/XFree86/include/X11
23995
23996/usr/include
23997/usr/local/include
23998/usr/unsupported/include
23999/usr/athena/include
24000/usr/local/x11r5/include
24001/usr/lpp/Xamples/include
24002
24003/usr/openwin/include
24004/usr/openwin/share/include'
24005
24006if test "$ac_x_includes" = no; then
9a8f0513 24007 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24008 # First, try using that file with no special directory specified.
24009 cat >conftest.$ac_ext <<_ACEOF
24010/* confdefs.h. */
24011_ACEOF
24012cat confdefs.h >>conftest.$ac_ext
24013cat >>conftest.$ac_ext <<_ACEOF
24014/* end confdefs.h. */
24015#include <X11/Intrinsic.h>
24016_ACEOF
24017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24019 ac_status=$?
24020 grep -v '^ *+' conftest.er1 >conftest.err
24021 rm -f conftest.er1
24022 cat conftest.err >&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } >/dev/null; then
24025 if test -s conftest.err; then
24026 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24028 else
24029 ac_cpp_err=
24030 fi
24031else
24032 ac_cpp_err=yes
24033fi
24034if test -z "$ac_cpp_err"; then
24035 # We can compile using X headers with no special include directory.
24036ac_x_includes=
24037else
24038 echo "$as_me: failed program was:" >&5
24039sed 's/^/| /' conftest.$ac_ext >&5
24040
24041 for ac_dir in $ac_x_header_dirs; do
24042 if test -r "$ac_dir/X11/Intrinsic.h"; then
24043 ac_x_includes=$ac_dir
24044 break
24045 fi
24046done
24047fi
24048rm -f conftest.err conftest.$ac_ext
24049fi # $ac_x_includes = no
24050
24051if test "$ac_x_libraries" = no; then
24052 # Check for the libraries.
24053 # See if we find them without any special options.
24054 # Don't add to $LIBS permanently.
24055 ac_save_LIBS=$LIBS
24056 LIBS="-lXt $LIBS"
24057 cat >conftest.$ac_ext <<_ACEOF
24058/* confdefs.h. */
24059_ACEOF
24060cat confdefs.h >>conftest.$ac_ext
24061cat >>conftest.$ac_ext <<_ACEOF
24062/* end confdefs.h. */
24063#include <X11/Intrinsic.h>
24064int
24065main ()
24066{
24067XtMalloc (0)
24068 ;
24069 return 0;
24070}
24071_ACEOF
24072rm -f conftest.$ac_objext conftest$ac_exeext
24073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24074 (eval $ac_link) 2>conftest.er1
a848cd7e 24075 ac_status=$?
ac1cb8d3
VS
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
a848cd7e
SC
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
9a8f0513
VS
24081 { ac_try='test -z "$ac_c_werror_flag"
24082 || test ! -s conftest.err'
ac1cb8d3
VS
24083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; } &&
24088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24091 ac_status=$?
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; }; then
24094 LIBS=$ac_save_LIBS
24095# We can link X programs with no special library path.
24096ac_x_libraries=
24097else
24098 echo "$as_me: failed program was:" >&5
24099sed 's/^/| /' conftest.$ac_ext >&5
24100
24101LIBS=$ac_save_LIBS
24102for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24103do
24104 # Don't even attempt the hair of trying to link an X program!
24105 for ac_extension in a so sl; do
24106 if test -r $ac_dir/libXt.$ac_extension; then
24107 ac_x_libraries=$ac_dir
24108 break 2
24109 fi
24110 done
24111done
24112fi
ac1cb8d3
VS
24113rm -f conftest.err conftest.$ac_objext \
24114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24115fi # $ac_x_libraries = no
24116
24117if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24118 # Didn't find X anywhere. Cache the known absence of X.
24119 ac_cv_have_x="have_x=no"
24120else
24121 # Record where we found X for the cache.
24122 ac_cv_have_x="have_x=yes \
ac1cb8d3 24123 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24124fi
24125fi
24126
24127 fi
24128 eval "$ac_cv_have_x"
24129fi # $with_x != no
24130
24131if test "$have_x" != yes; then
24132 echo "$as_me:$LINENO: result: $have_x" >&5
24133echo "${ECHO_T}$have_x" >&6
24134 no_x=yes
24135else
24136 # If each of the values was on the command line, it overrides each guess.
24137 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24138 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24139 # Update the cache value to reflect the command line values.
24140 ac_cv_have_x="have_x=yes \
24141 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9a8f0513
VS
24142 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24143echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24144fi
24145
24146if test "$no_x" = yes; then
24147 # Not all programs may use this symbol, but it does not hurt to define it.
24148
24149cat >>confdefs.h <<\_ACEOF
24150#define X_DISPLAY_MISSING 1
24151_ACEOF
24152
24153 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24154else
24155 if test -n "$x_includes"; then
24156 X_CFLAGS="$X_CFLAGS -I$x_includes"
24157 fi
24158
24159 # It would also be nice to do this for all -L options, not just this one.
24160 if test -n "$x_libraries"; then
24161 X_LIBS="$X_LIBS -L$x_libraries"
24162 # For Solaris; some versions of Sun CC require a space after -R and
24163 # others require no space. Words are not sufficient . . . .
24164 case `(uname -sr) 2>/dev/null` in
24165 "SunOS 5"*)
24166 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24167echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24168 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24169 cat >conftest.$ac_ext <<_ACEOF
24170/* confdefs.h. */
24171_ACEOF
24172cat confdefs.h >>conftest.$ac_ext
24173cat >>conftest.$ac_ext <<_ACEOF
24174/* end confdefs.h. */
24175
24176int
24177main ()
24178{
24179
24180 ;
24181 return 0;
24182}
24183_ACEOF
24184rm -f conftest.$ac_objext conftest$ac_exeext
24185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24186 (eval $ac_link) 2>conftest.er1
a848cd7e 24187 ac_status=$?
ac1cb8d3
VS
24188 grep -v '^ *+' conftest.er1 >conftest.err
24189 rm -f conftest.er1
24190 cat conftest.err >&5
a848cd7e
SC
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } &&
9a8f0513
VS
24193 { ac_try='test -z "$ac_c_werror_flag"
24194 || test ! -s conftest.err'
ac1cb8d3
VS
24195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; } &&
24200 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); }; }; then
24206 ac_R_nospace=yes
24207else
24208 echo "$as_me: failed program was:" >&5
24209sed 's/^/| /' conftest.$ac_ext >&5
24210
24211ac_R_nospace=no
24212fi
ac1cb8d3
VS
24213rm -f conftest.err conftest.$ac_objext \
24214 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24215 if test $ac_R_nospace = yes; then
24216 echo "$as_me:$LINENO: result: no" >&5
24217echo "${ECHO_T}no" >&6
24218 X_LIBS="$X_LIBS -R$x_libraries"
24219 else
24220 LIBS="$ac_xsave_LIBS -R $x_libraries"
24221 cat >conftest.$ac_ext <<_ACEOF
24222/* confdefs.h. */
24223_ACEOF
24224cat confdefs.h >>conftest.$ac_ext
24225cat >>conftest.$ac_ext <<_ACEOF
24226/* end confdefs.h. */
24227
24228int
24229main ()
24230{
24231
24232 ;
24233 return 0;
24234}
24235_ACEOF
24236rm -f conftest.$ac_objext conftest$ac_exeext
24237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24238 (eval $ac_link) 2>conftest.er1
a848cd7e 24239 ac_status=$?
ac1cb8d3
VS
24240 grep -v '^ *+' conftest.er1 >conftest.err
24241 rm -f conftest.er1
24242 cat conftest.err >&5
a848cd7e
SC
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); } &&
9a8f0513
VS
24245 { ac_try='test -z "$ac_c_werror_flag"
24246 || test ! -s conftest.err'
ac1cb8d3
VS
24247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24248 (eval $ac_try) 2>&5
24249 ac_status=$?
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); }; } &&
24252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
24258 ac_R_space=yes
24259else
24260 echo "$as_me: failed program was:" >&5
24261sed 's/^/| /' conftest.$ac_ext >&5
24262
24263ac_R_space=no
24264fi
ac1cb8d3
VS
24265rm -f conftest.err conftest.$ac_objext \
24266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24267 if test $ac_R_space = yes; then
24268 echo "$as_me:$LINENO: result: yes" >&5
24269echo "${ECHO_T}yes" >&6
24270 X_LIBS="$X_LIBS -R $x_libraries"
24271 else
24272 echo "$as_me:$LINENO: result: neither works" >&5
24273echo "${ECHO_T}neither works" >&6
24274 fi
24275 fi
24276 LIBS=$ac_xsave_LIBS
24277 esac
24278 fi
24279
24280 # Check for system-dependent libraries X programs must link with.
24281 # Do this before checking for the system-independent R6 libraries
24282 # (-lICE), since we may need -lsocket or whatever for X linking.
24283
24284 if test "$ISC" = yes; then
24285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24286 else
24287 # Martyn Johnson says this is needed for Ultrix, if the X
24288 # libraries were built with DECnet support. And Karl Berry says
24289 # the Alpha needs dnet_stub (dnet does not exist).
24290 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24291 cat >conftest.$ac_ext <<_ACEOF
24292/* confdefs.h. */
24293_ACEOF
24294cat confdefs.h >>conftest.$ac_ext
24295cat >>conftest.$ac_ext <<_ACEOF
24296/* end confdefs.h. */
24297
24298/* Override any gcc2 internal prototype to avoid an error. */
24299#ifdef __cplusplus
24300extern "C"
24301#endif
24302/* We use char because int might match the return type of a gcc2
24303 builtin and then its argument prototype would still apply. */
24304char XOpenDisplay ();
24305int
24306main ()
24307{
24308XOpenDisplay ();
24309 ;
24310 return 0;
24311}
24312_ACEOF
24313rm -f conftest.$ac_objext conftest$ac_exeext
24314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24315 (eval $ac_link) 2>conftest.er1
a848cd7e 24316 ac_status=$?
ac1cb8d3
VS
24317 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1
24319 cat conftest.err >&5
a848cd7e
SC
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } &&
9a8f0513
VS
24322 { ac_try='test -z "$ac_c_werror_flag"
24323 || test ! -s conftest.err'
ac1cb8d3
VS
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24326 ac_status=$?
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; } &&
24329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331 (eval $ac_try) 2>&5
24332 ac_status=$?
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); }; }; then
24335 :
24336else
24337 echo "$as_me: failed program was:" >&5
24338sed 's/^/| /' conftest.$ac_ext >&5
24339
24340echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24341echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24342if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24344else
24345 ac_check_lib_save_LIBS=$LIBS
24346LIBS="-ldnet $LIBS"
24347cat >conftest.$ac_ext <<_ACEOF
24348/* confdefs.h. */
24349_ACEOF
24350cat confdefs.h >>conftest.$ac_ext
24351cat >>conftest.$ac_ext <<_ACEOF
24352/* end confdefs.h. */
24353
24354/* Override any gcc2 internal prototype to avoid an error. */
24355#ifdef __cplusplus
24356extern "C"
24357#endif
24358/* We use char because int might match the return type of a gcc2
24359 builtin and then its argument prototype would still apply. */
24360char dnet_ntoa ();
24361int
24362main ()
24363{
24364dnet_ntoa ();
24365 ;
24366 return 0;
24367}
24368_ACEOF
24369rm -f conftest.$ac_objext conftest$ac_exeext
24370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24371 (eval $ac_link) 2>conftest.er1
a848cd7e 24372 ac_status=$?
ac1cb8d3
VS
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
a848cd7e
SC
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } &&
9a8f0513
VS
24378 { ac_try='test -z "$ac_c_werror_flag"
24379 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
24385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24388 ac_status=$?
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24391 ac_cv_lib_dnet_dnet_ntoa=yes
24392else
24393 echo "$as_me: failed program was:" >&5
24394sed 's/^/| /' conftest.$ac_ext >&5
24395
24396ac_cv_lib_dnet_dnet_ntoa=no
24397fi
ac1cb8d3
VS
24398rm -f conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24400LIBS=$ac_check_lib_save_LIBS
24401fi
24402echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24403echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24404if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24405 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24406fi
24407
24408 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24409 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24410echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24411if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24412 echo $ECHO_N "(cached) $ECHO_C" >&6
24413else
24414 ac_check_lib_save_LIBS=$LIBS
24415LIBS="-ldnet_stub $LIBS"
24416cat >conftest.$ac_ext <<_ACEOF
24417/* confdefs.h. */
24418_ACEOF
24419cat confdefs.h >>conftest.$ac_ext
24420cat >>conftest.$ac_ext <<_ACEOF
24421/* end confdefs.h. */
24422
24423/* Override any gcc2 internal prototype to avoid an error. */
24424#ifdef __cplusplus
24425extern "C"
24426#endif
24427/* We use char because int might match the return type of a gcc2
24428 builtin and then its argument prototype would still apply. */
24429char dnet_ntoa ();
24430int
24431main ()
24432{
24433dnet_ntoa ();
24434 ;
24435 return 0;
24436}
24437_ACEOF
24438rm -f conftest.$ac_objext conftest$ac_exeext
24439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24440 (eval $ac_link) 2>conftest.er1
a848cd7e 24441 ac_status=$?
ac1cb8d3
VS
24442 grep -v '^ *+' conftest.er1 >conftest.err
24443 rm -f conftest.er1
24444 cat conftest.err >&5
a848cd7e
SC
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } &&
9a8f0513
VS
24447 { ac_try='test -z "$ac_c_werror_flag"
24448 || test ! -s conftest.err'
ac1cb8d3
VS
24449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450 (eval $ac_try) 2>&5
24451 ac_status=$?
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); }; } &&
24454 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; }; then
24460 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24461else
24462 echo "$as_me: failed program was:" >&5
24463sed 's/^/| /' conftest.$ac_ext >&5
24464
24465ac_cv_lib_dnet_stub_dnet_ntoa=no
24466fi
ac1cb8d3
VS
24467rm -f conftest.err conftest.$ac_objext \
24468 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24469LIBS=$ac_check_lib_save_LIBS
24470fi
24471echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24472echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24473if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24474 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24475fi
24476
24477 fi
24478fi
ac1cb8d3
VS
24479rm -f conftest.err conftest.$ac_objext \
24480 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24481 LIBS="$ac_xsave_LIBS"
24482
24483 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24484 # to get the SysV transport functions.
24485 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24486 # needs -lnsl.
24487 # The nsl library prevents programs from opening the X display
24488 # on Irix 5.2, according to T.E. Dickey.
24489 # The functions gethostbyname, getservbyname, and inet_addr are
24490 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24491 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24492echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24493if test "${ac_cv_func_gethostbyname+set}" = set; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24495else
24496 cat >conftest.$ac_ext <<_ACEOF
24497/* confdefs.h. */
24498_ACEOF
24499cat confdefs.h >>conftest.$ac_ext
24500cat >>conftest.$ac_ext <<_ACEOF
24501/* end confdefs.h. */
ac1cb8d3
VS
24502/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24504#define gethostbyname innocuous_gethostbyname
24505
a848cd7e
SC
24506/* System header to define __stub macros and hopefully few prototypes,
24507 which can conflict with char gethostbyname (); below.
24508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24509 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24510
a848cd7e
SC
24511#ifdef __STDC__
24512# include <limits.h>
24513#else
24514# include <assert.h>
24515#endif
ac1cb8d3
VS
24516
24517#undef gethostbyname
24518
a848cd7e
SC
24519/* Override any gcc2 internal prototype to avoid an error. */
24520#ifdef __cplusplus
24521extern "C"
24522{
24523#endif
24524/* We use char because int might match the return type of a gcc2
24525 builtin and then its argument prototype would still apply. */
24526char gethostbyname ();
24527/* The GNU C library defines this for functions which it implements
24528 to always fail with ENOSYS. Some functions are actually named
24529 something starting with __ and the normal name is an alias. */
24530#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24531choke me
24532#else
24533char (*f) () = gethostbyname;
24534#endif
24535#ifdef __cplusplus
24536}
24537#endif
24538
24539int
24540main ()
24541{
24542return f != gethostbyname;
24543 ;
24544 return 0;
24545}
24546_ACEOF
24547rm -f conftest.$ac_objext conftest$ac_exeext
24548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24549 (eval $ac_link) 2>conftest.er1
a848cd7e 24550 ac_status=$?
ac1cb8d3
VS
24551 grep -v '^ *+' conftest.er1 >conftest.err
24552 rm -f conftest.er1
24553 cat conftest.err >&5
a848cd7e
SC
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } &&
9a8f0513
VS
24556 { ac_try='test -z "$ac_c_werror_flag"
24557 || test ! -s conftest.err'
ac1cb8d3
VS
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; } &&
24563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569 ac_cv_func_gethostbyname=yes
24570else
24571 echo "$as_me: failed program was:" >&5
24572sed 's/^/| /' conftest.$ac_ext >&5
24573
24574ac_cv_func_gethostbyname=no
24575fi
ac1cb8d3
VS
24576rm -f conftest.err conftest.$ac_objext \
24577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24578fi
24579echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24580echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24581
24582 if test $ac_cv_func_gethostbyname = no; then
24583 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24584echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24585if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24587else
24588 ac_check_lib_save_LIBS=$LIBS
24589LIBS="-lnsl $LIBS"
24590cat >conftest.$ac_ext <<_ACEOF
24591/* confdefs.h. */
24592_ACEOF
24593cat confdefs.h >>conftest.$ac_ext
24594cat >>conftest.$ac_ext <<_ACEOF
24595/* end confdefs.h. */
24596
24597/* Override any gcc2 internal prototype to avoid an error. */
24598#ifdef __cplusplus
24599extern "C"
24600#endif
24601/* We use char because int might match the return type of a gcc2
24602 builtin and then its argument prototype would still apply. */
24603char gethostbyname ();
24604int
24605main ()
24606{
24607gethostbyname ();
24608 ;
24609 return 0;
24610}
24611_ACEOF
24612rm -f conftest.$ac_objext conftest$ac_exeext
24613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24614 (eval $ac_link) 2>conftest.er1
24615 ac_status=$?
24616 grep -v '^ *+' conftest.er1 >conftest.err
24617 rm -f conftest.er1
24618 cat conftest.err >&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } &&
9a8f0513
VS
24621 { ac_try='test -z "$ac_c_werror_flag"
24622 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
24628 { ac_try='test -s conftest$ac_exeext'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; }; then
24634 ac_cv_lib_nsl_gethostbyname=yes
24635else
24636 echo "$as_me: failed program was:" >&5
24637sed 's/^/| /' conftest.$ac_ext >&5
24638
24639ac_cv_lib_nsl_gethostbyname=no
24640fi
24641rm -f conftest.err conftest.$ac_objext \
24642 conftest$ac_exeext conftest.$ac_ext
24643LIBS=$ac_check_lib_save_LIBS
24644fi
24645echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24646echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24647if test $ac_cv_lib_nsl_gethostbyname = yes; then
24648 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24649fi
24650
24651 if test $ac_cv_lib_nsl_gethostbyname = no; then
24652 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24653echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24654if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24656else
24657 ac_check_lib_save_LIBS=$LIBS
24658LIBS="-lbsd $LIBS"
24659cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
24665
24666/* Override any gcc2 internal prototype to avoid an error. */
24667#ifdef __cplusplus
24668extern "C"
24669#endif
24670/* We use char because int might match the return type of a gcc2
24671 builtin and then its argument prototype would still apply. */
24672char gethostbyname ();
24673int
24674main ()
24675{
24676gethostbyname ();
24677 ;
24678 return 0;
24679}
24680_ACEOF
24681rm -f conftest.$ac_objext conftest$ac_exeext
24682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24683 (eval $ac_link) 2>conftest.er1
a848cd7e 24684 ac_status=$?
ac1cb8d3
VS
24685 grep -v '^ *+' conftest.er1 >conftest.err
24686 rm -f conftest.er1
24687 cat conftest.err >&5
a848cd7e
SC
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } &&
9a8f0513
VS
24690 { ac_try='test -z "$ac_c_werror_flag"
24691 || test ! -s conftest.err'
a848cd7e
SC
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24696 (exit $ac_status); }; } &&
24697 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); }; }; then
24703 ac_cv_lib_bsd_gethostbyname=yes
24704else
24705 echo "$as_me: failed program was:" >&5
24706sed 's/^/| /' conftest.$ac_ext >&5
24707
24708ac_cv_lib_bsd_gethostbyname=no
24709fi
ac1cb8d3
VS
24710rm -f conftest.err conftest.$ac_objext \
24711 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24712LIBS=$ac_check_lib_save_LIBS
24713fi
24714echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24715echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24716if test $ac_cv_lib_bsd_gethostbyname = yes; then
24717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24718fi
24719
24720 fi
24721 fi
24722
24723 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24724 # socket/setsockopt and other routines are undefined under SCO ODT
24725 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24726 # on later versions), says Simon Leinen: it contains gethostby*
24727 # variants that don't use the name server (or something). -lsocket
24728 # must be given before -lnsl if both are needed. We assume that
24729 # if connect needs -lnsl, so does gethostbyname.
24730 echo "$as_me:$LINENO: checking for connect" >&5
24731echo $ECHO_N "checking for connect... $ECHO_C" >&6
24732if test "${ac_cv_func_connect+set}" = set; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24734else
24735 cat >conftest.$ac_ext <<_ACEOF
24736/* confdefs.h. */
24737_ACEOF
24738cat confdefs.h >>conftest.$ac_ext
24739cat >>conftest.$ac_ext <<_ACEOF
24740/* end confdefs.h. */
ac1cb8d3
VS
24741/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24743#define connect innocuous_connect
24744
a848cd7e
SC
24745/* System header to define __stub macros and hopefully few prototypes,
24746 which can conflict with char connect (); below.
24747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24748 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24749
a848cd7e
SC
24750#ifdef __STDC__
24751# include <limits.h>
24752#else
24753# include <assert.h>
24754#endif
ac1cb8d3
VS
24755
24756#undef connect
24757
a848cd7e
SC
24758/* Override any gcc2 internal prototype to avoid an error. */
24759#ifdef __cplusplus
24760extern "C"
24761{
24762#endif
24763/* We use char because int might match the return type of a gcc2
24764 builtin and then its argument prototype would still apply. */
24765char connect ();
24766/* The GNU C library defines this for functions which it implements
24767 to always fail with ENOSYS. Some functions are actually named
24768 something starting with __ and the normal name is an alias. */
24769#if defined (__stub_connect) || defined (__stub___connect)
24770choke me
24771#else
24772char (*f) () = connect;
24773#endif
24774#ifdef __cplusplus
24775}
24776#endif
24777
24778int
24779main ()
24780{
24781return f != connect;
24782 ;
24783 return 0;
24784}
24785_ACEOF
24786rm -f conftest.$ac_objext conftest$ac_exeext
24787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24788 (eval $ac_link) 2>conftest.er1
a848cd7e 24789 ac_status=$?
ac1cb8d3
VS
24790 grep -v '^ *+' conftest.er1 >conftest.err
24791 rm -f conftest.er1
24792 cat conftest.err >&5
a848cd7e
SC
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } &&
9a8f0513
VS
24795 { ac_try='test -z "$ac_c_werror_flag"
24796 || test ! -s conftest.err'
ac1cb8d3
VS
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; } &&
24802 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); }; }; then
24808 ac_cv_func_connect=yes
24809else
24810 echo "$as_me: failed program was:" >&5
24811sed 's/^/| /' conftest.$ac_ext >&5
24812
24813ac_cv_func_connect=no
24814fi
ac1cb8d3
VS
24815rm -f conftest.err conftest.$ac_objext \
24816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24817fi
24818echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24819echo "${ECHO_T}$ac_cv_func_connect" >&6
24820
24821 if test $ac_cv_func_connect = no; then
24822 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24823echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24824if test "${ac_cv_lib_socket_connect+set}" = set; then
24825 echo $ECHO_N "(cached) $ECHO_C" >&6
24826else
24827 ac_check_lib_save_LIBS=$LIBS
24828LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24829cat >conftest.$ac_ext <<_ACEOF
24830/* confdefs.h. */
24831_ACEOF
24832cat confdefs.h >>conftest.$ac_ext
24833cat >>conftest.$ac_ext <<_ACEOF
24834/* end confdefs.h. */
24835
24836/* Override any gcc2 internal prototype to avoid an error. */
24837#ifdef __cplusplus
24838extern "C"
24839#endif
24840/* We use char because int might match the return type of a gcc2
24841 builtin and then its argument prototype would still apply. */
24842char connect ();
24843int
24844main ()
24845{
24846connect ();
24847 ;
24848 return 0;
24849}
24850_ACEOF
24851rm -f conftest.$ac_objext conftest$ac_exeext
24852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24853 (eval $ac_link) 2>conftest.er1
a848cd7e 24854 ac_status=$?
ac1cb8d3
VS
24855 grep -v '^ *+' conftest.er1 >conftest.err
24856 rm -f conftest.er1
24857 cat conftest.err >&5
a848cd7e
SC
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } &&
9a8f0513
VS
24860 { ac_try='test -z "$ac_c_werror_flag"
24861 || test ! -s conftest.err'
ac1cb8d3
VS
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; } &&
24867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); }; }; then
24873 ac_cv_lib_socket_connect=yes
24874else
24875 echo "$as_me: failed program was:" >&5
24876sed 's/^/| /' conftest.$ac_ext >&5
24877
24878ac_cv_lib_socket_connect=no
24879fi
ac1cb8d3
VS
24880rm -f conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24882LIBS=$ac_check_lib_save_LIBS
24883fi
24884echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24885echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24886if test $ac_cv_lib_socket_connect = yes; then
24887 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24888fi
24889
24890 fi
24891
24892 # Guillermo Gomez says -lposix is necessary on A/UX.
24893 echo "$as_me:$LINENO: checking for remove" >&5
24894echo $ECHO_N "checking for remove... $ECHO_C" >&6
24895if test "${ac_cv_func_remove+set}" = set; then
24896 echo $ECHO_N "(cached) $ECHO_C" >&6
24897else
24898 cat >conftest.$ac_ext <<_ACEOF
24899/* confdefs.h. */
24900_ACEOF
24901cat confdefs.h >>conftest.$ac_ext
24902cat >>conftest.$ac_ext <<_ACEOF
24903/* end confdefs.h. */
ac1cb8d3
VS
24904/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24906#define remove innocuous_remove
24907
a848cd7e
SC
24908/* System header to define __stub macros and hopefully few prototypes,
24909 which can conflict with char remove (); below.
24910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24911 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24912
a848cd7e
SC
24913#ifdef __STDC__
24914# include <limits.h>
24915#else
24916# include <assert.h>
24917#endif
ac1cb8d3
VS
24918
24919#undef remove
24920
a848cd7e
SC
24921/* Override any gcc2 internal prototype to avoid an error. */
24922#ifdef __cplusplus
24923extern "C"
24924{
24925#endif
24926/* We use char because int might match the return type of a gcc2
24927 builtin and then its argument prototype would still apply. */
24928char remove ();
24929/* The GNU C library defines this for functions which it implements
24930 to always fail with ENOSYS. Some functions are actually named
24931 something starting with __ and the normal name is an alias. */
24932#if defined (__stub_remove) || defined (__stub___remove)
24933choke me
24934#else
24935char (*f) () = remove;
24936#endif
24937#ifdef __cplusplus
24938}
24939#endif
24940
24941int
24942main ()
24943{
24944return f != remove;
24945 ;
24946 return 0;
24947}
24948_ACEOF
24949rm -f conftest.$ac_objext conftest$ac_exeext
24950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24951 (eval $ac_link) 2>conftest.er1
a848cd7e 24952 ac_status=$?
ac1cb8d3
VS
24953 grep -v '^ *+' conftest.er1 >conftest.err
24954 rm -f conftest.er1
24955 cat conftest.err >&5
a848cd7e
SC
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); } &&
9a8f0513
VS
24958 { ac_try='test -z "$ac_c_werror_flag"
24959 || test ! -s conftest.err'
ac1cb8d3
VS
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24962 ac_status=$?
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; } &&
24965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24967 (eval $ac_try) 2>&5
24968 ac_status=$?
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); }; }; then
24971 ac_cv_func_remove=yes
24972else
24973 echo "$as_me: failed program was:" >&5
24974sed 's/^/| /' conftest.$ac_ext >&5
24975
24976ac_cv_func_remove=no
24977fi
ac1cb8d3
VS
24978rm -f conftest.err conftest.$ac_objext \
24979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24980fi
24981echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24982echo "${ECHO_T}$ac_cv_func_remove" >&6
24983
24984 if test $ac_cv_func_remove = no; then
24985 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24986echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24987if test "${ac_cv_lib_posix_remove+set}" = set; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24989else
24990 ac_check_lib_save_LIBS=$LIBS
24991LIBS="-lposix $LIBS"
24992cat >conftest.$ac_ext <<_ACEOF
24993/* confdefs.h. */
24994_ACEOF
24995cat confdefs.h >>conftest.$ac_ext
24996cat >>conftest.$ac_ext <<_ACEOF
24997/* end confdefs.h. */
24998
24999/* Override any gcc2 internal prototype to avoid an error. */
25000#ifdef __cplusplus
25001extern "C"
25002#endif
25003/* We use char because int might match the return type of a gcc2
25004 builtin and then its argument prototype would still apply. */
25005char remove ();
25006int
25007main ()
25008{
25009remove ();
25010 ;
25011 return 0;
25012}
25013_ACEOF
25014rm -f conftest.$ac_objext conftest$ac_exeext
25015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25016 (eval $ac_link) 2>conftest.er1
a848cd7e 25017 ac_status=$?
ac1cb8d3
VS
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
a848cd7e
SC
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
9a8f0513
VS
25023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
ac1cb8d3
VS
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_cv_lib_posix_remove=yes
25037else
25038 echo "$as_me: failed program was:" >&5
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
25041ac_cv_lib_posix_remove=no
25042fi
ac1cb8d3
VS
25043rm -f conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25045LIBS=$ac_check_lib_save_LIBS
25046fi
25047echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25048echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25049if test $ac_cv_lib_posix_remove = yes; then
25050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25051fi
25052
25053 fi
25054
25055 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25056 echo "$as_me:$LINENO: checking for shmat" >&5
25057echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25058if test "${ac_cv_func_shmat+set}" = set; then
25059 echo $ECHO_N "(cached) $ECHO_C" >&6
25060else
25061 cat >conftest.$ac_ext <<_ACEOF
25062/* confdefs.h. */
25063_ACEOF
25064cat confdefs.h >>conftest.$ac_ext
25065cat >>conftest.$ac_ext <<_ACEOF
25066/* end confdefs.h. */
ac1cb8d3
VS
25067/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25069#define shmat innocuous_shmat
25070
a848cd7e
SC
25071/* System header to define __stub macros and hopefully few prototypes,
25072 which can conflict with char shmat (); below.
25073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25074 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25075
a848cd7e
SC
25076#ifdef __STDC__
25077# include <limits.h>
25078#else
25079# include <assert.h>
25080#endif
ac1cb8d3
VS
25081
25082#undef shmat
25083
a848cd7e
SC
25084/* Override any gcc2 internal prototype to avoid an error. */
25085#ifdef __cplusplus
25086extern "C"
25087{
25088#endif
25089/* We use char because int might match the return type of a gcc2
25090 builtin and then its argument prototype would still apply. */
25091char shmat ();
25092/* The GNU C library defines this for functions which it implements
25093 to always fail with ENOSYS. Some functions are actually named
25094 something starting with __ and the normal name is an alias. */
25095#if defined (__stub_shmat) || defined (__stub___shmat)
25096choke me
25097#else
25098char (*f) () = shmat;
25099#endif
25100#ifdef __cplusplus
25101}
25102#endif
25103
25104int
25105main ()
25106{
25107return f != shmat;
25108 ;
25109 return 0;
25110}
25111_ACEOF
25112rm -f conftest.$ac_objext conftest$ac_exeext
25113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25114 (eval $ac_link) 2>conftest.er1
a848cd7e 25115 ac_status=$?
ac1cb8d3
VS
25116 grep -v '^ *+' conftest.er1 >conftest.err
25117 rm -f conftest.er1
25118 cat conftest.err >&5
a848cd7e
SC
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } &&
9a8f0513
VS
25121 { ac_try='test -z "$ac_c_werror_flag"
25122 || test ! -s conftest.err'
ac1cb8d3
VS
25123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; } &&
25128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_func_shmat=yes
25135else
25136 echo "$as_me: failed program was:" >&5
25137sed 's/^/| /' conftest.$ac_ext >&5
25138
25139ac_cv_func_shmat=no
25140fi
ac1cb8d3
VS
25141rm -f conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25143fi
25144echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25145echo "${ECHO_T}$ac_cv_func_shmat" >&6
25146
25147 if test $ac_cv_func_shmat = no; then
25148 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25149echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25150if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25152else
25153 ac_check_lib_save_LIBS=$LIBS
25154LIBS="-lipc $LIBS"
25155cat >conftest.$ac_ext <<_ACEOF
25156/* confdefs.h. */
25157_ACEOF
25158cat confdefs.h >>conftest.$ac_ext
25159cat >>conftest.$ac_ext <<_ACEOF
25160/* end confdefs.h. */
25161
25162/* Override any gcc2 internal prototype to avoid an error. */
25163#ifdef __cplusplus
25164extern "C"
25165#endif
25166/* We use char because int might match the return type of a gcc2
25167 builtin and then its argument prototype would still apply. */
25168char shmat ();
25169int
25170main ()
25171{
25172shmat ();
25173 ;
25174 return 0;
25175}
25176_ACEOF
25177rm -f conftest.$ac_objext conftest$ac_exeext
25178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25179 (eval $ac_link) 2>conftest.er1
a848cd7e 25180 ac_status=$?
ac1cb8d3
VS
25181 grep -v '^ *+' conftest.er1 >conftest.err
25182 rm -f conftest.er1
25183 cat conftest.err >&5
a848cd7e
SC
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } &&
9a8f0513
VS
25186 { ac_try='test -z "$ac_c_werror_flag"
25187 || test ! -s conftest.err'
ac1cb8d3
VS
25188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; } &&
25193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_cv_lib_ipc_shmat=yes
25200else
25201 echo "$as_me: failed program was:" >&5
25202sed 's/^/| /' conftest.$ac_ext >&5
25203
25204ac_cv_lib_ipc_shmat=no
25205fi
ac1cb8d3
VS
25206rm -f conftest.err conftest.$ac_objext \
25207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25208LIBS=$ac_check_lib_save_LIBS
25209fi
25210echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25211echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25212if test $ac_cv_lib_ipc_shmat = yes; then
25213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25214fi
25215
25216 fi
25217 fi
25218
25219 # Check for libraries that X11R6 Xt/Xaw programs need.
25220 ac_save_LDFLAGS=$LDFLAGS
25221 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25222 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25223 # check for ICE first), but we must link in the order -lSM -lICE or
25224 # we get undefined symbols. So assume we have SM if we have ICE.
25225 # These have to be linked with before -lX11, unlike the other
25226 # libraries we check for below, so use a different variable.
25227 # John Interrante, Karl Berry
25228 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25229echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25230if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25232else
25233 ac_check_lib_save_LIBS=$LIBS
25234LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25235cat >conftest.$ac_ext <<_ACEOF
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
25241
25242/* Override any gcc2 internal prototype to avoid an error. */
25243#ifdef __cplusplus
25244extern "C"
25245#endif
25246/* We use char because int might match the return type of a gcc2
25247 builtin and then its argument prototype would still apply. */
25248char IceConnectionNumber ();
25249int
25250main ()
25251{
25252IceConnectionNumber ();
25253 ;
25254 return 0;
25255}
25256_ACEOF
25257rm -f conftest.$ac_objext conftest$ac_exeext
25258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25259 (eval $ac_link) 2>conftest.er1
a848cd7e 25260 ac_status=$?
ac1cb8d3
VS
25261 grep -v '^ *+' conftest.er1 >conftest.err
25262 rm -f conftest.er1
25263 cat conftest.err >&5
a848cd7e
SC
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } &&
9a8f0513
VS
25266 { ac_try='test -z "$ac_c_werror_flag"
25267 || test ! -s conftest.err'
ac1cb8d3
VS
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25270 ac_status=$?
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; } &&
25273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 ac_cv_lib_ICE_IceConnectionNumber=yes
25280else
25281 echo "$as_me: failed program was:" >&5
25282sed 's/^/| /' conftest.$ac_ext >&5
25283
25284ac_cv_lib_ICE_IceConnectionNumber=no
25285fi
ac1cb8d3
VS
25286rm -f conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25288LIBS=$ac_check_lib_save_LIBS
25289fi
25290echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25291echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25292if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25293 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25294fi
25295
25296 LDFLAGS=$ac_save_LDFLAGS
25297
25298fi
25299
25300
25301 if test "$no_x" = "yes"; then
25302 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25303echo "$as_me: error: X11 not found" >&2;}
25304 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25305 fi
25306
74b84332
VS
25307 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25308 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25309 AFMINSTALL=afminstall
25310 COMPILED_X_PROGRAM=0
25311
74b84332
VS
25312 fi
25313
25314 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25315 if test "$wxUSE_NANOX" = "yes"; then
25316 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25317echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25318 if test "x$MICROWIN" = x ; then
25319 echo "$as_me:$LINENO: result: not found" >&5
25320echo "${ECHO_T}not found" >&6
25321 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25322echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25323 { (exit 1); exit 1; }; }
25324 else
25325 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25326echo "${ECHO_T}$MICROWIN" >&6
25327 cat >>confdefs.h <<\_ACEOF
25328#define wxUSE_NANOX 1
25329_ACEOF
25330
25331 fi
25332 fi
25333
25334 if test "$wxUSE_UNICODE" = "yes"; then
25335
25336 succeeded=no
25337
25338 if test -z "$PKG_CONFIG"; then
25339 # Extract the first word of "pkg-config", so it can be a program name with args.
25340set dummy pkg-config; ac_word=$2
25341echo "$as_me:$LINENO: checking for $ac_word" >&5
25342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25343if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25344 echo $ECHO_N "(cached) $ECHO_C" >&6
25345else
25346 case $PKG_CONFIG in
25347 [\\/]* | ?:[\\/]*)
25348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25349 ;;
25350 *)
25351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25352for as_dir in $PATH
25353do
25354 IFS=$as_save_IFS
25355 test -z "$as_dir" && as_dir=.
25356 for ac_exec_ext in '' $ac_executable_extensions; do
25357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25360 break 2
25361 fi
25362done
25363done
25364
25365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25366 ;;
25367esac
25368fi
25369PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25370
25371if test -n "$PKG_CONFIG"; then
25372 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25373echo "${ECHO_T}$PKG_CONFIG" >&6
25374else
25375 echo "$as_me:$LINENO: result: no" >&5
25376echo "${ECHO_T}no" >&6
25377fi
25378
25379 fi
25380
25381 if test "$PKG_CONFIG" = "no" ; then
25382 echo "*** The pkg-config script could not be found. Make sure it is"
25383 echo "*** in your path, or set the PKG_CONFIG environment variable"
25384 echo "*** to the full path to pkg-config."
25385 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25386 else
25387 PKG_CONFIG_MIN_VERSION=0.9.0
25388 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25389 echo "$as_me:$LINENO: checking for pangox" >&5
25390echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25391
25392 if $PKG_CONFIG --exists "pangox" ; then
25393 echo "$as_me:$LINENO: result: yes" >&5
25394echo "${ECHO_T}yes" >&6
25395 succeeded=yes
25396
25397 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25398echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25399 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25400 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25401echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25402
25403 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25404echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25405 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25406 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25407echo "${ECHO_T}$PANGOX_LIBS" >&6
25408 else
25409 PANGOX_CFLAGS=""
25410 PANGOX_LIBS=""
25411 ## If we have a custom action on failure, don't print errors, but
25412 ## do set a variable so people can do so.
25413 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25414
25415 fi
25416
25417
25418
25419 else
25420 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25421 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25422 fi
25423 fi
25424
25425 if test $succeeded = yes; then
25426
25427 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25428 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25429
25430 else
25431
25432 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25433echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25434 { (exit 1); exit 1; }; }
25435
25436
25437 fi
25438
25439
25440 succeeded=no
25441
25442 if test -z "$PKG_CONFIG"; then
25443 # Extract the first word of "pkg-config", so it can be a program name with args.
25444set dummy pkg-config; ac_word=$2
25445echo "$as_me:$LINENO: checking for $ac_word" >&5
25446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25447if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25449else
25450 case $PKG_CONFIG in
25451 [\\/]* | ?:[\\/]*)
25452 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25453 ;;
25454 *)
25455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25456for as_dir in $PATH
25457do
25458 IFS=$as_save_IFS
25459 test -z "$as_dir" && as_dir=.
25460 for ac_exec_ext in '' $ac_executable_extensions; do
25461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25462 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25464 break 2
25465 fi
25466done
25467done
25468
25469 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25470 ;;
25471esac
25472fi
25473PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25474
25475if test -n "$PKG_CONFIG"; then
25476 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25477echo "${ECHO_T}$PKG_CONFIG" >&6
25478else
25479 echo "$as_me:$LINENO: result: no" >&5
25480echo "${ECHO_T}no" >&6
25481fi
25482
25483 fi
25484
25485 if test "$PKG_CONFIG" = "no" ; then
25486 echo "*** The pkg-config script could not be found. Make sure it is"
25487 echo "*** in your path, or set the PKG_CONFIG environment variable"
25488 echo "*** to the full path to pkg-config."
25489 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25490 else
25491 PKG_CONFIG_MIN_VERSION=0.9.0
25492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25493 echo "$as_me:$LINENO: checking for pangoft2" >&5
25494echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25495
25496 if $PKG_CONFIG --exists "pangoft2" ; then
25497 echo "$as_me:$LINENO: result: yes" >&5
25498echo "${ECHO_T}yes" >&6
25499 succeeded=yes
25500
25501 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25502echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25503 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25504 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25505echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25506
25507 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25508echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25509 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25510 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25511echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25512 else
25513 PANGOFT2_CFLAGS=""
25514 PANGOFT2_LIBS=""
25515 ## If we have a custom action on failure, don't print errors, but
25516 ## do set a variable so people can do so.
25517 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25518
25519 fi
25520
25521
25522
25523 else
25524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25526 fi
25527 fi
25528
25529 if test $succeeded = yes; then
25530
25531 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25532 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25533
25534 else
25535
25536 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25537echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25538 wxUSE_PRINTING_ARCHITECTURE="no"
25539
25540
25541 fi
25542
25543
25544 succeeded=no
25545
25546 if test -z "$PKG_CONFIG"; then
25547 # Extract the first word of "pkg-config", so it can be a program name with args.
25548set dummy pkg-config; ac_word=$2
25549echo "$as_me:$LINENO: checking for $ac_word" >&5
25550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25551if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25552 echo $ECHO_N "(cached) $ECHO_C" >&6
25553else
25554 case $PKG_CONFIG in
25555 [\\/]* | ?:[\\/]*)
25556 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25557 ;;
25558 *)
25559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25560for as_dir in $PATH
25561do
25562 IFS=$as_save_IFS
25563 test -z "$as_dir" && as_dir=.
25564 for ac_exec_ext in '' $ac_executable_extensions; do
25565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25566 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25568 break 2
25569 fi
25570done
25571done
25572
25573 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25574 ;;
25575esac
25576fi
25577PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25578
25579if test -n "$PKG_CONFIG"; then
25580 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25581echo "${ECHO_T}$PKG_CONFIG" >&6
25582else
25583 echo "$as_me:$LINENO: result: no" >&5
25584echo "${ECHO_T}no" >&6
25585fi
25586
25587 fi
25588
25589 if test "$PKG_CONFIG" = "no" ; then
25590 echo "*** The pkg-config script could not be found. Make sure it is"
25591 echo "*** in your path, or set the PKG_CONFIG environment variable"
25592 echo "*** to the full path to pkg-config."
25593 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25594 else
25595 PKG_CONFIG_MIN_VERSION=0.9.0
25596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25597 echo "$as_me:$LINENO: checking for pangoxft" >&5
25598echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25599
25600 if $PKG_CONFIG --exists "pangoxft" ; then
25601 echo "$as_me:$LINENO: result: yes" >&5
25602echo "${ECHO_T}yes" >&6
25603 succeeded=yes
25604
25605 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25606echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25607 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25608 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25609echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25610
25611 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25612echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25613 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25614 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25615echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25616 else
25617 PANGOXFT_CFLAGS=""
25618 PANGOXFT_LIBS=""
25619 ## If we have a custom action on failure, don't print errors, but
25620 ## do set a variable so people can do so.
25621 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25622
25623 fi
25624
25625
25626
25627 else
25628 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25629 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25630 fi
25631 fi
25632
25633 if test $succeeded = yes; then
25634
25635 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25636 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25637
25638 else
25639
25640 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25641echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25642
25643
25644 fi
25645
304205f1
VS
25646 save_CFLAGS="$CFLAGS"
25647 save_LIBS="$LIBS"
25648 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25649 LIBS="$LIBS $PANGOX_LIBS"
25650
25651for ac_func in pango_font_family_is_monospace
25652do
25653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25654echo "$as_me:$LINENO: checking for $ac_func" >&5
25655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25656if eval "test \"\${$as_ac_var+set}\" = set"; then
25657 echo $ECHO_N "(cached) $ECHO_C" >&6
25658else
25659 cat >conftest.$ac_ext <<_ACEOF
25660/* confdefs.h. */
25661_ACEOF
25662cat confdefs.h >>conftest.$ac_ext
25663cat >>conftest.$ac_ext <<_ACEOF
25664/* end confdefs.h. */
25665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25667#define $ac_func innocuous_$ac_func
25668
25669/* System header to define __stub macros and hopefully few prototypes,
25670 which can conflict with char $ac_func (); below.
25671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25672 <limits.h> exists even on freestanding compilers. */
25673
25674#ifdef __STDC__
25675# include <limits.h>
25676#else
25677# include <assert.h>
25678#endif
25679
25680#undef $ac_func
25681
25682/* Override any gcc2 internal prototype to avoid an error. */
25683#ifdef __cplusplus
25684extern "C"
25685{
25686#endif
25687/* We use char because int might match the return type of a gcc2
25688 builtin and then its argument prototype would still apply. */
25689char $ac_func ();
25690/* The GNU C library defines this for functions which it implements
25691 to always fail with ENOSYS. Some functions are actually named
25692 something starting with __ and the normal name is an alias. */
25693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25694choke me
25695#else
25696char (*f) () = $ac_func;
25697#endif
25698#ifdef __cplusplus
25699}
25700#endif
25701
25702int
25703main ()
25704{
25705return f != $ac_func;
25706 ;
25707 return 0;
25708}
25709_ACEOF
25710rm -f conftest.$ac_objext conftest$ac_exeext
25711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25712 (eval $ac_link) 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
9a8f0513
VS
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
304205f1
VS
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25723 ac_status=$?
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest$ac_exeext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 eval "$as_ac_var=yes"
25733else
25734 echo "$as_me: failed program was:" >&5
25735sed 's/^/| /' conftest.$ac_ext >&5
25736
25737eval "$as_ac_var=no"
25738fi
25739rm -f conftest.err conftest.$ac_objext \
25740 conftest$ac_exeext conftest.$ac_ext
25741fi
25742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25744if test `eval echo '${'$as_ac_var'}'` = yes; then
25745 cat >>confdefs.h <<_ACEOF
25746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25747_ACEOF
25748
25749fi
25750done
25751
25752 CFLAGS="$save_CFLAGS"
25753 LIBS="$save_LIBS"
a848cd7e
SC
25754 fi
25755
25756 wxUSE_UNIVERSAL="yes"
25757
25758 if test "$wxUSE_NANOX" = "yes"; then
25759 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25760 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"
25761 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25762 else
25763 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25764 fi
25765
25766 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25767 TOOLKIT=X11
25768 GUIDIST=X11_DIST
25769 fi
25770
25771 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25772 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25773echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25774
74b84332
VS
25775ac_find_includes=
25776for ac_dir in $SEARCH_INCLUDE /usr/include;
25777 do
25778 if test -f "$ac_dir/Xm/Xm.h"; then
25779 ac_find_includes=$ac_dir
25780 break
25781 fi
25782 done
a848cd7e 25783
74b84332
VS
25784 if test "$ac_find_includes" != "" ; then
25785 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25786echo "${ECHO_T}found in $ac_find_includes" >&6
25787
25788 if test "x$ac_find_includes" = "x/usr/include"; then
25789 ac_path_to_include=""
25790 else
25791 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25792 result=$?
25793 if test $result = 0; then
25794 ac_path_to_include=""
25795 else
25796 ac_path_to_include=" -I$ac_find_includes"
25797 fi
a848cd7e
SC
25798 fi
25799
74b84332
VS
25800 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25801 else
25802 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25803/* confdefs.h. */
25804_ACEOF
25805cat confdefs.h >>conftest.$ac_ext
25806cat >>conftest.$ac_ext <<_ACEOF
25807/* end confdefs.h. */
25808
74b84332
VS
25809 #include <Xm/Xm.h>
25810
a848cd7e
SC
25811int
25812main ()
25813{
25814
74b84332
VS
25815 int version;
25816 version = xmUseVersion;
25817
a848cd7e
SC
25818 ;
25819 return 0;
25820}
25821_ACEOF
74b84332
VS
25822rm -f conftest.$ac_objext
25823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25824 (eval $ac_compile) 2>conftest.er1
a848cd7e 25825 ac_status=$?
ac1cb8d3
VS
25826 grep -v '^ *+' conftest.er1 >conftest.err
25827 rm -f conftest.er1
25828 cat conftest.err >&5
a848cd7e
SC
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
9a8f0513
VS
25831 { ac_try='test -z "$ac_c_werror_flag"
25832 || test ! -s conftest.err'
ac1cb8d3
VS
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
74b84332 25838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
74b84332
VS
25844
25845 echo "$as_me:$LINENO: result: found in default search path" >&5
25846echo "${ECHO_T}found in default search path" >&6
25847 COMPILED_X_PROGRAM=1
25848
a848cd7e
SC
25849else
25850 echo "$as_me: failed program was:" >&5
25851sed 's/^/| /' conftest.$ac_ext >&5
25852
a848cd7e 25853
74b84332
VS
25854 echo "$as_me:$LINENO: result: no" >&5
25855echo "${ECHO_T}no" >&6
25856 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25857echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25858 { (exit 1); exit 1; }; }
a848cd7e 25859
a848cd7e 25860
a848cd7e 25861fi
74b84332
VS
25862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25863 fi
25864
25865 if test "$COMPILED_X_PROGRAM" = 0; then
25866 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25867echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25868
25869ac_find_libraries=
25870for ac_dir in $SEARCH_LIB /usr/lib;
25871 do
25872 for ac_extension in a so sl dylib; do
25873 if test -f "$ac_dir/libXm.$ac_extension"; then
25874 ac_find_libraries=$ac_dir
25875 break 2
a848cd7e 25876 fi
74b84332
VS
25877 done
25878 done
a848cd7e 25879
74b84332
VS
25880 if test "$ac_find_libraries" != "" ; then
25881 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25882echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25883
74b84332
VS
25884
25885 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25886 result=$?
25887 if test $result = 0; then
25888 ac_path_to_link=""
a848cd7e 25889 else
74b84332
VS
25890 ac_path_to_link=" -L$ac_find_libraries"
25891 fi
25892
25893 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25894 else
25895 save_CFLAGS=$CFLAGS
25896 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25897
25898 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25899/* confdefs.h. */
25900_ACEOF
25901cat confdefs.h >>conftest.$ac_ext
25902cat >>conftest.$ac_ext <<_ACEOF
25903/* end confdefs.h. */
25904
74b84332
VS
25905 #include <Xm/Xm.h>
25906
a848cd7e
SC
25907int
25908main ()
25909{
74b84332
VS
25910
25911 int version;
25912 version = xmUseVersion;
25913
a848cd7e
SC
25914 ;
25915 return 0;
25916}
25917_ACEOF
74b84332
VS
25918rm -f conftest.$ac_objext
25919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25920 (eval $ac_compile) 2>conftest.er1
a848cd7e 25921 ac_status=$?
ac1cb8d3
VS
25922 grep -v '^ *+' conftest.er1 >conftest.err
25923 rm -f conftest.er1
25924 cat conftest.err >&5
a848cd7e
SC
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); } &&
9a8f0513
VS
25927 { ac_try='test -z "$ac_c_werror_flag"
25928 || test ! -s conftest.err'
ac1cb8d3
VS
25929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); }; } &&
74b84332 25934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; }; then
74b84332
VS
25940
25941 echo "$as_me:$LINENO: result: found in default search path" >&5
25942echo "${ECHO_T}found in default search path" >&6
25943 COMPILED_X_PROGRAM=1
25944
a848cd7e
SC
25945else
25946 echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
74b84332
VS
25949
25950 echo "$as_me:$LINENO: result: no" >&5
25951echo "${ECHO_T}no" >&6
25952 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25953echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25954 { (exit 1); exit 1; }; }
25955
25956
25957fi
25958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25959
25960 CFLAGS=$save_CFLAGS
25961 fi
25962 fi
25963
25964 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25965echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25966 libp_link=""
25967 libsm_ice_link=""
25968 libs_found=0
25969 for libp in "" " -lXp"; do
25970 if test "$libs_found" = "0"; then
25971 for libsm_ice in "" " -lSM -lICE"; do
25972 if test "$libs_found" = "0"; then
25973 save_LIBS="$LIBS"
25974 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25975 save_CFLAGS=$CFLAGS
25976 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25977
25978 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25979/* confdefs.h. */
25980_ACEOF
25981cat confdefs.h >>conftest.$ac_ext
25982cat >>conftest.$ac_ext <<_ACEOF
25983/* end confdefs.h. */
25984
74b84332
VS
25985 #include <Xm/Xm.h>
25986 #include <Xm/List.h>
25987
a848cd7e
SC
25988int
25989main ()
25990{
74b84332
VS
25991
25992 XmString string = NULL;
25993 Widget w = NULL;
25994 int position = 0;
25995 XmListAddItem(w, string, position);
25996
a848cd7e
SC
25997 ;
25998 return 0;
25999}
26000_ACEOF
26001rm -f conftest.$ac_objext conftest$ac_exeext
26002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26003 (eval $ac_link) 2>conftest.er1
a848cd7e 26004 ac_status=$?
ac1cb8d3
VS
26005 grep -v '^ *+' conftest.er1 >conftest.err
26006 rm -f conftest.er1
26007 cat conftest.err >&5
a848cd7e
SC
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); } &&
9a8f0513
VS
26010 { ac_try='test -z "$ac_c_werror_flag"
26011 || test ! -s conftest.err'
ac1cb8d3
VS
26012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26013 (eval $ac_try) 2>&5
26014 ac_status=$?
26015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016 (exit $ac_status); }; } &&
26017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; }; then
26023
26024 libp_link="$libp"
26025 libsm_ice_link="$libsm_ice"
26026 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26027echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26028 libs_found=1
26029
26030else
26031 echo "$as_me: failed program was:" >&5
26032sed 's/^/| /' conftest.$ac_ext >&5
26033
26034
26035
26036fi
ac1cb8d3
VS
26037rm -f conftest.err conftest.$ac_objext \
26038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26039
26040 LIBS="$save_LIBS"
26041 CFLAGS=$save_CFLAGS
26042 fi
26043 done
26044 fi
26045 done
26046
26047 if test "$libs_found" = "0"; then
26048 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26049echo "${ECHO_T}can't find the right libraries" >&6
26050 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26051echo "$as_me: error: can't link a simple motif program" >&2;}
26052 { (exit 1); exit 1; }; }
26053 fi
26054
26055 save_CFLAGS=$CFLAGS
26056 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26057 echo "$as_me:$LINENO: checking for Motif 2" >&5
26058echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26059 cat >conftest.$ac_ext <<_ACEOF
26060/* confdefs.h. */
26061_ACEOF
26062cat confdefs.h >>conftest.$ac_ext
26063cat >>conftest.$ac_ext <<_ACEOF
26064/* end confdefs.h. */
26065
26066 #include <Xm/Xm.h>
26067
26068int
26069main ()
26070{
26071
26072 #if XmVersion < 2000
26073 #error "Not Motif 2"
26074 #endif
26075
26076 ;
26077 return 0;
26078}
26079_ACEOF
26080rm -f conftest.$ac_objext
26081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26082 (eval $ac_compile) 2>conftest.er1
a848cd7e 26083 ac_status=$?
ac1cb8d3
VS
26084 grep -v '^ *+' conftest.er1 >conftest.err
26085 rm -f conftest.er1
26086 cat conftest.err >&5
a848cd7e
SC
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } &&
9a8f0513
VS
26089 { ac_try='test -z "$ac_c_werror_flag"
26090 || test ! -s conftest.err'
ac1cb8d3
VS
26091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092 (eval $ac_try) 2>&5
26093 ac_status=$?
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); }; } &&
26096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26099 ac_status=$?
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; }; then
26102
26103 cat >>confdefs.h <<\_ACEOF
26104#define __WXMOTIF20__ 1
26105_ACEOF
26106
26107 echo "$as_me:$LINENO: result: found" >&5
26108echo "${ECHO_T}found" >&6
26109
26110else
26111 echo "$as_me: failed program was:" >&5
26112sed 's/^/| /' conftest.$ac_ext >&5
26113
26114
26115 cat >>confdefs.h <<\_ACEOF
26116#define __WXMOTIF20__ 0
26117_ACEOF
26118
26119 echo "$as_me:$LINENO: result: not found" >&5
26120echo "${ECHO_T}not found" >&6
26121
26122fi
ac1cb8d3 26123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26124 CFLAGS=$save_CFLAGS
26125
26126 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26127 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26128 TOOLKIT=MOTIF
26129 GUIDIST=MOTIF_DIST
26130 fi
26131
74b84332 26132 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26133 if test "$wxUSE_LIBXPM" = "sys"; then
26134 echo "$as_me:$LINENO: checking for Xpm library" >&5
26135echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26136
26137ac_find_libraries=
26138for ac_dir in $SEARCH_LIB /usr/lib;
26139 do
26140 for ac_extension in a so sl dylib; do
26141 if test -f "$ac_dir/libXpm.$ac_extension"; then
26142 ac_find_libraries=$ac_dir
26143 break 2
26144 fi
26145 done
26146 done
26147
26148 if test "$ac_find_libraries" != "" ; then
26149
26150 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26151 result=$?
26152 if test $result = 0; then
26153 ac_path_to_link=""
26154 else
26155 ac_path_to_link=" -L$ac_find_libraries"
26156 fi
26157
26158 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26159 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26160echo "${ECHO_T}found at $ac_find_libraries" >&6
26161
26162 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26163echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26164if test "${wx_cv_x11_xpm_h+set}" = set; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26166else
26167
26168 save_CFLAGS=$CFLAGS
26169 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26170
26171 cat >conftest.$ac_ext <<_ACEOF
26172/* confdefs.h. */
26173_ACEOF
26174cat confdefs.h >>conftest.$ac_ext
26175cat >>conftest.$ac_ext <<_ACEOF
26176/* end confdefs.h. */
26177
26178 #include <X11/xpm.h>
26179
26180int
26181main ()
26182{
26183
26184 int version;
26185 version = XpmLibraryVersion();
26186
26187 ;
26188 return 0;
26189}
26190_ACEOF
26191rm -f conftest.$ac_objext
26192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26193 (eval $ac_compile) 2>conftest.er1
a848cd7e 26194 ac_status=$?
ac1cb8d3
VS
26195 grep -v '^ *+' conftest.er1 >conftest.err
26196 rm -f conftest.er1
26197 cat conftest.err >&5
a848cd7e
SC
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } &&
9a8f0513
VS
26200 { ac_try='test -z "$ac_c_werror_flag"
26201 || test ! -s conftest.err'
ac1cb8d3
VS
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; } &&
26207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 wx_cv_x11_xpm_h=yes
26214else
26215 echo "$as_me: failed program was:" >&5
26216sed 's/^/| /' conftest.$ac_ext >&5
26217
26218wx_cv_x11_xpm_h=no
26219
26220fi
ac1cb8d3 26221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26222
26223 CFLAGS=$save_CFLAGS
26224
26225
26226fi
26227echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26228echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26229
26230 if test $wx_cv_x11_xpm_h = "yes"; then
26231 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26232 cat >>confdefs.h <<\_ACEOF
26233#define wxHAVE_LIB_XPM 1
26234_ACEOF
26235
26236 else
26237 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26238echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26239 fi
26240 fi
26241
26242 fi
26243
26244 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26245echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26246if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26247 echo $ECHO_N "(cached) $ECHO_C" >&6
26248else
26249 ac_check_lib_save_LIBS=$LIBS
26250LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26251cat >conftest.$ac_ext <<_ACEOF
26252/* confdefs.h. */
26253_ACEOF
26254cat confdefs.h >>conftest.$ac_ext
26255cat >>conftest.$ac_ext <<_ACEOF
26256/* end confdefs.h. */
26257
26258/* Override any gcc2 internal prototype to avoid an error. */
26259#ifdef __cplusplus
26260extern "C"
26261#endif
26262/* We use char because int might match the return type of a gcc2
26263 builtin and then its argument prototype would still apply. */
26264char XShapeQueryExtension ();
26265int
26266main ()
26267{
26268XShapeQueryExtension ();
26269 ;
26270 return 0;
26271}
26272_ACEOF
26273rm -f conftest.$ac_objext conftest$ac_exeext
26274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26275 (eval $ac_link) 2>conftest.er1
a848cd7e 26276 ac_status=$?
ac1cb8d3
VS
26277 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1
26279 cat conftest.err >&5
a848cd7e
SC
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } &&
9a8f0513
VS
26282 { ac_try='test -z "$ac_c_werror_flag"
26283 || test ! -s conftest.err'
ac1cb8d3
VS
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5
26286 ac_status=$?
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; } &&
26289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26292 ac_status=$?
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; }; then
26295 ac_cv_lib_Xext_XShapeQueryExtension=yes
26296else
26297 echo "$as_me: failed program was:" >&5
26298sed 's/^/| /' conftest.$ac_ext >&5
26299
26300ac_cv_lib_Xext_XShapeQueryExtension=no
26301fi
ac1cb8d3
VS
26302rm -f conftest.err conftest.$ac_objext \
26303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26304LIBS=$ac_check_lib_save_LIBS
26305fi
26306echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26307echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26308if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26309
26310 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26311 wxHAVE_XEXT_LIB=1
26312
26313fi
26314
26315
26316 if test "$wxHAVE_XEXT_LIB" = 1; then
26317 save_CFLAGS="$CFLAGS"
26318 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26319
26320 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26321echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26322 cat >conftest.$ac_ext <<_ACEOF
26323/* confdefs.h. */
26324_ACEOF
26325cat confdefs.h >>conftest.$ac_ext
26326cat >>conftest.$ac_ext <<_ACEOF
26327/* end confdefs.h. */
26328
26329 #include <X11/Xlib.h>
26330 #include <X11/extensions/shape.h>
26331
26332int
26333main ()
26334{
26335
26336 int dummy1, dummy2;
26337 XShapeQueryExtension((Display*)NULL,
26338 (int*)NULL, (int*)NULL);
26339
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344rm -f conftest.$ac_objext
26345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26346 (eval $ac_compile) 2>conftest.er1
a848cd7e 26347 ac_status=$?
ac1cb8d3
VS
26348 grep -v '^ *+' conftest.er1 >conftest.err
26349 rm -f conftest.er1
26350 cat conftest.err >&5
a848cd7e
SC
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } &&
9a8f0513
VS
26353 { ac_try='test -z "$ac_c_werror_flag"
26354 || test ! -s conftest.err'
ac1cb8d3
VS
26355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); }; } &&
26360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26362 (eval $ac_try) 2>&5
26363 ac_status=$?
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); }; }; then
26366
26367 cat >>confdefs.h <<\_ACEOF
26368#define HAVE_XSHAPE 1
26369_ACEOF
26370
26371 echo "$as_me:$LINENO: result: found" >&5
26372echo "${ECHO_T}found" >&6
26373
26374else
26375 echo "$as_me: failed program was:" >&5
26376sed 's/^/| /' conftest.$ac_ext >&5
26377
26378
26379 echo "$as_me:$LINENO: result: not found" >&5
26380echo "${ECHO_T}not found" >&6
26381
26382fi
ac1cb8d3 26383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26384 CFLAGS="$save_CFLAGS"
26385
26386 fi
26387 fi
26388
26389 if test "$wxUSE_MAC" = 1; then
26390 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26391echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26392 if test "$GCC" = yes; then
26393 echo "$as_me:$LINENO: result: gcc" >&5
26394echo "${ECHO_T}gcc" >&6
26395 CPPFLAGS_PASCAL="-fpascal-strings"
26396 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26397 echo "$as_me:$LINENO: result: xlc" >&5
26398echo "${ECHO_T}xlc" >&6
26399 CPPFLAGS_PASCAL="-qmacpstr"
26400 else
26401 echo "$as_me:$LINENO: result: none" >&5
26402echo "${ECHO_T}none" >&6
26403 fi
26404
26405 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26406
26407 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26408 TOOLKIT=MAC
26409 GUIDIST=MACX_DIST
26410 WXBASEPORT="_carbon"
26411 fi
26412
26413 if test "$wxUSE_COCOA" = 1; then
26414 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26415 TOOLKIT=COCOA
26416 GUIDIST=COCOA_DIST
26417 fi
26418
26419 if test "$wxUSE_PM" = 1; then
26420 TOOLKIT=PM
de59c161
RD
26421 GUIDIST=PM_DIST
26422 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26423echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26424if test "${wx_cv_spbcdata+set}" = set; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26426else
26427
26428 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26429/* confdefs.h. */
26430_ACEOF
26431cat confdefs.h >>conftest.$ac_ext
26432cat >>conftest.$ac_ext <<_ACEOF
26433/* end confdefs.h. */
26434
26435 #define INCL_PM
26436 #include <os2.h>
26437
26438int
26439main ()
26440{
26441
26442 SPBCDATA test;
26443
26444 ;
26445 return 0;
26446}
26447_ACEOF
26448rm -f conftest.$ac_objext
26449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26450 (eval $ac_compile) 2>conftest.er1
de59c161 26451 ac_status=$?
ac1cb8d3
VS
26452 grep -v '^ *+' conftest.er1 >conftest.err
26453 rm -f conftest.er1
26454 cat conftest.err >&5
de59c161
RD
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } &&
9a8f0513
VS
26457 { ac_try='test -z "$ac_c_werror_flag"
26458 || test ! -s conftest.err'
ac1cb8d3
VS
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; } &&
26464 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; }; then
26470 wx_cv_spbcdata=yes
26471else
26472 echo "$as_me: failed program was:" >&5
26473sed 's/^/| /' conftest.$ac_ext >&5
26474
26475wx_cv_spbcdata=no
26476
26477fi
ac1cb8d3 26478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26479
26480
26481fi
26482echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26483echo "${ECHO_T}$wx_cv_spbcdata" >&6
26484
26485 if test $wx_cv_spbcdata = "yes"; then
26486 cat >>confdefs.h <<\_ACEOF
26487#define HAVE_SPBCDATA 1
26488_ACEOF
26489
26490 fi
a848cd7e
SC
26491 fi
26492
26493 if test "$TOOLKIT" = "PM" ; then
26494 TOOLKIT_DIR="os2"
26495 else
26496 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26497 fi
26498
26499 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26500
26501 if test "$wxUSE_UNIVERSAL" = "yes"; then
26502 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26503
26504 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26505 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26506
26507 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26508 if test "$wxUSE_X11" = 1; then
26509 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26510 else
26511 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26512 fi
26513 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26514 WIDGET_SET=univ
26515 else
26516 ALL_OBJECTS="\$(GUIOBJS)"
26517 ALL_SOURCES="\$(ALL_SOURCES)"
26518 ALL_HEADERS="\$(ALL_HEADERS)"
26519 fi
26520
26521 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26522
26523 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26524 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26525 fi
26526
26527 if test "$wxUSE_HTML" = "yes"; then
26528 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26529 fi
26530
26531 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26532 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26533 fi
26534 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26535 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26536 fi
26537 if test "$wxUSE_LIBPNG" = "builtin" ; then
26538 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26539 fi
26540
26541 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26542 DISTDIR="wx\$(TOOLKIT)"
26543else
26544 USE_GUI=0
26545
26546 TOOLKIT_DIR="base"
26547
26548 if test "$USE_WIN32" = 1 ; then
26549 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26550 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26551
26552 TOOLKIT="MSW"
26553 else
26554 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26555 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26556 fi
26557
26558 ALL_SOURCES="\$(ALL_SOURCES)"
26559 ALL_HEADERS="\$(ALL_HEADERS)"
26560
26561 PORT_FILES="\${top_srcdir}/src/files.lst"
26562
26563 GUIDIST="BASE_DIST"
26564 DISTDIR="wxBase"
26565fi
26566
26567
26568
26569
26570IODBC_C_SRC=""
26571
26572
26573if test "$TOOLKIT" != "MSW" ; then
26574
26575 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26576
26577 if test "${ac_cv_header_sql_h+set}" = set; then
26578 echo "$as_me:$LINENO: checking for sql.h" >&5
26579echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26580if test "${ac_cv_header_sql_h+set}" = set; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26582fi
26583echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26584echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26585else
26586 # Is the header compilable?
26587echo "$as_me:$LINENO: checking sql.h usability" >&5
26588echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26589cat >conftest.$ac_ext <<_ACEOF
26590/* confdefs.h. */
26591_ACEOF
26592cat confdefs.h >>conftest.$ac_ext
26593cat >>conftest.$ac_ext <<_ACEOF
26594/* end confdefs.h. */
26595$ac_includes_default
26596#include <sql.h>
26597_ACEOF
26598rm -f conftest.$ac_objext
26599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26600 (eval $ac_compile) 2>conftest.er1
a848cd7e 26601 ac_status=$?
ac1cb8d3
VS
26602 grep -v '^ *+' conftest.er1 >conftest.err
26603 rm -f conftest.er1
26604 cat conftest.err >&5
a848cd7e
SC
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
9a8f0513
VS
26607 { ac_try='test -z "$ac_c_werror_flag"
26608 || test ! -s conftest.err'
ac1cb8d3
VS
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 ac_header_compiler=yes
26621else
26622 echo "$as_me: failed program was:" >&5
26623sed 's/^/| /' conftest.$ac_ext >&5
26624
26625ac_header_compiler=no
26626fi
ac1cb8d3 26627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26629echo "${ECHO_T}$ac_header_compiler" >&6
26630
26631# Is the header present?
26632echo "$as_me:$LINENO: checking sql.h presence" >&5
26633echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26634cat >conftest.$ac_ext <<_ACEOF
26635/* confdefs.h. */
26636_ACEOF
26637cat confdefs.h >>conftest.$ac_ext
26638cat >>conftest.$ac_ext <<_ACEOF
26639/* end confdefs.h. */
26640#include <sql.h>
26641_ACEOF
26642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26644 ac_status=$?
26645 grep -v '^ *+' conftest.er1 >conftest.err
26646 rm -f conftest.er1
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } >/dev/null; then
26650 if test -s conftest.err; then
26651 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26653 else
26654 ac_cpp_err=
26655 fi
26656else
26657 ac_cpp_err=yes
26658fi
26659if test -z "$ac_cpp_err"; then
26660 ac_header_preproc=yes
26661else
26662 echo "$as_me: failed program was:" >&5
26663sed 's/^/| /' conftest.$ac_ext >&5
26664
26665 ac_header_preproc=no
26666fi
26667rm -f conftest.err conftest.$ac_ext
26668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26669echo "${ECHO_T}$ac_header_preproc" >&6
26670
26671# So? What about this header?
ac1cb8d3
VS
26672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26673 yes:no: )
a848cd7e
SC
26674 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26675echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26676 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26677echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26678 ac_header_preproc=yes
a848cd7e 26679 ;;
ac1cb8d3 26680 no:yes:* )
a848cd7e
SC
26681 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26682echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26683 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26684echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26686echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26687 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26688echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26689 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26690echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26691 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26692echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26693 (
26694 cat <<\_ASBOX
ac1cb8d3
VS
26695## ----------------------------------------- ##
26696## Report this to wx-dev@lists.wxwidgets.org ##
26697## ----------------------------------------- ##
a848cd7e
SC
26698_ASBOX
26699 ) |
26700 sed "s/^/$as_me: WARNING: /" >&2
26701 ;;
26702esac
26703echo "$as_me:$LINENO: checking for sql.h" >&5
26704echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26705if test "${ac_cv_header_sql_h+set}" = set; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26707else
26708 ac_cv_header_sql_h=$ac_header_preproc
26709fi
26710echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26711echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26712
26713fi
26714if test $ac_cv_header_sql_h = yes; then
26715 found_sql_h=1
26716fi
26717
26718
26719 if test "x$found_sql_h" = "x1" ; then
26720 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26721echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26722if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26723 echo $ECHO_N "(cached) $ECHO_C" >&6
26724else
26725 ac_check_lib_save_LIBS=$LIBS
26726LIBS="-liodbc $LIBS"
26727cat >conftest.$ac_ext <<_ACEOF
26728/* confdefs.h. */
26729_ACEOF
26730cat confdefs.h >>conftest.$ac_ext
26731cat >>conftest.$ac_ext <<_ACEOF
26732/* end confdefs.h. */
26733
26734/* Override any gcc2 internal prototype to avoid an error. */
26735#ifdef __cplusplus
26736extern "C"
26737#endif
26738/* We use char because int might match the return type of a gcc2
26739 builtin and then its argument prototype would still apply. */
26740char SQLAllocEnv ();
26741int
26742main ()
26743{
26744SQLAllocEnv ();
26745 ;
26746 return 0;
26747}
26748_ACEOF
26749rm -f conftest.$ac_objext conftest$ac_exeext
26750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26751 (eval $ac_link) 2>conftest.er1
a848cd7e 26752 ac_status=$?
ac1cb8d3
VS
26753 grep -v '^ *+' conftest.er1 >conftest.err
26754 rm -f conftest.er1
26755 cat conftest.err >&5
a848cd7e
SC
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); } &&
9a8f0513
VS
26758 { ac_try='test -z "$ac_c_werror_flag"
26759 || test ! -s conftest.err'
ac1cb8d3
VS
26760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26761 (eval $ac_try) 2>&5
26762 ac_status=$?
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); }; } &&
26765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767 (eval $ac_try) 2>&5
26768 ac_status=$?
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); }; }; then
26771 ac_cv_lib_iodbc_SQLAllocEnv=yes
26772else
26773 echo "$as_me: failed program was:" >&5
26774sed 's/^/| /' conftest.$ac_ext >&5
26775
26776ac_cv_lib_iodbc_SQLAllocEnv=no
26777fi
ac1cb8d3
VS
26778rm -f conftest.err conftest.$ac_objext \
26779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26780LIBS=$ac_check_lib_save_LIBS
26781fi
26782echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26783echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26784if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26785 ODBC_LINK=" -liodbc"
26786else
26787
26788 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26789echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26790if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26792else
26793 ac_check_lib_save_LIBS=$LIBS
26794LIBS="-lunixodbc $LIBS"
26795cat >conftest.$ac_ext <<_ACEOF
26796/* confdefs.h. */
26797_ACEOF
26798cat confdefs.h >>conftest.$ac_ext
26799cat >>conftest.$ac_ext <<_ACEOF
26800/* end confdefs.h. */
26801
26802/* Override any gcc2 internal prototype to avoid an error. */
26803#ifdef __cplusplus
26804extern "C"
26805#endif
26806/* We use char because int might match the return type of a gcc2
26807 builtin and then its argument prototype would still apply. */
26808char SQLAllocEnv ();
26809int
26810main ()
26811{
26812SQLAllocEnv ();
26813 ;
26814 return 0;
26815}
26816_ACEOF
26817rm -f conftest.$ac_objext conftest$ac_exeext
26818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26819 (eval $ac_link) 2>conftest.er1
a848cd7e 26820 ac_status=$?
ac1cb8d3
VS
26821 grep -v '^ *+' conftest.er1 >conftest.err
26822 rm -f conftest.er1
26823 cat conftest.err >&5
a848cd7e
SC
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); } &&
9a8f0513
VS
26826 { ac_try='test -z "$ac_c_werror_flag"
26827 || test ! -s conftest.err'
ac1cb8d3
VS
26828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26829 (eval $ac_try) 2>&5
26830 ac_status=$?
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); }; } &&
26833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26840else
26841 echo "$as_me: failed program was:" >&5
26842sed 's/^/| /' conftest.$ac_ext >&5
26843
26844ac_cv_lib_unixodbc_SQLAllocEnv=no
26845fi
ac1cb8d3
VS
26846rm -f conftest.err conftest.$ac_objext \
26847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26848LIBS=$ac_check_lib_save_LIBS
26849fi
26850echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26851echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26852if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26853 ODBC_LINK=" -lunixodbc"
26854else
26855
26856 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26857echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26858if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26860else
26861 ac_check_lib_save_LIBS=$LIBS
26862LIBS="-lodbc $LIBS"
26863cat >conftest.$ac_ext <<_ACEOF
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
26869
26870/* Override any gcc2 internal prototype to avoid an error. */
26871#ifdef __cplusplus
26872extern "C"
26873#endif
26874/* We use char because int might match the return type of a gcc2
26875 builtin and then its argument prototype would still apply. */
26876char SQLAllocEnv ();
26877int
26878main ()
26879{
26880SQLAllocEnv ();
26881 ;
26882 return 0;
26883}
26884_ACEOF
26885rm -f conftest.$ac_objext conftest$ac_exeext
26886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26887 (eval $ac_link) 2>conftest.er1
a848cd7e 26888 ac_status=$?
ac1cb8d3
VS
26889 grep -v '^ *+' conftest.er1 >conftest.err
26890 rm -f conftest.er1
26891 cat conftest.err >&5
a848cd7e
SC
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); } &&
9a8f0513
VS
26894 { ac_try='test -z "$ac_c_werror_flag"
26895 || test ! -s conftest.err'
ac1cb8d3
VS
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; } &&
26901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 ac_cv_lib_odbc_SQLAllocEnv=yes
26908else
26909 echo "$as_me: failed program was:" >&5
26910sed 's/^/| /' conftest.$ac_ext >&5
26911
26912ac_cv_lib_odbc_SQLAllocEnv=no
26913fi
ac1cb8d3
VS
26914rm -f conftest.err conftest.$ac_objext \
26915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26916LIBS=$ac_check_lib_save_LIBS
26917fi
26918echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26919echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26920if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26921 ODBC_LINK=" -lodbc"
26922fi
26923
26924
26925fi
26926
26927
26928fi
26929
26930 fi
26931 if test "x$ODBC_LINK" = "x" ; then
26932 if test "$wxUSE_ODBC" = "sys" ; then
26933 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26934echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26935 { (exit 1); exit 1; }; }
26936 else
26937 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26938echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26939 wxUSE_ODBC=builtin
26940 fi
26941 else
26942 wxUSE_ODBC=sys
26943 fi
26944 fi
26945 if test "$wxUSE_ODBC" != "no" ; then
26946 cat >>confdefs.h <<\_ACEOF
26947#define wxUSE_ODBC 1
26948_ACEOF
26949
26950 if test "$wxUSE_ODBC" = "builtin" ; then
26951 cat >>confdefs.h <<\_ACEOF
26952#define wxUSE_BUILTIN_IODBC 1
26953_ACEOF
26954
26955 fi
26956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26957
26958 WXODBCFLAG="-D_IODBC_"
26959 fi
26960fi
26961
26962if test "$wxUSE_REGEX" = "builtin" ; then
26963 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26964fi
26965if test "$wxUSE_ZLIB" = "builtin" ; then
26966 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26967fi
26968
01cb68df 26969
a848cd7e 26970if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26971 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26972 echo "$as_me:$LINENO: checking for Xinerama" >&5
26973echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26974
26975ac_find_libraries=
26976for ac_dir in $SEARCH_LIB /usr/lib;
26977 do
26978 for ac_extension in a so sl dylib; do
26979 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26980 ac_find_libraries=$ac_dir
26981 break 2
26982 fi
26983 done
26984 done
26985
26986 if test "$ac_find_libraries" != "" ; then
26987
26988 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26989 result=$?
26990 if test $result = 0; then
26991 ac_path_to_link=""
26992 else
26993 ac_path_to_link=" -L$ac_find_libraries"
26994 fi
26995
26996 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26997 LDFLAGS="$LDFLAGS $ac_path_to_link"
26998 fi
26999 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27000 echo "$as_me:$LINENO: result: yes" >&5
27001echo "${ECHO_T}yes" >&6
27002
27003 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27004echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27005
27006ac_find_libraries=
27007for ac_dir in $SEARCH_LIB /usr/lib;
27008 do
27009 for ac_extension in a so sl dylib; do
27010 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27011 ac_find_libraries=$ac_dir
27012 break 2
27013 fi
27014 done
27015 done
27016
27017 if test "$ac_find_libraries" != "" ; then
27018 echo "$as_me:$LINENO: result: yes" >&5
27019echo "${ECHO_T}yes" >&6
27020
27021for ac_header in X11/extensions/xf86vmode.h
27022do
27023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27024echo "$as_me:$LINENO: checking for $ac_header" >&5
27025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27026if eval "test \"\${$as_ac_Header+set}\" = set"; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029 cat >conftest.$ac_ext <<_ACEOF
27030/* confdefs.h. */
27031_ACEOF
27032cat confdefs.h >>conftest.$ac_ext
27033cat >>conftest.$ac_ext <<_ACEOF
27034/* end confdefs.h. */
27035
27036 #if HAVE_X11_XLIB_H
27037 #include <X11/Xlib.h>
27038 #endif
27039
27040
27041#include <$ac_header>
27042_ACEOF
27043rm -f conftest.$ac_objext
27044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27045 (eval $ac_compile) 2>conftest.er1
a848cd7e 27046 ac_status=$?
ac1cb8d3
VS
27047 grep -v '^ *+' conftest.er1 >conftest.err
27048 rm -f conftest.er1
27049 cat conftest.err >&5
a848cd7e
SC
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } &&
9a8f0513
VS
27052 { ac_try='test -z "$ac_c_werror_flag"
27053 || test ! -s conftest.err'
ac1cb8d3
VS
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; } &&
27059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); }; }; then
27065 eval "$as_ac_Header=yes"
27066else
27067 echo "$as_me: failed program was:" >&5
27068sed 's/^/| /' conftest.$ac_ext >&5
27069
27070eval "$as_ac_Header=no"
27071fi
ac1cb8d3 27072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27073fi
27074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27076if test `eval echo '${'$as_ac_Header'}'` = yes; then
27077 cat >>confdefs.h <<_ACEOF
27078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27079_ACEOF
27080
27081 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27082
27083fi
27084
27085done
27086
27087 else
27088 echo "$as_me:$LINENO: result: no" >&5
27089echo "${ECHO_T}no" >&6
27090 fi
27091
27092 else
27093 echo "$as_me:$LINENO: result: no" >&5
27094echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27095 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27096echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27097 wxUSE_DISPLAY="no"
27098 fi
01cb68df
RG
27099 elif test "$wxUSE_MSW" = 1; then
27100
27101
27102for ac_header in multimon.h ddraw.h
27103do
27104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27105if eval "test \"\${$as_ac_Header+set}\" = set"; then
27106 echo "$as_me:$LINENO: checking for $ac_header" >&5
27107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27108if eval "test \"\${$as_ac_Header+set}\" = set"; then
27109 echo $ECHO_N "(cached) $ECHO_C" >&6
27110fi
27111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27113else
27114 # Is the header compilable?
27115echo "$as_me:$LINENO: checking $ac_header usability" >&5
27116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27117cat >conftest.$ac_ext <<_ACEOF
27118/* confdefs.h. */
27119_ACEOF
27120cat confdefs.h >>conftest.$ac_ext
27121cat >>conftest.$ac_ext <<_ACEOF
27122/* end confdefs.h. */
27123$ac_includes_default
27124#include <$ac_header>
27125_ACEOF
27126rm -f conftest.$ac_objext
27127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27128 (eval $ac_compile) 2>conftest.er1
01cb68df 27129 ac_status=$?
ac1cb8d3
VS
27130 grep -v '^ *+' conftest.er1 >conftest.err
27131 rm -f conftest.er1
27132 cat conftest.err >&5
01cb68df
RG
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); } &&
9a8f0513
VS
27135 { ac_try='test -z "$ac_c_werror_flag"
27136 || test ! -s conftest.err'
ac1cb8d3
VS
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27139 ac_status=$?
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; } &&
27142 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144 (eval $ac_try) 2>&5
27145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
27148 ac_header_compiler=yes
27149else
27150 echo "$as_me: failed program was:" >&5
27151sed 's/^/| /' conftest.$ac_ext >&5
27152
27153ac_header_compiler=no
27154fi
ac1cb8d3 27155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27157echo "${ECHO_T}$ac_header_compiler" >&6
27158
27159# Is the header present?
27160echo "$as_me:$LINENO: checking $ac_header presence" >&5
27161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27162cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h. */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h. */
27168#include <$ac_header>
27169_ACEOF
27170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27172 ac_status=$?
27173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } >/dev/null; then
27178 if test -s conftest.err; then
27179 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27181 else
27182 ac_cpp_err=
27183 fi
27184else
27185 ac_cpp_err=yes
27186fi
27187if test -z "$ac_cpp_err"; then
27188 ac_header_preproc=yes
27189else
27190 echo "$as_me: failed program was:" >&5
27191sed 's/^/| /' conftest.$ac_ext >&5
27192
27193 ac_header_preproc=no
27194fi
27195rm -f conftest.err conftest.$ac_ext
27196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27197echo "${ECHO_T}$ac_header_preproc" >&6
27198
27199# So? What about this header?
ac1cb8d3
VS
27200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27201 yes:no: )
01cb68df
RG
27202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27206 ac_header_preproc=yes
01cb68df 27207 ;;
ac1cb8d3 27208 no:yes:* )
01cb68df
RG
27209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27221 (
27222 cat <<\_ASBOX
ac1cb8d3
VS
27223## ----------------------------------------- ##
27224## Report this to wx-dev@lists.wxwidgets.org ##
27225## ----------------------------------------- ##
01cb68df
RG
27226_ASBOX
27227 ) |
27228 sed "s/^/$as_me: WARNING: /" >&2
27229 ;;
27230esac
27231echo "$as_me:$LINENO: checking for $ac_header" >&5
27232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27233if eval "test \"\${$as_ac_Header+set}\" = set"; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27235else
ac1cb8d3 27236 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27237fi
27238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27240
27241fi
27242if test `eval echo '${'$as_ac_Header'}'` = yes; then
27243 cat >>confdefs.h <<_ACEOF
27244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27245_ACEOF
27246
27247else
27248
27249 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27250 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27251echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27252
27253fi
27254
27255done
27256
a848cd7e
SC
27257 fi
27258fi
27259
27260
27261USE_OPENGL=0
27262if test "$wxUSE_OPENGL" = "yes"; then
27263 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27264 OPENGL_LIBS="-framework OpenGL -framework AGL"
27265 elif test "$wxUSE_MSW" = 1; then
27266 OPENGL_LIBS="-lopengl32 -lglu32"
27267 else
27268
27269
27270ac_find_includes=
27271for ac_dir in $SEARCH_INCLUDE /usr/include;
27272 do
27273 if test -f "$ac_dir/GL/gl.h"; then
27274 ac_find_includes=$ac_dir
27275 break
27276 fi
27277 done
27278
27279 if test "$ac_find_includes" != "" ; then
27280 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27281echo "${ECHO_T}found in $ac_find_includes" >&6
27282
27283 if test "x$ac_find_includes" = "x/usr/include"; then
27284 ac_path_to_include=""
27285 else
27286 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27287 result=$?
27288 if test $result = 0; then
27289 ac_path_to_include=""
27290 else
27291 ac_path_to_include=" -I$ac_find_includes"
27292 fi
27293 fi
27294
27295 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27296 fi
27297
27298 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27299 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27300echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27301if test "${ac_cv_header_GL_gl_h+set}" = set; then
27302 echo $ECHO_N "(cached) $ECHO_C" >&6
27303fi
27304echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27305echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27306else
27307 # Is the header compilable?
27308echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27309echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27310cat >conftest.$ac_ext <<_ACEOF
27311/* confdefs.h. */
27312_ACEOF
27313cat confdefs.h >>conftest.$ac_ext
27314cat >>conftest.$ac_ext <<_ACEOF
27315/* end confdefs.h. */
27316$ac_includes_default
27317#include <GL/gl.h>
27318_ACEOF
27319rm -f conftest.$ac_objext
27320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27321 (eval $ac_compile) 2>conftest.er1
a848cd7e 27322 ac_status=$?
ac1cb8d3
VS
27323 grep -v '^ *+' conftest.er1 >conftest.err
27324 rm -f conftest.er1
27325 cat conftest.err >&5
a848cd7e
SC
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); } &&
9a8f0513
VS
27328 { ac_try='test -z "$ac_c_werror_flag"
27329 || test ! -s conftest.err'
ac1cb8d3
VS
27330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331 (eval $ac_try) 2>&5
27332 ac_status=$?
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; } &&
27335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337 (eval $ac_try) 2>&5
27338 ac_status=$?
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; }; then
27341 ac_header_compiler=yes
27342else
27343 echo "$as_me: failed program was:" >&5
27344sed 's/^/| /' conftest.$ac_ext >&5
27345
27346ac_header_compiler=no
27347fi
ac1cb8d3 27348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27350echo "${ECHO_T}$ac_header_compiler" >&6
27351
27352# Is the header present?
27353echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27354echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27355cat >conftest.$ac_ext <<_ACEOF
27356/* confdefs.h. */
27357_ACEOF
27358cat confdefs.h >>conftest.$ac_ext
27359cat >>conftest.$ac_ext <<_ACEOF
27360/* end confdefs.h. */
27361#include <GL/gl.h>
27362_ACEOF
27363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27365 ac_status=$?
27366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } >/dev/null; then
27371 if test -s conftest.err; then
27372 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27374 else
27375 ac_cpp_err=
27376 fi
27377else
27378 ac_cpp_err=yes
27379fi
27380if test -z "$ac_cpp_err"; then
27381 ac_header_preproc=yes
27382else
27383 echo "$as_me: failed program was:" >&5
27384sed 's/^/| /' conftest.$ac_ext >&5
27385
27386 ac_header_preproc=no
27387fi
27388rm -f conftest.err conftest.$ac_ext
27389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27390echo "${ECHO_T}$ac_header_preproc" >&6
27391
27392# So? What about this header?
ac1cb8d3
VS
27393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27394 yes:no: )
a848cd7e
SC
27395 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27396echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27397 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27398echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27399 ac_header_preproc=yes
a848cd7e 27400 ;;
ac1cb8d3 27401 no:yes:* )
a848cd7e
SC
27402 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27403echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27404 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27405echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27406 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27407echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27408 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27409echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27410 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27411echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27412 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27413echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27414 (
27415 cat <<\_ASBOX
ac1cb8d3
VS
27416## ----------------------------------------- ##
27417## Report this to wx-dev@lists.wxwidgets.org ##
27418## ----------------------------------------- ##
a848cd7e
SC
27419_ASBOX
27420 ) |
27421 sed "s/^/$as_me: WARNING: /" >&2
27422 ;;
27423esac
27424echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27425echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27426if test "${ac_cv_header_GL_gl_h+set}" = set; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27428else
27429 ac_cv_header_GL_gl_h=$ac_header_preproc
27430fi
27431echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27432echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27433
27434fi
27435if test $ac_cv_header_GL_gl_h = yes; then
27436
27437 found_gl=0
27438
27439 echo "$as_me:$LINENO: checking for -lGL" >&5
27440echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27441
27442ac_find_libraries=
27443for ac_dir in $SEARCH_LIB /usr/lib;
27444 do
27445 for ac_extension in a so sl dylib; do
27446 if test -f "$ac_dir/libGL.$ac_extension"; then
27447 ac_find_libraries=$ac_dir
27448 break 2
27449 fi
27450 done
27451 done
27452
27453 if test "$ac_find_libraries" != "" ; then
27454
27455 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27456 result=$?
27457 if test $result = 0; then
27458 ac_path_to_link=""
27459 else
27460 ac_path_to_link=" -L$ac_find_libraries"
27461 fi
27462
27463 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27464 LDFLAGS_GL="$ac_path_to_link"
27465 fi
27466
27467
27468ac_find_libraries=
27469for ac_dir in $SEARCH_LIB /usr/lib;
27470 do
27471 for ac_extension in a so sl dylib; do
27472 if test -f "$ac_dir/libGLU.$ac_extension"; then
27473 ac_find_libraries=$ac_dir
27474 break 2
27475 fi
27476 done
27477 done
27478
27479 if test "$ac_find_libraries" != "" ; then
27480
27481 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27482 result=$?
27483 if test $result = 0; then
27484 ac_path_to_link=""
27485 else
27486 ac_path_to_link=" -L$ac_find_libraries"
27487 fi
27488
27489 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27490 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27491 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27492 fi
27493
27494 found_gl=1
27495 OPENGL_LIBS="-lGL -lGLU"
27496 echo "$as_me:$LINENO: result: yes" >&5
27497echo "${ECHO_T}yes" >&6
27498 fi
27499 fi
27500
27501 if test "$found_gl" != 1; then
27502 echo "$as_me:$LINENO: result: no" >&5
27503echo "${ECHO_T}no" >&6
27504 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27505echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27506
27507ac_find_libraries=
27508for ac_dir in $SEARCH_LIB /usr/lib;
27509 do
27510 for ac_extension in a so sl dylib; do
27511 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27512 ac_find_libraries=$ac_dir
27513 break 2
27514 fi
27515 done
27516 done
27517
27518 if test "$ac_find_libraries" != "" ; then
27519
27520 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27521 result=$?
27522 if test $result = 0; then
27523 ac_path_to_link=""
27524 else
27525 ac_path_to_link=" -L$ac_find_libraries"
27526 fi
27527
27528 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27529 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27530 echo "$as_me:$LINENO: result: yes" >&5
27531echo "${ECHO_T}yes" >&6
27532 else
27533 echo "$as_me:$LINENO: result: no" >&5
27534echo "${ECHO_T}no" >&6
27535 fi
27536 fi
27537
27538fi
27539
27540
27541
27542 if test "x$OPENGL_LIBS" = "x"; then
27543 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27544echo "$as_me: error: OpenGL libraries not available" >&2;}
27545 { (exit 1); exit 1; }; }
27546 fi
27547 fi
27548
27549 if test "$wxUSE_OPENGL" = "yes"; then
27550 USE_OPENGL=1
27551 cat >>confdefs.h <<\_ACEOF
27552#define wxUSE_OPENGL 1
27553_ACEOF
27554
27555 cat >>confdefs.h <<\_ACEOF
27556#define wxUSE_GLCANVAS 1
27557_ACEOF
27558
27559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27560 fi
27561fi
27562
27563if test -z "$TOOLKIT_VPATH" ; then
27564 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27565fi
27566
27567if test -n "$TOOLKIT" ; then
27568 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27569fi
27570
27571UNICODE=0
27572lib_unicode_suffix=
48112931 27573wxconfig_filename_unicode="ansi"
a848cd7e
SC
27574if test "$wxUSE_UNICODE" = "yes"; then
27575 lib_unicode_suffix=u
48112931 27576 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27577 UNICODE=1
27578fi
27579
27580lib_debug_suffix=
48112931 27581wxconfig_filename_debug="release"
a848cd7e
SC
27582DEBUG_FLAG=0
27583if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27584 lib_debug_suffix=d
48112931 27585 wxconfig_filename_debug="debug"
a848cd7e
SC
27586 DEBUG_FLAG=1
27587fi
27588
27589DEBUG_INFO=0
27590if test "$wxUSE_DEBUG_INFO" = "yes"; then
27591 DEBUG_INFO=1
27592fi
27593
27594WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27595
27596TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27597TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27598
48112931
VS
27599WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27600
a848cd7e
SC
27601if test "$cross_compiling" = "yes"; then
27602 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27603 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27604 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27605 HOST_SUFFIX="-${host_alias}"
27606fi
27607
27608WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27609WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27610WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27611WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27612
27613WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27614WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27615
27616WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27617WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27618WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27619WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27620
27621case "${host}" in
27622 *-*-cygwin* | *-*-mingw32* )
27623 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27624 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27625 ;;
27626
27627 *-*-darwin* )
27628
27629 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27630 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27631
27632 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27633 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27634 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27635 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27636
27637 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27638 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27639 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27640 fi
27641 ;;
27642esac
27643
27644WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27645WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27646
27647WXCONFIG_LIBS="-l${WX_LIBRARY}"
27648WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27649
27650if test "$wxUSE_OPENGL" = "yes"; then
27651 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27652 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27653fi
27654
27655
27656
27657if test "$wxUSE_SHARED" = "yes"; then
27658 case "${host}" in
27659 *-pc-msdosdjgpp )
27660 wxUSE_SHARED=no
27661 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27662echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27663 ;;
27664 esac
27665fi
27666
27667SHARED=0
27668if test "$wxUSE_SHARED" = "yes"; then
27669 SHARED=1
27670
27671
27672 found_versioning=no
27673
27674
27675 if test $found_versioning = no ; then
27676 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27677echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27678if test "${wx_cv_version_script+set}" = set; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27680else
27681
27682 echo "VER_1 { *; };" >conftest.sym
27683 echo "int main() { return 0; }" >conftest.cpp
27684
27685 if { ac_try='
27686 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27687 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27689 (eval $ac_try) 2>&5
27690 ac_status=$?
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; } ; then
27693 if test -s conftest.stderr ; then
27694 wx_cv_version_script=no
27695 else
27696 wx_cv_version_script=yes
27697 fi
27698 else
27699 wx_cv_version_script=no
27700 fi
27701 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27702
27703fi
27704echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27705echo "${ECHO_T}$wx_cv_version_script" >&6
27706 if test $wx_cv_version_script = yes ; then
27707 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27708 fi
27709 fi
27710
27711
27712 case "${host}" in
27713 *-*-linux* | *-*-gnu* )
27714 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27715 ;;
27716
27717 *-*-solaris2* )
27718 if test "$GCC" = yes ; then
27719 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27720
27721 saveLdflags="$LDFLAGS"
27722 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27723 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27724echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27725 cat >conftest.$ac_ext <<_ACEOF
27726/* confdefs.h. */
27727_ACEOF
27728cat confdefs.h >>conftest.$ac_ext
27729cat >>conftest.$ac_ext <<_ACEOF
27730/* end confdefs.h. */
27731
27732int
27733main ()
27734{
27735
27736 ;
27737 return 0;
27738}
27739_ACEOF
27740rm -f conftest.$ac_objext conftest$ac_exeext
27741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27742 (eval $ac_link) 2>conftest.er1
a848cd7e 27743 ac_status=$?
ac1cb8d3
VS
27744 grep -v '^ *+' conftest.er1 >conftest.err
27745 rm -f conftest.er1
27746 cat conftest.err >&5
a848cd7e
SC
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); } &&
9a8f0513
VS
27749 { ac_try='test -z "$ac_c_werror_flag"
27750 || test ! -s conftest.err'
ac1cb8d3
VS
27751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27752 (eval $ac_try) 2>&5
27753 ac_status=$?
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); }; } &&
27756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27758 (eval $ac_try) 2>&5
27759 ac_status=$?
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; }; then
27762
27763 echo "$as_me:$LINENO: result: yes" >&5
27764echo "${ECHO_T}yes" >&6
27765 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27766
27767else
27768 echo "$as_me: failed program was:" >&5
27769sed 's/^/| /' conftest.$ac_ext >&5
27770
27771
27772 echo "$as_me:$LINENO: result: no" >&5
27773echo "${ECHO_T}no" >&6
27774 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27775echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27776 LDFLAGS="$saveLdflags -Wl,-R,/"
27777 cat >conftest.$ac_ext <<_ACEOF
27778/* confdefs.h. */
27779_ACEOF
27780cat confdefs.h >>conftest.$ac_ext
27781cat >>conftest.$ac_ext <<_ACEOF
27782/* end confdefs.h. */
27783
27784int
27785main ()
27786{
27787
27788 ;
27789 return 0;
27790}
27791_ACEOF
27792rm -f conftest.$ac_objext conftest$ac_exeext
27793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27794 (eval $ac_link) 2>conftest.er1
a848cd7e 27795 ac_status=$?
ac1cb8d3
VS
27796 grep -v '^ *+' conftest.er1 >conftest.err
27797 rm -f conftest.er1
27798 cat conftest.err >&5
a848cd7e
SC
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } &&
9a8f0513
VS
27801 { ac_try='test -z "$ac_c_werror_flag"
27802 || test ! -s conftest.err'
ac1cb8d3
VS
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; } &&
27808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
27814
27815 echo "$as_me:$LINENO: result: yes" >&5
27816echo "${ECHO_T}yes" >&6
27817 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27818else
27819 echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
27822
27823 echo "$as_me:$LINENO: result: no" >&5
27824echo "${ECHO_T}no" >&6
27825
27826fi
ac1cb8d3
VS
27827rm -f conftest.err conftest.$ac_objext \
27828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27829
27830fi
ac1cb8d3
VS
27831rm -f conftest.err conftest.$ac_objext \
27832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27833 LDFLAGS="$saveLdflags"
27834 else
27835 SHARED_LD="${CXX} -G -o"
27836 PIC_FLAG="-KPIC"
27837 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27838 fi
27839 ;;
27840
27841 powerpc-*-darwin* )
27842 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27843 cat <<EOF >change-install-names
27844#!/bin/sh
27845libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27846inst_cmd="install_name_tool "
27847for i in \${libnames} ; do
27848 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27849done
27850\${inst_cmd} \${3}
27851EOF
27852 chmod +x change-install-names
27853 ;;
27854
27855 *-*-cygwin* | *-*-mingw32* )
27856 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27857 ;;
27858
27859 esac
27860
27861 if test "x$WX_TARGET_LIBRARY" = "x"; then
27862 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27863 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27864 fi
27865
27866 WX_TARGET_LIBRARY_TYPE="so"
27867 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27868fi
27869
27870if test "$wxUSE_SHARED" = "no"; then
27871
27872 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27873 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27874 fi
27875
27876 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27877 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27878 fi
27879
27880 if test "$wxUSE_OPENGL" = "yes"; then
27881 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27882 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27883 else
27884 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27885 fi
27886
27887 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27888 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27889
27890 WX_TARGET_LIBRARY_TYPE="a"
27891 INSTALL_LIBRARY='$(INSTALL_DATA)'
27892
27893 STATIC_FLAG="yes"
27894else
27895 STATIC_FLAG="no"
27896fi
27897
27898if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27899 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27900 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27901 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27902
27903 # Extract the first word of "Rez", so it can be a program name with args.
27904set dummy Rez; ac_word=$2
27905echo "$as_me:$LINENO: checking for $ac_word" >&5
27906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27907if test "${ac_cv_prog_RESCOMP+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27909else
27910 if test -n "$RESCOMP"; then
27911 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27912else
27913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27914for as_dir in $PATH
27915do
27916 IFS=$as_save_IFS
27917 test -z "$as_dir" && as_dir=.
27918 for ac_exec_ext in '' $ac_executable_extensions; do
27919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27920 ac_cv_prog_RESCOMP="Rez"
27921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27922 break 2
27923 fi
27924done
27925done
27926
27927 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27928fi
27929fi
27930RESCOMP=$ac_cv_prog_RESCOMP
27931if test -n "$RESCOMP"; then
27932 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27933echo "${ECHO_T}$RESCOMP" >&6
27934else
27935 echo "$as_me:$LINENO: result: no" >&5
27936echo "${ECHO_T}no" >&6
27937fi
27938
27939 # Extract the first word of "DeRez", so it can be a program name with args.
27940set dummy DeRez; ac_word=$2
27941echo "$as_me:$LINENO: checking for $ac_word" >&5
27942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27943if test "${ac_cv_prog_DEREZ+set}" = set; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27945else
27946 if test -n "$DEREZ"; then
27947 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27948else
27949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27950for as_dir in $PATH
27951do
27952 IFS=$as_save_IFS
27953 test -z "$as_dir" && as_dir=.
27954 for ac_exec_ext in '' $ac_executable_extensions; do
27955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27956 ac_cv_prog_DEREZ="DeRez"
27957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27958 break 2
27959 fi
27960done
27961done
27962
27963 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27964fi
27965fi
27966DEREZ=$ac_cv_prog_DEREZ
27967if test -n "$DEREZ"; then
27968 echo "$as_me:$LINENO: result: $DEREZ" >&5
27969echo "${ECHO_T}$DEREZ" >&6
27970else
27971 echo "$as_me:$LINENO: result: no" >&5
27972echo "${ECHO_T}no" >&6
27973fi
27974
27975 # Extract the first word of "SetFile", so it can be a program name with args.
27976set dummy SetFile; ac_word=$2
27977echo "$as_me:$LINENO: checking for $ac_word" >&5
27978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27979if test "${ac_cv_prog_SETFILE+set}" = set; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27981else
27982 if test -n "$SETFILE"; then
27983 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27984else
27985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27986for as_dir in $PATH
27987do
27988 IFS=$as_save_IFS
27989 test -z "$as_dir" && as_dir=.
27990 for ac_exec_ext in '' $ac_executable_extensions; do
27991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27992 ac_cv_prog_SETFILE="SetFile"
27993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27994 break 2
27995 fi
27996done
27997done
27998
27999 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28000fi
28001fi
28002SETFILE=$ac_cv_prog_SETFILE
28003if test -n "$SETFILE"; then
28004 echo "$as_me:$LINENO: result: $SETFILE" >&5
28005echo "${ECHO_T}$SETFILE" >&6
28006else
28007 echo "$as_me:$LINENO: result: no" >&5
28008echo "${ECHO_T}no" >&6
28009fi
28010
28011
28012 MACSETFILE="\$(SETFILE)"
28013
28014 if test "$wxUSE_MAC" = 1; then
28015 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28016
28017 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28018 else
28019 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28020 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28021 fi
28022else
28023 MACSETFILE="@#"
28024 MACRESWXCONFIG="#"
28025
28026 if test "$wxUSE_PM" = 1; then
28027 MACRESCOMP="emxbind -ep"
28028 else
28029 MACRESCOMP="@#"
28030 fi
28031fi
28032
28033
28034
28035echo "$as_me:$LINENO: checking for mode_t" >&5
28036echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28037if test "${ac_cv_type_mode_t+set}" = set; then
28038 echo $ECHO_N "(cached) $ECHO_C" >&6
28039else
28040 cat >conftest.$ac_ext <<_ACEOF
28041/* confdefs.h. */
28042_ACEOF
28043cat confdefs.h >>conftest.$ac_ext
28044cat >>conftest.$ac_ext <<_ACEOF
28045/* end confdefs.h. */
28046$ac_includes_default
28047int
28048main ()
28049{
28050if ((mode_t *) 0)
28051 return 0;
28052if (sizeof (mode_t))
28053 return 0;
28054 ;
28055 return 0;
28056}
28057_ACEOF
28058rm -f conftest.$ac_objext
28059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28060 (eval $ac_compile) 2>conftest.er1
a848cd7e 28061 ac_status=$?
ac1cb8d3
VS
28062 grep -v '^ *+' conftest.er1 >conftest.err
28063 rm -f conftest.er1
28064 cat conftest.err >&5
a848cd7e
SC
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
9a8f0513
VS
28067 { ac_try='test -z "$ac_c_werror_flag"
28068 || test ! -s conftest.err'
ac1cb8d3
VS
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28071 ac_status=$?
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
28080 ac_cv_type_mode_t=yes
28081else
28082 echo "$as_me: failed program was:" >&5
28083sed 's/^/| /' conftest.$ac_ext >&5
28084
28085ac_cv_type_mode_t=no
28086fi
ac1cb8d3 28087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28088fi
28089echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28090echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28091if test $ac_cv_type_mode_t = yes; then
28092 :
28093else
28094
28095cat >>confdefs.h <<_ACEOF
28096#define mode_t int
28097_ACEOF
28098
28099fi
28100
28101echo "$as_me:$LINENO: checking for off_t" >&5
28102echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28103if test "${ac_cv_type_off_t+set}" = set; then
28104 echo $ECHO_N "(cached) $ECHO_C" >&6
28105else
28106 cat >conftest.$ac_ext <<_ACEOF
28107/* confdefs.h. */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h. */
28112$ac_includes_default
28113int
28114main ()
28115{
28116if ((off_t *) 0)
28117 return 0;
28118if (sizeof (off_t))
28119 return 0;
28120 ;
28121 return 0;
28122}
28123_ACEOF
28124rm -f conftest.$ac_objext
28125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28126 (eval $ac_compile) 2>conftest.er1
a848cd7e 28127 ac_status=$?
ac1cb8d3
VS
28128 grep -v '^ *+' conftest.er1 >conftest.err
28129 rm -f conftest.er1
28130 cat conftest.err >&5
a848cd7e
SC
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } &&
9a8f0513
VS
28133 { ac_try='test -z "$ac_c_werror_flag"
28134 || test ! -s conftest.err'
ac1cb8d3
VS
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; } &&
28140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; }; then
28146 ac_cv_type_off_t=yes
28147else
28148 echo "$as_me: failed program was:" >&5
28149sed 's/^/| /' conftest.$ac_ext >&5
28150
28151ac_cv_type_off_t=no
28152fi
ac1cb8d3 28153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28154fi
28155echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28156echo "${ECHO_T}$ac_cv_type_off_t" >&6
28157if test $ac_cv_type_off_t = yes; then
28158 :
28159else
28160
28161cat >>confdefs.h <<_ACEOF
28162#define off_t long
28163_ACEOF
28164
28165fi
28166
28167echo "$as_me:$LINENO: checking for pid_t" >&5
28168echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28169if test "${ac_cv_type_pid_t+set}" = set; then
28170 echo $ECHO_N "(cached) $ECHO_C" >&6
28171else
28172 cat >conftest.$ac_ext <<_ACEOF
28173/* confdefs.h. */
28174_ACEOF
28175cat confdefs.h >>conftest.$ac_ext
28176cat >>conftest.$ac_ext <<_ACEOF
28177/* end confdefs.h. */
28178$ac_includes_default
28179int
28180main ()
28181{
28182if ((pid_t *) 0)
28183 return 0;
28184if (sizeof (pid_t))
28185 return 0;
28186 ;
28187 return 0;
28188}
28189_ACEOF
28190rm -f conftest.$ac_objext
28191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28192 (eval $ac_compile) 2>conftest.er1
a848cd7e 28193 ac_status=$?
ac1cb8d3
VS
28194 grep -v '^ *+' conftest.er1 >conftest.err
28195 rm -f conftest.er1
28196 cat conftest.err >&5
a848cd7e
SC
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); } &&
9a8f0513
VS
28199 { ac_try='test -z "$ac_c_werror_flag"
28200 || test ! -s conftest.err'
ac1cb8d3
VS
28201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; }; then
28212 ac_cv_type_pid_t=yes
28213else
28214 echo "$as_me: failed program was:" >&5
28215sed 's/^/| /' conftest.$ac_ext >&5
28216
28217ac_cv_type_pid_t=no
28218fi
ac1cb8d3 28219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28220fi
28221echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28222echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28223if test $ac_cv_type_pid_t = yes; then
28224 :
28225else
28226
28227cat >>confdefs.h <<_ACEOF
28228#define pid_t int
28229_ACEOF
28230
28231fi
28232
28233echo "$as_me:$LINENO: checking for size_t" >&5
28234echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28235if test "${ac_cv_type_size_t+set}" = set; then
28236 echo $ECHO_N "(cached) $ECHO_C" >&6
28237else
28238 cat >conftest.$ac_ext <<_ACEOF
28239/* confdefs.h. */
28240_ACEOF
28241cat confdefs.h >>conftest.$ac_ext
28242cat >>conftest.$ac_ext <<_ACEOF
28243/* end confdefs.h. */
28244$ac_includes_default
28245int
28246main ()
28247{
28248if ((size_t *) 0)
28249 return 0;
28250if (sizeof (size_t))
28251 return 0;
28252 ;
28253 return 0;
28254}
28255_ACEOF
28256rm -f conftest.$ac_objext
28257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28258 (eval $ac_compile) 2>conftest.er1
a848cd7e 28259 ac_status=$?
ac1cb8d3
VS
28260 grep -v '^ *+' conftest.er1 >conftest.err
28261 rm -f conftest.er1
28262 cat conftest.err >&5
a848cd7e
SC
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); } &&
9a8f0513
VS
28265 { ac_try='test -z "$ac_c_werror_flag"
28266 || test ! -s conftest.err'
ac1cb8d3
VS
28267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268 (eval $ac_try) 2>&5
28269 ac_status=$?
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; } &&
28272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28274 (eval $ac_try) 2>&5
28275 ac_status=$?
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; }; then
28278 ac_cv_type_size_t=yes
28279else
28280 echo "$as_me: failed program was:" >&5
28281sed 's/^/| /' conftest.$ac_ext >&5
28282
28283ac_cv_type_size_t=no
28284fi
ac1cb8d3 28285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28286fi
28287echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28288echo "${ECHO_T}$ac_cv_type_size_t" >&6
28289if test $ac_cv_type_size_t = yes; then
28290 :
28291else
28292
28293cat >>confdefs.h <<_ACEOF
28294#define size_t unsigned
28295_ACEOF
28296
28297fi
28298
28299echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28300echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28301if test "${ac_cv_type_uid_t+set}" = set; then
28302 echo $ECHO_N "(cached) $ECHO_C" >&6
28303else
28304 cat >conftest.$ac_ext <<_ACEOF
28305/* confdefs.h. */
28306_ACEOF
28307cat confdefs.h >>conftest.$ac_ext
28308cat >>conftest.$ac_ext <<_ACEOF
28309/* end confdefs.h. */
28310#include <sys/types.h>
28311
28312_ACEOF
28313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28314 $EGREP "uid_t" >/dev/null 2>&1; then
28315 ac_cv_type_uid_t=yes
28316else
28317 ac_cv_type_uid_t=no
28318fi
28319rm -f conftest*
28320
28321fi
28322echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28323echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28324if test $ac_cv_type_uid_t = no; then
28325
28326cat >>confdefs.h <<\_ACEOF
28327#define uid_t int
28328_ACEOF
28329
28330
28331cat >>confdefs.h <<\_ACEOF
28332#define gid_t int
28333_ACEOF
28334
28335fi
28336
28337
28338
28339
28340ac_ext=cc
28341ac_cpp='$CXXCPP $CPPFLAGS'
28342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28345
28346echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28347echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28348if test "${wx_cv_size_t_is_uint+set}" = set; then
28349 echo $ECHO_N "(cached) $ECHO_C" >&6
28350else
28351
28352 cat >conftest.$ac_ext <<_ACEOF
28353/* confdefs.h. */
28354_ACEOF
28355cat confdefs.h >>conftest.$ac_ext
28356cat >>conftest.$ac_ext <<_ACEOF
28357/* end confdefs.h. */
28358#include <stddef.h>
28359int
28360main ()
28361{
28362
28363 return 0; }
28364
28365 struct Foo { void foo(size_t); void foo(unsigned int); };
28366
28367 int bar() {
28368
28369 ;
28370 return 0;
28371}
28372_ACEOF
28373rm -f conftest.$ac_objext
28374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28375 (eval $ac_compile) 2>conftest.er1
a848cd7e 28376 ac_status=$?
ac1cb8d3
VS
28377 grep -v '^ *+' conftest.er1 >conftest.err
28378 rm -f conftest.er1
28379 cat conftest.err >&5
a848cd7e
SC
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); } &&
9a8f0513
VS
28382 { ac_try='test -z "$ac_cxx_werror_flag"
28383 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391 (eval $ac_try) 2>&5
28392 ac_status=$?
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; }; then
28395 wx_cv_size_t_is_uint=no
28396else
28397 echo "$as_me: failed program was:" >&5
28398sed 's/^/| /' conftest.$ac_ext >&5
28399
28400wx_cv_size_t_is_uint=yes
28401
28402fi
ac1cb8d3 28403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28404
28405
28406fi
28407echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28408echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28409
28410if test "$wx_cv_size_t_is_uint" = "yes"; then
28411 cat >>confdefs.h <<\_ACEOF
28412#define wxSIZE_T_IS_UINT 1
28413_ACEOF
28414
28415else
28416 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28417echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28418if test "${wx_cv_size_t_is_ulong+set}" = set; then
28419 echo $ECHO_N "(cached) $ECHO_C" >&6
28420else
28421 cat >conftest.$ac_ext <<_ACEOF
28422/* confdefs.h. */
28423_ACEOF
28424cat confdefs.h >>conftest.$ac_ext
28425cat >>conftest.$ac_ext <<_ACEOF
28426/* end confdefs.h. */
28427#include <stddef.h>
28428int
28429main ()
28430{
28431
28432 return 0; }
28433
28434 struct Foo { void foo(size_t); void foo(unsigned long); };
28435
28436 int bar() {
28437
28438 ;
28439 return 0;
28440}
28441_ACEOF
28442rm -f conftest.$ac_objext
28443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28444 (eval $ac_compile) 2>conftest.er1
a848cd7e 28445 ac_status=$?
ac1cb8d3
VS
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
a848cd7e
SC
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } &&
9a8f0513
VS
28451 { ac_try='test -z "$ac_cxx_werror_flag"
28452 || test ! -s conftest.err'
ac1cb8d3
VS
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; } &&
28458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460 (eval $ac_try) 2>&5
28461 ac_status=$?
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); }; }; then
28464 wx_cv_size_t_is_ulong=no
28465else
28466 echo "$as_me: failed program was:" >&5
28467sed 's/^/| /' conftest.$ac_ext >&5
28468
28469wx_cv_size_t_is_ulong=yes
28470
28471fi
ac1cb8d3 28472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28473
28474fi
28475echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28476echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28477
28478 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28479 cat >>confdefs.h <<\_ACEOF
28480#define wxSIZE_T_IS_ULONG 1
28481_ACEOF
28482
28483 fi
28484fi
28485
28486ac_ext=c
28487ac_cpp='$CPP $CPPFLAGS'
28488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28490ac_compiler_gnu=$ac_cv_c_compiler_gnu
28491
28492
28493
28494echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28495echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28496if test "${wx_cv_struct_pw_gecos+set}" = set; then
28497 echo $ECHO_N "(cached) $ECHO_C" >&6
28498else
28499
28500 cat >conftest.$ac_ext <<_ACEOF
28501/* confdefs.h. */
28502_ACEOF
28503cat confdefs.h >>conftest.$ac_ext
28504cat >>conftest.$ac_ext <<_ACEOF
28505/* end confdefs.h. */
28506#include <pwd.h>
28507int
28508main ()
28509{
28510
28511 char *p;
28512 struct passwd *pw;
28513 p = pw->pw_gecos;
28514
28515 ;
28516 return 0;
28517}
28518_ACEOF
28519rm -f conftest.$ac_objext
28520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28521 (eval $ac_compile) 2>conftest.er1
a848cd7e 28522 ac_status=$?
ac1cb8d3
VS
28523 grep -v '^ *+' conftest.er1 >conftest.err
28524 rm -f conftest.er1
28525 cat conftest.err >&5
a848cd7e
SC
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } &&
9a8f0513
VS
28528 { ac_try='test -z "$ac_c_werror_flag"
28529 || test ! -s conftest.err'
ac1cb8d3
VS
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28538 ac_status=$?
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; }; then
28541
28542 wx_cv_struct_pw_gecos=yes
28543
28544else
28545 echo "$as_me: failed program was:" >&5
28546sed 's/^/| /' conftest.$ac_ext >&5
28547
28548
28549 wx_cv_struct_pw_gecos=no
28550
28551
28552fi
ac1cb8d3 28553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28554
28555
28556fi
28557echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28558echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28559
28560if test "$wx_cv_struct_pw_gecos" = "yes"; then
28561 cat >>confdefs.h <<\_ACEOF
28562#define HAVE_PW_GECOS 1
28563_ACEOF
28564
28565fi
28566
28567
28568if test "$wx_cv_sizeof_wchar_t" != "0"; then
28569 cat >>confdefs.h <<\_ACEOF
28570#define wxUSE_WCHAR_T 1
28571_ACEOF
28572
28573
28574 WCSLEN_FOUND=0
28575 WCHAR_LINK=
28576
28577for ac_func in wcslen
28578do
28579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28580echo "$as_me:$LINENO: checking for $ac_func" >&5
28581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28582if eval "test \"\${$as_ac_var+set}\" = set"; then
28583 echo $ECHO_N "(cached) $ECHO_C" >&6
28584else
28585 cat >conftest.$ac_ext <<_ACEOF
28586/* confdefs.h. */
28587_ACEOF
28588cat confdefs.h >>conftest.$ac_ext
28589cat >>conftest.$ac_ext <<_ACEOF
28590/* end confdefs.h. */
ac1cb8d3
VS
28591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28593#define $ac_func innocuous_$ac_func
28594
a848cd7e
SC
28595/* System header to define __stub macros and hopefully few prototypes,
28596 which can conflict with char $ac_func (); below.
28597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28598 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28599
a848cd7e
SC
28600#ifdef __STDC__
28601# include <limits.h>
28602#else
28603# include <assert.h>
28604#endif
ac1cb8d3
VS
28605
28606#undef $ac_func
28607
a848cd7e
SC
28608/* Override any gcc2 internal prototype to avoid an error. */
28609#ifdef __cplusplus
28610extern "C"
28611{
28612#endif
28613/* We use char because int might match the return type of a gcc2
28614 builtin and then its argument prototype would still apply. */
28615char $ac_func ();
28616/* The GNU C library defines this for functions which it implements
28617 to always fail with ENOSYS. Some functions are actually named
28618 something starting with __ and the normal name is an alias. */
28619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28620choke me
28621#else
28622char (*f) () = $ac_func;
28623#endif
28624#ifdef __cplusplus
28625}
28626#endif
28627
28628int
28629main ()
28630{
28631return f != $ac_func;
28632 ;
28633 return 0;
28634}
28635_ACEOF
28636rm -f conftest.$ac_objext conftest$ac_exeext
28637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28638 (eval $ac_link) 2>conftest.er1
a848cd7e 28639 ac_status=$?
ac1cb8d3
VS
28640 grep -v '^ *+' conftest.er1 >conftest.err
28641 rm -f conftest.er1
28642 cat conftest.err >&5
a848cd7e
SC
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); } &&
9a8f0513
VS
28645 { ac_try='test -z "$ac_c_werror_flag"
28646 || test ! -s conftest.err'
ac1cb8d3
VS
28647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28648 (eval $ac_try) 2>&5
28649 ac_status=$?
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); }; } &&
28652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28654 (eval $ac_try) 2>&5
28655 ac_status=$?
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); }; }; then
28658 eval "$as_ac_var=yes"
28659else
28660 echo "$as_me: failed program was:" >&5
28661sed 's/^/| /' conftest.$ac_ext >&5
28662
28663eval "$as_ac_var=no"
28664fi
ac1cb8d3
VS
28665rm -f conftest.err conftest.$ac_objext \
28666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28667fi
28668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28670if test `eval echo '${'$as_ac_var'}'` = yes; then
28671 cat >>confdefs.h <<_ACEOF
28672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28673_ACEOF
28674 WCSLEN_FOUND=1
28675fi
28676done
28677
28678
28679 if test "$WCSLEN_FOUND" = 0; then
28680 if test "$TOOLKIT" = "MSW"; then
28681 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28682echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28683if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28684 echo $ECHO_N "(cached) $ECHO_C" >&6
28685else
28686 ac_check_lib_save_LIBS=$LIBS
28687LIBS="-lmsvcrt $LIBS"
28688cat >conftest.$ac_ext <<_ACEOF
28689/* confdefs.h. */
28690_ACEOF
28691cat confdefs.h >>conftest.$ac_ext
28692cat >>conftest.$ac_ext <<_ACEOF
28693/* end confdefs.h. */
28694
28695/* Override any gcc2 internal prototype to avoid an error. */
28696#ifdef __cplusplus
28697extern "C"
28698#endif
28699/* We use char because int might match the return type of a gcc2
28700 builtin and then its argument prototype would still apply. */
28701char wcslen ();
28702int
28703main ()
28704{
28705wcslen ();
28706 ;
28707 return 0;
28708}
28709_ACEOF
28710rm -f conftest.$ac_objext conftest$ac_exeext
28711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28712 (eval $ac_link) 2>conftest.er1
a848cd7e 28713 ac_status=$?
ac1cb8d3
VS
28714 grep -v '^ *+' conftest.er1 >conftest.err
28715 rm -f conftest.er1
28716 cat conftest.err >&5
a848cd7e
SC
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } &&
9a8f0513
VS
28719 { ac_try='test -z "$ac_c_werror_flag"
28720 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28728 (eval $ac_try) 2>&5
28729 ac_status=$?
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); }; }; then
28732 ac_cv_lib_msvcrt_wcslen=yes
28733else
28734 echo "$as_me: failed program was:" >&5
28735sed 's/^/| /' conftest.$ac_ext >&5
28736
28737ac_cv_lib_msvcrt_wcslen=no
28738fi
ac1cb8d3
VS
28739rm -f conftest.err conftest.$ac_objext \
28740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28741LIBS=$ac_check_lib_save_LIBS
28742fi
28743echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28744echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28745if test $ac_cv_lib_msvcrt_wcslen = yes; then
28746 WCHAR_OK=1
28747fi
28748
28749 else
28750 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28751echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28752if test "${ac_cv_lib_w_wcslen+set}" = set; then
28753 echo $ECHO_N "(cached) $ECHO_C" >&6
28754else
28755 ac_check_lib_save_LIBS=$LIBS
28756LIBS="-lw $LIBS"
28757cat >conftest.$ac_ext <<_ACEOF
28758/* confdefs.h. */
28759_ACEOF
28760cat confdefs.h >>conftest.$ac_ext
28761cat >>conftest.$ac_ext <<_ACEOF
28762/* end confdefs.h. */
28763
28764/* Override any gcc2 internal prototype to avoid an error. */
28765#ifdef __cplusplus
28766extern "C"
28767#endif
28768/* We use char because int might match the return type of a gcc2
28769 builtin and then its argument prototype would still apply. */
28770char wcslen ();
28771int
28772main ()
28773{
28774wcslen ();
28775 ;
28776 return 0;
28777}
28778_ACEOF
28779rm -f conftest.$ac_objext conftest$ac_exeext
28780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28781 (eval $ac_link) 2>conftest.er1
a848cd7e 28782 ac_status=$?
ac1cb8d3
VS
28783 grep -v '^ *+' conftest.er1 >conftest.err
28784 rm -f conftest.er1
28785 cat conftest.err >&5
a848cd7e
SC
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); } &&
9a8f0513
VS
28788 { ac_try='test -z "$ac_c_werror_flag"
28789 || test ! -s conftest.err'
ac1cb8d3
VS
28790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791 (eval $ac_try) 2>&5
28792 ac_status=$?
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; } &&
28795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
28801 ac_cv_lib_w_wcslen=yes
28802else
28803 echo "$as_me: failed program was:" >&5
28804sed 's/^/| /' conftest.$ac_ext >&5
28805
28806ac_cv_lib_w_wcslen=no
28807fi
ac1cb8d3
VS
28808rm -f conftest.err conftest.$ac_objext \
28809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28810LIBS=$ac_check_lib_save_LIBS
28811fi
28812echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28813echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28814if test $ac_cv_lib_w_wcslen = yes; then
28815
28816 WCHAR_LINK=" -lw"
28817 WCSLEN_FOUND=1
28818
28819fi
28820
28821 fi
28822 fi
28823
28824 if test "$WCSLEN_FOUND" = 1; then
28825 cat >>confdefs.h <<\_ACEOF
28826#define HAVE_WCSLEN 1
28827_ACEOF
28828
28829 fi
28830
473276a9
VS
28831 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28832 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28833 fi
28834
a848cd7e
SC
28835
28836for ac_func in wcsrtombs
28837do
28838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28839echo "$as_me:$LINENO: checking for $ac_func" >&5
28840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28841if eval "test \"\${$as_ac_var+set}\" = set"; then
28842 echo $ECHO_N "(cached) $ECHO_C" >&6
28843else
28844 cat >conftest.$ac_ext <<_ACEOF
28845/* confdefs.h. */
28846_ACEOF
28847cat confdefs.h >>conftest.$ac_ext
28848cat >>conftest.$ac_ext <<_ACEOF
28849/* end confdefs.h. */
ac1cb8d3
VS
28850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28852#define $ac_func innocuous_$ac_func
28853
a848cd7e
SC
28854/* System header to define __stub macros and hopefully few prototypes,
28855 which can conflict with char $ac_func (); below.
28856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28858
a848cd7e
SC
28859#ifdef __STDC__
28860# include <limits.h>
28861#else
28862# include <assert.h>
28863#endif
ac1cb8d3
VS
28864
28865#undef $ac_func
28866
a848cd7e
SC
28867/* Override any gcc2 internal prototype to avoid an error. */
28868#ifdef __cplusplus
28869extern "C"
28870{
28871#endif
28872/* We use char because int might match the return type of a gcc2
28873 builtin and then its argument prototype would still apply. */
28874char $ac_func ();
28875/* The GNU C library defines this for functions which it implements
28876 to always fail with ENOSYS. Some functions are actually named
28877 something starting with __ and the normal name is an alias. */
28878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28879choke me
28880#else
28881char (*f) () = $ac_func;
28882#endif
28883#ifdef __cplusplus
28884}
28885#endif
28886
28887int
28888main ()
28889{
28890return f != $ac_func;
28891 ;
28892 return 0;
28893}
28894_ACEOF
28895rm -f conftest.$ac_objext conftest$ac_exeext
28896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28897 (eval $ac_link) 2>conftest.er1
a848cd7e 28898 ac_status=$?
ac1cb8d3
VS
28899 grep -v '^ *+' conftest.er1 >conftest.err
28900 rm -f conftest.er1
28901 cat conftest.err >&5
a848cd7e
SC
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); } &&
9a8f0513
VS
28904 { ac_try='test -z "$ac_c_werror_flag"
28905 || test ! -s conftest.err'
ac1cb8d3
VS
28906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907 (eval $ac_try) 2>&5
28908 ac_status=$?
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; } &&
28911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913 (eval $ac_try) 2>&5
28914 ac_status=$?
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; }; then
28917 eval "$as_ac_var=yes"
28918else
28919 echo "$as_me: failed program was:" >&5
28920sed 's/^/| /' conftest.$ac_ext >&5
28921
28922eval "$as_ac_var=no"
28923fi
ac1cb8d3
VS
28924rm -f conftest.err conftest.$ac_objext \
28925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28926fi
28927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28929if test `eval echo '${'$as_ac_var'}'` = yes; then
28930 cat >>confdefs.h <<_ACEOF
28931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28932_ACEOF
28933
28934fi
28935done
28936
28937else
28938 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28939echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28940fi
28941
28942
28943
28944ac_ext=cc
28945ac_cpp='$CXXCPP $CPPFLAGS'
28946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28949
28950
28951
28952for ac_func in vsnprintf
28953do
28954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28955echo "$as_me:$LINENO: checking for $ac_func" >&5
28956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28957if eval "test \"\${$as_ac_var+set}\" = set"; then
28958 echo $ECHO_N "(cached) $ECHO_C" >&6
28959else
28960 cat >conftest.$ac_ext <<_ACEOF
28961/* confdefs.h. */
28962_ACEOF
28963cat confdefs.h >>conftest.$ac_ext
28964cat >>conftest.$ac_ext <<_ACEOF
28965/* end confdefs.h. */
ac1cb8d3
VS
28966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28968#define $ac_func innocuous_$ac_func
28969
a848cd7e
SC
28970/* System header to define __stub macros and hopefully few prototypes,
28971 which can conflict with char $ac_func (); below.
28972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28973 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28974
a848cd7e
SC
28975#ifdef __STDC__
28976# include <limits.h>
28977#else
28978# include <assert.h>
28979#endif
ac1cb8d3
VS
28980
28981#undef $ac_func
28982
a848cd7e
SC
28983/* Override any gcc2 internal prototype to avoid an error. */
28984#ifdef __cplusplus
28985extern "C"
28986{
28987#endif
28988/* We use char because int might match the return type of a gcc2
28989 builtin and then its argument prototype would still apply. */
28990char $ac_func ();
28991/* The GNU C library defines this for functions which it implements
28992 to always fail with ENOSYS. Some functions are actually named
28993 something starting with __ and the normal name is an alias. */
28994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28995choke me
28996#else
28997char (*f) () = $ac_func;
28998#endif
28999#ifdef __cplusplus
29000}
29001#endif
29002
29003int
29004main ()
29005{
29006return f != $ac_func;
29007 ;
29008 return 0;
29009}
29010_ACEOF
29011rm -f conftest.$ac_objext conftest$ac_exeext
29012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29013 (eval $ac_link) 2>conftest.er1
a848cd7e 29014 ac_status=$?
ac1cb8d3
VS
29015 grep -v '^ *+' conftest.er1 >conftest.err
29016 rm -f conftest.er1
29017 cat conftest.err >&5
a848cd7e
SC
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
9a8f0513
VS
29020 { ac_try='test -z "$ac_cxx_werror_flag"
29021 || test ! -s conftest.err'
ac1cb8d3
VS
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; } &&
29027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
29033 eval "$as_ac_var=yes"
29034else
29035 echo "$as_me: failed program was:" >&5
29036sed 's/^/| /' conftest.$ac_ext >&5
29037
29038eval "$as_ac_var=no"
29039fi
ac1cb8d3
VS
29040rm -f conftest.err conftest.$ac_objext \
29041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29042fi
29043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29045if test `eval echo '${'$as_ac_var'}'` = yes; then
29046 cat >>confdefs.h <<_ACEOF
29047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29048_ACEOF
29049
29050fi
29051done
29052
29053
29054if test "$ac_cv_func_vsnprintf" = "yes"; then
29055 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29056echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29057if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29058 echo $ECHO_N "(cached) $ECHO_C" >&6
29059else
29060
29061 cat >conftest.$ac_ext <<_ACEOF
29062/* confdefs.h. */
29063_ACEOF
29064cat confdefs.h >>conftest.$ac_ext
29065cat >>conftest.$ac_ext <<_ACEOF
29066/* end confdefs.h. */
29067
29068 #include <stdio.h>
29069 #include <stdarg.h>
29070
29071int
29072main ()
29073{
29074
29075 char *buf;
29076 va_list ap;
29077 vsnprintf(buf, 10u, "%s", ap);
29078
29079 ;
29080 return 0;
29081}
29082_ACEOF
29083rm -f conftest.$ac_objext
29084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29085 (eval $ac_compile) 2>conftest.er1
a848cd7e 29086 ac_status=$?
ac1cb8d3
VS
29087 grep -v '^ *+' conftest.er1 >conftest.err
29088 rm -f conftest.er1
29089 cat conftest.err >&5
a848cd7e
SC
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); } &&
9a8f0513
VS
29092 { ac_try='test -z "$ac_cxx_werror_flag"
29093 || test ! -s conftest.err'
ac1cb8d3
VS
29094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095 (eval $ac_try) 2>&5
29096 ac_status=$?
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; } &&
29099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; }; then
29105 wx_cv_func_vsnprintf_decl=yes
29106else
29107 echo "$as_me: failed program was:" >&5
29108sed 's/^/| /' conftest.$ac_ext >&5
29109
29110wx_cv_func_vsnprintf_decl=no
29111
29112fi
ac1cb8d3 29113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29114
29115
29116fi
29117echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29118echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29119
29120 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29121 cat >>confdefs.h <<\_ACEOF
29122#define HAVE_VSNPRINTF_DECL 1
29123_ACEOF
29124
29125 fi
29126fi
29127
29128if test "$wxUSE_UNICODE" = yes; then
29129
29130
29131
fbe47c7b
VS
29132
29133
29134
29135for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29136do
29137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29138echo "$as_me:$LINENO: checking for $ac_func" >&5
29139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29140if eval "test \"\${$as_ac_var+set}\" = set"; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29142else
29143 cat >conftest.$ac_ext <<_ACEOF
29144/* confdefs.h. */
29145_ACEOF
29146cat confdefs.h >>conftest.$ac_ext
29147cat >>conftest.$ac_ext <<_ACEOF
29148/* end confdefs.h. */
ac1cb8d3
VS
29149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29151#define $ac_func innocuous_$ac_func
29152
a848cd7e
SC
29153/* System header to define __stub macros and hopefully few prototypes,
29154 which can conflict with char $ac_func (); below.
29155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29156 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29157
a848cd7e
SC
29158#ifdef __STDC__
29159# include <limits.h>
29160#else
29161# include <assert.h>
29162#endif
ac1cb8d3
VS
29163
29164#undef $ac_func
29165
a848cd7e
SC
29166/* Override any gcc2 internal prototype to avoid an error. */
29167#ifdef __cplusplus
29168extern "C"
29169{
29170#endif
29171/* We use char because int might match the return type of a gcc2
29172 builtin and then its argument prototype would still apply. */
29173char $ac_func ();
29174/* The GNU C library defines this for functions which it implements
29175 to always fail with ENOSYS. Some functions are actually named
29176 something starting with __ and the normal name is an alias. */
29177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29178choke me
29179#else
29180char (*f) () = $ac_func;
29181#endif
29182#ifdef __cplusplus
29183}
29184#endif
29185
29186int
29187main ()
29188{
29189return f != $ac_func;
29190 ;
29191 return 0;
29192}
29193_ACEOF
29194rm -f conftest.$ac_objext conftest$ac_exeext
29195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29196 (eval $ac_link) 2>conftest.er1
a848cd7e 29197 ac_status=$?
ac1cb8d3
VS
29198 grep -v '^ *+' conftest.er1 >conftest.err
29199 rm -f conftest.er1
29200 cat conftest.err >&5
a848cd7e
SC
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); } &&
9a8f0513
VS
29203 { ac_try='test -z "$ac_cxx_werror_flag"
29204 || test ! -s conftest.err'
ac1cb8d3
VS
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; } &&
29210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212 (eval $ac_try) 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; }; then
29216 eval "$as_ac_var=yes"
29217else
29218 echo "$as_me: failed program was:" >&5
29219sed 's/^/| /' conftest.$ac_ext >&5
29220
29221eval "$as_ac_var=no"
29222fi
ac1cb8d3
VS
29223rm -f conftest.err conftest.$ac_objext \
29224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29225fi
29226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29228if test `eval echo '${'$as_ac_var'}'` = yes; then
29229 cat >>confdefs.h <<_ACEOF
29230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29231_ACEOF
29232
29233fi
29234done
29235
29236
29237 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29238echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29239 cat >conftest.$ac_ext <<_ACEOF
29240/* confdefs.h. */
29241_ACEOF
29242cat confdefs.h >>conftest.$ac_ext
29243cat >>conftest.$ac_ext <<_ACEOF
29244/* end confdefs.h. */
29245#include <wchar.h>
29246int
29247main ()
29248{
29249&_vsnwprintf;
29250 ;
29251 return 0;
29252}
29253_ACEOF
29254rm -f conftest.$ac_objext
29255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29256 (eval $ac_compile) 2>conftest.er1
a848cd7e 29257 ac_status=$?
ac1cb8d3
VS
29258 grep -v '^ *+' conftest.er1 >conftest.err
29259 rm -f conftest.er1
29260 cat conftest.err >&5
a848cd7e
SC
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); } &&
9a8f0513
VS
29263 { ac_try='test -z "$ac_cxx_werror_flag"
29264 || test ! -s conftest.err'
ac1cb8d3
VS
29265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266 (eval $ac_try) 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; } &&
29270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272 (eval $ac_try) 2>&5
29273 ac_status=$?
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); }; }; then
29276 echo "$as_me:$LINENO: result: yes" >&5
29277echo "${ECHO_T}yes" >&6
29278 cat >>confdefs.h <<\_ACEOF
29279#define HAVE__VSNWPRINTF 1
29280_ACEOF
29281
29282else
29283 echo "$as_me: failed program was:" >&5
29284sed 's/^/| /' conftest.$ac_ext >&5
29285
29286echo "$as_me:$LINENO: result: no" >&5
29287echo "${ECHO_T}no" >&6
29288fi
ac1cb8d3 29289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29290fi
29291
29292ac_ext=c
29293ac_cpp='$CPP $CPPFLAGS'
29294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29296ac_compiler_gnu=$ac_cv_c_compiler_gnu
29297
29298
29299
29300
29301if test "$TOOLKIT" != "MSW"; then
29302
29303
29304
29305
29306ac_ext=cc
29307ac_cpp='$CXXCPP $CPPFLAGS'
29308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29311
29312
29313
29314
29315# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29316if test "${with_libiconv_prefix+set}" = set; then
29317 withval="$with_libiconv_prefix"
29318
29319 for dir in `echo "$withval" | tr : ' '`; do
29320 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29321 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29322 done
29323
29324fi;
29325
29326 echo "$as_me:$LINENO: checking for iconv" >&5
29327echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29328if test "${am_cv_func_iconv+set}" = set; then
29329 echo $ECHO_N "(cached) $ECHO_C" >&6
29330else
29331
29332 am_cv_func_iconv="no, consider installing GNU libiconv"
29333 am_cv_lib_iconv=no
29334 cat >conftest.$ac_ext <<_ACEOF
29335/* confdefs.h. */
29336_ACEOF
29337cat confdefs.h >>conftest.$ac_ext
29338cat >>conftest.$ac_ext <<_ACEOF
29339/* end confdefs.h. */
29340#include <stdlib.h>
29341#include <iconv.h>
29342int
29343main ()
29344{
29345iconv_t cd = iconv_open("","");
29346 iconv(cd,NULL,NULL,NULL,NULL);
29347 iconv_close(cd);
29348 ;
29349 return 0;
29350}
29351_ACEOF
29352rm -f conftest.$ac_objext conftest$ac_exeext
29353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29354 (eval $ac_link) 2>conftest.er1
a848cd7e 29355 ac_status=$?
ac1cb8d3
VS
29356 grep -v '^ *+' conftest.er1 >conftest.err
29357 rm -f conftest.er1
29358 cat conftest.err >&5
a848cd7e
SC
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); } &&
9a8f0513
VS
29361 { ac_try='test -z "$ac_cxx_werror_flag"
29362 || test ! -s conftest.err'
ac1cb8d3
VS
29363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364 (eval $ac_try) 2>&5
29365 ac_status=$?
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; } &&
29368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370 (eval $ac_try) 2>&5
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; }; then
29374 am_cv_func_iconv=yes
29375else
29376 echo "$as_me: failed program was:" >&5
29377sed 's/^/| /' conftest.$ac_ext >&5
29378
29379fi
ac1cb8d3
VS
29380rm -f conftest.err conftest.$ac_objext \
29381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29382 if test "$am_cv_func_iconv" != yes; then
29383 am_save_LIBS="$LIBS"
29384 LIBS="$LIBS -liconv"
29385 cat >conftest.$ac_ext <<_ACEOF
29386/* confdefs.h. */
29387_ACEOF
29388cat confdefs.h >>conftest.$ac_ext
29389cat >>conftest.$ac_ext <<_ACEOF
29390/* end confdefs.h. */
29391#include <stdlib.h>
29392#include <iconv.h>
29393int
29394main ()
29395{
29396iconv_t cd = iconv_open("","");
29397 iconv(cd,NULL,NULL,NULL,NULL);
29398 iconv_close(cd);
29399 ;
29400 return 0;
29401}
29402_ACEOF
29403rm -f conftest.$ac_objext conftest$ac_exeext
29404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29405 (eval $ac_link) 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); } &&
9a8f0513
VS
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_exeext'
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 am_cv_lib_iconv=yes
29426 am_cv_func_iconv=yes
29427else
29428 echo "$as_me: failed program was:" >&5
29429sed 's/^/| /' conftest.$ac_ext >&5
29430
29431fi
ac1cb8d3
VS
29432rm -f conftest.err conftest.$ac_objext \
29433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29434 LIBS="$am_save_LIBS"
29435 fi
29436
29437fi
29438echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29439echo "${ECHO_T}$am_cv_func_iconv" >&6
29440 if test "$am_cv_func_iconv" = yes; then
29441
29442cat >>confdefs.h <<\_ACEOF
29443#define HAVE_ICONV 1
29444_ACEOF
29445
29446 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29447echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29448if test "${wx_cv_func_iconv_const+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29450else
29451 cat >conftest.$ac_ext <<_ACEOF
29452/* confdefs.h. */
29453_ACEOF
29454cat confdefs.h >>conftest.$ac_ext
29455cat >>conftest.$ac_ext <<_ACEOF
29456/* end confdefs.h. */
29457
29458#include <stdlib.h>
29459#include <iconv.h>
29460extern
29461#ifdef __cplusplus
29462"C"
29463#endif
29464#if defined(__STDC__) || defined(__cplusplus)
29465size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29466#else
29467size_t iconv();
29468#endif
29469
29470int
29471main ()
29472{
29473
29474 ;
29475 return 0;
29476}
29477_ACEOF
29478rm -f conftest.$ac_objext
29479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29480 (eval $ac_compile) 2>conftest.er1
a848cd7e 29481 ac_status=$?
ac1cb8d3
VS
29482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
a848cd7e
SC
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
9a8f0513
VS
29487 { ac_try='test -z "$ac_cxx_werror_flag"
29488 || test ! -s conftest.err'
ac1cb8d3
VS
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500 wx_cv_func_iconv_const="no"
29501else
29502 echo "$as_me: failed program was:" >&5
29503sed 's/^/| /' conftest.$ac_ext >&5
29504
29505wx_cv_func_iconv_const="yes"
29506
29507fi
ac1cb8d3 29508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29509
29510fi
29511echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29512echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29513
29514 iconv_const=
29515 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29516 iconv_const="const"
29517 fi
29518
29519
29520cat >>confdefs.h <<_ACEOF
29521#define ICONV_CONST $iconv_const
29522_ACEOF
29523
29524 fi
29525 LIBICONV=
29526 if test "$am_cv_lib_iconv" = yes; then
29527 LIBICONV="-liconv"
29528 fi
29529
29530
29531LIBS="$LIBICONV $LIBS"
29532ac_ext=c
29533ac_cpp='$CPP $CPPFLAGS'
29534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29536ac_compiler_gnu=$ac_cv_c_compiler_gnu
29537
29538
29539if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29540
29541for ac_func in sigaction
29542do
29543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29544echo "$as_me:$LINENO: checking for $ac_func" >&5
29545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29546if eval "test \"\${$as_ac_var+set}\" = set"; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29548else
29549 cat >conftest.$ac_ext <<_ACEOF
29550/* confdefs.h. */
29551_ACEOF
29552cat confdefs.h >>conftest.$ac_ext
29553cat >>conftest.$ac_ext <<_ACEOF
29554/* end confdefs.h. */
ac1cb8d3
VS
29555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29557#define $ac_func innocuous_$ac_func
29558
a848cd7e
SC
29559/* System header to define __stub macros and hopefully few prototypes,
29560 which can conflict with char $ac_func (); below.
29561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29562 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29563
a848cd7e
SC
29564#ifdef __STDC__
29565# include <limits.h>
29566#else
29567# include <assert.h>
29568#endif
ac1cb8d3
VS
29569
29570#undef $ac_func
29571
a848cd7e
SC
29572/* Override any gcc2 internal prototype to avoid an error. */
29573#ifdef __cplusplus
29574extern "C"
29575{
29576#endif
29577/* We use char because int might match the return type of a gcc2
29578 builtin and then its argument prototype would still apply. */
29579char $ac_func ();
29580/* The GNU C library defines this for functions which it implements
29581 to always fail with ENOSYS. Some functions are actually named
29582 something starting with __ and the normal name is an alias. */
29583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29584choke me
29585#else
29586char (*f) () = $ac_func;
29587#endif
29588#ifdef __cplusplus
29589}
29590#endif
29591
29592int
29593main ()
29594{
29595return f != $ac_func;
29596 ;
29597 return 0;
29598}
29599_ACEOF
29600rm -f conftest.$ac_objext conftest$ac_exeext
29601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29602 (eval $ac_link) 2>conftest.er1
a848cd7e 29603 ac_status=$?
ac1cb8d3
VS
29604 grep -v '^ *+' conftest.er1 >conftest.err
29605 rm -f conftest.er1
29606 cat conftest.err >&5
a848cd7e
SC
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } &&
9a8f0513
VS
29609 { ac_try='test -z "$ac_c_werror_flag"
29610 || test ! -s conftest.err'
ac1cb8d3
VS
29611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612 (eval $ac_try) 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; } &&
29616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618 (eval $ac_try) 2>&5
29619 ac_status=$?
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; }; then
29622 eval "$as_ac_var=yes"
29623else
29624 echo "$as_me: failed program was:" >&5
29625sed 's/^/| /' conftest.$ac_ext >&5
29626
29627eval "$as_ac_var=no"
29628fi
ac1cb8d3
VS
29629rm -f conftest.err conftest.$ac_objext \
29630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29631fi
29632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29634if test `eval echo '${'$as_ac_var'}'` = yes; then
29635 cat >>confdefs.h <<_ACEOF
29636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29637_ACEOF
29638
29639fi
29640done
29641
29642
29643 if test "$ac_cv_func_sigaction" = "no"; then
29644 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29645echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29646 wxUSE_ON_FATAL_EXCEPTION=no
29647 fi
29648
29649 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29650
29651
29652 ac_ext=cc
29653ac_cpp='$CXXCPP $CPPFLAGS'
29654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29657
29658
29659 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29660echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29661if test "${wx_cv_type_sa_handler+set}" = set; then
29662 echo $ECHO_N "(cached) $ECHO_C" >&6
29663else
29664
29665 cat >conftest.$ac_ext <<_ACEOF
29666/* confdefs.h. */
29667_ACEOF
29668cat confdefs.h >>conftest.$ac_ext
29669cat >>conftest.$ac_ext <<_ACEOF
29670/* end confdefs.h. */
29671#include <signal.h>
29672int
29673main ()
29674{
29675
29676 extern void testSigHandler(int);
29677
29678 struct sigaction sa;
29679 sa.sa_handler = testSigHandler;
29680
29681 ;
29682 return 0;
29683}
29684_ACEOF
29685rm -f conftest.$ac_objext
29686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29687 (eval $ac_compile) 2>conftest.er1
a848cd7e 29688 ac_status=$?
ac1cb8d3
VS
29689 grep -v '^ *+' conftest.er1 >conftest.err
29690 rm -f conftest.er1
29691 cat conftest.err >&5
a848cd7e
SC
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); } &&
9a8f0513
VS
29694 { ac_try='test -z "$ac_cxx_werror_flag"
29695 || test ! -s conftest.err'
ac1cb8d3
VS
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; } &&
29701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; }; then
29707
29708 wx_cv_type_sa_handler=int
29709
29710else
29711 echo "$as_me: failed program was:" >&5
29712sed 's/^/| /' conftest.$ac_ext >&5
29713
29714
29715 wx_cv_type_sa_handler=void
29716
29717fi
ac1cb8d3 29718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29719
29720fi
29721echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29722echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29723
29724 ac_ext=c
29725ac_cpp='$CPP $CPPFLAGS'
29726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29728ac_compiler_gnu=$ac_cv_c_compiler_gnu
29729
29730
29731 cat >>confdefs.h <<_ACEOF
29732#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29733_ACEOF
29734
29735 fi
29736fi
29737
29738
29739
29740for ac_func in mkstemp mktemp
29741do
29742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29743echo "$as_me:$LINENO: checking for $ac_func" >&5
29744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29745if eval "test \"\${$as_ac_var+set}\" = set"; then
29746 echo $ECHO_N "(cached) $ECHO_C" >&6
29747else
29748 cat >conftest.$ac_ext <<_ACEOF
29749/* confdefs.h. */
29750_ACEOF
29751cat confdefs.h >>conftest.$ac_ext
29752cat >>conftest.$ac_ext <<_ACEOF
29753/* end confdefs.h. */
ac1cb8d3
VS
29754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29756#define $ac_func innocuous_$ac_func
29757
a848cd7e
SC
29758/* System header to define __stub macros and hopefully few prototypes,
29759 which can conflict with char $ac_func (); below.
29760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29761 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29762
a848cd7e
SC
29763#ifdef __STDC__
29764# include <limits.h>
29765#else
29766# include <assert.h>
29767#endif
ac1cb8d3
VS
29768
29769#undef $ac_func
29770
a848cd7e
SC
29771/* Override any gcc2 internal prototype to avoid an error. */
29772#ifdef __cplusplus
29773extern "C"
29774{
29775#endif
29776/* We use char because int might match the return type of a gcc2
29777 builtin and then its argument prototype would still apply. */
29778char $ac_func ();
29779/* The GNU C library defines this for functions which it implements
29780 to always fail with ENOSYS. Some functions are actually named
29781 something starting with __ and the normal name is an alias. */
29782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29783choke me
29784#else
29785char (*f) () = $ac_func;
29786#endif
29787#ifdef __cplusplus
29788}
29789#endif
29790
29791int
29792main ()
29793{
29794return f != $ac_func;
29795 ;
29796 return 0;
29797}
29798_ACEOF
29799rm -f conftest.$ac_objext conftest$ac_exeext
29800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29801 (eval $ac_link) 2>conftest.er1
a848cd7e 29802 ac_status=$?
ac1cb8d3
VS
29803 grep -v '^ *+' conftest.er1 >conftest.err
29804 rm -f conftest.er1
29805 cat conftest.err >&5
a848cd7e
SC
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } &&
9a8f0513
VS
29808 { ac_try='test -z "$ac_c_werror_flag"
29809 || test ! -s conftest.err'
ac1cb8d3
VS
29810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811 (eval $ac_try) 2>&5
29812 ac_status=$?
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; } &&
29815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817 (eval $ac_try) 2>&5
29818 ac_status=$?
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); }; }; then
29821 eval "$as_ac_var=yes"
29822else
29823 echo "$as_me: failed program was:" >&5
29824sed 's/^/| /' conftest.$ac_ext >&5
29825
29826eval "$as_ac_var=no"
29827fi
ac1cb8d3
VS
29828rm -f conftest.err conftest.$ac_objext \
29829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29830fi
29831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29833if test `eval echo '${'$as_ac_var'}'` = yes; then
29834 cat >>confdefs.h <<_ACEOF
29835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29836_ACEOF
29837 break
29838fi
29839done
29840
29841
29842echo "$as_me:$LINENO: checking for statfs" >&5
29843echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29844if test "${wx_cv_func_statfs+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29846else
29847 cat >conftest.$ac_ext <<_ACEOF
29848/* confdefs.h. */
29849_ACEOF
29850cat confdefs.h >>conftest.$ac_ext
29851cat >>conftest.$ac_ext <<_ACEOF
29852/* end confdefs.h. */
29853
29854 #if defined(__BSD__)
29855 #include <sys/param.h>
29856 #include <sys/mount.h>
29857 #else
29858 #include <sys/vfs.h>
29859 #endif
29860
29861int
29862main ()
29863{
29864
29865 long l;
29866 struct statfs fs;
29867 statfs("/", &fs);
29868 l = fs.f_bsize;
29869 l += fs.f_blocks;
29870 l += fs.f_bavail;
29871
29872 ;
29873 return 0;
29874}
29875_ACEOF
29876rm -f conftest.$ac_objext
29877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29878 (eval $ac_compile) 2>conftest.er1
a848cd7e 29879 ac_status=$?
ac1cb8d3
VS
29880 grep -v '^ *+' conftest.er1 >conftest.err
29881 rm -f conftest.er1
29882 cat conftest.err >&5
a848cd7e
SC
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
9a8f0513
VS
29885 { ac_try='test -z "$ac_c_werror_flag"
29886 || test ! -s conftest.err'
ac1cb8d3
VS
29887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888 (eval $ac_try) 2>&5
29889 ac_status=$?
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); }; } &&
29892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; }; then
29898
29899 wx_cv_func_statfs=yes
29900
29901else
29902 echo "$as_me: failed program was:" >&5
29903sed 's/^/| /' conftest.$ac_ext >&5
29904
29905
29906 wx_cv_func_statfs=no
29907
29908
29909fi
ac1cb8d3 29910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29911
29912fi
29913echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29914echo "${ECHO_T}$wx_cv_func_statfs" >&6
29915
29916if test "$wx_cv_func_statfs" = "yes"; then
29917 wx_cv_type_statvfs_t="struct statfs"
29918 cat >>confdefs.h <<\_ACEOF
29919#define HAVE_STATFS 1
29920_ACEOF
29921
29922else
29923 echo "$as_me:$LINENO: checking for statvfs" >&5
29924echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29925if test "${wx_cv_func_statvfs+set}" = set; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
29927else
29928 cat >conftest.$ac_ext <<_ACEOF
29929/* confdefs.h. */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h. */
29934
29935 #include <stddef.h>
29936 #include <sys/statvfs.h>
29937
29938int
29939main ()
29940{
29941
29942 statvfs("/", NULL);
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); } &&
9a8f0513
VS
29957 { ac_try='test -z "$ac_c_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_func_statvfs=yes
29971else
29972 echo "$as_me: failed program was:" >&5
29973sed 's/^/| /' conftest.$ac_ext >&5
29974
29975wx_cv_func_statvfs=no
29976
29977fi
ac1cb8d3 29978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29979
29980fi
29981echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29982echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29983
29984 if test "$wx_cv_func_statvfs" = "yes"; then
29985
29986
29987 ac_ext=cc
29988ac_cpp='$CXXCPP $CPPFLAGS'
29989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29992
29993
29994 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29995echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29996if test "${wx_cv_type_statvfs_t+set}" = set; then
29997 echo $ECHO_N "(cached) $ECHO_C" >&6
29998else
29999 cat >conftest.$ac_ext <<_ACEOF
30000/* confdefs.h. */
30001_ACEOF
30002cat confdefs.h >>conftest.$ac_ext
30003cat >>conftest.$ac_ext <<_ACEOF
30004/* end confdefs.h. */
30005
30006 #include <sys/statvfs.h>
30007
30008int
30009main ()
30010{
30011
30012 long l;
30013 statvfs_t fs;
30014 statvfs("/", &fs);
30015 l = fs.f_bsize;
30016 l += fs.f_blocks;
30017 l += fs.f_bavail;
30018
30019 ;
30020 return 0;
30021}
30022_ACEOF
30023rm -f conftest.$ac_objext
30024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30025 (eval $ac_compile) 2>conftest.er1
a848cd7e 30026 ac_status=$?
ac1cb8d3
VS
30027 grep -v '^ *+' conftest.er1 >conftest.err
30028 rm -f conftest.er1
30029 cat conftest.err >&5
a848cd7e
SC
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); } &&
9a8f0513
VS
30032 { ac_try='test -z "$ac_cxx_werror_flag"
30033 || test ! -s conftest.err'
ac1cb8d3
VS
30034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30035 (eval $ac_try) 2>&5
30036 ac_status=$?
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); }; } &&
30039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041 (eval $ac_try) 2>&5
30042 ac_status=$?
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; }; then
30045 wx_cv_type_statvfs_t=statvfs_t
30046else
30047 echo "$as_me: failed program was:" >&5
30048sed 's/^/| /' conftest.$ac_ext >&5
30049
30050
30051 cat >conftest.$ac_ext <<_ACEOF
30052/* confdefs.h. */
30053_ACEOF
30054cat confdefs.h >>conftest.$ac_ext
30055cat >>conftest.$ac_ext <<_ACEOF
30056/* end confdefs.h. */
30057
30058 #include <sys/statvfs.h>
30059
30060int
30061main ()
30062{
30063
30064 long l;
30065 struct statvfs fs;
30066 statvfs("/", &fs);
30067 l = fs.f_bsize;
30068 l += fs.f_blocks;
30069 l += fs.f_bavail;
30070
30071 ;
30072 return 0;
30073}
30074_ACEOF
30075rm -f conftest.$ac_objext
30076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30077 (eval $ac_compile) 2>conftest.er1
a848cd7e 30078 ac_status=$?
ac1cb8d3
VS
30079 grep -v '^ *+' conftest.er1 >conftest.err
30080 rm -f conftest.er1
30081 cat conftest.err >&5
a848cd7e
SC
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } &&
9a8f0513
VS
30084 { ac_try='test -z "$ac_cxx_werror_flag"
30085 || test ! -s conftest.err'
ac1cb8d3
VS
30086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30087 (eval $ac_try) 2>&5
30088 ac_status=$?
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; } &&
30091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
30097 wx_cv_type_statvfs_t="struct statvfs"
30098else
30099 echo "$as_me: failed program was:" >&5
30100sed 's/^/| /' conftest.$ac_ext >&5
30101
30102wx_cv_type_statvfs_t="unknown"
30103
30104fi
ac1cb8d3 30105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30106
30107
30108fi
ac1cb8d3 30109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30110
30111fi
30112echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30113echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30114
30115 ac_ext=c
30116ac_cpp='$CPP $CPPFLAGS'
30117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30119ac_compiler_gnu=$ac_cv_c_compiler_gnu
30120
30121
30122 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30123 cat >>confdefs.h <<\_ACEOF
30124#define HAVE_STATVFS 1
30125_ACEOF
30126
30127 fi
30128 else
30129 wx_cv_type_statvfs_t="unknown"
30130 fi
30131fi
30132
30133if test "$wx_cv_type_statvfs_t" != "unknown"; then
30134 cat >>confdefs.h <<_ACEOF
30135#define WX_STATFS_T $wx_cv_type_statvfs_t
30136_ACEOF
30137
30138else
30139 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30140echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30141fi
30142
30143if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30144
30145
30146for ac_func in fcntl flock
30147do
30148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30149echo "$as_me:$LINENO: checking for $ac_func" >&5
30150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30151if eval "test \"\${$as_ac_var+set}\" = set"; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30153else
30154 cat >conftest.$ac_ext <<_ACEOF
30155/* confdefs.h. */
30156_ACEOF
30157cat confdefs.h >>conftest.$ac_ext
30158cat >>conftest.$ac_ext <<_ACEOF
30159/* end confdefs.h. */
ac1cb8d3
VS
30160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30162#define $ac_func innocuous_$ac_func
30163
a848cd7e
SC
30164/* System header to define __stub macros and hopefully few prototypes,
30165 which can conflict with char $ac_func (); below.
30166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30167 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30168
a848cd7e
SC
30169#ifdef __STDC__
30170# include <limits.h>
30171#else
30172# include <assert.h>
30173#endif
ac1cb8d3
VS
30174
30175#undef $ac_func
30176
a848cd7e
SC
30177/* Override any gcc2 internal prototype to avoid an error. */
30178#ifdef __cplusplus
30179extern "C"
30180{
30181#endif
30182/* We use char because int might match the return type of a gcc2
30183 builtin and then its argument prototype would still apply. */
30184char $ac_func ();
30185/* The GNU C library defines this for functions which it implements
30186 to always fail with ENOSYS. Some functions are actually named
30187 something starting with __ and the normal name is an alias. */
30188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30189choke me
30190#else
30191char (*f) () = $ac_func;
30192#endif
30193#ifdef __cplusplus
30194}
30195#endif
30196
30197int
30198main ()
30199{
30200return f != $ac_func;
30201 ;
30202 return 0;
30203}
30204_ACEOF
30205rm -f conftest.$ac_objext conftest$ac_exeext
30206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30207 (eval $ac_link) 2>conftest.er1
a848cd7e 30208 ac_status=$?
ac1cb8d3
VS
30209 grep -v '^ *+' conftest.er1 >conftest.err
30210 rm -f conftest.er1
30211 cat conftest.err >&5
a848cd7e
SC
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } &&
9a8f0513
VS
30214 { ac_try='test -z "$ac_c_werror_flag"
30215 || test ! -s conftest.err'
ac1cb8d3
VS
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; } &&
30221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223 (eval $ac_try) 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
30227 eval "$as_ac_var=yes"
30228else
30229 echo "$as_me: failed program was:" >&5
30230sed 's/^/| /' conftest.$ac_ext >&5
30231
30232eval "$as_ac_var=no"
30233fi
ac1cb8d3
VS
30234rm -f conftest.err conftest.$ac_objext \
30235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30236fi
30237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30239if test `eval echo '${'$as_ac_var'}'` = yes; then
30240 cat >>confdefs.h <<_ACEOF
30241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30242_ACEOF
30243 break
30244fi
30245done
30246
30247
30248 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30249 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30250echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30251 wxUSE_SNGLINST_CHECKER=no
30252 fi
30253fi
30254
30255
30256for ac_func in timegm
30257do
30258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259echo "$as_me:$LINENO: checking for $ac_func" >&5
30260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30261if eval "test \"\${$as_ac_var+set}\" = set"; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264 cat >conftest.$ac_ext <<_ACEOF
30265/* confdefs.h. */
30266_ACEOF
30267cat confdefs.h >>conftest.$ac_ext
30268cat >>conftest.$ac_ext <<_ACEOF
30269/* end confdefs.h. */
ac1cb8d3
VS
30270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30272#define $ac_func innocuous_$ac_func
30273
a848cd7e
SC
30274/* System header to define __stub macros and hopefully few prototypes,
30275 which can conflict with char $ac_func (); below.
30276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30277 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30278
a848cd7e
SC
30279#ifdef __STDC__
30280# include <limits.h>
30281#else
30282# include <assert.h>
30283#endif
ac1cb8d3
VS
30284
30285#undef $ac_func
30286
a848cd7e
SC
30287/* Override any gcc2 internal prototype to avoid an error. */
30288#ifdef __cplusplus
30289extern "C"
30290{
30291#endif
30292/* We use char because int might match the return type of a gcc2
30293 builtin and then its argument prototype would still apply. */
30294char $ac_func ();
30295/* The GNU C library defines this for functions which it implements
30296 to always fail with ENOSYS. Some functions are actually named
30297 something starting with __ and the normal name is an alias. */
30298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30299choke me
30300#else
30301char (*f) () = $ac_func;
30302#endif
30303#ifdef __cplusplus
30304}
30305#endif
30306
30307int
30308main ()
30309{
30310return f != $ac_func;
30311 ;
30312 return 0;
30313}
30314_ACEOF
30315rm -f conftest.$ac_objext conftest$ac_exeext
30316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30317 (eval $ac_link) 2>conftest.er1
a848cd7e 30318 ac_status=$?
ac1cb8d3
VS
30319 grep -v '^ *+' conftest.er1 >conftest.err
30320 rm -f conftest.er1
30321 cat conftest.err >&5
a848cd7e
SC
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); } &&
9a8f0513
VS
30324 { ac_try='test -z "$ac_c_werror_flag"
30325 || test ! -s conftest.err'
ac1cb8d3
VS
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30328 ac_status=$?
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; } &&
30331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333 (eval $ac_try) 2>&5
30334 ac_status=$?
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); }; }; then
30337 eval "$as_ac_var=yes"
30338else
30339 echo "$as_me: failed program was:" >&5
30340sed 's/^/| /' conftest.$ac_ext >&5
30341
30342eval "$as_ac_var=no"
30343fi
ac1cb8d3
VS
30344rm -f conftest.err conftest.$ac_objext \
30345 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30346fi
30347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30348echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30349if test `eval echo '${'$as_ac_var'}'` = yes; then
30350 cat >>confdefs.h <<_ACEOF
30351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30352_ACEOF
30353
30354fi
30355done
30356
30357
30358
30359
30360for ac_func in putenv setenv
30361do
30362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30363echo "$as_me:$LINENO: checking for $ac_func" >&5
30364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30365if eval "test \"\${$as_ac_var+set}\" = set"; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30367else
30368 cat >conftest.$ac_ext <<_ACEOF
30369/* confdefs.h. */
30370_ACEOF
30371cat confdefs.h >>conftest.$ac_ext
30372cat >>conftest.$ac_ext <<_ACEOF
30373/* end confdefs.h. */
ac1cb8d3
VS
30374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30376#define $ac_func innocuous_$ac_func
30377
a848cd7e
SC
30378/* System header to define __stub macros and hopefully few prototypes,
30379 which can conflict with char $ac_func (); below.
30380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30381 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30382
a848cd7e
SC
30383#ifdef __STDC__
30384# include <limits.h>
30385#else
30386# include <assert.h>
30387#endif
ac1cb8d3
VS
30388
30389#undef $ac_func
30390
a848cd7e
SC
30391/* Override any gcc2 internal prototype to avoid an error. */
30392#ifdef __cplusplus
30393extern "C"
30394{
30395#endif
30396/* We use char because int might match the return type of a gcc2
30397 builtin and then its argument prototype would still apply. */
30398char $ac_func ();
30399/* The GNU C library defines this for functions which it implements
30400 to always fail with ENOSYS. Some functions are actually named
30401 something starting with __ and the normal name is an alias. */
30402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30403choke me
30404#else
30405char (*f) () = $ac_func;
30406#endif
30407#ifdef __cplusplus
30408}
30409#endif
30410
30411int
30412main ()
30413{
30414return f != $ac_func;
30415 ;
30416 return 0;
30417}
30418_ACEOF
30419rm -f conftest.$ac_objext conftest$ac_exeext
30420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30421 (eval $ac_link) 2>conftest.er1
a848cd7e 30422 ac_status=$?
ac1cb8d3
VS
30423 grep -v '^ *+' conftest.er1 >conftest.err
30424 rm -f conftest.er1
30425 cat conftest.err >&5
a848cd7e
SC
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); } &&
9a8f0513
VS
30428 { ac_try='test -z "$ac_c_werror_flag"
30429 || test ! -s conftest.err'
ac1cb8d3
VS
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; } &&
30435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30437 (eval $ac_try) 2>&5
30438 ac_status=$?
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; }; then
30441 eval "$as_ac_var=yes"
30442else
30443 echo "$as_me: failed program was:" >&5
30444sed 's/^/| /' conftest.$ac_ext >&5
30445
30446eval "$as_ac_var=no"
30447fi
ac1cb8d3
VS
30448rm -f conftest.err conftest.$ac_objext \
30449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30450fi
30451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30452echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30453if test `eval echo '${'$as_ac_var'}'` = yes; then
30454 cat >>confdefs.h <<_ACEOF
30455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30456_ACEOF
30457 break
30458fi
30459done
30460
30461
30462HAVE_SOME_SLEEP_FUNC=0
30463if test "$USE_BEOS" = 1; then
30464 cat >>confdefs.h <<\_ACEOF
30465#define HAVE_SLEEP 1
30466_ACEOF
30467
30468 HAVE_SOME_SLEEP_FUNC=1
30469fi
30470
30471if test "$USE_DARWIN" = 1; then
30472 cat >>confdefs.h <<\_ACEOF
30473#define HAVE_USLEEP 1
30474_ACEOF
30475
30476 HAVE_SOME_SLEEP_FUNC=1
30477fi
30478
30479if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30480 POSIX4_LINK=
30481
30482for ac_func in nanosleep
30483do
30484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30485echo "$as_me:$LINENO: checking for $ac_func" >&5
30486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30487if eval "test \"\${$as_ac_var+set}\" = set"; then
30488 echo $ECHO_N "(cached) $ECHO_C" >&6
30489else
30490 cat >conftest.$ac_ext <<_ACEOF
30491/* confdefs.h. */
30492_ACEOF
30493cat confdefs.h >>conftest.$ac_ext
30494cat >>conftest.$ac_ext <<_ACEOF
30495/* end confdefs.h. */
ac1cb8d3
VS
30496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30498#define $ac_func innocuous_$ac_func
30499
a848cd7e
SC
30500/* System header to define __stub macros and hopefully few prototypes,
30501 which can conflict with char $ac_func (); below.
30502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30503 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30504
a848cd7e
SC
30505#ifdef __STDC__
30506# include <limits.h>
30507#else
30508# include <assert.h>
30509#endif
ac1cb8d3
VS
30510
30511#undef $ac_func
30512
a848cd7e
SC
30513/* Override any gcc2 internal prototype to avoid an error. */
30514#ifdef __cplusplus
30515extern "C"
30516{
30517#endif
30518/* We use char because int might match the return type of a gcc2
30519 builtin and then its argument prototype would still apply. */
30520char $ac_func ();
30521/* The GNU C library defines this for functions which it implements
30522 to always fail with ENOSYS. Some functions are actually named
30523 something starting with __ and the normal name is an alias. */
30524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30525choke me
30526#else
30527char (*f) () = $ac_func;
30528#endif
30529#ifdef __cplusplus
30530}
30531#endif
30532
30533int
30534main ()
30535{
30536return f != $ac_func;
30537 ;
30538 return 0;
30539}
30540_ACEOF
30541rm -f conftest.$ac_objext conftest$ac_exeext
30542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30543 (eval $ac_link) 2>conftest.er1
a848cd7e 30544 ac_status=$?
ac1cb8d3
VS
30545 grep -v '^ *+' conftest.er1 >conftest.err
30546 rm -f conftest.er1
30547 cat conftest.err >&5
a848cd7e
SC
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); } &&
9a8f0513
VS
30550 { ac_try='test -z "$ac_c_werror_flag"
30551 || test ! -s conftest.err'
ac1cb8d3
VS
30552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30553 (eval $ac_try) 2>&5
30554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; } &&
30557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30559 (eval $ac_try) 2>&5
30560 ac_status=$?
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; }; then
30563 eval "$as_ac_var=yes"
30564else
30565 echo "$as_me: failed program was:" >&5
30566sed 's/^/| /' conftest.$ac_ext >&5
30567
30568eval "$as_ac_var=no"
30569fi
ac1cb8d3
VS
30570rm -f conftest.err conftest.$ac_objext \
30571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30572fi
30573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30575if test `eval echo '${'$as_ac_var'}'` = yes; then
30576 cat >>confdefs.h <<_ACEOF
30577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30578_ACEOF
30579 cat >>confdefs.h <<\_ACEOF
30580#define HAVE_NANOSLEEP 1
30581_ACEOF
30582
30583else
30584
30585 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30586echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30587if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30588 echo $ECHO_N "(cached) $ECHO_C" >&6
30589else
30590 ac_check_lib_save_LIBS=$LIBS
30591LIBS="-lposix4 $LIBS"
30592cat >conftest.$ac_ext <<_ACEOF
30593/* confdefs.h. */
30594_ACEOF
30595cat confdefs.h >>conftest.$ac_ext
30596cat >>conftest.$ac_ext <<_ACEOF
30597/* end confdefs.h. */
30598
30599/* Override any gcc2 internal prototype to avoid an error. */
30600#ifdef __cplusplus
30601extern "C"
30602#endif
30603/* We use char because int might match the return type of a gcc2
30604 builtin and then its argument prototype would still apply. */
30605char nanosleep ();
30606int
30607main ()
30608{
30609nanosleep ();
30610 ;
30611 return 0;
30612}
30613_ACEOF
30614rm -f conftest.$ac_objext conftest$ac_exeext
30615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30616 (eval $ac_link) 2>conftest.er1
a848cd7e 30617 ac_status=$?
ac1cb8d3
VS
30618 grep -v '^ *+' conftest.er1 >conftest.err
30619 rm -f conftest.er1
30620 cat conftest.err >&5
a848cd7e
SC
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
9a8f0513
VS
30623 { ac_try='test -z "$ac_c_werror_flag"
30624 || test ! -s conftest.err'
ac1cb8d3
VS
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; } &&
30630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_cv_lib_posix4_nanosleep=yes
30637else
30638 echo "$as_me: failed program was:" >&5
30639sed 's/^/| /' conftest.$ac_ext >&5
30640
30641ac_cv_lib_posix4_nanosleep=no
30642fi
ac1cb8d3
VS
30643rm -f conftest.err conftest.$ac_objext \
30644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30645LIBS=$ac_check_lib_save_LIBS
30646fi
30647echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30648echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30649if test $ac_cv_lib_posix4_nanosleep = yes; then
30650
30651 cat >>confdefs.h <<\_ACEOF
30652#define HAVE_NANOSLEEP 1
30653_ACEOF
30654
30655 POSIX4_LINK=" -lposix4"
30656
30657else
30658
30659
30660for ac_func in usleep
30661do
30662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30663echo "$as_me:$LINENO: checking for $ac_func" >&5
30664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30665if eval "test \"\${$as_ac_var+set}\" = set"; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30667else
30668 cat >conftest.$ac_ext <<_ACEOF
30669/* confdefs.h. */
30670_ACEOF
30671cat confdefs.h >>conftest.$ac_ext
30672cat >>conftest.$ac_ext <<_ACEOF
30673/* end confdefs.h. */
ac1cb8d3
VS
30674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30676#define $ac_func innocuous_$ac_func
30677
a848cd7e
SC
30678/* System header to define __stub macros and hopefully few prototypes,
30679 which can conflict with char $ac_func (); below.
30680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30682
a848cd7e
SC
30683#ifdef __STDC__
30684# include <limits.h>
30685#else
30686# include <assert.h>
30687#endif
ac1cb8d3
VS
30688
30689#undef $ac_func
30690
a848cd7e
SC
30691/* Override any gcc2 internal prototype to avoid an error. */
30692#ifdef __cplusplus
30693extern "C"
30694{
30695#endif
30696/* We use char because int might match the return type of a gcc2
30697 builtin and then its argument prototype would still apply. */
30698char $ac_func ();
30699/* The GNU C library defines this for functions which it implements
30700 to always fail with ENOSYS. Some functions are actually named
30701 something starting with __ and the normal name is an alias. */
30702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30703choke me
30704#else
30705char (*f) () = $ac_func;
30706#endif
30707#ifdef __cplusplus
30708}
30709#endif
30710
30711int
30712main ()
30713{
30714return f != $ac_func;
30715 ;
30716 return 0;
30717}
30718_ACEOF
30719rm -f conftest.$ac_objext conftest$ac_exeext
30720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30721 (eval $ac_link) 2>conftest.er1
a848cd7e 30722 ac_status=$?
ac1cb8d3
VS
30723 grep -v '^ *+' conftest.er1 >conftest.err
30724 rm -f conftest.er1
30725 cat conftest.err >&5
a848cd7e
SC
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); } &&
9a8f0513
VS
30728 { ac_try='test -z "$ac_c_werror_flag"
30729 || test ! -s conftest.err'
ac1cb8d3
VS
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; } &&
30735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30737 (eval $ac_try) 2>&5
30738 ac_status=$?
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; }; then
30741 eval "$as_ac_var=yes"
30742else
30743 echo "$as_me: failed program was:" >&5
30744sed 's/^/| /' conftest.$ac_ext >&5
30745
30746eval "$as_ac_var=no"
30747fi
ac1cb8d3
VS
30748rm -f conftest.err conftest.$ac_objext \
30749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30750fi
30751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30753if test `eval echo '${'$as_ac_var'}'` = yes; then
30754 cat >>confdefs.h <<_ACEOF
30755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30756_ACEOF
30757 cat >>confdefs.h <<\_ACEOF
30758#define HAVE_USLEEP 1
30759_ACEOF
30760
30761else
30762 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30763echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30764
30765fi
30766done
30767
30768
30769
30770fi
30771
30772
30773
30774fi
30775done
30776
30777fi
30778
30779
30780
30781for ac_func in uname gethostname
30782do
30783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30784echo "$as_me:$LINENO: checking for $ac_func" >&5
30785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30786if eval "test \"\${$as_ac_var+set}\" = set"; then
30787 echo $ECHO_N "(cached) $ECHO_C" >&6
30788else
30789 cat >conftest.$ac_ext <<_ACEOF
30790/* confdefs.h. */
30791_ACEOF
30792cat confdefs.h >>conftest.$ac_ext
30793cat >>conftest.$ac_ext <<_ACEOF
30794/* end confdefs.h. */
ac1cb8d3
VS
30795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30797#define $ac_func innocuous_$ac_func
30798
a848cd7e
SC
30799/* System header to define __stub macros and hopefully few prototypes,
30800 which can conflict with char $ac_func (); below.
30801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30802 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30803
a848cd7e
SC
30804#ifdef __STDC__
30805# include <limits.h>
30806#else
30807# include <assert.h>
30808#endif
ac1cb8d3
VS
30809
30810#undef $ac_func
30811
a848cd7e
SC
30812/* Override any gcc2 internal prototype to avoid an error. */
30813#ifdef __cplusplus
30814extern "C"
30815{
30816#endif
30817/* We use char because int might match the return type of a gcc2
30818 builtin and then its argument prototype would still apply. */
30819char $ac_func ();
30820/* The GNU C library defines this for functions which it implements
30821 to always fail with ENOSYS. Some functions are actually named
30822 something starting with __ and the normal name is an alias. */
30823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30824choke me
30825#else
30826char (*f) () = $ac_func;
30827#endif
30828#ifdef __cplusplus
30829}
30830#endif
30831
30832int
30833main ()
30834{
30835return f != $ac_func;
30836 ;
30837 return 0;
30838}
30839_ACEOF
30840rm -f conftest.$ac_objext conftest$ac_exeext
30841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30842 (eval $ac_link) 2>conftest.er1
a848cd7e 30843 ac_status=$?
ac1cb8d3
VS
30844 grep -v '^ *+' conftest.er1 >conftest.err
30845 rm -f conftest.er1
30846 cat conftest.err >&5
a848cd7e
SC
30847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848 (exit $ac_status); } &&
9a8f0513
VS
30849 { ac_try='test -z "$ac_c_werror_flag"
30850 || test ! -s conftest.err'
ac1cb8d3
VS
30851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30852 (eval $ac_try) 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); }; } &&
30856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; }; then
30862 eval "$as_ac_var=yes"
30863else
30864 echo "$as_me: failed program was:" >&5
30865sed 's/^/| /' conftest.$ac_ext >&5
30866
30867eval "$as_ac_var=no"
30868fi
ac1cb8d3
VS
30869rm -f conftest.err conftest.$ac_objext \
30870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30871fi
30872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30873echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30874if test `eval echo '${'$as_ac_var'}'` = yes; then
30875 cat >>confdefs.h <<_ACEOF
30876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30877_ACEOF
30878 break
30879fi
30880done
30881
30882
30883
30884
30885ac_ext=cc
30886ac_cpp='$CXXCPP $CPPFLAGS'
30887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30890
30891
30892
30893for ac_func in strtok_r
30894do
30895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30896echo "$as_me:$LINENO: checking for $ac_func" >&5
30897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30898if eval "test \"\${$as_ac_var+set}\" = set"; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30900else
30901 cat >conftest.$ac_ext <<_ACEOF
30902/* confdefs.h. */
30903_ACEOF
30904cat confdefs.h >>conftest.$ac_ext
30905cat >>conftest.$ac_ext <<_ACEOF
30906/* end confdefs.h. */
ac1cb8d3
VS
30907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30909#define $ac_func innocuous_$ac_func
30910
a848cd7e
SC
30911/* System header to define __stub macros and hopefully few prototypes,
30912 which can conflict with char $ac_func (); below.
30913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30914 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30915
a848cd7e
SC
30916#ifdef __STDC__
30917# include <limits.h>
30918#else
30919# include <assert.h>
30920#endif
ac1cb8d3
VS
30921
30922#undef $ac_func
30923
a848cd7e
SC
30924/* Override any gcc2 internal prototype to avoid an error. */
30925#ifdef __cplusplus
30926extern "C"
30927{
30928#endif
30929/* We use char because int might match the return type of a gcc2
30930 builtin and then its argument prototype would still apply. */
30931char $ac_func ();
30932/* The GNU C library defines this for functions which it implements
30933 to always fail with ENOSYS. Some functions are actually named
30934 something starting with __ and the normal name is an alias. */
30935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30936choke me
30937#else
30938char (*f) () = $ac_func;
30939#endif
30940#ifdef __cplusplus
30941}
30942#endif
30943
30944int
30945main ()
30946{
30947return f != $ac_func;
30948 ;
30949 return 0;
30950}
30951_ACEOF
30952rm -f conftest.$ac_objext conftest$ac_exeext
30953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30954 (eval $ac_link) 2>conftest.er1
a848cd7e 30955 ac_status=$?
ac1cb8d3
VS
30956 grep -v '^ *+' conftest.er1 >conftest.err
30957 rm -f conftest.er1
30958 cat conftest.err >&5
a848cd7e
SC
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } &&
9a8f0513
VS
30961 { ac_try='test -z "$ac_cxx_werror_flag"
30962 || test ! -s conftest.err'
ac1cb8d3
VS
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; } &&
30968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
30974 eval "$as_ac_var=yes"
30975else
30976 echo "$as_me: failed program was:" >&5
30977sed 's/^/| /' conftest.$ac_ext >&5
30978
30979eval "$as_ac_var=no"
30980fi
ac1cb8d3
VS
30981rm -f conftest.err conftest.$ac_objext \
30982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30983fi
30984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30986if test `eval echo '${'$as_ac_var'}'` = yes; then
30987 cat >>confdefs.h <<_ACEOF
30988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30989_ACEOF
30990
30991fi
30992done
30993
30994
30995ac_ext=c
30996ac_cpp='$CPP $CPPFLAGS'
30997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30999ac_compiler_gnu=$ac_cv_c_compiler_gnu
31000
31001
31002INET_LINK=
31003
31004for ac_func in inet_addr
31005do
31006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31007echo "$as_me:$LINENO: checking for $ac_func" >&5
31008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31009if eval "test \"\${$as_ac_var+set}\" = set"; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31011else
31012 cat >conftest.$ac_ext <<_ACEOF
31013/* confdefs.h. */
31014_ACEOF
31015cat confdefs.h >>conftest.$ac_ext
31016cat >>conftest.$ac_ext <<_ACEOF
31017/* end confdefs.h. */
ac1cb8d3
VS
31018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31020#define $ac_func innocuous_$ac_func
31021
a848cd7e
SC
31022/* System header to define __stub macros and hopefully few prototypes,
31023 which can conflict with char $ac_func (); below.
31024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31025 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31026
a848cd7e
SC
31027#ifdef __STDC__
31028# include <limits.h>
31029#else
31030# include <assert.h>
31031#endif
ac1cb8d3
VS
31032
31033#undef $ac_func
31034
a848cd7e
SC
31035/* Override any gcc2 internal prototype to avoid an error. */
31036#ifdef __cplusplus
31037extern "C"
31038{
31039#endif
31040/* We use char because int might match the return type of a gcc2
31041 builtin and then its argument prototype would still apply. */
31042char $ac_func ();
31043/* The GNU C library defines this for functions which it implements
31044 to always fail with ENOSYS. Some functions are actually named
31045 something starting with __ and the normal name is an alias. */
31046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31047choke me
31048#else
31049char (*f) () = $ac_func;
31050#endif
31051#ifdef __cplusplus
31052}
31053#endif
31054
31055int
31056main ()
31057{
31058return f != $ac_func;
31059 ;
31060 return 0;
31061}
31062_ACEOF
31063rm -f conftest.$ac_objext conftest$ac_exeext
31064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31065 (eval $ac_link) 2>conftest.er1
a848cd7e 31066 ac_status=$?
ac1cb8d3
VS
31067 grep -v '^ *+' conftest.er1 >conftest.err
31068 rm -f conftest.er1
31069 cat conftest.err >&5
a848cd7e
SC
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); } &&
9a8f0513
VS
31072 { ac_try='test -z "$ac_c_werror_flag"
31073 || test ! -s conftest.err'
ac1cb8d3
VS
31074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31075 (eval $ac_try) 2>&5
31076 ac_status=$?
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); }; } &&
31079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31081 (eval $ac_try) 2>&5
31082 ac_status=$?
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }; }; then
31085 eval "$as_ac_var=yes"
31086else
31087 echo "$as_me: failed program was:" >&5
31088sed 's/^/| /' conftest.$ac_ext >&5
31089
31090eval "$as_ac_var=no"
31091fi
ac1cb8d3
VS
31092rm -f conftest.err conftest.$ac_objext \
31093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31094fi
31095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31097if test `eval echo '${'$as_ac_var'}'` = yes; then
31098 cat >>confdefs.h <<_ACEOF
31099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31100_ACEOF
31101 cat >>confdefs.h <<\_ACEOF
31102#define HAVE_INET_ADDR 1
31103_ACEOF
31104
31105else
31106
31107 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31108echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31109if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31110 echo $ECHO_N "(cached) $ECHO_C" >&6
31111else
31112 ac_check_lib_save_LIBS=$LIBS
31113LIBS="-lnsl $LIBS"
31114cat >conftest.$ac_ext <<_ACEOF
31115/* confdefs.h. */
31116_ACEOF
31117cat confdefs.h >>conftest.$ac_ext
31118cat >>conftest.$ac_ext <<_ACEOF
31119/* end confdefs.h. */
31120
31121/* Override any gcc2 internal prototype to avoid an error. */
31122#ifdef __cplusplus
31123extern "C"
31124#endif
31125/* We use char because int might match the return type of a gcc2
31126 builtin and then its argument prototype would still apply. */
31127char inet_addr ();
31128int
31129main ()
31130{
31131inet_addr ();
31132 ;
31133 return 0;
31134}
31135_ACEOF
31136rm -f conftest.$ac_objext conftest$ac_exeext
31137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31138 (eval $ac_link) 2>conftest.er1
a848cd7e 31139 ac_status=$?
ac1cb8d3
VS
31140 grep -v '^ *+' conftest.er1 >conftest.err
31141 rm -f conftest.er1
31142 cat conftest.err >&5
a848cd7e
SC
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); } &&
9a8f0513
VS
31145 { ac_try='test -z "$ac_c_werror_flag"
31146 || test ! -s conftest.err'
ac1cb8d3
VS
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; } &&
31152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 ac_cv_lib_nsl_inet_addr=yes
31159else
31160 echo "$as_me: failed program was:" >&5
31161sed 's/^/| /' conftest.$ac_ext >&5
31162
31163ac_cv_lib_nsl_inet_addr=no
31164fi
ac1cb8d3
VS
31165rm -f conftest.err conftest.$ac_objext \
31166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31167LIBS=$ac_check_lib_save_LIBS
31168fi
31169echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31170echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31171if test $ac_cv_lib_nsl_inet_addr = yes; then
31172 INET_LINK="nsl"
31173else
31174
31175 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31176echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31177if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31178 echo $ECHO_N "(cached) $ECHO_C" >&6
31179else
31180 ac_check_lib_save_LIBS=$LIBS
31181LIBS="-lresolv $LIBS"
31182cat >conftest.$ac_ext <<_ACEOF
31183/* confdefs.h. */
31184_ACEOF
31185cat confdefs.h >>conftest.$ac_ext
31186cat >>conftest.$ac_ext <<_ACEOF
31187/* end confdefs.h. */
31188
31189/* Override any gcc2 internal prototype to avoid an error. */
31190#ifdef __cplusplus
31191extern "C"
31192#endif
31193/* We use char because int might match the return type of a gcc2
31194 builtin and then its argument prototype would still apply. */
31195char inet_addr ();
31196int
31197main ()
31198{
31199inet_addr ();
31200 ;
31201 return 0;
31202}
31203_ACEOF
31204rm -f conftest.$ac_objext conftest$ac_exeext
31205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31206 (eval $ac_link) 2>conftest.er1
a848cd7e 31207 ac_status=$?
ac1cb8d3
VS
31208 grep -v '^ *+' conftest.er1 >conftest.err
31209 rm -f conftest.er1
31210 cat conftest.err >&5
a848cd7e
SC
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } &&
9a8f0513
VS
31213 { ac_try='test -z "$ac_c_werror_flag"
31214 || test ! -s conftest.err'
ac1cb8d3
VS
31215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31216 (eval $ac_try) 2>&5
31217 ac_status=$?
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; } &&
31220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31222 (eval $ac_try) 2>&5
31223 ac_status=$?
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; }; then
31226 ac_cv_lib_resolv_inet_addr=yes
31227else
31228 echo "$as_me: failed program was:" >&5
31229sed 's/^/| /' conftest.$ac_ext >&5
31230
31231ac_cv_lib_resolv_inet_addr=no
31232fi
ac1cb8d3
VS
31233rm -f conftest.err conftest.$ac_objext \
31234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31235LIBS=$ac_check_lib_save_LIBS
31236fi
31237echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31238echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31239if test $ac_cv_lib_resolv_inet_addr = yes; then
31240 INET_LINK="resolv"
31241else
31242
31243 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31244echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31245if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31246 echo $ECHO_N "(cached) $ECHO_C" >&6
31247else
31248 ac_check_lib_save_LIBS=$LIBS
31249LIBS="-lsocket $LIBS"
31250cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
31256
31257/* Override any gcc2 internal prototype to avoid an error. */
31258#ifdef __cplusplus
31259extern "C"
31260#endif
31261/* We use char because int might match the return type of a gcc2
31262 builtin and then its argument prototype would still apply. */
31263char inet_addr ();
31264int
31265main ()
31266{
31267inet_addr ();
31268 ;
31269 return 0;
31270}
31271_ACEOF
31272rm -f conftest.$ac_objext conftest$ac_exeext
31273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31274 (eval $ac_link) 2>conftest.er1
a848cd7e 31275 ac_status=$?
ac1cb8d3
VS
31276 grep -v '^ *+' conftest.er1 >conftest.err
31277 rm -f conftest.er1
31278 cat conftest.err >&5
a848cd7e
SC
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); } &&
9a8f0513
VS
31281 { ac_try='test -z "$ac_c_werror_flag"
31282 || test ! -s conftest.err'
ac1cb8d3
VS
31283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31284 (eval $ac_try) 2>&5
31285 ac_status=$?
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; } &&
31288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290 (eval $ac_try) 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; }; then
31294 ac_cv_lib_socket_inet_addr=yes
31295else
31296 echo "$as_me: failed program was:" >&5
31297sed 's/^/| /' conftest.$ac_ext >&5
31298
31299ac_cv_lib_socket_inet_addr=no
31300fi
ac1cb8d3
VS
31301rm -f conftest.err conftest.$ac_objext \
31302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31303LIBS=$ac_check_lib_save_LIBS
31304fi
31305echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31306echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31307if test $ac_cv_lib_socket_inet_addr = yes; then
31308 INET_LINK="socket"
31309
31310fi
31311
31312
31313
31314fi
31315
31316
31317
31318fi
31319
31320
31321
31322fi
31323done
31324
31325
31326
31327for ac_func in inet_aton
31328do
31329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31330echo "$as_me:$LINENO: checking for $ac_func" >&5
31331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31332if eval "test \"\${$as_ac_var+set}\" = set"; then
31333 echo $ECHO_N "(cached) $ECHO_C" >&6
31334else
31335 cat >conftest.$ac_ext <<_ACEOF
31336/* confdefs.h. */
31337_ACEOF
31338cat confdefs.h >>conftest.$ac_ext
31339cat >>conftest.$ac_ext <<_ACEOF
31340/* end confdefs.h. */
ac1cb8d3
VS
31341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31343#define $ac_func innocuous_$ac_func
31344
a848cd7e
SC
31345/* System header to define __stub macros and hopefully few prototypes,
31346 which can conflict with char $ac_func (); below.
31347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31348 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31349
a848cd7e
SC
31350#ifdef __STDC__
31351# include <limits.h>
31352#else
31353# include <assert.h>
31354#endif
ac1cb8d3
VS
31355
31356#undef $ac_func
31357
a848cd7e
SC
31358/* Override any gcc2 internal prototype to avoid an error. */
31359#ifdef __cplusplus
31360extern "C"
31361{
31362#endif
31363/* We use char because int might match the return type of a gcc2
31364 builtin and then its argument prototype would still apply. */
31365char $ac_func ();
31366/* The GNU C library defines this for functions which it implements
31367 to always fail with ENOSYS. Some functions are actually named
31368 something starting with __ and the normal name is an alias. */
31369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31370choke me
31371#else
31372char (*f) () = $ac_func;
31373#endif
31374#ifdef __cplusplus
31375}
31376#endif
31377
31378int
31379main ()
31380{
31381return f != $ac_func;
31382 ;
31383 return 0;
31384}
31385_ACEOF
31386rm -f conftest.$ac_objext conftest$ac_exeext
31387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31388 (eval $ac_link) 2>conftest.er1
a848cd7e 31389 ac_status=$?
ac1cb8d3
VS
31390 grep -v '^ *+' conftest.er1 >conftest.err
31391 rm -f conftest.er1
31392 cat conftest.err >&5
a848cd7e
SC
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
9a8f0513
VS
31395 { ac_try='test -z "$ac_c_werror_flag"
31396 || test ! -s conftest.err'
ac1cb8d3
VS
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; } &&
31402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31404 (eval $ac_try) 2>&5
31405 ac_status=$?
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); }; }; then
31408 eval "$as_ac_var=yes"
31409else
31410 echo "$as_me: failed program was:" >&5
31411sed 's/^/| /' conftest.$ac_ext >&5
31412
31413eval "$as_ac_var=no"
31414fi
ac1cb8d3
VS
31415rm -f conftest.err conftest.$ac_objext \
31416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31417fi
31418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31420if test `eval echo '${'$as_ac_var'}'` = yes; then
31421 cat >>confdefs.h <<_ACEOF
31422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31423_ACEOF
31424 cat >>confdefs.h <<\_ACEOF
31425#define HAVE_INET_ATON 1
31426_ACEOF
31427
31428else
31429
31430 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31431echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31432echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31433if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31435else
31436 ac_check_lib_save_LIBS=$LIBS
31437LIBS="-l$INET_LINK $LIBS"
31438cat >conftest.$ac_ext <<_ACEOF
31439/* confdefs.h. */
31440_ACEOF
31441cat confdefs.h >>conftest.$ac_ext
31442cat >>conftest.$ac_ext <<_ACEOF
31443/* end confdefs.h. */
31444
31445/* Override any gcc2 internal prototype to avoid an error. */
31446#ifdef __cplusplus
31447extern "C"
31448#endif
31449/* We use char because int might match the return type of a gcc2
31450 builtin and then its argument prototype would still apply. */
31451char inet_aton ();
31452int
31453main ()
31454{
31455inet_aton ();
31456 ;
31457 return 0;
31458}
31459_ACEOF
31460rm -f conftest.$ac_objext conftest$ac_exeext
31461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31462 (eval $ac_link) 2>conftest.er1
a848cd7e 31463 ac_status=$?
ac1cb8d3
VS
31464 grep -v '^ *+' conftest.er1 >conftest.err
31465 rm -f conftest.er1
31466 cat conftest.err >&5
a848cd7e
SC
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); } &&
9a8f0513
VS
31469 { ac_try='test -z "$ac_c_werror_flag"
31470 || test ! -s conftest.err'
ac1cb8d3
VS
31471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31472 (eval $ac_try) 2>&5
31473 ac_status=$?
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); }; } &&
31476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31478 (eval $ac_try) 2>&5
31479 ac_status=$?
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); }; }; then
31482 eval "$as_ac_Lib=yes"
31483else
31484 echo "$as_me: failed program was:" >&5
31485sed 's/^/| /' conftest.$ac_ext >&5
31486
31487eval "$as_ac_Lib=no"
31488fi
ac1cb8d3
VS
31489rm -f conftest.err conftest.$ac_objext \
31490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31491LIBS=$ac_check_lib_save_LIBS
31492fi
31493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31494echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31495if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31496 cat >>confdefs.h <<\_ACEOF
31497#define HAVE_INET_ATON 1
31498_ACEOF
31499
31500fi
31501
31502
31503fi
31504done
31505
31506
31507if test "x$INET_LINK" != "x"; then
31508 cat >>confdefs.h <<\_ACEOF
31509#define HAVE_INET_ADDR 1
31510_ACEOF
31511
31512 INET_LINK=" -l$INET_LINK"
31513fi
31514
31515fi
31516
31517
31518
31519EXTRALIBS_ESD=
31520echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31521echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31522if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31523 echo $ECHO_N "(cached) $ECHO_C" >&6
31524else
31525 ac_check_lib_save_LIBS=$LIBS
31526LIBS="-lesd $LIBS"
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
31534/* Override any gcc2 internal prototype to avoid an error. */
31535#ifdef __cplusplus
31536extern "C"
31537#endif
31538/* We use char because int might match the return type of a gcc2
31539 builtin and then its argument prototype would still apply. */
31540char esd_close ();
31541int
31542main ()
31543{
31544esd_close ();
31545 ;
31546 return 0;
31547}
31548_ACEOF
31549rm -f conftest.$ac_objext conftest$ac_exeext
31550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31551 (eval $ac_link) 2>conftest.er1
a848cd7e 31552 ac_status=$?
ac1cb8d3
VS
31553 grep -v '^ *+' conftest.er1 >conftest.err
31554 rm -f conftest.er1
31555 cat conftest.err >&5
a848cd7e
SC
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } &&
9a8f0513
VS
31558 { ac_try='test -z "$ac_c_werror_flag"
31559 || test ! -s conftest.err'
ac1cb8d3
VS
31560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561 (eval $ac_try) 2>&5
31562 ac_status=$?
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); }; } &&
31565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31567 (eval $ac_try) 2>&5
31568 ac_status=$?
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); }; }; then
31571 ac_cv_lib_esd_esd_close=yes
31572else
31573 echo "$as_me: failed program was:" >&5
31574sed 's/^/| /' conftest.$ac_ext >&5
31575
31576ac_cv_lib_esd_esd_close=no
31577fi
ac1cb8d3
VS
31578rm -f conftest.err conftest.$ac_objext \
31579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31580LIBS=$ac_check_lib_save_LIBS
31581fi
31582echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31583echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31584if test $ac_cv_lib_esd_esd_close = yes; then
31585
31586
31587for ac_header in esd.h
31588do
31589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31590if eval "test \"\${$as_ac_Header+set}\" = set"; then
31591 echo "$as_me:$LINENO: checking for $ac_header" >&5
31592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31593if eval "test \"\${$as_ac_Header+set}\" = set"; then
31594 echo $ECHO_N "(cached) $ECHO_C" >&6
31595fi
31596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31598else
31599 # Is the header compilable?
31600echo "$as_me:$LINENO: checking $ac_header usability" >&5
31601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31602cat >conftest.$ac_ext <<_ACEOF
31603/* confdefs.h. */
31604_ACEOF
31605cat confdefs.h >>conftest.$ac_ext
31606cat >>conftest.$ac_ext <<_ACEOF
31607/* end confdefs.h. */
31608$ac_includes_default
31609#include <$ac_header>
31610_ACEOF
31611rm -f conftest.$ac_objext
31612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31613 (eval $ac_compile) 2>conftest.er1
a848cd7e 31614 ac_status=$?
ac1cb8d3
VS
31615 grep -v '^ *+' conftest.er1 >conftest.err
31616 rm -f conftest.er1
31617 cat conftest.err >&5
a848cd7e
SC
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); } &&
9a8f0513
VS
31620 { ac_try='test -z "$ac_c_werror_flag"
31621 || test ! -s conftest.err'
ac1cb8d3
VS
31622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31623 (eval $ac_try) 2>&5
31624 ac_status=$?
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; } &&
31627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629 (eval $ac_try) 2>&5
31630 ac_status=$?
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; }; then
31633 ac_header_compiler=yes
31634else
31635 echo "$as_me: failed program was:" >&5
31636sed 's/^/| /' conftest.$ac_ext >&5
31637
31638ac_header_compiler=no
31639fi
ac1cb8d3 31640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31642echo "${ECHO_T}$ac_header_compiler" >&6
31643
31644# Is the header present?
31645echo "$as_me:$LINENO: checking $ac_header presence" >&5
31646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31647cat >conftest.$ac_ext <<_ACEOF
31648/* confdefs.h. */
31649_ACEOF
31650cat confdefs.h >>conftest.$ac_ext
31651cat >>conftest.$ac_ext <<_ACEOF
31652/* end confdefs.h. */
31653#include <$ac_header>
31654_ACEOF
31655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31657 ac_status=$?
31658 grep -v '^ *+' conftest.er1 >conftest.err
31659 rm -f conftest.er1
31660 cat conftest.err >&5
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); } >/dev/null; then
31663 if test -s conftest.err; then
31664 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31666 else
31667 ac_cpp_err=
31668 fi
31669else
31670 ac_cpp_err=yes
31671fi
31672if test -z "$ac_cpp_err"; then
31673 ac_header_preproc=yes
31674else
31675 echo "$as_me: failed program was:" >&5
31676sed 's/^/| /' conftest.$ac_ext >&5
31677
31678 ac_header_preproc=no
31679fi
31680rm -f conftest.err conftest.$ac_ext
31681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31682echo "${ECHO_T}$ac_header_preproc" >&6
31683
31684# So? What about this header?
ac1cb8d3
VS
31685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31686 yes:no: )
a848cd7e
SC
31687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31691 ac_header_preproc=yes
a848cd7e 31692 ;;
ac1cb8d3 31693 no:yes:* )
a848cd7e
SC
31694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31706 (
31707 cat <<\_ASBOX
ac1cb8d3
VS
31708## ----------------------------------------- ##
31709## Report this to wx-dev@lists.wxwidgets.org ##
31710## ----------------------------------------- ##
a848cd7e
SC
31711_ASBOX
31712 ) |
31713 sed "s/^/$as_me: WARNING: /" >&2
31714 ;;
31715esac
31716echo "$as_me:$LINENO: checking for $ac_header" >&5
31717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31718if eval "test \"\${$as_ac_Header+set}\" = set"; then
31719 echo $ECHO_N "(cached) $ECHO_C" >&6
31720else
ac1cb8d3 31721 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31722fi
31723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31725
31726fi
31727if test `eval echo '${'$as_ac_Header'}'` = yes; then
31728 cat >>confdefs.h <<_ACEOF
31729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31730_ACEOF
31731
31732 EXTRALIBS_ESD="-lesd"
31733
31734fi
31735
31736done
31737
31738
31739fi
31740
31741
31742
31743echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31744echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31745cat >conftest.$ac_ext <<_ACEOF
31746/* confdefs.h. */
31747_ACEOF
31748cat confdefs.h >>conftest.$ac_ext
31749cat >>conftest.$ac_ext <<_ACEOF
31750/* end confdefs.h. */
31751#ifdef __linux__
31752 #include <linux/cdrom.h>
31753 #else
31754 /* For Solaris */
31755 #include <sys/cdio.h>
31756 #endif
31757
31758int
31759main ()
31760{
31761struct cdrom_tocentry entry, old_entry;
31762 ;
31763 return 0;
31764}
31765_ACEOF
31766rm -f conftest.$ac_objext
31767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31768 (eval $ac_compile) 2>conftest.er1
a848cd7e 31769 ac_status=$?
ac1cb8d3
VS
31770 grep -v '^ *+' conftest.er1 >conftest.err
31771 rm -f conftest.er1
31772 cat conftest.err >&5
a848cd7e
SC
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); } &&
9a8f0513
VS
31775 { ac_try='test -z "$ac_c_werror_flag"
31776 || test ! -s conftest.err'
ac1cb8d3
VS
31777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31778 (eval $ac_try) 2>&5
31779 ac_status=$?
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; } &&
31782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31784 (eval $ac_try) 2>&5
31785 ac_status=$?
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); }; }; then
31788 echo "$as_me:$LINENO: result: yes" >&5
31789echo "${ECHO_T}yes" >&6
31790 cat >>confdefs.h <<\_ACEOF
31791#define HAVE_KNOWN_CDROM_INTERFACE 1
31792_ACEOF
31793
31794else
31795 echo "$as_me: failed program was:" >&5
31796sed 's/^/| /' conftest.$ac_ext >&5
31797
31798echo "$as_me:$LINENO: result: no" >&5
31799echo "${ECHO_T}no" >&6
31800fi
ac1cb8d3 31801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31802
31803
31804cat >confcache <<\_ACEOF
31805# This file is a shell script that caches the results of configure
31806# tests run on this system so they can be shared between configure
31807# scripts and configure runs, see configure's option --config-cache.
31808# It is not useful on other systems. If it contains results you don't
31809# want to keep, you may remove or edit it.
31810#
31811# config.status only pays attention to the cache file if you give it
31812# the --recheck option to rerun configure.
31813#
31814# `ac_cv_env_foo' variables (set or unset) will be overridden when
31815# loading this file, other *unset* `ac_cv_foo' will be assigned the
31816# following values.
31817
31818_ACEOF
31819
31820# The following way of writing the cache mishandles newlines in values,
31821# but we know of no workaround that is simple, portable, and efficient.
31822# So, don't put newlines in cache variables' values.
31823# Ultrix sh set writes to stderr and can't be redirected directly,
31824# and sets the high bit in the cache file unless we assign to the vars.
31825{
31826 (set) 2>&1 |
31827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31828 *ac_space=\ *)
31829 # `set' does not quote correctly, so add quotes (double-quote
31830 # substitution turns \\\\ into \\, and sed turns \\ into \).
31831 sed -n \
ac1cb8d3
VS
31832 "s/'/'\\\\''/g;
31833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31834 ;;
31835 *)
31836 # `set' quotes correctly as required by POSIX, so do not add quotes.
31837 sed -n \
ac1cb8d3 31838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31839 ;;
31840 esac;
31841} |
31842 sed '
31843 t clear
31844 : clear
31845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31846 t end
31847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31848 : end' >>confcache
31849if diff $cache_file confcache >/dev/null 2>&1; then :; else
31850 if test -w $cache_file; then
31851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31852 cat confcache >$cache_file
31853 else
31854 echo "not updating unwritable cache $cache_file"
31855 fi
31856fi
31857rm -f confcache
31858
31859
31860CPP_MT_FLAG=
31861if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31862
31863
31864 THREADS_LINK=
31865 THREADS_CFLAGS=
31866
31867 if test "$wxUSE_THREADS" = "yes" ; then
31868 if test "$USE_BEOS" = 1; then
31869 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31870echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31871 wxUSE_THREADS="no"
31872 fi
31873 fi
31874
31875 if test "$wxUSE_THREADS" = "yes" ; then
31876
31877
31878 THREAD_OPTS="-pthread"
31879 case "${host}" in
31880 *-*-solaris2* | *-*-sunos4* )
31881 if test "x$GCC" = "xyes"; then
31882 THREAD_OPTS="-pthreads $THREAD_OPTS"
31883 else
31884 THREAD_OPTS="-mt $THREAD_OPTS"
31885 fi
31886 ;;
31887 *-*-freebsd*)
31888 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31889 ;;
31890 *-*-darwin* | *-*-cygwin* )
31891 THREAD_OPTS=""
31892 ;;
31893 *-*-aix*)
31894 THREAD_OPTS="pthreads"
31895 ;;
31896 *-hp-hpux* )
31897 if test "x$GCC" != "xyes"; then
31898 THREAD_OPTS=""
31899 fi
31900 ;;
31901
31902 *-*-irix* )
31903 if test "x$GCC" = "xyes"; then
31904 THREAD_OPTS=""
31905 fi
31906 ;;
31907
31908 *-*-*UnixWare*)
31909 if test "x$GCC" != "xyes"; then
31910 THREAD_OPTS="-Ethread"
31911 fi
31912 ;;
31913 esac
31914
31915 THREAD_OPTS="$THREAD_OPTS pthread none"
31916
31917 THREADS_OK=no
31918 for flag in $THREAD_OPTS; do
31919 case $flag in
31920 none)
31921 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31922echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31923 ;;
31924
31925 -*)
31926 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31927echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31928 THREADS_CFLAGS="$flag"
31929 ;;
31930
31931 *)
31932 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31933echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31934 THREADS_LINK="-l$flag"
31935 ;;
31936 esac
31937
31938 save_LIBS="$LIBS"
31939 save_CFLAGS="$CFLAGS"
31940 LIBS="$THREADS_LINK $LIBS"
31941 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31942
31943 cat >conftest.$ac_ext <<_ACEOF
31944/* confdefs.h. */
31945_ACEOF
31946cat confdefs.h >>conftest.$ac_ext
31947cat >>conftest.$ac_ext <<_ACEOF
31948/* end confdefs.h. */
31949#include <pthread.h>
31950int
31951main ()
31952{
31953pthread_create(0,0,0,0);
31954 ;
31955 return 0;
31956}
31957_ACEOF
31958rm -f conftest.$ac_objext conftest$ac_exeext
31959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31960 (eval $ac_link) 2>conftest.er1
a848cd7e 31961 ac_status=$?
ac1cb8d3
VS
31962 grep -v '^ *+' conftest.er1 >conftest.err
31963 rm -f conftest.er1
31964 cat conftest.err >&5
a848cd7e
SC
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
9a8f0513
VS
31967 { ac_try='test -z "$ac_c_werror_flag"
31968 || test ! -s conftest.err'
ac1cb8d3
VS
31969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31970 (eval $ac_try) 2>&5
31971 ac_status=$?
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; } &&
31974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31976 (eval $ac_try) 2>&5
31977 ac_status=$?
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); }; }; then
31980 THREADS_OK=yes
31981else
31982 echo "$as_me: failed program was:" >&5
31983sed 's/^/| /' conftest.$ac_ext >&5
31984
31985fi
ac1cb8d3
VS
31986rm -f conftest.err conftest.$ac_objext \
31987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31988
31989 LIBS="$save_LIBS"
31990 CFLAGS="$save_CFLAGS"
31991
31992 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31993echo "${ECHO_T}$THREADS_OK" >&6
31994 if test "x$THREADS_OK" = "xyes"; then
31995 break;
31996 fi
31997
31998 THREADS_LINK=""
31999 THREADS_CFLAGS=""
32000 done
32001
32002 if test "x$THREADS_OK" != "xyes"; then
32003 wxUSE_THREADS=no
32004 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32005echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32006 else
32007 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32008 LIBS="$THREADS_LINK $LIBS"
32009
32010 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32011echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32012 flag=no
32013 case "${host}" in
32014 *-aix*)
32015 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32016 flag="-D_THREAD_SAFE"
32017 ;;
32018 *-freebsd*)
32019 flag="-D_THREAD_SAFE"
32020 ;;
32021 *-hp-hpux* )
32022 flag="-D_REENTRANT"
32023 if test "x$GCC" != "xyes"; then
32024 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32025
32026 LIBS="$LIBS -lcma"
a848cd7e
SC
32027 fi
32028 ;;
32029 *solaris* | alpha*-osf*)
32030 flag="-D_REENTRANT"
32031 ;;
32032 esac
32033 echo "$as_me:$LINENO: result: ${flag}" >&5
32034echo "${ECHO_T}${flag}" >&6
32035 if test "x$flag" != xno; then
32036 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32037 fi
32038
32039 if test "x$THREADS_CFLAGS" != "x"; then
32040 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32041 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32042 fi
32043 fi
32044 fi
32045
32046 if test "$wxUSE_THREADS" = "yes" ; then
32047
32048for ac_func in thr_setconcurrency
32049do
32050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32051echo "$as_me:$LINENO: checking for $ac_func" >&5
32052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32053if eval "test \"\${$as_ac_var+set}\" = set"; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32055else
32056 cat >conftest.$ac_ext <<_ACEOF
32057/* confdefs.h. */
32058_ACEOF
32059cat confdefs.h >>conftest.$ac_ext
32060cat >>conftest.$ac_ext <<_ACEOF
32061/* end confdefs.h. */
ac1cb8d3
VS
32062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32064#define $ac_func innocuous_$ac_func
32065
a848cd7e
SC
32066/* System header to define __stub macros and hopefully few prototypes,
32067 which can conflict with char $ac_func (); below.
32068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32069 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32070
a848cd7e
SC
32071#ifdef __STDC__
32072# include <limits.h>
32073#else
32074# include <assert.h>
32075#endif
ac1cb8d3
VS
32076
32077#undef $ac_func
32078
a848cd7e
SC
32079/* Override any gcc2 internal prototype to avoid an error. */
32080#ifdef __cplusplus
32081extern "C"
32082{
32083#endif
32084/* We use char because int might match the return type of a gcc2
32085 builtin and then its argument prototype would still apply. */
32086char $ac_func ();
32087/* The GNU C library defines this for functions which it implements
32088 to always fail with ENOSYS. Some functions are actually named
32089 something starting with __ and the normal name is an alias. */
32090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32091choke me
32092#else
32093char (*f) () = $ac_func;
32094#endif
32095#ifdef __cplusplus
32096}
32097#endif
32098
32099int
32100main ()
32101{
32102return f != $ac_func;
32103 ;
32104 return 0;
32105}
32106_ACEOF
32107rm -f conftest.$ac_objext conftest$ac_exeext
32108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32109 (eval $ac_link) 2>conftest.er1
a848cd7e 32110 ac_status=$?
ac1cb8d3
VS
32111 grep -v '^ *+' conftest.er1 >conftest.err
32112 rm -f conftest.er1
32113 cat conftest.err >&5
a848cd7e
SC
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } &&
9a8f0513
VS
32116 { ac_try='test -z "$ac_c_werror_flag"
32117 || test ! -s conftest.err'
ac1cb8d3
VS
32118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119 (eval $ac_try) 2>&5
32120 ac_status=$?
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; } &&
32123 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125 (eval $ac_try) 2>&5
32126 ac_status=$?
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; }; then
32129 eval "$as_ac_var=yes"
32130else
32131 echo "$as_me: failed program was:" >&5
32132sed 's/^/| /' conftest.$ac_ext >&5
32133
32134eval "$as_ac_var=no"
32135fi
ac1cb8d3
VS
32136rm -f conftest.err conftest.$ac_objext \
32137 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32138fi
32139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32140echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32141if test `eval echo '${'$as_ac_var'}'` = yes; then
32142 cat >>confdefs.h <<_ACEOF
32143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32144_ACEOF
32145
32146fi
32147done
32148
32149
32150
32151for ac_header in sched.h
32152do
32153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32154if eval "test \"\${$as_ac_Header+set}\" = set"; then
32155 echo "$as_me:$LINENO: checking for $ac_header" >&5
32156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32157if eval "test \"\${$as_ac_Header+set}\" = set"; then
32158 echo $ECHO_N "(cached) $ECHO_C" >&6
32159fi
32160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32162else
32163 # Is the header compilable?
32164echo "$as_me:$LINENO: checking $ac_header usability" >&5
32165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32166cat >conftest.$ac_ext <<_ACEOF
32167/* confdefs.h. */
32168_ACEOF
32169cat confdefs.h >>conftest.$ac_ext
32170cat >>conftest.$ac_ext <<_ACEOF
32171/* end confdefs.h. */
32172$ac_includes_default
32173#include <$ac_header>
32174_ACEOF
32175rm -f conftest.$ac_objext
32176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32177 (eval $ac_compile) 2>conftest.er1
a848cd7e 32178 ac_status=$?
ac1cb8d3
VS
32179 grep -v '^ *+' conftest.er1 >conftest.err
32180 rm -f conftest.er1
32181 cat conftest.err >&5
a848cd7e
SC
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
9a8f0513
VS
32184 { ac_try='test -z "$ac_c_werror_flag"
32185 || test ! -s conftest.err'
ac1cb8d3
VS
32186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32187 (eval $ac_try) 2>&5
32188 ac_status=$?
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; } &&
32191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32193 (eval $ac_try) 2>&5
32194 ac_status=$?
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; }; then
32197 ac_header_compiler=yes
32198else
32199 echo "$as_me: failed program was:" >&5
32200sed 's/^/| /' conftest.$ac_ext >&5
32201
32202ac_header_compiler=no
32203fi
ac1cb8d3 32204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32206echo "${ECHO_T}$ac_header_compiler" >&6
32207
32208# Is the header present?
32209echo "$as_me:$LINENO: checking $ac_header presence" >&5
32210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32211cat >conftest.$ac_ext <<_ACEOF
32212/* confdefs.h. */
32213_ACEOF
32214cat confdefs.h >>conftest.$ac_ext
32215cat >>conftest.$ac_ext <<_ACEOF
32216/* end confdefs.h. */
32217#include <$ac_header>
32218_ACEOF
32219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32221 ac_status=$?
32222 grep -v '^ *+' conftest.er1 >conftest.err
32223 rm -f conftest.er1
32224 cat conftest.err >&5
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); } >/dev/null; then
32227 if test -s conftest.err; then
32228 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32230 else
32231 ac_cpp_err=
32232 fi
32233else
32234 ac_cpp_err=yes
32235fi
32236if test -z "$ac_cpp_err"; then
32237 ac_header_preproc=yes
32238else
32239 echo "$as_me: failed program was:" >&5
32240sed 's/^/| /' conftest.$ac_ext >&5
32241
32242 ac_header_preproc=no
32243fi
32244rm -f conftest.err conftest.$ac_ext
32245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32246echo "${ECHO_T}$ac_header_preproc" >&6
32247
32248# So? What about this header?
ac1cb8d3
VS
32249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32250 yes:no: )
a848cd7e
SC
32251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32255 ac_header_preproc=yes
a848cd7e 32256 ;;
ac1cb8d3 32257 no:yes:* )
a848cd7e
SC
32258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32270 (
32271 cat <<\_ASBOX
ac1cb8d3
VS
32272## ----------------------------------------- ##
32273## Report this to wx-dev@lists.wxwidgets.org ##
32274## ----------------------------------------- ##
a848cd7e
SC
32275_ASBOX
32276 ) |
32277 sed "s/^/$as_me: WARNING: /" >&2
32278 ;;
32279esac
32280echo "$as_me:$LINENO: checking for $ac_header" >&5
32281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32282if eval "test \"\${$as_ac_Header+set}\" = set"; then
32283 echo $ECHO_N "(cached) $ECHO_C" >&6
32284else
ac1cb8d3 32285 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32286fi
32287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32289
32290fi
32291if test `eval echo '${'$as_ac_Header'}'` = yes; then
32292 cat >>confdefs.h <<_ACEOF
32293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32294_ACEOF
32295
32296fi
32297
32298done
32299
32300 if test "$ac_cv_header_sched_h" = "yes"; then
32301 echo "$as_me:$LINENO: checking for sched_yield" >&5
32302echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32303if test "${ac_cv_func_sched_yield+set}" = set; then
32304 echo $ECHO_N "(cached) $ECHO_C" >&6
32305else
32306 cat >conftest.$ac_ext <<_ACEOF
32307/* confdefs.h. */
32308_ACEOF
32309cat confdefs.h >>conftest.$ac_ext
32310cat >>conftest.$ac_ext <<_ACEOF
32311/* end confdefs.h. */
ac1cb8d3
VS
32312/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32314#define sched_yield innocuous_sched_yield
32315
a848cd7e
SC
32316/* System header to define __stub macros and hopefully few prototypes,
32317 which can conflict with char sched_yield (); below.
32318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32319 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32320
a848cd7e
SC
32321#ifdef __STDC__
32322# include <limits.h>
32323#else
32324# include <assert.h>
32325#endif
ac1cb8d3
VS
32326
32327#undef sched_yield
32328
a848cd7e
SC
32329/* Override any gcc2 internal prototype to avoid an error. */
32330#ifdef __cplusplus
32331extern "C"
32332{
32333#endif
32334/* We use char because int might match the return type of a gcc2
32335 builtin and then its argument prototype would still apply. */
32336char sched_yield ();
32337/* The GNU C library defines this for functions which it implements
32338 to always fail with ENOSYS. Some functions are actually named
32339 something starting with __ and the normal name is an alias. */
32340#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32341choke me
32342#else
32343char (*f) () = sched_yield;
32344#endif
32345#ifdef __cplusplus
32346}
32347#endif
32348
32349int
32350main ()
32351{
32352return f != sched_yield;
32353 ;
32354 return 0;
32355}
32356_ACEOF
32357rm -f conftest.$ac_objext conftest$ac_exeext
32358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32359 (eval $ac_link) 2>conftest.er1
a848cd7e 32360 ac_status=$?
ac1cb8d3
VS
32361 grep -v '^ *+' conftest.er1 >conftest.err
32362 rm -f conftest.er1
32363 cat conftest.err >&5
a848cd7e
SC
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); } &&
9a8f0513
VS
32366 { ac_try='test -z "$ac_c_werror_flag"
32367 || test ! -s conftest.err'
ac1cb8d3
VS
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; } &&
32373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32375 (eval $ac_try) 2>&5
32376 ac_status=$?
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); }; }; then
32379 ac_cv_func_sched_yield=yes
32380else
32381 echo "$as_me: failed program was:" >&5
32382sed 's/^/| /' conftest.$ac_ext >&5
32383
32384ac_cv_func_sched_yield=no
32385fi
ac1cb8d3
VS
32386rm -f conftest.err conftest.$ac_objext \
32387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32388fi
32389echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32390echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32391if test $ac_cv_func_sched_yield = yes; then
32392 cat >>confdefs.h <<\_ACEOF
32393#define HAVE_SCHED_YIELD 1
32394_ACEOF
32395
32396else
32397
32398 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32399echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32400if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32401 echo $ECHO_N "(cached) $ECHO_C" >&6
32402else
32403 ac_check_lib_save_LIBS=$LIBS
32404LIBS="-lposix4 $LIBS"
32405cat >conftest.$ac_ext <<_ACEOF
32406/* confdefs.h. */
32407_ACEOF
32408cat confdefs.h >>conftest.$ac_ext
32409cat >>conftest.$ac_ext <<_ACEOF
32410/* end confdefs.h. */
32411
32412/* Override any gcc2 internal prototype to avoid an error. */
32413#ifdef __cplusplus
32414extern "C"
32415#endif
32416/* We use char because int might match the return type of a gcc2
32417 builtin and then its argument prototype would still apply. */
32418char sched_yield ();
32419int
32420main ()
32421{
32422sched_yield ();
32423 ;
32424 return 0;
32425}
32426_ACEOF
32427rm -f conftest.$ac_objext conftest$ac_exeext
32428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32429 (eval $ac_link) 2>conftest.er1
a848cd7e 32430 ac_status=$?
ac1cb8d3
VS
32431 grep -v '^ *+' conftest.er1 >conftest.err
32432 rm -f conftest.er1
32433 cat conftest.err >&5
a848cd7e
SC
32434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435 (exit $ac_status); } &&
9a8f0513
VS
32436 { ac_try='test -z "$ac_c_werror_flag"
32437 || test ! -s conftest.err'
ac1cb8d3
VS
32438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439 (eval $ac_try) 2>&5
32440 ac_status=$?
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); }; } &&
32443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32445 (eval $ac_try) 2>&5
32446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449 ac_cv_lib_posix4_sched_yield=yes
32450else
32451 echo "$as_me: failed program was:" >&5
32452sed 's/^/| /' conftest.$ac_ext >&5
32453
32454ac_cv_lib_posix4_sched_yield=no
32455fi
ac1cb8d3
VS
32456rm -f conftest.err conftest.$ac_objext \
32457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32458LIBS=$ac_check_lib_save_LIBS
32459fi
32460echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32461echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32462if test $ac_cv_lib_posix4_sched_yield = yes; then
32463 cat >>confdefs.h <<\_ACEOF
32464#define HAVE_SCHED_YIELD 1
32465_ACEOF
32466 POSIX4_LINK=" -lposix4"
32467else
32468 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32469echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32470
32471fi
32472
32473
32474
32475fi
32476
32477 fi
32478
32479 HAVE_PRIOR_FUNCS=0
32480 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32481echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32482if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32483 echo $ECHO_N "(cached) $ECHO_C" >&6
32484else
32485 cat >conftest.$ac_ext <<_ACEOF
32486/* confdefs.h. */
32487_ACEOF
32488cat confdefs.h >>conftest.$ac_ext
32489cat >>conftest.$ac_ext <<_ACEOF
32490/* end confdefs.h. */
ac1cb8d3
VS
32491/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32493#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32494
a848cd7e
SC
32495/* System header to define __stub macros and hopefully few prototypes,
32496 which can conflict with char pthread_attr_getschedpolicy (); below.
32497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32498 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32499
a848cd7e
SC
32500#ifdef __STDC__
32501# include <limits.h>
32502#else
32503# include <assert.h>
32504#endif
ac1cb8d3
VS
32505
32506#undef pthread_attr_getschedpolicy
32507
a848cd7e
SC
32508/* Override any gcc2 internal prototype to avoid an error. */
32509#ifdef __cplusplus
32510extern "C"
32511{
32512#endif
32513/* We use char because int might match the return type of a gcc2
32514 builtin and then its argument prototype would still apply. */
32515char pthread_attr_getschedpolicy ();
32516/* The GNU C library defines this for functions which it implements
32517 to always fail with ENOSYS. Some functions are actually named
32518 something starting with __ and the normal name is an alias. */
32519#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32520choke me
32521#else
32522char (*f) () = pthread_attr_getschedpolicy;
32523#endif
32524#ifdef __cplusplus
32525}
32526#endif
32527
32528int
32529main ()
32530{
32531return f != pthread_attr_getschedpolicy;
32532 ;
32533 return 0;
32534}
32535_ACEOF
32536rm -f conftest.$ac_objext conftest$ac_exeext
32537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32538 (eval $ac_link) 2>conftest.er1
a848cd7e 32539 ac_status=$?
ac1cb8d3
VS
32540 grep -v '^ *+' conftest.er1 >conftest.err
32541 rm -f conftest.er1
32542 cat conftest.err >&5
a848cd7e
SC
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); } &&
9a8f0513
VS
32545 { ac_try='test -z "$ac_c_werror_flag"
32546 || test ! -s conftest.err'
ac1cb8d3
VS
32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548 (eval $ac_try) 2>&5
32549 ac_status=$?
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; } &&
32552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32554 (eval $ac_try) 2>&5
32555 ac_status=$?
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); }; }; then
32558 ac_cv_func_pthread_attr_getschedpolicy=yes
32559else
32560 echo "$as_me: failed program was:" >&5
32561sed 's/^/| /' conftest.$ac_ext >&5
32562
32563ac_cv_func_pthread_attr_getschedpolicy=no
32564fi
ac1cb8d3
VS
32565rm -f conftest.err conftest.$ac_objext \
32566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32567fi
32568echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32569echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32570if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32571 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32572echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32573if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32574 echo $ECHO_N "(cached) $ECHO_C" >&6
32575else
32576 cat >conftest.$ac_ext <<_ACEOF
32577/* confdefs.h. */
32578_ACEOF
32579cat confdefs.h >>conftest.$ac_ext
32580cat >>conftest.$ac_ext <<_ACEOF
32581/* end confdefs.h. */
ac1cb8d3
VS
32582/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32584#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32585
a848cd7e
SC
32586/* System header to define __stub macros and hopefully few prototypes,
32587 which can conflict with char pthread_attr_setschedparam (); below.
32588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32589 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32590
a848cd7e
SC
32591#ifdef __STDC__
32592# include <limits.h>
32593#else
32594# include <assert.h>
32595#endif
ac1cb8d3
VS
32596
32597#undef pthread_attr_setschedparam
32598
a848cd7e
SC
32599/* Override any gcc2 internal prototype to avoid an error. */
32600#ifdef __cplusplus
32601extern "C"
32602{
32603#endif
32604/* We use char because int might match the return type of a gcc2
32605 builtin and then its argument prototype would still apply. */
32606char pthread_attr_setschedparam ();
32607/* The GNU C library defines this for functions which it implements
32608 to always fail with ENOSYS. Some functions are actually named
32609 something starting with __ and the normal name is an alias. */
32610#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32611choke me
32612#else
32613char (*f) () = pthread_attr_setschedparam;
32614#endif
32615#ifdef __cplusplus
32616}
32617#endif
32618
32619int
32620main ()
32621{
32622return f != pthread_attr_setschedparam;
32623 ;
32624 return 0;
32625}
32626_ACEOF
32627rm -f conftest.$ac_objext conftest$ac_exeext
32628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32629 (eval $ac_link) 2>conftest.er1
a848cd7e 32630 ac_status=$?
ac1cb8d3
VS
32631 grep -v '^ *+' conftest.er1 >conftest.err
32632 rm -f conftest.er1
32633 cat conftest.err >&5
a848cd7e
SC
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
9a8f0513
VS
32636 { ac_try='test -z "$ac_c_werror_flag"
32637 || test ! -s conftest.err'
ac1cb8d3
VS
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; } &&
32643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; }; then
32649 ac_cv_func_pthread_attr_setschedparam=yes
32650else
32651 echo "$as_me: failed program was:" >&5
32652sed 's/^/| /' conftest.$ac_ext >&5
32653
32654ac_cv_func_pthread_attr_setschedparam=no
32655fi
ac1cb8d3
VS
32656rm -f conftest.err conftest.$ac_objext \
32657 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32658fi
32659echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32660echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32661if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32662 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32663echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32664if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32666else
32667 cat >conftest.$ac_ext <<_ACEOF
32668/* confdefs.h. */
32669_ACEOF
32670cat confdefs.h >>conftest.$ac_ext
32671cat >>conftest.$ac_ext <<_ACEOF
32672/* end confdefs.h. */
ac1cb8d3
VS
32673/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32675#define sched_get_priority_max innocuous_sched_get_priority_max
32676
a848cd7e
SC
32677/* System header to define __stub macros and hopefully few prototypes,
32678 which can conflict with char sched_get_priority_max (); below.
32679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32680 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32681
a848cd7e
SC
32682#ifdef __STDC__
32683# include <limits.h>
32684#else
32685# include <assert.h>
32686#endif
ac1cb8d3
VS
32687
32688#undef sched_get_priority_max
32689
a848cd7e
SC
32690/* Override any gcc2 internal prototype to avoid an error. */
32691#ifdef __cplusplus
32692extern "C"
32693{
32694#endif
32695/* We use char because int might match the return type of a gcc2
32696 builtin and then its argument prototype would still apply. */
32697char sched_get_priority_max ();
32698/* The GNU C library defines this for functions which it implements
32699 to always fail with ENOSYS. Some functions are actually named
32700 something starting with __ and the normal name is an alias. */
32701#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32702choke me
32703#else
32704char (*f) () = sched_get_priority_max;
32705#endif
32706#ifdef __cplusplus
32707}
32708#endif
32709
32710int
32711main ()
32712{
32713return f != sched_get_priority_max;
32714 ;
32715 return 0;
32716}
32717_ACEOF
32718rm -f conftest.$ac_objext conftest$ac_exeext
32719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32720 (eval $ac_link) 2>conftest.er1
a848cd7e 32721 ac_status=$?
ac1cb8d3
VS
32722 grep -v '^ *+' conftest.er1 >conftest.err
32723 rm -f conftest.er1
32724 cat conftest.err >&5
a848cd7e
SC
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); } &&
9a8f0513
VS
32727 { ac_try='test -z "$ac_c_werror_flag"
32728 || test ! -s conftest.err'
ac1cb8d3
VS
32729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730 (eval $ac_try) 2>&5
32731 ac_status=$?
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); }; } &&
32734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32736 (eval $ac_try) 2>&5
32737 ac_status=$?
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 ac_cv_func_sched_get_priority_max=yes
32741else
32742 echo "$as_me: failed program was:" >&5
32743sed 's/^/| /' conftest.$ac_ext >&5
32744
32745ac_cv_func_sched_get_priority_max=no
32746fi
ac1cb8d3
VS
32747rm -f conftest.err conftest.$ac_objext \
32748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32749fi
32750echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32751echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32752if test $ac_cv_func_sched_get_priority_max = yes; then
32753 HAVE_PRIOR_FUNCS=1
32754else
32755 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32756echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32757if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32758 echo $ECHO_N "(cached) $ECHO_C" >&6
32759else
32760 ac_check_lib_save_LIBS=$LIBS
32761LIBS="-lposix4 $LIBS"
32762cat >conftest.$ac_ext <<_ACEOF
32763/* confdefs.h. */
32764_ACEOF
32765cat confdefs.h >>conftest.$ac_ext
32766cat >>conftest.$ac_ext <<_ACEOF
32767/* end confdefs.h. */
32768
32769/* Override any gcc2 internal prototype to avoid an error. */
32770#ifdef __cplusplus
32771extern "C"
32772#endif
32773/* We use char because int might match the return type of a gcc2
32774 builtin and then its argument prototype would still apply. */
32775char sched_get_priority_max ();
32776int
32777main ()
32778{
32779sched_get_priority_max ();
32780 ;
32781 return 0;
32782}
32783_ACEOF
32784rm -f conftest.$ac_objext conftest$ac_exeext
32785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32786 (eval $ac_link) 2>conftest.er1
a848cd7e 32787 ac_status=$?
ac1cb8d3
VS
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
a848cd7e
SC
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
9a8f0513
VS
32793 { ac_try='test -z "$ac_c_werror_flag"
32794 || test ! -s conftest.err'
ac1cb8d3
VS
32795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32796 (eval $ac_try) 2>&5
32797 ac_status=$?
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; } &&
32800 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32802 (eval $ac_try) 2>&5
32803 ac_status=$?
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; }; then
32806 ac_cv_lib_posix4_sched_get_priority_max=yes
32807else
32808 echo "$as_me: failed program was:" >&5
32809sed 's/^/| /' conftest.$ac_ext >&5
32810
32811ac_cv_lib_posix4_sched_get_priority_max=no
32812fi
ac1cb8d3
VS
32813rm -f conftest.err conftest.$ac_objext \
32814 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32815LIBS=$ac_check_lib_save_LIBS
32816fi
32817echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32818echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32819if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32820
32821 HAVE_PRIOR_FUNCS=1
32822 POSIX4_LINK=" -lposix4"
32823
32824fi
32825
32826
32827fi
32828
32829
32830fi
32831
32832
32833fi
32834
32835
32836 if test "$HAVE_PRIOR_FUNCS" = 1; then
32837 cat >>confdefs.h <<\_ACEOF
32838#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32839_ACEOF
32840
32841 else
32842 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32843echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32844 fi
32845
32846 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32847echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32848if test "${ac_cv_func_pthread_cancel+set}" = set; then
32849 echo $ECHO_N "(cached) $ECHO_C" >&6
32850else
32851 cat >conftest.$ac_ext <<_ACEOF
32852/* confdefs.h. */
32853_ACEOF
32854cat confdefs.h >>conftest.$ac_ext
32855cat >>conftest.$ac_ext <<_ACEOF
32856/* end confdefs.h. */
ac1cb8d3
VS
32857/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32859#define pthread_cancel innocuous_pthread_cancel
32860
a848cd7e
SC
32861/* System header to define __stub macros and hopefully few prototypes,
32862 which can conflict with char pthread_cancel (); below.
32863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32864 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32865
a848cd7e
SC
32866#ifdef __STDC__
32867# include <limits.h>
32868#else
32869# include <assert.h>
32870#endif
ac1cb8d3
VS
32871
32872#undef pthread_cancel
32873
a848cd7e
SC
32874/* Override any gcc2 internal prototype to avoid an error. */
32875#ifdef __cplusplus
32876extern "C"
32877{
32878#endif
32879/* We use char because int might match the return type of a gcc2
32880 builtin and then its argument prototype would still apply. */
32881char pthread_cancel ();
32882/* The GNU C library defines this for functions which it implements
32883 to always fail with ENOSYS. Some functions are actually named
32884 something starting with __ and the normal name is an alias. */
32885#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32886choke me
32887#else
32888char (*f) () = pthread_cancel;
32889#endif
32890#ifdef __cplusplus
32891}
32892#endif
32893
32894int
32895main ()
32896{
32897return f != pthread_cancel;
32898 ;
32899 return 0;
32900}
32901_ACEOF
32902rm -f conftest.$ac_objext conftest$ac_exeext
32903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32904 (eval $ac_link) 2>conftest.er1
a848cd7e 32905 ac_status=$?
ac1cb8d3
VS
32906 grep -v '^ *+' conftest.er1 >conftest.err
32907 rm -f conftest.er1
32908 cat conftest.err >&5
a848cd7e
SC
32909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910 (exit $ac_status); } &&
9a8f0513
VS
32911 { ac_try='test -z "$ac_c_werror_flag"
32912 || test ! -s conftest.err'
ac1cb8d3
VS
32913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32914 (eval $ac_try) 2>&5
32915 ac_status=$?
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); }; } &&
32918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32920 (eval $ac_try) 2>&5
32921 ac_status=$?
32922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32923 (exit $ac_status); }; }; then
32924 ac_cv_func_pthread_cancel=yes
32925else
32926 echo "$as_me: failed program was:" >&5
32927sed 's/^/| /' conftest.$ac_ext >&5
32928
32929ac_cv_func_pthread_cancel=no
32930fi
ac1cb8d3
VS
32931rm -f conftest.err conftest.$ac_objext \
32932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32933fi
32934echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32935echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32936if test $ac_cv_func_pthread_cancel = yes; then
32937 cat >>confdefs.h <<\_ACEOF
32938#define HAVE_PTHREAD_CANCEL 1
32939_ACEOF
32940
32941else
32942 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32943echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32944fi
32945
32946
32947
32948
32949 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32950echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32951if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32952 echo $ECHO_N "(cached) $ECHO_C" >&6
32953else
32954
32955 cat >conftest.$ac_ext <<_ACEOF
32956/* confdefs.h. */
32957_ACEOF
32958cat confdefs.h >>conftest.$ac_ext
32959cat >>conftest.$ac_ext <<_ACEOF
32960/* end confdefs.h. */
32961#include <pthread.h>
32962int
32963main ()
32964{
32965
32966 pthread_mutexattr_t attr;
32967 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32968
32969 ;
32970 return 0;
32971}
32972_ACEOF
32973rm -f conftest.$ac_objext
32974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32975 (eval $ac_compile) 2>conftest.er1
a848cd7e 32976 ac_status=$?
ac1cb8d3
VS
32977 grep -v '^ *+' conftest.er1 >conftest.err
32978 rm -f conftest.er1
32979 cat conftest.err >&5
a848cd7e
SC
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); } &&
9a8f0513
VS
32982 { ac_try='test -z "$ac_c_werror_flag"
32983 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32991 (eval $ac_try) 2>&5
32992 ac_status=$?
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); }; }; then
32995
32996 wx_cv_type_pthread_mutexattr_t=yes
32997
32998else
32999 echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
33002
33003 wx_cv_type_pthread_mutexattr_t=no
33004
33005
33006fi
ac1cb8d3 33007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33008
33009fi
33010echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33011echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33012
33013 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33014 cat >>confdefs.h <<\_ACEOF
33015#define HAVE_PTHREAD_MUTEXATTR_T 1
33016_ACEOF
33017
33018 else
33019 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33020echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33021if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33022 echo $ECHO_N "(cached) $ECHO_C" >&6
33023else
33024
33025 cat >conftest.$ac_ext <<_ACEOF
33026/* confdefs.h. */
33027_ACEOF
33028cat confdefs.h >>conftest.$ac_ext
33029cat >>conftest.$ac_ext <<_ACEOF
33030/* end confdefs.h. */
33031#include <pthread.h>
33032int
33033main ()
33034{
33035
33036 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33037
33038 ;
33039 return 0;
33040}
33041_ACEOF
33042rm -f conftest.$ac_objext
33043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33044 (eval $ac_compile) 2>conftest.er1
a848cd7e 33045 ac_status=$?
ac1cb8d3
VS
33046 grep -v '^ *+' conftest.er1 >conftest.err
33047 rm -f conftest.er1
33048 cat conftest.err >&5
a848cd7e
SC
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); } &&
9a8f0513
VS
33051 { ac_try='test -z "$ac_c_werror_flag"
33052 || test ! -s conftest.err'
ac1cb8d3
VS
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33055 ac_status=$?
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; } &&
33058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; }; then
33064
33065 wx_cv_type_pthread_rec_mutex_init=yes
33066
33067else
33068 echo "$as_me: failed program was:" >&5
33069sed 's/^/| /' conftest.$ac_ext >&5
33070
33071
33072 wx_cv_type_pthread_rec_mutex_init=no
33073
33074
33075fi
ac1cb8d3 33076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33077
33078fi
33079echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33080echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33081 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33082 cat >>confdefs.h <<\_ACEOF
33083#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33084_ACEOF
33085
33086 else
33087 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33088echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33089 fi
33090 fi
33091 fi
33092
33093else
33094 if test "$wxUSE_THREADS" = "yes" ; then
33095 case "${host}" in
33096 *-*-mingw32* )
33097 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33098echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33099if test "${wx_cv_cflags_mthread+set}" = set; then
33100 echo $ECHO_N "(cached) $ECHO_C" >&6
33101else
33102
33103 CFLAGS_OLD="$CFLAGS"
33104 CFLAGS="$CFLAGS -mthreads"
33105 cat >conftest.$ac_ext <<_ACEOF
33106/* confdefs.h. */
33107_ACEOF
33108cat confdefs.h >>conftest.$ac_ext
33109cat >>conftest.$ac_ext <<_ACEOF
33110/* end confdefs.h. */
33111
33112int
33113main ()
33114{
33115
33116 ;
33117 return 0;
33118}
33119_ACEOF
33120rm -f conftest.$ac_objext
33121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33122 (eval $ac_compile) 2>conftest.er1
a848cd7e 33123 ac_status=$?
ac1cb8d3
VS
33124 grep -v '^ *+' conftest.er1 >conftest.err
33125 rm -f conftest.er1
33126 cat conftest.err >&5
a848cd7e
SC
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); } &&
9a8f0513
VS
33129 { ac_try='test -z "$ac_c_werror_flag"
33130 || test ! -s conftest.err'
ac1cb8d3
VS
33131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132 (eval $ac_try) 2>&5
33133 ac_status=$?
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); }; } &&
33136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138 (eval $ac_try) 2>&5
33139 ac_status=$?
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; }; then
33142 wx_cv_cflags_mthread=yes
33143else
33144 echo "$as_me: failed program was:" >&5
33145sed 's/^/| /' conftest.$ac_ext >&5
33146
33147wx_cv_cflags_mthread=no
33148
33149fi
ac1cb8d3 33150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33151
33152
33153fi
33154echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33155echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33156
33157 if test "$wx_cv_cflags_mthread" = "yes"; then
33158 CXXFLAGS="$CXXFLAGS -mthreads"
33159 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33160 LDFLAGS="$LDFLAGS -mthreads"
33161 else
33162 CFLAGS="$CFLAGS_OLD"
33163 fi
33164 ;;
33165 *-pc-os2*emx )
33166 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33167 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33168 LDFLAGS="$LDFLAGS -Zmt"
33169 ;;
33170 esac
33171 fi
33172fi
33173
33174if test "$wxUSE_THREADS" = "yes"; then
33175 cat >>confdefs.h <<\_ACEOF
33176#define wxUSE_THREADS 1
33177_ACEOF
33178
33179
33180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33181else
33182 if test "$ac_cv_func_strtok_r" = "yes"; then
33183 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33184echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33185 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33186 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33187 echo "$as_me:$LINENO: result: yes" >&5
33188echo "${ECHO_T}yes" >&6
33189 else
33190 echo "$as_me:$LINENO: result: no" >&5
33191echo "${ECHO_T}no" >&6
33192 fi
33193 fi
33194fi
33195
33196if test "$WXGTK20" = 1 ; then
33197 cat >>confdefs.h <<_ACEOF
33198#define __WXGTK20__ $WXGTK20
33199_ACEOF
33200
33201 WXGTK12=1
33202fi
33203
33204if test "$WXGTK12" = 1 ; then
33205 cat >>confdefs.h <<_ACEOF
33206#define __WXGTK12__ $WXGTK12
33207_ACEOF
33208
33209fi
33210
33211if test "$WXGTK127" = 1 ; then
33212 cat >>confdefs.h <<_ACEOF
33213#define __WXGTK127__ $WXGTK127
33214_ACEOF
33215
33216fi
33217
33218if test "$WXGPE" = 1 ; then
33219 cat >>confdefs.h <<_ACEOF
33220#define __WXGPE__ $WXGPE
33221_ACEOF
33222
33223fi
33224
33225WXDEBUG=
33226
33227if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33228 WXDEBUG="-g"
33229 wxUSE_OPTIMISE=no
33230fi
33231
33232if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33233 wxUSE_DEBUG_INFO=yes
33234 WXDEBUG="-ggdb"
33235fi
33236
33237if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33238 cat >>confdefs.h <<\_ACEOF
33239#define WXDEBUG 1
33240_ACEOF
33241
33242 WXDEBUG_DEFINE="-D__WXDEBUG__"
33243else
33244 if test "$wxUSE_GTK" = 1 ; then
33245 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33246 fi
33247fi
33248
33249if test "$wxUSE_MEM_TRACING" = "yes" ; then
33250 cat >>confdefs.h <<\_ACEOF
33251#define wxUSE_MEMORY_TRACING 1
33252_ACEOF
33253
33254 cat >>confdefs.h <<\_ACEOF
33255#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33256_ACEOF
33257
33258 cat >>confdefs.h <<\_ACEOF
33259#define wxUSE_DEBUG_NEW_ALWAYS 1
33260_ACEOF
33261
33262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33263fi
33264
33265if test "$wxUSE_DMALLOC" = "yes" ; then
33266 DMALLOC_LIBS="-ldmalloc"
33267fi
33268
33269PROFILE=
33270if test "$wxUSE_PROFILE" = "yes" ; then
33271 PROFILE=" -pg"
33272fi
33273
33274CODE_GEN_FLAGS=
33275CODE_GEN_FLAGS_CXX=
33276if test "$GCC" = "yes" ; then
33277 if test "$wxUSE_NO_RTTI" = "yes" ; then
33278 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33279 fi
33280 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33281 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33282 fi
33283 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33284 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33285 fi
33286
33287 case "${host}" in
33288 powerpc*-*-aix* )
33289 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33290 ;;
33291 *-hppa* )
33292 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33293 ;;
33294 esac
33295fi
33296
33297OPTIMISE=
33298if test "$wxUSE_OPTIMISE" = "no" ; then
33299 if test "$GCC" = yes ; then
33300 OPTIMISE="-O0"
33301 fi
33302else
33303 if test "$GCC" = yes ; then
33304 OPTIMISE="-O2"
33305
33306 case "${host}" in
33307 i586-*-*|i686-*-* )
33308 OPTIMISE="${OPTIMISE} "
33309 ;;
33310 esac
33311 else
33312 OPTIMISE="-O"
33313 fi
33314fi
33315
33316
33317if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33318 cat >>confdefs.h <<\_ACEOF
33319#define WXWIN_COMPATIBILITY_2_2 1
33320_ACEOF
33321
33322
33323 WXWIN_COMPATIBILITY_2_4="yes"
33324fi
33325
33326if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33327 cat >>confdefs.h <<\_ACEOF
33328#define WXWIN_COMPATIBILITY_2_4 1
33329_ACEOF
33330
33331fi
33332
33333
33334if test "$wxUSE_GUI" = "yes"; then
33335 cat >>confdefs.h <<\_ACEOF
33336#define wxUSE_GUI 1
33337_ACEOF
33338
33339
33340 else
33341 cat >>confdefs.h <<\_ACEOF
33342#define wxUSE_NOGUI 1
33343_ACEOF
33344
33345fi
33346
33347
33348if test "$wxUSE_UNIX" = "yes"; then
33349 cat >>confdefs.h <<\_ACEOF
33350#define wxUSE_UNIX 1
33351_ACEOF
33352
33353fi
33354
33355
33356if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33357
33358 HAVE_DL_FUNCS=0
33359 HAVE_SHL_FUNCS=0
33360 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33361 if test "$USE_DARWIN" = 1; then
33362 HAVE_DL_FUNCS=1
33363 else
33364
33365for ac_func in dlopen
33366do
33367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33368echo "$as_me:$LINENO: checking for $ac_func" >&5
33369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33370if eval "test \"\${$as_ac_var+set}\" = set"; then
33371 echo $ECHO_N "(cached) $ECHO_C" >&6
33372else
33373 cat >conftest.$ac_ext <<_ACEOF
33374/* confdefs.h. */
33375_ACEOF
33376cat confdefs.h >>conftest.$ac_ext
33377cat >>conftest.$ac_ext <<_ACEOF
33378/* end confdefs.h. */
ac1cb8d3
VS
33379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33381#define $ac_func innocuous_$ac_func
33382
a848cd7e
SC
33383/* System header to define __stub macros and hopefully few prototypes,
33384 which can conflict with char $ac_func (); below.
33385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33386 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33387
a848cd7e
SC
33388#ifdef __STDC__
33389# include <limits.h>
33390#else
33391# include <assert.h>
33392#endif
ac1cb8d3
VS
33393
33394#undef $ac_func
33395
a848cd7e
SC
33396/* Override any gcc2 internal prototype to avoid an error. */
33397#ifdef __cplusplus
33398extern "C"
33399{
33400#endif
33401/* We use char because int might match the return type of a gcc2
33402 builtin and then its argument prototype would still apply. */
33403char $ac_func ();
33404/* The GNU C library defines this for functions which it implements
33405 to always fail with ENOSYS. Some functions are actually named
33406 something starting with __ and the normal name is an alias. */
33407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33408choke me
33409#else
33410char (*f) () = $ac_func;
33411#endif
33412#ifdef __cplusplus
33413}
33414#endif
33415
33416int
33417main ()
33418{
33419return f != $ac_func;
33420 ;
33421 return 0;
33422}
33423_ACEOF
33424rm -f conftest.$ac_objext conftest$ac_exeext
33425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33426 (eval $ac_link) 2>conftest.er1
a848cd7e 33427 ac_status=$?
ac1cb8d3
VS
33428 grep -v '^ *+' conftest.er1 >conftest.err
33429 rm -f conftest.er1
33430 cat conftest.err >&5
a848cd7e
SC
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); } &&
9a8f0513
VS
33433 { ac_try='test -z "$ac_c_werror_flag"
33434 || test ! -s conftest.err'
ac1cb8d3
VS
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; } &&
33440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33442 (eval $ac_try) 2>&5
33443 ac_status=$?
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); }; }; then
33446 eval "$as_ac_var=yes"
33447else
33448 echo "$as_me: failed program was:" >&5
33449sed 's/^/| /' conftest.$ac_ext >&5
33450
33451eval "$as_ac_var=no"
33452fi
ac1cb8d3
VS
33453rm -f conftest.err conftest.$ac_objext \
33454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33455fi
33456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33458if test `eval echo '${'$as_ac_var'}'` = yes; then
33459 cat >>confdefs.h <<_ACEOF
33460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33461_ACEOF
33462
33463 cat >>confdefs.h <<\_ACEOF
33464#define HAVE_DLOPEN 1
33465_ACEOF
33466
33467 HAVE_DL_FUNCS=1
33468
33469else
33470
33471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33472echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33473if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33474 echo $ECHO_N "(cached) $ECHO_C" >&6
33475else
33476 ac_check_lib_save_LIBS=$LIBS
33477LIBS="-ldl $LIBS"
33478cat >conftest.$ac_ext <<_ACEOF
33479/* confdefs.h. */
33480_ACEOF
33481cat confdefs.h >>conftest.$ac_ext
33482cat >>conftest.$ac_ext <<_ACEOF
33483/* end confdefs.h. */
33484
33485/* Override any gcc2 internal prototype to avoid an error. */
33486#ifdef __cplusplus
33487extern "C"
33488#endif
33489/* We use char because int might match the return type of a gcc2
33490 builtin and then its argument prototype would still apply. */
33491char dlopen ();
33492int
33493main ()
33494{
33495dlopen ();
33496 ;
33497 return 0;
33498}
33499_ACEOF
33500rm -f conftest.$ac_objext conftest$ac_exeext
33501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33502 (eval $ac_link) 2>conftest.er1
a848cd7e 33503 ac_status=$?
ac1cb8d3
VS
33504 grep -v '^ *+' conftest.er1 >conftest.err
33505 rm -f conftest.er1
33506 cat conftest.err >&5
a848cd7e
SC
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); } &&
9a8f0513
VS
33509 { ac_try='test -z "$ac_c_werror_flag"
33510 || test ! -s conftest.err'
ac1cb8d3
VS
33511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33512 (eval $ac_try) 2>&5
33513 ac_status=$?
33514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515 (exit $ac_status); }; } &&
33516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518 (eval $ac_try) 2>&5
33519 ac_status=$?
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); }; }; then
33522 ac_cv_lib_dl_dlopen=yes
33523else
33524 echo "$as_me: failed program was:" >&5
33525sed 's/^/| /' conftest.$ac_ext >&5
33526
33527ac_cv_lib_dl_dlopen=no
33528fi
ac1cb8d3
VS
33529rm -f conftest.err conftest.$ac_objext \
33530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33531LIBS=$ac_check_lib_save_LIBS
33532fi
33533echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33534echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33535if test $ac_cv_lib_dl_dlopen = yes; then
33536
33537 cat >>confdefs.h <<\_ACEOF
33538#define HAVE_DLOPEN 1
33539_ACEOF
33540
33541 HAVE_DL_FUNCS=1
33542 DL_LINK=" -ldl$DL_LINK"
33543
33544else
33545
33546
33547for ac_func in shl_load
33548do
33549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33550echo "$as_me:$LINENO: checking for $ac_func" >&5
33551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33552if eval "test \"\${$as_ac_var+set}\" = set"; then
33553 echo $ECHO_N "(cached) $ECHO_C" >&6
33554else
33555 cat >conftest.$ac_ext <<_ACEOF
33556/* confdefs.h. */
33557_ACEOF
33558cat confdefs.h >>conftest.$ac_ext
33559cat >>conftest.$ac_ext <<_ACEOF
33560/* end confdefs.h. */
ac1cb8d3
VS
33561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33563#define $ac_func innocuous_$ac_func
33564
a848cd7e
SC
33565/* System header to define __stub macros and hopefully few prototypes,
33566 which can conflict with char $ac_func (); below.
33567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33568 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33569
a848cd7e
SC
33570#ifdef __STDC__
33571# include <limits.h>
33572#else
33573# include <assert.h>
33574#endif
ac1cb8d3
VS
33575
33576#undef $ac_func
33577
a848cd7e
SC
33578/* Override any gcc2 internal prototype to avoid an error. */
33579#ifdef __cplusplus
33580extern "C"
33581{
33582#endif
33583/* We use char because int might match the return type of a gcc2
33584 builtin and then its argument prototype would still apply. */
33585char $ac_func ();
33586/* The GNU C library defines this for functions which it implements
33587 to always fail with ENOSYS. Some functions are actually named
33588 something starting with __ and the normal name is an alias. */
33589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33590choke me
33591#else
33592char (*f) () = $ac_func;
33593#endif
33594#ifdef __cplusplus
33595}
33596#endif
33597
33598int
33599main ()
33600{
33601return f != $ac_func;
33602 ;
33603 return 0;
33604}
33605_ACEOF
33606rm -f conftest.$ac_objext conftest$ac_exeext
33607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33608 (eval $ac_link) 2>conftest.er1
a848cd7e 33609 ac_status=$?
ac1cb8d3
VS
33610 grep -v '^ *+' conftest.er1 >conftest.err
33611 rm -f conftest.er1
33612 cat conftest.err >&5
a848cd7e
SC
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); } &&
9a8f0513
VS
33615 { ac_try='test -z "$ac_c_werror_flag"
33616 || test ! -s conftest.err'
ac1cb8d3
VS
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33624 (eval $ac_try) 2>&5
33625 ac_status=$?
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
33628 eval "$as_ac_var=yes"
33629else
33630 echo "$as_me: failed program was:" >&5
33631sed 's/^/| /' conftest.$ac_ext >&5
33632
33633eval "$as_ac_var=no"
33634fi
ac1cb8d3
VS
33635rm -f conftest.err conftest.$ac_objext \
33636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33637fi
33638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33639echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33640if test `eval echo '${'$as_ac_var'}'` = yes; then
33641 cat >>confdefs.h <<_ACEOF
33642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33643_ACEOF
33644
33645 cat >>confdefs.h <<\_ACEOF
33646#define HAVE_SHL_LOAD 1
33647_ACEOF
33648
33649 HAVE_SHL_FUNCS=1
33650
33651else
33652
33653 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33654echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33655if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33656 echo $ECHO_N "(cached) $ECHO_C" >&6
33657else
33658 ac_check_lib_save_LIBS=$LIBS
33659LIBS="-lshl_load $LIBS"
33660cat >conftest.$ac_ext <<_ACEOF
33661/* confdefs.h. */
33662_ACEOF
33663cat confdefs.h >>conftest.$ac_ext
33664cat >>conftest.$ac_ext <<_ACEOF
33665/* end confdefs.h. */
33666
33667/* Override any gcc2 internal prototype to avoid an error. */
33668#ifdef __cplusplus
33669extern "C"
33670#endif
33671/* We use char because int might match the return type of a gcc2
33672 builtin and then its argument prototype would still apply. */
33673char dld ();
33674int
33675main ()
33676{
33677dld ();
33678 ;
33679 return 0;
33680}
33681_ACEOF
33682rm -f conftest.$ac_objext conftest$ac_exeext
33683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33684 (eval $ac_link) 2>conftest.er1
a848cd7e 33685 ac_status=$?
ac1cb8d3
VS
33686 grep -v '^ *+' conftest.er1 >conftest.err
33687 rm -f conftest.er1
33688 cat conftest.err >&5
a848cd7e
SC
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); } &&
9a8f0513
VS
33691 { ac_try='test -z "$ac_c_werror_flag"
33692 || test ! -s conftest.err'
ac1cb8d3
VS
33693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33694 (eval $ac_try) 2>&5
33695 ac_status=$?
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); }; } &&
33698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33700 (eval $ac_try) 2>&5
33701 ac_status=$?
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); }; }; then
33704 ac_cv_lib_shl_load_dld=yes
33705else
33706 echo "$as_me: failed program was:" >&5
33707sed 's/^/| /' conftest.$ac_ext >&5
33708
33709ac_cv_lib_shl_load_dld=no
33710fi
ac1cb8d3
VS
33711rm -f conftest.err conftest.$ac_objext \
33712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33713LIBS=$ac_check_lib_save_LIBS
33714fi
33715echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33716echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33717if test $ac_cv_lib_shl_load_dld = yes; then
33718
33719 HAVE_SHL_FUNCS=1
33720 DL_LINK=" -ldld$DL_LINK"
33721
33722fi
33723
33724
33725fi
33726done
33727
33728
33729fi
33730
33731
33732fi
33733done
33734
33735
33736 if test "$HAVE_DL_FUNCS" = 1; then
33737
33738for ac_func in dlerror
33739do
33740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33741echo "$as_me:$LINENO: checking for $ac_func" >&5
33742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33743if eval "test \"\${$as_ac_var+set}\" = set"; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33745else
33746 cat >conftest.$ac_ext <<_ACEOF
33747/* confdefs.h. */
33748_ACEOF
33749cat confdefs.h >>conftest.$ac_ext
33750cat >>conftest.$ac_ext <<_ACEOF
33751/* end confdefs.h. */
ac1cb8d3
VS
33752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33754#define $ac_func innocuous_$ac_func
33755
a848cd7e
SC
33756/* System header to define __stub macros and hopefully few prototypes,
33757 which can conflict with char $ac_func (); below.
33758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33759 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33760
a848cd7e
SC
33761#ifdef __STDC__
33762# include <limits.h>
33763#else
33764# include <assert.h>
33765#endif
ac1cb8d3
VS
33766
33767#undef $ac_func
33768
a848cd7e
SC
33769/* Override any gcc2 internal prototype to avoid an error. */
33770#ifdef __cplusplus
33771extern "C"
33772{
33773#endif
33774/* We use char because int might match the return type of a gcc2
33775 builtin and then its argument prototype would still apply. */
33776char $ac_func ();
33777/* The GNU C library defines this for functions which it implements
33778 to always fail with ENOSYS. Some functions are actually named
33779 something starting with __ and the normal name is an alias. */
33780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33781choke me
33782#else
33783char (*f) () = $ac_func;
33784#endif
33785#ifdef __cplusplus
33786}
33787#endif
33788
33789int
33790main ()
33791{
33792return f != $ac_func;
33793 ;
33794 return 0;
33795}
33796_ACEOF
33797rm -f conftest.$ac_objext conftest$ac_exeext
33798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33799 (eval $ac_link) 2>conftest.er1
a848cd7e 33800 ac_status=$?
ac1cb8d3
VS
33801 grep -v '^ *+' conftest.er1 >conftest.err
33802 rm -f conftest.er1
33803 cat conftest.err >&5
a848cd7e
SC
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
9a8f0513
VS
33806 { ac_try='test -z "$ac_c_werror_flag"
33807 || test ! -s conftest.err'
ac1cb8d3
VS
33808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809 (eval $ac_try) 2>&5
33810 ac_status=$?
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); }; } &&
33813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 eval "$as_ac_var=yes"
33820else
33821 echo "$as_me: failed program was:" >&5
33822sed 's/^/| /' conftest.$ac_ext >&5
33823
33824eval "$as_ac_var=no"
33825fi
ac1cb8d3
VS
33826rm -f conftest.err conftest.$ac_objext \
33827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33828fi
33829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33830echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33831if test `eval echo '${'$as_ac_var'}'` = yes; then
33832 cat >>confdefs.h <<_ACEOF
33833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33834_ACEOF
33835 cat >>confdefs.h <<\_ACEOF
33836#define HAVE_DLERROR 1
33837_ACEOF
33838
33839else
33840
33841 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33842echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33843if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33844 echo $ECHO_N "(cached) $ECHO_C" >&6
33845else
33846 ac_check_lib_save_LIBS=$LIBS
33847LIBS="-ldl $LIBS"
33848cat >conftest.$ac_ext <<_ACEOF
33849/* confdefs.h. */
33850_ACEOF
33851cat confdefs.h >>conftest.$ac_ext
33852cat >>conftest.$ac_ext <<_ACEOF
33853/* end confdefs.h. */
33854
33855/* Override any gcc2 internal prototype to avoid an error. */
33856#ifdef __cplusplus
33857extern "C"
33858#endif
33859/* We use char because int might match the return type of a gcc2
33860 builtin and then its argument prototype would still apply. */
33861char dlerror ();
33862int
33863main ()
33864{
33865dlerror ();
33866 ;
33867 return 0;
33868}
33869_ACEOF
33870rm -f conftest.$ac_objext conftest$ac_exeext
33871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33872 (eval $ac_link) 2>conftest.er1
a848cd7e 33873 ac_status=$?
ac1cb8d3
VS
33874 grep -v '^ *+' conftest.er1 >conftest.err
33875 rm -f conftest.er1
33876 cat conftest.err >&5
a848cd7e
SC
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); } &&
9a8f0513
VS
33879 { ac_try='test -z "$ac_c_werror_flag"
33880 || test ! -s conftest.err'
ac1cb8d3
VS
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33883 ac_status=$?
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; } &&
33886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33889 ac_status=$?
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; }; then
33892 ac_cv_lib_dl_dlerror=yes
33893else
33894 echo "$as_me: failed program was:" >&5
33895sed 's/^/| /' conftest.$ac_ext >&5
33896
33897ac_cv_lib_dl_dlerror=no
33898fi
ac1cb8d3
VS
33899rm -f conftest.err conftest.$ac_objext \
33900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33901LIBS=$ac_check_lib_save_LIBS
33902fi
33903echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33904echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33905if test $ac_cv_lib_dl_dlerror = yes; then
33906 cat >>confdefs.h <<\_ACEOF
33907#define HAVE_DLERROR 1
33908_ACEOF
33909
33910fi
33911
33912
33913
33914fi
33915done
33916
33917 fi
33918 fi
33919
33920 if test "$HAVE_DL_FUNCS" = 0; then
33921 if test "$HAVE_SHL_FUNCS" = 0; then
33922 if test "$USE_UNIX" = 1; then
33923 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33924echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33925 wxUSE_DYNAMIC_LOADER=no
33926 wxUSE_DYNLIB_CLASS=no
33927 else
33928 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33929echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33930 fi
33931 fi
33932 fi
33933 fi
33934fi
33935
33936if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33937 cat >>confdefs.h <<\_ACEOF
33938#define wxUSE_DYNAMIC_LOADER 1
33939_ACEOF
33940
33941fi
33942if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33943 cat >>confdefs.h <<\_ACEOF
33944#define wxUSE_DYNLIB_CLASS 1
33945_ACEOF
33946
33947fi
33948
33949
33950
33951if test "$wxUSE_PLUGINS" = "yes" ; then
33952 if test "$wxUSE_SHARED" = "no" ; then
33953 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33954echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33955 wxUSE_PLUGINS=no
33956 fi
33957 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33958 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33959echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33960 wxUSE_PLUGINS=no
33961 fi
33962 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33963 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33964echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33965 wxUSE_PLUGINS=no
33966 fi
33967 if test "$wxUSE_PLUGINS" = "yes" ; then
33968 cat >>confdefs.h <<\_ACEOF
33969#define wxUSE_PLUGINS 1
33970_ACEOF
33971
33972 fi
33973fi
33974
33975
33976if test "$wxUSE_STL" = "yes"; then
33977 cat >>confdefs.h <<\_ACEOF
33978#define wxUSE_STL 1
33979_ACEOF
33980
33981fi
33982
33983if test "$wxUSE_APPLE_IEEE" = "yes"; then
33984 cat >>confdefs.h <<\_ACEOF
33985#define wxUSE_APPLE_IEEE 1
33986_ACEOF
33987
33988fi
33989
33990if test "$wxUSE_TIMER" = "yes"; then
33991 cat >>confdefs.h <<\_ACEOF
33992#define wxUSE_TIMER 1
33993_ACEOF
33994
33995fi
33996
33997WITH_PLUGIN_SDL=0
33998if test "$wxUSE_SOUND" = "yes"; then
33999 if test "$USE_UNIX" = "1" ; then
34000
34001for ac_header in sys/soundcard.h
34002do
34003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34004if eval "test \"\${$as_ac_Header+set}\" = set"; then
34005 echo "$as_me:$LINENO: checking for $ac_header" >&5
34006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34007if eval "test \"\${$as_ac_Header+set}\" = set"; then
34008 echo $ECHO_N "(cached) $ECHO_C" >&6
34009fi
34010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34012else
34013 # Is the header compilable?
34014echo "$as_me:$LINENO: checking $ac_header usability" >&5
34015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34016cat >conftest.$ac_ext <<_ACEOF
34017/* confdefs.h. */
34018_ACEOF
34019cat confdefs.h >>conftest.$ac_ext
34020cat >>conftest.$ac_ext <<_ACEOF
34021/* end confdefs.h. */
34022$ac_includes_default
34023#include <$ac_header>
34024_ACEOF
34025rm -f conftest.$ac_objext
34026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34027 (eval $ac_compile) 2>conftest.er1
a848cd7e 34028 ac_status=$?
ac1cb8d3
VS
34029 grep -v '^ *+' conftest.er1 >conftest.err
34030 rm -f conftest.er1
34031 cat conftest.err >&5
a848cd7e
SC
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); } &&
9a8f0513
VS
34034 { ac_try='test -z "$ac_c_werror_flag"
34035 || test ! -s conftest.err'
ac1cb8d3
VS
34036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34037 (eval $ac_try) 2>&5
34038 ac_status=$?
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; } &&
34041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34043 (eval $ac_try) 2>&5
34044 ac_status=$?
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); }; }; then
34047 ac_header_compiler=yes
34048else
34049 echo "$as_me: failed program was:" >&5
34050sed 's/^/| /' conftest.$ac_ext >&5
34051
34052ac_header_compiler=no
34053fi
ac1cb8d3 34054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34056echo "${ECHO_T}$ac_header_compiler" >&6
34057
34058# Is the header present?
34059echo "$as_me:$LINENO: checking $ac_header presence" >&5
34060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34061cat >conftest.$ac_ext <<_ACEOF
34062/* confdefs.h. */
34063_ACEOF
34064cat confdefs.h >>conftest.$ac_ext
34065cat >>conftest.$ac_ext <<_ACEOF
34066/* end confdefs.h. */
34067#include <$ac_header>
34068_ACEOF
34069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34071 ac_status=$?
34072 grep -v '^ *+' conftest.er1 >conftest.err
34073 rm -f conftest.er1
34074 cat conftest.err >&5
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); } >/dev/null; then
34077 if test -s conftest.err; then
34078 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34080 else
34081 ac_cpp_err=
34082 fi
34083else
34084 ac_cpp_err=yes
34085fi
34086if test -z "$ac_cpp_err"; then
34087 ac_header_preproc=yes
34088else
34089 echo "$as_me: failed program was:" >&5
34090sed 's/^/| /' conftest.$ac_ext >&5
34091
34092 ac_header_preproc=no
34093fi
34094rm -f conftest.err conftest.$ac_ext
34095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34096echo "${ECHO_T}$ac_header_preproc" >&6
34097
34098# So? What about this header?
ac1cb8d3
VS
34099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34100 yes:no: )
a848cd7e
SC
34101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34105 ac_header_preproc=yes
a848cd7e 34106 ;;
ac1cb8d3 34107 no:yes:* )
a848cd7e
SC
34108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34120 (
34121 cat <<\_ASBOX
ac1cb8d3
VS
34122## ----------------------------------------- ##
34123## Report this to wx-dev@lists.wxwidgets.org ##
34124## ----------------------------------------- ##
a848cd7e
SC
34125_ASBOX
34126 ) |
34127 sed "s/^/$as_me: WARNING: /" >&2
34128 ;;
34129esac
34130echo "$as_me:$LINENO: checking for $ac_header" >&5
34131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34132if eval "test \"\${$as_ac_Header+set}\" = set"; then
34133 echo $ECHO_N "(cached) $ECHO_C" >&6
34134else
ac1cb8d3 34135 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34136fi
34137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34139
34140fi
34141if test `eval echo '${'$as_ac_Header'}'` = yes; then
34142 cat >>confdefs.h <<_ACEOF
34143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34144_ACEOF
34145
34146fi
34147
34148done
34149
34150
34151 if test "$wxUSE_LIBSDL" != "no"; then
34152
34153# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34154if test "${with_sdl_prefix+set}" = set; then
34155 withval="$with_sdl_prefix"
34156 sdl_prefix="$withval"
34157else
34158 sdl_prefix=""
34159fi;
34160
34161# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34162if test "${with_sdl_exec_prefix+set}" = set; then
34163 withval="$with_sdl_exec_prefix"
34164 sdl_exec_prefix="$withval"
34165else
34166 sdl_exec_prefix=""
34167fi;
34168# Check whether --enable-sdltest or --disable-sdltest was given.
34169if test "${enable_sdltest+set}" = set; then
34170 enableval="$enable_sdltest"
34171
34172else
34173 enable_sdltest=yes
34174fi;
34175
34176 if test x$sdl_exec_prefix != x ; then
34177 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34178 if test x${SDL_CONFIG+set} != xset ; then
34179 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34180 fi
34181 fi
34182 if test x$sdl_prefix != x ; then
34183 sdl_args="$sdl_args --prefix=$sdl_prefix"
34184 if test x${SDL_CONFIG+set} != xset ; then
34185 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34186 fi
34187 fi
34188
34189
34190 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34191 # Extract the first word of "sdl-config", so it can be a program name with args.
34192set dummy sdl-config; ac_word=$2
34193echo "$as_me:$LINENO: checking for $ac_word" >&5
34194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34195if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34196 echo $ECHO_N "(cached) $ECHO_C" >&6
34197else
34198 case $SDL_CONFIG in
34199 [\\/]* | ?:[\\/]*)
34200 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34201 ;;
34202 *)
34203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34204for as_dir in $PATH
34205do
34206 IFS=$as_save_IFS
34207 test -z "$as_dir" && as_dir=.
34208 for ac_exec_ext in '' $ac_executable_extensions; do
34209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34210 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34212 break 2
34213 fi
34214done
34215done
34216
34217 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34218 ;;
34219esac
34220fi
34221SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34222
34223if test -n "$SDL_CONFIG"; then
34224 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34225echo "${ECHO_T}$SDL_CONFIG" >&6
34226else
34227 echo "$as_me:$LINENO: result: no" >&5
34228echo "${ECHO_T}no" >&6
34229fi
34230
34231 min_sdl_version=1.2.0
34232 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34233echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34234 no_sdl=""
34235 if test "$SDL_CONFIG" = "no" ; then
34236 no_sdl=yes
34237 else
34238 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34239 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34240
34241 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34243 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34245 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34247 if test "x$enable_sdltest" = "xyes" ; then
34248 ac_save_CFLAGS="$CFLAGS"
34249 ac_save_LIBS="$LIBS"
34250 CFLAGS="$CFLAGS $SDL_CFLAGS"
34251 LIBS="$LIBS $SDL_LIBS"
34252 rm -f conf.sdltest
34253 if test "$cross_compiling" = yes; then
34254 echo $ac_n "cross compiling; assumed OK... $ac_c"
34255else
34256 cat >conftest.$ac_ext <<_ACEOF
34257/* confdefs.h. */
34258_ACEOF
34259cat confdefs.h >>conftest.$ac_ext
34260cat >>conftest.$ac_ext <<_ACEOF
34261/* end confdefs.h. */
34262
34263#include <stdio.h>
34264#include <stdlib.h>
34265#include <string.h>
34266#include "SDL.h"
34267
34268char*
34269my_strdup (char *str)
34270{
34271 char *new_str;
34272
34273 if (str)
34274 {
34275 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34276 strcpy (new_str, str);
34277 }
34278 else
34279 new_str = NULL;
34280
34281 return new_str;
34282}
34283
34284int main (int argc, char *argv[])
34285{
34286 int major, minor, micro;
34287 char *tmp_version;
34288
34289 /* This hangs on some systems (?)
34290 system ("touch conf.sdltest");
34291 */
34292 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34293
34294 /* HP/UX 9 (%@#!) writes to sscanf strings */
34295 tmp_version = my_strdup("$min_sdl_version");
34296 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34297 printf("%s, bad version string\n", "$min_sdl_version");
34298 exit(1);
34299 }
34300
34301 if (($sdl_major_version > major) ||
34302 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34303 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34304 {
34305 return 0;
34306 }
34307 else
34308 {
34309 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34310 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34311 printf("*** best to upgrade to the required version.\n");
34312 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34313 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34314 printf("*** config.cache before re-running configure\n");
34315 return 1;
34316 }
34317}
34318
34319
34320_ACEOF
34321rm -f conftest$ac_exeext
34322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34323 (eval $ac_link) 2>&5
34324 ac_status=$?
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34329 ac_status=$?
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; }; then
34332 :
34333else
34334 echo "$as_me: program exited with status $ac_status" >&5
34335echo "$as_me: failed program was:" >&5
34336sed 's/^/| /' conftest.$ac_ext >&5
34337
34338( exit $ac_status )
34339no_sdl=yes
34340fi
ac1cb8d3 34341rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34342fi
34343 CFLAGS="$ac_save_CFLAGS"
34344 LIBS="$ac_save_LIBS"
34345 fi
34346 fi
34347 if test "x$no_sdl" = x ; then
34348 echo "$as_me:$LINENO: result: yes" >&5
34349echo "${ECHO_T}yes" >&6
34350
34351 EXTRALIBS_SDL="$SDL_LIBS"
34352 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34353 cat >>confdefs.h <<\_ACEOF
34354#define wxUSE_LIBSDL 1
34355_ACEOF
34356
34357
34358 else
34359 echo "$as_me:$LINENO: result: no" >&5
34360echo "${ECHO_T}no" >&6
34361 if test "$SDL_CONFIG" = "no" ; then
34362 echo "*** The sdl-config script installed by SDL could not be found"
34363 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34364 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34365 echo "*** full path to sdl-config."
34366 else
34367 if test -f conf.sdltest ; then
34368 :
34369 else
34370 echo "*** Could not run SDL test program, checking why..."
34371 CFLAGS="$CFLAGS $SDL_CFLAGS"
34372 LIBS="$LIBS $SDL_LIBS"
34373 cat >conftest.$ac_ext <<_ACEOF
34374/* confdefs.h. */
34375_ACEOF
34376cat confdefs.h >>conftest.$ac_ext
34377cat >>conftest.$ac_ext <<_ACEOF
34378/* end confdefs.h. */
34379
34380#include <stdio.h>
34381#include "SDL.h"
34382
34383int main(int argc, char *argv[])
34384{ return 0; }
34385#undef main
34386#define main K_and_R_C_main
34387
34388int
34389main ()
34390{
34391 return 0;
34392 ;
34393 return 0;
34394}
34395_ACEOF
34396rm -f conftest.$ac_objext conftest$ac_exeext
34397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34398 (eval $ac_link) 2>conftest.er1
a848cd7e 34399 ac_status=$?
ac1cb8d3
VS
34400 grep -v '^ *+' conftest.er1 >conftest.err
34401 rm -f conftest.er1
34402 cat conftest.err >&5
a848cd7e
SC
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); } &&
9a8f0513
VS
34405 { ac_try='test -z "$ac_c_werror_flag"
34406 || test ! -s conftest.err'
ac1cb8d3
VS
34407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34408 (eval $ac_try) 2>&5
34409 ac_status=$?
34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411 (exit $ac_status); }; } &&
34412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414 (eval $ac_try) 2>&5
34415 ac_status=$?
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); }; }; then
34418 echo "*** The test program compiled, but did not run. This usually means"
34419 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34420 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34421 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34422 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34423 echo "*** is required on your system"
34424 echo "***"
34425 echo "*** If you have an old version installed, it is best to remove it, although"
34426 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34427else
34428 echo "$as_me: failed program was:" >&5
34429sed 's/^/| /' conftest.$ac_ext >&5
34430
34431 echo "*** The test program failed to compile or link. See the file config.log for the"
34432 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34433 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34434 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34435fi
ac1cb8d3
VS
34436rm -f conftest.err conftest.$ac_objext \
34437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34438 CFLAGS="$ac_save_CFLAGS"
34439 LIBS="$ac_save_LIBS"
34440 fi
34441 fi
34442 SDL_CFLAGS=""
34443 SDL_LIBS=""
34444 wxUSE_LIBSDL="no"
34445 fi
34446
34447
34448 rm -f conf.sdltest
34449
34450 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34451 WITH_PLUGIN_SDL=1
34452 fi
34453 fi
34454 fi
34455
34456 cat >>confdefs.h <<\_ACEOF
34457#define wxUSE_SOUND 1
34458_ACEOF
34459
34460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34461fi
34462
34463if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34464 cat >>confdefs.h <<\_ACEOF
34465#define wxUSE_CMDLINE_PARSER 1
34466_ACEOF
34467
34468fi
34469
34470if test "$wxUSE_STOPWATCH" = "yes"; then
34471 cat >>confdefs.h <<\_ACEOF
34472#define wxUSE_STOPWATCH 1
34473_ACEOF
34474
34475fi
34476
34477if test "$wxUSE_DATETIME" = "yes"; then
34478 cat >>confdefs.h <<\_ACEOF
34479#define wxUSE_DATETIME 1
34480_ACEOF
34481
34482fi
34483
34484if test "$wxUSE_FILE" = "yes"; then
34485 cat >>confdefs.h <<\_ACEOF
34486#define wxUSE_FILE 1
34487_ACEOF
34488
34489fi
34490
34491if test "$wxUSE_FFILE" = "yes"; then
34492 cat >>confdefs.h <<\_ACEOF
34493#define wxUSE_FFILE 1
34494_ACEOF
34495
34496fi
34497
34498if test "$wxUSE_FILESYSTEM" = "yes"; then
34499 cat >>confdefs.h <<\_ACEOF
34500#define wxUSE_FILESYSTEM 1
34501_ACEOF
34502
34503fi
34504
34505if test "$wxUSE_FS_ZIP" = "yes"; then
34506 cat >>confdefs.h <<\_ACEOF
34507#define wxUSE_FS_ZIP 1
34508_ACEOF
34509
34510fi
34511
34512if test "$wxUSE_ZIPSTREAM" = "yes"; then
34513 cat >>confdefs.h <<\_ACEOF
34514#define wxUSE_ZIPSTREAM 1
34515_ACEOF
34516
34517fi
34518
a848cd7e
SC
34519if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34520 cat >>confdefs.h <<\_ACEOF
34521#define wxUSE_ON_FATAL_EXCEPTION 1
34522_ACEOF
34523
34524fi
34525
34526if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34527 cat >>confdefs.h <<\_ACEOF
34528#define wxUSE_SNGLINST_CHECKER 1
34529_ACEOF
34530
34531fi
34532
34533if test "$wxUSE_BUSYINFO" = "yes"; then
34534 cat >>confdefs.h <<\_ACEOF
34535#define wxUSE_BUSYINFO 1
34536_ACEOF
34537
34538fi
34539
34540if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34541 cat >>confdefs.h <<\_ACEOF
34542#define wxUSE_STD_IOSTREAM 1
34543_ACEOF
34544
34545fi
34546
34547if test "$wxUSE_TEXTBUFFER" = "yes"; then
34548 cat >>confdefs.h <<\_ACEOF
34549#define wxUSE_TEXTBUFFER 1
34550_ACEOF
34551
34552fi
34553
34554if test "$wxUSE_TEXTFILE" = "yes"; then
34555 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34556 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34557echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34558 else
34559 cat >>confdefs.h <<\_ACEOF
34560#define wxUSE_TEXTFILE 1
34561_ACEOF
34562
34563 fi
34564fi
34565
34566if test "$wxUSE_CONFIG" = "yes" ; then
34567 if test "$wxUSE_TEXTFILE" != "yes"; then
34568 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34569echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34570 else
34571 cat >>confdefs.h <<\_ACEOF
34572#define wxUSE_CONFIG 1
34573_ACEOF
34574
34575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34576 fi
34577fi
34578
34579if test "$wxUSE_INTL" = "yes" ; then
34580 if test "$wxUSE_FILE" != "yes"; then
34581 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34582echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34583 else
34584 cat >>confdefs.h <<\_ACEOF
34585#define wxUSE_INTL 1
34586_ACEOF
34587
34588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34589 GUIDIST="$GUIDIST INTL_DIST"
34590 fi
34591fi
34592
34593if test "$wxUSE_LOG" = "yes"; then
34594 cat >>confdefs.h <<\_ACEOF
34595#define wxUSE_LOG 1
34596_ACEOF
34597
34598
34599 if test "$wxUSE_LOGGUI" = "yes"; then
34600 cat >>confdefs.h <<\_ACEOF
34601#define wxUSE_LOGGUI 1
34602_ACEOF
34603
34604 fi
34605
34606 if test "$wxUSE_LOGWINDOW" = "yes"; then
34607 cat >>confdefs.h <<\_ACEOF
34608#define wxUSE_LOGWINDOW 1
34609_ACEOF
34610
34611 fi
34612
34613 if test "$wxUSE_LOGDIALOG" = "yes"; then
34614 cat >>confdefs.h <<\_ACEOF
34615#define wxUSE_LOG_DIALOG 1
34616_ACEOF
34617
34618 fi
34619fi
34620
34621if test "$wxUSE_LONGLONG" = "yes"; then
34622 cat >>confdefs.h <<\_ACEOF
34623#define wxUSE_LONGLONG 1
34624_ACEOF
34625
34626fi
34627
34628if test "$wxUSE_GEOMETRY" = "yes"; then
34629 cat >>confdefs.h <<\_ACEOF
34630#define wxUSE_GEOMETRY 1
34631_ACEOF
34632
34633fi
34634
34635if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34636 cat >>confdefs.h <<\_ACEOF
34637#define wxUSE_DIALUP_MANAGER 1
34638_ACEOF
34639
34640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34641fi
34642
34643if test "$wxUSE_STREAMS" = "yes" ; then
34644 cat >>confdefs.h <<\_ACEOF
34645#define wxUSE_STREAMS 1
34646_ACEOF
34647
34648fi
34649
34650
34651if test "$wxUSE_DATETIME" = "yes"; then
34652
34653for ac_func in strptime
34654do
34655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34656echo "$as_me:$LINENO: checking for $ac_func" >&5
34657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34658if eval "test \"\${$as_ac_var+set}\" = set"; then
34659 echo $ECHO_N "(cached) $ECHO_C" >&6
34660else
34661 cat >conftest.$ac_ext <<_ACEOF
34662/* confdefs.h. */
34663_ACEOF
34664cat confdefs.h >>conftest.$ac_ext
34665cat >>conftest.$ac_ext <<_ACEOF
34666/* end confdefs.h. */
ac1cb8d3
VS
34667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34669#define $ac_func innocuous_$ac_func
34670
a848cd7e
SC
34671/* System header to define __stub macros and hopefully few prototypes,
34672 which can conflict with char $ac_func (); below.
34673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34675
a848cd7e
SC
34676#ifdef __STDC__
34677# include <limits.h>
34678#else
34679# include <assert.h>
34680#endif
ac1cb8d3
VS
34681
34682#undef $ac_func
34683
a848cd7e
SC
34684/* Override any gcc2 internal prototype to avoid an error. */
34685#ifdef __cplusplus
34686extern "C"
34687{
34688#endif
34689/* We use char because int might match the return type of a gcc2
34690 builtin and then its argument prototype would still apply. */
34691char $ac_func ();
34692/* The GNU C library defines this for functions which it implements
34693 to always fail with ENOSYS. Some functions are actually named
34694 something starting with __ and the normal name is an alias. */
34695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34696choke me
34697#else
34698char (*f) () = $ac_func;
34699#endif
34700#ifdef __cplusplus
34701}
34702#endif
34703
34704int
34705main ()
34706{
34707return f != $ac_func;
34708 ;
34709 return 0;
34710}
34711_ACEOF
34712rm -f conftest.$ac_objext conftest$ac_exeext
34713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34714 (eval $ac_link) 2>conftest.er1
a848cd7e 34715 ac_status=$?
ac1cb8d3
VS
34716 grep -v '^ *+' conftest.er1 >conftest.err
34717 rm -f conftest.er1
34718 cat conftest.err >&5
a848cd7e
SC
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); } &&
9a8f0513
VS
34721 { ac_try='test -z "$ac_c_werror_flag"
34722 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34731 ac_status=$?
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; }; then
34734 eval "$as_ac_var=yes"
34735else
34736 echo "$as_me: failed program was:" >&5
34737sed 's/^/| /' conftest.$ac_ext >&5
34738
34739eval "$as_ac_var=no"
34740fi
ac1cb8d3
VS
34741rm -f conftest.err conftest.$ac_objext \
34742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34743fi
34744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34746if test `eval echo '${'$as_ac_var'}'` = yes; then
34747 cat >>confdefs.h <<_ACEOF
34748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34749_ACEOF
34750
34751fi
34752done
34753
34754
34755 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34756echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34757if test "${wx_cv_var_timezone+set}" = set; then
34758 echo $ECHO_N "(cached) $ECHO_C" >&6
34759else
34760
34761 cat >conftest.$ac_ext <<_ACEOF
34762/* confdefs.h. */
34763_ACEOF
34764cat confdefs.h >>conftest.$ac_ext
34765cat >>conftest.$ac_ext <<_ACEOF
34766/* end confdefs.h. */
34767
34768 #include <time.h>
34769
34770int
34771main ()
34772{
34773
34774 int tz;
34775 tz = timezone;
34776
34777 ;
34778 return 0;
34779}
34780_ACEOF
34781rm -f conftest.$ac_objext
34782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34783 (eval $ac_compile) 2>conftest.er1
a848cd7e 34784 ac_status=$?
ac1cb8d3
VS
34785 grep -v '^ *+' conftest.er1 >conftest.err
34786 rm -f conftest.er1
34787 cat conftest.err >&5
a848cd7e
SC
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); } &&
9a8f0513
VS
34790 { ac_try='test -z "$ac_c_werror_flag"
34791 || test ! -s conftest.err'
ac1cb8d3
VS
34792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34793 (eval $ac_try) 2>&5
34794 ac_status=$?
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); }; } &&
34797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34799 (eval $ac_try) 2>&5
34800 ac_status=$?
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); }; }; then
34803
34804 wx_cv_var_timezone=timezone
34805
34806else
34807 echo "$as_me: failed program was:" >&5
34808sed 's/^/| /' conftest.$ac_ext >&5
34809
34810
34811 cat >conftest.$ac_ext <<_ACEOF
34812/* confdefs.h. */
34813_ACEOF
34814cat confdefs.h >>conftest.$ac_ext
34815cat >>conftest.$ac_ext <<_ACEOF
34816/* end confdefs.h. */
34817
34818 #include <time.h>
34819
34820int
34821main ()
34822{
34823
34824 int tz;
34825 tz = _timezone;
34826
34827 ;
34828 return 0;
34829}
34830_ACEOF
34831rm -f conftest.$ac_objext
34832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34833 (eval $ac_compile) 2>conftest.er1
a848cd7e 34834 ac_status=$?
ac1cb8d3
VS
34835 grep -v '^ *+' conftest.er1 >conftest.err
34836 rm -f conftest.er1
34837 cat conftest.err >&5
a848cd7e
SC
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); } &&
9a8f0513
VS
34840 { ac_try='test -z "$ac_c_werror_flag"
34841 || test ! -s conftest.err'
ac1cb8d3
VS
34842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34843 (eval $ac_try) 2>&5
34844 ac_status=$?
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); }; } &&
34847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34849 (eval $ac_try) 2>&5
34850 ac_status=$?
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); }; }; then
34853
34854 wx_cv_var_timezone=_timezone
34855
34856else
34857 echo "$as_me: failed program was:" >&5
34858sed 's/^/| /' conftest.$ac_ext >&5
34859
34860
34861 cat >conftest.$ac_ext <<_ACEOF
34862/* confdefs.h. */
34863_ACEOF
34864cat confdefs.h >>conftest.$ac_ext
34865cat >>conftest.$ac_ext <<_ACEOF
34866/* end confdefs.h. */
34867
34868 #include <time.h>
34869
34870int
34871main ()
34872{
34873
34874 int tz;
34875 tz = __timezone;
34876
34877 ;
34878 return 0;
34879}
34880_ACEOF
34881rm -f conftest.$ac_objext
34882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34883 (eval $ac_compile) 2>conftest.er1
a848cd7e 34884 ac_status=$?
ac1cb8d3
VS
34885 grep -v '^ *+' conftest.er1 >conftest.err
34886 rm -f conftest.er1
34887 cat conftest.err >&5
a848cd7e
SC
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
9a8f0513
VS
34890 { ac_try='test -z "$ac_c_werror_flag"
34891 || test ! -s conftest.err'
ac1cb8d3
VS
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34894 ac_status=$?
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; } &&
34897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899 (eval $ac_try) 2>&5
34900 ac_status=$?
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
34903
34904 wx_cv_var_timezone=__timezone
34905
34906else
34907 echo "$as_me: failed program was:" >&5
34908sed 's/^/| /' conftest.$ac_ext >&5
34909
34910
34911 if test "$USE_DOS" = 0 ; then
34912 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34913echo "$as_me: WARNING: no timezone variable" >&2;}
34914 fi
34915
34916
34917fi
ac1cb8d3 34918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34919
34920
34921fi
ac1cb8d3 34922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34923
34924
34925fi
ac1cb8d3 34926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34927
34928
34929fi
34930echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34931echo "${ECHO_T}$wx_cv_var_timezone" >&6
34932
34933 if test "x$wx_cv_var_timezone" != x ; then
34934 cat >>confdefs.h <<_ACEOF
34935#define WX_TIMEZONE $wx_cv_var_timezone
34936_ACEOF
34937
34938 fi
34939
34940
34941for ac_func in localtime
34942do
34943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34944echo "$as_me:$LINENO: checking for $ac_func" >&5
34945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34946if eval "test \"\${$as_ac_var+set}\" = set"; then
34947 echo $ECHO_N "(cached) $ECHO_C" >&6
34948else
34949 cat >conftest.$ac_ext <<_ACEOF
34950/* confdefs.h. */
34951_ACEOF
34952cat confdefs.h >>conftest.$ac_ext
34953cat >>conftest.$ac_ext <<_ACEOF
34954/* end confdefs.h. */
ac1cb8d3
VS
34955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34957#define $ac_func innocuous_$ac_func
34958
a848cd7e
SC
34959/* System header to define __stub macros and hopefully few prototypes,
34960 which can conflict with char $ac_func (); below.
34961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34962 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34963
a848cd7e
SC
34964#ifdef __STDC__
34965# include <limits.h>
34966#else
34967# include <assert.h>
34968#endif
ac1cb8d3
VS
34969
34970#undef $ac_func
34971
a848cd7e
SC
34972/* Override any gcc2 internal prototype to avoid an error. */
34973#ifdef __cplusplus
34974extern "C"
34975{
34976#endif
34977/* We use char because int might match the return type of a gcc2
34978 builtin and then its argument prototype would still apply. */
34979char $ac_func ();
34980/* The GNU C library defines this for functions which it implements
34981 to always fail with ENOSYS. Some functions are actually named
34982 something starting with __ and the normal name is an alias. */
34983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34984choke me
34985#else
34986char (*f) () = $ac_func;
34987#endif
34988#ifdef __cplusplus
34989}
34990#endif
34991
34992int
34993main ()
34994{
34995return f != $ac_func;
34996 ;
34997 return 0;
34998}
34999_ACEOF
35000rm -f conftest.$ac_objext conftest$ac_exeext
35001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35002 (eval $ac_link) 2>conftest.er1
a848cd7e 35003 ac_status=$?
ac1cb8d3
VS
35004 grep -v '^ *+' conftest.er1 >conftest.err
35005 rm -f conftest.er1
35006 cat conftest.err >&5
a848cd7e
SC
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); } &&
9a8f0513
VS
35009 { ac_try='test -z "$ac_c_werror_flag"
35010 || test ! -s conftest.err'
ac1cb8d3
VS
35011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012 (eval $ac_try) 2>&5
35013 ac_status=$?
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); }; } &&
35016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018 (eval $ac_try) 2>&5
35019 ac_status=$?
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; }; then
35022 eval "$as_ac_var=yes"
35023else
35024 echo "$as_me: failed program was:" >&5
35025sed 's/^/| /' conftest.$ac_ext >&5
35026
35027eval "$as_ac_var=no"
35028fi
ac1cb8d3
VS
35029rm -f conftest.err conftest.$ac_objext \
35030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35031fi
35032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35034if test `eval echo '${'$as_ac_var'}'` = yes; then
35035 cat >>confdefs.h <<_ACEOF
35036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35037_ACEOF
35038
35039fi
35040done
35041
35042
35043 if test "$ac_cv_func_localtime" = "yes"; then
35044 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35045echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35046if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35047 echo $ECHO_N "(cached) $ECHO_C" >&6
35048else
35049
35050 cat >conftest.$ac_ext <<_ACEOF
35051/* confdefs.h. */
35052_ACEOF
35053cat confdefs.h >>conftest.$ac_ext
35054cat >>conftest.$ac_ext <<_ACEOF
35055/* end confdefs.h. */
35056
35057 #include <time.h>
35058
35059int
35060main ()
35061{
35062
35063 struct tm tm;
35064 tm.tm_gmtoff++;
35065
35066 ;
35067 return 0;
35068}
35069_ACEOF
35070rm -f conftest.$ac_objext
35071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35072 (eval $ac_compile) 2>conftest.er1
a848cd7e 35073 ac_status=$?
ac1cb8d3
VS
35074 grep -v '^ *+' conftest.er1 >conftest.err
35075 rm -f conftest.er1
35076 cat conftest.err >&5
a848cd7e
SC
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); } &&
9a8f0513
VS
35079 { ac_try='test -z "$ac_c_werror_flag"
35080 || test ! -s conftest.err'
ac1cb8d3
VS
35081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082 (eval $ac_try) 2>&5
35083 ac_status=$?
35084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); }; } &&
35086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35088 (eval $ac_try) 2>&5
35089 ac_status=$?
35090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35091 (exit $ac_status); }; }; then
35092
35093 wx_cv_struct_tm_has_gmtoff=yes
35094
35095else
35096 echo "$as_me: failed program was:" >&5
35097sed 's/^/| /' conftest.$ac_ext >&5
35098
35099wx_cv_struct_tm_has_gmtoff=no
35100
35101fi
ac1cb8d3 35102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35103
35104fi
35105echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35106echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35107 fi
35108
35109 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35110 cat >>confdefs.h <<\_ACEOF
35111#define WX_GMTOFF_IN_TM 1
35112_ACEOF
35113
35114 fi
35115
35116
35117
35118for ac_func in gettimeofday ftime
35119do
35120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35121echo "$as_me:$LINENO: checking for $ac_func" >&5
35122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35123if eval "test \"\${$as_ac_var+set}\" = set"; then
35124 echo $ECHO_N "(cached) $ECHO_C" >&6
35125else
35126 cat >conftest.$ac_ext <<_ACEOF
35127/* confdefs.h. */
35128_ACEOF
35129cat confdefs.h >>conftest.$ac_ext
35130cat >>conftest.$ac_ext <<_ACEOF
35131/* end confdefs.h. */
ac1cb8d3
VS
35132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35134#define $ac_func innocuous_$ac_func
35135
a848cd7e
SC
35136/* System header to define __stub macros and hopefully few prototypes,
35137 which can conflict with char $ac_func (); below.
35138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35139 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35140
a848cd7e
SC
35141#ifdef __STDC__
35142# include <limits.h>
35143#else
35144# include <assert.h>
35145#endif
ac1cb8d3
VS
35146
35147#undef $ac_func
35148
a848cd7e
SC
35149/* Override any gcc2 internal prototype to avoid an error. */
35150#ifdef __cplusplus
35151extern "C"
35152{
35153#endif
35154/* We use char because int might match the return type of a gcc2
35155 builtin and then its argument prototype would still apply. */
35156char $ac_func ();
35157/* The GNU C library defines this for functions which it implements
35158 to always fail with ENOSYS. Some functions are actually named
35159 something starting with __ and the normal name is an alias. */
35160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35161choke me
35162#else
35163char (*f) () = $ac_func;
35164#endif
35165#ifdef __cplusplus
35166}
35167#endif
35168
35169int
35170main ()
35171{
35172return f != $ac_func;
35173 ;
35174 return 0;
35175}
35176_ACEOF
35177rm -f conftest.$ac_objext conftest$ac_exeext
35178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35179 (eval $ac_link) 2>conftest.er1
a848cd7e 35180 ac_status=$?
ac1cb8d3
VS
35181 grep -v '^ *+' conftest.er1 >conftest.err
35182 rm -f conftest.er1
35183 cat conftest.err >&5
a848cd7e
SC
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); } &&
9a8f0513
VS
35186 { ac_try='test -z "$ac_c_werror_flag"
35187 || test ! -s conftest.err'
ac1cb8d3
VS
35188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35189 (eval $ac_try) 2>&5
35190 ac_status=$?
35191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); }; } &&
35193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35195 (eval $ac_try) 2>&5
35196 ac_status=$?
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); }; }; then
35199 eval "$as_ac_var=yes"
35200else
35201 echo "$as_me: failed program was:" >&5
35202sed 's/^/| /' conftest.$ac_ext >&5
35203
35204eval "$as_ac_var=no"
35205fi
ac1cb8d3
VS
35206rm -f conftest.err conftest.$ac_objext \
35207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35208fi
35209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35211if test `eval echo '${'$as_ac_var'}'` = yes; then
35212 cat >>confdefs.h <<_ACEOF
35213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35214_ACEOF
35215 break
35216fi
35217done
35218
35219
35220 if test "$ac_cv_func_gettimeofday" = "yes"; then
35221 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35222echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35223if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35224 echo $ECHO_N "(cached) $ECHO_C" >&6
35225else
35226
35227
35228
35229 ac_ext=cc
35230ac_cpp='$CXXCPP $CPPFLAGS'
35231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35234
35235
35236 cat >conftest.$ac_ext <<_ACEOF
35237/* confdefs.h. */
35238_ACEOF
35239cat confdefs.h >>conftest.$ac_ext
35240cat >>conftest.$ac_ext <<_ACEOF
35241/* end confdefs.h. */
35242
35243 #include <sys/time.h>
35244 #include <unistd.h>
35245
35246int
35247main ()
35248{
35249
35250 struct timeval tv;
35251 gettimeofday(&tv, NULL);
35252
35253 ;
35254 return 0;
35255}
35256_ACEOF
35257rm -f conftest.$ac_objext
35258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35259 (eval $ac_compile) 2>conftest.er1
a848cd7e 35260 ac_status=$?
ac1cb8d3
VS
35261 grep -v '^ *+' conftest.er1 >conftest.err
35262 rm -f conftest.er1
35263 cat conftest.err >&5
a848cd7e
SC
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); } &&
9a8f0513
VS
35266 { ac_try='test -z "$ac_cxx_werror_flag"
35267 || test ! -s conftest.err'
ac1cb8d3
VS
35268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35269 (eval $ac_try) 2>&5
35270 ac_status=$?
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); }; } &&
35273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35275 (eval $ac_try) 2>&5
35276 ac_status=$?
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); }; }; then
35279 wx_cv_func_gettimeofday_has_2_args=yes
35280else
35281 echo "$as_me: failed program was:" >&5
35282sed 's/^/| /' conftest.$ac_ext >&5
35283
35284cat >conftest.$ac_ext <<_ACEOF
35285/* confdefs.h. */
35286_ACEOF
35287cat confdefs.h >>conftest.$ac_ext
35288cat >>conftest.$ac_ext <<_ACEOF
35289/* end confdefs.h. */
35290
35291 #include <sys/time.h>
35292 #include <unistd.h>
35293
35294int
35295main ()
35296{
35297
35298 struct timeval tv;
35299 gettimeofday(&tv);
35300
35301 ;
35302 return 0;
35303}
35304_ACEOF
35305rm -f conftest.$ac_objext
35306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35307 (eval $ac_compile) 2>conftest.er1
a848cd7e 35308 ac_status=$?
ac1cb8d3
VS
35309 grep -v '^ *+' conftest.er1 >conftest.err
35310 rm -f conftest.er1
35311 cat conftest.err >&5
a848cd7e
SC
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); } &&
9a8f0513
VS
35314 { ac_try='test -z "$ac_cxx_werror_flag"
35315 || test ! -s conftest.err'
ac1cb8d3
VS
35316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317 (eval $ac_try) 2>&5
35318 ac_status=$?
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); }; } &&
35321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35323 (eval $ac_try) 2>&5
35324 ac_status=$?
35325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); }; }; then
35327 wx_cv_func_gettimeofday_has_2_args=no
35328else
35329 echo "$as_me: failed program was:" >&5
35330sed 's/^/| /' conftest.$ac_ext >&5
35331
35332
35333 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35334echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35335 wx_cv_func_gettimeofday_has_2_args=unknown
35336
35337
35338fi
ac1cb8d3 35339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35340
35341fi
ac1cb8d3 35342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35343 ac_ext=c
35344ac_cpp='$CPP $CPPFLAGS'
35345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35347ac_compiler_gnu=$ac_cv_c_compiler_gnu
35348
35349
35350fi
35351echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35352echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35353
35354 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35355 cat >>confdefs.h <<\_ACEOF
35356#define WX_GETTIMEOFDAY_NO_TZ 1
35357_ACEOF
35358
35359 fi
35360 fi
35361
35362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35363fi
35364
35365
35366if test "$wxUSE_SOCKETS" = "yes"; then
35367 if test "$wxUSE_MGL" = "1"; then
35368 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35369echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35370 wxUSE_SOCKETS="no"
35371 fi
35372fi
35373
35374if test "$wxUSE_SOCKETS" = "yes"; then
35375 if test "$TOOLKIT" != "MSW"; then
35376 echo "$as_me:$LINENO: checking for socket" >&5
35377echo $ECHO_N "checking for socket... $ECHO_C" >&6
35378if test "${ac_cv_func_socket+set}" = set; then
35379 echo $ECHO_N "(cached) $ECHO_C" >&6
35380else
35381 cat >conftest.$ac_ext <<_ACEOF
35382/* confdefs.h. */
35383_ACEOF
35384cat confdefs.h >>conftest.$ac_ext
35385cat >>conftest.$ac_ext <<_ACEOF
35386/* end confdefs.h. */
ac1cb8d3
VS
35387/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35389#define socket innocuous_socket
35390
a848cd7e
SC
35391/* System header to define __stub macros and hopefully few prototypes,
35392 which can conflict with char socket (); below.
35393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35394 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35395
a848cd7e
SC
35396#ifdef __STDC__
35397# include <limits.h>
35398#else
35399# include <assert.h>
35400#endif
ac1cb8d3
VS
35401
35402#undef socket
35403
a848cd7e
SC
35404/* Override any gcc2 internal prototype to avoid an error. */
35405#ifdef __cplusplus
35406extern "C"
35407{
35408#endif
35409/* We use char because int might match the return type of a gcc2
35410 builtin and then its argument prototype would still apply. */
35411char socket ();
35412/* The GNU C library defines this for functions which it implements
35413 to always fail with ENOSYS. Some functions are actually named
35414 something starting with __ and the normal name is an alias. */
35415#if defined (__stub_socket) || defined (__stub___socket)
35416choke me
35417#else
35418char (*f) () = socket;
35419#endif
35420#ifdef __cplusplus
35421}
35422#endif
35423
35424int
35425main ()
35426{
35427return f != socket;
35428 ;
35429 return 0;
35430}
35431_ACEOF
35432rm -f conftest.$ac_objext conftest$ac_exeext
35433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35434 (eval $ac_link) 2>conftest.er1
a848cd7e 35435 ac_status=$?
ac1cb8d3
VS
35436 grep -v '^ *+' conftest.er1 >conftest.err
35437 rm -f conftest.er1
35438 cat conftest.err >&5
a848cd7e
SC
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); } &&
9a8f0513
VS
35441 { ac_try='test -z "$ac_c_werror_flag"
35442 || test ! -s conftest.err'
ac1cb8d3
VS
35443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35444 (eval $ac_try) 2>&5
35445 ac_status=$?
35446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447 (exit $ac_status); }; } &&
35448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35450 (eval $ac_try) 2>&5
35451 ac_status=$?
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); }; }; then
35454 ac_cv_func_socket=yes
35455else
35456 echo "$as_me: failed program was:" >&5
35457sed 's/^/| /' conftest.$ac_ext >&5
35458
35459ac_cv_func_socket=no
35460fi
ac1cb8d3
VS
35461rm -f conftest.err conftest.$ac_objext \
35462 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35463fi
35464echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35465echo "${ECHO_T}$ac_cv_func_socket" >&6
35466if test $ac_cv_func_socket = yes; then
35467 :
35468else
35469
35470 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35471echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35472if test "${ac_cv_lib_socket_socket+set}" = set; then
35473 echo $ECHO_N "(cached) $ECHO_C" >&6
35474else
35475 ac_check_lib_save_LIBS=$LIBS
35476LIBS="-lsocket $LIBS"
35477cat >conftest.$ac_ext <<_ACEOF
35478/* confdefs.h. */
35479_ACEOF
35480cat confdefs.h >>conftest.$ac_ext
35481cat >>conftest.$ac_ext <<_ACEOF
35482/* end confdefs.h. */
35483
35484/* Override any gcc2 internal prototype to avoid an error. */
35485#ifdef __cplusplus
35486extern "C"
35487#endif
35488/* We use char because int might match the return type of a gcc2
35489 builtin and then its argument prototype would still apply. */
35490char socket ();
35491int
35492main ()
35493{
35494socket ();
35495 ;
35496 return 0;
35497}
35498_ACEOF
35499rm -f conftest.$ac_objext conftest$ac_exeext
35500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35501 (eval $ac_link) 2>conftest.er1
a848cd7e 35502 ac_status=$?
ac1cb8d3
VS
35503 grep -v '^ *+' conftest.er1 >conftest.err
35504 rm -f conftest.er1
35505 cat conftest.err >&5
a848cd7e
SC
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); } &&
9a8f0513
VS
35508 { ac_try='test -z "$ac_c_werror_flag"
35509 || test ! -s conftest.err'
ac1cb8d3
VS
35510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511 (eval $ac_try) 2>&5
35512 ac_status=$?
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); }; } &&
35515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35518 ac_status=$?
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; }; then
35521 ac_cv_lib_socket_socket=yes
35522else
35523 echo "$as_me: failed program was:" >&5
35524sed 's/^/| /' conftest.$ac_ext >&5
35525
35526ac_cv_lib_socket_socket=no
35527fi
ac1cb8d3
VS
35528rm -f conftest.err conftest.$ac_objext \
35529 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35530LIBS=$ac_check_lib_save_LIBS
35531fi
35532echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35533echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35534if test $ac_cv_lib_socket_socket = yes; then
35535 if test "$INET_LINK" != " -lsocket"; then
35536 INET_LINK="$INET_LINK -lsocket"
35537 fi
35538else
35539
35540 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35541echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35542 wxUSE_SOCKETS=no
35543
35544
35545fi
35546
35547
35548
35549fi
35550
35551 fi
35552fi
35553
35554if test "$wxUSE_SOCKETS" = "yes" ; then
35555 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35556 ac_ext=cc
35557ac_cpp='$CXXCPP $CPPFLAGS'
35558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35561
35562 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35563echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35564if test "${wx_cv_type_getsockname3+set}" = set; then
35565 echo $ECHO_N "(cached) $ECHO_C" >&6
35566else
35567
35568 cat >conftest.$ac_ext <<_ACEOF
35569/* confdefs.h. */
35570_ACEOF
35571cat confdefs.h >>conftest.$ac_ext
35572cat >>conftest.$ac_ext <<_ACEOF
35573/* end confdefs.h. */
35574
35575 #include <sys/types.h>
35576 #include <sys/socket.h>
35577
35578int
35579main ()
35580{
35581
35582 socklen_t len;
35583 getsockname(0, 0, &len);
35584
35585 ;
35586 return 0;
35587}
35588_ACEOF
35589rm -f conftest.$ac_objext
35590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35591 (eval $ac_compile) 2>conftest.er1
a848cd7e 35592 ac_status=$?
ac1cb8d3
VS
35593 grep -v '^ *+' conftest.er1 >conftest.err
35594 rm -f conftest.er1
35595 cat conftest.err >&5
a848cd7e
SC
35596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597 (exit $ac_status); } &&
9a8f0513
VS
35598 { ac_try='test -z "$ac_cxx_werror_flag"
35599 || test ! -s conftest.err'
ac1cb8d3
VS
35600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35601 (eval $ac_try) 2>&5
35602 ac_status=$?
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); }; } &&
35605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35607 (eval $ac_try) 2>&5
35608 ac_status=$?
35609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610 (exit $ac_status); }; }; then
35611 wx_cv_type_getsockname3=socklen_t
35612else
35613 echo "$as_me: failed program was:" >&5
35614sed 's/^/| /' conftest.$ac_ext >&5
35615
35616
35617 CFLAGS_OLD="$CFLAGS"
35618 if test "$GCC" = yes ; then
35619 CFLAGS="$CFLAGS -Werror"
35620 fi
35621
35622 cat >conftest.$ac_ext <<_ACEOF
35623/* confdefs.h. */
35624_ACEOF
35625cat confdefs.h >>conftest.$ac_ext
35626cat >>conftest.$ac_ext <<_ACEOF
35627/* end confdefs.h. */
35628
35629 #include <sys/types.h>
35630 #include <sys/socket.h>
35631
35632int
35633main ()
35634{
35635
35636 size_t len;
35637 getsockname(0, 0, &len);
35638
35639 ;
35640 return 0;
35641}
35642_ACEOF
35643rm -f conftest.$ac_objext
35644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35645 (eval $ac_compile) 2>conftest.er1
a848cd7e 35646 ac_status=$?
ac1cb8d3
VS
35647 grep -v '^ *+' conftest.er1 >conftest.err
35648 rm -f conftest.er1
35649 cat conftest.err >&5
a848cd7e
SC
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } &&
9a8f0513
VS
35652 { ac_try='test -z "$ac_cxx_werror_flag"
35653 || test ! -s conftest.err'
ac1cb8d3
VS
35654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655 (eval $ac_try) 2>&5
35656 ac_status=$?
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); }; } &&
35659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35662 ac_status=$?
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; }; then
35665 wx_cv_type_getsockname3=size_t
35666else
35667 echo "$as_me: failed program was:" >&5
35668sed 's/^/| /' conftest.$ac_ext >&5
35669
35670cat >conftest.$ac_ext <<_ACEOF
35671/* confdefs.h. */
35672_ACEOF
35673cat confdefs.h >>conftest.$ac_ext
35674cat >>conftest.$ac_ext <<_ACEOF
35675/* end confdefs.h. */
35676
35677 #include <sys/types.h>
35678 #include <sys/socket.h>
35679
35680int
35681main ()
35682{
35683
35684 int len;
35685 getsockname(0, 0, &len);
35686
35687 ;
35688 return 0;
35689}
35690_ACEOF
35691rm -f conftest.$ac_objext
35692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35693 (eval $ac_compile) 2>conftest.er1
a848cd7e 35694 ac_status=$?
ac1cb8d3
VS
35695 grep -v '^ *+' conftest.er1 >conftest.err
35696 rm -f conftest.er1
35697 cat conftest.err >&5
a848cd7e
SC
35698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699 (exit $ac_status); } &&
9a8f0513
VS
35700 { ac_try='test -z "$ac_cxx_werror_flag"
35701 || test ! -s conftest.err'
ac1cb8d3
VS
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; } &&
35707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; }; then
35713 wx_cv_type_getsockname3=int
35714else
35715 echo "$as_me: failed program was:" >&5
35716sed 's/^/| /' conftest.$ac_ext >&5
35717
35718wx_cv_type_getsockname3=unknown
35719
35720fi
ac1cb8d3 35721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35722
35723fi
ac1cb8d3 35724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35725
35726 CFLAGS="$CFLAGS_OLD"
35727
35728
35729fi
ac1cb8d3 35730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35731
35732fi
35733echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35734echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35735
35736 if test "$wx_cv_type_getsockname3" = "unknown"; then
35737 wxUSE_SOCKETS=no
35738 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35739echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35740 else
35741 cat >>confdefs.h <<_ACEOF
35742#define SOCKLEN_T $wx_cv_type_getsockname3
35743_ACEOF
35744
35745 fi
4d4ff94c
VZ
35746 ac_ext=c
35747ac_cpp='$CPP $CPPFLAGS'
35748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35750ac_compiler_gnu=$ac_cv_c_compiler_gnu
35751
a848cd7e
SC
35752 fi
35753fi
35754
35755if test "$wxUSE_SOCKETS" = "yes" ; then
35756 cat >>confdefs.h <<\_ACEOF
35757#define wxUSE_SOCKETS 1
35758_ACEOF
35759
35760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35761fi
35762
35763if test "$wxUSE_PROTOCOL" = "yes"; then
35764 if test "$wxUSE_SOCKETS" != "yes"; then
35765 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35766echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35767 wxUSE_PROTOCOL=no
35768 fi
35769fi
35770
35771if test "$wxUSE_PROTOCOL" = "yes"; then
35772 cat >>confdefs.h <<\_ACEOF
35773#define wxUSE_PROTOCOL 1
35774_ACEOF
35775
35776
35777 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35778 cat >>confdefs.h <<\_ACEOF
35779#define wxUSE_PROTOCOL_HTTP 1
35780_ACEOF
35781
35782 fi
35783 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35784 cat >>confdefs.h <<\_ACEOF
35785#define wxUSE_PROTOCOL_FTP 1
35786_ACEOF
35787
35788 fi
35789 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35790 cat >>confdefs.h <<\_ACEOF
35791#define wxUSE_PROTOCOL_FILE 1
35792_ACEOF
35793
35794 fi
35795else
35796 if test "$wxUSE_FS_INET" = "yes"; then
35797 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35798echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35799 wxUSE_FS_INET="no"
35800 fi
35801fi
35802
35803if test "$wxUSE_URL" = "yes"; then
35804 if test "$wxUSE_PROTOCOL" != "yes"; then
35805 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35806echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35807 wxUSE_URL=no
35808 fi
35809 if test "$wxUSE_URL" = "yes"; then
35810 cat >>confdefs.h <<\_ACEOF
35811#define wxUSE_URL 1
35812_ACEOF
35813
35814 fi
35815fi
35816
35817if test "$wxUSE_FS_INET" = "yes"; then
35818 cat >>confdefs.h <<\_ACEOF
35819#define wxUSE_FS_INET 1
35820_ACEOF
35821
35822fi
35823
35824
35825if test "$wxUSE_GUI" = "yes"; then
35826
35827 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35828 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35829echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35830 wxUSE_JOYSTICK=no
35831 fi
35832
35833 if test "$TOOLKIT" != "MSW"; then
35834 if test "$wxUSE_JOYSTICK" = "yes"; then
35835
35836for ac_header in linux/joystick.h
35837do
35838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35839if eval "test \"\${$as_ac_Header+set}\" = set"; then
35840 echo "$as_me:$LINENO: checking for $ac_header" >&5
35841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35842if eval "test \"\${$as_ac_Header+set}\" = set"; then
35843 echo $ECHO_N "(cached) $ECHO_C" >&6
35844fi
35845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35847else
35848 # Is the header compilable?
35849echo "$as_me:$LINENO: checking $ac_header usability" >&5
35850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35851cat >conftest.$ac_ext <<_ACEOF
35852/* confdefs.h. */
35853_ACEOF
35854cat confdefs.h >>conftest.$ac_ext
35855cat >>conftest.$ac_ext <<_ACEOF
35856/* end confdefs.h. */
35857$ac_includes_default
35858#include <$ac_header>
35859_ACEOF
35860rm -f conftest.$ac_objext
35861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35862 (eval $ac_compile) 2>conftest.er1
a848cd7e 35863 ac_status=$?
ac1cb8d3
VS
35864 grep -v '^ *+' conftest.er1 >conftest.err
35865 rm -f conftest.er1
35866 cat conftest.err >&5
a848cd7e
SC
35867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868 (exit $ac_status); } &&
9a8f0513
VS
35869 { ac_try='test -z "$ac_c_werror_flag"
35870 || test ! -s conftest.err'
ac1cb8d3
VS
35871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35872 (eval $ac_try) 2>&5
35873 ac_status=$?
35874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 (exit $ac_status); }; } &&
35876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35878 (eval $ac_try) 2>&5
35879 ac_status=$?
35880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881 (exit $ac_status); }; }; then
35882 ac_header_compiler=yes
35883else
35884 echo "$as_me: failed program was:" >&5
35885sed 's/^/| /' conftest.$ac_ext >&5
35886
35887ac_header_compiler=no
35888fi
ac1cb8d3 35889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35891echo "${ECHO_T}$ac_header_compiler" >&6
35892
35893# Is the header present?
35894echo "$as_me:$LINENO: checking $ac_header presence" >&5
35895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35896cat >conftest.$ac_ext <<_ACEOF
35897/* confdefs.h. */
35898_ACEOF
35899cat confdefs.h >>conftest.$ac_ext
35900cat >>conftest.$ac_ext <<_ACEOF
35901/* end confdefs.h. */
35902#include <$ac_header>
35903_ACEOF
35904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35906 ac_status=$?
35907 grep -v '^ *+' conftest.er1 >conftest.err
35908 rm -f conftest.er1
35909 cat conftest.err >&5
35910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911 (exit $ac_status); } >/dev/null; then
35912 if test -s conftest.err; then
35913 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35915 else
35916 ac_cpp_err=
35917 fi
35918else
35919 ac_cpp_err=yes
35920fi
35921if test -z "$ac_cpp_err"; then
35922 ac_header_preproc=yes
35923else
35924 echo "$as_me: failed program was:" >&5
35925sed 's/^/| /' conftest.$ac_ext >&5
35926
35927 ac_header_preproc=no
35928fi
35929rm -f conftest.err conftest.$ac_ext
35930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35931echo "${ECHO_T}$ac_header_preproc" >&6
35932
35933# So? What about this header?
ac1cb8d3
VS
35934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35935 yes:no: )
a848cd7e
SC
35936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35940 ac_header_preproc=yes
a848cd7e 35941 ;;
ac1cb8d3 35942 no:yes:* )
a848cd7e
SC
35943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35955 (
35956 cat <<\_ASBOX
ac1cb8d3
VS
35957## ----------------------------------------- ##
35958## Report this to wx-dev@lists.wxwidgets.org ##
35959## ----------------------------------------- ##
a848cd7e
SC
35960_ASBOX
35961 ) |
35962 sed "s/^/$as_me: WARNING: /" >&2
35963 ;;
35964esac
35965echo "$as_me:$LINENO: checking for $ac_header" >&5
35966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35967if eval "test \"\${$as_ac_Header+set}\" = set"; then
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
35969else
ac1cb8d3 35970 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35971fi
35972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35974
35975fi
35976if test `eval echo '${'$as_ac_Header'}'` = yes; then
35977 cat >>confdefs.h <<_ACEOF
35978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35979_ACEOF
35980
35981fi
35982
35983done
35984
35985 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35986 wxUSE_JOYSTICK=no
35987 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35988echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35989 fi
35990 fi
35991 fi
35992
35993 if test "$wxUSE_JOYSTICK" = "yes"; then
35994 cat >>confdefs.h <<\_ACEOF
35995#define wxUSE_JOYSTICK 1
35996_ACEOF
35997
35998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35999 fi
36000fi
36001
36002
36003
36004if test "$wxUSE_FONTMAP" = "yes" ; then
36005 cat >>confdefs.h <<\_ACEOF
36006#define wxUSE_FONTMAP 1
36007_ACEOF
36008
36009fi
36010
36011if test "$wxUSE_UNICODE" = "yes" ; then
36012 cat >>confdefs.h <<\_ACEOF
36013#define wxUSE_UNICODE 1
36014_ACEOF
36015
36016
36017 if test "$USE_WIN32" != 1; then
36018 wxUSE_UNICODE_MSLU=no
36019 fi
36020
36021 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36022 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36023echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36024if test "${ac_cv_lib_unicows_main+set}" = set; then
36025 echo $ECHO_N "(cached) $ECHO_C" >&6
36026else
36027 ac_check_lib_save_LIBS=$LIBS
36028LIBS="-lunicows $LIBS"
36029cat >conftest.$ac_ext <<_ACEOF
36030/* confdefs.h. */
36031_ACEOF
36032cat confdefs.h >>conftest.$ac_ext
36033cat >>conftest.$ac_ext <<_ACEOF
36034/* end confdefs.h. */
36035
36036
36037int
36038main ()
36039{
36040main ();
36041 ;
36042 return 0;
36043}
36044_ACEOF
36045rm -f conftest.$ac_objext conftest$ac_exeext
36046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36047 (eval $ac_link) 2>conftest.er1
a848cd7e 36048 ac_status=$?
ac1cb8d3
VS
36049 grep -v '^ *+' conftest.er1 >conftest.err
36050 rm -f conftest.er1
36051 cat conftest.err >&5
a848cd7e
SC
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } &&
9a8f0513
VS
36054 { ac_try='test -z "$ac_c_werror_flag"
36055 || test ! -s conftest.err'
ac1cb8d3
VS
36056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36057 (eval $ac_try) 2>&5
36058 ac_status=$?
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); }; } &&
36061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 (eval $ac_try) 2>&5
36064 ac_status=$?
36065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 (exit $ac_status); }; }; then
36067 ac_cv_lib_unicows_main=yes
36068else
36069 echo "$as_me: failed program was:" >&5
36070sed 's/^/| /' conftest.$ac_ext >&5
36071
36072ac_cv_lib_unicows_main=no
36073fi
ac1cb8d3
VS
36074rm -f conftest.err conftest.$ac_objext \
36075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36076LIBS=$ac_check_lib_save_LIBS
36077fi
36078echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36079echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36080if test $ac_cv_lib_unicows_main = yes; then
36081
36082 cat >>confdefs.h <<\_ACEOF
36083#define wxUSE_UNICODE_MSLU 1
36084_ACEOF
36085
36086
36087else
36088
36089 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36090 Applications will only run on Windows NT/2000/XP!" >&5
36091echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36092 Applications will only run on Windows NT/2000/XP!" >&2;}
36093 wxUSE_UNICODE_MSLU=no
36094
36095fi
36096
36097 fi
36098fi
36099
36100if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36101 cat >>confdefs.h <<\_ACEOF
36102#define wxUSE_EXPERIMENTAL_PRINTF 1
36103_ACEOF
36104
36105fi
36106
36107
36108if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36109 cat >>confdefs.h <<\_ACEOF
36110#define wxUSE_POSTSCRIPT 1
36111_ACEOF
36112
36113fi
36114
36115cat >>confdefs.h <<\_ACEOF
36116#define wxUSE_AFM_FOR_POSTSCRIPT 1
36117_ACEOF
36118
36119
36120cat >>confdefs.h <<\_ACEOF
36121#define wxUSE_NORMALIZED_PS_FONTS 1
36122_ACEOF
36123
36124
36125
36126if test "$wxUSE_CONSTRAINTS" = "yes"; then
36127 cat >>confdefs.h <<\_ACEOF
36128#define wxUSE_CONSTRAINTS 1
36129_ACEOF
36130
36131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36132fi
36133
8a7b1113
VZ
36134if test "$wxUSE_MDI" = "yes"; then
36135 cat >>confdefs.h <<\_ACEOF
36136#define wxUSE_MDI 1
36137_ACEOF
36138
36139
36140 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36141 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36142#define wxUSE_MDI_ARCHITECTURE 1
36143_ACEOF
36144
8a7b1113
VZ
36145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36146 fi
a848cd7e
SC
36147fi
36148
36149if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36150 cat >>confdefs.h <<\_ACEOF
36151#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36152_ACEOF
36153
36154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36155 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36157 fi
36158fi
36159
36160if test "$wxUSE_HELP" = "yes"; then
36161 cat >>confdefs.h <<\_ACEOF
36162#define wxUSE_HELP 1
36163_ACEOF
36164
36165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36166
36167 if test "$wxUSE_MSW" = 1; then
36168 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36169 cat >>confdefs.h <<\_ACEOF
36170#define wxUSE_MS_HTML_HELP 1
36171_ACEOF
36172
36173 fi
36174 fi
36175
36176 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36177 if test "$wxUSE_HTML" = "yes"; then
36178 cat >>confdefs.h <<\_ACEOF
36179#define wxUSE_WXHTML_HELP 1
36180_ACEOF
36181
36182 else
36183 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36184echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36185 wxUSE_WXHTML_HELP=no
36186 fi
36187 fi
36188fi
36189
36190if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36191 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36192 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36193echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36194 else
36195 cat >>confdefs.h <<\_ACEOF
36196#define wxUSE_PRINTING_ARCHITECTURE 1
36197_ACEOF
36198
36199 fi
36200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36201fi
36202
36203if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36204 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36205echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36206 { (exit 1); exit 1; }; }
36207fi
36208
36209
36210if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36211 -o "$wxUSE_CLIPBOARD" = "yes" \
36212 -o "$wxUSE_OLE" = "yes" \
36213 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36214
36215for ac_header in ole2.h
36216do
36217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36218if eval "test \"\${$as_ac_Header+set}\" = set"; then
36219 echo "$as_me:$LINENO: checking for $ac_header" >&5
36220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36221if eval "test \"\${$as_ac_Header+set}\" = set"; then
36222 echo $ECHO_N "(cached) $ECHO_C" >&6
36223fi
36224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36226else
36227 # Is the header compilable?
36228echo "$as_me:$LINENO: checking $ac_header usability" >&5
36229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36230cat >conftest.$ac_ext <<_ACEOF
36231/* confdefs.h. */
36232_ACEOF
36233cat confdefs.h >>conftest.$ac_ext
36234cat >>conftest.$ac_ext <<_ACEOF
36235/* end confdefs.h. */
36236$ac_includes_default
36237#include <$ac_header>
36238_ACEOF
36239rm -f conftest.$ac_objext
36240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36241 (eval $ac_compile) 2>conftest.er1
a848cd7e 36242 ac_status=$?
ac1cb8d3
VS
36243 grep -v '^ *+' conftest.er1 >conftest.err
36244 rm -f conftest.er1
36245 cat conftest.err >&5
a848cd7e
SC
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); } &&
9a8f0513
VS
36248 { ac_try='test -z "$ac_c_werror_flag"
36249 || test ! -s conftest.err'
ac1cb8d3
VS
36250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251 (eval $ac_try) 2>&5
36252 ac_status=$?
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); }; } &&
36255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257 (eval $ac_try) 2>&5
36258 ac_status=$?
36259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); }; }; then
36261 ac_header_compiler=yes
36262else
36263 echo "$as_me: failed program was:" >&5
36264sed 's/^/| /' conftest.$ac_ext >&5
36265
36266ac_header_compiler=no
36267fi
ac1cb8d3 36268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36270echo "${ECHO_T}$ac_header_compiler" >&6
36271
36272# Is the header present?
36273echo "$as_me:$LINENO: checking $ac_header presence" >&5
36274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36275cat >conftest.$ac_ext <<_ACEOF
36276/* confdefs.h. */
36277_ACEOF
36278cat confdefs.h >>conftest.$ac_ext
36279cat >>conftest.$ac_ext <<_ACEOF
36280/* end confdefs.h. */
36281#include <$ac_header>
36282_ACEOF
36283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36285 ac_status=$?
36286 grep -v '^ *+' conftest.er1 >conftest.err
36287 rm -f conftest.er1
36288 cat conftest.err >&5
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); } >/dev/null; then
36291 if test -s conftest.err; then
36292 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36294 else
36295 ac_cpp_err=
36296 fi
36297else
36298 ac_cpp_err=yes
36299fi
36300if test -z "$ac_cpp_err"; then
36301 ac_header_preproc=yes
36302else
36303 echo "$as_me: failed program was:" >&5
36304sed 's/^/| /' conftest.$ac_ext >&5
36305
36306 ac_header_preproc=no
36307fi
36308rm -f conftest.err conftest.$ac_ext
36309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36310echo "${ECHO_T}$ac_header_preproc" >&6
36311
36312# So? What about this header?
ac1cb8d3
VS
36313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36314 yes:no: )
a848cd7e
SC
36315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36319 ac_header_preproc=yes
a848cd7e 36320 ;;
ac1cb8d3 36321 no:yes:* )
a848cd7e
SC
36322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36329echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36334 (
36335 cat <<\_ASBOX
ac1cb8d3
VS
36336## ----------------------------------------- ##
36337## Report this to wx-dev@lists.wxwidgets.org ##
36338## ----------------------------------------- ##
a848cd7e
SC
36339_ASBOX
36340 ) |
36341 sed "s/^/$as_me: WARNING: /" >&2
36342 ;;
36343esac
36344echo "$as_me:$LINENO: checking for $ac_header" >&5
36345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36346if eval "test \"\${$as_ac_Header+set}\" = set"; then
36347 echo $ECHO_N "(cached) $ECHO_C" >&6
36348else
ac1cb8d3 36349 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36350fi
36351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36353
36354fi
36355if test `eval echo '${'$as_ac_Header'}'` = yes; then
36356 cat >>confdefs.h <<_ACEOF
36357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36358_ACEOF
36359
36360fi
36361
36362done
36363
36364
36365 if test "$ac_cv_header_ole2_h" = "yes" ; then
36366 if test "$GCC" = yes ; then
36367
36368
36369 ac_ext=cc
36370ac_cpp='$CXXCPP $CPPFLAGS'
36371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36374
36375
36376 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36377echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36378 cat >conftest.$ac_ext <<_ACEOF
36379/* confdefs.h. */
36380_ACEOF
36381cat confdefs.h >>conftest.$ac_ext
36382cat >>conftest.$ac_ext <<_ACEOF
36383/* end confdefs.h. */
36384#include <windows.h>
36385 #include <ole2.h>
36386int
36387main ()
36388{
36389
36390 ;
36391 return 0;
36392}
36393_ACEOF
36394rm -f conftest.$ac_objext
36395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36396 (eval $ac_compile) 2>conftest.er1
a848cd7e 36397 ac_status=$?
ac1cb8d3
VS
36398 grep -v '^ *+' conftest.er1 >conftest.err
36399 rm -f conftest.er1
36400 cat conftest.err >&5
a848cd7e
SC
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 (exit $ac_status); } &&
9a8f0513
VS
36403 { ac_try='test -z "$ac_cxx_werror_flag"
36404 || test ! -s conftest.err'
ac1cb8d3
VS
36405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36406 (eval $ac_try) 2>&5
36407 ac_status=$?
36408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409 (exit $ac_status); }; } &&
36410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36412 (eval $ac_try) 2>&5
36413 ac_status=$?
36414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); }; }; then
36416 echo "$as_me:$LINENO: result: no" >&5
36417echo "${ECHO_T}no" >&6
36418else
36419 echo "$as_me: failed program was:" >&5
36420sed 's/^/| /' conftest.$ac_ext >&5
36421
36422echo "$as_me:$LINENO: result: yes" >&5
36423echo "${ECHO_T}yes" >&6
36424 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36425fi
ac1cb8d3 36426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36427 ac_ext=c
36428ac_cpp='$CPP $CPPFLAGS'
36429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36431ac_compiler_gnu=$ac_cv_c_compiler_gnu
36432
36433 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36434 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36435 if test "$wxUSE_OLE" = "yes" ; then
36436 cat >>confdefs.h <<\_ACEOF
36437#define wxUSE_OLE 1
36438_ACEOF
36439
36440 fi
36441 fi
36442
36443 if test "$wxUSE_DATAOBJ" = "yes" ; then
36444 cat >>confdefs.h <<\_ACEOF
36445#define wxUSE_DATAOBJ 1
36446_ACEOF
36447
36448 fi
36449 else
36450 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36451echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36452
36453 wxUSE_CLIPBOARD=no
36454 wxUSE_DRAG_AND_DROP=no
36455 wxUSE_DATAOBJ=no
36456 wxUSE_OLE=no
36457 fi
36458
36459 if test "$wxUSE_METAFILE" = "yes"; then
36460 cat >>confdefs.h <<\_ACEOF
36461#define wxUSE_METAFILE 1
36462_ACEOF
36463
36464
36465 cat >>confdefs.h <<\_ACEOF
36466#define wxUSE_ENH_METAFILE 1
36467_ACEOF
36468
36469 fi
36470fi
36471
36472if test "$wxUSE_IPC" = "yes"; then
36473 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36474 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36475echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36476 fi
36477
36478 cat >>confdefs.h <<\_ACEOF
36479#define wxUSE_IPC 1
36480_ACEOF
36481
36482fi
36483
36484if test "$wxUSE_CLIPBOARD" = "yes"; then
36485 if test "$wxUSE_MGL" = 1; then
36486 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36487echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36488 wxUSE_CLIPBOARD=no
36489 fi
36490
36491 if test "$wxUSE_CLIPBOARD" = "yes"; then
36492 cat >>confdefs.h <<\_ACEOF
36493#define wxUSE_CLIPBOARD 1
36494_ACEOF
36495
36496
36497 cat >>confdefs.h <<\_ACEOF
36498#define wxUSE_DATAOBJ 1
36499_ACEOF
36500
36501 fi
36502fi
36503
36504if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36505 if test "$wxUSE_GTK" = 1; then
36506 if test "$WXGTK12" != 1; then
36507 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36508echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36509 wxUSE_DRAG_AND_DROP=no
36510 fi
36511 fi
36512
36513 if test "$wxUSE_MOTIF" = 1; then
36514 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36515echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36516 wxUSE_DRAG_AND_DROP=no
36517 fi
36518
36519 if test "$wxUSE_X11" = 1; then
36520 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36521echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36522 wxUSE_DRAG_AND_DROP=no
36523 fi
36524
36525 if test "$wxUSE_MGL" = 1; then
36526 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36527echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36528 wxUSE_DRAG_AND_DROP=no
36529 fi
36530
36531 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36532 cat >>confdefs.h <<\_ACEOF
36533#define wxUSE_DRAG_AND_DROP 1
36534_ACEOF
36535
36536 fi
36537
36538fi
36539
36540if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36542fi
36543
36544if test "$wxUSE_SPLINES" = "yes" ; then
36545 cat >>confdefs.h <<\_ACEOF
36546#define wxUSE_SPLINES 1
36547_ACEOF
36548
36549fi
36550
36551
36552USES_CONTROLS=0
36553if test "$wxUSE_CONTROLS" = "yes"; then
36554 USES_CONTROLS=1
36555fi
36556
36557if test "$wxUSE_ACCEL" = "yes"; then
36558 cat >>confdefs.h <<\_ACEOF
36559#define wxUSE_ACCEL 1
36560_ACEOF
36561
36562 USES_CONTROLS=1
36563fi
36564
36565if test "$wxUSE_BUTTON" = "yes"; then
36566 cat >>confdefs.h <<\_ACEOF
36567#define wxUSE_BUTTON 1
36568_ACEOF
36569
36570 USES_CONTROLS=1
36571fi
36572
36573if test "$wxUSE_BMPBUTTON" = "yes"; then
36574 cat >>confdefs.h <<\_ACEOF
36575#define wxUSE_BMPBUTTON 1
36576_ACEOF
36577
36578 USES_CONTROLS=1
36579fi
36580
36581if test "$wxUSE_CALCTRL" = "yes"; then
36582 cat >>confdefs.h <<\_ACEOF
36583#define wxUSE_CALENDARCTRL 1
36584_ACEOF
36585
36586 USES_CONTROLS=1
36587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36588fi
36589
36590if test "$wxUSE_CARET" = "yes"; then
36591 cat >>confdefs.h <<\_ACEOF
36592#define wxUSE_CARET 1
36593_ACEOF
36594
36595 USES_CONTROLS=1
36596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36597fi
36598
36599if test "$wxUSE_COMBOBOX" = "yes"; then
36600 cat >>confdefs.h <<\_ACEOF
36601#define wxUSE_COMBOBOX 1
36602_ACEOF
36603
36604 USES_CONTROLS=1
36605fi
36606
36607if test "$wxUSE_CHOICE" = "yes"; then
36608 cat >>confdefs.h <<\_ACEOF
36609#define wxUSE_CHOICE 1
36610_ACEOF
36611
36612 USES_CONTROLS=1
36613fi
36614
92bbdbcd
WS
36615if test "$wxUSE_CHOICEBOOK" = "yes"; then
36616 cat >>confdefs.h <<\_ACEOF
36617#define wxUSE_CHOICEBOOK 1
36618_ACEOF
36619
36620 USES_CONTROLS=1
36621fi
36622
a848cd7e
SC
36623if test "$wxUSE_CHECKBOX" = "yes"; then
36624 cat >>confdefs.h <<\_ACEOF
36625#define wxUSE_CHECKBOX 1
36626_ACEOF
36627
36628 USES_CONTROLS=1
36629fi
36630
36631if test "$wxUSE_CHECKLST" = "yes"; then
36632 cat >>confdefs.h <<\_ACEOF
36633#define wxUSE_CHECKLISTBOX 1
36634_ACEOF
36635
36636 USES_CONTROLS=1
36637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36638fi
36639
36640if test "$wxUSE_DISPLAY" = "yes"; then
36641 cat >>confdefs.h <<\_ACEOF
36642#define wxUSE_DISPLAY 1
36643_ACEOF
36644
36645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36646fi
36647
36648if test "$wxUSE_GAUGE" = "yes"; then
36649 cat >>confdefs.h <<\_ACEOF
36650#define wxUSE_GAUGE 1
36651_ACEOF
36652
36653 USES_CONTROLS=1
36654fi
36655
36656if test "$wxUSE_GRID" = "yes"; then
36657 cat >>confdefs.h <<\_ACEOF
36658#define wxUSE_GRID 1
36659_ACEOF
36660
36661 USES_CONTROLS=1
36662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36663fi
36664
36665if test "$wxUSE_IMAGLIST" = "yes"; then
36666 cat >>confdefs.h <<\_ACEOF
36667#define wxUSE_IMAGLIST 1
36668_ACEOF
36669
36670fi
36671
36672if test "$wxUSE_LISTBOOK" = "yes"; then
36673 cat >>confdefs.h <<\_ACEOF
36674#define wxUSE_LISTBOOK 1
36675_ACEOF
36676
36677 USES_CONTROLS=1
36678fi
36679
36680if test "$wxUSE_LISTBOX" = "yes"; then
36681 cat >>confdefs.h <<\_ACEOF
36682#define wxUSE_LISTBOX 1
36683_ACEOF
36684
36685 USES_CONTROLS=1
36686fi
36687
36688if test "$wxUSE_LISTCTRL" = "yes"; then
36689 if test "$wxUSE_IMAGLIST" = "yes"; then
36690 cat >>confdefs.h <<\_ACEOF
36691#define wxUSE_LISTCTRL 1
36692_ACEOF
36693
36694 USES_CONTROLS=1
36695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36696 else
36697 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36698echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36699 fi
36700fi
36701
36702if test "$wxUSE_NOTEBOOK" = "yes"; then
36703 cat >>confdefs.h <<\_ACEOF
36704#define wxUSE_NOTEBOOK 1
36705_ACEOF
36706
36707 USES_CONTROLS=1
36708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36709fi
36710
36711
36712if test "$wxUSE_RADIOBOX" = "yes"; then
36713 cat >>confdefs.h <<\_ACEOF
36714#define wxUSE_RADIOBOX 1
36715_ACEOF
36716
36717 USES_CONTROLS=1
36718fi
36719
36720if test "$wxUSE_RADIOBTN" = "yes"; then
36721 cat >>confdefs.h <<\_ACEOF
36722#define wxUSE_RADIOBTN 1
36723_ACEOF
36724
36725 USES_CONTROLS=1
36726fi
36727
36728if test "$wxUSE_SASH" = "yes"; then
36729 cat >>confdefs.h <<\_ACEOF
36730#define wxUSE_SASH 1
36731_ACEOF
36732
36733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36734fi
36735
36736if test "$wxUSE_SCROLLBAR" = "yes"; then
36737 cat >>confdefs.h <<\_ACEOF
36738#define wxUSE_SCROLLBAR 1
36739_ACEOF
36740
36741 USES_CONTROLS=1
36742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36743fi
36744
36745if test "$wxUSE_SLIDER" = "yes"; then
36746 cat >>confdefs.h <<\_ACEOF
36747#define wxUSE_SLIDER 1
36748_ACEOF
36749
36750 USES_CONTROLS=1
36751fi
36752
36753if test "$wxUSE_SPINBTN" = "yes"; then
36754 cat >>confdefs.h <<\_ACEOF
36755#define wxUSE_SPINBTN 1
36756_ACEOF
36757
36758 USES_CONTROLS=1
36759fi
36760
36761if test "$wxUSE_SPINCTRL" = "yes"; then
36762 cat >>confdefs.h <<\_ACEOF
36763#define wxUSE_SPINCTRL 1
36764_ACEOF
36765
36766 USES_CONTROLS=1
36767fi
36768
36769if test "$wxUSE_SPLITTER" = "yes"; then
36770 cat >>confdefs.h <<\_ACEOF
36771#define wxUSE_SPLITTER 1
36772_ACEOF
36773
36774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36775fi
36776
36777if test "$wxUSE_STATBMP" = "yes"; then
36778 cat >>confdefs.h <<\_ACEOF
36779#define wxUSE_STATBMP 1
36780_ACEOF
36781
36782 USES_CONTROLS=1
36783fi
36784
36785if test "$wxUSE_STATBOX" = "yes"; then
36786 cat >>confdefs.h <<\_ACEOF
36787#define wxUSE_STATBOX 1
36788_ACEOF
36789
36790 USES_CONTROLS=1
36791fi
36792
36793if test "$wxUSE_STATTEXT" = "yes"; then
36794 cat >>confdefs.h <<\_ACEOF
36795#define wxUSE_STATTEXT 1
36796_ACEOF
36797
36798 USES_CONTROLS=1
36799fi
36800
36801if test "$wxUSE_STATLINE" = "yes"; then
36802 cat >>confdefs.h <<\_ACEOF
36803#define wxUSE_STATLINE 1
36804_ACEOF
36805
36806 USES_CONTROLS=1
36807fi
36808
36809if test "$wxUSE_STATUSBAR" = "yes"; then
36810 cat >>confdefs.h <<\_ACEOF
36811#define wxUSE_STATUSBAR 1
36812_ACEOF
36813
36814 USES_CONTROLS=1
36815
36816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36817fi
36818
36819if test "$wxUSE_TABDIALOG" = "yes"; then
36820 cat >>confdefs.h <<\_ACEOF
36821#define wxUSE_TAB_DIALOG 1
36822_ACEOF
36823
36824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36825fi
36826
36827if test "$wxUSE_TEXTCTRL" = "yes"; then
36828 cat >>confdefs.h <<\_ACEOF
36829#define wxUSE_TEXTCTRL 1
36830_ACEOF
36831
36832 USES_CONTROLS=1
36833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36834fi
36835
36836if test "$wxUSE_TOGGLEBTN" = "yes"; then
36837 if test "$wxUSE_COCOA" = 1 ; then
36838 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36839echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36840 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36841 else
36842 if test "$wxUSE_PM" = 1; then
36843 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36844echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36845 wxUSE_TOGGLEBTN=no
36846 fi
a848cd7e
SC
36847 fi
36848 if test "$wxUSE_UNIVERSAL" = "yes"; then
36849 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36850echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36851 wxUSE_TOGGLEBTN=no
36852 fi
36853
36854 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36855 cat >>confdefs.h <<\_ACEOF
36856#define wxUSE_TOGGLEBTN 1
36857_ACEOF
36858
36859 USES_CONTROLS=1
36860 fi
36861fi
36862
36863if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36864 cat >>confdefs.h <<\_ACEOF
36865#define wxUSE_TOOLBAR_SIMPLE 1
36866_ACEOF
36867
36868 wxUSE_TOOLBAR="yes"
36869 USES_CONTROLS=1
36870fi
36871
36872if test "$wxUSE_TOOLBAR" = "yes"; then
36873 cat >>confdefs.h <<\_ACEOF
36874#define wxUSE_TOOLBAR 1
36875_ACEOF
36876
36877 USES_CONTROLS=1
36878
36879 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36880 wxUSE_TOOLBAR_NATIVE="yes"
36881 fi
36882
36883 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36884 cat >>confdefs.h <<\_ACEOF
36885#define wxUSE_TOOLBAR_NATIVE 1
36886_ACEOF
36887
36888 USES_CONTROLS=1
36889 fi
36890
36891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36892fi
36893
36894if test "$wxUSE_TOOLTIPS" = "yes"; then
36895 if test "$wxUSE_MOTIF" = 1; then
36896 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36897echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36898 else
36899 if test "$wxUSE_UNIVERSAL" = "yes"; then
36900 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36901echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36902 else
36903 cat >>confdefs.h <<\_ACEOF
36904#define wxUSE_TOOLTIPS 1
36905_ACEOF
36906
36907 fi
36908 fi
36909fi
36910
36911if test "$wxUSE_TREECTRL" = "yes"; then
36912 if test "$wxUSE_IMAGLIST" = "yes"; then
36913 cat >>confdefs.h <<\_ACEOF
36914#define wxUSE_TREECTRL 1
36915_ACEOF
36916
36917 USES_CONTROLS=1
36918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36919 else
36920 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36921echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36922 fi
36923fi
36924
36925if test "$wxUSE_POPUPWIN" = "yes"; then
36926 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36927 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36928echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36929 else
36930 if test "$wxUSE_PM" = 1; then
36931 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36932echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36933 else
36934 cat >>confdefs.h <<\_ACEOF
36935#define wxUSE_POPUPWIN 1
36936_ACEOF
36937
36938
36939 USES_CONTROLS=1
36940 fi
36941 fi
36942fi
36943
36944if test "$wxUSE_TIPWINDOW" = "yes"; then
36945 if test "$wxUSE_PM" = 1; then
36946 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36947echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36948 else
36949 cat >>confdefs.h <<\_ACEOF
36950#define wxUSE_TIPWINDOW 1
36951_ACEOF
36952
36953 fi
36954fi
36955
36956if test "$USES_CONTROLS" = 1; then
36957 cat >>confdefs.h <<\_ACEOF
36958#define wxUSE_CONTROLS 1
36959_ACEOF
36960
36961fi
36962
36963
36964if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36965 cat >>confdefs.h <<\_ACEOF
36966#define wxUSE_ACCESSIBILITY 1
36967_ACEOF
36968
36969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36970fi
36971
36972if test "$wxUSE_DRAGIMAGE" = "yes"; then
36973 cat >>confdefs.h <<\_ACEOF
36974#define wxUSE_DRAGIMAGE 1
36975_ACEOF
36976
36977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36978fi
36979
36980if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36981 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36982 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36983echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36984 else
36985 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36986#define wxUSE_EXCEPTIONS 1
36987_ACEOF
36988
07bea8f0
VS
36989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36990 fi
a848cd7e
SC
36991fi
36992
36993USE_HTML=0
36994if test "$wxUSE_HTML" = "yes"; then
36995 cat >>confdefs.h <<\_ACEOF
36996#define wxUSE_HTML 1
36997_ACEOF
36998
36999 USE_HTML=1
37000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37001 if test "$wxUSE_MAC" = 1; then
37002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37003 fi
a848cd7e 37004fi
646b6ec1 37005if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
37006 if test "$wxUSE_MAC" = 1; then
37007 old_CPPFLAGS="$CPPFLAGS"
37008 CPPFLAGS="$CPPFLAGS -x objective-c++"
37009 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37010echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37011if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37012 echo $ECHO_N "(cached) $ECHO_C" >&6
37013else
37014 cat >conftest.$ac_ext <<_ACEOF
37015/* confdefs.h. */
37016_ACEOF
37017cat confdefs.h >>conftest.$ac_ext
37018cat >>conftest.$ac_ext <<_ACEOF
37019/* end confdefs.h. */
37020#include <Carbon/Carbon.h>
37021
37022#include <WebKit/HIWebView.h>
37023_ACEOF
37024rm -f conftest.$ac_objext
37025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37026 (eval $ac_compile) 2>conftest.er1
37027 ac_status=$?
37028 grep -v '^ *+' conftest.er1 >conftest.err
37029 rm -f conftest.er1
37030 cat conftest.err >&5
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); } &&
9a8f0513
VS
37033 { ac_try='test -z "$ac_c_werror_flag"
37034 || test ! -s conftest.err'
07bea8f0
VS
37035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37036 (eval $ac_try) 2>&5
37037 ac_status=$?
37038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37039 (exit $ac_status); }; } &&
37040 { ac_try='test -s conftest.$ac_objext'
37041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37042 (eval $ac_try) 2>&5
37043 ac_status=$?
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); }; }; then
37046 ac_cv_header_WebKit_HIWebView_h=yes
37047else
37048 echo "$as_me: failed program was:" >&5
37049sed 's/^/| /' conftest.$ac_ext >&5
37050
37051ac_cv_header_WebKit_HIWebView_h=no
37052fi
37053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37054fi
37055echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37056echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37057if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37058
37059 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37060#define wxUSE_WEBKIT 1
37061_ACEOF
37062
07bea8f0
VS
37063 WEBKIT_LINK="-framework WebKit"
37064
37065else
37066
37067 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37068echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37069 wxUSE_WEBKIT=no
37070
646b6ec1
VS
37071fi
37072
07bea8f0
VS
37073
37074 CPPFLAGS="$old_CPPFLAGS"
37075 elif test "$wxUSE_COCOA" = 1; then
37076 cat >>confdefs.h <<\_ACEOF
37077#define wxUSE_WEBKIT 1
37078_ACEOF
37079
37080 else
37081 wxUSE_WEBKIT=no
37082 fi
37083fi
37084
9a8f0513
VS
37085USE_XRC=0
37086if test "$wxUSE_XRC" = "yes"; then
37087 cat >>confdefs.h <<\_ACEOF
37088#define wxUSE_XRC 1
37089_ACEOF
37090
37091 USE_XRC=1
37092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37093fi
07bea8f0 37094
a848cd7e
SC
37095if test "$wxUSE_MENUS" = "yes"; then
37096 cat >>confdefs.h <<\_ACEOF
37097#define wxUSE_MENUS 1
37098_ACEOF
37099
37100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37101fi
37102
37103if test "$wxUSE_METAFILE" = "yes"; then
37104 cat >>confdefs.h <<\_ACEOF
37105#define wxUSE_METAFILE 1
37106_ACEOF
37107
37108fi
37109
37110if test "$wxUSE_MIMETYPE" = "yes"; then
37111 cat >>confdefs.h <<\_ACEOF
37112#define wxUSE_MIMETYPE 1
37113_ACEOF
37114
37115fi
37116
37117if test "$wxUSE_MINIFRAME" = "yes"; then
37118 cat >>confdefs.h <<\_ACEOF
37119#define wxUSE_MINIFRAME 1
37120_ACEOF
37121
37122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37123fi
37124
37125if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37126 cat >>confdefs.h <<\_ACEOF
37127#define wxUSE_SYSTEM_OPTIONS 1
37128_ACEOF
37129
37130 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37131 "$TOOLKIT" = "MOTIF"; then
37132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37133 fi
37134fi
37135
37136
37137if test "$wxUSE_VALIDATORS" = "yes"; then
37138 cat >>confdefs.h <<\_ACEOF
37139#define wxUSE_VALIDATORS 1
37140_ACEOF
37141
37142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37143fi
37144
37145if test "$wxUSE_PALETTE" = "yes" ; then
37146 cat >>confdefs.h <<\_ACEOF
37147#define wxUSE_PALETTE 1
37148_ACEOF
37149
37150fi
37151
37152if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37153 LIBS=" -lunicows $LIBS"
37154fi
37155
37156
37157if test "$wxUSE_IMAGE" = "yes" ; then
37158 cat >>confdefs.h <<\_ACEOF
37159#define wxUSE_IMAGE 1
37160_ACEOF
37161
37162
37163 if test "$wxUSE_GIF" = "yes" ; then
37164 cat >>confdefs.h <<\_ACEOF
37165#define wxUSE_GIF 1
37166_ACEOF
37167
37168 fi
37169
37170 if test "$wxUSE_PCX" = "yes" ; then
37171 cat >>confdefs.h <<\_ACEOF
37172#define wxUSE_PCX 1
37173_ACEOF
37174
37175 fi
37176
37177 if test "$wxUSE_IFF" = "yes" ; then
37178 cat >>confdefs.h <<\_ACEOF
37179#define wxUSE_IFF 1
37180_ACEOF
37181
37182 fi
37183
37184 if test "$wxUSE_PNM" = "yes" ; then
37185 cat >>confdefs.h <<\_ACEOF
37186#define wxUSE_PNM 1
37187_ACEOF
37188
37189 fi
37190
37191 if test "$wxUSE_XPM" = "yes" ; then
37192 cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_XPM 1
37194_ACEOF
37195
37196 fi
37197
37198 if test "$wxUSE_ICO_CUR" = "yes" ; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define wxUSE_ICO_CUR 1
37201_ACEOF
37202
37203 fi
37204fi
37205
37206
37207if test "$wxUSE_CHOICEDLG" = "yes"; then
37208 cat >>confdefs.h <<\_ACEOF
37209#define wxUSE_CHOICEDLG 1
37210_ACEOF
37211
37212fi
37213
37214if test "$wxUSE_COLOURDLG" = "yes"; then
37215 cat >>confdefs.h <<\_ACEOF
37216#define wxUSE_COLOURDLG 1
37217_ACEOF
37218
37219fi
37220
37221if test "$wxUSE_FILEDLG" = "yes"; then
37222 cat >>confdefs.h <<\_ACEOF
37223#define wxUSE_FILEDLG 1
37224_ACEOF
37225
37226fi
37227
37228if test "$wxUSE_FINDREPLDLG" = "yes"; then
37229 cat >>confdefs.h <<\_ACEOF
37230#define wxUSE_FINDREPLDLG 1
37231_ACEOF
37232
37233fi
37234
37235if test "$wxUSE_FONTDLG" = "yes"; then
37236 cat >>confdefs.h <<\_ACEOF
37237#define wxUSE_FONTDLG 1
37238_ACEOF
37239
37240fi
37241
37242if test "$wxUSE_DIRDLG" = "yes"; then
37243 if test "$wxUSE_TREECTRL" != "yes"; then
37244 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37245echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37246 else
37247 cat >>confdefs.h <<\_ACEOF
37248#define wxUSE_DIRDLG 1
37249_ACEOF
37250
37251 fi
37252fi
37253
37254if test "$wxUSE_MSGDLG" = "yes"; then
37255 cat >>confdefs.h <<\_ACEOF
37256#define wxUSE_MSGDLG 1
37257_ACEOF
37258
37259fi
37260
37261if test "$wxUSE_NUMBERDLG" = "yes"; then
37262 cat >>confdefs.h <<\_ACEOF
37263#define wxUSE_NUMBERDLG 1
37264_ACEOF
37265
37266fi
37267
37268if test "$wxUSE_PROGRESSDLG" = "yes"; then
37269 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37270 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37271echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37272 else
37273 cat >>confdefs.h <<\_ACEOF
37274#define wxUSE_PROGRESSDLG 1
37275_ACEOF
37276
37277 fi
37278fi
37279
37280if test "$wxUSE_SPLASH" = "yes"; then
37281 cat >>confdefs.h <<\_ACEOF
37282#define wxUSE_SPLASH 1
37283_ACEOF
37284
2057db16 37285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37286fi
37287
37288if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37289 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37290 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37291echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37292 else
37293 cat >>confdefs.h <<\_ACEOF
37294#define wxUSE_STARTUP_TIPS 1
37295_ACEOF
37296
37297 fi
37298fi
37299
37300if test "$wxUSE_TEXTDLG" = "yes"; then
37301 cat >>confdefs.h <<\_ACEOF
37302#define wxUSE_TEXTDLG 1
37303_ACEOF
37304
37305fi
37306
37307if test "$wxUSE_WIZARDDLG" = "yes"; then
37308 cat >>confdefs.h <<\_ACEOF
37309#define wxUSE_WIZARDDLG 1
37310_ACEOF
37311
37312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37313fi
37314
37315
37316if test "$cross_compiling" = "yes"; then
37317 OSINFO="\"$host\""
37318else
37319 OSINFO=`uname -s -r -m`
37320 OSINFO="\"$OSINFO\""
37321fi
37322
37323cat >>confdefs.h <<_ACEOF
37324#define WXWIN_OS_DESCRIPTION $OSINFO
37325_ACEOF
37326
37327
37328
37329if test "x$prefix" != "xNONE"; then
37330 wxPREFIX=$prefix
37331else
37332 wxPREFIX=$ac_default_prefix
37333fi
37334
37335cat >>confdefs.h <<_ACEOF
37336#define wxINSTALL_PREFIX "$wxPREFIX"
37337_ACEOF
37338
37339
37340top_builddir_wxconfig=`pwd`
37341
37342
37343
37344CORE_BASE_LIBS="net base"
37345CORE_GUI_LIBS="adv core"
37346
37347if test "$wxUSE_XML" = "yes" ; then
37348 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37349fi
37350if test "$wxUSE_ODBC" != "no" ; then
37351 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37352 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37353fi
37354if test "$wxUSE_HTML" = "yes" ; then
37355 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37356fi
9a8f0513
VS
37357if test "$wxUSE_XRC" = "yes" ; then
37358 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37359fi
a848cd7e
SC
37360
37361if test "$wxUSE_GUI" != "yes"; then
37362 CORE_GUI_LIBS=""
37363fi
37364
37365
37366
37367
37368
37369
37370
37371
37372if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37373 if test "$wxUSE_SOUND" = "yes"; then
37374 LDFLAGS="$LDFLAGS -framework QuickTime"
37375 fi
37376 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37377fi
37378if test "$wxUSE_COCOA" = 1 ; then
37379 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37380fi
37381
37382
37383LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37384
37385have_cos=0
37386have_floor=0
37387
37388for ac_func in cos
37389do
37390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37391echo "$as_me:$LINENO: checking for $ac_func" >&5
37392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37393if eval "test \"\${$as_ac_var+set}\" = set"; then
37394 echo $ECHO_N "(cached) $ECHO_C" >&6
37395else
37396 cat >conftest.$ac_ext <<_ACEOF
37397/* confdefs.h. */
37398_ACEOF
37399cat confdefs.h >>conftest.$ac_ext
37400cat >>conftest.$ac_ext <<_ACEOF
37401/* end confdefs.h. */
ac1cb8d3
VS
37402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37404#define $ac_func innocuous_$ac_func
37405
a848cd7e
SC
37406/* System header to define __stub macros and hopefully few prototypes,
37407 which can conflict with char $ac_func (); below.
37408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37409 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37410
a848cd7e
SC
37411#ifdef __STDC__
37412# include <limits.h>
37413#else
37414# include <assert.h>
37415#endif
ac1cb8d3
VS
37416
37417#undef $ac_func
37418
a848cd7e
SC
37419/* Override any gcc2 internal prototype to avoid an error. */
37420#ifdef __cplusplus
37421extern "C"
37422{
37423#endif
37424/* We use char because int might match the return type of a gcc2
37425 builtin and then its argument prototype would still apply. */
37426char $ac_func ();
37427/* The GNU C library defines this for functions which it implements
37428 to always fail with ENOSYS. Some functions are actually named
37429 something starting with __ and the normal name is an alias. */
37430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37431choke me
37432#else
37433char (*f) () = $ac_func;
37434#endif
37435#ifdef __cplusplus
37436}
37437#endif
37438
37439int
37440main ()
37441{
37442return f != $ac_func;
37443 ;
37444 return 0;
37445}
37446_ACEOF
37447rm -f conftest.$ac_objext conftest$ac_exeext
37448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37449 (eval $ac_link) 2>conftest.er1
a848cd7e 37450 ac_status=$?
ac1cb8d3
VS
37451 grep -v '^ *+' conftest.er1 >conftest.err
37452 rm -f conftest.er1
37453 cat conftest.err >&5
a848cd7e
SC
37454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455 (exit $ac_status); } &&
9a8f0513
VS
37456 { ac_try='test -z "$ac_c_werror_flag"
37457 || test ! -s conftest.err'
ac1cb8d3
VS
37458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37459 (eval $ac_try) 2>&5
37460 ac_status=$?
37461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462 (exit $ac_status); }; } &&
37463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37465 (eval $ac_try) 2>&5
37466 ac_status=$?
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); }; }; then
37469 eval "$as_ac_var=yes"
37470else
37471 echo "$as_me: failed program was:" >&5
37472sed 's/^/| /' conftest.$ac_ext >&5
37473
37474eval "$as_ac_var=no"
37475fi
ac1cb8d3
VS
37476rm -f conftest.err conftest.$ac_objext \
37477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37478fi
37479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37481if test `eval echo '${'$as_ac_var'}'` = yes; then
37482 cat >>confdefs.h <<_ACEOF
37483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37484_ACEOF
37485 have_cos=1
37486fi
37487done
37488
37489
37490for ac_func in floor
37491do
37492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37493echo "$as_me:$LINENO: checking for $ac_func" >&5
37494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37495if eval "test \"\${$as_ac_var+set}\" = set"; then
37496 echo $ECHO_N "(cached) $ECHO_C" >&6
37497else
37498 cat >conftest.$ac_ext <<_ACEOF
37499/* confdefs.h. */
37500_ACEOF
37501cat confdefs.h >>conftest.$ac_ext
37502cat >>conftest.$ac_ext <<_ACEOF
37503/* end confdefs.h. */
ac1cb8d3
VS
37504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37506#define $ac_func innocuous_$ac_func
37507
a848cd7e
SC
37508/* System header to define __stub macros and hopefully few prototypes,
37509 which can conflict with char $ac_func (); below.
37510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37511 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37512
a848cd7e
SC
37513#ifdef __STDC__
37514# include <limits.h>
37515#else
37516# include <assert.h>
37517#endif
ac1cb8d3
VS
37518
37519#undef $ac_func
37520
a848cd7e
SC
37521/* Override any gcc2 internal prototype to avoid an error. */
37522#ifdef __cplusplus
37523extern "C"
37524{
37525#endif
37526/* We use char because int might match the return type of a gcc2
37527 builtin and then its argument prototype would still apply. */
37528char $ac_func ();
37529/* The GNU C library defines this for functions which it implements
37530 to always fail with ENOSYS. Some functions are actually named
37531 something starting with __ and the normal name is an alias. */
37532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37533choke me
37534#else
37535char (*f) () = $ac_func;
37536#endif
37537#ifdef __cplusplus
37538}
37539#endif
37540
37541int
37542main ()
37543{
37544return f != $ac_func;
37545 ;
37546 return 0;
37547}
37548_ACEOF
37549rm -f conftest.$ac_objext conftest$ac_exeext
37550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37551 (eval $ac_link) 2>conftest.er1
a848cd7e 37552 ac_status=$?
ac1cb8d3
VS
37553 grep -v '^ *+' conftest.er1 >conftest.err
37554 rm -f conftest.er1
37555 cat conftest.err >&5
a848cd7e
SC
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); } &&
9a8f0513
VS
37558 { ac_try='test -z "$ac_c_werror_flag"
37559 || test ! -s conftest.err'
ac1cb8d3
VS
37560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561 (eval $ac_try) 2>&5
37562 ac_status=$?
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); }; } &&
37565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37567 (eval $ac_try) 2>&5
37568 ac_status=$?
37569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570 (exit $ac_status); }; }; then
37571 eval "$as_ac_var=yes"
37572else
37573 echo "$as_me: failed program was:" >&5
37574sed 's/^/| /' conftest.$ac_ext >&5
37575
37576eval "$as_ac_var=no"
37577fi
ac1cb8d3
VS
37578rm -f conftest.err conftest.$ac_objext \
37579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37580fi
37581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37583if test `eval echo '${'$as_ac_var'}'` = yes; then
37584 cat >>confdefs.h <<_ACEOF
37585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37586_ACEOF
37587 have_floor=1
37588fi
37589done
37590
37591echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37592echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37593if test "$have_cos" = 1 -a "$have_floor" = 1; then
37594 echo "$as_me:$LINENO: result: yes" >&5
37595echo "${ECHO_T}yes" >&6
37596else
37597 echo "$as_me:$LINENO: result: no" >&5
37598echo "${ECHO_T}no" >&6
37599 LIBS="$LIBS -lm"
37600 # use different functions to avoid configure caching
37601 have_sin=0
37602 have_ceil=0
37603
37604for ac_func in sin
37605do
37606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37607echo "$as_me:$LINENO: checking for $ac_func" >&5
37608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37609if eval "test \"\${$as_ac_var+set}\" = set"; then
37610 echo $ECHO_N "(cached) $ECHO_C" >&6
37611else
37612 cat >conftest.$ac_ext <<_ACEOF
37613/* confdefs.h. */
37614_ACEOF
37615cat confdefs.h >>conftest.$ac_ext
37616cat >>conftest.$ac_ext <<_ACEOF
37617/* end confdefs.h. */
ac1cb8d3
VS
37618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37620#define $ac_func innocuous_$ac_func
37621
a848cd7e
SC
37622/* System header to define __stub macros and hopefully few prototypes,
37623 which can conflict with char $ac_func (); below.
37624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37625 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37626
a848cd7e
SC
37627#ifdef __STDC__
37628# include <limits.h>
37629#else
37630# include <assert.h>
37631#endif
ac1cb8d3
VS
37632
37633#undef $ac_func
37634
a848cd7e
SC
37635/* Override any gcc2 internal prototype to avoid an error. */
37636#ifdef __cplusplus
37637extern "C"
37638{
37639#endif
37640/* We use char because int might match the return type of a gcc2
37641 builtin and then its argument prototype would still apply. */
37642char $ac_func ();
37643/* The GNU C library defines this for functions which it implements
37644 to always fail with ENOSYS. Some functions are actually named
37645 something starting with __ and the normal name is an alias. */
37646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37647choke me
37648#else
37649char (*f) () = $ac_func;
37650#endif
37651#ifdef __cplusplus
37652}
37653#endif
37654
37655int
37656main ()
37657{
37658return f != $ac_func;
37659 ;
37660 return 0;
37661}
37662_ACEOF
37663rm -f conftest.$ac_objext conftest$ac_exeext
37664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37665 (eval $ac_link) 2>conftest.er1
a848cd7e 37666 ac_status=$?
ac1cb8d3
VS
37667 grep -v '^ *+' conftest.er1 >conftest.err
37668 rm -f conftest.er1
37669 cat conftest.err >&5
a848cd7e
SC
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); } &&
9a8f0513
VS
37672 { ac_try='test -z "$ac_c_werror_flag"
37673 || test ! -s conftest.err'
ac1cb8d3
VS
37674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37675 (eval $ac_try) 2>&5
37676 ac_status=$?
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); }; } &&
37679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37681 (eval $ac_try) 2>&5
37682 ac_status=$?
37683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37684 (exit $ac_status); }; }; then
37685 eval "$as_ac_var=yes"
37686else
37687 echo "$as_me: failed program was:" >&5
37688sed 's/^/| /' conftest.$ac_ext >&5
37689
37690eval "$as_ac_var=no"
37691fi
ac1cb8d3
VS
37692rm -f conftest.err conftest.$ac_objext \
37693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37694fi
37695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37697if test `eval echo '${'$as_ac_var'}'` = yes; then
37698 cat >>confdefs.h <<_ACEOF
37699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37700_ACEOF
37701 have_sin=1
37702fi
37703done
37704
37705
37706for ac_func in ceil
37707do
37708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37709echo "$as_me:$LINENO: checking for $ac_func" >&5
37710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37711if eval "test \"\${$as_ac_var+set}\" = set"; then
37712 echo $ECHO_N "(cached) $ECHO_C" >&6
37713else
37714 cat >conftest.$ac_ext <<_ACEOF
37715/* confdefs.h. */
37716_ACEOF
37717cat confdefs.h >>conftest.$ac_ext
37718cat >>conftest.$ac_ext <<_ACEOF
37719/* end confdefs.h. */
ac1cb8d3
VS
37720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37722#define $ac_func innocuous_$ac_func
37723
a848cd7e
SC
37724/* System header to define __stub macros and hopefully few prototypes,
37725 which can conflict with char $ac_func (); below.
37726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37728
a848cd7e
SC
37729#ifdef __STDC__
37730# include <limits.h>
37731#else
37732# include <assert.h>
37733#endif
ac1cb8d3
VS
37734
37735#undef $ac_func
37736
a848cd7e
SC
37737/* Override any gcc2 internal prototype to avoid an error. */
37738#ifdef __cplusplus
37739extern "C"
37740{
37741#endif
37742/* We use char because int might match the return type of a gcc2
37743 builtin and then its argument prototype would still apply. */
37744char $ac_func ();
37745/* The GNU C library defines this for functions which it implements
37746 to always fail with ENOSYS. Some functions are actually named
37747 something starting with __ and the normal name is an alias. */
37748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37749choke me
37750#else
37751char (*f) () = $ac_func;
37752#endif
37753#ifdef __cplusplus
37754}
37755#endif
37756
37757int
37758main ()
37759{
37760return f != $ac_func;
37761 ;
37762 return 0;
37763}
37764_ACEOF
37765rm -f conftest.$ac_objext conftest$ac_exeext
37766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37767 (eval $ac_link) 2>conftest.er1
a848cd7e 37768 ac_status=$?
ac1cb8d3
VS
37769 grep -v '^ *+' conftest.er1 >conftest.err
37770 rm -f conftest.er1
37771 cat conftest.err >&5
a848cd7e
SC
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); } &&
9a8f0513
VS
37774 { ac_try='test -z "$ac_c_werror_flag"
37775 || test ! -s conftest.err'
ac1cb8d3
VS
37776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37777 (eval $ac_try) 2>&5
37778 ac_status=$?
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); }; } &&
37781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37783 (eval $ac_try) 2>&5
37784 ac_status=$?
37785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); }; }; then
37787 eval "$as_ac_var=yes"
37788else
37789 echo "$as_me: failed program was:" >&5
37790sed 's/^/| /' conftest.$ac_ext >&5
37791
37792eval "$as_ac_var=no"
37793fi
ac1cb8d3
VS
37794rm -f conftest.err conftest.$ac_objext \
37795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37796fi
37797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37799if test `eval echo '${'$as_ac_var'}'` = yes; then
37800 cat >>confdefs.h <<_ACEOF
37801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37802_ACEOF
37803 have_ceil=1
37804fi
37805done
37806
37807 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37808echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37809 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37810 echo "$as_me:$LINENO: result: yes" >&5
37811echo "${ECHO_T}yes" >&6
37812 else
37813 echo "$as_me:$LINENO: result: no" >&5
37814echo "${ECHO_T}no" >&6
37815 # not sure we should warn the user, crash, etc.
37816 fi
37817fi
37818
37819if test "$wxUSE_GUI" = "yes"; then
37820
37821
37822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37823 drawing dynamic erase event exec font image \
37824 minimal propsize rotate shaped widgets render"
37825
37826 if test "$wxUSE_MONOLITHIC" != "yes"; then
37827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37828 fi
37829else
37830 SAMPLES_SUBDIRS="console"
37831fi
37832
37833
37834INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37835-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37836
37837if test "$GXX" = yes ; then
37838 CXXWARNINGS="-Wall"
37839 fi
37840
37841EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37842
0c3c69fc
VS
37843CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37844CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37845CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37846
37847
0c3c69fc 37848LIBS=`echo $LIBS`
a848cd7e
SC
37849EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37850EXTRALIBS_XML="$EXPAT_LINK"
37851EXTRALIBS_HTML="$MSPACK_LINK"
37852EXTRALIBS_ODBC="$ODBC_LINK"
37853if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37854 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37855fi
37856if test "$wxUSE_OPENGL" = "yes"; then
37857 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37858fi
37859
37860LDFLAGS="$LDFLAGS $PROFILE"
37861
37862if test "$wxUSE_GTK" = 1; then
37863 WXCONFIG_INCLUDE=
37864else
37865 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37866fi
37867
37868WXCONFIG_EXTRALIBS="$LIBS"
37869
37870if test "$wxUSE_REGEX" = "builtin" ; then
37871 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37872fi
37873if test "$wxUSE_EXPAT" = "builtin" ; then
37874 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37875fi
37876if test "$wxUSE_ODBC" = "builtin" ; then
37877 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37878fi
37879if test "$wxUSE_LIBTIFF" = "builtin" ; then
37880 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37881fi
37882if test "$wxUSE_LIBJPEG" = "builtin" ; then
37883 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37884fi
37885if test "$wxUSE_LIBPNG" = "builtin" ; then
37886 wxconfig_3rdparty="$wxconfig_3rdparty png"
37887fi
37888if test "$wxUSE_ZLIB" = "builtin" ; then
37889 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37890fi
37891if test "$wxUSE_ODBC" = "builtin" ; then
37892 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37893fi
37894
37895for i in $wxconfig_3rdparty ; do
37896 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37897done
37898
37899
37900if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37901 WXUNIV=1
37902else
37903 WXUNIV=0
37904fi
37905
37906
37907
37908
37909
37910
37911
37912
37913
37914if test $wxUSE_MONOLITHIC = "yes" ; then
37915 MONOLITHIC=1
37916else
37917 MONOLITHIC=0
37918fi
37919
37920if test $wxUSE_PLUGINS = "yes" ; then
37921 USE_PLUGINS=1
37922else
37923 USE_PLUGINS=0
37924fi
37925
37926if test $wxUSE_ODBC != "no" ; then
37927 USE_ODBC=1
37928else
37929 USE_ODBC=0
37930fi
37931
37932if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37933 OFFICIAL_BUILD=1
37934else
37935 OFFICIAL_BUILD=0
37936fi
37937
37938
37939
37940
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950
37951
37952
37953
37954
37955
37956
37957
37958TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37959
37960
37961
37962
37963
37964
37965
37966
4d4ff94c
VZ
37967case "$TOOLKIT" in
37968 GTK)
37969 TOOLKIT_USER="GTK+"
37970 if test "$WXGTK20" = 1; then
37971 TOOLKIT_USER="$TOOLKIT_USER 2"
37972 fi
9a8f0513 37973 ;;
4d4ff94c
VZ
37974
37975 *)
37976 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 37977 ;;
4d4ff94c 37978esac
a848cd7e 37979
9a8f0513 37980
a848cd7e
SC
37981 if test "x$BAKEFILE_HOST" = "x"; then
37982 BAKEFILE_HOST="${host}"
37983 fi
37984
37985 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37986
37987 if test -n "$ac_tool_prefix"; then
37988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37990echo "$as_me:$LINENO: checking for $ac_word" >&5
37991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37992if test "${ac_cv_prog_RANLIB+set}" = set; then
37993 echo $ECHO_N "(cached) $ECHO_C" >&6
37994else
37995 if test -n "$RANLIB"; then
37996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37997else
37998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37999for as_dir in $PATH
38000do
38001 IFS=$as_save_IFS
38002 test -z "$as_dir" && as_dir=.
38003 for ac_exec_ext in '' $ac_executable_extensions; do
38004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38007 break 2
38008 fi
38009done
38010done
38011
38012fi
38013fi
38014RANLIB=$ac_cv_prog_RANLIB
38015if test -n "$RANLIB"; then
38016 echo "$as_me:$LINENO: result: $RANLIB" >&5
38017echo "${ECHO_T}$RANLIB" >&6
38018else
38019 echo "$as_me:$LINENO: result: no" >&5
38020echo "${ECHO_T}no" >&6
38021fi
38022
38023fi
38024if test -z "$ac_cv_prog_RANLIB"; then
38025 ac_ct_RANLIB=$RANLIB
38026 # Extract the first word of "ranlib", so it can be a program name with args.
38027set dummy ranlib; ac_word=$2
38028echo "$as_me:$LINENO: checking for $ac_word" >&5
38029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38030if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38031 echo $ECHO_N "(cached) $ECHO_C" >&6
38032else
38033 if test -n "$ac_ct_RANLIB"; then
38034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38035else
38036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38037for as_dir in $PATH
38038do
38039 IFS=$as_save_IFS
38040 test -z "$as_dir" && as_dir=.
38041 for ac_exec_ext in '' $ac_executable_extensions; do
38042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38043 ac_cv_prog_ac_ct_RANLIB="ranlib"
38044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38045 break 2
38046 fi
38047done
38048done
38049
38050 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38051fi
38052fi
38053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38054if test -n "$ac_ct_RANLIB"; then
38055 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38056echo "${ECHO_T}$ac_ct_RANLIB" >&6
38057else
38058 echo "$as_me:$LINENO: result: no" >&5
38059echo "${ECHO_T}no" >&6
38060fi
38061
38062 RANLIB=$ac_ct_RANLIB
38063else
38064 RANLIB="$ac_cv_prog_RANLIB"
38065fi
38066
38067 # Find a good install program. We prefer a C program (faster),
38068# so one script is as good as another. But avoid the broken or
38069# incompatible versions:
38070# SysV /etc/install, /usr/sbin/install
38071# SunOS /usr/etc/install
38072# IRIX /sbin/install
38073# AIX /bin/install
38074# AmigaOS /C/install, which installs bootblocks on floppy discs
38075# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38076# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38077# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38078# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38079# ./install, which can be erroneously created by make from ./install.sh.
38080echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38081echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38082if test -z "$INSTALL"; then
38083if test "${ac_cv_path_install+set}" = set; then
38084 echo $ECHO_N "(cached) $ECHO_C" >&6
38085else
38086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38087for as_dir in $PATH
38088do
38089 IFS=$as_save_IFS
38090 test -z "$as_dir" && as_dir=.
38091 # Account for people who put trailing slashes in PATH elements.
38092case $as_dir/ in
38093 ./ | .// | /cC/* | \
38094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38096 /usr/ucb/* ) ;;
38097 *)
38098 # OSF1 and SCO ODT 3.0 have their own names for install.
38099 # Don't use installbsd from OSF since it installs stuff as root
38100 # by default.
38101 for ac_prog in ginstall scoinst install; do
38102 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38103 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38104 if test $ac_prog = install &&
38105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38106 # AIX install. It has an incompatible calling convention.
38107 :
38108 elif test $ac_prog = install &&
38109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38110 # program-specific install script used by HP pwplus--don't use.
38111 :
38112 else
38113 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38114 break 3
38115 fi
38116 fi
a848cd7e
SC
38117 done
38118 done
38119 ;;
38120esac
38121done
38122
38123
38124fi
38125 if test "${ac_cv_path_install+set}" = set; then
38126 INSTALL=$ac_cv_path_install
38127 else
38128 # As a last resort, use the slow shell script. We don't cache a
38129 # path for INSTALL within a source directory, because that will
38130 # break other packages using the cache if that directory is
38131 # removed, or if the path is relative.
38132 INSTALL=$ac_install_sh
38133 fi
38134fi
38135echo "$as_me:$LINENO: result: $INSTALL" >&5
38136echo "${ECHO_T}$INSTALL" >&6
38137
38138# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38139# It thinks the first close brace ends the variable substitution.
38140test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38141
38142test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38143
38144test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38145
38146 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38147echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38148LN_S=$as_ln_s
38149if test "$LN_S" = "ln -s"; then
38150 echo "$as_me:$LINENO: result: yes" >&5
38151echo "${ECHO_T}yes" >&6
38152else
38153 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38154echo "${ECHO_T}no, using $LN_S" >&6
38155fi
38156
38157
38158 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38159echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38160set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38161if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38162 echo $ECHO_N "(cached) $ECHO_C" >&6
38163else
38164 cat >conftest.make <<\_ACEOF
38165all:
38166 @echo 'ac_maketemp="$(MAKE)"'
38167_ACEOF
38168# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38169eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38170if test -n "$ac_maketemp"; then
38171 eval ac_cv_prog_make_${ac_make}_set=yes
38172else
38173 eval ac_cv_prog_make_${ac_make}_set=no
38174fi
38175rm -f conftest.make
38176fi
38177if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38178 echo "$as_me:$LINENO: result: yes" >&5
38179echo "${ECHO_T}yes" >&6
38180 SET_MAKE=
38181else
38182 echo "$as_me:$LINENO: result: no" >&5
38183echo "${ECHO_T}no" >&6
38184 SET_MAKE="MAKE=${MAKE-make}"
38185fi
38186
38187
38188
38189 if test -n "$ac_tool_prefix"; then
38190 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38191set dummy ${ac_tool_prefix}ar; ac_word=$2
38192echo "$as_me:$LINENO: checking for $ac_word" >&5
38193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38194if test "${ac_cv_prog_AR+set}" = set; then
38195 echo $ECHO_N "(cached) $ECHO_C" >&6
38196else
38197 if test -n "$AR"; then
38198 ac_cv_prog_AR="$AR" # Let the user override the test.
38199else
38200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38201for as_dir in $PATH
38202do
38203 IFS=$as_save_IFS
38204 test -z "$as_dir" && as_dir=.
38205 for ac_exec_ext in '' $ac_executable_extensions; do
38206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38207 ac_cv_prog_AR="${ac_tool_prefix}ar"
38208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38209 break 2
38210 fi
38211done
38212done
38213
38214fi
38215fi
38216AR=$ac_cv_prog_AR
38217if test -n "$AR"; then
38218 echo "$as_me:$LINENO: result: $AR" >&5
38219echo "${ECHO_T}$AR" >&6
38220else
38221 echo "$as_me:$LINENO: result: no" >&5
38222echo "${ECHO_T}no" >&6
38223fi
38224
38225fi
38226if test -z "$ac_cv_prog_AR"; then
38227 ac_ct_AR=$AR
38228 # Extract the first word of "ar", so it can be a program name with args.
38229set dummy ar; ac_word=$2
38230echo "$as_me:$LINENO: checking for $ac_word" >&5
38231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38232if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38233 echo $ECHO_N "(cached) $ECHO_C" >&6
38234else
38235 if test -n "$ac_ct_AR"; then
38236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38237else
38238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38239for as_dir in $PATH
38240do
38241 IFS=$as_save_IFS
38242 test -z "$as_dir" && as_dir=.
38243 for ac_exec_ext in '' $ac_executable_extensions; do
38244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38245 ac_cv_prog_ac_ct_AR="ar"
38246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38247 break 2
38248 fi
38249done
38250done
38251
38252 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38253fi
38254fi
38255ac_ct_AR=$ac_cv_prog_ac_ct_AR
38256if test -n "$ac_ct_AR"; then
38257 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38258echo "${ECHO_T}$ac_ct_AR" >&6
38259else
38260 echo "$as_me:$LINENO: result: no" >&5
38261echo "${ECHO_T}no" >&6
38262fi
38263
38264 AR=$ac_ct_AR
38265else
38266 AR="$ac_cv_prog_AR"
38267fi
38268
38269 if test -n "$ac_tool_prefix"; then
38270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38271set dummy ${ac_tool_prefix}strip; ac_word=$2
38272echo "$as_me:$LINENO: checking for $ac_word" >&5
38273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38274if test "${ac_cv_prog_STRIP+set}" = set; then
38275 echo $ECHO_N "(cached) $ECHO_C" >&6
38276else
38277 if test -n "$STRIP"; then
38278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38279else
38280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38281for as_dir in $PATH
38282do
38283 IFS=$as_save_IFS
38284 test -z "$as_dir" && as_dir=.
38285 for ac_exec_ext in '' $ac_executable_extensions; do
38286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38289 break 2
38290 fi
38291done
38292done
38293
38294fi
38295fi
38296STRIP=$ac_cv_prog_STRIP
38297if test -n "$STRIP"; then
38298 echo "$as_me:$LINENO: result: $STRIP" >&5
38299echo "${ECHO_T}$STRIP" >&6
38300else
38301 echo "$as_me:$LINENO: result: no" >&5
38302echo "${ECHO_T}no" >&6
38303fi
38304
38305fi
38306if test -z "$ac_cv_prog_STRIP"; then
38307 ac_ct_STRIP=$STRIP
38308 # Extract the first word of "strip", so it can be a program name with args.
38309set dummy strip; ac_word=$2
38310echo "$as_me:$LINENO: checking for $ac_word" >&5
38311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38312if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38313 echo $ECHO_N "(cached) $ECHO_C" >&6
38314else
38315 if test -n "$ac_ct_STRIP"; then
38316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38317else
38318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38319for as_dir in $PATH
38320do
38321 IFS=$as_save_IFS
38322 test -z "$as_dir" && as_dir=.
38323 for ac_exec_ext in '' $ac_executable_extensions; do
38324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38325 ac_cv_prog_ac_ct_STRIP="strip"
38326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38327 break 2
38328 fi
38329done
38330done
38331
38332 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38333fi
38334fi
38335ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38336if test -n "$ac_ct_STRIP"; then
38337 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38338echo "${ECHO_T}$ac_ct_STRIP" >&6
38339else
38340 echo "$as_me:$LINENO: result: no" >&5
38341echo "${ECHO_T}no" >&6
38342fi
38343
38344 STRIP=$ac_ct_STRIP
38345else
38346 STRIP="$ac_cv_prog_STRIP"
38347fi
38348
38349 if test -n "$ac_tool_prefix"; then
38350 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38351set dummy ${ac_tool_prefix}nm; ac_word=$2
38352echo "$as_me:$LINENO: checking for $ac_word" >&5
38353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38354if test "${ac_cv_prog_NM+set}" = set; then
38355 echo $ECHO_N "(cached) $ECHO_C" >&6
38356else
38357 if test -n "$NM"; then
38358 ac_cv_prog_NM="$NM" # Let the user override the test.
38359else
38360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38361for as_dir in $PATH
38362do
38363 IFS=$as_save_IFS
38364 test -z "$as_dir" && as_dir=.
38365 for ac_exec_ext in '' $ac_executable_extensions; do
38366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38367 ac_cv_prog_NM="${ac_tool_prefix}nm"
38368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38369 break 2
38370 fi
38371done
38372done
38373
38374fi
38375fi
38376NM=$ac_cv_prog_NM
38377if test -n "$NM"; then
38378 echo "$as_me:$LINENO: result: $NM" >&5
38379echo "${ECHO_T}$NM" >&6
38380else
38381 echo "$as_me:$LINENO: result: no" >&5
38382echo "${ECHO_T}no" >&6
38383fi
38384
38385fi
38386if test -z "$ac_cv_prog_NM"; then
38387 ac_ct_NM=$NM
38388 # Extract the first word of "nm", so it can be a program name with args.
38389set dummy nm; ac_word=$2
38390echo "$as_me:$LINENO: checking for $ac_word" >&5
38391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38392if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38393 echo $ECHO_N "(cached) $ECHO_C" >&6
38394else
38395 if test -n "$ac_ct_NM"; then
38396 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38397else
38398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38399for as_dir in $PATH
38400do
38401 IFS=$as_save_IFS
38402 test -z "$as_dir" && as_dir=.
38403 for ac_exec_ext in '' $ac_executable_extensions; do
38404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38405 ac_cv_prog_ac_ct_NM="nm"
38406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38407 break 2
38408 fi
38409done
38410done
38411
38412 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38413fi
38414fi
38415ac_ct_NM=$ac_cv_prog_ac_ct_NM
38416if test -n "$ac_ct_NM"; then
38417 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38418echo "${ECHO_T}$ac_ct_NM" >&6
38419else
38420 echo "$as_me:$LINENO: result: no" >&5
38421echo "${ECHO_T}no" >&6
38422fi
38423
38424 NM=$ac_ct_NM
38425else
38426 NM="$ac_cv_prog_NM"
38427fi
38428
38429
38430 case ${BAKEFILE_HOST} in
38431 *-hp-hpux* )
9a8f0513 38432 INSTALL_DIR="mkdir"
a848cd7e
SC
38433 ;;
38434 *) INSTALL_DIR="$INSTALL -d"
38435 ;;
38436 esac
38437
38438
38439 LDFLAGS_GUI=
38440 case ${BAKEFILE_HOST} in
38441 *-*-cygwin* | *-*-mingw32* )
38442 LDFLAGS_GUI="-mwindows"
38443 esac
38444
38445
38446 fi
38447
38448 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38449echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38450if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38451 echo $ECHO_N "(cached) $ECHO_C" >&6
38452else
38453
38454 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38455 egrep -s GNU > /dev/null); then
38456 bakefile_cv_prog_makeisgnu="yes"
38457 else
38458 bakefile_cv_prog_makeisgnu="no"
38459 fi
38460
38461fi
38462echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38463echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38464
38465 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38466 IF_GNU_MAKE=""
38467 else
38468 IF_GNU_MAKE="#"
38469 fi
38470
38471
38472
38473 PLATFORM_UNIX=0
38474 PLATFORM_WIN32=0
38475 PLATFORM_MSDOS=0
38476 PLATFORM_MAC=0
38477 PLATFORM_MACOSX=0
38478 PLATFORM_OS2=0
38479
38480 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38481 case "${BAKEFILE_HOST}" in
38482 *-*-cygwin* | *-*-mingw32* )
38483 PLATFORM_WIN32=1
38484 ;;
38485 *-pc-msdosdjgpp )
38486 PLATFORM_MSDOS=1
38487 ;;
38488 *-pc-os2_emx | *-pc-os2-emx )
38489 PLATFORM_OS2=1
38490 ;;
38491 powerpc-*-darwin* )
38492 PLATFORM_MAC=1
38493 PLATFORM_MACOSX=1
38494 ;;
38495 * )
38496 PLATFORM_UNIX=1
38497 ;;
38498 esac
38499 else
38500 case "$BAKEFILE_FORCE_PLATFORM" in
38501 win32 )
38502 PLATFORM_WIN32=1
38503 ;;
38504 msdos )
38505 PLATFORM_MSDOS=1
38506 ;;
38507 os2 )
38508 PLATFORM_OS2=1
38509 ;;
38510 darwin )
38511 PLATFORM_MAC=1
38512 PLATFORM_MACOSX=1
38513 ;;
38514 unix )
38515 PLATFORM_UNIX=1
38516 ;;
38517 * )
38518 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38519echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38520 { (exit 1); exit 1; }; }
38521 ;;
38522 esac
38523 fi
38524
38525
38526
38527
38528
38529
38530
38531
38532
38533 # Check whether --enable-omf or --disable-omf was given.
38534if test "${enable_omf+set}" = set; then
38535 enableval="$enable_omf"
38536 bk_os2_use_omf="$enableval"
38537fi;
38538
38539 case "${BAKEFILE_HOST}" in
38540 *-*-darwin* )
38541 CFLAGS="$CFLAGS -fno-common"
38542 CXXFLAGS="$CXXFLAGS -fno-common"
38543 ;;
38544
38545 *-pc-os2_emx | *-pc-os2-emx )
38546 if test "x$bk_os2_use_omf" = "xyes" ; then
38547 AR=emxomfar
38548 RANLIB=:
38549 LDFLAGS="-Zomf $LDFLAGS"
38550 CFLAGS="-Zomf $CFLAGS"
38551 CXXFLAGS="-Zomf $CXXFLAGS"
38552 OS2_LIBEXT="lib"
38553 else
38554 OS2_LIBEXT="a"
38555 fi
38556 ;;
38557 esac
38558
38559
38560 SO_SUFFIX="so"
38561 SO_SUFFIX_MODULE="so"
38562 EXEEXT=""
38563 LIBPREFIX="lib"
38564 LIBEXT=".a"
38565 DLLPREFIX="lib"
38566 DLLPREFIX_MODULE=""
38567 DLLIMP_SUFFIX=""
38568
38569 case "${BAKEFILE_HOST}" in
38570 *-hp-hpux* )
38571 SO_SUFFIX="sl"
38572 SO_SUFFIX_MODULE="sl"
38573 ;;
38574 *-*-aix* )
38575 SO_SUFFIX="a"
38576 SO_SUFFIX_MODULE="a"
38577 ;;
38578 *-*-cygwin* | *-*-mingw32* )
38579 SO_SUFFIX="dll"
38580 SO_SUFFIX_MODULE="dll"
38581 DLLIMP_SUFFIX="dll.a"
38582 EXEEXT=".exe"
38583 DLLPREFIX=""
38584 ;;
38585 *-pc-msdosdjgpp )
38586 EXEEXT=".exe"
38587 DLLPREFIX=""
38588 ;;
38589 *-pc-os2_emx | *-pc-os2-emx )
38590 SO_SUFFIX="dll"
38591 SO_SUFFIX_MODULE="dll"
38592 DLLIMP_SUFFIX=$OS2_LIBEXT
38593 EXEEXT=".exe"
38594 DLLPREFIX=""
38595 LIBPREFIX=""
38596 LIBEXT=".$OS2_LIBEXT"
38597 ;;
38598 powerpc-*-darwin* )
38599 SO_SUFFIX="dylib"
38600 SO_SUFFIX_MODULE="bundle"
38601 ;;
38602 esac
38603
38604 if test "x$DLLIMP_SUFFIX" = "x" ; then
38605 DLLIMP_SUFFIX="$SO_SUFFIX"
38606 fi
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618 SHARED_LD_CC="\$(CC) -shared -o"
38619 SHARED_LD_CXX="\$(CXX) -shared -o"
38620
38621 if test "x$GCC" = "xyes"; then
38622 PIC_FLAG="-fPIC"
38623 fi
38624
38625 case "${BAKEFILE_HOST}" in
38626 *-hp-hpux* )
38627 if test "x$GCC" = "xyes"; then
38628 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38629 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38630 else
38631 LDFLAGS="$LDFLAGS -L/usr/lib"
38632
38633 SHARED_LD_CC="${CC} -b -o"
38634 SHARED_LD_CXX="${CXX} -b -o"
38635 PIC_FLAG="+Z"
38636 fi
38637 ;;
38638
38639 *-*-linux* )
38640 if test "x$GCC" != "xyes"; then
38641 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38642echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38643if test "${bakefile_cv_prog_icc+set}" = set; then
38644 echo $ECHO_N "(cached) $ECHO_C" >&6
38645else
38646
38647 cat >conftest.$ac_ext <<_ACEOF
38648/* confdefs.h. */
38649_ACEOF
38650cat confdefs.h >>conftest.$ac_ext
38651cat >>conftest.$ac_ext <<_ACEOF
38652/* end confdefs.h. */
38653
38654int
38655main ()
38656{
38657
38658 #ifndef __INTEL_COMPILER
38659 #error Not icc
38660 #endif
38661
38662 ;
38663 return 0;
38664}
38665_ACEOF
38666rm -f conftest.$ac_objext
38667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38668 (eval $ac_compile) 2>conftest.er1
a848cd7e 38669 ac_status=$?
ac1cb8d3
VS
38670 grep -v '^ *+' conftest.er1 >conftest.err
38671 rm -f conftest.er1
38672 cat conftest.err >&5
a848cd7e
SC
38673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38674 (exit $ac_status); } &&
9a8f0513
VS
38675 { ac_try='test -z "$ac_c_werror_flag"
38676 || test ! -s conftest.err'
ac1cb8d3
VS
38677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38678 (eval $ac_try) 2>&5
38679 ac_status=$?
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); }; } &&
38682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38684 (eval $ac_try) 2>&5
38685 ac_status=$?
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); }; }; then
38688 bakefile_cv_prog_icc=yes
38689else
38690 echo "$as_me: failed program was:" >&5
38691sed 's/^/| /' conftest.$ac_ext >&5
38692
38693bakefile_cv_prog_icc=no
38694
38695fi
ac1cb8d3 38696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38697
38698fi
38699echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38700echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38701 if test "$bakefile_cv_prog_icc" = "yes"; then
38702 PIC_FLAG="-KPIC"
38703 fi
38704 fi
38705 ;;
38706
38707 *-*-solaris2* )
38708 if test "x$GCC" != xyes ; then
38709 SHARED_LD_CC="${CC} -G -o"
38710 SHARED_LD_CXX="${CXX} -G -o"
38711 PIC_FLAG="-KPIC"
38712 fi
38713 ;;
38714
38715 *-*-darwin* )
38716
38717 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38718echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38719if test "${wx_cv_gcc31+set}" = set; then
38720 echo $ECHO_N "(cached) $ECHO_C" >&6
38721else
38722
38723 cat >conftest.$ac_ext <<_ACEOF
38724/* confdefs.h. */
38725_ACEOF
38726cat confdefs.h >>conftest.$ac_ext
38727cat >>conftest.$ac_ext <<_ACEOF
38728/* end confdefs.h. */
38729
38730int
38731main ()
38732{
38733
38734 #if (__GNUC__ < 3) || \
38735 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38736 #error old gcc
38737 #endif
38738
38739 ;
38740 return 0;
38741}
38742_ACEOF
38743rm -f conftest.$ac_objext
38744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38745 (eval $ac_compile) 2>conftest.er1
a848cd7e 38746 ac_status=$?
ac1cb8d3
VS
38747 grep -v '^ *+' conftest.er1 >conftest.err
38748 rm -f conftest.er1
38749 cat conftest.err >&5
a848cd7e
SC
38750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); } &&
9a8f0513
VS
38752 { ac_try='test -z "$ac_c_werror_flag"
38753 || test ! -s conftest.err'
ac1cb8d3
VS
38754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38755 (eval $ac_try) 2>&5
38756 ac_status=$?
38757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38758 (exit $ac_status); }; } &&
38759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38761 (eval $ac_try) 2>&5
38762 ac_status=$?
38763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764 (exit $ac_status); }; }; then
38765
38766 wx_cv_gcc31=yes
38767
38768else
38769 echo "$as_me: failed program was:" >&5
38770sed 's/^/| /' conftest.$ac_ext >&5
38771
38772
38773 wx_cv_gcc31=no
38774
38775
38776fi
ac1cb8d3 38777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38778
38779fi
38780echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38781echo "${ECHO_T}$wx_cv_gcc31" >&6
38782 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38783
38784D='$'
38785cat <<EOF >shared-ld-sh
a848cd7e
SC
38786#!/bin/sh
38787#-----------------------------------------------------------------------------
38788#-- Name: distrib/mac/shared-ld-sh
38789#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38790#-- Author: Gilles Depeyrot
38791#-- Copyright: (c) 2002 Gilles Depeyrot
38792#-- Licence: any use permitted
38793#-----------------------------------------------------------------------------
38794
38795verbose=0
38796args=""
38797objects=""
38798linking_flag="-dynamiclib"
38799
473276a9
VS
38800while test ${D}# -gt 0; do
38801 case ${D}1 in
a848cd7e
SC
38802
38803 -v)
38804 verbose=1
38805 ;;
38806
38807 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38808 # collect these options and values
473276a9 38809 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38810 shift
38811 ;;
38812
38813 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38814 # collect these options
473276a9 38815 args="${D}{args} ${D}1"
a848cd7e
SC
38816 ;;
38817
38818 -dynamiclib|-bundle)
473276a9 38819 linking_flag="${D}1"
a848cd7e
SC
38820 ;;
38821
38822 -*)
473276a9 38823 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38824 exit 1
38825 ;;
38826
38827 *.o | *.a | *.dylib)
38828 # collect object files
473276a9 38829 objects="${D}{objects} ${D}1"
a848cd7e
SC
38830 ;;
38831
38832 *)
473276a9 38833 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38834 exit 1
38835 ;;
38836
38837 esac
38838 shift
38839done
38840
38841#
38842# Link one module containing all the others
38843#
473276a9
VS
38844if test ${D}{verbose} = 1; then
38845 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38846fi
473276a9
VS
38847c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38848status=${D}?
38849if test ${D}{status} != 0; then
38850 exit ${D}{status}
a848cd7e
SC
38851fi
38852
38853#
38854# Link the shared library from the single module created
38855#
473276a9
VS
38856if test ${D}{verbose} = 1; then
38857 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38858fi
473276a9
VS
38859c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38860status=${D}?
38861if test ${D}{status} != 0; then
38862 exit ${D}{status}
a848cd7e
SC
38863fi
38864
38865#
38866# Remove intermediate module
38867#
473276a9 38868rm -f master.${D}${D}.o
a848cd7e
SC
38869
38870exit 0
38871EOF
473276a9 38872
a848cd7e
SC
38873 chmod +x shared-ld-sh
38874
38875 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38876 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38877 SHARED_LD_CXX="$SHARED_LD_CC"
38878 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38879 else
38880 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38881 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38882 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38883 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38884 fi
38885
38886 PIC_FLAG="-dynamic -fPIC"
38887 ;;
38888
38889 *-*-aix* )
38890 if test "x$GCC" != "xyes"; then
38891 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38892set dummy makeC++SharedLib; ac_word=$2
38893echo "$as_me:$LINENO: checking for $ac_word" >&5
38894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38895if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38896 echo $ECHO_N "(cached) $ECHO_C" >&6
38897else
38898 if test -n "$AIX_CXX_LD"; then
38899 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38900else
38901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38902for as_dir in $PATH
38903do
38904 IFS=$as_save_IFS
38905 test -z "$as_dir" && as_dir=.
38906 for ac_exec_ext in '' $ac_executable_extensions; do
38907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38908 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38910 break 2
38911 fi
38912done
38913done
38914
38915 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38916fi
38917fi
38918AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38919if test -n "$AIX_CXX_LD"; then
38920 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38921echo "${ECHO_T}$AIX_CXX_LD" >&6
38922else
38923 echo "$as_me:$LINENO: result: no" >&5
38924echo "${ECHO_T}no" >&6
38925fi
38926
38927 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38928 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38929 fi
38930 ;;
38931
38932 *-*-beos* )
38933 SHARED_LD_CC="${LD} -shared -o"
38934 SHARED_LD_CXX="${LD} -shared -o"
38935 ;;
38936
38937 *-*-irix* )
38938 if test "x$GCC" != "xyes"; then
38939 PIC_FLAG="-KPIC"
38940 fi
38941 ;;
38942
38943 *-*-cygwin* | *-*-mingw32* )
38944 PIC_FLAG=""
38945 ;;
38946
38947 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38948 SHARED_LD_CC="`pwd`/dllar.sh -o"
38949 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38950 PIC_FLAG=""
473276a9
VS
38951
38952D='$'
38953cat <<EOF >dllar.sh
38954#!/bin/sh
38955#
38956# dllar - a tool to build both a .dll and an .a file
38957# from a set of object (.o) files for EMX/OS2.
38958#
38959# Written by Andrew Zabolotny, bit@freya.etu.ru
38960# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38961#
38962# This script will accept a set of files on the command line.
38963# All the public symbols from the .o files will be exported into
38964# a .DEF file, then linker will be run (through gcc) against them to
38965# build a shared library consisting of all given .o files. All libraries
38966# (.a) will be first decompressed into component .o files then act as
38967# described above. You can optionally give a description (-d "description")
38968# which will be put into .DLL. To see the list of accepted options (as well
38969# as command-line format) simply run this program without options. The .DLL
38970# is built to be imported by name (there is no guarantee that new versions
38971# of the library you build will have same ordinals for same symbols).
38972#
38973# dllar is free software; you can redistribute it and/or modify
38974# it under the terms of the GNU General Public License as published by
38975# the Free Software Foundation; either version 2, or (at your option)
38976# any later version.
38977#
38978# dllar is distributed in the hope that it will be useful,
38979# but WITHOUT ANY WARRANTY; without even the implied warranty of
38980# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38981# GNU General Public License for more details.
38982#
38983# You should have received a copy of the GNU General Public License
38984# along with dllar; see the file COPYING. If not, write to the Free
38985# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38986# 02111-1307, USA.
38987
38988# To successfuly run this program you will need:
38989# - Current drive should have LFN support (HPFS, ext2, network, etc)
38990# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38991# - gcc
38992# (used to build the .dll)
38993# - emxexp
38994# (used to create .def file from .o files)
38995# - emximp
38996# (used to create .a file from .def file)
38997# - GNU text utilites (cat, sort, uniq)
38998# used to process emxexp output
38999# - GNU file utilities (mv, rm)
39000# - GNU sed
39001# - lxlite (optional, see flag below)
39002# (used for general .dll cleanup)
39003#
39004
39005flag_USE_LXLITE=1;
39006
39007#
39008# helper functions
39009# basnam, variant of basename, which does _not_ remove the path, _iff_
39010# second argument (suffix to remove) is given
39011basnam(){
39012 case ${D}# in
39013 1)
39014 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39015 ;;
39016 2)
39017 echo ${D}1 | sed 's/'${D}2'${D}//'
39018 ;;
39019 *)
39020 echo "error in basnam ${D}*"
39021 exit 8
39022 ;;
39023 esac
39024}
39025
39026# Cleanup temporary files and output
39027CleanUp() {
39028 cd ${D}curDir
39029 for i in ${D}inputFiles ; do
39030 case ${D}i in
39031 *!)
39032 rm -rf \`basnam ${D}i !\`
39033 ;;
39034 *)
39035 ;;
39036 esac
39037 done
39038
39039 # Kill result in case of failure as there is just to many stupid make/nmake
39040 # things out there which doesn't do this.
2057db16 39041 if [] ${D}# -eq 0 []; then
473276a9
VS
39042 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39043 fi
39044}
39045
39046# Print usage and exit script with rc=1.
39047PrintHelp() {
2057db16
VS
39048 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
39049 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
39050 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
39051 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
39052 echo ' []*.o[] []*.a[]'
473276a9
VS
39053 echo '*> "output_file" should have no extension.'
39054 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39055 echo ' The import library name is derived from this and is set to "name".a,'
39056 echo ' unless overridden by -import'
39057 echo '*> "importlib_name" should have no extension.'
39058 echo ' If it has the .o, or .a extension, it is automatically removed.'
39059 echo ' This name is used as the import library name and may be longer and'
39060 echo ' more descriptive than the DLL name which has to follow the old '
39061 echo ' 8.3 convention of FAT.'
39062 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39063 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39064 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
39065 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
39066 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
39067 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39068 echo ' If the last character of a symbol is "*", all symbols beginning'
39069 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 39070 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39071 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 39072 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 39073 echo ' C runtime DLLs.'
2057db16 39074 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39075 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39076 echo ' unchanged to GCC at the end of command line.'
39077 echo '*> If you create a DLL from a library and you do not specify -o,'
39078 echo ' the basename for DLL and import library will be set to library name,'
39079 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39080 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39081 echo ' library will be renamed into gcc_s.a.'
39082 echo '--------'
39083 echo 'Example:'
39084 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39085 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39086 CleanUp
39087 exit 1
39088}
39089
39090# Execute a command.
39091# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39092# @Uses Whatever CleanUp() uses.
39093doCommand() {
39094 echo "${D}*"
39095 eval ${D}*
39096 rcCmd=${D}?
39097
2057db16 39098 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
39099 echo "command failed, exit code="${D}rcCmd
39100 CleanUp
39101 exit ${D}rcCmd
39102 fi
39103}
39104
39105# main routine
39106# setup globals
39107cmdLine=${D}*
39108outFile=""
39109outimpFile=""
39110inputFiles=""
39111description=""
39112CC=gcc.exe
39113CFLAGS="-s -Zcrtdll"
39114EXTRA_CFLAGS=""
39115EXPORT_BY_ORDINALS=0
39116exclude_symbols=""
39117library_flags=""
39118curDir=\`pwd\`
39119curDirS=curDir
39120case ${D}curDirS in
39121*/)
39122 ;;
39123*)
39124 curDirS=${D}{curDirS}"/"
39125 ;;
39126esac
39127# Parse commandline
39128libsToLink=0
2057db16 39129while [] ${D}1 []; do
473276a9
VS
39130 case ${D}1 in
39131 -ord*)
39132 EXPORT_BY_ORDINALS=1;
39133 ;;
39134 -o*)
39135 shift
39136 outFile=${D}1
39137 ;;
39138 -i*)
39139 shift
39140 outimpFile=${D}1
39141 ;;
39142 -d*)
39143 shift
39144 description=${D}1
39145 ;;
39146 -f*)
39147 shift
39148 CFLAGS=${D}1
39149 ;;
39150 -c*)
39151 shift
39152 CC=${D}1
39153 ;;
39154 -h*)
39155 PrintHelp
39156 ;;
39157 -ex*)
39158 shift
39159 exclude_symbols=${D}{exclude_symbols}${D}1" "
39160 ;;
39161 -libf*)
39162 shift
39163 library_flags=${D}{library_flags}${D}1" "
39164 ;;
39165 -nocrt*)
39166 CFLAGS="-s"
39167 ;;
39168 -nolxl*)
39169 flag_USE_LXLITE=0
39170 ;;
39171 -* | /*)
39172 case ${D}1 in
39173 -L* | -l*)
39174 libsToLink=1
39175 ;;
39176 *)
39177 ;;
39178 esac
39179 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39180 ;;
39181 *)
39182 found=0;
2057db16 39183 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39184 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39185 else
39186 for file in ${D}1 ; do
2057db16 39187 if [] -f ${D}file []; then
473276a9
VS
39188 inputFiles="${D}{inputFiles} ${D}file"
39189 found=1
39190 fi
39191 done
2057db16 39192 if [] ${D}found -eq 0 []; then
473276a9
VS
39193 echo "ERROR: No file(s) found: "${D}1
39194 exit 8
39195 fi
39196 fi
39197 ;;
39198 esac
39199 shift
39200done # iterate cmdline words
39201
39202#
2057db16 39203if [] -z "${D}inputFiles" []; then
473276a9
VS
39204 echo "dllar: no input files"
39205 PrintHelp
39206fi
39207
39208# Now extract all .o files from .a files
39209newInputFiles=""
39210for file in ${D}inputFiles ; do
39211 case ${D}file in
39212 *.a | *.lib)
39213 case ${D}file in
39214 *.a)
39215 suffix=".a"
39216 AR="ar"
39217 ;;
39218 *.lib)
39219 suffix=".lib"
39220 AR="emxomfar"
39221 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39222 ;;
39223 *)
39224 ;;
39225 esac
39226 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39227 mkdir ${D}dirname
2057db16 39228 if [] ${D}? -ne 0 []; then
473276a9
VS
39229 echo "Failed to create subdirectory ./${D}dirname"
39230 CleanUp
39231 exit 8;
39232 fi
39233 # Append '!' to indicate archive
39234 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39235 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39236 cd ${D}curDir
39237 found=0;
39238 for subfile in ${D}dirname/*.o* ; do
2057db16 39239 if [] -f ${D}subfile []; then
473276a9 39240 found=1
2057db16 39241 if [] -s ${D}subfile []; then
473276a9
VS
39242 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39243 newInputFiles="${D}newInputFiles ${D}subfile"
39244 fi
39245 fi
39246 done
2057db16 39247 if [] ${D}found -eq 0 []; then
473276a9
VS
39248 echo "WARNING: there are no files in archive \'${D}file\'"
39249 fi
39250 ;;
39251 *)
39252 newInputFiles="${D}{newInputFiles} ${D}file"
39253 ;;
39254 esac
39255done
39256inputFiles="${D}newInputFiles"
39257
39258# Output filename(s).
39259do_backup=0;
2057db16 39260if [] -z ${D}outFile []; then
473276a9
VS
39261 do_backup=1;
39262 set outFile ${D}inputFiles; outFile=${D}2
39263fi
39264
39265# If it is an archive, remove the '!' and the '_%' suffixes
39266case ${D}outFile in
39267*_%!)
39268 outFile=\`basnam ${D}outFile _%!\`
39269 ;;
39270*)
39271 ;;
39272esac
39273case ${D}outFile in
39274*.dll)
39275 outFile=\`basnam ${D}outFile .dll\`
39276 ;;
39277*.DLL)
39278 outFile=\`basnam ${D}outFile .DLL\`
39279 ;;
39280*.o)
39281 outFile=\`basnam ${D}outFile .o\`
39282 ;;
39283*.obj)
39284 outFile=\`basnam ${D}outFile .obj\`
39285 ;;
39286*.a)
39287 outFile=\`basnam ${D}outFile .a\`
39288 ;;
39289*.lib)
39290 outFile=\`basnam ${D}outFile .lib\`
39291 ;;
39292*)
39293 ;;
39294esac
39295case ${D}outimpFile in
39296*.a)
39297 outimpFile=\`basnam ${D}outimpFile .a\`
39298 ;;
39299*.lib)
39300 outimpFile=\`basnam ${D}outimpFile .lib\`
39301 ;;
39302*)
39303 ;;
39304esac
2057db16 39305if [] -z ${D}outimpFile []; then
473276a9
VS
39306 outimpFile=${D}outFile
39307fi
39308defFile="${D}{outFile}.def"
39309arcFile="${D}{outimpFile}.a"
39310arcFile2="${D}{outimpFile}.lib"
39311dllFile="${D}outFile"
39312# Add suffix to dllFile later, first we need a version to use as
39313# name in .def file.
39314
2057db16
VS
39315if [] ${D}do_backup -ne 0 [] ; then
39316 if [] -f ${D}arcFile [] ; then
473276a9
VS
39317 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39318 fi
2057db16 39319 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39320 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39321 fi
39322fi
39323
39324# Extract public symbols from all the object files.
39325tmpdefFile=${D}{defFile}_%
39326rm -f ${D}tmpdefFile
39327for file in ${D}inputFiles ; do
39328 case ${D}file in
39329 *!)
39330 ;;
39331 *)
39332 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39333 ;;
39334 esac
39335done
39336
39337# Create the def file.
39338rm -f ${D}defFile
39339echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39340dllFile="${D}dllFile.dll"
2057db16 39341if [] -n ${D}description []; then
473276a9
VS
39342 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39343fi
39344echo "EXPORTS" >> ${D}defFile
39345
39346doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39347grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39348
39349# Checks if the export is ok or not.
39350for word in ${D}exclude_symbols; do
39351 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39352 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39353done
39354
39355
2057db16 39356if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39357 sed "=" < ${D}tmpdefFile | \
39358 sed '
39359 N
39360 : loop
2057db16 39361 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39362 t loop
39363 ' > ${D}{tmpdefFile}%
39364 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39365else
39366 rm -f ${D}{tmpdefFile}%
39367fi
39368cat ${D}tmpdefFile >> ${D}defFile
39369rm -f ${D}tmpdefFile
39370
39371# Do linking, create implib, and apply lxlite.
39372gccCmdl="";
39373for file in ${D}inputFiles ; do
39374 case ${D}file in
39375 *!)
39376 ;;
39377 *)
39378 gccCmdl="${D}gccCmdl ${D}file"
39379 ;;
39380 esac
39381done
39382doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39383touch "${D}{outFile}.dll"
39384
39385doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39386if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39387 add_flags="";
2057db16 39388 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39389 add_flags="-ynd"
39390 fi
39391 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39392fi
39393doCommand "emxomf -s -l ${D}arcFile"
39394
39395# Successful exit.
39396CleanUp 1
39397exit 0
39398EOF
39399
39400 chmod +x dllar.sh
a848cd7e
SC
39401 ;;
39402
39403 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39404 *-*-sunos4* | \
39405 *-*-osf* | \
39406 *-*-dgux5* | \
39407 *-*-sysv5* )
39408 ;;
39409
39410 *)
39411 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39412echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39413 { (exit 1); exit 1; }; }
39414 esac
39415
2057db16
VS
39416 if test "x$PIC_FLAG" != "x" ; then
39417 PIC_FLAG="$PIC_FLAG -DPIC"
39418 fi
39419
a848cd7e
SC
39420 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39421 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39422 fi
39423 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39424 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39425 fi
39426
39427
39428
39429
39430
39431
39432
39433
39434 USE_SOVERSION=0
39435 USE_SOVERLINUX=0
39436 USE_SOVERSOLARIS=0
39437 USE_SOSYMLINKS=0
39438 USE_MACVERSION=0
39439 SONAME_FLAG=
39440
39441 case "${BAKEFILE_HOST}" in
39442 *-*-linux* )
39443 SONAME_FLAG="-Wl,-soname,"
39444 USE_SOVERSION=1
39445 USE_SOVERLINUX=1
39446 USE_SOSYMLINKS=1
39447 ;;
39448
39449 *-*-solaris2* )
39450 SONAME_FLAG="-h "
39451 USE_SOVERSION=1
39452 USE_SOVERSOLARIS=1
39453 USE_SOSYMLINKS=1
39454 ;;
39455
39456 *-*-darwin* )
39457 USE_MACVERSION=1
39458 USE_SOVERSION=1
39459 USE_SOSYMLINKS=1
39460 ;;
39461 esac
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39472echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39473 DEPS_TRACKING=0
39474
39475 if test "x$GCC" = "xyes"; then
39476 DEPSMODE=gcc
39477 DEPS_TRACKING=1
39478 case "${BAKEFILE_HOST}" in
39479 powerpc-*-darwin* )
39480 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39481 ;;
39482 * )
39483 DEPSFLAG_GCC="-MMD"
39484 ;;
39485 esac
39486 echo "$as_me:$LINENO: result: gcc" >&5
39487echo "${ECHO_T}gcc" >&6
39488 else
39489 echo "$as_me:$LINENO: result: none" >&5
39490echo "${ECHO_T}none" >&6
39491 fi
39492
39493 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39494
39495D='$'
39496cat <<EOF >bk-deps
a848cd7e
SC
39497#!/bin/sh
39498
39499# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39500# script. It is used to track C/C++ files dependencies in portable way.
39501#
39502# Permission is given to use this file in any way.
39503
473276a9 39504DEPSMODE=${DEPSMODE}
a848cd7e 39505DEPSDIR=.deps
473276a9 39506DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39507
473276a9 39508mkdir -p ${D}DEPSDIR
a848cd7e 39509
473276a9
VS
39510if test ${D}DEPSMODE = gcc ; then
39511 ${D}* ${D}{DEPSFLAG_GCC}
39512 status=${D}?
39513 if test ${D}{status} != 0 ; then
39514 exit ${D}{status}
a848cd7e
SC
39515 fi
39516 # move created file to the location we want it in:
473276a9
VS
39517 while test ${D}# -gt 0; do
39518 case "${D}1" in
a848cd7e
SC
39519 -o )
39520 shift
473276a9 39521 objfile=${D}1
a848cd7e
SC
39522 ;;
39523 -* )
39524 ;;
39525 * )
473276a9 39526 srcfile=${D}1
a848cd7e
SC
39527 ;;
39528 esac
39529 shift
39530 done
473276a9
VS
39531 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39532 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39533 if test -f ${D}depfile ; then
39534 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39535 rm -f ${D}depfile
a848cd7e 39536 else
473276a9
VS
39537 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39538 if test -f ${D}depfile ; then
39539 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39540 rm -f ${D}depfile
a848cd7e
SC
39541 fi
39542 fi
39543 exit 0
39544else
473276a9
VS
39545 ${D}*
39546 exit ${D}?
a848cd7e
SC
39547fi
39548EOF
473276a9 39549
a848cd7e
SC
39550 chmod +x bk-deps
39551 fi
39552
39553
39554
39555
39556 RESCOMP=
39557 SETFILE=
39558
39559 case ${BAKEFILE_HOST} in
39560 *-*-cygwin* | *-*-mingw32* )
39561 if test "$build" != "$host" ; then
39562 RESCOMP=$host_alias-windres
39563 else
39564 # Extract the first word of "windres", so it can be a program name with args.
39565set dummy windres; ac_word=$2
39566echo "$as_me:$LINENO: checking for $ac_word" >&5
39567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39568if test "${ac_cv_prog_RESCOMP+set}" = set; then
39569 echo $ECHO_N "(cached) $ECHO_C" >&6
39570else
39571 if test -n "$RESCOMP"; then
39572 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39573else
39574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39575for as_dir in $PATH
39576do
39577 IFS=$as_save_IFS
39578 test -z "$as_dir" && as_dir=.
39579 for ac_exec_ext in '' $ac_executable_extensions; do
39580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39581 ac_cv_prog_RESCOMP="windres"
39582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39583 break 2
39584 fi
39585done
39586done
39587
39588 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39589fi
39590fi
39591RESCOMP=$ac_cv_prog_RESCOMP
39592if test -n "$RESCOMP"; then
39593 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39594echo "${ECHO_T}$RESCOMP" >&6
39595else
39596 echo "$as_me:$LINENO: result: no" >&5
39597echo "${ECHO_T}no" >&6
39598fi
39599
39600 fi
39601 ;;
39602
39603 *-*-darwin* )
39604 # Extract the first word of "Rez", so it can be a program name with args.
39605set dummy Rez; ac_word=$2
39606echo "$as_me:$LINENO: checking for $ac_word" >&5
39607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39608if test "${ac_cv_prog_RESCOMP+set}" = set; then
39609 echo $ECHO_N "(cached) $ECHO_C" >&6
39610else
39611 if test -n "$RESCOMP"; then
39612 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39613else
39614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39615for as_dir in $PATH
39616do
39617 IFS=$as_save_IFS
39618 test -z "$as_dir" && as_dir=.
39619 for ac_exec_ext in '' $ac_executable_extensions; do
39620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39621 ac_cv_prog_RESCOMP="Rez"
39622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39623 break 2
39624 fi
39625done
39626done
39627
39628 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39629fi
39630fi
39631RESCOMP=$ac_cv_prog_RESCOMP
39632if test -n "$RESCOMP"; then
39633 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39634echo "${ECHO_T}$RESCOMP" >&6
39635else
39636 echo "$as_me:$LINENO: result: no" >&5
39637echo "${ECHO_T}no" >&6
39638fi
39639
39640 # Extract the first word of "SetFile", so it can be a program name with args.
39641set dummy SetFile; ac_word=$2
39642echo "$as_me:$LINENO: checking for $ac_word" >&5
39643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39644if test "${ac_cv_prog_SETFILE+set}" = set; then
39645 echo $ECHO_N "(cached) $ECHO_C" >&6
39646else
39647 if test -n "$SETFILE"; then
39648 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39649else
39650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39651for as_dir in $PATH
39652do
39653 IFS=$as_save_IFS
39654 test -z "$as_dir" && as_dir=.
39655 for ac_exec_ext in '' $ac_executable_extensions; do
39656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39657 ac_cv_prog_SETFILE="SetFile"
39658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39659 break 2
39660 fi
39661done
39662done
39663
39664 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39665fi
39666fi
39667SETFILE=$ac_cv_prog_SETFILE
39668if test -n "$SETFILE"; then
39669 echo "$as_me:$LINENO: result: $SETFILE" >&5
39670echo "${ECHO_T}$SETFILE" >&6
39671else
39672 echo "$as_me:$LINENO: result: no" >&5
39673echo "${ECHO_T}no" >&6
39674fi
39675
39676 ;;
39677 esac
39678
39679
39680
39681
39682
2057db16 39683 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39684
dcc1b6ad 39685
9f45f08e 39686BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39687
646b6ec1 39688
74b84332 39689
a848cd7e
SC
39690 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39691if test "${enable_precomp_headers+set}" = set; then
39692 enableval="$enable_precomp_headers"
39693 bk_use_pch="$enableval"
39694fi;
39695
39696 GCC_PCH=0
39697
39698 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39699 if test "x$GCC" = "xyes"; then
39700 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39701echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39702 cat >conftest.$ac_ext <<_ACEOF
39703/* confdefs.h. */
39704_ACEOF
39705cat confdefs.h >>conftest.$ac_ext
39706cat >>conftest.$ac_ext <<_ACEOF
39707/* end confdefs.h. */
39708
39709int
39710main ()
39711{
39712
39713 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39714 #error "no pch support"
39715 #endif
39716 #if (__GNUC__ < 3)
39717 #error "no pch support"
39718 #endif
39719 #if (__GNUC__ == 3) && \
39720 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39721 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39722 #error "no pch support"
39723 #endif
39724
39725 ;
39726 return 0;
39727}
39728_ACEOF
39729rm -f conftest.$ac_objext
39730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39731 (eval $ac_compile) 2>conftest.er1
a848cd7e 39732 ac_status=$?
ac1cb8d3
VS
39733 grep -v '^ *+' conftest.er1 >conftest.err
39734 rm -f conftest.er1
39735 cat conftest.err >&5
a848cd7e
SC
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); } &&
9a8f0513
VS
39738 { ac_try='test -z "$ac_c_werror_flag"
39739 || test ! -s conftest.err'
ac1cb8d3
VS
39740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741 (eval $ac_try) 2>&5
39742 ac_status=$?
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); }; } &&
39745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39748 ac_status=$?
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; }; then
39751
39752 echo "$as_me:$LINENO: result: yes" >&5
39753echo "${ECHO_T}yes" >&6
a848cd7e
SC
39754 GCC_PCH=1
39755
39756else
39757 echo "$as_me: failed program was:" >&5
39758sed 's/^/| /' conftest.$ac_ext >&5
39759
39760
39761 echo "$as_me:$LINENO: result: no" >&5
39762echo "${ECHO_T}no" >&6
39763
39764fi
ac1cb8d3 39765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39766 if test $GCC_PCH = 1 ; then
39767 cat <<EOF >bk-make-pch
39768#!/bin/sh
39769
39770# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39771# script. It is used to generated precompiled headers.
39772#
39773# Permission is given to use this file in any way.
39774
39775outfile="\${1}"
39776header="\${2}"
39777shift
39778shift
39779
39780compiler=
39781headerfile=
39782while test \${#} -gt 0; do
39783 case "\${1}" in
39784 -I* )
39785 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39786 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39787 headerfile="\${incdir}/\${header}"
39788 fi
39789 ;;
39790 esac
39791 compiler="\${compiler} \${1}"
39792 shift
39793done
39794
39795if test "x\${headerfile}" = "x" ; then
39796 echo "error: can't find header \${header} in include paths" >2
39797else
39798 if test -f \${outfile} ; then
39799 rm -f \${outfile}
39800 else
39801 mkdir -p \`dirname \${outfile}\`
39802 fi
39803 depsfile=".deps/\`basename \${outfile}\`.d"
39804 mkdir -p .deps
39805 # can do this because gcc is >= 3.4:
39806 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39807 exit \${?}
39808fi
39809EOF
39810 chmod +x bk-make-pch
39811 fi
39812 fi
39813 fi
39814
39815
39816
39817
39818
dcc1b6ad
VS
39819
39820
39821 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39822if test "${enable_precomp_headers+set}" = set; then
39823 enableval="$enable_precomp_headers"
39824 bk_use_pch="$enableval"
39825fi;
39826
39827 GCC_PCH=0
39828
39829 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39830 if test "x$GCC" = "xyes"; then
39831 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39832echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39833 cat >conftest.$ac_ext <<_ACEOF
39834/* confdefs.h. */
39835_ACEOF
39836cat confdefs.h >>conftest.$ac_ext
39837cat >>conftest.$ac_ext <<_ACEOF
39838/* end confdefs.h. */
39839
39840int
39841main ()
39842{
39843
39844 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39845 #error "no pch support"
39846 #endif
39847 #if (__GNUC__ < 3)
39848 #error "no pch support"
39849 #endif
39850 #if (__GNUC__ == 3) && \
39851 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39852 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39853 #error "no pch support"
39854 #endif
39855
39856 ;
39857 return 0;
39858}
39859_ACEOF
39860rm -f conftest.$ac_objext
39861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39862 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39863 ac_status=$?
ac1cb8d3
VS
39864 grep -v '^ *+' conftest.er1 >conftest.err
39865 rm -f conftest.er1
39866 cat conftest.err >&5
dcc1b6ad
VS
39867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); } &&
9a8f0513
VS
39869 { ac_try='test -z "$ac_c_werror_flag"
39870 || test ! -s conftest.err'
ac1cb8d3
VS
39871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39872 (eval $ac_try) 2>&5
39873 ac_status=$?
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); }; } &&
39876 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39878 (eval $ac_try) 2>&5
39879 ac_status=$?
39880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881 (exit $ac_status); }; }; then
39882
39883 echo "$as_me:$LINENO: result: yes" >&5
39884echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39885 GCC_PCH=1
39886
39887else
39888 echo "$as_me: failed program was:" >&5
39889sed 's/^/| /' conftest.$ac_ext >&5
39890
39891
39892 echo "$as_me:$LINENO: result: no" >&5
39893echo "${ECHO_T}no" >&6
39894
39895fi
ac1cb8d3 39896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39897 if test $GCC_PCH = 1 ; then
39898 cat <<EOF >bk-make-pch
39899#!/bin/sh
39900
39901# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39902# script. It is used to generated precompiled headers.
39903#
39904# Permission is given to use this file in any way.
39905
39906outfile="\${1}"
39907header="\${2}"
39908shift
39909shift
39910
39911compiler=
39912headerfile=
39913while test \${#} -gt 0; do
39914 case "\${1}" in
39915 -I* )
39916 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39917 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39918 headerfile="\${incdir}/\${header}"
39919 fi
39920 ;;
39921 esac
39922 compiler="\${compiler} \${1}"
39923 shift
39924done
39925
39926if test "x\${headerfile}" = "x" ; then
39927 echo "error: can't find header \${header} in include paths" >2
39928else
39929 if test -f \${outfile} ; then
39930 rm -f \${outfile}
39931 else
39932 mkdir -p \`dirname \${outfile}\`
39933 fi
39934 depsfile=".deps/\`basename \${outfile}\`.d"
39935 mkdir -p .deps
39936 # can do this because gcc is >= 3.4:
39937 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39938 exit \${?}
39939fi
39940EOF
39941 chmod +x bk-make-pch
39942 fi
39943 fi
39944 fi
39945
39946
39947
a848cd7e
SC
39948 COND_BUILD_DEBUG="#"
39949 if test "x$BUILD" = "xdebug" ; then
39950 COND_BUILD_DEBUG=""
39951 fi
39952
39953 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39954 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39955 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39956 fi
39957
39958 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39959 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39960 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39961 fi
39962
39963 COND_BUILD_DEBUG_UNICODE_0="#"
39964 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39965 COND_BUILD_DEBUG_UNICODE_0=""
39966 fi
39967
39968 COND_BUILD_DEBUG_UNICODE_1="#"
39969 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39970 COND_BUILD_DEBUG_UNICODE_1=""
39971 fi
39972
39973 COND_BUILD_RELEASE="#"
39974 if test "x$BUILD" = "xrelease" ; then
39975 COND_BUILD_RELEASE=""
39976 fi
39977
39978 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39979 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39980 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39981 fi
39982
39983 COND_BUILD_RELEASE_UNICODE_0="#"
39984 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39985 COND_BUILD_RELEASE_UNICODE_0=""
39986 fi
39987
39988 COND_BUILD_RELEASE_UNICODE_1="#"
39989 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39990 COND_BUILD_RELEASE_UNICODE_1=""
39991 fi
39992
39993 COND_DEBUG_FLAG_1="#"
39994 if test "x$DEBUG_FLAG" = "x1" ; then
39995 COND_DEBUG_FLAG_1=""
39996 fi
39997
39998 COND_DEBUG_INFO_0="#"
39999 if test "x$DEBUG_INFO" = "x0" ; then
40000 COND_DEBUG_INFO_0=""
40001 fi
40002
40003 COND_DEBUG_INFO_1="#"
40004 if test "x$DEBUG_INFO" = "x1" ; then
40005 COND_DEBUG_INFO_1=""
40006 fi
40007
40008 COND_DEPS_TRACKING_0="#"
40009 if test "x$DEPS_TRACKING" = "x0" ; then
40010 COND_DEPS_TRACKING_0=""
40011 fi
40012
40013 COND_DEPS_TRACKING_1="#"
40014 if test "x$DEPS_TRACKING" = "x1" ; then
40015 COND_DEPS_TRACKING_1=""
40016 fi
40017
40018 COND_GCC_PCH_1="#"
40019 if test "x$GCC_PCH" = "x1" ; then
40020 COND_GCC_PCH_1=""
40021 fi
40022
40023 COND_MONOLITHIC_0="#"
40024 if test "x$MONOLITHIC" = "x0" ; then
40025 COND_MONOLITHIC_0=""
40026 fi
40027
40028 COND_MONOLITHIC_0_SHARED_0="#"
40029 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40030 COND_MONOLITHIC_0_SHARED_0=""
40031 fi
40032
40033 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40034 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40035 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40036 fi
40037
40038 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40039 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40040 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40041 fi
40042
40043 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40044 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40045 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40046 fi
40047
40048 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40049 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40050 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40051 fi
40052
40053 COND_MONOLITHIC_0_SHARED_1="#"
40054 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40055 COND_MONOLITHIC_0_SHARED_1=""
40056 fi
40057
40058 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40059 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40060 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40061 fi
40062
40063 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40064 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40065 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40066 fi
40067
40068 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40069 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40070 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40071 fi
40072
40073 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40074 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40075 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40076 fi
40077
40078 COND_MONOLITHIC_0_USE_ODBC_1="#"
40079 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40080 COND_MONOLITHIC_0_USE_ODBC_1=""
40081 fi
40082
40083 COND_MONOLITHIC_1="#"
40084 if test "x$MONOLITHIC" = "x1" ; then
40085 COND_MONOLITHIC_1=""
40086 fi
40087
40088 COND_MONOLITHIC_1_SHARED_0="#"
40089 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40090 COND_MONOLITHIC_1_SHARED_0=""
40091 fi
40092
40093 COND_MONOLITHIC_1_SHARED_1="#"
40094 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40095 COND_MONOLITHIC_1_SHARED_1=""
40096 fi
40097
40098 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40099 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40100 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40101 fi
40102
40103 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40104 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40105 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40106 fi
40107
40108 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40109 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40110 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40111 fi
40112
40113 COND_PLATFORM_MACOSX_1="#"
40114 if test "x$PLATFORM_MACOSX" = "x1" ; then
40115 COND_PLATFORM_MACOSX_1=""
40116 fi
40117
40118 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40119 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40120 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40121 fi
40122
40123 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40124 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40125 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40126 fi
40127
40128 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40129 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40130 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40131 fi
40132
ebee3cd0
VS
40133 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40134 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40135 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40136 fi
40137
40138 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40139 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40140 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40141 fi
40142
a848cd7e
SC
40143 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40144 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40145 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40146 fi
40147
40148 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40149 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40150 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40151 fi
40152
40153 COND_PLATFORM_MAC_1="#"
40154 if test "x$PLATFORM_MAC" = "x1" ; then
40155 COND_PLATFORM_MAC_1=""
40156 fi
40157
40158 COND_PLATFORM_OS2_1="#"
40159 if test "x$PLATFORM_OS2" = "x1" ; then
40160 COND_PLATFORM_OS2_1=""
40161 fi
40162
40163 COND_PLATFORM_UNIX_0="#"
40164 if test "x$PLATFORM_UNIX" = "x0" ; then
40165 COND_PLATFORM_UNIX_0=""
40166 fi
40167
40168 COND_PLATFORM_UNIX_1="#"
40169 if test "x$PLATFORM_UNIX" = "x1" ; then
40170 COND_PLATFORM_UNIX_1=""
40171 fi
40172
40173 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40174 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40175 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40176 fi
40177
40178 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40179 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40180 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40181 fi
40182
40183 COND_PLATFORM_WIN32_0="#"
40184 if test "x$PLATFORM_WIN32" = "x0" ; then
40185 COND_PLATFORM_WIN32_0=""
40186 fi
40187
40188 COND_PLATFORM_WIN32_1="#"
40189 if test "x$PLATFORM_WIN32" = "x1" ; then
40190 COND_PLATFORM_WIN32_1=""
40191 fi
40192
40193 COND_SHARED_0="#"
40194 if test "x$SHARED" = "x0" ; then
40195 COND_SHARED_0=""
40196 fi
40197
40198 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40199 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40200 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40201 fi
40202
40203 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40204 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40205 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40206 fi
40207
40208 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40209 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40210 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40211 fi
40212
40213 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40214 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40215 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40216 fi
40217
40218 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40219 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40220 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40221 fi
40222
40223 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40224 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40225 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40226 fi
40227
40228 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40229 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40230 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40231 fi
40232
40233 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40234 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40235 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40236 fi
40237
40238 COND_SHARED_1="#"
40239 if test "x$SHARED" = "x1" ; then
40240 COND_SHARED_1=""
40241 fi
40242
40243 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40244 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40245 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40246 fi
40247
40248 COND_TOOLKIT_COCOA="#"
40249 if test "x$TOOLKIT" = "xCOCOA" ; then
40250 COND_TOOLKIT_COCOA=""
40251 fi
40252
40253 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40254 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40255 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40256 fi
40257
40258 COND_TOOLKIT_GTK="#"
40259 if test "x$TOOLKIT" = "xGTK" ; then
40260 COND_TOOLKIT_GTK=""
40261 fi
40262
40263 COND_TOOLKIT_GTK_USE_GUI_1="#"
40264 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40265 COND_TOOLKIT_GTK_USE_GUI_1=""
40266 fi
40267
40268 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40269 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40270 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40271 fi
40272
40273 COND_TOOLKIT_MAC="#"
40274 if test "x$TOOLKIT" = "xMAC" ; then
40275 COND_TOOLKIT_MAC=""
40276 fi
40277
40278 COND_TOOLKIT_MAC_USE_GUI_1="#"
40279 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40280 COND_TOOLKIT_MAC_USE_GUI_1=""
40281 fi
40282
40283 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40284 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40285 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40286 fi
40287
40288 COND_TOOLKIT_MGL="#"
40289 if test "x$TOOLKIT" = "xMGL" ; then
40290 COND_TOOLKIT_MGL=""
40291 fi
40292
40293 COND_TOOLKIT_MGL_USE_GUI_1="#"
40294 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40295 COND_TOOLKIT_MGL_USE_GUI_1=""
40296 fi
40297
40298 COND_TOOLKIT_MOTIF="#"
40299 if test "x$TOOLKIT" = "xMOTIF" ; then
40300 COND_TOOLKIT_MOTIF=""
40301 fi
40302
40303 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40304 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40305 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40306 fi
40307
40308 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40309 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40310 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40311 fi
40312
40313 COND_TOOLKIT_MSW="#"
40314 if test "x$TOOLKIT" = "xMSW" ; then
40315 COND_TOOLKIT_MSW=""
40316 fi
40317
40318 COND_TOOLKIT_MSW_USE_GUI_1="#"
40319 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40320 COND_TOOLKIT_MSW_USE_GUI_1=""
40321 fi
40322
40323 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40324 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40325 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40326 fi
40327
40328 COND_TOOLKIT_PM="#"
40329 if test "x$TOOLKIT" = "xPM" ; then
40330 COND_TOOLKIT_PM=""
40331 fi
40332
40333 COND_TOOLKIT_PM_USE_GUI_1="#"
40334 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40335 COND_TOOLKIT_PM_USE_GUI_1=""
40336 fi
40337
40338 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40339 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40340 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40341 fi
40342
3fd9c298
DE
40343 COND_TOOLKIT_WINCE="#"
40344 if test "x$TOOLKIT" = "xWINCE" ; then
40345 COND_TOOLKIT_WINCE=""
40346 fi
40347
40348 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40349 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40350 COND_TOOLKIT_WINCE_USE_GUI_1=""
40351 fi
40352
40353 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40354 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40355 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40356 fi
40357
a848cd7e
SC
40358 COND_TOOLKIT_X11="#"
40359 if test "x$TOOLKIT" = "xX11" ; then
40360 COND_TOOLKIT_X11=""
40361 fi
40362
40363 COND_TOOLKIT_X11_USE_GUI_1="#"
40364 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40365 COND_TOOLKIT_X11_USE_GUI_1=""
40366 fi
40367
40368 COND_UNICODE_1="#"
40369 if test "x$UNICODE" = "x1" ; then
40370 COND_UNICODE_1=""
40371 fi
40372
40373 COND_USE_EXCEPTIONS_0="#"
40374 if test "x$USE_EXCEPTIONS" = "x0" ; then
40375 COND_USE_EXCEPTIONS_0=""
40376 fi
40377
40378 COND_USE_EXCEPTIONS_1="#"
40379 if test "x$USE_EXCEPTIONS" = "x1" ; then
40380 COND_USE_EXCEPTIONS_1=""
40381 fi
40382
40383 COND_USE_GUI_0="#"
40384 if test "x$USE_GUI" = "x0" ; then
40385 COND_USE_GUI_0=""
40386 fi
40387
40388 COND_USE_GUI_1="#"
40389 if test "x$USE_GUI" = "x1" ; then
40390 COND_USE_GUI_1=""
40391 fi
40392
40393 COND_USE_GUI_1_WXUNIV_0="#"
40394 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40395 COND_USE_GUI_1_WXUNIV_0=""
40396 fi
40397
40398 COND_USE_GUI_1_WXUNIV_1="#"
40399 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40400 COND_USE_GUI_1_WXUNIV_1=""
40401 fi
40402
40403 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40404 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40405 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40406 fi
40407
40408 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40409 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40410 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40411 fi
40412
40413 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40414 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40415 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40416 fi
40417
a848cd7e
SC
40418 COND_USE_PLUGINS_0="#"
40419 if test "x$USE_PLUGINS" = "x0" ; then
40420 COND_USE_PLUGINS_0=""
40421 fi
40422
40423 COND_USE_SOSYMLINKS_1="#"
40424 if test "x$USE_SOSYMLINKS" = "x1" ; then
40425 COND_USE_SOSYMLINKS_1=""
40426 fi
40427
40428 COND_USE_SOVERLINUX_1="#"
40429 if test "x$USE_SOVERLINUX" = "x1" ; then
40430 COND_USE_SOVERLINUX_1=""
40431 fi
40432
40433 COND_USE_SOVERSION_0="#"
40434 if test "x$USE_SOVERSION" = "x0" ; then
40435 COND_USE_SOVERSION_0=""
40436 fi
40437
40438 COND_USE_SOVERSOLARIS_1="#"
40439 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40440 COND_USE_SOVERSOLARIS_1=""
40441 fi
40442
40443 COND_WITH_PLUGIN_SDL_1="#"
40444 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40445 COND_WITH_PLUGIN_SDL_1=""
40446 fi
40447
a848cd7e
SC
40448 COND_WXUNIV_1="#"
40449 if test "x$WXUNIV" = "x1" ; then
40450 COND_WXUNIV_1=""
40451 fi
40452
40453 COND_WXUSE_EXPAT_BUILTIN="#"
40454 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40455 COND_WXUSE_EXPAT_BUILTIN=""
40456 fi
40457
40458 COND_WXUSE_LIBJPEG_BUILTIN="#"
40459 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40460 COND_WXUSE_LIBJPEG_BUILTIN=""
40461 fi
40462
40463 COND_WXUSE_LIBPNG_BUILTIN="#"
40464 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40465 COND_WXUSE_LIBPNG_BUILTIN=""
40466 fi
40467
40468 COND_WXUSE_LIBTIFF_BUILTIN="#"
40469 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40470 COND_WXUSE_LIBTIFF_BUILTIN=""
40471 fi
40472
40473 COND_WXUSE_ODBC_BUILTIN="#"
40474 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40475 COND_WXUSE_ODBC_BUILTIN=""
40476 fi
40477
40478 COND_WXUSE_REGEX_BUILTIN="#"
40479 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40480 COND_WXUSE_REGEX_BUILTIN=""
40481 fi
40482
40483 COND_WXUSE_ZLIB_BUILTIN="#"
40484 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40485 COND_WXUSE_ZLIB_BUILTIN=""
40486 fi
40487
dcc1b6ad
VS
40488 COND_BUILD_DEBUG="#"
40489 if test "x$BUILD" = "xdebug" ; then
40490 COND_BUILD_DEBUG=""
40491 fi
40492
40493 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40494 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40495 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40496 fi
40497
40498 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40499 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40500 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40501 fi
40502
40503 COND_BUILD_DEBUG_UNICODE_0="#"
40504 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40505 COND_BUILD_DEBUG_UNICODE_0=""
40506 fi
40507
40508 COND_BUILD_DEBUG_UNICODE_1="#"
40509 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40510 COND_BUILD_DEBUG_UNICODE_1=""
40511 fi
40512
40513 COND_BUILD_RELEASE="#"
40514 if test "x$BUILD" = "xrelease" ; then
40515 COND_BUILD_RELEASE=""
40516 fi
40517
40518 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40519 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40520 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40521 fi
40522
40523 COND_BUILD_RELEASE_UNICODE_0="#"
40524 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40525 COND_BUILD_RELEASE_UNICODE_0=""
40526 fi
40527
40528 COND_BUILD_RELEASE_UNICODE_1="#"
40529 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40530 COND_BUILD_RELEASE_UNICODE_1=""
40531 fi
40532
40533 COND_DEBUG_FLAG_1="#"
40534 if test "x$DEBUG_FLAG" = "x1" ; then
40535 COND_DEBUG_FLAG_1=""
40536 fi
40537
40538 COND_DEBUG_INFO_0="#"
40539 if test "x$DEBUG_INFO" = "x0" ; then
40540 COND_DEBUG_INFO_0=""
40541 fi
40542
40543 COND_DEBUG_INFO_1="#"
40544 if test "x$DEBUG_INFO" = "x1" ; then
40545 COND_DEBUG_INFO_1=""
40546 fi
40547
40548 COND_DEPS_TRACKING_0="#"
40549 if test "x$DEPS_TRACKING" = "x0" ; then
40550 COND_DEPS_TRACKING_0=""
40551 fi
40552
40553 COND_DEPS_TRACKING_1="#"
40554 if test "x$DEPS_TRACKING" = "x1" ; then
40555 COND_DEPS_TRACKING_1=""
40556 fi
40557
40558 COND_GCC_PCH_1="#"
40559 if test "x$GCC_PCH" = "x1" ; then
40560 COND_GCC_PCH_1=""
40561 fi
40562
40563 COND_MONOLITHIC_0="#"
40564 if test "x$MONOLITHIC" = "x0" ; then
40565 COND_MONOLITHIC_0=""
40566 fi
40567
40568 COND_MONOLITHIC_0_SHARED_0="#"
40569 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40570 COND_MONOLITHIC_0_SHARED_0=""
40571 fi
40572
40573 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40574 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40575 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40576 fi
40577
40578 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40579 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40580 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40581 fi
40582
40583 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40584 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40585 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40586 fi
40587
40588 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40589 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40590 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40591 fi
40592
9a8f0513
VS
40593 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40594 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40595 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40596 fi
40597
dcc1b6ad
VS
40598 COND_MONOLITHIC_0_SHARED_1="#"
40599 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40600 COND_MONOLITHIC_0_SHARED_1=""
40601 fi
40602
40603 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40604 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40605 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40606 fi
40607
40608 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40609 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40610 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40611 fi
40612
40613 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40614 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40615 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40616 fi
40617
40618 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40619 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40620 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40621 fi
40622
9a8f0513
VS
40623 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40624 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40625 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40626 fi
40627
dcc1b6ad
VS
40628 COND_MONOLITHIC_0_USE_ODBC_1="#"
40629 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40630 COND_MONOLITHIC_0_USE_ODBC_1=""
40631 fi
40632
40633 COND_MONOLITHIC_1="#"
40634 if test "x$MONOLITHIC" = "x1" ; then
40635 COND_MONOLITHIC_1=""
40636 fi
40637
40638 COND_MONOLITHIC_1_SHARED_0="#"
40639 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40640 COND_MONOLITHIC_1_SHARED_0=""
40641 fi
40642
40643 COND_MONOLITHIC_1_SHARED_1="#"
40644 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40645 COND_MONOLITHIC_1_SHARED_1=""
40646 fi
40647
40648 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40649 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40650 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40651 fi
40652
40653 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40654 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40655 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40656 fi
40657
40658 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40659 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40660 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40661 fi
40662
40663 COND_PLATFORM_MACOSX_1="#"
40664 if test "x$PLATFORM_MACOSX" = "x1" ; then
40665 COND_PLATFORM_MACOSX_1=""
40666 fi
40667
40668 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40669 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40670 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40671 fi
40672
40673 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40674 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40675 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40676 fi
40677
40678 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40679 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40680 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40681 fi
40682
9a8f0513
VS
40683 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40684 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40685 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40686 fi
40687
40688 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40689 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40690 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40691 fi
40692
dcc1b6ad
VS
40693 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40694 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40695 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40696 fi
40697
40698 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40699 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40700 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40701 fi
40702
40703 COND_PLATFORM_MAC_1="#"
40704 if test "x$PLATFORM_MAC" = "x1" ; then
40705 COND_PLATFORM_MAC_1=""
40706 fi
40707
40708 COND_PLATFORM_OS2_1="#"
40709 if test "x$PLATFORM_OS2" = "x1" ; then
40710 COND_PLATFORM_OS2_1=""
40711 fi
40712
40713 COND_PLATFORM_UNIX_0="#"
40714 if test "x$PLATFORM_UNIX" = "x0" ; then
40715 COND_PLATFORM_UNIX_0=""
40716 fi
40717
40718 COND_PLATFORM_UNIX_1="#"
40719 if test "x$PLATFORM_UNIX" = "x1" ; then
40720 COND_PLATFORM_UNIX_1=""
40721 fi
40722
40723 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40724 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40725 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40726 fi
40727
40728 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40729 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40730 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40731 fi
40732
40733 COND_PLATFORM_WIN32_0="#"
40734 if test "x$PLATFORM_WIN32" = "x0" ; then
40735 COND_PLATFORM_WIN32_0=""
40736 fi
40737
40738 COND_PLATFORM_WIN32_1="#"
40739 if test "x$PLATFORM_WIN32" = "x1" ; then
40740 COND_PLATFORM_WIN32_1=""
40741 fi
40742
40743 COND_SHARED_0="#"
40744 if test "x$SHARED" = "x0" ; then
40745 COND_SHARED_0=""
40746 fi
40747
40748 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40749 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40750 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40751 fi
40752
40753 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40754 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40755 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40756 fi
40757
40758 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40759 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40760 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40761 fi
40762
40763 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40764 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40765 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40766 fi
40767
40768 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40769 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40770 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40771 fi
40772
40773 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40774 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40775 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40776 fi
40777
40778 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40779 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40780 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40781 fi
40782
40783 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40784 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40785 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40786 fi
40787
40788 COND_SHARED_1="#"
40789 if test "x$SHARED" = "x1" ; then
40790 COND_SHARED_1=""
40791 fi
40792
40793 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40794 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40795 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40796 fi
40797
40798 COND_TOOLKIT_COCOA="#"
40799 if test "x$TOOLKIT" = "xCOCOA" ; then
40800 COND_TOOLKIT_COCOA=""
40801 fi
40802
40803 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40804 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40805 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40806 fi
40807
40808 COND_TOOLKIT_GTK="#"
40809 if test "x$TOOLKIT" = "xGTK" ; then
40810 COND_TOOLKIT_GTK=""
40811 fi
40812
40813 COND_TOOLKIT_GTK_USE_GUI_1="#"
40814 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40815 COND_TOOLKIT_GTK_USE_GUI_1=""
40816 fi
40817
40818 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40819 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40820 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40821 fi
40822
40823 COND_TOOLKIT_MAC="#"
40824 if test "x$TOOLKIT" = "xMAC" ; then
40825 COND_TOOLKIT_MAC=""
40826 fi
40827
40828 COND_TOOLKIT_MAC_USE_GUI_1="#"
40829 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40830 COND_TOOLKIT_MAC_USE_GUI_1=""
40831 fi
40832
40833 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40834 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40835 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40836 fi
40837
9a8f0513
VS
40838 COND_TOOLKIT_MAC_WXUNIV_0="#"
40839 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40840 COND_TOOLKIT_MAC_WXUNIV_0=""
40841 fi
40842
dcc1b6ad
VS
40843 COND_TOOLKIT_MGL="#"
40844 if test "x$TOOLKIT" = "xMGL" ; then
40845 COND_TOOLKIT_MGL=""
40846 fi
40847
40848 COND_TOOLKIT_MGL_USE_GUI_1="#"
40849 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40850 COND_TOOLKIT_MGL_USE_GUI_1=""
40851 fi
40852
40853 COND_TOOLKIT_MOTIF="#"
40854 if test "x$TOOLKIT" = "xMOTIF" ; then
40855 COND_TOOLKIT_MOTIF=""
40856 fi
40857
40858 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40859 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40860 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40861 fi
40862
40863 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40864 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40865 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40866 fi
40867
40868 COND_TOOLKIT_MSW="#"
40869 if test "x$TOOLKIT" = "xMSW" ; then
40870 COND_TOOLKIT_MSW=""
40871 fi
40872
40873 COND_TOOLKIT_MSW_USE_GUI_1="#"
40874 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40875 COND_TOOLKIT_MSW_USE_GUI_1=""
40876 fi
40877
40878 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40879 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40880 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40881 fi
40882
9a8f0513
VS
40883 COND_TOOLKIT_MSW_WXUNIV_0="#"
40884 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40885 COND_TOOLKIT_MSW_WXUNIV_0=""
40886 fi
40887
dcc1b6ad
VS
40888 COND_TOOLKIT_PM="#"
40889 if test "x$TOOLKIT" = "xPM" ; then
40890 COND_TOOLKIT_PM=""
40891 fi
40892
40893 COND_TOOLKIT_PM_USE_GUI_1="#"
40894 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40895 COND_TOOLKIT_PM_USE_GUI_1=""
40896 fi
40897
40898 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40899 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40900 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40901 fi
40902
9a8f0513
VS
40903 COND_TOOLKIT_PM_WXUNIV_0="#"
40904 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40905 COND_TOOLKIT_PM_WXUNIV_0=""
40906 fi
40907
dcc1b6ad
VS
40908 COND_TOOLKIT_WINCE="#"
40909 if test "x$TOOLKIT" = "xWINCE" ; then
40910 COND_TOOLKIT_WINCE=""
40911 fi
40912
40913 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40914 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40915 COND_TOOLKIT_WINCE_USE_GUI_1=""
40916 fi
40917
40918 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40919 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40920 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40921 fi
40922
40923 COND_TOOLKIT_X11="#"
40924 if test "x$TOOLKIT" = "xX11" ; then
40925 COND_TOOLKIT_X11=""
40926 fi
40927
40928 COND_TOOLKIT_X11_USE_GUI_1="#"
40929 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40930 COND_TOOLKIT_X11_USE_GUI_1=""
40931 fi
40932
40933 COND_UNICODE_1="#"
40934 if test "x$UNICODE" = "x1" ; then
40935 COND_UNICODE_1=""
40936 fi
40937
40938 COND_USE_EXCEPTIONS_0="#"
40939 if test "x$USE_EXCEPTIONS" = "x0" ; then
40940 COND_USE_EXCEPTIONS_0=""
40941 fi
40942
40943 COND_USE_EXCEPTIONS_1="#"
40944 if test "x$USE_EXCEPTIONS" = "x1" ; then
40945 COND_USE_EXCEPTIONS_1=""
40946 fi
40947
40948 COND_USE_GUI_0="#"
40949 if test "x$USE_GUI" = "x0" ; then
40950 COND_USE_GUI_0=""
40951 fi
40952
40953 COND_USE_GUI_1="#"
40954 if test "x$USE_GUI" = "x1" ; then
40955 COND_USE_GUI_1=""
40956 fi
40957
40958 COND_USE_GUI_1_WXUNIV_0="#"
40959 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40960 COND_USE_GUI_1_WXUNIV_0=""
40961 fi
40962
40963 COND_USE_GUI_1_WXUNIV_1="#"
40964 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40965 COND_USE_GUI_1_WXUNIV_1=""
40966 fi
40967
40968 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40969 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40970 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40971 fi
40972
40973 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40974 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40975 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40976 fi
40977
40978 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40979 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40980 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40981 fi
40982
40983 COND_USE_ODBC_1="#"
40984 if test "x$USE_ODBC" = "x1" ; then
40985 COND_USE_ODBC_1=""
40986 fi
40987
40988 COND_USE_PLUGINS_0="#"
40989 if test "x$USE_PLUGINS" = "x0" ; then
40990 COND_USE_PLUGINS_0=""
40991 fi
40992
40993 COND_USE_SOSYMLINKS_1="#"
40994 if test "x$USE_SOSYMLINKS" = "x1" ; then
40995 COND_USE_SOSYMLINKS_1=""
40996 fi
40997
40998 COND_USE_SOVERLINUX_1="#"
40999 if test "x$USE_SOVERLINUX" = "x1" ; then
41000 COND_USE_SOVERLINUX_1=""
41001 fi
41002
41003 COND_USE_SOVERSION_0="#"
41004 if test "x$USE_SOVERSION" = "x0" ; then
41005 COND_USE_SOVERSION_0=""
41006 fi
41007
41008 COND_USE_SOVERSOLARIS_1="#"
41009 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41010 COND_USE_SOVERSOLARIS_1=""
41011 fi
41012
41013 COND_WITH_PLUGIN_SDL_1="#"
41014 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41015 COND_WITH_PLUGIN_SDL_1=""
41016 fi
41017
41018 COND_WXUNIV_1="#"
41019 if test "x$WXUNIV" = "x1" ; then
41020 COND_WXUNIV_1=""
41021 fi
41022
41023 COND_WXUSE_EXPAT_BUILTIN="#"
41024 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41025 COND_WXUSE_EXPAT_BUILTIN=""
41026 fi
41027
41028 COND_WXUSE_LIBJPEG_BUILTIN="#"
41029 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41030 COND_WXUSE_LIBJPEG_BUILTIN=""
41031 fi
41032
41033 COND_WXUSE_LIBPNG_BUILTIN="#"
41034 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41035 COND_WXUSE_LIBPNG_BUILTIN=""
41036 fi
41037
41038 COND_WXUSE_LIBTIFF_BUILTIN="#"
41039 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41040 COND_WXUSE_LIBTIFF_BUILTIN=""
41041 fi
41042
41043 COND_WXUSE_ODBC_BUILTIN="#"
41044 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41045 COND_WXUSE_ODBC_BUILTIN=""
41046 fi
41047
41048 COND_WXUSE_REGEX_BUILTIN="#"
41049 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41050 COND_WXUSE_REGEX_BUILTIN=""
41051 fi
41052
41053 COND_WXUSE_ZLIB_BUILTIN="#"
41054 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41055 COND_WXUSE_ZLIB_BUILTIN=""
41056 fi
41057
a848cd7e
SC
41058
41059
2057db16
VS
41060 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41061 { { 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
41062echo "$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;}
41063 { (exit 1); exit 1; }; }
41064 fi
41065
a848cd7e
SC
41066
41067
74b84332 41068GCC_PRAGMA_FLAGS=""
a848cd7e 41069if test $GCC_PCH = 1 ; then
74b84332 41070 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41071else
41072 case "${host}" in
41073 powerpc-*-darwin* )
74b84332 41074 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41075 ;;
bea8e651 41076 *-*-mingw32* )
1f344abf
VS
41077 if test "$wxUSE_STL" = "yes" -o \
41078 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41079 "$wxUSE_NO_RTTI" != "yes"; then
41080 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41081echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41082 cat >conftest.$ac_ext <<_ACEOF
41083/* confdefs.h. */
41084_ACEOF
41085cat confdefs.h >>conftest.$ac_ext
41086cat >>conftest.$ac_ext <<_ACEOF
41087/* end confdefs.h. */
41088
41089int
41090main ()
41091{
1f344abf 41092#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41093 #error "Not GCC 3.2 or greater"
41094 #endif
41095
41096 ;
41097 return 0;
41098}
41099_ACEOF
41100rm -f conftest.$ac_objext
41101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41102 (eval $ac_compile) 2>conftest.er1
bea8e651 41103 ac_status=$?
ac1cb8d3
VS
41104 grep -v '^ *+' conftest.er1 >conftest.err
41105 rm -f conftest.er1
41106 cat conftest.err >&5
bea8e651
MB
41107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108 (exit $ac_status); } &&
9a8f0513
VS
41109 { ac_try='test -z "$ac_c_werror_flag"
41110 || test ! -s conftest.err'
ac1cb8d3
VS
41111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41112 (eval $ac_try) 2>&5
41113 ac_status=$?
41114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41115 (exit $ac_status); }; } &&
41116 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41118 (eval $ac_try) 2>&5
41119 ac_status=$?
41120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121 (exit $ac_status); }; }; then
74b84332 41122 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41123 echo "$as_me:$LINENO: result: yes" >&5
41124echo "${ECHO_T}yes" >&6
41125else
41126 echo "$as_me: failed program was:" >&5
41127sed 's/^/| /' conftest.$ac_ext >&5
41128
41129echo "$as_me:$LINENO: result: no" >&5
41130echo "${ECHO_T}no" >&6
41131fi
ac1cb8d3 41132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41133 fi
41134 ;;
a848cd7e
SC
41135 esac
41136fi
74b84332 41137CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41138
41139
41140SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169
41170
41171
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189
41190
41191
41192
41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203
41204
41205
41206
41207
41208
41209
41210
41211
41212
41213
41214
41215
41216
41217
41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
74b84332 41239
a848cd7e
SC
41240
41241
41242echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41243echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41244set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41245if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41246 echo $ECHO_N "(cached) $ECHO_C" >&6
41247else
41248 cat >conftest.make <<\_ACEOF
41249all:
41250 @echo 'ac_maketemp="$(MAKE)"'
41251_ACEOF
41252# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41253eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41254if test -n "$ac_maketemp"; then
41255 eval ac_cv_prog_make_${ac_make}_set=yes
41256else
41257 eval ac_cv_prog_make_${ac_make}_set=no
41258fi
41259rm -f conftest.make
41260fi
41261if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41262 echo "$as_me:$LINENO: result: yes" >&5
41263echo "${ECHO_T}yes" >&6
41264 SET_MAKE=
41265else
41266 echo "$as_me:$LINENO: result: no" >&5
41267echo "${ECHO_T}no" >&6
41268 SET_MAKE="MAKE=${MAKE-make}"
41269fi
41270
41271
41272if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41273 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41274fi
41275
41276 ac_config_headers="$ac_config_headers setup.h"
41277
41278
8708fa76 41279 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
41280
41281
41282 ac_config_commands="$ac_config_commands default"
41283
41284
41285
41286if test "$wxUSE_GUI" = "yes"; then
41287 SUBDIRS="samples demos utils contrib"
41288else SUBDIRS="samples utils"
41289fi
41290
41291
41292
41293# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41294if test "${with_cppunit_prefix+set}" = set; then
41295 withval="$with_cppunit_prefix"
41296 cppunit_config_prefix="$withval"
41297else
41298 cppunit_config_prefix=""
41299fi;
41300
41301# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41302if test "${with_cppunit_exec_prefix+set}" = set; then
41303 withval="$with_cppunit_exec_prefix"
41304 cppunit_config_exec_prefix="$withval"
41305else
41306 cppunit_config_exec_prefix=""
41307fi;
41308
41309 if test x$cppunit_config_exec_prefix != x ; then
41310 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41311 if test x${CPPUNIT_CONFIG+set} != xset ; then
41312 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41313 fi
41314 fi
41315 if test x$cppunit_config_prefix != x ; then
41316 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41317 if test x${CPPUNIT_CONFIG+set} != xset ; then
41318 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41319 fi
41320 fi
41321
41322 # Extract the first word of "cppunit-config", so it can be a program name with args.
41323set dummy cppunit-config; ac_word=$2
41324echo "$as_me:$LINENO: checking for $ac_word" >&5
41325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41326if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41327 echo $ECHO_N "(cached) $ECHO_C" >&6
41328else
41329 case $CPPUNIT_CONFIG in
41330 [\\/]* | ?:[\\/]*)
41331 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41332 ;;
41333 *)
41334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41335for as_dir in $PATH
41336do
41337 IFS=$as_save_IFS
41338 test -z "$as_dir" && as_dir=.
41339 for ac_exec_ext in '' $ac_executable_extensions; do
41340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41341 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41343 break 2
41344 fi
41345done
41346done
41347
41348 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41349 ;;
41350esac
41351fi
41352CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41353
41354if test -n "$CPPUNIT_CONFIG"; then
41355 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41356echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41357else
41358 echo "$as_me:$LINENO: result: no" >&5
41359echo "${ECHO_T}no" >&6
41360fi
41361
41362 cppunit_version_min=1.8.0
41363
41364 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41365echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41366 no_cppunit=""
41367 if test "$CPPUNIT_CONFIG" = "no" ; then
41368 no_cppunit=yes
41369 else
41370 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41371 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41372 cppunit_version=`$CPPUNIT_CONFIG --version`
41373
41374 cppunit_major_version=`echo $cppunit_version | \
41375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41376 cppunit_minor_version=`echo $cppunit_version | \
41377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41378 cppunit_micro_version=`echo $cppunit_version | \
41379 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41380
41381 cppunit_major_min=`echo $cppunit_version_min | \
41382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41383 cppunit_minor_min=`echo $cppunit_version_min | \
41384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41385 cppunit_micro_min=`echo $cppunit_version_min | \
41386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41387
41388 cppunit_version_proper=`expr \
41389 $cppunit_major_version \> $cppunit_major_min \| \
41390 $cppunit_major_version \= $cppunit_major_min \& \
41391 $cppunit_minor_version \> $cppunit_minor_min \| \
41392 $cppunit_major_version \= $cppunit_major_min \& \
41393 $cppunit_minor_version \= $cppunit_minor_min \& \
41394 $cppunit_micro_version \>= $cppunit_micro_min `
41395
41396 if test "$cppunit_version_proper" = "1" ; then
41397 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41398echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41399 else
41400 echo "$as_me:$LINENO: result: no" >&5
41401echo "${ECHO_T}no" >&6
41402 no_cppunit=yes
41403 fi
41404 fi
41405
41406 if test "x$no_cppunit" = x ; then
c2218763 41407 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41408 else
41409 CPPUNIT_CFLAGS=""
41410 CPPUNIT_LIBS=""
c2218763 41411 :
a848cd7e
SC
41412 fi
41413
41414
41415
41416
41417
41418for subdir in `echo $SUBDIRS`; do
41419 if test -d ${srcdir}/${subdir} ; then
41420 if test "$wxUSE_GUI" = "yes"; then
41421 if test ${subdir} = "samples"; then
41422 makefiles="samples/Makefile.in $makefiles"
41423 for sample in `echo $SAMPLES_SUBDIRS`; do
41424 if test -d $srcdir/samples/$sample; then
41425 makefiles="samples/$sample/Makefile.in $makefiles"
41426 fi
41427 done
41428 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41429 fi
41430 else if test ${subdir} = "samples"; then
41431 makefiles="samples/Makefile.in samples/console/Makefile.in"
41432 elif test ${subdir} = "utils"; then
41433 makefiles="utils/HelpGen/Makefile.in \
41434 utils/HelpGen/src/Makefile.in \
41435 utils/tex2rtf/Makefile.in \
41436 utils/tex2rtf/src/Makefile.in"
41437 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41438 fi
41439 fi
41440
41441 for mkin in $makefiles ; do
41442 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41443 ac_config_files="$ac_config_files $mk"
41444
41445 done
41446 fi
41447done
41448
41449
41450cat >confcache <<\_ACEOF
41451# This file is a shell script that caches the results of configure
41452# tests run on this system so they can be shared between configure
41453# scripts and configure runs, see configure's option --config-cache.
41454# It is not useful on other systems. If it contains results you don't
41455# want to keep, you may remove or edit it.
41456#
41457# config.status only pays attention to the cache file if you give it
41458# the --recheck option to rerun configure.
41459#
41460# `ac_cv_env_foo' variables (set or unset) will be overridden when
41461# loading this file, other *unset* `ac_cv_foo' will be assigned the
41462# following values.
41463
41464_ACEOF
41465
41466# The following way of writing the cache mishandles newlines in values,
41467# but we know of no workaround that is simple, portable, and efficient.
41468# So, don't put newlines in cache variables' values.
41469# Ultrix sh set writes to stderr and can't be redirected directly,
41470# and sets the high bit in the cache file unless we assign to the vars.
41471{
41472 (set) 2>&1 |
41473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41474 *ac_space=\ *)
41475 # `set' does not quote correctly, so add quotes (double-quote
41476 # substitution turns \\\\ into \\, and sed turns \\ into \).
41477 sed -n \
ac1cb8d3
VS
41478 "s/'/'\\\\''/g;
41479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41480 ;;
41481 *)
41482 # `set' quotes correctly as required by POSIX, so do not add quotes.
41483 sed -n \
ac1cb8d3 41484 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41485 ;;
41486 esac;
41487} |
41488 sed '
41489 t clear
41490 : clear
41491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41492 t end
41493 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41494 : end' >>confcache
41495if diff $cache_file confcache >/dev/null 2>&1; then :; else
41496 if test -w $cache_file; then
41497 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41498 cat confcache >$cache_file
41499 else
41500 echo "not updating unwritable cache $cache_file"
41501 fi
41502fi
41503rm -f confcache
41504
41505test "x$prefix" = xNONE && prefix=$ac_default_prefix
41506# Let make expand exec_prefix.
41507test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41508
41509# VPATH may cause trouble with some makes, so we remove $(srcdir),
41510# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41511# trailing colons and then remove the whole line if VPATH becomes empty
41512# (actually we leave an empty line to preserve line numbers).
41513if test "x$srcdir" = x.; then
ac1cb8d3 41514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41515s/:*\$(srcdir):*/:/;
41516s/:*\${srcdir}:*/:/;
41517s/:*@srcdir@:*/:/;
ac1cb8d3 41518s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41519s/:*$//;
ac1cb8d3 41520s/^[^=]*=[ ]*$//;
a848cd7e
SC
41521}'
41522fi
41523
41524DEFS=-DHAVE_CONFIG_H
41525
41526ac_libobjs=
41527ac_ltlibobjs=
41528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41529 # 1. Remove the extension, and $U if already installed.
41530 ac_i=`echo "$ac_i" |
ac1cb8d3 41531 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41532 # 2. Add them.
41533 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41534 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41535done
41536LIBOBJS=$ac_libobjs
41537
41538LTLIBOBJS=$ac_ltlibobjs
41539
41540
41541
41542: ${CONFIG_STATUS=./config.status}
41543ac_clean_files_save=$ac_clean_files
41544ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41545{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41546echo "$as_me: creating $CONFIG_STATUS" >&6;}
41547cat >$CONFIG_STATUS <<_ACEOF
41548#! $SHELL
41549# Generated by $as_me.
41550# Run this file to recreate the current configuration.
41551# Compiler output produced by configure, useful for debugging
41552# configure, is in config.log if it exists.
41553
41554debug=false
41555ac_cs_recheck=false
41556ac_cs_silent=false
41557SHELL=\${CONFIG_SHELL-$SHELL}
41558_ACEOF
41559
41560cat >>$CONFIG_STATUS <<\_ACEOF
41561## --------------------- ##
41562## M4sh Initialization. ##
41563## --------------------- ##
41564
41565# Be Bourne compatible
41566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41567 emulate sh
41568 NULLCMD=:
41569 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41570 # is contrary to our usage. Disable this feature.
41571 alias -g '${1+"$@"}'='"$@"'
41572elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41573 set -o posix
41574fi
ac1cb8d3 41575DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41576
41577# Support unset when possible.
ac1cb8d3 41578if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41579 as_unset=unset
41580else
41581 as_unset=false
41582fi
41583
41584
41585# Work around bugs in pre-3.0 UWIN ksh.
41586$as_unset ENV MAIL MAILPATH
41587PS1='$ '
41588PS2='> '
41589PS4='+ '
41590
41591# NLS nuisances.
41592for as_var in \
41593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41595 LC_TELEPHONE LC_TIME
41596do
ac1cb8d3 41597 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41598 eval $as_var=C; export $as_var
41599 else
41600 $as_unset $as_var
41601 fi
41602done
41603
41604# Required to use basename.
41605if expr a : '\(a\)' >/dev/null 2>&1; then
41606 as_expr=expr
41607else
41608 as_expr=false
41609fi
41610
41611if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41612 as_basename=basename
41613else
41614 as_basename=false
41615fi
41616
41617
41618# Name of the executable.
41619as_me=`$as_basename "$0" ||
41620$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41621 X"$0" : 'X\(//\)$' \| \
41622 X"$0" : 'X\(/\)$' \| \
41623 . : '\(.\)' 2>/dev/null ||
41624echo X/"$0" |
41625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41626 /^X\/\(\/\/\)$/{ s//\1/; q; }
41627 /^X\/\(\/\).*/{ s//\1/; q; }
41628 s/.*/./; q'`
41629
41630
41631# PATH needs CR, and LINENO needs CR and PATH.
41632# Avoid depending upon Character Ranges.
41633as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41634as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41635as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41636as_cr_digits='0123456789'
41637as_cr_alnum=$as_cr_Letters$as_cr_digits
41638
41639# The user is always right.
41640if test "${PATH_SEPARATOR+set}" != set; then
41641 echo "#! /bin/sh" >conf$$.sh
41642 echo "exit 0" >>conf$$.sh
41643 chmod +x conf$$.sh
41644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41645 PATH_SEPARATOR=';'
41646 else
41647 PATH_SEPARATOR=:
41648 fi
41649 rm -f conf$$.sh
41650fi
41651
41652
41653 as_lineno_1=$LINENO
41654 as_lineno_2=$LINENO
41655 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41656 test "x$as_lineno_1" != "x$as_lineno_2" &&
41657 test "x$as_lineno_3" = "x$as_lineno_2" || {
41658 # Find who we are. Look in the path if we contain no path at all
41659 # relative or not.
41660 case $0 in
41661 *[\\/]* ) as_myself=$0 ;;
41662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41663for as_dir in $PATH
41664do
41665 IFS=$as_save_IFS
41666 test -z "$as_dir" && as_dir=.
41667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41668done
41669
41670 ;;
41671 esac
41672 # We did not find ourselves, most probably we were run as `sh COMMAND'
41673 # in which case we are not to be found in the path.
41674 if test "x$as_myself" = x; then
41675 as_myself=$0
41676 fi
41677 if test ! -f "$as_myself"; then
41678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41679echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41680 { (exit 1); exit 1; }; }
41681 fi
41682 case $CONFIG_SHELL in
41683 '')
41684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41685for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41686do
41687 IFS=$as_save_IFS
41688 test -z "$as_dir" && as_dir=.
41689 for as_base in sh bash ksh sh5; do
41690 case $as_dir in
41691 /*)
41692 if ("$as_dir/$as_base" -c '
41693 as_lineno_1=$LINENO
41694 as_lineno_2=$LINENO
41695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41696 test "x$as_lineno_1" != "x$as_lineno_2" &&
41697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41698 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41699 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41700 CONFIG_SHELL=$as_dir/$as_base
41701 export CONFIG_SHELL
41702 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41703 fi;;
41704 esac
41705 done
41706done
41707;;
41708 esac
41709
41710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41711 # uniformly replaced by the line number. The first 'sed' inserts a
41712 # line-number line before each line; the second 'sed' does the real
41713 # work. The second script uses 'N' to pair each line-number line
41714 # with the numbered line, and appends trailing '-' during
41715 # substitution so that $LINENO is not a special case at line end.
41716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41718 sed '=' <$as_myself |
41719 sed '
41720 N
41721 s,$,-,
41722 : loop
41723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41724 t loop
41725 s,-$,,
41726 s,^['$as_cr_digits']*\n,,
41727 ' >$as_me.lineno &&
41728 chmod +x $as_me.lineno ||
41729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41730echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41731 { (exit 1); exit 1; }; }
41732
41733 # Don't try to exec as it changes $[0], causing all sort of problems
41734 # (the dirname of $[0] is not the place where we might find the
41735 # original and so on. Autoconf is especially sensible to this).
41736 . ./$as_me.lineno
41737 # Exit status is that of the last command.
41738 exit
41739}
41740
41741
41742case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41743 *c*,-n*) ECHO_N= ECHO_C='
41744' ECHO_T=' ' ;;
41745 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41746 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41747esac
41748
41749if expr a : '\(a\)' >/dev/null 2>&1; then
41750 as_expr=expr
41751else
41752 as_expr=false
41753fi
41754
41755rm -f conf$$ conf$$.exe conf$$.file
41756echo >conf$$.file
41757if ln -s conf$$.file conf$$ 2>/dev/null; then
41758 # We could just check for DJGPP; but this test a) works b) is more generic
41759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41760 if test -f conf$$.exe; then
41761 # Don't use ln at all; we don't have any links
41762 as_ln_s='cp -p'
41763 else
41764 as_ln_s='ln -s'
41765 fi
41766elif ln conf$$.file conf$$ 2>/dev/null; then
41767 as_ln_s=ln
41768else
41769 as_ln_s='cp -p'
41770fi
41771rm -f conf$$ conf$$.exe conf$$.file
41772
41773if mkdir -p . 2>/dev/null; then
41774 as_mkdir_p=:
41775else
ac1cb8d3 41776 test -d ./-p && rmdir ./-p
a848cd7e
SC
41777 as_mkdir_p=false
41778fi
41779
41780as_executable_p="test -f"
41781
41782# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41783as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41784
41785# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41786as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41787
41788
41789# IFS
41790# We need space, tab and new line, in precisely that order.
41791as_nl='
41792'
41793IFS=" $as_nl"
41794
41795# CDPATH.
41796$as_unset CDPATH
41797
41798exec 6>&1
41799
41800# Open the log real soon, to keep \$[0] and so on meaningful, and to
41801# report actual input values of CONFIG_FILES etc. instead of their
41802# values after options handling. Logging --version etc. is OK.
41803exec 5>>config.log
41804{
41805 echo
41806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41807## Running $as_me. ##
41808_ASBOX
41809} >&5
41810cat >&5 <<_CSEOF
41811
77ffb593 41812This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41813generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41814
41815 CONFIG_FILES = $CONFIG_FILES
41816 CONFIG_HEADERS = $CONFIG_HEADERS
41817 CONFIG_LINKS = $CONFIG_LINKS
41818 CONFIG_COMMANDS = $CONFIG_COMMANDS
41819 $ $0 $@
41820
41821_CSEOF
41822echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41823echo >&5
41824_ACEOF
41825
41826# Files that config.status was made for.
41827if test -n "$ac_config_files"; then
41828 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41829fi
41830
41831if test -n "$ac_config_headers"; then
41832 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41833fi
41834
41835if test -n "$ac_config_links"; then
41836 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41837fi
41838
41839if test -n "$ac_config_commands"; then
41840 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41841fi
41842
41843cat >>$CONFIG_STATUS <<\_ACEOF
41844
41845ac_cs_usage="\
41846\`$as_me' instantiates files from templates according to the
41847current configuration.
41848
41849Usage: $0 [OPTIONS] [FILE]...
41850
41851 -h, --help print this help, then exit
41852 -V, --version print version number, then exit
41853 -q, --quiet do not print progress messages
41854 -d, --debug don't remove temporary files
41855 --recheck update $as_me by reconfiguring in the same conditions
41856 --file=FILE[:TEMPLATE]
ac1cb8d3 41857 instantiate the configuration file FILE
a848cd7e 41858 --header=FILE[:TEMPLATE]
ac1cb8d3 41859 instantiate the configuration header FILE
a848cd7e
SC
41860
41861Configuration files:
41862$config_files
41863
41864Configuration headers:
41865$config_headers
41866
41867Configuration commands:
41868$config_commands
41869
41870Report bugs to <bug-autoconf@gnu.org>."
41871_ACEOF
41872
41873cat >>$CONFIG_STATUS <<_ACEOF
41874ac_cs_version="\\
77ffb593 41875wxWidgets config.status 2.5.2
ac1cb8d3 41876configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41877 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41878
ac1cb8d3 41879Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41880This config.status script is free software; the Free Software Foundation
41881gives unlimited permission to copy, distribute and modify it."
41882srcdir=$srcdir
41883INSTALL="$INSTALL"
41884_ACEOF
41885
41886cat >>$CONFIG_STATUS <<\_ACEOF
41887# If no file are specified by the user, then we need to provide default
41888# value. By we need to know if files were specified by the user.
41889ac_need_defaults=:
41890while test $# != 0
41891do
41892 case $1 in
41893 --*=*)
41894 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41895 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41896 ac_shift=:
41897 ;;
41898 -*)
41899 ac_option=$1
41900 ac_optarg=$2
41901 ac_shift=shift
41902 ;;
41903 *) # This is not an option, so the user has probably given explicit
41904 # arguments.
41905 ac_option=$1
41906 ac_need_defaults=false;;
41907 esac
41908
41909 case $ac_option in
41910 # Handling of the options.
41911_ACEOF
41912cat >>$CONFIG_STATUS <<\_ACEOF
41913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41914 ac_cs_recheck=: ;;
41915 --version | --vers* | -V )
41916 echo "$ac_cs_version"; exit 0 ;;
41917 --he | --h)
41918 # Conflict between --help and --header
41919 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41920Try \`$0 --help' for more information." >&5
41921echo "$as_me: error: ambiguous option: $1
41922Try \`$0 --help' for more information." >&2;}
41923 { (exit 1); exit 1; }; };;
41924 --help | --hel | -h )
41925 echo "$ac_cs_usage"; exit 0 ;;
41926 --debug | --d* | -d )
41927 debug=: ;;
41928 --file | --fil | --fi | --f )
41929 $ac_shift
41930 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41931 ac_need_defaults=false;;
41932 --header | --heade | --head | --hea )
41933 $ac_shift
41934 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41935 ac_need_defaults=false;;
41936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41937 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41938 ac_cs_silent=: ;;
41939
41940 # This is an error.
41941 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41942Try \`$0 --help' for more information." >&5
41943echo "$as_me: error: unrecognized option: $1
41944Try \`$0 --help' for more information." >&2;}
41945 { (exit 1); exit 1; }; } ;;
41946
41947 *) ac_config_targets="$ac_config_targets $1" ;;
41948
41949 esac
41950 shift
41951done
41952
41953ac_configure_extra_args=
41954
41955if $ac_cs_silent; then
41956 exec 6>/dev/null
41957 ac_configure_extra_args="$ac_configure_extra_args --silent"
41958fi
41959
41960_ACEOF
41961cat >>$CONFIG_STATUS <<_ACEOF
41962if \$ac_cs_recheck; then
41963 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41964 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41965fi
41966
41967_ACEOF
41968
41969cat >>$CONFIG_STATUS <<_ACEOF
41970#
41971# INIT-COMMANDS section.
41972#
41973
41974
41975 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41976 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
4b167aca 41977 WX_RELEASE="${WX_RELEASE}"
a848cd7e
SC
41978 LN_S="${LN_S}"
41979
41980
41981
41982_ACEOF
41983
41984
41985
41986cat >>$CONFIG_STATUS <<\_ACEOF
41987for ac_config_target in $ac_config_targets
41988do
41989 case "$ac_config_target" in
41990 # Handling of arguments.
41991 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41992 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41993 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41994 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41995 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41996 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41997 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41998 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41999echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42000 { (exit 1); exit 1; }; };;
42001 esac
42002done
42003
42004# If the user did not use the arguments to specify the items to instantiate,
42005# then the envvar interface is used. Set only those that are not.
42006# We use the long form for the default assignment because of an extremely
42007# bizarre bug on SunOS 4.1.3.
42008if $ac_need_defaults; then
42009 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42010 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42011 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42012fi
42013
42014# Have a temporary directory for convenience. Make it in the build tree
42015# simply because there is no reason to put it here, and in addition,
42016# creating and moving files from /tmp can sometimes cause problems.
42017# Create a temporary directory, and hook for its removal unless debugging.
42018$debug ||
42019{
42020 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42021 trap '{ (exit 1); exit 1; }' 1 2 13 15
42022}
42023
42024# Create a (secure) tmp directory for tmp files.
42025
42026{
42027 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42028 test -n "$tmp" && test -d "$tmp"
42029} ||
42030{
42031 tmp=./confstat$$-$RANDOM
42032 (umask 077 && mkdir $tmp)
42033} ||
42034{
42035 echo "$me: cannot create a temporary directory in ." >&2
42036 { (exit 1); exit 1; }
42037}
42038
42039_ACEOF
42040
42041cat >>$CONFIG_STATUS <<_ACEOF
42042
42043#
42044# CONFIG_FILES section.
42045#
42046
42047# No need to generate the scripts if there are no CONFIG_FILES.
42048# This happens for instance when ./config.status config.h
42049if test -n "\$CONFIG_FILES"; then
42050 # Protect against being on the right side of a sed subst in config.status.
42051 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42052 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42053s,@SHELL@,$SHELL,;t t
42054s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42055s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42056s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42057s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42058s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42059s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42060s,@exec_prefix@,$exec_prefix,;t t
42061s,@prefix@,$prefix,;t t
42062s,@program_transform_name@,$program_transform_name,;t t
42063s,@bindir@,$bindir,;t t
42064s,@sbindir@,$sbindir,;t t
42065s,@libexecdir@,$libexecdir,;t t
42066s,@datadir@,$datadir,;t t
42067s,@sysconfdir@,$sysconfdir,;t t
42068s,@sharedstatedir@,$sharedstatedir,;t t
42069s,@localstatedir@,$localstatedir,;t t
42070s,@libdir@,$libdir,;t t
42071s,@includedir@,$includedir,;t t
42072s,@oldincludedir@,$oldincludedir,;t t
42073s,@infodir@,$infodir,;t t
42074s,@mandir@,$mandir,;t t
42075s,@build_alias@,$build_alias,;t t
42076s,@host_alias@,$host_alias,;t t
42077s,@target_alias@,$target_alias,;t t
42078s,@DEFS@,$DEFS,;t t
42079s,@ECHO_C@,$ECHO_C,;t t
42080s,@ECHO_N@,$ECHO_N,;t t
42081s,@ECHO_T@,$ECHO_T,;t t
42082s,@LIBS@,$LIBS,;t t
42083s,@build@,$build,;t t
42084s,@build_cpu@,$build_cpu,;t t
42085s,@build_vendor@,$build_vendor,;t t
42086s,@build_os@,$build_os,;t t
42087s,@host@,$host,;t t
42088s,@host_cpu@,$host_cpu,;t t
42089s,@host_vendor@,$host_vendor,;t t
42090s,@host_os@,$host_os,;t t
42091s,@target@,$target,;t t
42092s,@target_cpu@,$target_cpu,;t t
42093s,@target_vendor@,$target_vendor,;t t
42094s,@target_os@,$target_os,;t t
42095s,@CC@,$CC,;t t
42096s,@CFLAGS@,$CFLAGS,;t t
42097s,@LDFLAGS@,$LDFLAGS,;t t
42098s,@CPPFLAGS@,$CPPFLAGS,;t t
42099s,@ac_ct_CC@,$ac_ct_CC,;t t
42100s,@EXEEXT@,$EXEEXT,;t t
42101s,@OBJEXT@,$OBJEXT,;t t
42102s,@CPP@,$CPP,;t t
42103s,@EGREP@,$EGREP,;t t
42104s,@CXX@,$CXX,;t t
42105s,@CXXFLAGS@,$CXXFLAGS,;t t
42106s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42107s,@RANLIB@,$RANLIB,;t t
42108s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42109s,@AR@,$AR,;t t
42110s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42111s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42112s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42113s,@STRIP@,$STRIP,;t t
42114s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42115s,@LN_S@,$LN_S,;t t
42116s,@CXXCPP@,$CXXCPP,;t t
42117s,@subdirs@,$subdirs,;t t
42118s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42119s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42120s,@GTK_LIBS@,$GTK_LIBS,;t t
42121s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42122s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42123s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42124s,@X_CFLAGS@,$X_CFLAGS,;t t
42125s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42126s,@X_LIBS@,$X_LIBS,;t t
42127s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42128s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42129s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42130s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42131s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42132s,@RESCOMP@,$RESCOMP,;t t
42133s,@DEREZ@,$DEREZ,;t t
42134s,@SETFILE@,$SETFILE,;t t
42135s,@LIBICONV@,$LIBICONV,;t t
42136s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42137s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42138s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42139s,@SDL_LIBS@,$SDL_LIBS,;t t
42140s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42141s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42142s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42143s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42144s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42145s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42146s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42147s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42148s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42149s,@VENDOR@,$VENDOR,;t t
42150s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42151s,@WXUNIV@,$WXUNIV,;t t
42152s,@MONOLITHIC@,$MONOLITHIC,;t t
42153s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42154s,@EXTRALIBS@,$EXTRALIBS,;t t
42155s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42156s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42157s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42158s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42159s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42160s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42161s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42162s,@UNICODE@,$UNICODE,;t t
42163s,@BUILD@,$BUILD,;t t
42164s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42165s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42166s,@SHARED@,$SHARED,;t t
42167s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42168s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42169s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42170s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42171s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42172s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42173s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42174s,@SET_MAKE@,$SET_MAKE,;t t
42175s,@MAKE_SET@,$MAKE_SET,;t t
42176s,@ac_ct_AR@,$ac_ct_AR,;t t
42177s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42178s,@NM@,$NM,;t t
42179s,@ac_ct_NM@,$ac_ct_NM,;t t
42180s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42181s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42182s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42183s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42184s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42185s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42186s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42187s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42188s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42189s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42190s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42191s,@LIBPREFIX@,$LIBPREFIX,;t t
42192s,@LIBEXT@,$LIBEXT,;t t
42193s,@DLLPREFIX@,$DLLPREFIX,;t t
42194s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42195s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42196s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42197s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42198s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42199s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42200s,@PIC_FLAG@,$PIC_FLAG,;t t
42201s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42202s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42203s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42204s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42205s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42206s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42207s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42208s,@GCC_PCH@,$GCC_PCH,;t t
42209s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42210s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42211s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42212s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42213s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42214s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42215s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42216s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42217s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42218s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42219s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42220s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42221s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42222s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42223s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42224s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42225s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42226s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42227s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42228s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42229s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42230s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42231s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42232s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42233s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42234s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42235s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42236s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42237s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42238s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42239s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42240s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42241s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42242s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42243s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42244s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42245s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42246s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42247s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42248s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42249s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42250s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42251s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42252s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42253s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42254s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42255s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42256s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42257s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42258s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42259s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42260s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42261s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42262s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42263s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42264s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42265s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42266s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42267s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42268s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42269s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42270s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42271s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42272s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42273s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42274s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42275s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42276s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42277s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42278s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42279s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42280s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42281s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42282s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42283s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42284s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42285s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42286s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42287s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42288s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42289s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42290s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42291s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42292s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42293s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42294s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42295s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42296s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42297s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42298s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42299s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42300s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42301s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42302s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
a848cd7e
SC
42303s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42304s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42305s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42306s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42307s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42308s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42309s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42310s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42311s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42312s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42313s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42314s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42315s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42316s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42317s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
42318s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
42319s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42320s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42321s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
42322s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
42323s,@PATH_IFS@,$PATH_IFS,;t t
42324s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42325s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42326s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 42327s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
42328s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42329s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42330s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42331s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42332s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42333s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42334s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42335s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42336s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42337s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42338s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42339s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42340s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42341s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42342s,@WX_ALL@,$WX_ALL,;t t
42343s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42344s,@SHARED_LD@,$SHARED_LD,;t t
42345s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42346s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42347s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42348s,@USE_GUI@,$USE_GUI,;t t
42349s,@AFMINSTALL@,$AFMINSTALL,;t t
42350s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42351s,@TOOLKIT@,$TOOLKIT,;t t
42352s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42353s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42354s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42355s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42356s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42357s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42358s,@cross_compiling@,$cross_compiling,;t t
42359s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42360s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42361s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42362s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42363s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42364s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42365s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42366s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 42367s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 42368s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42369s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42370s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42371s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42372s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42373s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42374s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42375s,@GUIDIST@,$GUIDIST,;t t
42376s,@PORT_FILES@,$PORT_FILES,;t t
42377s,@DISTDIR@,$DISTDIR,;t t
42378s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42379s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42380s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42381s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42382s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42383s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42384s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42385s,@RESFLAGS@,$RESFLAGS,;t t
42386s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42387s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42388s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42389s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42390s,@MACRESCOMP@,$MACRESCOMP,;t t
42391s,@MACSETFILE@,$MACSETFILE,;t t
42392s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42393s,@GCC@,$GCC,;t t
a848cd7e
SC
42394s,@DLLTOOL@,$DLLTOOL,;t t
42395s,@AS@,$AS,;t t
42396s,@LD@,$LD,;t t
42397s,@MAKEINFO@,$MAKEINFO,;t t
42398s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42399s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42400s,@LIBOBJS@,$LIBOBJS,;t t
42401s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42402CEOF
42403
42404_ACEOF
42405
42406 cat >>$CONFIG_STATUS <<\_ACEOF
42407 # Split the substitutions into bite-sized pieces for seds with
42408 # small command number limits, like on Digital OSF/1 and HP-UX.
42409 ac_max_sed_lines=48
42410 ac_sed_frag=1 # Number of current file.
42411 ac_beg=1 # First line for current file.
42412 ac_end=$ac_max_sed_lines # Line after last line for current file.
42413 ac_more_lines=:
42414 ac_sed_cmds=
42415 while $ac_more_lines; do
42416 if test $ac_beg -gt 1; then
42417 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42418 else
42419 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42420 fi
42421 if test ! -s $tmp/subs.frag; then
42422 ac_more_lines=false
42423 else
42424 # The purpose of the label and of the branching condition is to
42425 # speed up the sed processing (if there are no `@' at all, there
42426 # is no need to browse any of the substitutions).
42427 # These are the two extra sed commands mentioned above.
42428 (echo ':t
42429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42430 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42431 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42432 else
ac1cb8d3 42433 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42434 fi
42435 ac_sed_frag=`expr $ac_sed_frag + 1`
42436 ac_beg=$ac_end
42437 ac_end=`expr $ac_end + $ac_max_sed_lines`
42438 fi
42439 done
42440 if test -z "$ac_sed_cmds"; then
42441 ac_sed_cmds=cat
42442 fi
42443fi # test -n "$CONFIG_FILES"
42444
42445_ACEOF
42446cat >>$CONFIG_STATUS <<\_ACEOF
42447for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42449 case $ac_file in
42450 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42451 cat >$tmp/stdin
42452 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42454 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42456 * ) ac_file_in=$ac_file.in ;;
42457 esac
42458
42459 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42460 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42462 X"$ac_file" : 'X\(//\)[^/]' \| \
42463 X"$ac_file" : 'X\(//\)$' \| \
42464 X"$ac_file" : 'X\(/\)' \| \
42465 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42466echo X"$ac_file" |
42467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42469 /^X\(\/\/\)$/{ s//\1/; q; }
42470 /^X\(\/\).*/{ s//\1/; q; }
42471 s/.*/./; q'`
42472 { if $as_mkdir_p; then
42473 mkdir -p "$ac_dir"
42474 else
42475 as_dir="$ac_dir"
42476 as_dirs=
42477 while test ! -d "$as_dir"; do
42478 as_dirs="$as_dir $as_dirs"
42479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42481 X"$as_dir" : 'X\(//\)[^/]' \| \
42482 X"$as_dir" : 'X\(//\)$' \| \
42483 X"$as_dir" : 'X\(/\)' \| \
42484 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42485echo X"$as_dir" |
42486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42488 /^X\(\/\/\)$/{ s//\1/; q; }
42489 /^X\(\/\).*/{ s//\1/; q; }
42490 s/.*/./; q'`
42491 done
42492 test ! -n "$as_dirs" || mkdir $as_dirs
42493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42494echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42495 { (exit 1); exit 1; }; }; }
42496
42497 ac_builddir=.
42498
42499if test "$ac_dir" != .; then
42500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42501 # A "../" for each directory in $ac_dir_suffix.
42502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42503else
42504 ac_dir_suffix= ac_top_builddir=
42505fi
42506
42507case $srcdir in
42508 .) # No --srcdir option. We are building in place.
42509 ac_srcdir=.
42510 if test -z "$ac_top_builddir"; then
42511 ac_top_srcdir=.
42512 else
42513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42514 fi ;;
42515 [\\/]* | ?:[\\/]* ) # Absolute path.
42516 ac_srcdir=$srcdir$ac_dir_suffix;
42517 ac_top_srcdir=$srcdir ;;
42518 *) # Relative path.
42519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42521esac
ac1cb8d3
VS
42522
42523# Do not use `cd foo && pwd` to compute absolute paths, because
42524# the directories may not exist.
42525case `pwd` in
42526.) ac_abs_builddir="$ac_dir";;
42527*)
42528 case "$ac_dir" in
42529 .) ac_abs_builddir=`pwd`;;
42530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42531 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42532 esac;;
42533esac
42534case $ac_abs_builddir in
42535.) ac_abs_top_builddir=${ac_top_builddir}.;;
42536*)
42537 case ${ac_top_builddir}. in
42538 .) ac_abs_top_builddir=$ac_abs_builddir;;
42539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42541 esac;;
42542esac
42543case $ac_abs_builddir in
42544.) ac_abs_srcdir=$ac_srcdir;;
42545*)
42546 case $ac_srcdir in
42547 .) ac_abs_srcdir=$ac_abs_builddir;;
42548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42550 esac;;
42551esac
42552case $ac_abs_builddir in
42553.) ac_abs_top_srcdir=$ac_top_srcdir;;
42554*)
42555 case $ac_top_srcdir in
42556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42559 esac;;
42560esac
a848cd7e
SC
42561
42562
42563 case $INSTALL in
42564 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42565 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42566 esac
42567
9a8f0513
VS
42568 if test x"$ac_file" != x-; then
42569 { echo "$as_me:$LINENO: creating $ac_file" >&5
42570echo "$as_me: creating $ac_file" >&6;}
42571 rm -f "$ac_file"
42572 fi
a848cd7e
SC
42573 # Let's still pretend it is `configure' which instantiates (i.e., don't
42574 # use $as_me), people would be surprised to read:
42575 # /* config.h. Generated by config.status. */
42576 if test x"$ac_file" = x-; then
42577 configure_input=
42578 else
42579 configure_input="$ac_file. "
42580 fi
42581 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42582 sed 's,.*/,,'` by configure."
a848cd7e
SC
42583
42584 # First look for the input files in the build tree, otherwise in the
42585 # src tree.
42586 ac_file_inputs=`IFS=:
42587 for f in $ac_file_in; do
42588 case $f in
42589 -) echo $tmp/stdin ;;
42590 [\\/$]*)
ac1cb8d3
VS
42591 # Absolute (can't be DOS-style, as IFS=:)
42592 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42593echo "$as_me: error: cannot find input file: $f" >&2;}
42594 { (exit 1); exit 1; }; }
ac1cb8d3 42595 echo "$f";;
a848cd7e 42596 *) # Relative
ac1cb8d3
VS
42597 if test -f "$f"; then
42598 # Build tree
42599 echo "$f"
42600 elif test -f "$srcdir/$f"; then
42601 # Source tree
42602 echo "$srcdir/$f"
42603 else
42604 # /dev/null tree
42605 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42606echo "$as_me: error: cannot find input file: $f" >&2;}
42607 { (exit 1); exit 1; }; }
ac1cb8d3 42608 fi;;
a848cd7e
SC
42609 esac
42610 done` || { (exit 1); exit 1; }
42611_ACEOF
42612cat >>$CONFIG_STATUS <<_ACEOF
42613 sed "$ac_vpsub
42614$extrasub
42615_ACEOF
42616cat >>$CONFIG_STATUS <<\_ACEOF
42617:t
42618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42619s,@configure_input@,$configure_input,;t t
42620s,@srcdir@,$ac_srcdir,;t t
42621s,@abs_srcdir@,$ac_abs_srcdir,;t t
42622s,@top_srcdir@,$ac_top_srcdir,;t t
42623s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42624s,@builddir@,$ac_builddir,;t t
42625s,@abs_builddir@,$ac_abs_builddir,;t t
42626s,@top_builddir@,$ac_top_builddir,;t t
42627s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42628s,@INSTALL@,$ac_INSTALL,;t t
42629" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42630 rm -f $tmp/stdin
42631 if test x"$ac_file" != x-; then
42632 mv $tmp/out $ac_file
42633 else
42634 cat $tmp/out
42635 rm -f $tmp/out
42636 fi
42637
42638done
42639_ACEOF
42640cat >>$CONFIG_STATUS <<\_ACEOF
42641
42642#
42643# CONFIG_HEADER section.
42644#
42645
42646# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42647# NAME is the cpp macro being defined and VALUE is the value it is being given.
42648#
42649# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42650ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42651ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42652ac_dC=' '
42653ac_dD=',;t'
42654# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42655ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42656ac_uB='$,\1#\2define\3'
42657ac_uC=' '
42658ac_uD=',;t'
42659
42660for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42662 case $ac_file in
42663 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42664 cat >$tmp/stdin
42665 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42667 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42669 * ) ac_file_in=$ac_file.in ;;
42670 esac
42671
42672 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42673echo "$as_me: creating $ac_file" >&6;}
42674
42675 # First look for the input files in the build tree, otherwise in the
42676 # src tree.
42677 ac_file_inputs=`IFS=:
42678 for f in $ac_file_in; do
42679 case $f in
42680 -) echo $tmp/stdin ;;
42681 [\\/$]*)
ac1cb8d3
VS
42682 # Absolute (can't be DOS-style, as IFS=:)
42683 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42684echo "$as_me: error: cannot find input file: $f" >&2;}
42685 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42686 # Do quote $f, to prevent DOS paths from being IFS'd.
42687 echo "$f";;
a848cd7e 42688 *) # Relative
ac1cb8d3
VS
42689 if test -f "$f"; then
42690 # Build tree
42691 echo "$f"
42692 elif test -f "$srcdir/$f"; then
42693 # Source tree
42694 echo "$srcdir/$f"
42695 else
42696 # /dev/null tree
42697 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42698echo "$as_me: error: cannot find input file: $f" >&2;}
42699 { (exit 1); exit 1; }; }
ac1cb8d3 42700 fi;;
a848cd7e
SC
42701 esac
42702 done` || { (exit 1); exit 1; }
42703 # Remove the trailing spaces.
ac1cb8d3 42704 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42705
42706_ACEOF
42707
42708# Transform confdefs.h into two sed scripts, `conftest.defines' and
42709# `conftest.undefs', that substitutes the proper values into
42710# config.h.in to produce config.h. The first handles `#define'
42711# templates, and the second `#undef' templates.
42712# And first: Protect against being on the right side of a sed subst in
42713# config.status. Protect against being in an unquoted here document
42714# in config.status.
42715rm -f conftest.defines conftest.undefs
42716# Using a here document instead of a string reduces the quoting nightmare.
42717# Putting comments in sed scripts is not portable.
42718#
42719# `end' is used to avoid that the second main sed command (meant for
42720# 0-ary CPP macros) applies to n-ary macro definitions.
42721# See the Autoconf documentation for `clear'.
42722cat >confdef2sed.sed <<\_ACEOF
42723s/[\\&,]/\\&/g
42724s,[\\$`],\\&,g
42725t clear
42726: clear
ac1cb8d3 42727s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42728t end
ac1cb8d3 42729s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42730: end
42731_ACEOF
42732# If some macros were called several times there might be several times
42733# the same #defines, which is useless. Nevertheless, we may not want to
42734# sort them, since we want the *last* AC-DEFINE to be honored.
42735uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42736sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42737rm -f confdef2sed.sed
42738
42739# This sed command replaces #undef with comments. This is necessary, for
42740# example, in the case of _POSIX_SOURCE, which is predefined and required
42741# on some systems where configure will not decide to define it.
42742cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42743s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42744_ACEOF
42745
42746# Break up conftest.defines because some shells have a limit on the size
42747# of here documents, and old seds have small limits too (100 cmds).
42748echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42749echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42750echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42751echo ' :' >>$CONFIG_STATUS
42752rm -f conftest.tail
42753while grep . conftest.defines >/dev/null
42754do
42755 # Write a limited-size here document to $tmp/defines.sed.
42756 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42757 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42758 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42759 # Work around the forget-to-reset-the-flag bug.
42760 echo 't clr' >>$CONFIG_STATUS
42761 echo ': clr' >>$CONFIG_STATUS
42762 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42763 echo 'CEOF
42764 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42765 rm -f $tmp/in
42766 mv $tmp/out $tmp/in
42767' >>$CONFIG_STATUS
42768 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42769 rm -f conftest.defines
42770 mv conftest.tail conftest.defines
42771done
42772rm -f conftest.defines
42773echo ' fi # grep' >>$CONFIG_STATUS
42774echo >>$CONFIG_STATUS
42775
42776# Break up conftest.undefs because some shells have a limit on the size
42777# of here documents, and old seds have small limits too (100 cmds).
42778echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42779rm -f conftest.tail
42780while grep . conftest.undefs >/dev/null
42781do
42782 # Write a limited-size here document to $tmp/undefs.sed.
42783 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42784 # Speed up: don't consider the non `#undef'
ac1cb8d3 42785 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42786 # Work around the forget-to-reset-the-flag bug.
42787 echo 't clr' >>$CONFIG_STATUS
42788 echo ': clr' >>$CONFIG_STATUS
42789 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42790 echo 'CEOF
42791 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42792 rm -f $tmp/in
42793 mv $tmp/out $tmp/in
42794' >>$CONFIG_STATUS
42795 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42796 rm -f conftest.undefs
42797 mv conftest.tail conftest.undefs
42798done
42799rm -f conftest.undefs
42800
42801cat >>$CONFIG_STATUS <<\_ACEOF
42802 # Let's still pretend it is `configure' which instantiates (i.e., don't
42803 # use $as_me), people would be surprised to read:
42804 # /* config.h. Generated by config.status. */
42805 if test x"$ac_file" = x-; then
42806 echo "/* Generated by configure. */" >$tmp/config.h
42807 else
42808 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42809 fi
42810 cat $tmp/in >>$tmp/config.h
42811 rm -f $tmp/in
42812 if test x"$ac_file" != x-; then
42813 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42814 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42815echo "$as_me: $ac_file is unchanged" >&6;}
42816 else
42817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42819 X"$ac_file" : 'X\(//\)[^/]' \| \
42820 X"$ac_file" : 'X\(//\)$' \| \
42821 X"$ac_file" : 'X\(/\)' \| \
42822 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42823echo X"$ac_file" |
42824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42826 /^X\(\/\/\)$/{ s//\1/; q; }
42827 /^X\(\/\).*/{ s//\1/; q; }
42828 s/.*/./; q'`
42829 { if $as_mkdir_p; then
42830 mkdir -p "$ac_dir"
42831 else
42832 as_dir="$ac_dir"
42833 as_dirs=
42834 while test ! -d "$as_dir"; do
42835 as_dirs="$as_dir $as_dirs"
42836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42838 X"$as_dir" : 'X\(//\)[^/]' \| \
42839 X"$as_dir" : 'X\(//\)$' \| \
42840 X"$as_dir" : 'X\(/\)' \| \
42841 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42842echo X"$as_dir" |
42843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42845 /^X\(\/\/\)$/{ s//\1/; q; }
42846 /^X\(\/\).*/{ s//\1/; q; }
42847 s/.*/./; q'`
42848 done
42849 test ! -n "$as_dirs" || mkdir $as_dirs
42850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42851echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42852 { (exit 1); exit 1; }; }; }
42853
42854 rm -f $ac_file
42855 mv $tmp/config.h $ac_file
42856 fi
42857 else
42858 cat $tmp/config.h
42859 rm -f $tmp/config.h
42860 fi
42861done
42862_ACEOF
42863cat >>$CONFIG_STATUS <<\_ACEOF
42864
42865#
42866# CONFIG_COMMANDS section.
42867#
42868for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42869 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42870 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42871 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42872$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42873 X"$ac_dest" : 'X\(//\)[^/]' \| \
42874 X"$ac_dest" : 'X\(//\)$' \| \
42875 X"$ac_dest" : 'X\(/\)' \| \
42876 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42877echo X"$ac_dest" |
42878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42880 /^X\(\/\/\)$/{ s//\1/; q; }
42881 /^X\(\/\).*/{ s//\1/; q; }
42882 s/.*/./; q'`
ac1cb8d3
VS
42883 { if $as_mkdir_p; then
42884 mkdir -p "$ac_dir"
42885 else
42886 as_dir="$ac_dir"
42887 as_dirs=
42888 while test ! -d "$as_dir"; do
42889 as_dirs="$as_dir $as_dirs"
42890 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42892 X"$as_dir" : 'X\(//\)[^/]' \| \
42893 X"$as_dir" : 'X\(//\)$' \| \
42894 X"$as_dir" : 'X\(/\)' \| \
42895 . : '\(.\)' 2>/dev/null ||
42896echo X"$as_dir" |
42897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42899 /^X\(\/\/\)$/{ s//\1/; q; }
42900 /^X\(\/\).*/{ s//\1/; q; }
42901 s/.*/./; q'`
42902 done
42903 test ! -n "$as_dirs" || mkdir $as_dirs
42904 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42905echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42906 { (exit 1); exit 1; }; }; }
42907
a848cd7e
SC
42908 ac_builddir=.
42909
42910if test "$ac_dir" != .; then
42911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42912 # A "../" for each directory in $ac_dir_suffix.
42913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42914else
42915 ac_dir_suffix= ac_top_builddir=
42916fi
42917
42918case $srcdir in
42919 .) # No --srcdir option. We are building in place.
42920 ac_srcdir=.
42921 if test -z "$ac_top_builddir"; then
42922 ac_top_srcdir=.
42923 else
42924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42925 fi ;;
42926 [\\/]* | ?:[\\/]* ) # Absolute path.
42927 ac_srcdir=$srcdir$ac_dir_suffix;
42928 ac_top_srcdir=$srcdir ;;
42929 *) # Relative path.
42930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42932esac
ac1cb8d3
VS
42933
42934# Do not use `cd foo && pwd` to compute absolute paths, because
42935# the directories may not exist.
42936case `pwd` in
42937.) ac_abs_builddir="$ac_dir";;
42938*)
42939 case "$ac_dir" in
42940 .) ac_abs_builddir=`pwd`;;
42941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42943 esac;;
42944esac
42945case $ac_abs_builddir in
42946.) ac_abs_top_builddir=${ac_top_builddir}.;;
42947*)
42948 case ${ac_top_builddir}. in
42949 .) ac_abs_top_builddir=$ac_abs_builddir;;
42950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42952 esac;;
42953esac
42954case $ac_abs_builddir in
42955.) ac_abs_srcdir=$ac_srcdir;;
42956*)
42957 case $ac_srcdir in
42958 .) ac_abs_srcdir=$ac_abs_builddir;;
42959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42961 esac;;
42962esac
42963case $ac_abs_builddir in
42964.) ac_abs_top_srcdir=$ac_top_srcdir;;
42965*)
42966 case $ac_top_srcdir in
42967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42970 esac;;
42971esac
a848cd7e
SC
42972
42973
42974 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42975echo "$as_me: executing $ac_dest commands" >&6;}
42976 case $ac_dest in
42977 default )
a848cd7e
SC
42978 if test ! -d lib; then
42979 mkdir lib
42980 fi
42981 if test ! -d lib/wx; then
42982 mkdir lib/wx
42983 fi
8708fa76
VS
42984 if test ! -d lib/wx/config; then
42985 mkdir lib/wx/config
42986 fi
a848cd7e
SC
42987 if test ! -d lib/wx/include; then
42988 mkdir lib/wx/include
42989 fi
42990 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42991 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42992 fi
42993 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42994 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42995 fi
42996 if test -f setup.h; then
42997 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42998 fi
8708fa76 42999
4b167aca 43000 if test ! -h wx-config; then
8708fa76 43001 chmod +x wx-config
48112931 43002 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
4b167aca 43003 ${LN_S} wx-config-${WX_RELEASE} wx-config
8708fa76 43004 fi
4b167aca
VS
43005 ( cd lib/wx/config ;
43006 rm -f ${TOOLCHAIN_NAME}
43007 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
43008
8708fa76
VS
43009 if test -f wx-config-wrapper; then
43010 chmod +x wx-config-wrapper
4b167aca 43011 mv -f wx-config-wrapper wx-config-${WX_RELEASE}
b3de4970 43012 rm -f wx${TOOLCHAIN_NAME}-config
4b167aca 43013 ${LN_S} wx-config-${WX_RELEASE} wx${TOOLCHAIN_NAME}-config
8708fa76 43014 fi
a848cd7e
SC
43015 ;;
43016 esac
43017done
43018_ACEOF
43019
43020cat >>$CONFIG_STATUS <<\_ACEOF
43021
43022{ (exit 0); exit 0; }
43023_ACEOF
43024chmod +x $CONFIG_STATUS
43025ac_clean_files=$ac_clean_files_save
43026
43027
43028# configure is writing to config.log, and then calls config.status.
43029# config.status does its own redirection, appending to config.log.
43030# Unfortunately, on DOS this fails, as config.log is still kept open
43031# by configure, so config.status won't be able to write to it; its
43032# output is simply discarded. So we exec the FD to /dev/null,
43033# effectively closing config.log, so it can be properly (re)opened and
43034# appended to by config.status. When coming back to configure, we
43035# need to make the FD available again.
43036if test "$no_create" != yes; then
43037 ac_cs_success=:
43038 ac_config_status_args=
43039 test "$silent" = yes &&
43040 ac_config_status_args="$ac_config_status_args --quiet"
43041 exec 5>/dev/null
43042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43043 exec 5>>config.log
43044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43045 # would make configure fail if this is the last instruction.
43046 $ac_cs_success || { (exit 1); exit 1; }
43047fi
43048
43049#
43050# CONFIG_SUBDIRS section.
43051#
43052if test "$no_recursion" != yes; then
43053
43054 # Remove --cache-file and --srcdir arguments so they do not pile up.
43055 ac_sub_configure_args=
43056 ac_prev=
43057 for ac_arg in $ac_configure_args; do
43058 if test -n "$ac_prev"; then
43059 ac_prev=
43060 continue
43061 fi
43062 case $ac_arg in
43063 -cache-file | --cache-file | --cache-fil | --cache-fi \
43064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43065 ac_prev=cache_file ;;
43066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43068 | --c=*)
43069 ;;
43070 --config-cache | -C)
43071 ;;
43072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43073 ac_prev=srcdir ;;
43074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43075 ;;
43076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43077 ac_prev=prefix ;;
43078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43079 ;;
43080 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43081 esac
43082 done
43083
43084 # Always prepend --prefix to ensure using the same prefix
43085 # in subdir configurations.
43086 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43087
43088 ac_popdir=`pwd`
43089 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43090
43091 # Do not complain, so a configure script can configure whichever
43092 # parts of a large source tree are present.
43093 test -d $srcdir/$ac_dir || continue
43094
43095 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43096echo "$as_me: configuring in $ac_dir" >&6;}
43097 { if $as_mkdir_p; then
43098 mkdir -p "$ac_dir"
43099 else
43100 as_dir="$ac_dir"
43101 as_dirs=
43102 while test ! -d "$as_dir"; do
43103 as_dirs="$as_dir $as_dirs"
43104 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43106 X"$as_dir" : 'X\(//\)[^/]' \| \
43107 X"$as_dir" : 'X\(//\)$' \| \
43108 X"$as_dir" : 'X\(/\)' \| \
43109 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43110echo X"$as_dir" |
43111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43113 /^X\(\/\/\)$/{ s//\1/; q; }
43114 /^X\(\/\).*/{ s//\1/; q; }
43115 s/.*/./; q'`
43116 done
43117 test ! -n "$as_dirs" || mkdir $as_dirs
43118 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43119echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43120 { (exit 1); exit 1; }; }; }
43121
43122 ac_builddir=.
43123
43124if test "$ac_dir" != .; then
43125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43126 # A "../" for each directory in $ac_dir_suffix.
43127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43128else
43129 ac_dir_suffix= ac_top_builddir=
43130fi
43131
43132case $srcdir in
43133 .) # No --srcdir option. We are building in place.
43134 ac_srcdir=.
43135 if test -z "$ac_top_builddir"; then
43136 ac_top_srcdir=.
43137 else
43138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43139 fi ;;
43140 [\\/]* | ?:[\\/]* ) # Absolute path.
43141 ac_srcdir=$srcdir$ac_dir_suffix;
43142 ac_top_srcdir=$srcdir ;;
43143 *) # Relative path.
43144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43146esac
ac1cb8d3
VS
43147
43148# Do not use `cd foo && pwd` to compute absolute paths, because
43149# the directories may not exist.
43150case `pwd` in
43151.) ac_abs_builddir="$ac_dir";;
43152*)
43153 case "$ac_dir" in
43154 .) ac_abs_builddir=`pwd`;;
43155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43157 esac;;
43158esac
43159case $ac_abs_builddir in
43160.) ac_abs_top_builddir=${ac_top_builddir}.;;
43161*)
43162 case ${ac_top_builddir}. in
43163 .) ac_abs_top_builddir=$ac_abs_builddir;;
43164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43166 esac;;
43167esac
43168case $ac_abs_builddir in
43169.) ac_abs_srcdir=$ac_srcdir;;
43170*)
43171 case $ac_srcdir in
43172 .) ac_abs_srcdir=$ac_abs_builddir;;
43173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43175 esac;;
43176esac
43177case $ac_abs_builddir in
43178.) ac_abs_top_srcdir=$ac_top_srcdir;;
43179*)
43180 case $ac_top_srcdir in
43181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43184 esac;;
43185esac
a848cd7e
SC
43186
43187
43188 cd $ac_dir
43189
43190 # Check for guested configure; otherwise get Cygnus style configure.
43191 if test -f $ac_srcdir/configure.gnu; then
43192 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43193 elif test -f $ac_srcdir/configure; then
43194 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43195 elif test -f $ac_srcdir/configure.in; then
43196 ac_sub_configure=$ac_configure
43197 else
43198 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43199echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43200 ac_sub_configure=
43201 fi
43202
43203 # The recursion is here.
43204 if test -n "$ac_sub_configure"; then
43205 # Make the cache file name correct relative to the subdirectory.
43206 case $cache_file in
43207 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43208 *) # Relative path.
ac1cb8d3 43209 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43210 esac
43211
43212 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43213echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43214 # The eval makes quoting arguments work.
43215 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43216 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43217 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43218echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43219 { (exit 1); exit 1; }; }
43220 fi
43221
9a8f0513 43222 cd $ac_popdir
a848cd7e
SC
43223 done
43224fi
43225
43226
43227echo
77ffb593 43228echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43229echo ""
4d4ff94c 43230echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43231echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43232
77ffb593
JS
43233echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43234echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43235echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43236
77ffb593
JS
43237echo " What level of wxWidgets compatibility should be enabled?"
43238echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43239echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43240
77ffb593 43241echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43242echo " jpeg ${wxUSE_LIBJPEG-none}"
43243echo " png ${wxUSE_LIBPNG-none}"
43244echo " regex ${wxUSE_REGEX}"
43245echo " tiff ${wxUSE_LIBTIFF-none}"
43246if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43247echo " xpm ${wxUSE_LIBXPM-none}"
43248fi
43249echo " zlib ${wxUSE_ZLIB}"
43250echo " odbc ${wxUSE_ODBC}"
43251echo " expat ${wxUSE_EXPAT}"
43252echo " libmspack ${wxUSE_LIBMSPACK}"
43253echo " sdl ${wxUSE_LIBSDL}"
43254
43255echo ""
43256